diff --git a/CHANGELOG.md b/CHANGELOG.md index 7e6be1848f..0893ef756f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,450 @@ +# 3.1.110 2024-08-15 + +### HuaweiCloud SDK AOS + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **EstimateExecutionPlanPrice** + - changes of response param + - `+ items.module_address` + +### HuaweiCloud SDK CAE + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ListComponentSnapshots** + - changes of response param + - `+ items.context.runtime: enum value [Dotnet6,Dotnet7,Dotnet8]` + - **ShowComponent** + - changes of response param + - `+ spec.runtime: enum value [Dotnet6,Dotnet7,Dotnet8]` + - **UpdateComponent** + - changes of request param + - `+ spec.runtime: enum value [Dotnet6,Dotnet7,Dotnet8]` + - **CreateComponent** + - changes of request param + - `+ spec.runtime: enum value [Dotnet6,Dotnet7,Dotnet8]` + - changes of response param + - `+ spec.runtime: enum value [Dotnet6,Dotnet7,Dotnet8]` + - **ListComponents** + - changes of response param + - `+ items.spec.runtime: enum value [Dotnet6,Dotnet7,Dotnet8]` + - **CreateComponentWithConfiguration** + - changes of request param + - `+ spec.runtime: enum value [Dotnet6,Dotnet7,Dotnet8]` + - changes of response param + - `+ spec.runtime: enum value [Dotnet6,Dotnet7,Dotnet8]` + +### HuaweiCloud SDK CCE + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ShowNodePool** + - changes of response param + - `+ status.scaleGroupStatuses` + - `* spec.extensionScaleGroups: object -> list` + - **UpdateNodePool** + - changes of request param + - `* spec.extensionScaleGroups: object -> list` + - changes of response param + - `+ status.scaleGroupStatuses` + - `* spec.extensionScaleGroups: object -> list` + - **DeleteNodePool** + - changes of response param + - `+ status.scaleGroupStatuses` + - `* spec.extensionScaleGroups: object -> list` + - **CreateNodePool** + - changes of request param + - `+ status.scaleGroupStatuses` + - `* spec.extensionScaleGroups: object -> list` + - changes of response param + - `+ status.scaleGroupStatuses` + - `* spec.extensionScaleGroups: object -> list` + - **ListNodePools** + - changes of response param + - `+ items.status.scaleGroupStatuses` + - `* items.spec.extensionScaleGroups: object -> list` + +### HuaweiCloud SDK CDM + +- _Features_ + - Support the following APIs: + - `ShowAvailabilityZones` + - `ShowDatastores` + - `ShowFlavors` + - `ShowFlavorDetail` + - `ShowEnterpriseProjects` + - `ShowClusterEnterpriseProjects` + - `ShowInstanceDetail` + - `ModifyCluster` +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK CloudPond + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ListEdgeSiteMetrics** + - changes of request param + - `+ dim: enum value [storage_pool]` + - **ListEdgeSites** + - changes of request param + - `+ enterprise_project_id` + - changes of response param + - `+ edge_sites.enterprise_project_id` + - **CreateEdgeSite** + - changes of request param + - `+ edge_site.enterprise_project_id` + - changes of response param + - `+ edge_site.enterprise_project_id` + - **ShowEdgeSite** + - changes of response param + - `+ edge_site.enterprise_project_id` + - **UpdateEdgeSite** + - changes of response param + - `+ edge_site.enterprise_project_id` + - **ListRacks** + - changes of response param + - `+ racks.product_info` + - `+ racks.storage_unit.storage_type: enum value [SAS_SD,SSD_SD,SAS_ARM,SSD_ARM]` + - **ShowRack** + - changes of response param + - `+ rack.product_info` + - `+ rack.storage_unit.storage_type: enum value [SAS_SD,SSD_SD,SAS_ARM,SSD_ARM]` + - **ListStoragePools** + - changes of response param + - `+ storage_pools.product_info` + - `+ storage_pools.storage_type: enum value [SAS_SD,SSD_SD,SAS_ARM,SSD_ARM]` + - **ShowStoragePool** + - changes of response param + - `+ storage_pool.product_info` + - `+ storage_pool.storage_type: enum value [SAS_SD,SSD_SD,SAS_ARM,SSD_ARM]` + +### HuaweiCloud SDK Config + +- _Features_ + - Support the API `CollectRemediationExecutionStatusesSummary` +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK DAS + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ListSpaceAnalysis** + - changes of request param + - `+ datastore_type: enum value [SQLServer]` + +### HuaweiCloud SDK DCS + +- _Features_ + - Support the API `BatchRestartOnlineMigrationTasks` +- _Bug Fix_ + - None +- _Change_ + - **BatchStopMigrationTasks** + - changes of response param + - `+ migration_tasks.error_msg` + - `+ migration_tasks.error_code` + +### HuaweiCloud SDK DLI + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ShowQueue** + - changes of response param + - `+ default_spark_version` + - `+ support_hetu_engine_versions` + - `+ support_spark_versions` + - `+ default_hetu_engine_version` + - `+ support_flink_jar_versions` + - `+ support_flink_sql_versions` + - `+ default_flink_sql_version` + - `+ default_flink_jar_version` + - **ListQueues** + - changes of response param + - `+ queues.support_spark_versions` + - `+ queues.default_spark_version` + - `+ queues.support_hetu_engine_versions` + - `+ queues.default_hetu_engine_version` + - `+ queues.support_flink_sql_versions` + - `+ queues.default_flink_sql_version` + - `+ queues.support_flink_jar_versions` + - `+ queues.default_flink_jar_version` + +### HuaweiCloud SDK EIP + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **UpdatePrePaidBandwidth** + - changes of request param + - `+ extendParam.period_type` + - `+ extendParam.period_num` + - **ListEipBandwidths** + - changes of response param + - `* eip_bandwidths.tenant_id: uuid -> string` + - **ListProjectGeipBindings** + - changes of response param + - `* geip_bindings.vnic.vni: int32 -> string` + +### HuaweiCloud SDK ELB + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ListAvailabilityZones** + - changes of response param + - `+ spec_code` + - **ListFlavors** + - changes of request param + - `- loadbalancer_type` + - **ShowLoadBalancer** + - changes of response param + - `+ loadbalancer.gw_flavor_id` + - `+ loadbalancer.loadbalancer_type` + - **UpdateLoadBalancer** + - changes of response param + - `+ loadbalancer.gw_flavor_id` + - `+ loadbalancer.loadbalancer_type` + - **BatchAddAvailableZones** + - changes of response param + - `+ loadbalancer.gw_flavor_id` + - `+ loadbalancer.loadbalancer_type` + - **BatchRemoveAvailableZones** + - changes of response param + - `+ loadbalancer.gw_flavor_id` + - `+ loadbalancer.loadbalancer_type` + - **ListLoadBalancers** + - changes of response param + - `+ loadbalancers.gw_flavor_id` + - `+ loadbalancers.loadbalancer_type` + - **CreateLoadBalancer** + - changes of response param + - `+ loadbalancer.gw_flavor_id` + - `+ loadbalancer.loadbalancer_type` + +### HuaweiCloud SDK GaussDBforopenGauss + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **CreateInstance** + - changes of request param + - `+ ha.instance_mode` + - **ShowBatchUpgradeCandidateVersions** + - changes of response param + - `+ hotfix_rollback_infos` + +### HuaweiCloud SDK IMS + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ListImages** + - changes of request param + - `+ visibility: enum value [shared]` + - changes of response param + - `+ images.visibility: enum value [shared]` + - **UpdateImage** + - changes of response param + - `+ visibility: enum value [shared]` + +### HuaweiCloud SDK KooMessage + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **UpdatePubInfo** + - changes of request param + - `+ areas_for_auto_get_port` + - **ShowTemplateVideoThumbnail** + - changes of response param + - `+ data.obs_bucket_name` + - `+ data.domain_id` + - `+ data.size` + - `+ data.obs_file_url` + - **ListPubInfos** + - changes of response param + - `+ data.data.approve_state` + - `+ data.data.areas_for_auto_get_port` + - **ListAimTemplates** + - changes of response param + - `+ templates.match_type` + - `+ templates.card_id` + - `+ templates.sub_type` + - `+ templates.preview_url` + - `+ templates.factory_info.tpl_id` + - **ListAimTemplateMaterials** + - changes of response param + - `+ data.results.thumbnail.obs_file_url` + - `+ data.results.thumbnail.size` + - **CreatePubInfo** + - changes of request param + - `+ pub_request_body.areas_for_auto_get_port` + - **ListMenus** + - changes of response param + - `+ data.data.company_id` + - `+ data.data.company_name` + +### HuaweiCloud SDK LTS + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ListLogs** + - changes of request param + - `+ query` + - `+ is_analysis_query` + - changes of response param + - `+ analysisLogs` + +### HuaweiCloud SDK OCR + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **RecognizeTransportationLicense** + - changes of response param + - `+ result.expiry_date` + - `+ result.review_expiry_date` + - `+ result.assessed_technical_level` + +### HuaweiCloud SDK ServiceStage + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **UpdateComponentAction** + - changes of request param + - `+ action: enum value [rollback_current]` + - **ShowComponentInfo** + - changes of response param + - `+ swimlane_id` + - `+ deploy_strategy.gray_release.replica_surge_mode` + - `+ deploy_strategy.gray_release.deployment_mode` + - `+ deploy_strategy.gray_release.rule_match_mode` + - `+ deploy_strategy.gray_release.rules` + - `+ deploy_strategy.gray_release.type: enum value [WEIGHT,CONTENT]` + - `- deploy_strategy.gray_release.type: enum value [weight,content]` + - **ModifyComponent** + - changes of request param + - `+ swimlane_id` + - `+ deploy_strategy.gray_release.replica_surge_mode` + - `+ deploy_strategy.gray_release.deployment_mode` + - `+ deploy_strategy.gray_release.rule_match_mode` + - `+ deploy_strategy.gray_release.rules` + - `+ deploy_strategy.gray_release.type: enum value [WEIGHT,CONTENT]` + - `- deploy_strategy.gray_release.type: enum value [weight,content]` + - **CreateComponent** + - changes of request param + - `+ swimlane_id` + - `+ deploy_strategy.gray_release.replica_surge_mode` + - `+ deploy_strategy.gray_release.deployment_mode` + - `+ deploy_strategy.gray_release.rule_match_mode` + - `+ deploy_strategy.gray_release.rules` + - `+ deploy_strategy.gray_release.type: enum value [WEIGHT,CONTENT]` + - `- deploy_strategy.gray_release.type: enum value [weight,content]` + +### HuaweiCloud SDK SMS + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ShowTask** + - changes of response param + - `- exist_server` + - **UpdateTask** + - changes of request param + - `+ exist_server` + +### HuaweiCloud SDK VPCEP + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ListEndpointInfoDetails** + - changes of response param + - `+ policy_statement.Effect: enum value [Deny]` + - `- policy_statement.Effect: enum value [Refuse]` + - **UpdateEndpointWhite** + - changes of response param + - `+ policy_statement.Effect: enum value [Deny]` + - `- policy_statement.Effect: enum value [Refuse]` + - **UpdateEndpointPolicy** + - changes of request param + - `+ policy_statement.Effect: enum value [Deny]` + - `- policy_statement.Effect: enum value [Refuse]` + - changes of response param + - `+ policy_statement.Effect: enum value [Deny]` + - `- policy_statement.Effect: enum value [Refuse]` + - **DeleteEndpointPolicy** + - changes of response param + - `+ policy_statement.Effect: enum value [Deny]` + - `- policy_statement.Effect: enum value [Refuse]` + - **CreateEndpoint** + - changes of request param + - `+ policy_statement.Effect: enum value [Deny]` + - `- policy_statement.Effect: enum value [Refuse]` + - changes of response param + - `+ policy_statement.Effect: enum value [Deny]` + - `- policy_statement.Effect: enum value [Refuse]` + - **ListEndpoints** + - changes of response param + - `+ endpoints.policy_statement.Effect: enum value [Deny]` + - `- endpoints.policy_statement.Effect: enum value [Refuse]` + +### HuaweiCloud SDK VPN + +- _Features_ + - Support the API `UpdatePostpaidVgwSpecification` +- _Bug Fix_ + - None +- _Change_ + - None + # 3.1.109 2024-08-08 ### HuaweiCloud SDK Config diff --git a/CHANGELOG_CN.md b/CHANGELOG_CN.md index 6843538151..5e1d24a04c 100644 --- a/CHANGELOG_CN.md +++ b/CHANGELOG_CN.md @@ -1,3 +1,450 @@ +# 3.1.110 2024-08-15 + +### HuaweiCloud SDK AOS + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **EstimateExecutionPlanPrice** + - 响应参数变更 + - `+ items.module_address` + +### HuaweiCloud SDK CAE + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ListComponentSnapshots** + - 响应参数变更 + - `+ items.context.runtime: enum value [Dotnet6,Dotnet7,Dotnet8]` + - **ShowComponent** + - 响应参数变更 + - `+ spec.runtime: enum value [Dotnet6,Dotnet7,Dotnet8]` + - **UpdateComponent** + - 请求参数变更 + - `+ spec.runtime: enum value [Dotnet6,Dotnet7,Dotnet8]` + - **CreateComponent** + - 请求参数变更 + - `+ spec.runtime: enum value [Dotnet6,Dotnet7,Dotnet8]` + - 响应参数变更 + - `+ spec.runtime: enum value [Dotnet6,Dotnet7,Dotnet8]` + - **ListComponents** + - 响应参数变更 + - `+ items.spec.runtime: enum value [Dotnet6,Dotnet7,Dotnet8]` + - **CreateComponentWithConfiguration** + - 请求参数变更 + - `+ spec.runtime: enum value [Dotnet6,Dotnet7,Dotnet8]` + - 响应参数变更 + - `+ spec.runtime: enum value [Dotnet6,Dotnet7,Dotnet8]` + +### HuaweiCloud SDK CCE + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ShowNodePool** + - 响应参数变更 + - `+ status.scaleGroupStatuses` + - `* spec.extensionScaleGroups: object -> list` + - **UpdateNodePool** + - 请求参数变更 + - `* spec.extensionScaleGroups: object -> list` + - 响应参数变更 + - `+ status.scaleGroupStatuses` + - `* spec.extensionScaleGroups: object -> list` + - **DeleteNodePool** + - 响应参数变更 + - `+ status.scaleGroupStatuses` + - `* spec.extensionScaleGroups: object -> list` + - **CreateNodePool** + - 请求参数变更 + - `+ status.scaleGroupStatuses` + - `* spec.extensionScaleGroups: object -> list` + - 响应参数变更 + - `+ status.scaleGroupStatuses` + - `* spec.extensionScaleGroups: object -> list` + - **ListNodePools** + - 响应参数变更 + - `+ items.status.scaleGroupStatuses` + - `* items.spec.extensionScaleGroups: object -> list` + +### HuaweiCloud SDK CDM + +- _新增特性_ + - 支持以下接口: + - `ShowAvailabilityZones` + - `ShowDatastores` + - `ShowFlavors` + - `ShowFlavorDetail` + - `ShowEnterpriseProjects` + - `ShowClusterEnterpriseProjects` + - `ShowInstanceDetail` + - `ModifyCluster` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK CloudPond + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ListEdgeSiteMetrics** + - 请求参数变更 + - `+ dim: enum value [storage_pool]` + - **ListEdgeSites** + - 请求参数变更 + - `+ enterprise_project_id` + - 响应参数变更 + - `+ edge_sites.enterprise_project_id` + - **CreateEdgeSite** + - 请求参数变更 + - `+ edge_site.enterprise_project_id` + - 响应参数变更 + - `+ edge_site.enterprise_project_id` + - **ShowEdgeSite** + - 响应参数变更 + - `+ edge_site.enterprise_project_id` + - **UpdateEdgeSite** + - 响应参数变更 + - `+ edge_site.enterprise_project_id` + - **ListRacks** + - 响应参数变更 + - `+ racks.product_info` + - `+ racks.storage_unit.storage_type: enum value [SAS_SD,SSD_SD,SAS_ARM,SSD_ARM]` + - **ShowRack** + - 响应参数变更 + - `+ rack.product_info` + - `+ rack.storage_unit.storage_type: enum value [SAS_SD,SSD_SD,SAS_ARM,SSD_ARM]` + - **ListStoragePools** + - 响应参数变更 + - `+ storage_pools.product_info` + - `+ storage_pools.storage_type: enum value [SAS_SD,SSD_SD,SAS_ARM,SSD_ARM]` + - **ShowStoragePool** + - 响应参数变更 + - `+ storage_pool.product_info` + - `+ storage_pool.storage_type: enum value [SAS_SD,SSD_SD,SAS_ARM,SSD_ARM]` + +### HuaweiCloud SDK Config + +- _新增特性_ + - 支持接口`CollectRemediationExecutionStatusesSummary` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK DAS + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ListSpaceAnalysis** + - 请求参数变更 + - `+ datastore_type: enum value [SQLServer]` + +### HuaweiCloud SDK DCS + +- _新增特性_ + - 支持接口`BatchRestartOnlineMigrationTasks` +- _解决问题_ + - 无 +- _特性变更_ + - **BatchStopMigrationTasks** + - 响应参数变更 + - `+ migration_tasks.error_msg` + - `+ migration_tasks.error_code` + +### HuaweiCloud SDK DLI + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ShowQueue** + - 响应参数变更 + - `+ default_spark_version` + - `+ support_hetu_engine_versions` + - `+ support_spark_versions` + - `+ default_hetu_engine_version` + - `+ support_flink_jar_versions` + - `+ support_flink_sql_versions` + - `+ default_flink_sql_version` + - `+ default_flink_jar_version` + - **ListQueues** + - 响应参数变更 + - `+ queues.support_spark_versions` + - `+ queues.default_spark_version` + - `+ queues.support_hetu_engine_versions` + - `+ queues.default_hetu_engine_version` + - `+ queues.support_flink_sql_versions` + - `+ queues.default_flink_sql_version` + - `+ queues.support_flink_jar_versions` + - `+ queues.default_flink_jar_version` + +### HuaweiCloud SDK EIP + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **UpdatePrePaidBandwidth** + - 请求参数变更 + - `+ extendParam.period_type` + - `+ extendParam.period_num` + - **ListEipBandwidths** + - 响应参数变更 + - `* eip_bandwidths.tenant_id: uuid -> string` + - **ListProjectGeipBindings** + - 响应参数变更 + - `* geip_bindings.vnic.vni: int32 -> string` + +### HuaweiCloud SDK ELB + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ListAvailabilityZones** + - 响应参数变更 + - `+ spec_code` + - **ListFlavors** + - 请求参数变更 + - `- loadbalancer_type` + - **ShowLoadBalancer** + - 响应参数变更 + - `+ loadbalancer.gw_flavor_id` + - `+ loadbalancer.loadbalancer_type` + - **UpdateLoadBalancer** + - 响应参数变更 + - `+ loadbalancer.gw_flavor_id` + - `+ loadbalancer.loadbalancer_type` + - **BatchAddAvailableZones** + - 响应参数变更 + - `+ loadbalancer.gw_flavor_id` + - `+ loadbalancer.loadbalancer_type` + - **BatchRemoveAvailableZones** + - 响应参数变更 + - `+ loadbalancer.gw_flavor_id` + - `+ loadbalancer.loadbalancer_type` + - **ListLoadBalancers** + - 响应参数变更 + - `+ loadbalancers.gw_flavor_id` + - `+ loadbalancers.loadbalancer_type` + - **CreateLoadBalancer** + - 响应参数变更 + - `+ loadbalancer.gw_flavor_id` + - `+ loadbalancer.loadbalancer_type` + +### HuaweiCloud SDK GaussDBforopenGauss + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **CreateInstance** + - 请求参数变更 + - `+ ha.instance_mode` + - **ShowBatchUpgradeCandidateVersions** + - 响应参数变更 + - `+ hotfix_rollback_infos` + +### HuaweiCloud SDK IMS + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ListImages** + - 请求参数变更 + - `+ visibility: enum value [shared]` + - 响应参数变更 + - `+ images.visibility: enum value [shared]` + - **UpdateImage** + - 响应参数变更 + - `+ visibility: enum value [shared]` + +### HuaweiCloud SDK KooMessage + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **UpdatePubInfo** + - 请求参数变更 + - `+ areas_for_auto_get_port` + - **ShowTemplateVideoThumbnail** + - 响应参数变更 + - `+ data.obs_bucket_name` + - `+ data.domain_id` + - `+ data.size` + - `+ data.obs_file_url` + - **ListPubInfos** + - 响应参数变更 + - `+ data.data.approve_state` + - `+ data.data.areas_for_auto_get_port` + - **ListAimTemplates** + - 响应参数变更 + - `+ templates.match_type` + - `+ templates.card_id` + - `+ templates.sub_type` + - `+ templates.preview_url` + - `+ templates.factory_info.tpl_id` + - **ListAimTemplateMaterials** + - 响应参数变更 + - `+ data.results.thumbnail.obs_file_url` + - `+ data.results.thumbnail.size` + - **CreatePubInfo** + - 请求参数变更 + - `+ pub_request_body.areas_for_auto_get_port` + - **ListMenus** + - 响应参数变更 + - `+ data.data.company_id` + - `+ data.data.company_name` + +### HuaweiCloud SDK LTS + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ListLogs** + - 请求参数变更 + - `+ query` + - `+ is_analysis_query` + - 响应参数变更 + - `+ analysisLogs` + +### HuaweiCloud SDK OCR + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **RecognizeTransportationLicense** + - 响应参数变更 + - `+ result.expiry_date` + - `+ result.review_expiry_date` + - `+ result.assessed_technical_level` + +### HuaweiCloud SDK ServiceStage + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **UpdateComponentAction** + - 请求参数变更 + - `+ action: enum value [rollback_current]` + - **ShowComponentInfo** + - 响应参数变更 + - `+ swimlane_id` + - `+ deploy_strategy.gray_release.replica_surge_mode` + - `+ deploy_strategy.gray_release.deployment_mode` + - `+ deploy_strategy.gray_release.rule_match_mode` + - `+ deploy_strategy.gray_release.rules` + - `+ deploy_strategy.gray_release.type: enum value [WEIGHT,CONTENT]` + - `- deploy_strategy.gray_release.type: enum value [weight,content]` + - **ModifyComponent** + - 请求参数变更 + - `+ swimlane_id` + - `+ deploy_strategy.gray_release.replica_surge_mode` + - `+ deploy_strategy.gray_release.deployment_mode` + - `+ deploy_strategy.gray_release.rule_match_mode` + - `+ deploy_strategy.gray_release.rules` + - `+ deploy_strategy.gray_release.type: enum value [WEIGHT,CONTENT]` + - `- deploy_strategy.gray_release.type: enum value [weight,content]` + - **CreateComponent** + - 请求参数变更 + - `+ swimlane_id` + - `+ deploy_strategy.gray_release.replica_surge_mode` + - `+ deploy_strategy.gray_release.deployment_mode` + - `+ deploy_strategy.gray_release.rule_match_mode` + - `+ deploy_strategy.gray_release.rules` + - `+ deploy_strategy.gray_release.type: enum value [WEIGHT,CONTENT]` + - `- deploy_strategy.gray_release.type: enum value [weight,content]` + +### HuaweiCloud SDK SMS + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ShowTask** + - 响应参数变更 + - `- exist_server` + - **UpdateTask** + - 请求参数变更 + - `+ exist_server` + +### HuaweiCloud SDK VPCEP + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ListEndpointInfoDetails** + - 响应参数变更 + - `+ policy_statement.Effect: enum value [Deny]` + - `- policy_statement.Effect: enum value [Refuse]` + - **UpdateEndpointWhite** + - 响应参数变更 + - `+ policy_statement.Effect: enum value [Deny]` + - `- policy_statement.Effect: enum value [Refuse]` + - **UpdateEndpointPolicy** + - 请求参数变更 + - `+ policy_statement.Effect: enum value [Deny]` + - `- policy_statement.Effect: enum value [Refuse]` + - 响应参数变更 + - `+ policy_statement.Effect: enum value [Deny]` + - `- policy_statement.Effect: enum value [Refuse]` + - **DeleteEndpointPolicy** + - 响应参数变更 + - `+ policy_statement.Effect: enum value [Deny]` + - `- policy_statement.Effect: enum value [Refuse]` + - **CreateEndpoint** + - 请求参数变更 + - `+ policy_statement.Effect: enum value [Deny]` + - `- policy_statement.Effect: enum value [Refuse]` + - 响应参数变更 + - `+ policy_statement.Effect: enum value [Deny]` + - `- policy_statement.Effect: enum value [Refuse]` + - **ListEndpoints** + - 响应参数变更 + - `+ endpoints.policy_statement.Effect: enum value [Deny]` + - `- endpoints.policy_statement.Effect: enum value [Refuse]` + +### HuaweiCloud SDK VPN + +- _新增特性_ + - 支持接口`UpdatePostpaidVgwSpecification` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + # 3.1.109 2024-08-08 ### HuaweiCloud SDK Config diff --git a/VERSION b/VERSION index 8dd544f29c..579728d4d1 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -3.1.109 +3.1.110 diff --git a/huaweicloud-sdk-aad/requirements.txt b/huaweicloud-sdk-aad/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-aad/requirements.txt +++ b/huaweicloud-sdk-aad/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-aad/setup.py b/huaweicloud-sdk-aad/setup.py index 4443f0b882..da3e89bfcb 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-all/requirements.txt b/huaweicloud-sdk-all/requirements.txt index 610b141a1e..aa85880361 100644 --- a/huaweicloud-sdk-all/requirements.txt +++ b/huaweicloud-sdk-all/requirements.txt @@ -1,164 +1,165 @@ -huaweicloudsdkcore == 3.1.109 -huaweicloudsdkaad == 3.1.109 -huaweicloudsdkantiddos == 3.1.109 -huaweicloudsdkaom == 3.1.109 -huaweicloudsdkaos == 3.1.109 -huaweicloudsdkapig == 3.1.109 -huaweicloudsdkapm == 3.1.109 -huaweicloudsdkas == 3.1.109 -huaweicloudsdkasm == 3.1.109 -huaweicloudsdkbcs == 3.1.109 -huaweicloudsdkbms == 3.1.109 -huaweicloudsdkbss == 3.1.109 -huaweicloudsdkbssintl == 3.1.109 -huaweicloudsdkcae == 3.1.109 -huaweicloudsdkcampusgo == 3.1.109 -huaweicloudsdkcbh == 3.1.109 -huaweicloudsdkcbr == 3.1.109 -huaweicloudsdkcbs == 3.1.109 -huaweicloudsdkcc == 3.1.109 -huaweicloudsdkcce == 3.1.109 -huaweicloudsdkccm == 3.1.109 -huaweicloudsdkcdm == 3.1.109 -huaweicloudsdkcdn == 3.1.109 -huaweicloudsdkces == 3.1.109 -huaweicloudsdkcfw == 3.1.109 -huaweicloudsdkcgs == 3.1.109 -huaweicloudsdkclassroom == 3.1.109 -huaweicloudsdkcloudide == 3.1.109 -huaweicloudsdkcloudpond == 3.1.109 -huaweicloudsdkcloudrtc == 3.1.109 -huaweicloudsdkcloudtable == 3.1.109 -huaweicloudsdkcloudtest == 3.1.109 -huaweicloudsdkcodeartsartifact == 3.1.109 -huaweicloudsdkcodeartsbuild == 3.1.109 -huaweicloudsdkcodeartscheck == 3.1.109 -huaweicloudsdkcodeartsdeploy == 3.1.109 -huaweicloudsdkcodeartsgovernance == 3.1.109 -huaweicloudsdkcodeartsinspector == 3.1.109 -huaweicloudsdkcodeartspipeline == 3.1.109 -huaweicloudsdkcodecraft == 3.1.109 -huaweicloudsdkcodehub == 3.1.109 -huaweicloudsdkconfig == 3.1.109 -huaweicloudsdkcph == 3.1.109 -huaweicloudsdkcpts == 3.1.109 -huaweicloudsdkcse == 3.1.109 -huaweicloudsdkcsms == 3.1.109 -huaweicloudsdkcss == 3.1.109 -huaweicloudsdkcts == 3.1.109 -huaweicloudsdkdas == 3.1.109 -huaweicloudsdkdataartsstudio == 3.1.109 -huaweicloudsdkdbss == 3.1.109 -huaweicloudsdkdc == 3.1.109 -huaweicloudsdkdcs == 3.1.109 -huaweicloudsdkddm == 3.1.109 -huaweicloudsdkdds == 3.1.109 -huaweicloudsdkdeh == 3.1.109 -huaweicloudsdkdevstar == 3.1.109 -huaweicloudsdkdgc == 3.1.109 -huaweicloudsdkdis == 3.1.109 -huaweicloudsdkdlf == 3.1.109 -huaweicloudsdkdli == 3.1.109 -huaweicloudsdkdns == 3.1.109 -huaweicloudsdkdris == 3.1.109 -huaweicloudsdkdrs == 3.1.109 -huaweicloudsdkdsc == 3.1.109 -huaweicloudsdkdwr == 3.1.109 -huaweicloudsdkdws == 3.1.109 -huaweicloudsdkec == 3.1.109 -huaweicloudsdkecs == 3.1.109 -huaweicloudsdkedgesec == 3.1.109 -huaweicloudsdkeg == 3.1.109 -huaweicloudsdkeihealth == 3.1.109 -huaweicloudsdkeip == 3.1.109 -huaweicloudsdkelb == 3.1.109 -huaweicloudsdkeps == 3.1.109 -huaweicloudsdker == 3.1.109 -huaweicloudsdkevs == 3.1.109 -huaweicloudsdkfrs == 3.1.109 -huaweicloudsdkfunctiongraph == 3.1.109 -huaweicloudsdkga == 3.1.109 -huaweicloudsdkgaussdb == 3.1.109 -huaweicloudsdkgaussdbfornosql == 3.1.109 -huaweicloudsdkgaussdbforopengauss == 3.1.109 -huaweicloudsdkgeip == 3.1.109 -huaweicloudsdkges == 3.1.109 -huaweicloudsdkgsl == 3.1.109 -huaweicloudsdkhilens == 3.1.109 -huaweicloudsdkhss == 3.1.109 -huaweicloudsdkiam == 3.1.109 -huaweicloudsdkiamaccessanalyzer == 3.1.109 -huaweicloudsdkidentitycenter == 3.1.109 -huaweicloudsdkidentitycenterstore == 3.1.109 -huaweicloudsdkidme == 3.1.109 -huaweicloudsdkidmeclassicapi == 3.1.109 -huaweicloudsdkiec == 3.1.109 -huaweicloudsdkief == 3.1.109 -huaweicloudsdkimage == 3.1.109 -huaweicloudsdkimagesearch == 3.1.109 -huaweicloudsdkims == 3.1.109 -huaweicloudsdkiotanalytics == 3.1.109 -huaweicloudsdkiotda == 3.1.109 -huaweicloudsdkiotdm == 3.1.109 -huaweicloudsdkiotedge == 3.1.109 -huaweicloudsdkivs == 3.1.109 -huaweicloudsdkkafka == 3.1.109 -huaweicloudsdkkms == 3.1.109 -huaweicloudsdkkoomessage == 3.1.109 -huaweicloudsdkkps == 3.1.109 -huaweicloudsdklakeformation == 3.1.109 -huaweicloudsdklive == 3.1.109 -huaweicloudsdklts == 3.1.109 -huaweicloudsdkmapds == 3.1.109 -huaweicloudsdkmas == 3.1.109 -huaweicloudsdkmeeting == 3.1.109 -huaweicloudsdkmetastudio == 3.1.109 -huaweicloudsdkmoderation == 3.1.109 -huaweicloudsdkmpc == 3.1.109 -huaweicloudsdkmrs == 3.1.109 -huaweicloudsdkmsgsms == 3.1.109 -huaweicloudsdkmssi == 3.1.109 -huaweicloudsdknat == 3.1.109 -huaweicloudsdknlp == 3.1.109 -huaweicloudsdkobs == 3.1.109 -huaweicloudsdkocr == 3.1.109 -huaweicloudsdkoctopus == 3.1.109 -huaweicloudsdkoms == 3.1.109 -huaweicloudsdkoptverse == 3.1.109 -huaweicloudsdkorganizations == 3.1.109 -huaweicloudsdkorgid == 3.1.109 -huaweicloudsdkoroas == 3.1.109 -huaweicloudsdkosm == 3.1.109 -huaweicloudsdkpangulargemodels == 3.1.109 -huaweicloudsdkprojectman == 3.1.109 -huaweicloudsdkrabbitmq == 3.1.109 -huaweicloudsdkram == 3.1.109 -huaweicloudsdkrds == 3.1.109 -huaweicloudsdkres == 3.1.109 -huaweicloudsdkrgc == 3.1.109 -huaweicloudsdkrms == 3.1.109 -huaweicloudsdkrocketmq == 3.1.109 -huaweicloudsdkroma == 3.1.109 -huaweicloudsdksa == 3.1.109 -huaweicloudsdkscm == 3.1.109 -huaweicloudsdksdrs == 3.1.109 -huaweicloudsdksecmaster == 3.1.109 -huaweicloudsdkservicestage == 3.1.109 -huaweicloudsdksfsturbo == 3.1.109 -huaweicloudsdksis == 3.1.109 -huaweicloudsdksmn == 3.1.109 -huaweicloudsdksms == 3.1.109 -huaweicloudsdksts == 3.1.109 -huaweicloudsdkswr == 3.1.109 -huaweicloudsdktics == 3.1.109 -huaweicloudsdktms == 3.1.109 -huaweicloudsdkugo == 3.1.109 -huaweicloudsdkvas == 3.1.109 -huaweicloudsdkvcm == 3.1.109 -huaweicloudsdkvod == 3.1.109 -huaweicloudsdkvpc == 3.1.109 -huaweicloudsdkvpcep == 3.1.109 -huaweicloudsdkvpn == 3.1.109 -huaweicloudsdkwaf == 3.1.109 -huaweicloudsdkworkspace == 3.1.109 -huaweicloudsdkworkspaceapp == 3.1.109 +huaweicloudsdkcore == 3.1.110 +huaweicloudsdkaad == 3.1.110 +huaweicloudsdkantiddos == 3.1.110 +huaweicloudsdkaom == 3.1.110 +huaweicloudsdkaos == 3.1.110 +huaweicloudsdkapig == 3.1.110 +huaweicloudsdkapm == 3.1.110 +huaweicloudsdkas == 3.1.110 +huaweicloudsdkasm == 3.1.110 +huaweicloudsdkbcs == 3.1.110 +huaweicloudsdkbms == 3.1.110 +huaweicloudsdkbss == 3.1.110 +huaweicloudsdkbssintl == 3.1.110 +huaweicloudsdkcae == 3.1.110 +huaweicloudsdkcampusgo == 3.1.110 +huaweicloudsdkcbh == 3.1.110 +huaweicloudsdkcbr == 3.1.110 +huaweicloudsdkcbs == 3.1.110 +huaweicloudsdkcc == 3.1.110 +huaweicloudsdkcce == 3.1.110 +huaweicloudsdkccm == 3.1.110 +huaweicloudsdkcdm == 3.1.110 +huaweicloudsdkcdn == 3.1.110 +huaweicloudsdkces == 3.1.110 +huaweicloudsdkcfw == 3.1.110 +huaweicloudsdkcgs == 3.1.110 +huaweicloudsdkclassroom == 3.1.110 +huaweicloudsdkcloudide == 3.1.110 +huaweicloudsdkcloudpond == 3.1.110 +huaweicloudsdkcloudrtc == 3.1.110 +huaweicloudsdkcloudtable == 3.1.110 +huaweicloudsdkcloudtest == 3.1.110 +huaweicloudsdkcoc == 3.1.110 +huaweicloudsdkcodeartsartifact == 3.1.110 +huaweicloudsdkcodeartsbuild == 3.1.110 +huaweicloudsdkcodeartscheck == 3.1.110 +huaweicloudsdkcodeartsdeploy == 3.1.110 +huaweicloudsdkcodeartsgovernance == 3.1.110 +huaweicloudsdkcodeartsinspector == 3.1.110 +huaweicloudsdkcodeartspipeline == 3.1.110 +huaweicloudsdkcodecraft == 3.1.110 +huaweicloudsdkcodehub == 3.1.110 +huaweicloudsdkconfig == 3.1.110 +huaweicloudsdkcph == 3.1.110 +huaweicloudsdkcpts == 3.1.110 +huaweicloudsdkcse == 3.1.110 +huaweicloudsdkcsms == 3.1.110 +huaweicloudsdkcss == 3.1.110 +huaweicloudsdkcts == 3.1.110 +huaweicloudsdkdas == 3.1.110 +huaweicloudsdkdataartsstudio == 3.1.110 +huaweicloudsdkdbss == 3.1.110 +huaweicloudsdkdc == 3.1.110 +huaweicloudsdkdcs == 3.1.110 +huaweicloudsdkddm == 3.1.110 +huaweicloudsdkdds == 3.1.110 +huaweicloudsdkdeh == 3.1.110 +huaweicloudsdkdevstar == 3.1.110 +huaweicloudsdkdgc == 3.1.110 +huaweicloudsdkdis == 3.1.110 +huaweicloudsdkdlf == 3.1.110 +huaweicloudsdkdli == 3.1.110 +huaweicloudsdkdns == 3.1.110 +huaweicloudsdkdris == 3.1.110 +huaweicloudsdkdrs == 3.1.110 +huaweicloudsdkdsc == 3.1.110 +huaweicloudsdkdwr == 3.1.110 +huaweicloudsdkdws == 3.1.110 +huaweicloudsdkec == 3.1.110 +huaweicloudsdkecs == 3.1.110 +huaweicloudsdkedgesec == 3.1.110 +huaweicloudsdkeg == 3.1.110 +huaweicloudsdkeihealth == 3.1.110 +huaweicloudsdkeip == 3.1.110 +huaweicloudsdkelb == 3.1.110 +huaweicloudsdkeps == 3.1.110 +huaweicloudsdker == 3.1.110 +huaweicloudsdkevs == 3.1.110 +huaweicloudsdkfrs == 3.1.110 +huaweicloudsdkfunctiongraph == 3.1.110 +huaweicloudsdkga == 3.1.110 +huaweicloudsdkgaussdb == 3.1.110 +huaweicloudsdkgaussdbfornosql == 3.1.110 +huaweicloudsdkgaussdbforopengauss == 3.1.110 +huaweicloudsdkgeip == 3.1.110 +huaweicloudsdkges == 3.1.110 +huaweicloudsdkgsl == 3.1.110 +huaweicloudsdkhilens == 3.1.110 +huaweicloudsdkhss == 3.1.110 +huaweicloudsdkiam == 3.1.110 +huaweicloudsdkiamaccessanalyzer == 3.1.110 +huaweicloudsdkidentitycenter == 3.1.110 +huaweicloudsdkidentitycenterstore == 3.1.110 +huaweicloudsdkidme == 3.1.110 +huaweicloudsdkidmeclassicapi == 3.1.110 +huaweicloudsdkiec == 3.1.110 +huaweicloudsdkief == 3.1.110 +huaweicloudsdkimage == 3.1.110 +huaweicloudsdkimagesearch == 3.1.110 +huaweicloudsdkims == 3.1.110 +huaweicloudsdkiotanalytics == 3.1.110 +huaweicloudsdkiotda == 3.1.110 +huaweicloudsdkiotdm == 3.1.110 +huaweicloudsdkiotedge == 3.1.110 +huaweicloudsdkivs == 3.1.110 +huaweicloudsdkkafka == 3.1.110 +huaweicloudsdkkms == 3.1.110 +huaweicloudsdkkoomessage == 3.1.110 +huaweicloudsdkkps == 3.1.110 +huaweicloudsdklakeformation == 3.1.110 +huaweicloudsdklive == 3.1.110 +huaweicloudsdklts == 3.1.110 +huaweicloudsdkmapds == 3.1.110 +huaweicloudsdkmas == 3.1.110 +huaweicloudsdkmeeting == 3.1.110 +huaweicloudsdkmetastudio == 3.1.110 +huaweicloudsdkmoderation == 3.1.110 +huaweicloudsdkmpc == 3.1.110 +huaweicloudsdkmrs == 3.1.110 +huaweicloudsdkmsgsms == 3.1.110 +huaweicloudsdkmssi == 3.1.110 +huaweicloudsdknat == 3.1.110 +huaweicloudsdknlp == 3.1.110 +huaweicloudsdkobs == 3.1.110 +huaweicloudsdkocr == 3.1.110 +huaweicloudsdkoctopus == 3.1.110 +huaweicloudsdkoms == 3.1.110 +huaweicloudsdkoptverse == 3.1.110 +huaweicloudsdkorganizations == 3.1.110 +huaweicloudsdkorgid == 3.1.110 +huaweicloudsdkoroas == 3.1.110 +huaweicloudsdkosm == 3.1.110 +huaweicloudsdkpangulargemodels == 3.1.110 +huaweicloudsdkprojectman == 3.1.110 +huaweicloudsdkrabbitmq == 3.1.110 +huaweicloudsdkram == 3.1.110 +huaweicloudsdkrds == 3.1.110 +huaweicloudsdkres == 3.1.110 +huaweicloudsdkrgc == 3.1.110 +huaweicloudsdkrms == 3.1.110 +huaweicloudsdkrocketmq == 3.1.110 +huaweicloudsdkroma == 3.1.110 +huaweicloudsdksa == 3.1.110 +huaweicloudsdkscm == 3.1.110 +huaweicloudsdksdrs == 3.1.110 +huaweicloudsdksecmaster == 3.1.110 +huaweicloudsdkservicestage == 3.1.110 +huaweicloudsdksfsturbo == 3.1.110 +huaweicloudsdksis == 3.1.110 +huaweicloudsdksmn == 3.1.110 +huaweicloudsdksms == 3.1.110 +huaweicloudsdksts == 3.1.110 +huaweicloudsdkswr == 3.1.110 +huaweicloudsdktics == 3.1.110 +huaweicloudsdktms == 3.1.110 +huaweicloudsdkugo == 3.1.110 +huaweicloudsdkvas == 3.1.110 +huaweicloudsdkvcm == 3.1.110 +huaweicloudsdkvod == 3.1.110 +huaweicloudsdkvpc == 3.1.110 +huaweicloudsdkvpcep == 3.1.110 +huaweicloudsdkvpn == 3.1.110 +huaweicloudsdkwaf == 3.1.110 +huaweicloudsdkworkspace == 3.1.110 +huaweicloudsdkworkspaceapp == 3.1.110 diff --git a/huaweicloud-sdk-all/setup.py b/huaweicloud-sdk-all/setup.py index 68566c7fbd..992f2f2c0f 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.109" +VERSION = "3.1.110" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -34,170 +34,171 @@ LONG_DESCRIPTION = f.read() INSTALL_REQUIRES = [ - 'huaweicloudsdkcore==3.1.109', - 'huaweicloudsdkaad==3.1.109', - 'huaweicloudsdkantiddos==3.1.109', - 'huaweicloudsdkaom==3.1.109', - 'huaweicloudsdkaos==3.1.109', - 'huaweicloudsdkapig==3.1.109', - 'huaweicloudsdkapm==3.1.109', - 'huaweicloudsdkas==3.1.109', - 'huaweicloudsdkasm==3.1.109', - 'huaweicloudsdkbcs==3.1.109', - 'huaweicloudsdkbms==3.1.109', - 'huaweicloudsdkbss==3.1.109', - 'huaweicloudsdkbssintl==3.1.109', - 'huaweicloudsdkcae==3.1.109', - 'huaweicloudsdkcampusgo==3.1.109', - 'huaweicloudsdkcbh==3.1.109', - 'huaweicloudsdkcbr==3.1.109', - 'huaweicloudsdkcbs==3.1.109', - 'huaweicloudsdkcc==3.1.109', - 'huaweicloudsdkcce==3.1.109', - 'huaweicloudsdkccm==3.1.109', - 'huaweicloudsdkcdm==3.1.109', - 'huaweicloudsdkcdn==3.1.109', - 'huaweicloudsdkces==3.1.109', - 'huaweicloudsdkcfw==3.1.109', - 'huaweicloudsdkcgs==3.1.109', - 'huaweicloudsdkclassroom==3.1.109', - 'huaweicloudsdkcloudide==3.1.109', - 'huaweicloudsdkcloudpond==3.1.109', - 'huaweicloudsdkcloudrtc==3.1.109', - 'huaweicloudsdkcloudtable==3.1.109', - 'huaweicloudsdkcloudtest==3.1.109', - 'huaweicloudsdkcodeartsartifact==3.1.109', - 'huaweicloudsdkcodeartsbuild==3.1.109', - 'huaweicloudsdkcodeartscheck==3.1.109', - 'huaweicloudsdkcodeartsdeploy==3.1.109', - 'huaweicloudsdkcodeartsgovernance==3.1.109', - 'huaweicloudsdkcodeartsinspector==3.1.109', - 'huaweicloudsdkcodeartspipeline==3.1.109', - 'huaweicloudsdkcodecraft==3.1.109', - 'huaweicloudsdkcodehub==3.1.109', - 'huaweicloudsdkconfig==3.1.109', - 'huaweicloudsdkcph==3.1.109', - 'huaweicloudsdkcpts==3.1.109', - 'huaweicloudsdkcse==3.1.109', - 'huaweicloudsdkcsms==3.1.109', - 'huaweicloudsdkcss==3.1.109', - 'huaweicloudsdkcts==3.1.109', - 'huaweicloudsdkdas==3.1.109', - 'huaweicloudsdkdataartsstudio==3.1.109', - 'huaweicloudsdkdbss==3.1.109', - 'huaweicloudsdkdc==3.1.109', - 'huaweicloudsdkdcs==3.1.109', - 'huaweicloudsdkddm==3.1.109', - 'huaweicloudsdkdds==3.1.109', - 'huaweicloudsdkdeh==3.1.109', - 'huaweicloudsdkdevstar==3.1.109', - 'huaweicloudsdkdgc==3.1.109', - 'huaweicloudsdkdis==3.1.109', - 'huaweicloudsdkdlf==3.1.109', - 'huaweicloudsdkdli==3.1.109', - 'huaweicloudsdkdns==3.1.109', - 'huaweicloudsdkdris==3.1.109', - 'huaweicloudsdkdrs==3.1.109', - 'huaweicloudsdkdsc==3.1.109', - 'huaweicloudsdkdwr==3.1.109', - 'huaweicloudsdkdws==3.1.109', - 'huaweicloudsdkec==3.1.109', - 'huaweicloudsdkecs==3.1.109', - 'huaweicloudsdkedgesec==3.1.109', - 'huaweicloudsdkeg==3.1.109', - 'huaweicloudsdkeihealth==3.1.109', - 'huaweicloudsdkeip==3.1.109', - 'huaweicloudsdkelb==3.1.109', - 'huaweicloudsdkeps==3.1.109', - 'huaweicloudsdker==3.1.109', - 'huaweicloudsdkevs==3.1.109', - 'huaweicloudsdkfrs==3.1.109', - 'huaweicloudsdkfunctiongraph==3.1.109', - 'huaweicloudsdkga==3.1.109', - 'huaweicloudsdkgaussdb==3.1.109', - 'huaweicloudsdkgaussdbfornosql==3.1.109', - 'huaweicloudsdkgaussdbforopengauss==3.1.109', - 'huaweicloudsdkgeip==3.1.109', - 'huaweicloudsdkges==3.1.109', - 'huaweicloudsdkgsl==3.1.109', - 'huaweicloudsdkhilens==3.1.109', - 'huaweicloudsdkhss==3.1.109', - 'huaweicloudsdkiam==3.1.109', - 'huaweicloudsdkiamaccessanalyzer==3.1.109', - 'huaweicloudsdkidentitycenter==3.1.109', - 'huaweicloudsdkidentitycenterstore==3.1.109', - 'huaweicloudsdkidme==3.1.109', - 'huaweicloudsdkidmeclassicapi==3.1.109', - 'huaweicloudsdkiec==3.1.109', - 'huaweicloudsdkief==3.1.109', - 'huaweicloudsdkimage==3.1.109', - 'huaweicloudsdkimagesearch==3.1.109', - 'huaweicloudsdkims==3.1.109', - 'huaweicloudsdkiotanalytics==3.1.109', - 'huaweicloudsdkiotda==3.1.109', - 'huaweicloudsdkiotdm==3.1.109', - 'huaweicloudsdkiotedge==3.1.109', - 'huaweicloudsdkivs==3.1.109', - 'huaweicloudsdkkafka==3.1.109', - 'huaweicloudsdkkms==3.1.109', - 'huaweicloudsdkkoomessage==3.1.109', - 'huaweicloudsdkkps==3.1.109', - 'huaweicloudsdklakeformation==3.1.109', - 'huaweicloudsdklive==3.1.109', - 'huaweicloudsdklts==3.1.109', - 'huaweicloudsdkmapds==3.1.109', - 'huaweicloudsdkmas==3.1.109', - 'huaweicloudsdkmeeting==3.1.109', - 'huaweicloudsdkmetastudio==3.1.109', - 'huaweicloudsdkmoderation==3.1.109', - 'huaweicloudsdkmpc==3.1.109', - 'huaweicloudsdkmrs==3.1.109', - 'huaweicloudsdkmsgsms==3.1.109', - 'huaweicloudsdkmssi==3.1.109', - 'huaweicloudsdknat==3.1.109', - 'huaweicloudsdknlp==3.1.109', - 'huaweicloudsdkobs==3.1.109', - 'huaweicloudsdkocr==3.1.109', - 'huaweicloudsdkoctopus==3.1.109', - 'huaweicloudsdkoms==3.1.109', - 'huaweicloudsdkoptverse==3.1.109', - 'huaweicloudsdkorganizations==3.1.109', - 'huaweicloudsdkorgid==3.1.109', - 'huaweicloudsdkoroas==3.1.109', - 'huaweicloudsdkosm==3.1.109', - 'huaweicloudsdkpangulargemodels==3.1.109', - 'huaweicloudsdkprojectman==3.1.109', - 'huaweicloudsdkrabbitmq==3.1.109', - 'huaweicloudsdkram==3.1.109', - 'huaweicloudsdkrds==3.1.109', - 'huaweicloudsdkres==3.1.109', - 'huaweicloudsdkrgc==3.1.109', - 'huaweicloudsdkrms==3.1.109', - 'huaweicloudsdkrocketmq==3.1.109', - 'huaweicloudsdkroma==3.1.109', - 'huaweicloudsdksa==3.1.109', - 'huaweicloudsdkscm==3.1.109', - 'huaweicloudsdksdrs==3.1.109', - 'huaweicloudsdksecmaster==3.1.109', - 'huaweicloudsdkservicestage==3.1.109', - 'huaweicloudsdksfsturbo==3.1.109', - 'huaweicloudsdksis==3.1.109', - 'huaweicloudsdksmn==3.1.109', - 'huaweicloudsdksms==3.1.109', - 'huaweicloudsdksts==3.1.109', - 'huaweicloudsdkswr==3.1.109', - 'huaweicloudsdktics==3.1.109', - 'huaweicloudsdktms==3.1.109', - 'huaweicloudsdkugo==3.1.109', - 'huaweicloudsdkvas==3.1.109', - 'huaweicloudsdkvcm==3.1.109', - 'huaweicloudsdkvod==3.1.109', - 'huaweicloudsdkvpc==3.1.109', - 'huaweicloudsdkvpcep==3.1.109', - 'huaweicloudsdkvpn==3.1.109', - 'huaweicloudsdkwaf==3.1.109', - 'huaweicloudsdkworkspace==3.1.109', - 'huaweicloudsdkworkspaceapp==3.1.109', + 'huaweicloudsdkcore==3.1.110', + 'huaweicloudsdkaad==3.1.110', + 'huaweicloudsdkantiddos==3.1.110', + 'huaweicloudsdkaom==3.1.110', + 'huaweicloudsdkaos==3.1.110', + 'huaweicloudsdkapig==3.1.110', + 'huaweicloudsdkapm==3.1.110', + 'huaweicloudsdkas==3.1.110', + 'huaweicloudsdkasm==3.1.110', + 'huaweicloudsdkbcs==3.1.110', + 'huaweicloudsdkbms==3.1.110', + 'huaweicloudsdkbss==3.1.110', + 'huaweicloudsdkbssintl==3.1.110', + 'huaweicloudsdkcae==3.1.110', + 'huaweicloudsdkcampusgo==3.1.110', + 'huaweicloudsdkcbh==3.1.110', + 'huaweicloudsdkcbr==3.1.110', + 'huaweicloudsdkcbs==3.1.110', + 'huaweicloudsdkcc==3.1.110', + 'huaweicloudsdkcce==3.1.110', + 'huaweicloudsdkccm==3.1.110', + 'huaweicloudsdkcdm==3.1.110', + 'huaweicloudsdkcdn==3.1.110', + 'huaweicloudsdkces==3.1.110', + 'huaweicloudsdkcfw==3.1.110', + 'huaweicloudsdkcgs==3.1.110', + 'huaweicloudsdkclassroom==3.1.110', + 'huaweicloudsdkcloudide==3.1.110', + 'huaweicloudsdkcloudpond==3.1.110', + 'huaweicloudsdkcloudrtc==3.1.110', + 'huaweicloudsdkcloudtable==3.1.110', + 'huaweicloudsdkcloudtest==3.1.110', + 'huaweicloudsdkcoc==3.1.110', + 'huaweicloudsdkcodeartsartifact==3.1.110', + 'huaweicloudsdkcodeartsbuild==3.1.110', + 'huaweicloudsdkcodeartscheck==3.1.110', + 'huaweicloudsdkcodeartsdeploy==3.1.110', + 'huaweicloudsdkcodeartsgovernance==3.1.110', + 'huaweicloudsdkcodeartsinspector==3.1.110', + 'huaweicloudsdkcodeartspipeline==3.1.110', + 'huaweicloudsdkcodecraft==3.1.110', + 'huaweicloudsdkcodehub==3.1.110', + 'huaweicloudsdkconfig==3.1.110', + 'huaweicloudsdkcph==3.1.110', + 'huaweicloudsdkcpts==3.1.110', + 'huaweicloudsdkcse==3.1.110', + 'huaweicloudsdkcsms==3.1.110', + 'huaweicloudsdkcss==3.1.110', + 'huaweicloudsdkcts==3.1.110', + 'huaweicloudsdkdas==3.1.110', + 'huaweicloudsdkdataartsstudio==3.1.110', + 'huaweicloudsdkdbss==3.1.110', + 'huaweicloudsdkdc==3.1.110', + 'huaweicloudsdkdcs==3.1.110', + 'huaweicloudsdkddm==3.1.110', + 'huaweicloudsdkdds==3.1.110', + 'huaweicloudsdkdeh==3.1.110', + 'huaweicloudsdkdevstar==3.1.110', + 'huaweicloudsdkdgc==3.1.110', + 'huaweicloudsdkdis==3.1.110', + 'huaweicloudsdkdlf==3.1.110', + 'huaweicloudsdkdli==3.1.110', + 'huaweicloudsdkdns==3.1.110', + 'huaweicloudsdkdris==3.1.110', + 'huaweicloudsdkdrs==3.1.110', + 'huaweicloudsdkdsc==3.1.110', + 'huaweicloudsdkdwr==3.1.110', + 'huaweicloudsdkdws==3.1.110', + 'huaweicloudsdkec==3.1.110', + 'huaweicloudsdkecs==3.1.110', + 'huaweicloudsdkedgesec==3.1.110', + 'huaweicloudsdkeg==3.1.110', + 'huaweicloudsdkeihealth==3.1.110', + 'huaweicloudsdkeip==3.1.110', + 'huaweicloudsdkelb==3.1.110', + 'huaweicloudsdkeps==3.1.110', + 'huaweicloudsdker==3.1.110', + 'huaweicloudsdkevs==3.1.110', + 'huaweicloudsdkfrs==3.1.110', + 'huaweicloudsdkfunctiongraph==3.1.110', + 'huaweicloudsdkga==3.1.110', + 'huaweicloudsdkgaussdb==3.1.110', + 'huaweicloudsdkgaussdbfornosql==3.1.110', + 'huaweicloudsdkgaussdbforopengauss==3.1.110', + 'huaweicloudsdkgeip==3.1.110', + 'huaweicloudsdkges==3.1.110', + 'huaweicloudsdkgsl==3.1.110', + 'huaweicloudsdkhilens==3.1.110', + 'huaweicloudsdkhss==3.1.110', + 'huaweicloudsdkiam==3.1.110', + 'huaweicloudsdkiamaccessanalyzer==3.1.110', + 'huaweicloudsdkidentitycenter==3.1.110', + 'huaweicloudsdkidentitycenterstore==3.1.110', + 'huaweicloudsdkidme==3.1.110', + 'huaweicloudsdkidmeclassicapi==3.1.110', + 'huaweicloudsdkiec==3.1.110', + 'huaweicloudsdkief==3.1.110', + 'huaweicloudsdkimage==3.1.110', + 'huaweicloudsdkimagesearch==3.1.110', + 'huaweicloudsdkims==3.1.110', + 'huaweicloudsdkiotanalytics==3.1.110', + 'huaweicloudsdkiotda==3.1.110', + 'huaweicloudsdkiotdm==3.1.110', + 'huaweicloudsdkiotedge==3.1.110', + 'huaweicloudsdkivs==3.1.110', + 'huaweicloudsdkkafka==3.1.110', + 'huaweicloudsdkkms==3.1.110', + 'huaweicloudsdkkoomessage==3.1.110', + 'huaweicloudsdkkps==3.1.110', + 'huaweicloudsdklakeformation==3.1.110', + 'huaweicloudsdklive==3.1.110', + 'huaweicloudsdklts==3.1.110', + 'huaweicloudsdkmapds==3.1.110', + 'huaweicloudsdkmas==3.1.110', + 'huaweicloudsdkmeeting==3.1.110', + 'huaweicloudsdkmetastudio==3.1.110', + 'huaweicloudsdkmoderation==3.1.110', + 'huaweicloudsdkmpc==3.1.110', + 'huaweicloudsdkmrs==3.1.110', + 'huaweicloudsdkmsgsms==3.1.110', + 'huaweicloudsdkmssi==3.1.110', + 'huaweicloudsdknat==3.1.110', + 'huaweicloudsdknlp==3.1.110', + 'huaweicloudsdkobs==3.1.110', + 'huaweicloudsdkocr==3.1.110', + 'huaweicloudsdkoctopus==3.1.110', + 'huaweicloudsdkoms==3.1.110', + 'huaweicloudsdkoptverse==3.1.110', + 'huaweicloudsdkorganizations==3.1.110', + 'huaweicloudsdkorgid==3.1.110', + 'huaweicloudsdkoroas==3.1.110', + 'huaweicloudsdkosm==3.1.110', + 'huaweicloudsdkpangulargemodels==3.1.110', + 'huaweicloudsdkprojectman==3.1.110', + 'huaweicloudsdkrabbitmq==3.1.110', + 'huaweicloudsdkram==3.1.110', + 'huaweicloudsdkrds==3.1.110', + 'huaweicloudsdkres==3.1.110', + 'huaweicloudsdkrgc==3.1.110', + 'huaweicloudsdkrms==3.1.110', + 'huaweicloudsdkrocketmq==3.1.110', + 'huaweicloudsdkroma==3.1.110', + 'huaweicloudsdksa==3.1.110', + 'huaweicloudsdkscm==3.1.110', + 'huaweicloudsdksdrs==3.1.110', + 'huaweicloudsdksecmaster==3.1.110', + 'huaweicloudsdkservicestage==3.1.110', + 'huaweicloudsdksfsturbo==3.1.110', + 'huaweicloudsdksis==3.1.110', + 'huaweicloudsdksmn==3.1.110', + 'huaweicloudsdksms==3.1.110', + 'huaweicloudsdksts==3.1.110', + 'huaweicloudsdkswr==3.1.110', + 'huaweicloudsdktics==3.1.110', + 'huaweicloudsdktms==3.1.110', + 'huaweicloudsdkugo==3.1.110', + 'huaweicloudsdkvas==3.1.110', + 'huaweicloudsdkvcm==3.1.110', + 'huaweicloudsdkvod==3.1.110', + 'huaweicloudsdkvpc==3.1.110', + 'huaweicloudsdkvpcep==3.1.110', + 'huaweicloudsdkvpn==3.1.110', + 'huaweicloudsdkwaf==3.1.110', + 'huaweicloudsdkworkspace==3.1.110', + 'huaweicloudsdkworkspaceapp==3.1.110', ] OPTIONS = { diff --git a/huaweicloud-sdk-antiddos/requirements.txt b/huaweicloud-sdk-antiddos/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-antiddos/requirements.txt +++ b/huaweicloud-sdk-antiddos/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-antiddos/setup.py b/huaweicloud-sdk-antiddos/setup.py index 7f6208018b..7362eb4a91 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-aom/requirements.txt b/huaweicloud-sdk-aom/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-aom/requirements.txt +++ b/huaweicloud-sdk-aom/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-aom/setup.py b/huaweicloud-sdk-aom/setup.py index ecdd6965aa..834ca06584 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/aos_async_client.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/aos_async_client.py index 16e726b719..f31a034395 100644 --- a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/aos_async_client.py +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/aos_async_client.py @@ -875,7 +875,7 @@ def create_private_hook_async(self, request): 创建私有hook(CreatePrivateHook) - 创建一个带有初始默认版本的私有hook,创建私有hook的时候需要同时创建一个初始化默认版本,不允许空私有hook的创建。 + 创建一个带有初始默认版本的私有hook,创建私有hook的时候需要同时创建一个初始化的默认版本,不允许空私有hook的创建。 设置配置(Configuration)后的私有hook才会在触发资源栈部署时生效,资源栈使用私有hook的默认版本。若创建私有hook时未指定配置项,则该私有hook在资源栈部署时不生效,后续可通过UpdatePrivateHook API更新配置。 * 支持hook策略模板检验的资源栈服务API: DeployStack @@ -883,9 +883,9 @@ def create_private_hook_async(self, request): * 创建私有hook时指定的版本为初始默认版本。 * 如果同名的私有hook在当前domain_id+region下已经存在,则会返回409。 * 私有hook版本号遵循语义化版本号(Semantic Version),为用户自定义。 - * 资源编排服务只会对私有hook进行浅校验,如文件大小。不进行策略文件语法类校验。若语法类存在错误,则会在hook策略校验生效时报错。 + * 资源编排服务会对私有hook进行校验,如文件大小,策略文件语法校验等。若存在错误,则会创建失败。 * 当前仅支持部署资源前的检测,不支持部署资源过程中的检测。如果通过了部署资源前的检测,资源栈则会继续部署资源。反之会停止部署资源,并记录资源栈事件(stack events)。 - * 仅支持OPA开源引擎识别的,以rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板(用户可以通过policy_uri或policy_body给与策略文件内容)。 + * 仅支持OPA开源引擎识别的,以Rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板(用户可以通过policy_uri或policy_body给与策略文件内容)。 * 策略模板中的决策结果使用object类型的hook_result,hook_result所在包的包名必须使用policy。hook_result格式如下: ``` hook_result := { @@ -981,7 +981,7 @@ def create_private_hook_version_async(self, request): 创建私有hook版本,创建私有hook版本后需要调用UpdatePrivateHook API设置为默认版本才能生效。 * 版本号遵循语义化版本号(Semantic Version),为用户自定义。 * 若hook_name和hook_id同时存在,则资源编排服务会检查是否两个匹配,如果不匹配则会返回400。 - * 资源编排服务只会对私有hook进行浅校验,如文件大小。不进行策略文件语法类校验。若语法类存在错误,则会在hook策略校验生效时报错。 + * 资源编排服务会对私有hook进行校验,如文件大小,策略文件语法校验等。若存在错误,则会创建失败。 Please refer to HUAWEI cloud API Explorer for details. @@ -1274,11 +1274,11 @@ def _show_private_hook_metadata_http_info(self, request): return http_info def show_private_hook_version_metadata_async(self, request): - """获取私有hook版本元数据 + """获取私有hook版本的元数据 - 获取私有hook版本元数据(ShowPrivateHookVersionMetadata) + 获取私有hook版本的元数据(ShowPrivateHookVersionMetadata) - 获取当前私有hook对应的版本的元数据信息 + 获取当前私有hook对应版本的元数据信息 * 具体返回的信息见ShowPrivateHookVersionMetadataResponseBody。 * 如果hook_name和hook_id同时存在,则资源编排服务会检查是否两个匹配,如果不匹配则会返回400。 diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/aos_client.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/aos_client.py index 8d6a441f24..ad6877d2f9 100644 --- a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/aos_client.py +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/aos_client.py @@ -875,7 +875,7 @@ def create_private_hook(self, request): 创建私有hook(CreatePrivateHook) - 创建一个带有初始默认版本的私有hook,创建私有hook的时候需要同时创建一个初始化默认版本,不允许空私有hook的创建。 + 创建一个带有初始默认版本的私有hook,创建私有hook的时候需要同时创建一个初始化的默认版本,不允许空私有hook的创建。 设置配置(Configuration)后的私有hook才会在触发资源栈部署时生效,资源栈使用私有hook的默认版本。若创建私有hook时未指定配置项,则该私有hook在资源栈部署时不生效,后续可通过UpdatePrivateHook API更新配置。 * 支持hook策略模板检验的资源栈服务API: DeployStack @@ -883,9 +883,9 @@ def create_private_hook(self, request): * 创建私有hook时指定的版本为初始默认版本。 * 如果同名的私有hook在当前domain_id+region下已经存在,则会返回409。 * 私有hook版本号遵循语义化版本号(Semantic Version),为用户自定义。 - * 资源编排服务只会对私有hook进行浅校验,如文件大小。不进行策略文件语法类校验。若语法类存在错误,则会在hook策略校验生效时报错。 + * 资源编排服务会对私有hook进行校验,如文件大小,策略文件语法校验等。若存在错误,则会创建失败。 * 当前仅支持部署资源前的检测,不支持部署资源过程中的检测。如果通过了部署资源前的检测,资源栈则会继续部署资源。反之会停止部署资源,并记录资源栈事件(stack events)。 - * 仅支持OPA开源引擎识别的,以rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板(用户可以通过policy_uri或policy_body给与策略文件内容)。 + * 仅支持OPA开源引擎识别的,以Rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板(用户可以通过policy_uri或policy_body给与策略文件内容)。 * 策略模板中的决策结果使用object类型的hook_result,hook_result所在包的包名必须使用policy。hook_result格式如下: ``` hook_result := { @@ -981,7 +981,7 @@ def create_private_hook_version(self, request): 创建私有hook版本,创建私有hook版本后需要调用UpdatePrivateHook API设置为默认版本才能生效。 * 版本号遵循语义化版本号(Semantic Version),为用户自定义。 * 若hook_name和hook_id同时存在,则资源编排服务会检查是否两个匹配,如果不匹配则会返回400。 - * 资源编排服务只会对私有hook进行浅校验,如文件大小。不进行策略文件语法类校验。若语法类存在错误,则会在hook策略校验生效时报错。 + * 资源编排服务会对私有hook进行校验,如文件大小,策略文件语法校验等。若存在错误,则会创建失败。 Please refer to HUAWEI cloud API Explorer for details. @@ -1274,11 +1274,11 @@ def _show_private_hook_metadata_http_info(cls, request): return http_info def show_private_hook_version_metadata(self, request): - """获取私有hook版本元数据 + """获取私有hook版本的元数据 - 获取私有hook版本元数据(ShowPrivateHookVersionMetadata) + 获取私有hook版本的元数据(ShowPrivateHookVersionMetadata) - 获取当前私有hook对应的版本的元数据信息 + 获取当前私有hook对应版本的元数据信息 * 具体返回的信息见ShowPrivateHookVersionMetadataResponseBody。 * 如果hook_name和hook_id同时存在,则资源编排服务会检查是否两个匹配,如果不匹配则会返回400。 diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/create_private_hook_request_body.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/create_private_hook_request_body.py index e3a18cb2a0..837f2490cd 100644 --- a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/create_private_hook_request_body.py +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/create_private_hook_request_body.py @@ -51,9 +51,9 @@ def __init__(self, hook_name=None, hook_version=None, hook_description=None, hoo :type hook_version_description: str :param configuration: :type configuration: :class:`huaweicloudsdkaos.v1.ConfigurationPrimitiveTypeHolderConfiguration` - :param policy_uri: 策略文件的OBS地址。内容仅支持OPA开源引擎识别的,以rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板。 OBS地址支持同类型Region之间进行互相访问(Region分为通用Region和专属Region,通用Region指面向公共租户提供通用云服务的Region;专属Region指只承载同一类业务或只面向特定租户提供业务服务的专用Region) 策略文件当前支持单文件或zip压缩包,单文件需要以\".rego\"结尾,压缩包当前只支持zip格式,文件需要以`.zip`结尾。 关于策略文件的校验要求如下: * 文件必须是UTF8编码 * 创建时不负责校验内容的正确性 * 策略文件必须是UTF-8编码 * 单文件或压缩包解压前后的大小应控制在1MB以内 * 压缩包内的文件数量不能超过100个 * 压缩包内的文件路径最长为2048 * 策略文件名最长为255个字节 policy_uri和policy_body必须有且只有一个存在 + :param policy_uri: 策略文件的OBS地址。内容仅支持OPA开源引擎识别的,以Rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板。 OBS地址支持同类型Region之间进行互相访问(Region分为通用Region和专属Region,通用Region指面向公共租户提供通用云服务的Region;专属Region指只承载同一类业务或只面向特定租户提供业务服务的专用Region) 策略文件当前支持单文件或zip压缩包,单文件需要以\".rego\"结尾,压缩包当前只支持zip格式,文件需要以`.zip`结尾。 关于策略文件的校验要求如下: * 文件必须是UTF8编码 * 创建时会对大小、格式、语法等进行校验 * 策略文件必须是UTF-8编码 * 单文件或压缩包解压前后的大小应控制在1MB以内 * 压缩包内的文件数量不能超过100个 * 压缩包内的文件路径最长为2048 * 压缩包内的文件名最长为255个字节 policy_uri和policy_body必须有且只有一个存在 :type policy_uri: str - :param policy_body: 策略内容。仅支持OPA开源引擎识别的,以rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板。 policy_body和policy_uri 必须有且只有一个存在 + :param policy_body: 策略内容。仅支持OPA开源引擎识别的,以Rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板。 policy_body和policy_uri 必须有且只有一个存在 :type policy_body: str """ @@ -191,7 +191,7 @@ def configuration(self, configuration): def policy_uri(self): """Gets the policy_uri of this CreatePrivateHookRequestBody. - 策略文件的OBS地址。内容仅支持OPA开源引擎识别的,以rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板。 OBS地址支持同类型Region之间进行互相访问(Region分为通用Region和专属Region,通用Region指面向公共租户提供通用云服务的Region;专属Region指只承载同一类业务或只面向特定租户提供业务服务的专用Region) 策略文件当前支持单文件或zip压缩包,单文件需要以\".rego\"结尾,压缩包当前只支持zip格式,文件需要以`.zip`结尾。 关于策略文件的校验要求如下: * 文件必须是UTF8编码 * 创建时不负责校验内容的正确性 * 策略文件必须是UTF-8编码 * 单文件或压缩包解压前后的大小应控制在1MB以内 * 压缩包内的文件数量不能超过100个 * 压缩包内的文件路径最长为2048 * 策略文件名最长为255个字节 policy_uri和policy_body必须有且只有一个存在 + 策略文件的OBS地址。内容仅支持OPA开源引擎识别的,以Rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板。 OBS地址支持同类型Region之间进行互相访问(Region分为通用Region和专属Region,通用Region指面向公共租户提供通用云服务的Region;专属Region指只承载同一类业务或只面向特定租户提供业务服务的专用Region) 策略文件当前支持单文件或zip压缩包,单文件需要以\".rego\"结尾,压缩包当前只支持zip格式,文件需要以`.zip`结尾。 关于策略文件的校验要求如下: * 文件必须是UTF8编码 * 创建时会对大小、格式、语法等进行校验 * 策略文件必须是UTF-8编码 * 单文件或压缩包解压前后的大小应控制在1MB以内 * 压缩包内的文件数量不能超过100个 * 压缩包内的文件路径最长为2048 * 压缩包内的文件名最长为255个字节 policy_uri和policy_body必须有且只有一个存在 :return: The policy_uri of this CreatePrivateHookRequestBody. :rtype: str @@ -202,7 +202,7 @@ def policy_uri(self): def policy_uri(self, policy_uri): """Sets the policy_uri of this CreatePrivateHookRequestBody. - 策略文件的OBS地址。内容仅支持OPA开源引擎识别的,以rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板。 OBS地址支持同类型Region之间进行互相访问(Region分为通用Region和专属Region,通用Region指面向公共租户提供通用云服务的Region;专属Region指只承载同一类业务或只面向特定租户提供业务服务的专用Region) 策略文件当前支持单文件或zip压缩包,单文件需要以\".rego\"结尾,压缩包当前只支持zip格式,文件需要以`.zip`结尾。 关于策略文件的校验要求如下: * 文件必须是UTF8编码 * 创建时不负责校验内容的正确性 * 策略文件必须是UTF-8编码 * 单文件或压缩包解压前后的大小应控制在1MB以内 * 压缩包内的文件数量不能超过100个 * 压缩包内的文件路径最长为2048 * 策略文件名最长为255个字节 policy_uri和policy_body必须有且只有一个存在 + 策略文件的OBS地址。内容仅支持OPA开源引擎识别的,以Rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板。 OBS地址支持同类型Region之间进行互相访问(Region分为通用Region和专属Region,通用Region指面向公共租户提供通用云服务的Region;专属Region指只承载同一类业务或只面向特定租户提供业务服务的专用Region) 策略文件当前支持单文件或zip压缩包,单文件需要以\".rego\"结尾,压缩包当前只支持zip格式,文件需要以`.zip`结尾。 关于策略文件的校验要求如下: * 文件必须是UTF8编码 * 创建时会对大小、格式、语法等进行校验 * 策略文件必须是UTF-8编码 * 单文件或压缩包解压前后的大小应控制在1MB以内 * 压缩包内的文件数量不能超过100个 * 压缩包内的文件路径最长为2048 * 压缩包内的文件名最长为255个字节 policy_uri和policy_body必须有且只有一个存在 :param policy_uri: The policy_uri of this CreatePrivateHookRequestBody. :type policy_uri: str @@ -213,7 +213,7 @@ def policy_uri(self, policy_uri): def policy_body(self): """Gets the policy_body of this CreatePrivateHookRequestBody. - 策略内容。仅支持OPA开源引擎识别的,以rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板。 policy_body和policy_uri 必须有且只有一个存在 + 策略内容。仅支持OPA开源引擎识别的,以Rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板。 policy_body和policy_uri 必须有且只有一个存在 :return: The policy_body of this CreatePrivateHookRequestBody. :rtype: str @@ -224,7 +224,7 @@ def policy_body(self): def policy_body(self, policy_body): """Sets the policy_body of this CreatePrivateHookRequestBody. - 策略内容。仅支持OPA开源引擎识别的,以rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板。 policy_body和policy_uri 必须有且只有一个存在 + 策略内容。仅支持OPA开源引擎识别的,以Rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板。 policy_body和policy_uri 必须有且只有一个存在 :param policy_body: The policy_body of this CreatePrivateHookRequestBody. :type policy_body: str diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/create_private_hook_version_request_body.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/create_private_hook_version_request_body.py index 81f3fdd1e1..d38cb36c40 100644 --- a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/create_private_hook_version_request_body.py +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/create_private_hook_version_request_body.py @@ -43,9 +43,9 @@ def __init__(self, hook_id=None, hook_version=None, hook_version_description=Non :type hook_version: str :param hook_version_description: 私有hook版本的描述。可用于客户识别创建私有hook的版本。注意:hook版本为不可更新(immutable),所以该字段不可更新,如果需要更新,请删除后重建。 :type hook_version_description: str - :param policy_uri: 策略文件的OBS地址。内容仅支持OPA开源引擎识别的,以rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板。 OBS地址支持同类型Region之间进行互相访问(Region分为通用Region和专属Region,通用Region指面向公共租户提供通用云服务的Region;专属Region指只承载同一类业务或只面向特定租户提供业务服务的专用Region) 策略文件当前支持单文件或zip压缩包,单文件需要以\".rego\"结尾,压缩包当前只支持zip格式,文件需要以`.zip`结尾。 关于策略文件的校验要求如下: * 文件必须是UTF8编码 * 创建时不负责校验内容的正确性 * 策略文件必须是UTF-8编码 * 单文件或压缩包解压前后的大小应控制在1MB以内 * 压缩包内的文件数量不能超过100个 * 压缩包内的文件路径最长为2048 * 策略文件名最长为255个字节 policy_uri和policy_body必须有且只有一个存在 + :param policy_uri: 策略文件的OBS地址。内容仅支持OPA开源引擎识别的,以Rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板。 OBS地址支持同类型Region之间进行互相访问(Region分为通用Region和专属Region,通用Region指面向公共租户提供通用云服务的Region;专属Region指只承载同一类业务或只面向特定租户提供业务服务的专用Region) 策略文件当前支持单文件或zip压缩包,单文件需要以\".rego\"结尾,压缩包当前只支持zip格式,文件需要以`.zip`结尾。 关于策略文件的校验要求如下: * 文件必须是UTF8编码 * 创建时会对大小、格式、语法等进行校验 * 策略文件必须是UTF-8编码 * 单文件或压缩包解压前后的大小应控制在1MB以内 * 压缩包内的文件数量不能超过100个 * 压缩包内的文件路径最长为2048 * 压缩包内的文件名最长为255个字节 policy_uri和policy_body必须有且只有一个存在 :type policy_uri: str - :param policy_body: 策略内容。仅支持OPA开源引擎识别的,以rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板。 policy_body和policy_uri 必须有且只有一个存在 + :param policy_body: 策略内容。仅支持OPA开源引擎识别的,以Rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板。 policy_body和policy_uri 必须有且只有一个存在 :type policy_body: str """ @@ -138,7 +138,7 @@ def hook_version_description(self, hook_version_description): def policy_uri(self): """Gets the policy_uri of this CreatePrivateHookVersionRequestBody. - 策略文件的OBS地址。内容仅支持OPA开源引擎识别的,以rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板。 OBS地址支持同类型Region之间进行互相访问(Region分为通用Region和专属Region,通用Region指面向公共租户提供通用云服务的Region;专属Region指只承载同一类业务或只面向特定租户提供业务服务的专用Region) 策略文件当前支持单文件或zip压缩包,单文件需要以\".rego\"结尾,压缩包当前只支持zip格式,文件需要以`.zip`结尾。 关于策略文件的校验要求如下: * 文件必须是UTF8编码 * 创建时不负责校验内容的正确性 * 策略文件必须是UTF-8编码 * 单文件或压缩包解压前后的大小应控制在1MB以内 * 压缩包内的文件数量不能超过100个 * 压缩包内的文件路径最长为2048 * 策略文件名最长为255个字节 policy_uri和policy_body必须有且只有一个存在 + 策略文件的OBS地址。内容仅支持OPA开源引擎识别的,以Rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板。 OBS地址支持同类型Region之间进行互相访问(Region分为通用Region和专属Region,通用Region指面向公共租户提供通用云服务的Region;专属Region指只承载同一类业务或只面向特定租户提供业务服务的专用Region) 策略文件当前支持单文件或zip压缩包,单文件需要以\".rego\"结尾,压缩包当前只支持zip格式,文件需要以`.zip`结尾。 关于策略文件的校验要求如下: * 文件必须是UTF8编码 * 创建时会对大小、格式、语法等进行校验 * 策略文件必须是UTF-8编码 * 单文件或压缩包解压前后的大小应控制在1MB以内 * 压缩包内的文件数量不能超过100个 * 压缩包内的文件路径最长为2048 * 压缩包内的文件名最长为255个字节 policy_uri和policy_body必须有且只有一个存在 :return: The policy_uri of this CreatePrivateHookVersionRequestBody. :rtype: str @@ -149,7 +149,7 @@ def policy_uri(self): def policy_uri(self, policy_uri): """Sets the policy_uri of this CreatePrivateHookVersionRequestBody. - 策略文件的OBS地址。内容仅支持OPA开源引擎识别的,以rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板。 OBS地址支持同类型Region之间进行互相访问(Region分为通用Region和专属Region,通用Region指面向公共租户提供通用云服务的Region;专属Region指只承载同一类业务或只面向特定租户提供业务服务的专用Region) 策略文件当前支持单文件或zip压缩包,单文件需要以\".rego\"结尾,压缩包当前只支持zip格式,文件需要以`.zip`结尾。 关于策略文件的校验要求如下: * 文件必须是UTF8编码 * 创建时不负责校验内容的正确性 * 策略文件必须是UTF-8编码 * 单文件或压缩包解压前后的大小应控制在1MB以内 * 压缩包内的文件数量不能超过100个 * 压缩包内的文件路径最长为2048 * 策略文件名最长为255个字节 policy_uri和policy_body必须有且只有一个存在 + 策略文件的OBS地址。内容仅支持OPA开源引擎识别的,以Rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板。 OBS地址支持同类型Region之间进行互相访问(Region分为通用Region和专属Region,通用Region指面向公共租户提供通用云服务的Region;专属Region指只承载同一类业务或只面向特定租户提供业务服务的专用Region) 策略文件当前支持单文件或zip压缩包,单文件需要以\".rego\"结尾,压缩包当前只支持zip格式,文件需要以`.zip`结尾。 关于策略文件的校验要求如下: * 文件必须是UTF8编码 * 创建时会对大小、格式、语法等进行校验 * 策略文件必须是UTF-8编码 * 单文件或压缩包解压前后的大小应控制在1MB以内 * 压缩包内的文件数量不能超过100个 * 压缩包内的文件路径最长为2048 * 压缩包内的文件名最长为255个字节 policy_uri和policy_body必须有且只有一个存在 :param policy_uri: The policy_uri of this CreatePrivateHookVersionRequestBody. :type policy_uri: str @@ -160,7 +160,7 @@ def policy_uri(self, policy_uri): def policy_body(self): """Gets the policy_body of this CreatePrivateHookVersionRequestBody. - 策略内容。仅支持OPA开源引擎识别的,以rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板。 policy_body和policy_uri 必须有且只有一个存在 + 策略内容。仅支持OPA开源引擎识别的,以Rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板。 policy_body和policy_uri 必须有且只有一个存在 :return: The policy_body of this CreatePrivateHookVersionRequestBody. :rtype: str @@ -171,7 +171,7 @@ def policy_body(self): def policy_body(self, policy_body): """Sets the policy_body of this CreatePrivateHookVersionRequestBody. - 策略内容。仅支持OPA开源引擎识别的,以rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板。 policy_body和policy_uri 必须有且只有一个存在 + 策略内容。仅支持OPA开源引擎识别的,以Rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板。 policy_body和policy_uri 必须有且只有一个存在 :param policy_body: The policy_body of this CreatePrivateHookVersionRequestBody. :type policy_body: str diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/items_response.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/items_response.py index 4748bd6990..a0de6da6bf 100644 --- a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/items_response.py +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/items_response.py @@ -20,6 +20,7 @@ class ItemsResponse: 'resource_type': 'str', 'resource_name': 'str', 'index': 'str', + 'module_address': 'str', 'supported': 'bool', 'unsupported_message': 'str', 'resource_price': 'list[ResourcePriceResponse]' @@ -29,12 +30,13 @@ class ItemsResponse: 'resource_type': 'resource_type', 'resource_name': 'resource_name', 'index': 'index', + 'module_address': 'module_address', 'supported': 'supported', 'unsupported_message': 'unsupported_message', 'resource_price': 'resource_price' } - def __init__(self, resource_type=None, resource_name=None, index=None, supported=None, unsupported_message=None, resource_price=None): + def __init__(self, resource_type=None, resource_name=None, index=None, module_address=None, supported=None, unsupported_message=None, resource_price=None): """ItemsResponse The model defined in huaweicloud sdk @@ -45,6 +47,8 @@ def __init__(self, resource_type=None, resource_name=None, index=None, supported :type resource_name: str :param index: 资源的索引,如果用户在模板中使用了count或for_each则会返回index。如果index出现,则resource_name + index可以作为该资源的一种标识 如果用户在模板中使用count,则index为从0开始的数字 以HCL格式的模板为例,用户在模板中可以通过`huaweicloud_vpc.my_hello_world_vpc[0]`和`huaweicloud_vpc.my_hello_world_vpc[1]`标识两个资源 ```hcl resource \"huaweicloud_vpc\" \"my_hello_world_vpc\" { count = 2 name = \"test_vpc\" } ``` 以json格式的模板为例,用户在模板中可以通过`huaweicloud_vpc.my_hello_world_vpc[0]`和`huaweicloud_vpc.my_hello_world_vpc[1]`标识两个资源 ```json { \"resource\": { \"huaweicloud_vpc\": { \"my_hello_world_vpc\": { \"name\": \"test_vpc\", \"count\": 2 } } } } ``` 如果用户在模板中使用for_each,则index为用户自定义的字符串 以HCL格式的模板为例,用户在模板中可以通过`huaweicloud_vpc.my_hello_world_vpc[\"vpc1\"]`和`huaweicloud_vpc.my_hello_world_vpc[\"vpc2\"]`标识两个资源 ```hcl resource \"huaweicloud_vpc\" \"my_hello_world_vpc\" { for_each = { \"vpc1\" = \"test_vpc\" \"vpc2\" = \"test_vpc\" } name = each.value } ``` 以json格式的模板为例,用户在模板中可以通过`huaweicloud_vpc.my_hello_world_vpc[\"vpc1\"]`和`huaweicloud_vpc.my_hello_world_vpc[\"vpc2\"]`标识两个资源 ```json { \"resource\": { \"huaweicloud_vpc\": { \"my_hello_world_vpc\": { \"for_each\": { \"vpc1\": \"test_vpc\", \"vpc2\": \"test_vpc\" } \"name\": \"${each.value}\" } } } } ``` :type index: str + :param module_address: 该资源的模块地址 + :type module_address: str :param supported: 该资源或该资源当前所给予的参数是否支持进行询价 :type supported: bool :param unsupported_message: 该资源不支持询价的具体原因 @@ -58,6 +62,7 @@ def __init__(self, resource_type=None, resource_name=None, index=None, supported self._resource_type = None self._resource_name = None self._index = None + self._module_address = None self._supported = None self._unsupported_message = None self._resource_price = None @@ -69,6 +74,8 @@ def __init__(self, resource_type=None, resource_name=None, index=None, supported self.resource_name = resource_name if index is not None: self.index = index + if module_address is not None: + self.module_address = module_address if supported is not None: self.supported = supported if unsupported_message is not None: @@ -142,6 +149,28 @@ def index(self, index): """ self._index = index + @property + def module_address(self): + """Gets the module_address of this ItemsResponse. + + 该资源的模块地址 + + :return: The module_address of this ItemsResponse. + :rtype: str + """ + return self._module_address + + @module_address.setter + def module_address(self, module_address): + """Sets the module_address of this ItemsResponse. + + 该资源的模块地址 + + :param module_address: The module_address of this ItemsResponse. + :type module_address: str + """ + self._module_address = module_address + @property def supported(self): """Gets the supported of this ItemsResponse. diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/private_policy_body_primitive_type_holder.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/private_policy_body_primitive_type_holder.py index fb4ddd6cc8..145d702d19 100644 --- a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/private_policy_body_primitive_type_holder.py +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/private_policy_body_primitive_type_holder.py @@ -29,7 +29,7 @@ def __init__(self, policy_body=None): The model defined in huaweicloud sdk - :param policy_body: 策略内容。仅支持OPA开源引擎识别的,以rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板。 policy_body和policy_uri 必须有且只有一个存在 + :param policy_body: 策略内容。仅支持OPA开源引擎识别的,以Rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板。 policy_body和policy_uri 必须有且只有一个存在 :type policy_body: str """ @@ -45,7 +45,7 @@ def __init__(self, policy_body=None): def policy_body(self): """Gets the policy_body of this PrivatePolicyBodyPrimitiveTypeHolder. - 策略内容。仅支持OPA开源引擎识别的,以rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板。 policy_body和policy_uri 必须有且只有一个存在 + 策略内容。仅支持OPA开源引擎识别的,以Rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板。 policy_body和policy_uri 必须有且只有一个存在 :return: The policy_body of this PrivatePolicyBodyPrimitiveTypeHolder. :rtype: str @@ -56,7 +56,7 @@ def policy_body(self): def policy_body(self, policy_body): """Sets the policy_body of this PrivatePolicyBodyPrimitiveTypeHolder. - 策略内容。仅支持OPA开源引擎识别的,以rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板。 policy_body和policy_uri 必须有且只有一个存在 + 策略内容。仅支持OPA开源引擎识别的,以Rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板。 policy_body和policy_uri 必须有且只有一个存在 :param policy_body: The policy_body of this PrivatePolicyBodyPrimitiveTypeHolder. :type policy_body: str diff --git a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/private_policy_uri_primitive_type_holder.py b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/private_policy_uri_primitive_type_holder.py index 49642b1360..b6278de6cf 100644 --- a/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/private_policy_uri_primitive_type_holder.py +++ b/huaweicloud-sdk-aos/huaweicloudsdkaos/v1/model/private_policy_uri_primitive_type_holder.py @@ -29,7 +29,7 @@ def __init__(self, policy_uri=None): The model defined in huaweicloud sdk - :param policy_uri: 策略文件的OBS地址。内容仅支持OPA开源引擎识别的,以rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板。 OBS地址支持同类型Region之间进行互相访问(Region分为通用Region和专属Region,通用Region指面向公共租户提供通用云服务的Region;专属Region指只承载同一类业务或只面向特定租户提供业务服务的专用Region) 策略文件当前支持单文件或zip压缩包,单文件需要以\".rego\"结尾,压缩包当前只支持zip格式,文件需要以`.zip`结尾。 关于策略文件的校验要求如下: * 文件必须是UTF8编码 * 创建时不负责校验内容的正确性 * 策略文件必须是UTF-8编码 * 单文件或压缩包解压前后的大小应控制在1MB以内 * 压缩包内的文件数量不能超过100个 * 压缩包内的文件路径最长为2048 * 策略文件名最长为255个字节 policy_uri和policy_body必须有且只有一个存在 + :param policy_uri: 策略文件的OBS地址。内容仅支持OPA开源引擎识别的,以Rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板。 OBS地址支持同类型Region之间进行互相访问(Region分为通用Region和专属Region,通用Region指面向公共租户提供通用云服务的Region;专属Region指只承载同一类业务或只面向特定租户提供业务服务的专用Region) 策略文件当前支持单文件或zip压缩包,单文件需要以\".rego\"结尾,压缩包当前只支持zip格式,文件需要以`.zip`结尾。 关于策略文件的校验要求如下: * 文件必须是UTF8编码 * 创建时会对大小、格式、语法等进行校验 * 策略文件必须是UTF-8编码 * 单文件或压缩包解压前后的大小应控制在1MB以内 * 压缩包内的文件数量不能超过100个 * 压缩包内的文件路径最长为2048 * 压缩包内的文件名最长为255个字节 policy_uri和policy_body必须有且只有一个存在 :type policy_uri: str """ @@ -45,7 +45,7 @@ def __init__(self, policy_uri=None): def policy_uri(self): """Gets the policy_uri of this PrivatePolicyURIPrimitiveTypeHolder. - 策略文件的OBS地址。内容仅支持OPA开源引擎识别的,以rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板。 OBS地址支持同类型Region之间进行互相访问(Region分为通用Region和专属Region,通用Region指面向公共租户提供通用云服务的Region;专属Region指只承载同一类业务或只面向特定租户提供业务服务的专用Region) 策略文件当前支持单文件或zip压缩包,单文件需要以\".rego\"结尾,压缩包当前只支持zip格式,文件需要以`.zip`结尾。 关于策略文件的校验要求如下: * 文件必须是UTF8编码 * 创建时不负责校验内容的正确性 * 策略文件必须是UTF-8编码 * 单文件或压缩包解压前后的大小应控制在1MB以内 * 压缩包内的文件数量不能超过100个 * 压缩包内的文件路径最长为2048 * 策略文件名最长为255个字节 policy_uri和policy_body必须有且只有一个存在 + 策略文件的OBS地址。内容仅支持OPA开源引擎识别的,以Rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板。 OBS地址支持同类型Region之间进行互相访问(Region分为通用Region和专属Region,通用Region指面向公共租户提供通用云服务的Region;专属Region指只承载同一类业务或只面向特定租户提供业务服务的专用Region) 策略文件当前支持单文件或zip压缩包,单文件需要以\".rego\"结尾,压缩包当前只支持zip格式,文件需要以`.zip`结尾。 关于策略文件的校验要求如下: * 文件必须是UTF8编码 * 创建时会对大小、格式、语法等进行校验 * 策略文件必须是UTF-8编码 * 单文件或压缩包解压前后的大小应控制在1MB以内 * 压缩包内的文件数量不能超过100个 * 压缩包内的文件路径最长为2048 * 压缩包内的文件名最长为255个字节 policy_uri和policy_body必须有且只有一个存在 :return: The policy_uri of this PrivatePolicyURIPrimitiveTypeHolder. :rtype: str @@ -56,7 +56,7 @@ def policy_uri(self): def policy_uri(self, policy_uri): """Sets the policy_uri of this PrivatePolicyURIPrimitiveTypeHolder. - 策略文件的OBS地址。内容仅支持OPA开源引擎识别的,以rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板。 OBS地址支持同类型Region之间进行互相访问(Region分为通用Region和专属Region,通用Region指面向公共租户提供通用云服务的Region;专属Region指只承载同一类业务或只面向特定租户提供业务服务的专用Region) 策略文件当前支持单文件或zip压缩包,单文件需要以\".rego\"结尾,压缩包当前只支持zip格式,文件需要以`.zip`结尾。 关于策略文件的校验要求如下: * 文件必须是UTF8编码 * 创建时不负责校验内容的正确性 * 策略文件必须是UTF-8编码 * 单文件或压缩包解压前后的大小应控制在1MB以内 * 压缩包内的文件数量不能超过100个 * 压缩包内的文件路径最长为2048 * 策略文件名最长为255个字节 policy_uri和policy_body必须有且只有一个存在 + 策略文件的OBS地址。内容仅支持OPA开源引擎识别的,以Rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板。 OBS地址支持同类型Region之间进行互相访问(Region分为通用Region和专属Region,通用Region指面向公共租户提供通用云服务的Region;专属Region指只承载同一类业务或只面向特定租户提供业务服务的专用Region) 策略文件当前支持单文件或zip压缩包,单文件需要以\".rego\"结尾,压缩包当前只支持zip格式,文件需要以`.zip`结尾。 关于策略文件的校验要求如下: * 文件必须是UTF8编码 * 创建时会对大小、格式、语法等进行校验 * 策略文件必须是UTF-8编码 * 单文件或压缩包解压前后的大小应控制在1MB以内 * 压缩包内的文件数量不能超过100个 * 压缩包内的文件路径最长为2048 * 压缩包内的文件名最长为255个字节 policy_uri和policy_body必须有且只有一个存在 :param policy_uri: The policy_uri of this PrivatePolicyURIPrimitiveTypeHolder. :type policy_uri: str diff --git a/huaweicloud-sdk-aos/requirements.txt b/huaweicloud-sdk-aos/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-aos/requirements.txt +++ b/huaweicloud-sdk-aos/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-aos/setup.py b/huaweicloud-sdk-aos/setup.py index 4d08a63ee3..93931fb53c 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-apig/requirements.txt b/huaweicloud-sdk-apig/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-apig/requirements.txt +++ b/huaweicloud-sdk-apig/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-apig/setup.py b/huaweicloud-sdk-apig/setup.py index af5cf93a41..8e730fe98b 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-apm/requirements.txt b/huaweicloud-sdk-apm/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-apm/requirements.txt +++ b/huaweicloud-sdk-apm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-apm/setup.py b/huaweicloud-sdk-apm/setup.py index c14ff5762a..cdda9e5836 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-as/requirements.txt b/huaweicloud-sdk-as/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-as/requirements.txt +++ b/huaweicloud-sdk-as/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-as/setup.py b/huaweicloud-sdk-as/setup.py index 68e05d3f79..257ea4f674 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-asm/requirements.txt b/huaweicloud-sdk-asm/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-asm/requirements.txt +++ b/huaweicloud-sdk-asm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-asm/setup.py b/huaweicloud-sdk-asm/setup.py index 30ee98a921..028be9abf6 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-bcs/requirements.txt b/huaweicloud-sdk-bcs/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-bcs/requirements.txt +++ b/huaweicloud-sdk-bcs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-bcs/setup.py b/huaweicloud-sdk-bcs/setup.py index 1b55a265bc..f282692bde 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-bms/requirements.txt b/huaweicloud-sdk-bms/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-bms/requirements.txt +++ b/huaweicloud-sdk-bms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-bms/setup.py b/huaweicloud-sdk-bms/setup.py index f640c3331d..9550434ad4 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-bss/requirements.txt b/huaweicloud-sdk-bss/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-bss/requirements.txt +++ b/huaweicloud-sdk-bss/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-bss/setup.py b/huaweicloud-sdk-bss/setup.py index 21b3b5a68c..fdf54086fe 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-bssintl/requirements.txt b/huaweicloud-sdk-bssintl/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-bssintl/requirements.txt +++ b/huaweicloud-sdk-bssintl/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-bssintl/setup.py b/huaweicloud-sdk-bssintl/setup.py index 8b8cef3e6b..2edfa84938 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cae/huaweicloudsdkcae/v1/cae_async_client.py b/huaweicloud-sdk-cae/huaweicloudsdkcae/v1/cae_async_client.py index 763003b7c3..39ee4af9e6 100644 --- a/huaweicloud-sdk-cae/huaweicloudsdkcae/v1/cae_async_client.py +++ b/huaweicloud-sdk-cae/huaweicloudsdkcae/v1/cae_async_client.py @@ -1914,9 +1914,9 @@ def _list_eips_http_info(self, request): return http_info def update_eip_async(self, request): - """修改带宽 + """修改出入网带宽以及开闭状态 - 修改带宽。 + 修改出入网带宽以及开闭状态。 Please refer to HUAWEI cloud API Explorer for details. diff --git a/huaweicloud-sdk-cae/huaweicloudsdkcae/v1/cae_client.py b/huaweicloud-sdk-cae/huaweicloudsdkcae/v1/cae_client.py index aa4707e00a..1958bf192f 100644 --- a/huaweicloud-sdk-cae/huaweicloudsdkcae/v1/cae_client.py +++ b/huaweicloud-sdk-cae/huaweicloudsdkcae/v1/cae_client.py @@ -1914,9 +1914,9 @@ def _list_eips_http_info(cls, request): return http_info def update_eip(self, request): - """修改带宽 + """修改出入网带宽以及开闭状态 - 修改带宽。 + 修改出入网带宽以及开闭状态。 Please refer to HUAWEI cloud API Explorer for details. diff --git a/huaweicloud-sdk-cae/requirements.txt b/huaweicloud-sdk-cae/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-cae/requirements.txt +++ b/huaweicloud-sdk-cae/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-cae/setup.py b/huaweicloud-sdk-cae/setup.py index 961c424f4d..290e8dba77 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-campusgo/requirements.txt b/huaweicloud-sdk-campusgo/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-campusgo/requirements.txt +++ b/huaweicloud-sdk-campusgo/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-campusgo/setup.py b/huaweicloud-sdk-campusgo/setup.py index 815956033a..b0301c59a0 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cbh/requirements.txt b/huaweicloud-sdk-cbh/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-cbh/requirements.txt +++ b/huaweicloud-sdk-cbh/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-cbh/setup.py b/huaweicloud-sdk-cbh/setup.py index 524fdf225f..900e158035 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cbr/requirements.txt b/huaweicloud-sdk-cbr/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-cbr/requirements.txt +++ b/huaweicloud-sdk-cbr/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-cbr/setup.py b/huaweicloud-sdk-cbr/setup.py index 0841dbf455..80874ce3ae 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cbs/requirements.txt b/huaweicloud-sdk-cbs/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-cbs/requirements.txt +++ b/huaweicloud-sdk-cbs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-cbs/setup.py b/huaweicloud-sdk-cbs/setup.py index 1bb32dd255..b7ef7d3a23 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cc/requirements.txt b/huaweicloud-sdk-cc/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-cc/requirements.txt +++ b/huaweicloud-sdk-cc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-cc/setup.py b/huaweicloud-sdk-cc/setup.py index bca8e151ce..80b11ffe4b 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/__init__.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/__init__.py index 58d85b9991..cedc286ce0 100644 --- a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/__init__.py +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/__init__.py @@ -360,6 +360,9 @@ from huaweicloudsdkcce.v3.model.runtime import Runtime from huaweicloudsdkcce.v3.model.runtime_config import RuntimeConfig from huaweicloudsdkcce.v3.model.scale_group_autoscaling import ScaleGroupAutoscaling +from huaweicloudsdkcce.v3.model.scale_group_status import ScaleGroupStatus +from huaweicloudsdkcce.v3.model.scale_group_status_existing_node_count import ScaleGroupStatusExistingNodeCount +from huaweicloudsdkcce.v3.model.scale_group_status_upcoming_node_count import ScaleGroupStatusUpcomingNodeCount from huaweicloudsdkcce.v3.model.scale_node_pool_options import ScaleNodePoolOptions from huaweicloudsdkcce.v3.model.scale_node_pool_request import ScaleNodePoolRequest from huaweicloudsdkcce.v3.model.scale_node_pool_request_body import ScaleNodePoolRequestBody diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/__init__.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/__init__.py index 0e10253d44..1768de9442 100644 --- a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/__init__.py +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/__init__.py @@ -358,6 +358,9 @@ from huaweicloudsdkcce.v3.model.runtime import Runtime from huaweicloudsdkcce.v3.model.runtime_config import RuntimeConfig from huaweicloudsdkcce.v3.model.scale_group_autoscaling import ScaleGroupAutoscaling +from huaweicloudsdkcce.v3.model.scale_group_status import ScaleGroupStatus +from huaweicloudsdkcce.v3.model.scale_group_status_existing_node_count import ScaleGroupStatusExistingNodeCount +from huaweicloudsdkcce.v3.model.scale_group_status_upcoming_node_count import ScaleGroupStatusUpcomingNodeCount from huaweicloudsdkcce.v3.model.scale_node_pool_options import ScaleNodePoolOptions from huaweicloudsdkcce.v3.model.scale_node_pool_request import ScaleNodePoolRequest from huaweicloudsdkcce.v3.model.scale_node_pool_request_body import ScaleNodePoolRequestBody diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/create_node_pool_status.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/create_node_pool_status.py index 07d3b89649..15243f5dea 100644 --- a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/create_node_pool_status.py +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/create_node_pool_status.py @@ -21,7 +21,8 @@ class CreateNodePoolStatus: 'creating_node': 'int', 'deleting_node': 'int', 'phase': 'str', - 'conditions': 'list[NodePoolCondition]' + 'conditions': 'list[NodePoolCondition]', + 'scale_group_statuses': 'list[ScaleGroupStatus]' } attribute_map = { @@ -29,10 +30,11 @@ class CreateNodePoolStatus: 'creating_node': 'creatingNode', 'deleting_node': 'deletingNode', 'phase': 'phase', - 'conditions': 'conditions' + 'conditions': 'conditions', + 'scale_group_statuses': 'scaleGroupStatuses' } - def __init__(self, current_node=None, creating_node=None, deleting_node=None, phase=None, conditions=None): + def __init__(self, current_node=None, creating_node=None, deleting_node=None, phase=None, conditions=None, scale_group_statuses=None): """CreateNodePoolStatus The model defined in huaweicloud sdk @@ -47,6 +49,8 @@ def __init__(self, current_node=None, creating_node=None, deleting_node=None, ph :type phase: str :param conditions: 节点池当前详细状态列表,详情参见Condition类型定义。 :type conditions: list[:class:`huaweicloudsdkcce.v3.NodePoolCondition`] + :param scale_group_statuses: 伸缩组当前详细状态信息,详情参见ScaleGroupStatus类型定义 + :type scale_group_statuses: list[:class:`huaweicloudsdkcce.v3.ScaleGroupStatus`] """ @@ -56,6 +60,7 @@ def __init__(self, current_node=None, creating_node=None, deleting_node=None, ph self._deleting_node = None self._phase = None self._conditions = None + self._scale_group_statuses = None self.discriminator = None if current_node is not None: @@ -68,6 +73,8 @@ def __init__(self, current_node=None, creating_node=None, deleting_node=None, ph self.phase = phase if conditions is not None: self.conditions = conditions + if scale_group_statuses is not None: + self.scale_group_statuses = scale_group_statuses @property def current_node(self): @@ -179,6 +186,28 @@ def conditions(self, conditions): """ self._conditions = conditions + @property + def scale_group_statuses(self): + """Gets the scale_group_statuses of this CreateNodePoolStatus. + + 伸缩组当前详细状态信息,详情参见ScaleGroupStatus类型定义 + + :return: The scale_group_statuses of this CreateNodePoolStatus. + :rtype: list[:class:`huaweicloudsdkcce.v3.ScaleGroupStatus`] + """ + return self._scale_group_statuses + + @scale_group_statuses.setter + def scale_group_statuses(self, scale_group_statuses): + """Sets the scale_group_statuses of this CreateNodePoolStatus. + + 伸缩组当前详细状态信息,详情参见ScaleGroupStatus类型定义 + + :param scale_group_statuses: The scale_group_statuses of this CreateNodePoolStatus. + :type scale_group_statuses: list[:class:`huaweicloudsdkcce.v3.ScaleGroupStatus`] + """ + self._scale_group_statuses = scale_group_statuses + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/delete_node_pool_status.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/delete_node_pool_status.py index bd3b3f30c9..c54db05548 100644 --- a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/delete_node_pool_status.py +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/delete_node_pool_status.py @@ -22,7 +22,8 @@ class DeleteNodePoolStatus: 'deleting_node': 'int', 'phase': 'str', 'job_id': 'str', - 'conditions': 'list[NodePoolCondition]' + 'conditions': 'list[NodePoolCondition]', + 'scale_group_statuses': 'list[ScaleGroupStatus]' } attribute_map = { @@ -31,10 +32,11 @@ class DeleteNodePoolStatus: 'deleting_node': 'deletingNode', 'phase': 'phase', 'job_id': 'jobId', - 'conditions': 'conditions' + 'conditions': 'conditions', + 'scale_group_statuses': 'scaleGroupStatuses' } - def __init__(self, current_node=None, creating_node=None, deleting_node=None, phase=None, job_id=None, conditions=None): + def __init__(self, current_node=None, creating_node=None, deleting_node=None, phase=None, job_id=None, conditions=None, scale_group_statuses=None): """DeleteNodePoolStatus The model defined in huaweicloud sdk @@ -51,6 +53,8 @@ def __init__(self, current_node=None, creating_node=None, deleting_node=None, ph :type job_id: str :param conditions: 节点池当前详细状态列表,详情参见Condition类型定义。 :type conditions: list[:class:`huaweicloudsdkcce.v3.NodePoolCondition`] + :param scale_group_statuses: 伸缩组当前详细状态信息,详情参见ScaleGroupStatus类型定义 + :type scale_group_statuses: list[:class:`huaweicloudsdkcce.v3.ScaleGroupStatus`] """ @@ -61,6 +65,7 @@ def __init__(self, current_node=None, creating_node=None, deleting_node=None, ph self._phase = None self._job_id = None self._conditions = None + self._scale_group_statuses = None self.discriminator = None if current_node is not None: @@ -75,6 +80,8 @@ def __init__(self, current_node=None, creating_node=None, deleting_node=None, ph self.job_id = job_id if conditions is not None: self.conditions = conditions + if scale_group_statuses is not None: + self.scale_group_statuses = scale_group_statuses @property def current_node(self): @@ -208,6 +215,28 @@ def conditions(self, conditions): """ self._conditions = conditions + @property + def scale_group_statuses(self): + """Gets the scale_group_statuses of this DeleteNodePoolStatus. + + 伸缩组当前详细状态信息,详情参见ScaleGroupStatus类型定义 + + :return: The scale_group_statuses of this DeleteNodePoolStatus. + :rtype: list[:class:`huaweicloudsdkcce.v3.ScaleGroupStatus`] + """ + return self._scale_group_statuses + + @scale_group_statuses.setter + def scale_group_statuses(self, scale_group_statuses): + """Sets the scale_group_statuses of this DeleteNodePoolStatus. + + 伸缩组当前详细状态信息,详情参见ScaleGroupStatus类型定义 + + :param scale_group_statuses: The scale_group_statuses of this DeleteNodePoolStatus. + :type scale_group_statuses: list[:class:`huaweicloudsdkcce.v3.ScaleGroupStatus`] + """ + self._scale_group_statuses = scale_group_statuses + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/node_pool_spec.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/node_pool_spec.py index 820ebc8c19..6166ace3b9 100644 --- a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/node_pool_spec.py +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/node_pool_spec.py @@ -23,7 +23,7 @@ class NodePoolSpec: 'autoscaling': 'NodePoolNodeAutoscaling', 'node_management': 'NodeManagement', 'pod_security_groups': 'list[SecurityID]', - 'extension_scale_groups': 'ExtensionScaleGroup', + 'extension_scale_groups': 'list[ExtensionScaleGroup]', 'custom_security_groups': 'list[str]' } @@ -55,8 +55,8 @@ def __init__(self, type=None, node_template=None, initial_node_count=None, autos :type node_management: :class:`huaweicloudsdkcce.v3.NodeManagement` :param pod_security_groups: 1.21版本集群节点池支持绑定安全组,最多五个。 :type pod_security_groups: list[:class:`huaweicloudsdkcce.v3.SecurityID`] - :param extension_scale_groups: - :type extension_scale_groups: :class:`huaweicloudsdkcce.v3.ExtensionScaleGroup` + :param extension_scale_groups: 节点池扩展伸缩组配置列表,详情参见ExtensionScaleGroup类型定义 + :type extension_scale_groups: list[:class:`huaweicloudsdkcce.v3.ExtensionScaleGroup`] :param custom_security_groups: 节点池自定义安全组相关配置。支持节点池新扩容节点绑定指定的安全组。 - 未指定安全组ID,新建节点将添加Node节点默认安全组。 - 指定有效安全组ID,新建节点将使用指定安全组。 - 指定安全组,应避免对CCE运行依赖的端口规则进行修改。[详细设置请参考[集群安全组规则配置](https://support.huaweicloud.com/cce_faq/cce_faq_00265.html)。](tag:hws)[详细设置请参考[集群安全组规则配置](https://support.huaweicloud.com/intl/zh-cn/cce_faq/cce_faq_00265.html)。](tag:hws_hk) :type custom_security_groups: list[str] """ @@ -213,8 +213,10 @@ def pod_security_groups(self, pod_security_groups): def extension_scale_groups(self): """Gets the extension_scale_groups of this NodePoolSpec. + 节点池扩展伸缩组配置列表,详情参见ExtensionScaleGroup类型定义 + :return: The extension_scale_groups of this NodePoolSpec. - :rtype: :class:`huaweicloudsdkcce.v3.ExtensionScaleGroup` + :rtype: list[:class:`huaweicloudsdkcce.v3.ExtensionScaleGroup`] """ return self._extension_scale_groups @@ -222,8 +224,10 @@ def extension_scale_groups(self): def extension_scale_groups(self, extension_scale_groups): """Sets the extension_scale_groups of this NodePoolSpec. + 节点池扩展伸缩组配置列表,详情参见ExtensionScaleGroup类型定义 + :param extension_scale_groups: The extension_scale_groups of this NodePoolSpec. - :type extension_scale_groups: :class:`huaweicloudsdkcce.v3.ExtensionScaleGroup` + :type extension_scale_groups: list[:class:`huaweicloudsdkcce.v3.ExtensionScaleGroup`] """ self._extension_scale_groups = extension_scale_groups diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/node_pool_spec_update.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/node_pool_spec_update.py index cc8aa7dafd..2f371cb482 100644 --- a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/node_pool_spec_update.py +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/node_pool_spec_update.py @@ -20,7 +20,7 @@ class NodePoolSpecUpdate: 'node_template': 'NodeSpecUpdate', 'initial_node_count': 'int', 'autoscaling': 'NodePoolNodeAutoscaling', - 'extension_scale_groups': 'ExtensionScaleGroup' + 'extension_scale_groups': 'list[ExtensionScaleGroup]' } attribute_map = { @@ -41,8 +41,8 @@ def __init__(self, node_template=None, initial_node_count=None, autoscaling=None :type initial_node_count: int :param autoscaling: :type autoscaling: :class:`huaweicloudsdkcce.v3.NodePoolNodeAutoscaling` - :param extension_scale_groups: - :type extension_scale_groups: :class:`huaweicloudsdkcce.v3.ExtensionScaleGroup` + :param extension_scale_groups: 节点池扩展伸缩组配置列表,详情参见ExtensionScaleGroup类型定义 + :type extension_scale_groups: list[:class:`huaweicloudsdkcce.v3.ExtensionScaleGroup`] """ @@ -121,8 +121,10 @@ def autoscaling(self, autoscaling): def extension_scale_groups(self): """Gets the extension_scale_groups of this NodePoolSpecUpdate. + 节点池扩展伸缩组配置列表,详情参见ExtensionScaleGroup类型定义 + :return: The extension_scale_groups of this NodePoolSpecUpdate. - :rtype: :class:`huaweicloudsdkcce.v3.ExtensionScaleGroup` + :rtype: list[:class:`huaweicloudsdkcce.v3.ExtensionScaleGroup`] """ return self._extension_scale_groups @@ -130,8 +132,10 @@ def extension_scale_groups(self): def extension_scale_groups(self, extension_scale_groups): """Sets the extension_scale_groups of this NodePoolSpecUpdate. + 节点池扩展伸缩组配置列表,详情参见ExtensionScaleGroup类型定义 + :param extension_scale_groups: The extension_scale_groups of this NodePoolSpecUpdate. - :type extension_scale_groups: :class:`huaweicloudsdkcce.v3.ExtensionScaleGroup` + :type extension_scale_groups: list[:class:`huaweicloudsdkcce.v3.ExtensionScaleGroup`] """ self._extension_scale_groups = extension_scale_groups diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/node_pool_status.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/node_pool_status.py index 8a67af81df..e186386458 100644 --- a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/node_pool_status.py +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/node_pool_status.py @@ -22,7 +22,8 @@ class NodePoolStatus: 'deleting_node': 'int', 'phase': 'str', 'job_id': 'str', - 'conditions': 'list[NodePoolCondition]' + 'conditions': 'list[NodePoolCondition]', + 'scale_group_statuses': 'list[ScaleGroupStatus]' } attribute_map = { @@ -31,10 +32,11 @@ class NodePoolStatus: 'deleting_node': 'deletingNode', 'phase': 'phase', 'job_id': 'jobId', - 'conditions': 'conditions' + 'conditions': 'conditions', + 'scale_group_statuses': 'scaleGroupStatuses' } - def __init__(self, current_node=None, creating_node=None, deleting_node=None, phase=None, job_id=None, conditions=None): + def __init__(self, current_node=None, creating_node=None, deleting_node=None, phase=None, job_id=None, conditions=None, scale_group_statuses=None): """NodePoolStatus The model defined in huaweicloud sdk @@ -51,6 +53,8 @@ def __init__(self, current_node=None, creating_node=None, deleting_node=None, ph :type job_id: str :param conditions: 节点池当前详细状态列表,详情参见Condition类型定义。 :type conditions: list[:class:`huaweicloudsdkcce.v3.NodePoolCondition`] + :param scale_group_statuses: 伸缩组当前详细状态信息,详情参见ScaleGroupStatus类型定义 + :type scale_group_statuses: list[:class:`huaweicloudsdkcce.v3.ScaleGroupStatus`] """ @@ -61,6 +65,7 @@ def __init__(self, current_node=None, creating_node=None, deleting_node=None, ph self._phase = None self._job_id = None self._conditions = None + self._scale_group_statuses = None self.discriminator = None if current_node is not None: @@ -75,6 +80,8 @@ def __init__(self, current_node=None, creating_node=None, deleting_node=None, ph self.job_id = job_id if conditions is not None: self.conditions = conditions + if scale_group_statuses is not None: + self.scale_group_statuses = scale_group_statuses @property def current_node(self): @@ -208,6 +215,28 @@ def conditions(self, conditions): """ self._conditions = conditions + @property + def scale_group_statuses(self): + """Gets the scale_group_statuses of this NodePoolStatus. + + 伸缩组当前详细状态信息,详情参见ScaleGroupStatus类型定义 + + :return: The scale_group_statuses of this NodePoolStatus. + :rtype: list[:class:`huaweicloudsdkcce.v3.ScaleGroupStatus`] + """ + return self._scale_group_statuses + + @scale_group_statuses.setter + def scale_group_statuses(self, scale_group_statuses): + """Sets the scale_group_statuses of this NodePoolStatus. + + 伸缩组当前详细状态信息,详情参见ScaleGroupStatus类型定义 + + :param scale_group_statuses: The scale_group_statuses of this NodePoolStatus. + :type scale_group_statuses: list[:class:`huaweicloudsdkcce.v3.ScaleGroupStatus`] + """ + self._scale_group_statuses = scale_group_statuses + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/scale_group_status.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/scale_group_status.py new file mode 100644 index 0000000000..2e1005a88a --- /dev/null +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/scale_group_status.py @@ -0,0 +1,397 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ScaleGroupStatus: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'uid': 'str', + 'creation_timestamp': 'str', + 'update_timestamp': 'str', + 'phase': 'str', + 'desired_node_count': 'int', + 'unpaid_scale_node_count': 'int', + 'existing_node_count': 'ScaleGroupStatusExistingNodeCount', + 'upcoming_node_count': 'ScaleGroupStatusUpcomingNodeCount', + 'scale_down_disabled_node_count': 'int', + 'conditions': 'list[NodePoolCondition]' + } + + attribute_map = { + 'name': 'name', + 'uid': 'uid', + 'creation_timestamp': 'creationTimestamp', + 'update_timestamp': 'updateTimestamp', + 'phase': 'phase', + 'desired_node_count': 'desiredNodeCount', + 'unpaid_scale_node_count': 'unpaidScaleNodeCount', + 'existing_node_count': 'existingNodeCount', + 'upcoming_node_count': 'upcomingNodeCount', + 'scale_down_disabled_node_count': 'scaleDownDisabledNodeCount', + 'conditions': 'conditions' + } + + def __init__(self, name=None, uid=None, creation_timestamp=None, update_timestamp=None, phase=None, desired_node_count=None, unpaid_scale_node_count=None, existing_node_count=None, upcoming_node_count=None, scale_down_disabled_node_count=None, conditions=None): + """ScaleGroupStatus + + The model defined in huaweicloud sdk + + :param name: 伸缩组名称 + :type name: str + :param uid: 伸缩组uuid + :type uid: str + :param creation_timestamp: 伸缩组创建时间 + :type creation_timestamp: str + :param update_timestamp: 伸缩组更新时间 + :type update_timestamp: str + :param phase: 伸缩组状态。 - 空值:可用(伸缩组当前节点数已达到预期,且无伸缩中的节点) - Synchronizing:伸缩中(伸缩组当前节点数未达到预期,且无伸缩中的节点) - Synchronized:伸缩等待中(伸缩组当前节点数未达到预期,或者存在伸缩中的节点) - SoldOut:伸缩组当前不可扩容(兼容字段,标记节点池资源售罄、资源配额不足等不可扩容状态) > 上述伸缩组状态已废弃,仅兼容保留,不建议使用,替代感知方式如下: > - 伸缩组扩缩状态:可通过desiredNodeCount/existingNodeCount/upcomingNodeCount节点状态统计信息,精确感知当前伸缩组扩缩状态。 > - 伸缩组可扩容状态:可通过conditions感知伸缩组详细状态,其中\"Scalable\"可替代SoldOut语义。 - Deleting:删除中 - Error:错误 + :type phase: str + :param desired_node_count: 伸缩组期望节点数 + :type desired_node_count: int + :param unpaid_scale_node_count: 订单未支付节点个数 + :type unpaid_scale_node_count: int + :param existing_node_count: + :type existing_node_count: :class:`huaweicloudsdkcce.v3.ScaleGroupStatusExistingNodeCount` + :param upcoming_node_count: + :type upcoming_node_count: :class:`huaweicloudsdkcce.v3.ScaleGroupStatusUpcomingNodeCount` + :param scale_down_disabled_node_count: 伸缩组禁止缩容的节点数 + :type scale_down_disabled_node_count: int + :param conditions: 伸缩组当前详细状态列表,详情参见Condition类型定义。 + :type conditions: list[:class:`huaweicloudsdkcce.v3.NodePoolCondition`] + """ + + + + self._name = None + self._uid = None + self._creation_timestamp = None + self._update_timestamp = None + self._phase = None + self._desired_node_count = None + self._unpaid_scale_node_count = None + self._existing_node_count = None + self._upcoming_node_count = None + self._scale_down_disabled_node_count = None + self._conditions = None + self.discriminator = None + + if name is not None: + self.name = name + if uid is not None: + self.uid = uid + if creation_timestamp is not None: + self.creation_timestamp = creation_timestamp + if update_timestamp is not None: + self.update_timestamp = update_timestamp + if phase is not None: + self.phase = phase + if desired_node_count is not None: + self.desired_node_count = desired_node_count + if unpaid_scale_node_count is not None: + self.unpaid_scale_node_count = unpaid_scale_node_count + if existing_node_count is not None: + self.existing_node_count = existing_node_count + if upcoming_node_count is not None: + self.upcoming_node_count = upcoming_node_count + if scale_down_disabled_node_count is not None: + self.scale_down_disabled_node_count = scale_down_disabled_node_count + if conditions is not None: + self.conditions = conditions + + @property + def name(self): + """Gets the name of this ScaleGroupStatus. + + 伸缩组名称 + + :return: The name of this ScaleGroupStatus. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ScaleGroupStatus. + + 伸缩组名称 + + :param name: The name of this ScaleGroupStatus. + :type name: str + """ + self._name = name + + @property + def uid(self): + """Gets the uid of this ScaleGroupStatus. + + 伸缩组uuid + + :return: The uid of this ScaleGroupStatus. + :rtype: str + """ + return self._uid + + @uid.setter + def uid(self, uid): + """Sets the uid of this ScaleGroupStatus. + + 伸缩组uuid + + :param uid: The uid of this ScaleGroupStatus. + :type uid: str + """ + self._uid = uid + + @property + def creation_timestamp(self): + """Gets the creation_timestamp of this ScaleGroupStatus. + + 伸缩组创建时间 + + :return: The creation_timestamp of this ScaleGroupStatus. + :rtype: str + """ + return self._creation_timestamp + + @creation_timestamp.setter + def creation_timestamp(self, creation_timestamp): + """Sets the creation_timestamp of this ScaleGroupStatus. + + 伸缩组创建时间 + + :param creation_timestamp: The creation_timestamp of this ScaleGroupStatus. + :type creation_timestamp: str + """ + self._creation_timestamp = creation_timestamp + + @property + def update_timestamp(self): + """Gets the update_timestamp of this ScaleGroupStatus. + + 伸缩组更新时间 + + :return: The update_timestamp of this ScaleGroupStatus. + :rtype: str + """ + return self._update_timestamp + + @update_timestamp.setter + def update_timestamp(self, update_timestamp): + """Sets the update_timestamp of this ScaleGroupStatus. + + 伸缩组更新时间 + + :param update_timestamp: The update_timestamp of this ScaleGroupStatus. + :type update_timestamp: str + """ + self._update_timestamp = update_timestamp + + @property + def phase(self): + """Gets the phase of this ScaleGroupStatus. + + 伸缩组状态。 - 空值:可用(伸缩组当前节点数已达到预期,且无伸缩中的节点) - Synchronizing:伸缩中(伸缩组当前节点数未达到预期,且无伸缩中的节点) - Synchronized:伸缩等待中(伸缩组当前节点数未达到预期,或者存在伸缩中的节点) - SoldOut:伸缩组当前不可扩容(兼容字段,标记节点池资源售罄、资源配额不足等不可扩容状态) > 上述伸缩组状态已废弃,仅兼容保留,不建议使用,替代感知方式如下: > - 伸缩组扩缩状态:可通过desiredNodeCount/existingNodeCount/upcomingNodeCount节点状态统计信息,精确感知当前伸缩组扩缩状态。 > - 伸缩组可扩容状态:可通过conditions感知伸缩组详细状态,其中\"Scalable\"可替代SoldOut语义。 - Deleting:删除中 - Error:错误 + + :return: The phase of this ScaleGroupStatus. + :rtype: str + """ + return self._phase + + @phase.setter + def phase(self, phase): + """Sets the phase of this ScaleGroupStatus. + + 伸缩组状态。 - 空值:可用(伸缩组当前节点数已达到预期,且无伸缩中的节点) - Synchronizing:伸缩中(伸缩组当前节点数未达到预期,且无伸缩中的节点) - Synchronized:伸缩等待中(伸缩组当前节点数未达到预期,或者存在伸缩中的节点) - SoldOut:伸缩组当前不可扩容(兼容字段,标记节点池资源售罄、资源配额不足等不可扩容状态) > 上述伸缩组状态已废弃,仅兼容保留,不建议使用,替代感知方式如下: > - 伸缩组扩缩状态:可通过desiredNodeCount/existingNodeCount/upcomingNodeCount节点状态统计信息,精确感知当前伸缩组扩缩状态。 > - 伸缩组可扩容状态:可通过conditions感知伸缩组详细状态,其中\"Scalable\"可替代SoldOut语义。 - Deleting:删除中 - Error:错误 + + :param phase: The phase of this ScaleGroupStatus. + :type phase: str + """ + self._phase = phase + + @property + def desired_node_count(self): + """Gets the desired_node_count of this ScaleGroupStatus. + + 伸缩组期望节点数 + + :return: The desired_node_count of this ScaleGroupStatus. + :rtype: int + """ + return self._desired_node_count + + @desired_node_count.setter + def desired_node_count(self, desired_node_count): + """Sets the desired_node_count of this ScaleGroupStatus. + + 伸缩组期望节点数 + + :param desired_node_count: The desired_node_count of this ScaleGroupStatus. + :type desired_node_count: int + """ + self._desired_node_count = desired_node_count + + @property + def unpaid_scale_node_count(self): + """Gets the unpaid_scale_node_count of this ScaleGroupStatus. + + 订单未支付节点个数 + + :return: The unpaid_scale_node_count of this ScaleGroupStatus. + :rtype: int + """ + return self._unpaid_scale_node_count + + @unpaid_scale_node_count.setter + def unpaid_scale_node_count(self, unpaid_scale_node_count): + """Sets the unpaid_scale_node_count of this ScaleGroupStatus. + + 订单未支付节点个数 + + :param unpaid_scale_node_count: The unpaid_scale_node_count of this ScaleGroupStatus. + :type unpaid_scale_node_count: int + """ + self._unpaid_scale_node_count = unpaid_scale_node_count + + @property + def existing_node_count(self): + """Gets the existing_node_count of this ScaleGroupStatus. + + :return: The existing_node_count of this ScaleGroupStatus. + :rtype: :class:`huaweicloudsdkcce.v3.ScaleGroupStatusExistingNodeCount` + """ + return self._existing_node_count + + @existing_node_count.setter + def existing_node_count(self, existing_node_count): + """Sets the existing_node_count of this ScaleGroupStatus. + + :param existing_node_count: The existing_node_count of this ScaleGroupStatus. + :type existing_node_count: :class:`huaweicloudsdkcce.v3.ScaleGroupStatusExistingNodeCount` + """ + self._existing_node_count = existing_node_count + + @property + def upcoming_node_count(self): + """Gets the upcoming_node_count of this ScaleGroupStatus. + + :return: The upcoming_node_count of this ScaleGroupStatus. + :rtype: :class:`huaweicloudsdkcce.v3.ScaleGroupStatusUpcomingNodeCount` + """ + return self._upcoming_node_count + + @upcoming_node_count.setter + def upcoming_node_count(self, upcoming_node_count): + """Sets the upcoming_node_count of this ScaleGroupStatus. + + :param upcoming_node_count: The upcoming_node_count of this ScaleGroupStatus. + :type upcoming_node_count: :class:`huaweicloudsdkcce.v3.ScaleGroupStatusUpcomingNodeCount` + """ + self._upcoming_node_count = upcoming_node_count + + @property + def scale_down_disabled_node_count(self): + """Gets the scale_down_disabled_node_count of this ScaleGroupStatus. + + 伸缩组禁止缩容的节点数 + + :return: The scale_down_disabled_node_count of this ScaleGroupStatus. + :rtype: int + """ + return self._scale_down_disabled_node_count + + @scale_down_disabled_node_count.setter + def scale_down_disabled_node_count(self, scale_down_disabled_node_count): + """Sets the scale_down_disabled_node_count of this ScaleGroupStatus. + + 伸缩组禁止缩容的节点数 + + :param scale_down_disabled_node_count: The scale_down_disabled_node_count of this ScaleGroupStatus. + :type scale_down_disabled_node_count: int + """ + self._scale_down_disabled_node_count = scale_down_disabled_node_count + + @property + def conditions(self): + """Gets the conditions of this ScaleGroupStatus. + + 伸缩组当前详细状态列表,详情参见Condition类型定义。 + + :return: The conditions of this ScaleGroupStatus. + :rtype: list[:class:`huaweicloudsdkcce.v3.NodePoolCondition`] + """ + return self._conditions + + @conditions.setter + def conditions(self, conditions): + """Sets the conditions of this ScaleGroupStatus. + + 伸缩组当前详细状态列表,详情参见Condition类型定义。 + + :param conditions: The conditions of this ScaleGroupStatus. + :type conditions: list[:class:`huaweicloudsdkcce.v3.NodePoolCondition`] + """ + self._conditions = conditions + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ScaleGroupStatus): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/scale_group_status_existing_node_count.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/scale_group_status_existing_node_count.py new file mode 100644 index 0000000000..8b37224c13 --- /dev/null +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/scale_group_status_existing_node_count.py @@ -0,0 +1,173 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ScaleGroupStatusExistingNodeCount: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'post_paid': 'int', + 'pre_paid': 'int', + 'total': 'int' + } + + attribute_map = { + 'post_paid': 'postPaid', + 'pre_paid': 'prePaid', + 'total': 'total' + } + + def __init__(self, post_paid=None, pre_paid=None, total=None): + """ScaleGroupStatusExistingNodeCount + + The model defined in huaweicloud sdk + + :param post_paid: 按需计费节点个数 + :type post_paid: int + :param pre_paid: 包年包月节点个数 + :type pre_paid: int + :param total: 按需计费和包年包月节点总数 + :type total: int + """ + + + + self._post_paid = None + self._pre_paid = None + self._total = None + self.discriminator = None + + if post_paid is not None: + self.post_paid = post_paid + if pre_paid is not None: + self.pre_paid = pre_paid + if total is not None: + self.total = total + + @property + def post_paid(self): + """Gets the post_paid of this ScaleGroupStatusExistingNodeCount. + + 按需计费节点个数 + + :return: The post_paid of this ScaleGroupStatusExistingNodeCount. + :rtype: int + """ + return self._post_paid + + @post_paid.setter + def post_paid(self, post_paid): + """Sets the post_paid of this ScaleGroupStatusExistingNodeCount. + + 按需计费节点个数 + + :param post_paid: The post_paid of this ScaleGroupStatusExistingNodeCount. + :type post_paid: int + """ + self._post_paid = post_paid + + @property + def pre_paid(self): + """Gets the pre_paid of this ScaleGroupStatusExistingNodeCount. + + 包年包月节点个数 + + :return: The pre_paid of this ScaleGroupStatusExistingNodeCount. + :rtype: int + """ + return self._pre_paid + + @pre_paid.setter + def pre_paid(self, pre_paid): + """Sets the pre_paid of this ScaleGroupStatusExistingNodeCount. + + 包年包月节点个数 + + :param pre_paid: The pre_paid of this ScaleGroupStatusExistingNodeCount. + :type pre_paid: int + """ + self._pre_paid = pre_paid + + @property + def total(self): + """Gets the total of this ScaleGroupStatusExistingNodeCount. + + 按需计费和包年包月节点总数 + + :return: The total of this ScaleGroupStatusExistingNodeCount. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """Sets the total of this ScaleGroupStatusExistingNodeCount. + + 按需计费和包年包月节点总数 + + :param total: The total of this ScaleGroupStatusExistingNodeCount. + :type total: int + """ + self._total = total + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ScaleGroupStatusExistingNodeCount): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/scale_group_status_upcoming_node_count.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/scale_group_status_upcoming_node_count.py new file mode 100644 index 0000000000..03c4d2a294 --- /dev/null +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/scale_group_status_upcoming_node_count.py @@ -0,0 +1,173 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ScaleGroupStatusUpcomingNodeCount: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'post_paid': 'int', + 'pre_paid': 'int', + 'total': 'int' + } + + attribute_map = { + 'post_paid': 'postPaid', + 'pre_paid': 'prePaid', + 'total': 'total' + } + + def __init__(self, post_paid=None, pre_paid=None, total=None): + """ScaleGroupStatusUpcomingNodeCount + + The model defined in huaweicloud sdk + + :param post_paid: 按需计费节点个数 + :type post_paid: int + :param pre_paid: 包年包月节点个数 + :type pre_paid: int + :param total: 按需计费和包年包月节点总数 + :type total: int + """ + + + + self._post_paid = None + self._pre_paid = None + self._total = None + self.discriminator = None + + if post_paid is not None: + self.post_paid = post_paid + if pre_paid is not None: + self.pre_paid = pre_paid + if total is not None: + self.total = total + + @property + def post_paid(self): + """Gets the post_paid of this ScaleGroupStatusUpcomingNodeCount. + + 按需计费节点个数 + + :return: The post_paid of this ScaleGroupStatusUpcomingNodeCount. + :rtype: int + """ + return self._post_paid + + @post_paid.setter + def post_paid(self, post_paid): + """Sets the post_paid of this ScaleGroupStatusUpcomingNodeCount. + + 按需计费节点个数 + + :param post_paid: The post_paid of this ScaleGroupStatusUpcomingNodeCount. + :type post_paid: int + """ + self._post_paid = post_paid + + @property + def pre_paid(self): + """Gets the pre_paid of this ScaleGroupStatusUpcomingNodeCount. + + 包年包月节点个数 + + :return: The pre_paid of this ScaleGroupStatusUpcomingNodeCount. + :rtype: int + """ + return self._pre_paid + + @pre_paid.setter + def pre_paid(self, pre_paid): + """Sets the pre_paid of this ScaleGroupStatusUpcomingNodeCount. + + 包年包月节点个数 + + :param pre_paid: The pre_paid of this ScaleGroupStatusUpcomingNodeCount. + :type pre_paid: int + """ + self._pre_paid = pre_paid + + @property + def total(self): + """Gets the total of this ScaleGroupStatusUpcomingNodeCount. + + 按需计费和包年包月节点总数 + + :return: The total of this ScaleGroupStatusUpcomingNodeCount. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """Sets the total of this ScaleGroupStatusUpcomingNodeCount. + + 按需计费和包年包月节点总数 + + :param total: The total of this ScaleGroupStatusUpcomingNodeCount. + :type total: int + """ + self._total = total + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ScaleGroupStatusUpcomingNodeCount): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/update_node_pool_status.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/update_node_pool_status.py index 63a345a995..6108cd6461 100644 --- a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/update_node_pool_status.py +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/update_node_pool_status.py @@ -21,7 +21,8 @@ class UpdateNodePoolStatus: 'creating_node': 'int', 'deleting_node': 'int', 'phase': 'str', - 'conditions': 'list[NodePoolCondition]' + 'conditions': 'list[NodePoolCondition]', + 'scale_group_statuses': 'list[ScaleGroupStatus]' } attribute_map = { @@ -29,10 +30,11 @@ class UpdateNodePoolStatus: 'creating_node': 'creatingNode', 'deleting_node': 'deletingNode', 'phase': 'phase', - 'conditions': 'conditions' + 'conditions': 'conditions', + 'scale_group_statuses': 'scaleGroupStatuses' } - def __init__(self, current_node=None, creating_node=None, deleting_node=None, phase=None, conditions=None): + def __init__(self, current_node=None, creating_node=None, deleting_node=None, phase=None, conditions=None, scale_group_statuses=None): """UpdateNodePoolStatus The model defined in huaweicloud sdk @@ -47,6 +49,8 @@ def __init__(self, current_node=None, creating_node=None, deleting_node=None, ph :type phase: str :param conditions: 节点池当前详细状态列表,详情参见Condition类型定义。 :type conditions: list[:class:`huaweicloudsdkcce.v3.NodePoolCondition`] + :param scale_group_statuses: 伸缩组当前详细状态信息,详情参见ScaleGroupStatus类型定义 + :type scale_group_statuses: list[:class:`huaweicloudsdkcce.v3.ScaleGroupStatus`] """ @@ -56,6 +60,7 @@ def __init__(self, current_node=None, creating_node=None, deleting_node=None, ph self._deleting_node = None self._phase = None self._conditions = None + self._scale_group_statuses = None self.discriminator = None if current_node is not None: @@ -68,6 +73,8 @@ def __init__(self, current_node=None, creating_node=None, deleting_node=None, ph self.phase = phase if conditions is not None: self.conditions = conditions + if scale_group_statuses is not None: + self.scale_group_statuses = scale_group_statuses @property def current_node(self): @@ -179,6 +186,28 @@ def conditions(self, conditions): """ self._conditions = conditions + @property + def scale_group_statuses(self): + """Gets the scale_group_statuses of this UpdateNodePoolStatus. + + 伸缩组当前详细状态信息,详情参见ScaleGroupStatus类型定义 + + :return: The scale_group_statuses of this UpdateNodePoolStatus. + :rtype: list[:class:`huaweicloudsdkcce.v3.ScaleGroupStatus`] + """ + return self._scale_group_statuses + + @scale_group_statuses.setter + def scale_group_statuses(self, scale_group_statuses): + """Sets the scale_group_statuses of this UpdateNodePoolStatus. + + 伸缩组当前详细状态信息,详情参见ScaleGroupStatus类型定义 + + :param scale_group_statuses: The scale_group_statuses of this UpdateNodePoolStatus. + :type scale_group_statuses: list[:class:`huaweicloudsdkcce.v3.ScaleGroupStatus`] + """ + self._scale_group_statuses = scale_group_statuses + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/region/cce_region.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/region/cce_region.py index c8d545aec6..87334bea7e 100644 --- a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/region/cce_region.py +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/region/cce_region.py @@ -66,6 +66,8 @@ class CceRegion: "https://cce.cn-east-4.myhuaweicloud.com") AF_NORTH_1 = Region("af-north-1", "https://cce.af-north-1.myhuaweicloud.com") + CN_EAST_5 = Region("cn-east-5", + "https://cce.cn-east-5.myhuaweicloud.com") static_fields = { "cn-north-1": CN_NORTH_1, @@ -98,6 +100,7 @@ class CceRegion: "me-east-1": ME_EAST_1, "cn-east-4": CN_EAST_4, "af-north-1": AF_NORTH_1, + "cn-east-5": CN_EAST_5, } @classmethod diff --git a/huaweicloud-sdk-cce/requirements.txt b/huaweicloud-sdk-cce/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-cce/requirements.txt +++ b/huaweicloud-sdk-cce/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-cce/setup.py b/huaweicloud-sdk-cce/setup.py index 697d5d9127..b6b434da6f 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ccm/requirements.txt b/huaweicloud-sdk-ccm/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-ccm/requirements.txt +++ b/huaweicloud-sdk-ccm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-ccm/setup.py b/huaweicloud-sdk-ccm/setup.py index 11a4bd7b00..f668119936 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/__init__.py b/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/__init__.py index 122c88a960..3dee85f40b 100644 --- a/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/__init__.py +++ b/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/__init__.py @@ -6,13 +6,22 @@ from huaweicloudsdkcdm.v1.cdm_async_client import CdmAsyncClient from huaweicloudsdkcdm.v1.model.action_progress import ActionProgress +from huaweicloudsdkcdm.v1.model.cdm_cluster_availability_zone import CdmClusterAvailabilityZone +from huaweicloudsdkcdm.v1.model.cdm_cluster_datastore import CdmClusterDatastore +from huaweicloudsdkcdm.v1.model.cdm_cluster_datastore_version import CdmClusterDatastoreVersion +from huaweicloudsdkcdm.v1.model.cdm_cluster_enterprise_project import CdmClusterEnterpriseProject +from huaweicloudsdkcdm.v1.model.cdm_cluster_flavor import CdmClusterFlavor +from huaweicloudsdkcdm.v1.model.cdm_cluster_version import CdmClusterVersion from huaweicloudsdkcdm.v1.model.cdm_create_and_update_link_req import CdmCreateAndUpdateLinkReq from huaweicloudsdkcdm.v1.model.cdm_create_cluster_req import CdmCreateClusterReq from huaweicloudsdkcdm.v1.model.cdm_create_cluster_req_cluster import CdmCreateClusterReqCluster from huaweicloudsdkcdm.v1.model.cdm_create_job_json_req import CdmCreateJobJsonReq from huaweicloudsdkcdm.v1.model.cdm_delete_cluster_req import CdmDeleteClusterReq +from huaweicloudsdkcdm.v1.model.cdm_modify_cluster_req import CdmModifyClusterReq from huaweicloudsdkcdm.v1.model.cdm_query_cluster_details_repsonse_maintain_window import CdmQueryClusterDetailsRepsonseMaintainWindow from huaweicloudsdkcdm.v1.model.cdm_query_cluster_details_repsonse_public_endpoint_status import CdmQueryClusterDetailsRepsonsePublicEndpointStatus +from huaweicloudsdkcdm.v1.model.cdm_query_cluster_instance_detail import CdmQueryClusterInstanceDetail +from huaweicloudsdkcdm.v1.model.cdm_query_cluster_instance_detail_flavor import CdmQueryClusterInstanceDetailFlavor from huaweicloudsdkcdm.v1.model.cdm_random_create_and_start_job_json_req import CdmRandomCreateAndStartJobJsonReq from huaweicloudsdkcdm.v1.model.cdm_restart_cluster_req import CdmRestartClusterReq from huaweicloudsdkcdm.v1.model.cdm_restart_cluster_req_restart import CdmRestartClusterReqRestart @@ -52,6 +61,7 @@ from huaweicloudsdkcdm.v1.model.extended_properties import ExtendedProperties from huaweicloudsdkcdm.v1.model.failed_reasons import FailedReasons from huaweicloudsdkcdm.v1.model.failed_reasons_createfailed import FailedReasonsCREATEFAILED +from huaweicloudsdkcdm.v1.model.flavor_attribute import FlavorAttribute from huaweicloudsdkcdm.v1.model.input import Input from huaweicloudsdkcdm.v1.model.instance import Instance from huaweicloudsdkcdm.v1.model.job import Job @@ -61,12 +71,28 @@ from huaweicloudsdkcdm.v1.model.links_linkconfigvalues_extendedconfigs import LinksLinkconfigvaluesExtendedconfigs from huaweicloudsdkcdm.v1.model.list_clusters_request import ListClustersRequest from huaweicloudsdkcdm.v1.model.list_clusters_response import ListClustersResponse +from huaweicloudsdkcdm.v1.model.modify_cluster_request import ModifyClusterRequest +from huaweicloudsdkcdm.v1.model.modify_cluster_response import ModifyClusterResponse from huaweicloudsdkcdm.v1.model.nics import Nics from huaweicloudsdkcdm.v1.model.resource import Resource from huaweicloudsdkcdm.v1.model.restart_cluster_request import RestartClusterRequest from huaweicloudsdkcdm.v1.model.restart_cluster_response import RestartClusterResponse +from huaweicloudsdkcdm.v1.model.show_availability_zones_request import ShowAvailabilityZonesRequest +from huaweicloudsdkcdm.v1.model.show_availability_zones_response import ShowAvailabilityZonesResponse from huaweicloudsdkcdm.v1.model.show_cluster_detail_request import ShowClusterDetailRequest from huaweicloudsdkcdm.v1.model.show_cluster_detail_response import ShowClusterDetailResponse +from huaweicloudsdkcdm.v1.model.show_cluster_enterprise_projects_request import ShowClusterEnterpriseProjectsRequest +from huaweicloudsdkcdm.v1.model.show_cluster_enterprise_projects_response import ShowClusterEnterpriseProjectsResponse +from huaweicloudsdkcdm.v1.model.show_datastores_request import ShowDatastoresRequest +from huaweicloudsdkcdm.v1.model.show_datastores_response import ShowDatastoresResponse +from huaweicloudsdkcdm.v1.model.show_enterprise_projects_request import ShowEnterpriseProjectsRequest +from huaweicloudsdkcdm.v1.model.show_enterprise_projects_response import ShowEnterpriseProjectsResponse +from huaweicloudsdkcdm.v1.model.show_flavor_detail_request import ShowFlavorDetailRequest +from huaweicloudsdkcdm.v1.model.show_flavor_detail_response import ShowFlavorDetailResponse +from huaweicloudsdkcdm.v1.model.show_flavors_request import ShowFlavorsRequest +from huaweicloudsdkcdm.v1.model.show_flavors_response import ShowFlavorsResponse +from huaweicloudsdkcdm.v1.model.show_instance_detail_request import ShowInstanceDetailRequest +from huaweicloudsdkcdm.v1.model.show_instance_detail_response import ShowInstanceDetailResponse from huaweicloudsdkcdm.v1.model.show_job_status_request import ShowJobStatusRequest from huaweicloudsdkcdm.v1.model.show_job_status_response import ShowJobStatusResponse from huaweicloudsdkcdm.v1.model.show_jobs_request import ShowJobsRequest diff --git a/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/cdm_async_client.py b/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/cdm_async_client.py index 7af35eb757..bd6ec1a7c2 100644 --- a/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/cdm_async_client.py +++ b/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/cdm_async_client.py @@ -566,6 +566,77 @@ def _list_clusters_http_info(self, request): return http_info + def modify_cluster_async(self, request): + """修改集群 + + 修改CDM集群配置。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ModifyCluster + :type request: :class:`huaweicloudsdkcdm.v1.ModifyClusterRequest` + :rtype: :class:`huaweicloudsdkcdm.v1.ModifyClusterResponse` + """ + http_info = self._modify_cluster_http_info(request) + return self._call_api(**http_info) + + def modify_cluster_async_invoker(self, request): + http_info = self._modify_cluster_http_info(request) + return AsyncInvoker(self, http_info) + + def _modify_cluster_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v1.1/{project_id}/cluster/modify/{cluster_id}", + "request_type": request.__class__.__name__, + "response_type": "ModifyClusterResponse" + } + + 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 = {} + if 'content_type' in local_var_params: + header_params['Content-Type'] = local_var_params['content_type'] + 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;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 restart_cluster_async(self, request): """重启集群 @@ -633,6 +704,71 @@ def _restart_cluster_http_info(self, request): return http_info + def show_availability_zones_async(self, request): + """查询所有可用区 + + 查询CDM集群的所有可用区。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowAvailabilityZones + :type request: :class:`huaweicloudsdkcdm.v1.ShowAvailabilityZonesRequest` + :rtype: :class:`huaweicloudsdkcdm.v1.ShowAvailabilityZonesResponse` + """ + http_info = self._show_availability_zones_http_info(request) + return self._call_api(**http_info) + + def show_availability_zones_async_invoker(self, request): + http_info = self._show_availability_zones_http_info(request) + return AsyncInvoker(self, http_info) + + def _show_availability_zones_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v1.1/{project_id}/regions/{region_id}/availability_zones", + "request_type": request.__class__.__name__, + "response_type": "ShowAvailabilityZonesResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'region_id' in local_var_params: + path_params['region_id'] = local_var_params['region_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_cluster_detail_async(self, request): """查询集群详情 @@ -698,6 +834,392 @@ def _show_cluster_detail_http_info(self, request): return http_info + def show_cluster_enterprise_projects_async(self, request): + """查询集群的企业项目ID + + 查询指定集群的企业项目ID。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowClusterEnterpriseProjects + :type request: :class:`huaweicloudsdkcdm.v1.ShowClusterEnterpriseProjectsRequest` + :rtype: :class:`huaweicloudsdkcdm.v1.ShowClusterEnterpriseProjectsResponse` + """ + http_info = self._show_cluster_enterprise_projects_http_info(request) + return self._call_api(**http_info) + + def show_cluster_enterprise_projects_async_invoker(self, request): + http_info = self._show_cluster_enterprise_projects_http_info(request) + return AsyncInvoker(self, http_info) + + def _show_cluster_enterprise_projects_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v1.1/{project_id}/clusters/{cluster_id}/enterprise-projects", + "request_type": request.__class__.__name__, + "response_type": "ShowClusterEnterpriseProjectsResponse" + } + + 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 show_datastores_async(self, request): + """查询支持的版本 + + 查询CDM集群支持的版本。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowDatastores + :type request: :class:`huaweicloudsdkcdm.v1.ShowDatastoresRequest` + :rtype: :class:`huaweicloudsdkcdm.v1.ShowDatastoresResponse` + """ + http_info = self._show_datastores_http_info(request) + return self._call_api(**http_info) + + def show_datastores_async_invoker(self, request): + http_info = self._show_datastores_http_info(request) + return AsyncInvoker(self, http_info) + + def _show_datastores_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v1.1/{project_id}/datastores", + "request_type": request.__class__.__name__, + "response_type": "ShowDatastoresResponse" + } + + 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_enterprise_projects_async(self, request): + """查询所有集群的企业项目ID + + 查询当前项目下的所有集群的企业项目ID。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowEnterpriseProjects + :type request: :class:`huaweicloudsdkcdm.v1.ShowEnterpriseProjectsRequest` + :rtype: :class:`huaweicloudsdkcdm.v1.ShowEnterpriseProjectsResponse` + """ + http_info = self._show_enterprise_projects_http_info(request) + return self._call_api(**http_info) + + def show_enterprise_projects_async_invoker(self, request): + http_info = self._show_enterprise_projects_http_info(request) + return AsyncInvoker(self, http_info) + + def _show_enterprise_projects_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v1.1/{project_id}/enterprise-projects", + "request_type": request.__class__.__name__, + "response_type": "ShowEnterpriseProjectsResponse" + } + + 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_flavor_detail_async(self, request): + """查询规格详情 + + 查询指定规格ID的规格详请。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowFlavorDetail + :type request: :class:`huaweicloudsdkcdm.v1.ShowFlavorDetailRequest` + :rtype: :class:`huaweicloudsdkcdm.v1.ShowFlavorDetailResponse` + """ + http_info = self._show_flavor_detail_http_info(request) + return self._call_api(**http_info) + + def show_flavor_detail_async_invoker(self, request): + http_info = self._show_flavor_detail_http_info(request) + return AsyncInvoker(self, http_info) + + def _show_flavor_detail_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v1.1/{project_id}/flavors/{flavor_id}", + "request_type": request.__class__.__name__, + "response_type": "ShowFlavorDetailResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'flavor_id' in local_var_params: + path_params['flavor_id'] = local_var_params['flavor_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_flavors_async(self, request): + """查询版本规格 + + 按版本ID查询所有兼容规格。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowFlavors + :type request: :class:`huaweicloudsdkcdm.v1.ShowFlavorsRequest` + :rtype: :class:`huaweicloudsdkcdm.v1.ShowFlavorsResponse` + """ + http_info = self._show_flavors_http_info(request) + return self._call_api(**http_info) + + def show_flavors_async_invoker(self, request): + http_info = self._show_flavors_http_info(request) + return AsyncInvoker(self, http_info) + + def _show_flavors_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v1.1/{project_id}/datastores/{datastore_id}/flavors", + "request_type": request.__class__.__name__, + "response_type": "ShowFlavorsResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'datastore_id' in local_var_params: + path_params['datastore_id'] = local_var_params['datastore_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_instance_detail_async(self, request): + """查询集群实例信息 + + 查询集群实例信息。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowInstanceDetail + :type request: :class:`huaweicloudsdkcdm.v1.ShowInstanceDetailRequest` + :rtype: :class:`huaweicloudsdkcdm.v1.ShowInstanceDetailResponse` + """ + http_info = self._show_instance_detail_http_info(request) + return self._call_api(**http_info) + + def show_instance_detail_async_invoker(self, request): + http_info = self._show_instance_detail_http_info(request) + return AsyncInvoker(self, http_info) + + def _show_instance_detail_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v1.1/{project_id}/instances/{instance_id}", + "request_type": request.__class__.__name__, + "response_type": "ShowInstanceDetailResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_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_job_status_async(self, request): """查询作业状态 diff --git a/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/cdm_client.py b/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/cdm_client.py index c5386e4829..9ca0bc0235 100644 --- a/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/cdm_client.py +++ b/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/cdm_client.py @@ -566,6 +566,77 @@ def _list_clusters_http_info(cls, request): return http_info + def modify_cluster(self, request): + """修改集群 + + 修改CDM集群配置。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ModifyCluster + :type request: :class:`huaweicloudsdkcdm.v1.ModifyClusterRequest` + :rtype: :class:`huaweicloudsdkcdm.v1.ModifyClusterResponse` + """ + http_info = self._modify_cluster_http_info(request) + return self._call_api(**http_info) + + def modify_cluster_invoker(self, request): + http_info = self._modify_cluster_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _modify_cluster_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v1.1/{project_id}/cluster/modify/{cluster_id}", + "request_type": request.__class__.__name__, + "response_type": "ModifyClusterResponse" + } + + 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 = {} + if 'content_type' in local_var_params: + header_params['Content-Type'] = local_var_params['content_type'] + 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;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 restart_cluster(self, request): """重启集群 @@ -633,6 +704,71 @@ def _restart_cluster_http_info(cls, request): return http_info + def show_availability_zones(self, request): + """查询所有可用区 + + 查询CDM集群的所有可用区。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowAvailabilityZones + :type request: :class:`huaweicloudsdkcdm.v1.ShowAvailabilityZonesRequest` + :rtype: :class:`huaweicloudsdkcdm.v1.ShowAvailabilityZonesResponse` + """ + http_info = self._show_availability_zones_http_info(request) + return self._call_api(**http_info) + + def show_availability_zones_invoker(self, request): + http_info = self._show_availability_zones_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _show_availability_zones_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v1.1/{project_id}/regions/{region_id}/availability_zones", + "request_type": request.__class__.__name__, + "response_type": "ShowAvailabilityZonesResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'region_id' in local_var_params: + path_params['region_id'] = local_var_params['region_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_cluster_detail(self, request): """查询集群详情 @@ -698,6 +834,392 @@ def _show_cluster_detail_http_info(cls, request): return http_info + def show_cluster_enterprise_projects(self, request): + """查询集群的企业项目ID + + 查询指定集群的企业项目ID。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowClusterEnterpriseProjects + :type request: :class:`huaweicloudsdkcdm.v1.ShowClusterEnterpriseProjectsRequest` + :rtype: :class:`huaweicloudsdkcdm.v1.ShowClusterEnterpriseProjectsResponse` + """ + http_info = self._show_cluster_enterprise_projects_http_info(request) + return self._call_api(**http_info) + + def show_cluster_enterprise_projects_invoker(self, request): + http_info = self._show_cluster_enterprise_projects_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _show_cluster_enterprise_projects_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v1.1/{project_id}/clusters/{cluster_id}/enterprise-projects", + "request_type": request.__class__.__name__, + "response_type": "ShowClusterEnterpriseProjectsResponse" + } + + 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 show_datastores(self, request): + """查询支持的版本 + + 查询CDM集群支持的版本。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowDatastores + :type request: :class:`huaweicloudsdkcdm.v1.ShowDatastoresRequest` + :rtype: :class:`huaweicloudsdkcdm.v1.ShowDatastoresResponse` + """ + http_info = self._show_datastores_http_info(request) + return self._call_api(**http_info) + + def show_datastores_invoker(self, request): + http_info = self._show_datastores_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _show_datastores_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v1.1/{project_id}/datastores", + "request_type": request.__class__.__name__, + "response_type": "ShowDatastoresResponse" + } + + 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_enterprise_projects(self, request): + """查询所有集群的企业项目ID + + 查询当前项目下的所有集群的企业项目ID。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowEnterpriseProjects + :type request: :class:`huaweicloudsdkcdm.v1.ShowEnterpriseProjectsRequest` + :rtype: :class:`huaweicloudsdkcdm.v1.ShowEnterpriseProjectsResponse` + """ + http_info = self._show_enterprise_projects_http_info(request) + return self._call_api(**http_info) + + def show_enterprise_projects_invoker(self, request): + http_info = self._show_enterprise_projects_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _show_enterprise_projects_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v1.1/{project_id}/enterprise-projects", + "request_type": request.__class__.__name__, + "response_type": "ShowEnterpriseProjectsResponse" + } + + 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_flavor_detail(self, request): + """查询规格详情 + + 查询指定规格ID的规格详请。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowFlavorDetail + :type request: :class:`huaweicloudsdkcdm.v1.ShowFlavorDetailRequest` + :rtype: :class:`huaweicloudsdkcdm.v1.ShowFlavorDetailResponse` + """ + http_info = self._show_flavor_detail_http_info(request) + return self._call_api(**http_info) + + def show_flavor_detail_invoker(self, request): + http_info = self._show_flavor_detail_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _show_flavor_detail_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v1.1/{project_id}/flavors/{flavor_id}", + "request_type": request.__class__.__name__, + "response_type": "ShowFlavorDetailResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'flavor_id' in local_var_params: + path_params['flavor_id'] = local_var_params['flavor_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_flavors(self, request): + """查询版本规格 + + 按版本ID查询所有兼容规格。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowFlavors + :type request: :class:`huaweicloudsdkcdm.v1.ShowFlavorsRequest` + :rtype: :class:`huaweicloudsdkcdm.v1.ShowFlavorsResponse` + """ + http_info = self._show_flavors_http_info(request) + return self._call_api(**http_info) + + def show_flavors_invoker(self, request): + http_info = self._show_flavors_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _show_flavors_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v1.1/{project_id}/datastores/{datastore_id}/flavors", + "request_type": request.__class__.__name__, + "response_type": "ShowFlavorsResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'datastore_id' in local_var_params: + path_params['datastore_id'] = local_var_params['datastore_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_instance_detail(self, request): + """查询集群实例信息 + + 查询集群实例信息。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowInstanceDetail + :type request: :class:`huaweicloudsdkcdm.v1.ShowInstanceDetailRequest` + :rtype: :class:`huaweicloudsdkcdm.v1.ShowInstanceDetailResponse` + """ + http_info = self._show_instance_detail_http_info(request) + return self._call_api(**http_info) + + def show_instance_detail_invoker(self, request): + http_info = self._show_instance_detail_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _show_instance_detail_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v1.1/{project_id}/instances/{instance_id}", + "request_type": request.__class__.__name__, + "response_type": "ShowInstanceDetailResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_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_job_status(self, request): """查询作业状态 diff --git a/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/__init__.py b/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/__init__.py index cb5c3578f9..c9bbf61d5f 100644 --- a/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/__init__.py +++ b/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/__init__.py @@ -4,13 +4,22 @@ # import models into model package from huaweicloudsdkcdm.v1.model.action_progress import ActionProgress +from huaweicloudsdkcdm.v1.model.cdm_cluster_availability_zone import CdmClusterAvailabilityZone +from huaweicloudsdkcdm.v1.model.cdm_cluster_datastore import CdmClusterDatastore +from huaweicloudsdkcdm.v1.model.cdm_cluster_datastore_version import CdmClusterDatastoreVersion +from huaweicloudsdkcdm.v1.model.cdm_cluster_enterprise_project import CdmClusterEnterpriseProject +from huaweicloudsdkcdm.v1.model.cdm_cluster_flavor import CdmClusterFlavor +from huaweicloudsdkcdm.v1.model.cdm_cluster_version import CdmClusterVersion from huaweicloudsdkcdm.v1.model.cdm_create_and_update_link_req import CdmCreateAndUpdateLinkReq from huaweicloudsdkcdm.v1.model.cdm_create_cluster_req import CdmCreateClusterReq from huaweicloudsdkcdm.v1.model.cdm_create_cluster_req_cluster import CdmCreateClusterReqCluster from huaweicloudsdkcdm.v1.model.cdm_create_job_json_req import CdmCreateJobJsonReq from huaweicloudsdkcdm.v1.model.cdm_delete_cluster_req import CdmDeleteClusterReq +from huaweicloudsdkcdm.v1.model.cdm_modify_cluster_req import CdmModifyClusterReq from huaweicloudsdkcdm.v1.model.cdm_query_cluster_details_repsonse_maintain_window import CdmQueryClusterDetailsRepsonseMaintainWindow from huaweicloudsdkcdm.v1.model.cdm_query_cluster_details_repsonse_public_endpoint_status import CdmQueryClusterDetailsRepsonsePublicEndpointStatus +from huaweicloudsdkcdm.v1.model.cdm_query_cluster_instance_detail import CdmQueryClusterInstanceDetail +from huaweicloudsdkcdm.v1.model.cdm_query_cluster_instance_detail_flavor import CdmQueryClusterInstanceDetailFlavor from huaweicloudsdkcdm.v1.model.cdm_random_create_and_start_job_json_req import CdmRandomCreateAndStartJobJsonReq from huaweicloudsdkcdm.v1.model.cdm_restart_cluster_req import CdmRestartClusterReq from huaweicloudsdkcdm.v1.model.cdm_restart_cluster_req_restart import CdmRestartClusterReqRestart @@ -50,6 +59,7 @@ from huaweicloudsdkcdm.v1.model.extended_properties import ExtendedProperties from huaweicloudsdkcdm.v1.model.failed_reasons import FailedReasons from huaweicloudsdkcdm.v1.model.failed_reasons_createfailed import FailedReasonsCREATEFAILED +from huaweicloudsdkcdm.v1.model.flavor_attribute import FlavorAttribute from huaweicloudsdkcdm.v1.model.input import Input from huaweicloudsdkcdm.v1.model.instance import Instance from huaweicloudsdkcdm.v1.model.job import Job @@ -59,12 +69,28 @@ from huaweicloudsdkcdm.v1.model.links_linkconfigvalues_extendedconfigs import LinksLinkconfigvaluesExtendedconfigs from huaweicloudsdkcdm.v1.model.list_clusters_request import ListClustersRequest from huaweicloudsdkcdm.v1.model.list_clusters_response import ListClustersResponse +from huaweicloudsdkcdm.v1.model.modify_cluster_request import ModifyClusterRequest +from huaweicloudsdkcdm.v1.model.modify_cluster_response import ModifyClusterResponse from huaweicloudsdkcdm.v1.model.nics import Nics from huaweicloudsdkcdm.v1.model.resource import Resource from huaweicloudsdkcdm.v1.model.restart_cluster_request import RestartClusterRequest from huaweicloudsdkcdm.v1.model.restart_cluster_response import RestartClusterResponse +from huaweicloudsdkcdm.v1.model.show_availability_zones_request import ShowAvailabilityZonesRequest +from huaweicloudsdkcdm.v1.model.show_availability_zones_response import ShowAvailabilityZonesResponse from huaweicloudsdkcdm.v1.model.show_cluster_detail_request import ShowClusterDetailRequest from huaweicloudsdkcdm.v1.model.show_cluster_detail_response import ShowClusterDetailResponse +from huaweicloudsdkcdm.v1.model.show_cluster_enterprise_projects_request import ShowClusterEnterpriseProjectsRequest +from huaweicloudsdkcdm.v1.model.show_cluster_enterprise_projects_response import ShowClusterEnterpriseProjectsResponse +from huaweicloudsdkcdm.v1.model.show_datastores_request import ShowDatastoresRequest +from huaweicloudsdkcdm.v1.model.show_datastores_response import ShowDatastoresResponse +from huaweicloudsdkcdm.v1.model.show_enterprise_projects_request import ShowEnterpriseProjectsRequest +from huaweicloudsdkcdm.v1.model.show_enterprise_projects_response import ShowEnterpriseProjectsResponse +from huaweicloudsdkcdm.v1.model.show_flavor_detail_request import ShowFlavorDetailRequest +from huaweicloudsdkcdm.v1.model.show_flavor_detail_response import ShowFlavorDetailResponse +from huaweicloudsdkcdm.v1.model.show_flavors_request import ShowFlavorsRequest +from huaweicloudsdkcdm.v1.model.show_flavors_response import ShowFlavorsResponse +from huaweicloudsdkcdm.v1.model.show_instance_detail_request import ShowInstanceDetailRequest +from huaweicloudsdkcdm.v1.model.show_instance_detail_response import ShowInstanceDetailResponse from huaweicloudsdkcdm.v1.model.show_job_status_request import ShowJobStatusRequest from huaweicloudsdkcdm.v1.model.show_job_status_response import ShowJobStatusResponse from huaweicloudsdkcdm.v1.model.show_jobs_request import ShowJobsRequest diff --git a/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/cdm_cluster_availability_zone.py b/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/cdm_cluster_availability_zone.py new file mode 100644 index 0000000000..e69198b263 --- /dev/null +++ b/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/cdm_cluster_availability_zone.py @@ -0,0 +1,260 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CdmClusterAvailabilityZone: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'available_zone_id': 'str', + 'available_zone_name': 'str', + 'available_zone_code': 'str', + 'az_status': 'str', + 'type': 'str', + 'tags': 'object' + } + + attribute_map = { + 'available_zone_id': 'availableZoneId', + 'available_zone_name': 'availableZoneName', + 'available_zone_code': 'availableZoneCode', + 'az_status': 'azStatus', + 'type': 'type', + 'tags': 'tags' + } + + def __init__(self, available_zone_id=None, available_zone_name=None, available_zone_code=None, az_status=None, type=None, tags=None): + """CdmClusterAvailabilityZone + + The model defined in huaweicloud sdk + + :param available_zone_id: 可用区ID。 + :type available_zone_id: str + :param available_zone_name: 可用区名称。 + :type available_zone_name: str + :param available_zone_code: 可用区码。 + :type available_zone_code: str + :param az_status: 可用区状态。 + :type az_status: str + :param type: 可用区类型。 + :type type: str + :param tags: 可用区tag。 + :type tags: object + """ + + + + self._available_zone_id = None + self._available_zone_name = None + self._available_zone_code = None + self._az_status = None + self._type = None + self._tags = None + self.discriminator = None + + if available_zone_id is not None: + self.available_zone_id = available_zone_id + if available_zone_name is not None: + self.available_zone_name = available_zone_name + if available_zone_code is not None: + self.available_zone_code = available_zone_code + if az_status is not None: + self.az_status = az_status + if type is not None: + self.type = type + if tags is not None: + self.tags = tags + + @property + def available_zone_id(self): + """Gets the available_zone_id of this CdmClusterAvailabilityZone. + + 可用区ID。 + + :return: The available_zone_id of this CdmClusterAvailabilityZone. + :rtype: str + """ + return self._available_zone_id + + @available_zone_id.setter + def available_zone_id(self, available_zone_id): + """Sets the available_zone_id of this CdmClusterAvailabilityZone. + + 可用区ID。 + + :param available_zone_id: The available_zone_id of this CdmClusterAvailabilityZone. + :type available_zone_id: str + """ + self._available_zone_id = available_zone_id + + @property + def available_zone_name(self): + """Gets the available_zone_name of this CdmClusterAvailabilityZone. + + 可用区名称。 + + :return: The available_zone_name of this CdmClusterAvailabilityZone. + :rtype: str + """ + return self._available_zone_name + + @available_zone_name.setter + def available_zone_name(self, available_zone_name): + """Sets the available_zone_name of this CdmClusterAvailabilityZone. + + 可用区名称。 + + :param available_zone_name: The available_zone_name of this CdmClusterAvailabilityZone. + :type available_zone_name: str + """ + self._available_zone_name = available_zone_name + + @property + def available_zone_code(self): + """Gets the available_zone_code of this CdmClusterAvailabilityZone. + + 可用区码。 + + :return: The available_zone_code of this CdmClusterAvailabilityZone. + :rtype: str + """ + return self._available_zone_code + + @available_zone_code.setter + def available_zone_code(self, available_zone_code): + """Sets the available_zone_code of this CdmClusterAvailabilityZone. + + 可用区码。 + + :param available_zone_code: The available_zone_code of this CdmClusterAvailabilityZone. + :type available_zone_code: str + """ + self._available_zone_code = available_zone_code + + @property + def az_status(self): + """Gets the az_status of this CdmClusterAvailabilityZone. + + 可用区状态。 + + :return: The az_status of this CdmClusterAvailabilityZone. + :rtype: str + """ + return self._az_status + + @az_status.setter + def az_status(self, az_status): + """Sets the az_status of this CdmClusterAvailabilityZone. + + 可用区状态。 + + :param az_status: The az_status of this CdmClusterAvailabilityZone. + :type az_status: str + """ + self._az_status = az_status + + @property + def type(self): + """Gets the type of this CdmClusterAvailabilityZone. + + 可用区类型。 + + :return: The type of this CdmClusterAvailabilityZone. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this CdmClusterAvailabilityZone. + + 可用区类型。 + + :param type: The type of this CdmClusterAvailabilityZone. + :type type: str + """ + self._type = type + + @property + def tags(self): + """Gets the tags of this CdmClusterAvailabilityZone. + + 可用区tag。 + + :return: The tags of this CdmClusterAvailabilityZone. + :rtype: object + """ + return self._tags + + @tags.setter + def tags(self, tags): + """Sets the tags of this CdmClusterAvailabilityZone. + + 可用区tag。 + + :param tags: The tags of this CdmClusterAvailabilityZone. + :type tags: object + """ + 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, CdmClusterAvailabilityZone): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/cdm_cluster_datastore.py b/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/cdm_cluster_datastore.py new file mode 100644 index 0000000000..ea43470d1d --- /dev/null +++ b/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/cdm_cluster_datastore.py @@ -0,0 +1,226 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CdmClusterDatastore: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'bigcluster_enable': 'bool', + 'default_version': 'str', + 'versions': 'list[CdmClusterVersion]' + } + + attribute_map = { + 'id': 'id', + 'name': 'name', + 'bigcluster_enable': 'bigclusterEnable', + 'default_version': 'defaultVersion', + 'versions': 'versions' + } + + def __init__(self, id=None, name=None, bigcluster_enable=None, default_version=None, versions=None): + """CdmClusterDatastore + + The model defined in huaweicloud sdk + + :param id: 服务ID,用于区分不同服务。 + :type id: str + :param name: 服务名称。 + :type name: str + :param bigcluster_enable: 是否支持大规格集群。 + :type bigcluster_enable: bool + :param default_version: 默认版本。 + :type default_version: str + :param versions: 版本。 + :type versions: list[:class:`huaweicloudsdkcdm.v1.CdmClusterVersion`] + """ + + + + self._id = None + self._name = None + self._bigcluster_enable = None + self._default_version = None + self._versions = None + self.discriminator = None + + self.id = id + self.name = name + self.bigcluster_enable = bigcluster_enable + self.default_version = default_version + self.versions = versions + + @property + def id(self): + """Gets the id of this CdmClusterDatastore. + + 服务ID,用于区分不同服务。 + + :return: The id of this CdmClusterDatastore. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this CdmClusterDatastore. + + 服务ID,用于区分不同服务。 + + :param id: The id of this CdmClusterDatastore. + :type id: str + """ + self._id = id + + @property + def name(self): + """Gets the name of this CdmClusterDatastore. + + 服务名称。 + + :return: The name of this CdmClusterDatastore. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this CdmClusterDatastore. + + 服务名称。 + + :param name: The name of this CdmClusterDatastore. + :type name: str + """ + self._name = name + + @property + def bigcluster_enable(self): + """Gets the bigcluster_enable of this CdmClusterDatastore. + + 是否支持大规格集群。 + + :return: The bigcluster_enable of this CdmClusterDatastore. + :rtype: bool + """ + return self._bigcluster_enable + + @bigcluster_enable.setter + def bigcluster_enable(self, bigcluster_enable): + """Sets the bigcluster_enable of this CdmClusterDatastore. + + 是否支持大规格集群。 + + :param bigcluster_enable: The bigcluster_enable of this CdmClusterDatastore. + :type bigcluster_enable: bool + """ + self._bigcluster_enable = bigcluster_enable + + @property + def default_version(self): + """Gets the default_version of this CdmClusterDatastore. + + 默认版本。 + + :return: The default_version of this CdmClusterDatastore. + :rtype: str + """ + return self._default_version + + @default_version.setter + def default_version(self, default_version): + """Sets the default_version of this CdmClusterDatastore. + + 默认版本。 + + :param default_version: The default_version of this CdmClusterDatastore. + :type default_version: str + """ + self._default_version = default_version + + @property + def versions(self): + """Gets the versions of this CdmClusterDatastore. + + 版本。 + + :return: The versions of this CdmClusterDatastore. + :rtype: list[:class:`huaweicloudsdkcdm.v1.CdmClusterVersion`] + """ + return self._versions + + @versions.setter + def versions(self, versions): + """Sets the versions of this CdmClusterDatastore. + + 版本。 + + :param versions: The versions of this CdmClusterDatastore. + :type versions: list[:class:`huaweicloudsdkcdm.v1.CdmClusterVersion`] + """ + self._versions = versions + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CdmClusterDatastore): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/cdm_cluster_datastore_version.py b/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/cdm_cluster_datastore_version.py new file mode 100644 index 0000000000..571694534c --- /dev/null +++ b/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/cdm_cluster_datastore_version.py @@ -0,0 +1,173 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CdmClusterDatastoreVersion: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'flavors': 'list[CdmClusterFlavor]' + } + + attribute_map = { + 'id': 'id', + 'name': 'name', + 'flavors': 'flavors' + } + + def __init__(self, id=None, name=None, flavors=None): + """CdmClusterDatastoreVersion + + The model defined in huaweicloud sdk + + :param id: 版本ID。 + :type id: str + :param name: 版本名称。 + :type name: str + :param flavors: 规格信息。 + :type flavors: list[:class:`huaweicloudsdkcdm.v1.CdmClusterFlavor`] + """ + + + + self._id = None + self._name = None + self._flavors = None + self.discriminator = None + + if id is not None: + self.id = id + if name is not None: + self.name = name + if flavors is not None: + self.flavors = flavors + + @property + def id(self): + """Gets the id of this CdmClusterDatastoreVersion. + + 版本ID。 + + :return: The id of this CdmClusterDatastoreVersion. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this CdmClusterDatastoreVersion. + + 版本ID。 + + :param id: The id of this CdmClusterDatastoreVersion. + :type id: str + """ + self._id = id + + @property + def name(self): + """Gets the name of this CdmClusterDatastoreVersion. + + 版本名称。 + + :return: The name of this CdmClusterDatastoreVersion. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this CdmClusterDatastoreVersion. + + 版本名称。 + + :param name: The name of this CdmClusterDatastoreVersion. + :type name: str + """ + self._name = name + + @property + def flavors(self): + """Gets the flavors of this CdmClusterDatastoreVersion. + + 规格信息。 + + :return: The flavors of this CdmClusterDatastoreVersion. + :rtype: list[:class:`huaweicloudsdkcdm.v1.CdmClusterFlavor`] + """ + return self._flavors + + @flavors.setter + def flavors(self, flavors): + """Sets the flavors of this CdmClusterDatastoreVersion. + + 规格信息。 + + :param flavors: The flavors of this CdmClusterDatastoreVersion. + :type flavors: list[:class:`huaweicloudsdkcdm.v1.CdmClusterFlavor`] + """ + self._flavors = flavors + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CdmClusterDatastoreVersion): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/cdm_cluster_enterprise_project.py b/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/cdm_cluster_enterprise_project.py new file mode 100644 index 0000000000..40a2200f0d --- /dev/null +++ b/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/cdm_cluster_enterprise_project.py @@ -0,0 +1,144 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CdmClusterEnterpriseProject: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'sys_tags': 'list[SysTags]' + } + + attribute_map = { + 'cluster_id': 'cluster_id', + 'sys_tags': 'sys_tags' + } + + def __init__(self, cluster_id=None, sys_tags=None): + """CdmClusterEnterpriseProject + + The model defined in huaweicloud sdk + + :param cluster_id: 集群ID + :type cluster_id: str + :param sys_tags: 企业项目列表 + :type sys_tags: list[:class:`huaweicloudsdkcdm.v1.SysTags`] + """ + + + + self._cluster_id = None + self._sys_tags = None + self.discriminator = None + + if cluster_id is not None: + self.cluster_id = cluster_id + if sys_tags is not None: + self.sys_tags = sys_tags + + @property + def cluster_id(self): + """Gets the cluster_id of this CdmClusterEnterpriseProject. + + 集群ID + + :return: The cluster_id of this CdmClusterEnterpriseProject. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this CdmClusterEnterpriseProject. + + 集群ID + + :param cluster_id: The cluster_id of this CdmClusterEnterpriseProject. + :type cluster_id: str + """ + self._cluster_id = cluster_id + + @property + def sys_tags(self): + """Gets the sys_tags of this CdmClusterEnterpriseProject. + + 企业项目列表 + + :return: The sys_tags of this CdmClusterEnterpriseProject. + :rtype: list[:class:`huaweicloudsdkcdm.v1.SysTags`] + """ + return self._sys_tags + + @sys_tags.setter + def sys_tags(self, sys_tags): + """Sets the sys_tags of this CdmClusterEnterpriseProject. + + 企业项目列表 + + :param sys_tags: The sys_tags of this CdmClusterEnterpriseProject. + :type sys_tags: list[:class:`huaweicloudsdkcdm.v1.SysTags`] + """ + self._sys_tags = sys_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, CdmClusterEnterpriseProject): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/cdm_cluster_flavor.py b/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/cdm_cluster_flavor.py new file mode 100644 index 0000000000..3487c36ac4 --- /dev/null +++ b/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/cdm_cluster_flavor.py @@ -0,0 +1,318 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CdmClusterFlavor: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'cpu': 'int', + 'ram': 'int', + 'name': 'str', + 'region': 'str', + 'typename': 'str', + 'cluster_mode': 'str', + 'status': 'str', + 'str_id': 'str' + } + + attribute_map = { + 'cpu': 'cpu', + 'ram': 'ram', + 'name': 'name', + 'region': 'region', + 'typename': 'typename', + 'cluster_mode': 'clusterMode', + 'status': 'status', + 'str_id': 'str_id' + } + + def __init__(self, cpu=None, ram=None, name=None, region=None, typename=None, cluster_mode=None, status=None, str_id=None): + """CdmClusterFlavor + + The model defined in huaweicloud sdk + + :param cpu: CPU。 + :type cpu: int + :param ram: 内存。 + :type ram: int + :param name: 规格名称。 + :type name: str + :param region: region。 + :type region: str + :param typename: 类型名称。 + :type typename: str + :param cluster_mode: 集群模式。 + :type cluster_mode: str + :param status: 规格状态。 + :type status: str + :param str_id: 规格ID。 + :type str_id: str + """ + + + + self._cpu = None + self._ram = None + self._name = None + self._region = None + self._typename = None + self._cluster_mode = None + self._status = None + self._str_id = None + self.discriminator = None + + if cpu is not None: + self.cpu = cpu + if ram is not None: + self.ram = ram + if name is not None: + self.name = name + if region is not None: + self.region = region + if typename is not None: + self.typename = typename + if cluster_mode is not None: + self.cluster_mode = cluster_mode + if status is not None: + self.status = status + if str_id is not None: + self.str_id = str_id + + @property + def cpu(self): + """Gets the cpu of this CdmClusterFlavor. + + CPU。 + + :return: The cpu of this CdmClusterFlavor. + :rtype: int + """ + return self._cpu + + @cpu.setter + def cpu(self, cpu): + """Sets the cpu of this CdmClusterFlavor. + + CPU。 + + :param cpu: The cpu of this CdmClusterFlavor. + :type cpu: int + """ + self._cpu = cpu + + @property + def ram(self): + """Gets the ram of this CdmClusterFlavor. + + 内存。 + + :return: The ram of this CdmClusterFlavor. + :rtype: int + """ + return self._ram + + @ram.setter + def ram(self, ram): + """Sets the ram of this CdmClusterFlavor. + + 内存。 + + :param ram: The ram of this CdmClusterFlavor. + :type ram: int + """ + self._ram = ram + + @property + def name(self): + """Gets the name of this CdmClusterFlavor. + + 规格名称。 + + :return: The name of this CdmClusterFlavor. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this CdmClusterFlavor. + + 规格名称。 + + :param name: The name of this CdmClusterFlavor. + :type name: str + """ + self._name = name + + @property + def region(self): + """Gets the region of this CdmClusterFlavor. + + region。 + + :return: The region of this CdmClusterFlavor. + :rtype: str + """ + return self._region + + @region.setter + def region(self, region): + """Sets the region of this CdmClusterFlavor. + + region。 + + :param region: The region of this CdmClusterFlavor. + :type region: str + """ + self._region = region + + @property + def typename(self): + """Gets the typename of this CdmClusterFlavor. + + 类型名称。 + + :return: The typename of this CdmClusterFlavor. + :rtype: str + """ + return self._typename + + @typename.setter + def typename(self, typename): + """Sets the typename of this CdmClusterFlavor. + + 类型名称。 + + :param typename: The typename of this CdmClusterFlavor. + :type typename: str + """ + self._typename = typename + + @property + def cluster_mode(self): + """Gets the cluster_mode of this CdmClusterFlavor. + + 集群模式。 + + :return: The cluster_mode of this CdmClusterFlavor. + :rtype: str + """ + return self._cluster_mode + + @cluster_mode.setter + def cluster_mode(self, cluster_mode): + """Sets the cluster_mode of this CdmClusterFlavor. + + 集群模式。 + + :param cluster_mode: The cluster_mode of this CdmClusterFlavor. + :type cluster_mode: str + """ + self._cluster_mode = cluster_mode + + @property + def status(self): + """Gets the status of this CdmClusterFlavor. + + 规格状态。 + + :return: The status of this CdmClusterFlavor. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this CdmClusterFlavor. + + 规格状态。 + + :param status: The status of this CdmClusterFlavor. + :type status: str + """ + self._status = status + + @property + def str_id(self): + """Gets the str_id of this CdmClusterFlavor. + + 规格ID。 + + :return: The str_id of this CdmClusterFlavor. + :rtype: str + """ + return self._str_id + + @str_id.setter + def str_id(self, str_id): + """Sets the str_id of this CdmClusterFlavor. + + 规格ID。 + + :param str_id: The str_id of this CdmClusterFlavor. + :type str_id: str + """ + self._str_id = str_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, CdmClusterFlavor): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/cdm_cluster_version.py b/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/cdm_cluster_version.py new file mode 100644 index 0000000000..6e99c09322 --- /dev/null +++ b/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/cdm_cluster_version.py @@ -0,0 +1,289 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CdmClusterVersion: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'active': 'str', + 'id': 'str', + 'image': 'str', + 'name': 'str', + 'packages': 'str', + 'datastore': 'str', + 'links': 'list[ClusterLinks]' + } + + attribute_map = { + 'active': 'active', + 'id': 'id', + 'image': 'image', + 'name': 'name', + 'packages': 'packages', + 'datastore': 'datastore', + 'links': 'links' + } + + def __init__(self, active=None, id=None, image=None, name=None, packages=None, datastore=None, links=None): + """CdmClusterVersion + + The model defined in huaweicloud sdk + + :param active: 版本状态。 + :type active: str + :param id: 版本ID。 + :type id: str + :param image: 版本镜像。 + :type image: str + :param name: 版本名称。 + :type name: str + :param packages: 版本的包。 + :type packages: str + :param datastore: 服务ID,用于区分不同服务。 + :type datastore: str + :param links: 链接信息。 + :type links: list[:class:`huaweicloudsdkcdm.v1.ClusterLinks`] + """ + + + + self._active = None + self._id = None + self._image = None + self._name = None + self._packages = None + self._datastore = None + self._links = None + self.discriminator = None + + if active is not None: + self.active = active + if id is not None: + self.id = id + if image is not None: + self.image = image + if name is not None: + self.name = name + if packages is not None: + self.packages = packages + if datastore is not None: + self.datastore = datastore + if links is not None: + self.links = links + + @property + def active(self): + """Gets the active of this CdmClusterVersion. + + 版本状态。 + + :return: The active of this CdmClusterVersion. + :rtype: str + """ + return self._active + + @active.setter + def active(self, active): + """Sets the active of this CdmClusterVersion. + + 版本状态。 + + :param active: The active of this CdmClusterVersion. + :type active: str + """ + self._active = active + + @property + def id(self): + """Gets the id of this CdmClusterVersion. + + 版本ID。 + + :return: The id of this CdmClusterVersion. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this CdmClusterVersion. + + 版本ID。 + + :param id: The id of this CdmClusterVersion. + :type id: str + """ + self._id = id + + @property + def image(self): + """Gets the image of this CdmClusterVersion. + + 版本镜像。 + + :return: The image of this CdmClusterVersion. + :rtype: str + """ + return self._image + + @image.setter + def image(self, image): + """Sets the image of this CdmClusterVersion. + + 版本镜像。 + + :param image: The image of this CdmClusterVersion. + :type image: str + """ + self._image = image + + @property + def name(self): + """Gets the name of this CdmClusterVersion. + + 版本名称。 + + :return: The name of this CdmClusterVersion. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this CdmClusterVersion. + + 版本名称。 + + :param name: The name of this CdmClusterVersion. + :type name: str + """ + self._name = name + + @property + def packages(self): + """Gets the packages of this CdmClusterVersion. + + 版本的包。 + + :return: The packages of this CdmClusterVersion. + :rtype: str + """ + return self._packages + + @packages.setter + def packages(self, packages): + """Sets the packages of this CdmClusterVersion. + + 版本的包。 + + :param packages: The packages of this CdmClusterVersion. + :type packages: str + """ + self._packages = packages + + @property + def datastore(self): + """Gets the datastore of this CdmClusterVersion. + + 服务ID,用于区分不同服务。 + + :return: The datastore of this CdmClusterVersion. + :rtype: str + """ + return self._datastore + + @datastore.setter + def datastore(self, datastore): + """Sets the datastore of this CdmClusterVersion. + + 服务ID,用于区分不同服务。 + + :param datastore: The datastore of this CdmClusterVersion. + :type datastore: str + """ + self._datastore = datastore + + @property + def links(self): + """Gets the links of this CdmClusterVersion. + + 链接信息。 + + :return: The links of this CdmClusterVersion. + :rtype: list[:class:`huaweicloudsdkcdm.v1.ClusterLinks`] + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this CdmClusterVersion. + + 链接信息。 + + :param links: The links of this CdmClusterVersion. + :type links: list[:class:`huaweicloudsdkcdm.v1.ClusterLinks`] + """ + self._links = links + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CdmClusterVersion): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/cdm_modify_cluster_req.py b/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/cdm_modify_cluster_req.py new file mode 100644 index 0000000000..d88f335942 --- /dev/null +++ b/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/cdm_modify_cluster_req.py @@ -0,0 +1,289 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CdmModifyClusterReq: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'auto_off': 'bool', + 'schedule_boot_off': 'bool', + 'schedule_boot_time': 'str', + 'schedule_off_time': 'str', + 'auto_remind': 'bool', + 'phone_num': 'str', + 'email': 'str' + } + + attribute_map = { + 'auto_off': 'autoOff', + 'schedule_boot_off': 'scheduleBootOff', + 'schedule_boot_time': 'scheduleBootTime', + 'schedule_off_time': 'scheduleOffTime', + 'auto_remind': 'autoRemind', + 'phone_num': 'phoneNum', + 'email': 'email' + } + + def __init__(self, auto_off=None, schedule_boot_off=None, schedule_boot_time=None, schedule_off_time=None, auto_remind=None, phone_num=None, email=None): + """CdmModifyClusterReq + + The model defined in huaweicloud sdk + + :param auto_off: 自动关机。 + :type auto_off: bool + :param schedule_boot_off: 定时关机。 + :type schedule_boot_off: bool + :param schedule_boot_time: 定时开机。 + :type schedule_boot_time: str + :param schedule_off_time: 定时关机时间。 + :type schedule_off_time: str + :param auto_remind: 消息通知。 + :type auto_remind: bool + :param phone_num: 手机号码,最多填写20个,以英文逗号分隔。 + :type phone_num: str + :param email: 邮箱地址,最多填写20个,以英文逗号分隔。 + :type email: str + """ + + + + self._auto_off = None + self._schedule_boot_off = None + self._schedule_boot_time = None + self._schedule_off_time = None + self._auto_remind = None + self._phone_num = None + self._email = None + self.discriminator = None + + if auto_off is not None: + self.auto_off = auto_off + if schedule_boot_off is not None: + self.schedule_boot_off = schedule_boot_off + if schedule_boot_time is not None: + self.schedule_boot_time = schedule_boot_time + if schedule_off_time is not None: + self.schedule_off_time = schedule_off_time + if auto_remind is not None: + self.auto_remind = auto_remind + if phone_num is not None: + self.phone_num = phone_num + if email is not None: + self.email = email + + @property + def auto_off(self): + """Gets the auto_off of this CdmModifyClusterReq. + + 自动关机。 + + :return: The auto_off of this CdmModifyClusterReq. + :rtype: bool + """ + return self._auto_off + + @auto_off.setter + def auto_off(self, auto_off): + """Sets the auto_off of this CdmModifyClusterReq. + + 自动关机。 + + :param auto_off: The auto_off of this CdmModifyClusterReq. + :type auto_off: bool + """ + self._auto_off = auto_off + + @property + def schedule_boot_off(self): + """Gets the schedule_boot_off of this CdmModifyClusterReq. + + 定时关机。 + + :return: The schedule_boot_off of this CdmModifyClusterReq. + :rtype: bool + """ + return self._schedule_boot_off + + @schedule_boot_off.setter + def schedule_boot_off(self, schedule_boot_off): + """Sets the schedule_boot_off of this CdmModifyClusterReq. + + 定时关机。 + + :param schedule_boot_off: The schedule_boot_off of this CdmModifyClusterReq. + :type schedule_boot_off: bool + """ + self._schedule_boot_off = schedule_boot_off + + @property + def schedule_boot_time(self): + """Gets the schedule_boot_time of this CdmModifyClusterReq. + + 定时开机。 + + :return: The schedule_boot_time of this CdmModifyClusterReq. + :rtype: str + """ + return self._schedule_boot_time + + @schedule_boot_time.setter + def schedule_boot_time(self, schedule_boot_time): + """Sets the schedule_boot_time of this CdmModifyClusterReq. + + 定时开机。 + + :param schedule_boot_time: The schedule_boot_time of this CdmModifyClusterReq. + :type schedule_boot_time: str + """ + self._schedule_boot_time = schedule_boot_time + + @property + def schedule_off_time(self): + """Gets the schedule_off_time of this CdmModifyClusterReq. + + 定时关机时间。 + + :return: The schedule_off_time of this CdmModifyClusterReq. + :rtype: str + """ + return self._schedule_off_time + + @schedule_off_time.setter + def schedule_off_time(self, schedule_off_time): + """Sets the schedule_off_time of this CdmModifyClusterReq. + + 定时关机时间。 + + :param schedule_off_time: The schedule_off_time of this CdmModifyClusterReq. + :type schedule_off_time: str + """ + self._schedule_off_time = schedule_off_time + + @property + def auto_remind(self): + """Gets the auto_remind of this CdmModifyClusterReq. + + 消息通知。 + + :return: The auto_remind of this CdmModifyClusterReq. + :rtype: bool + """ + return self._auto_remind + + @auto_remind.setter + def auto_remind(self, auto_remind): + """Sets the auto_remind of this CdmModifyClusterReq. + + 消息通知。 + + :param auto_remind: The auto_remind of this CdmModifyClusterReq. + :type auto_remind: bool + """ + self._auto_remind = auto_remind + + @property + def phone_num(self): + """Gets the phone_num of this CdmModifyClusterReq. + + 手机号码,最多填写20个,以英文逗号分隔。 + + :return: The phone_num of this CdmModifyClusterReq. + :rtype: str + """ + return self._phone_num + + @phone_num.setter + def phone_num(self, phone_num): + """Sets the phone_num of this CdmModifyClusterReq. + + 手机号码,最多填写20个,以英文逗号分隔。 + + :param phone_num: The phone_num of this CdmModifyClusterReq. + :type phone_num: str + """ + self._phone_num = phone_num + + @property + def email(self): + """Gets the email of this CdmModifyClusterReq. + + 邮箱地址,最多填写20个,以英文逗号分隔。 + + :return: The email of this CdmModifyClusterReq. + :rtype: str + """ + return self._email + + @email.setter + def email(self, email): + """Sets the email of this CdmModifyClusterReq. + + 邮箱地址,最多填写20个,以英文逗号分隔。 + + :param email: The email of this CdmModifyClusterReq. + :type email: str + """ + self._email = email + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CdmModifyClusterReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/cdm_query_cluster_instance_detail.py b/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/cdm_query_cluster_instance_detail.py new file mode 100644 index 0000000000..2322fd9a5a --- /dev/null +++ b/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/cdm_query_cluster_instance_detail.py @@ -0,0 +1,687 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CdmQueryClusterInstanceDetail: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'configuration_status': 'str', + 'params_group_id': 'str', + 'type': 'str', + 'role': 'str', + 'subnetid': 'str', + 'securegroup': 'str', + 'vpc': 'str', + 'azcode': 'str', + 'region': 'str', + 'created': 'str', + 'updated': 'str', + 'name': 'str', + 'id': 'str', + 'flavor': 'CdmQueryClusterInstanceDetailFlavor', + 'datastore': 'Datastore', + 'dbuser': 'str', + 'pay_model': 'int', + 'public_ip': 'str', + 'traffic_ip': 'str', + 'traffic_ipv6': 'str', + 'cluster_id': 'str' + } + + attribute_map = { + 'configuration_status': 'configurationStatus', + 'params_group_id': 'paramsGroupId', + 'type': 'type', + 'role': 'role', + 'subnetid': 'subnetid', + 'securegroup': 'securegroup', + 'vpc': 'vpc', + 'azcode': 'azcode', + 'region': 'region', + 'created': 'created', + 'updated': 'updated', + 'name': 'name', + 'id': 'id', + 'flavor': 'flavor', + 'datastore': 'datastore', + 'dbuser': 'dbuser', + 'pay_model': 'payModel', + 'public_ip': 'publicIp', + 'traffic_ip': 'trafficIp', + 'traffic_ipv6': 'trafficIpv6', + 'cluster_id': 'cluster_id' + } + + def __init__(self, configuration_status=None, params_group_id=None, type=None, role=None, subnetid=None, securegroup=None, vpc=None, azcode=None, region=None, created=None, updated=None, name=None, id=None, flavor=None, datastore=None, dbuser=None, pay_model=None, public_ip=None, traffic_ip=None, traffic_ipv6=None, cluster_id=None): + """CdmQueryClusterInstanceDetail + + The model defined in huaweicloud sdk + + :param configuration_status: 节点配置状态: - In-Sync:配置已同步。 - Applying:配置中。 - Sync-Failure:配置失败。 + :type configuration_status: str + :param params_group_id: 配置ID + :type params_group_id: str + :param type: 配置服务类型,这里为cdm + :type type: str + :param role: 实例模式,这里为Standalone + :type role: str + :param subnetid: 实例的子网ID + :type subnetid: str + :param securegroup: 安全组ID + :type securegroup: str + :param vpc: 实例的VPC ID + :type vpc: str + :param azcode: 可用区名称 + :type azcode: str + :param region: 局点名称 + :type region: str + :param created: 实例创建时间,格式为ISO8601:YYYY-MM-DDThh:mm:ssZ + :type created: str + :param updated: 实例更新时间,格式为ISO8601:YYYY-MM-DDThh:mm:ssZ + :type updated: str + :param name: 实例名称 + :type name: str + :param id: 实例ID + :type id: str + :param flavor: + :type flavor: :class:`huaweicloudsdkcdm.v1.CdmQueryClusterInstanceDetailFlavor` + :param datastore: + :type datastore: :class:`huaweicloudsdkcdm.v1.Datastore` + :param dbuser: 数据库用户,这里为cdm。 + :type dbuser: str + :param pay_model: 付费模式: - 0:按需 - 1:包周期 + :type pay_model: int + :param public_ip: 集群绑定的公网地址 + :type public_ip: str + :param traffic_ip: 集群的内网地址 + :type traffic_ip: str + :param traffic_ipv6: 集群的内网IPv6地址 + :type traffic_ipv6: str + :param cluster_id: 集群ID + :type cluster_id: str + """ + + + + self._configuration_status = None + self._params_group_id = None + self._type = None + self._role = None + self._subnetid = None + self._securegroup = None + self._vpc = None + self._azcode = None + self._region = None + self._created = None + self._updated = None + self._name = None + self._id = None + self._flavor = None + self._datastore = None + self._dbuser = None + self._pay_model = None + self._public_ip = None + self._traffic_ip = None + self._traffic_ipv6 = None + self._cluster_id = None + self.discriminator = None + + if configuration_status is not None: + self.configuration_status = configuration_status + if params_group_id is not None: + self.params_group_id = params_group_id + if type is not None: + self.type = type + if role is not None: + self.role = role + if subnetid is not None: + self.subnetid = subnetid + if securegroup is not None: + self.securegroup = securegroup + if vpc is not None: + self.vpc = vpc + if azcode is not None: + self.azcode = azcode + if region is not None: + self.region = region + if created is not None: + self.created = created + if updated is not None: + self.updated = updated + if name is not None: + self.name = name + if id is not None: + self.id = id + if flavor is not None: + self.flavor = flavor + if datastore is not None: + self.datastore = datastore + if dbuser is not None: + self.dbuser = dbuser + if pay_model is not None: + self.pay_model = pay_model + if public_ip is not None: + self.public_ip = public_ip + if traffic_ip is not None: + self.traffic_ip = traffic_ip + if traffic_ipv6 is not None: + self.traffic_ipv6 = traffic_ipv6 + if cluster_id is not None: + self.cluster_id = cluster_id + + @property + def configuration_status(self): + """Gets the configuration_status of this CdmQueryClusterInstanceDetail. + + 节点配置状态: - In-Sync:配置已同步。 - Applying:配置中。 - Sync-Failure:配置失败。 + + :return: The configuration_status of this CdmQueryClusterInstanceDetail. + :rtype: str + """ + return self._configuration_status + + @configuration_status.setter + def configuration_status(self, configuration_status): + """Sets the configuration_status of this CdmQueryClusterInstanceDetail. + + 节点配置状态: - In-Sync:配置已同步。 - Applying:配置中。 - Sync-Failure:配置失败。 + + :param configuration_status: The configuration_status of this CdmQueryClusterInstanceDetail. + :type configuration_status: str + """ + self._configuration_status = configuration_status + + @property + def params_group_id(self): + """Gets the params_group_id of this CdmQueryClusterInstanceDetail. + + 配置ID + + :return: The params_group_id of this CdmQueryClusterInstanceDetail. + :rtype: str + """ + return self._params_group_id + + @params_group_id.setter + def params_group_id(self, params_group_id): + """Sets the params_group_id of this CdmQueryClusterInstanceDetail. + + 配置ID + + :param params_group_id: The params_group_id of this CdmQueryClusterInstanceDetail. + :type params_group_id: str + """ + self._params_group_id = params_group_id + + @property + def type(self): + """Gets the type of this CdmQueryClusterInstanceDetail. + + 配置服务类型,这里为cdm + + :return: The type of this CdmQueryClusterInstanceDetail. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this CdmQueryClusterInstanceDetail. + + 配置服务类型,这里为cdm + + :param type: The type of this CdmQueryClusterInstanceDetail. + :type type: str + """ + self._type = type + + @property + def role(self): + """Gets the role of this CdmQueryClusterInstanceDetail. + + 实例模式,这里为Standalone + + :return: The role of this CdmQueryClusterInstanceDetail. + :rtype: str + """ + return self._role + + @role.setter + def role(self, role): + """Sets the role of this CdmQueryClusterInstanceDetail. + + 实例模式,这里为Standalone + + :param role: The role of this CdmQueryClusterInstanceDetail. + :type role: str + """ + self._role = role + + @property + def subnetid(self): + """Gets the subnetid of this CdmQueryClusterInstanceDetail. + + 实例的子网ID + + :return: The subnetid of this CdmQueryClusterInstanceDetail. + :rtype: str + """ + return self._subnetid + + @subnetid.setter + def subnetid(self, subnetid): + """Sets the subnetid of this CdmQueryClusterInstanceDetail. + + 实例的子网ID + + :param subnetid: The subnetid of this CdmQueryClusterInstanceDetail. + :type subnetid: str + """ + self._subnetid = subnetid + + @property + def securegroup(self): + """Gets the securegroup of this CdmQueryClusterInstanceDetail. + + 安全组ID + + :return: The securegroup of this CdmQueryClusterInstanceDetail. + :rtype: str + """ + return self._securegroup + + @securegroup.setter + def securegroup(self, securegroup): + """Sets the securegroup of this CdmQueryClusterInstanceDetail. + + 安全组ID + + :param securegroup: The securegroup of this CdmQueryClusterInstanceDetail. + :type securegroup: str + """ + self._securegroup = securegroup + + @property + def vpc(self): + """Gets the vpc of this CdmQueryClusterInstanceDetail. + + 实例的VPC ID + + :return: The vpc of this CdmQueryClusterInstanceDetail. + :rtype: str + """ + return self._vpc + + @vpc.setter + def vpc(self, vpc): + """Sets the vpc of this CdmQueryClusterInstanceDetail. + + 实例的VPC ID + + :param vpc: The vpc of this CdmQueryClusterInstanceDetail. + :type vpc: str + """ + self._vpc = vpc + + @property + def azcode(self): + """Gets the azcode of this CdmQueryClusterInstanceDetail. + + 可用区名称 + + :return: The azcode of this CdmQueryClusterInstanceDetail. + :rtype: str + """ + return self._azcode + + @azcode.setter + def azcode(self, azcode): + """Sets the azcode of this CdmQueryClusterInstanceDetail. + + 可用区名称 + + :param azcode: The azcode of this CdmQueryClusterInstanceDetail. + :type azcode: str + """ + self._azcode = azcode + + @property + def region(self): + """Gets the region of this CdmQueryClusterInstanceDetail. + + 局点名称 + + :return: The region of this CdmQueryClusterInstanceDetail. + :rtype: str + """ + return self._region + + @region.setter + def region(self, region): + """Sets the region of this CdmQueryClusterInstanceDetail. + + 局点名称 + + :param region: The region of this CdmQueryClusterInstanceDetail. + :type region: str + """ + self._region = region + + @property + def created(self): + """Gets the created of this CdmQueryClusterInstanceDetail. + + 实例创建时间,格式为ISO8601:YYYY-MM-DDThh:mm:ssZ + + :return: The created of this CdmQueryClusterInstanceDetail. + :rtype: str + """ + return self._created + + @created.setter + def created(self, created): + """Sets the created of this CdmQueryClusterInstanceDetail. + + 实例创建时间,格式为ISO8601:YYYY-MM-DDThh:mm:ssZ + + :param created: The created of this CdmQueryClusterInstanceDetail. + :type created: str + """ + self._created = created + + @property + def updated(self): + """Gets the updated of this CdmQueryClusterInstanceDetail. + + 实例更新时间,格式为ISO8601:YYYY-MM-DDThh:mm:ssZ + + :return: The updated of this CdmQueryClusterInstanceDetail. + :rtype: str + """ + return self._updated + + @updated.setter + def updated(self, updated): + """Sets the updated of this CdmQueryClusterInstanceDetail. + + 实例更新时间,格式为ISO8601:YYYY-MM-DDThh:mm:ssZ + + :param updated: The updated of this CdmQueryClusterInstanceDetail. + :type updated: str + """ + self._updated = updated + + @property + def name(self): + """Gets the name of this CdmQueryClusterInstanceDetail. + + 实例名称 + + :return: The name of this CdmQueryClusterInstanceDetail. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this CdmQueryClusterInstanceDetail. + + 实例名称 + + :param name: The name of this CdmQueryClusterInstanceDetail. + :type name: str + """ + self._name = name + + @property + def id(self): + """Gets the id of this CdmQueryClusterInstanceDetail. + + 实例ID + + :return: The id of this CdmQueryClusterInstanceDetail. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this CdmQueryClusterInstanceDetail. + + 实例ID + + :param id: The id of this CdmQueryClusterInstanceDetail. + :type id: str + """ + self._id = id + + @property + def flavor(self): + """Gets the flavor of this CdmQueryClusterInstanceDetail. + + :return: The flavor of this CdmQueryClusterInstanceDetail. + :rtype: :class:`huaweicloudsdkcdm.v1.CdmQueryClusterInstanceDetailFlavor` + """ + return self._flavor + + @flavor.setter + def flavor(self, flavor): + """Sets the flavor of this CdmQueryClusterInstanceDetail. + + :param flavor: The flavor of this CdmQueryClusterInstanceDetail. + :type flavor: :class:`huaweicloudsdkcdm.v1.CdmQueryClusterInstanceDetailFlavor` + """ + self._flavor = flavor + + @property + def datastore(self): + """Gets the datastore of this CdmQueryClusterInstanceDetail. + + :return: The datastore of this CdmQueryClusterInstanceDetail. + :rtype: :class:`huaweicloudsdkcdm.v1.Datastore` + """ + return self._datastore + + @datastore.setter + def datastore(self, datastore): + """Sets the datastore of this CdmQueryClusterInstanceDetail. + + :param datastore: The datastore of this CdmQueryClusterInstanceDetail. + :type datastore: :class:`huaweicloudsdkcdm.v1.Datastore` + """ + self._datastore = datastore + + @property + def dbuser(self): + """Gets the dbuser of this CdmQueryClusterInstanceDetail. + + 数据库用户,这里为cdm。 + + :return: The dbuser of this CdmQueryClusterInstanceDetail. + :rtype: str + """ + return self._dbuser + + @dbuser.setter + def dbuser(self, dbuser): + """Sets the dbuser of this CdmQueryClusterInstanceDetail. + + 数据库用户,这里为cdm。 + + :param dbuser: The dbuser of this CdmQueryClusterInstanceDetail. + :type dbuser: str + """ + self._dbuser = dbuser + + @property + def pay_model(self): + """Gets the pay_model of this CdmQueryClusterInstanceDetail. + + 付费模式: - 0:按需 - 1:包周期 + + :return: The pay_model of this CdmQueryClusterInstanceDetail. + :rtype: int + """ + return self._pay_model + + @pay_model.setter + def pay_model(self, pay_model): + """Sets the pay_model of this CdmQueryClusterInstanceDetail. + + 付费模式: - 0:按需 - 1:包周期 + + :param pay_model: The pay_model of this CdmQueryClusterInstanceDetail. + :type pay_model: int + """ + self._pay_model = pay_model + + @property + def public_ip(self): + """Gets the public_ip of this CdmQueryClusterInstanceDetail. + + 集群绑定的公网地址 + + :return: The public_ip of this CdmQueryClusterInstanceDetail. + :rtype: str + """ + return self._public_ip + + @public_ip.setter + def public_ip(self, public_ip): + """Sets the public_ip of this CdmQueryClusterInstanceDetail. + + 集群绑定的公网地址 + + :param public_ip: The public_ip of this CdmQueryClusterInstanceDetail. + :type public_ip: str + """ + self._public_ip = public_ip + + @property + def traffic_ip(self): + """Gets the traffic_ip of this CdmQueryClusterInstanceDetail. + + 集群的内网地址 + + :return: The traffic_ip of this CdmQueryClusterInstanceDetail. + :rtype: str + """ + return self._traffic_ip + + @traffic_ip.setter + def traffic_ip(self, traffic_ip): + """Sets the traffic_ip of this CdmQueryClusterInstanceDetail. + + 集群的内网地址 + + :param traffic_ip: The traffic_ip of this CdmQueryClusterInstanceDetail. + :type traffic_ip: str + """ + self._traffic_ip = traffic_ip + + @property + def traffic_ipv6(self): + """Gets the traffic_ipv6 of this CdmQueryClusterInstanceDetail. + + 集群的内网IPv6地址 + + :return: The traffic_ipv6 of this CdmQueryClusterInstanceDetail. + :rtype: str + """ + return self._traffic_ipv6 + + @traffic_ipv6.setter + def traffic_ipv6(self, traffic_ipv6): + """Sets the traffic_ipv6 of this CdmQueryClusterInstanceDetail. + + 集群的内网IPv6地址 + + :param traffic_ipv6: The traffic_ipv6 of this CdmQueryClusterInstanceDetail. + :type traffic_ipv6: str + """ + self._traffic_ipv6 = traffic_ipv6 + + @property + def cluster_id(self): + """Gets the cluster_id of this CdmQueryClusterInstanceDetail. + + 集群ID + + :return: The cluster_id of this CdmQueryClusterInstanceDetail. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this CdmQueryClusterInstanceDetail. + + 集群ID + + :param cluster_id: The cluster_id of this CdmQueryClusterInstanceDetail. + :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, CdmQueryClusterInstanceDetail): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/cdm_query_cluster_instance_detail_flavor.py b/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/cdm_query_cluster_instance_detail_flavor.py new file mode 100644 index 0000000000..95ca9e62d7 --- /dev/null +++ b/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/cdm_query_cluster_instance_detail_flavor.py @@ -0,0 +1,144 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CdmQueryClusterInstanceDetailFlavor: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'links': 'list[ClusterLinks]' + } + + attribute_map = { + 'id': 'id', + 'links': 'links' + } + + def __init__(self, id=None, links=None): + """CdmQueryClusterInstanceDetailFlavor + + The model defined in huaweicloud sdk + + :param id: 节点虚拟机的规格ID。 + :type id: str + :param links: 链接信息 + :type links: list[:class:`huaweicloudsdkcdm.v1.ClusterLinks`] + """ + + + + self._id = None + self._links = None + self.discriminator = None + + if id is not None: + self.id = id + if links is not None: + self.links = links + + @property + def id(self): + """Gets the id of this CdmQueryClusterInstanceDetailFlavor. + + 节点虚拟机的规格ID。 + + :return: The id of this CdmQueryClusterInstanceDetailFlavor. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this CdmQueryClusterInstanceDetailFlavor. + + 节点虚拟机的规格ID。 + + :param id: The id of this CdmQueryClusterInstanceDetailFlavor. + :type id: str + """ + self._id = id + + @property + def links(self): + """Gets the links of this CdmQueryClusterInstanceDetailFlavor. + + 链接信息 + + :return: The links of this CdmQueryClusterInstanceDetailFlavor. + :rtype: list[:class:`huaweicloudsdkcdm.v1.ClusterLinks`] + """ + return self._links + + @links.setter + def links(self, links): + """Sets the links of this CdmQueryClusterInstanceDetailFlavor. + + 链接信息 + + :param links: The links of this CdmQueryClusterInstanceDetailFlavor. + :type links: list[:class:`huaweicloudsdkcdm.v1.ClusterLinks`] + """ + self._links = links + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CdmQueryClusterInstanceDetailFlavor): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/flavor_attribute.py b/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/flavor_attribute.py new file mode 100644 index 0000000000..6bc5a493f1 --- /dev/null +++ b/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/flavor_attribute.py @@ -0,0 +1,144 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class FlavorAttribute: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'value': 'str' + } + + attribute_map = { + 'name': 'name', + 'value': 'value' + } + + def __init__(self, name=None, value=None): + """FlavorAttribute + + The model defined in huaweicloud sdk + + :param name: 规格属性名称,如mem、cpu。 + :type name: str + :param value: 规格属性值 + :type value: str + """ + + + + self._name = None + self._value = None + self.discriminator = None + + if name is not None: + self.name = name + if value is not None: + self.value = value + + @property + def name(self): + """Gets the name of this FlavorAttribute. + + 规格属性名称,如mem、cpu。 + + :return: The name of this FlavorAttribute. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this FlavorAttribute. + + 规格属性名称,如mem、cpu。 + + :param name: The name of this FlavorAttribute. + :type name: str + """ + self._name = name + + @property + def value(self): + """Gets the value of this FlavorAttribute. + + 规格属性值 + + :return: The value of this FlavorAttribute. + :rtype: str + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this FlavorAttribute. + + 规格属性值 + + :param value: The value of this FlavorAttribute. + :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, FlavorAttribute): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/modify_cluster_request.py b/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/modify_cluster_request.py new file mode 100644 index 0000000000..d2c26d8d0c --- /dev/null +++ b/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/modify_cluster_request.py @@ -0,0 +1,195 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ModifyClusterRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'content_type': 'str', + 'x_language': 'str', + 'body': 'CdmModifyClusterReq' + } + + attribute_map = { + 'cluster_id': 'cluster_id', + 'content_type': 'Content-Type', + 'x_language': 'X-Language', + 'body': 'body' + } + + def __init__(self, cluster_id=None, content_type=None, x_language=None, body=None): + """ModifyClusterRequest + + The model defined in huaweicloud sdk + + :param cluster_id: 集群ID + :type cluster_id: str + :param content_type: 消息体的类型(格式),有Body体的情况下必选,没有Body体无需填写。如果请求消息体中含有中文字符,则需要通过charset=utf8指定中文字符集,例如取值为:application/json;charset=utf8。 + :type content_type: str + :param x_language: 请求语言。 + :type x_language: str + :param body: Body of the ModifyClusterRequest + :type body: :class:`huaweicloudsdkcdm.v1.CdmModifyClusterReq` + """ + + + + self._cluster_id = None + self._content_type = None + self._x_language = None + self._body = None + self.discriminator = None + + self.cluster_id = cluster_id + self.content_type = content_type + self.x_language = x_language + if body is not None: + self.body = body + + @property + def cluster_id(self): + """Gets the cluster_id of this ModifyClusterRequest. + + 集群ID + + :return: The cluster_id of this ModifyClusterRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this ModifyClusterRequest. + + 集群ID + + :param cluster_id: The cluster_id of this ModifyClusterRequest. + :type cluster_id: str + """ + self._cluster_id = cluster_id + + @property + def content_type(self): + """Gets the content_type of this ModifyClusterRequest. + + 消息体的类型(格式),有Body体的情况下必选,没有Body体无需填写。如果请求消息体中含有中文字符,则需要通过charset=utf8指定中文字符集,例如取值为:application/json;charset=utf8。 + + :return: The content_type of this ModifyClusterRequest. + :rtype: str + """ + return self._content_type + + @content_type.setter + def content_type(self, content_type): + """Sets the content_type of this ModifyClusterRequest. + + 消息体的类型(格式),有Body体的情况下必选,没有Body体无需填写。如果请求消息体中含有中文字符,则需要通过charset=utf8指定中文字符集,例如取值为:application/json;charset=utf8。 + + :param content_type: The content_type of this ModifyClusterRequest. + :type content_type: str + """ + self._content_type = content_type + + @property + def x_language(self): + """Gets the x_language of this ModifyClusterRequest. + + 请求语言。 + + :return: The x_language of this ModifyClusterRequest. + :rtype: str + """ + return self._x_language + + @x_language.setter + def x_language(self, x_language): + """Sets the x_language of this ModifyClusterRequest. + + 请求语言。 + + :param x_language: The x_language of this ModifyClusterRequest. + :type x_language: str + """ + self._x_language = x_language + + @property + def body(self): + """Gets the body of this ModifyClusterRequest. + + :return: The body of this ModifyClusterRequest. + :rtype: :class:`huaweicloudsdkcdm.v1.CdmModifyClusterReq` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this ModifyClusterRequest. + + :param body: The body of this ModifyClusterRequest. + :type body: :class:`huaweicloudsdkcdm.v1.CdmModifyClusterReq` + """ + 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, ModifyClusterRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/modify_cluster_response.py b/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/modify_cluster_response.py new file mode 100644 index 0000000000..3ac4968a1b --- /dev/null +++ b/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/modify_cluster_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 ModifyClusterResponse(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): + """ModifyClusterResponse + + The model defined in huaweicloud sdk + + """ + + super(ModifyClusterResponse, 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, ModifyClusterResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/show_availability_zones_request.py b/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/show_availability_zones_request.py new file mode 100644 index 0000000000..17731a7de9 --- /dev/null +++ b/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/show_availability_zones_request.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowAvailabilityZonesRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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' + } + + attribute_map = { + 'region_id': 'region_id' + } + + def __init__(self, region_id=None): + """ShowAvailabilityZonesRequest + + The model defined in huaweicloud sdk + + :param region_id: 区域ID。 + :type region_id: str + """ + + + + self._region_id = None + self.discriminator = None + + self.region_id = region_id + + @property + def region_id(self): + """Gets the region_id of this ShowAvailabilityZonesRequest. + + 区域ID。 + + :return: The region_id of this ShowAvailabilityZonesRequest. + :rtype: str + """ + return self._region_id + + @region_id.setter + def region_id(self, region_id): + """Sets the region_id of this ShowAvailabilityZonesRequest. + + 区域ID。 + + :param region_id: The region_id of this ShowAvailabilityZonesRequest. + :type region_id: str + """ + self._region_id = region_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, ShowAvailabilityZonesRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/show_availability_zones_response.py b/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/show_availability_zones_response.py new file mode 100644 index 0000000000..2ac3dc9953 --- /dev/null +++ b/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/show_availability_zones_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 ShowAvailabilityZonesResponse(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 = { + 'region_id': 'str', + 'default_az': 'str', + 'available_zones': 'list[CdmClusterAvailabilityZone]' + } + + attribute_map = { + 'region_id': 'regionId', + 'default_az': 'defaultAZ', + 'available_zones': 'availableZones' + } + + def __init__(self, region_id=None, default_az=None, available_zones=None): + """ShowAvailabilityZonesResponse + + The model defined in huaweicloud sdk + + :param region_id: 区域ID。 + :type region_id: str + :param default_az: 默认可用区。 + :type default_az: str + :param available_zones: 可用区。 + :type available_zones: list[:class:`huaweicloudsdkcdm.v1.CdmClusterAvailabilityZone`] + """ + + super(ShowAvailabilityZonesResponse, self).__init__() + + self._region_id = None + self._default_az = None + self._available_zones = None + self.discriminator = None + + if region_id is not None: + self.region_id = region_id + if default_az is not None: + self.default_az = default_az + if available_zones is not None: + self.available_zones = available_zones + + @property + def region_id(self): + """Gets the region_id of this ShowAvailabilityZonesResponse. + + 区域ID。 + + :return: The region_id of this ShowAvailabilityZonesResponse. + :rtype: str + """ + return self._region_id + + @region_id.setter + def region_id(self, region_id): + """Sets the region_id of this ShowAvailabilityZonesResponse. + + 区域ID。 + + :param region_id: The region_id of this ShowAvailabilityZonesResponse. + :type region_id: str + """ + self._region_id = region_id + + @property + def default_az(self): + """Gets the default_az of this ShowAvailabilityZonesResponse. + + 默认可用区。 + + :return: The default_az of this ShowAvailabilityZonesResponse. + :rtype: str + """ + return self._default_az + + @default_az.setter + def default_az(self, default_az): + """Sets the default_az of this ShowAvailabilityZonesResponse. + + 默认可用区。 + + :param default_az: The default_az of this ShowAvailabilityZonesResponse. + :type default_az: str + """ + self._default_az = default_az + + @property + def available_zones(self): + """Gets the available_zones of this ShowAvailabilityZonesResponse. + + 可用区。 + + :return: The available_zones of this ShowAvailabilityZonesResponse. + :rtype: list[:class:`huaweicloudsdkcdm.v1.CdmClusterAvailabilityZone`] + """ + return self._available_zones + + @available_zones.setter + def available_zones(self, available_zones): + """Sets the available_zones of this ShowAvailabilityZonesResponse. + + 可用区。 + + :param available_zones: The available_zones of this ShowAvailabilityZonesResponse. + :type available_zones: list[:class:`huaweicloudsdkcdm.v1.CdmClusterAvailabilityZone`] + """ + self._available_zones = available_zones + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowAvailabilityZonesResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/show_cluster_enterprise_projects_request.py b/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/show_cluster_enterprise_projects_request.py new file mode 100644 index 0000000000..5c92720918 --- /dev/null +++ b/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/show_cluster_enterprise_projects_request.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowClusterEnterpriseProjectsRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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): + """ShowClusterEnterpriseProjectsRequest + + 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 ShowClusterEnterpriseProjectsRequest. + + 集群ID + + :return: The cluster_id of this ShowClusterEnterpriseProjectsRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this ShowClusterEnterpriseProjectsRequest. + + 集群ID + + :param cluster_id: The cluster_id of this ShowClusterEnterpriseProjectsRequest. + :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, ShowClusterEnterpriseProjectsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/show_cluster_enterprise_projects_response.py b/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/show_cluster_enterprise_projects_response.py new file mode 100644 index 0000000000..5cd96630cb --- /dev/null +++ b/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/show_cluster_enterprise_projects_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 ShowClusterEnterpriseProjectsResponse(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 = { + 'sys_tags': 'list[SysTags]' + } + + attribute_map = { + 'sys_tags': 'sys_tags' + } + + def __init__(self, sys_tags=None): + """ShowClusterEnterpriseProjectsResponse + + The model defined in huaweicloud sdk + + :param sys_tags: 企业项目列表 + :type sys_tags: list[:class:`huaweicloudsdkcdm.v1.SysTags`] + """ + + super(ShowClusterEnterpriseProjectsResponse, self).__init__() + + self._sys_tags = None + self.discriminator = None + + if sys_tags is not None: + self.sys_tags = sys_tags + + @property + def sys_tags(self): + """Gets the sys_tags of this ShowClusterEnterpriseProjectsResponse. + + 企业项目列表 + + :return: The sys_tags of this ShowClusterEnterpriseProjectsResponse. + :rtype: list[:class:`huaweicloudsdkcdm.v1.SysTags`] + """ + return self._sys_tags + + @sys_tags.setter + def sys_tags(self, sys_tags): + """Sets the sys_tags of this ShowClusterEnterpriseProjectsResponse. + + 企业项目列表 + + :param sys_tags: The sys_tags of this ShowClusterEnterpriseProjectsResponse. + :type sys_tags: list[:class:`huaweicloudsdkcdm.v1.SysTags`] + """ + self._sys_tags = sys_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, ShowClusterEnterpriseProjectsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/show_datastores_request.py b/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/show_datastores_request.py new file mode 100644 index 0000000000..aa3896bf65 --- /dev/null +++ b/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/show_datastores_request.py @@ -0,0 +1,84 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowDatastoresRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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): + """ShowDatastoresRequest + + 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, ShowDatastoresRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/show_datastores_response.py b/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/show_datastores_response.py new file mode 100644 index 0000000000..78e6899c8f --- /dev/null +++ b/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/show_datastores_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 ShowDatastoresResponse(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 = { + 'datastores': 'list[CdmClusterDatastore]' + } + + attribute_map = { + 'datastores': 'datastores' + } + + def __init__(self, datastores=None): + """ShowDatastoresResponse + + The model defined in huaweicloud sdk + + :param datastores: 数据库列表。 + :type datastores: list[:class:`huaweicloudsdkcdm.v1.CdmClusterDatastore`] + """ + + super(ShowDatastoresResponse, self).__init__() + + self._datastores = None + self.discriminator = None + + if datastores is not None: + self.datastores = datastores + + @property + def datastores(self): + """Gets the datastores of this ShowDatastoresResponse. + + 数据库列表。 + + :return: The datastores of this ShowDatastoresResponse. + :rtype: list[:class:`huaweicloudsdkcdm.v1.CdmClusterDatastore`] + """ + return self._datastores + + @datastores.setter + def datastores(self, datastores): + """Sets the datastores of this ShowDatastoresResponse. + + 数据库列表。 + + :param datastores: The datastores of this ShowDatastoresResponse. + :type datastores: list[:class:`huaweicloudsdkcdm.v1.CdmClusterDatastore`] + """ + self._datastores = datastores + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowDatastoresResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/show_enterprise_projects_request.py b/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/show_enterprise_projects_request.py new file mode 100644 index 0000000000..3f09ff876c --- /dev/null +++ b/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/show_enterprise_projects_request.py @@ -0,0 +1,84 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowEnterpriseProjectsRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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): + """ShowEnterpriseProjectsRequest + + 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, ShowEnterpriseProjectsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/show_enterprise_projects_response.py b/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/show_enterprise_projects_response.py new file mode 100644 index 0000000000..a65a5defcb --- /dev/null +++ b/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/show_enterprise_projects_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 ShowEnterpriseProjectsResponse(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[CdmClusterEnterpriseProject]' + } + + attribute_map = { + 'resources': 'resources' + } + + def __init__(self, resources=None): + """ShowEnterpriseProjectsResponse + + The model defined in huaweicloud sdk + + :param resources: 集群企业项目列表 + :type resources: list[:class:`huaweicloudsdkcdm.v1.CdmClusterEnterpriseProject`] + """ + + super(ShowEnterpriseProjectsResponse, self).__init__() + + self._resources = None + self.discriminator = None + + if resources is not None: + self.resources = resources + + @property + def resources(self): + """Gets the resources of this ShowEnterpriseProjectsResponse. + + 集群企业项目列表 + + :return: The resources of this ShowEnterpriseProjectsResponse. + :rtype: list[:class:`huaweicloudsdkcdm.v1.CdmClusterEnterpriseProject`] + """ + return self._resources + + @resources.setter + def resources(self, resources): + """Sets the resources of this ShowEnterpriseProjectsResponse. + + 集群企业项目列表 + + :param resources: The resources of this ShowEnterpriseProjectsResponse. + :type resources: list[:class:`huaweicloudsdkcdm.v1.CdmClusterEnterpriseProject`] + """ + self._resources = resources + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowEnterpriseProjectsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/show_flavor_detail_request.py b/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/show_flavor_detail_request.py new file mode 100644 index 0000000000..92747c2660 --- /dev/null +++ b/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/show_flavor_detail_request.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowFlavorDetailRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'flavor_id': 'str' + } + + attribute_map = { + 'flavor_id': 'flavor_id' + } + + def __init__(self, flavor_id=None): + """ShowFlavorDetailRequest + + The model defined in huaweicloud sdk + + :param flavor_id: 规格ID,获取方法请参见[查询版本规格](ShowFlavors.xml)。 + :type flavor_id: str + """ + + + + self._flavor_id = None + self.discriminator = None + + self.flavor_id = flavor_id + + @property + def flavor_id(self): + """Gets the flavor_id of this ShowFlavorDetailRequest. + + 规格ID,获取方法请参见[查询版本规格](ShowFlavors.xml)。 + + :return: The flavor_id of this ShowFlavorDetailRequest. + :rtype: str + """ + return self._flavor_id + + @flavor_id.setter + def flavor_id(self, flavor_id): + """Sets the flavor_id of this ShowFlavorDetailRequest. + + 规格ID,获取方法请参见[查询版本规格](ShowFlavors.xml)。 + + :param flavor_id: The flavor_id of this ShowFlavorDetailRequest. + :type flavor_id: str + """ + self._flavor_id = flavor_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, ShowFlavorDetailRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/show_flavor_detail_response.py b/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/show_flavor_detail_response.py new file mode 100644 index 0000000000..1e6389d044 --- /dev/null +++ b/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/show_flavor_detail_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 ShowFlavorDetailResponse(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 = { + 'name': 'str', + 'str_id': 'str', + 'flavor_detail': 'list[FlavorAttribute]' + } + + attribute_map = { + 'name': 'name', + 'str_id': 'str_id', + 'flavor_detail': 'flavor_detail' + } + + def __init__(self, name=None, str_id=None, flavor_detail=None): + """ShowFlavorDetailResponse + + The model defined in huaweicloud sdk + + :param name: 规格名称 + :type name: str + :param str_id: 规格ID + :type str_id: str + :param flavor_detail: 规格详细列表 + :type flavor_detail: list[:class:`huaweicloudsdkcdm.v1.FlavorAttribute`] + """ + + super(ShowFlavorDetailResponse, self).__init__() + + self._name = None + self._str_id = None + self._flavor_detail = None + self.discriminator = None + + if name is not None: + self.name = name + if str_id is not None: + self.str_id = str_id + if flavor_detail is not None: + self.flavor_detail = flavor_detail + + @property + def name(self): + """Gets the name of this ShowFlavorDetailResponse. + + 规格名称 + + :return: The name of this ShowFlavorDetailResponse. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ShowFlavorDetailResponse. + + 规格名称 + + :param name: The name of this ShowFlavorDetailResponse. + :type name: str + """ + self._name = name + + @property + def str_id(self): + """Gets the str_id of this ShowFlavorDetailResponse. + + 规格ID + + :return: The str_id of this ShowFlavorDetailResponse. + :rtype: str + """ + return self._str_id + + @str_id.setter + def str_id(self, str_id): + """Sets the str_id of this ShowFlavorDetailResponse. + + 规格ID + + :param str_id: The str_id of this ShowFlavorDetailResponse. + :type str_id: str + """ + self._str_id = str_id + + @property + def flavor_detail(self): + """Gets the flavor_detail of this ShowFlavorDetailResponse. + + 规格详细列表 + + :return: The flavor_detail of this ShowFlavorDetailResponse. + :rtype: list[:class:`huaweicloudsdkcdm.v1.FlavorAttribute`] + """ + return self._flavor_detail + + @flavor_detail.setter + def flavor_detail(self, flavor_detail): + """Sets the flavor_detail of this ShowFlavorDetailResponse. + + 规格详细列表 + + :param flavor_detail: The flavor_detail of this ShowFlavorDetailResponse. + :type flavor_detail: list[:class:`huaweicloudsdkcdm.v1.FlavorAttribute`] + """ + self._flavor_detail = flavor_detail + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowFlavorDetailResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/show_flavors_request.py b/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/show_flavors_request.py new file mode 100644 index 0000000000..e05e7a03a0 --- /dev/null +++ b/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/show_flavors_request.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowFlavorsRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'datastore_id': 'str' + } + + attribute_map = { + 'datastore_id': 'datastore_id' + } + + def __init__(self, datastore_id=None): + """ShowFlavorsRequest + + The model defined in huaweicloud sdk + + :param datastore_id: 版本ID,获取方法请参见[CDM支持的版本](ShowDatastores.xml)。 + :type datastore_id: str + """ + + + + self._datastore_id = None + self.discriminator = None + + self.datastore_id = datastore_id + + @property + def datastore_id(self): + """Gets the datastore_id of this ShowFlavorsRequest. + + 版本ID,获取方法请参见[CDM支持的版本](ShowDatastores.xml)。 + + :return: The datastore_id of this ShowFlavorsRequest. + :rtype: str + """ + return self._datastore_id + + @datastore_id.setter + def datastore_id(self, datastore_id): + """Sets the datastore_id of this ShowFlavorsRequest. + + 版本ID,获取方法请参见[CDM支持的版本](ShowDatastores.xml)。 + + :param datastore_id: The datastore_id of this ShowFlavorsRequest. + :type datastore_id: str + """ + self._datastore_id = datastore_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, ShowFlavorsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/show_flavors_response.py b/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/show_flavors_response.py new file mode 100644 index 0000000000..8de5c1471c --- /dev/null +++ b/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/show_flavors_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 ShowFlavorsResponse(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', + 'dbname': 'str', + 'versions': 'list[CdmClusterDatastoreVersion]' + } + + attribute_map = { + 'id': 'id', + 'dbname': 'dbname', + 'versions': 'versions' + } + + def __init__(self, id=None, dbname=None, versions=None): + """ShowFlavorsResponse + + The model defined in huaweicloud sdk + + :param id: 服务ID,用于区分不同服务。 + :type id: str + :param dbname: db名称,一般为cdm。 + :type dbname: str + :param versions: 版本信息列表。 + :type versions: list[:class:`huaweicloudsdkcdm.v1.CdmClusterDatastoreVersion`] + """ + + super(ShowFlavorsResponse, self).__init__() + + self._id = None + self._dbname = None + self._versions = None + self.discriminator = None + + if id is not None: + self.id = id + if dbname is not None: + self.dbname = dbname + if versions is not None: + self.versions = versions + + @property + def id(self): + """Gets the id of this ShowFlavorsResponse. + + 服务ID,用于区分不同服务。 + + :return: The id of this ShowFlavorsResponse. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this ShowFlavorsResponse. + + 服务ID,用于区分不同服务。 + + :param id: The id of this ShowFlavorsResponse. + :type id: str + """ + self._id = id + + @property + def dbname(self): + """Gets the dbname of this ShowFlavorsResponse. + + db名称,一般为cdm。 + + :return: The dbname of this ShowFlavorsResponse. + :rtype: str + """ + return self._dbname + + @dbname.setter + def dbname(self, dbname): + """Sets the dbname of this ShowFlavorsResponse. + + db名称,一般为cdm。 + + :param dbname: The dbname of this ShowFlavorsResponse. + :type dbname: str + """ + self._dbname = dbname + + @property + def versions(self): + """Gets the versions of this ShowFlavorsResponse. + + 版本信息列表。 + + :return: The versions of this ShowFlavorsResponse. + :rtype: list[:class:`huaweicloudsdkcdm.v1.CdmClusterDatastoreVersion`] + """ + return self._versions + + @versions.setter + def versions(self, versions): + """Sets the versions of this ShowFlavorsResponse. + + 版本信息列表。 + + :param versions: The versions of this ShowFlavorsResponse. + :type versions: list[:class:`huaweicloudsdkcdm.v1.CdmClusterDatastoreVersion`] + """ + self._versions = versions + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowFlavorsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/show_instance_detail_request.py b/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/show_instance_detail_request.py new file mode 100644 index 0000000000..d3d7e192c9 --- /dev/null +++ b/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/show_instance_detail_request.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowInstanceDetailRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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' + } + + attribute_map = { + 'instance_id': 'instance_id' + } + + def __init__(self, instance_id=None): + """ShowInstanceDetailRequest + + The model defined in huaweicloud sdk + + :param instance_id: 实例ID,获取方法请参见[获取集群列表](ListClusters.xml)。 + :type instance_id: str + """ + + + + self._instance_id = None + self.discriminator = None + + self.instance_id = instance_id + + @property + def instance_id(self): + """Gets the instance_id of this ShowInstanceDetailRequest. + + 实例ID,获取方法请参见[获取集群列表](ListClusters.xml)。 + + :return: The instance_id of this ShowInstanceDetailRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this ShowInstanceDetailRequest. + + 实例ID,获取方法请参见[获取集群列表](ListClusters.xml)。 + + :param instance_id: The instance_id of this ShowInstanceDetailRequest. + :type instance_id: str + """ + self._instance_id = instance_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, ShowInstanceDetailRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/show_instance_detail_response.py b/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/show_instance_detail_response.py new file mode 100644 index 0000000000..ede0377421 --- /dev/null +++ b/huaweicloud-sdk-cdm/huaweicloudsdkcdm/v1/model/show_instance_detail_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 ShowInstanceDetailResponse(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 = { + 'instance': 'CdmQueryClusterInstanceDetail' + } + + attribute_map = { + 'instance': 'instance' + } + + def __init__(self, instance=None): + """ShowInstanceDetailResponse + + The model defined in huaweicloud sdk + + :param instance: + :type instance: :class:`huaweicloudsdkcdm.v1.CdmQueryClusterInstanceDetail` + """ + + super(ShowInstanceDetailResponse, self).__init__() + + self._instance = None + self.discriminator = None + + if instance is not None: + self.instance = instance + + @property + def instance(self): + """Gets the instance of this ShowInstanceDetailResponse. + + :return: The instance of this ShowInstanceDetailResponse. + :rtype: :class:`huaweicloudsdkcdm.v1.CdmQueryClusterInstanceDetail` + """ + return self._instance + + @instance.setter + def instance(self, instance): + """Sets the instance of this ShowInstanceDetailResponse. + + :param instance: The instance of this ShowInstanceDetailResponse. + :type instance: :class:`huaweicloudsdkcdm.v1.CdmQueryClusterInstanceDetail` + """ + self._instance = instance + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowInstanceDetailResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-cdm/requirements.txt b/huaweicloud-sdk-cdm/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-cdm/requirements.txt +++ b/huaweicloud-sdk-cdm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-cdm/setup.py b/huaweicloud-sdk-cdm/setup.py index d6118f69c8..231b9e8493 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cdn/requirements.txt b/huaweicloud-sdk-cdn/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-cdn/requirements.txt +++ b/huaweicloud-sdk-cdn/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-cdn/setup.py b/huaweicloud-sdk-cdn/setup.py index 72c5c9e567..9f4114c6b2 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ces/requirements.txt b/huaweicloud-sdk-ces/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-ces/requirements.txt +++ b/huaweicloud-sdk-ces/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-ces/setup.py b/huaweicloud-sdk-ces/setup.py index df21f9ebf4..02710d00a7 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cfw/requirements.txt b/huaweicloud-sdk-cfw/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-cfw/requirements.txt +++ b/huaweicloud-sdk-cfw/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-cfw/setup.py b/huaweicloud-sdk-cfw/setup.py index c94666ac3e..0168e8c497 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cgs/requirements.txt b/huaweicloud-sdk-cgs/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-cgs/requirements.txt +++ b/huaweicloud-sdk-cgs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-cgs/setup.py b/huaweicloud-sdk-cgs/setup.py index f32db4895e..04cb66be15 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-classroom/requirements.txt b/huaweicloud-sdk-classroom/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-classroom/requirements.txt +++ b/huaweicloud-sdk-classroom/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-classroom/setup.py b/huaweicloud-sdk-classroom/setup.py index 30b936af3e..602fd6cced 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cloudide/requirements.txt b/huaweicloud-sdk-cloudide/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-cloudide/requirements.txt +++ b/huaweicloud-sdk-cloudide/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-cloudide/setup.py b/huaweicloud-sdk-cloudide/setup.py index c0ef0960e5..aebcbfda9e 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cloudpond/huaweicloudsdkcloudpond/v1/__init__.py b/huaweicloud-sdk-cloudpond/huaweicloudsdkcloudpond/v1/__init__.py index 4ddcbefba8..25488f9414 100644 --- a/huaweicloud-sdk-cloudpond/huaweicloudsdkcloudpond/v1/__init__.py +++ b/huaweicloud-sdk-cloudpond/huaweicloudsdkcloudpond/v1/__init__.py @@ -37,6 +37,7 @@ from huaweicloudsdkcloudpond.v1.model.page_info import PageInfo from huaweicloudsdkcloudpond.v1.model.pay_mode import PayMode from huaweicloudsdkcloudpond.v1.model.prepaid_options import PrepaidOptions +from huaweicloudsdkcloudpond.v1.model.product_info import ProductInfo from huaweicloudsdkcloudpond.v1.model.quota_detail import QuotaDetail from huaweicloudsdkcloudpond.v1.model.quota_resources import QuotaResources from huaweicloudsdkcloudpond.v1.model.rack import Rack diff --git a/huaweicloud-sdk-cloudpond/huaweicloudsdkcloudpond/v1/cloudpond_async_client.py b/huaweicloud-sdk-cloudpond/huaweicloudsdkcloudpond/v1/cloudpond_async_client.py index 6ca170e6b8..041995ab91 100644 --- a/huaweicloud-sdk-cloudpond/huaweicloudsdkcloudpond/v1/cloudpond_async_client.py +++ b/huaweicloud-sdk-cloudpond/huaweicloudsdkcloudpond/v1/cloudpond_async_client.py @@ -209,6 +209,9 @@ def _list_edge_sites_http_info(self, request): if 'sort_dir' in local_var_params: query_params.append(('sort_dir', local_var_params['sort_dir'])) collection_formats['sort_dir'] = 'multi' + if 'enterprise_project_id' in local_var_params: + query_params.append(('enterprise_project_id', local_var_params['enterprise_project_id'])) + collection_formats['enterprise_project_id'] = 'multi' if 'id' in local_var_params: query_params.append(('id', local_var_params['id'])) collection_formats['id'] = 'multi' diff --git a/huaweicloud-sdk-cloudpond/huaweicloudsdkcloudpond/v1/cloudpond_client.py b/huaweicloud-sdk-cloudpond/huaweicloudsdkcloudpond/v1/cloudpond_client.py index 6374c4f748..907461b5dc 100644 --- a/huaweicloud-sdk-cloudpond/huaweicloudsdkcloudpond/v1/cloudpond_client.py +++ b/huaweicloud-sdk-cloudpond/huaweicloudsdkcloudpond/v1/cloudpond_client.py @@ -209,6 +209,9 @@ def _list_edge_sites_http_info(cls, request): if 'sort_dir' in local_var_params: query_params.append(('sort_dir', local_var_params['sort_dir'])) collection_formats['sort_dir'] = 'multi' + if 'enterprise_project_id' in local_var_params: + query_params.append(('enterprise_project_id', local_var_params['enterprise_project_id'])) + collection_formats['enterprise_project_id'] = 'multi' if 'id' in local_var_params: query_params.append(('id', local_var_params['id'])) collection_formats['id'] = 'multi' diff --git a/huaweicloud-sdk-cloudpond/huaweicloudsdkcloudpond/v1/model/__init__.py b/huaweicloud-sdk-cloudpond/huaweicloudsdkcloudpond/v1/model/__init__.py index 6592c9762f..1c436376e1 100644 --- a/huaweicloud-sdk-cloudpond/huaweicloudsdkcloudpond/v1/model/__init__.py +++ b/huaweicloud-sdk-cloudpond/huaweicloudsdkcloudpond/v1/model/__init__.py @@ -35,6 +35,7 @@ from huaweicloudsdkcloudpond.v1.model.page_info import PageInfo from huaweicloudsdkcloudpond.v1.model.pay_mode import PayMode from huaweicloudsdkcloudpond.v1.model.prepaid_options import PrepaidOptions +from huaweicloudsdkcloudpond.v1.model.product_info import ProductInfo from huaweicloudsdkcloudpond.v1.model.quota_detail import QuotaDetail from huaweicloudsdkcloudpond.v1.model.quota_resources import QuotaResources from huaweicloudsdkcloudpond.v1.model.rack import Rack diff --git a/huaweicloud-sdk-cloudpond/huaweicloudsdkcloudpond/v1/model/create_edge_site.py b/huaweicloud-sdk-cloudpond/huaweicloudsdkcloudpond/v1/model/create_edge_site.py index c02c59f024..2a66b0ec11 100644 --- a/huaweicloud-sdk-cloudpond/huaweicloudsdkcloudpond/v1/model/create_edge_site.py +++ b/huaweicloud-sdk-cloudpond/huaweicloudsdkcloudpond/v1/model/create_edge_site.py @@ -20,17 +20,19 @@ class CreateEdgeSite: 'name': 'str', 'region_id': 'str', 'description': 'str', - 'location': 'CreateLocation' + 'location': 'CreateLocation', + 'enterprise_project_id': 'str' } attribute_map = { 'name': 'name', 'region_id': 'region_id', 'description': 'description', - 'location': 'location' + 'location': 'location', + 'enterprise_project_id': 'enterprise_project_id' } - def __init__(self, name=None, region_id=None, description=None, location=None): + def __init__(self, name=None, region_id=None, description=None, location=None, enterprise_project_id=None): """CreateEdgeSite The model defined in huaweicloud sdk @@ -43,6 +45,8 @@ def __init__(self, name=None, region_id=None, description=None, location=None): :type description: str :param location: :type location: :class:`huaweicloudsdkcloudpond.v1.CreateLocation` + :param enterprise_project_id: 企业项目Id + :type enterprise_project_id: str """ @@ -51,6 +55,7 @@ def __init__(self, name=None, region_id=None, description=None, location=None): self._region_id = None self._description = None self._location = None + self._enterprise_project_id = None self.discriminator = None self.name = name @@ -58,6 +63,8 @@ def __init__(self, name=None, region_id=None, description=None, location=None): if description is not None: self.description = description self.location = location + if enterprise_project_id is not None: + self.enterprise_project_id = enterprise_project_id @property def name(self): @@ -143,6 +150,28 @@ def location(self, location): """ self._location = location + @property + def enterprise_project_id(self): + """Gets the enterprise_project_id of this CreateEdgeSite. + + 企业项目Id + + :return: The enterprise_project_id of this CreateEdgeSite. + :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 CreateEdgeSite. + + 企业项目Id + + :param enterprise_project_id: The enterprise_project_id of this CreateEdgeSite. + :type enterprise_project_id: str + """ + self._enterprise_project_id = enterprise_project_id + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-cloudpond/huaweicloudsdkcloudpond/v1/model/edge_site_detail.py b/huaweicloud-sdk-cloudpond/huaweicloudsdkcloudpond/v1/model/edge_site_detail.py index 0c3483df60..eb540a6c2e 100644 --- a/huaweicloud-sdk-cloudpond/huaweicloudsdkcloudpond/v1/model/edge_site_detail.py +++ b/huaweicloud-sdk-cloudpond/huaweicloudsdkcloudpond/v1/model/edge_site_detail.py @@ -26,6 +26,7 @@ class EdgeSiteDetail: 'availability_zone_id': 'str', 'status': 'str', 'location': 'LocationDetail', + 'enterprise_project_id': 'str', 'created_at': 'datetime', 'updated_at': 'datetime' } @@ -40,11 +41,12 @@ class EdgeSiteDetail: 'availability_zone_id': 'availability_zone_id', 'status': 'status', 'location': 'location', + 'enterprise_project_id': 'enterprise_project_id', 'created_at': 'created_at', 'updated_at': 'updated_at' } - def __init__(self, id=None, domain_id=None, name=None, description=None, region_id=None, project_id=None, availability_zone_id=None, status=None, location=None, created_at=None, updated_at=None): + def __init__(self, id=None, domain_id=None, name=None, description=None, region_id=None, project_id=None, availability_zone_id=None, status=None, location=None, enterprise_project_id=None, created_at=None, updated_at=None): """EdgeSiteDetail The model defined in huaweicloud sdk @@ -67,6 +69,8 @@ def __init__(self, id=None, domain_id=None, name=None, description=None, region_ :type status: str :param location: :type location: :class:`huaweicloudsdkcloudpond.v1.LocationDetail` + :param enterprise_project_id: [边缘小站](tag:hws)[分布式微型专属小站](tag:cmcc)所属企业项目ID + :type enterprise_project_id: str :param created_at: 边缘小站创建时间 :type created_at: datetime :param updated_at: 边缘小站更新时间 @@ -84,6 +88,7 @@ def __init__(self, id=None, domain_id=None, name=None, description=None, region_ self._availability_zone_id = None self._status = None self._location = None + self._enterprise_project_id = None self._created_at = None self._updated_at = None self.discriminator = None @@ -106,6 +111,8 @@ def __init__(self, id=None, domain_id=None, name=None, description=None, region_ self.status = status if location is not None: self.location = location + if enterprise_project_id is not None: + self.enterprise_project_id = enterprise_project_id if created_at is not None: self.created_at = created_at if updated_at is not None: @@ -305,6 +312,28 @@ def location(self, location): """ self._location = location + @property + def enterprise_project_id(self): + """Gets the enterprise_project_id of this EdgeSiteDetail. + + [边缘小站](tag:hws)[分布式微型专属小站](tag:cmcc)所属企业项目ID + + :return: The enterprise_project_id of this EdgeSiteDetail. + :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 EdgeSiteDetail. + + [边缘小站](tag:hws)[分布式微型专属小站](tag:cmcc)所属企业项目ID + + :param enterprise_project_id: The enterprise_project_id of this EdgeSiteDetail. + :type enterprise_project_id: str + """ + self._enterprise_project_id = enterprise_project_id + @property def created_at(self): """Gets the created_at of this EdgeSiteDetail. diff --git a/huaweicloud-sdk-cloudpond/huaweicloudsdkcloudpond/v1/model/list_edge_site_metrics_request.py b/huaweicloud-sdk-cloudpond/huaweicloudsdkcloudpond/v1/model/list_edge_site_metrics_request.py index 0ae6c03d5c..232171298f 100644 --- a/huaweicloud-sdk-cloudpond/huaweicloudsdkcloudpond/v1/model/list_edge_site_metrics_request.py +++ b/huaweicloud-sdk-cloudpond/huaweicloudsdkcloudpond/v1/model/list_edge_site_metrics_request.py @@ -33,7 +33,7 @@ def __init__(self, site_id=None, dim=None): :param site_id: 边缘小站ID :type site_id: str - :param dim: 指定维度查询 - site_id: 按站点维度,查询站点下计算、存储资源容量信息 - flavor: 按规格维度,查询站点下各flavor的计算资源使用情况 - storage: 按存储维度,查询站点下各存储资源类型的使用情况 - flavor_capacity: 按规格容量维度,查询站点下各规格可发放数量预测 + :param dim: 指定维度查询 - site_id: 按站点维度,查询站点下计算、存储资源容量信息 - flavor: 按规格维度,查询站点下各flavor的计算资源使用情况 - storage: 按存储维度,查询站点下各存储资源类型的使用情况 - flavor_capacity: 按规格容量维度,查询站点下各规格可发放数量预测 - storage_pool:按存储池维度,查询站点下各存储池的使用情况 :type dim: str """ @@ -73,7 +73,7 @@ def site_id(self, site_id): def dim(self): """Gets the dim of this ListEdgeSiteMetricsRequest. - 指定维度查询 - site_id: 按站点维度,查询站点下计算、存储资源容量信息 - flavor: 按规格维度,查询站点下各flavor的计算资源使用情况 - storage: 按存储维度,查询站点下各存储资源类型的使用情况 - flavor_capacity: 按规格容量维度,查询站点下各规格可发放数量预测 + 指定维度查询 - site_id: 按站点维度,查询站点下计算、存储资源容量信息 - flavor: 按规格维度,查询站点下各flavor的计算资源使用情况 - storage: 按存储维度,查询站点下各存储资源类型的使用情况 - flavor_capacity: 按规格容量维度,查询站点下各规格可发放数量预测 - storage_pool:按存储池维度,查询站点下各存储池的使用情况 :return: The dim of this ListEdgeSiteMetricsRequest. :rtype: str @@ -84,7 +84,7 @@ def dim(self): def dim(self, dim): """Sets the dim of this ListEdgeSiteMetricsRequest. - 指定维度查询 - site_id: 按站点维度,查询站点下计算、存储资源容量信息 - flavor: 按规格维度,查询站点下各flavor的计算资源使用情况 - storage: 按存储维度,查询站点下各存储资源类型的使用情况 - flavor_capacity: 按规格容量维度,查询站点下各规格可发放数量预测 + 指定维度查询 - site_id: 按站点维度,查询站点下计算、存储资源容量信息 - flavor: 按规格维度,查询站点下各flavor的计算资源使用情况 - storage: 按存储维度,查询站点下各存储资源类型的使用情况 - flavor_capacity: 按规格容量维度,查询站点下各规格可发放数量预测 - storage_pool:按存储池维度,查询站点下各存储池的使用情况 :param dim: The dim of this ListEdgeSiteMetricsRequest. :type dim: str diff --git a/huaweicloud-sdk-cloudpond/huaweicloudsdkcloudpond/v1/model/list_edge_sites_request.py b/huaweicloud-sdk-cloudpond/huaweicloudsdkcloudpond/v1/model/list_edge_sites_request.py index 8a874f2ed1..7a9f912fd9 100644 --- a/huaweicloud-sdk-cloudpond/huaweicloudsdkcloudpond/v1/model/list_edge_sites_request.py +++ b/huaweicloud-sdk-cloudpond/huaweicloudsdkcloudpond/v1/model/list_edge_sites_request.py @@ -21,6 +21,7 @@ class ListEdgeSitesRequest: 'marker': 'str', 'sort_key': 'list[str]', 'sort_dir': 'list[str]', + 'enterprise_project_id': 'list[str]', 'id': 'list[str]', 'name': 'list[str]', 'availability_zone_id': 'list[str]', @@ -32,13 +33,14 @@ class ListEdgeSitesRequest: 'marker': 'marker', 'sort_key': 'sort_key', 'sort_dir': 'sort_dir', + 'enterprise_project_id': 'enterprise_project_id', 'id': 'id', 'name': 'name', 'availability_zone_id': 'availability_zone_id', 'status': 'status' } - def __init__(self, limit=None, marker=None, sort_key=None, sort_dir=None, id=None, name=None, availability_zone_id=None, status=None): + def __init__(self, limit=None, marker=None, sort_key=None, sort_dir=None, enterprise_project_id=None, id=None, name=None, availability_zone_id=None, status=None): """ListEdgeSitesRequest The model defined in huaweicloud sdk @@ -51,6 +53,8 @@ def __init__(self, limit=None, marker=None, sort_key=None, sort_dir=None, id=Non :type sort_key: list[str] :param sort_dir: 排序方向,取值范围: - desc:降序 - acs:升序 :type sort_dir: list[str] + :param enterprise_project_id: 企业项目ID。可以使用该字段过滤某个企业项目下的边缘小站。 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。“0”表示默认企业项目。 若需要查询当前用户所有企业项目绑定的边缘小站,请传参all_granted_eps。 不传则查询全部。 + :type enterprise_project_id: list[str] :param id: 根据边缘小站ID查询,支持排序 :type id: list[str] :param name: 根据边缘小站名称查询(精确),支持排序 @@ -67,6 +71,7 @@ def __init__(self, limit=None, marker=None, sort_key=None, sort_dir=None, id=Non self._marker = None self._sort_key = None self._sort_dir = None + self._enterprise_project_id = None self._id = None self._name = None self._availability_zone_id = None @@ -81,6 +86,8 @@ def __init__(self, limit=None, marker=None, sort_key=None, sort_dir=None, id=Non self.sort_key = sort_key if sort_dir is not None: self.sort_dir = sort_dir + if enterprise_project_id is not None: + self.enterprise_project_id = enterprise_project_id if id is not None: self.id = id if name is not None: @@ -178,6 +185,28 @@ def sort_dir(self, sort_dir): """ self._sort_dir = sort_dir + @property + def enterprise_project_id(self): + """Gets the enterprise_project_id of this ListEdgeSitesRequest. + + 企业项目ID。可以使用该字段过滤某个企业项目下的边缘小站。 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。“0”表示默认企业项目。 若需要查询当前用户所有企业项目绑定的边缘小站,请传参all_granted_eps。 不传则查询全部。 + + :return: The enterprise_project_id of this ListEdgeSitesRequest. + :rtype: list[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 ListEdgeSitesRequest. + + 企业项目ID。可以使用该字段过滤某个企业项目下的边缘小站。 最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。“0”表示默认企业项目。 若需要查询当前用户所有企业项目绑定的边缘小站,请传参all_granted_eps。 不传则查询全部。 + + :param enterprise_project_id: The enterprise_project_id of this ListEdgeSitesRequest. + :type enterprise_project_id: list[str] + """ + self._enterprise_project_id = enterprise_project_id + @property def id(self): """Gets the id of this ListEdgeSitesRequest. diff --git a/huaweicloud-sdk-cloudpond/huaweicloudsdkcloudpond/v1/model/product_info.py b/huaweicloud-sdk-cloudpond/huaweicloudsdkcloudpond/v1/model/product_info.py new file mode 100644 index 0000000000..310cf2db74 --- /dev/null +++ b/huaweicloud-sdk-cloudpond/huaweicloudsdkcloudpond/v1/model/product_info.py @@ -0,0 +1,170 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ProductInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'cloud_service_type': 'str', + 'resource_type': 'str', + 'resource_spec_code': 'str' + } + + attribute_map = { + 'cloud_service_type': 'cloud_service_type', + 'resource_type': 'resource_type', + 'resource_spec_code': 'resource_spec_code' + } + + def __init__(self, cloud_service_type=None, resource_type=None, resource_spec_code=None): + """ProductInfo + + The model defined in huaweicloud sdk + + :param cloud_service_type: 云服务类型 + :type cloud_service_type: str + :param resource_type: 资源类型 + :type resource_type: str + :param resource_spec_code: 资源编码 + :type resource_spec_code: str + """ + + + + self._cloud_service_type = None + self._resource_type = None + self._resource_spec_code = None + self.discriminator = None + + self.cloud_service_type = cloud_service_type + self.resource_type = resource_type + self.resource_spec_code = resource_spec_code + + @property + def cloud_service_type(self): + """Gets the cloud_service_type of this ProductInfo. + + 云服务类型 + + :return: The cloud_service_type of this ProductInfo. + :rtype: str + """ + return self._cloud_service_type + + @cloud_service_type.setter + def cloud_service_type(self, cloud_service_type): + """Sets the cloud_service_type of this ProductInfo. + + 云服务类型 + + :param cloud_service_type: The cloud_service_type of this ProductInfo. + :type cloud_service_type: str + """ + self._cloud_service_type = cloud_service_type + + @property + def resource_type(self): + """Gets the resource_type of this ProductInfo. + + 资源类型 + + :return: The resource_type of this ProductInfo. + :rtype: str + """ + return self._resource_type + + @resource_type.setter + def resource_type(self, resource_type): + """Sets the resource_type of this ProductInfo. + + 资源类型 + + :param resource_type: The resource_type of this ProductInfo. + :type resource_type: str + """ + self._resource_type = resource_type + + @property + def resource_spec_code(self): + """Gets the resource_spec_code of this ProductInfo. + + 资源编码 + + :return: The resource_spec_code of this ProductInfo. + :rtype: str + """ + return self._resource_spec_code + + @resource_spec_code.setter + def resource_spec_code(self, resource_spec_code): + """Sets the resource_spec_code of this ProductInfo. + + 资源编码 + + :param resource_spec_code: The resource_spec_code of this ProductInfo. + :type resource_spec_code: str + """ + self._resource_spec_code = resource_spec_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, ProductInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-cloudpond/huaweicloudsdkcloudpond/v1/model/rack.py b/huaweicloud-sdk-cloudpond/huaweicloudsdkcloudpond/v1/model/rack.py index 23c8fd163a..83e18e72ac 100644 --- a/huaweicloud-sdk-cloudpond/huaweicloudsdkcloudpond/v1/model/rack.py +++ b/huaweicloud-sdk-cloudpond/huaweicloudsdkcloudpond/v1/model/rack.py @@ -33,7 +33,8 @@ class Rack: 'market_options': 'MarketOptions', 'compute_unit': 'list[ComputeSpec]', 'storage_unit': 'StorageUnit', - 'rack_info': 'RackInfo' + 'rack_info': 'RackInfo', + 'product_info': 'ProductInfo' } attribute_map = { @@ -53,10 +54,11 @@ class Rack: 'market_options': 'market_options', 'compute_unit': 'compute_unit', 'storage_unit': 'storage_unit', - 'rack_info': 'rack_info' + 'rack_info': 'rack_info', + 'product_info': 'product_info' } - def __init__(self, id=None, name=None, edge_site_id=None, rack_category_id=None, rack_type=None, status=None, storage_assigned_size=None, description=None, rack_sn_no=None, rack_location_no=None, created_at=None, updated_at=None, effected_at=None, market_options=None, compute_unit=None, storage_unit=None, rack_info=None): + def __init__(self, id=None, name=None, edge_site_id=None, rack_category_id=None, rack_type=None, status=None, storage_assigned_size=None, description=None, rack_sn_no=None, rack_location_no=None, created_at=None, updated_at=None, effected_at=None, market_options=None, compute_unit=None, storage_unit=None, rack_info=None, product_info=None): """Rack The model defined in huaweicloud sdk @@ -95,6 +97,8 @@ def __init__(self, id=None, name=None, edge_site_id=None, rack_category_id=None, :type storage_unit: :class:`huaweicloudsdkcloudpond.v1.StorageUnit` :param rack_info: :type rack_info: :class:`huaweicloudsdkcloudpond.v1.RackInfo` + :param product_info: + :type product_info: :class:`huaweicloudsdkcloudpond.v1.ProductInfo` """ @@ -116,6 +120,7 @@ def __init__(self, id=None, name=None, edge_site_id=None, rack_category_id=None, self._compute_unit = None self._storage_unit = None self._rack_info = None + self._product_info = None self.discriminator = None if id is not None: @@ -152,6 +157,8 @@ def __init__(self, id=None, name=None, edge_site_id=None, rack_category_id=None, self.storage_unit = storage_unit if rack_info is not None: self.rack_info = rack_info + if product_info is not None: + self.product_info = product_info @property def id(self): @@ -511,6 +518,24 @@ def rack_info(self, rack_info): """ self._rack_info = rack_info + @property + def product_info(self): + """Gets the product_info of this Rack. + + :return: The product_info of this Rack. + :rtype: :class:`huaweicloudsdkcloudpond.v1.ProductInfo` + """ + return self._product_info + + @product_info.setter + def product_info(self, product_info): + """Sets the product_info of this Rack. + + :param product_info: The product_info of this Rack. + :type product_info: :class:`huaweicloudsdkcloudpond.v1.ProductInfo` + """ + self._product_info = product_info + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-cloudpond/huaweicloudsdkcloudpond/v1/model/storage_pool.py b/huaweicloud-sdk-cloudpond/huaweicloudsdkcloudpond/v1/model/storage_pool.py index 98605b7eb0..2ee0d329f5 100644 --- a/huaweicloud-sdk-cloudpond/huaweicloudsdkcloudpond/v1/model/storage_pool.py +++ b/huaweicloud-sdk-cloudpond/huaweicloudsdkcloudpond/v1/model/storage_pool.py @@ -24,6 +24,7 @@ class StoragePool: 'status': 'StoragePoolStatus', 'assigned_size': 'int', 'resource_spec_code': 'str', + 'product_info': 'ProductInfo', 'capacity': 'int', 'market_options': 'MarketOptions', 'created_at': 'datetime', @@ -39,6 +40,7 @@ class StoragePool: 'status': 'status', 'assigned_size': 'assigned_size', 'resource_spec_code': 'resource_spec_code', + 'product_info': 'product_info', 'capacity': 'capacity', 'market_options': 'market_options', 'created_at': 'created_at', @@ -46,7 +48,7 @@ class StoragePool: 'effected_at': 'effected_at' } - def __init__(self, id=None, name=None, edge_site_id=None, storage_type=None, status=None, assigned_size=None, resource_spec_code=None, capacity=None, market_options=None, created_at=None, updated_at=None, effected_at=None): + def __init__(self, id=None, name=None, edge_site_id=None, storage_type=None, status=None, assigned_size=None, resource_spec_code=None, product_info=None, capacity=None, market_options=None, created_at=None, updated_at=None, effected_at=None): """StoragePool The model defined in huaweicloud sdk @@ -65,6 +67,8 @@ def __init__(self, id=None, name=None, edge_site_id=None, storage_type=None, sta :type assigned_size: int :param resource_spec_code: 资源规格编码 :type resource_spec_code: str + :param product_info: + :type product_info: :class:`huaweicloudsdkcloudpond.v1.ProductInfo` :param capacity: 总容量 :type capacity: int :param market_options: @@ -86,6 +90,7 @@ def __init__(self, id=None, name=None, edge_site_id=None, storage_type=None, sta self._status = None self._assigned_size = None self._resource_spec_code = None + self._product_info = None self._capacity = None self._market_options = None self._created_at = None @@ -107,6 +112,8 @@ def __init__(self, id=None, name=None, edge_site_id=None, storage_type=None, sta self.assigned_size = assigned_size if resource_spec_code is not None: self.resource_spec_code = resource_spec_code + if product_info is not None: + self.product_info = product_info if capacity is not None: self.capacity = capacity if market_options is not None: @@ -264,6 +271,24 @@ def resource_spec_code(self, resource_spec_code): """ self._resource_spec_code = resource_spec_code + @property + def product_info(self): + """Gets the product_info of this StoragePool. + + :return: The product_info of this StoragePool. + :rtype: :class:`huaweicloudsdkcloudpond.v1.ProductInfo` + """ + return self._product_info + + @product_info.setter + def product_info(self, product_info): + """Sets the product_info of this StoragePool. + + :param product_info: The product_info of this StoragePool. + :type product_info: :class:`huaweicloudsdkcloudpond.v1.ProductInfo` + """ + self._product_info = product_info + @property def capacity(self): """Gets the capacity of this StoragePool. diff --git a/huaweicloud-sdk-cloudpond/huaweicloudsdkcloudpond/v1/model/storage_type.py b/huaweicloud-sdk-cloudpond/huaweicloudsdkcloudpond/v1/model/storage_type.py index 6589316ca1..c58d30cc35 100644 --- a/huaweicloud-sdk-cloudpond/huaweicloudsdkcloudpond/v1/model/storage_type.py +++ b/huaweicloud-sdk-cloudpond/huaweicloudsdkcloudpond/v1/model/storage_type.py @@ -11,6 +11,10 @@ class StorageType: """ SAS = "SAS" SSD = "SSD" + SAS_SD = "SAS_SD" + SSD_SD = "SSD_SD" + SAS_ARM = "SAS_ARM" + SSD_ARM = "SSD_ARM" VS_SMALL_CAP = "VS_SMALL_CAP" VS_MEDIUM_CAP = "VS_MEDIUM_CAP" VS_LARGE_CAP = "VS_LARGE_CAP" diff --git a/huaweicloud-sdk-cloudpond/requirements.txt b/huaweicloud-sdk-cloudpond/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-cloudpond/requirements.txt +++ b/huaweicloud-sdk-cloudpond/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-cloudpond/setup.py b/huaweicloud-sdk-cloudpond/setup.py index 0958014a46..90ddeecb93 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cloudrtc/requirements.txt b/huaweicloud-sdk-cloudrtc/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-cloudrtc/requirements.txt +++ b/huaweicloud-sdk-cloudrtc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-cloudrtc/setup.py b/huaweicloud-sdk-cloudrtc/setup.py index ec7d373c25..ee9672cba0 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cloudtable/requirements.txt b/huaweicloud-sdk-cloudtable/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-cloudtable/requirements.txt +++ b/huaweicloud-sdk-cloudtable/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-cloudtable/setup.py b/huaweicloud-sdk-cloudtable/setup.py index 70ade2ef5b..dbdad2fed3 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cloudtest/requirements.txt b/huaweicloud-sdk-cloudtest/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-cloudtest/requirements.txt +++ b/huaweicloud-sdk-cloudtest/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-cloudtest/setup.py b/huaweicloud-sdk-cloudtest/setup.py index cc94ea2c98..5b589d6c91 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-coc/LICENSE b/huaweicloud-sdk-coc/LICENSE new file mode 100644 index 0000000000..808e3296c0 --- /dev/null +++ b/huaweicloud-sdk-coc/LICENSE @@ -0,0 +1,13 @@ +Copyright (c) Huawei Technologies Co., Ltd. 2020-present. All rights reserved. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. \ No newline at end of file diff --git a/huaweicloud-sdk-coc/README_PYPI.md b/huaweicloud-sdk-coc/README_PYPI.md new file mode 100644 index 0000000000..9711543c73 --- /dev/null +++ b/huaweicloud-sdk-coc/README_PYPI.md @@ -0,0 +1 @@ +See detailed information in [huaweicloud-sdk-python-v3](https://github.com/huaweicloud/huaweicloud-sdk-python-v3). \ No newline at end of file diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/__init__.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/__init__.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/__init__.py new file mode 100644 index 0000000000..77adc45dad --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/__init__.py @@ -0,0 +1,144 @@ +# coding: utf-8 + +from __future__ import absolute_import + +from huaweicloudsdkcoc.v1.coc_client import CocClient +from huaweicloudsdkcoc.v1.coc_async_client import CocAsyncClient + +from huaweicloudsdkcoc.v1.model.add_script_model import AddScriptModel +from huaweicloudsdkcoc.v1.model.application_query_response_data import ApplicationQueryResponseData +from huaweicloudsdkcoc.v1.model.authorizable_ticket_body import AuthorizableTicketBody +from huaweicloudsdkcoc.v1.model.authorize_ticket_common_info import AuthorizeTicketCommonInfo +from huaweicloudsdkcoc.v1.model.authorize_ticket_info import AuthorizeTicketInfo +from huaweicloudsdkcoc.v1.model.base_response import BaseResponse +from huaweicloudsdkcoc.v1.model.batch_list_resource_response_data import BatchListResourceResponseData +from huaweicloudsdkcoc.v1.model.coc_issues_ticket_detail_info_response_data import CocIssuesTicketDetailInfoResponseData +from huaweicloudsdkcoc.v1.model.compliance_item import ComplianceItem +from huaweicloudsdkcoc.v1.model.compliant_summary import CompliantSummary +from huaweicloudsdkcoc.v1.model.create_coc_incident_request import CreateCocIncidentRequest +from huaweicloudsdkcoc.v1.model.create_coc_incident_response import CreateCocIncidentResponse +from huaweicloudsdkcoc.v1.model.create_coc_issues_request import CreateCocIssuesRequest +from huaweicloudsdkcoc.v1.model.create_coc_issues_response import CreateCocIssuesResponse +from huaweicloudsdkcoc.v1.model.create_external_incident_request import CreateExternalIncidentRequest +from huaweicloudsdkcoc.v1.model.create_external_incident_response_data import CreateExternalIncidentResponseData +from huaweicloudsdkcoc.v1.model.create_external_issues_request import CreateExternalIssuesRequest +from huaweicloudsdkcoc.v1.model.create_external_issues_response_data import CreateExternalIssuesResponseData +from huaweicloudsdkcoc.v1.model.create_report_custom_event_request import CreateReportCustomEventRequest +from huaweicloudsdkcoc.v1.model.create_report_custom_event_response import CreateReportCustomEventResponse +from huaweicloudsdkcoc.v1.model.create_report_prometheus_event_request import CreateReportPrometheusEventRequest +from huaweicloudsdkcoc.v1.model.create_report_prometheus_event_response import CreateReportPrometheusEventResponse +from huaweicloudsdkcoc.v1.model.create_script_request import CreateScriptRequest +from huaweicloudsdkcoc.v1.model.create_script_response import CreateScriptResponse +from huaweicloudsdkcoc.v1.model.create_war_room_request import CreateWarRoomRequest +from huaweicloudsdkcoc.v1.model.create_war_room_request_body import CreateWarRoomRequestBody +from huaweicloudsdkcoc.v1.model.create_war_room_response import CreateWarRoomResponse +from huaweicloudsdkcoc.v1.model.customttribute import Customttribute +from huaweicloudsdkcoc.v1.model.delete_script_request import DeleteScriptRequest +from huaweicloudsdkcoc.v1.model.delete_script_response import DeleteScriptResponse +from huaweicloudsdkcoc.v1.model.edit_script_model import EditScriptModel +from huaweicloudsdkcoc.v1.model.enum_data_info import EnumDataInfo +from huaweicloudsdkcoc.v1.model.exection_instance_model import ExectionInstanceModel +from huaweicloudsdkcoc.v1.model.exectuion_statistic import ExectuionStatistic +from huaweicloudsdkcoc.v1.model.execute_instances_batch_info import ExecuteInstancesBatchInfo +from huaweicloudsdkcoc.v1.model.execute_public_script_request import ExecutePublicScriptRequest +from huaweicloudsdkcoc.v1.model.execute_public_script_response import ExecutePublicScriptResponse +from huaweicloudsdkcoc.v1.model.execute_resource_instance import ExecuteResourceInstance +from huaweicloudsdkcoc.v1.model.execute_script_request import ExecuteScriptRequest +from huaweicloudsdkcoc.v1.model.execute_script_response import ExecuteScriptResponse +from huaweicloudsdkcoc.v1.model.execution_summary import ExecutionSummary +from huaweicloudsdkcoc.v1.model.extra_field_info import ExtraFieldInfo +from huaweicloudsdkcoc.v1.model.get_public_script_request import GetPublicScriptRequest +from huaweicloudsdkcoc.v1.model.get_public_script_response import GetPublicScriptResponse +from huaweicloudsdkcoc.v1.model.get_script_job_batch_request import GetScriptJobBatchRequest +from huaweicloudsdkcoc.v1.model.get_script_job_batch_response import GetScriptJobBatchResponse +from huaweicloudsdkcoc.v1.model.get_script_job_info_request import GetScriptJobInfoRequest +from huaweicloudsdkcoc.v1.model.get_script_job_info_response import GetScriptJobInfoResponse +from huaweicloudsdkcoc.v1.model.get_script_job_statistics_request import GetScriptJobStatisticsRequest +from huaweicloudsdkcoc.v1.model.get_script_job_statistics_response import GetScriptJobStatisticsResponse +from huaweicloudsdkcoc.v1.model.get_script_request import GetScriptRequest +from huaweicloudsdkcoc.v1.model.get_script_response import GetScriptResponse +from huaweicloudsdkcoc.v1.model.handle_coc_incident_request import HandleCocIncidentRequest +from huaweicloudsdkcoc.v1.model.handle_coc_incident_response import HandleCocIncidentResponse +from huaweicloudsdkcoc.v1.model.handle_external_incident_request import HandleExternalIncidentRequest +from huaweicloudsdkcoc.v1.model.handle_external_incident_response_data import HandleExternalIncidentResponseData +from huaweicloudsdkcoc.v1.model.incident_ticket_info_response_data import IncidentTicketInfoResponseData +from huaweicloudsdkcoc.v1.model.instance_compliant import InstanceCompliant +from huaweicloudsdkcoc.v1.model.job_script_batch_detail_model import JobScriptBatchDetailModel +from huaweicloudsdkcoc.v1.model.job_script_batch_list_model import JobScriptBatchListModel +from huaweicloudsdkcoc.v1.model.job_script_order_info_model import JobScriptOrderInfoModel +from huaweicloudsdkcoc.v1.model.job_script_order_info_prop import JobScriptOrderInfoProp +from huaweicloudsdkcoc.v1.model.job_script_order_list_model import JobScriptOrderListModel +from huaweicloudsdkcoc.v1.model.job_script_order_list_page import JobScriptOrderListPage +from huaweicloudsdkcoc.v1.model.job_script_order_list_prop import JobScriptOrderListProp +from huaweicloudsdkcoc.v1.model.job_script_order_operation_body import JobScriptOrderOperationBody +from huaweicloudsdkcoc.v1.model.job_script_order_statistics_model import JobScriptOrderStatisticsModel +from huaweicloudsdkcoc.v1.model.list_applications_request import ListApplicationsRequest +from huaweicloudsdkcoc.v1.model.list_applications_response import ListApplicationsResponse +from huaweicloudsdkcoc.v1.model.list_authorizable_tickets_external_request import ListAuthorizableTicketsExternalRequest +from huaweicloudsdkcoc.v1.model.list_authorizable_tickets_external_response import ListAuthorizableTicketsExternalResponse +from huaweicloudsdkcoc.v1.model.list_authorizable_tickets_req import ListAuthorizableTicketsReq +from huaweicloudsdkcoc.v1.model.list_base_request import ListBaseRequest +from huaweicloudsdkcoc.v1.model.list_base_response import ListBaseResponse +from huaweicloudsdkcoc.v1.model.list_coc_ticket_operation_histories_request import ListCocTicketOperationHistoriesRequest +from huaweicloudsdkcoc.v1.model.list_coc_ticket_operation_histories_response import ListCocTicketOperationHistoriesResponse +from huaweicloudsdkcoc.v1.model.list_instance_compliant_request import ListInstanceCompliantRequest +from huaweicloudsdkcoc.v1.model.list_instance_compliant_response import ListInstanceCompliantResponse +from huaweicloudsdkcoc.v1.model.list_public_scripts_request import ListPublicScriptsRequest +from huaweicloudsdkcoc.v1.model.list_public_scripts_response import ListPublicScriptsResponse +from huaweicloudsdkcoc.v1.model.list_resource_request import ListResourceRequest +from huaweicloudsdkcoc.v1.model.list_resource_response import ListResourceResponse +from huaweicloudsdkcoc.v1.model.list_script_job_batches_request import ListScriptJobBatchesRequest +from huaweicloudsdkcoc.v1.model.list_script_job_batches_response import ListScriptJobBatchesResponse +from huaweicloudsdkcoc.v1.model.list_script_jobs_request import ListScriptJobsRequest +from huaweicloudsdkcoc.v1.model.list_script_jobs_response import ListScriptJobsResponse +from huaweicloudsdkcoc.v1.model.list_scripts_request import ListScriptsRequest +from huaweicloudsdkcoc.v1.model.list_scripts_response import ListScriptsResponse +from huaweicloudsdkcoc.v1.model.list_tenant_war_room_request_body import ListTenantWarRoomRequestBody +from huaweicloudsdkcoc.v1.model.list_ticket_params import ListTicketParams +from huaweicloudsdkcoc.v1.model.list_war_rooms_request import ListWarRoomsRequest +from huaweicloudsdkcoc.v1.model.list_war_rooms_response import ListWarRoomsResponse +from huaweicloudsdkcoc.v1.model.non_compliant_summary import NonCompliantSummary +from huaweicloudsdkcoc.v1.model.object_filter import ObjectFilter +from huaweicloudsdkcoc.v1.model.operate_script_job_request import OperateScriptJobRequest +from huaweicloudsdkcoc.v1.model.operate_script_job_response import OperateScriptJobResponse +from huaweicloudsdkcoc.v1.model.patch_detail import PatchDetail +from huaweicloudsdkcoc.v1.model.public_script_detail_model import PublicScriptDetailModel +from huaweicloudsdkcoc.v1.model.public_script_list_model import PublicScriptListModel +from huaweicloudsdkcoc.v1.model.public_script_list_page import PublicScriptListPage +from huaweicloudsdkcoc.v1.model.public_script_properties_model import PublicScriptPropertiesModel +from huaweicloudsdkcoc.v1.model.report_custom_event_request_body import ReportCustomEventRequestBody +from huaweicloudsdkcoc.v1.model.resource_instance import ResourceInstance +from huaweicloudsdkcoc.v1.model.resource_instance_prop import ResourceInstanceProp +from huaweicloudsdkcoc.v1.model.reviewer_info import ReviewerInfo +from huaweicloudsdkcoc.v1.model.schedule_group_info import ScheduleGroupInfo +from huaweicloudsdkcoc.v1.model.script_detail_model import ScriptDetailModel +from huaweicloudsdkcoc.v1.model.script_execute_input_param import ScriptExecuteInputParam +from huaweicloudsdkcoc.v1.model.script_execute_model import ScriptExecuteModel +from huaweicloudsdkcoc.v1.model.script_execute_param import ScriptExecuteParam +from huaweicloudsdkcoc.v1.model.script_execute_param_reference import ScriptExecuteParamReference +from huaweicloudsdkcoc.v1.model.script_list_model import ScriptListModel +from huaweicloudsdkcoc.v1.model.script_list_page import ScriptListPage +from huaweicloudsdkcoc.v1.model.script_param_define import ScriptParamDefine +from huaweicloudsdkcoc.v1.model.script_properties_model import ScriptPropertiesModel +from huaweicloudsdkcoc.v1.model.severity_summary import SeveritySummary +from huaweicloudsdkcoc.v1.model.show_coc_incident_detail_request import ShowCocIncidentDetailRequest +from huaweicloudsdkcoc.v1.model.show_coc_incident_detail_response import ShowCocIncidentDetailResponse +from huaweicloudsdkcoc.v1.model.show_coc_issues_detail_request import ShowCocIssuesDetailRequest +from huaweicloudsdkcoc.v1.model.show_coc_issues_detail_response import ShowCocIssuesDetailResponse +from huaweicloudsdkcoc.v1.model.show_instance_patch_items_request import ShowInstancePatchItemsRequest +from huaweicloudsdkcoc.v1.model.show_instance_patch_items_response import ShowInstancePatchItemsResponse +from huaweicloudsdkcoc.v1.model.sync_resource_req import SyncResourceReq +from huaweicloudsdkcoc.v1.model.sync_resource_request import SyncResourceRequest +from huaweicloudsdkcoc.v1.model.sync_resource_response import SyncResourceResponse +from huaweicloudsdkcoc.v1.model.tag import Tag +from huaweicloudsdkcoc.v1.model.ticket_history_info import TicketHistoryInfo +from huaweicloudsdkcoc.v1.model.ticket_info_enum_data import TicketInfoEnumData +from huaweicloudsdkcoc.v1.model.update_script_request import UpdateScriptRequest +from huaweicloudsdkcoc.v1.model.update_script_response import UpdateScriptResponse +from huaweicloudsdkcoc.v1.model.update_ticket_history_info import UpdateTicketHistoryInfo +from huaweicloudsdkcoc.v1.model.war_room_enumeration import WarRoomEnumeration +from huaweicloudsdkcoc.v1.model.war_room_incident import WarRoomIncident +from huaweicloudsdkcoc.v1.model.war_room_tenant_info import WarRoomTenantInfo +from huaweicloudsdkcoc.v1.model.war_room_tenant_info_impacted_application import WarRoomTenantInfoImpactedApplication +from huaweicloudsdkcoc.v1.model.war_room_tenant_info_regions import WarRoomTenantInfoRegions + diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/coc_async_client.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/coc_async_client.py new file mode 100644 index 0000000000..db95fcd657 --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/coc_async_client.py @@ -0,0 +1,2387 @@ +# coding: utf-8 + +from __future__ import absolute_import + +import importlib +import warnings + +from huaweicloudsdkcore.client import Client, ClientBuilder +from huaweicloudsdkcore.utils import http_utils +from huaweicloudsdkcore.sdk_stream_request import SdkStreamRequest +try: + from huaweicloudsdkcore.invoker.invoker import AsyncInvoker +except ImportError as e: + warnings.warn(str(e) + ", please check if you are using the same versions of 'huaweicloudsdkcore' and 'huaweicloudsdkcoc'") + + +class CocAsyncClient(Client): + def __init__(self): + super(CocAsyncClient, self).__init__() + self.model_package = importlib.import_module("huaweicloudsdkcoc.v1.model") + + @classmethod + def new_builder(cls, clazz=None): + if not clazz: + client_builder = ClientBuilder(cls) + else: + if clazz.__name__ != "CocAsyncClient": + raise TypeError("client type error, support client type is CocAsyncClient") + client_builder = ClientBuilder(clazz) + + + + return client_builder + + def create_report_custom_event_async(self, request): + """支持用户自主接入告警数据 + + 支持租户将自开发的监控系统按照标准化集成至COC,集成后告警会按照标准格式上报至COC告警中心 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreateReportCustomEvent + :type request: :class:`huaweicloudsdkcoc.v1.CreateReportCustomEventRequest` + :rtype: :class:`huaweicloudsdkcoc.v1.CreateReportCustomEventResponse` + """ + http_info = self._create_report_custom_event_http_info(request) + return self._call_api(**http_info) + + def create_report_custom_event_async_invoker(self, request): + http_info = self._create_report_custom_event_http_info(request) + return AsyncInvoker(self, http_info) + + def _create_report_custom_event_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/event/huawei/custom/{integration_key}", + "request_type": request.__class__.__name__, + "response_type": "CreateReportCustomEventResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'integration_key' in local_var_params: + path_params['integration_key'] = local_var_params['integration_key'] + + 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_report_prometheus_event_async(self, request): + """Prometheus事件接入 + + Prometheus事件接入 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreateReportPrometheusEvent + :type request: :class:`huaweicloudsdkcoc.v1.CreateReportPrometheusEventRequest` + :rtype: :class:`huaweicloudsdkcoc.v1.CreateReportPrometheusEventResponse` + """ + http_info = self._create_report_prometheus_event_http_info(request) + return self._call_api(**http_info) + + def create_report_prometheus_event_async_invoker(self, request): + http_info = self._create_report_prometheus_event_http_info(request) + return AsyncInvoker(self, http_info) + + def _create_report_prometheus_event_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v1/event/prometheus/{integration_key}", + "request_type": request.__class__.__name__, + "response_type": "CreateReportPrometheusEventResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'integration_key' in local_var_params: + path_params['integration_key'] = local_var_params['integration_key'] + + 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_coc_incident_async(self, request): + """CreateExternalIncident 创建事件单 + + CreateExternalIncident 创建事件单 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreateCocIncident + :type request: :class:`huaweicloudsdkcoc.v1.CreateCocIncidentRequest` + :rtype: :class:`huaweicloudsdkcoc.v1.CreateCocIncidentResponse` + """ + http_info = self._create_coc_incident_http_info(request) + return self._call_api(**http_info) + + def create_coc_incident_async_invoker(self, request): + http_info = self._create_coc_incident_http_info(request) + return AsyncInvoker(self, http_info) + + def _create_coc_incident_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v1/external/incident/create", + "request_type": request.__class__.__name__, + "response_type": "CreateCocIncidentResponse" + } + + 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 handle_coc_incident_async(self, request): + """HandleCocIncident处理事件单 + + HandleCocIncident 处理事件单 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for HandleCocIncident + :type request: :class:`huaweicloudsdkcoc.v1.HandleCocIncidentRequest` + :rtype: :class:`huaweicloudsdkcoc.v1.HandleCocIncidentResponse` + """ + http_info = self._handle_coc_incident_http_info(request) + return self._call_api(**http_info) + + def handle_coc_incident_async_invoker(self, request): + http_info = self._handle_coc_incident_http_info(request) + return AsyncInvoker(self, http_info) + + def _handle_coc_incident_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v1/external/incident/handle", + "request_type": request.__class__.__name__, + "response_type": "HandleCocIncidentResponse" + } + + 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 list_coc_ticket_operation_histories_async(self, request): + """GetCocTicketOperationHistories 获取事件单历史 + + ListCocTicketOperationHistories 获取事件单历史 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListCocTicketOperationHistories + :type request: :class:`huaweicloudsdkcoc.v1.ListCocTicketOperationHistoriesRequest` + :rtype: :class:`huaweicloudsdkcoc.v1.ListCocTicketOperationHistoriesResponse` + """ + http_info = self._list_coc_ticket_operation_histories_http_info(request) + return self._call_api(**http_info) + + def list_coc_ticket_operation_histories_async_invoker(self, request): + http_info = self._list_coc_ticket_operation_histories_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_coc_ticket_operation_histories_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v1/external/{ticket_type}/list-histories", + "request_type": request.__class__.__name__, + "response_type": "ListCocTicketOperationHistoriesResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'ticket_type' in local_var_params: + path_params['ticket_type'] = local_var_params['ticket_type'] + + 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_coc_incident_detail_async(self, request): + """GetCocIncidentDetail 获取事件单详细 + + ShowCocIncidentDetail 获取事件单详细 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowCocIncidentDetail + :type request: :class:`huaweicloudsdkcoc.v1.ShowCocIncidentDetailRequest` + :rtype: :class:`huaweicloudsdkcoc.v1.ShowCocIncidentDetailResponse` + """ + http_info = self._show_coc_incident_detail_http_info(request) + return self._call_api(**http_info) + + def show_coc_incident_detail_async_invoker(self, request): + http_info = self._show_coc_incident_detail_http_info(request) + return AsyncInvoker(self, http_info) + + def _show_coc_incident_detail_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v1/external/incident/{incident_num}", + "request_type": request.__class__.__name__, + "response_type": "ShowCocIncidentDetailResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'incident_num' in local_var_params: + path_params['incident_num'] = local_var_params['incident_num'] + + 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_coc_issues_async(self, request): + """CreateExternalIssues 创建问题单 + + CreateExternalIssues 创建问题单 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreateCocIssues + :type request: :class:`huaweicloudsdkcoc.v1.CreateCocIssuesRequest` + :rtype: :class:`huaweicloudsdkcoc.v1.CreateCocIssuesResponse` + """ + http_info = self._create_coc_issues_http_info(request) + return self._call_api(**http_info) + + def create_coc_issues_async_invoker(self, request): + http_info = self._create_coc_issues_http_info(request) + return AsyncInvoker(self, http_info) + + def _create_coc_issues_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v1/external/issues/create", + "request_type": request.__class__.__name__, + "response_type": "CreateCocIssuesResponse" + } + + 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 show_coc_issues_detail_async(self, request): + """GetCocIssuesDetail 获取事件单详细 + + ShowCocIssuesDetail 获取事件单详细 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowCocIssuesDetail + :type request: :class:`huaweicloudsdkcoc.v1.ShowCocIssuesDetailRequest` + :rtype: :class:`huaweicloudsdkcoc.v1.ShowCocIssuesDetailResponse` + """ + http_info = self._show_coc_issues_detail_http_info(request) + return self._call_api(**http_info) + + def show_coc_issues_detail_async_invoker(self, request): + http_info = self._show_coc_issues_detail_http_info(request) + return AsyncInvoker(self, http_info) + + def _show_coc_issues_detail_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v1/external/issues/{ticket_id}", + "request_type": request.__class__.__name__, + "response_type": "ShowCocIssuesDetailResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'ticket_id' in local_var_params: + path_params['ticket_id'] = local_var_params['ticket_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_authorizable_tickets_external_async(self, request): + """查询COC可授权单列表 + + 查询COC可授权单列表(变更单号、事件单号、warroom和告警) + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListAuthorizableTicketsExternal + :type request: :class:`huaweicloudsdkcoc.v1.ListAuthorizableTicketsExternalRequest` + :rtype: :class:`huaweicloudsdkcoc.v1.ListAuthorizableTicketsExternalResponse` + """ + http_info = self._list_authorizable_tickets_external_http_info(request) + return self._call_api(**http_info) + + def list_authorizable_tickets_external_async_invoker(self, request): + http_info = self._list_authorizable_tickets_external_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_authorizable_tickets_external_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v1/external/list/authorizable-tickets", + "request_type": request.__class__.__name__, + "response_type": "ListAuthorizableTicketsExternalResponse" + } + + 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 get_script_job_batch_async(self, request): + """展示批次详情 + + 查询:批次详情,分页获取批次中的实例列表。 + 过滤条件:分页参数 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for GetScriptJobBatch + :type request: :class:`huaweicloudsdkcoc.v1.GetScriptJobBatchRequest` + :rtype: :class:`huaweicloudsdkcoc.v1.GetScriptJobBatchResponse` + """ + http_info = self._get_script_job_batch_http_info(request) + return self._call_api(**http_info) + + def get_script_job_batch_async_invoker(self, request): + http_info = self._get_script_job_batch_http_info(request) + return AsyncInvoker(self, http_info) + + def _get_script_job_batch_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v1/job/script/orders/{execute_uuid}/batches/{batch_index}", + "request_type": request.__class__.__name__, + "response_type": "GetScriptJobBatchResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'batch_index' in local_var_params: + path_params['batch_index'] = local_var_params['batch_index'] + if 'execute_uuid' in local_var_params: + path_params['execute_uuid'] = local_var_params['execute_uuid'] + + query_params = [] + if 'status' in local_var_params: + query_params.append(('status', local_var_params['status'])) + 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'])) + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + if 'x_project_id' in local_var_params: + header_params['x-project-id'] = local_var_params['x_project_id'] + if 'x_user_profile' in local_var_params: + header_params['x-user-profile'] = local_var_params['x_user_profile'] + + 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 get_script_job_info_async(self, request): + """展示脚本工单基本信息 + + 查询执行:基本信息 + 执行类型、执行名称、创建人、创建时间、结束时间、执行状态、标签(脚本id,脚本名,执行脚本参数,执行用户,超时时长、成功率阈值) + + 不同的任务类型消费标签中的不同key + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for GetScriptJobInfo + :type request: :class:`huaweicloudsdkcoc.v1.GetScriptJobInfoRequest` + :rtype: :class:`huaweicloudsdkcoc.v1.GetScriptJobInfoResponse` + """ + http_info = self._get_script_job_info_http_info(request) + return self._call_api(**http_info) + + def get_script_job_info_async_invoker(self, request): + http_info = self._get_script_job_info_http_info(request) + return AsyncInvoker(self, http_info) + + def _get_script_job_info_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v1/job/script/orders/{execute_uuid}", + "request_type": request.__class__.__name__, + "response_type": "GetScriptJobInfoResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'execute_uuid' in local_var_params: + path_params['execute_uuid'] = local_var_params['execute_uuid'] + + query_params = [] + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + if 'x_project_id' in local_var_params: + header_params['x-project-id'] = local_var_params['x_project_id'] + if 'x_user_profile' in local_var_params: + header_params['x-user-profile'] = local_var_params['x_user_profile'] + + 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 get_script_job_statistics_async(self, request): + """展示实例状态统计信息 + + 查询:实例状态统计信息。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for GetScriptJobStatistics + :type request: :class:`huaweicloudsdkcoc.v1.GetScriptJobStatisticsRequest` + :rtype: :class:`huaweicloudsdkcoc.v1.GetScriptJobStatisticsResponse` + """ + http_info = self._get_script_job_statistics_http_info(request) + return self._call_api(**http_info) + + def get_script_job_statistics_async_invoker(self, request): + http_info = self._get_script_job_statistics_http_info(request) + return AsyncInvoker(self, http_info) + + def _get_script_job_statistics_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v1/job/script/orders/{execute_uuid}/statistics", + "request_type": request.__class__.__name__, + "response_type": "GetScriptJobStatisticsResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'execute_uuid' in local_var_params: + path_params['execute_uuid'] = local_var_params['execute_uuid'] + + query_params = [] + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + if 'x_project_id' in local_var_params: + header_params['x-project-id'] = local_var_params['x_project_id'] + if 'x_user_profile' in local_var_params: + header_params['x-user-profile'] = local_var_params['x_user_profile'] + + 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_script_job_batches_async(self, request): + """展示批次列表 + + 查询:批次列表 + 返回:批次index、批次标签 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListScriptJobBatches + :type request: :class:`huaweicloudsdkcoc.v1.ListScriptJobBatchesRequest` + :rtype: :class:`huaweicloudsdkcoc.v1.ListScriptJobBatchesResponse` + """ + http_info = self._list_script_job_batches_http_info(request) + return self._call_api(**http_info) + + def list_script_job_batches_async_invoker(self, request): + http_info = self._list_script_job_batches_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_script_job_batches_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v1/job/script/orders/{execute_uuid}/batches", + "request_type": request.__class__.__name__, + "response_type": "ListScriptJobBatchesResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'execute_uuid' in local_var_params: + path_params['execute_uuid'] = local_var_params['execute_uuid'] + + query_params = [] + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + if 'x_project_id' in local_var_params: + header_params['x-project-id'] = local_var_params['x_project_id'] + if 'x_user_profile' in local_var_params: + header_params['x-user-profile'] = local_var_params['x_user_profile'] + + 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_script_jobs_async(self, request): + """展示工单列表 + + 查询作业工单列表,分页查询 + 过滤:创建时间开始,创建时间结束、创建人 + 返回:id、脚本名称、区域、创建人、创建时间、结束时间、总耗时、状态 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListScriptJobs + :type request: :class:`huaweicloudsdkcoc.v1.ListScriptJobsRequest` + :rtype: :class:`huaweicloudsdkcoc.v1.ListScriptJobsResponse` + """ + http_info = self._list_script_jobs_http_info(request) + return self._call_api(**http_info) + + def list_script_jobs_async_invoker(self, request): + http_info = self._list_script_jobs_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_script_jobs_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v1/job/script/orders", + "request_type": request.__class__.__name__, + "response_type": "ListScriptJobsResponse" + } + + 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 '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 '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 'creator' in local_var_params: + query_params.append(('creator', local_var_params['creator'])) + if 'status' in local_var_params: + query_params.append(('status', local_var_params['status'])) + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + if 'x_project_id' in local_var_params: + header_params['x-project-id'] = local_var_params['x_project_id'] + if 'x_user_profile' in local_var_params: + header_params['x-user-profile'] = local_var_params['x_user_profile'] + + 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 operate_script_job_async(self, request): + """操作脚本工单 + + 操作类型:取消实例、跳过批次、取消整个工单、暂停整个工单、继续整个工单 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for OperateScriptJob + :type request: :class:`huaweicloudsdkcoc.v1.OperateScriptJobRequest` + :rtype: :class:`huaweicloudsdkcoc.v1.OperateScriptJobResponse` + """ + http_info = self._operate_script_job_http_info(request) + return self._call_api(**http_info) + + def operate_script_job_async_invoker(self, request): + http_info = self._operate_script_job_http_info(request) + return AsyncInvoker(self, http_info) + + def _operate_script_job_http_info(self, request): + http_info = { + "method": "PUT", + "resource_path": "/v1/job/script/orders/{execute_uuid}/operation", + "request_type": request.__class__.__name__, + "response_type": "OperateScriptJobResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'execute_uuid' in local_var_params: + path_params['execute_uuid'] = local_var_params['execute_uuid'] + + query_params = [] + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + if 'x_project_id' in local_var_params: + header_params['x-project-id'] = local_var_params['x_project_id'] + if 'x_user_profile' in local_var_params: + header_params['x-user-profile'] = local_var_params['x_user_profile'] + + 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_script_async(self, request): + """创建脚本 + + 创建作业脚本:自定义脚本 + - 脚本有标签属性,表示是高危脚本。创建时候不需要对脚本进行是否是高危的二次校验。 + - 进行租户隔离;北向接口创建的脚本,审批人字段不填写,默认不需要审批 + - 约束条件: + - 脚本名称:同一租户下,脚本名称不能重复,最大字符64个字符,支持中文+字母+数字+下划线。 + - 脚本内容最大100kb。 + - 脚本参数个数最多20个。 + - 脚本描述:最大256个字符。 + - 单个参数的参数名称 64个字符,只支持字母+数字+下划线。 + - 单个参数的值最大1024个字符,正则表达式如下:^((?!\\.{2,})[a-zA-Z0-9_\\-/\\.\\*\\x20\\?:\",=+@\\\\\\[\\{\\]\\}])*$。 + - 审批人最多支持5人。 + - 脚本输出的日志总量只支持1MB。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreateScript + :type request: :class:`huaweicloudsdkcoc.v1.CreateScriptRequest` + :rtype: :class:`huaweicloudsdkcoc.v1.CreateScriptResponse` + """ + http_info = self._create_script_http_info(request) + return self._call_api(**http_info) + + def create_script_async_invoker(self, request): + http_info = self._create_script_http_info(request) + return AsyncInvoker(self, http_info) + + def _create_script_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v1/job/scripts", + "request_type": request.__class__.__name__, + "response_type": "CreateScriptResponse" + } + + 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_project_id' in local_var_params: + header_params['x-project-id'] = local_var_params['x_project_id'] + if 'x_user_profile' in local_var_params: + header_params['x-user-profile'] = local_var_params['x_user_profile'] + 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;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_script_async(self, request): + """删除自定义脚本 + + 删除作业脚本:自定义脚本。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for DeleteScript + :type request: :class:`huaweicloudsdkcoc.v1.DeleteScriptRequest` + :rtype: :class:`huaweicloudsdkcoc.v1.DeleteScriptResponse` + """ + http_info = self._delete_script_http_info(request) + return self._call_api(**http_info) + + def delete_script_async_invoker(self, request): + http_info = self._delete_script_http_info(request) + return AsyncInvoker(self, http_info) + + def _delete_script_http_info(self, request): + http_info = { + "method": "DELETE", + "resource_path": "/v1/job/scripts/{script_uuid}", + "request_type": request.__class__.__name__, + "response_type": "DeleteScriptResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'script_uuid' in local_var_params: + path_params['script_uuid'] = local_var_params['script_uuid'] + + query_params = [] + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + if 'x_project_id' in local_var_params: + header_params['x-project-id'] = local_var_params['x_project_id'] + if 'x_user_profile' in local_var_params: + header_params['x-user-profile'] = local_var_params['x_user_profile'] + + 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_script_async(self, request): + """执行自定义脚本 + + 执行脚本 + + 脚本入参、超时时间、执行用户、资源受限 + 脚本入参支持20个。 + 单次下发的机器支持200个。 + 单次批次内机器数量最大10个。 + 最大批次数量为20批。 + 脚本输出的日志总量只支持1MB。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ExecuteScript + :type request: :class:`huaweicloudsdkcoc.v1.ExecuteScriptRequest` + :rtype: :class:`huaweicloudsdkcoc.v1.ExecuteScriptResponse` + """ + http_info = self._execute_script_http_info(request) + return self._call_api(**http_info) + + def execute_script_async_invoker(self, request): + http_info = self._execute_script_http_info(request) + return AsyncInvoker(self, http_info) + + def _execute_script_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v1/job/scripts/{script_uuid}", + "request_type": request.__class__.__name__, + "response_type": "ExecuteScriptResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'script_uuid' in local_var_params: + path_params['script_uuid'] = local_var_params['script_uuid'] + + query_params = [] + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + if 'x_project_id' in local_var_params: + header_params['x-project-id'] = local_var_params['x_project_id'] + if 'x_user_profile' in local_var_params: + header_params['x-user-profile'] = local_var_params['x_user_profile'] + + 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 get_script_async(self, request): + """获取自定义脚本详情 + + 获取脚本详情 + 约束条件: + 只能查询自定义脚本详情 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for GetScript + :type request: :class:`huaweicloudsdkcoc.v1.GetScriptRequest` + :rtype: :class:`huaweicloudsdkcoc.v1.GetScriptResponse` + """ + http_info = self._get_script_http_info(request) + return self._call_api(**http_info) + + def get_script_async_invoker(self, request): + http_info = self._get_script_http_info(request) + return AsyncInvoker(self, http_info) + + def _get_script_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v1/job/scripts/{script_uuid}", + "request_type": request.__class__.__name__, + "response_type": "GetScriptResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'script_uuid' in local_var_params: + path_params['script_uuid'] = local_var_params['script_uuid'] + + query_params = [] + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + if 'x_project_id' in local_var_params: + header_params['x-project-id'] = local_var_params['x_project_id'] + if 'x_user_profile' in local_var_params: + header_params['x-user-profile'] = local_var_params['x_user_profile'] + + 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_scripts_async(self, request): + """查询脚本列表 + + 作业脚本列表:自定义脚本 + + limit最大为100 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListScripts + :type request: :class:`huaweicloudsdkcoc.v1.ListScriptsRequest` + :rtype: :class:`huaweicloudsdkcoc.v1.ListScriptsResponse` + """ + http_info = self._list_scripts_http_info(request) + return self._call_api(**http_info) + + def list_scripts_async_invoker(self, request): + http_info = self._list_scripts_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_scripts_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v1/job/scripts", + "request_type": request.__class__.__name__, + "response_type": "ListScriptsResponse" + } + + 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 '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 'name_like' in local_var_params: + query_params.append(('name_like', local_var_params['name_like'])) + if 'creator' in local_var_params: + query_params.append(('creator', local_var_params['creator'])) + if 'risk_level' in local_var_params: + query_params.append(('risk_level', local_var_params['risk_level'])) + if 'type' in local_var_params: + query_params.append(('type', local_var_params['type'])) + if 'enterprise_project_id' in local_var_params: + query_params.append(('enterprise_project_id', local_var_params['enterprise_project_id'])) + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + if 'x_project_id' in local_var_params: + header_params['x-project-id'] = local_var_params['x_project_id'] + if 'x_user_profile' in local_var_params: + header_params['x-user-profile'] = local_var_params['x_user_profile'] + + 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_script_async(self, request): + """修改脚本 + + 修改作业脚本:自定义脚本 + 约束条件: + 脚本名称:同一租户下,脚本名称不能重复,最大字符64个字符,支持中文+字母+数字+下划线。 + 脚本内容最大4096个字符。 + 脚本参数个数最多20个。 + 脚本描述:最大256个字符。 + 单个参数的参数名称 64个字符,只支持字母+数字+下划线。 + 单个参数的值最大1024个字符,正则表达式如下:^((?!.{2,})[a-zA-Z0-9_-/.*\\x20?:\",=+@\\[{]}])*$。 + 修改的脚本如果有审批人,在修改之后,需要再次选择审批人,查询审批 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for UpdateScript + :type request: :class:`huaweicloudsdkcoc.v1.UpdateScriptRequest` + :rtype: :class:`huaweicloudsdkcoc.v1.UpdateScriptResponse` + """ + http_info = self._update_script_http_info(request) + return self._call_api(**http_info) + + def update_script_async_invoker(self, request): + http_info = self._update_script_http_info(request) + return AsyncInvoker(self, http_info) + + def _update_script_http_info(self, request): + http_info = { + "method": "PUT", + "resource_path": "/v1/job/scripts/{script_uuid}", + "request_type": request.__class__.__name__, + "response_type": "UpdateScriptResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'script_uuid' in local_var_params: + path_params['script_uuid'] = local_var_params['script_uuid'] + + query_params = [] + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + if 'x_project_id' in local_var_params: + header_params['x-project-id'] = local_var_params['x_project_id'] + if 'x_user_profile' in local_var_params: + header_params['x-user-profile'] = local_var_params['x_user_profile'] + + 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 execute_public_script_async(self, request): + """执行公共脚本 + + 执行公共脚本 + 脚本入参、超时时间、执行用户、资源受限 + 脚本入参支持20个。 + 单次下发的机器支持200个。 + 单次批次内机器数量最大10个。 + 最大批次数量为20批。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ExecutePublicScript + :type request: :class:`huaweicloudsdkcoc.v1.ExecutePublicScriptRequest` + :rtype: :class:`huaweicloudsdkcoc.v1.ExecutePublicScriptResponse` + """ + http_info = self._execute_public_script_http_info(request) + return self._call_api(**http_info) + + def execute_public_script_async_invoker(self, request): + http_info = self._execute_public_script_http_info(request) + return AsyncInvoker(self, http_info) + + def _execute_public_script_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v1/job/public-scripts/{script_uuid}", + "request_type": request.__class__.__name__, + "response_type": "ExecutePublicScriptResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'script_uuid' in local_var_params: + path_params['script_uuid'] = local_var_params['script_uuid'] + + query_params = [] + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + if 'x_project_id' in local_var_params: + header_params['x-project-id'] = local_var_params['x_project_id'] + if 'x_user_profile' in local_var_params: + header_params['x-user-profile'] = local_var_params['x_user_profile'] + + 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 get_public_script_async(self, request): + """展示公共脚本详情 + + 展示公共脚本详情 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for GetPublicScript + :type request: :class:`huaweicloudsdkcoc.v1.GetPublicScriptRequest` + :rtype: :class:`huaweicloudsdkcoc.v1.GetPublicScriptResponse` + """ + http_info = self._get_public_script_http_info(request) + return self._call_api(**http_info) + + def get_public_script_async_invoker(self, request): + http_info = self._get_public_script_http_info(request) + return AsyncInvoker(self, http_info) + + def _get_public_script_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v1/job/public-scripts/{script_uuid}", + "request_type": request.__class__.__name__, + "response_type": "GetPublicScriptResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'script_uuid' in local_var_params: + path_params['script_uuid'] = local_var_params['script_uuid'] + + query_params = [] + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + if 'x_project_id' in local_var_params: + header_params['x-project-id'] = local_var_params['x_project_id'] + if 'x_user_profile' in local_var_params: + header_params['x-user-profile'] = local_var_params['x_user_profile'] + + 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_public_scripts_async(self, request): + """获取公共脚本列表 + + 获取公共脚本列表,分页逻辑:采用limit+marker方式,提高分页效率。用自增id作为marker参数 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListPublicScripts + :type request: :class:`huaweicloudsdkcoc.v1.ListPublicScriptsRequest` + :rtype: :class:`huaweicloudsdkcoc.v1.ListPublicScriptsResponse` + """ + http_info = self._list_public_scripts_http_info(request) + return self._call_api(**http_info) + + def list_public_scripts_async_invoker(self, request): + http_info = self._list_public_scripts_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_public_scripts_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v1/job/public-scripts", + "request_type": request.__class__.__name__, + "response_type": "ListPublicScriptsResponse" + } + + 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 '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 'name_like' in local_var_params: + query_params.append(('name_like', local_var_params['name_like'])) + if 'name' in local_var_params: + query_params.append(('name', local_var_params['name'])) + if 'risk_level' in local_var_params: + query_params.append(('risk_level', local_var_params['risk_level'])) + if 'type' in local_var_params: + query_params.append(('type', local_var_params['type'])) + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + if 'x_project_id' in local_var_params: + header_params['x-project-id'] = local_var_params['x_project_id'] + if 'x_user_profile' in local_var_params: + header_params['x-user-profile'] = local_var_params['x_user_profile'] + + 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_war_room_async(self, request): + """创建租户区WarRoom + + 创建租户区WarRoom + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreateWarRoom + :type request: :class:`huaweicloudsdkcoc.v1.CreateWarRoomRequest` + :rtype: :class:`huaweicloudsdkcoc.v1.CreateWarRoomResponse` + """ + http_info = self._create_war_room_http_info(request) + return self._call_api(**http_info) + + def create_war_room_async_invoker(self, request): + http_info = self._create_war_room_http_info(request) + return AsyncInvoker(self, http_info) + + def _create_war_room_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v1/external/warrooms", + "request_type": request.__class__.__name__, + "response_type": "CreateWarRoomResponse" + } + + 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 list_war_rooms_async(self, request): + """查询租户区WarRoom信息列表 + + 查询租户区WarRoom信息列表 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListWarRooms + :type request: :class:`huaweicloudsdkcoc.v1.ListWarRoomsRequest` + :rtype: :class:`huaweicloudsdkcoc.v1.ListWarRoomsResponse` + """ + http_info = self._list_war_rooms_http_info(request) + return self._call_api(**http_info) + + def list_war_rooms_async_invoker(self, request): + http_info = self._list_war_rooms_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_war_rooms_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v1/external/warrooms/list", + "request_type": request.__class__.__name__, + "response_type": "ListWarRoomsResponse" + } + + 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 list_applications_async(self, request): + """查询应用 + + 查询应用 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListApplications + :type request: :class:`huaweicloudsdkcoc.v1.ListApplicationsRequest` + :rtype: :class:`huaweicloudsdkcoc.v1.ListApplicationsResponse` + """ + http_info = self._list_applications_http_info(request) + return self._call_api(**http_info) + + def list_applications_async_invoker(self, request): + http_info = self._list_applications_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_applications_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v1/applications", + "request_type": request.__class__.__name__, + "response_type": "ListApplicationsResponse" + } + + 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_list' in local_var_params: + query_params.append(('id_list', local_var_params['id_list'])) + collection_formats['id_list'] = 'csv' + if 'parent_id' in local_var_params: + query_params.append(('parent_id', local_var_params['parent_id'])) + if 'name_like' in local_var_params: + query_params.append(('name_like', local_var_params['name_like'])) + if 'code' in local_var_params: + query_params.append(('code', local_var_params['code'])) + 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 = [] + + 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_instance_compliant_async(self, request): + """获取节点合规性报告 + + 分页获取节点合规性报告 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListInstanceCompliant + :type request: :class:`huaweicloudsdkcoc.v1.ListInstanceCompliantRequest` + :rtype: :class:`huaweicloudsdkcoc.v1.ListInstanceCompliantResponse` + """ + http_info = self._list_instance_compliant_http_info(request) + return self._call_api(**http_info) + + def list_instance_compliant_async_invoker(self, request): + http_info = self._list_instance_compliant_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_instance_compliant_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v1/patch/instance/compliant", + "request_type": request.__class__.__name__, + "response_type": "ListInstanceCompliantResponse" + } + + 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 'enterprise_project_id' in local_var_params: + query_params.append(('enterprise_project_id', local_var_params['enterprise_project_id'])) + if 'name' in local_var_params: + query_params.append(('name', local_var_params['name'])) + if 'instance_id' in local_var_params: + query_params.append(('instance_id', local_var_params['instance_id'])) + if 'ip' in local_var_params: + query_params.append(('ip', local_var_params['ip'])) + if 'eip' in local_var_params: + query_params.append(('eip', local_var_params['eip'])) + if 'operating_system' in local_var_params: + query_params.append(('operating_system', local_var_params['operating_system'])) + if 'region' in local_var_params: + query_params.append(('region', local_var_params['region'])) + if 'group' in local_var_params: + query_params.append(('group', local_var_params['group'])) + if 'compliant_status' in local_var_params: + query_params.append(('compliant_status', local_var_params['compliant_status'])) + if 'order_id' in local_var_params: + query_params.append(('order_id', local_var_params['order_id'])) + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'sort_dir' in local_var_params: + query_params.append(('sort_dir', local_var_params['sort_dir'])) + if 'sort_key' in local_var_params: + query_params.append(('sort_key', local_var_params['sort_key'])) + if 'report_scene' in local_var_params: + query_params.append(('report_scene', local_var_params['report_scene'])) + if 'cce_info_id' in local_var_params: + query_params.append(('cce_info_id', local_var_params['cce_info_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_instance_patch_items_async(self, request): + """分页获取节点补丁详情 + + 分页获取节点补丁详情 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowInstancePatchItems + :type request: :class:`huaweicloudsdkcoc.v1.ShowInstancePatchItemsRequest` + :rtype: :class:`huaweicloudsdkcoc.v1.ShowInstancePatchItemsResponse` + """ + http_info = self._show_instance_patch_items_http_info(request) + return self._call_api(**http_info) + + def show_instance_patch_items_async_invoker(self, request): + http_info = self._show_instance_patch_items_http_info(request) + return AsyncInvoker(self, http_info) + + def _show_instance_patch_items_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v1/patch/instance/compliant/{instance_compliant_id}", + "request_type": request.__class__.__name__, + "response_type": "ShowInstancePatchItemsResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'instance_compliant_id' in local_var_params: + path_params['instance_compliant_id'] = local_var_params['instance_compliant_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 'title' in local_var_params: + query_params.append(('title', local_var_params['title'])) + if 'sort_dir' in local_var_params: + query_params.append(('sort_dir', local_var_params['sort_dir'])) + if 'sort_key' in local_var_params: + query_params.append(('sort_key', local_var_params['sort_key'])) + if 'patch_status' in local_var_params: + query_params.append(('patch_status', local_var_params['patch_status'])) + if 'classification' in local_var_params: + query_params.append(('classification', local_var_params['classification'])) + if 'severity_level' in local_var_params: + query_params.append(('severity_level', local_var_params['severity_level'])) + if 'compliance_level' in local_var_params: + query_params.append(('compliance_level', local_var_params['compliance_level'])) + + 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_resource_async(self, request): + """查询用户所有资源 + + 查询用户所有资源 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListResource + :type request: :class:`huaweicloudsdkcoc.v1.ListResourceRequest` + :rtype: :class:`huaweicloudsdkcoc.v1.ListResourceResponse` + """ + http_info = self._list_resource_http_info(request) + return self._call_api(**http_info) + + def list_resource_async_invoker(self, request): + http_info = self._list_resource_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_resource_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v1/resources", + "request_type": request.__class__.__name__, + "response_type": "ListResourceResponse" + } + + 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 'provider' in local_var_params: + query_params.append(('provider', local_var_params['provider'])) + 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 'resource_id_list' in local_var_params: + query_params.append(('resource_id_list', local_var_params['resource_id_list'])) + collection_formats['resource_id_list'] = 'csv' + if 'name' in local_var_params: + query_params.append(('name', local_var_params['name'])) + if 'region_id' in local_var_params: + query_params.append(('region_id', local_var_params['region_id'])) + if 'az_id' in local_var_params: + query_params.append(('az_id', local_var_params['az_id'])) + if 'ip_type' in local_var_params: + query_params.append(('ip_type', local_var_params['ip_type'])) + if 'ip' in local_var_params: + query_params.append(('ip', local_var_params['ip'])) + if 'status' in local_var_params: + query_params.append(('status', local_var_params['status'])) + if 'agent_state' in local_var_params: + query_params.append(('agent_state', local_var_params['agent_state'])) + if 'image_name' in local_var_params: + query_params.append(('image_name', local_var_params['image_name'])) + if 'os_type' in local_var_params: + query_params.append(('os_type', local_var_params['os_type'])) + if 'tag' in local_var_params: + query_params.append(('tag', local_var_params['tag'])) + if 'tag_key' in local_var_params: + query_params.append(('tag_key', local_var_params['tag_key'])) + if 'group_id' in local_var_params: + query_params.append(('group_id', local_var_params['group_id'])) + if 'component_id' in local_var_params: + query_params.append(('component_id', local_var_params['component_id'])) + if 'application_id' in local_var_params: + query_params.append(('application_id', local_var_params['application_id'])) + if 'cce_cluster_id' in local_var_params: + query_params.append(('cce_cluster_id', local_var_params['cce_cluster_id'])) + if 'vpc_id' in local_var_params: + query_params.append(('vpc_id', local_var_params['vpc_id'])) + if 'ep_id' in local_var_params: + query_params.append(('ep_id', local_var_params['ep_id'])) + if 'is_delegated' in local_var_params: + query_params.append(('is_delegated', local_var_params['is_delegated'])) + + 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 sync_resource_async(self, request): + """从RMS同步用户所有资源 + + 从RMS同步用户所有资源 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for SyncResource + :type request: :class:`huaweicloudsdkcoc.v1.SyncResourceRequest` + :rtype: :class:`huaweicloudsdkcoc.v1.SyncResourceResponse` + """ + http_info = self._sync_resource_http_info(request) + return self._call_api(**http_info) + + def sync_resource_async_invoker(self, request): + http_info = self._sync_resource_http_info(request) + return AsyncInvoker(self, http_info) + + def _sync_resource_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v1/resources/sync", + "request_type": request.__class__.__name__, + "response_type": "SyncResourceResponse" + } + + 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 _call_api(self, **kwargs): + try: + kwargs["async_request"] = True + return self.do_http_request(**kwargs) + except TypeError: + import inspect + params = inspect.signature(self.do_http_request).parameters + http_info = {param_name: kwargs.get(param_name) for param_name in params if param_name in kwargs} + return self.do_http_request(**http_info) + + def call_api(self, resource_path, method, path_params=None, query_params=None, header_params=None, body=None, + post_params=None, cname=None, response_type=None, response_headers=None, auth_settings=None, + collection_formats=None, request_type=None): + """Makes the HTTP request and returns deserialized data. + + :param resource_path: Path to method endpoint. + :param method: Method to call. + :param path_params: Path parameters in the url. + :param query_params: Query parameters in the url. + :param header_params: Header parameters to be + placed in the request header. + :param body: Request body. + :param post_params: Request post form parameters, + for `application/x-www-form-urlencoded`, `multipart/form-data`. + :param cname: Used for obs endpoint. + :param auth_settings: Auth Settings names for the request. + :param response_type: Response data type. + :param response_headers: Header should be added to response data. + :param collection_formats: dict of collection formats for path, query, + header, and post parameters. + :param request_type: Request data type. + :return: + Return the response directly. + """ + return self.do_http_request( + method=method, + resource_path=resource_path, + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body, + post_params=post_params, + cname=cname, + response_type=response_type, + response_headers=response_headers, + collection_formats=collection_formats, + request_type=request_type, + async_request=True) diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/coc_client.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/coc_client.py new file mode 100644 index 0000000000..5d4ba8c73b --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/coc_client.py @@ -0,0 +1,2384 @@ +# coding: utf-8 + +from __future__ import absolute_import + +import importlib +import warnings + +from huaweicloudsdkcore.client import Client, ClientBuilder +from huaweicloudsdkcore.utils import http_utils +from huaweicloudsdkcore.sdk_stream_request import SdkStreamRequest +try: + from huaweicloudsdkcore.invoker.invoker import SyncInvoker +except ImportError as e: + warnings.warn(str(e) + ", please check if you are using the same versions of 'huaweicloudsdkcore' and 'huaweicloudsdkcoc'") + + +class CocClient(Client): + def __init__(self): + super(CocClient, self).__init__() + self.model_package = importlib.import_module("huaweicloudsdkcoc.v1.model") + + @classmethod + def new_builder(cls, clazz=None): + if not clazz: + client_builder = ClientBuilder(cls) + else: + if clazz.__name__ != "CocClient": + raise TypeError("client type error, support client type is CocClient") + client_builder = ClientBuilder(clazz) + + + + return client_builder + + def create_report_custom_event(self, request): + """支持用户自主接入告警数据 + + 支持租户将自开发的监控系统按照标准化集成至COC,集成后告警会按照标准格式上报至COC告警中心 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreateReportCustomEvent + :type request: :class:`huaweicloudsdkcoc.v1.CreateReportCustomEventRequest` + :rtype: :class:`huaweicloudsdkcoc.v1.CreateReportCustomEventResponse` + """ + http_info = self._create_report_custom_event_http_info(request) + return self._call_api(**http_info) + + def create_report_custom_event_invoker(self, request): + http_info = self._create_report_custom_event_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _create_report_custom_event_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/event/huawei/custom/{integration_key}", + "request_type": request.__class__.__name__, + "response_type": "CreateReportCustomEventResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'integration_key' in local_var_params: + path_params['integration_key'] = local_var_params['integration_key'] + + 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_report_prometheus_event(self, request): + """Prometheus事件接入 + + Prometheus事件接入 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreateReportPrometheusEvent + :type request: :class:`huaweicloudsdkcoc.v1.CreateReportPrometheusEventRequest` + :rtype: :class:`huaweicloudsdkcoc.v1.CreateReportPrometheusEventResponse` + """ + http_info = self._create_report_prometheus_event_http_info(request) + return self._call_api(**http_info) + + def create_report_prometheus_event_invoker(self, request): + http_info = self._create_report_prometheus_event_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _create_report_prometheus_event_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v1/event/prometheus/{integration_key}", + "request_type": request.__class__.__name__, + "response_type": "CreateReportPrometheusEventResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'integration_key' in local_var_params: + path_params['integration_key'] = local_var_params['integration_key'] + + 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_coc_incident(self, request): + """CreateExternalIncident 创建事件单 + + CreateExternalIncident 创建事件单 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreateCocIncident + :type request: :class:`huaweicloudsdkcoc.v1.CreateCocIncidentRequest` + :rtype: :class:`huaweicloudsdkcoc.v1.CreateCocIncidentResponse` + """ + http_info = self._create_coc_incident_http_info(request) + return self._call_api(**http_info) + + def create_coc_incident_invoker(self, request): + http_info = self._create_coc_incident_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _create_coc_incident_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v1/external/incident/create", + "request_type": request.__class__.__name__, + "response_type": "CreateCocIncidentResponse" + } + + 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 handle_coc_incident(self, request): + """HandleCocIncident处理事件单 + + HandleCocIncident 处理事件单 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for HandleCocIncident + :type request: :class:`huaweicloudsdkcoc.v1.HandleCocIncidentRequest` + :rtype: :class:`huaweicloudsdkcoc.v1.HandleCocIncidentResponse` + """ + http_info = self._handle_coc_incident_http_info(request) + return self._call_api(**http_info) + + def handle_coc_incident_invoker(self, request): + http_info = self._handle_coc_incident_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _handle_coc_incident_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v1/external/incident/handle", + "request_type": request.__class__.__name__, + "response_type": "HandleCocIncidentResponse" + } + + 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 list_coc_ticket_operation_histories(self, request): + """GetCocTicketOperationHistories 获取事件单历史 + + ListCocTicketOperationHistories 获取事件单历史 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListCocTicketOperationHistories + :type request: :class:`huaweicloudsdkcoc.v1.ListCocTicketOperationHistoriesRequest` + :rtype: :class:`huaweicloudsdkcoc.v1.ListCocTicketOperationHistoriesResponse` + """ + http_info = self._list_coc_ticket_operation_histories_http_info(request) + return self._call_api(**http_info) + + def list_coc_ticket_operation_histories_invoker(self, request): + http_info = self._list_coc_ticket_operation_histories_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_coc_ticket_operation_histories_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v1/external/{ticket_type}/list-histories", + "request_type": request.__class__.__name__, + "response_type": "ListCocTicketOperationHistoriesResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'ticket_type' in local_var_params: + path_params['ticket_type'] = local_var_params['ticket_type'] + + 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_coc_incident_detail(self, request): + """GetCocIncidentDetail 获取事件单详细 + + ShowCocIncidentDetail 获取事件单详细 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowCocIncidentDetail + :type request: :class:`huaweicloudsdkcoc.v1.ShowCocIncidentDetailRequest` + :rtype: :class:`huaweicloudsdkcoc.v1.ShowCocIncidentDetailResponse` + """ + http_info = self._show_coc_incident_detail_http_info(request) + return self._call_api(**http_info) + + def show_coc_incident_detail_invoker(self, request): + http_info = self._show_coc_incident_detail_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _show_coc_incident_detail_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v1/external/incident/{incident_num}", + "request_type": request.__class__.__name__, + "response_type": "ShowCocIncidentDetailResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'incident_num' in local_var_params: + path_params['incident_num'] = local_var_params['incident_num'] + + 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_coc_issues(self, request): + """CreateExternalIssues 创建问题单 + + CreateExternalIssues 创建问题单 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreateCocIssues + :type request: :class:`huaweicloudsdkcoc.v1.CreateCocIssuesRequest` + :rtype: :class:`huaweicloudsdkcoc.v1.CreateCocIssuesResponse` + """ + http_info = self._create_coc_issues_http_info(request) + return self._call_api(**http_info) + + def create_coc_issues_invoker(self, request): + http_info = self._create_coc_issues_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _create_coc_issues_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v1/external/issues/create", + "request_type": request.__class__.__name__, + "response_type": "CreateCocIssuesResponse" + } + + 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 show_coc_issues_detail(self, request): + """GetCocIssuesDetail 获取事件单详细 + + ShowCocIssuesDetail 获取事件单详细 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowCocIssuesDetail + :type request: :class:`huaweicloudsdkcoc.v1.ShowCocIssuesDetailRequest` + :rtype: :class:`huaweicloudsdkcoc.v1.ShowCocIssuesDetailResponse` + """ + http_info = self._show_coc_issues_detail_http_info(request) + return self._call_api(**http_info) + + def show_coc_issues_detail_invoker(self, request): + http_info = self._show_coc_issues_detail_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _show_coc_issues_detail_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v1/external/issues/{ticket_id}", + "request_type": request.__class__.__name__, + "response_type": "ShowCocIssuesDetailResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'ticket_id' in local_var_params: + path_params['ticket_id'] = local_var_params['ticket_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_authorizable_tickets_external(self, request): + """查询COC可授权单列表 + + 查询COC可授权单列表(变更单号、事件单号、warroom和告警) + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListAuthorizableTicketsExternal + :type request: :class:`huaweicloudsdkcoc.v1.ListAuthorizableTicketsExternalRequest` + :rtype: :class:`huaweicloudsdkcoc.v1.ListAuthorizableTicketsExternalResponse` + """ + http_info = self._list_authorizable_tickets_external_http_info(request) + return self._call_api(**http_info) + + def list_authorizable_tickets_external_invoker(self, request): + http_info = self._list_authorizable_tickets_external_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_authorizable_tickets_external_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v1/external/list/authorizable-tickets", + "request_type": request.__class__.__name__, + "response_type": "ListAuthorizableTicketsExternalResponse" + } + + 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 get_script_job_batch(self, request): + """展示批次详情 + + 查询:批次详情,分页获取批次中的实例列表。 + 过滤条件:分页参数 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for GetScriptJobBatch + :type request: :class:`huaweicloudsdkcoc.v1.GetScriptJobBatchRequest` + :rtype: :class:`huaweicloudsdkcoc.v1.GetScriptJobBatchResponse` + """ + http_info = self._get_script_job_batch_http_info(request) + return self._call_api(**http_info) + + def get_script_job_batch_invoker(self, request): + http_info = self._get_script_job_batch_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _get_script_job_batch_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v1/job/script/orders/{execute_uuid}/batches/{batch_index}", + "request_type": request.__class__.__name__, + "response_type": "GetScriptJobBatchResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'batch_index' in local_var_params: + path_params['batch_index'] = local_var_params['batch_index'] + if 'execute_uuid' in local_var_params: + path_params['execute_uuid'] = local_var_params['execute_uuid'] + + query_params = [] + if 'status' in local_var_params: + query_params.append(('status', local_var_params['status'])) + 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'])) + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + if 'x_project_id' in local_var_params: + header_params['x-project-id'] = local_var_params['x_project_id'] + if 'x_user_profile' in local_var_params: + header_params['x-user-profile'] = local_var_params['x_user_profile'] + + 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 get_script_job_info(self, request): + """展示脚本工单基本信息 + + 查询执行:基本信息 + 执行类型、执行名称、创建人、创建时间、结束时间、执行状态、标签(脚本id,脚本名,执行脚本参数,执行用户,超时时长、成功率阈值) + + 不同的任务类型消费标签中的不同key + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for GetScriptJobInfo + :type request: :class:`huaweicloudsdkcoc.v1.GetScriptJobInfoRequest` + :rtype: :class:`huaweicloudsdkcoc.v1.GetScriptJobInfoResponse` + """ + http_info = self._get_script_job_info_http_info(request) + return self._call_api(**http_info) + + def get_script_job_info_invoker(self, request): + http_info = self._get_script_job_info_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _get_script_job_info_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v1/job/script/orders/{execute_uuid}", + "request_type": request.__class__.__name__, + "response_type": "GetScriptJobInfoResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'execute_uuid' in local_var_params: + path_params['execute_uuid'] = local_var_params['execute_uuid'] + + query_params = [] + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + if 'x_project_id' in local_var_params: + header_params['x-project-id'] = local_var_params['x_project_id'] + if 'x_user_profile' in local_var_params: + header_params['x-user-profile'] = local_var_params['x_user_profile'] + + 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 get_script_job_statistics(self, request): + """展示实例状态统计信息 + + 查询:实例状态统计信息。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for GetScriptJobStatistics + :type request: :class:`huaweicloudsdkcoc.v1.GetScriptJobStatisticsRequest` + :rtype: :class:`huaweicloudsdkcoc.v1.GetScriptJobStatisticsResponse` + """ + http_info = self._get_script_job_statistics_http_info(request) + return self._call_api(**http_info) + + def get_script_job_statistics_invoker(self, request): + http_info = self._get_script_job_statistics_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _get_script_job_statistics_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v1/job/script/orders/{execute_uuid}/statistics", + "request_type": request.__class__.__name__, + "response_type": "GetScriptJobStatisticsResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'execute_uuid' in local_var_params: + path_params['execute_uuid'] = local_var_params['execute_uuid'] + + query_params = [] + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + if 'x_project_id' in local_var_params: + header_params['x-project-id'] = local_var_params['x_project_id'] + if 'x_user_profile' in local_var_params: + header_params['x-user-profile'] = local_var_params['x_user_profile'] + + 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_script_job_batches(self, request): + """展示批次列表 + + 查询:批次列表 + 返回:批次index、批次标签 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListScriptJobBatches + :type request: :class:`huaweicloudsdkcoc.v1.ListScriptJobBatchesRequest` + :rtype: :class:`huaweicloudsdkcoc.v1.ListScriptJobBatchesResponse` + """ + http_info = self._list_script_job_batches_http_info(request) + return self._call_api(**http_info) + + def list_script_job_batches_invoker(self, request): + http_info = self._list_script_job_batches_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_script_job_batches_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v1/job/script/orders/{execute_uuid}/batches", + "request_type": request.__class__.__name__, + "response_type": "ListScriptJobBatchesResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'execute_uuid' in local_var_params: + path_params['execute_uuid'] = local_var_params['execute_uuid'] + + query_params = [] + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + if 'x_project_id' in local_var_params: + header_params['x-project-id'] = local_var_params['x_project_id'] + if 'x_user_profile' in local_var_params: + header_params['x-user-profile'] = local_var_params['x_user_profile'] + + 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_script_jobs(self, request): + """展示工单列表 + + 查询作业工单列表,分页查询 + 过滤:创建时间开始,创建时间结束、创建人 + 返回:id、脚本名称、区域、创建人、创建时间、结束时间、总耗时、状态 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListScriptJobs + :type request: :class:`huaweicloudsdkcoc.v1.ListScriptJobsRequest` + :rtype: :class:`huaweicloudsdkcoc.v1.ListScriptJobsResponse` + """ + http_info = self._list_script_jobs_http_info(request) + return self._call_api(**http_info) + + def list_script_jobs_invoker(self, request): + http_info = self._list_script_jobs_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_script_jobs_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v1/job/script/orders", + "request_type": request.__class__.__name__, + "response_type": "ListScriptJobsResponse" + } + + 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 '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 '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 'creator' in local_var_params: + query_params.append(('creator', local_var_params['creator'])) + if 'status' in local_var_params: + query_params.append(('status', local_var_params['status'])) + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + if 'x_project_id' in local_var_params: + header_params['x-project-id'] = local_var_params['x_project_id'] + if 'x_user_profile' in local_var_params: + header_params['x-user-profile'] = local_var_params['x_user_profile'] + + 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 operate_script_job(self, request): + """操作脚本工单 + + 操作类型:取消实例、跳过批次、取消整个工单、暂停整个工单、继续整个工单 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for OperateScriptJob + :type request: :class:`huaweicloudsdkcoc.v1.OperateScriptJobRequest` + :rtype: :class:`huaweicloudsdkcoc.v1.OperateScriptJobResponse` + """ + http_info = self._operate_script_job_http_info(request) + return self._call_api(**http_info) + + def operate_script_job_invoker(self, request): + http_info = self._operate_script_job_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _operate_script_job_http_info(cls, request): + http_info = { + "method": "PUT", + "resource_path": "/v1/job/script/orders/{execute_uuid}/operation", + "request_type": request.__class__.__name__, + "response_type": "OperateScriptJobResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'execute_uuid' in local_var_params: + path_params['execute_uuid'] = local_var_params['execute_uuid'] + + query_params = [] + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + if 'x_project_id' in local_var_params: + header_params['x-project-id'] = local_var_params['x_project_id'] + if 'x_user_profile' in local_var_params: + header_params['x-user-profile'] = local_var_params['x_user_profile'] + + 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_script(self, request): + """创建脚本 + + 创建作业脚本:自定义脚本 + - 脚本有标签属性,表示是高危脚本。创建时候不需要对脚本进行是否是高危的二次校验。 + - 进行租户隔离;北向接口创建的脚本,审批人字段不填写,默认不需要审批 + - 约束条件: + - 脚本名称:同一租户下,脚本名称不能重复,最大字符64个字符,支持中文+字母+数字+下划线。 + - 脚本内容最大100kb。 + - 脚本参数个数最多20个。 + - 脚本描述:最大256个字符。 + - 单个参数的参数名称 64个字符,只支持字母+数字+下划线。 + - 单个参数的值最大1024个字符,正则表达式如下:^((?!\\.{2,})[a-zA-Z0-9_\\-/\\.\\*\\x20\\?:\",=+@\\\\\\[\\{\\]\\}])*$。 + - 审批人最多支持5人。 + - 脚本输出的日志总量只支持1MB。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreateScript + :type request: :class:`huaweicloudsdkcoc.v1.CreateScriptRequest` + :rtype: :class:`huaweicloudsdkcoc.v1.CreateScriptResponse` + """ + http_info = self._create_script_http_info(request) + return self._call_api(**http_info) + + def create_script_invoker(self, request): + http_info = self._create_script_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _create_script_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v1/job/scripts", + "request_type": request.__class__.__name__, + "response_type": "CreateScriptResponse" + } + + 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_project_id' in local_var_params: + header_params['x-project-id'] = local_var_params['x_project_id'] + if 'x_user_profile' in local_var_params: + header_params['x-user-profile'] = local_var_params['x_user_profile'] + 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;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_script(self, request): + """删除自定义脚本 + + 删除作业脚本:自定义脚本。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for DeleteScript + :type request: :class:`huaweicloudsdkcoc.v1.DeleteScriptRequest` + :rtype: :class:`huaweicloudsdkcoc.v1.DeleteScriptResponse` + """ + http_info = self._delete_script_http_info(request) + return self._call_api(**http_info) + + def delete_script_invoker(self, request): + http_info = self._delete_script_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _delete_script_http_info(cls, request): + http_info = { + "method": "DELETE", + "resource_path": "/v1/job/scripts/{script_uuid}", + "request_type": request.__class__.__name__, + "response_type": "DeleteScriptResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'script_uuid' in local_var_params: + path_params['script_uuid'] = local_var_params['script_uuid'] + + query_params = [] + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + if 'x_project_id' in local_var_params: + header_params['x-project-id'] = local_var_params['x_project_id'] + if 'x_user_profile' in local_var_params: + header_params['x-user-profile'] = local_var_params['x_user_profile'] + + 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_script(self, request): + """执行自定义脚本 + + 执行脚本 + + 脚本入参、超时时间、执行用户、资源受限 + 脚本入参支持20个。 + 单次下发的机器支持200个。 + 单次批次内机器数量最大10个。 + 最大批次数量为20批。 + 脚本输出的日志总量只支持1MB。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ExecuteScript + :type request: :class:`huaweicloudsdkcoc.v1.ExecuteScriptRequest` + :rtype: :class:`huaweicloudsdkcoc.v1.ExecuteScriptResponse` + """ + http_info = self._execute_script_http_info(request) + return self._call_api(**http_info) + + def execute_script_invoker(self, request): + http_info = self._execute_script_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _execute_script_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v1/job/scripts/{script_uuid}", + "request_type": request.__class__.__name__, + "response_type": "ExecuteScriptResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'script_uuid' in local_var_params: + path_params['script_uuid'] = local_var_params['script_uuid'] + + query_params = [] + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + if 'x_project_id' in local_var_params: + header_params['x-project-id'] = local_var_params['x_project_id'] + if 'x_user_profile' in local_var_params: + header_params['x-user-profile'] = local_var_params['x_user_profile'] + + 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 get_script(self, request): + """获取自定义脚本详情 + + 获取脚本详情 + 约束条件: + 只能查询自定义脚本详情 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for GetScript + :type request: :class:`huaweicloudsdkcoc.v1.GetScriptRequest` + :rtype: :class:`huaweicloudsdkcoc.v1.GetScriptResponse` + """ + http_info = self._get_script_http_info(request) + return self._call_api(**http_info) + + def get_script_invoker(self, request): + http_info = self._get_script_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _get_script_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v1/job/scripts/{script_uuid}", + "request_type": request.__class__.__name__, + "response_type": "GetScriptResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'script_uuid' in local_var_params: + path_params['script_uuid'] = local_var_params['script_uuid'] + + query_params = [] + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + if 'x_project_id' in local_var_params: + header_params['x-project-id'] = local_var_params['x_project_id'] + if 'x_user_profile' in local_var_params: + header_params['x-user-profile'] = local_var_params['x_user_profile'] + + 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_scripts(self, request): + """查询脚本列表 + + 作业脚本列表:自定义脚本 + + limit最大为100 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListScripts + :type request: :class:`huaweicloudsdkcoc.v1.ListScriptsRequest` + :rtype: :class:`huaweicloudsdkcoc.v1.ListScriptsResponse` + """ + http_info = self._list_scripts_http_info(request) + return self._call_api(**http_info) + + def list_scripts_invoker(self, request): + http_info = self._list_scripts_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_scripts_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v1/job/scripts", + "request_type": request.__class__.__name__, + "response_type": "ListScriptsResponse" + } + + 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 '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 'name_like' in local_var_params: + query_params.append(('name_like', local_var_params['name_like'])) + if 'creator' in local_var_params: + query_params.append(('creator', local_var_params['creator'])) + if 'risk_level' in local_var_params: + query_params.append(('risk_level', local_var_params['risk_level'])) + if 'type' in local_var_params: + query_params.append(('type', local_var_params['type'])) + if 'enterprise_project_id' in local_var_params: + query_params.append(('enterprise_project_id', local_var_params['enterprise_project_id'])) + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + if 'x_project_id' in local_var_params: + header_params['x-project-id'] = local_var_params['x_project_id'] + if 'x_user_profile' in local_var_params: + header_params['x-user-profile'] = local_var_params['x_user_profile'] + + 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_script(self, request): + """修改脚本 + + 修改作业脚本:自定义脚本 + 约束条件: + 脚本名称:同一租户下,脚本名称不能重复,最大字符64个字符,支持中文+字母+数字+下划线。 + 脚本内容最大4096个字符。 + 脚本参数个数最多20个。 + 脚本描述:最大256个字符。 + 单个参数的参数名称 64个字符,只支持字母+数字+下划线。 + 单个参数的值最大1024个字符,正则表达式如下:^((?!.{2,})[a-zA-Z0-9_-/.*\\x20?:\",=+@\\[{]}])*$。 + 修改的脚本如果有审批人,在修改之后,需要再次选择审批人,查询审批 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for UpdateScript + :type request: :class:`huaweicloudsdkcoc.v1.UpdateScriptRequest` + :rtype: :class:`huaweicloudsdkcoc.v1.UpdateScriptResponse` + """ + http_info = self._update_script_http_info(request) + return self._call_api(**http_info) + + def update_script_invoker(self, request): + http_info = self._update_script_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _update_script_http_info(cls, request): + http_info = { + "method": "PUT", + "resource_path": "/v1/job/scripts/{script_uuid}", + "request_type": request.__class__.__name__, + "response_type": "UpdateScriptResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'script_uuid' in local_var_params: + path_params['script_uuid'] = local_var_params['script_uuid'] + + query_params = [] + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + if 'x_project_id' in local_var_params: + header_params['x-project-id'] = local_var_params['x_project_id'] + if 'x_user_profile' in local_var_params: + header_params['x-user-profile'] = local_var_params['x_user_profile'] + + 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 execute_public_script(self, request): + """执行公共脚本 + + 执行公共脚本 + 脚本入参、超时时间、执行用户、资源受限 + 脚本入参支持20个。 + 单次下发的机器支持200个。 + 单次批次内机器数量最大10个。 + 最大批次数量为20批。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ExecutePublicScript + :type request: :class:`huaweicloudsdkcoc.v1.ExecutePublicScriptRequest` + :rtype: :class:`huaweicloudsdkcoc.v1.ExecutePublicScriptResponse` + """ + http_info = self._execute_public_script_http_info(request) + return self._call_api(**http_info) + + def execute_public_script_invoker(self, request): + http_info = self._execute_public_script_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _execute_public_script_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v1/job/public-scripts/{script_uuid}", + "request_type": request.__class__.__name__, + "response_type": "ExecutePublicScriptResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'script_uuid' in local_var_params: + path_params['script_uuid'] = local_var_params['script_uuid'] + + query_params = [] + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + if 'x_project_id' in local_var_params: + header_params['x-project-id'] = local_var_params['x_project_id'] + if 'x_user_profile' in local_var_params: + header_params['x-user-profile'] = local_var_params['x_user_profile'] + + 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 get_public_script(self, request): + """展示公共脚本详情 + + 展示公共脚本详情 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for GetPublicScript + :type request: :class:`huaweicloudsdkcoc.v1.GetPublicScriptRequest` + :rtype: :class:`huaweicloudsdkcoc.v1.GetPublicScriptResponse` + """ + http_info = self._get_public_script_http_info(request) + return self._call_api(**http_info) + + def get_public_script_invoker(self, request): + http_info = self._get_public_script_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _get_public_script_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v1/job/public-scripts/{script_uuid}", + "request_type": request.__class__.__name__, + "response_type": "GetPublicScriptResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'script_uuid' in local_var_params: + path_params['script_uuid'] = local_var_params['script_uuid'] + + query_params = [] + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + if 'x_project_id' in local_var_params: + header_params['x-project-id'] = local_var_params['x_project_id'] + if 'x_user_profile' in local_var_params: + header_params['x-user-profile'] = local_var_params['x_user_profile'] + + 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_public_scripts(self, request): + """获取公共脚本列表 + + 获取公共脚本列表,分页逻辑:采用limit+marker方式,提高分页效率。用自增id作为marker参数 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListPublicScripts + :type request: :class:`huaweicloudsdkcoc.v1.ListPublicScriptsRequest` + :rtype: :class:`huaweicloudsdkcoc.v1.ListPublicScriptsResponse` + """ + http_info = self._list_public_scripts_http_info(request) + return self._call_api(**http_info) + + def list_public_scripts_invoker(self, request): + http_info = self._list_public_scripts_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_public_scripts_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v1/job/public-scripts", + "request_type": request.__class__.__name__, + "response_type": "ListPublicScriptsResponse" + } + + 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 '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 'name_like' in local_var_params: + query_params.append(('name_like', local_var_params['name_like'])) + if 'name' in local_var_params: + query_params.append(('name', local_var_params['name'])) + if 'risk_level' in local_var_params: + query_params.append(('risk_level', local_var_params['risk_level'])) + if 'type' in local_var_params: + query_params.append(('type', local_var_params['type'])) + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + if 'x_project_id' in local_var_params: + header_params['x-project-id'] = local_var_params['x_project_id'] + if 'x_user_profile' in local_var_params: + header_params['x-user-profile'] = local_var_params['x_user_profile'] + + 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_war_room(self, request): + """创建租户区WarRoom + + 创建租户区WarRoom + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreateWarRoom + :type request: :class:`huaweicloudsdkcoc.v1.CreateWarRoomRequest` + :rtype: :class:`huaweicloudsdkcoc.v1.CreateWarRoomResponse` + """ + http_info = self._create_war_room_http_info(request) + return self._call_api(**http_info) + + def create_war_room_invoker(self, request): + http_info = self._create_war_room_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _create_war_room_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v1/external/warrooms", + "request_type": request.__class__.__name__, + "response_type": "CreateWarRoomResponse" + } + + 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 list_war_rooms(self, request): + """查询租户区WarRoom信息列表 + + 查询租户区WarRoom信息列表 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListWarRooms + :type request: :class:`huaweicloudsdkcoc.v1.ListWarRoomsRequest` + :rtype: :class:`huaweicloudsdkcoc.v1.ListWarRoomsResponse` + """ + http_info = self._list_war_rooms_http_info(request) + return self._call_api(**http_info) + + def list_war_rooms_invoker(self, request): + http_info = self._list_war_rooms_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_war_rooms_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v1/external/warrooms/list", + "request_type": request.__class__.__name__, + "response_type": "ListWarRoomsResponse" + } + + 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 list_applications(self, request): + """查询应用 + + 查询应用 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListApplications + :type request: :class:`huaweicloudsdkcoc.v1.ListApplicationsRequest` + :rtype: :class:`huaweicloudsdkcoc.v1.ListApplicationsResponse` + """ + http_info = self._list_applications_http_info(request) + return self._call_api(**http_info) + + def list_applications_invoker(self, request): + http_info = self._list_applications_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_applications_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v1/applications", + "request_type": request.__class__.__name__, + "response_type": "ListApplicationsResponse" + } + + 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_list' in local_var_params: + query_params.append(('id_list', local_var_params['id_list'])) + collection_formats['id_list'] = 'csv' + if 'parent_id' in local_var_params: + query_params.append(('parent_id', local_var_params['parent_id'])) + if 'name_like' in local_var_params: + query_params.append(('name_like', local_var_params['name_like'])) + if 'code' in local_var_params: + query_params.append(('code', local_var_params['code'])) + 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 = [] + + 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_instance_compliant(self, request): + """获取节点合规性报告 + + 分页获取节点合规性报告 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListInstanceCompliant + :type request: :class:`huaweicloudsdkcoc.v1.ListInstanceCompliantRequest` + :rtype: :class:`huaweicloudsdkcoc.v1.ListInstanceCompliantResponse` + """ + http_info = self._list_instance_compliant_http_info(request) + return self._call_api(**http_info) + + def list_instance_compliant_invoker(self, request): + http_info = self._list_instance_compliant_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_instance_compliant_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v1/patch/instance/compliant", + "request_type": request.__class__.__name__, + "response_type": "ListInstanceCompliantResponse" + } + + 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 'enterprise_project_id' in local_var_params: + query_params.append(('enterprise_project_id', local_var_params['enterprise_project_id'])) + if 'name' in local_var_params: + query_params.append(('name', local_var_params['name'])) + if 'instance_id' in local_var_params: + query_params.append(('instance_id', local_var_params['instance_id'])) + if 'ip' in local_var_params: + query_params.append(('ip', local_var_params['ip'])) + if 'eip' in local_var_params: + query_params.append(('eip', local_var_params['eip'])) + if 'operating_system' in local_var_params: + query_params.append(('operating_system', local_var_params['operating_system'])) + if 'region' in local_var_params: + query_params.append(('region', local_var_params['region'])) + if 'group' in local_var_params: + query_params.append(('group', local_var_params['group'])) + if 'compliant_status' in local_var_params: + query_params.append(('compliant_status', local_var_params['compliant_status'])) + if 'order_id' in local_var_params: + query_params.append(('order_id', local_var_params['order_id'])) + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'sort_dir' in local_var_params: + query_params.append(('sort_dir', local_var_params['sort_dir'])) + if 'sort_key' in local_var_params: + query_params.append(('sort_key', local_var_params['sort_key'])) + if 'report_scene' in local_var_params: + query_params.append(('report_scene', local_var_params['report_scene'])) + if 'cce_info_id' in local_var_params: + query_params.append(('cce_info_id', local_var_params['cce_info_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_instance_patch_items(self, request): + """分页获取节点补丁详情 + + 分页获取节点补丁详情 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowInstancePatchItems + :type request: :class:`huaweicloudsdkcoc.v1.ShowInstancePatchItemsRequest` + :rtype: :class:`huaweicloudsdkcoc.v1.ShowInstancePatchItemsResponse` + """ + http_info = self._show_instance_patch_items_http_info(request) + return self._call_api(**http_info) + + def show_instance_patch_items_invoker(self, request): + http_info = self._show_instance_patch_items_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _show_instance_patch_items_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v1/patch/instance/compliant/{instance_compliant_id}", + "request_type": request.__class__.__name__, + "response_type": "ShowInstancePatchItemsResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'instance_compliant_id' in local_var_params: + path_params['instance_compliant_id'] = local_var_params['instance_compliant_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 'title' in local_var_params: + query_params.append(('title', local_var_params['title'])) + if 'sort_dir' in local_var_params: + query_params.append(('sort_dir', local_var_params['sort_dir'])) + if 'sort_key' in local_var_params: + query_params.append(('sort_key', local_var_params['sort_key'])) + if 'patch_status' in local_var_params: + query_params.append(('patch_status', local_var_params['patch_status'])) + if 'classification' in local_var_params: + query_params.append(('classification', local_var_params['classification'])) + if 'severity_level' in local_var_params: + query_params.append(('severity_level', local_var_params['severity_level'])) + if 'compliance_level' in local_var_params: + query_params.append(('compliance_level', local_var_params['compliance_level'])) + + 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_resource(self, request): + """查询用户所有资源 + + 查询用户所有资源 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListResource + :type request: :class:`huaweicloudsdkcoc.v1.ListResourceRequest` + :rtype: :class:`huaweicloudsdkcoc.v1.ListResourceResponse` + """ + http_info = self._list_resource_http_info(request) + return self._call_api(**http_info) + + def list_resource_invoker(self, request): + http_info = self._list_resource_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_resource_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v1/resources", + "request_type": request.__class__.__name__, + "response_type": "ListResourceResponse" + } + + 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 'provider' in local_var_params: + query_params.append(('provider', local_var_params['provider'])) + 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 'resource_id_list' in local_var_params: + query_params.append(('resource_id_list', local_var_params['resource_id_list'])) + collection_formats['resource_id_list'] = 'csv' + if 'name' in local_var_params: + query_params.append(('name', local_var_params['name'])) + if 'region_id' in local_var_params: + query_params.append(('region_id', local_var_params['region_id'])) + if 'az_id' in local_var_params: + query_params.append(('az_id', local_var_params['az_id'])) + if 'ip_type' in local_var_params: + query_params.append(('ip_type', local_var_params['ip_type'])) + if 'ip' in local_var_params: + query_params.append(('ip', local_var_params['ip'])) + if 'status' in local_var_params: + query_params.append(('status', local_var_params['status'])) + if 'agent_state' in local_var_params: + query_params.append(('agent_state', local_var_params['agent_state'])) + if 'image_name' in local_var_params: + query_params.append(('image_name', local_var_params['image_name'])) + if 'os_type' in local_var_params: + query_params.append(('os_type', local_var_params['os_type'])) + if 'tag' in local_var_params: + query_params.append(('tag', local_var_params['tag'])) + if 'tag_key' in local_var_params: + query_params.append(('tag_key', local_var_params['tag_key'])) + if 'group_id' in local_var_params: + query_params.append(('group_id', local_var_params['group_id'])) + if 'component_id' in local_var_params: + query_params.append(('component_id', local_var_params['component_id'])) + if 'application_id' in local_var_params: + query_params.append(('application_id', local_var_params['application_id'])) + if 'cce_cluster_id' in local_var_params: + query_params.append(('cce_cluster_id', local_var_params['cce_cluster_id'])) + if 'vpc_id' in local_var_params: + query_params.append(('vpc_id', local_var_params['vpc_id'])) + if 'ep_id' in local_var_params: + query_params.append(('ep_id', local_var_params['ep_id'])) + if 'is_delegated' in local_var_params: + query_params.append(('is_delegated', local_var_params['is_delegated'])) + + 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 sync_resource(self, request): + """从RMS同步用户所有资源 + + 从RMS同步用户所有资源 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for SyncResource + :type request: :class:`huaweicloudsdkcoc.v1.SyncResourceRequest` + :rtype: :class:`huaweicloudsdkcoc.v1.SyncResourceResponse` + """ + http_info = self._sync_resource_http_info(request) + return self._call_api(**http_info) + + def sync_resource_invoker(self, request): + http_info = self._sync_resource_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _sync_resource_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v1/resources/sync", + "request_type": request.__class__.__name__, + "response_type": "SyncResourceResponse" + } + + 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 _call_api(self, **kwargs): + try: + return self.do_http_request(**kwargs) + except TypeError: + import inspect + params = inspect.signature(self.do_http_request).parameters + http_info = {param_name: kwargs.get(param_name) for param_name in params if param_name in kwargs} + return self.do_http_request(**http_info) + + def call_api(self, resource_path, method, path_params=None, query_params=None, header_params=None, body=None, + post_params=None, cname=None, response_type=None, response_headers=None, auth_settings=None, + collection_formats=None, request_type=None): + """Makes the HTTP request and returns deserialized data. + + :param resource_path: Path to method endpoint. + :param method: Method to call. + :param path_params: Path parameters in the url. + :param query_params: Query parameters in the url. + :param header_params: Header parameters to be placed in the request header. + :param body: Request body. + :param post_params: Request post form parameters, + for `application/x-www-form-urlencoded`, `multipart/form-data`. + :param cname: Used for obs endpoint. + :param auth_settings: Auth Settings names for the request. + :param response_type: Response data type. + :param response_headers: Header should be added to response data. + :param collection_formats: dict of collection formats for path, query, + header, and post parameters. + :param request_type: Request data type. + :return: + Return the response directly. + """ + return self.do_http_request( + method=method, + resource_path=resource_path, + path_params=path_params, + query_params=query_params, + header_params=header_params, + body=body, + post_params=post_params, + cname=cname, + response_type=response_type, + response_headers=response_headers, + collection_formats=collection_formats, + request_type=request_type) diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/__init__.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/__init__.py new file mode 100644 index 0000000000..5f74252bee --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/__init__.py @@ -0,0 +1,141 @@ +# coding: utf-8 + +from __future__ import absolute_import + +# import models into model package +from huaweicloudsdkcoc.v1.model.add_script_model import AddScriptModel +from huaweicloudsdkcoc.v1.model.application_query_response_data import ApplicationQueryResponseData +from huaweicloudsdkcoc.v1.model.authorizable_ticket_body import AuthorizableTicketBody +from huaweicloudsdkcoc.v1.model.authorize_ticket_common_info import AuthorizeTicketCommonInfo +from huaweicloudsdkcoc.v1.model.authorize_ticket_info import AuthorizeTicketInfo +from huaweicloudsdkcoc.v1.model.base_response import BaseResponse +from huaweicloudsdkcoc.v1.model.batch_list_resource_response_data import BatchListResourceResponseData +from huaweicloudsdkcoc.v1.model.coc_issues_ticket_detail_info_response_data import CocIssuesTicketDetailInfoResponseData +from huaweicloudsdkcoc.v1.model.compliance_item import ComplianceItem +from huaweicloudsdkcoc.v1.model.compliant_summary import CompliantSummary +from huaweicloudsdkcoc.v1.model.create_coc_incident_request import CreateCocIncidentRequest +from huaweicloudsdkcoc.v1.model.create_coc_incident_response import CreateCocIncidentResponse +from huaweicloudsdkcoc.v1.model.create_coc_issues_request import CreateCocIssuesRequest +from huaweicloudsdkcoc.v1.model.create_coc_issues_response import CreateCocIssuesResponse +from huaweicloudsdkcoc.v1.model.create_external_incident_request import CreateExternalIncidentRequest +from huaweicloudsdkcoc.v1.model.create_external_incident_response_data import CreateExternalIncidentResponseData +from huaweicloudsdkcoc.v1.model.create_external_issues_request import CreateExternalIssuesRequest +from huaweicloudsdkcoc.v1.model.create_external_issues_response_data import CreateExternalIssuesResponseData +from huaweicloudsdkcoc.v1.model.create_report_custom_event_request import CreateReportCustomEventRequest +from huaweicloudsdkcoc.v1.model.create_report_custom_event_response import CreateReportCustomEventResponse +from huaweicloudsdkcoc.v1.model.create_report_prometheus_event_request import CreateReportPrometheusEventRequest +from huaweicloudsdkcoc.v1.model.create_report_prometheus_event_response import CreateReportPrometheusEventResponse +from huaweicloudsdkcoc.v1.model.create_script_request import CreateScriptRequest +from huaweicloudsdkcoc.v1.model.create_script_response import CreateScriptResponse +from huaweicloudsdkcoc.v1.model.create_war_room_request import CreateWarRoomRequest +from huaweicloudsdkcoc.v1.model.create_war_room_request_body import CreateWarRoomRequestBody +from huaweicloudsdkcoc.v1.model.create_war_room_response import CreateWarRoomResponse +from huaweicloudsdkcoc.v1.model.customttribute import Customttribute +from huaweicloudsdkcoc.v1.model.delete_script_request import DeleteScriptRequest +from huaweicloudsdkcoc.v1.model.delete_script_response import DeleteScriptResponse +from huaweicloudsdkcoc.v1.model.edit_script_model import EditScriptModel +from huaweicloudsdkcoc.v1.model.enum_data_info import EnumDataInfo +from huaweicloudsdkcoc.v1.model.exection_instance_model import ExectionInstanceModel +from huaweicloudsdkcoc.v1.model.exectuion_statistic import ExectuionStatistic +from huaweicloudsdkcoc.v1.model.execute_instances_batch_info import ExecuteInstancesBatchInfo +from huaweicloudsdkcoc.v1.model.execute_public_script_request import ExecutePublicScriptRequest +from huaweicloudsdkcoc.v1.model.execute_public_script_response import ExecutePublicScriptResponse +from huaweicloudsdkcoc.v1.model.execute_resource_instance import ExecuteResourceInstance +from huaweicloudsdkcoc.v1.model.execute_script_request import ExecuteScriptRequest +from huaweicloudsdkcoc.v1.model.execute_script_response import ExecuteScriptResponse +from huaweicloudsdkcoc.v1.model.execution_summary import ExecutionSummary +from huaweicloudsdkcoc.v1.model.extra_field_info import ExtraFieldInfo +from huaweicloudsdkcoc.v1.model.get_public_script_request import GetPublicScriptRequest +from huaweicloudsdkcoc.v1.model.get_public_script_response import GetPublicScriptResponse +from huaweicloudsdkcoc.v1.model.get_script_job_batch_request import GetScriptJobBatchRequest +from huaweicloudsdkcoc.v1.model.get_script_job_batch_response import GetScriptJobBatchResponse +from huaweicloudsdkcoc.v1.model.get_script_job_info_request import GetScriptJobInfoRequest +from huaweicloudsdkcoc.v1.model.get_script_job_info_response import GetScriptJobInfoResponse +from huaweicloudsdkcoc.v1.model.get_script_job_statistics_request import GetScriptJobStatisticsRequest +from huaweicloudsdkcoc.v1.model.get_script_job_statistics_response import GetScriptJobStatisticsResponse +from huaweicloudsdkcoc.v1.model.get_script_request import GetScriptRequest +from huaweicloudsdkcoc.v1.model.get_script_response import GetScriptResponse +from huaweicloudsdkcoc.v1.model.handle_coc_incident_request import HandleCocIncidentRequest +from huaweicloudsdkcoc.v1.model.handle_coc_incident_response import HandleCocIncidentResponse +from huaweicloudsdkcoc.v1.model.handle_external_incident_request import HandleExternalIncidentRequest +from huaweicloudsdkcoc.v1.model.handle_external_incident_response_data import HandleExternalIncidentResponseData +from huaweicloudsdkcoc.v1.model.incident_ticket_info_response_data import IncidentTicketInfoResponseData +from huaweicloudsdkcoc.v1.model.instance_compliant import InstanceCompliant +from huaweicloudsdkcoc.v1.model.job_script_batch_detail_model import JobScriptBatchDetailModel +from huaweicloudsdkcoc.v1.model.job_script_batch_list_model import JobScriptBatchListModel +from huaweicloudsdkcoc.v1.model.job_script_order_info_model import JobScriptOrderInfoModel +from huaweicloudsdkcoc.v1.model.job_script_order_info_prop import JobScriptOrderInfoProp +from huaweicloudsdkcoc.v1.model.job_script_order_list_model import JobScriptOrderListModel +from huaweicloudsdkcoc.v1.model.job_script_order_list_page import JobScriptOrderListPage +from huaweicloudsdkcoc.v1.model.job_script_order_list_prop import JobScriptOrderListProp +from huaweicloudsdkcoc.v1.model.job_script_order_operation_body import JobScriptOrderOperationBody +from huaweicloudsdkcoc.v1.model.job_script_order_statistics_model import JobScriptOrderStatisticsModel +from huaweicloudsdkcoc.v1.model.list_applications_request import ListApplicationsRequest +from huaweicloudsdkcoc.v1.model.list_applications_response import ListApplicationsResponse +from huaweicloudsdkcoc.v1.model.list_authorizable_tickets_external_request import ListAuthorizableTicketsExternalRequest +from huaweicloudsdkcoc.v1.model.list_authorizable_tickets_external_response import ListAuthorizableTicketsExternalResponse +from huaweicloudsdkcoc.v1.model.list_authorizable_tickets_req import ListAuthorizableTicketsReq +from huaweicloudsdkcoc.v1.model.list_base_request import ListBaseRequest +from huaweicloudsdkcoc.v1.model.list_base_response import ListBaseResponse +from huaweicloudsdkcoc.v1.model.list_coc_ticket_operation_histories_request import ListCocTicketOperationHistoriesRequest +from huaweicloudsdkcoc.v1.model.list_coc_ticket_operation_histories_response import ListCocTicketOperationHistoriesResponse +from huaweicloudsdkcoc.v1.model.list_instance_compliant_request import ListInstanceCompliantRequest +from huaweicloudsdkcoc.v1.model.list_instance_compliant_response import ListInstanceCompliantResponse +from huaweicloudsdkcoc.v1.model.list_public_scripts_request import ListPublicScriptsRequest +from huaweicloudsdkcoc.v1.model.list_public_scripts_response import ListPublicScriptsResponse +from huaweicloudsdkcoc.v1.model.list_resource_request import ListResourceRequest +from huaweicloudsdkcoc.v1.model.list_resource_response import ListResourceResponse +from huaweicloudsdkcoc.v1.model.list_script_job_batches_request import ListScriptJobBatchesRequest +from huaweicloudsdkcoc.v1.model.list_script_job_batches_response import ListScriptJobBatchesResponse +from huaweicloudsdkcoc.v1.model.list_script_jobs_request import ListScriptJobsRequest +from huaweicloudsdkcoc.v1.model.list_script_jobs_response import ListScriptJobsResponse +from huaweicloudsdkcoc.v1.model.list_scripts_request import ListScriptsRequest +from huaweicloudsdkcoc.v1.model.list_scripts_response import ListScriptsResponse +from huaweicloudsdkcoc.v1.model.list_tenant_war_room_request_body import ListTenantWarRoomRequestBody +from huaweicloudsdkcoc.v1.model.list_ticket_params import ListTicketParams +from huaweicloudsdkcoc.v1.model.list_war_rooms_request import ListWarRoomsRequest +from huaweicloudsdkcoc.v1.model.list_war_rooms_response import ListWarRoomsResponse +from huaweicloudsdkcoc.v1.model.non_compliant_summary import NonCompliantSummary +from huaweicloudsdkcoc.v1.model.object_filter import ObjectFilter +from huaweicloudsdkcoc.v1.model.operate_script_job_request import OperateScriptJobRequest +from huaweicloudsdkcoc.v1.model.operate_script_job_response import OperateScriptJobResponse +from huaweicloudsdkcoc.v1.model.patch_detail import PatchDetail +from huaweicloudsdkcoc.v1.model.public_script_detail_model import PublicScriptDetailModel +from huaweicloudsdkcoc.v1.model.public_script_list_model import PublicScriptListModel +from huaweicloudsdkcoc.v1.model.public_script_list_page import PublicScriptListPage +from huaweicloudsdkcoc.v1.model.public_script_properties_model import PublicScriptPropertiesModel +from huaweicloudsdkcoc.v1.model.report_custom_event_request_body import ReportCustomEventRequestBody +from huaweicloudsdkcoc.v1.model.resource_instance import ResourceInstance +from huaweicloudsdkcoc.v1.model.resource_instance_prop import ResourceInstanceProp +from huaweicloudsdkcoc.v1.model.reviewer_info import ReviewerInfo +from huaweicloudsdkcoc.v1.model.schedule_group_info import ScheduleGroupInfo +from huaweicloudsdkcoc.v1.model.script_detail_model import ScriptDetailModel +from huaweicloudsdkcoc.v1.model.script_execute_input_param import ScriptExecuteInputParam +from huaweicloudsdkcoc.v1.model.script_execute_model import ScriptExecuteModel +from huaweicloudsdkcoc.v1.model.script_execute_param import ScriptExecuteParam +from huaweicloudsdkcoc.v1.model.script_execute_param_reference import ScriptExecuteParamReference +from huaweicloudsdkcoc.v1.model.script_list_model import ScriptListModel +from huaweicloudsdkcoc.v1.model.script_list_page import ScriptListPage +from huaweicloudsdkcoc.v1.model.script_param_define import ScriptParamDefine +from huaweicloudsdkcoc.v1.model.script_properties_model import ScriptPropertiesModel +from huaweicloudsdkcoc.v1.model.severity_summary import SeveritySummary +from huaweicloudsdkcoc.v1.model.show_coc_incident_detail_request import ShowCocIncidentDetailRequest +from huaweicloudsdkcoc.v1.model.show_coc_incident_detail_response import ShowCocIncidentDetailResponse +from huaweicloudsdkcoc.v1.model.show_coc_issues_detail_request import ShowCocIssuesDetailRequest +from huaweicloudsdkcoc.v1.model.show_coc_issues_detail_response import ShowCocIssuesDetailResponse +from huaweicloudsdkcoc.v1.model.show_instance_patch_items_request import ShowInstancePatchItemsRequest +from huaweicloudsdkcoc.v1.model.show_instance_patch_items_response import ShowInstancePatchItemsResponse +from huaweicloudsdkcoc.v1.model.sync_resource_req import SyncResourceReq +from huaweicloudsdkcoc.v1.model.sync_resource_request import SyncResourceRequest +from huaweicloudsdkcoc.v1.model.sync_resource_response import SyncResourceResponse +from huaweicloudsdkcoc.v1.model.tag import Tag +from huaweicloudsdkcoc.v1.model.ticket_history_info import TicketHistoryInfo +from huaweicloudsdkcoc.v1.model.ticket_info_enum_data import TicketInfoEnumData +from huaweicloudsdkcoc.v1.model.update_script_request import UpdateScriptRequest +from huaweicloudsdkcoc.v1.model.update_script_response import UpdateScriptResponse +from huaweicloudsdkcoc.v1.model.update_ticket_history_info import UpdateTicketHistoryInfo +from huaweicloudsdkcoc.v1.model.war_room_enumeration import WarRoomEnumeration +from huaweicloudsdkcoc.v1.model.war_room_incident import WarRoomIncident +from huaweicloudsdkcoc.v1.model.war_room_tenant_info import WarRoomTenantInfo +from huaweicloudsdkcoc.v1.model.war_room_tenant_info_impacted_application import WarRoomTenantInfoImpactedApplication +from huaweicloudsdkcoc.v1.model.war_room_tenant_info_regions import WarRoomTenantInfoRegions diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/add_script_model.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/add_script_model.py new file mode 100644 index 0000000000..996241a58e --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/add_script_model.py @@ -0,0 +1,280 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class AddScriptModel: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'properties': 'ScriptPropertiesModel', + 'description': 'str', + 'type': 'str', + 'content': 'str', + 'enterprise_project_id': 'str', + 'script_params': 'list[ScriptParamDefine]' + } + + attribute_map = { + 'name': 'name', + 'properties': 'properties', + 'description': 'description', + 'type': 'type', + 'content': 'content', + 'enterprise_project_id': 'enterprise_project_id', + 'script_params': 'script_params' + } + + def __init__(self, name=None, properties=None, description=None, type=None, content=None, enterprise_project_id=None, script_params=None): + """AddScriptModel + + The model defined in huaweicloud sdk + + :param name: 脚本名称:只能包含中文、英文、数字、下划线 + :type name: str + :param properties: + :type properties: :class:`huaweicloudsdkcoc.v1.ScriptPropertiesModel` + :param description: 脚本描述 + :type description: str + :param type: 脚本类型: 对于脚本后缀: SHELL:.sh PYTHON:.py BAT:.bat + :type type: str + :param content: 脚本内容 + :type content: str + :param enterprise_project_id: 企业项目ID,默认为:0 + :type enterprise_project_id: str + :param script_params: 脚本入参 + :type script_params: list[:class:`huaweicloudsdkcoc.v1.ScriptParamDefine`] + """ + + + + self._name = None + self._properties = None + self._description = None + self._type = None + self._content = None + self._enterprise_project_id = None + self._script_params = None + self.discriminator = None + + self.name = name + self.properties = properties + self.description = description + self.type = type + self.content = content + if enterprise_project_id is not None: + self.enterprise_project_id = enterprise_project_id + if script_params is not None: + self.script_params = script_params + + @property + def name(self): + """Gets the name of this AddScriptModel. + + 脚本名称:只能包含中文、英文、数字、下划线 + + :return: The name of this AddScriptModel. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this AddScriptModel. + + 脚本名称:只能包含中文、英文、数字、下划线 + + :param name: The name of this AddScriptModel. + :type name: str + """ + self._name = name + + @property + def properties(self): + """Gets the properties of this AddScriptModel. + + :return: The properties of this AddScriptModel. + :rtype: :class:`huaweicloudsdkcoc.v1.ScriptPropertiesModel` + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this AddScriptModel. + + :param properties: The properties of this AddScriptModel. + :type properties: :class:`huaweicloudsdkcoc.v1.ScriptPropertiesModel` + """ + self._properties = properties + + @property + def description(self): + """Gets the description of this AddScriptModel. + + 脚本描述 + + :return: The description of this AddScriptModel. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this AddScriptModel. + + 脚本描述 + + :param description: The description of this AddScriptModel. + :type description: str + """ + self._description = description + + @property + def type(self): + """Gets the type of this AddScriptModel. + + 脚本类型: 对于脚本后缀: SHELL:.sh PYTHON:.py BAT:.bat + + :return: The type of this AddScriptModel. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this AddScriptModel. + + 脚本类型: 对于脚本后缀: SHELL:.sh PYTHON:.py BAT:.bat + + :param type: The type of this AddScriptModel. + :type type: str + """ + self._type = type + + @property + def content(self): + """Gets the content of this AddScriptModel. + + 脚本内容 + + :return: The content of this AddScriptModel. + :rtype: str + """ + return self._content + + @content.setter + def content(self, content): + """Sets the content of this AddScriptModel. + + 脚本内容 + + :param content: The content of this AddScriptModel. + :type content: str + """ + self._content = content + + @property + def enterprise_project_id(self): + """Gets the enterprise_project_id of this AddScriptModel. + + 企业项目ID,默认为:0 + + :return: The enterprise_project_id of this AddScriptModel. + :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 AddScriptModel. + + 企业项目ID,默认为:0 + + :param enterprise_project_id: The enterprise_project_id of this AddScriptModel. + :type enterprise_project_id: str + """ + self._enterprise_project_id = enterprise_project_id + + @property + def script_params(self): + """Gets the script_params of this AddScriptModel. + + 脚本入参 + + :return: The script_params of this AddScriptModel. + :rtype: list[:class:`huaweicloudsdkcoc.v1.ScriptParamDefine`] + """ + return self._script_params + + @script_params.setter + def script_params(self, script_params): + """Sets the script_params of this AddScriptModel. + + 脚本入参 + + :param script_params: The script_params of this AddScriptModel. + :type script_params: list[:class:`huaweicloudsdkcoc.v1.ScriptParamDefine`] + """ + self._script_params = script_params + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AddScriptModel): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/application_query_response_data.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/application_query_response_data.py new file mode 100644 index 0000000000..eb4a72e20f --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/application_query_response_data.py @@ -0,0 +1,289 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ApplicationQueryResponseData: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'code': 'str', + 'domain_id': 'str', + 'parent_id': 'str', + 'description': 'str', + 'path': 'str' + } + + attribute_map = { + 'id': 'id', + 'name': 'name', + 'code': 'code', + 'domain_id': 'domain_id', + 'parent_id': 'parent_id', + 'description': 'description', + 'path': 'path' + } + + def __init__(self, id=None, name=None, code=None, domain_id=None, parent_id=None, description=None, path=None): + """ApplicationQueryResponseData + + The model defined in huaweicloud sdk + + :param id: 应用id + :type id: str + :param name: 应用名称 + :type name: str + :param code: 应用code + :type code: str + :param domain_id: 租户id + :type domain_id: str + :param parent_id: 父节点id + :type parent_id: str + :param description: 描述信息 + :type description: str + :param path: 应用path路径,由应用id用.拼接 + :type path: str + """ + + + + self._id = None + self._name = None + self._code = None + self._domain_id = None + self._parent_id = None + self._description = None + self._path = None + self.discriminator = None + + if id is not None: + self.id = id + if name is not None: + self.name = name + if code is not None: + self.code = code + if domain_id is not None: + self.domain_id = domain_id + if parent_id is not None: + self.parent_id = parent_id + if description is not None: + self.description = description + if path is not None: + self.path = path + + @property + def id(self): + """Gets the id of this ApplicationQueryResponseData. + + 应用id + + :return: The id of this ApplicationQueryResponseData. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this ApplicationQueryResponseData. + + 应用id + + :param id: The id of this ApplicationQueryResponseData. + :type id: str + """ + self._id = id + + @property + def name(self): + """Gets the name of this ApplicationQueryResponseData. + + 应用名称 + + :return: The name of this ApplicationQueryResponseData. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ApplicationQueryResponseData. + + 应用名称 + + :param name: The name of this ApplicationQueryResponseData. + :type name: str + """ + self._name = name + + @property + def code(self): + """Gets the code of this ApplicationQueryResponseData. + + 应用code + + :return: The code of this ApplicationQueryResponseData. + :rtype: str + """ + return self._code + + @code.setter + def code(self, code): + """Sets the code of this ApplicationQueryResponseData. + + 应用code + + :param code: The code of this ApplicationQueryResponseData. + :type code: str + """ + self._code = code + + @property + def domain_id(self): + """Gets the domain_id of this ApplicationQueryResponseData. + + 租户id + + :return: The domain_id of this ApplicationQueryResponseData. + :rtype: str + """ + return self._domain_id + + @domain_id.setter + def domain_id(self, domain_id): + """Sets the domain_id of this ApplicationQueryResponseData. + + 租户id + + :param domain_id: The domain_id of this ApplicationQueryResponseData. + :type domain_id: str + """ + self._domain_id = domain_id + + @property + def parent_id(self): + """Gets the parent_id of this ApplicationQueryResponseData. + + 父节点id + + :return: The parent_id of this ApplicationQueryResponseData. + :rtype: str + """ + return self._parent_id + + @parent_id.setter + def parent_id(self, parent_id): + """Sets the parent_id of this ApplicationQueryResponseData. + + 父节点id + + :param parent_id: The parent_id of this ApplicationQueryResponseData. + :type parent_id: str + """ + self._parent_id = parent_id + + @property + def description(self): + """Gets the description of this ApplicationQueryResponseData. + + 描述信息 + + :return: The description of this ApplicationQueryResponseData. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this ApplicationQueryResponseData. + + 描述信息 + + :param description: The description of this ApplicationQueryResponseData. + :type description: str + """ + self._description = description + + @property + def path(self): + """Gets the path of this ApplicationQueryResponseData. + + 应用path路径,由应用id用.拼接 + + :return: The path of this ApplicationQueryResponseData. + :rtype: str + """ + return self._path + + @path.setter + def path(self, path): + """Sets the path of this ApplicationQueryResponseData. + + 应用path路径,由应用id用.拼接 + + :param path: The path of this ApplicationQueryResponseData. + :type path: str + """ + self._path = path + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ApplicationQueryResponseData): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/authorizable_ticket_body.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/authorizable_ticket_body.py new file mode 100644 index 0000000000..755d18c911 --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/authorizable_ticket_body.py @@ -0,0 +1,173 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class AuthorizableTicketBody: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'scope_id': 'str', + 'target_id': 'str' + } + + attribute_map = { + 'type': 'type', + 'scope_id': 'scope_id', + 'target_id': 'target_id' + } + + def __init__(self, type=None, scope_id=None, target_id=None): + """AuthorizableTicketBody + + The model defined in huaweicloud sdk + + :param type: 可授权单类型 + :type type: str + :param scope_id: scope ID,一般为region id + :type scope_id: str + :param target_id: 目标 ID,一般为应用id + :type target_id: str + """ + + + + self._type = None + self._scope_id = None + self._target_id = None + self.discriminator = None + + if type is not None: + self.type = type + if scope_id is not None: + self.scope_id = scope_id + if target_id is not None: + self.target_id = target_id + + @property + def type(self): + """Gets the type of this AuthorizableTicketBody. + + 可授权单类型 + + :return: The type of this AuthorizableTicketBody. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this AuthorizableTicketBody. + + 可授权单类型 + + :param type: The type of this AuthorizableTicketBody. + :type type: str + """ + self._type = type + + @property + def scope_id(self): + """Gets the scope_id of this AuthorizableTicketBody. + + scope ID,一般为region id + + :return: The scope_id of this AuthorizableTicketBody. + :rtype: str + """ + return self._scope_id + + @scope_id.setter + def scope_id(self, scope_id): + """Sets the scope_id of this AuthorizableTicketBody. + + scope ID,一般为region id + + :param scope_id: The scope_id of this AuthorizableTicketBody. + :type scope_id: str + """ + self._scope_id = scope_id + + @property + def target_id(self): + """Gets the target_id of this AuthorizableTicketBody. + + 目标 ID,一般为应用id + + :return: The target_id of this AuthorizableTicketBody. + :rtype: str + """ + return self._target_id + + @target_id.setter + def target_id(self, target_id): + """Sets the target_id of this AuthorizableTicketBody. + + 目标 ID,一般为应用id + + :param target_id: The target_id of this AuthorizableTicketBody. + :type target_id: str + """ + self._target_id = target_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, AuthorizableTicketBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/authorize_ticket_common_info.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/authorize_ticket_common_info.py new file mode 100644 index 0000000000..e7333e1bd4 --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/authorize_ticket_common_info.py @@ -0,0 +1,376 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class AuthorizeTicketCommonInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'ticket_id': 'str', + 'target_id': 'str', + 'scope_id': 'str', + 'title': 'str', + 'ticket_type': 'str', + 'owner': 'list[str]', + 'level': 'str', + 'status': 'str', + 'begin_time': 'str', + 'end_time': 'str' + } + + attribute_map = { + 'ticket_id': 'ticket_id', + 'target_id': 'target_id', + 'scope_id': 'scope_id', + 'title': 'title', + 'ticket_type': 'ticket_type', + 'owner': 'owner', + 'level': 'level', + 'status': 'status', + 'begin_time': 'begin_time', + 'end_time': 'end_time' + } + + def __init__(self, ticket_id=None, target_id=None, scope_id=None, title=None, ticket_type=None, owner=None, level=None, status=None, begin_time=None, end_time=None): + """AuthorizeTicketCommonInfo + + The model defined in huaweicloud sdk + + :param ticket_id: 关联单号 + :type ticket_id: str + :param target_id: 目标 ID,一般为应用id + :type target_id: str + :param scope_id: scope ID,一般为region id + :type scope_id: str + :param title: 工单名称 + :type title: str + :param ticket_type: 授权单类型,取值:CHANGE/INCIDENT/WAR_ROOM/ALARM + :type ticket_type: str + :param owner: 当前责任人 + :type owner: list[str] + :param level: 级别 + :type level: str + :param status: 状态,取值:open/close + :type status: str + :param begin_time: 起始时间 + :type begin_time: str + :param end_time: 结束时间 + :type end_time: str + """ + + + + self._ticket_id = None + self._target_id = None + self._scope_id = None + self._title = None + self._ticket_type = None + self._owner = None + self._level = None + self._status = None + self._begin_time = None + self._end_time = None + self.discriminator = None + + if ticket_id is not None: + self.ticket_id = ticket_id + if target_id is not None: + self.target_id = target_id + if scope_id is not None: + self.scope_id = scope_id + if title is not None: + self.title = title + if ticket_type is not None: + self.ticket_type = ticket_type + if owner is not None: + self.owner = owner + if level is not None: + self.level = level + if status is not None: + self.status = status + if begin_time is not None: + self.begin_time = begin_time + if end_time is not None: + self.end_time = end_time + + @property + def ticket_id(self): + """Gets the ticket_id of this AuthorizeTicketCommonInfo. + + 关联单号 + + :return: The ticket_id of this AuthorizeTicketCommonInfo. + :rtype: str + """ + return self._ticket_id + + @ticket_id.setter + def ticket_id(self, ticket_id): + """Sets the ticket_id of this AuthorizeTicketCommonInfo. + + 关联单号 + + :param ticket_id: The ticket_id of this AuthorizeTicketCommonInfo. + :type ticket_id: str + """ + self._ticket_id = ticket_id + + @property + def target_id(self): + """Gets the target_id of this AuthorizeTicketCommonInfo. + + 目标 ID,一般为应用id + + :return: The target_id of this AuthorizeTicketCommonInfo. + :rtype: str + """ + return self._target_id + + @target_id.setter + def target_id(self, target_id): + """Sets the target_id of this AuthorizeTicketCommonInfo. + + 目标 ID,一般为应用id + + :param target_id: The target_id of this AuthorizeTicketCommonInfo. + :type target_id: str + """ + self._target_id = target_id + + @property + def scope_id(self): + """Gets the scope_id of this AuthorizeTicketCommonInfo. + + scope ID,一般为region id + + :return: The scope_id of this AuthorizeTicketCommonInfo. + :rtype: str + """ + return self._scope_id + + @scope_id.setter + def scope_id(self, scope_id): + """Sets the scope_id of this AuthorizeTicketCommonInfo. + + scope ID,一般为region id + + :param scope_id: The scope_id of this AuthorizeTicketCommonInfo. + :type scope_id: str + """ + self._scope_id = scope_id + + @property + def title(self): + """Gets the title of this AuthorizeTicketCommonInfo. + + 工单名称 + + :return: The title of this AuthorizeTicketCommonInfo. + :rtype: str + """ + return self._title + + @title.setter + def title(self, title): + """Sets the title of this AuthorizeTicketCommonInfo. + + 工单名称 + + :param title: The title of this AuthorizeTicketCommonInfo. + :type title: str + """ + self._title = title + + @property + def ticket_type(self): + """Gets the ticket_type of this AuthorizeTicketCommonInfo. + + 授权单类型,取值:CHANGE/INCIDENT/WAR_ROOM/ALARM + + :return: The ticket_type of this AuthorizeTicketCommonInfo. + :rtype: str + """ + return self._ticket_type + + @ticket_type.setter + def ticket_type(self, ticket_type): + """Sets the ticket_type of this AuthorizeTicketCommonInfo. + + 授权单类型,取值:CHANGE/INCIDENT/WAR_ROOM/ALARM + + :param ticket_type: The ticket_type of this AuthorizeTicketCommonInfo. + :type ticket_type: str + """ + self._ticket_type = ticket_type + + @property + def owner(self): + """Gets the owner of this AuthorizeTicketCommonInfo. + + 当前责任人 + + :return: The owner of this AuthorizeTicketCommonInfo. + :rtype: list[str] + """ + return self._owner + + @owner.setter + def owner(self, owner): + """Sets the owner of this AuthorizeTicketCommonInfo. + + 当前责任人 + + :param owner: The owner of this AuthorizeTicketCommonInfo. + :type owner: list[str] + """ + self._owner = owner + + @property + def level(self): + """Gets the level of this AuthorizeTicketCommonInfo. + + 级别 + + :return: The level of this AuthorizeTicketCommonInfo. + :rtype: str + """ + return self._level + + @level.setter + def level(self, level): + """Sets the level of this AuthorizeTicketCommonInfo. + + 级别 + + :param level: The level of this AuthorizeTicketCommonInfo. + :type level: str + """ + self._level = level + + @property + def status(self): + """Gets the status of this AuthorizeTicketCommonInfo. + + 状态,取值:open/close + + :return: The status of this AuthorizeTicketCommonInfo. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this AuthorizeTicketCommonInfo. + + 状态,取值:open/close + + :param status: The status of this AuthorizeTicketCommonInfo. + :type status: str + """ + self._status = status + + @property + def begin_time(self): + """Gets the begin_time of this AuthorizeTicketCommonInfo. + + 起始时间 + + :return: The begin_time of this AuthorizeTicketCommonInfo. + :rtype: str + """ + return self._begin_time + + @begin_time.setter + def begin_time(self, begin_time): + """Sets the begin_time of this AuthorizeTicketCommonInfo. + + 起始时间 + + :param begin_time: The begin_time of this AuthorizeTicketCommonInfo. + :type begin_time: str + """ + self._begin_time = begin_time + + @property + def end_time(self): + """Gets the end_time of this AuthorizeTicketCommonInfo. + + 结束时间 + + :return: The end_time of this AuthorizeTicketCommonInfo. + :rtype: str + """ + return self._end_time + + @end_time.setter + def end_time(self, end_time): + """Sets the end_time of this AuthorizeTicketCommonInfo. + + 结束时间 + + :param end_time: The end_time of this AuthorizeTicketCommonInfo. + :type end_time: str + """ + self._end_time = end_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, AuthorizeTicketCommonInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/authorize_ticket_info.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/authorize_ticket_info.py new file mode 100644 index 0000000000..d0198f4bb6 --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/authorize_ticket_info.py @@ -0,0 +1,376 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class AuthorizeTicketInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'ticket_id': 'str', + 'target_id': 'str', + 'scope_id': 'str', + 'title': 'str', + 'ticket_type': 'str', + 'owner': 'list[str]', + 'level': 'str', + 'status': 'str', + 'begin_time': 'str', + 'end_time': 'str' + } + + attribute_map = { + 'ticket_id': 'ticket_id', + 'target_id': 'target_id', + 'scope_id': 'scope_id', + 'title': 'title', + 'ticket_type': 'ticket_type', + 'owner': 'owner', + 'level': 'level', + 'status': 'status', + 'begin_time': 'begin_time', + 'end_time': 'end_time' + } + + def __init__(self, ticket_id=None, target_id=None, scope_id=None, title=None, ticket_type=None, owner=None, level=None, status=None, begin_time=None, end_time=None): + """AuthorizeTicketInfo + + The model defined in huaweicloud sdk + + :param ticket_id: 关联单号 + :type ticket_id: str + :param target_id: 目标 ID,一般为应用id + :type target_id: str + :param scope_id: scope ID,一般为region id + :type scope_id: str + :param title: 工单名称 + :type title: str + :param ticket_type: 授权单类型,取值:CHANGE/INCIDENT/WAR_ROOM/ALARM + :type ticket_type: str + :param owner: 当前责任人 + :type owner: list[str] + :param level: 级别 + :type level: str + :param status: 状态,取值:open/close + :type status: str + :param begin_time: 起始时间 + :type begin_time: str + :param end_time: 结束时间 + :type end_time: str + """ + + + + self._ticket_id = None + self._target_id = None + self._scope_id = None + self._title = None + self._ticket_type = None + self._owner = None + self._level = None + self._status = None + self._begin_time = None + self._end_time = None + self.discriminator = None + + if ticket_id is not None: + self.ticket_id = ticket_id + if target_id is not None: + self.target_id = target_id + if scope_id is not None: + self.scope_id = scope_id + if title is not None: + self.title = title + if ticket_type is not None: + self.ticket_type = ticket_type + if owner is not None: + self.owner = owner + if level is not None: + self.level = level + if status is not None: + self.status = status + if begin_time is not None: + self.begin_time = begin_time + if end_time is not None: + self.end_time = end_time + + @property + def ticket_id(self): + """Gets the ticket_id of this AuthorizeTicketInfo. + + 关联单号 + + :return: The ticket_id of this AuthorizeTicketInfo. + :rtype: str + """ + return self._ticket_id + + @ticket_id.setter + def ticket_id(self, ticket_id): + """Sets the ticket_id of this AuthorizeTicketInfo. + + 关联单号 + + :param ticket_id: The ticket_id of this AuthorizeTicketInfo. + :type ticket_id: str + """ + self._ticket_id = ticket_id + + @property + def target_id(self): + """Gets the target_id of this AuthorizeTicketInfo. + + 目标 ID,一般为应用id + + :return: The target_id of this AuthorizeTicketInfo. + :rtype: str + """ + return self._target_id + + @target_id.setter + def target_id(self, target_id): + """Sets the target_id of this AuthorizeTicketInfo. + + 目标 ID,一般为应用id + + :param target_id: The target_id of this AuthorizeTicketInfo. + :type target_id: str + """ + self._target_id = target_id + + @property + def scope_id(self): + """Gets the scope_id of this AuthorizeTicketInfo. + + scope ID,一般为region id + + :return: The scope_id of this AuthorizeTicketInfo. + :rtype: str + """ + return self._scope_id + + @scope_id.setter + def scope_id(self, scope_id): + """Sets the scope_id of this AuthorizeTicketInfo. + + scope ID,一般为region id + + :param scope_id: The scope_id of this AuthorizeTicketInfo. + :type scope_id: str + """ + self._scope_id = scope_id + + @property + def title(self): + """Gets the title of this AuthorizeTicketInfo. + + 工单名称 + + :return: The title of this AuthorizeTicketInfo. + :rtype: str + """ + return self._title + + @title.setter + def title(self, title): + """Sets the title of this AuthorizeTicketInfo. + + 工单名称 + + :param title: The title of this AuthorizeTicketInfo. + :type title: str + """ + self._title = title + + @property + def ticket_type(self): + """Gets the ticket_type of this AuthorizeTicketInfo. + + 授权单类型,取值:CHANGE/INCIDENT/WAR_ROOM/ALARM + + :return: The ticket_type of this AuthorizeTicketInfo. + :rtype: str + """ + return self._ticket_type + + @ticket_type.setter + def ticket_type(self, ticket_type): + """Sets the ticket_type of this AuthorizeTicketInfo. + + 授权单类型,取值:CHANGE/INCIDENT/WAR_ROOM/ALARM + + :param ticket_type: The ticket_type of this AuthorizeTicketInfo. + :type ticket_type: str + """ + self._ticket_type = ticket_type + + @property + def owner(self): + """Gets the owner of this AuthorizeTicketInfo. + + 当前责任人 + + :return: The owner of this AuthorizeTicketInfo. + :rtype: list[str] + """ + return self._owner + + @owner.setter + def owner(self, owner): + """Sets the owner of this AuthorizeTicketInfo. + + 当前责任人 + + :param owner: The owner of this AuthorizeTicketInfo. + :type owner: list[str] + """ + self._owner = owner + + @property + def level(self): + """Gets the level of this AuthorizeTicketInfo. + + 级别 + + :return: The level of this AuthorizeTicketInfo. + :rtype: str + """ + return self._level + + @level.setter + def level(self, level): + """Sets the level of this AuthorizeTicketInfo. + + 级别 + + :param level: The level of this AuthorizeTicketInfo. + :type level: str + """ + self._level = level + + @property + def status(self): + """Gets the status of this AuthorizeTicketInfo. + + 状态,取值:open/close + + :return: The status of this AuthorizeTicketInfo. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this AuthorizeTicketInfo. + + 状态,取值:open/close + + :param status: The status of this AuthorizeTicketInfo. + :type status: str + """ + self._status = status + + @property + def begin_time(self): + """Gets the begin_time of this AuthorizeTicketInfo. + + 起始时间 + + :return: The begin_time of this AuthorizeTicketInfo. + :rtype: str + """ + return self._begin_time + + @begin_time.setter + def begin_time(self, begin_time): + """Sets the begin_time of this AuthorizeTicketInfo. + + 起始时间 + + :param begin_time: The begin_time of this AuthorizeTicketInfo. + :type begin_time: str + """ + self._begin_time = begin_time + + @property + def end_time(self): + """Gets the end_time of this AuthorizeTicketInfo. + + 结束时间 + + :return: The end_time of this AuthorizeTicketInfo. + :rtype: str + """ + return self._end_time + + @end_time.setter + def end_time(self, end_time): + """Sets the end_time of this AuthorizeTicketInfo. + + 结束时间 + + :param end_time: The end_time of this AuthorizeTicketInfo. + :type end_time: str + """ + self._end_time = end_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, AuthorizeTicketInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/base_response.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/base_response.py new file mode 100644 index 0000000000..4bd14cdd5a --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/base_response.py @@ -0,0 +1,171 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class BaseResponse: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'provider_code': 'str', + 'error_code': 'str', + 'error_msg': 'str' + } + + attribute_map = { + 'provider_code': 'provider_code', + 'error_code': 'error_code', + 'error_msg': 'error_msg' + } + + def __init__(self, provider_code=None, error_code=None, error_msg=None): + """BaseResponse + + The model defined in huaweicloud sdk + + :param provider_code: 服务标识 + :type provider_code: str + :param error_code: 请求响应代码,范围:0000~9999,正常时取值:0 + :type error_code: str + :param error_msg: 请求响应描述 + :type error_msg: str + """ + + + + self._provider_code = None + self._error_code = None + self._error_msg = None + self.discriminator = None + + self.provider_code = provider_code + self.error_code = error_code + if error_msg is not None: + self.error_msg = error_msg + + @property + def provider_code(self): + """Gets the provider_code of this BaseResponse. + + 服务标识 + + :return: The provider_code of this BaseResponse. + :rtype: str + """ + return self._provider_code + + @provider_code.setter + def provider_code(self, provider_code): + """Sets the provider_code of this BaseResponse. + + 服务标识 + + :param provider_code: The provider_code of this BaseResponse. + :type provider_code: str + """ + self._provider_code = provider_code + + @property + def error_code(self): + """Gets the error_code of this BaseResponse. + + 请求响应代码,范围:0000~9999,正常时取值:0 + + :return: The error_code of this BaseResponse. + :rtype: str + """ + return self._error_code + + @error_code.setter + def error_code(self, error_code): + """Sets the error_code of this BaseResponse. + + 请求响应代码,范围:0000~9999,正常时取值:0 + + :param error_code: The error_code of this BaseResponse. + :type error_code: str + """ + self._error_code = error_code + + @property + def error_msg(self): + """Gets the error_msg of this BaseResponse. + + 请求响应描述 + + :return: The error_msg of this BaseResponse. + :rtype: str + """ + return self._error_msg + + @error_msg.setter + def error_msg(self, error_msg): + """Sets the error_msg of this BaseResponse. + + 请求响应描述 + + :param error_msg: The error_msg of this BaseResponse. + :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, BaseResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/batch_list_resource_response_data.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/batch_list_resource_response_data.py new file mode 100644 index 0000000000..3b90bdc959 --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/batch_list_resource_response_data.py @@ -0,0 +1,492 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class BatchListResourceResponseData: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'resource_id': 'str', + 'name': 'str', + 'provider': 'str', + 'type': 'str', + 'project_id': 'str', + 'region_id': 'str', + 'ep_id': 'str', + 'tags': 'list[Tag]', + 'agent_id': 'str', + 'agent_state': 'str', + 'properties': 'dict(str, object)', + 'ingest_properties': 'dict(str, str)', + 'is_delegated': 'bool' + } + + attribute_map = { + 'id': 'id', + 'resource_id': 'resource_id', + 'name': 'name', + 'provider': 'provider', + 'type': 'type', + 'project_id': 'project_id', + 'region_id': 'region_id', + 'ep_id': 'ep_id', + 'tags': 'tags', + 'agent_id': 'agent_id', + 'agent_state': 'agent_state', + 'properties': 'properties', + 'ingest_properties': 'ingest_properties', + 'is_delegated': 'is_delegated' + } + + def __init__(self, id=None, resource_id=None, name=None, provider=None, type=None, project_id=None, region_id=None, ep_id=None, tags=None, agent_id=None, agent_state=None, properties=None, ingest_properties=None, is_delegated=None): + """BatchListResourceResponseData + + The model defined in huaweicloud sdk + + :param id: CMDB分配的资源ID + :type id: str + :param resource_id: 云服务分配的资源ID + :type resource_id: str + :param name: 资源名称 + :type name: str + :param provider: 云服务名称 + :type provider: str + :param type: 资源类型 + :type type: str + :param project_id: Openstack中的项目I + :type project_id: str + :param region_id: region ID + :type region_id: str + :param ep_id: 企业项目ID + :type ep_id: str + :param tags: 资源标签 + :type tags: list[:class:`huaweicloudsdkcoc.v1.Tag`] + :param agent_id: uniAgent唯一id + :type agent_id: str + :param agent_state: uniAgent状态 + :type agent_state: str + :param properties: 资源详细属性 + :type properties: dict(str, object) + :param ingest_properties: 采集属性 + :type ingest_properties: dict(str, str) + :param is_delegated: 是否已托管 + :type is_delegated: bool + """ + + + + self._id = None + self._resource_id = None + self._name = None + self._provider = None + self._type = None + self._project_id = None + self._region_id = None + self._ep_id = None + self._tags = None + self._agent_id = None + self._agent_state = None + self._properties = None + self._ingest_properties = None + self._is_delegated = None + self.discriminator = None + + if id is not None: + self.id = id + if resource_id is not None: + self.resource_id = resource_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 project_id is not None: + self.project_id = project_id + if region_id is not None: + self.region_id = region_id + if ep_id is not None: + self.ep_id = ep_id + if tags is not None: + self.tags = tags + if agent_id is not None: + self.agent_id = agent_id + if agent_state is not None: + self.agent_state = agent_state + if properties is not None: + self.properties = properties + if ingest_properties is not None: + self.ingest_properties = ingest_properties + if is_delegated is not None: + self.is_delegated = is_delegated + + @property + def id(self): + """Gets the id of this BatchListResourceResponseData. + + CMDB分配的资源ID + + :return: The id of this BatchListResourceResponseData. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this BatchListResourceResponseData. + + CMDB分配的资源ID + + :param id: The id of this BatchListResourceResponseData. + :type id: str + """ + self._id = id + + @property + def resource_id(self): + """Gets the resource_id of this BatchListResourceResponseData. + + 云服务分配的资源ID + + :return: The resource_id of this BatchListResourceResponseData. + :rtype: str + """ + return self._resource_id + + @resource_id.setter + def resource_id(self, resource_id): + """Sets the resource_id of this BatchListResourceResponseData. + + 云服务分配的资源ID + + :param resource_id: The resource_id of this BatchListResourceResponseData. + :type resource_id: str + """ + self._resource_id = resource_id + + @property + def name(self): + """Gets the name of this BatchListResourceResponseData. + + 资源名称 + + :return: The name of this BatchListResourceResponseData. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this BatchListResourceResponseData. + + 资源名称 + + :param name: The name of this BatchListResourceResponseData. + :type name: str + """ + self._name = name + + @property + def provider(self): + """Gets the provider of this BatchListResourceResponseData. + + 云服务名称 + + :return: The provider of this BatchListResourceResponseData. + :rtype: str + """ + return self._provider + + @provider.setter + def provider(self, provider): + """Sets the provider of this BatchListResourceResponseData. + + 云服务名称 + + :param provider: The provider of this BatchListResourceResponseData. + :type provider: str + """ + self._provider = provider + + @property + def type(self): + """Gets the type of this BatchListResourceResponseData. + + 资源类型 + + :return: The type of this BatchListResourceResponseData. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this BatchListResourceResponseData. + + 资源类型 + + :param type: The type of this BatchListResourceResponseData. + :type type: str + """ + self._type = type + + @property + def project_id(self): + """Gets the project_id of this BatchListResourceResponseData. + + Openstack中的项目I + + :return: The project_id of this BatchListResourceResponseData. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this BatchListResourceResponseData. + + Openstack中的项目I + + :param project_id: The project_id of this BatchListResourceResponseData. + :type project_id: str + """ + self._project_id = project_id + + @property + def region_id(self): + """Gets the region_id of this BatchListResourceResponseData. + + region ID + + :return: The region_id of this BatchListResourceResponseData. + :rtype: str + """ + return self._region_id + + @region_id.setter + def region_id(self, region_id): + """Sets the region_id of this BatchListResourceResponseData. + + region ID + + :param region_id: The region_id of this BatchListResourceResponseData. + :type region_id: str + """ + self._region_id = region_id + + @property + def ep_id(self): + """Gets the ep_id of this BatchListResourceResponseData. + + 企业项目ID + + :return: The ep_id of this BatchListResourceResponseData. + :rtype: str + """ + return self._ep_id + + @ep_id.setter + def ep_id(self, ep_id): + """Sets the ep_id of this BatchListResourceResponseData. + + 企业项目ID + + :param ep_id: The ep_id of this BatchListResourceResponseData. + :type ep_id: str + """ + self._ep_id = ep_id + + @property + def tags(self): + """Gets the tags of this BatchListResourceResponseData. + + 资源标签 + + :return: The tags of this BatchListResourceResponseData. + :rtype: list[:class:`huaweicloudsdkcoc.v1.Tag`] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """Sets the tags of this BatchListResourceResponseData. + + 资源标签 + + :param tags: The tags of this BatchListResourceResponseData. + :type tags: list[:class:`huaweicloudsdkcoc.v1.Tag`] + """ + self._tags = tags + + @property + def agent_id(self): + """Gets the agent_id of this BatchListResourceResponseData. + + uniAgent唯一id + + :return: The agent_id of this BatchListResourceResponseData. + :rtype: str + """ + return self._agent_id + + @agent_id.setter + def agent_id(self, agent_id): + """Sets the agent_id of this BatchListResourceResponseData. + + uniAgent唯一id + + :param agent_id: The agent_id of this BatchListResourceResponseData. + :type agent_id: str + """ + self._agent_id = agent_id + + @property + def agent_state(self): + """Gets the agent_state of this BatchListResourceResponseData. + + uniAgent状态 + + :return: The agent_state of this BatchListResourceResponseData. + :rtype: str + """ + return self._agent_state + + @agent_state.setter + def agent_state(self, agent_state): + """Sets the agent_state of this BatchListResourceResponseData. + + uniAgent状态 + + :param agent_state: The agent_state of this BatchListResourceResponseData. + :type agent_state: str + """ + self._agent_state = agent_state + + @property + def properties(self): + """Gets the properties of this BatchListResourceResponseData. + + 资源详细属性 + + :return: The properties of this BatchListResourceResponseData. + :rtype: dict(str, object) + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this BatchListResourceResponseData. + + 资源详细属性 + + :param properties: The properties of this BatchListResourceResponseData. + :type properties: dict(str, object) + """ + self._properties = properties + + @property + def ingest_properties(self): + """Gets the ingest_properties of this BatchListResourceResponseData. + + 采集属性 + + :return: The ingest_properties of this BatchListResourceResponseData. + :rtype: dict(str, str) + """ + return self._ingest_properties + + @ingest_properties.setter + def ingest_properties(self, ingest_properties): + """Sets the ingest_properties of this BatchListResourceResponseData. + + 采集属性 + + :param ingest_properties: The ingest_properties of this BatchListResourceResponseData. + :type ingest_properties: dict(str, str) + """ + self._ingest_properties = ingest_properties + + @property + def is_delegated(self): + """Gets the is_delegated of this BatchListResourceResponseData. + + 是否已托管 + + :return: The is_delegated of this BatchListResourceResponseData. + :rtype: bool + """ + return self._is_delegated + + @is_delegated.setter + def is_delegated(self, is_delegated): + """Sets the is_delegated of this BatchListResourceResponseData. + + 是否已托管 + + :param is_delegated: The is_delegated of this BatchListResourceResponseData. + :type is_delegated: bool + """ + self._is_delegated = is_delegated + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BatchListResourceResponseData): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/coc_issues_ticket_detail_info_response_data.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/coc_issues_ticket_detail_info_response_data.py new file mode 100644 index 0000000000..265b5ca60e --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/coc_issues_ticket_detail_info_response_data.py @@ -0,0 +1,869 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CocIssuesTicketDetailInfoResponseData: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'ticket_type': 'str', + 'level': 'str', + 'impacted_cloud_services': 'str', + 'root_cause_cloud_service': 'str', + 'root_cause_type': 'str', + 'root_cause_comment': 'str', + 'solution': 'str', + 'issue_contact_person': 'str', + 'reproduce_probability': 'str', + 'issue_version': 'str', + 'title': 'str', + 'virtual_schedule_type': 'str', + 'regions': 'str', + 'description': 'str', + 'fount_time': 'int', + 'is_common_issue': 'bool', + 'is_need_change': 'bool', + 'creator': 'str', + 'operator': 'str', + 'ticket_id': 'str', + 'assignee': 'str', + 'work_flow_status': 'str', + 'phase': 'str', + 'update_time': 'int', + 'create_time': 'int', + 'is_deleted': 'bool', + 'enum_data_list': 'list[TicketInfoEnumData]' + } + + attribute_map = { + 'ticket_type': 'ticket_type', + 'level': 'level', + 'impacted_cloud_services': 'impacted_cloud_services', + 'root_cause_cloud_service': 'root_cause_cloud_service', + 'root_cause_type': 'root_cause_type', + 'root_cause_comment': 'root_cause_comment', + 'solution': 'solution', + 'issue_contact_person': 'issue_contact_person', + 'reproduce_probability': 'reproduce_probability', + 'issue_version': 'issue_version', + 'title': 'title', + 'virtual_schedule_type': 'virtual_schedule_type', + 'regions': 'regions', + 'description': 'description', + 'fount_time': 'fount_time', + 'is_common_issue': 'is_common_issue', + 'is_need_change': 'is_need_change', + 'creator': 'creator', + 'operator': 'operator', + 'ticket_id': 'ticket_id', + 'assignee': 'assignee', + 'work_flow_status': 'work_flow_status', + 'phase': 'phase', + 'update_time': 'update_time', + 'create_time': 'create_time', + 'is_deleted': 'is_deleted', + 'enum_data_list': 'enum_data_list' + } + + def __init__(self, ticket_type=None, level=None, impacted_cloud_services=None, root_cause_cloud_service=None, root_cause_type=None, root_cause_comment=None, solution=None, issue_contact_person=None, reproduce_probability=None, issue_version=None, title=None, virtual_schedule_type=None, regions=None, description=None, fount_time=None, is_common_issue=None, is_need_change=None, creator=None, operator=None, ticket_id=None, assignee=None, work_flow_status=None, phase=None, update_time=None, create_time=None, is_deleted=None, enum_data_list=None): + """CocIssuesTicketDetailInfoResponseData + + The model defined in huaweicloud sdk + + :param ticket_type: 问题类型 + :type ticket_type: str + :param level: 问题等级 + :type level: str + :param impacted_cloud_services: 影响服务 + :type impacted_cloud_services: str + :param root_cause_cloud_service: 责任服务 + :type root_cause_cloud_service: str + :param root_cause_type: 根因类型 + :type root_cause_type: str + :param root_cause_comment: 根因分析 + :type root_cause_comment: str + :param solution: 解决方案 + :type solution: str + :param issue_contact_person: 问题接口人id + :type issue_contact_person: str + :param reproduce_probability: 重现概率 + :type reproduce_probability: str + :param issue_version: 发现问题的版本号 + :type issue_version: str + :param title: 问题标题 + :type title: str + :param virtual_schedule_type: 排班类型 + :type virtual_schedule_type: str + :param regions: 区域 + :type regions: str + :param description: 描述 + :type description: str + :param fount_time: 发现时间 + :type fount_time: int + :param is_common_issue: 是否共性问题 + :type is_common_issue: bool + :param is_need_change: 是否需要变更 + :type is_need_change: bool + :param creator: 创建人 + :type creator: str + :param operator: 操作人 + :type operator: str + :param ticket_id: 问题单id + :type ticket_id: str + :param assignee: 责任人 + :type assignee: str + :param work_flow_status: 问题单状态 + :type work_flow_status: str + :param phase: 阶段 + :type phase: str + :param update_time: 更新时间 + :type update_time: int + :param create_time: 创建时间 + :type create_time: int + :param is_deleted: 是否删除 + :type is_deleted: bool + :param enum_data_list: 枚举列表 + :type enum_data_list: list[:class:`huaweicloudsdkcoc.v1.TicketInfoEnumData`] + """ + + + + self._ticket_type = None + self._level = None + self._impacted_cloud_services = None + self._root_cause_cloud_service = None + self._root_cause_type = None + self._root_cause_comment = None + self._solution = None + self._issue_contact_person = None + self._reproduce_probability = None + self._issue_version = None + self._title = None + self._virtual_schedule_type = None + self._regions = None + self._description = None + self._fount_time = None + self._is_common_issue = None + self._is_need_change = None + self._creator = None + self._operator = None + self._ticket_id = None + self._assignee = None + self._work_flow_status = None + self._phase = None + self._update_time = None + self._create_time = None + self._is_deleted = None + self._enum_data_list = None + self.discriminator = None + + if ticket_type is not None: + self.ticket_type = ticket_type + if level is not None: + self.level = level + if impacted_cloud_services is not None: + self.impacted_cloud_services = impacted_cloud_services + if root_cause_cloud_service is not None: + self.root_cause_cloud_service = root_cause_cloud_service + if root_cause_type is not None: + self.root_cause_type = root_cause_type + if root_cause_comment is not None: + self.root_cause_comment = root_cause_comment + if solution is not None: + self.solution = solution + if issue_contact_person is not None: + self.issue_contact_person = issue_contact_person + if reproduce_probability is not None: + self.reproduce_probability = reproduce_probability + if issue_version is not None: + self.issue_version = issue_version + if title is not None: + self.title = title + if virtual_schedule_type is not None: + self.virtual_schedule_type = virtual_schedule_type + if regions is not None: + self.regions = regions + if description is not None: + self.description = description + if fount_time is not None: + self.fount_time = fount_time + if is_common_issue is not None: + self.is_common_issue = is_common_issue + if is_need_change is not None: + self.is_need_change = is_need_change + if creator is not None: + self.creator = creator + if operator is not None: + self.operator = operator + if ticket_id is not None: + self.ticket_id = ticket_id + if assignee is not None: + self.assignee = assignee + if work_flow_status is not None: + self.work_flow_status = work_flow_status + if phase is not None: + self.phase = phase + if update_time is not None: + self.update_time = update_time + if create_time is not None: + self.create_time = create_time + if is_deleted is not None: + self.is_deleted = is_deleted + if enum_data_list is not None: + self.enum_data_list = enum_data_list + + @property + def ticket_type(self): + """Gets the ticket_type of this CocIssuesTicketDetailInfoResponseData. + + 问题类型 + + :return: The ticket_type of this CocIssuesTicketDetailInfoResponseData. + :rtype: str + """ + return self._ticket_type + + @ticket_type.setter + def ticket_type(self, ticket_type): + """Sets the ticket_type of this CocIssuesTicketDetailInfoResponseData. + + 问题类型 + + :param ticket_type: The ticket_type of this CocIssuesTicketDetailInfoResponseData. + :type ticket_type: str + """ + self._ticket_type = ticket_type + + @property + def level(self): + """Gets the level of this CocIssuesTicketDetailInfoResponseData. + + 问题等级 + + :return: The level of this CocIssuesTicketDetailInfoResponseData. + :rtype: str + """ + return self._level + + @level.setter + def level(self, level): + """Sets the level of this CocIssuesTicketDetailInfoResponseData. + + 问题等级 + + :param level: The level of this CocIssuesTicketDetailInfoResponseData. + :type level: str + """ + self._level = level + + @property + def impacted_cloud_services(self): + """Gets the impacted_cloud_services of this CocIssuesTicketDetailInfoResponseData. + + 影响服务 + + :return: The impacted_cloud_services of this CocIssuesTicketDetailInfoResponseData. + :rtype: str + """ + return self._impacted_cloud_services + + @impacted_cloud_services.setter + def impacted_cloud_services(self, impacted_cloud_services): + """Sets the impacted_cloud_services of this CocIssuesTicketDetailInfoResponseData. + + 影响服务 + + :param impacted_cloud_services: The impacted_cloud_services of this CocIssuesTicketDetailInfoResponseData. + :type impacted_cloud_services: str + """ + self._impacted_cloud_services = impacted_cloud_services + + @property + def root_cause_cloud_service(self): + """Gets the root_cause_cloud_service of this CocIssuesTicketDetailInfoResponseData. + + 责任服务 + + :return: The root_cause_cloud_service of this CocIssuesTicketDetailInfoResponseData. + :rtype: str + """ + return self._root_cause_cloud_service + + @root_cause_cloud_service.setter + def root_cause_cloud_service(self, root_cause_cloud_service): + """Sets the root_cause_cloud_service of this CocIssuesTicketDetailInfoResponseData. + + 责任服务 + + :param root_cause_cloud_service: The root_cause_cloud_service of this CocIssuesTicketDetailInfoResponseData. + :type root_cause_cloud_service: str + """ + self._root_cause_cloud_service = root_cause_cloud_service + + @property + def root_cause_type(self): + """Gets the root_cause_type of this CocIssuesTicketDetailInfoResponseData. + + 根因类型 + + :return: The root_cause_type of this CocIssuesTicketDetailInfoResponseData. + :rtype: str + """ + return self._root_cause_type + + @root_cause_type.setter + def root_cause_type(self, root_cause_type): + """Sets the root_cause_type of this CocIssuesTicketDetailInfoResponseData. + + 根因类型 + + :param root_cause_type: The root_cause_type of this CocIssuesTicketDetailInfoResponseData. + :type root_cause_type: str + """ + self._root_cause_type = root_cause_type + + @property + def root_cause_comment(self): + """Gets the root_cause_comment of this CocIssuesTicketDetailInfoResponseData. + + 根因分析 + + :return: The root_cause_comment of this CocIssuesTicketDetailInfoResponseData. + :rtype: str + """ + return self._root_cause_comment + + @root_cause_comment.setter + def root_cause_comment(self, root_cause_comment): + """Sets the root_cause_comment of this CocIssuesTicketDetailInfoResponseData. + + 根因分析 + + :param root_cause_comment: The root_cause_comment of this CocIssuesTicketDetailInfoResponseData. + :type root_cause_comment: str + """ + self._root_cause_comment = root_cause_comment + + @property + def solution(self): + """Gets the solution of this CocIssuesTicketDetailInfoResponseData. + + 解决方案 + + :return: The solution of this CocIssuesTicketDetailInfoResponseData. + :rtype: str + """ + return self._solution + + @solution.setter + def solution(self, solution): + """Sets the solution of this CocIssuesTicketDetailInfoResponseData. + + 解决方案 + + :param solution: The solution of this CocIssuesTicketDetailInfoResponseData. + :type solution: str + """ + self._solution = solution + + @property + def issue_contact_person(self): + """Gets the issue_contact_person of this CocIssuesTicketDetailInfoResponseData. + + 问题接口人id + + :return: The issue_contact_person of this CocIssuesTicketDetailInfoResponseData. + :rtype: str + """ + return self._issue_contact_person + + @issue_contact_person.setter + def issue_contact_person(self, issue_contact_person): + """Sets the issue_contact_person of this CocIssuesTicketDetailInfoResponseData. + + 问题接口人id + + :param issue_contact_person: The issue_contact_person of this CocIssuesTicketDetailInfoResponseData. + :type issue_contact_person: str + """ + self._issue_contact_person = issue_contact_person + + @property + def reproduce_probability(self): + """Gets the reproduce_probability of this CocIssuesTicketDetailInfoResponseData. + + 重现概率 + + :return: The reproduce_probability of this CocIssuesTicketDetailInfoResponseData. + :rtype: str + """ + return self._reproduce_probability + + @reproduce_probability.setter + def reproduce_probability(self, reproduce_probability): + """Sets the reproduce_probability of this CocIssuesTicketDetailInfoResponseData. + + 重现概率 + + :param reproduce_probability: The reproduce_probability of this CocIssuesTicketDetailInfoResponseData. + :type reproduce_probability: str + """ + self._reproduce_probability = reproduce_probability + + @property + def issue_version(self): + """Gets the issue_version of this CocIssuesTicketDetailInfoResponseData. + + 发现问题的版本号 + + :return: The issue_version of this CocIssuesTicketDetailInfoResponseData. + :rtype: str + """ + return self._issue_version + + @issue_version.setter + def issue_version(self, issue_version): + """Sets the issue_version of this CocIssuesTicketDetailInfoResponseData. + + 发现问题的版本号 + + :param issue_version: The issue_version of this CocIssuesTicketDetailInfoResponseData. + :type issue_version: str + """ + self._issue_version = issue_version + + @property + def title(self): + """Gets the title of this CocIssuesTicketDetailInfoResponseData. + + 问题标题 + + :return: The title of this CocIssuesTicketDetailInfoResponseData. + :rtype: str + """ + return self._title + + @title.setter + def title(self, title): + """Sets the title of this CocIssuesTicketDetailInfoResponseData. + + 问题标题 + + :param title: The title of this CocIssuesTicketDetailInfoResponseData. + :type title: str + """ + self._title = title + + @property + def virtual_schedule_type(self): + """Gets the virtual_schedule_type of this CocIssuesTicketDetailInfoResponseData. + + 排班类型 + + :return: The virtual_schedule_type of this CocIssuesTicketDetailInfoResponseData. + :rtype: str + """ + return self._virtual_schedule_type + + @virtual_schedule_type.setter + def virtual_schedule_type(self, virtual_schedule_type): + """Sets the virtual_schedule_type of this CocIssuesTicketDetailInfoResponseData. + + 排班类型 + + :param virtual_schedule_type: The virtual_schedule_type of this CocIssuesTicketDetailInfoResponseData. + :type virtual_schedule_type: str + """ + self._virtual_schedule_type = virtual_schedule_type + + @property + def regions(self): + """Gets the regions of this CocIssuesTicketDetailInfoResponseData. + + 区域 + + :return: The regions of this CocIssuesTicketDetailInfoResponseData. + :rtype: str + """ + return self._regions + + @regions.setter + def regions(self, regions): + """Sets the regions of this CocIssuesTicketDetailInfoResponseData. + + 区域 + + :param regions: The regions of this CocIssuesTicketDetailInfoResponseData. + :type regions: str + """ + self._regions = regions + + @property + def description(self): + """Gets the description of this CocIssuesTicketDetailInfoResponseData. + + 描述 + + :return: The description of this CocIssuesTicketDetailInfoResponseData. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this CocIssuesTicketDetailInfoResponseData. + + 描述 + + :param description: The description of this CocIssuesTicketDetailInfoResponseData. + :type description: str + """ + self._description = description + + @property + def fount_time(self): + """Gets the fount_time of this CocIssuesTicketDetailInfoResponseData. + + 发现时间 + + :return: The fount_time of this CocIssuesTicketDetailInfoResponseData. + :rtype: int + """ + return self._fount_time + + @fount_time.setter + def fount_time(self, fount_time): + """Sets the fount_time of this CocIssuesTicketDetailInfoResponseData. + + 发现时间 + + :param fount_time: The fount_time of this CocIssuesTicketDetailInfoResponseData. + :type fount_time: int + """ + self._fount_time = fount_time + + @property + def is_common_issue(self): + """Gets the is_common_issue of this CocIssuesTicketDetailInfoResponseData. + + 是否共性问题 + + :return: The is_common_issue of this CocIssuesTicketDetailInfoResponseData. + :rtype: bool + """ + return self._is_common_issue + + @is_common_issue.setter + def is_common_issue(self, is_common_issue): + """Sets the is_common_issue of this CocIssuesTicketDetailInfoResponseData. + + 是否共性问题 + + :param is_common_issue: The is_common_issue of this CocIssuesTicketDetailInfoResponseData. + :type is_common_issue: bool + """ + self._is_common_issue = is_common_issue + + @property + def is_need_change(self): + """Gets the is_need_change of this CocIssuesTicketDetailInfoResponseData. + + 是否需要变更 + + :return: The is_need_change of this CocIssuesTicketDetailInfoResponseData. + :rtype: bool + """ + return self._is_need_change + + @is_need_change.setter + def is_need_change(self, is_need_change): + """Sets the is_need_change of this CocIssuesTicketDetailInfoResponseData. + + 是否需要变更 + + :param is_need_change: The is_need_change of this CocIssuesTicketDetailInfoResponseData. + :type is_need_change: bool + """ + self._is_need_change = is_need_change + + @property + def creator(self): + """Gets the creator of this CocIssuesTicketDetailInfoResponseData. + + 创建人 + + :return: The creator of this CocIssuesTicketDetailInfoResponseData. + :rtype: str + """ + return self._creator + + @creator.setter + def creator(self, creator): + """Sets the creator of this CocIssuesTicketDetailInfoResponseData. + + 创建人 + + :param creator: The creator of this CocIssuesTicketDetailInfoResponseData. + :type creator: str + """ + self._creator = creator + + @property + def operator(self): + """Gets the operator of this CocIssuesTicketDetailInfoResponseData. + + 操作人 + + :return: The operator of this CocIssuesTicketDetailInfoResponseData. + :rtype: str + """ + return self._operator + + @operator.setter + def operator(self, operator): + """Sets the operator of this CocIssuesTicketDetailInfoResponseData. + + 操作人 + + :param operator: The operator of this CocIssuesTicketDetailInfoResponseData. + :type operator: str + """ + self._operator = operator + + @property + def ticket_id(self): + """Gets the ticket_id of this CocIssuesTicketDetailInfoResponseData. + + 问题单id + + :return: The ticket_id of this CocIssuesTicketDetailInfoResponseData. + :rtype: str + """ + return self._ticket_id + + @ticket_id.setter + def ticket_id(self, ticket_id): + """Sets the ticket_id of this CocIssuesTicketDetailInfoResponseData. + + 问题单id + + :param ticket_id: The ticket_id of this CocIssuesTicketDetailInfoResponseData. + :type ticket_id: str + """ + self._ticket_id = ticket_id + + @property + def assignee(self): + """Gets the assignee of this CocIssuesTicketDetailInfoResponseData. + + 责任人 + + :return: The assignee of this CocIssuesTicketDetailInfoResponseData. + :rtype: str + """ + return self._assignee + + @assignee.setter + def assignee(self, assignee): + """Sets the assignee of this CocIssuesTicketDetailInfoResponseData. + + 责任人 + + :param assignee: The assignee of this CocIssuesTicketDetailInfoResponseData. + :type assignee: str + """ + self._assignee = assignee + + @property + def work_flow_status(self): + """Gets the work_flow_status of this CocIssuesTicketDetailInfoResponseData. + + 问题单状态 + + :return: The work_flow_status of this CocIssuesTicketDetailInfoResponseData. + :rtype: str + """ + return self._work_flow_status + + @work_flow_status.setter + def work_flow_status(self, work_flow_status): + """Sets the work_flow_status of this CocIssuesTicketDetailInfoResponseData. + + 问题单状态 + + :param work_flow_status: The work_flow_status of this CocIssuesTicketDetailInfoResponseData. + :type work_flow_status: str + """ + self._work_flow_status = work_flow_status + + @property + def phase(self): + """Gets the phase of this CocIssuesTicketDetailInfoResponseData. + + 阶段 + + :return: The phase of this CocIssuesTicketDetailInfoResponseData. + :rtype: str + """ + return self._phase + + @phase.setter + def phase(self, phase): + """Sets the phase of this CocIssuesTicketDetailInfoResponseData. + + 阶段 + + :param phase: The phase of this CocIssuesTicketDetailInfoResponseData. + :type phase: str + """ + self._phase = phase + + @property + def update_time(self): + """Gets the update_time of this CocIssuesTicketDetailInfoResponseData. + + 更新时间 + + :return: The update_time of this CocIssuesTicketDetailInfoResponseData. + :rtype: int + """ + return self._update_time + + @update_time.setter + def update_time(self, update_time): + """Sets the update_time of this CocIssuesTicketDetailInfoResponseData. + + 更新时间 + + :param update_time: The update_time of this CocIssuesTicketDetailInfoResponseData. + :type update_time: int + """ + self._update_time = update_time + + @property + def create_time(self): + """Gets the create_time of this CocIssuesTicketDetailInfoResponseData. + + 创建时间 + + :return: The create_time of this CocIssuesTicketDetailInfoResponseData. + :rtype: int + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this CocIssuesTicketDetailInfoResponseData. + + 创建时间 + + :param create_time: The create_time of this CocIssuesTicketDetailInfoResponseData. + :type create_time: int + """ + self._create_time = create_time + + @property + def is_deleted(self): + """Gets the is_deleted of this CocIssuesTicketDetailInfoResponseData. + + 是否删除 + + :return: The is_deleted of this CocIssuesTicketDetailInfoResponseData. + :rtype: bool + """ + return self._is_deleted + + @is_deleted.setter + def is_deleted(self, is_deleted): + """Sets the is_deleted of this CocIssuesTicketDetailInfoResponseData. + + 是否删除 + + :param is_deleted: The is_deleted of this CocIssuesTicketDetailInfoResponseData. + :type is_deleted: bool + """ + self._is_deleted = is_deleted + + @property + def enum_data_list(self): + """Gets the enum_data_list of this CocIssuesTicketDetailInfoResponseData. + + 枚举列表 + + :return: The enum_data_list of this CocIssuesTicketDetailInfoResponseData. + :rtype: list[:class:`huaweicloudsdkcoc.v1.TicketInfoEnumData`] + """ + return self._enum_data_list + + @enum_data_list.setter + def enum_data_list(self, enum_data_list): + """Sets the enum_data_list of this CocIssuesTicketDetailInfoResponseData. + + 枚举列表 + + :param enum_data_list: The enum_data_list of this CocIssuesTicketDetailInfoResponseData. + :type enum_data_list: list[:class:`huaweicloudsdkcoc.v1.TicketInfoEnumData`] + """ + self._enum_data_list = enum_data_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, CocIssuesTicketDetailInfoResponseData): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/compliance_item.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/compliance_item.py new file mode 100644 index 0000000000..f25305294b --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/compliance_item.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ComplianceItem: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'title': 'str', + 'classification': 'str', + 'severity_level': 'str', + 'compliance_level': 'str', + 'patch_detail': 'PatchDetail' + } + + attribute_map = { + 'instance_id': 'instance_id', + 'title': 'title', + 'classification': 'classification', + 'severity_level': 'severity_level', + 'compliance_level': 'compliance_level', + 'patch_detail': 'patch_detail' + } + + def __init__(self, instance_id=None, title=None, classification=None, severity_level=None, compliance_level=None, patch_detail=None): + """ComplianceItem + + The model defined in huaweicloud sdk + + :param instance_id: 节点id + :type instance_id: str + :param title: 补丁名称 + :type title: str + :param classification: 分类 + :type classification: str + :param severity_level: 严重性级别 + :type severity_level: str + :param compliance_level: 合规性级别 + :type compliance_level: str + :param patch_detail: + :type patch_detail: :class:`huaweicloudsdkcoc.v1.PatchDetail` + """ + + + + self._instance_id = None + self._title = None + self._classification = None + self._severity_level = None + self._compliance_level = None + self._patch_detail = None + self.discriminator = None + + if instance_id is not None: + self.instance_id = instance_id + if title is not None: + self.title = title + if classification is not None: + self.classification = classification + if severity_level is not None: + self.severity_level = severity_level + if compliance_level is not None: + self.compliance_level = compliance_level + if patch_detail is not None: + self.patch_detail = patch_detail + + @property + def instance_id(self): + """Gets the instance_id of this ComplianceItem. + + 节点id + + :return: The instance_id of this ComplianceItem. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this ComplianceItem. + + 节点id + + :param instance_id: The instance_id of this ComplianceItem. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def title(self): + """Gets the title of this ComplianceItem. + + 补丁名称 + + :return: The title of this ComplianceItem. + :rtype: str + """ + return self._title + + @title.setter + def title(self, title): + """Sets the title of this ComplianceItem. + + 补丁名称 + + :param title: The title of this ComplianceItem. + :type title: str + """ + self._title = title + + @property + def classification(self): + """Gets the classification of this ComplianceItem. + + 分类 + + :return: The classification of this ComplianceItem. + :rtype: str + """ + return self._classification + + @classification.setter + def classification(self, classification): + """Sets the classification of this ComplianceItem. + + 分类 + + :param classification: The classification of this ComplianceItem. + :type classification: str + """ + self._classification = classification + + @property + def severity_level(self): + """Gets the severity_level of this ComplianceItem. + + 严重性级别 + + :return: The severity_level of this ComplianceItem. + :rtype: str + """ + return self._severity_level + + @severity_level.setter + def severity_level(self, severity_level): + """Sets the severity_level of this ComplianceItem. + + 严重性级别 + + :param severity_level: The severity_level of this ComplianceItem. + :type severity_level: str + """ + self._severity_level = severity_level + + @property + def compliance_level(self): + """Gets the compliance_level of this ComplianceItem. + + 合规性级别 + + :return: The compliance_level of this ComplianceItem. + :rtype: str + """ + return self._compliance_level + + @compliance_level.setter + def compliance_level(self, compliance_level): + """Sets the compliance_level of this ComplianceItem. + + 合规性级别 + + :param compliance_level: The compliance_level of this ComplianceItem. + :type compliance_level: str + """ + self._compliance_level = compliance_level + + @property + def patch_detail(self): + """Gets the patch_detail of this ComplianceItem. + + :return: The patch_detail of this ComplianceItem. + :rtype: :class:`huaweicloudsdkcoc.v1.PatchDetail` + """ + return self._patch_detail + + @patch_detail.setter + def patch_detail(self, patch_detail): + """Sets the patch_detail of this ComplianceItem. + + :param patch_detail: The patch_detail of this ComplianceItem. + :type patch_detail: :class:`huaweicloudsdkcoc.v1.PatchDetail` + """ + self._patch_detail = patch_detail + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComplianceItem): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/compliant_summary.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/compliant_summary.py new file mode 100644 index 0000000000..7a3e7256d3 --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/compliant_summary.py @@ -0,0 +1,140 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CompliantSummary: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'compliant_count': 'int', + 'severity_summary': 'SeveritySummary' + } + + attribute_map = { + 'compliant_count': 'compliant_count', + 'severity_summary': 'severity_summary' + } + + def __init__(self, compliant_count=None, severity_summary=None): + """CompliantSummary + + The model defined in huaweicloud sdk + + :param compliant_count: 合规补丁数量 + :type compliant_count: int + :param severity_summary: + :type severity_summary: :class:`huaweicloudsdkcoc.v1.SeveritySummary` + """ + + + + self._compliant_count = None + self._severity_summary = None + self.discriminator = None + + if compliant_count is not None: + self.compliant_count = compliant_count + if severity_summary is not None: + self.severity_summary = severity_summary + + @property + def compliant_count(self): + """Gets the compliant_count of this CompliantSummary. + + 合规补丁数量 + + :return: The compliant_count of this CompliantSummary. + :rtype: int + """ + return self._compliant_count + + @compliant_count.setter + def compliant_count(self, compliant_count): + """Sets the compliant_count of this CompliantSummary. + + 合规补丁数量 + + :param compliant_count: The compliant_count of this CompliantSummary. + :type compliant_count: int + """ + self._compliant_count = compliant_count + + @property + def severity_summary(self): + """Gets the severity_summary of this CompliantSummary. + + :return: The severity_summary of this CompliantSummary. + :rtype: :class:`huaweicloudsdkcoc.v1.SeveritySummary` + """ + return self._severity_summary + + @severity_summary.setter + def severity_summary(self, severity_summary): + """Sets the severity_summary of this CompliantSummary. + + :param severity_summary: The severity_summary of this CompliantSummary. + :type severity_summary: :class:`huaweicloudsdkcoc.v1.SeveritySummary` + """ + self._severity_summary = severity_summary + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CompliantSummary): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/create_coc_incident_request.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/create_coc_incident_request.py new file mode 100644 index 0000000000..b9e92724c2 --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/create_coc_incident_request.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateCocIncidentRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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': 'CreateExternalIncidentRequest' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """CreateCocIncidentRequest + + The model defined in huaweicloud sdk + + :param body: Body of the CreateCocIncidentRequest + :type body: :class:`huaweicloudsdkcoc.v1.CreateExternalIncidentRequest` + """ + + + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this CreateCocIncidentRequest. + + :return: The body of this CreateCocIncidentRequest. + :rtype: :class:`huaweicloudsdkcoc.v1.CreateExternalIncidentRequest` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateCocIncidentRequest. + + :param body: The body of this CreateCocIncidentRequest. + :type body: :class:`huaweicloudsdkcoc.v1.CreateExternalIncidentRequest` + """ + 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, CreateCocIncidentRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/create_coc_incident_response.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/create_coc_incident_response.py new file mode 100644 index 0000000000..f323b0a32d --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/create_coc_incident_response.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateCocIncidentResponse(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 = { + 'provider_code': 'str', + 'error_code': 'str', + 'error_msg': 'str', + 'data': 'CreateExternalIncidentResponseData' + } + + attribute_map = { + 'provider_code': 'provider_code', + 'error_code': 'error_code', + 'error_msg': 'error_msg', + 'data': 'data' + } + + def __init__(self, provider_code=None, error_code=None, error_msg=None, data=None): + """CreateCocIncidentResponse + + The model defined in huaweicloud sdk + + :param provider_code: 服务标识 + :type provider_code: str + :param error_code: 请求响应代码,范围:0000~9999,正常时取值:0 + :type error_code: str + :param error_msg: 请求响应描述 + :type error_msg: str + :param data: + :type data: :class:`huaweicloudsdkcoc.v1.CreateExternalIncidentResponseData` + """ + + super(CreateCocIncidentResponse, self).__init__() + + self._provider_code = None + self._error_code = None + self._error_msg = None + self._data = None + self.discriminator = None + + self.provider_code = provider_code + self.error_code = error_code + if error_msg is not None: + self.error_msg = error_msg + if data is not None: + self.data = data + + @property + def provider_code(self): + """Gets the provider_code of this CreateCocIncidentResponse. + + 服务标识 + + :return: The provider_code of this CreateCocIncidentResponse. + :rtype: str + """ + return self._provider_code + + @provider_code.setter + def provider_code(self, provider_code): + """Sets the provider_code of this CreateCocIncidentResponse. + + 服务标识 + + :param provider_code: The provider_code of this CreateCocIncidentResponse. + :type provider_code: str + """ + self._provider_code = provider_code + + @property + def error_code(self): + """Gets the error_code of this CreateCocIncidentResponse. + + 请求响应代码,范围:0000~9999,正常时取值:0 + + :return: The error_code of this CreateCocIncidentResponse. + :rtype: str + """ + return self._error_code + + @error_code.setter + def error_code(self, error_code): + """Sets the error_code of this CreateCocIncidentResponse. + + 请求响应代码,范围:0000~9999,正常时取值:0 + + :param error_code: The error_code of this CreateCocIncidentResponse. + :type error_code: str + """ + self._error_code = error_code + + @property + def error_msg(self): + """Gets the error_msg of this CreateCocIncidentResponse. + + 请求响应描述 + + :return: The error_msg of this CreateCocIncidentResponse. + :rtype: str + """ + return self._error_msg + + @error_msg.setter + def error_msg(self, error_msg): + """Sets the error_msg of this CreateCocIncidentResponse. + + 请求响应描述 + + :param error_msg: The error_msg of this CreateCocIncidentResponse. + :type error_msg: str + """ + self._error_msg = error_msg + + @property + def data(self): + """Gets the data of this CreateCocIncidentResponse. + + :return: The data of this CreateCocIncidentResponse. + :rtype: :class:`huaweicloudsdkcoc.v1.CreateExternalIncidentResponseData` + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this CreateCocIncidentResponse. + + :param data: The data of this CreateCocIncidentResponse. + :type data: :class:`huaweicloudsdkcoc.v1.CreateExternalIncidentResponseData` + """ + 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, CreateCocIncidentResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/create_coc_issues_request.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/create_coc_issues_request.py new file mode 100644 index 0000000000..523b2bd28b --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/create_coc_issues_request.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateCocIssuesRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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': 'CreateExternalIssuesRequest' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """CreateCocIssuesRequest + + The model defined in huaweicloud sdk + + :param body: Body of the CreateCocIssuesRequest + :type body: :class:`huaweicloudsdkcoc.v1.CreateExternalIssuesRequest` + """ + + + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this CreateCocIssuesRequest. + + :return: The body of this CreateCocIssuesRequest. + :rtype: :class:`huaweicloudsdkcoc.v1.CreateExternalIssuesRequest` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateCocIssuesRequest. + + :param body: The body of this CreateCocIssuesRequest. + :type body: :class:`huaweicloudsdkcoc.v1.CreateExternalIssuesRequest` + """ + 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, CreateCocIssuesRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/create_coc_issues_response.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/create_coc_issues_response.py new file mode 100644 index 0000000000..5930b4ea29 --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/create_coc_issues_response.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateCocIssuesResponse(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 = { + 'provider_code': 'str', + 'error_code': 'str', + 'error_msg': 'str', + 'data': 'CreateExternalIssuesResponseData' + } + + attribute_map = { + 'provider_code': 'provider_code', + 'error_code': 'error_code', + 'error_msg': 'error_msg', + 'data': 'data' + } + + def __init__(self, provider_code=None, error_code=None, error_msg=None, data=None): + """CreateCocIssuesResponse + + The model defined in huaweicloud sdk + + :param provider_code: 服务标识 + :type provider_code: str + :param error_code: 请求响应代码,范围:0000~9999,正常时取值:0 + :type error_code: str + :param error_msg: 请求响应描述 + :type error_msg: str + :param data: + :type data: :class:`huaweicloudsdkcoc.v1.CreateExternalIssuesResponseData` + """ + + super(CreateCocIssuesResponse, self).__init__() + + self._provider_code = None + self._error_code = None + self._error_msg = None + self._data = None + self.discriminator = None + + self.provider_code = provider_code + self.error_code = error_code + if error_msg is not None: + self.error_msg = error_msg + if data is not None: + self.data = data + + @property + def provider_code(self): + """Gets the provider_code of this CreateCocIssuesResponse. + + 服务标识 + + :return: The provider_code of this CreateCocIssuesResponse. + :rtype: str + """ + return self._provider_code + + @provider_code.setter + def provider_code(self, provider_code): + """Sets the provider_code of this CreateCocIssuesResponse. + + 服务标识 + + :param provider_code: The provider_code of this CreateCocIssuesResponse. + :type provider_code: str + """ + self._provider_code = provider_code + + @property + def error_code(self): + """Gets the error_code of this CreateCocIssuesResponse. + + 请求响应代码,范围:0000~9999,正常时取值:0 + + :return: The error_code of this CreateCocIssuesResponse. + :rtype: str + """ + return self._error_code + + @error_code.setter + def error_code(self, error_code): + """Sets the error_code of this CreateCocIssuesResponse. + + 请求响应代码,范围:0000~9999,正常时取值:0 + + :param error_code: The error_code of this CreateCocIssuesResponse. + :type error_code: str + """ + self._error_code = error_code + + @property + def error_msg(self): + """Gets the error_msg of this CreateCocIssuesResponse. + + 请求响应描述 + + :return: The error_msg of this CreateCocIssuesResponse. + :rtype: str + """ + return self._error_msg + + @error_msg.setter + def error_msg(self, error_msg): + """Sets the error_msg of this CreateCocIssuesResponse. + + 请求响应描述 + + :param error_msg: The error_msg of this CreateCocIssuesResponse. + :type error_msg: str + """ + self._error_msg = error_msg + + @property + def data(self): + """Gets the data of this CreateCocIssuesResponse. + + :return: The data of this CreateCocIssuesResponse. + :rtype: :class:`huaweicloudsdkcoc.v1.CreateExternalIssuesResponseData` + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this CreateCocIssuesResponse. + + :param data: The data of this CreateCocIssuesResponse. + :type data: :class:`huaweicloudsdkcoc.v1.CreateExternalIssuesResponseData` + """ + 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, CreateCocIssuesResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/create_external_incident_request.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/create_external_incident_request.py new file mode 100644 index 0000000000..77bd73aef1 --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/create_external_incident_request.py @@ -0,0 +1,457 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateExternalIncidentRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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': 'list[str]', + 'enterprise_project': 'list[str]', + 'current_cloud_service': 'list[str]', + 'incident_level': 'str', + 'is_service_interrupt': 'bool', + 'incident_type': 'str', + 'incident_title': 'str', + 'incident_description': 'str', + 'incident_source': 'str', + 'incident_assignee': 'list[str]', + 'assignee_scene': 'str', + 'assignee_role': 'str', + 'creator': 'str' + } + + attribute_map = { + 'region': 'region', + 'enterprise_project': 'enterprise_project', + 'current_cloud_service': 'current_cloud_service', + 'incident_level': 'incident_level', + 'is_service_interrupt': 'is_service_interrupt', + 'incident_type': 'incident_type', + 'incident_title': 'incident_title', + 'incident_description': 'incident_description', + 'incident_source': 'incident_source', + 'incident_assignee': 'incident_assignee', + 'assignee_scene': 'assignee_scene', + 'assignee_role': 'assignee_role', + 'creator': 'creator' + } + + def __init__(self, region=None, enterprise_project=None, current_cloud_service=None, incident_level=None, is_service_interrupt=None, incident_type=None, incident_title=None, incident_description=None, incident_source=None, incident_assignee=None, assignee_scene=None, assignee_role=None, creator=None): + """CreateExternalIncidentRequest + + The model defined in huaweicloud sdk + + :param region: 区域Code,如果自动拉起WarRoom则为必填,现在只支持1个 + :type region: list[str] + :param enterprise_project: 企业项目ID,现在只支持1个 + :type enterprise_project: list[str] + :param current_cloud_service: 归属应用ID,现在只支持1个 + :type current_cloud_service: list[str] + :param incident_level: 事件级别 参考:枚举 事件级别incident_level + :type incident_level: str + :param is_service_interrupt: 业务是否中断,取值:true/false + :type is_service_interrupt: bool + :param incident_type: 事件类别 参考:枚举 事件类别incident_type + :type incident_type: str + :param incident_title: 事件标题,最大长度:200 + :type incident_title: str + :param incident_description: 事件描述,最大长度:600 + :type incident_description: str + :param incident_source: 单据来源 参考:枚举 事件来源incident_source + :type incident_source: str + :param incident_assignee: 责任人,排班场景和排班角色不能同时为空,现在只支持1个 + :type incident_assignee: list[str] + :param assignee_scene: 排班场景,责任人和排班角色不能同时为空 + :type assignee_scene: str + :param assignee_role: 排班角色,排班场景和责任人不能同时为空 + :type assignee_role: str + :param creator: 创单人 + :type creator: str + """ + + + + self._region = None + self._enterprise_project = None + self._current_cloud_service = None + self._incident_level = None + self._is_service_interrupt = None + self._incident_type = None + self._incident_title = None + self._incident_description = None + self._incident_source = None + self._incident_assignee = None + self._assignee_scene = None + self._assignee_role = None + self._creator = None + self.discriminator = None + + if region is not None: + self.region = region + if enterprise_project is not None: + self.enterprise_project = enterprise_project + if current_cloud_service is not None: + self.current_cloud_service = current_cloud_service + self.incident_level = incident_level + self.is_service_interrupt = is_service_interrupt + self.incident_type = incident_type + self.incident_title = incident_title + if incident_description is not None: + self.incident_description = incident_description + self.incident_source = incident_source + if incident_assignee is not None: + self.incident_assignee = incident_assignee + if assignee_scene is not None: + self.assignee_scene = assignee_scene + if assignee_role is not None: + self.assignee_role = assignee_role + self.creator = creator + + @property + def region(self): + """Gets the region of this CreateExternalIncidentRequest. + + 区域Code,如果自动拉起WarRoom则为必填,现在只支持1个 + + :return: The region of this CreateExternalIncidentRequest. + :rtype: list[str] + """ + return self._region + + @region.setter + def region(self, region): + """Sets the region of this CreateExternalIncidentRequest. + + 区域Code,如果自动拉起WarRoom则为必填,现在只支持1个 + + :param region: The region of this CreateExternalIncidentRequest. + :type region: list[str] + """ + self._region = region + + @property + def enterprise_project(self): + """Gets the enterprise_project of this CreateExternalIncidentRequest. + + 企业项目ID,现在只支持1个 + + :return: The enterprise_project of this CreateExternalIncidentRequest. + :rtype: list[str] + """ + return self._enterprise_project + + @enterprise_project.setter + def enterprise_project(self, enterprise_project): + """Sets the enterprise_project of this CreateExternalIncidentRequest. + + 企业项目ID,现在只支持1个 + + :param enterprise_project: The enterprise_project of this CreateExternalIncidentRequest. + :type enterprise_project: list[str] + """ + self._enterprise_project = enterprise_project + + @property + def current_cloud_service(self): + """Gets the current_cloud_service of this CreateExternalIncidentRequest. + + 归属应用ID,现在只支持1个 + + :return: The current_cloud_service of this CreateExternalIncidentRequest. + :rtype: list[str] + """ + return self._current_cloud_service + + @current_cloud_service.setter + def current_cloud_service(self, current_cloud_service): + """Sets the current_cloud_service of this CreateExternalIncidentRequest. + + 归属应用ID,现在只支持1个 + + :param current_cloud_service: The current_cloud_service of this CreateExternalIncidentRequest. + :type current_cloud_service: list[str] + """ + self._current_cloud_service = current_cloud_service + + @property + def incident_level(self): + """Gets the incident_level of this CreateExternalIncidentRequest. + + 事件级别 参考:枚举 事件级别incident_level + + :return: The incident_level of this CreateExternalIncidentRequest. + :rtype: str + """ + return self._incident_level + + @incident_level.setter + def incident_level(self, incident_level): + """Sets the incident_level of this CreateExternalIncidentRequest. + + 事件级别 参考:枚举 事件级别incident_level + + :param incident_level: The incident_level of this CreateExternalIncidentRequest. + :type incident_level: str + """ + self._incident_level = incident_level + + @property + def is_service_interrupt(self): + """Gets the is_service_interrupt of this CreateExternalIncidentRequest. + + 业务是否中断,取值:true/false + + :return: The is_service_interrupt of this CreateExternalIncidentRequest. + :rtype: bool + """ + return self._is_service_interrupt + + @is_service_interrupt.setter + def is_service_interrupt(self, is_service_interrupt): + """Sets the is_service_interrupt of this CreateExternalIncidentRequest. + + 业务是否中断,取值:true/false + + :param is_service_interrupt: The is_service_interrupt of this CreateExternalIncidentRequest. + :type is_service_interrupt: bool + """ + self._is_service_interrupt = is_service_interrupt + + @property + def incident_type(self): + """Gets the incident_type of this CreateExternalIncidentRequest. + + 事件类别 参考:枚举 事件类别incident_type + + :return: The incident_type of this CreateExternalIncidentRequest. + :rtype: str + """ + return self._incident_type + + @incident_type.setter + def incident_type(self, incident_type): + """Sets the incident_type of this CreateExternalIncidentRequest. + + 事件类别 参考:枚举 事件类别incident_type + + :param incident_type: The incident_type of this CreateExternalIncidentRequest. + :type incident_type: str + """ + self._incident_type = incident_type + + @property + def incident_title(self): + """Gets the incident_title of this CreateExternalIncidentRequest. + + 事件标题,最大长度:200 + + :return: The incident_title of this CreateExternalIncidentRequest. + :rtype: str + """ + return self._incident_title + + @incident_title.setter + def incident_title(self, incident_title): + """Sets the incident_title of this CreateExternalIncidentRequest. + + 事件标题,最大长度:200 + + :param incident_title: The incident_title of this CreateExternalIncidentRequest. + :type incident_title: str + """ + self._incident_title = incident_title + + @property + def incident_description(self): + """Gets the incident_description of this CreateExternalIncidentRequest. + + 事件描述,最大长度:600 + + :return: The incident_description of this CreateExternalIncidentRequest. + :rtype: str + """ + return self._incident_description + + @incident_description.setter + def incident_description(self, incident_description): + """Sets the incident_description of this CreateExternalIncidentRequest. + + 事件描述,最大长度:600 + + :param incident_description: The incident_description of this CreateExternalIncidentRequest. + :type incident_description: str + """ + self._incident_description = incident_description + + @property + def incident_source(self): + """Gets the incident_source of this CreateExternalIncidentRequest. + + 单据来源 参考:枚举 事件来源incident_source + + :return: The incident_source of this CreateExternalIncidentRequest. + :rtype: str + """ + return self._incident_source + + @incident_source.setter + def incident_source(self, incident_source): + """Sets the incident_source of this CreateExternalIncidentRequest. + + 单据来源 参考:枚举 事件来源incident_source + + :param incident_source: The incident_source of this CreateExternalIncidentRequest. + :type incident_source: str + """ + self._incident_source = incident_source + + @property + def incident_assignee(self): + """Gets the incident_assignee of this CreateExternalIncidentRequest. + + 责任人,排班场景和排班角色不能同时为空,现在只支持1个 + + :return: The incident_assignee of this CreateExternalIncidentRequest. + :rtype: list[str] + """ + return self._incident_assignee + + @incident_assignee.setter + def incident_assignee(self, incident_assignee): + """Sets the incident_assignee of this CreateExternalIncidentRequest. + + 责任人,排班场景和排班角色不能同时为空,现在只支持1个 + + :param incident_assignee: The incident_assignee of this CreateExternalIncidentRequest. + :type incident_assignee: list[str] + """ + self._incident_assignee = incident_assignee + + @property + def assignee_scene(self): + """Gets the assignee_scene of this CreateExternalIncidentRequest. + + 排班场景,责任人和排班角色不能同时为空 + + :return: The assignee_scene of this CreateExternalIncidentRequest. + :rtype: str + """ + return self._assignee_scene + + @assignee_scene.setter + def assignee_scene(self, assignee_scene): + """Sets the assignee_scene of this CreateExternalIncidentRequest. + + 排班场景,责任人和排班角色不能同时为空 + + :param assignee_scene: The assignee_scene of this CreateExternalIncidentRequest. + :type assignee_scene: str + """ + self._assignee_scene = assignee_scene + + @property + def assignee_role(self): + """Gets the assignee_role of this CreateExternalIncidentRequest. + + 排班角色,排班场景和责任人不能同时为空 + + :return: The assignee_role of this CreateExternalIncidentRequest. + :rtype: str + """ + return self._assignee_role + + @assignee_role.setter + def assignee_role(self, assignee_role): + """Sets the assignee_role of this CreateExternalIncidentRequest. + + 排班角色,排班场景和责任人不能同时为空 + + :param assignee_role: The assignee_role of this CreateExternalIncidentRequest. + :type assignee_role: str + """ + self._assignee_role = assignee_role + + @property + def creator(self): + """Gets the creator of this CreateExternalIncidentRequest. + + 创单人 + + :return: The creator of this CreateExternalIncidentRequest. + :rtype: str + """ + return self._creator + + @creator.setter + def creator(self, creator): + """Sets the creator of this CreateExternalIncidentRequest. + + 创单人 + + :param creator: The creator of this CreateExternalIncidentRequest. + :type creator: str + """ + self._creator = creator + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateExternalIncidentRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/create_external_incident_response_data.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/create_external_incident_response_data.py new file mode 100644 index 0000000000..0bed3dab98 --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/create_external_incident_response_data.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateExternalIncidentResponseData: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'incident_num': 'str' + } + + attribute_map = { + 'incident_num': 'incident_num' + } + + def __init__(self, incident_num=None): + """CreateExternalIncidentResponseData + + The model defined in huaweicloud sdk + + :param incident_num: 事件单号 + :type incident_num: str + """ + + + + self._incident_num = None + self.discriminator = None + + self.incident_num = incident_num + + @property + def incident_num(self): + """Gets the incident_num of this CreateExternalIncidentResponseData. + + 事件单号 + + :return: The incident_num of this CreateExternalIncidentResponseData. + :rtype: str + """ + return self._incident_num + + @incident_num.setter + def incident_num(self, incident_num): + """Sets the incident_num of this CreateExternalIncidentResponseData. + + 事件单号 + + :param incident_num: The incident_num of this CreateExternalIncidentResponseData. + :type incident_num: str + """ + self._incident_num = incident_num + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateExternalIncidentResponseData): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/create_external_issues_request.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/create_external_issues_request.py new file mode 100644 index 0000000000..04fd016351 --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/create_external_issues_request.py @@ -0,0 +1,571 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateExternalIssuesRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'creator': 'str', + 'title': 'str', + 'description': 'str', + 'regions': 'list[str]', + 'enterprise_project': 'str', + 'source': 'str', + 'source_id': 'str', + 'fount_time': 'int', + 'impacted_cloud_services': 'list[str]', + 'level': 'str', + 'ticket_type': 'str', + 'reproduce_probability': 'str', + 'root_cause_cloud_service': 'list[str]', + 'virtual_schedule_type': 'str', + 'schedule_scenes': 'str', + 'virtual_schedule_role': 'str', + 'issue_contact_person': 'str' + } + + attribute_map = { + 'creator': 'creator', + 'title': 'title', + 'description': 'description', + 'regions': 'regions', + 'enterprise_project': 'enterprise_project', + 'source': 'source', + 'source_id': 'source_id', + 'fount_time': 'fount_time', + 'impacted_cloud_services': 'impacted_cloud_services', + 'level': 'level', + 'ticket_type': 'ticket_type', + 'reproduce_probability': 'reproduce_probability', + 'root_cause_cloud_service': 'root_cause_cloud_service', + 'virtual_schedule_type': 'virtual_schedule_type', + 'schedule_scenes': 'schedule_scenes', + 'virtual_schedule_role': 'virtual_schedule_role', + 'issue_contact_person': 'issue_contact_person' + } + + def __init__(self, creator=None, title=None, description=None, regions=None, enterprise_project=None, source=None, source_id=None, fount_time=None, impacted_cloud_services=None, level=None, ticket_type=None, reproduce_probability=None, root_cause_cloud_service=None, virtual_schedule_type=None, schedule_scenes=None, virtual_schedule_role=None, issue_contact_person=None): + """CreateExternalIssuesRequest + + The model defined in huaweicloud sdk + + :param creator: 创建人id + :type creator: str + :param title: 标题 + :type title: str + :param description: 描述 + :type description: str + :param regions: 区域Code,最大100个 + :type regions: list[str] + :param enterprise_project: 企业项目id + :type enterprise_project: str + :param source: 问题来源 issues_source_1000 事件 issues_source_2000 Warroom issues_source_3000 告警 + :type source: str + :param source_id: 问题来源id + :type source_id: str + :param fount_time: 发现时间 + :type fount_time: int + :param impacted_cloud_services: 影响应用ID,最多10条 + :type impacted_cloud_services: list[str] + :param level: 问题级别 issues_level_1000 致命 issues_level_2000 严重 issues_level_3000 一般 + :type level: str + :param ticket_type: 问题类型 issues_type_1000 功能性问题 issues_type_2000 性能问题 issues_type_3000 可靠性问题 issues_type_4000 兼容性问题 issues_type_5000 用户体验问题 issues_type_6000 可维护性问题 issues_type_7000 变更类问题 issues_type_8000 安全问题 issues_type_9000 工程实施类 issues_type_10000 交付部署问题 issues_type_11000 LLD规划问题 issues_type_12000 供用商问题 issues_type_13000 咨询类问题 issues_type_14000 需求类问题 issues_type_15000 其他问题 + :type ticket_type: str + :param reproduce_probability: 重现概率 issues_reproduce_probability_1000 有条件必现 issues_reproduce_probability_2000 有条件概率重现 issues_reproduce_probability_3000 无规律重现 issues_reproduce_probability_4000 很难重现 + :type reproduce_probability: str + :param root_cause_cloud_service: 责任应用ID,必填,限1条 + :type root_cause_cloud_service: list[str] + :param virtual_schedule_type: 排班类型 参考:枚举 issues_mgmt_virtual_schedule_type_1000 排班,schedule_scenes排班场景,virtual_schedule_role排班角色必填,指定排班 issues_mgmt_virtual_schedule_type_2000 个人,issue_contact_person字段必填,指定责任人 + :type virtual_schedule_type: str + :param schedule_scenes: 排班场景id + :type schedule_scenes: str + :param virtual_schedule_role: 排班角色id + :type virtual_schedule_role: str + :param issue_contact_person: 问题责任人id + :type issue_contact_person: str + """ + + + + self._creator = None + self._title = None + self._description = None + self._regions = None + self._enterprise_project = None + self._source = None + self._source_id = None + self._fount_time = None + self._impacted_cloud_services = None + self._level = None + self._ticket_type = None + self._reproduce_probability = None + self._root_cause_cloud_service = None + self._virtual_schedule_type = None + self._schedule_scenes = None + self._virtual_schedule_role = None + self._issue_contact_person = None + self.discriminator = None + + if creator is not None: + self.creator = creator + self.title = title + self.description = description + if regions is not None: + self.regions = regions + if enterprise_project is not None: + self.enterprise_project = enterprise_project + if source is not None: + self.source = source + if source_id is not None: + self.source_id = source_id + if fount_time is not None: + self.fount_time = fount_time + self.impacted_cloud_services = impacted_cloud_services + self.level = level + self.ticket_type = ticket_type + self.reproduce_probability = reproduce_probability + self.root_cause_cloud_service = root_cause_cloud_service + self.virtual_schedule_type = virtual_schedule_type + if schedule_scenes is not None: + self.schedule_scenes = schedule_scenes + if virtual_schedule_role is not None: + self.virtual_schedule_role = virtual_schedule_role + if issue_contact_person is not None: + self.issue_contact_person = issue_contact_person + + @property + def creator(self): + """Gets the creator of this CreateExternalIssuesRequest. + + 创建人id + + :return: The creator of this CreateExternalIssuesRequest. + :rtype: str + """ + return self._creator + + @creator.setter + def creator(self, creator): + """Sets the creator of this CreateExternalIssuesRequest. + + 创建人id + + :param creator: The creator of this CreateExternalIssuesRequest. + :type creator: str + """ + self._creator = creator + + @property + def title(self): + """Gets the title of this CreateExternalIssuesRequest. + + 标题 + + :return: The title of this CreateExternalIssuesRequest. + :rtype: str + """ + return self._title + + @title.setter + def title(self, title): + """Sets the title of this CreateExternalIssuesRequest. + + 标题 + + :param title: The title of this CreateExternalIssuesRequest. + :type title: str + """ + self._title = title + + @property + def description(self): + """Gets the description of this CreateExternalIssuesRequest. + + 描述 + + :return: The description of this CreateExternalIssuesRequest. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this CreateExternalIssuesRequest. + + 描述 + + :param description: The description of this CreateExternalIssuesRequest. + :type description: str + """ + self._description = description + + @property + def regions(self): + """Gets the regions of this CreateExternalIssuesRequest. + + 区域Code,最大100个 + + :return: The regions of this CreateExternalIssuesRequest. + :rtype: list[str] + """ + return self._regions + + @regions.setter + def regions(self, regions): + """Sets the regions of this CreateExternalIssuesRequest. + + 区域Code,最大100个 + + :param regions: The regions of this CreateExternalIssuesRequest. + :type regions: list[str] + """ + self._regions = regions + + @property + def enterprise_project(self): + """Gets the enterprise_project of this CreateExternalIssuesRequest. + + 企业项目id + + :return: The enterprise_project of this CreateExternalIssuesRequest. + :rtype: str + """ + return self._enterprise_project + + @enterprise_project.setter + def enterprise_project(self, enterprise_project): + """Sets the enterprise_project of this CreateExternalIssuesRequest. + + 企业项目id + + :param enterprise_project: The enterprise_project of this CreateExternalIssuesRequest. + :type enterprise_project: str + """ + self._enterprise_project = enterprise_project + + @property + def source(self): + """Gets the source of this CreateExternalIssuesRequest. + + 问题来源 issues_source_1000 事件 issues_source_2000 Warroom issues_source_3000 告警 + + :return: The source of this CreateExternalIssuesRequest. + :rtype: str + """ + return self._source + + @source.setter + def source(self, source): + """Sets the source of this CreateExternalIssuesRequest. + + 问题来源 issues_source_1000 事件 issues_source_2000 Warroom issues_source_3000 告警 + + :param source: The source of this CreateExternalIssuesRequest. + :type source: str + """ + self._source = source + + @property + def source_id(self): + """Gets the source_id of this CreateExternalIssuesRequest. + + 问题来源id + + :return: The source_id of this CreateExternalIssuesRequest. + :rtype: str + """ + return self._source_id + + @source_id.setter + def source_id(self, source_id): + """Sets the source_id of this CreateExternalIssuesRequest. + + 问题来源id + + :param source_id: The source_id of this CreateExternalIssuesRequest. + :type source_id: str + """ + self._source_id = source_id + + @property + def fount_time(self): + """Gets the fount_time of this CreateExternalIssuesRequest. + + 发现时间 + + :return: The fount_time of this CreateExternalIssuesRequest. + :rtype: int + """ + return self._fount_time + + @fount_time.setter + def fount_time(self, fount_time): + """Sets the fount_time of this CreateExternalIssuesRequest. + + 发现时间 + + :param fount_time: The fount_time of this CreateExternalIssuesRequest. + :type fount_time: int + """ + self._fount_time = fount_time + + @property + def impacted_cloud_services(self): + """Gets the impacted_cloud_services of this CreateExternalIssuesRequest. + + 影响应用ID,最多10条 + + :return: The impacted_cloud_services of this CreateExternalIssuesRequest. + :rtype: list[str] + """ + return self._impacted_cloud_services + + @impacted_cloud_services.setter + def impacted_cloud_services(self, impacted_cloud_services): + """Sets the impacted_cloud_services of this CreateExternalIssuesRequest. + + 影响应用ID,最多10条 + + :param impacted_cloud_services: The impacted_cloud_services of this CreateExternalIssuesRequest. + :type impacted_cloud_services: list[str] + """ + self._impacted_cloud_services = impacted_cloud_services + + @property + def level(self): + """Gets the level of this CreateExternalIssuesRequest. + + 问题级别 issues_level_1000 致命 issues_level_2000 严重 issues_level_3000 一般 + + :return: The level of this CreateExternalIssuesRequest. + :rtype: str + """ + return self._level + + @level.setter + def level(self, level): + """Sets the level of this CreateExternalIssuesRequest. + + 问题级别 issues_level_1000 致命 issues_level_2000 严重 issues_level_3000 一般 + + :param level: The level of this CreateExternalIssuesRequest. + :type level: str + """ + self._level = level + + @property + def ticket_type(self): + """Gets the ticket_type of this CreateExternalIssuesRequest. + + 问题类型 issues_type_1000 功能性问题 issues_type_2000 性能问题 issues_type_3000 可靠性问题 issues_type_4000 兼容性问题 issues_type_5000 用户体验问题 issues_type_6000 可维护性问题 issues_type_7000 变更类问题 issues_type_8000 安全问题 issues_type_9000 工程实施类 issues_type_10000 交付部署问题 issues_type_11000 LLD规划问题 issues_type_12000 供用商问题 issues_type_13000 咨询类问题 issues_type_14000 需求类问题 issues_type_15000 其他问题 + + :return: The ticket_type of this CreateExternalIssuesRequest. + :rtype: str + """ + return self._ticket_type + + @ticket_type.setter + def ticket_type(self, ticket_type): + """Sets the ticket_type of this CreateExternalIssuesRequest. + + 问题类型 issues_type_1000 功能性问题 issues_type_2000 性能问题 issues_type_3000 可靠性问题 issues_type_4000 兼容性问题 issues_type_5000 用户体验问题 issues_type_6000 可维护性问题 issues_type_7000 变更类问题 issues_type_8000 安全问题 issues_type_9000 工程实施类 issues_type_10000 交付部署问题 issues_type_11000 LLD规划问题 issues_type_12000 供用商问题 issues_type_13000 咨询类问题 issues_type_14000 需求类问题 issues_type_15000 其他问题 + + :param ticket_type: The ticket_type of this CreateExternalIssuesRequest. + :type ticket_type: str + """ + self._ticket_type = ticket_type + + @property + def reproduce_probability(self): + """Gets the reproduce_probability of this CreateExternalIssuesRequest. + + 重现概率 issues_reproduce_probability_1000 有条件必现 issues_reproduce_probability_2000 有条件概率重现 issues_reproduce_probability_3000 无规律重现 issues_reproduce_probability_4000 很难重现 + + :return: The reproduce_probability of this CreateExternalIssuesRequest. + :rtype: str + """ + return self._reproduce_probability + + @reproduce_probability.setter + def reproduce_probability(self, reproduce_probability): + """Sets the reproduce_probability of this CreateExternalIssuesRequest. + + 重现概率 issues_reproduce_probability_1000 有条件必现 issues_reproduce_probability_2000 有条件概率重现 issues_reproduce_probability_3000 无规律重现 issues_reproduce_probability_4000 很难重现 + + :param reproduce_probability: The reproduce_probability of this CreateExternalIssuesRequest. + :type reproduce_probability: str + """ + self._reproduce_probability = reproduce_probability + + @property + def root_cause_cloud_service(self): + """Gets the root_cause_cloud_service of this CreateExternalIssuesRequest. + + 责任应用ID,必填,限1条 + + :return: The root_cause_cloud_service of this CreateExternalIssuesRequest. + :rtype: list[str] + """ + return self._root_cause_cloud_service + + @root_cause_cloud_service.setter + def root_cause_cloud_service(self, root_cause_cloud_service): + """Sets the root_cause_cloud_service of this CreateExternalIssuesRequest. + + 责任应用ID,必填,限1条 + + :param root_cause_cloud_service: The root_cause_cloud_service of this CreateExternalIssuesRequest. + :type root_cause_cloud_service: list[str] + """ + self._root_cause_cloud_service = root_cause_cloud_service + + @property + def virtual_schedule_type(self): + """Gets the virtual_schedule_type of this CreateExternalIssuesRequest. + + 排班类型 参考:枚举 issues_mgmt_virtual_schedule_type_1000 排班,schedule_scenes排班场景,virtual_schedule_role排班角色必填,指定排班 issues_mgmt_virtual_schedule_type_2000 个人,issue_contact_person字段必填,指定责任人 + + :return: The virtual_schedule_type of this CreateExternalIssuesRequest. + :rtype: str + """ + return self._virtual_schedule_type + + @virtual_schedule_type.setter + def virtual_schedule_type(self, virtual_schedule_type): + """Sets the virtual_schedule_type of this CreateExternalIssuesRequest. + + 排班类型 参考:枚举 issues_mgmt_virtual_schedule_type_1000 排班,schedule_scenes排班场景,virtual_schedule_role排班角色必填,指定排班 issues_mgmt_virtual_schedule_type_2000 个人,issue_contact_person字段必填,指定责任人 + + :param virtual_schedule_type: The virtual_schedule_type of this CreateExternalIssuesRequest. + :type virtual_schedule_type: str + """ + self._virtual_schedule_type = virtual_schedule_type + + @property + def schedule_scenes(self): + """Gets the schedule_scenes of this CreateExternalIssuesRequest. + + 排班场景id + + :return: The schedule_scenes of this CreateExternalIssuesRequest. + :rtype: str + """ + return self._schedule_scenes + + @schedule_scenes.setter + def schedule_scenes(self, schedule_scenes): + """Sets the schedule_scenes of this CreateExternalIssuesRequest. + + 排班场景id + + :param schedule_scenes: The schedule_scenes of this CreateExternalIssuesRequest. + :type schedule_scenes: str + """ + self._schedule_scenes = schedule_scenes + + @property + def virtual_schedule_role(self): + """Gets the virtual_schedule_role of this CreateExternalIssuesRequest. + + 排班角色id + + :return: The virtual_schedule_role of this CreateExternalIssuesRequest. + :rtype: str + """ + return self._virtual_schedule_role + + @virtual_schedule_role.setter + def virtual_schedule_role(self, virtual_schedule_role): + """Sets the virtual_schedule_role of this CreateExternalIssuesRequest. + + 排班角色id + + :param virtual_schedule_role: The virtual_schedule_role of this CreateExternalIssuesRequest. + :type virtual_schedule_role: str + """ + self._virtual_schedule_role = virtual_schedule_role + + @property + def issue_contact_person(self): + """Gets the issue_contact_person of this CreateExternalIssuesRequest. + + 问题责任人id + + :return: The issue_contact_person of this CreateExternalIssuesRequest. + :rtype: str + """ + return self._issue_contact_person + + @issue_contact_person.setter + def issue_contact_person(self, issue_contact_person): + """Sets the issue_contact_person of this CreateExternalIssuesRequest. + + 问题责任人id + + :param issue_contact_person: The issue_contact_person of this CreateExternalIssuesRequest. + :type issue_contact_person: str + """ + self._issue_contact_person = issue_contact_person + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateExternalIssuesRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/create_external_issues_response_data.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/create_external_issues_response_data.py new file mode 100644 index 0000000000..62d63ed4c8 --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/create_external_issues_response_data.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateExternalIssuesResponseData: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'ticket_id': 'str' + } + + attribute_map = { + 'ticket_id': 'ticket_id' + } + + def __init__(self, ticket_id=None): + """CreateExternalIssuesResponseData + + The model defined in huaweicloud sdk + + :param ticket_id: 问题单号 + :type ticket_id: str + """ + + + + self._ticket_id = None + self.discriminator = None + + self.ticket_id = ticket_id + + @property + def ticket_id(self): + """Gets the ticket_id of this CreateExternalIssuesResponseData. + + 问题单号 + + :return: The ticket_id of this CreateExternalIssuesResponseData. + :rtype: str + """ + return self._ticket_id + + @ticket_id.setter + def ticket_id(self, ticket_id): + """Sets the ticket_id of this CreateExternalIssuesResponseData. + + 问题单号 + + :param ticket_id: The ticket_id of this CreateExternalIssuesResponseData. + :type ticket_id: str + """ + self._ticket_id = ticket_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, CreateExternalIssuesResponseData): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/create_report_custom_event_request.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/create_report_custom_event_request.py new file mode 100644 index 0000000000..8845f332e8 --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/create_report_custom_event_request.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateReportCustomEventRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'integration_key': 'str', + 'body': 'ReportCustomEventRequestBody' + } + + attribute_map = { + 'integration_key': 'integration_key', + 'body': 'body' + } + + def __init__(self, integration_key=None, body=None): + """CreateReportCustomEventRequest + + The model defined in huaweicloud sdk + + :param integration_key: 集成ID + :type integration_key: str + :param body: Body of the CreateReportCustomEventRequest + :type body: :class:`huaweicloudsdkcoc.v1.ReportCustomEventRequestBody` + """ + + + + self._integration_key = None + self._body = None + self.discriminator = None + + self.integration_key = integration_key + if body is not None: + self.body = body + + @property + def integration_key(self): + """Gets the integration_key of this CreateReportCustomEventRequest. + + 集成ID + + :return: The integration_key of this CreateReportCustomEventRequest. + :rtype: str + """ + return self._integration_key + + @integration_key.setter + def integration_key(self, integration_key): + """Sets the integration_key of this CreateReportCustomEventRequest. + + 集成ID + + :param integration_key: The integration_key of this CreateReportCustomEventRequest. + :type integration_key: str + """ + self._integration_key = integration_key + + @property + def body(self): + """Gets the body of this CreateReportCustomEventRequest. + + :return: The body of this CreateReportCustomEventRequest. + :rtype: :class:`huaweicloudsdkcoc.v1.ReportCustomEventRequestBody` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateReportCustomEventRequest. + + :param body: The body of this CreateReportCustomEventRequest. + :type body: :class:`huaweicloudsdkcoc.v1.ReportCustomEventRequestBody` + """ + 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, CreateReportCustomEventRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/create_report_custom_event_response.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/create_report_custom_event_response.py new file mode 100644 index 0000000000..3f3d3e212f --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/create_report_custom_event_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 CreateReportCustomEventResponse(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 = { + 'provider_code': 'str', + 'error_code': 'str', + 'error_msg': 'str' + } + + attribute_map = { + 'provider_code': 'provider_code', + 'error_code': 'error_code', + 'error_msg': 'error_msg' + } + + def __init__(self, provider_code=None, error_code=None, error_msg=None): + """CreateReportCustomEventResponse + + The model defined in huaweicloud sdk + + :param provider_code: 服务标识 + :type provider_code: str + :param error_code: 请求响应代码,范围:0000~9999,正常时取值:0 + :type error_code: str + :param error_msg: 请求响应描述 + :type error_msg: str + """ + + super(CreateReportCustomEventResponse, self).__init__() + + self._provider_code = None + self._error_code = None + self._error_msg = None + self.discriminator = None + + if provider_code is not None: + self.provider_code = provider_code + if error_code is not None: + self.error_code = error_code + if error_msg is not None: + self.error_msg = error_msg + + @property + def provider_code(self): + """Gets the provider_code of this CreateReportCustomEventResponse. + + 服务标识 + + :return: The provider_code of this CreateReportCustomEventResponse. + :rtype: str + """ + return self._provider_code + + @provider_code.setter + def provider_code(self, provider_code): + """Sets the provider_code of this CreateReportCustomEventResponse. + + 服务标识 + + :param provider_code: The provider_code of this CreateReportCustomEventResponse. + :type provider_code: str + """ + self._provider_code = provider_code + + @property + def error_code(self): + """Gets the error_code of this CreateReportCustomEventResponse. + + 请求响应代码,范围:0000~9999,正常时取值:0 + + :return: The error_code of this CreateReportCustomEventResponse. + :rtype: str + """ + return self._error_code + + @error_code.setter + def error_code(self, error_code): + """Sets the error_code of this CreateReportCustomEventResponse. + + 请求响应代码,范围:0000~9999,正常时取值:0 + + :param error_code: The error_code of this CreateReportCustomEventResponse. + :type error_code: str + """ + self._error_code = error_code + + @property + def error_msg(self): + """Gets the error_msg of this CreateReportCustomEventResponse. + + 请求响应描述 + + :return: The error_msg of this CreateReportCustomEventResponse. + :rtype: str + """ + return self._error_msg + + @error_msg.setter + def error_msg(self, error_msg): + """Sets the error_msg of this CreateReportCustomEventResponse. + + 请求响应描述 + + :param error_msg: The error_msg of this CreateReportCustomEventResponse. + :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, CreateReportCustomEventResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/create_report_prometheus_event_request.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/create_report_prometheus_event_request.py new file mode 100644 index 0000000000..8eca560c25 --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/create_report_prometheus_event_request.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateReportPrometheusEventRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'integration_key': 'str', + 'body': 'dict(str, object)' + } + + attribute_map = { + 'integration_key': 'integration_key', + 'body': 'body' + } + + def __init__(self, integration_key=None, body=None): + """CreateReportPrometheusEventRequest + + The model defined in huaweicloud sdk + + :param integration_key: 集成ID + :type integration_key: str + :param body: Body of the CreateReportPrometheusEventRequest + :type body: dict(str, object) + """ + + + + self._integration_key = None + self._body = None + self.discriminator = None + + self.integration_key = integration_key + if body is not None: + self.body = body + + @property + def integration_key(self): + """Gets the integration_key of this CreateReportPrometheusEventRequest. + + 集成ID + + :return: The integration_key of this CreateReportPrometheusEventRequest. + :rtype: str + """ + return self._integration_key + + @integration_key.setter + def integration_key(self, integration_key): + """Sets the integration_key of this CreateReportPrometheusEventRequest. + + 集成ID + + :param integration_key: The integration_key of this CreateReportPrometheusEventRequest. + :type integration_key: str + """ + self._integration_key = integration_key + + @property + def body(self): + """Gets the body of this CreateReportPrometheusEventRequest. + + :return: The body of this CreateReportPrometheusEventRequest. + :rtype: dict(str, object) + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateReportPrometheusEventRequest. + + :param body: The body of this CreateReportPrometheusEventRequest. + :type body: dict(str, object) + """ + 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, CreateReportPrometheusEventRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/create_report_prometheus_event_response.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/create_report_prometheus_event_response.py new file mode 100644 index 0000000000..60b2144296 --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/create_report_prometheus_event_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 CreateReportPrometheusEventResponse(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 = { + 'provider_code': 'str', + 'error_code': 'str', + 'error_msg': 'str' + } + + attribute_map = { + 'provider_code': 'provider_code', + 'error_code': 'error_code', + 'error_msg': 'error_msg' + } + + def __init__(self, provider_code=None, error_code=None, error_msg=None): + """CreateReportPrometheusEventResponse + + The model defined in huaweicloud sdk + + :param provider_code: 服务标识 + :type provider_code: str + :param error_code: 请求响应代码,范围:0000~9999,正常时取值:0 + :type error_code: str + :param error_msg: 请求响应描述 + :type error_msg: str + """ + + super(CreateReportPrometheusEventResponse, self).__init__() + + self._provider_code = None + self._error_code = None + self._error_msg = None + self.discriminator = None + + if provider_code is not None: + self.provider_code = provider_code + if error_code is not None: + self.error_code = error_code + if error_msg is not None: + self.error_msg = error_msg + + @property + def provider_code(self): + """Gets the provider_code of this CreateReportPrometheusEventResponse. + + 服务标识 + + :return: The provider_code of this CreateReportPrometheusEventResponse. + :rtype: str + """ + return self._provider_code + + @provider_code.setter + def provider_code(self, provider_code): + """Sets the provider_code of this CreateReportPrometheusEventResponse. + + 服务标识 + + :param provider_code: The provider_code of this CreateReportPrometheusEventResponse. + :type provider_code: str + """ + self._provider_code = provider_code + + @property + def error_code(self): + """Gets the error_code of this CreateReportPrometheusEventResponse. + + 请求响应代码,范围:0000~9999,正常时取值:0 + + :return: The error_code of this CreateReportPrometheusEventResponse. + :rtype: str + """ + return self._error_code + + @error_code.setter + def error_code(self, error_code): + """Sets the error_code of this CreateReportPrometheusEventResponse. + + 请求响应代码,范围:0000~9999,正常时取值:0 + + :param error_code: The error_code of this CreateReportPrometheusEventResponse. + :type error_code: str + """ + self._error_code = error_code + + @property + def error_msg(self): + """Gets the error_msg of this CreateReportPrometheusEventResponse. + + 请求响应描述 + + :return: The error_msg of this CreateReportPrometheusEventResponse. + :rtype: str + """ + return self._error_msg + + @error_msg.setter + def error_msg(self, error_msg): + """Sets the error_msg of this CreateReportPrometheusEventResponse. + + 请求响应描述 + + :param error_msg: The error_msg of this CreateReportPrometheusEventResponse. + :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, CreateReportPrometheusEventResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/create_script_request.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/create_script_request.py new file mode 100644 index 0000000000..48283f7a59 --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/create_script_request.py @@ -0,0 +1,198 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateScriptRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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_project_id': 'str', + 'x_user_profile': 'str', + 'x_language': 'str', + 'body': 'AddScriptModel' + } + + attribute_map = { + 'x_project_id': 'x-project-id', + 'x_user_profile': 'x-user-profile', + 'x_language': 'X-Language', + 'body': 'body' + } + + def __init__(self, x_project_id=None, x_user_profile=None, x_language=None, body=None): + """CreateScriptRequest + + The model defined in huaweicloud sdk + + :param x_project_id: 项目ID,一个项目对应一个region + :type x_project_id: str + :param x_user_profile: IAM5.0用户信息 + :type x_user_profile: str + :param x_language: 国际化标记,zh-cn表示中文,en-us或不传表示英文 + :type x_language: str + :param body: Body of the CreateScriptRequest + :type body: :class:`huaweicloudsdkcoc.v1.AddScriptModel` + """ + + + + self._x_project_id = None + self._x_user_profile = None + self._x_language = None + self._body = None + self.discriminator = None + + if x_project_id is not None: + self.x_project_id = x_project_id + if x_user_profile is not None: + self.x_user_profile = x_user_profile + if x_language is not None: + self.x_language = x_language + if body is not None: + self.body = body + + @property + def x_project_id(self): + """Gets the x_project_id of this CreateScriptRequest. + + 项目ID,一个项目对应一个region + + :return: The x_project_id of this CreateScriptRequest. + :rtype: str + """ + return self._x_project_id + + @x_project_id.setter + def x_project_id(self, x_project_id): + """Sets the x_project_id of this CreateScriptRequest. + + 项目ID,一个项目对应一个region + + :param x_project_id: The x_project_id of this CreateScriptRequest. + :type x_project_id: str + """ + self._x_project_id = x_project_id + + @property + def x_user_profile(self): + """Gets the x_user_profile of this CreateScriptRequest. + + IAM5.0用户信息 + + :return: The x_user_profile of this CreateScriptRequest. + :rtype: str + """ + return self._x_user_profile + + @x_user_profile.setter + def x_user_profile(self, x_user_profile): + """Sets the x_user_profile of this CreateScriptRequest. + + IAM5.0用户信息 + + :param x_user_profile: The x_user_profile of this CreateScriptRequest. + :type x_user_profile: str + """ + self._x_user_profile = x_user_profile + + @property + def x_language(self): + """Gets the x_language of this CreateScriptRequest. + + 国际化标记,zh-cn表示中文,en-us或不传表示英文 + + :return: The x_language of this CreateScriptRequest. + :rtype: str + """ + return self._x_language + + @x_language.setter + def x_language(self, x_language): + """Sets the x_language of this CreateScriptRequest. + + 国际化标记,zh-cn表示中文,en-us或不传表示英文 + + :param x_language: The x_language of this CreateScriptRequest. + :type x_language: str + """ + self._x_language = x_language + + @property + def body(self): + """Gets the body of this CreateScriptRequest. + + :return: The body of this CreateScriptRequest. + :rtype: :class:`huaweicloudsdkcoc.v1.AddScriptModel` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateScriptRequest. + + :param body: The body of this CreateScriptRequest. + :type body: :class:`huaweicloudsdkcoc.v1.AddScriptModel` + """ + 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, CreateScriptRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/create_script_response.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/create_script_response.py new file mode 100644 index 0000000000..7880782091 --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/create_script_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 CreateScriptResponse(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): + """CreateScriptResponse + + The model defined in huaweicloud sdk + + :param data: script_uuid + :type data: str + """ + + super(CreateScriptResponse, 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 CreateScriptResponse. + + script_uuid + + :return: The data of this CreateScriptResponse. + :rtype: str + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this CreateScriptResponse. + + script_uuid + + :param data: The data of this CreateScriptResponse. + :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, CreateScriptResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/create_war_room_request.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/create_war_room_request.py new file mode 100644 index 0000000000..910a4b15a9 --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/create_war_room_request.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateWarRoomRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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': 'CreateWarRoomRequestBody' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """CreateWarRoomRequest + + The model defined in huaweicloud sdk + + :param body: Body of the CreateWarRoomRequest + :type body: :class:`huaweicloudsdkcoc.v1.CreateWarRoomRequestBody` + """ + + + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this CreateWarRoomRequest. + + :return: The body of this CreateWarRoomRequest. + :rtype: :class:`huaweicloudsdkcoc.v1.CreateWarRoomRequestBody` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateWarRoomRequest. + + :param body: The body of this CreateWarRoomRequest. + :type body: :class:`huaweicloudsdkcoc.v1.CreateWarRoomRequestBody` + """ + 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, CreateWarRoomRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/create_war_room_request_body.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/create_war_room_request_body.py new file mode 100644 index 0000000000..ef0c4b07bc --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/create_war_room_request_body.py @@ -0,0 +1,428 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateWarRoomRequestBody: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'war_room_name': 'str', + 'description': 'str', + 'region_code_list': 'list[str]', + 'application_id_list': 'list[str]', + 'incident_number': 'str', + 'schedule_group': 'list[ScheduleGroupInfo]', + 'participant': 'list[str]', + 'war_room_admin': 'str', + 'application_names': 'list[str]', + 'region_names': 'list[str]', + 'enterprise_project_id': 'str', + 'notification_type': 'str' + } + + attribute_map = { + 'war_room_name': 'war_room_name', + 'description': 'description', + 'region_code_list': 'region_code_list', + 'application_id_list': 'application_id_list', + 'incident_number': 'incident_number', + 'schedule_group': 'schedule_group', + 'participant': 'participant', + 'war_room_admin': 'war_room_admin', + 'application_names': 'application_names', + 'region_names': 'region_names', + 'enterprise_project_id': 'enterprise_project_id', + 'notification_type': 'notification_type' + } + + def __init__(self, war_room_name=None, description=None, region_code_list=None, application_id_list=None, incident_number=None, schedule_group=None, participant=None, war_room_admin=None, application_names=None, region_names=None, enterprise_project_id=None, notification_type=None): + """CreateWarRoomRequestBody + + The model defined in huaweicloud sdk + + :param war_room_name: WarRoom名称 + :type war_room_name: str + :param description: WarRoom描述 + :type description: str + :param region_code_list: 区域id + :type region_code_list: list[str] + :param application_id_list: 影响应用id + :type application_id_list: list[str] + :param incident_number: 事件单号 + :type incident_number: str + :param schedule_group: 排班分组 + :type schedule_group: list[:class:`huaweicloudsdkcoc.v1.ScheduleGroupInfo`] + :param participant: 参与者 + :type participant: list[str] + :param war_room_admin: WarRoom管理员 + :type war_room_admin: str + :param application_names: 应用名称列表 + :type application_names: list[str] + :param region_names: region名称列表 + :type region_names: list[str] + :param enterprise_project_id: 企业项目id + :type enterprise_project_id: str + :param notification_type: 创建群组方式 + :type notification_type: str + """ + + + + self._war_room_name = None + self._description = None + self._region_code_list = None + self._application_id_list = None + self._incident_number = None + self._schedule_group = None + self._participant = None + self._war_room_admin = None + self._application_names = None + self._region_names = None + self._enterprise_project_id = None + self._notification_type = None + self.discriminator = None + + self.war_room_name = war_room_name + if description is not None: + self.description = description + if region_code_list is not None: + self.region_code_list = region_code_list + self.application_id_list = application_id_list + self.incident_number = incident_number + self.schedule_group = schedule_group + if participant is not None: + self.participant = participant + self.war_room_admin = war_room_admin + if application_names is not None: + self.application_names = application_names + if region_names is not None: + self.region_names = region_names + self.enterprise_project_id = enterprise_project_id + if notification_type is not None: + self.notification_type = notification_type + + @property + def war_room_name(self): + """Gets the war_room_name of this CreateWarRoomRequestBody. + + WarRoom名称 + + :return: The war_room_name of this CreateWarRoomRequestBody. + :rtype: str + """ + return self._war_room_name + + @war_room_name.setter + def war_room_name(self, war_room_name): + """Sets the war_room_name of this CreateWarRoomRequestBody. + + WarRoom名称 + + :param war_room_name: The war_room_name of this CreateWarRoomRequestBody. + :type war_room_name: str + """ + self._war_room_name = war_room_name + + @property + def description(self): + """Gets the description of this CreateWarRoomRequestBody. + + WarRoom描述 + + :return: The description of this CreateWarRoomRequestBody. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this CreateWarRoomRequestBody. + + WarRoom描述 + + :param description: The description of this CreateWarRoomRequestBody. + :type description: str + """ + self._description = description + + @property + def region_code_list(self): + """Gets the region_code_list of this CreateWarRoomRequestBody. + + 区域id + + :return: The region_code_list of this CreateWarRoomRequestBody. + :rtype: list[str] + """ + return self._region_code_list + + @region_code_list.setter + def region_code_list(self, region_code_list): + """Sets the region_code_list of this CreateWarRoomRequestBody. + + 区域id + + :param region_code_list: The region_code_list of this CreateWarRoomRequestBody. + :type region_code_list: list[str] + """ + self._region_code_list = region_code_list + + @property + def application_id_list(self): + """Gets the application_id_list of this CreateWarRoomRequestBody. + + 影响应用id + + :return: The application_id_list of this CreateWarRoomRequestBody. + :rtype: list[str] + """ + return self._application_id_list + + @application_id_list.setter + def application_id_list(self, application_id_list): + """Sets the application_id_list of this CreateWarRoomRequestBody. + + 影响应用id + + :param application_id_list: The application_id_list of this CreateWarRoomRequestBody. + :type application_id_list: list[str] + """ + self._application_id_list = application_id_list + + @property + def incident_number(self): + """Gets the incident_number of this CreateWarRoomRequestBody. + + 事件单号 + + :return: The incident_number of this CreateWarRoomRequestBody. + :rtype: str + """ + return self._incident_number + + @incident_number.setter + def incident_number(self, incident_number): + """Sets the incident_number of this CreateWarRoomRequestBody. + + 事件单号 + + :param incident_number: The incident_number of this CreateWarRoomRequestBody. + :type incident_number: str + """ + self._incident_number = incident_number + + @property + def schedule_group(self): + """Gets the schedule_group of this CreateWarRoomRequestBody. + + 排班分组 + + :return: The schedule_group of this CreateWarRoomRequestBody. + :rtype: list[:class:`huaweicloudsdkcoc.v1.ScheduleGroupInfo`] + """ + return self._schedule_group + + @schedule_group.setter + def schedule_group(self, schedule_group): + """Sets the schedule_group of this CreateWarRoomRequestBody. + + 排班分组 + + :param schedule_group: The schedule_group of this CreateWarRoomRequestBody. + :type schedule_group: list[:class:`huaweicloudsdkcoc.v1.ScheduleGroupInfo`] + """ + self._schedule_group = schedule_group + + @property + def participant(self): + """Gets the participant of this CreateWarRoomRequestBody. + + 参与者 + + :return: The participant of this CreateWarRoomRequestBody. + :rtype: list[str] + """ + return self._participant + + @participant.setter + def participant(self, participant): + """Sets the participant of this CreateWarRoomRequestBody. + + 参与者 + + :param participant: The participant of this CreateWarRoomRequestBody. + :type participant: list[str] + """ + self._participant = participant + + @property + def war_room_admin(self): + """Gets the war_room_admin of this CreateWarRoomRequestBody. + + WarRoom管理员 + + :return: The war_room_admin of this CreateWarRoomRequestBody. + :rtype: str + """ + return self._war_room_admin + + @war_room_admin.setter + def war_room_admin(self, war_room_admin): + """Sets the war_room_admin of this CreateWarRoomRequestBody. + + WarRoom管理员 + + :param war_room_admin: The war_room_admin of this CreateWarRoomRequestBody. + :type war_room_admin: str + """ + self._war_room_admin = war_room_admin + + @property + def application_names(self): + """Gets the application_names of this CreateWarRoomRequestBody. + + 应用名称列表 + + :return: The application_names of this CreateWarRoomRequestBody. + :rtype: list[str] + """ + return self._application_names + + @application_names.setter + def application_names(self, application_names): + """Sets the application_names of this CreateWarRoomRequestBody. + + 应用名称列表 + + :param application_names: The application_names of this CreateWarRoomRequestBody. + :type application_names: list[str] + """ + self._application_names = application_names + + @property + def region_names(self): + """Gets the region_names of this CreateWarRoomRequestBody. + + region名称列表 + + :return: The region_names of this CreateWarRoomRequestBody. + :rtype: list[str] + """ + return self._region_names + + @region_names.setter + def region_names(self, region_names): + """Sets the region_names of this CreateWarRoomRequestBody. + + region名称列表 + + :param region_names: The region_names of this CreateWarRoomRequestBody. + :type region_names: list[str] + """ + self._region_names = region_names + + @property + def enterprise_project_id(self): + """Gets the enterprise_project_id of this CreateWarRoomRequestBody. + + 企业项目id + + :return: The enterprise_project_id of this CreateWarRoomRequestBody. + :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 CreateWarRoomRequestBody. + + 企业项目id + + :param enterprise_project_id: The enterprise_project_id of this CreateWarRoomRequestBody. + :type enterprise_project_id: str + """ + self._enterprise_project_id = enterprise_project_id + + @property + def notification_type(self): + """Gets the notification_type of this CreateWarRoomRequestBody. + + 创建群组方式 + + :return: The notification_type of this CreateWarRoomRequestBody. + :rtype: str + """ + return self._notification_type + + @notification_type.setter + def notification_type(self, notification_type): + """Sets the notification_type of this CreateWarRoomRequestBody. + + 创建群组方式 + + :param notification_type: The notification_type of this CreateWarRoomRequestBody. + :type notification_type: str + """ + self._notification_type = notification_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, CreateWarRoomRequestBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/create_war_room_response.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/create_war_room_response.py new file mode 100644 index 0000000000..8f93105498 --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/create_war_room_response.py @@ -0,0 +1,203 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateWarRoomResponse(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 = { + 'provider_code': 'str', + 'error_code': 'str', + 'error_msg': 'str', + 'data': 'str' + } + + attribute_map = { + 'provider_code': 'provider_code', + 'error_code': 'error_code', + 'error_msg': 'error_msg', + 'data': 'data' + } + + def __init__(self, provider_code=None, error_code=None, error_msg=None, data=None): + """CreateWarRoomResponse + + The model defined in huaweicloud sdk + + :param provider_code: 服务标识 + :type provider_code: str + :param error_code: 请求响应代码,范围:0000~9999,正常时取值:0 + :type error_code: str + :param error_msg: 请求响应描述 + :type error_msg: str + :param data: WarRoom id + :type data: str + """ + + super(CreateWarRoomResponse, self).__init__() + + self._provider_code = None + self._error_code = None + self._error_msg = None + self._data = None + self.discriminator = None + + if provider_code is not None: + self.provider_code = provider_code + if error_code is not None: + self.error_code = error_code + if error_msg is not None: + self.error_msg = error_msg + if data is not None: + self.data = data + + @property + def provider_code(self): + """Gets the provider_code of this CreateWarRoomResponse. + + 服务标识 + + :return: The provider_code of this CreateWarRoomResponse. + :rtype: str + """ + return self._provider_code + + @provider_code.setter + def provider_code(self, provider_code): + """Sets the provider_code of this CreateWarRoomResponse. + + 服务标识 + + :param provider_code: The provider_code of this CreateWarRoomResponse. + :type provider_code: str + """ + self._provider_code = provider_code + + @property + def error_code(self): + """Gets the error_code of this CreateWarRoomResponse. + + 请求响应代码,范围:0000~9999,正常时取值:0 + + :return: The error_code of this CreateWarRoomResponse. + :rtype: str + """ + return self._error_code + + @error_code.setter + def error_code(self, error_code): + """Sets the error_code of this CreateWarRoomResponse. + + 请求响应代码,范围:0000~9999,正常时取值:0 + + :param error_code: The error_code of this CreateWarRoomResponse. + :type error_code: str + """ + self._error_code = error_code + + @property + def error_msg(self): + """Gets the error_msg of this CreateWarRoomResponse. + + 请求响应描述 + + :return: The error_msg of this CreateWarRoomResponse. + :rtype: str + """ + return self._error_msg + + @error_msg.setter + def error_msg(self, error_msg): + """Sets the error_msg of this CreateWarRoomResponse. + + 请求响应描述 + + :param error_msg: The error_msg of this CreateWarRoomResponse. + :type error_msg: str + """ + self._error_msg = error_msg + + @property + def data(self): + """Gets the data of this CreateWarRoomResponse. + + WarRoom id + + :return: The data of this CreateWarRoomResponse. + :rtype: str + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this CreateWarRoomResponse. + + WarRoom id + + :param data: The data of this CreateWarRoomResponse. + :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, CreateWarRoomResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/customttribute.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/customttribute.py new file mode 100644 index 0000000000..259c2b0a82 --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/customttribute.py @@ -0,0 +1,142 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class Customttribute: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'key': 'str', + 'value': 'str' + } + + attribute_map = { + 'key': 'key', + 'value': 'value' + } + + def __init__(self, key=None, value=None): + """Customttribute + + The model defined in huaweicloud sdk + + :param key: 自定义属性key + :type key: str + :param value: 自定义属性的value + :type value: str + """ + + + + self._key = None + self._value = None + self.discriminator = None + + self.key = key + self.value = value + + @property + def key(self): + """Gets the key of this Customttribute. + + 自定义属性key + + :return: The key of this Customttribute. + :rtype: str + """ + return self._key + + @key.setter + def key(self, key): + """Sets the key of this Customttribute. + + 自定义属性key + + :param key: The key of this Customttribute. + :type key: str + """ + self._key = key + + @property + def value(self): + """Gets the value of this Customttribute. + + 自定义属性的value + + :return: The value of this Customttribute. + :rtype: str + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this Customttribute. + + 自定义属性的value + + :param value: The value of this Customttribute. + :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, Customttribute): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/delete_script_request.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/delete_script_request.py new file mode 100644 index 0000000000..261540eb4d --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/delete_script_request.py @@ -0,0 +1,201 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteScriptRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'script_uuid': 'str', + 'x_language': 'str', + 'x_project_id': 'str', + 'x_user_profile': 'str' + } + + attribute_map = { + 'script_uuid': 'script_uuid', + 'x_language': 'X-Language', + 'x_project_id': 'x-project-id', + 'x_user_profile': 'x-user-profile' + } + + def __init__(self, script_uuid=None, x_language=None, x_project_id=None, x_user_profile=None): + """DeleteScriptRequest + + The model defined in huaweicloud sdk + + :param script_uuid: 脚本uuid + :type script_uuid: str + :param x_language: 国际化标记,zh-cn表示中文,en-us或不传表示英文 + :type x_language: str + :param x_project_id: 项目ID,一个项目对应一个region + :type x_project_id: str + :param x_user_profile: IAM5.0用户信息 + :type x_user_profile: str + """ + + + + self._script_uuid = None + self._x_language = None + self._x_project_id = None + self._x_user_profile = None + self.discriminator = None + + self.script_uuid = script_uuid + if x_language is not None: + self.x_language = x_language + if x_project_id is not None: + self.x_project_id = x_project_id + if x_user_profile is not None: + self.x_user_profile = x_user_profile + + @property + def script_uuid(self): + """Gets the script_uuid of this DeleteScriptRequest. + + 脚本uuid + + :return: The script_uuid of this DeleteScriptRequest. + :rtype: str + """ + return self._script_uuid + + @script_uuid.setter + def script_uuid(self, script_uuid): + """Sets the script_uuid of this DeleteScriptRequest. + + 脚本uuid + + :param script_uuid: The script_uuid of this DeleteScriptRequest. + :type script_uuid: str + """ + self._script_uuid = script_uuid + + @property + def x_language(self): + """Gets the x_language of this DeleteScriptRequest. + + 国际化标记,zh-cn表示中文,en-us或不传表示英文 + + :return: The x_language of this DeleteScriptRequest. + :rtype: str + """ + return self._x_language + + @x_language.setter + def x_language(self, x_language): + """Sets the x_language of this DeleteScriptRequest. + + 国际化标记,zh-cn表示中文,en-us或不传表示英文 + + :param x_language: The x_language of this DeleteScriptRequest. + :type x_language: str + """ + self._x_language = x_language + + @property + def x_project_id(self): + """Gets the x_project_id of this DeleteScriptRequest. + + 项目ID,一个项目对应一个region + + :return: The x_project_id of this DeleteScriptRequest. + :rtype: str + """ + return self._x_project_id + + @x_project_id.setter + def x_project_id(self, x_project_id): + """Sets the x_project_id of this DeleteScriptRequest. + + 项目ID,一个项目对应一个region + + :param x_project_id: The x_project_id of this DeleteScriptRequest. + :type x_project_id: str + """ + self._x_project_id = x_project_id + + @property + def x_user_profile(self): + """Gets the x_user_profile of this DeleteScriptRequest. + + IAM5.0用户信息 + + :return: The x_user_profile of this DeleteScriptRequest. + :rtype: str + """ + return self._x_user_profile + + @x_user_profile.setter + def x_user_profile(self, x_user_profile): + """Sets the x_user_profile of this DeleteScriptRequest. + + IAM5.0用户信息 + + :param x_user_profile: The x_user_profile of this DeleteScriptRequest. + :type x_user_profile: str + """ + self._x_user_profile = x_user_profile + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteScriptRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/delete_script_response.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/delete_script_response.py new file mode 100644 index 0000000000..1570151fea --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/delete_script_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 DeleteScriptResponse(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): + """DeleteScriptResponse + + The model defined in huaweicloud sdk + + :param data: 被删除脚本的uuid + :type data: str + """ + + super(DeleteScriptResponse, 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 DeleteScriptResponse. + + 被删除脚本的uuid + + :return: The data of this DeleteScriptResponse. + :rtype: str + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this DeleteScriptResponse. + + 被删除脚本的uuid + + :param data: The data of this DeleteScriptResponse. + :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, DeleteScriptResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/edit_script_model.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/edit_script_model.py new file mode 100644 index 0000000000..a9913cb0c2 --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/edit_script_model.py @@ -0,0 +1,196 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class EditScriptModel: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'description': 'str', + 'content': 'str', + 'properties': 'ScriptPropertiesModel', + 'script_params': 'list[ScriptParamDefine]' + } + + attribute_map = { + 'description': 'description', + 'content': 'content', + 'properties': 'properties', + 'script_params': 'script_params' + } + + def __init__(self, description=None, content=None, properties=None, script_params=None): + """EditScriptModel + + The model defined in huaweicloud sdk + + :param description: 脚本描述 + :type description: str + :param content: 脚本内容 + :type content: str + :param properties: + :type properties: :class:`huaweicloudsdkcoc.v1.ScriptPropertiesModel` + :param script_params: 脚本入参 + :type script_params: list[:class:`huaweicloudsdkcoc.v1.ScriptParamDefine`] + """ + + + + self._description = None + self._content = None + self._properties = None + self._script_params = None + self.discriminator = None + + self.description = description + self.content = content + if properties is not None: + self.properties = properties + if script_params is not None: + self.script_params = script_params + + @property + def description(self): + """Gets the description of this EditScriptModel. + + 脚本描述 + + :return: The description of this EditScriptModel. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this EditScriptModel. + + 脚本描述 + + :param description: The description of this EditScriptModel. + :type description: str + """ + self._description = description + + @property + def content(self): + """Gets the content of this EditScriptModel. + + 脚本内容 + + :return: The content of this EditScriptModel. + :rtype: str + """ + return self._content + + @content.setter + def content(self, content): + """Sets the content of this EditScriptModel. + + 脚本内容 + + :param content: The content of this EditScriptModel. + :type content: str + """ + self._content = content + + @property + def properties(self): + """Gets the properties of this EditScriptModel. + + :return: The properties of this EditScriptModel. + :rtype: :class:`huaweicloudsdkcoc.v1.ScriptPropertiesModel` + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this EditScriptModel. + + :param properties: The properties of this EditScriptModel. + :type properties: :class:`huaweicloudsdkcoc.v1.ScriptPropertiesModel` + """ + self._properties = properties + + @property + def script_params(self): + """Gets the script_params of this EditScriptModel. + + 脚本入参 + + :return: The script_params of this EditScriptModel. + :rtype: list[:class:`huaweicloudsdkcoc.v1.ScriptParamDefine`] + """ + return self._script_params + + @script_params.setter + def script_params(self, script_params): + """Sets the script_params of this EditScriptModel. + + 脚本入参 + + :param script_params: The script_params of this EditScriptModel. + :type script_params: list[:class:`huaweicloudsdkcoc.v1.ScriptParamDefine`] + """ + self._script_params = script_params + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, EditScriptModel): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/enum_data_info.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/enum_data_info.py new file mode 100644 index 0000000000..f9c8f16975 --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/enum_data_info.py @@ -0,0 +1,782 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class EnumDataInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'current_cloud_service_id': 'str', + 'description': 'str', + 'level_id': 'str', + 'mtm_region': 'str', + 'mtm_type': 'str', + 'source_id': 'str', + 'title': 'str', + 'is_change_event': 'bool', + 'is_service_interrupt': 'bool', + 'is_deleted': 'bool', + 'match_type': 'str', + 'ticket_id': 'str', + 'name_zh': 'str', + 'name_en': 'str', + 'user_name': 'str', + 'full_name_zh': 'str', + 'full_name_en': 'str', + 'name_zh_path': 'str', + 'name_en_path': 'str', + 'status': 'str', + 'biz_id': 'str', + 'prop_id': 'str', + 'model_id': 'str', + 'enum_type_id': 'str' + } + + attribute_map = { + 'current_cloud_service_id': 'current_cloud_service_id', + 'description': 'description', + 'level_id': 'level_id', + 'mtm_region': 'mtm_region', + 'mtm_type': 'mtm_type', + 'source_id': 'source_id', + 'title': 'title', + 'is_change_event': 'is_change_event', + 'is_service_interrupt': 'is_service_interrupt', + 'is_deleted': 'is_deleted', + 'match_type': 'match_type', + 'ticket_id': 'ticket_id', + 'name_zh': 'name_zh', + 'name_en': 'name_en', + 'user_name': 'user_name', + 'full_name_zh': 'full_name_zh', + 'full_name_en': 'full_name_en', + 'name_zh_path': 'name_zh_path', + 'name_en_path': 'name_en_path', + 'status': 'status', + 'biz_id': 'biz_id', + 'prop_id': 'prop_id', + 'model_id': 'model_id', + 'enum_type_id': 'enum_type_id' + } + + def __init__(self, current_cloud_service_id=None, description=None, level_id=None, mtm_region=None, mtm_type=None, source_id=None, title=None, is_change_event=None, is_service_interrupt=None, is_deleted=None, match_type=None, ticket_id=None, name_zh=None, name_en=None, user_name=None, full_name_zh=None, full_name_en=None, name_zh_path=None, name_en_path=None, status=None, biz_id=None, prop_id=None, model_id=None, enum_type_id=None): + """EnumDataInfo + + The model defined in huaweicloud sdk + + :param current_cloud_service_id: 扩展字段 + :type current_cloud_service_id: str + :param description: 扩展字段 + :type description: str + :param level_id: 扩展字段 + :type level_id: str + :param mtm_region: 扩展字段 + :type mtm_region: str + :param mtm_type: 扩展字段 + :type mtm_type: str + :param source_id: 扩展字段 + :type source_id: str + :param title: 扩展字段 + :type title: str + :param is_change_event: 是否变更事件 + :type is_change_event: bool + :param is_service_interrupt: 是否变更事件 + :type is_service_interrupt: bool + :param is_deleted: 是否删除 + :type is_deleted: bool + :param match_type: 匹配类型 + :type match_type: str + :param ticket_id: 所属单号 + :type ticket_id: str + :param name_zh: 中文名 + :type name_zh: str + :param name_en: 英文名 + :type name_en: str + :param user_name: 工号 + :type user_name: str + :param full_name_zh: 中文名 + :type full_name_zh: str + :param full_name_en: 英文名 + :type full_name_en: str + :param name_zh_path: 中文名路径 + :type name_zh_path: str + :param name_en_path: 中文名路径 + :type name_en_path: str + :param status: status + :type status: str + :param biz_id: 唯一id + :type biz_id: str + :param prop_id: 字段id + :type prop_id: str + :param model_id: 模型id + :type model_id: str + :param enum_type_id: 枚举类型 + :type enum_type_id: str + """ + + + + self._current_cloud_service_id = None + self._description = None + self._level_id = None + self._mtm_region = None + self._mtm_type = None + self._source_id = None + self._title = None + self._is_change_event = None + self._is_service_interrupt = None + self._is_deleted = None + self._match_type = None + self._ticket_id = None + self._name_zh = None + self._name_en = None + self._user_name = None + self._full_name_zh = None + self._full_name_en = None + self._name_zh_path = None + self._name_en_path = None + self._status = None + self._biz_id = None + self._prop_id = None + self._model_id = None + self._enum_type_id = None + self.discriminator = None + + if current_cloud_service_id is not None: + self.current_cloud_service_id = current_cloud_service_id + if description is not None: + self.description = description + if level_id is not None: + self.level_id = level_id + if mtm_region is not None: + self.mtm_region = mtm_region + if mtm_type is not None: + self.mtm_type = mtm_type + if source_id is not None: + self.source_id = source_id + if title is not None: + self.title = title + if is_change_event is not None: + self.is_change_event = is_change_event + if is_service_interrupt is not None: + self.is_service_interrupt = is_service_interrupt + if is_deleted is not None: + self.is_deleted = is_deleted + if match_type is not None: + self.match_type = match_type + if ticket_id is not None: + self.ticket_id = ticket_id + if name_zh is not None: + self.name_zh = name_zh + if name_en is not None: + self.name_en = name_en + if user_name is not None: + self.user_name = user_name + if full_name_zh is not None: + self.full_name_zh = full_name_zh + if full_name_en is not None: + self.full_name_en = full_name_en + if name_zh_path is not None: + self.name_zh_path = name_zh_path + if name_en_path is not None: + self.name_en_path = name_en_path + if status is not None: + self.status = status + if biz_id is not None: + self.biz_id = biz_id + if prop_id is not None: + self.prop_id = prop_id + if model_id is not None: + self.model_id = model_id + if enum_type_id is not None: + self.enum_type_id = enum_type_id + + @property + def current_cloud_service_id(self): + """Gets the current_cloud_service_id of this EnumDataInfo. + + 扩展字段 + + :return: The current_cloud_service_id of this EnumDataInfo. + :rtype: str + """ + return self._current_cloud_service_id + + @current_cloud_service_id.setter + def current_cloud_service_id(self, current_cloud_service_id): + """Sets the current_cloud_service_id of this EnumDataInfo. + + 扩展字段 + + :param current_cloud_service_id: The current_cloud_service_id of this EnumDataInfo. + :type current_cloud_service_id: str + """ + self._current_cloud_service_id = current_cloud_service_id + + @property + def description(self): + """Gets the description of this EnumDataInfo. + + 扩展字段 + + :return: The description of this EnumDataInfo. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this EnumDataInfo. + + 扩展字段 + + :param description: The description of this EnumDataInfo. + :type description: str + """ + self._description = description + + @property + def level_id(self): + """Gets the level_id of this EnumDataInfo. + + 扩展字段 + + :return: The level_id of this EnumDataInfo. + :rtype: str + """ + return self._level_id + + @level_id.setter + def level_id(self, level_id): + """Sets the level_id of this EnumDataInfo. + + 扩展字段 + + :param level_id: The level_id of this EnumDataInfo. + :type level_id: str + """ + self._level_id = level_id + + @property + def mtm_region(self): + """Gets the mtm_region of this EnumDataInfo. + + 扩展字段 + + :return: The mtm_region of this EnumDataInfo. + :rtype: str + """ + return self._mtm_region + + @mtm_region.setter + def mtm_region(self, mtm_region): + """Sets the mtm_region of this EnumDataInfo. + + 扩展字段 + + :param mtm_region: The mtm_region of this EnumDataInfo. + :type mtm_region: str + """ + self._mtm_region = mtm_region + + @property + def mtm_type(self): + """Gets the mtm_type of this EnumDataInfo. + + 扩展字段 + + :return: The mtm_type of this EnumDataInfo. + :rtype: str + """ + return self._mtm_type + + @mtm_type.setter + def mtm_type(self, mtm_type): + """Sets the mtm_type of this EnumDataInfo. + + 扩展字段 + + :param mtm_type: The mtm_type of this EnumDataInfo. + :type mtm_type: str + """ + self._mtm_type = mtm_type + + @property + def source_id(self): + """Gets the source_id of this EnumDataInfo. + + 扩展字段 + + :return: The source_id of this EnumDataInfo. + :rtype: str + """ + return self._source_id + + @source_id.setter + def source_id(self, source_id): + """Sets the source_id of this EnumDataInfo. + + 扩展字段 + + :param source_id: The source_id of this EnumDataInfo. + :type source_id: str + """ + self._source_id = source_id + + @property + def title(self): + """Gets the title of this EnumDataInfo. + + 扩展字段 + + :return: The title of this EnumDataInfo. + :rtype: str + """ + return self._title + + @title.setter + def title(self, title): + """Sets the title of this EnumDataInfo. + + 扩展字段 + + :param title: The title of this EnumDataInfo. + :type title: str + """ + self._title = title + + @property + def is_change_event(self): + """Gets the is_change_event of this EnumDataInfo. + + 是否变更事件 + + :return: The is_change_event of this EnumDataInfo. + :rtype: bool + """ + return self._is_change_event + + @is_change_event.setter + def is_change_event(self, is_change_event): + """Sets the is_change_event of this EnumDataInfo. + + 是否变更事件 + + :param is_change_event: The is_change_event of this EnumDataInfo. + :type is_change_event: bool + """ + self._is_change_event = is_change_event + + @property + def is_service_interrupt(self): + """Gets the is_service_interrupt of this EnumDataInfo. + + 是否变更事件 + + :return: The is_service_interrupt of this EnumDataInfo. + :rtype: bool + """ + return self._is_service_interrupt + + @is_service_interrupt.setter + def is_service_interrupt(self, is_service_interrupt): + """Sets the is_service_interrupt of this EnumDataInfo. + + 是否变更事件 + + :param is_service_interrupt: The is_service_interrupt of this EnumDataInfo. + :type is_service_interrupt: bool + """ + self._is_service_interrupt = is_service_interrupt + + @property + def is_deleted(self): + """Gets the is_deleted of this EnumDataInfo. + + 是否删除 + + :return: The is_deleted of this EnumDataInfo. + :rtype: bool + """ + return self._is_deleted + + @is_deleted.setter + def is_deleted(self, is_deleted): + """Sets the is_deleted of this EnumDataInfo. + + 是否删除 + + :param is_deleted: The is_deleted of this EnumDataInfo. + :type is_deleted: bool + """ + self._is_deleted = is_deleted + + @property + def match_type(self): + """Gets the match_type of this EnumDataInfo. + + 匹配类型 + + :return: The match_type of this EnumDataInfo. + :rtype: str + """ + return self._match_type + + @match_type.setter + def match_type(self, match_type): + """Sets the match_type of this EnumDataInfo. + + 匹配类型 + + :param match_type: The match_type of this EnumDataInfo. + :type match_type: str + """ + self._match_type = match_type + + @property + def ticket_id(self): + """Gets the ticket_id of this EnumDataInfo. + + 所属单号 + + :return: The ticket_id of this EnumDataInfo. + :rtype: str + """ + return self._ticket_id + + @ticket_id.setter + def ticket_id(self, ticket_id): + """Sets the ticket_id of this EnumDataInfo. + + 所属单号 + + :param ticket_id: The ticket_id of this EnumDataInfo. + :type ticket_id: str + """ + self._ticket_id = ticket_id + + @property + def name_zh(self): + """Gets the name_zh of this EnumDataInfo. + + 中文名 + + :return: The name_zh of this EnumDataInfo. + :rtype: str + """ + return self._name_zh + + @name_zh.setter + def name_zh(self, name_zh): + """Sets the name_zh of this EnumDataInfo. + + 中文名 + + :param name_zh: The name_zh of this EnumDataInfo. + :type name_zh: str + """ + self._name_zh = name_zh + + @property + def name_en(self): + """Gets the name_en of this EnumDataInfo. + + 英文名 + + :return: The name_en of this EnumDataInfo. + :rtype: str + """ + return self._name_en + + @name_en.setter + def name_en(self, name_en): + """Sets the name_en of this EnumDataInfo. + + 英文名 + + :param name_en: The name_en of this EnumDataInfo. + :type name_en: str + """ + self._name_en = name_en + + @property + def user_name(self): + """Gets the user_name of this EnumDataInfo. + + 工号 + + :return: The user_name of this EnumDataInfo. + :rtype: str + """ + return self._user_name + + @user_name.setter + def user_name(self, user_name): + """Sets the user_name of this EnumDataInfo. + + 工号 + + :param user_name: The user_name of this EnumDataInfo. + :type user_name: str + """ + self._user_name = user_name + + @property + def full_name_zh(self): + """Gets the full_name_zh of this EnumDataInfo. + + 中文名 + + :return: The full_name_zh of this EnumDataInfo. + :rtype: str + """ + return self._full_name_zh + + @full_name_zh.setter + def full_name_zh(self, full_name_zh): + """Sets the full_name_zh of this EnumDataInfo. + + 中文名 + + :param full_name_zh: The full_name_zh of this EnumDataInfo. + :type full_name_zh: str + """ + self._full_name_zh = full_name_zh + + @property + def full_name_en(self): + """Gets the full_name_en of this EnumDataInfo. + + 英文名 + + :return: The full_name_en of this EnumDataInfo. + :rtype: str + """ + return self._full_name_en + + @full_name_en.setter + def full_name_en(self, full_name_en): + """Sets the full_name_en of this EnumDataInfo. + + 英文名 + + :param full_name_en: The full_name_en of this EnumDataInfo. + :type full_name_en: str + """ + self._full_name_en = full_name_en + + @property + def name_zh_path(self): + """Gets the name_zh_path of this EnumDataInfo. + + 中文名路径 + + :return: The name_zh_path of this EnumDataInfo. + :rtype: str + """ + return self._name_zh_path + + @name_zh_path.setter + def name_zh_path(self, name_zh_path): + """Sets the name_zh_path of this EnumDataInfo. + + 中文名路径 + + :param name_zh_path: The name_zh_path of this EnumDataInfo. + :type name_zh_path: str + """ + self._name_zh_path = name_zh_path + + @property + def name_en_path(self): + """Gets the name_en_path of this EnumDataInfo. + + 中文名路径 + + :return: The name_en_path of this EnumDataInfo. + :rtype: str + """ + return self._name_en_path + + @name_en_path.setter + def name_en_path(self, name_en_path): + """Sets the name_en_path of this EnumDataInfo. + + 中文名路径 + + :param name_en_path: The name_en_path of this EnumDataInfo. + :type name_en_path: str + """ + self._name_en_path = name_en_path + + @property + def status(self): + """Gets the status of this EnumDataInfo. + + status + + :return: The status of this EnumDataInfo. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this EnumDataInfo. + + status + + :param status: The status of this EnumDataInfo. + :type status: str + """ + self._status = status + + @property + def biz_id(self): + """Gets the biz_id of this EnumDataInfo. + + 唯一id + + :return: The biz_id of this EnumDataInfo. + :rtype: str + """ + return self._biz_id + + @biz_id.setter + def biz_id(self, biz_id): + """Sets the biz_id of this EnumDataInfo. + + 唯一id + + :param biz_id: The biz_id of this EnumDataInfo. + :type biz_id: str + """ + self._biz_id = biz_id + + @property + def prop_id(self): + """Gets the prop_id of this EnumDataInfo. + + 字段id + + :return: The prop_id of this EnumDataInfo. + :rtype: str + """ + return self._prop_id + + @prop_id.setter + def prop_id(self, prop_id): + """Sets the prop_id of this EnumDataInfo. + + 字段id + + :param prop_id: The prop_id of this EnumDataInfo. + :type prop_id: str + """ + self._prop_id = prop_id + + @property + def model_id(self): + """Gets the model_id of this EnumDataInfo. + + 模型id + + :return: The model_id of this EnumDataInfo. + :rtype: str + """ + return self._model_id + + @model_id.setter + def model_id(self, model_id): + """Sets the model_id of this EnumDataInfo. + + 模型id + + :param model_id: The model_id of this EnumDataInfo. + :type model_id: str + """ + self._model_id = model_id + + @property + def enum_type_id(self): + """Gets the enum_type_id of this EnumDataInfo. + + 枚举类型 + + :return: The enum_type_id of this EnumDataInfo. + :rtype: str + """ + return self._enum_type_id + + @enum_type_id.setter + def enum_type_id(self, enum_type_id): + """Sets the enum_type_id of this EnumDataInfo. + + 枚举类型 + + :param enum_type_id: The enum_type_id of this EnumDataInfo. + :type enum_type_id: str + """ + self._enum_type_id = enum_type_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, EnumDataInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/exection_instance_model.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/exection_instance_model.py new file mode 100644 index 0000000000..bf564e0c8c --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/exection_instance_model.py @@ -0,0 +1,285 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ExectionInstanceModel: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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': 'int', + 'target_instance': 'ResourceInstance', + 'gmt_created': 'int', + 'gmt_finished': 'int', + 'execute_costs': 'int', + 'status': 'str', + 'message': 'str' + } + + attribute_map = { + 'id': 'id', + 'target_instance': 'target_instance', + 'gmt_created': 'gmt_created', + 'gmt_finished': 'gmt_finished', + 'execute_costs': 'execute_costs', + 'status': 'status', + 'message': 'message' + } + + def __init__(self, id=None, target_instance=None, gmt_created=None, gmt_finished=None, execute_costs=None, status=None, message=None): + """ExectionInstanceModel + + The model defined in huaweicloud sdk + + :param id: 主键id + :type id: int + :param target_instance: + :type target_instance: :class:`huaweicloudsdkcoc.v1.ResourceInstance` + :param gmt_created: 创建时间 + :type gmt_created: int + :param gmt_finished: 完成时间 + :type gmt_finished: int + :param execute_costs: 耗时时间,单位:秒 + :type execute_costs: int + :param status: 实例执行状态 + :type status: str + :param message: 实例执行日志 + :type message: str + """ + + + + self._id = None + self._target_instance = None + self._gmt_created = None + self._gmt_finished = None + self._execute_costs = None + self._status = None + self._message = None + self.discriminator = None + + if id is not None: + self.id = id + if target_instance is not None: + self.target_instance = target_instance + if gmt_created is not None: + self.gmt_created = gmt_created + if gmt_finished is not None: + self.gmt_finished = gmt_finished + if execute_costs is not None: + self.execute_costs = execute_costs + if status is not None: + self.status = status + if message is not None: + self.message = message + + @property + def id(self): + """Gets the id of this ExectionInstanceModel. + + 主键id + + :return: The id of this ExectionInstanceModel. + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this ExectionInstanceModel. + + 主键id + + :param id: The id of this ExectionInstanceModel. + :type id: int + """ + self._id = id + + @property + def target_instance(self): + """Gets the target_instance of this ExectionInstanceModel. + + :return: The target_instance of this ExectionInstanceModel. + :rtype: :class:`huaweicloudsdkcoc.v1.ResourceInstance` + """ + return self._target_instance + + @target_instance.setter + def target_instance(self, target_instance): + """Sets the target_instance of this ExectionInstanceModel. + + :param target_instance: The target_instance of this ExectionInstanceModel. + :type target_instance: :class:`huaweicloudsdkcoc.v1.ResourceInstance` + """ + self._target_instance = target_instance + + @property + def gmt_created(self): + """Gets the gmt_created of this ExectionInstanceModel. + + 创建时间 + + :return: The gmt_created of this ExectionInstanceModel. + :rtype: int + """ + return self._gmt_created + + @gmt_created.setter + def gmt_created(self, gmt_created): + """Sets the gmt_created of this ExectionInstanceModel. + + 创建时间 + + :param gmt_created: The gmt_created of this ExectionInstanceModel. + :type gmt_created: int + """ + self._gmt_created = gmt_created + + @property + def gmt_finished(self): + """Gets the gmt_finished of this ExectionInstanceModel. + + 完成时间 + + :return: The gmt_finished of this ExectionInstanceModel. + :rtype: int + """ + return self._gmt_finished + + @gmt_finished.setter + def gmt_finished(self, gmt_finished): + """Sets the gmt_finished of this ExectionInstanceModel. + + 完成时间 + + :param gmt_finished: The gmt_finished of this ExectionInstanceModel. + :type gmt_finished: int + """ + self._gmt_finished = gmt_finished + + @property + def execute_costs(self): + """Gets the execute_costs of this ExectionInstanceModel. + + 耗时时间,单位:秒 + + :return: The execute_costs of this ExectionInstanceModel. + :rtype: int + """ + return self._execute_costs + + @execute_costs.setter + def execute_costs(self, execute_costs): + """Sets the execute_costs of this ExectionInstanceModel. + + 耗时时间,单位:秒 + + :param execute_costs: The execute_costs of this ExectionInstanceModel. + :type execute_costs: int + """ + self._execute_costs = execute_costs + + @property + def status(self): + """Gets the status of this ExectionInstanceModel. + + 实例执行状态 + + :return: The status of this ExectionInstanceModel. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ExectionInstanceModel. + + 实例执行状态 + + :param status: The status of this ExectionInstanceModel. + :type status: str + """ + self._status = status + + @property + def message(self): + """Gets the message of this ExectionInstanceModel. + + 实例执行日志 + + :return: The message of this ExectionInstanceModel. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this ExectionInstanceModel. + + 实例执行日志 + + :param message: The message of this ExectionInstanceModel. + :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, ExectionInstanceModel): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/exectuion_statistic.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/exectuion_statistic.py new file mode 100644 index 0000000000..0923767cbf --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/exectuion_statistic.py @@ -0,0 +1,170 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ExectuionStatistic: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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_status': 'str', + 'instance_count': 'int', + 'batch_indexes': 'list[int]' + } + + attribute_map = { + 'instance_status': 'instance_status', + 'instance_count': 'instance_count', + 'batch_indexes': 'batch_indexes' + } + + def __init__(self, instance_status=None, instance_count=None, batch_indexes=None): + """ExectuionStatistic + + The model defined in huaweicloud sdk + + :param instance_status: 执行实例状态 + :type instance_status: str + :param instance_count: 该状态下执行实例个数 + :type instance_count: int + :param batch_indexes: 该状态下批次index列表 + :type batch_indexes: list[int] + """ + + + + self._instance_status = None + self._instance_count = None + self._batch_indexes = None + self.discriminator = None + + self.instance_status = instance_status + self.instance_count = instance_count + self.batch_indexes = batch_indexes + + @property + def instance_status(self): + """Gets the instance_status of this ExectuionStatistic. + + 执行实例状态 + + :return: The instance_status of this ExectuionStatistic. + :rtype: str + """ + return self._instance_status + + @instance_status.setter + def instance_status(self, instance_status): + """Sets the instance_status of this ExectuionStatistic. + + 执行实例状态 + + :param instance_status: The instance_status of this ExectuionStatistic. + :type instance_status: str + """ + self._instance_status = instance_status + + @property + def instance_count(self): + """Gets the instance_count of this ExectuionStatistic. + + 该状态下执行实例个数 + + :return: The instance_count of this ExectuionStatistic. + :rtype: int + """ + return self._instance_count + + @instance_count.setter + def instance_count(self, instance_count): + """Sets the instance_count of this ExectuionStatistic. + + 该状态下执行实例个数 + + :param instance_count: The instance_count of this ExectuionStatistic. + :type instance_count: int + """ + self._instance_count = instance_count + + @property + def batch_indexes(self): + """Gets the batch_indexes of this ExectuionStatistic. + + 该状态下批次index列表 + + :return: The batch_indexes of this ExectuionStatistic. + :rtype: list[int] + """ + return self._batch_indexes + + @batch_indexes.setter + def batch_indexes(self, batch_indexes): + """Sets the batch_indexes of this ExectuionStatistic. + + 该状态下批次index列表 + + :param batch_indexes: The batch_indexes of this ExectuionStatistic. + :type batch_indexes: list[int] + """ + self._batch_indexes = batch_indexes + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ExectuionStatistic): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/execute_instances_batch_info.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/execute_instances_batch_info.py new file mode 100644 index 0000000000..c56c81ae52 --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/execute_instances_batch_info.py @@ -0,0 +1,170 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ExecuteInstancesBatchInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'batch_index': 'int', + 'target_instances': 'list[ExecuteResourceInstance]', + 'rotation_strategy': 'str' + } + + attribute_map = { + 'batch_index': 'batch_index', + 'target_instances': 'target_instances', + 'rotation_strategy': 'rotation_strategy' + } + + def __init__(self, batch_index=None, target_instances=None, rotation_strategy=None): + """ExecuteInstancesBatchInfo + + The model defined in huaweicloud sdk + + :param batch_index: 批次索引,从1开始,未校验:最大值 + :type batch_index: int + :param target_instances: 目标节点列表 + :type target_instances: list[:class:`huaweicloudsdkcoc.v1.ExecuteResourceInstance`] + :param rotation_strategy: 暂停继续策略 + :type rotation_strategy: str + """ + + + + self._batch_index = None + self._target_instances = None + self._rotation_strategy = None + self.discriminator = None + + self.batch_index = batch_index + self.target_instances = target_instances + self.rotation_strategy = rotation_strategy + + @property + def batch_index(self): + """Gets the batch_index of this ExecuteInstancesBatchInfo. + + 批次索引,从1开始,未校验:最大值 + + :return: The batch_index of this ExecuteInstancesBatchInfo. + :rtype: int + """ + return self._batch_index + + @batch_index.setter + def batch_index(self, batch_index): + """Sets the batch_index of this ExecuteInstancesBatchInfo. + + 批次索引,从1开始,未校验:最大值 + + :param batch_index: The batch_index of this ExecuteInstancesBatchInfo. + :type batch_index: int + """ + self._batch_index = batch_index + + @property + def target_instances(self): + """Gets the target_instances of this ExecuteInstancesBatchInfo. + + 目标节点列表 + + :return: The target_instances of this ExecuteInstancesBatchInfo. + :rtype: list[:class:`huaweicloudsdkcoc.v1.ExecuteResourceInstance`] + """ + return self._target_instances + + @target_instances.setter + def target_instances(self, target_instances): + """Sets the target_instances of this ExecuteInstancesBatchInfo. + + 目标节点列表 + + :param target_instances: The target_instances of this ExecuteInstancesBatchInfo. + :type target_instances: list[:class:`huaweicloudsdkcoc.v1.ExecuteResourceInstance`] + """ + self._target_instances = target_instances + + @property + def rotation_strategy(self): + """Gets the rotation_strategy of this ExecuteInstancesBatchInfo. + + 暂停继续策略 + + :return: The rotation_strategy of this ExecuteInstancesBatchInfo. + :rtype: str + """ + return self._rotation_strategy + + @rotation_strategy.setter + def rotation_strategy(self, rotation_strategy): + """Sets the rotation_strategy of this ExecuteInstancesBatchInfo. + + 暂停继续策略 + + :param rotation_strategy: The rotation_strategy of this ExecuteInstancesBatchInfo. + :type rotation_strategy: str + """ + self._rotation_strategy = rotation_strategy + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ExecuteInstancesBatchInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/execute_public_script_request.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/execute_public_script_request.py new file mode 100644 index 0000000000..2fac09ad29 --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/execute_public_script_request.py @@ -0,0 +1,226 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ExecutePublicScriptRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'script_uuid': 'str', + 'x_language': 'str', + 'x_project_id': 'str', + 'x_user_profile': 'str', + 'body': 'ScriptExecuteModel' + } + + attribute_map = { + 'script_uuid': 'script_uuid', + 'x_language': 'X-Language', + 'x_project_id': 'x-project-id', + 'x_user_profile': 'x-user-profile', + 'body': 'body' + } + + def __init__(self, script_uuid=None, x_language=None, x_project_id=None, x_user_profile=None, body=None): + """ExecutePublicScriptRequest + + The model defined in huaweicloud sdk + + :param script_uuid: 公共脚本Uuid + :type script_uuid: str + :param x_language: 国际化标记,zh-cn表示中文,en-us或不传表示英文 + :type x_language: str + :param x_project_id: 项目ID,一个项目对应一个region + :type x_project_id: str + :param x_user_profile: IAM5.0用户信息 + :type x_user_profile: str + :param body: Body of the ExecutePublicScriptRequest + :type body: :class:`huaweicloudsdkcoc.v1.ScriptExecuteModel` + """ + + + + self._script_uuid = None + self._x_language = None + self._x_project_id = None + self._x_user_profile = None + self._body = None + self.discriminator = None + + self.script_uuid = script_uuid + if x_language is not None: + self.x_language = x_language + if x_project_id is not None: + self.x_project_id = x_project_id + if x_user_profile is not None: + self.x_user_profile = x_user_profile + if body is not None: + self.body = body + + @property + def script_uuid(self): + """Gets the script_uuid of this ExecutePublicScriptRequest. + + 公共脚本Uuid + + :return: The script_uuid of this ExecutePublicScriptRequest. + :rtype: str + """ + return self._script_uuid + + @script_uuid.setter + def script_uuid(self, script_uuid): + """Sets the script_uuid of this ExecutePublicScriptRequest. + + 公共脚本Uuid + + :param script_uuid: The script_uuid of this ExecutePublicScriptRequest. + :type script_uuid: str + """ + self._script_uuid = script_uuid + + @property + def x_language(self): + """Gets the x_language of this ExecutePublicScriptRequest. + + 国际化标记,zh-cn表示中文,en-us或不传表示英文 + + :return: The x_language of this ExecutePublicScriptRequest. + :rtype: str + """ + return self._x_language + + @x_language.setter + def x_language(self, x_language): + """Sets the x_language of this ExecutePublicScriptRequest. + + 国际化标记,zh-cn表示中文,en-us或不传表示英文 + + :param x_language: The x_language of this ExecutePublicScriptRequest. + :type x_language: str + """ + self._x_language = x_language + + @property + def x_project_id(self): + """Gets the x_project_id of this ExecutePublicScriptRequest. + + 项目ID,一个项目对应一个region + + :return: The x_project_id of this ExecutePublicScriptRequest. + :rtype: str + """ + return self._x_project_id + + @x_project_id.setter + def x_project_id(self, x_project_id): + """Sets the x_project_id of this ExecutePublicScriptRequest. + + 项目ID,一个项目对应一个region + + :param x_project_id: The x_project_id of this ExecutePublicScriptRequest. + :type x_project_id: str + """ + self._x_project_id = x_project_id + + @property + def x_user_profile(self): + """Gets the x_user_profile of this ExecutePublicScriptRequest. + + IAM5.0用户信息 + + :return: The x_user_profile of this ExecutePublicScriptRequest. + :rtype: str + """ + return self._x_user_profile + + @x_user_profile.setter + def x_user_profile(self, x_user_profile): + """Sets the x_user_profile of this ExecutePublicScriptRequest. + + IAM5.0用户信息 + + :param x_user_profile: The x_user_profile of this ExecutePublicScriptRequest. + :type x_user_profile: str + """ + self._x_user_profile = x_user_profile + + @property + def body(self): + """Gets the body of this ExecutePublicScriptRequest. + + :return: The body of this ExecutePublicScriptRequest. + :rtype: :class:`huaweicloudsdkcoc.v1.ScriptExecuteModel` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this ExecutePublicScriptRequest. + + :param body: The body of this ExecutePublicScriptRequest. + :type body: :class:`huaweicloudsdkcoc.v1.ScriptExecuteModel` + """ + 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, ExecutePublicScriptRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/execute_public_script_response.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/execute_public_script_response.py new file mode 100644 index 0000000000..d9c8298688 --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/execute_public_script_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 ExecutePublicScriptResponse(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): + """ExecutePublicScriptResponse + + The model defined in huaweicloud sdk + + :param data: 执行公共脚本返回体:execute_uuid + :type data: str + """ + + super(ExecutePublicScriptResponse, 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 ExecutePublicScriptResponse. + + 执行公共脚本返回体:execute_uuid + + :return: The data of this ExecutePublicScriptResponse. + :rtype: str + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this ExecutePublicScriptResponse. + + 执行公共脚本返回体:execute_uuid + + :param data: The data of this ExecutePublicScriptResponse. + :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, ExecutePublicScriptResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/execute_resource_instance.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/execute_resource_instance.py new file mode 100644 index 0000000000..0699c1c69e --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/execute_resource_instance.py @@ -0,0 +1,287 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ExecuteResourceInstance: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'region_id': 'str', + 'provider': 'str', + 'type': 'str', + 'custom_attributes': 'list[Customttribute]', + 'agent_sn': 'str', + 'project_id': 'str' + } + + attribute_map = { + 'resource_id': 'resource_id', + 'region_id': 'region_id', + 'provider': 'provider', + 'type': 'type', + 'custom_attributes': 'custom_attributes', + 'agent_sn': 'agent_sn', + 'project_id': 'project_id' + } + + def __init__(self, resource_id=None, region_id=None, provider=None, type=None, custom_attributes=None, agent_sn=None, project_id=None): + """ExecuteResourceInstance + + The model defined in huaweicloud sdk + + :param resource_id: ecs云服务器ID + :type resource_id: str + :param region_id: 服务器所属region + :type region_id: str + :param provider: 资源提供者:ECS,不传默认为:ECS。请保证一次执行, 每个实例的provider是一致的。后续扩展CCE等 + :type provider: str + :param type: 资源提供者下资源类型,不传默认为CLOUDSERVER CLOUDSERVER:CLOUDSERVER类型 约束: -不允许跨type支持 + :type type: str + :param custom_attributes: 支持用户自定义5个key_value形式的属性。 约束条件: - key值长度为10 - value长度为20 - map长度最大为5 - 禁止填写敏感数据 + :type custom_attributes: list[:class:`huaweicloudsdkcoc.v1.Customttribute`] + :param agent_sn: 该参数已废弃,传入该参数不会生效。 + :type agent_sn: str + :param project_id: 该参数已废弃,传入该参数不会生效。 + :type project_id: str + """ + + + + self._resource_id = None + self._region_id = None + self._provider = None + self._type = None + self._custom_attributes = None + self._agent_sn = None + self._project_id = None + self.discriminator = None + + self.resource_id = resource_id + self.region_id = region_id + if provider is not None: + self.provider = provider + if type is not None: + self.type = type + if custom_attributes is not None: + self.custom_attributes = custom_attributes + if agent_sn is not None: + self.agent_sn = agent_sn + if project_id is not None: + self.project_id = project_id + + @property + def resource_id(self): + """Gets the resource_id of this ExecuteResourceInstance. + + ecs云服务器ID + + :return: The resource_id of this ExecuteResourceInstance. + :rtype: str + """ + return self._resource_id + + @resource_id.setter + def resource_id(self, resource_id): + """Sets the resource_id of this ExecuteResourceInstance. + + ecs云服务器ID + + :param resource_id: The resource_id of this ExecuteResourceInstance. + :type resource_id: str + """ + self._resource_id = resource_id + + @property + def region_id(self): + """Gets the region_id of this ExecuteResourceInstance. + + 服务器所属region + + :return: The region_id of this ExecuteResourceInstance. + :rtype: str + """ + return self._region_id + + @region_id.setter + def region_id(self, region_id): + """Sets the region_id of this ExecuteResourceInstance. + + 服务器所属region + + :param region_id: The region_id of this ExecuteResourceInstance. + :type region_id: str + """ + self._region_id = region_id + + @property + def provider(self): + """Gets the provider of this ExecuteResourceInstance. + + 资源提供者:ECS,不传默认为:ECS。请保证一次执行, 每个实例的provider是一致的。后续扩展CCE等 + + :return: The provider of this ExecuteResourceInstance. + :rtype: str + """ + return self._provider + + @provider.setter + def provider(self, provider): + """Sets the provider of this ExecuteResourceInstance. + + 资源提供者:ECS,不传默认为:ECS。请保证一次执行, 每个实例的provider是一致的。后续扩展CCE等 + + :param provider: The provider of this ExecuteResourceInstance. + :type provider: str + """ + self._provider = provider + + @property + def type(self): + """Gets the type of this ExecuteResourceInstance. + + 资源提供者下资源类型,不传默认为CLOUDSERVER CLOUDSERVER:CLOUDSERVER类型 约束: -不允许跨type支持 + + :return: The type of this ExecuteResourceInstance. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this ExecuteResourceInstance. + + 资源提供者下资源类型,不传默认为CLOUDSERVER CLOUDSERVER:CLOUDSERVER类型 约束: -不允许跨type支持 + + :param type: The type of this ExecuteResourceInstance. + :type type: str + """ + self._type = type + + @property + def custom_attributes(self): + """Gets the custom_attributes of this ExecuteResourceInstance. + + 支持用户自定义5个key_value形式的属性。 约束条件: - key值长度为10 - value长度为20 - map长度最大为5 - 禁止填写敏感数据 + + :return: The custom_attributes of this ExecuteResourceInstance. + :rtype: list[:class:`huaweicloudsdkcoc.v1.Customttribute`] + """ + return self._custom_attributes + + @custom_attributes.setter + def custom_attributes(self, custom_attributes): + """Sets the custom_attributes of this ExecuteResourceInstance. + + 支持用户自定义5个key_value形式的属性。 约束条件: - key值长度为10 - value长度为20 - map长度最大为5 - 禁止填写敏感数据 + + :param custom_attributes: The custom_attributes of this ExecuteResourceInstance. + :type custom_attributes: list[:class:`huaweicloudsdkcoc.v1.Customttribute`] + """ + self._custom_attributes = custom_attributes + + @property + def agent_sn(self): + """Gets the agent_sn of this ExecuteResourceInstance. + + 该参数已废弃,传入该参数不会生效。 + + :return: The agent_sn of this ExecuteResourceInstance. + :rtype: str + """ + return self._agent_sn + + @agent_sn.setter + def agent_sn(self, agent_sn): + """Sets the agent_sn of this ExecuteResourceInstance. + + 该参数已废弃,传入该参数不会生效。 + + :param agent_sn: The agent_sn of this ExecuteResourceInstance. + :type agent_sn: str + """ + self._agent_sn = agent_sn + + @property + def project_id(self): + """Gets the project_id of this ExecuteResourceInstance. + + 该参数已废弃,传入该参数不会生效。 + + :return: The project_id of this ExecuteResourceInstance. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this ExecuteResourceInstance. + + 该参数已废弃,传入该参数不会生效。 + + :param project_id: The project_id of this ExecuteResourceInstance. + :type project_id: str + """ + self._project_id = project_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, ExecuteResourceInstance): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/execute_script_request.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/execute_script_request.py new file mode 100644 index 0000000000..86b204a267 --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/execute_script_request.py @@ -0,0 +1,226 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ExecuteScriptRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'script_uuid': 'str', + 'x_language': 'str', + 'x_project_id': 'str', + 'x_user_profile': 'str', + 'body': 'ScriptExecuteModel' + } + + attribute_map = { + 'script_uuid': 'script_uuid', + 'x_language': 'X-Language', + 'x_project_id': 'x-project-id', + 'x_user_profile': 'x-user-profile', + 'body': 'body' + } + + def __init__(self, script_uuid=None, x_language=None, x_project_id=None, x_user_profile=None, body=None): + """ExecuteScriptRequest + + The model defined in huaweicloud sdk + + :param script_uuid: 脚本UUID + :type script_uuid: str + :param x_language: 国际化标记,zh-cn表示中文,en-us或不传表示英文 + :type x_language: str + :param x_project_id: 项目ID,一个项目对应一个region + :type x_project_id: str + :param x_user_profile: IAM5.0用户信息 + :type x_user_profile: str + :param body: Body of the ExecuteScriptRequest + :type body: :class:`huaweicloudsdkcoc.v1.ScriptExecuteModel` + """ + + + + self._script_uuid = None + self._x_language = None + self._x_project_id = None + self._x_user_profile = None + self._body = None + self.discriminator = None + + self.script_uuid = script_uuid + if x_language is not None: + self.x_language = x_language + if x_project_id is not None: + self.x_project_id = x_project_id + if x_user_profile is not None: + self.x_user_profile = x_user_profile + if body is not None: + self.body = body + + @property + def script_uuid(self): + """Gets the script_uuid of this ExecuteScriptRequest. + + 脚本UUID + + :return: The script_uuid of this ExecuteScriptRequest. + :rtype: str + """ + return self._script_uuid + + @script_uuid.setter + def script_uuid(self, script_uuid): + """Sets the script_uuid of this ExecuteScriptRequest. + + 脚本UUID + + :param script_uuid: The script_uuid of this ExecuteScriptRequest. + :type script_uuid: str + """ + self._script_uuid = script_uuid + + @property + def x_language(self): + """Gets the x_language of this ExecuteScriptRequest. + + 国际化标记,zh-cn表示中文,en-us或不传表示英文 + + :return: The x_language of this ExecuteScriptRequest. + :rtype: str + """ + return self._x_language + + @x_language.setter + def x_language(self, x_language): + """Sets the x_language of this ExecuteScriptRequest. + + 国际化标记,zh-cn表示中文,en-us或不传表示英文 + + :param x_language: The x_language of this ExecuteScriptRequest. + :type x_language: str + """ + self._x_language = x_language + + @property + def x_project_id(self): + """Gets the x_project_id of this ExecuteScriptRequest. + + 项目ID,一个项目对应一个region + + :return: The x_project_id of this ExecuteScriptRequest. + :rtype: str + """ + return self._x_project_id + + @x_project_id.setter + def x_project_id(self, x_project_id): + """Sets the x_project_id of this ExecuteScriptRequest. + + 项目ID,一个项目对应一个region + + :param x_project_id: The x_project_id of this ExecuteScriptRequest. + :type x_project_id: str + """ + self._x_project_id = x_project_id + + @property + def x_user_profile(self): + """Gets the x_user_profile of this ExecuteScriptRequest. + + IAM5.0用户信息 + + :return: The x_user_profile of this ExecuteScriptRequest. + :rtype: str + """ + return self._x_user_profile + + @x_user_profile.setter + def x_user_profile(self, x_user_profile): + """Sets the x_user_profile of this ExecuteScriptRequest. + + IAM5.0用户信息 + + :param x_user_profile: The x_user_profile of this ExecuteScriptRequest. + :type x_user_profile: str + """ + self._x_user_profile = x_user_profile + + @property + def body(self): + """Gets the body of this ExecuteScriptRequest. + + :return: The body of this ExecuteScriptRequest. + :rtype: :class:`huaweicloudsdkcoc.v1.ScriptExecuteModel` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this ExecuteScriptRequest. + + :param body: The body of this ExecuteScriptRequest. + :type body: :class:`huaweicloudsdkcoc.v1.ScriptExecuteModel` + """ + 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, ExecuteScriptRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/execute_script_response.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/execute_script_response.py new file mode 100644 index 0000000000..ec1d3f30a5 --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/execute_script_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 ExecuteScriptResponse(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): + """ExecuteScriptResponse + + The model defined in huaweicloud sdk + + :param error_code: 错误码 + :type error_code: str + :param error_msg: 错误描述 + :type error_msg: str + """ + + super(ExecuteScriptResponse, 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 ExecuteScriptResponse. + + 错误码 + + :return: The error_code of this ExecuteScriptResponse. + :rtype: str + """ + return self._error_code + + @error_code.setter + def error_code(self, error_code): + """Sets the error_code of this ExecuteScriptResponse. + + 错误码 + + :param error_code: The error_code of this ExecuteScriptResponse. + :type error_code: str + """ + self._error_code = error_code + + @property + def error_msg(self): + """Gets the error_msg of this ExecuteScriptResponse. + + 错误描述 + + :return: The error_msg of this ExecuteScriptResponse. + :rtype: str + """ + return self._error_msg + + @error_msg.setter + def error_msg(self, error_msg): + """Sets the error_msg of this ExecuteScriptResponse. + + 错误描述 + + :param error_msg: The error_msg of this ExecuteScriptResponse. + :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, ExecuteScriptResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/execution_summary.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/execution_summary.py new file mode 100644 index 0000000000..193fe69cfa --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/execution_summary.py @@ -0,0 +1,173 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ExecutionSummary: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'order_id': 'str', + 'job_id': 'str', + 'report_time': 'int' + } + + attribute_map = { + 'order_id': 'order_id', + 'job_id': 'job_id', + 'report_time': 'report_time' + } + + def __init__(self, order_id=None, job_id=None, report_time=None): + """ExecutionSummary + + The model defined in huaweicloud sdk + + :param order_id: 工单Id + :type order_id: str + :param job_id: 脚本执行Id + :type job_id: str + :param report_time: 报告时间 + :type report_time: int + """ + + + + self._order_id = None + self._job_id = None + self._report_time = None + self.discriminator = None + + if order_id is not None: + self.order_id = order_id + if job_id is not None: + self.job_id = job_id + if report_time is not None: + self.report_time = report_time + + @property + def order_id(self): + """Gets the order_id of this ExecutionSummary. + + 工单Id + + :return: The order_id of this ExecutionSummary. + :rtype: str + """ + return self._order_id + + @order_id.setter + def order_id(self, order_id): + """Sets the order_id of this ExecutionSummary. + + 工单Id + + :param order_id: The order_id of this ExecutionSummary. + :type order_id: str + """ + self._order_id = order_id + + @property + def job_id(self): + """Gets the job_id of this ExecutionSummary. + + 脚本执行Id + + :return: The job_id of this ExecutionSummary. + :rtype: str + """ + return self._job_id + + @job_id.setter + def job_id(self, job_id): + """Sets the job_id of this ExecutionSummary. + + 脚本执行Id + + :param job_id: The job_id of this ExecutionSummary. + :type job_id: str + """ + self._job_id = job_id + + @property + def report_time(self): + """Gets the report_time of this ExecutionSummary. + + 报告时间 + + :return: The report_time of this ExecutionSummary. + :rtype: int + """ + return self._report_time + + @report_time.setter + def report_time(self, report_time): + """Sets the report_time of this ExecutionSummary. + + 报告时间 + + :param report_time: The report_time of this ExecutionSummary. + :type report_time: int + """ + self._report_time = report_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, ExecutionSummary): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/extra_field_info.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/extra_field_info.py new file mode 100644 index 0000000000..c88cd4a3eb --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/extra_field_info.py @@ -0,0 +1,347 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ExtraFieldInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'current_cloud_service_id': 'str', + 'description': 'str', + 'level_id': 'str', + 'mtm_region': 'str', + 'mtm_type': 'str', + 'source_id': 'str', + 'title': 'str', + 'is_change_event': 'bool', + 'is_service_interrupt': 'bool' + } + + attribute_map = { + 'current_cloud_service_id': 'current_cloud_service_id', + 'description': 'description', + 'level_id': 'level_id', + 'mtm_region': 'mtm_region', + 'mtm_type': 'mtm_type', + 'source_id': 'source_id', + 'title': 'title', + 'is_change_event': 'is_change_event', + 'is_service_interrupt': 'is_service_interrupt' + } + + def __init__(self, current_cloud_service_id=None, description=None, level_id=None, mtm_region=None, mtm_type=None, source_id=None, title=None, is_change_event=None, is_service_interrupt=None): + """ExtraFieldInfo + + The model defined in huaweicloud sdk + + :param current_cloud_service_id: 扩展字段 + :type current_cloud_service_id: str + :param description: 扩展字段 + :type description: str + :param level_id: 扩展字段 + :type level_id: str + :param mtm_region: 扩展字段 + :type mtm_region: str + :param mtm_type: 扩展字段 + :type mtm_type: str + :param source_id: 扩展字段 + :type source_id: str + :param title: 扩展字段 + :type title: str + :param is_change_event: 是否变更事件 + :type is_change_event: bool + :param is_service_interrupt: 是否变更事件 + :type is_service_interrupt: bool + """ + + + + self._current_cloud_service_id = None + self._description = None + self._level_id = None + self._mtm_region = None + self._mtm_type = None + self._source_id = None + self._title = None + self._is_change_event = None + self._is_service_interrupt = None + self.discriminator = None + + if current_cloud_service_id is not None: + self.current_cloud_service_id = current_cloud_service_id + if description is not None: + self.description = description + if level_id is not None: + self.level_id = level_id + if mtm_region is not None: + self.mtm_region = mtm_region + if mtm_type is not None: + self.mtm_type = mtm_type + if source_id is not None: + self.source_id = source_id + if title is not None: + self.title = title + if is_change_event is not None: + self.is_change_event = is_change_event + if is_service_interrupt is not None: + self.is_service_interrupt = is_service_interrupt + + @property + def current_cloud_service_id(self): + """Gets the current_cloud_service_id of this ExtraFieldInfo. + + 扩展字段 + + :return: The current_cloud_service_id of this ExtraFieldInfo. + :rtype: str + """ + return self._current_cloud_service_id + + @current_cloud_service_id.setter + def current_cloud_service_id(self, current_cloud_service_id): + """Sets the current_cloud_service_id of this ExtraFieldInfo. + + 扩展字段 + + :param current_cloud_service_id: The current_cloud_service_id of this ExtraFieldInfo. + :type current_cloud_service_id: str + """ + self._current_cloud_service_id = current_cloud_service_id + + @property + def description(self): + """Gets the description of this ExtraFieldInfo. + + 扩展字段 + + :return: The description of this ExtraFieldInfo. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this ExtraFieldInfo. + + 扩展字段 + + :param description: The description of this ExtraFieldInfo. + :type description: str + """ + self._description = description + + @property + def level_id(self): + """Gets the level_id of this ExtraFieldInfo. + + 扩展字段 + + :return: The level_id of this ExtraFieldInfo. + :rtype: str + """ + return self._level_id + + @level_id.setter + def level_id(self, level_id): + """Sets the level_id of this ExtraFieldInfo. + + 扩展字段 + + :param level_id: The level_id of this ExtraFieldInfo. + :type level_id: str + """ + self._level_id = level_id + + @property + def mtm_region(self): + """Gets the mtm_region of this ExtraFieldInfo. + + 扩展字段 + + :return: The mtm_region of this ExtraFieldInfo. + :rtype: str + """ + return self._mtm_region + + @mtm_region.setter + def mtm_region(self, mtm_region): + """Sets the mtm_region of this ExtraFieldInfo. + + 扩展字段 + + :param mtm_region: The mtm_region of this ExtraFieldInfo. + :type mtm_region: str + """ + self._mtm_region = mtm_region + + @property + def mtm_type(self): + """Gets the mtm_type of this ExtraFieldInfo. + + 扩展字段 + + :return: The mtm_type of this ExtraFieldInfo. + :rtype: str + """ + return self._mtm_type + + @mtm_type.setter + def mtm_type(self, mtm_type): + """Sets the mtm_type of this ExtraFieldInfo. + + 扩展字段 + + :param mtm_type: The mtm_type of this ExtraFieldInfo. + :type mtm_type: str + """ + self._mtm_type = mtm_type + + @property + def source_id(self): + """Gets the source_id of this ExtraFieldInfo. + + 扩展字段 + + :return: The source_id of this ExtraFieldInfo. + :rtype: str + """ + return self._source_id + + @source_id.setter + def source_id(self, source_id): + """Sets the source_id of this ExtraFieldInfo. + + 扩展字段 + + :param source_id: The source_id of this ExtraFieldInfo. + :type source_id: str + """ + self._source_id = source_id + + @property + def title(self): + """Gets the title of this ExtraFieldInfo. + + 扩展字段 + + :return: The title of this ExtraFieldInfo. + :rtype: str + """ + return self._title + + @title.setter + def title(self, title): + """Sets the title of this ExtraFieldInfo. + + 扩展字段 + + :param title: The title of this ExtraFieldInfo. + :type title: str + """ + self._title = title + + @property + def is_change_event(self): + """Gets the is_change_event of this ExtraFieldInfo. + + 是否变更事件 + + :return: The is_change_event of this ExtraFieldInfo. + :rtype: bool + """ + return self._is_change_event + + @is_change_event.setter + def is_change_event(self, is_change_event): + """Sets the is_change_event of this ExtraFieldInfo. + + 是否变更事件 + + :param is_change_event: The is_change_event of this ExtraFieldInfo. + :type is_change_event: bool + """ + self._is_change_event = is_change_event + + @property + def is_service_interrupt(self): + """Gets the is_service_interrupt of this ExtraFieldInfo. + + 是否变更事件 + + :return: The is_service_interrupt of this ExtraFieldInfo. + :rtype: bool + """ + return self._is_service_interrupt + + @is_service_interrupt.setter + def is_service_interrupt(self, is_service_interrupt): + """Sets the is_service_interrupt of this ExtraFieldInfo. + + 是否变更事件 + + :param is_service_interrupt: The is_service_interrupt of this ExtraFieldInfo. + :type is_service_interrupt: bool + """ + self._is_service_interrupt = is_service_interrupt + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ExtraFieldInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/get_public_script_request.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/get_public_script_request.py new file mode 100644 index 0000000000..8dff8dd96f --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/get_public_script_request.py @@ -0,0 +1,201 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class GetPublicScriptRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'script_uuid': 'str', + 'x_language': 'str', + 'x_project_id': 'str', + 'x_user_profile': 'str' + } + + attribute_map = { + 'script_uuid': 'script_uuid', + 'x_language': 'X-Language', + 'x_project_id': 'x-project-id', + 'x_user_profile': 'x-user-profile' + } + + def __init__(self, script_uuid=None, x_language=None, x_project_id=None, x_user_profile=None): + """GetPublicScriptRequest + + The model defined in huaweicloud sdk + + :param script_uuid: 公共脚本Uuid + :type script_uuid: str + :param x_language: 国际化标记,zh-cn表示中文,en-us或不传表示英文 + :type x_language: str + :param x_project_id: 项目ID,一个项目对应一个region + :type x_project_id: str + :param x_user_profile: IAM5.0用户信息 + :type x_user_profile: str + """ + + + + self._script_uuid = None + self._x_language = None + self._x_project_id = None + self._x_user_profile = None + self.discriminator = None + + self.script_uuid = script_uuid + if x_language is not None: + self.x_language = x_language + if x_project_id is not None: + self.x_project_id = x_project_id + if x_user_profile is not None: + self.x_user_profile = x_user_profile + + @property + def script_uuid(self): + """Gets the script_uuid of this GetPublicScriptRequest. + + 公共脚本Uuid + + :return: The script_uuid of this GetPublicScriptRequest. + :rtype: str + """ + return self._script_uuid + + @script_uuid.setter + def script_uuid(self, script_uuid): + """Sets the script_uuid of this GetPublicScriptRequest. + + 公共脚本Uuid + + :param script_uuid: The script_uuid of this GetPublicScriptRequest. + :type script_uuid: str + """ + self._script_uuid = script_uuid + + @property + def x_language(self): + """Gets the x_language of this GetPublicScriptRequest. + + 国际化标记,zh-cn表示中文,en-us或不传表示英文 + + :return: The x_language of this GetPublicScriptRequest. + :rtype: str + """ + return self._x_language + + @x_language.setter + def x_language(self, x_language): + """Sets the x_language of this GetPublicScriptRequest. + + 国际化标记,zh-cn表示中文,en-us或不传表示英文 + + :param x_language: The x_language of this GetPublicScriptRequest. + :type x_language: str + """ + self._x_language = x_language + + @property + def x_project_id(self): + """Gets the x_project_id of this GetPublicScriptRequest. + + 项目ID,一个项目对应一个region + + :return: The x_project_id of this GetPublicScriptRequest. + :rtype: str + """ + return self._x_project_id + + @x_project_id.setter + def x_project_id(self, x_project_id): + """Sets the x_project_id of this GetPublicScriptRequest. + + 项目ID,一个项目对应一个region + + :param x_project_id: The x_project_id of this GetPublicScriptRequest. + :type x_project_id: str + """ + self._x_project_id = x_project_id + + @property + def x_user_profile(self): + """Gets the x_user_profile of this GetPublicScriptRequest. + + IAM5.0用户信息 + + :return: The x_user_profile of this GetPublicScriptRequest. + :rtype: str + """ + return self._x_user_profile + + @x_user_profile.setter + def x_user_profile(self, x_user_profile): + """Sets the x_user_profile of this GetPublicScriptRequest. + + IAM5.0用户信息 + + :param x_user_profile: The x_user_profile of this GetPublicScriptRequest. + :type x_user_profile: str + """ + self._x_user_profile = x_user_profile + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GetPublicScriptRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/get_public_script_response.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/get_public_script_response.py new file mode 100644 index 0000000000..69d48e26b6 --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/get_public_script_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 GetPublicScriptResponse(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': 'PublicScriptDetailModel' + } + + attribute_map = { + 'data': 'data' + } + + def __init__(self, data=None): + """GetPublicScriptResponse + + The model defined in huaweicloud sdk + + :param data: + :type data: :class:`huaweicloudsdkcoc.v1.PublicScriptDetailModel` + """ + + super(GetPublicScriptResponse, 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 GetPublicScriptResponse. + + :return: The data of this GetPublicScriptResponse. + :rtype: :class:`huaweicloudsdkcoc.v1.PublicScriptDetailModel` + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this GetPublicScriptResponse. + + :param data: The data of this GetPublicScriptResponse. + :type data: :class:`huaweicloudsdkcoc.v1.PublicScriptDetailModel` + """ + 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, GetPublicScriptResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/get_script_job_batch_request.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/get_script_job_batch_request.py new file mode 100644 index 0000000000..547925f191 --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/get_script_job_batch_request.py @@ -0,0 +1,314 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class GetScriptJobBatchRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'batch_index': 'int', + 'execute_uuid': 'str', + 'status': 'str', + 'limit': 'int', + 'marker': 'int', + 'x_language': 'str', + 'x_project_id': 'str', + 'x_user_profile': 'str' + } + + attribute_map = { + 'batch_index': 'batch_index', + 'execute_uuid': 'execute_uuid', + 'status': 'status', + 'limit': 'limit', + 'marker': 'marker', + 'x_language': 'X-Language', + 'x_project_id': 'x-project-id', + 'x_user_profile': 'x-user-profile' + } + + def __init__(self, batch_index=None, execute_uuid=None, status=None, limit=None, marker=None, x_language=None, x_project_id=None, x_user_profile=None): + """GetScriptJobBatchRequest + + The model defined in huaweicloud sdk + + :param batch_index: 批次index + :type batch_index: int + :param execute_uuid: 脚本工单的执行Id,取自executeJobScript和ListJobScriptOrders返回体中 + :type execute_uuid: str + :param status: 实例执行状态 READY:待执行 PROCESSING:执行中 ABNORMAL:异常 CANCELED:已取消 FINISHED:成功 + :type status: str + :param limit: 分页参数:每页返回记录个数限制 + :type limit: int + :param marker: 分页参数:上一页最后一个记录id + :type marker: int + :param x_language: 国际化标记,zh-cn表示中文,en-us或不传表示英文 + :type x_language: str + :param x_project_id: 项目ID,一个项目对应一个region + :type x_project_id: str + :param x_user_profile: IAM5.0用户信息 + :type x_user_profile: str + """ + + + + self._batch_index = None + self._execute_uuid = None + self._status = None + self._limit = None + self._marker = None + self._x_language = None + self._x_project_id = None + self._x_user_profile = None + self.discriminator = None + + self.batch_index = batch_index + self.execute_uuid = execute_uuid + if status is not None: + self.status = status + self.limit = limit + self.marker = marker + if x_language is not None: + self.x_language = x_language + if x_project_id is not None: + self.x_project_id = x_project_id + if x_user_profile is not None: + self.x_user_profile = x_user_profile + + @property + def batch_index(self): + """Gets the batch_index of this GetScriptJobBatchRequest. + + 批次index + + :return: The batch_index of this GetScriptJobBatchRequest. + :rtype: int + """ + return self._batch_index + + @batch_index.setter + def batch_index(self, batch_index): + """Sets the batch_index of this GetScriptJobBatchRequest. + + 批次index + + :param batch_index: The batch_index of this GetScriptJobBatchRequest. + :type batch_index: int + """ + self._batch_index = batch_index + + @property + def execute_uuid(self): + """Gets the execute_uuid of this GetScriptJobBatchRequest. + + 脚本工单的执行Id,取自executeJobScript和ListJobScriptOrders返回体中 + + :return: The execute_uuid of this GetScriptJobBatchRequest. + :rtype: str + """ + return self._execute_uuid + + @execute_uuid.setter + def execute_uuid(self, execute_uuid): + """Sets the execute_uuid of this GetScriptJobBatchRequest. + + 脚本工单的执行Id,取自executeJobScript和ListJobScriptOrders返回体中 + + :param execute_uuid: The execute_uuid of this GetScriptJobBatchRequest. + :type execute_uuid: str + """ + self._execute_uuid = execute_uuid + + @property + def status(self): + """Gets the status of this GetScriptJobBatchRequest. + + 实例执行状态 READY:待执行 PROCESSING:执行中 ABNORMAL:异常 CANCELED:已取消 FINISHED:成功 + + :return: The status of this GetScriptJobBatchRequest. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this GetScriptJobBatchRequest. + + 实例执行状态 READY:待执行 PROCESSING:执行中 ABNORMAL:异常 CANCELED:已取消 FINISHED:成功 + + :param status: The status of this GetScriptJobBatchRequest. + :type status: str + """ + self._status = status + + @property + def limit(self): + """Gets the limit of this GetScriptJobBatchRequest. + + 分页参数:每页返回记录个数限制 + + :return: The limit of this GetScriptJobBatchRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this GetScriptJobBatchRequest. + + 分页参数:每页返回记录个数限制 + + :param limit: The limit of this GetScriptJobBatchRequest. + :type limit: int + """ + self._limit = limit + + @property + def marker(self): + """Gets the marker of this GetScriptJobBatchRequest. + + 分页参数:上一页最后一个记录id + + :return: The marker of this GetScriptJobBatchRequest. + :rtype: int + """ + return self._marker + + @marker.setter + def marker(self, marker): + """Sets the marker of this GetScriptJobBatchRequest. + + 分页参数:上一页最后一个记录id + + :param marker: The marker of this GetScriptJobBatchRequest. + :type marker: int + """ + self._marker = marker + + @property + def x_language(self): + """Gets the x_language of this GetScriptJobBatchRequest. + + 国际化标记,zh-cn表示中文,en-us或不传表示英文 + + :return: The x_language of this GetScriptJobBatchRequest. + :rtype: str + """ + return self._x_language + + @x_language.setter + def x_language(self, x_language): + """Sets the x_language of this GetScriptJobBatchRequest. + + 国际化标记,zh-cn表示中文,en-us或不传表示英文 + + :param x_language: The x_language of this GetScriptJobBatchRequest. + :type x_language: str + """ + self._x_language = x_language + + @property + def x_project_id(self): + """Gets the x_project_id of this GetScriptJobBatchRequest. + + 项目ID,一个项目对应一个region + + :return: The x_project_id of this GetScriptJobBatchRequest. + :rtype: str + """ + return self._x_project_id + + @x_project_id.setter + def x_project_id(self, x_project_id): + """Sets the x_project_id of this GetScriptJobBatchRequest. + + 项目ID,一个项目对应一个region + + :param x_project_id: The x_project_id of this GetScriptJobBatchRequest. + :type x_project_id: str + """ + self._x_project_id = x_project_id + + @property + def x_user_profile(self): + """Gets the x_user_profile of this GetScriptJobBatchRequest. + + IAM5.0用户信息 + + :return: The x_user_profile of this GetScriptJobBatchRequest. + :rtype: str + """ + return self._x_user_profile + + @x_user_profile.setter + def x_user_profile(self, x_user_profile): + """Sets the x_user_profile of this GetScriptJobBatchRequest. + + IAM5.0用户信息 + + :param x_user_profile: The x_user_profile of this GetScriptJobBatchRequest. + :type x_user_profile: str + """ + self._x_user_profile = x_user_profile + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GetScriptJobBatchRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/get_script_job_batch_response.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/get_script_job_batch_response.py new file mode 100644 index 0000000000..8a56c8ffa5 --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/get_script_job_batch_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 GetScriptJobBatchResponse(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': 'JobScriptBatchDetailModel' + } + + attribute_map = { + 'data': 'data' + } + + def __init__(self, data=None): + """GetScriptJobBatchResponse + + The model defined in huaweicloud sdk + + :param data: + :type data: :class:`huaweicloudsdkcoc.v1.JobScriptBatchDetailModel` + """ + + super(GetScriptJobBatchResponse, 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 GetScriptJobBatchResponse. + + :return: The data of this GetScriptJobBatchResponse. + :rtype: :class:`huaweicloudsdkcoc.v1.JobScriptBatchDetailModel` + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this GetScriptJobBatchResponse. + + :param data: The data of this GetScriptJobBatchResponse. + :type data: :class:`huaweicloudsdkcoc.v1.JobScriptBatchDetailModel` + """ + 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, GetScriptJobBatchResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/get_script_job_info_request.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/get_script_job_info_request.py new file mode 100644 index 0000000000..e6f49172dd --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/get_script_job_info_request.py @@ -0,0 +1,201 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class GetScriptJobInfoRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'execute_uuid': 'str', + 'x_language': 'str', + 'x_project_id': 'str', + 'x_user_profile': 'str' + } + + attribute_map = { + 'execute_uuid': 'execute_uuid', + 'x_language': 'X-Language', + 'x_project_id': 'x-project-id', + 'x_user_profile': 'x-user-profile' + } + + def __init__(self, execute_uuid=None, x_language=None, x_project_id=None, x_user_profile=None): + """GetScriptJobInfoRequest + + The model defined in huaweicloud sdk + + :param execute_uuid: 脚本工单的执行Id,取自executeJobScript和ListJobScriptOrders返回体中 + :type execute_uuid: str + :param x_language: 国际化标记,zh-cn表示中文,en-us或不传表示英文 + :type x_language: str + :param x_project_id: 项目ID,一个项目对应一个region + :type x_project_id: str + :param x_user_profile: IAM5.0用户信息 + :type x_user_profile: str + """ + + + + self._execute_uuid = None + self._x_language = None + self._x_project_id = None + self._x_user_profile = None + self.discriminator = None + + self.execute_uuid = execute_uuid + if x_language is not None: + self.x_language = x_language + if x_project_id is not None: + self.x_project_id = x_project_id + if x_user_profile is not None: + self.x_user_profile = x_user_profile + + @property + def execute_uuid(self): + """Gets the execute_uuid of this GetScriptJobInfoRequest. + + 脚本工单的执行Id,取自executeJobScript和ListJobScriptOrders返回体中 + + :return: The execute_uuid of this GetScriptJobInfoRequest. + :rtype: str + """ + return self._execute_uuid + + @execute_uuid.setter + def execute_uuid(self, execute_uuid): + """Sets the execute_uuid of this GetScriptJobInfoRequest. + + 脚本工单的执行Id,取自executeJobScript和ListJobScriptOrders返回体中 + + :param execute_uuid: The execute_uuid of this GetScriptJobInfoRequest. + :type execute_uuid: str + """ + self._execute_uuid = execute_uuid + + @property + def x_language(self): + """Gets the x_language of this GetScriptJobInfoRequest. + + 国际化标记,zh-cn表示中文,en-us或不传表示英文 + + :return: The x_language of this GetScriptJobInfoRequest. + :rtype: str + """ + return self._x_language + + @x_language.setter + def x_language(self, x_language): + """Sets the x_language of this GetScriptJobInfoRequest. + + 国际化标记,zh-cn表示中文,en-us或不传表示英文 + + :param x_language: The x_language of this GetScriptJobInfoRequest. + :type x_language: str + """ + self._x_language = x_language + + @property + def x_project_id(self): + """Gets the x_project_id of this GetScriptJobInfoRequest. + + 项目ID,一个项目对应一个region + + :return: The x_project_id of this GetScriptJobInfoRequest. + :rtype: str + """ + return self._x_project_id + + @x_project_id.setter + def x_project_id(self, x_project_id): + """Sets the x_project_id of this GetScriptJobInfoRequest. + + 项目ID,一个项目对应一个region + + :param x_project_id: The x_project_id of this GetScriptJobInfoRequest. + :type x_project_id: str + """ + self._x_project_id = x_project_id + + @property + def x_user_profile(self): + """Gets the x_user_profile of this GetScriptJobInfoRequest. + + IAM5.0用户信息 + + :return: The x_user_profile of this GetScriptJobInfoRequest. + :rtype: str + """ + return self._x_user_profile + + @x_user_profile.setter + def x_user_profile(self, x_user_profile): + """Sets the x_user_profile of this GetScriptJobInfoRequest. + + IAM5.0用户信息 + + :param x_user_profile: The x_user_profile of this GetScriptJobInfoRequest. + :type x_user_profile: str + """ + self._x_user_profile = x_user_profile + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GetScriptJobInfoRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/get_script_job_info_response.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/get_script_job_info_response.py new file mode 100644 index 0000000000..b22f00254b --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/get_script_job_info_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 GetScriptJobInfoResponse(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': 'JobScriptOrderInfoModel' + } + + attribute_map = { + 'data': 'data' + } + + def __init__(self, data=None): + """GetScriptJobInfoResponse + + The model defined in huaweicloud sdk + + :param data: + :type data: :class:`huaweicloudsdkcoc.v1.JobScriptOrderInfoModel` + """ + + super(GetScriptJobInfoResponse, 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 GetScriptJobInfoResponse. + + :return: The data of this GetScriptJobInfoResponse. + :rtype: :class:`huaweicloudsdkcoc.v1.JobScriptOrderInfoModel` + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this GetScriptJobInfoResponse. + + :param data: The data of this GetScriptJobInfoResponse. + :type data: :class:`huaweicloudsdkcoc.v1.JobScriptOrderInfoModel` + """ + 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, GetScriptJobInfoResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/get_script_job_statistics_request.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/get_script_job_statistics_request.py new file mode 100644 index 0000000000..ad5f68f5c0 --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/get_script_job_statistics_request.py @@ -0,0 +1,201 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class GetScriptJobStatisticsRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'execute_uuid': 'str', + 'x_language': 'str', + 'x_project_id': 'str', + 'x_user_profile': 'str' + } + + attribute_map = { + 'execute_uuid': 'execute_uuid', + 'x_language': 'X-Language', + 'x_project_id': 'x-project-id', + 'x_user_profile': 'x-user-profile' + } + + def __init__(self, execute_uuid=None, x_language=None, x_project_id=None, x_user_profile=None): + """GetScriptJobStatisticsRequest + + The model defined in huaweicloud sdk + + :param execute_uuid: 脚本工单的执行Id,取自executeJobScript和ListJobScriptOrders返回体中 + :type execute_uuid: str + :param x_language: 国际化标记,zh-cn表示中文,en-us或不传表示英文 + :type x_language: str + :param x_project_id: 项目ID,一个项目对应一个region + :type x_project_id: str + :param x_user_profile: IAM5.0用户信息 + :type x_user_profile: str + """ + + + + self._execute_uuid = None + self._x_language = None + self._x_project_id = None + self._x_user_profile = None + self.discriminator = None + + self.execute_uuid = execute_uuid + if x_language is not None: + self.x_language = x_language + if x_project_id is not None: + self.x_project_id = x_project_id + if x_user_profile is not None: + self.x_user_profile = x_user_profile + + @property + def execute_uuid(self): + """Gets the execute_uuid of this GetScriptJobStatisticsRequest. + + 脚本工单的执行Id,取自executeJobScript和ListJobScriptOrders返回体中 + + :return: The execute_uuid of this GetScriptJobStatisticsRequest. + :rtype: str + """ + return self._execute_uuid + + @execute_uuid.setter + def execute_uuid(self, execute_uuid): + """Sets the execute_uuid of this GetScriptJobStatisticsRequest. + + 脚本工单的执行Id,取自executeJobScript和ListJobScriptOrders返回体中 + + :param execute_uuid: The execute_uuid of this GetScriptJobStatisticsRequest. + :type execute_uuid: str + """ + self._execute_uuid = execute_uuid + + @property + def x_language(self): + """Gets the x_language of this GetScriptJobStatisticsRequest. + + 国际化标记,zh-cn表示中文,en-us或不传表示英文 + + :return: The x_language of this GetScriptJobStatisticsRequest. + :rtype: str + """ + return self._x_language + + @x_language.setter + def x_language(self, x_language): + """Sets the x_language of this GetScriptJobStatisticsRequest. + + 国际化标记,zh-cn表示中文,en-us或不传表示英文 + + :param x_language: The x_language of this GetScriptJobStatisticsRequest. + :type x_language: str + """ + self._x_language = x_language + + @property + def x_project_id(self): + """Gets the x_project_id of this GetScriptJobStatisticsRequest. + + 项目ID,一个项目对应一个region + + :return: The x_project_id of this GetScriptJobStatisticsRequest. + :rtype: str + """ + return self._x_project_id + + @x_project_id.setter + def x_project_id(self, x_project_id): + """Sets the x_project_id of this GetScriptJobStatisticsRequest. + + 项目ID,一个项目对应一个region + + :param x_project_id: The x_project_id of this GetScriptJobStatisticsRequest. + :type x_project_id: str + """ + self._x_project_id = x_project_id + + @property + def x_user_profile(self): + """Gets the x_user_profile of this GetScriptJobStatisticsRequest. + + IAM5.0用户信息 + + :return: The x_user_profile of this GetScriptJobStatisticsRequest. + :rtype: str + """ + return self._x_user_profile + + @x_user_profile.setter + def x_user_profile(self, x_user_profile): + """Sets the x_user_profile of this GetScriptJobStatisticsRequest. + + IAM5.0用户信息 + + :param x_user_profile: The x_user_profile of this GetScriptJobStatisticsRequest. + :type x_user_profile: str + """ + self._x_user_profile = x_user_profile + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GetScriptJobStatisticsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/get_script_job_statistics_response.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/get_script_job_statistics_response.py new file mode 100644 index 0000000000..cb8b24d39f --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/get_script_job_statistics_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 GetScriptJobStatisticsResponse(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': 'JobScriptOrderStatisticsModel' + } + + attribute_map = { + 'data': 'data' + } + + def __init__(self, data=None): + """GetScriptJobStatisticsResponse + + The model defined in huaweicloud sdk + + :param data: + :type data: :class:`huaweicloudsdkcoc.v1.JobScriptOrderStatisticsModel` + """ + + super(GetScriptJobStatisticsResponse, 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 GetScriptJobStatisticsResponse. + + :return: The data of this GetScriptJobStatisticsResponse. + :rtype: :class:`huaweicloudsdkcoc.v1.JobScriptOrderStatisticsModel` + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this GetScriptJobStatisticsResponse. + + :param data: The data of this GetScriptJobStatisticsResponse. + :type data: :class:`huaweicloudsdkcoc.v1.JobScriptOrderStatisticsModel` + """ + 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, GetScriptJobStatisticsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/get_script_request.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/get_script_request.py new file mode 100644 index 0000000000..31edcb76d8 --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/get_script_request.py @@ -0,0 +1,201 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class GetScriptRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'script_uuid': 'str', + 'x_language': 'str', + 'x_project_id': 'str', + 'x_user_profile': 'str' + } + + attribute_map = { + 'script_uuid': 'script_uuid', + 'x_language': 'X-Language', + 'x_project_id': 'x-project-id', + 'x_user_profile': 'x-user-profile' + } + + def __init__(self, script_uuid=None, x_language=None, x_project_id=None, x_user_profile=None): + """GetScriptRequest + + The model defined in huaweicloud sdk + + :param script_uuid: 脚本UUID + :type script_uuid: str + :param x_language: 国际化标记,zh-cn表示中文,en-us或不传表示英文 + :type x_language: str + :param x_project_id: 项目ID,一个项目对应一个region + :type x_project_id: str + :param x_user_profile: IAM5.0用户信息 + :type x_user_profile: str + """ + + + + self._script_uuid = None + self._x_language = None + self._x_project_id = None + self._x_user_profile = None + self.discriminator = None + + self.script_uuid = script_uuid + if x_language is not None: + self.x_language = x_language + if x_project_id is not None: + self.x_project_id = x_project_id + if x_user_profile is not None: + self.x_user_profile = x_user_profile + + @property + def script_uuid(self): + """Gets the script_uuid of this GetScriptRequest. + + 脚本UUID + + :return: The script_uuid of this GetScriptRequest. + :rtype: str + """ + return self._script_uuid + + @script_uuid.setter + def script_uuid(self, script_uuid): + """Sets the script_uuid of this GetScriptRequest. + + 脚本UUID + + :param script_uuid: The script_uuid of this GetScriptRequest. + :type script_uuid: str + """ + self._script_uuid = script_uuid + + @property + def x_language(self): + """Gets the x_language of this GetScriptRequest. + + 国际化标记,zh-cn表示中文,en-us或不传表示英文 + + :return: The x_language of this GetScriptRequest. + :rtype: str + """ + return self._x_language + + @x_language.setter + def x_language(self, x_language): + """Sets the x_language of this GetScriptRequest. + + 国际化标记,zh-cn表示中文,en-us或不传表示英文 + + :param x_language: The x_language of this GetScriptRequest. + :type x_language: str + """ + self._x_language = x_language + + @property + def x_project_id(self): + """Gets the x_project_id of this GetScriptRequest. + + 项目ID,一个项目对应一个region + + :return: The x_project_id of this GetScriptRequest. + :rtype: str + """ + return self._x_project_id + + @x_project_id.setter + def x_project_id(self, x_project_id): + """Sets the x_project_id of this GetScriptRequest. + + 项目ID,一个项目对应一个region + + :param x_project_id: The x_project_id of this GetScriptRequest. + :type x_project_id: str + """ + self._x_project_id = x_project_id + + @property + def x_user_profile(self): + """Gets the x_user_profile of this GetScriptRequest. + + IAM5.0用户信息 + + :return: The x_user_profile of this GetScriptRequest. + :rtype: str + """ + return self._x_user_profile + + @x_user_profile.setter + def x_user_profile(self, x_user_profile): + """Sets the x_user_profile of this GetScriptRequest. + + IAM5.0用户信息 + + :param x_user_profile: The x_user_profile of this GetScriptRequest. + :type x_user_profile: str + """ + self._x_user_profile = x_user_profile + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GetScriptRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/get_script_response.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/get_script_response.py new file mode 100644 index 0000000000..0f20816ca3 --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/get_script_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 GetScriptResponse(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': 'ScriptDetailModel' + } + + attribute_map = { + 'data': 'data' + } + + def __init__(self, data=None): + """GetScriptResponse + + The model defined in huaweicloud sdk + + :param data: + :type data: :class:`huaweicloudsdkcoc.v1.ScriptDetailModel` + """ + + super(GetScriptResponse, 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 GetScriptResponse. + + :return: The data of this GetScriptResponse. + :rtype: :class:`huaweicloudsdkcoc.v1.ScriptDetailModel` + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this GetScriptResponse. + + :param data: The data of this GetScriptResponse. + :type data: :class:`huaweicloudsdkcoc.v1.ScriptDetailModel` + """ + 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, GetScriptResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/handle_coc_incident_request.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/handle_coc_incident_request.py new file mode 100644 index 0000000000..d563e4eda7 --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/handle_coc_incident_request.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class HandleCocIncidentRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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': 'HandleExternalIncidentRequest' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """HandleCocIncidentRequest + + The model defined in huaweicloud sdk + + :param body: Body of the HandleCocIncidentRequest + :type body: :class:`huaweicloudsdkcoc.v1.HandleExternalIncidentRequest` + """ + + + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this HandleCocIncidentRequest. + + :return: The body of this HandleCocIncidentRequest. + :rtype: :class:`huaweicloudsdkcoc.v1.HandleExternalIncidentRequest` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this HandleCocIncidentRequest. + + :param body: The body of this HandleCocIncidentRequest. + :type body: :class:`huaweicloudsdkcoc.v1.HandleExternalIncidentRequest` + """ + 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, HandleCocIncidentRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/handle_coc_incident_response.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/handle_coc_incident_response.py new file mode 100644 index 0000000000..25ed64c8e5 --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/handle_coc_incident_response.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class HandleCocIncidentResponse(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 = { + 'provider_code': 'str', + 'error_code': 'str', + 'error_msg': 'str', + 'data': 'HandleExternalIncidentResponseData' + } + + attribute_map = { + 'provider_code': 'provider_code', + 'error_code': 'error_code', + 'error_msg': 'error_msg', + 'data': 'data' + } + + def __init__(self, provider_code=None, error_code=None, error_msg=None, data=None): + """HandleCocIncidentResponse + + The model defined in huaweicloud sdk + + :param provider_code: 服务标识 + :type provider_code: str + :param error_code: 请求响应代码,范围:0000~9999,正常时取值:0 + :type error_code: str + :param error_msg: 请求响应描述 + :type error_msg: str + :param data: + :type data: :class:`huaweicloudsdkcoc.v1.HandleExternalIncidentResponseData` + """ + + super(HandleCocIncidentResponse, self).__init__() + + self._provider_code = None + self._error_code = None + self._error_msg = None + self._data = None + self.discriminator = None + + self.provider_code = provider_code + self.error_code = error_code + if error_msg is not None: + self.error_msg = error_msg + if data is not None: + self.data = data + + @property + def provider_code(self): + """Gets the provider_code of this HandleCocIncidentResponse. + + 服务标识 + + :return: The provider_code of this HandleCocIncidentResponse. + :rtype: str + """ + return self._provider_code + + @provider_code.setter + def provider_code(self, provider_code): + """Sets the provider_code of this HandleCocIncidentResponse. + + 服务标识 + + :param provider_code: The provider_code of this HandleCocIncidentResponse. + :type provider_code: str + """ + self._provider_code = provider_code + + @property + def error_code(self): + """Gets the error_code of this HandleCocIncidentResponse. + + 请求响应代码,范围:0000~9999,正常时取值:0 + + :return: The error_code of this HandleCocIncidentResponse. + :rtype: str + """ + return self._error_code + + @error_code.setter + def error_code(self, error_code): + """Sets the error_code of this HandleCocIncidentResponse. + + 请求响应代码,范围:0000~9999,正常时取值:0 + + :param error_code: The error_code of this HandleCocIncidentResponse. + :type error_code: str + """ + self._error_code = error_code + + @property + def error_msg(self): + """Gets the error_msg of this HandleCocIncidentResponse. + + 请求响应描述 + + :return: The error_msg of this HandleCocIncidentResponse. + :rtype: str + """ + return self._error_msg + + @error_msg.setter + def error_msg(self, error_msg): + """Sets the error_msg of this HandleCocIncidentResponse. + + 请求响应描述 + + :param error_msg: The error_msg of this HandleCocIncidentResponse. + :type error_msg: str + """ + self._error_msg = error_msg + + @property + def data(self): + """Gets the data of this HandleCocIncidentResponse. + + :return: The data of this HandleCocIncidentResponse. + :rtype: :class:`huaweicloudsdkcoc.v1.HandleExternalIncidentResponseData` + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this HandleCocIncidentResponse. + + :param data: The data of this HandleCocIncidentResponse. + :type data: :class:`huaweicloudsdkcoc.v1.HandleExternalIncidentResponseData` + """ + 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, HandleCocIncidentResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/handle_external_incident_request.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/handle_external_incident_request.py new file mode 100644 index 0000000000..4f76b5555f --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/handle_external_incident_request.py @@ -0,0 +1,199 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class HandleExternalIncidentRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'incident_num': 'str', + 'operator': 'str', + 'operate_key': 'str', + 'parameter': 'dict(str, object)' + } + + attribute_map = { + 'incident_num': 'incident_num', + 'operator': 'operator', + 'operate_key': 'operate_key', + 'parameter': 'parameter' + } + + def __init__(self, incident_num=None, operator=None, operate_key=None, parameter=None): + """HandleExternalIncidentRequest + + The model defined in huaweicloud sdk + + :param incident_num: 事件单号 + :type incident_num: str + :param operator: 操作人ID + :type operator: str + :param operate_key: 操作类型 + :type operate_key: str + :param parameter: 入参 + :type parameter: dict(str, object) + """ + + + + self._incident_num = None + self._operator = None + self._operate_key = None + self._parameter = None + self.discriminator = None + + self.incident_num = incident_num + self.operator = operator + self.operate_key = operate_key + if parameter is not None: + self.parameter = parameter + + @property + def incident_num(self): + """Gets the incident_num of this HandleExternalIncidentRequest. + + 事件单号 + + :return: The incident_num of this HandleExternalIncidentRequest. + :rtype: str + """ + return self._incident_num + + @incident_num.setter + def incident_num(self, incident_num): + """Sets the incident_num of this HandleExternalIncidentRequest. + + 事件单号 + + :param incident_num: The incident_num of this HandleExternalIncidentRequest. + :type incident_num: str + """ + self._incident_num = incident_num + + @property + def operator(self): + """Gets the operator of this HandleExternalIncidentRequest. + + 操作人ID + + :return: The operator of this HandleExternalIncidentRequest. + :rtype: str + """ + return self._operator + + @operator.setter + def operator(self, operator): + """Sets the operator of this HandleExternalIncidentRequest. + + 操作人ID + + :param operator: The operator of this HandleExternalIncidentRequest. + :type operator: str + """ + self._operator = operator + + @property + def operate_key(self): + """Gets the operate_key of this HandleExternalIncidentRequest. + + 操作类型 + + :return: The operate_key of this HandleExternalIncidentRequest. + :rtype: str + """ + return self._operate_key + + @operate_key.setter + def operate_key(self, operate_key): + """Sets the operate_key of this HandleExternalIncidentRequest. + + 操作类型 + + :param operate_key: The operate_key of this HandleExternalIncidentRequest. + :type operate_key: str + """ + self._operate_key = operate_key + + @property + def parameter(self): + """Gets the parameter of this HandleExternalIncidentRequest. + + 入参 + + :return: The parameter of this HandleExternalIncidentRequest. + :rtype: dict(str, object) + """ + return self._parameter + + @parameter.setter + def parameter(self, parameter): + """Sets the parameter of this HandleExternalIncidentRequest. + + 入参 + + :param parameter: The parameter of this HandleExternalIncidentRequest. + :type parameter: dict(str, object) + """ + self._parameter = parameter + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, HandleExternalIncidentRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/handle_external_incident_response_data.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/handle_external_incident_response_data.py new file mode 100644 index 0000000000..4b859cd0ca --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/handle_external_incident_response_data.py @@ -0,0 +1,84 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class HandleExternalIncidentResponseData: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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): + """HandleExternalIncidentResponseData + + 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, HandleExternalIncidentResponseData): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/incident_ticket_info_response_data.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/incident_ticket_info_response_data.py new file mode 100644 index 0000000000..0819cda61a --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/incident_ticket_info_response_data.py @@ -0,0 +1,637 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class IncidentTicketInfoResponseData: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'incident_num': 'str', + 'region': 'list[str]', + 'enterprise_project': 'list[str]', + 'current_cloud_service': 'list[str]', + 'incident_level': 'str', + 'is_service_interrupt': 'bool', + 'incident_type': 'str', + 'incident_title': 'str', + 'incident_description': 'str', + 'incident_source': 'str', + 'incident_assignee': 'list[str]', + 'assignee_scene': 'str', + 'assignee_role': 'str', + 'warroom_id': 'str', + 'handle_time': 'int', + 'status': 'str', + 'create_time': 'int', + 'creator': 'str', + 'enum_data_list': 'list[TicketInfoEnumData]' + } + + attribute_map = { + 'incident_num': 'incident_num', + 'region': 'region', + 'enterprise_project': 'enterprise_project', + 'current_cloud_service': 'current_cloud_service', + 'incident_level': 'incident_level', + 'is_service_interrupt': 'is_service_interrupt', + 'incident_type': 'incident_type', + 'incident_title': 'incident_title', + 'incident_description': 'incident_description', + 'incident_source': 'incident_source', + 'incident_assignee': 'incident_assignee', + 'assignee_scene': 'assignee_scene', + 'assignee_role': 'assignee_role', + 'warroom_id': 'warroom_id', + 'handle_time': 'handle_time', + 'status': 'status', + 'create_time': 'create_time', + 'creator': 'creator', + 'enum_data_list': 'enum_data_list' + } + + def __init__(self, incident_num=None, region=None, enterprise_project=None, current_cloud_service=None, incident_level=None, is_service_interrupt=None, incident_type=None, incident_title=None, incident_description=None, incident_source=None, incident_assignee=None, assignee_scene=None, assignee_role=None, warroom_id=None, handle_time=None, status=None, create_time=None, creator=None, enum_data_list=None): + """IncidentTicketInfoResponseData + + The model defined in huaweicloud sdk + + :param incident_num: 事件单号 + :type incident_num: str + :param region: 区域Code,如果自动拉起WarRoom则为必填,现在只支持1个 + :type region: list[str] + :param enterprise_project: 企业项目ID,现在只支持1个 + :type enterprise_project: list[str] + :param current_cloud_service: 归属应用ID,现在只支持1个 + :type current_cloud_service: list[str] + :param incident_level: 事件级别 参考:枚举 事件级别incident_level + :type incident_level: str + :param is_service_interrupt: 业务是否中断,取值:true/false + :type is_service_interrupt: bool + :param incident_type: 事件类别 参考:枚举 事件类别incident_type + :type incident_type: str + :param incident_title: 事件标题,最大长度:200 + :type incident_title: str + :param incident_description: 事件描述,最大长度:600 + :type incident_description: str + :param incident_source: 单据来源 参考:枚举 事件来源incident_source + :type incident_source: str + :param incident_assignee: 责任人,排班场景和排班角色不能同时为空,现在只支持1个 + :type incident_assignee: list[str] + :param assignee_scene: 排班场景,责任人和排班角色不能同时为空 + :type assignee_scene: str + :param assignee_role: 排班角色,排班场景和责任人不能同时为空 + :type assignee_role: str + :param warroom_id: warroom_id + :type warroom_id: str + :param handle_time: 最后一次提交解决方案时间戳 + :type handle_time: int + :param status: 状态KEY + :type status: str + :param create_time: 创单时间戳 + :type create_time: int + :param creator: 创单人 + :type creator: str + :param enum_data_list: 枚举列表 + :type enum_data_list: list[:class:`huaweicloudsdkcoc.v1.TicketInfoEnumData`] + """ + + + + self._incident_num = None + self._region = None + self._enterprise_project = None + self._current_cloud_service = None + self._incident_level = None + self._is_service_interrupt = None + self._incident_type = None + self._incident_title = None + self._incident_description = None + self._incident_source = None + self._incident_assignee = None + self._assignee_scene = None + self._assignee_role = None + self._warroom_id = None + self._handle_time = None + self._status = None + self._create_time = None + self._creator = None + self._enum_data_list = None + self.discriminator = None + + if incident_num is not None: + self.incident_num = incident_num + if region is not None: + self.region = region + if enterprise_project is not None: + self.enterprise_project = enterprise_project + if current_cloud_service is not None: + self.current_cloud_service = current_cloud_service + if incident_level is not None: + self.incident_level = incident_level + if is_service_interrupt is not None: + self.is_service_interrupt = is_service_interrupt + if incident_type is not None: + self.incident_type = incident_type + if incident_title is not None: + self.incident_title = incident_title + if incident_description is not None: + self.incident_description = incident_description + if incident_source is not None: + self.incident_source = incident_source + if incident_assignee is not None: + self.incident_assignee = incident_assignee + if assignee_scene is not None: + self.assignee_scene = assignee_scene + if assignee_role is not None: + self.assignee_role = assignee_role + if warroom_id is not None: + self.warroom_id = warroom_id + if handle_time is not None: + self.handle_time = handle_time + if status is not None: + self.status = status + if create_time is not None: + self.create_time = create_time + if creator is not None: + self.creator = creator + if enum_data_list is not None: + self.enum_data_list = enum_data_list + + @property + def incident_num(self): + """Gets the incident_num of this IncidentTicketInfoResponseData. + + 事件单号 + + :return: The incident_num of this IncidentTicketInfoResponseData. + :rtype: str + """ + return self._incident_num + + @incident_num.setter + def incident_num(self, incident_num): + """Sets the incident_num of this IncidentTicketInfoResponseData. + + 事件单号 + + :param incident_num: The incident_num of this IncidentTicketInfoResponseData. + :type incident_num: str + """ + self._incident_num = incident_num + + @property + def region(self): + """Gets the region of this IncidentTicketInfoResponseData. + + 区域Code,如果自动拉起WarRoom则为必填,现在只支持1个 + + :return: The region of this IncidentTicketInfoResponseData. + :rtype: list[str] + """ + return self._region + + @region.setter + def region(self, region): + """Sets the region of this IncidentTicketInfoResponseData. + + 区域Code,如果自动拉起WarRoom则为必填,现在只支持1个 + + :param region: The region of this IncidentTicketInfoResponseData. + :type region: list[str] + """ + self._region = region + + @property + def enterprise_project(self): + """Gets the enterprise_project of this IncidentTicketInfoResponseData. + + 企业项目ID,现在只支持1个 + + :return: The enterprise_project of this IncidentTicketInfoResponseData. + :rtype: list[str] + """ + return self._enterprise_project + + @enterprise_project.setter + def enterprise_project(self, enterprise_project): + """Sets the enterprise_project of this IncidentTicketInfoResponseData. + + 企业项目ID,现在只支持1个 + + :param enterprise_project: The enterprise_project of this IncidentTicketInfoResponseData. + :type enterprise_project: list[str] + """ + self._enterprise_project = enterprise_project + + @property + def current_cloud_service(self): + """Gets the current_cloud_service of this IncidentTicketInfoResponseData. + + 归属应用ID,现在只支持1个 + + :return: The current_cloud_service of this IncidentTicketInfoResponseData. + :rtype: list[str] + """ + return self._current_cloud_service + + @current_cloud_service.setter + def current_cloud_service(self, current_cloud_service): + """Sets the current_cloud_service of this IncidentTicketInfoResponseData. + + 归属应用ID,现在只支持1个 + + :param current_cloud_service: The current_cloud_service of this IncidentTicketInfoResponseData. + :type current_cloud_service: list[str] + """ + self._current_cloud_service = current_cloud_service + + @property + def incident_level(self): + """Gets the incident_level of this IncidentTicketInfoResponseData. + + 事件级别 参考:枚举 事件级别incident_level + + :return: The incident_level of this IncidentTicketInfoResponseData. + :rtype: str + """ + return self._incident_level + + @incident_level.setter + def incident_level(self, incident_level): + """Sets the incident_level of this IncidentTicketInfoResponseData. + + 事件级别 参考:枚举 事件级别incident_level + + :param incident_level: The incident_level of this IncidentTicketInfoResponseData. + :type incident_level: str + """ + self._incident_level = incident_level + + @property + def is_service_interrupt(self): + """Gets the is_service_interrupt of this IncidentTicketInfoResponseData. + + 业务是否中断,取值:true/false + + :return: The is_service_interrupt of this IncidentTicketInfoResponseData. + :rtype: bool + """ + return self._is_service_interrupt + + @is_service_interrupt.setter + def is_service_interrupt(self, is_service_interrupt): + """Sets the is_service_interrupt of this IncidentTicketInfoResponseData. + + 业务是否中断,取值:true/false + + :param is_service_interrupt: The is_service_interrupt of this IncidentTicketInfoResponseData. + :type is_service_interrupt: bool + """ + self._is_service_interrupt = is_service_interrupt + + @property + def incident_type(self): + """Gets the incident_type of this IncidentTicketInfoResponseData. + + 事件类别 参考:枚举 事件类别incident_type + + :return: The incident_type of this IncidentTicketInfoResponseData. + :rtype: str + """ + return self._incident_type + + @incident_type.setter + def incident_type(self, incident_type): + """Sets the incident_type of this IncidentTicketInfoResponseData. + + 事件类别 参考:枚举 事件类别incident_type + + :param incident_type: The incident_type of this IncidentTicketInfoResponseData. + :type incident_type: str + """ + self._incident_type = incident_type + + @property + def incident_title(self): + """Gets the incident_title of this IncidentTicketInfoResponseData. + + 事件标题,最大长度:200 + + :return: The incident_title of this IncidentTicketInfoResponseData. + :rtype: str + """ + return self._incident_title + + @incident_title.setter + def incident_title(self, incident_title): + """Sets the incident_title of this IncidentTicketInfoResponseData. + + 事件标题,最大长度:200 + + :param incident_title: The incident_title of this IncidentTicketInfoResponseData. + :type incident_title: str + """ + self._incident_title = incident_title + + @property + def incident_description(self): + """Gets the incident_description of this IncidentTicketInfoResponseData. + + 事件描述,最大长度:600 + + :return: The incident_description of this IncidentTicketInfoResponseData. + :rtype: str + """ + return self._incident_description + + @incident_description.setter + def incident_description(self, incident_description): + """Sets the incident_description of this IncidentTicketInfoResponseData. + + 事件描述,最大长度:600 + + :param incident_description: The incident_description of this IncidentTicketInfoResponseData. + :type incident_description: str + """ + self._incident_description = incident_description + + @property + def incident_source(self): + """Gets the incident_source of this IncidentTicketInfoResponseData. + + 单据来源 参考:枚举 事件来源incident_source + + :return: The incident_source of this IncidentTicketInfoResponseData. + :rtype: str + """ + return self._incident_source + + @incident_source.setter + def incident_source(self, incident_source): + """Sets the incident_source of this IncidentTicketInfoResponseData. + + 单据来源 参考:枚举 事件来源incident_source + + :param incident_source: The incident_source of this IncidentTicketInfoResponseData. + :type incident_source: str + """ + self._incident_source = incident_source + + @property + def incident_assignee(self): + """Gets the incident_assignee of this IncidentTicketInfoResponseData. + + 责任人,排班场景和排班角色不能同时为空,现在只支持1个 + + :return: The incident_assignee of this IncidentTicketInfoResponseData. + :rtype: list[str] + """ + return self._incident_assignee + + @incident_assignee.setter + def incident_assignee(self, incident_assignee): + """Sets the incident_assignee of this IncidentTicketInfoResponseData. + + 责任人,排班场景和排班角色不能同时为空,现在只支持1个 + + :param incident_assignee: The incident_assignee of this IncidentTicketInfoResponseData. + :type incident_assignee: list[str] + """ + self._incident_assignee = incident_assignee + + @property + def assignee_scene(self): + """Gets the assignee_scene of this IncidentTicketInfoResponseData. + + 排班场景,责任人和排班角色不能同时为空 + + :return: The assignee_scene of this IncidentTicketInfoResponseData. + :rtype: str + """ + return self._assignee_scene + + @assignee_scene.setter + def assignee_scene(self, assignee_scene): + """Sets the assignee_scene of this IncidentTicketInfoResponseData. + + 排班场景,责任人和排班角色不能同时为空 + + :param assignee_scene: The assignee_scene of this IncidentTicketInfoResponseData. + :type assignee_scene: str + """ + self._assignee_scene = assignee_scene + + @property + def assignee_role(self): + """Gets the assignee_role of this IncidentTicketInfoResponseData. + + 排班角色,排班场景和责任人不能同时为空 + + :return: The assignee_role of this IncidentTicketInfoResponseData. + :rtype: str + """ + return self._assignee_role + + @assignee_role.setter + def assignee_role(self, assignee_role): + """Sets the assignee_role of this IncidentTicketInfoResponseData. + + 排班角色,排班场景和责任人不能同时为空 + + :param assignee_role: The assignee_role of this IncidentTicketInfoResponseData. + :type assignee_role: str + """ + self._assignee_role = assignee_role + + @property + def warroom_id(self): + """Gets the warroom_id of this IncidentTicketInfoResponseData. + + warroom_id + + :return: The warroom_id of this IncidentTicketInfoResponseData. + :rtype: str + """ + return self._warroom_id + + @warroom_id.setter + def warroom_id(self, warroom_id): + """Sets the warroom_id of this IncidentTicketInfoResponseData. + + warroom_id + + :param warroom_id: The warroom_id of this IncidentTicketInfoResponseData. + :type warroom_id: str + """ + self._warroom_id = warroom_id + + @property + def handle_time(self): + """Gets the handle_time of this IncidentTicketInfoResponseData. + + 最后一次提交解决方案时间戳 + + :return: The handle_time of this IncidentTicketInfoResponseData. + :rtype: int + """ + return self._handle_time + + @handle_time.setter + def handle_time(self, handle_time): + """Sets the handle_time of this IncidentTicketInfoResponseData. + + 最后一次提交解决方案时间戳 + + :param handle_time: The handle_time of this IncidentTicketInfoResponseData. + :type handle_time: int + """ + self._handle_time = handle_time + + @property + def status(self): + """Gets the status of this IncidentTicketInfoResponseData. + + 状态KEY + + :return: The status of this IncidentTicketInfoResponseData. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this IncidentTicketInfoResponseData. + + 状态KEY + + :param status: The status of this IncidentTicketInfoResponseData. + :type status: str + """ + self._status = status + + @property + def create_time(self): + """Gets the create_time of this IncidentTicketInfoResponseData. + + 创单时间戳 + + :return: The create_time of this IncidentTicketInfoResponseData. + :rtype: int + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this IncidentTicketInfoResponseData. + + 创单时间戳 + + :param create_time: The create_time of this IncidentTicketInfoResponseData. + :type create_time: int + """ + self._create_time = create_time + + @property + def creator(self): + """Gets the creator of this IncidentTicketInfoResponseData. + + 创单人 + + :return: The creator of this IncidentTicketInfoResponseData. + :rtype: str + """ + return self._creator + + @creator.setter + def creator(self, creator): + """Sets the creator of this IncidentTicketInfoResponseData. + + 创单人 + + :param creator: The creator of this IncidentTicketInfoResponseData. + :type creator: str + """ + self._creator = creator + + @property + def enum_data_list(self): + """Gets the enum_data_list of this IncidentTicketInfoResponseData. + + 枚举列表 + + :return: The enum_data_list of this IncidentTicketInfoResponseData. + :rtype: list[:class:`huaweicloudsdkcoc.v1.TicketInfoEnumData`] + """ + return self._enum_data_list + + @enum_data_list.setter + def enum_data_list(self, enum_data_list): + """Sets the enum_data_list of this IncidentTicketInfoResponseData. + + 枚举列表 + + :param enum_data_list: The enum_data_list of this IncidentTicketInfoResponseData. + :type enum_data_list: list[:class:`huaweicloudsdkcoc.v1.TicketInfoEnumData`] + """ + self._enum_data_list = enum_data_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, IncidentTicketInfoResponseData): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/instance_compliant.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/instance_compliant.py new file mode 100644 index 0000000000..0905d05ba6 --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/instance_compliant.py @@ -0,0 +1,625 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class InstanceCompliant: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'compliant_summary': 'CompliantSummary', + 'non_compliant_summary': 'NonCompliantSummary', + 'execution_summary': 'ExecutionSummary', + 'id': 'str', + 'enterprise_project_id': 'str', + 'name': 'str', + 'instance_id': 'str', + 'node_id': 'str', + 'ip': 'str', + 'eip': 'str', + 'region': 'str', + 'group': 'str', + 'report_scene': 'str', + 'cce_info_id': 'str', + 'status': 'str', + 'baseline_id': 'str', + 'baseline_name': 'str', + 'rule_type': 'str', + 'operating_system': 'str' + } + + attribute_map = { + 'compliant_summary': 'compliant_summary', + 'non_compliant_summary': 'non_compliant_summary', + 'execution_summary': 'execution_summary', + 'id': 'id', + 'enterprise_project_id': 'enterprise_project_id', + 'name': 'name', + 'instance_id': 'instance_id', + 'node_id': 'node_id', + 'ip': 'ip', + 'eip': 'eip', + 'region': 'region', + 'group': 'group', + 'report_scene': 'report_scene', + 'cce_info_id': 'cce_info_id', + 'status': 'status', + 'baseline_id': 'baseline_id', + 'baseline_name': 'baseline_name', + 'rule_type': 'rule_type', + 'operating_system': 'operating_system' + } + + def __init__(self, compliant_summary=None, non_compliant_summary=None, execution_summary=None, id=None, enterprise_project_id=None, name=None, instance_id=None, node_id=None, ip=None, eip=None, region=None, group=None, report_scene=None, cce_info_id=None, status=None, baseline_id=None, baseline_name=None, rule_type=None, operating_system=None): + """InstanceCompliant + + The model defined in huaweicloud sdk + + :param compliant_summary: + :type compliant_summary: :class:`huaweicloudsdkcoc.v1.CompliantSummary` + :param non_compliant_summary: + :type non_compliant_summary: :class:`huaweicloudsdkcoc.v1.NonCompliantSummary` + :param execution_summary: + :type execution_summary: :class:`huaweicloudsdkcoc.v1.ExecutionSummary` + :param id: id + :type id: str + :param enterprise_project_id: 企业项目id + :type enterprise_project_id: str + :param name: 节点名称 + :type name: str + :param instance_id: 节点ID + :type instance_id: str + :param node_id: cce集群节点ID + :type node_id: str + :param ip: 节点IP + :type ip: str + :param eip: 弹性公网ip + :type eip: str + :param region: 区域 + :type region: str + :param group: 分组 + :type group: str + :param report_scene: 报告场景(CCE,ECS) + :type report_scene: str + :param cce_info_id: cce 集群信息id + :type cce_info_id: str + :param status: 合规性状态 + :type status: str + :param baseline_id: 基线id + :type baseline_id: str + :param baseline_name: 基线名称 + :type baseline_name: str + :param rule_type: 基线规则类型 + :type rule_type: str + :param operating_system: 操作系统 + :type operating_system: str + """ + + + + self._compliant_summary = None + self._non_compliant_summary = None + self._execution_summary = None + self._id = None + self._enterprise_project_id = None + self._name = None + self._instance_id = None + self._node_id = None + self._ip = None + self._eip = None + self._region = None + self._group = None + self._report_scene = None + self._cce_info_id = None + self._status = None + self._baseline_id = None + self._baseline_name = None + self._rule_type = None + self._operating_system = None + self.discriminator = None + + if compliant_summary is not None: + self.compliant_summary = compliant_summary + if non_compliant_summary is not None: + self.non_compliant_summary = non_compliant_summary + if execution_summary is not None: + self.execution_summary = execution_summary + if id is not None: + self.id = id + if enterprise_project_id is not None: + self.enterprise_project_id = enterprise_project_id + if name is not None: + self.name = name + if instance_id is not None: + self.instance_id = instance_id + if node_id is not None: + self.node_id = node_id + if ip is not None: + self.ip = ip + if eip is not None: + self.eip = eip + if region is not None: + self.region = region + if group is not None: + self.group = group + if report_scene is not None: + self.report_scene = report_scene + if cce_info_id is not None: + self.cce_info_id = cce_info_id + if status is not None: + self.status = status + if baseline_id is not None: + self.baseline_id = baseline_id + if baseline_name is not None: + self.baseline_name = baseline_name + if rule_type is not None: + self.rule_type = rule_type + if operating_system is not None: + self.operating_system = operating_system + + @property + def compliant_summary(self): + """Gets the compliant_summary of this InstanceCompliant. + + :return: The compliant_summary of this InstanceCompliant. + :rtype: :class:`huaweicloudsdkcoc.v1.CompliantSummary` + """ + return self._compliant_summary + + @compliant_summary.setter + def compliant_summary(self, compliant_summary): + """Sets the compliant_summary of this InstanceCompliant. + + :param compliant_summary: The compliant_summary of this InstanceCompliant. + :type compliant_summary: :class:`huaweicloudsdkcoc.v1.CompliantSummary` + """ + self._compliant_summary = compliant_summary + + @property + def non_compliant_summary(self): + """Gets the non_compliant_summary of this InstanceCompliant. + + :return: The non_compliant_summary of this InstanceCompliant. + :rtype: :class:`huaweicloudsdkcoc.v1.NonCompliantSummary` + """ + return self._non_compliant_summary + + @non_compliant_summary.setter + def non_compliant_summary(self, non_compliant_summary): + """Sets the non_compliant_summary of this InstanceCompliant. + + :param non_compliant_summary: The non_compliant_summary of this InstanceCompliant. + :type non_compliant_summary: :class:`huaweicloudsdkcoc.v1.NonCompliantSummary` + """ + self._non_compliant_summary = non_compliant_summary + + @property + def execution_summary(self): + """Gets the execution_summary of this InstanceCompliant. + + :return: The execution_summary of this InstanceCompliant. + :rtype: :class:`huaweicloudsdkcoc.v1.ExecutionSummary` + """ + return self._execution_summary + + @execution_summary.setter + def execution_summary(self, execution_summary): + """Sets the execution_summary of this InstanceCompliant. + + :param execution_summary: The execution_summary of this InstanceCompliant. + :type execution_summary: :class:`huaweicloudsdkcoc.v1.ExecutionSummary` + """ + self._execution_summary = execution_summary + + @property + def id(self): + """Gets the id of this InstanceCompliant. + + id + + :return: The id of this InstanceCompliant. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this InstanceCompliant. + + id + + :param id: The id of this InstanceCompliant. + :type id: str + """ + self._id = id + + @property + def enterprise_project_id(self): + """Gets the enterprise_project_id of this InstanceCompliant. + + 企业项目id + + :return: The enterprise_project_id of this InstanceCompliant. + :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 InstanceCompliant. + + 企业项目id + + :param enterprise_project_id: The enterprise_project_id of this InstanceCompliant. + :type enterprise_project_id: str + """ + self._enterprise_project_id = enterprise_project_id + + @property + def name(self): + """Gets the name of this InstanceCompliant. + + 节点名称 + + :return: The name of this InstanceCompliant. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this InstanceCompliant. + + 节点名称 + + :param name: The name of this InstanceCompliant. + :type name: str + """ + self._name = name + + @property + def instance_id(self): + """Gets the instance_id of this InstanceCompliant. + + 节点ID + + :return: The instance_id of this InstanceCompliant. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this InstanceCompliant. + + 节点ID + + :param instance_id: The instance_id of this InstanceCompliant. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def node_id(self): + """Gets the node_id of this InstanceCompliant. + + cce集群节点ID + + :return: The node_id of this InstanceCompliant. + :rtype: str + """ + return self._node_id + + @node_id.setter + def node_id(self, node_id): + """Sets the node_id of this InstanceCompliant. + + cce集群节点ID + + :param node_id: The node_id of this InstanceCompliant. + :type node_id: str + """ + self._node_id = node_id + + @property + def ip(self): + """Gets the ip of this InstanceCompliant. + + 节点IP + + :return: The ip of this InstanceCompliant. + :rtype: str + """ + return self._ip + + @ip.setter + def ip(self, ip): + """Sets the ip of this InstanceCompliant. + + 节点IP + + :param ip: The ip of this InstanceCompliant. + :type ip: str + """ + self._ip = ip + + @property + def eip(self): + """Gets the eip of this InstanceCompliant. + + 弹性公网ip + + :return: The eip of this InstanceCompliant. + :rtype: str + """ + return self._eip + + @eip.setter + def eip(self, eip): + """Sets the eip of this InstanceCompliant. + + 弹性公网ip + + :param eip: The eip of this InstanceCompliant. + :type eip: str + """ + self._eip = eip + + @property + def region(self): + """Gets the region of this InstanceCompliant. + + 区域 + + :return: The region of this InstanceCompliant. + :rtype: str + """ + return self._region + + @region.setter + def region(self, region): + """Sets the region of this InstanceCompliant. + + 区域 + + :param region: The region of this InstanceCompliant. + :type region: str + """ + self._region = region + + @property + def group(self): + """Gets the group of this InstanceCompliant. + + 分组 + + :return: The group of this InstanceCompliant. + :rtype: str + """ + return self._group + + @group.setter + def group(self, group): + """Sets the group of this InstanceCompliant. + + 分组 + + :param group: The group of this InstanceCompliant. + :type group: str + """ + self._group = group + + @property + def report_scene(self): + """Gets the report_scene of this InstanceCompliant. + + 报告场景(CCE,ECS) + + :return: The report_scene of this InstanceCompliant. + :rtype: str + """ + return self._report_scene + + @report_scene.setter + def report_scene(self, report_scene): + """Sets the report_scene of this InstanceCompliant. + + 报告场景(CCE,ECS) + + :param report_scene: The report_scene of this InstanceCompliant. + :type report_scene: str + """ + self._report_scene = report_scene + + @property + def cce_info_id(self): + """Gets the cce_info_id of this InstanceCompliant. + + cce 集群信息id + + :return: The cce_info_id of this InstanceCompliant. + :rtype: str + """ + return self._cce_info_id + + @cce_info_id.setter + def cce_info_id(self, cce_info_id): + """Sets the cce_info_id of this InstanceCompliant. + + cce 集群信息id + + :param cce_info_id: The cce_info_id of this InstanceCompliant. + :type cce_info_id: str + """ + self._cce_info_id = cce_info_id + + @property + def status(self): + """Gets the status of this InstanceCompliant. + + 合规性状态 + + :return: The status of this InstanceCompliant. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this InstanceCompliant. + + 合规性状态 + + :param status: The status of this InstanceCompliant. + :type status: str + """ + self._status = status + + @property + def baseline_id(self): + """Gets the baseline_id of this InstanceCompliant. + + 基线id + + :return: The baseline_id of this InstanceCompliant. + :rtype: str + """ + return self._baseline_id + + @baseline_id.setter + def baseline_id(self, baseline_id): + """Sets the baseline_id of this InstanceCompliant. + + 基线id + + :param baseline_id: The baseline_id of this InstanceCompliant. + :type baseline_id: str + """ + self._baseline_id = baseline_id + + @property + def baseline_name(self): + """Gets the baseline_name of this InstanceCompliant. + + 基线名称 + + :return: The baseline_name of this InstanceCompliant. + :rtype: str + """ + return self._baseline_name + + @baseline_name.setter + def baseline_name(self, baseline_name): + """Sets the baseline_name of this InstanceCompliant. + + 基线名称 + + :param baseline_name: The baseline_name of this InstanceCompliant. + :type baseline_name: str + """ + self._baseline_name = baseline_name + + @property + def rule_type(self): + """Gets the rule_type of this InstanceCompliant. + + 基线规则类型 + + :return: The rule_type of this InstanceCompliant. + :rtype: str + """ + return self._rule_type + + @rule_type.setter + def rule_type(self, rule_type): + """Sets the rule_type of this InstanceCompliant. + + 基线规则类型 + + :param rule_type: The rule_type of this InstanceCompliant. + :type rule_type: str + """ + self._rule_type = rule_type + + @property + def operating_system(self): + """Gets the operating_system of this InstanceCompliant. + + 操作系统 + + :return: The operating_system of this InstanceCompliant. + :rtype: str + """ + return self._operating_system + + @operating_system.setter + def operating_system(self, operating_system): + """Sets the operating_system of this InstanceCompliant. + + 操作系统 + + :param operating_system: The operating_system of this InstanceCompliant. + :type operating_system: str + """ + self._operating_system = operating_system + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, InstanceCompliant): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/job_script_batch_detail_model.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/job_script_batch_detail_model.py new file mode 100644 index 0000000000..c67e40feab --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/job_script_batch_detail_model.py @@ -0,0 +1,173 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class JobScriptBatchDetailModel: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'batch_index': 'int', + 'total_instances': 'int', + 'execute_instances': 'list[ExectionInstanceModel]' + } + + attribute_map = { + 'batch_index': 'batch_index', + 'total_instances': 'total_instances', + 'execute_instances': 'execute_instances' + } + + def __init__(self, batch_index=None, total_instances=None, execute_instances=None): + """JobScriptBatchDetailModel + + The model defined in huaweicloud sdk + + :param batch_index: 批次索引,从1开始 + :type batch_index: int + :param total_instances: 批次内执行实例数量 + :type total_instances: int + :param execute_instances: 执行实例列表,分页 + :type execute_instances: list[:class:`huaweicloudsdkcoc.v1.ExectionInstanceModel`] + """ + + + + self._batch_index = None + self._total_instances = None + self._execute_instances = None + self.discriminator = None + + if batch_index is not None: + self.batch_index = batch_index + if total_instances is not None: + self.total_instances = total_instances + if execute_instances is not None: + self.execute_instances = execute_instances + + @property + def batch_index(self): + """Gets the batch_index of this JobScriptBatchDetailModel. + + 批次索引,从1开始 + + :return: The batch_index of this JobScriptBatchDetailModel. + :rtype: int + """ + return self._batch_index + + @batch_index.setter + def batch_index(self, batch_index): + """Sets the batch_index of this JobScriptBatchDetailModel. + + 批次索引,从1开始 + + :param batch_index: The batch_index of this JobScriptBatchDetailModel. + :type batch_index: int + """ + self._batch_index = batch_index + + @property + def total_instances(self): + """Gets the total_instances of this JobScriptBatchDetailModel. + + 批次内执行实例数量 + + :return: The total_instances of this JobScriptBatchDetailModel. + :rtype: int + """ + return self._total_instances + + @total_instances.setter + def total_instances(self, total_instances): + """Sets the total_instances of this JobScriptBatchDetailModel. + + 批次内执行实例数量 + + :param total_instances: The total_instances of this JobScriptBatchDetailModel. + :type total_instances: int + """ + self._total_instances = total_instances + + @property + def execute_instances(self): + """Gets the execute_instances of this JobScriptBatchDetailModel. + + 执行实例列表,分页 + + :return: The execute_instances of this JobScriptBatchDetailModel. + :rtype: list[:class:`huaweicloudsdkcoc.v1.ExectionInstanceModel`] + """ + return self._execute_instances + + @execute_instances.setter + def execute_instances(self, execute_instances): + """Sets the execute_instances of this JobScriptBatchDetailModel. + + 执行实例列表,分页 + + :param execute_instances: The execute_instances of this JobScriptBatchDetailModel. + :type execute_instances: list[:class:`huaweicloudsdkcoc.v1.ExectionInstanceModel`] + """ + self._execute_instances = execute_instances + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, JobScriptBatchDetailModel): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/job_script_batch_list_model.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/job_script_batch_list_model.py new file mode 100644 index 0000000000..e8c5f0c1e4 --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/job_script_batch_list_model.py @@ -0,0 +1,202 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class JobScriptBatchListModel: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'batch_index': 'int', + 'total_instances': 'int', + 'rotation_strategy': 'str', + 'properties': 'str' + } + + attribute_map = { + 'batch_index': 'batch_index', + 'total_instances': 'total_instances', + 'rotation_strategy': 'rotation_strategy', + 'properties': 'properties' + } + + def __init__(self, batch_index=None, total_instances=None, rotation_strategy=None, properties=None): + """JobScriptBatchListModel + + The model defined in huaweicloud sdk + + :param batch_index: 批次索引,从1开始 + :type batch_index: int + :param total_instances: 批次内实例节点数量 + :type total_instances: int + :param rotation_strategy: 暂停继续策略 + :type rotation_strategy: str + :param properties: 批次标签: + :type properties: str + """ + + + + self._batch_index = None + self._total_instances = None + self._rotation_strategy = None + self._properties = None + self.discriminator = None + + if batch_index is not None: + self.batch_index = batch_index + if total_instances is not None: + self.total_instances = total_instances + if rotation_strategy is not None: + self.rotation_strategy = rotation_strategy + if properties is not None: + self.properties = properties + + @property + def batch_index(self): + """Gets the batch_index of this JobScriptBatchListModel. + + 批次索引,从1开始 + + :return: The batch_index of this JobScriptBatchListModel. + :rtype: int + """ + return self._batch_index + + @batch_index.setter + def batch_index(self, batch_index): + """Sets the batch_index of this JobScriptBatchListModel. + + 批次索引,从1开始 + + :param batch_index: The batch_index of this JobScriptBatchListModel. + :type batch_index: int + """ + self._batch_index = batch_index + + @property + def total_instances(self): + """Gets the total_instances of this JobScriptBatchListModel. + + 批次内实例节点数量 + + :return: The total_instances of this JobScriptBatchListModel. + :rtype: int + """ + return self._total_instances + + @total_instances.setter + def total_instances(self, total_instances): + """Sets the total_instances of this JobScriptBatchListModel. + + 批次内实例节点数量 + + :param total_instances: The total_instances of this JobScriptBatchListModel. + :type total_instances: int + """ + self._total_instances = total_instances + + @property + def rotation_strategy(self): + """Gets the rotation_strategy of this JobScriptBatchListModel. + + 暂停继续策略 + + :return: The rotation_strategy of this JobScriptBatchListModel. + :rtype: str + """ + return self._rotation_strategy + + @rotation_strategy.setter + def rotation_strategy(self, rotation_strategy): + """Sets the rotation_strategy of this JobScriptBatchListModel. + + 暂停继续策略 + + :param rotation_strategy: The rotation_strategy of this JobScriptBatchListModel. + :type rotation_strategy: str + """ + self._rotation_strategy = rotation_strategy + + @property + def properties(self): + """Gets the properties of this JobScriptBatchListModel. + + 批次标签: + + :return: The properties of this JobScriptBatchListModel. + :rtype: str + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this JobScriptBatchListModel. + + 批次标签: + + :param properties: The properties of this JobScriptBatchListModel. + :type properties: str + """ + 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, JobScriptBatchListModel): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/job_script_order_info_model.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/job_script_order_info_model.py new file mode 100644 index 0000000000..9aae0f8a76 --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/job_script_order_info_model.py @@ -0,0 +1,285 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class JobScriptOrderInfoModel: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'execute_uuid': 'str', + 'gmt_created': 'int', + 'gmt_finished': 'int', + 'execute_costs': 'int', + 'creator': 'str', + 'status': 'str', + 'properties': 'JobScriptOrderInfoProp' + } + + attribute_map = { + 'execute_uuid': 'execute_uuid', + 'gmt_created': 'gmt_created', + 'gmt_finished': 'gmt_finished', + 'execute_costs': 'execute_costs', + 'creator': 'creator', + 'status': 'status', + 'properties': 'properties' + } + + def __init__(self, execute_uuid=None, gmt_created=None, gmt_finished=None, execute_costs=None, creator=None, status=None, properties=None): + """JobScriptOrderInfoModel + + The model defined in huaweicloud sdk + + :param execute_uuid: 执行uuid + :type execute_uuid: str + :param gmt_created: 执行创建时间 + :type gmt_created: int + :param gmt_finished: 执行完成时间 + :type gmt_finished: int + :param execute_costs: 执行耗时,单位:秒 + :type execute_costs: int + :param creator: 创建人 + :type creator: str + :param status: 执行状态 + :type status: str + :param properties: + :type properties: :class:`huaweicloudsdkcoc.v1.JobScriptOrderInfoProp` + """ + + + + self._execute_uuid = None + self._gmt_created = None + self._gmt_finished = None + self._execute_costs = None + self._creator = None + self._status = None + self._properties = None + self.discriminator = None + + if execute_uuid is not None: + self.execute_uuid = execute_uuid + if gmt_created is not None: + self.gmt_created = gmt_created + if gmt_finished is not None: + self.gmt_finished = gmt_finished + if execute_costs is not None: + self.execute_costs = execute_costs + if creator is not None: + self.creator = creator + if status is not None: + self.status = status + if properties is not None: + self.properties = properties + + @property + def execute_uuid(self): + """Gets the execute_uuid of this JobScriptOrderInfoModel. + + 执行uuid + + :return: The execute_uuid of this JobScriptOrderInfoModel. + :rtype: str + """ + return self._execute_uuid + + @execute_uuid.setter + def execute_uuid(self, execute_uuid): + """Sets the execute_uuid of this JobScriptOrderInfoModel. + + 执行uuid + + :param execute_uuid: The execute_uuid of this JobScriptOrderInfoModel. + :type execute_uuid: str + """ + self._execute_uuid = execute_uuid + + @property + def gmt_created(self): + """Gets the gmt_created of this JobScriptOrderInfoModel. + + 执行创建时间 + + :return: The gmt_created of this JobScriptOrderInfoModel. + :rtype: int + """ + return self._gmt_created + + @gmt_created.setter + def gmt_created(self, gmt_created): + """Sets the gmt_created of this JobScriptOrderInfoModel. + + 执行创建时间 + + :param gmt_created: The gmt_created of this JobScriptOrderInfoModel. + :type gmt_created: int + """ + self._gmt_created = gmt_created + + @property + def gmt_finished(self): + """Gets the gmt_finished of this JobScriptOrderInfoModel. + + 执行完成时间 + + :return: The gmt_finished of this JobScriptOrderInfoModel. + :rtype: int + """ + return self._gmt_finished + + @gmt_finished.setter + def gmt_finished(self, gmt_finished): + """Sets the gmt_finished of this JobScriptOrderInfoModel. + + 执行完成时间 + + :param gmt_finished: The gmt_finished of this JobScriptOrderInfoModel. + :type gmt_finished: int + """ + self._gmt_finished = gmt_finished + + @property + def execute_costs(self): + """Gets the execute_costs of this JobScriptOrderInfoModel. + + 执行耗时,单位:秒 + + :return: The execute_costs of this JobScriptOrderInfoModel. + :rtype: int + """ + return self._execute_costs + + @execute_costs.setter + def execute_costs(self, execute_costs): + """Sets the execute_costs of this JobScriptOrderInfoModel. + + 执行耗时,单位:秒 + + :param execute_costs: The execute_costs of this JobScriptOrderInfoModel. + :type execute_costs: int + """ + self._execute_costs = execute_costs + + @property + def creator(self): + """Gets the creator of this JobScriptOrderInfoModel. + + 创建人 + + :return: The creator of this JobScriptOrderInfoModel. + :rtype: str + """ + return self._creator + + @creator.setter + def creator(self, creator): + """Sets the creator of this JobScriptOrderInfoModel. + + 创建人 + + :param creator: The creator of this JobScriptOrderInfoModel. + :type creator: str + """ + self._creator = creator + + @property + def status(self): + """Gets the status of this JobScriptOrderInfoModel. + + 执行状态 + + :return: The status of this JobScriptOrderInfoModel. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this JobScriptOrderInfoModel. + + 执行状态 + + :param status: The status of this JobScriptOrderInfoModel. + :type status: str + """ + self._status = status + + @property + def properties(self): + """Gets the properties of this JobScriptOrderInfoModel. + + :return: The properties of this JobScriptOrderInfoModel. + :rtype: :class:`huaweicloudsdkcoc.v1.JobScriptOrderInfoProp` + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this JobScriptOrderInfoModel. + + :param properties: The properties of this JobScriptOrderInfoModel. + :type properties: :class:`huaweicloudsdkcoc.v1.JobScriptOrderInfoProp` + """ + 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, JobScriptOrderInfoModel): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/job_script_order_info_prop.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/job_script_order_info_prop.py new file mode 100644 index 0000000000..1f8c71177f --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/job_script_order_info_prop.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class JobScriptOrderInfoProp: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'script_uuid': 'str', + 'script_name': 'str', + 'script_version_uuid': 'int', + 'script_version_name': 'str', + 'current_execute_batch_index': 'int', + 'execute_param': 'ScriptExecuteParam' + } + + attribute_map = { + 'script_uuid': 'script_uuid', + 'script_name': 'script_name', + 'script_version_uuid': 'script_version_uuid', + 'script_version_name': 'script_version_name', + 'current_execute_batch_index': 'current_execute_batch_index', + 'execute_param': 'execute_param' + } + + def __init__(self, script_uuid=None, script_name=None, script_version_uuid=None, script_version_name=None, current_execute_batch_index=None, execute_param=None): + """JobScriptOrderInfoProp + + The model defined in huaweicloud sdk + + :param script_uuid: 脚本uuid + :type script_uuid: str + :param script_name: 脚本名称 + :type script_name: str + :param script_version_uuid: 脚本版本uuid + :type script_version_uuid: int + :param script_version_name: 脚本版本名 + :type script_version_name: str + :param current_execute_batch_index: 当前执行批次index + :type current_execute_batch_index: int + :param execute_param: + :type execute_param: :class:`huaweicloudsdkcoc.v1.ScriptExecuteParam` + """ + + + + self._script_uuid = None + self._script_name = None + self._script_version_uuid = None + self._script_version_name = None + self._current_execute_batch_index = None + self._execute_param = None + self.discriminator = None + + if script_uuid is not None: + self.script_uuid = script_uuid + if script_name is not None: + self.script_name = script_name + if script_version_uuid is not None: + self.script_version_uuid = script_version_uuid + if script_version_name is not None: + self.script_version_name = script_version_name + if current_execute_batch_index is not None: + self.current_execute_batch_index = current_execute_batch_index + if execute_param is not None: + self.execute_param = execute_param + + @property + def script_uuid(self): + """Gets the script_uuid of this JobScriptOrderInfoProp. + + 脚本uuid + + :return: The script_uuid of this JobScriptOrderInfoProp. + :rtype: str + """ + return self._script_uuid + + @script_uuid.setter + def script_uuid(self, script_uuid): + """Sets the script_uuid of this JobScriptOrderInfoProp. + + 脚本uuid + + :param script_uuid: The script_uuid of this JobScriptOrderInfoProp. + :type script_uuid: str + """ + self._script_uuid = script_uuid + + @property + def script_name(self): + """Gets the script_name of this JobScriptOrderInfoProp. + + 脚本名称 + + :return: The script_name of this JobScriptOrderInfoProp. + :rtype: str + """ + return self._script_name + + @script_name.setter + def script_name(self, script_name): + """Sets the script_name of this JobScriptOrderInfoProp. + + 脚本名称 + + :param script_name: The script_name of this JobScriptOrderInfoProp. + :type script_name: str + """ + self._script_name = script_name + + @property + def script_version_uuid(self): + """Gets the script_version_uuid of this JobScriptOrderInfoProp. + + 脚本版本uuid + + :return: The script_version_uuid of this JobScriptOrderInfoProp. + :rtype: int + """ + return self._script_version_uuid + + @script_version_uuid.setter + def script_version_uuid(self, script_version_uuid): + """Sets the script_version_uuid of this JobScriptOrderInfoProp. + + 脚本版本uuid + + :param script_version_uuid: The script_version_uuid of this JobScriptOrderInfoProp. + :type script_version_uuid: int + """ + self._script_version_uuid = script_version_uuid + + @property + def script_version_name(self): + """Gets the script_version_name of this JobScriptOrderInfoProp. + + 脚本版本名 + + :return: The script_version_name of this JobScriptOrderInfoProp. + :rtype: str + """ + return self._script_version_name + + @script_version_name.setter + def script_version_name(self, script_version_name): + """Sets the script_version_name of this JobScriptOrderInfoProp. + + 脚本版本名 + + :param script_version_name: The script_version_name of this JobScriptOrderInfoProp. + :type script_version_name: str + """ + self._script_version_name = script_version_name + + @property + def current_execute_batch_index(self): + """Gets the current_execute_batch_index of this JobScriptOrderInfoProp. + + 当前执行批次index + + :return: The current_execute_batch_index of this JobScriptOrderInfoProp. + :rtype: int + """ + return self._current_execute_batch_index + + @current_execute_batch_index.setter + def current_execute_batch_index(self, current_execute_batch_index): + """Sets the current_execute_batch_index of this JobScriptOrderInfoProp. + + 当前执行批次index + + :param current_execute_batch_index: The current_execute_batch_index of this JobScriptOrderInfoProp. + :type current_execute_batch_index: int + """ + self._current_execute_batch_index = current_execute_batch_index + + @property + def execute_param(self): + """Gets the execute_param of this JobScriptOrderInfoProp. + + :return: The execute_param of this JobScriptOrderInfoProp. + :rtype: :class:`huaweicloudsdkcoc.v1.ScriptExecuteParam` + """ + return self._execute_param + + @execute_param.setter + def execute_param(self, execute_param): + """Sets the execute_param of this JobScriptOrderInfoProp. + + :param execute_param: The execute_param of this JobScriptOrderInfoProp. + :type execute_param: :class:`huaweicloudsdkcoc.v1.ScriptExecuteParam` + """ + self._execute_param = execute_param + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, JobScriptOrderInfoProp): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/job_script_order_list_model.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/job_script_order_list_model.py new file mode 100644 index 0000000000..730e5ea20a --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/job_script_order_list_model.py @@ -0,0 +1,340 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class JobScriptOrderListModel: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'order_id': 'int', + 'order_name': 'str', + 'execute_uuid': 'str', + 'gmt_created': 'int', + 'gmt_finished': 'int', + 'execute_costs': 'int', + 'creator': 'str', + 'status': 'str', + 'properties': 'JobScriptOrderListProp' + } + + attribute_map = { + 'order_id': 'order_id', + 'order_name': 'order_name', + 'execute_uuid': 'execute_uuid', + 'gmt_created': 'gmt_created', + 'gmt_finished': 'gmt_finished', + 'execute_costs': 'execute_costs', + 'creator': 'creator', + 'status': 'status', + 'properties': 'properties' + } + + def __init__(self, order_id=None, order_name=None, execute_uuid=None, gmt_created=None, gmt_finished=None, execute_costs=None, creator=None, status=None, properties=None): + """JobScriptOrderListModel + + The model defined in huaweicloud sdk + + :param order_id: 主键id,对应job_order_do的主键 + :type order_id: int + :param order_name: 工单名称 + :type order_name: str + :param execute_uuid: 列表跳转到详情时,用这个uuid,对应execute_data_do的execute_uuid + :type execute_uuid: str + :param gmt_created: 创建时间 + :type gmt_created: int + :param gmt_finished: 完成时间 + :type gmt_finished: int + :param execute_costs: 执行耗时,单位:秒 + :type execute_costs: int + :param creator: 创建人 + :type creator: str + :param status: 工单状态 + :type status: str + :param properties: + :type properties: :class:`huaweicloudsdkcoc.v1.JobScriptOrderListProp` + """ + + + + self._order_id = None + self._order_name = None + self._execute_uuid = None + self._gmt_created = None + self._gmt_finished = None + self._execute_costs = None + self._creator = None + self._status = None + self._properties = None + self.discriminator = None + + self.order_id = order_id + self.order_name = order_name + self.execute_uuid = execute_uuid + if gmt_created is not None: + self.gmt_created = gmt_created + if gmt_finished is not None: + self.gmt_finished = gmt_finished + if execute_costs is not None: + self.execute_costs = execute_costs + if creator is not None: + self.creator = creator + if status is not None: + self.status = status + if properties is not None: + self.properties = properties + + @property + def order_id(self): + """Gets the order_id of this JobScriptOrderListModel. + + 主键id,对应job_order_do的主键 + + :return: The order_id of this JobScriptOrderListModel. + :rtype: int + """ + return self._order_id + + @order_id.setter + def order_id(self, order_id): + """Sets the order_id of this JobScriptOrderListModel. + + 主键id,对应job_order_do的主键 + + :param order_id: The order_id of this JobScriptOrderListModel. + :type order_id: int + """ + self._order_id = order_id + + @property + def order_name(self): + """Gets the order_name of this JobScriptOrderListModel. + + 工单名称 + + :return: The order_name of this JobScriptOrderListModel. + :rtype: str + """ + return self._order_name + + @order_name.setter + def order_name(self, order_name): + """Sets the order_name of this JobScriptOrderListModel. + + 工单名称 + + :param order_name: The order_name of this JobScriptOrderListModel. + :type order_name: str + """ + self._order_name = order_name + + @property + def execute_uuid(self): + """Gets the execute_uuid of this JobScriptOrderListModel. + + 列表跳转到详情时,用这个uuid,对应execute_data_do的execute_uuid + + :return: The execute_uuid of this JobScriptOrderListModel. + :rtype: str + """ + return self._execute_uuid + + @execute_uuid.setter + def execute_uuid(self, execute_uuid): + """Sets the execute_uuid of this JobScriptOrderListModel. + + 列表跳转到详情时,用这个uuid,对应execute_data_do的execute_uuid + + :param execute_uuid: The execute_uuid of this JobScriptOrderListModel. + :type execute_uuid: str + """ + self._execute_uuid = execute_uuid + + @property + def gmt_created(self): + """Gets the gmt_created of this JobScriptOrderListModel. + + 创建时间 + + :return: The gmt_created of this JobScriptOrderListModel. + :rtype: int + """ + return self._gmt_created + + @gmt_created.setter + def gmt_created(self, gmt_created): + """Sets the gmt_created of this JobScriptOrderListModel. + + 创建时间 + + :param gmt_created: The gmt_created of this JobScriptOrderListModel. + :type gmt_created: int + """ + self._gmt_created = gmt_created + + @property + def gmt_finished(self): + """Gets the gmt_finished of this JobScriptOrderListModel. + + 完成时间 + + :return: The gmt_finished of this JobScriptOrderListModel. + :rtype: int + """ + return self._gmt_finished + + @gmt_finished.setter + def gmt_finished(self, gmt_finished): + """Sets the gmt_finished of this JobScriptOrderListModel. + + 完成时间 + + :param gmt_finished: The gmt_finished of this JobScriptOrderListModel. + :type gmt_finished: int + """ + self._gmt_finished = gmt_finished + + @property + def execute_costs(self): + """Gets the execute_costs of this JobScriptOrderListModel. + + 执行耗时,单位:秒 + + :return: The execute_costs of this JobScriptOrderListModel. + :rtype: int + """ + return self._execute_costs + + @execute_costs.setter + def execute_costs(self, execute_costs): + """Sets the execute_costs of this JobScriptOrderListModel. + + 执行耗时,单位:秒 + + :param execute_costs: The execute_costs of this JobScriptOrderListModel. + :type execute_costs: int + """ + self._execute_costs = execute_costs + + @property + def creator(self): + """Gets the creator of this JobScriptOrderListModel. + + 创建人 + + :return: The creator of this JobScriptOrderListModel. + :rtype: str + """ + return self._creator + + @creator.setter + def creator(self, creator): + """Sets the creator of this JobScriptOrderListModel. + + 创建人 + + :param creator: The creator of this JobScriptOrderListModel. + :type creator: str + """ + self._creator = creator + + @property + def status(self): + """Gets the status of this JobScriptOrderListModel. + + 工单状态 + + :return: The status of this JobScriptOrderListModel. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this JobScriptOrderListModel. + + 工单状态 + + :param status: The status of this JobScriptOrderListModel. + :type status: str + """ + self._status = status + + @property + def properties(self): + """Gets the properties of this JobScriptOrderListModel. + + :return: The properties of this JobScriptOrderListModel. + :rtype: :class:`huaweicloudsdkcoc.v1.JobScriptOrderListProp` + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this JobScriptOrderListModel. + + :param properties: The properties of this JobScriptOrderListModel. + :type properties: :class:`huaweicloudsdkcoc.v1.JobScriptOrderListProp` + """ + 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, JobScriptOrderListModel): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/job_script_order_list_page.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/job_script_order_list_page.py new file mode 100644 index 0000000000..e71bd0b107 --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/job_script_order_list_page.py @@ -0,0 +1,142 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class JobScriptOrderListPage: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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': 'int', + 'data': 'list[JobScriptOrderListModel]' + } + + attribute_map = { + 'total': 'total', + 'data': 'data' + } + + def __init__(self, total=None, data=None): + """JobScriptOrderListPage + + The model defined in huaweicloud sdk + + :param total: 总条数 + :type total: int + :param data: 单页数据列表 + :type data: list[:class:`huaweicloudsdkcoc.v1.JobScriptOrderListModel`] + """ + + + + self._total = None + self._data = None + self.discriminator = None + + self.total = total + self.data = data + + @property + def total(self): + """Gets the total of this JobScriptOrderListPage. + + 总条数 + + :return: The total of this JobScriptOrderListPage. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """Sets the total of this JobScriptOrderListPage. + + 总条数 + + :param total: The total of this JobScriptOrderListPage. + :type total: int + """ + self._total = total + + @property + def data(self): + """Gets the data of this JobScriptOrderListPage. + + 单页数据列表 + + :return: The data of this JobScriptOrderListPage. + :rtype: list[:class:`huaweicloudsdkcoc.v1.JobScriptOrderListModel`] + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this JobScriptOrderListPage. + + 单页数据列表 + + :param data: The data of this JobScriptOrderListPage. + :type data: list[:class:`huaweicloudsdkcoc.v1.JobScriptOrderListModel`] + """ + 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, JobScriptOrderListPage): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/job_script_order_list_prop.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/job_script_order_list_prop.py new file mode 100644 index 0000000000..22fe865974 --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/job_script_order_list_prop.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class JobScriptOrderListProp: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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_ids': 'str' + } + + attribute_map = { + 'region_ids': 'region_ids' + } + + def __init__(self, region_ids=None): + """JobScriptOrderListProp + + The model defined in huaweicloud sdk + + :param region_ids: CMDB服务实例区域id,可能有多个 + :type region_ids: str + """ + + + + self._region_ids = None + self.discriminator = None + + if region_ids is not None: + self.region_ids = region_ids + + @property + def region_ids(self): + """Gets the region_ids of this JobScriptOrderListProp. + + CMDB服务实例区域id,可能有多个 + + :return: The region_ids of this JobScriptOrderListProp. + :rtype: str + """ + return self._region_ids + + @region_ids.setter + def region_ids(self, region_ids): + """Sets the region_ids of this JobScriptOrderListProp. + + CMDB服务实例区域id,可能有多个 + + :param region_ids: The region_ids of this JobScriptOrderListProp. + :type region_ids: str + """ + self._region_ids = region_ids + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, JobScriptOrderListProp): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/job_script_order_operation_body.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/job_script_order_operation_body.py new file mode 100644 index 0000000000..a4f00419f5 --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/job_script_order_operation_body.py @@ -0,0 +1,172 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class JobScriptOrderOperationBody: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'batch_index': 'int', + 'instance_id': 'int', + 'operation_type': 'str' + } + + attribute_map = { + 'batch_index': 'batch_index', + 'instance_id': 'instance_id', + 'operation_type': 'operation_type' + } + + def __init__(self, batch_index=None, instance_id=None, operation_type=None): + """JobScriptOrderOperationBody + + The model defined in huaweicloud sdk + + :param batch_index: 适用于批次操作时 + :type batch_index: int + :param instance_id: 适用于实例操作时 非script_execute_instance_do中iD,需要新增字段 + :type instance_id: int + :param operation_type: 操作类型:取消实例、跳过批次、取消整个工单、暂停整个工单、继续整个工单 CANCEL_INSTANCE:取消实例 SKIP_BATCH:跳过批次 CANCEL_ORDER:取消整个工单 PAUSE_ORDER:暂停整个工单 CONTINUE_ORDER:继续整个工单 + :type operation_type: str + """ + + + + self._batch_index = None + self._instance_id = None + self._operation_type = None + self.discriminator = None + + if batch_index is not None: + self.batch_index = batch_index + if instance_id is not None: + self.instance_id = instance_id + self.operation_type = operation_type + + @property + def batch_index(self): + """Gets the batch_index of this JobScriptOrderOperationBody. + + 适用于批次操作时 + + :return: The batch_index of this JobScriptOrderOperationBody. + :rtype: int + """ + return self._batch_index + + @batch_index.setter + def batch_index(self, batch_index): + """Sets the batch_index of this JobScriptOrderOperationBody. + + 适用于批次操作时 + + :param batch_index: The batch_index of this JobScriptOrderOperationBody. + :type batch_index: int + """ + self._batch_index = batch_index + + @property + def instance_id(self): + """Gets the instance_id of this JobScriptOrderOperationBody. + + 适用于实例操作时 非script_execute_instance_do中iD,需要新增字段 + + :return: The instance_id of this JobScriptOrderOperationBody. + :rtype: int + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this JobScriptOrderOperationBody. + + 适用于实例操作时 非script_execute_instance_do中iD,需要新增字段 + + :param instance_id: The instance_id of this JobScriptOrderOperationBody. + :type instance_id: int + """ + self._instance_id = instance_id + + @property + def operation_type(self): + """Gets the operation_type of this JobScriptOrderOperationBody. + + 操作类型:取消实例、跳过批次、取消整个工单、暂停整个工单、继续整个工单 CANCEL_INSTANCE:取消实例 SKIP_BATCH:跳过批次 CANCEL_ORDER:取消整个工单 PAUSE_ORDER:暂停整个工单 CONTINUE_ORDER:继续整个工单 + + :return: The operation_type of this JobScriptOrderOperationBody. + :rtype: str + """ + return self._operation_type + + @operation_type.setter + def operation_type(self, operation_type): + """Sets the operation_type of this JobScriptOrderOperationBody. + + 操作类型:取消实例、跳过批次、取消整个工单、暂停整个工单、继续整个工单 CANCEL_INSTANCE:取消实例 SKIP_BATCH:跳过批次 CANCEL_ORDER:取消整个工单 PAUSE_ORDER:暂停整个工单 CONTINUE_ORDER:继续整个工单 + + :param operation_type: The operation_type of this JobScriptOrderOperationBody. + :type operation_type: str + """ + self._operation_type = operation_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, JobScriptOrderOperationBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/job_script_order_statistics_model.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/job_script_order_statistics_model.py new file mode 100644 index 0000000000..c8284b2193 --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/job_script_order_statistics_model.py @@ -0,0 +1,144 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class JobScriptOrderStatisticsModel: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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_instance': 'int', + 'execute_statistics': 'list[ExectuionStatistic]' + } + + attribute_map = { + 'total_instance': 'total_instance', + 'execute_statistics': 'execute_statistics' + } + + def __init__(self, total_instance=None, execute_statistics=None): + """JobScriptOrderStatisticsModel + + The model defined in huaweicloud sdk + + :param total_instance: 实例总量 + :type total_instance: int + :param execute_statistics: 每个状态一个count,里面记录该状态的总数量,以及包含该状态的批次列表 + :type execute_statistics: list[:class:`huaweicloudsdkcoc.v1.ExectuionStatistic`] + """ + + + + self._total_instance = None + self._execute_statistics = None + self.discriminator = None + + if total_instance is not None: + self.total_instance = total_instance + if execute_statistics is not None: + self.execute_statistics = execute_statistics + + @property + def total_instance(self): + """Gets the total_instance of this JobScriptOrderStatisticsModel. + + 实例总量 + + :return: The total_instance of this JobScriptOrderStatisticsModel. + :rtype: int + """ + return self._total_instance + + @total_instance.setter + def total_instance(self, total_instance): + """Sets the total_instance of this JobScriptOrderStatisticsModel. + + 实例总量 + + :param total_instance: The total_instance of this JobScriptOrderStatisticsModel. + :type total_instance: int + """ + self._total_instance = total_instance + + @property + def execute_statistics(self): + """Gets the execute_statistics of this JobScriptOrderStatisticsModel. + + 每个状态一个count,里面记录该状态的总数量,以及包含该状态的批次列表 + + :return: The execute_statistics of this JobScriptOrderStatisticsModel. + :rtype: list[:class:`huaweicloudsdkcoc.v1.ExectuionStatistic`] + """ + return self._execute_statistics + + @execute_statistics.setter + def execute_statistics(self, execute_statistics): + """Sets the execute_statistics of this JobScriptOrderStatisticsModel. + + 每个状态一个count,里面记录该状态的总数量,以及包含该状态的批次列表 + + :param execute_statistics: The execute_statistics of this JobScriptOrderStatisticsModel. + :type execute_statistics: list[:class:`huaweicloudsdkcoc.v1.ExectuionStatistic`] + """ + self._execute_statistics = execute_statistics + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, JobScriptOrderStatisticsModel): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/list_applications_request.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/list_applications_request.py new file mode 100644 index 0000000000..cbe43a9a03 --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/list_applications_request.py @@ -0,0 +1,259 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListApplicationsRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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_list': 'list[str]', + 'parent_id': 'str', + 'name_like': 'str', + 'code': 'str', + 'marker': 'str', + 'limit': 'int' + } + + attribute_map = { + 'id_list': 'id_list', + 'parent_id': 'parent_id', + 'name_like': 'name_like', + 'code': 'code', + 'marker': 'marker', + 'limit': 'limit' + } + + def __init__(self, id_list=None, parent_id=None, name_like=None, code=None, marker=None, limit=None): + """ListApplicationsRequest + + The model defined in huaweicloud sdk + + :param id_list: id列表 + :type id_list: list[str] + :param parent_id: parent id + :type parent_id: str + :param name_like: 应用名称模糊匹配 + :type name_like: str + :param code: 应用code + :type code: str + :param marker: 分页参数,上一页请求最后一个id + :type marker: str + :param limit: 最大的返回数量 + :type limit: int + """ + + + + self._id_list = None + self._parent_id = None + self._name_like = None + self._code = None + self._marker = None + self._limit = None + self.discriminator = None + + if id_list is not None: + self.id_list = id_list + if parent_id is not None: + self.parent_id = parent_id + if name_like is not None: + self.name_like = name_like + if code is not None: + self.code = code + if marker is not None: + self.marker = marker + self.limit = limit + + @property + def id_list(self): + """Gets the id_list of this ListApplicationsRequest. + + id列表 + + :return: The id_list of this ListApplicationsRequest. + :rtype: list[str] + """ + return self._id_list + + @id_list.setter + def id_list(self, id_list): + """Sets the id_list of this ListApplicationsRequest. + + id列表 + + :param id_list: The id_list of this ListApplicationsRequest. + :type id_list: list[str] + """ + self._id_list = id_list + + @property + def parent_id(self): + """Gets the parent_id of this ListApplicationsRequest. + + parent id + + :return: The parent_id of this ListApplicationsRequest. + :rtype: str + """ + return self._parent_id + + @parent_id.setter + def parent_id(self, parent_id): + """Sets the parent_id of this ListApplicationsRequest. + + parent id + + :param parent_id: The parent_id of this ListApplicationsRequest. + :type parent_id: str + """ + self._parent_id = parent_id + + @property + def name_like(self): + """Gets the name_like of this ListApplicationsRequest. + + 应用名称模糊匹配 + + :return: The name_like of this ListApplicationsRequest. + :rtype: str + """ + return self._name_like + + @name_like.setter + def name_like(self, name_like): + """Sets the name_like of this ListApplicationsRequest. + + 应用名称模糊匹配 + + :param name_like: The name_like of this ListApplicationsRequest. + :type name_like: str + """ + self._name_like = name_like + + @property + def code(self): + """Gets the code of this ListApplicationsRequest. + + 应用code + + :return: The code of this ListApplicationsRequest. + :rtype: str + """ + return self._code + + @code.setter + def code(self, code): + """Sets the code of this ListApplicationsRequest. + + 应用code + + :param code: The code of this ListApplicationsRequest. + :type code: str + """ + self._code = code + + @property + def marker(self): + """Gets the marker of this ListApplicationsRequest. + + 分页参数,上一页请求最后一个id + + :return: The marker of this ListApplicationsRequest. + :rtype: str + """ + return self._marker + + @marker.setter + def marker(self, marker): + """Sets the marker of this ListApplicationsRequest. + + 分页参数,上一页请求最后一个id + + :param marker: The marker of this ListApplicationsRequest. + :type marker: str + """ + self._marker = marker + + @property + def limit(self): + """Gets the limit of this ListApplicationsRequest. + + 最大的返回数量 + + :return: The limit of this ListApplicationsRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ListApplicationsRequest. + + 最大的返回数量 + + :param limit: The limit of this ListApplicationsRequest. + :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, ListApplicationsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/list_applications_response.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/list_applications_response.py new file mode 100644 index 0000000000..00948996d8 --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/list_applications_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 ListApplicationsResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'data': 'list[ApplicationQueryResponseData]' + } + + attribute_map = { + 'data': 'data' + } + + def __init__(self, data=None): + """ListApplicationsResponse + + The model defined in huaweicloud sdk + + :param data: 应用列表 + :type data: list[:class:`huaweicloudsdkcoc.v1.ApplicationQueryResponseData`] + """ + + super(ListApplicationsResponse, 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 ListApplicationsResponse. + + 应用列表 + + :return: The data of this ListApplicationsResponse. + :rtype: list[:class:`huaweicloudsdkcoc.v1.ApplicationQueryResponseData`] + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this ListApplicationsResponse. + + 应用列表 + + :param data: The data of this ListApplicationsResponse. + :type data: list[:class:`huaweicloudsdkcoc.v1.ApplicationQueryResponseData`] + """ + 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, ListApplicationsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/list_authorizable_tickets_external_request.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/list_authorizable_tickets_external_request.py new file mode 100644 index 0000000000..46604105b9 --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/list_authorizable_tickets_external_request.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListAuthorizableTicketsExternalRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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': 'ListAuthorizableTicketsReq' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """ListAuthorizableTicketsExternalRequest + + The model defined in huaweicloud sdk + + :param body: Body of the ListAuthorizableTicketsExternalRequest + :type body: :class:`huaweicloudsdkcoc.v1.ListAuthorizableTicketsReq` + """ + + + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this ListAuthorizableTicketsExternalRequest. + + :return: The body of this ListAuthorizableTicketsExternalRequest. + :rtype: :class:`huaweicloudsdkcoc.v1.ListAuthorizableTicketsReq` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this ListAuthorizableTicketsExternalRequest. + + :param body: The body of this ListAuthorizableTicketsExternalRequest. + :type body: :class:`huaweicloudsdkcoc.v1.ListAuthorizableTicketsReq` + """ + 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, ListAuthorizableTicketsExternalRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/list_authorizable_tickets_external_response.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/list_authorizable_tickets_external_response.py new file mode 100644 index 0000000000..9195b0ee62 --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/list_authorizable_tickets_external_response.py @@ -0,0 +1,201 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListAuthorizableTicketsExternalResponse(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 = { + 'provider_code': 'str', + 'error_code': 'str', + 'error_msg': 'str', + 'data': 'list[AuthorizeTicketInfo]' + } + + attribute_map = { + 'provider_code': 'provider_code', + 'error_code': 'error_code', + 'error_msg': 'error_msg', + 'data': 'data' + } + + def __init__(self, provider_code=None, error_code=None, error_msg=None, data=None): + """ListAuthorizableTicketsExternalResponse + + The model defined in huaweicloud sdk + + :param provider_code: 服务标识 + :type provider_code: str + :param error_code: 请求响应代码,范围:0000~9999,正常时取值:0 + :type error_code: str + :param error_msg: 请求响应描述 + :type error_msg: str + :param data: 可授权单信息 + :type data: list[:class:`huaweicloudsdkcoc.v1.AuthorizeTicketInfo`] + """ + + super(ListAuthorizableTicketsExternalResponse, self).__init__() + + self._provider_code = None + self._error_code = None + self._error_msg = None + self._data = None + self.discriminator = None + + self.provider_code = provider_code + self.error_code = error_code + if error_msg is not None: + self.error_msg = error_msg + if data is not None: + self.data = data + + @property + def provider_code(self): + """Gets the provider_code of this ListAuthorizableTicketsExternalResponse. + + 服务标识 + + :return: The provider_code of this ListAuthorizableTicketsExternalResponse. + :rtype: str + """ + return self._provider_code + + @provider_code.setter + def provider_code(self, provider_code): + """Sets the provider_code of this ListAuthorizableTicketsExternalResponse. + + 服务标识 + + :param provider_code: The provider_code of this ListAuthorizableTicketsExternalResponse. + :type provider_code: str + """ + self._provider_code = provider_code + + @property + def error_code(self): + """Gets the error_code of this ListAuthorizableTicketsExternalResponse. + + 请求响应代码,范围:0000~9999,正常时取值:0 + + :return: The error_code of this ListAuthorizableTicketsExternalResponse. + :rtype: str + """ + return self._error_code + + @error_code.setter + def error_code(self, error_code): + """Sets the error_code of this ListAuthorizableTicketsExternalResponse. + + 请求响应代码,范围:0000~9999,正常时取值:0 + + :param error_code: The error_code of this ListAuthorizableTicketsExternalResponse. + :type error_code: str + """ + self._error_code = error_code + + @property + def error_msg(self): + """Gets the error_msg of this ListAuthorizableTicketsExternalResponse. + + 请求响应描述 + + :return: The error_msg of this ListAuthorizableTicketsExternalResponse. + :rtype: str + """ + return self._error_msg + + @error_msg.setter + def error_msg(self, error_msg): + """Sets the error_msg of this ListAuthorizableTicketsExternalResponse. + + 请求响应描述 + + :param error_msg: The error_msg of this ListAuthorizableTicketsExternalResponse. + :type error_msg: str + """ + self._error_msg = error_msg + + @property + def data(self): + """Gets the data of this ListAuthorizableTicketsExternalResponse. + + 可授权单信息 + + :return: The data of this ListAuthorizableTicketsExternalResponse. + :rtype: list[:class:`huaweicloudsdkcoc.v1.AuthorizeTicketInfo`] + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this ListAuthorizableTicketsExternalResponse. + + 可授权单信息 + + :param data: The data of this ListAuthorizableTicketsExternalResponse. + :type data: list[:class:`huaweicloudsdkcoc.v1.AuthorizeTicketInfo`] + """ + 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, ListAuthorizableTicketsExternalResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/list_authorizable_tickets_req.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/list_authorizable_tickets_req.py new file mode 100644 index 0000000000..f444275a19 --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/list_authorizable_tickets_req.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListAuthorizableTicketsReq: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'request_params': 'list[AuthorizableTicketBody]' + } + + attribute_map = { + 'request_params': 'request_params' + } + + def __init__(self, request_params=None): + """ListAuthorizableTicketsReq + + The model defined in huaweicloud sdk + + :param request_params: 搜索结果 + :type request_params: list[:class:`huaweicloudsdkcoc.v1.AuthorizableTicketBody`] + """ + + + + self._request_params = None + self.discriminator = None + + if request_params is not None: + self.request_params = request_params + + @property + def request_params(self): + """Gets the request_params of this ListAuthorizableTicketsReq. + + 搜索结果 + + :return: The request_params of this ListAuthorizableTicketsReq. + :rtype: list[:class:`huaweicloudsdkcoc.v1.AuthorizableTicketBody`] + """ + return self._request_params + + @request_params.setter + def request_params(self, request_params): + """Sets the request_params of this ListAuthorizableTicketsReq. + + 搜索结果 + + :param request_params: The request_params of this ListAuthorizableTicketsReq. + :type request_params: list[:class:`huaweicloudsdkcoc.v1.AuthorizableTicketBody`] + """ + self._request_params = request_params + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListAuthorizableTicketsReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/list_base_request.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/list_base_request.py new file mode 100644 index 0000000000..42134551b8 --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/list_base_request.py @@ -0,0 +1,144 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListBaseRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'limit': 'int', + 'offset': 'int' + } + + attribute_map = { + 'limit': 'limit', + 'offset': 'offset' + } + + def __init__(self, limit=None, offset=None): + """ListBaseRequest + + The model defined in huaweicloud sdk + + :param limit: limit + :type limit: int + :param offset: 查询数量 最小值0 最大值1000 + :type offset: int + """ + + + + self._limit = None + self._offset = None + self.discriminator = None + + if limit is not None: + self.limit = limit + if offset is not None: + self.offset = offset + + @property + def limit(self): + """Gets the limit of this ListBaseRequest. + + limit + + :return: The limit of this ListBaseRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ListBaseRequest. + + limit + + :param limit: The limit of this ListBaseRequest. + :type limit: int + """ + self._limit = limit + + @property + def offset(self): + """Gets the offset of this ListBaseRequest. + + 查询数量 最小值0 最大值1000 + + :return: The offset of this ListBaseRequest. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this ListBaseRequest. + + 查询数量 最小值0 最大值1000 + + :param offset: The offset of this ListBaseRequest. + :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, ListBaseRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/list_base_response.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/list_base_response.py new file mode 100644 index 0000000000..19e13aa618 --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/list_base_response.py @@ -0,0 +1,173 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListBaseResponse: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'provider_code': 'str', + 'error_code': 'str', + 'error_msg': 'str' + } + + attribute_map = { + 'provider_code': 'provider_code', + 'error_code': 'error_code', + 'error_msg': 'error_msg' + } + + def __init__(self, provider_code=None, error_code=None, error_msg=None): + """ListBaseResponse + + The model defined in huaweicloud sdk + + :param provider_code: 服务标识 + :type provider_code: str + :param error_code: 请求响应代码,范围:0000~9999,正常时取值:0 + :type error_code: str + :param error_msg: 请求响应描述 + :type error_msg: str + """ + + + + self._provider_code = None + self._error_code = None + self._error_msg = None + self.discriminator = None + + if provider_code is not None: + self.provider_code = provider_code + if error_code is not None: + self.error_code = error_code + if error_msg is not None: + self.error_msg = error_msg + + @property + def provider_code(self): + """Gets the provider_code of this ListBaseResponse. + + 服务标识 + + :return: The provider_code of this ListBaseResponse. + :rtype: str + """ + return self._provider_code + + @provider_code.setter + def provider_code(self, provider_code): + """Sets the provider_code of this ListBaseResponse. + + 服务标识 + + :param provider_code: The provider_code of this ListBaseResponse. + :type provider_code: str + """ + self._provider_code = provider_code + + @property + def error_code(self): + """Gets the error_code of this ListBaseResponse. + + 请求响应代码,范围:0000~9999,正常时取值:0 + + :return: The error_code of this ListBaseResponse. + :rtype: str + """ + return self._error_code + + @error_code.setter + def error_code(self, error_code): + """Sets the error_code of this ListBaseResponse. + + 请求响应代码,范围:0000~9999,正常时取值:0 + + :param error_code: The error_code of this ListBaseResponse. + :type error_code: str + """ + self._error_code = error_code + + @property + def error_msg(self): + """Gets the error_msg of this ListBaseResponse. + + 请求响应描述 + + :return: The error_msg of this ListBaseResponse. + :rtype: str + """ + return self._error_msg + + @error_msg.setter + def error_msg(self, error_msg): + """Sets the error_msg of this ListBaseResponse. + + 请求响应描述 + + :param error_msg: The error_msg of this ListBaseResponse. + :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, ListBaseResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/list_coc_ticket_operation_histories_request.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/list_coc_ticket_operation_histories_request.py new file mode 100644 index 0000000000..2104dc782b --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/list_coc_ticket_operation_histories_request.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListCocTicketOperationHistoriesRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'ticket_type': 'str', + 'body': 'ListTicketParams' + } + + attribute_map = { + 'ticket_type': 'ticket_type', + 'body': 'body' + } + + def __init__(self, ticket_type=None, body=None): + """ListCocTicketOperationHistoriesRequest + + The model defined in huaweicloud sdk + + :param ticket_type: 工单类型:incident,issues_mgmt + :type ticket_type: str + :param body: Body of the ListCocTicketOperationHistoriesRequest + :type body: :class:`huaweicloudsdkcoc.v1.ListTicketParams` + """ + + + + self._ticket_type = None + self._body = None + self.discriminator = None + + self.ticket_type = ticket_type + if body is not None: + self.body = body + + @property + def ticket_type(self): + """Gets the ticket_type of this ListCocTicketOperationHistoriesRequest. + + 工单类型:incident,issues_mgmt + + :return: The ticket_type of this ListCocTicketOperationHistoriesRequest. + :rtype: str + """ + return self._ticket_type + + @ticket_type.setter + def ticket_type(self, ticket_type): + """Sets the ticket_type of this ListCocTicketOperationHistoriesRequest. + + 工单类型:incident,issues_mgmt + + :param ticket_type: The ticket_type of this ListCocTicketOperationHistoriesRequest. + :type ticket_type: str + """ + self._ticket_type = ticket_type + + @property + def body(self): + """Gets the body of this ListCocTicketOperationHistoriesRequest. + + :return: The body of this ListCocTicketOperationHistoriesRequest. + :rtype: :class:`huaweicloudsdkcoc.v1.ListTicketParams` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this ListCocTicketOperationHistoriesRequest. + + :param body: The body of this ListCocTicketOperationHistoriesRequest. + :type body: :class:`huaweicloudsdkcoc.v1.ListTicketParams` + """ + 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, ListCocTicketOperationHistoriesRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/list_coc_ticket_operation_histories_response.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/list_coc_ticket_operation_histories_response.py new file mode 100644 index 0000000000..12f29fcec1 --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/list_coc_ticket_operation_histories_response.py @@ -0,0 +1,201 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListCocTicketOperationHistoriesResponse(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 = { + 'provider_code': 'str', + 'error_code': 'str', + 'error_msg': 'str', + 'data': 'object' + } + + attribute_map = { + 'provider_code': 'provider_code', + 'error_code': 'error_code', + 'error_msg': 'error_msg', + 'data': 'data' + } + + def __init__(self, provider_code=None, error_code=None, error_msg=None, data=None): + """ListCocTicketOperationHistoriesResponse + + The model defined in huaweicloud sdk + + :param provider_code: 服务标识 + :type provider_code: str + :param error_code: 请求响应代码,范围:0000~9999,正常时取值:0 + :type error_code: str + :param error_msg: 请求响应描述 + :type error_msg: str + :param data: 数据 + :type data: :class:`huaweicloudsdkcoc.v1.object` + """ + + super(ListCocTicketOperationHistoriesResponse, self).__init__() + + self._provider_code = None + self._error_code = None + self._error_msg = None + self._data = None + self.discriminator = None + + self.provider_code = provider_code + self.error_code = error_code + if error_msg is not None: + self.error_msg = error_msg + if data is not None: + self.data = data + + @property + def provider_code(self): + """Gets the provider_code of this ListCocTicketOperationHistoriesResponse. + + 服务标识 + + :return: The provider_code of this ListCocTicketOperationHistoriesResponse. + :rtype: str + """ + return self._provider_code + + @provider_code.setter + def provider_code(self, provider_code): + """Sets the provider_code of this ListCocTicketOperationHistoriesResponse. + + 服务标识 + + :param provider_code: The provider_code of this ListCocTicketOperationHistoriesResponse. + :type provider_code: str + """ + self._provider_code = provider_code + + @property + def error_code(self): + """Gets the error_code of this ListCocTicketOperationHistoriesResponse. + + 请求响应代码,范围:0000~9999,正常时取值:0 + + :return: The error_code of this ListCocTicketOperationHistoriesResponse. + :rtype: str + """ + return self._error_code + + @error_code.setter + def error_code(self, error_code): + """Sets the error_code of this ListCocTicketOperationHistoriesResponse. + + 请求响应代码,范围:0000~9999,正常时取值:0 + + :param error_code: The error_code of this ListCocTicketOperationHistoriesResponse. + :type error_code: str + """ + self._error_code = error_code + + @property + def error_msg(self): + """Gets the error_msg of this ListCocTicketOperationHistoriesResponse. + + 请求响应描述 + + :return: The error_msg of this ListCocTicketOperationHistoriesResponse. + :rtype: str + """ + return self._error_msg + + @error_msg.setter + def error_msg(self, error_msg): + """Sets the error_msg of this ListCocTicketOperationHistoriesResponse. + + 请求响应描述 + + :param error_msg: The error_msg of this ListCocTicketOperationHistoriesResponse. + :type error_msg: str + """ + self._error_msg = error_msg + + @property + def data(self): + """Gets the data of this ListCocTicketOperationHistoriesResponse. + + 数据 + + :return: The data of this ListCocTicketOperationHistoriesResponse. + :rtype: :class:`huaweicloudsdkcoc.v1.object` + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this ListCocTicketOperationHistoriesResponse. + + 数据 + + :param data: The data of this ListCocTicketOperationHistoriesResponse. + :type data: :class:`huaweicloudsdkcoc.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, ListCocTicketOperationHistoriesResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/list_instance_compliant_request.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/list_instance_compliant_request.py new file mode 100644 index 0000000000..0adf52d349 --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/list_instance_compliant_request.py @@ -0,0 +1,550 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListInstanceCompliantRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'enterprise_project_id': 'str', + 'name': 'str', + 'instance_id': 'str', + 'ip': 'str', + 'eip': 'str', + 'operating_system': 'str', + 'region': 'str', + 'group': 'str', + 'compliant_status': 'str', + 'order_id': 'str', + 'offset': 'int', + 'limit': 'int', + 'sort_dir': 'str', + 'sort_key': 'str', + 'report_scene': 'str', + 'cce_info_id': 'str' + } + + attribute_map = { + 'enterprise_project_id': 'enterprise_project_id', + 'name': 'name', + 'instance_id': 'instance_id', + 'ip': 'ip', + 'eip': 'eip', + 'operating_system': 'operating_system', + 'region': 'region', + 'group': 'group', + 'compliant_status': 'compliant_status', + 'order_id': 'order_id', + 'offset': 'offset', + 'limit': 'limit', + 'sort_dir': 'sort_dir', + 'sort_key': 'sort_key', + 'report_scene': 'report_scene', + 'cce_info_id': 'cce_info_id' + } + + def __init__(self, enterprise_project_id=None, name=None, instance_id=None, ip=None, eip=None, operating_system=None, region=None, group=None, compliant_status=None, order_id=None, offset=None, limit=None, sort_dir=None, sort_key=None, report_scene=None, cce_info_id=None): + """ListInstanceCompliantRequest + + The model defined in huaweicloud sdk + + :param enterprise_project_id: 企业项目id + :type enterprise_project_id: str + :param name: 名称 + :type name: str + :param instance_id: ECS实例id + :type instance_id: str + :param ip: 内网ip + :type ip: str + :param eip: 弹性公网ip + :type eip: str + :param operating_system: 操作系统 - HuaweiCloudEulerOS - CentOS - EulerOS + :type operating_system: str + :param region: 区域 + :type region: str + :param group: 分组 + :type group: str + :param compliant_status: 合规性状态 - non_compliant:不合规 - compliant:合规 + :type compliant_status: str + :param order_id: 工单id + :type order_id: str + :param offset: 偏移量 + :type offset: int + :param limit: 每页数量 + :type limit: int + :param sort_dir: 排序 - asc:升序 - desc:降序 + :type sort_dir: str + :param sort_key: 排序字段 - report_time:报告时间 + :type sort_key: str + :param report_scene: 报告场景 - CCE - ECS + :type report_scene: str + :param cce_info_id: cce 集群信息id + :type cce_info_id: str + """ + + + + self._enterprise_project_id = None + self._name = None + self._instance_id = None + self._ip = None + self._eip = None + self._operating_system = None + self._region = None + self._group = None + self._compliant_status = None + self._order_id = None + self._offset = None + self._limit = None + self._sort_dir = None + self._sort_key = None + self._report_scene = None + self._cce_info_id = None + self.discriminator = None + + if enterprise_project_id is not None: + self.enterprise_project_id = enterprise_project_id + if name is not None: + self.name = name + if instance_id is not None: + self.instance_id = instance_id + if ip is not None: + self.ip = ip + if eip is not None: + self.eip = eip + if operating_system is not None: + self.operating_system = operating_system + if region is not None: + self.region = region + if group is not None: + self.group = group + if compliant_status is not None: + self.compliant_status = compliant_status + if order_id is not None: + self.order_id = order_id + if offset is not None: + self.offset = offset + if limit is not None: + self.limit = limit + if sort_dir is not None: + self.sort_dir = sort_dir + if sort_key is not None: + self.sort_key = sort_key + if report_scene is not None: + self.report_scene = report_scene + if cce_info_id is not None: + self.cce_info_id = cce_info_id + + @property + def enterprise_project_id(self): + """Gets the enterprise_project_id of this ListInstanceCompliantRequest. + + 企业项目id + + :return: The enterprise_project_id of this ListInstanceCompliantRequest. + :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 ListInstanceCompliantRequest. + + 企业项目id + + :param enterprise_project_id: The enterprise_project_id of this ListInstanceCompliantRequest. + :type enterprise_project_id: str + """ + self._enterprise_project_id = enterprise_project_id + + @property + def name(self): + """Gets the name of this ListInstanceCompliantRequest. + + 名称 + + :return: The name of this ListInstanceCompliantRequest. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ListInstanceCompliantRequest. + + 名称 + + :param name: The name of this ListInstanceCompliantRequest. + :type name: str + """ + self._name = name + + @property + def instance_id(self): + """Gets the instance_id of this ListInstanceCompliantRequest. + + ECS实例id + + :return: The instance_id of this ListInstanceCompliantRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this ListInstanceCompliantRequest. + + ECS实例id + + :param instance_id: The instance_id of this ListInstanceCompliantRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def ip(self): + """Gets the ip of this ListInstanceCompliantRequest. + + 内网ip + + :return: The ip of this ListInstanceCompliantRequest. + :rtype: str + """ + return self._ip + + @ip.setter + def ip(self, ip): + """Sets the ip of this ListInstanceCompliantRequest. + + 内网ip + + :param ip: The ip of this ListInstanceCompliantRequest. + :type ip: str + """ + self._ip = ip + + @property + def eip(self): + """Gets the eip of this ListInstanceCompliantRequest. + + 弹性公网ip + + :return: The eip of this ListInstanceCompliantRequest. + :rtype: str + """ + return self._eip + + @eip.setter + def eip(self, eip): + """Sets the eip of this ListInstanceCompliantRequest. + + 弹性公网ip + + :param eip: The eip of this ListInstanceCompliantRequest. + :type eip: str + """ + self._eip = eip + + @property + def operating_system(self): + """Gets the operating_system of this ListInstanceCompliantRequest. + + 操作系统 - HuaweiCloudEulerOS - CentOS - EulerOS + + :return: The operating_system of this ListInstanceCompliantRequest. + :rtype: str + """ + return self._operating_system + + @operating_system.setter + def operating_system(self, operating_system): + """Sets the operating_system of this ListInstanceCompliantRequest. + + 操作系统 - HuaweiCloudEulerOS - CentOS - EulerOS + + :param operating_system: The operating_system of this ListInstanceCompliantRequest. + :type operating_system: str + """ + self._operating_system = operating_system + + @property + def region(self): + """Gets the region of this ListInstanceCompliantRequest. + + 区域 + + :return: The region of this ListInstanceCompliantRequest. + :rtype: str + """ + return self._region + + @region.setter + def region(self, region): + """Sets the region of this ListInstanceCompliantRequest. + + 区域 + + :param region: The region of this ListInstanceCompliantRequest. + :type region: str + """ + self._region = region + + @property + def group(self): + """Gets the group of this ListInstanceCompliantRequest. + + 分组 + + :return: The group of this ListInstanceCompliantRequest. + :rtype: str + """ + return self._group + + @group.setter + def group(self, group): + """Sets the group of this ListInstanceCompliantRequest. + + 分组 + + :param group: The group of this ListInstanceCompliantRequest. + :type group: str + """ + self._group = group + + @property + def compliant_status(self): + """Gets the compliant_status of this ListInstanceCompliantRequest. + + 合规性状态 - non_compliant:不合规 - compliant:合规 + + :return: The compliant_status of this ListInstanceCompliantRequest. + :rtype: str + """ + return self._compliant_status + + @compliant_status.setter + def compliant_status(self, compliant_status): + """Sets the compliant_status of this ListInstanceCompliantRequest. + + 合规性状态 - non_compliant:不合规 - compliant:合规 + + :param compliant_status: The compliant_status of this ListInstanceCompliantRequest. + :type compliant_status: str + """ + self._compliant_status = compliant_status + + @property + def order_id(self): + """Gets the order_id of this ListInstanceCompliantRequest. + + 工单id + + :return: The order_id of this ListInstanceCompliantRequest. + :rtype: str + """ + return self._order_id + + @order_id.setter + def order_id(self, order_id): + """Sets the order_id of this ListInstanceCompliantRequest. + + 工单id + + :param order_id: The order_id of this ListInstanceCompliantRequest. + :type order_id: str + """ + self._order_id = order_id + + @property + def offset(self): + """Gets the offset of this ListInstanceCompliantRequest. + + 偏移量 + + :return: The offset of this ListInstanceCompliantRequest. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this ListInstanceCompliantRequest. + + 偏移量 + + :param offset: The offset of this ListInstanceCompliantRequest. + :type offset: int + """ + self._offset = offset + + @property + def limit(self): + """Gets the limit of this ListInstanceCompliantRequest. + + 每页数量 + + :return: The limit of this ListInstanceCompliantRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ListInstanceCompliantRequest. + + 每页数量 + + :param limit: The limit of this ListInstanceCompliantRequest. + :type limit: int + """ + self._limit = limit + + @property + def sort_dir(self): + """Gets the sort_dir of this ListInstanceCompliantRequest. + + 排序 - asc:升序 - desc:降序 + + :return: The sort_dir of this ListInstanceCompliantRequest. + :rtype: str + """ + return self._sort_dir + + @sort_dir.setter + def sort_dir(self, sort_dir): + """Sets the sort_dir of this ListInstanceCompliantRequest. + + 排序 - asc:升序 - desc:降序 + + :param sort_dir: The sort_dir of this ListInstanceCompliantRequest. + :type sort_dir: str + """ + self._sort_dir = sort_dir + + @property + def sort_key(self): + """Gets the sort_key of this ListInstanceCompliantRequest. + + 排序字段 - report_time:报告时间 + + :return: The sort_key of this ListInstanceCompliantRequest. + :rtype: str + """ + return self._sort_key + + @sort_key.setter + def sort_key(self, sort_key): + """Sets the sort_key of this ListInstanceCompliantRequest. + + 排序字段 - report_time:报告时间 + + :param sort_key: The sort_key of this ListInstanceCompliantRequest. + :type sort_key: str + """ + self._sort_key = sort_key + + @property + def report_scene(self): + """Gets the report_scene of this ListInstanceCompliantRequest. + + 报告场景 - CCE - ECS + + :return: The report_scene of this ListInstanceCompliantRequest. + :rtype: str + """ + return self._report_scene + + @report_scene.setter + def report_scene(self, report_scene): + """Sets the report_scene of this ListInstanceCompliantRequest. + + 报告场景 - CCE - ECS + + :param report_scene: The report_scene of this ListInstanceCompliantRequest. + :type report_scene: str + """ + self._report_scene = report_scene + + @property + def cce_info_id(self): + """Gets the cce_info_id of this ListInstanceCompliantRequest. + + cce 集群信息id + + :return: The cce_info_id of this ListInstanceCompliantRequest. + :rtype: str + """ + return self._cce_info_id + + @cce_info_id.setter + def cce_info_id(self, cce_info_id): + """Sets the cce_info_id of this ListInstanceCompliantRequest. + + cce 集群信息id + + :param cce_info_id: The cce_info_id of this ListInstanceCompliantRequest. + :type cce_info_id: str + """ + self._cce_info_id = cce_info_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, ListInstanceCompliantRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/list_instance_compliant_response.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/list_instance_compliant_response.py new file mode 100644 index 0000000000..8739eb5aed --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/list_instance_compliant_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 ListInstanceCompliantResponse(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 = { + 'count': 'int', + 'instance_compliant': 'list[InstanceCompliant]' + } + + attribute_map = { + 'count': 'count', + 'instance_compliant': 'instance_compliant' + } + + def __init__(self, count=None, instance_compliant=None): + """ListInstanceCompliantResponse + + The model defined in huaweicloud sdk + + :param count: 总条数 + :type count: int + :param instance_compliant: 节点合规报告 + :type instance_compliant: list[:class:`huaweicloudsdkcoc.v1.InstanceCompliant`] + """ + + super(ListInstanceCompliantResponse, self).__init__() + + self._count = None + self._instance_compliant = None + self.discriminator = None + + if count is not None: + self.count = count + if instance_compliant is not None: + self.instance_compliant = instance_compliant + + @property + def count(self): + """Gets the count of this ListInstanceCompliantResponse. + + 总条数 + + :return: The count of this ListInstanceCompliantResponse. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this ListInstanceCompliantResponse. + + 总条数 + + :param count: The count of this ListInstanceCompliantResponse. + :type count: int + """ + self._count = count + + @property + def instance_compliant(self): + """Gets the instance_compliant of this ListInstanceCompliantResponse. + + 节点合规报告 + + :return: The instance_compliant of this ListInstanceCompliantResponse. + :rtype: list[:class:`huaweicloudsdkcoc.v1.InstanceCompliant`] + """ + return self._instance_compliant + + @instance_compliant.setter + def instance_compliant(self, instance_compliant): + """Sets the instance_compliant of this ListInstanceCompliantResponse. + + 节点合规报告 + + :param instance_compliant: The instance_compliant of this ListInstanceCompliantResponse. + :type instance_compliant: list[:class:`huaweicloudsdkcoc.v1.InstanceCompliant`] + """ + self._instance_compliant = instance_compliant + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListInstanceCompliantResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/list_public_scripts_request.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/list_public_scripts_request.py new file mode 100644 index 0000000000..6a6758fcfb --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/list_public_scripts_request.py @@ -0,0 +1,346 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListPublicScriptsRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'limit': 'int', + 'marker': 'int', + 'name_like': 'str', + 'name': 'str', + 'risk_level': 'str', + 'type': 'str', + 'x_language': 'str', + 'x_project_id': 'str', + 'x_user_profile': 'str' + } + + attribute_map = { + 'limit': 'limit', + 'marker': 'marker', + 'name_like': 'name_like', + 'name': 'name', + 'risk_level': 'risk_level', + 'type': 'type', + 'x_language': 'X-Language', + 'x_project_id': 'x-project-id', + 'x_user_profile': 'x-user-profile' + } + + def __init__(self, limit=None, marker=None, name_like=None, name=None, risk_level=None, type=None, x_language=None, x_project_id=None, x_user_profile=None): + """ListPublicScriptsRequest + + The model defined in huaweicloud sdk + + :param limit: 分页参数:每页返回记录个数限制 + :type limit: int + :param marker: 分页参数:上一页最后一个记录id + :type marker: int + :param name_like: 脚本名(只支持右模糊搜索) + :type name_like: str + :param name: 脚本名(精确搜索) + :type name: str + :param risk_level: 风险等级 LOW:低风险 MEDIUM:中风险 HIGH:高风险 + :type risk_level: str + :param type: 脚本类型 SHELL:shell脚本 PYTHON:python脚本 BAT:bat脚本 + :type type: str + :param x_language: 国际化标记,zh-cn表示中文,en-us或不传表示英文 + :type x_language: str + :param x_project_id: 项目ID,一个项目对应一个region + :type x_project_id: str + :param x_user_profile: IAM5.0用户信息 + :type x_user_profile: str + """ + + + + self._limit = None + self._marker = None + self._name_like = None + self._name = None + self._risk_level = None + self._type = None + self._x_language = None + self._x_project_id = None + self._x_user_profile = None + self.discriminator = None + + self.limit = limit + if marker is not None: + self.marker = marker + if name_like is not None: + self.name_like = name_like + if name is not None: + self.name = name + if risk_level is not None: + self.risk_level = risk_level + if type is not None: + self.type = type + if x_language is not None: + self.x_language = x_language + if x_project_id is not None: + self.x_project_id = x_project_id + if x_user_profile is not None: + self.x_user_profile = x_user_profile + + @property + def limit(self): + """Gets the limit of this ListPublicScriptsRequest. + + 分页参数:每页返回记录个数限制 + + :return: The limit of this ListPublicScriptsRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ListPublicScriptsRequest. + + 分页参数:每页返回记录个数限制 + + :param limit: The limit of this ListPublicScriptsRequest. + :type limit: int + """ + self._limit = limit + + @property + def marker(self): + """Gets the marker of this ListPublicScriptsRequest. + + 分页参数:上一页最后一个记录id + + :return: The marker of this ListPublicScriptsRequest. + :rtype: int + """ + return self._marker + + @marker.setter + def marker(self, marker): + """Sets the marker of this ListPublicScriptsRequest. + + 分页参数:上一页最后一个记录id + + :param marker: The marker of this ListPublicScriptsRequest. + :type marker: int + """ + self._marker = marker + + @property + def name_like(self): + """Gets the name_like of this ListPublicScriptsRequest. + + 脚本名(只支持右模糊搜索) + + :return: The name_like of this ListPublicScriptsRequest. + :rtype: str + """ + return self._name_like + + @name_like.setter + def name_like(self, name_like): + """Sets the name_like of this ListPublicScriptsRequest. + + 脚本名(只支持右模糊搜索) + + :param name_like: The name_like of this ListPublicScriptsRequest. + :type name_like: str + """ + self._name_like = name_like + + @property + def name(self): + """Gets the name of this ListPublicScriptsRequest. + + 脚本名(精确搜索) + + :return: The name of this ListPublicScriptsRequest. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ListPublicScriptsRequest. + + 脚本名(精确搜索) + + :param name: The name of this ListPublicScriptsRequest. + :type name: str + """ + self._name = name + + @property + def risk_level(self): + """Gets the risk_level of this ListPublicScriptsRequest. + + 风险等级 LOW:低风险 MEDIUM:中风险 HIGH:高风险 + + :return: The risk_level of this ListPublicScriptsRequest. + :rtype: str + """ + return self._risk_level + + @risk_level.setter + def risk_level(self, risk_level): + """Sets the risk_level of this ListPublicScriptsRequest. + + 风险等级 LOW:低风险 MEDIUM:中风险 HIGH:高风险 + + :param risk_level: The risk_level of this ListPublicScriptsRequest. + :type risk_level: str + """ + self._risk_level = risk_level + + @property + def type(self): + """Gets the type of this ListPublicScriptsRequest. + + 脚本类型 SHELL:shell脚本 PYTHON:python脚本 BAT:bat脚本 + + :return: The type of this ListPublicScriptsRequest. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this ListPublicScriptsRequest. + + 脚本类型 SHELL:shell脚本 PYTHON:python脚本 BAT:bat脚本 + + :param type: The type of this ListPublicScriptsRequest. + :type type: str + """ + self._type = type + + @property + def x_language(self): + """Gets the x_language of this ListPublicScriptsRequest. + + 国际化标记,zh-cn表示中文,en-us或不传表示英文 + + :return: The x_language of this ListPublicScriptsRequest. + :rtype: str + """ + return self._x_language + + @x_language.setter + def x_language(self, x_language): + """Sets the x_language of this ListPublicScriptsRequest. + + 国际化标记,zh-cn表示中文,en-us或不传表示英文 + + :param x_language: The x_language of this ListPublicScriptsRequest. + :type x_language: str + """ + self._x_language = x_language + + @property + def x_project_id(self): + """Gets the x_project_id of this ListPublicScriptsRequest. + + 项目ID,一个项目对应一个region + + :return: The x_project_id of this ListPublicScriptsRequest. + :rtype: str + """ + return self._x_project_id + + @x_project_id.setter + def x_project_id(self, x_project_id): + """Sets the x_project_id of this ListPublicScriptsRequest. + + 项目ID,一个项目对应一个region + + :param x_project_id: The x_project_id of this ListPublicScriptsRequest. + :type x_project_id: str + """ + self._x_project_id = x_project_id + + @property + def x_user_profile(self): + """Gets the x_user_profile of this ListPublicScriptsRequest. + + IAM5.0用户信息 + + :return: The x_user_profile of this ListPublicScriptsRequest. + :rtype: str + """ + return self._x_user_profile + + @x_user_profile.setter + def x_user_profile(self, x_user_profile): + """Sets the x_user_profile of this ListPublicScriptsRequest. + + IAM5.0用户信息 + + :param x_user_profile: The x_user_profile of this ListPublicScriptsRequest. + :type x_user_profile: str + """ + self._x_user_profile = x_user_profile + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListPublicScriptsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/list_public_scripts_response.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/list_public_scripts_response.py new file mode 100644 index 0000000000..34af5dd2be --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/list_public_scripts_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 ListPublicScriptsResponse(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': 'PublicScriptListPage' + } + + attribute_map = { + 'data': 'data' + } + + def __init__(self, data=None): + """ListPublicScriptsResponse + + The model defined in huaweicloud sdk + + :param data: + :type data: :class:`huaweicloudsdkcoc.v1.PublicScriptListPage` + """ + + super(ListPublicScriptsResponse, 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 ListPublicScriptsResponse. + + :return: The data of this ListPublicScriptsResponse. + :rtype: :class:`huaweicloudsdkcoc.v1.PublicScriptListPage` + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this ListPublicScriptsResponse. + + :param data: The data of this ListPublicScriptsResponse. + :type data: :class:`huaweicloudsdkcoc.v1.PublicScriptListPage` + """ + 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, ListPublicScriptsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/list_resource_request.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/list_resource_request.py new file mode 100644 index 0000000000..8c7eb98a47 --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/list_resource_request.py @@ -0,0 +1,750 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListResourceRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'provider': 'str', + 'type': 'str', + 'limit': 'int', + 'marker': 'str', + 'resource_id_list': 'list[str]', + 'name': 'str', + 'region_id': 'str', + 'az_id': 'str', + 'ip_type': 'str', + 'ip': 'str', + 'status': 'str', + 'agent_state': 'str', + 'image_name': 'str', + 'os_type': 'str', + 'tag': 'str', + 'tag_key': 'str', + 'group_id': 'str', + 'component_id': 'str', + 'application_id': 'str', + 'cce_cluster_id': 'str', + 'vpc_id': 'str', + 'ep_id': 'str', + 'is_delegated': 'bool' + } + + attribute_map = { + 'provider': 'provider', + 'type': 'type', + 'limit': 'limit', + 'marker': 'marker', + 'resource_id_list': 'resource_id_list', + 'name': 'name', + 'region_id': 'region_id', + 'az_id': 'az_id', + 'ip_type': 'ip_type', + 'ip': 'ip', + 'status': 'status', + 'agent_state': 'agent_state', + 'image_name': 'image_name', + 'os_type': 'os_type', + 'tag': 'tag', + 'tag_key': 'tag_key', + 'group_id': 'group_id', + 'component_id': 'component_id', + 'application_id': 'application_id', + 'cce_cluster_id': 'cce_cluster_id', + 'vpc_id': 'vpc_id', + 'ep_id': 'ep_id', + 'is_delegated': 'is_delegated' + } + + def __init__(self, provider=None, type=None, limit=None, marker=None, resource_id_list=None, name=None, region_id=None, az_id=None, ip_type=None, ip=None, status=None, agent_state=None, image_name=None, os_type=None, tag=None, tag_key=None, group_id=None, component_id=None, application_id=None, cce_cluster_id=None, vpc_id=None, ep_id=None, is_delegated=None): + """ListResourceRequest + + The model defined in huaweicloud sdk + + :param provider: 云服务名称 + :type provider: str + :param type: 资源类型名称 + :type type: str + :param limit: 最大的返回数量 + :type limit: int + :param marker: 分页参数,通过上一个请求中返回的marker信息作为输入,获取当前页 + :type marker: str + :param resource_id_list: 资源id列表 + :type resource_id_list: list[str] + :param name: 名称 + :type name: str + :param region_id: region id + :type region_id: str + :param az_id: az id + :type az_id: str + :param ip_type: ip类型,fixed:内网IP,floating:弹性公网IP + :type ip_type: str + :param ip: ip + :type ip: str + :param status: 资源状态 + :type status: str + :param agent_state: agent状态 + :type agent_state: str + :param image_name: 镜像名称,模糊匹配 + :type image_name: str + :param os_type: 系统类型 + :type os_type: str + :param tag: 标签的值 + :type tag: str + :param tag_key: 标签的key + :type tag_key: str + :param group_id: 分组id + :type group_id: str + :param component_id: 组件id + :type component_id: str + :param application_id: 应用id + :type application_id: str + :param cce_cluster_id: cce集群id + :type cce_cluster_id: str + :param vpc_id: vpc id + :type vpc_id: str + :param ep_id: 企业项目id + :type ep_id: str + :param is_delegated: 资源是否已托管 + :type is_delegated: bool + """ + + + + self._provider = None + self._type = None + self._limit = None + self._marker = None + self._resource_id_list = None + self._name = None + self._region_id = None + self._az_id = None + self._ip_type = None + self._ip = None + self._status = None + self._agent_state = None + self._image_name = None + self._os_type = None + self._tag = None + self._tag_key = None + self._group_id = None + self._component_id = None + self._application_id = None + self._cce_cluster_id = None + self._vpc_id = None + self._ep_id = None + self._is_delegated = None + self.discriminator = None + + self.provider = provider + self.type = type + self.limit = limit + if marker is not None: + self.marker = marker + if resource_id_list is not None: + self.resource_id_list = resource_id_list + if name is not None: + self.name = name + if region_id is not None: + self.region_id = region_id + if az_id is not None: + self.az_id = az_id + if ip_type is not None: + self.ip_type = ip_type + if ip is not None: + self.ip = ip + if status is not None: + self.status = status + if agent_state is not None: + self.agent_state = agent_state + if image_name is not None: + self.image_name = image_name + if os_type is not None: + self.os_type = os_type + if tag is not None: + self.tag = tag + if tag_key is not None: + self.tag_key = tag_key + if group_id is not None: + self.group_id = group_id + if component_id is not None: + self.component_id = component_id + if application_id is not None: + self.application_id = application_id + if cce_cluster_id is not None: + self.cce_cluster_id = cce_cluster_id + if vpc_id is not None: + self.vpc_id = vpc_id + if ep_id is not None: + self.ep_id = ep_id + if is_delegated is not None: + self.is_delegated = is_delegated + + @property + def provider(self): + """Gets the provider of this ListResourceRequest. + + 云服务名称 + + :return: The provider of this ListResourceRequest. + :rtype: str + """ + return self._provider + + @provider.setter + def provider(self, provider): + """Sets the provider of this ListResourceRequest. + + 云服务名称 + + :param provider: The provider of this ListResourceRequest. + :type provider: str + """ + self._provider = provider + + @property + def type(self): + """Gets the type of this ListResourceRequest. + + 资源类型名称 + + :return: The type of this ListResourceRequest. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this ListResourceRequest. + + 资源类型名称 + + :param type: The type of this ListResourceRequest. + :type type: str + """ + self._type = type + + @property + def limit(self): + """Gets the limit of this ListResourceRequest. + + 最大的返回数量 + + :return: The limit of this ListResourceRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ListResourceRequest. + + 最大的返回数量 + + :param limit: The limit of this ListResourceRequest. + :type limit: int + """ + self._limit = limit + + @property + def marker(self): + """Gets the marker of this ListResourceRequest. + + 分页参数,通过上一个请求中返回的marker信息作为输入,获取当前页 + + :return: The marker of this ListResourceRequest. + :rtype: str + """ + return self._marker + + @marker.setter + def marker(self, marker): + """Sets the marker of this ListResourceRequest. + + 分页参数,通过上一个请求中返回的marker信息作为输入,获取当前页 + + :param marker: The marker of this ListResourceRequest. + :type marker: str + """ + self._marker = marker + + @property + def resource_id_list(self): + """Gets the resource_id_list of this ListResourceRequest. + + 资源id列表 + + :return: The resource_id_list of this ListResourceRequest. + :rtype: list[str] + """ + return self._resource_id_list + + @resource_id_list.setter + def resource_id_list(self, resource_id_list): + """Sets the resource_id_list of this ListResourceRequest. + + 资源id列表 + + :param resource_id_list: The resource_id_list of this ListResourceRequest. + :type resource_id_list: list[str] + """ + self._resource_id_list = resource_id_list + + @property + def name(self): + """Gets the name of this ListResourceRequest. + + 名称 + + :return: The name of this ListResourceRequest. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ListResourceRequest. + + 名称 + + :param name: The name of this ListResourceRequest. + :type name: str + """ + self._name = name + + @property + def region_id(self): + """Gets the region_id of this ListResourceRequest. + + region id + + :return: The region_id of this ListResourceRequest. + :rtype: str + """ + return self._region_id + + @region_id.setter + def region_id(self, region_id): + """Sets the region_id of this ListResourceRequest. + + region id + + :param region_id: The region_id of this ListResourceRequest. + :type region_id: str + """ + self._region_id = region_id + + @property + def az_id(self): + """Gets the az_id of this ListResourceRequest. + + az id + + :return: The az_id of this ListResourceRequest. + :rtype: str + """ + return self._az_id + + @az_id.setter + def az_id(self, az_id): + """Sets the az_id of this ListResourceRequest. + + az id + + :param az_id: The az_id of this ListResourceRequest. + :type az_id: str + """ + self._az_id = az_id + + @property + def ip_type(self): + """Gets the ip_type of this ListResourceRequest. + + ip类型,fixed:内网IP,floating:弹性公网IP + + :return: The ip_type of this ListResourceRequest. + :rtype: str + """ + return self._ip_type + + @ip_type.setter + def ip_type(self, ip_type): + """Sets the ip_type of this ListResourceRequest. + + ip类型,fixed:内网IP,floating:弹性公网IP + + :param ip_type: The ip_type of this ListResourceRequest. + :type ip_type: str + """ + self._ip_type = ip_type + + @property + def ip(self): + """Gets the ip of this ListResourceRequest. + + ip + + :return: The ip of this ListResourceRequest. + :rtype: str + """ + return self._ip + + @ip.setter + def ip(self, ip): + """Sets the ip of this ListResourceRequest. + + ip + + :param ip: The ip of this ListResourceRequest. + :type ip: str + """ + self._ip = ip + + @property + def status(self): + """Gets the status of this ListResourceRequest. + + 资源状态 + + :return: The status of this ListResourceRequest. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ListResourceRequest. + + 资源状态 + + :param status: The status of this ListResourceRequest. + :type status: str + """ + self._status = status + + @property + def agent_state(self): + """Gets the agent_state of this ListResourceRequest. + + agent状态 + + :return: The agent_state of this ListResourceRequest. + :rtype: str + """ + return self._agent_state + + @agent_state.setter + def agent_state(self, agent_state): + """Sets the agent_state of this ListResourceRequest. + + agent状态 + + :param agent_state: The agent_state of this ListResourceRequest. + :type agent_state: str + """ + self._agent_state = agent_state + + @property + def image_name(self): + """Gets the image_name of this ListResourceRequest. + + 镜像名称,模糊匹配 + + :return: The image_name of this ListResourceRequest. + :rtype: str + """ + return self._image_name + + @image_name.setter + def image_name(self, image_name): + """Sets the image_name of this ListResourceRequest. + + 镜像名称,模糊匹配 + + :param image_name: The image_name of this ListResourceRequest. + :type image_name: str + """ + self._image_name = image_name + + @property + def os_type(self): + """Gets the os_type of this ListResourceRequest. + + 系统类型 + + :return: The os_type of this ListResourceRequest. + :rtype: str + """ + return self._os_type + + @os_type.setter + def os_type(self, os_type): + """Sets the os_type of this ListResourceRequest. + + 系统类型 + + :param os_type: The os_type of this ListResourceRequest. + :type os_type: str + """ + self._os_type = os_type + + @property + def tag(self): + """Gets the tag of this ListResourceRequest. + + 标签的值 + + :return: The tag of this ListResourceRequest. + :rtype: str + """ + return self._tag + + @tag.setter + def tag(self, tag): + """Sets the tag of this ListResourceRequest. + + 标签的值 + + :param tag: The tag of this ListResourceRequest. + :type tag: str + """ + self._tag = tag + + @property + def tag_key(self): + """Gets the tag_key of this ListResourceRequest. + + 标签的key + + :return: The tag_key of this ListResourceRequest. + :rtype: str + """ + return self._tag_key + + @tag_key.setter + def tag_key(self, tag_key): + """Sets the tag_key of this ListResourceRequest. + + 标签的key + + :param tag_key: The tag_key of this ListResourceRequest. + :type tag_key: str + """ + self._tag_key = tag_key + + @property + def group_id(self): + """Gets the group_id of this ListResourceRequest. + + 分组id + + :return: The group_id of this ListResourceRequest. + :rtype: str + """ + return self._group_id + + @group_id.setter + def group_id(self, group_id): + """Sets the group_id of this ListResourceRequest. + + 分组id + + :param group_id: The group_id of this ListResourceRequest. + :type group_id: str + """ + self._group_id = group_id + + @property + def component_id(self): + """Gets the component_id of this ListResourceRequest. + + 组件id + + :return: The component_id of this ListResourceRequest. + :rtype: str + """ + return self._component_id + + @component_id.setter + def component_id(self, component_id): + """Sets the component_id of this ListResourceRequest. + + 组件id + + :param component_id: The component_id of this ListResourceRequest. + :type component_id: str + """ + self._component_id = component_id + + @property + def application_id(self): + """Gets the application_id of this ListResourceRequest. + + 应用id + + :return: The application_id of this ListResourceRequest. + :rtype: str + """ + return self._application_id + + @application_id.setter + def application_id(self, application_id): + """Sets the application_id of this ListResourceRequest. + + 应用id + + :param application_id: The application_id of this ListResourceRequest. + :type application_id: str + """ + self._application_id = application_id + + @property + def cce_cluster_id(self): + """Gets the cce_cluster_id of this ListResourceRequest. + + cce集群id + + :return: The cce_cluster_id of this ListResourceRequest. + :rtype: str + """ + return self._cce_cluster_id + + @cce_cluster_id.setter + def cce_cluster_id(self, cce_cluster_id): + """Sets the cce_cluster_id of this ListResourceRequest. + + cce集群id + + :param cce_cluster_id: The cce_cluster_id of this ListResourceRequest. + :type cce_cluster_id: str + """ + self._cce_cluster_id = cce_cluster_id + + @property + def vpc_id(self): + """Gets the vpc_id of this ListResourceRequest. + + vpc id + + :return: The vpc_id of this ListResourceRequest. + :rtype: str + """ + return self._vpc_id + + @vpc_id.setter + def vpc_id(self, vpc_id): + """Sets the vpc_id of this ListResourceRequest. + + vpc id + + :param vpc_id: The vpc_id of this ListResourceRequest. + :type vpc_id: str + """ + self._vpc_id = vpc_id + + @property + def ep_id(self): + """Gets the ep_id of this ListResourceRequest. + + 企业项目id + + :return: The ep_id of this ListResourceRequest. + :rtype: str + """ + return self._ep_id + + @ep_id.setter + def ep_id(self, ep_id): + """Sets the ep_id of this ListResourceRequest. + + 企业项目id + + :param ep_id: The ep_id of this ListResourceRequest. + :type ep_id: str + """ + self._ep_id = ep_id + + @property + def is_delegated(self): + """Gets the is_delegated of this ListResourceRequest. + + 资源是否已托管 + + :return: The is_delegated of this ListResourceRequest. + :rtype: bool + """ + return self._is_delegated + + @is_delegated.setter + def is_delegated(self, is_delegated): + """Sets the is_delegated of this ListResourceRequest. + + 资源是否已托管 + + :param is_delegated: The is_delegated of this ListResourceRequest. + :type is_delegated: bool + """ + self._is_delegated = is_delegated + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListResourceRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/list_resource_response.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/list_resource_response.py new file mode 100644 index 0000000000..74f8a83234 --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/list_resource_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 ListResourceResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'data': 'list[BatchListResourceResponseData]', + 'x_request_id': 'str' + } + + attribute_map = { + 'data': 'data', + 'x_request_id': 'X-request-id' + } + + def __init__(self, data=None, x_request_id=None): + """ListResourceResponse + + The model defined in huaweicloud sdk + + :param data: 资源列表 + :type data: list[:class:`huaweicloudsdkcoc.v1.BatchListResourceResponseData`] + :param x_request_id: + :type x_request_id: str + """ + + super(ListResourceResponse, self).__init__() + + self._data = None + self._x_request_id = None + self.discriminator = None + + if data is not None: + self.data = data + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def data(self): + """Gets the data of this ListResourceResponse. + + 资源列表 + + :return: The data of this ListResourceResponse. + :rtype: list[:class:`huaweicloudsdkcoc.v1.BatchListResourceResponseData`] + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this ListResourceResponse. + + 资源列表 + + :param data: The data of this ListResourceResponse. + :type data: list[:class:`huaweicloudsdkcoc.v1.BatchListResourceResponseData`] + """ + self._data = data + + @property + def x_request_id(self): + """Gets the x_request_id of this ListResourceResponse. + + :return: The x_request_id of this ListResourceResponse. + :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 ListResourceResponse. + + :param x_request_id: The x_request_id of this ListResourceResponse. + :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, ListResourceResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/list_script_job_batches_request.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/list_script_job_batches_request.py new file mode 100644 index 0000000000..6e0b139ef2 --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/list_script_job_batches_request.py @@ -0,0 +1,201 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListScriptJobBatchesRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'execute_uuid': 'str', + 'x_language': 'str', + 'x_project_id': 'str', + 'x_user_profile': 'str' + } + + attribute_map = { + 'execute_uuid': 'execute_uuid', + 'x_language': 'X-Language', + 'x_project_id': 'x-project-id', + 'x_user_profile': 'x-user-profile' + } + + def __init__(self, execute_uuid=None, x_language=None, x_project_id=None, x_user_profile=None): + """ListScriptJobBatchesRequest + + The model defined in huaweicloud sdk + + :param execute_uuid: 脚本工单的执行Id,取自executeJobScript和ListJobScriptOrders返回体中 + :type execute_uuid: str + :param x_language: 国际化标记,zh-cn表示中文,en-us或不传表示英文 + :type x_language: str + :param x_project_id: 项目ID,一个项目对应一个region + :type x_project_id: str + :param x_user_profile: IAM5.0用户信息 + :type x_user_profile: str + """ + + + + self._execute_uuid = None + self._x_language = None + self._x_project_id = None + self._x_user_profile = None + self.discriminator = None + + self.execute_uuid = execute_uuid + if x_language is not None: + self.x_language = x_language + if x_project_id is not None: + self.x_project_id = x_project_id + if x_user_profile is not None: + self.x_user_profile = x_user_profile + + @property + def execute_uuid(self): + """Gets the execute_uuid of this ListScriptJobBatchesRequest. + + 脚本工单的执行Id,取自executeJobScript和ListJobScriptOrders返回体中 + + :return: The execute_uuid of this ListScriptJobBatchesRequest. + :rtype: str + """ + return self._execute_uuid + + @execute_uuid.setter + def execute_uuid(self, execute_uuid): + """Sets the execute_uuid of this ListScriptJobBatchesRequest. + + 脚本工单的执行Id,取自executeJobScript和ListJobScriptOrders返回体中 + + :param execute_uuid: The execute_uuid of this ListScriptJobBatchesRequest. + :type execute_uuid: str + """ + self._execute_uuid = execute_uuid + + @property + def x_language(self): + """Gets the x_language of this ListScriptJobBatchesRequest. + + 国际化标记,zh-cn表示中文,en-us或不传表示英文 + + :return: The x_language of this ListScriptJobBatchesRequest. + :rtype: str + """ + return self._x_language + + @x_language.setter + def x_language(self, x_language): + """Sets the x_language of this ListScriptJobBatchesRequest. + + 国际化标记,zh-cn表示中文,en-us或不传表示英文 + + :param x_language: The x_language of this ListScriptJobBatchesRequest. + :type x_language: str + """ + self._x_language = x_language + + @property + def x_project_id(self): + """Gets the x_project_id of this ListScriptJobBatchesRequest. + + 项目ID,一个项目对应一个region + + :return: The x_project_id of this ListScriptJobBatchesRequest. + :rtype: str + """ + return self._x_project_id + + @x_project_id.setter + def x_project_id(self, x_project_id): + """Sets the x_project_id of this ListScriptJobBatchesRequest. + + 项目ID,一个项目对应一个region + + :param x_project_id: The x_project_id of this ListScriptJobBatchesRequest. + :type x_project_id: str + """ + self._x_project_id = x_project_id + + @property + def x_user_profile(self): + """Gets the x_user_profile of this ListScriptJobBatchesRequest. + + IAM5.0用户信息 + + :return: The x_user_profile of this ListScriptJobBatchesRequest. + :rtype: str + """ + return self._x_user_profile + + @x_user_profile.setter + def x_user_profile(self, x_user_profile): + """Sets the x_user_profile of this ListScriptJobBatchesRequest. + + IAM5.0用户信息 + + :param x_user_profile: The x_user_profile of this ListScriptJobBatchesRequest. + :type x_user_profile: str + """ + self._x_user_profile = x_user_profile + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListScriptJobBatchesRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/list_script_job_batches_response.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/list_script_job_batches_response.py new file mode 100644 index 0000000000..39674acc0a --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/list_script_job_batches_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 ListScriptJobBatchesResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'data': 'list[JobScriptBatchListModel]' + } + + attribute_map = { + 'data': 'data' + } + + def __init__(self, data=None): + """ListScriptJobBatchesResponse + + The model defined in huaweicloud sdk + + :param data: 展示批次列表 + :type data: list[:class:`huaweicloudsdkcoc.v1.JobScriptBatchListModel`] + """ + + super(ListScriptJobBatchesResponse, 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 ListScriptJobBatchesResponse. + + 展示批次列表 + + :return: The data of this ListScriptJobBatchesResponse. + :rtype: list[:class:`huaweicloudsdkcoc.v1.JobScriptBatchListModel`] + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this ListScriptJobBatchesResponse. + + 展示批次列表 + + :param data: The data of this ListScriptJobBatchesResponse. + :type data: list[:class:`huaweicloudsdkcoc.v1.JobScriptBatchListModel`] + """ + 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, ListScriptJobBatchesResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/list_script_jobs_request.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/list_script_jobs_request.py new file mode 100644 index 0000000000..9a7d778a54 --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/list_script_jobs_request.py @@ -0,0 +1,347 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListScriptJobsRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'limit': 'int', + 'marker': 'int', + 'start_time': 'int', + 'end_time': 'int', + 'creator': 'str', + 'status': 'str', + 'x_language': 'str', + 'x_project_id': 'str', + 'x_user_profile': 'str' + } + + attribute_map = { + 'limit': 'limit', + 'marker': 'marker', + 'start_time': 'start_time', + 'end_time': 'end_time', + 'creator': 'creator', + 'status': 'status', + 'x_language': 'X-Language', + 'x_project_id': 'x-project-id', + 'x_user_profile': 'x-user-profile' + } + + def __init__(self, limit=None, marker=None, start_time=None, end_time=None, creator=None, status=None, x_language=None, x_project_id=None, x_user_profile=None): + """ListScriptJobsRequest + + The model defined in huaweicloud sdk + + :param limit: 分页参数 + :type limit: int + :param marker: 分页参数 + :type marker: int + :param start_time: 创建时间开始 + :type start_time: int + :param end_time: 创建时间结束 + :type end_time: int + :param creator: 创建人 + :type creator: str + :param status: 工单状态 PROCESSING:执行中 ABNORMAL:异常 PAUSED:暂停 CANCELED:已取消 FINISHED:成功 + :type status: str + :param x_language: 国际化标记,zh-cn表示中文,en-us或不传表示英文 + :type x_language: str + :param x_project_id: 项目ID,一个项目对应一个region + :type x_project_id: str + :param x_user_profile: IAM5.0用户信息 + :type x_user_profile: str + """ + + + + self._limit = None + self._marker = None + self._start_time = None + self._end_time = None + self._creator = None + self._status = None + self._x_language = None + self._x_project_id = None + self._x_user_profile = None + self.discriminator = None + + if limit is not None: + self.limit = limit + if marker is not None: + self.marker = marker + if start_time is not None: + self.start_time = start_time + if end_time is not None: + self.end_time = end_time + if creator is not None: + self.creator = creator + if status is not None: + self.status = status + if x_language is not None: + self.x_language = x_language + if x_project_id is not None: + self.x_project_id = x_project_id + if x_user_profile is not None: + self.x_user_profile = x_user_profile + + @property + def limit(self): + """Gets the limit of this ListScriptJobsRequest. + + 分页参数 + + :return: The limit of this ListScriptJobsRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ListScriptJobsRequest. + + 分页参数 + + :param limit: The limit of this ListScriptJobsRequest. + :type limit: int + """ + self._limit = limit + + @property + def marker(self): + """Gets the marker of this ListScriptJobsRequest. + + 分页参数 + + :return: The marker of this ListScriptJobsRequest. + :rtype: int + """ + return self._marker + + @marker.setter + def marker(self, marker): + """Sets the marker of this ListScriptJobsRequest. + + 分页参数 + + :param marker: The marker of this ListScriptJobsRequest. + :type marker: int + """ + self._marker = marker + + @property + def start_time(self): + """Gets the start_time of this ListScriptJobsRequest. + + 创建时间开始 + + :return: The start_time of this ListScriptJobsRequest. + :rtype: int + """ + return self._start_time + + @start_time.setter + def start_time(self, start_time): + """Sets the start_time of this ListScriptJobsRequest. + + 创建时间开始 + + :param start_time: The start_time of this ListScriptJobsRequest. + :type start_time: int + """ + self._start_time = start_time + + @property + def end_time(self): + """Gets the end_time of this ListScriptJobsRequest. + + 创建时间结束 + + :return: The end_time of this ListScriptJobsRequest. + :rtype: int + """ + return self._end_time + + @end_time.setter + def end_time(self, end_time): + """Sets the end_time of this ListScriptJobsRequest. + + 创建时间结束 + + :param end_time: The end_time of this ListScriptJobsRequest. + :type end_time: int + """ + self._end_time = end_time + + @property + def creator(self): + """Gets the creator of this ListScriptJobsRequest. + + 创建人 + + :return: The creator of this ListScriptJobsRequest. + :rtype: str + """ + return self._creator + + @creator.setter + def creator(self, creator): + """Sets the creator of this ListScriptJobsRequest. + + 创建人 + + :param creator: The creator of this ListScriptJobsRequest. + :type creator: str + """ + self._creator = creator + + @property + def status(self): + """Gets the status of this ListScriptJobsRequest. + + 工单状态 PROCESSING:执行中 ABNORMAL:异常 PAUSED:暂停 CANCELED:已取消 FINISHED:成功 + + :return: The status of this ListScriptJobsRequest. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ListScriptJobsRequest. + + 工单状态 PROCESSING:执行中 ABNORMAL:异常 PAUSED:暂停 CANCELED:已取消 FINISHED:成功 + + :param status: The status of this ListScriptJobsRequest. + :type status: str + """ + self._status = status + + @property + def x_language(self): + """Gets the x_language of this ListScriptJobsRequest. + + 国际化标记,zh-cn表示中文,en-us或不传表示英文 + + :return: The x_language of this ListScriptJobsRequest. + :rtype: str + """ + return self._x_language + + @x_language.setter + def x_language(self, x_language): + """Sets the x_language of this ListScriptJobsRequest. + + 国际化标记,zh-cn表示中文,en-us或不传表示英文 + + :param x_language: The x_language of this ListScriptJobsRequest. + :type x_language: str + """ + self._x_language = x_language + + @property + def x_project_id(self): + """Gets the x_project_id of this ListScriptJobsRequest. + + 项目ID,一个项目对应一个region + + :return: The x_project_id of this ListScriptJobsRequest. + :rtype: str + """ + return self._x_project_id + + @x_project_id.setter + def x_project_id(self, x_project_id): + """Sets the x_project_id of this ListScriptJobsRequest. + + 项目ID,一个项目对应一个region + + :param x_project_id: The x_project_id of this ListScriptJobsRequest. + :type x_project_id: str + """ + self._x_project_id = x_project_id + + @property + def x_user_profile(self): + """Gets the x_user_profile of this ListScriptJobsRequest. + + IAM5.0用户信息 + + :return: The x_user_profile of this ListScriptJobsRequest. + :rtype: str + """ + return self._x_user_profile + + @x_user_profile.setter + def x_user_profile(self, x_user_profile): + """Sets the x_user_profile of this ListScriptJobsRequest. + + IAM5.0用户信息 + + :param x_user_profile: The x_user_profile of this ListScriptJobsRequest. + :type x_user_profile: str + """ + self._x_user_profile = x_user_profile + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListScriptJobsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/list_script_jobs_response.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/list_script_jobs_response.py new file mode 100644 index 0000000000..de16a39b36 --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/list_script_jobs_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 ListScriptJobsResponse(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': 'JobScriptOrderListPage' + } + + attribute_map = { + 'data': 'data' + } + + def __init__(self, data=None): + """ListScriptJobsResponse + + The model defined in huaweicloud sdk + + :param data: + :type data: :class:`huaweicloudsdkcoc.v1.JobScriptOrderListPage` + """ + + super(ListScriptJobsResponse, 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 ListScriptJobsResponse. + + :return: The data of this ListScriptJobsResponse. + :rtype: :class:`huaweicloudsdkcoc.v1.JobScriptOrderListPage` + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this ListScriptJobsResponse. + + :param data: The data of this ListScriptJobsResponse. + :type data: :class:`huaweicloudsdkcoc.v1.JobScriptOrderListPage` + """ + 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, ListScriptJobsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/list_scripts_request.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/list_scripts_request.py new file mode 100644 index 0000000000..b4ba9dc862 --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/list_scripts_request.py @@ -0,0 +1,375 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListScriptsRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'limit': 'int', + 'marker': 'int', + 'name_like': 'str', + 'creator': 'str', + 'risk_level': 'str', + 'type': 'str', + 'enterprise_project_id': 'str', + 'x_language': 'str', + 'x_project_id': 'str', + 'x_user_profile': 'str' + } + + attribute_map = { + 'limit': 'limit', + 'marker': 'marker', + 'name_like': 'name_like', + 'creator': 'creator', + 'risk_level': 'risk_level', + 'type': 'type', + 'enterprise_project_id': 'enterprise_project_id', + 'x_language': 'X-Language', + 'x_project_id': 'x-project-id', + 'x_user_profile': 'x-user-profile' + } + + def __init__(self, limit=None, marker=None, name_like=None, creator=None, risk_level=None, type=None, enterprise_project_id=None, x_language=None, x_project_id=None, x_user_profile=None): + """ListScriptsRequest + + The model defined in huaweicloud sdk + + :param limit: 分页参数:每页返回记录个数限制 + :type limit: int + :param marker: 分页参数:上一页最后一个记录id + :type marker: int + :param name_like: 脚本名(模糊) + :type name_like: str + :param creator: 创建人 + :type creator: str + :param risk_level: 风险等级 LOW:低风险 MEDIUM:中风险 HIGH:高风险 + :type risk_level: str + :param type: 脚本类型 SHELL:shell脚本 PYTHON:python脚本 BAT:Bat脚本 + :type type: str + :param enterprise_project_id: 企业项目id + :type enterprise_project_id: str + :param x_language: 国际化标记,zh-cn表示中文,en-us或不传表示英文 + :type x_language: str + :param x_project_id: 项目ID,一个项目对应一个region + :type x_project_id: str + :param x_user_profile: IAM5.0用户信息 + :type x_user_profile: str + """ + + + + self._limit = None + self._marker = None + self._name_like = None + self._creator = None + self._risk_level = None + self._type = None + self._enterprise_project_id = None + self._x_language = None + self._x_project_id = None + self._x_user_profile = None + self.discriminator = None + + self.limit = limit + if marker is not None: + self.marker = marker + if name_like is not None: + self.name_like = name_like + if creator is not None: + self.creator = creator + if risk_level is not None: + self.risk_level = risk_level + if type is not None: + self.type = type + if enterprise_project_id is not None: + self.enterprise_project_id = enterprise_project_id + if x_language is not None: + self.x_language = x_language + if x_project_id is not None: + self.x_project_id = x_project_id + if x_user_profile is not None: + self.x_user_profile = x_user_profile + + @property + def limit(self): + """Gets the limit of this ListScriptsRequest. + + 分页参数:每页返回记录个数限制 + + :return: The limit of this ListScriptsRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ListScriptsRequest. + + 分页参数:每页返回记录个数限制 + + :param limit: The limit of this ListScriptsRequest. + :type limit: int + """ + self._limit = limit + + @property + def marker(self): + """Gets the marker of this ListScriptsRequest. + + 分页参数:上一页最后一个记录id + + :return: The marker of this ListScriptsRequest. + :rtype: int + """ + return self._marker + + @marker.setter + def marker(self, marker): + """Sets the marker of this ListScriptsRequest. + + 分页参数:上一页最后一个记录id + + :param marker: The marker of this ListScriptsRequest. + :type marker: int + """ + self._marker = marker + + @property + def name_like(self): + """Gets the name_like of this ListScriptsRequest. + + 脚本名(模糊) + + :return: The name_like of this ListScriptsRequest. + :rtype: str + """ + return self._name_like + + @name_like.setter + def name_like(self, name_like): + """Sets the name_like of this ListScriptsRequest. + + 脚本名(模糊) + + :param name_like: The name_like of this ListScriptsRequest. + :type name_like: str + """ + self._name_like = name_like + + @property + def creator(self): + """Gets the creator of this ListScriptsRequest. + + 创建人 + + :return: The creator of this ListScriptsRequest. + :rtype: str + """ + return self._creator + + @creator.setter + def creator(self, creator): + """Sets the creator of this ListScriptsRequest. + + 创建人 + + :param creator: The creator of this ListScriptsRequest. + :type creator: str + """ + self._creator = creator + + @property + def risk_level(self): + """Gets the risk_level of this ListScriptsRequest. + + 风险等级 LOW:低风险 MEDIUM:中风险 HIGH:高风险 + + :return: The risk_level of this ListScriptsRequest. + :rtype: str + """ + return self._risk_level + + @risk_level.setter + def risk_level(self, risk_level): + """Sets the risk_level of this ListScriptsRequest. + + 风险等级 LOW:低风险 MEDIUM:中风险 HIGH:高风险 + + :param risk_level: The risk_level of this ListScriptsRequest. + :type risk_level: str + """ + self._risk_level = risk_level + + @property + def type(self): + """Gets the type of this ListScriptsRequest. + + 脚本类型 SHELL:shell脚本 PYTHON:python脚本 BAT:Bat脚本 + + :return: The type of this ListScriptsRequest. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this ListScriptsRequest. + + 脚本类型 SHELL:shell脚本 PYTHON:python脚本 BAT:Bat脚本 + + :param type: The type of this ListScriptsRequest. + :type type: str + """ + self._type = type + + @property + def enterprise_project_id(self): + """Gets the enterprise_project_id of this ListScriptsRequest. + + 企业项目id + + :return: The enterprise_project_id of this ListScriptsRequest. + :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 ListScriptsRequest. + + 企业项目id + + :param enterprise_project_id: The enterprise_project_id of this ListScriptsRequest. + :type enterprise_project_id: str + """ + self._enterprise_project_id = enterprise_project_id + + @property + def x_language(self): + """Gets the x_language of this ListScriptsRequest. + + 国际化标记,zh-cn表示中文,en-us或不传表示英文 + + :return: The x_language of this ListScriptsRequest. + :rtype: str + """ + return self._x_language + + @x_language.setter + def x_language(self, x_language): + """Sets the x_language of this ListScriptsRequest. + + 国际化标记,zh-cn表示中文,en-us或不传表示英文 + + :param x_language: The x_language of this ListScriptsRequest. + :type x_language: str + """ + self._x_language = x_language + + @property + def x_project_id(self): + """Gets the x_project_id of this ListScriptsRequest. + + 项目ID,一个项目对应一个region + + :return: The x_project_id of this ListScriptsRequest. + :rtype: str + """ + return self._x_project_id + + @x_project_id.setter + def x_project_id(self, x_project_id): + """Sets the x_project_id of this ListScriptsRequest. + + 项目ID,一个项目对应一个region + + :param x_project_id: The x_project_id of this ListScriptsRequest. + :type x_project_id: str + """ + self._x_project_id = x_project_id + + @property + def x_user_profile(self): + """Gets the x_user_profile of this ListScriptsRequest. + + IAM5.0用户信息 + + :return: The x_user_profile of this ListScriptsRequest. + :rtype: str + """ + return self._x_user_profile + + @x_user_profile.setter + def x_user_profile(self, x_user_profile): + """Sets the x_user_profile of this ListScriptsRequest. + + IAM5.0用户信息 + + :param x_user_profile: The x_user_profile of this ListScriptsRequest. + :type x_user_profile: str + """ + self._x_user_profile = x_user_profile + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListScriptsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/list_scripts_response.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/list_scripts_response.py new file mode 100644 index 0000000000..b51826570d --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/list_scripts_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 ListScriptsResponse(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': 'ScriptListPage' + } + + attribute_map = { + 'data': 'data' + } + + def __init__(self, data=None): + """ListScriptsResponse + + The model defined in huaweicloud sdk + + :param data: + :type data: :class:`huaweicloudsdkcoc.v1.ScriptListPage` + """ + + super(ListScriptsResponse, 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 ListScriptsResponse. + + :return: The data of this ListScriptsResponse. + :rtype: :class:`huaweicloudsdkcoc.v1.ScriptListPage` + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this ListScriptsResponse. + + :param data: The data of this ListScriptsResponse. + :type data: :class:`huaweicloudsdkcoc.v1.ScriptListPage` + """ + 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, ListScriptsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/list_tenant_war_room_request_body.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/list_tenant_war_room_request_body.py new file mode 100644 index 0000000000..8de103d2c2 --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/list_tenant_war_room_request_body.py @@ -0,0 +1,695 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListTenantWarRoomRequestBody: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'limit': 'int', + 'offset': 'int', + 'current_users': 'list[str]', + 'war_room_nums': 'list[str]', + 'incident_num': 'str', + 'title': 'str', + 'region_code_list': 'list[str]', + 'incident_levels': 'list[str]', + 'impacted_application_ids': 'list[str]', + 'admin': 'list[str]', + 'status': 'list[str]', + 'triggered_start_time': 'int', + 'triggered_end_time': 'int', + 'occur_start_time': 'int', + 'occur_end_time': 'int', + 'recover_start_time': 'int', + 'recover_end_time': 'int', + 'notification_level': 'list[str]', + 'enterprise_project_ids': 'list[str]', + 'war_room_num': 'str', + 'statistic_flag': 'bool' + } + + attribute_map = { + 'limit': 'limit', + 'offset': 'offset', + 'current_users': 'current_users', + 'war_room_nums': 'war_room_nums', + 'incident_num': 'incident_num', + 'title': 'title', + 'region_code_list': 'region_code_list', + 'incident_levels': 'incident_levels', + 'impacted_application_ids': 'impacted_application_ids', + 'admin': 'admin', + 'status': 'status', + 'triggered_start_time': 'triggered_start_time', + 'triggered_end_time': 'triggered_end_time', + 'occur_start_time': 'occur_start_time', + 'occur_end_time': 'occur_end_time', + 'recover_start_time': 'recover_start_time', + 'recover_end_time': 'recover_end_time', + 'notification_level': 'notification_level', + 'enterprise_project_ids': 'enterprise_project_ids', + 'war_room_num': 'war_room_num', + 'statistic_flag': 'statistic_flag' + } + + def __init__(self, limit=None, offset=None, current_users=None, war_room_nums=None, incident_num=None, title=None, region_code_list=None, incident_levels=None, impacted_application_ids=None, admin=None, status=None, triggered_start_time=None, triggered_end_time=None, occur_start_time=None, occur_end_time=None, recover_start_time=None, recover_end_time=None, notification_level=None, enterprise_project_ids=None, war_room_num=None, statistic_flag=None): + """ListTenantWarRoomRequestBody + + The model defined in huaweicloud sdk + + :param limit: limit + :type limit: int + :param offset: 查询数量 最小值0 最大值1000 + :type offset: int + :param current_users: 用户id + :type current_users: list[str] + :param war_room_nums: WarRoom单号,当有这个筛选条件时,其他筛选条件忽略 + :type war_room_nums: list[str] + :param incident_num: 事件单号 精确查询 + :type incident_num: str + :param title: WarRoom名称 模糊查询 + :type title: str + :param region_code_list: 区域 多选 + :type region_code_list: list[str] + :param incident_levels: 事件级别 多选 + :type incident_levels: list[str] + :param impacted_application_ids: 影响应用id + :type impacted_application_ids: list[str] + :param admin: WarRoom管理员 + :type admin: list[str] + :param status: WarRoom状态 + :type status: list[str] + :param triggered_start_time: 拉起开始时间 默认前30天 + :type triggered_start_time: int + :param triggered_end_time: 拉起结束时间 默认当前时间 + :type triggered_end_time: int + :param occur_start_time: 发生开始时间 + :type occur_start_time: int + :param occur_end_time: 发生结束时间 + :type occur_end_time: int + :param recover_start_time: 恢复开始时间 + :type recover_start_time: int + :param recover_end_time: 恢复结束时间 + :type recover_end_time: int + :param notification_level: 通报级别 + :type notification_level: list[str] + :param enterprise_project_ids: 企业项目id + :type enterprise_project_ids: list[str] + :param war_room_num: WarRoom 单号 前端使用 + :type war_room_num: str + :param statistic_flag: 是否统计,false 返回基本信息;true接口只返回统计结果:total_num,running_num,closed_num + :type statistic_flag: bool + """ + + + + self._limit = None + self._offset = None + self._current_users = None + self._war_room_nums = None + self._incident_num = None + self._title = None + self._region_code_list = None + self._incident_levels = None + self._impacted_application_ids = None + self._admin = None + self._status = None + self._triggered_start_time = None + self._triggered_end_time = None + self._occur_start_time = None + self._occur_end_time = None + self._recover_start_time = None + self._recover_end_time = None + self._notification_level = None + self._enterprise_project_ids = None + self._war_room_num = None + self._statistic_flag = None + self.discriminator = None + + if limit is not None: + self.limit = limit + if offset is not None: + self.offset = offset + if current_users is not None: + self.current_users = current_users + if war_room_nums is not None: + self.war_room_nums = war_room_nums + if incident_num is not None: + self.incident_num = incident_num + if title is not None: + self.title = title + if region_code_list is not None: + self.region_code_list = region_code_list + if incident_levels is not None: + self.incident_levels = incident_levels + if impacted_application_ids is not None: + self.impacted_application_ids = impacted_application_ids + if admin is not None: + self.admin = admin + if status is not None: + self.status = status + if triggered_start_time is not None: + self.triggered_start_time = triggered_start_time + if triggered_end_time is not None: + self.triggered_end_time = triggered_end_time + if occur_start_time is not None: + self.occur_start_time = occur_start_time + if occur_end_time is not None: + self.occur_end_time = occur_end_time + if recover_start_time is not None: + self.recover_start_time = recover_start_time + if recover_end_time is not None: + self.recover_end_time = recover_end_time + if notification_level is not None: + self.notification_level = notification_level + if enterprise_project_ids is not None: + self.enterprise_project_ids = enterprise_project_ids + if war_room_num is not None: + self.war_room_num = war_room_num + if statistic_flag is not None: + self.statistic_flag = statistic_flag + + @property + def limit(self): + """Gets the limit of this ListTenantWarRoomRequestBody. + + limit + + :return: The limit of this ListTenantWarRoomRequestBody. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ListTenantWarRoomRequestBody. + + limit + + :param limit: The limit of this ListTenantWarRoomRequestBody. + :type limit: int + """ + self._limit = limit + + @property + def offset(self): + """Gets the offset of this ListTenantWarRoomRequestBody. + + 查询数量 最小值0 最大值1000 + + :return: The offset of this ListTenantWarRoomRequestBody. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this ListTenantWarRoomRequestBody. + + 查询数量 最小值0 最大值1000 + + :param offset: The offset of this ListTenantWarRoomRequestBody. + :type offset: int + """ + self._offset = offset + + @property + def current_users(self): + """Gets the current_users of this ListTenantWarRoomRequestBody. + + 用户id + + :return: The current_users of this ListTenantWarRoomRequestBody. + :rtype: list[str] + """ + return self._current_users + + @current_users.setter + def current_users(self, current_users): + """Sets the current_users of this ListTenantWarRoomRequestBody. + + 用户id + + :param current_users: The current_users of this ListTenantWarRoomRequestBody. + :type current_users: list[str] + """ + self._current_users = current_users + + @property + def war_room_nums(self): + """Gets the war_room_nums of this ListTenantWarRoomRequestBody. + + WarRoom单号,当有这个筛选条件时,其他筛选条件忽略 + + :return: The war_room_nums of this ListTenantWarRoomRequestBody. + :rtype: list[str] + """ + return self._war_room_nums + + @war_room_nums.setter + def war_room_nums(self, war_room_nums): + """Sets the war_room_nums of this ListTenantWarRoomRequestBody. + + WarRoom单号,当有这个筛选条件时,其他筛选条件忽略 + + :param war_room_nums: The war_room_nums of this ListTenantWarRoomRequestBody. + :type war_room_nums: list[str] + """ + self._war_room_nums = war_room_nums + + @property + def incident_num(self): + """Gets the incident_num of this ListTenantWarRoomRequestBody. + + 事件单号 精确查询 + + :return: The incident_num of this ListTenantWarRoomRequestBody. + :rtype: str + """ + return self._incident_num + + @incident_num.setter + def incident_num(self, incident_num): + """Sets the incident_num of this ListTenantWarRoomRequestBody. + + 事件单号 精确查询 + + :param incident_num: The incident_num of this ListTenantWarRoomRequestBody. + :type incident_num: str + """ + self._incident_num = incident_num + + @property + def title(self): + """Gets the title of this ListTenantWarRoomRequestBody. + + WarRoom名称 模糊查询 + + :return: The title of this ListTenantWarRoomRequestBody. + :rtype: str + """ + return self._title + + @title.setter + def title(self, title): + """Sets the title of this ListTenantWarRoomRequestBody. + + WarRoom名称 模糊查询 + + :param title: The title of this ListTenantWarRoomRequestBody. + :type title: str + """ + self._title = title + + @property + def region_code_list(self): + """Gets the region_code_list of this ListTenantWarRoomRequestBody. + + 区域 多选 + + :return: The region_code_list of this ListTenantWarRoomRequestBody. + :rtype: list[str] + """ + return self._region_code_list + + @region_code_list.setter + def region_code_list(self, region_code_list): + """Sets the region_code_list of this ListTenantWarRoomRequestBody. + + 区域 多选 + + :param region_code_list: The region_code_list of this ListTenantWarRoomRequestBody. + :type region_code_list: list[str] + """ + self._region_code_list = region_code_list + + @property + def incident_levels(self): + """Gets the incident_levels of this ListTenantWarRoomRequestBody. + + 事件级别 多选 + + :return: The incident_levels of this ListTenantWarRoomRequestBody. + :rtype: list[str] + """ + return self._incident_levels + + @incident_levels.setter + def incident_levels(self, incident_levels): + """Sets the incident_levels of this ListTenantWarRoomRequestBody. + + 事件级别 多选 + + :param incident_levels: The incident_levels of this ListTenantWarRoomRequestBody. + :type incident_levels: list[str] + """ + self._incident_levels = incident_levels + + @property + def impacted_application_ids(self): + """Gets the impacted_application_ids of this ListTenantWarRoomRequestBody. + + 影响应用id + + :return: The impacted_application_ids of this ListTenantWarRoomRequestBody. + :rtype: list[str] + """ + return self._impacted_application_ids + + @impacted_application_ids.setter + def impacted_application_ids(self, impacted_application_ids): + """Sets the impacted_application_ids of this ListTenantWarRoomRequestBody. + + 影响应用id + + :param impacted_application_ids: The impacted_application_ids of this ListTenantWarRoomRequestBody. + :type impacted_application_ids: list[str] + """ + self._impacted_application_ids = impacted_application_ids + + @property + def admin(self): + """Gets the admin of this ListTenantWarRoomRequestBody. + + WarRoom管理员 + + :return: The admin of this ListTenantWarRoomRequestBody. + :rtype: list[str] + """ + return self._admin + + @admin.setter + def admin(self, admin): + """Sets the admin of this ListTenantWarRoomRequestBody. + + WarRoom管理员 + + :param admin: The admin of this ListTenantWarRoomRequestBody. + :type admin: list[str] + """ + self._admin = admin + + @property + def status(self): + """Gets the status of this ListTenantWarRoomRequestBody. + + WarRoom状态 + + :return: The status of this ListTenantWarRoomRequestBody. + :rtype: list[str] + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ListTenantWarRoomRequestBody. + + WarRoom状态 + + :param status: The status of this ListTenantWarRoomRequestBody. + :type status: list[str] + """ + self._status = status + + @property + def triggered_start_time(self): + """Gets the triggered_start_time of this ListTenantWarRoomRequestBody. + + 拉起开始时间 默认前30天 + + :return: The triggered_start_time of this ListTenantWarRoomRequestBody. + :rtype: int + """ + return self._triggered_start_time + + @triggered_start_time.setter + def triggered_start_time(self, triggered_start_time): + """Sets the triggered_start_time of this ListTenantWarRoomRequestBody. + + 拉起开始时间 默认前30天 + + :param triggered_start_time: The triggered_start_time of this ListTenantWarRoomRequestBody. + :type triggered_start_time: int + """ + self._triggered_start_time = triggered_start_time + + @property + def triggered_end_time(self): + """Gets the triggered_end_time of this ListTenantWarRoomRequestBody. + + 拉起结束时间 默认当前时间 + + :return: The triggered_end_time of this ListTenantWarRoomRequestBody. + :rtype: int + """ + return self._triggered_end_time + + @triggered_end_time.setter + def triggered_end_time(self, triggered_end_time): + """Sets the triggered_end_time of this ListTenantWarRoomRequestBody. + + 拉起结束时间 默认当前时间 + + :param triggered_end_time: The triggered_end_time of this ListTenantWarRoomRequestBody. + :type triggered_end_time: int + """ + self._triggered_end_time = triggered_end_time + + @property + def occur_start_time(self): + """Gets the occur_start_time of this ListTenantWarRoomRequestBody. + + 发生开始时间 + + :return: The occur_start_time of this ListTenantWarRoomRequestBody. + :rtype: int + """ + return self._occur_start_time + + @occur_start_time.setter + def occur_start_time(self, occur_start_time): + """Sets the occur_start_time of this ListTenantWarRoomRequestBody. + + 发生开始时间 + + :param occur_start_time: The occur_start_time of this ListTenantWarRoomRequestBody. + :type occur_start_time: int + """ + self._occur_start_time = occur_start_time + + @property + def occur_end_time(self): + """Gets the occur_end_time of this ListTenantWarRoomRequestBody. + + 发生结束时间 + + :return: The occur_end_time of this ListTenantWarRoomRequestBody. + :rtype: int + """ + return self._occur_end_time + + @occur_end_time.setter + def occur_end_time(self, occur_end_time): + """Sets the occur_end_time of this ListTenantWarRoomRequestBody. + + 发生结束时间 + + :param occur_end_time: The occur_end_time of this ListTenantWarRoomRequestBody. + :type occur_end_time: int + """ + self._occur_end_time = occur_end_time + + @property + def recover_start_time(self): + """Gets the recover_start_time of this ListTenantWarRoomRequestBody. + + 恢复开始时间 + + :return: The recover_start_time of this ListTenantWarRoomRequestBody. + :rtype: int + """ + return self._recover_start_time + + @recover_start_time.setter + def recover_start_time(self, recover_start_time): + """Sets the recover_start_time of this ListTenantWarRoomRequestBody. + + 恢复开始时间 + + :param recover_start_time: The recover_start_time of this ListTenantWarRoomRequestBody. + :type recover_start_time: int + """ + self._recover_start_time = recover_start_time + + @property + def recover_end_time(self): + """Gets the recover_end_time of this ListTenantWarRoomRequestBody. + + 恢复结束时间 + + :return: The recover_end_time of this ListTenantWarRoomRequestBody. + :rtype: int + """ + return self._recover_end_time + + @recover_end_time.setter + def recover_end_time(self, recover_end_time): + """Sets the recover_end_time of this ListTenantWarRoomRequestBody. + + 恢复结束时间 + + :param recover_end_time: The recover_end_time of this ListTenantWarRoomRequestBody. + :type recover_end_time: int + """ + self._recover_end_time = recover_end_time + + @property + def notification_level(self): + """Gets the notification_level of this ListTenantWarRoomRequestBody. + + 通报级别 + + :return: The notification_level of this ListTenantWarRoomRequestBody. + :rtype: list[str] + """ + return self._notification_level + + @notification_level.setter + def notification_level(self, notification_level): + """Sets the notification_level of this ListTenantWarRoomRequestBody. + + 通报级别 + + :param notification_level: The notification_level of this ListTenantWarRoomRequestBody. + :type notification_level: list[str] + """ + self._notification_level = notification_level + + @property + def enterprise_project_ids(self): + """Gets the enterprise_project_ids of this ListTenantWarRoomRequestBody. + + 企业项目id + + :return: The enterprise_project_ids of this ListTenantWarRoomRequestBody. + :rtype: list[str] + """ + return self._enterprise_project_ids + + @enterprise_project_ids.setter + def enterprise_project_ids(self, enterprise_project_ids): + """Sets the enterprise_project_ids of this ListTenantWarRoomRequestBody. + + 企业项目id + + :param enterprise_project_ids: The enterprise_project_ids of this ListTenantWarRoomRequestBody. + :type enterprise_project_ids: list[str] + """ + self._enterprise_project_ids = enterprise_project_ids + + @property + def war_room_num(self): + """Gets the war_room_num of this ListTenantWarRoomRequestBody. + + WarRoom 单号 前端使用 + + :return: The war_room_num of this ListTenantWarRoomRequestBody. + :rtype: str + """ + return self._war_room_num + + @war_room_num.setter + def war_room_num(self, war_room_num): + """Sets the war_room_num of this ListTenantWarRoomRequestBody. + + WarRoom 单号 前端使用 + + :param war_room_num: The war_room_num of this ListTenantWarRoomRequestBody. + :type war_room_num: str + """ + self._war_room_num = war_room_num + + @property + def statistic_flag(self): + """Gets the statistic_flag of this ListTenantWarRoomRequestBody. + + 是否统计,false 返回基本信息;true接口只返回统计结果:total_num,running_num,closed_num + + :return: The statistic_flag of this ListTenantWarRoomRequestBody. + :rtype: bool + """ + return self._statistic_flag + + @statistic_flag.setter + def statistic_flag(self, statistic_flag): + """Sets the statistic_flag of this ListTenantWarRoomRequestBody. + + 是否统计,false 返回基本信息;true接口只返回统计结果:total_num,running_num,closed_num + + :param statistic_flag: The statistic_flag of this ListTenantWarRoomRequestBody. + :type statistic_flag: bool + """ + self._statistic_flag = statistic_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, ListTenantWarRoomRequestBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/list_ticket_params.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/list_ticket_params.py new file mode 100644 index 0000000000..e6050db4e6 --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/list_ticket_params.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListTicketParams: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'string_filters': 'list[ObjectFilter]', + 'sort_filter': 'ObjectFilter' + } + + attribute_map = { + 'string_filters': 'string_filters', + 'sort_filter': 'sort_filter' + } + + def __init__(self, string_filters=None, sort_filter=None): + """ListTicketParams + + The model defined in huaweicloud sdk + + :param string_filters: 字符串搜索条件 + :type string_filters: list[:class:`huaweicloudsdkcoc.v1.ObjectFilter`] + :param sort_filter: + :type sort_filter: :class:`huaweicloudsdkcoc.v1.ObjectFilter` + """ + + + + self._string_filters = None + self._sort_filter = None + self.discriminator = None + + self.string_filters = string_filters + if sort_filter is not None: + self.sort_filter = sort_filter + + @property + def string_filters(self): + """Gets the string_filters of this ListTicketParams. + + 字符串搜索条件 + + :return: The string_filters of this ListTicketParams. + :rtype: list[:class:`huaweicloudsdkcoc.v1.ObjectFilter`] + """ + return self._string_filters + + @string_filters.setter + def string_filters(self, string_filters): + """Sets the string_filters of this ListTicketParams. + + 字符串搜索条件 + + :param string_filters: The string_filters of this ListTicketParams. + :type string_filters: list[:class:`huaweicloudsdkcoc.v1.ObjectFilter`] + """ + self._string_filters = string_filters + + @property + def sort_filter(self): + """Gets the sort_filter of this ListTicketParams. + + :return: The sort_filter of this ListTicketParams. + :rtype: :class:`huaweicloudsdkcoc.v1.ObjectFilter` + """ + return self._sort_filter + + @sort_filter.setter + def sort_filter(self, sort_filter): + """Sets the sort_filter of this ListTicketParams. + + :param sort_filter: The sort_filter of this ListTicketParams. + :type sort_filter: :class:`huaweicloudsdkcoc.v1.ObjectFilter` + """ + self._sort_filter = sort_filter + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListTicketParams): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/list_war_rooms_request.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/list_war_rooms_request.py new file mode 100644 index 0000000000..e75cfda290 --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/list_war_rooms_request.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListWarRoomsRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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': 'ListTenantWarRoomRequestBody' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """ListWarRoomsRequest + + The model defined in huaweicloud sdk + + :param body: Body of the ListWarRoomsRequest + :type body: :class:`huaweicloudsdkcoc.v1.ListTenantWarRoomRequestBody` + """ + + + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this ListWarRoomsRequest. + + :return: The body of this ListWarRoomsRequest. + :rtype: :class:`huaweicloudsdkcoc.v1.ListTenantWarRoomRequestBody` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this ListWarRoomsRequest. + + :param body: The body of this ListWarRoomsRequest. + :type body: :class:`huaweicloudsdkcoc.v1.ListTenantWarRoomRequestBody` + """ + 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, ListWarRoomsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/list_war_rooms_response.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/list_war_rooms_response.py new file mode 100644 index 0000000000..65a77e1cb8 --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/list_war_rooms_response.py @@ -0,0 +1,202 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListWarRoomsResponse(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 = { + 'provider_code': 'str', + 'error_code': 'str', + 'error_msg': 'str', + 'data': 'object' + } + + attribute_map = { + 'provider_code': 'provider_code', + 'error_code': 'error_code', + 'error_msg': 'error_msg', + 'data': 'data' + } + + def __init__(self, provider_code=None, error_code=None, error_msg=None, data=None): + """ListWarRoomsResponse + + The model defined in huaweicloud sdk + + :param provider_code: 服务标识 + :type provider_code: str + :param error_code: 请求响应代码,范围:0000~9999,正常时取值:0 + :type error_code: str + :param error_msg: 请求响应描述 + :type error_msg: str + :param data: 响应数据 + :type data: :class:`huaweicloudsdkcoc.v1.object` + """ + + super(ListWarRoomsResponse, self).__init__() + + self._provider_code = None + self._error_code = None + self._error_msg = None + self._data = None + self.discriminator = None + + if provider_code is not None: + self.provider_code = provider_code + if error_code is not None: + self.error_code = error_code + if error_msg is not None: + self.error_msg = error_msg + self.data = data + + @property + def provider_code(self): + """Gets the provider_code of this ListWarRoomsResponse. + + 服务标识 + + :return: The provider_code of this ListWarRoomsResponse. + :rtype: str + """ + return self._provider_code + + @provider_code.setter + def provider_code(self, provider_code): + """Sets the provider_code of this ListWarRoomsResponse. + + 服务标识 + + :param provider_code: The provider_code of this ListWarRoomsResponse. + :type provider_code: str + """ + self._provider_code = provider_code + + @property + def error_code(self): + """Gets the error_code of this ListWarRoomsResponse. + + 请求响应代码,范围:0000~9999,正常时取值:0 + + :return: The error_code of this ListWarRoomsResponse. + :rtype: str + """ + return self._error_code + + @error_code.setter + def error_code(self, error_code): + """Sets the error_code of this ListWarRoomsResponse. + + 请求响应代码,范围:0000~9999,正常时取值:0 + + :param error_code: The error_code of this ListWarRoomsResponse. + :type error_code: str + """ + self._error_code = error_code + + @property + def error_msg(self): + """Gets the error_msg of this ListWarRoomsResponse. + + 请求响应描述 + + :return: The error_msg of this ListWarRoomsResponse. + :rtype: str + """ + return self._error_msg + + @error_msg.setter + def error_msg(self, error_msg): + """Sets the error_msg of this ListWarRoomsResponse. + + 请求响应描述 + + :param error_msg: The error_msg of this ListWarRoomsResponse. + :type error_msg: str + """ + self._error_msg = error_msg + + @property + def data(self): + """Gets the data of this ListWarRoomsResponse. + + 响应数据 + + :return: The data of this ListWarRoomsResponse. + :rtype: :class:`huaweicloudsdkcoc.v1.object` + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this ListWarRoomsResponse. + + 响应数据 + + :param data: The data of this ListWarRoomsResponse. + :type data: :class:`huaweicloudsdkcoc.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, ListWarRoomsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/non_compliant_summary.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/non_compliant_summary.py new file mode 100644 index 0000000000..3ef364d356 --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/non_compliant_summary.py @@ -0,0 +1,140 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class NonCompliantSummary: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'non_compliant_count': 'int', + 'severity_summary': 'SeveritySummary' + } + + attribute_map = { + 'non_compliant_count': 'non_compliant_count', + 'severity_summary': 'severity_summary' + } + + def __init__(self, non_compliant_count=None, severity_summary=None): + """NonCompliantSummary + + The model defined in huaweicloud sdk + + :param non_compliant_count: 不合规补丁数量 + :type non_compliant_count: int + :param severity_summary: + :type severity_summary: :class:`huaweicloudsdkcoc.v1.SeveritySummary` + """ + + + + self._non_compliant_count = None + self._severity_summary = None + self.discriminator = None + + if non_compliant_count is not None: + self.non_compliant_count = non_compliant_count + if severity_summary is not None: + self.severity_summary = severity_summary + + @property + def non_compliant_count(self): + """Gets the non_compliant_count of this NonCompliantSummary. + + 不合规补丁数量 + + :return: The non_compliant_count of this NonCompliantSummary. + :rtype: int + """ + return self._non_compliant_count + + @non_compliant_count.setter + def non_compliant_count(self, non_compliant_count): + """Sets the non_compliant_count of this NonCompliantSummary. + + 不合规补丁数量 + + :param non_compliant_count: The non_compliant_count of this NonCompliantSummary. + :type non_compliant_count: int + """ + self._non_compliant_count = non_compliant_count + + @property + def severity_summary(self): + """Gets the severity_summary of this NonCompliantSummary. + + :return: The severity_summary of this NonCompliantSummary. + :rtype: :class:`huaweicloudsdkcoc.v1.SeveritySummary` + """ + return self._severity_summary + + @severity_summary.setter + def severity_summary(self, severity_summary): + """Sets the severity_summary of this NonCompliantSummary. + + :param severity_summary: The severity_summary of this NonCompliantSummary. + :type severity_summary: :class:`huaweicloudsdkcoc.v1.SeveritySummary` + """ + self._severity_summary = severity_summary + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, NonCompliantSummary): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/object_filter.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/object_filter.py new file mode 100644 index 0000000000..7ad4fb27e7 --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/object_filter.py @@ -0,0 +1,170 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ObjectFilter: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'operator': 'str', + 'field': 'str', + 'values': 'list[str]' + } + + attribute_map = { + 'operator': 'operator', + 'field': 'field', + 'values': 'values' + } + + def __init__(self, operator=None, field=None, values=None): + """ObjectFilter + + The model defined in huaweicloud sdk + + :param operator: 操作符 in/like/startwith/endwith/=/!=/>/<等 + :type operator: str + :param field: 字段名称 + :type field: str + :param values: 搜索值 + :type values: list[str] + """ + + + + self._operator = None + self._field = None + self._values = None + self.discriminator = None + + self.operator = operator + self.field = field + self.values = values + + @property + def operator(self): + """Gets the operator of this ObjectFilter. + + 操作符 in/like/startwith/endwith/=/!=/>/<等 + + :return: The operator of this ObjectFilter. + :rtype: str + """ + return self._operator + + @operator.setter + def operator(self, operator): + """Sets the operator of this ObjectFilter. + + 操作符 in/like/startwith/endwith/=/!=/>/<等 + + :param operator: The operator of this ObjectFilter. + :type operator: str + """ + self._operator = operator + + @property + def field(self): + """Gets the field of this ObjectFilter. + + 字段名称 + + :return: The field of this ObjectFilter. + :rtype: str + """ + return self._field + + @field.setter + def field(self, field): + """Sets the field of this ObjectFilter. + + 字段名称 + + :param field: The field of this ObjectFilter. + :type field: str + """ + self._field = field + + @property + def values(self): + """Gets the values of this ObjectFilter. + + 搜索值 + + :return: The values of this ObjectFilter. + :rtype: list[str] + """ + return self._values + + @values.setter + def values(self, values): + """Sets the values of this ObjectFilter. + + 搜索值 + + :param values: The values of this ObjectFilter. + :type values: list[str] + """ + self._values = values + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ObjectFilter): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/operate_script_job_request.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/operate_script_job_request.py new file mode 100644 index 0000000000..b007c31e03 --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/operate_script_job_request.py @@ -0,0 +1,226 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class OperateScriptJobRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'execute_uuid': 'str', + 'x_language': 'str', + 'x_project_id': 'str', + 'x_user_profile': 'str', + 'body': 'JobScriptOrderOperationBody' + } + + attribute_map = { + 'execute_uuid': 'execute_uuid', + 'x_language': 'X-Language', + 'x_project_id': 'x-project-id', + 'x_user_profile': 'x-user-profile', + 'body': 'body' + } + + def __init__(self, execute_uuid=None, x_language=None, x_project_id=None, x_user_profile=None, body=None): + """OperateScriptJobRequest + + The model defined in huaweicloud sdk + + :param execute_uuid: 脚本工单的执行Id,取自executeJobScript和ListJobScriptOrders返回体中 + :type execute_uuid: str + :param x_language: 国际化标记,zh-cn表示中文,en-us或不传表示英文 + :type x_language: str + :param x_project_id: 项目ID,一个项目对应一个region + :type x_project_id: str + :param x_user_profile: IAM5.0用户信息 + :type x_user_profile: str + :param body: Body of the OperateScriptJobRequest + :type body: :class:`huaweicloudsdkcoc.v1.JobScriptOrderOperationBody` + """ + + + + self._execute_uuid = None + self._x_language = None + self._x_project_id = None + self._x_user_profile = None + self._body = None + self.discriminator = None + + self.execute_uuid = execute_uuid + if x_language is not None: + self.x_language = x_language + if x_project_id is not None: + self.x_project_id = x_project_id + if x_user_profile is not None: + self.x_user_profile = x_user_profile + if body is not None: + self.body = body + + @property + def execute_uuid(self): + """Gets the execute_uuid of this OperateScriptJobRequest. + + 脚本工单的执行Id,取自executeJobScript和ListJobScriptOrders返回体中 + + :return: The execute_uuid of this OperateScriptJobRequest. + :rtype: str + """ + return self._execute_uuid + + @execute_uuid.setter + def execute_uuid(self, execute_uuid): + """Sets the execute_uuid of this OperateScriptJobRequest. + + 脚本工单的执行Id,取自executeJobScript和ListJobScriptOrders返回体中 + + :param execute_uuid: The execute_uuid of this OperateScriptJobRequest. + :type execute_uuid: str + """ + self._execute_uuid = execute_uuid + + @property + def x_language(self): + """Gets the x_language of this OperateScriptJobRequest. + + 国际化标记,zh-cn表示中文,en-us或不传表示英文 + + :return: The x_language of this OperateScriptJobRequest. + :rtype: str + """ + return self._x_language + + @x_language.setter + def x_language(self, x_language): + """Sets the x_language of this OperateScriptJobRequest. + + 国际化标记,zh-cn表示中文,en-us或不传表示英文 + + :param x_language: The x_language of this OperateScriptJobRequest. + :type x_language: str + """ + self._x_language = x_language + + @property + def x_project_id(self): + """Gets the x_project_id of this OperateScriptJobRequest. + + 项目ID,一个项目对应一个region + + :return: The x_project_id of this OperateScriptJobRequest. + :rtype: str + """ + return self._x_project_id + + @x_project_id.setter + def x_project_id(self, x_project_id): + """Sets the x_project_id of this OperateScriptJobRequest. + + 项目ID,一个项目对应一个region + + :param x_project_id: The x_project_id of this OperateScriptJobRequest. + :type x_project_id: str + """ + self._x_project_id = x_project_id + + @property + def x_user_profile(self): + """Gets the x_user_profile of this OperateScriptJobRequest. + + IAM5.0用户信息 + + :return: The x_user_profile of this OperateScriptJobRequest. + :rtype: str + """ + return self._x_user_profile + + @x_user_profile.setter + def x_user_profile(self, x_user_profile): + """Sets the x_user_profile of this OperateScriptJobRequest. + + IAM5.0用户信息 + + :param x_user_profile: The x_user_profile of this OperateScriptJobRequest. + :type x_user_profile: str + """ + self._x_user_profile = x_user_profile + + @property + def body(self): + """Gets the body of this OperateScriptJobRequest. + + :return: The body of this OperateScriptJobRequest. + :rtype: :class:`huaweicloudsdkcoc.v1.JobScriptOrderOperationBody` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this OperateScriptJobRequest. + + :param body: The body of this OperateScriptJobRequest. + :type body: :class:`huaweicloudsdkcoc.v1.JobScriptOrderOperationBody` + """ + 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, OperateScriptJobRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/operate_script_job_response.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/operate_script_job_response.py new file mode 100644 index 0000000000..40c2996295 --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/operate_script_job_response.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class OperateScriptJobResponse(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): + """OperateScriptJobResponse + + The model defined in huaweicloud sdk + + :param data: 操作的工单execute_uuid + :type data: str + """ + + super(OperateScriptJobResponse, 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 OperateScriptJobResponse. + + 操作的工单execute_uuid + + :return: The data of this OperateScriptJobResponse. + :rtype: str + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this OperateScriptJobResponse. + + 操作的工单execute_uuid + + :param data: The data of this OperateScriptJobResponse. + :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, OperateScriptJobResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/patch_detail.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/patch_detail.py new file mode 100644 index 0000000000..02f108d9db --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/patch_detail.py @@ -0,0 +1,202 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class PatchDetail: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'installed_time': 'int', + 'patch_baseline_id': 'str', + 'patch_baseline_name': 'str', + 'patch_status': 'str' + } + + attribute_map = { + 'installed_time': 'installed_time', + 'patch_baseline_id': 'patch_baseline_id', + 'patch_baseline_name': 'patch_baseline_name', + 'patch_status': 'patch_status' + } + + def __init__(self, installed_time=None, patch_baseline_id=None, patch_baseline_name=None, patch_status=None): + """PatchDetail + + The model defined in huaweicloud sdk + + :param installed_time: 安装时间 + :type installed_time: int + :param patch_baseline_id: 补丁基线id + :type patch_baseline_id: str + :param patch_baseline_name: 补丁基线名称 + :type patch_baseline_name: str + :param patch_status: 补丁状态 + :type patch_status: str + """ + + + + self._installed_time = None + self._patch_baseline_id = None + self._patch_baseline_name = None + self._patch_status = None + self.discriminator = None + + if installed_time is not None: + self.installed_time = installed_time + if patch_baseline_id is not None: + self.patch_baseline_id = patch_baseline_id + if patch_baseline_name is not None: + self.patch_baseline_name = patch_baseline_name + if patch_status is not None: + self.patch_status = patch_status + + @property + def installed_time(self): + """Gets the installed_time of this PatchDetail. + + 安装时间 + + :return: The installed_time of this PatchDetail. + :rtype: int + """ + return self._installed_time + + @installed_time.setter + def installed_time(self, installed_time): + """Sets the installed_time of this PatchDetail. + + 安装时间 + + :param installed_time: The installed_time of this PatchDetail. + :type installed_time: int + """ + self._installed_time = installed_time + + @property + def patch_baseline_id(self): + """Gets the patch_baseline_id of this PatchDetail. + + 补丁基线id + + :return: The patch_baseline_id of this PatchDetail. + :rtype: str + """ + return self._patch_baseline_id + + @patch_baseline_id.setter + def patch_baseline_id(self, patch_baseline_id): + """Sets the patch_baseline_id of this PatchDetail. + + 补丁基线id + + :param patch_baseline_id: The patch_baseline_id of this PatchDetail. + :type patch_baseline_id: str + """ + self._patch_baseline_id = patch_baseline_id + + @property + def patch_baseline_name(self): + """Gets the patch_baseline_name of this PatchDetail. + + 补丁基线名称 + + :return: The patch_baseline_name of this PatchDetail. + :rtype: str + """ + return self._patch_baseline_name + + @patch_baseline_name.setter + def patch_baseline_name(self, patch_baseline_name): + """Sets the patch_baseline_name of this PatchDetail. + + 补丁基线名称 + + :param patch_baseline_name: The patch_baseline_name of this PatchDetail. + :type patch_baseline_name: str + """ + self._patch_baseline_name = patch_baseline_name + + @property + def patch_status(self): + """Gets the patch_status of this PatchDetail. + + 补丁状态 + + :return: The patch_status of this PatchDetail. + :rtype: str + """ + return self._patch_status + + @patch_status.setter + def patch_status(self, patch_status): + """Sets the patch_status of this PatchDetail. + + 补丁状态 + + :param patch_status: The patch_status of this PatchDetail. + :type patch_status: str + """ + self._patch_status = patch_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, PatchDetail): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/public_script_detail_model.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/public_script_detail_model.py new file mode 100644 index 0000000000..a9f8432c1b --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/public_script_detail_model.py @@ -0,0 +1,307 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class PublicScriptDetailModel: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'script_uuid': 'str', + 'name': 'str', + 'description': 'str', + 'type': 'str', + 'content': 'str', + 'script_params': 'list[ScriptParamDefine]', + 'gmt_created': 'int', + 'properties': 'PublicScriptPropertiesModel' + } + + attribute_map = { + 'script_uuid': 'script_uuid', + 'name': 'name', + 'description': 'description', + 'type': 'type', + 'content': 'content', + 'script_params': 'script_params', + 'gmt_created': 'gmt_created', + 'properties': 'properties' + } + + def __init__(self, script_uuid=None, name=None, description=None, type=None, content=None, script_params=None, gmt_created=None, properties=None): + """PublicScriptDetailModel + + The model defined in huaweicloud sdk + + :param script_uuid: 脚本uuid + :type script_uuid: str + :param name: 脚本名称 + :type name: str + :param description: 脚本描述 + :type description: str + :param type: 脚本类型 SHELL:shell脚本, PYTHON:Python脚本, BAT:Bat脚本, + :type type: str + :param content: 脚本内容 + :type content: str + :param script_params: 脚本入参 + :type script_params: list[:class:`huaweicloudsdkcoc.v1.ScriptParamDefine`] + :param gmt_created: 创建时间 + :type gmt_created: int + :param properties: + :type properties: :class:`huaweicloudsdkcoc.v1.PublicScriptPropertiesModel` + """ + + + + self._script_uuid = None + self._name = None + self._description = None + self._type = None + self._content = None + self._script_params = None + self._gmt_created = None + self._properties = None + self.discriminator = None + + self.script_uuid = script_uuid + self.name = name + self.description = description + self.type = type + self.content = content + if script_params is not None: + self.script_params = script_params + self.gmt_created = gmt_created + self.properties = properties + + @property + def script_uuid(self): + """Gets the script_uuid of this PublicScriptDetailModel. + + 脚本uuid + + :return: The script_uuid of this PublicScriptDetailModel. + :rtype: str + """ + return self._script_uuid + + @script_uuid.setter + def script_uuid(self, script_uuid): + """Sets the script_uuid of this PublicScriptDetailModel. + + 脚本uuid + + :param script_uuid: The script_uuid of this PublicScriptDetailModel. + :type script_uuid: str + """ + self._script_uuid = script_uuid + + @property + def name(self): + """Gets the name of this PublicScriptDetailModel. + + 脚本名称 + + :return: The name of this PublicScriptDetailModel. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this PublicScriptDetailModel. + + 脚本名称 + + :param name: The name of this PublicScriptDetailModel. + :type name: str + """ + self._name = name + + @property + def description(self): + """Gets the description of this PublicScriptDetailModel. + + 脚本描述 + + :return: The description of this PublicScriptDetailModel. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this PublicScriptDetailModel. + + 脚本描述 + + :param description: The description of this PublicScriptDetailModel. + :type description: str + """ + self._description = description + + @property + def type(self): + """Gets the type of this PublicScriptDetailModel. + + 脚本类型 SHELL:shell脚本, PYTHON:Python脚本, BAT:Bat脚本, + + :return: The type of this PublicScriptDetailModel. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this PublicScriptDetailModel. + + 脚本类型 SHELL:shell脚本, PYTHON:Python脚本, BAT:Bat脚本, + + :param type: The type of this PublicScriptDetailModel. + :type type: str + """ + self._type = type + + @property + def content(self): + """Gets the content of this PublicScriptDetailModel. + + 脚本内容 + + :return: The content of this PublicScriptDetailModel. + :rtype: str + """ + return self._content + + @content.setter + def content(self, content): + """Sets the content of this PublicScriptDetailModel. + + 脚本内容 + + :param content: The content of this PublicScriptDetailModel. + :type content: str + """ + self._content = content + + @property + def script_params(self): + """Gets the script_params of this PublicScriptDetailModel. + + 脚本入参 + + :return: The script_params of this PublicScriptDetailModel. + :rtype: list[:class:`huaweicloudsdkcoc.v1.ScriptParamDefine`] + """ + return self._script_params + + @script_params.setter + def script_params(self, script_params): + """Sets the script_params of this PublicScriptDetailModel. + + 脚本入参 + + :param script_params: The script_params of this PublicScriptDetailModel. + :type script_params: list[:class:`huaweicloudsdkcoc.v1.ScriptParamDefine`] + """ + self._script_params = script_params + + @property + def gmt_created(self): + """Gets the gmt_created of this PublicScriptDetailModel. + + 创建时间 + + :return: The gmt_created of this PublicScriptDetailModel. + :rtype: int + """ + return self._gmt_created + + @gmt_created.setter + def gmt_created(self, gmt_created): + """Sets the gmt_created of this PublicScriptDetailModel. + + 创建时间 + + :param gmt_created: The gmt_created of this PublicScriptDetailModel. + :type gmt_created: int + """ + self._gmt_created = gmt_created + + @property + def properties(self): + """Gets the properties of this PublicScriptDetailModel. + + :return: The properties of this PublicScriptDetailModel. + :rtype: :class:`huaweicloudsdkcoc.v1.PublicScriptPropertiesModel` + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PublicScriptDetailModel. + + :param properties: The properties of this PublicScriptDetailModel. + :type properties: :class:`huaweicloudsdkcoc.v1.PublicScriptPropertiesModel` + """ + 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, PublicScriptDetailModel): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/public_script_list_model.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/public_script_list_model.py new file mode 100644 index 0000000000..984ca8d792 --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/public_script_list_model.py @@ -0,0 +1,278 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class PublicScriptListModel: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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': 'int', + 'script_uuid': 'str', + 'name': 'str', + 'type': 'str', + 'gmt_created': 'int', + 'description': 'str', + 'properties': 'PublicScriptPropertiesModel' + } + + attribute_map = { + 'id': 'id', + 'script_uuid': 'script_uuid', + 'name': 'name', + 'type': 'type', + 'gmt_created': 'gmt_created', + 'description': 'description', + 'properties': 'properties' + } + + def __init__(self, id=None, script_uuid=None, name=None, type=None, gmt_created=None, description=None, properties=None): + """PublicScriptListModel + + The model defined in huaweicloud sdk + + :param id: 脚本自增id + :type id: int + :param script_uuid: 脚本uuid + :type script_uuid: str + :param name: 脚本名称 + :type name: str + :param type: 脚本类型 SHELL:shell脚本 PYTHON:python脚本 BAT:bat脚本 + :type type: str + :param gmt_created: 创建时间 + :type gmt_created: int + :param description: 脚本描述: 根据X-Language(X-Language) 进行国际化 + :type description: str + :param properties: + :type properties: :class:`huaweicloudsdkcoc.v1.PublicScriptPropertiesModel` + """ + + + + self._id = None + self._script_uuid = None + self._name = None + self._type = None + self._gmt_created = None + self._description = None + self._properties = None + self.discriminator = None + + self.id = id + self.script_uuid = script_uuid + self.name = name + self.type = type + self.gmt_created = gmt_created + self.description = description + self.properties = properties + + @property + def id(self): + """Gets the id of this PublicScriptListModel. + + 脚本自增id + + :return: The id of this PublicScriptListModel. + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this PublicScriptListModel. + + 脚本自增id + + :param id: The id of this PublicScriptListModel. + :type id: int + """ + self._id = id + + @property + def script_uuid(self): + """Gets the script_uuid of this PublicScriptListModel. + + 脚本uuid + + :return: The script_uuid of this PublicScriptListModel. + :rtype: str + """ + return self._script_uuid + + @script_uuid.setter + def script_uuid(self, script_uuid): + """Sets the script_uuid of this PublicScriptListModel. + + 脚本uuid + + :param script_uuid: The script_uuid of this PublicScriptListModel. + :type script_uuid: str + """ + self._script_uuid = script_uuid + + @property + def name(self): + """Gets the name of this PublicScriptListModel. + + 脚本名称 + + :return: The name of this PublicScriptListModel. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this PublicScriptListModel. + + 脚本名称 + + :param name: The name of this PublicScriptListModel. + :type name: str + """ + self._name = name + + @property + def type(self): + """Gets the type of this PublicScriptListModel. + + 脚本类型 SHELL:shell脚本 PYTHON:python脚本 BAT:bat脚本 + + :return: The type of this PublicScriptListModel. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this PublicScriptListModel. + + 脚本类型 SHELL:shell脚本 PYTHON:python脚本 BAT:bat脚本 + + :param type: The type of this PublicScriptListModel. + :type type: str + """ + self._type = type + + @property + def gmt_created(self): + """Gets the gmt_created of this PublicScriptListModel. + + 创建时间 + + :return: The gmt_created of this PublicScriptListModel. + :rtype: int + """ + return self._gmt_created + + @gmt_created.setter + def gmt_created(self, gmt_created): + """Sets the gmt_created of this PublicScriptListModel. + + 创建时间 + + :param gmt_created: The gmt_created of this PublicScriptListModel. + :type gmt_created: int + """ + self._gmt_created = gmt_created + + @property + def description(self): + """Gets the description of this PublicScriptListModel. + + 脚本描述: 根据X-Language(X-Language) 进行国际化 + + :return: The description of this PublicScriptListModel. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this PublicScriptListModel. + + 脚本描述: 根据X-Language(X-Language) 进行国际化 + + :param description: The description of this PublicScriptListModel. + :type description: str + """ + self._description = description + + @property + def properties(self): + """Gets the properties of this PublicScriptListModel. + + :return: The properties of this PublicScriptListModel. + :rtype: :class:`huaweicloudsdkcoc.v1.PublicScriptPropertiesModel` + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this PublicScriptListModel. + + :param properties: The properties of this PublicScriptListModel. + :type properties: :class:`huaweicloudsdkcoc.v1.PublicScriptPropertiesModel` + """ + 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, PublicScriptListModel): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/public_script_list_page.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/public_script_list_page.py new file mode 100644 index 0000000000..56fcc2ee38 --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/public_script_list_page.py @@ -0,0 +1,142 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class PublicScriptListPage: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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': 'int', + 'data': 'list[PublicScriptListModel]' + } + + attribute_map = { + 'total': 'total', + 'data': 'data' + } + + def __init__(self, total=None, data=None): + """PublicScriptListPage + + The model defined in huaweicloud sdk + + :param total: 总条数 + :type total: int + :param data: 单页数据列表 + :type data: list[:class:`huaweicloudsdkcoc.v1.PublicScriptListModel`] + """ + + + + self._total = None + self._data = None + self.discriminator = None + + self.total = total + self.data = data + + @property + def total(self): + """Gets the total of this PublicScriptListPage. + + 总条数 + + :return: The total of this PublicScriptListPage. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """Sets the total of this PublicScriptListPage. + + 总条数 + + :param total: The total of this PublicScriptListPage. + :type total: int + """ + self._total = total + + @property + def data(self): + """Gets the data of this PublicScriptListPage. + + 单页数据列表 + + :return: The data of this PublicScriptListPage. + :rtype: list[:class:`huaweicloudsdkcoc.v1.PublicScriptListModel`] + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this PublicScriptListPage. + + 单页数据列表 + + :param data: The data of this PublicScriptListPage. + :type data: list[:class:`huaweicloudsdkcoc.v1.PublicScriptListModel`] + """ + 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, PublicScriptListPage): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/public_script_properties_model.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/public_script_properties_model.py new file mode 100644 index 0000000000..ce0ef671f2 --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/public_script_properties_model.py @@ -0,0 +1,142 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class PublicScriptPropertiesModel: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'risk_level': 'str', + 'version': 'str' + } + + attribute_map = { + 'risk_level': 'risk_level', + 'version': 'version' + } + + def __init__(self, risk_level=None, version=None): + """PublicScriptPropertiesModel + + The model defined in huaweicloud sdk + + :param risk_level: 风险等级 LOW:低风险 MEDIUM:中风险 HIGH:高风险 + :type risk_level: str + :param version: 脚本版本号 + :type version: str + """ + + + + self._risk_level = None + self._version = None + self.discriminator = None + + self.risk_level = risk_level + self.version = version + + @property + def risk_level(self): + """Gets the risk_level of this PublicScriptPropertiesModel. + + 风险等级 LOW:低风险 MEDIUM:中风险 HIGH:高风险 + + :return: The risk_level of this PublicScriptPropertiesModel. + :rtype: str + """ + return self._risk_level + + @risk_level.setter + def risk_level(self, risk_level): + """Sets the risk_level of this PublicScriptPropertiesModel. + + 风险等级 LOW:低风险 MEDIUM:中风险 HIGH:高风险 + + :param risk_level: The risk_level of this PublicScriptPropertiesModel. + :type risk_level: str + """ + self._risk_level = risk_level + + @property + def version(self): + """Gets the version of this PublicScriptPropertiesModel. + + 脚本版本号 + + :return: The version of this PublicScriptPropertiesModel. + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this PublicScriptPropertiesModel. + + 脚本版本号 + + :param version: The version of this PublicScriptPropertiesModel. + :type version: str + """ + self._version = version + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PublicScriptPropertiesModel): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/report_custom_event_request_body.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/report_custom_event_request_body.py new file mode 100644 index 0000000000..0aea20f254 --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/report_custom_event_request_body.py @@ -0,0 +1,485 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ReportCustomEventRequestBody: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'alarm_id': 'str', + 'alarm_name': 'str', + 'alarm_level': 'str', + 'time': 'int', + 'name_space': 'str', + 'region_id': 'str', + 'application_id': 'str', + 'resource_name': 'str', + 'resource_id': 'str', + 'alarm_desc': 'str', + 'url': 'str', + 'alarm_status': 'str', + 'alarm_source': 'str', + 'additional': 'object' + } + + attribute_map = { + 'alarm_id': 'alarmId', + 'alarm_name': 'alarmName', + 'alarm_level': 'alarmLevel', + 'time': 'time', + 'name_space': 'nameSpace', + 'region_id': 'regionId', + 'application_id': 'applicationId', + 'resource_name': 'resourceName', + 'resource_id': 'resourceId', + 'alarm_desc': 'alarmDesc', + 'url': 'URL', + 'alarm_status': 'alarmStatus', + 'alarm_source': 'alarmSource', + 'additional': 'additional' + } + + def __init__(self, alarm_id=None, alarm_name=None, alarm_level=None, time=None, name_space=None, region_id=None, application_id=None, resource_name=None, resource_id=None, alarm_desc=None, url=None, alarm_status=None, alarm_source=None, additional=None): + """ReportCustomEventRequestBody + + The model defined in huaweicloud sdk + + :param alarm_id: 告警id + :type alarm_id: str + :param alarm_name: 告警名称 + :type alarm_name: str + :param alarm_level: 告警级别。取值为Critical(紧急), Major(重要), Minor(次要), Info(提示) + :type alarm_level: str + :param time: 告警发生时间 + :type time: int + :param name_space: 告警发生时间 + :type name_space: str + :param region_id: 告警发生区域 + :type region_id: str + :param application_id: 应用id + :type application_id: str + :param resource_name: 资源名称 + :type resource_name: str + :param resource_id: 资源ID + :type resource_id: str + :param alarm_desc: 告警描述 + :type alarm_desc: str + :param url: 原始告警URL + :type url: str + :param alarm_status: 告警状态。一般取值为alarm(告警中)和ok(已恢复) + :type alarm_status: str + :param alarm_source: 告警源 + :type alarm_source: str + :param additional: 告警附加信息 + :type additional: object + """ + + + + self._alarm_id = None + self._alarm_name = None + self._alarm_level = None + self._time = None + self._name_space = None + self._region_id = None + self._application_id = None + self._resource_name = None + self._resource_id = None + self._alarm_desc = None + self._url = None + self._alarm_status = None + self._alarm_source = None + self._additional = None + self.discriminator = None + + self.alarm_id = alarm_id + self.alarm_name = alarm_name + self.alarm_level = alarm_level + self.time = time + self.name_space = name_space + if region_id is not None: + self.region_id = region_id + if application_id is not None: + self.application_id = application_id + if resource_name is not None: + self.resource_name = resource_name + if resource_id is not None: + self.resource_id = resource_id + self.alarm_desc = alarm_desc + if url is not None: + self.url = url + if alarm_status is not None: + self.alarm_status = alarm_status + self.alarm_source = alarm_source + if additional is not None: + self.additional = additional + + @property + def alarm_id(self): + """Gets the alarm_id of this ReportCustomEventRequestBody. + + 告警id + + :return: The alarm_id of this ReportCustomEventRequestBody. + :rtype: str + """ + return self._alarm_id + + @alarm_id.setter + def alarm_id(self, alarm_id): + """Sets the alarm_id of this ReportCustomEventRequestBody. + + 告警id + + :param alarm_id: The alarm_id of this ReportCustomEventRequestBody. + :type alarm_id: str + """ + self._alarm_id = alarm_id + + @property + def alarm_name(self): + """Gets the alarm_name of this ReportCustomEventRequestBody. + + 告警名称 + + :return: The alarm_name of this ReportCustomEventRequestBody. + :rtype: str + """ + return self._alarm_name + + @alarm_name.setter + def alarm_name(self, alarm_name): + """Sets the alarm_name of this ReportCustomEventRequestBody. + + 告警名称 + + :param alarm_name: The alarm_name of this ReportCustomEventRequestBody. + :type alarm_name: str + """ + self._alarm_name = alarm_name + + @property + def alarm_level(self): + """Gets the alarm_level of this ReportCustomEventRequestBody. + + 告警级别。取值为Critical(紧急), Major(重要), Minor(次要), Info(提示) + + :return: The alarm_level of this ReportCustomEventRequestBody. + :rtype: str + """ + return self._alarm_level + + @alarm_level.setter + def alarm_level(self, alarm_level): + """Sets the alarm_level of this ReportCustomEventRequestBody. + + 告警级别。取值为Critical(紧急), Major(重要), Minor(次要), Info(提示) + + :param alarm_level: The alarm_level of this ReportCustomEventRequestBody. + :type alarm_level: str + """ + self._alarm_level = alarm_level + + @property + def time(self): + """Gets the time of this ReportCustomEventRequestBody. + + 告警发生时间 + + :return: The time of this ReportCustomEventRequestBody. + :rtype: int + """ + return self._time + + @time.setter + def time(self, time): + """Sets the time of this ReportCustomEventRequestBody. + + 告警发生时间 + + :param time: The time of this ReportCustomEventRequestBody. + :type time: int + """ + self._time = time + + @property + def name_space(self): + """Gets the name_space of this ReportCustomEventRequestBody. + + 告警发生时间 + + :return: The name_space of this ReportCustomEventRequestBody. + :rtype: str + """ + return self._name_space + + @name_space.setter + def name_space(self, name_space): + """Sets the name_space of this ReportCustomEventRequestBody. + + 告警发生时间 + + :param name_space: The name_space of this ReportCustomEventRequestBody. + :type name_space: str + """ + self._name_space = name_space + + @property + def region_id(self): + """Gets the region_id of this ReportCustomEventRequestBody. + + 告警发生区域 + + :return: The region_id of this ReportCustomEventRequestBody. + :rtype: str + """ + return self._region_id + + @region_id.setter + def region_id(self, region_id): + """Sets the region_id of this ReportCustomEventRequestBody. + + 告警发生区域 + + :param region_id: The region_id of this ReportCustomEventRequestBody. + :type region_id: str + """ + self._region_id = region_id + + @property + def application_id(self): + """Gets the application_id of this ReportCustomEventRequestBody. + + 应用id + + :return: The application_id of this ReportCustomEventRequestBody. + :rtype: str + """ + return self._application_id + + @application_id.setter + def application_id(self, application_id): + """Sets the application_id of this ReportCustomEventRequestBody. + + 应用id + + :param application_id: The application_id of this ReportCustomEventRequestBody. + :type application_id: str + """ + self._application_id = application_id + + @property + def resource_name(self): + """Gets the resource_name of this ReportCustomEventRequestBody. + + 资源名称 + + :return: The resource_name of this ReportCustomEventRequestBody. + :rtype: str + """ + return self._resource_name + + @resource_name.setter + def resource_name(self, resource_name): + """Sets the resource_name of this ReportCustomEventRequestBody. + + 资源名称 + + :param resource_name: The resource_name of this ReportCustomEventRequestBody. + :type resource_name: str + """ + self._resource_name = resource_name + + @property + def resource_id(self): + """Gets the resource_id of this ReportCustomEventRequestBody. + + 资源ID + + :return: The resource_id of this ReportCustomEventRequestBody. + :rtype: str + """ + return self._resource_id + + @resource_id.setter + def resource_id(self, resource_id): + """Sets the resource_id of this ReportCustomEventRequestBody. + + 资源ID + + :param resource_id: The resource_id of this ReportCustomEventRequestBody. + :type resource_id: str + """ + self._resource_id = resource_id + + @property + def alarm_desc(self): + """Gets the alarm_desc of this ReportCustomEventRequestBody. + + 告警描述 + + :return: The alarm_desc of this ReportCustomEventRequestBody. + :rtype: str + """ + return self._alarm_desc + + @alarm_desc.setter + def alarm_desc(self, alarm_desc): + """Sets the alarm_desc of this ReportCustomEventRequestBody. + + 告警描述 + + :param alarm_desc: The alarm_desc of this ReportCustomEventRequestBody. + :type alarm_desc: str + """ + self._alarm_desc = alarm_desc + + @property + def url(self): + """Gets the url of this ReportCustomEventRequestBody. + + 原始告警URL + + :return: The url of this ReportCustomEventRequestBody. + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """Sets the url of this ReportCustomEventRequestBody. + + 原始告警URL + + :param url: The url of this ReportCustomEventRequestBody. + :type url: str + """ + self._url = url + + @property + def alarm_status(self): + """Gets the alarm_status of this ReportCustomEventRequestBody. + + 告警状态。一般取值为alarm(告警中)和ok(已恢复) + + :return: The alarm_status of this ReportCustomEventRequestBody. + :rtype: str + """ + return self._alarm_status + + @alarm_status.setter + def alarm_status(self, alarm_status): + """Sets the alarm_status of this ReportCustomEventRequestBody. + + 告警状态。一般取值为alarm(告警中)和ok(已恢复) + + :param alarm_status: The alarm_status of this ReportCustomEventRequestBody. + :type alarm_status: str + """ + self._alarm_status = alarm_status + + @property + def alarm_source(self): + """Gets the alarm_source of this ReportCustomEventRequestBody. + + 告警源 + + :return: The alarm_source of this ReportCustomEventRequestBody. + :rtype: str + """ + return self._alarm_source + + @alarm_source.setter + def alarm_source(self, alarm_source): + """Sets the alarm_source of this ReportCustomEventRequestBody. + + 告警源 + + :param alarm_source: The alarm_source of this ReportCustomEventRequestBody. + :type alarm_source: str + """ + self._alarm_source = alarm_source + + @property + def additional(self): + """Gets the additional of this ReportCustomEventRequestBody. + + 告警附加信息 + + :return: The additional of this ReportCustomEventRequestBody. + :rtype: object + """ + return self._additional + + @additional.setter + def additional(self, additional): + """Sets the additional of this ReportCustomEventRequestBody. + + 告警附加信息 + + :param additional: The additional of this ReportCustomEventRequestBody. + :type additional: object + """ + self._additional = additional + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ReportCustomEventRequestBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/resource_instance.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/resource_instance.py new file mode 100644 index 0000000000..6f9c3d3f4b --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/resource_instance.py @@ -0,0 +1,310 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ResourceInstance: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'provider': 'str', + 'region_id': 'str', + 'type': 'str', + 'custom_attributes': 'list[Customttribute]', + 'agent_sn': 'str', + 'agent_status': 'str', + 'properties': 'ResourceInstanceProp' + } + + attribute_map = { + 'resource_id': 'resource_id', + 'provider': 'provider', + 'region_id': 'region_id', + 'type': 'type', + 'custom_attributes': 'custom_attributes', + 'agent_sn': 'agent_sn', + 'agent_status': 'agent_status', + 'properties': 'properties' + } + + def __init__(self, resource_id=None, provider=None, region_id=None, type=None, custom_attributes=None, agent_sn=None, agent_status=None, properties=None): + """ResourceInstance + + The model defined in huaweicloud sdk + + :param resource_id: 实例唯一id + :type resource_id: str + :param provider: 资源提供者:ECS。单个脚本工单, 每个实例的provider是一致的 + :type provider: str + :param region_id: 机器所属region的ID + :type region_id: str + :param type: 资源提供者下资源类型,不传默认为CLOUDSERVER CLOUDSERVER:CLOUDSERVER类型 + :type type: str + :param custom_attributes: 支持用户自定义5个key_value形式的属性。 约束条件: - key值长度为20 - value长度为50 - map长度最大为5 + :type custom_attributes: list[:class:`huaweicloudsdkcoc.v1.Customttribute`] + :param agent_sn: agent纳管id。该参数即将废弃,请勿使用。 + :type agent_sn: str + :param agent_status: agent纳管状态。该参数即将废弃,请勿使用。 + :type agent_status: str + :param properties: + :type properties: :class:`huaweicloudsdkcoc.v1.ResourceInstanceProp` + """ + + + + self._resource_id = None + self._provider = None + self._region_id = None + self._type = None + self._custom_attributes = None + self._agent_sn = None + self._agent_status = None + self._properties = None + self.discriminator = None + + self.resource_id = resource_id + self.provider = provider + self.region_id = region_id + self.type = type + if custom_attributes is not None: + self.custom_attributes = custom_attributes + if agent_sn is not None: + self.agent_sn = agent_sn + if agent_status is not None: + self.agent_status = agent_status + if properties is not None: + self.properties = properties + + @property + def resource_id(self): + """Gets the resource_id of this ResourceInstance. + + 实例唯一id + + :return: The resource_id of this ResourceInstance. + :rtype: str + """ + return self._resource_id + + @resource_id.setter + def resource_id(self, resource_id): + """Sets the resource_id of this ResourceInstance. + + 实例唯一id + + :param resource_id: The resource_id of this ResourceInstance. + :type resource_id: str + """ + self._resource_id = resource_id + + @property + def provider(self): + """Gets the provider of this ResourceInstance. + + 资源提供者:ECS。单个脚本工单, 每个实例的provider是一致的 + + :return: The provider of this ResourceInstance. + :rtype: str + """ + return self._provider + + @provider.setter + def provider(self, provider): + """Sets the provider of this ResourceInstance. + + 资源提供者:ECS。单个脚本工单, 每个实例的provider是一致的 + + :param provider: The provider of this ResourceInstance. + :type provider: str + """ + self._provider = provider + + @property + def region_id(self): + """Gets the region_id of this ResourceInstance. + + 机器所属region的ID + + :return: The region_id of this ResourceInstance. + :rtype: str + """ + return self._region_id + + @region_id.setter + def region_id(self, region_id): + """Sets the region_id of this ResourceInstance. + + 机器所属region的ID + + :param region_id: The region_id of this ResourceInstance. + :type region_id: str + """ + self._region_id = region_id + + @property + def type(self): + """Gets the type of this ResourceInstance. + + 资源提供者下资源类型,不传默认为CLOUDSERVER CLOUDSERVER:CLOUDSERVER类型 + + :return: The type of this ResourceInstance. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this ResourceInstance. + + 资源提供者下资源类型,不传默认为CLOUDSERVER CLOUDSERVER:CLOUDSERVER类型 + + :param type: The type of this ResourceInstance. + :type type: str + """ + self._type = type + + @property + def custom_attributes(self): + """Gets the custom_attributes of this ResourceInstance. + + 支持用户自定义5个key_value形式的属性。 约束条件: - key值长度为20 - value长度为50 - map长度最大为5 + + :return: The custom_attributes of this ResourceInstance. + :rtype: list[:class:`huaweicloudsdkcoc.v1.Customttribute`] + """ + return self._custom_attributes + + @custom_attributes.setter + def custom_attributes(self, custom_attributes): + """Sets the custom_attributes of this ResourceInstance. + + 支持用户自定义5个key_value形式的属性。 约束条件: - key值长度为20 - value长度为50 - map长度最大为5 + + :param custom_attributes: The custom_attributes of this ResourceInstance. + :type custom_attributes: list[:class:`huaweicloudsdkcoc.v1.Customttribute`] + """ + self._custom_attributes = custom_attributes + + @property + def agent_sn(self): + """Gets the agent_sn of this ResourceInstance. + + agent纳管id。该参数即将废弃,请勿使用。 + + :return: The agent_sn of this ResourceInstance. + :rtype: str + """ + return self._agent_sn + + @agent_sn.setter + def agent_sn(self, agent_sn): + """Sets the agent_sn of this ResourceInstance. + + agent纳管id。该参数即将废弃,请勿使用。 + + :param agent_sn: The agent_sn of this ResourceInstance. + :type agent_sn: str + """ + self._agent_sn = agent_sn + + @property + def agent_status(self): + """Gets the agent_status of this ResourceInstance. + + agent纳管状态。该参数即将废弃,请勿使用。 + + :return: The agent_status of this ResourceInstance. + :rtype: str + """ + return self._agent_status + + @agent_status.setter + def agent_status(self, agent_status): + """Sets the agent_status of this ResourceInstance. + + agent纳管状态。该参数即将废弃,请勿使用。 + + :param agent_status: The agent_status of this ResourceInstance. + :type agent_status: str + """ + self._agent_status = agent_status + + @property + def properties(self): + """Gets the properties of this ResourceInstance. + + :return: The properties of this ResourceInstance. + :rtype: :class:`huaweicloudsdkcoc.v1.ResourceInstanceProp` + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this ResourceInstance. + + :param properties: The properties of this ResourceInstance. + :type properties: :class:`huaweicloudsdkcoc.v1.ResourceInstanceProp` + """ + 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, ResourceInstance): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/resource_instance_prop.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/resource_instance_prop.py new file mode 100644 index 0000000000..7cbf08499c --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/resource_instance_prop.py @@ -0,0 +1,314 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ResourceInstanceProp: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'fixed_ip': 'str', + 'floating_ip': 'str', + 'region_id': 'str', + 'zone_id': 'str', + 'application': 'str', + 'group': 'str', + 'project_id': 'str' + } + + attribute_map = { + 'host_name': 'host_name', + 'fixed_ip': 'fixed_ip', + 'floating_ip': 'floating_ip', + 'region_id': 'region_id', + 'zone_id': 'zone_id', + 'application': 'application', + 'group': 'group', + 'project_id': 'project_id' + } + + def __init__(self, host_name=None, fixed_ip=None, floating_ip=None, region_id=None, zone_id=None, application=None, group=None, project_id=None): + """ResourceInstanceProp + + The model defined in huaweicloud sdk + + :param host_name: 主机名 未校验:长度 + :type host_name: str + :param fixed_ip: 内网ip 未校验: 格式,长度 + :type fixed_ip: str + :param floating_ip: 弹性公网ip 未校验: 格式,长度 + :type floating_ip: str + :param region_id: 区域 未校验: 长度 + :type region_id: str + :param zone_id: 可用区 + :type zone_id: str + :param application: CMDB应用,CMDB应用视图才有值。类似管理面的云服务 + :type application: str + :param group: CMDB分组,CMDB应用视图才有值。类似管理面的schema + :type group: str + :param project_id: 实例的 project_id 需要消费,建议必填 未校验长度 + :type project_id: str + """ + + + + self._host_name = None + self._fixed_ip = None + self._floating_ip = None + self._region_id = None + self._zone_id = None + self._application = None + self._group = None + self._project_id = None + self.discriminator = None + + self.host_name = host_name + self.fixed_ip = fixed_ip + if floating_ip is not None: + self.floating_ip = floating_ip + self.region_id = region_id + self.zone_id = zone_id + if application is not None: + self.application = application + if group is not None: + self.group = group + if project_id is not None: + self.project_id = project_id + + @property + def host_name(self): + """Gets the host_name of this ResourceInstanceProp. + + 主机名 未校验:长度 + + :return: The host_name of this ResourceInstanceProp. + :rtype: str + """ + return self._host_name + + @host_name.setter + def host_name(self, host_name): + """Sets the host_name of this ResourceInstanceProp. + + 主机名 未校验:长度 + + :param host_name: The host_name of this ResourceInstanceProp. + :type host_name: str + """ + self._host_name = host_name + + @property + def fixed_ip(self): + """Gets the fixed_ip of this ResourceInstanceProp. + + 内网ip 未校验: 格式,长度 + + :return: The fixed_ip of this ResourceInstanceProp. + :rtype: str + """ + return self._fixed_ip + + @fixed_ip.setter + def fixed_ip(self, fixed_ip): + """Sets the fixed_ip of this ResourceInstanceProp. + + 内网ip 未校验: 格式,长度 + + :param fixed_ip: The fixed_ip of this ResourceInstanceProp. + :type fixed_ip: str + """ + self._fixed_ip = fixed_ip + + @property + def floating_ip(self): + """Gets the floating_ip of this ResourceInstanceProp. + + 弹性公网ip 未校验: 格式,长度 + + :return: The floating_ip of this ResourceInstanceProp. + :rtype: str + """ + return self._floating_ip + + @floating_ip.setter + def floating_ip(self, floating_ip): + """Sets the floating_ip of this ResourceInstanceProp. + + 弹性公网ip 未校验: 格式,长度 + + :param floating_ip: The floating_ip of this ResourceInstanceProp. + :type floating_ip: str + """ + self._floating_ip = floating_ip + + @property + def region_id(self): + """Gets the region_id of this ResourceInstanceProp. + + 区域 未校验: 长度 + + :return: The region_id of this ResourceInstanceProp. + :rtype: str + """ + return self._region_id + + @region_id.setter + def region_id(self, region_id): + """Sets the region_id of this ResourceInstanceProp. + + 区域 未校验: 长度 + + :param region_id: The region_id of this ResourceInstanceProp. + :type region_id: str + """ + self._region_id = region_id + + @property + def zone_id(self): + """Gets the zone_id of this ResourceInstanceProp. + + 可用区 + + :return: The zone_id of this ResourceInstanceProp. + :rtype: str + """ + return self._zone_id + + @zone_id.setter + def zone_id(self, zone_id): + """Sets the zone_id of this ResourceInstanceProp. + + 可用区 + + :param zone_id: The zone_id of this ResourceInstanceProp. + :type zone_id: str + """ + self._zone_id = zone_id + + @property + def application(self): + """Gets the application of this ResourceInstanceProp. + + CMDB应用,CMDB应用视图才有值。类似管理面的云服务 + + :return: The application of this ResourceInstanceProp. + :rtype: str + """ + return self._application + + @application.setter + def application(self, application): + """Sets the application of this ResourceInstanceProp. + + CMDB应用,CMDB应用视图才有值。类似管理面的云服务 + + :param application: The application of this ResourceInstanceProp. + :type application: str + """ + self._application = application + + @property + def group(self): + """Gets the group of this ResourceInstanceProp. + + CMDB分组,CMDB应用视图才有值。类似管理面的schema + + :return: The group of this ResourceInstanceProp. + :rtype: str + """ + return self._group + + @group.setter + def group(self, group): + """Sets the group of this ResourceInstanceProp. + + CMDB分组,CMDB应用视图才有值。类似管理面的schema + + :param group: The group of this ResourceInstanceProp. + :type group: str + """ + self._group = group + + @property + def project_id(self): + """Gets the project_id of this ResourceInstanceProp. + + 实例的 project_id 需要消费,建议必填 未校验长度 + + :return: The project_id of this ResourceInstanceProp. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this ResourceInstanceProp. + + 实例的 project_id 需要消费,建议必填 未校验长度 + + :param project_id: The project_id of this ResourceInstanceProp. + :type project_id: str + """ + self._project_id = project_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, ResourceInstanceProp): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/reviewer_info.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/reviewer_info.py new file mode 100644 index 0000000000..17562d0a9a --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/reviewer_info.py @@ -0,0 +1,142 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ReviewerInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'reviewer_name': 'str', + 'reviewer_id': 'str' + } + + attribute_map = { + 'reviewer_name': 'reviewer_name', + 'reviewer_id': 'reviewer_id' + } + + def __init__(self, reviewer_name=None, reviewer_id=None): + """ReviewerInfo + + The model defined in huaweicloud sdk + + :param reviewer_name: 审批人名称(IAM用户名) + :type reviewer_name: str + :param reviewer_id: 审批人ID(IAM用户Id) + :type reviewer_id: str + """ + + + + self._reviewer_name = None + self._reviewer_id = None + self.discriminator = None + + self.reviewer_name = reviewer_name + self.reviewer_id = reviewer_id + + @property + def reviewer_name(self): + """Gets the reviewer_name of this ReviewerInfo. + + 审批人名称(IAM用户名) + + :return: The reviewer_name of this ReviewerInfo. + :rtype: str + """ + return self._reviewer_name + + @reviewer_name.setter + def reviewer_name(self, reviewer_name): + """Sets the reviewer_name of this ReviewerInfo. + + 审批人名称(IAM用户名) + + :param reviewer_name: The reviewer_name of this ReviewerInfo. + :type reviewer_name: str + """ + self._reviewer_name = reviewer_name + + @property + def reviewer_id(self): + """Gets the reviewer_id of this ReviewerInfo. + + 审批人ID(IAM用户Id) + + :return: The reviewer_id of this ReviewerInfo. + :rtype: str + """ + return self._reviewer_id + + @reviewer_id.setter + def reviewer_id(self, reviewer_id): + """Sets the reviewer_id of this ReviewerInfo. + + 审批人ID(IAM用户Id) + + :param reviewer_id: The reviewer_id of this ReviewerInfo. + :type reviewer_id: str + """ + self._reviewer_id = reviewer_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, ReviewerInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/schedule_group_info.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/schedule_group_info.py new file mode 100644 index 0000000000..b3dc8dcdcc --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/schedule_group_info.py @@ -0,0 +1,142 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ScheduleGroupInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'role_id': 'str', + 'scene_id': 'str' + } + + attribute_map = { + 'role_id': 'role_id', + 'scene_id': 'scene_id' + } + + def __init__(self, role_id=None, scene_id=None): + """ScheduleGroupInfo + + The model defined in huaweicloud sdk + + :param role_id: 角色id + :type role_id: str + :param scene_id: 场景id + :type scene_id: str + """ + + + + self._role_id = None + self._scene_id = None + self.discriminator = None + + self.role_id = role_id + self.scene_id = scene_id + + @property + def role_id(self): + """Gets the role_id of this ScheduleGroupInfo. + + 角色id + + :return: The role_id of this ScheduleGroupInfo. + :rtype: str + """ + return self._role_id + + @role_id.setter + def role_id(self, role_id): + """Sets the role_id of this ScheduleGroupInfo. + + 角色id + + :param role_id: The role_id of this ScheduleGroupInfo. + :type role_id: str + """ + self._role_id = role_id + + @property + def scene_id(self): + """Gets the scene_id of this ScheduleGroupInfo. + + 场景id + + :return: The scene_id of this ScheduleGroupInfo. + :rtype: str + """ + return self._scene_id + + @scene_id.setter + def scene_id(self, scene_id): + """Sets the scene_id of this ScheduleGroupInfo. + + 场景id + + :param scene_id: The scene_id of this ScheduleGroupInfo. + :type scene_id: str + """ + self._scene_id = scene_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, ScheduleGroupInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/script_detail_model.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/script_detail_model.py new file mode 100644 index 0000000000..de591985b0 --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/script_detail_model.py @@ -0,0 +1,507 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ScriptDetailModel: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'script_uuid': 'str', + 'name': 'str', + 'version': 'str', + 'description': 'str', + 'type': 'str', + 'content': 'str', + 'script_params': 'list[ScriptParamDefine]', + 'status': 'str', + 'gmt_created': 'int', + 'gmt_modified': 'int', + 'creator': 'str', + 'creator_id': 'str', + 'operator': 'str', + 'properties': 'ScriptPropertiesModel', + 'enterprise_project_id': 'str' + } + + attribute_map = { + 'script_uuid': 'script_uuid', + 'name': 'name', + 'version': 'version', + 'description': 'description', + 'type': 'type', + 'content': 'content', + 'script_params': 'script_params', + 'status': 'status', + 'gmt_created': 'gmt_created', + 'gmt_modified': 'gmt_modified', + 'creator': 'creator', + 'creator_id': 'creator_id', + 'operator': 'operator', + 'properties': 'properties', + 'enterprise_project_id': 'enterprise_project_id' + } + + def __init__(self, script_uuid=None, name=None, version=None, description=None, type=None, content=None, script_params=None, status=None, gmt_created=None, gmt_modified=None, creator=None, creator_id=None, operator=None, properties=None, enterprise_project_id=None): + """ScriptDetailModel + + The model defined in huaweicloud sdk + + :param script_uuid: 脚本uuid + :type script_uuid: str + :param name: 脚本名称 + :type name: str + :param version: 脚本版本号 约束条件 后期废除,不建议使用 + :type version: str + :param description: 脚本描述 + :type description: str + :param type: 脚本类型 SHELL:shell脚本, PYTHON:Python脚本, BAT:Bat脚本, + :type type: str + :param content: 脚本内容 + :type content: str + :param script_params: 脚本入参 + :type script_params: list[:class:`huaweicloudsdkcoc.v1.ScriptParamDefine`] + :param status: 脚本状态 PENDING_APPROVE:待审批 APPROVED:正常(审批通过) REJECTED:驳回(审批人,驳回该脚本) + :type status: str + :param gmt_created: 创建时间 + :type gmt_created: int + :param gmt_modified: 修改时间 + :type gmt_modified: int + :param creator: 创建人 + :type creator: str + :param creator_id: 创建人Id + :type creator_id: str + :param operator: 修改人 + :type operator: str + :param properties: + :type properties: :class:`huaweicloudsdkcoc.v1.ScriptPropertiesModel` + :param enterprise_project_id: 企业项目id + :type enterprise_project_id: str + """ + + + + self._script_uuid = None + self._name = None + self._version = None + self._description = None + self._type = None + self._content = None + self._script_params = None + self._status = None + self._gmt_created = None + self._gmt_modified = None + self._creator = None + self._creator_id = None + self._operator = None + self._properties = None + self._enterprise_project_id = None + self.discriminator = None + + self.script_uuid = script_uuid + self.name = name + if version is not None: + self.version = version + self.description = description + self.type = type + self.content = content + if script_params is not None: + self.script_params = script_params + self.status = status + self.gmt_created = gmt_created + if gmt_modified is not None: + self.gmt_modified = gmt_modified + self.creator = creator + self.creator_id = creator_id + if operator is not None: + self.operator = operator + self.properties = properties + if enterprise_project_id is not None: + self.enterprise_project_id = enterprise_project_id + + @property + def script_uuid(self): + """Gets the script_uuid of this ScriptDetailModel. + + 脚本uuid + + :return: The script_uuid of this ScriptDetailModel. + :rtype: str + """ + return self._script_uuid + + @script_uuid.setter + def script_uuid(self, script_uuid): + """Sets the script_uuid of this ScriptDetailModel. + + 脚本uuid + + :param script_uuid: The script_uuid of this ScriptDetailModel. + :type script_uuid: str + """ + self._script_uuid = script_uuid + + @property + def name(self): + """Gets the name of this ScriptDetailModel. + + 脚本名称 + + :return: The name of this ScriptDetailModel. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ScriptDetailModel. + + 脚本名称 + + :param name: The name of this ScriptDetailModel. + :type name: str + """ + self._name = name + + @property + def version(self): + """Gets the version of this ScriptDetailModel. + + 脚本版本号 约束条件 后期废除,不建议使用 + + :return: The version of this ScriptDetailModel. + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this ScriptDetailModel. + + 脚本版本号 约束条件 后期废除,不建议使用 + + :param version: The version of this ScriptDetailModel. + :type version: str + """ + self._version = version + + @property + def description(self): + """Gets the description of this ScriptDetailModel. + + 脚本描述 + + :return: The description of this ScriptDetailModel. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this ScriptDetailModel. + + 脚本描述 + + :param description: The description of this ScriptDetailModel. + :type description: str + """ + self._description = description + + @property + def type(self): + """Gets the type of this ScriptDetailModel. + + 脚本类型 SHELL:shell脚本, PYTHON:Python脚本, BAT:Bat脚本, + + :return: The type of this ScriptDetailModel. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this ScriptDetailModel. + + 脚本类型 SHELL:shell脚本, PYTHON:Python脚本, BAT:Bat脚本, + + :param type: The type of this ScriptDetailModel. + :type type: str + """ + self._type = type + + @property + def content(self): + """Gets the content of this ScriptDetailModel. + + 脚本内容 + + :return: The content of this ScriptDetailModel. + :rtype: str + """ + return self._content + + @content.setter + def content(self, content): + """Sets the content of this ScriptDetailModel. + + 脚本内容 + + :param content: The content of this ScriptDetailModel. + :type content: str + """ + self._content = content + + @property + def script_params(self): + """Gets the script_params of this ScriptDetailModel. + + 脚本入参 + + :return: The script_params of this ScriptDetailModel. + :rtype: list[:class:`huaweicloudsdkcoc.v1.ScriptParamDefine`] + """ + return self._script_params + + @script_params.setter + def script_params(self, script_params): + """Sets the script_params of this ScriptDetailModel. + + 脚本入参 + + :param script_params: The script_params of this ScriptDetailModel. + :type script_params: list[:class:`huaweicloudsdkcoc.v1.ScriptParamDefine`] + """ + self._script_params = script_params + + @property + def status(self): + """Gets the status of this ScriptDetailModel. + + 脚本状态 PENDING_APPROVE:待审批 APPROVED:正常(审批通过) REJECTED:驳回(审批人,驳回该脚本) + + :return: The status of this ScriptDetailModel. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ScriptDetailModel. + + 脚本状态 PENDING_APPROVE:待审批 APPROVED:正常(审批通过) REJECTED:驳回(审批人,驳回该脚本) + + :param status: The status of this ScriptDetailModel. + :type status: str + """ + self._status = status + + @property + def gmt_created(self): + """Gets the gmt_created of this ScriptDetailModel. + + 创建时间 + + :return: The gmt_created of this ScriptDetailModel. + :rtype: int + """ + return self._gmt_created + + @gmt_created.setter + def gmt_created(self, gmt_created): + """Sets the gmt_created of this ScriptDetailModel. + + 创建时间 + + :param gmt_created: The gmt_created of this ScriptDetailModel. + :type gmt_created: int + """ + self._gmt_created = gmt_created + + @property + def gmt_modified(self): + """Gets the gmt_modified of this ScriptDetailModel. + + 修改时间 + + :return: The gmt_modified of this ScriptDetailModel. + :rtype: int + """ + return self._gmt_modified + + @gmt_modified.setter + def gmt_modified(self, gmt_modified): + """Sets the gmt_modified of this ScriptDetailModel. + + 修改时间 + + :param gmt_modified: The gmt_modified of this ScriptDetailModel. + :type gmt_modified: int + """ + self._gmt_modified = gmt_modified + + @property + def creator(self): + """Gets the creator of this ScriptDetailModel. + + 创建人 + + :return: The creator of this ScriptDetailModel. + :rtype: str + """ + return self._creator + + @creator.setter + def creator(self, creator): + """Sets the creator of this ScriptDetailModel. + + 创建人 + + :param creator: The creator of this ScriptDetailModel. + :type creator: str + """ + self._creator = creator + + @property + def creator_id(self): + """Gets the creator_id of this ScriptDetailModel. + + 创建人Id + + :return: The creator_id of this ScriptDetailModel. + :rtype: str + """ + return self._creator_id + + @creator_id.setter + def creator_id(self, creator_id): + """Sets the creator_id of this ScriptDetailModel. + + 创建人Id + + :param creator_id: The creator_id of this ScriptDetailModel. + :type creator_id: str + """ + self._creator_id = creator_id + + @property + def operator(self): + """Gets the operator of this ScriptDetailModel. + + 修改人 + + :return: The operator of this ScriptDetailModel. + :rtype: str + """ + return self._operator + + @operator.setter + def operator(self, operator): + """Sets the operator of this ScriptDetailModel. + + 修改人 + + :param operator: The operator of this ScriptDetailModel. + :type operator: str + """ + self._operator = operator + + @property + def properties(self): + """Gets the properties of this ScriptDetailModel. + + :return: The properties of this ScriptDetailModel. + :rtype: :class:`huaweicloudsdkcoc.v1.ScriptPropertiesModel` + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this ScriptDetailModel. + + :param properties: The properties of this ScriptDetailModel. + :type properties: :class:`huaweicloudsdkcoc.v1.ScriptPropertiesModel` + """ + self._properties = properties + + @property + def enterprise_project_id(self): + """Gets the enterprise_project_id of this ScriptDetailModel. + + 企业项目id + + :return: The enterprise_project_id of this ScriptDetailModel. + :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 ScriptDetailModel. + + 企业项目id + + :param enterprise_project_id: The enterprise_project_id of this ScriptDetailModel. + :type enterprise_project_id: str + """ + self._enterprise_project_id = enterprise_project_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, ScriptDetailModel): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/script_execute_input_param.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/script_execute_input_param.py new file mode 100644 index 0000000000..ca2e45a5c5 --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/script_execute_input_param.py @@ -0,0 +1,196 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ScriptExecuteInputParam: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'param_name': 'str', + 'param_value': 'str', + 'param_order': 'int', + 'param_refer': 'ScriptExecuteParamReference' + } + + attribute_map = { + 'param_name': 'param_name', + 'param_value': 'param_value', + 'param_order': 'param_order', + 'param_refer': 'param_refer' + } + + def __init__(self, param_name=None, param_value=None, param_order=None, param_refer=None): + """ScriptExecuteInputParam + + The model defined in huaweicloud sdk + + :param param_name: 脚本入参的名称,同一个脚本,参数名不能重复 + :type param_name: str + :param param_value: 脚本入参的值,默认必填。有引用参数(param_refer不为空)时,允许为空 + :type param_value: str + :param param_order: 该参数已废弃,传入该参数不会生效。 + :type param_order: int + :param param_refer: + :type param_refer: :class:`huaweicloudsdkcoc.v1.ScriptExecuteParamReference` + """ + + + + self._param_name = None + self._param_value = None + self._param_order = None + self._param_refer = None + self.discriminator = None + + self.param_name = param_name + self.param_value = param_value + if param_order is not None: + self.param_order = param_order + if param_refer is not None: + self.param_refer = param_refer + + @property + def param_name(self): + """Gets the param_name of this ScriptExecuteInputParam. + + 脚本入参的名称,同一个脚本,参数名不能重复 + + :return: The param_name of this ScriptExecuteInputParam. + :rtype: str + """ + return self._param_name + + @param_name.setter + def param_name(self, param_name): + """Sets the param_name of this ScriptExecuteInputParam. + + 脚本入参的名称,同一个脚本,参数名不能重复 + + :param param_name: The param_name of this ScriptExecuteInputParam. + :type param_name: str + """ + self._param_name = param_name + + @property + def param_value(self): + """Gets the param_value of this ScriptExecuteInputParam. + + 脚本入参的值,默认必填。有引用参数(param_refer不为空)时,允许为空 + + :return: The param_value of this ScriptExecuteInputParam. + :rtype: str + """ + return self._param_value + + @param_value.setter + def param_value(self, param_value): + """Sets the param_value of this ScriptExecuteInputParam. + + 脚本入参的值,默认必填。有引用参数(param_refer不为空)时,允许为空 + + :param param_value: The param_value of this ScriptExecuteInputParam. + :type param_value: str + """ + self._param_value = param_value + + @property + def param_order(self): + """Gets the param_order of this ScriptExecuteInputParam. + + 该参数已废弃,传入该参数不会生效。 + + :return: The param_order of this ScriptExecuteInputParam. + :rtype: int + """ + return self._param_order + + @param_order.setter + def param_order(self, param_order): + """Sets the param_order of this ScriptExecuteInputParam. + + 该参数已废弃,传入该参数不会生效。 + + :param param_order: The param_order of this ScriptExecuteInputParam. + :type param_order: int + """ + self._param_order = param_order + + @property + def param_refer(self): + """Gets the param_refer of this ScriptExecuteInputParam. + + :return: The param_refer of this ScriptExecuteInputParam. + :rtype: :class:`huaweicloudsdkcoc.v1.ScriptExecuteParamReference` + """ + return self._param_refer + + @param_refer.setter + def param_refer(self, param_refer): + """Sets the param_refer of this ScriptExecuteInputParam. + + :param param_refer: The param_refer of this ScriptExecuteInputParam. + :type param_refer: :class:`huaweicloudsdkcoc.v1.ScriptExecuteParamReference` + """ + self._param_refer = param_refer + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ScriptExecuteInputParam): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/script_execute_model.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/script_execute_model.py new file mode 100644 index 0000000000..080e151f3d --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/script_execute_model.py @@ -0,0 +1,138 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ScriptExecuteModel: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'execute_param': 'ScriptExecuteParam', + 'execute_batches': 'list[ExecuteInstancesBatchInfo]' + } + + attribute_map = { + 'execute_param': 'execute_param', + 'execute_batches': 'execute_batches' + } + + def __init__(self, execute_param=None, execute_batches=None): + """ScriptExecuteModel + + The model defined in huaweicloud sdk + + :param execute_param: + :type execute_param: :class:`huaweicloudsdkcoc.v1.ScriptExecuteParam` + :param execute_batches: 目标实例分批信息 + :type execute_batches: list[:class:`huaweicloudsdkcoc.v1.ExecuteInstancesBatchInfo`] + """ + + + + self._execute_param = None + self._execute_batches = None + self.discriminator = None + + self.execute_param = execute_param + self.execute_batches = execute_batches + + @property + def execute_param(self): + """Gets the execute_param of this ScriptExecuteModel. + + :return: The execute_param of this ScriptExecuteModel. + :rtype: :class:`huaweicloudsdkcoc.v1.ScriptExecuteParam` + """ + return self._execute_param + + @execute_param.setter + def execute_param(self, execute_param): + """Sets the execute_param of this ScriptExecuteModel. + + :param execute_param: The execute_param of this ScriptExecuteModel. + :type execute_param: :class:`huaweicloudsdkcoc.v1.ScriptExecuteParam` + """ + self._execute_param = execute_param + + @property + def execute_batches(self): + """Gets the execute_batches of this ScriptExecuteModel. + + 目标实例分批信息 + + :return: The execute_batches of this ScriptExecuteModel. + :rtype: list[:class:`huaweicloudsdkcoc.v1.ExecuteInstancesBatchInfo`] + """ + return self._execute_batches + + @execute_batches.setter + def execute_batches(self, execute_batches): + """Sets the execute_batches of this ScriptExecuteModel. + + 目标实例分批信息 + + :param execute_batches: The execute_batches of this ScriptExecuteModel. + :type execute_batches: list[:class:`huaweicloudsdkcoc.v1.ExecuteInstancesBatchInfo`] + """ + self._execute_batches = execute_batches + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ScriptExecuteModel): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/script_execute_param.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/script_execute_param.py new file mode 100644 index 0000000000..e08221d7bf --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/script_execute_param.py @@ -0,0 +1,228 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ScriptExecuteParam: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'resourceful': 'bool', + 'timeout': 'int', + 'success_rate': 'float', + 'execute_user': 'str', + 'script_params': 'list[ScriptExecuteInputParam]' + } + + attribute_map = { + 'resourceful': 'resourceful', + 'timeout': 'timeout', + 'success_rate': 'success_rate', + 'execute_user': 'execute_user', + 'script_params': 'script_params' + } + + def __init__(self, resourceful=None, timeout=None, success_rate=None, execute_user=None, script_params=None): + """ScriptExecuteParam + + The model defined in huaweicloud sdk + + :param resourceful: 是否资源受限,true表示不受限,false表示受限 + :type resourceful: bool + :param timeout: 超时时间,单位:秒,取值范围待定,5 < timeout < 1800 + :type timeout: int + :param success_rate: 成功率,支持小数点后一位 + :type success_rate: float + :param execute_user: 脚本执行用户,如:root + :type execute_user: str + :param script_params: 脚本入参列表 + :type script_params: list[:class:`huaweicloudsdkcoc.v1.ScriptExecuteInputParam`] + """ + + + + self._resourceful = None + self._timeout = None + self._success_rate = None + self._execute_user = None + self._script_params = None + self.discriminator = None + + if resourceful is not None: + self.resourceful = resourceful + self.timeout = timeout + self.success_rate = success_rate + self.execute_user = execute_user + if script_params is not None: + self.script_params = script_params + + @property + def resourceful(self): + """Gets the resourceful of this ScriptExecuteParam. + + 是否资源受限,true表示不受限,false表示受限 + + :return: The resourceful of this ScriptExecuteParam. + :rtype: bool + """ + return self._resourceful + + @resourceful.setter + def resourceful(self, resourceful): + """Sets the resourceful of this ScriptExecuteParam. + + 是否资源受限,true表示不受限,false表示受限 + + :param resourceful: The resourceful of this ScriptExecuteParam. + :type resourceful: bool + """ + self._resourceful = resourceful + + @property + def timeout(self): + """Gets the timeout of this ScriptExecuteParam. + + 超时时间,单位:秒,取值范围待定,5 < timeout < 1800 + + :return: The timeout of this ScriptExecuteParam. + :rtype: int + """ + return self._timeout + + @timeout.setter + def timeout(self, timeout): + """Sets the timeout of this ScriptExecuteParam. + + 超时时间,单位:秒,取值范围待定,5 < timeout < 1800 + + :param timeout: The timeout of this ScriptExecuteParam. + :type timeout: int + """ + self._timeout = timeout + + @property + def success_rate(self): + """Gets the success_rate of this ScriptExecuteParam. + + 成功率,支持小数点后一位 + + :return: The success_rate of this ScriptExecuteParam. + :rtype: float + """ + return self._success_rate + + @success_rate.setter + def success_rate(self, success_rate): + """Sets the success_rate of this ScriptExecuteParam. + + 成功率,支持小数点后一位 + + :param success_rate: The success_rate of this ScriptExecuteParam. + :type success_rate: float + """ + self._success_rate = success_rate + + @property + def execute_user(self): + """Gets the execute_user of this ScriptExecuteParam. + + 脚本执行用户,如:root + + :return: The execute_user of this ScriptExecuteParam. + :rtype: str + """ + return self._execute_user + + @execute_user.setter + def execute_user(self, execute_user): + """Sets the execute_user of this ScriptExecuteParam. + + 脚本执行用户,如:root + + :param execute_user: The execute_user of this ScriptExecuteParam. + :type execute_user: str + """ + self._execute_user = execute_user + + @property + def script_params(self): + """Gets the script_params of this ScriptExecuteParam. + + 脚本入参列表 + + :return: The script_params of this ScriptExecuteParam. + :rtype: list[:class:`huaweicloudsdkcoc.v1.ScriptExecuteInputParam`] + """ + return self._script_params + + @script_params.setter + def script_params(self, script_params): + """Sets the script_params of this ScriptExecuteParam. + + 脚本入参列表 + + :param script_params: The script_params of this ScriptExecuteParam. + :type script_params: list[:class:`huaweicloudsdkcoc.v1.ScriptExecuteInputParam`] + """ + self._script_params = script_params + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ScriptExecuteParam): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/script_execute_param_reference.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/script_execute_param_reference.py new file mode 100644 index 0000000000..19b8e048d9 --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/script_execute_param_reference.py @@ -0,0 +1,171 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ScriptExecuteParamReference: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'refer_type': 'str', + 'param_id': 'str', + 'param_version': 'str' + } + + attribute_map = { + 'refer_type': 'refer_type', + 'param_id': 'param_id', + 'param_version': 'param_version' + } + + def __init__(self, refer_type=None, param_id=None, param_version=None): + """ScriptExecuteParamReference + + The model defined in huaweicloud sdk + + :param refer_type: 参数引用类型:PARAM_STORE + :type refer_type: str + :param param_id: 引用参数的唯一主键id + :type param_id: str + :param param_version: 引用参数的版本号 + :type param_version: str + """ + + + + self._refer_type = None + self._param_id = None + self._param_version = None + self.discriminator = None + + self.refer_type = refer_type + self.param_id = param_id + if param_version is not None: + self.param_version = param_version + + @property + def refer_type(self): + """Gets the refer_type of this ScriptExecuteParamReference. + + 参数引用类型:PARAM_STORE + + :return: The refer_type of this ScriptExecuteParamReference. + :rtype: str + """ + return self._refer_type + + @refer_type.setter + def refer_type(self, refer_type): + """Sets the refer_type of this ScriptExecuteParamReference. + + 参数引用类型:PARAM_STORE + + :param refer_type: The refer_type of this ScriptExecuteParamReference. + :type refer_type: str + """ + self._refer_type = refer_type + + @property + def param_id(self): + """Gets the param_id of this ScriptExecuteParamReference. + + 引用参数的唯一主键id + + :return: The param_id of this ScriptExecuteParamReference. + :rtype: str + """ + return self._param_id + + @param_id.setter + def param_id(self, param_id): + """Sets the param_id of this ScriptExecuteParamReference. + + 引用参数的唯一主键id + + :param param_id: The param_id of this ScriptExecuteParamReference. + :type param_id: str + """ + self._param_id = param_id + + @property + def param_version(self): + """Gets the param_version of this ScriptExecuteParamReference. + + 引用参数的版本号 + + :return: The param_version of this ScriptExecuteParamReference. + :rtype: str + """ + return self._param_version + + @param_version.setter + def param_version(self, param_version): + """Sets the param_version of this ScriptExecuteParamReference. + + 引用参数的版本号 + + :param param_version: The param_version of this ScriptExecuteParamReference. + :type param_version: str + """ + self._param_version = param_version + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ScriptExecuteParamReference): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/script_list_model.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/script_list_model.py new file mode 100644 index 0000000000..6deb5a895d --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/script_list_model.py @@ -0,0 +1,420 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ScriptListModel: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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': 'int', + 'script_uuid': 'str', + 'enterprise_project_id': 'str', + 'name': 'str', + 'type': 'str', + 'status': 'str', + 'gmt_created': 'int', + 'gmt_modified': 'int', + 'creator': 'str', + 'creator_id': 'str', + 'operator': 'str', + 'properties': 'ScriptPropertiesModel' + } + + attribute_map = { + 'id': 'id', + 'script_uuid': 'script_uuid', + 'enterprise_project_id': 'enterprise_project_id', + 'name': 'name', + 'type': 'type', + 'status': 'status', + 'gmt_created': 'gmt_created', + 'gmt_modified': 'gmt_modified', + 'creator': 'creator', + 'creator_id': 'creator_id', + 'operator': 'operator', + 'properties': 'properties' + } + + def __init__(self, id=None, script_uuid=None, enterprise_project_id=None, name=None, type=None, status=None, gmt_created=None, gmt_modified=None, creator=None, creator_id=None, operator=None, properties=None): + """ScriptListModel + + The model defined in huaweicloud sdk + + :param id: 脚本自增id + :type id: int + :param script_uuid: 脚本uuid + :type script_uuid: str + :param enterprise_project_id: 企业项目ID,默认为:0 + :type enterprise_project_id: str + :param name: 脚本名称 + :type name: str + :param type: 脚本类型 SHELL:shell脚本 PYTHON:python脚本 BAT:bat脚本 + :type type: str + :param status: 脚本状态 PENDING_APPROVE:待审批 APPROVED:正常(审批通过) REJECTED:驳回(审批人,驳回该脚本 + :type status: str + :param gmt_created: 创建时间 + :type gmt_created: int + :param gmt_modified: 修改时间 + :type gmt_modified: int + :param creator: 创建人 + :type creator: str + :param creator_id: 创建人Id + :type creator_id: str + :param operator: 修改人 + :type operator: str + :param properties: + :type properties: :class:`huaweicloudsdkcoc.v1.ScriptPropertiesModel` + """ + + + + self._id = None + self._script_uuid = None + self._enterprise_project_id = None + self._name = None + self._type = None + self._status = None + self._gmt_created = None + self._gmt_modified = None + self._creator = None + self._creator_id = None + self._operator = None + self._properties = None + self.discriminator = None + + self.id = id + self.script_uuid = script_uuid + self.enterprise_project_id = enterprise_project_id + self.name = name + self.type = type + self.status = status + self.gmt_created = gmt_created + if gmt_modified is not None: + self.gmt_modified = gmt_modified + self.creator = creator + self.creator_id = creator_id + if operator is not None: + self.operator = operator + self.properties = properties + + @property + def id(self): + """Gets the id of this ScriptListModel. + + 脚本自增id + + :return: The id of this ScriptListModel. + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this ScriptListModel. + + 脚本自增id + + :param id: The id of this ScriptListModel. + :type id: int + """ + self._id = id + + @property + def script_uuid(self): + """Gets the script_uuid of this ScriptListModel. + + 脚本uuid + + :return: The script_uuid of this ScriptListModel. + :rtype: str + """ + return self._script_uuid + + @script_uuid.setter + def script_uuid(self, script_uuid): + """Sets the script_uuid of this ScriptListModel. + + 脚本uuid + + :param script_uuid: The script_uuid of this ScriptListModel. + :type script_uuid: str + """ + self._script_uuid = script_uuid + + @property + def enterprise_project_id(self): + """Gets the enterprise_project_id of this ScriptListModel. + + 企业项目ID,默认为:0 + + :return: The enterprise_project_id of this ScriptListModel. + :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 ScriptListModel. + + 企业项目ID,默认为:0 + + :param enterprise_project_id: The enterprise_project_id of this ScriptListModel. + :type enterprise_project_id: str + """ + self._enterprise_project_id = enterprise_project_id + + @property + def name(self): + """Gets the name of this ScriptListModel. + + 脚本名称 + + :return: The name of this ScriptListModel. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ScriptListModel. + + 脚本名称 + + :param name: The name of this ScriptListModel. + :type name: str + """ + self._name = name + + @property + def type(self): + """Gets the type of this ScriptListModel. + + 脚本类型 SHELL:shell脚本 PYTHON:python脚本 BAT:bat脚本 + + :return: The type of this ScriptListModel. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this ScriptListModel. + + 脚本类型 SHELL:shell脚本 PYTHON:python脚本 BAT:bat脚本 + + :param type: The type of this ScriptListModel. + :type type: str + """ + self._type = type + + @property + def status(self): + """Gets the status of this ScriptListModel. + + 脚本状态 PENDING_APPROVE:待审批 APPROVED:正常(审批通过) REJECTED:驳回(审批人,驳回该脚本 + + :return: The status of this ScriptListModel. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ScriptListModel. + + 脚本状态 PENDING_APPROVE:待审批 APPROVED:正常(审批通过) REJECTED:驳回(审批人,驳回该脚本 + + :param status: The status of this ScriptListModel. + :type status: str + """ + self._status = status + + @property + def gmt_created(self): + """Gets the gmt_created of this ScriptListModel. + + 创建时间 + + :return: The gmt_created of this ScriptListModel. + :rtype: int + """ + return self._gmt_created + + @gmt_created.setter + def gmt_created(self, gmt_created): + """Sets the gmt_created of this ScriptListModel. + + 创建时间 + + :param gmt_created: The gmt_created of this ScriptListModel. + :type gmt_created: int + """ + self._gmt_created = gmt_created + + @property + def gmt_modified(self): + """Gets the gmt_modified of this ScriptListModel. + + 修改时间 + + :return: The gmt_modified of this ScriptListModel. + :rtype: int + """ + return self._gmt_modified + + @gmt_modified.setter + def gmt_modified(self, gmt_modified): + """Sets the gmt_modified of this ScriptListModel. + + 修改时间 + + :param gmt_modified: The gmt_modified of this ScriptListModel. + :type gmt_modified: int + """ + self._gmt_modified = gmt_modified + + @property + def creator(self): + """Gets the creator of this ScriptListModel. + + 创建人 + + :return: The creator of this ScriptListModel. + :rtype: str + """ + return self._creator + + @creator.setter + def creator(self, creator): + """Sets the creator of this ScriptListModel. + + 创建人 + + :param creator: The creator of this ScriptListModel. + :type creator: str + """ + self._creator = creator + + @property + def creator_id(self): + """Gets the creator_id of this ScriptListModel. + + 创建人Id + + :return: The creator_id of this ScriptListModel. + :rtype: str + """ + return self._creator_id + + @creator_id.setter + def creator_id(self, creator_id): + """Sets the creator_id of this ScriptListModel. + + 创建人Id + + :param creator_id: The creator_id of this ScriptListModel. + :type creator_id: str + """ + self._creator_id = creator_id + + @property + def operator(self): + """Gets the operator of this ScriptListModel. + + 修改人 + + :return: The operator of this ScriptListModel. + :rtype: str + """ + return self._operator + + @operator.setter + def operator(self, operator): + """Sets the operator of this ScriptListModel. + + 修改人 + + :param operator: The operator of this ScriptListModel. + :type operator: str + """ + self._operator = operator + + @property + def properties(self): + """Gets the properties of this ScriptListModel. + + :return: The properties of this ScriptListModel. + :rtype: :class:`huaweicloudsdkcoc.v1.ScriptPropertiesModel` + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this ScriptListModel. + + :param properties: The properties of this ScriptListModel. + :type properties: :class:`huaweicloudsdkcoc.v1.ScriptPropertiesModel` + """ + 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, ScriptListModel): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/script_list_page.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/script_list_page.py new file mode 100644 index 0000000000..9df105ecd3 --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/script_list_page.py @@ -0,0 +1,142 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ScriptListPage: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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': 'int', + 'data': 'list[ScriptListModel]' + } + + attribute_map = { + 'total': 'total', + 'data': 'data' + } + + def __init__(self, total=None, data=None): + """ScriptListPage + + The model defined in huaweicloud sdk + + :param total: 总条数 + :type total: int + :param data: 单页数据列表 + :type data: list[:class:`huaweicloudsdkcoc.v1.ScriptListModel`] + """ + + + + self._total = None + self._data = None + self.discriminator = None + + self.total = total + self.data = data + + @property + def total(self): + """Gets the total of this ScriptListPage. + + 总条数 + + :return: The total of this ScriptListPage. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """Sets the total of this ScriptListPage. + + 总条数 + + :param total: The total of this ScriptListPage. + :type total: int + """ + self._total = total + + @property + def data(self): + """Gets the data of this ScriptListPage. + + 单页数据列表 + + :return: The data of this ScriptListPage. + :rtype: list[:class:`huaweicloudsdkcoc.v1.ScriptListModel`] + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this ScriptListPage. + + 单页数据列表 + + :param data: The data of this ScriptListPage. + :type data: list[:class:`huaweicloudsdkcoc.v1.ScriptListModel`] + """ + 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, ScriptListPage): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/script_param_define.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/script_param_define.py new file mode 100644 index 0000000000..245974ff7e --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/script_param_define.py @@ -0,0 +1,228 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ScriptParamDefine: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'param_name': 'str', + 'param_value': 'str', + 'param_description': 'str', + 'param_order': 'int', + 'sensitive': 'bool' + } + + attribute_map = { + 'param_name': 'param_name', + 'param_value': 'param_value', + 'param_description': 'param_description', + 'param_order': 'param_order', + 'sensitive': 'sensitive' + } + + def __init__(self, param_name=None, param_value=None, param_description=None, param_order=None, sensitive=None): + """ScriptParamDefine + + The model defined in huaweicloud sdk + + :param param_name: 参数名称:只支持英文、数字、下划线 + :type param_name: str + :param param_value: 参数默认值,默认必填,如果有参数引用,可为空 + :type param_value: str + :param param_description: 参数描述 + :type param_description: str + :param param_order: 该参数已废弃,传入该参数不会生效。 + :type param_order: int + :param sensitive: 是否是敏感参数 + :type sensitive: bool + """ + + + + self._param_name = None + self._param_value = None + self._param_description = None + self._param_order = None + self._sensitive = None + self.discriminator = None + + self.param_name = param_name + if param_value is not None: + self.param_value = param_value + self.param_description = param_description + if param_order is not None: + self.param_order = param_order + self.sensitive = sensitive + + @property + def param_name(self): + """Gets the param_name of this ScriptParamDefine. + + 参数名称:只支持英文、数字、下划线 + + :return: The param_name of this ScriptParamDefine. + :rtype: str + """ + return self._param_name + + @param_name.setter + def param_name(self, param_name): + """Sets the param_name of this ScriptParamDefine. + + 参数名称:只支持英文、数字、下划线 + + :param param_name: The param_name of this ScriptParamDefine. + :type param_name: str + """ + self._param_name = param_name + + @property + def param_value(self): + """Gets the param_value of this ScriptParamDefine. + + 参数默认值,默认必填,如果有参数引用,可为空 + + :return: The param_value of this ScriptParamDefine. + :rtype: str + """ + return self._param_value + + @param_value.setter + def param_value(self, param_value): + """Sets the param_value of this ScriptParamDefine. + + 参数默认值,默认必填,如果有参数引用,可为空 + + :param param_value: The param_value of this ScriptParamDefine. + :type param_value: str + """ + self._param_value = param_value + + @property + def param_description(self): + """Gets the param_description of this ScriptParamDefine. + + 参数描述 + + :return: The param_description of this ScriptParamDefine. + :rtype: str + """ + return self._param_description + + @param_description.setter + def param_description(self, param_description): + """Sets the param_description of this ScriptParamDefine. + + 参数描述 + + :param param_description: The param_description of this ScriptParamDefine. + :type param_description: str + """ + self._param_description = param_description + + @property + def param_order(self): + """Gets the param_order of this ScriptParamDefine. + + 该参数已废弃,传入该参数不会生效。 + + :return: The param_order of this ScriptParamDefine. + :rtype: int + """ + return self._param_order + + @param_order.setter + def param_order(self, param_order): + """Sets the param_order of this ScriptParamDefine. + + 该参数已废弃,传入该参数不会生效。 + + :param param_order: The param_order of this ScriptParamDefine. + :type param_order: int + """ + self._param_order = param_order + + @property + def sensitive(self): + """Gets the sensitive of this ScriptParamDefine. + + 是否是敏感参数 + + :return: The sensitive of this ScriptParamDefine. + :rtype: bool + """ + return self._sensitive + + @sensitive.setter + def sensitive(self, sensitive): + """Sets the sensitive of this ScriptParamDefine. + + 是否是敏感参数 + + :param sensitive: The sensitive of this ScriptParamDefine. + :type sensitive: bool + """ + self._sensitive = sensitive + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ScriptParamDefine): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/script_properties_model.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/script_properties_model.py new file mode 100644 index 0000000000..1330d957fa --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/script_properties_model.py @@ -0,0 +1,200 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ScriptPropertiesModel: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'risk_level': 'str', + 'version': 'str', + 'reviewers': 'list[ReviewerInfo]', + 'protocol': 'str' + } + + attribute_map = { + 'risk_level': 'risk_level', + 'version': 'version', + 'reviewers': 'reviewers', + 'protocol': 'protocol' + } + + def __init__(self, risk_level=None, version=None, reviewers=None, protocol=None): + """ScriptPropertiesModel + + The model defined in huaweicloud sdk + + :param risk_level: 风险等级 LOW:低风险 MEDIUM:中风险 HIGH:高风险 + :type risk_level: str + :param version: 脚本版本号 + :type version: str + :param reviewers: 审批人,不填写不需要审批 + :type reviewers: list[:class:`huaweicloudsdkcoc.v1.ReviewerInfo`] + :param protocol: 审批消息通知协议,用于通知审批人 DEFAULT:默认 SMS:短信 EMAIL:邮件 DING_TALK:钉钉 WE_LINK:welink WECHAT:微信 CALLNOTIFY:语言 NOT_TO_NOTIFY:不通知 + :type protocol: str + """ + + + + self._risk_level = None + self._version = None + self._reviewers = None + self._protocol = None + self.discriminator = None + + self.risk_level = risk_level + self.version = version + if reviewers is not None: + self.reviewers = reviewers + if protocol is not None: + self.protocol = protocol + + @property + def risk_level(self): + """Gets the risk_level of this ScriptPropertiesModel. + + 风险等级 LOW:低风险 MEDIUM:中风险 HIGH:高风险 + + :return: The risk_level of this ScriptPropertiesModel. + :rtype: str + """ + return self._risk_level + + @risk_level.setter + def risk_level(self, risk_level): + """Sets the risk_level of this ScriptPropertiesModel. + + 风险等级 LOW:低风险 MEDIUM:中风险 HIGH:高风险 + + :param risk_level: The risk_level of this ScriptPropertiesModel. + :type risk_level: str + """ + self._risk_level = risk_level + + @property + def version(self): + """Gets the version of this ScriptPropertiesModel. + + 脚本版本号 + + :return: The version of this ScriptPropertiesModel. + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this ScriptPropertiesModel. + + 脚本版本号 + + :param version: The version of this ScriptPropertiesModel. + :type version: str + """ + self._version = version + + @property + def reviewers(self): + """Gets the reviewers of this ScriptPropertiesModel. + + 审批人,不填写不需要审批 + + :return: The reviewers of this ScriptPropertiesModel. + :rtype: list[:class:`huaweicloudsdkcoc.v1.ReviewerInfo`] + """ + return self._reviewers + + @reviewers.setter + def reviewers(self, reviewers): + """Sets the reviewers of this ScriptPropertiesModel. + + 审批人,不填写不需要审批 + + :param reviewers: The reviewers of this ScriptPropertiesModel. + :type reviewers: list[:class:`huaweicloudsdkcoc.v1.ReviewerInfo`] + """ + self._reviewers = reviewers + + @property + def protocol(self): + """Gets the protocol of this ScriptPropertiesModel. + + 审批消息通知协议,用于通知审批人 DEFAULT:默认 SMS:短信 EMAIL:邮件 DING_TALK:钉钉 WE_LINK:welink WECHAT:微信 CALLNOTIFY:语言 NOT_TO_NOTIFY:不通知 + + :return: The protocol of this ScriptPropertiesModel. + :rtype: str + """ + return self._protocol + + @protocol.setter + def protocol(self, protocol): + """Sets the protocol of this ScriptPropertiesModel. + + 审批消息通知协议,用于通知审批人 DEFAULT:默认 SMS:短信 EMAIL:邮件 DING_TALK:钉钉 WE_LINK:welink WECHAT:微信 CALLNOTIFY:语言 NOT_TO_NOTIFY:不通知 + + :param protocol: The protocol of this ScriptPropertiesModel. + :type protocol: str + """ + self._protocol = protocol + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ScriptPropertiesModel): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/severity_summary.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/severity_summary.py new file mode 100644 index 0000000000..d759f653e5 --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/severity_summary.py @@ -0,0 +1,260 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class SeveritySummary: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'critical_count': 'int', + 'high_count': 'int', + 'informational_count': 'int', + 'low_count': 'int', + 'medium_count': 'int', + 'unspecified_count': 'int' + } + + attribute_map = { + 'critical_count': 'critical_count', + 'high_count': 'high_count', + 'informational_count': 'informational_count', + 'low_count': 'low_count', + 'medium_count': 'medium_count', + 'unspecified_count': 'unspecified_count' + } + + def __init__(self, critical_count=None, high_count=None, informational_count=None, low_count=None, medium_count=None, unspecified_count=None): + """SeveritySummary + + The model defined in huaweicloud sdk + + :param critical_count: 重大合规性报告数量 + :type critical_count: int + :param high_count: 高合规性报告数量 + :type high_count: int + :param informational_count: 信息性合规性报告数量 + :type informational_count: int + :param low_count: 低合规性报告数量 + :type low_count: int + :param medium_count: 中级合规性报告数量 + :type medium_count: int + :param unspecified_count: 未指定合规性报告数量 + :type unspecified_count: int + """ + + + + self._critical_count = None + self._high_count = None + self._informational_count = None + self._low_count = None + self._medium_count = None + self._unspecified_count = None + self.discriminator = None + + if critical_count is not None: + self.critical_count = critical_count + if high_count is not None: + self.high_count = high_count + if informational_count is not None: + self.informational_count = informational_count + if low_count is not None: + self.low_count = low_count + if medium_count is not None: + self.medium_count = medium_count + if unspecified_count is not None: + self.unspecified_count = unspecified_count + + @property + def critical_count(self): + """Gets the critical_count of this SeveritySummary. + + 重大合规性报告数量 + + :return: The critical_count of this SeveritySummary. + :rtype: int + """ + return self._critical_count + + @critical_count.setter + def critical_count(self, critical_count): + """Sets the critical_count of this SeveritySummary. + + 重大合规性报告数量 + + :param critical_count: The critical_count of this SeveritySummary. + :type critical_count: int + """ + self._critical_count = critical_count + + @property + def high_count(self): + """Gets the high_count of this SeveritySummary. + + 高合规性报告数量 + + :return: The high_count of this SeveritySummary. + :rtype: int + """ + return self._high_count + + @high_count.setter + def high_count(self, high_count): + """Sets the high_count of this SeveritySummary. + + 高合规性报告数量 + + :param high_count: The high_count of this SeveritySummary. + :type high_count: int + """ + self._high_count = high_count + + @property + def informational_count(self): + """Gets the informational_count of this SeveritySummary. + + 信息性合规性报告数量 + + :return: The informational_count of this SeveritySummary. + :rtype: int + """ + return self._informational_count + + @informational_count.setter + def informational_count(self, informational_count): + """Sets the informational_count of this SeveritySummary. + + 信息性合规性报告数量 + + :param informational_count: The informational_count of this SeveritySummary. + :type informational_count: int + """ + self._informational_count = informational_count + + @property + def low_count(self): + """Gets the low_count of this SeveritySummary. + + 低合规性报告数量 + + :return: The low_count of this SeveritySummary. + :rtype: int + """ + return self._low_count + + @low_count.setter + def low_count(self, low_count): + """Sets the low_count of this SeveritySummary. + + 低合规性报告数量 + + :param low_count: The low_count of this SeveritySummary. + :type low_count: int + """ + self._low_count = low_count + + @property + def medium_count(self): + """Gets the medium_count of this SeveritySummary. + + 中级合规性报告数量 + + :return: The medium_count of this SeveritySummary. + :rtype: int + """ + return self._medium_count + + @medium_count.setter + def medium_count(self, medium_count): + """Sets the medium_count of this SeveritySummary. + + 中级合规性报告数量 + + :param medium_count: The medium_count of this SeveritySummary. + :type medium_count: int + """ + self._medium_count = medium_count + + @property + def unspecified_count(self): + """Gets the unspecified_count of this SeveritySummary. + + 未指定合规性报告数量 + + :return: The unspecified_count of this SeveritySummary. + :rtype: int + """ + return self._unspecified_count + + @unspecified_count.setter + def unspecified_count(self, unspecified_count): + """Sets the unspecified_count of this SeveritySummary. + + 未指定合规性报告数量 + + :param unspecified_count: The unspecified_count of this SeveritySummary. + :type unspecified_count: int + """ + self._unspecified_count = unspecified_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, SeveritySummary): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/show_coc_incident_detail_request.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/show_coc_incident_detail_request.py new file mode 100644 index 0000000000..e1fe8f5a2d --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/show_coc_incident_detail_request.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowCocIncidentDetailRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'incident_num': 'str' + } + + attribute_map = { + 'incident_num': 'incident_num' + } + + def __init__(self, incident_num=None): + """ShowCocIncidentDetailRequest + + The model defined in huaweicloud sdk + + :param incident_num: 事件单号 + :type incident_num: str + """ + + + + self._incident_num = None + self.discriminator = None + + self.incident_num = incident_num + + @property + def incident_num(self): + """Gets the incident_num of this ShowCocIncidentDetailRequest. + + 事件单号 + + :return: The incident_num of this ShowCocIncidentDetailRequest. + :rtype: str + """ + return self._incident_num + + @incident_num.setter + def incident_num(self, incident_num): + """Sets the incident_num of this ShowCocIncidentDetailRequest. + + 事件单号 + + :param incident_num: The incident_num of this ShowCocIncidentDetailRequest. + :type incident_num: str + """ + self._incident_num = incident_num + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowCocIncidentDetailRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/show_coc_incident_detail_response.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/show_coc_incident_detail_response.py new file mode 100644 index 0000000000..53de197a1b --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/show_coc_incident_detail_response.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowCocIncidentDetailResponse(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 = { + 'provider_code': 'str', + 'error_code': 'str', + 'error_msg': 'str', + 'data': 'IncidentTicketInfoResponseData' + } + + attribute_map = { + 'provider_code': 'provider_code', + 'error_code': 'error_code', + 'error_msg': 'error_msg', + 'data': 'data' + } + + def __init__(self, provider_code=None, error_code=None, error_msg=None, data=None): + """ShowCocIncidentDetailResponse + + The model defined in huaweicloud sdk + + :param provider_code: 服务标识 + :type provider_code: str + :param error_code: 请求响应代码,范围:0000~9999,正常时取值:0 + :type error_code: str + :param error_msg: 请求响应描述 + :type error_msg: str + :param data: + :type data: :class:`huaweicloudsdkcoc.v1.IncidentTicketInfoResponseData` + """ + + super(ShowCocIncidentDetailResponse, self).__init__() + + self._provider_code = None + self._error_code = None + self._error_msg = None + self._data = None + self.discriminator = None + + self.provider_code = provider_code + self.error_code = error_code + if error_msg is not None: + self.error_msg = error_msg + if data is not None: + self.data = data + + @property + def provider_code(self): + """Gets the provider_code of this ShowCocIncidentDetailResponse. + + 服务标识 + + :return: The provider_code of this ShowCocIncidentDetailResponse. + :rtype: str + """ + return self._provider_code + + @provider_code.setter + def provider_code(self, provider_code): + """Sets the provider_code of this ShowCocIncidentDetailResponse. + + 服务标识 + + :param provider_code: The provider_code of this ShowCocIncidentDetailResponse. + :type provider_code: str + """ + self._provider_code = provider_code + + @property + def error_code(self): + """Gets the error_code of this ShowCocIncidentDetailResponse. + + 请求响应代码,范围:0000~9999,正常时取值:0 + + :return: The error_code of this ShowCocIncidentDetailResponse. + :rtype: str + """ + return self._error_code + + @error_code.setter + def error_code(self, error_code): + """Sets the error_code of this ShowCocIncidentDetailResponse. + + 请求响应代码,范围:0000~9999,正常时取值:0 + + :param error_code: The error_code of this ShowCocIncidentDetailResponse. + :type error_code: str + """ + self._error_code = error_code + + @property + def error_msg(self): + """Gets the error_msg of this ShowCocIncidentDetailResponse. + + 请求响应描述 + + :return: The error_msg of this ShowCocIncidentDetailResponse. + :rtype: str + """ + return self._error_msg + + @error_msg.setter + def error_msg(self, error_msg): + """Sets the error_msg of this ShowCocIncidentDetailResponse. + + 请求响应描述 + + :param error_msg: The error_msg of this ShowCocIncidentDetailResponse. + :type error_msg: str + """ + self._error_msg = error_msg + + @property + def data(self): + """Gets the data of this ShowCocIncidentDetailResponse. + + :return: The data of this ShowCocIncidentDetailResponse. + :rtype: :class:`huaweicloudsdkcoc.v1.IncidentTicketInfoResponseData` + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this ShowCocIncidentDetailResponse. + + :param data: The data of this ShowCocIncidentDetailResponse. + :type data: :class:`huaweicloudsdkcoc.v1.IncidentTicketInfoResponseData` + """ + 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, ShowCocIncidentDetailResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/show_coc_issues_detail_request.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/show_coc_issues_detail_request.py new file mode 100644 index 0000000000..a8912becc6 --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/show_coc_issues_detail_request.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowCocIssuesDetailRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'ticket_id': 'str' + } + + attribute_map = { + 'ticket_id': 'ticket_id' + } + + def __init__(self, ticket_id=None): + """ShowCocIssuesDetailRequest + + The model defined in huaweicloud sdk + + :param ticket_id: 问题单号 + :type ticket_id: str + """ + + + + self._ticket_id = None + self.discriminator = None + + self.ticket_id = ticket_id + + @property + def ticket_id(self): + """Gets the ticket_id of this ShowCocIssuesDetailRequest. + + 问题单号 + + :return: The ticket_id of this ShowCocIssuesDetailRequest. + :rtype: str + """ + return self._ticket_id + + @ticket_id.setter + def ticket_id(self, ticket_id): + """Sets the ticket_id of this ShowCocIssuesDetailRequest. + + 问题单号 + + :param ticket_id: The ticket_id of this ShowCocIssuesDetailRequest. + :type ticket_id: str + """ + self._ticket_id = ticket_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, ShowCocIssuesDetailRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/show_coc_issues_detail_response.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/show_coc_issues_detail_response.py new file mode 100644 index 0000000000..aef9a95f4a --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/show_coc_issues_detail_response.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowCocIssuesDetailResponse(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 = { + 'provider_code': 'str', + 'error_code': 'str', + 'error_msg': 'str', + 'data': 'CocIssuesTicketDetailInfoResponseData' + } + + attribute_map = { + 'provider_code': 'provider_code', + 'error_code': 'error_code', + 'error_msg': 'error_msg', + 'data': 'data' + } + + def __init__(self, provider_code=None, error_code=None, error_msg=None, data=None): + """ShowCocIssuesDetailResponse + + The model defined in huaweicloud sdk + + :param provider_code: 服务标识 + :type provider_code: str + :param error_code: 请求响应代码,范围:0000~9999,正常时取值:0 + :type error_code: str + :param error_msg: 请求响应描述 + :type error_msg: str + :param data: + :type data: :class:`huaweicloudsdkcoc.v1.CocIssuesTicketDetailInfoResponseData` + """ + + super(ShowCocIssuesDetailResponse, self).__init__() + + self._provider_code = None + self._error_code = None + self._error_msg = None + self._data = None + self.discriminator = None + + self.provider_code = provider_code + self.error_code = error_code + if error_msg is not None: + self.error_msg = error_msg + if data is not None: + self.data = data + + @property + def provider_code(self): + """Gets the provider_code of this ShowCocIssuesDetailResponse. + + 服务标识 + + :return: The provider_code of this ShowCocIssuesDetailResponse. + :rtype: str + """ + return self._provider_code + + @provider_code.setter + def provider_code(self, provider_code): + """Sets the provider_code of this ShowCocIssuesDetailResponse. + + 服务标识 + + :param provider_code: The provider_code of this ShowCocIssuesDetailResponse. + :type provider_code: str + """ + self._provider_code = provider_code + + @property + def error_code(self): + """Gets the error_code of this ShowCocIssuesDetailResponse. + + 请求响应代码,范围:0000~9999,正常时取值:0 + + :return: The error_code of this ShowCocIssuesDetailResponse. + :rtype: str + """ + return self._error_code + + @error_code.setter + def error_code(self, error_code): + """Sets the error_code of this ShowCocIssuesDetailResponse. + + 请求响应代码,范围:0000~9999,正常时取值:0 + + :param error_code: The error_code of this ShowCocIssuesDetailResponse. + :type error_code: str + """ + self._error_code = error_code + + @property + def error_msg(self): + """Gets the error_msg of this ShowCocIssuesDetailResponse. + + 请求响应描述 + + :return: The error_msg of this ShowCocIssuesDetailResponse. + :rtype: str + """ + return self._error_msg + + @error_msg.setter + def error_msg(self, error_msg): + """Sets the error_msg of this ShowCocIssuesDetailResponse. + + 请求响应描述 + + :param error_msg: The error_msg of this ShowCocIssuesDetailResponse. + :type error_msg: str + """ + self._error_msg = error_msg + + @property + def data(self): + """Gets the data of this ShowCocIssuesDetailResponse. + + :return: The data of this ShowCocIssuesDetailResponse. + :rtype: :class:`huaweicloudsdkcoc.v1.CocIssuesTicketDetailInfoResponseData` + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this ShowCocIssuesDetailResponse. + + :param data: The data of this ShowCocIssuesDetailResponse. + :type data: :class:`huaweicloudsdkcoc.v1.CocIssuesTicketDetailInfoResponseData` + """ + 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, ShowCocIssuesDetailResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/show_instance_patch_items_request.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/show_instance_patch_items_request.py new file mode 100644 index 0000000000..c8119e4a33 --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/show_instance_patch_items_request.py @@ -0,0 +1,375 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowInstancePatchItemsRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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_compliant_id': 'str', + 'offset': 'int', + 'limit': 'int', + 'title': 'str', + 'sort_dir': 'str', + 'sort_key': 'str', + 'patch_status': 'str', + 'classification': 'str', + 'severity_level': 'str', + 'compliance_level': 'str' + } + + attribute_map = { + 'instance_compliant_id': 'instance_compliant_id', + 'offset': 'offset', + 'limit': 'limit', + 'title': 'title', + 'sort_dir': 'sort_dir', + 'sort_key': 'sort_key', + 'patch_status': 'patch_status', + 'classification': 'classification', + 'severity_level': 'severity_level', + 'compliance_level': 'compliance_level' + } + + def __init__(self, instance_compliant_id=None, offset=None, limit=None, title=None, sort_dir=None, sort_key=None, patch_status=None, classification=None, severity_level=None, compliance_level=None): + """ShowInstancePatchItemsRequest + + The model defined in huaweicloud sdk + + :param instance_compliant_id: 合规性报告id + :type instance_compliant_id: str + :param offset: 偏移量 + :type offset: int + :param limit: 每页数量 + :type limit: int + :param title: 补丁名称 + :type title: str + :param sort_dir: 排序 - asc:升序 - desc:降序 + :type sort_dir: str + :param sort_key: 排序字段 -installed_time:补丁安装时间 + :type sort_key: str + :param patch_status: 补丁状态 INSTALLED:已安装 INSTALLED_OTHER:已安装其他 MISSING:缺失 REJECT:拒绝 FAILED:失败 PENDING_REBOOT:已安装待重启 + :type patch_status: str + :param classification: 分类 + :type classification: str + :param severity_level: 严重性级别 + :type severity_level: str + :param compliance_level: 合规性级别 + :type compliance_level: str + """ + + + + self._instance_compliant_id = None + self._offset = None + self._limit = None + self._title = None + self._sort_dir = None + self._sort_key = None + self._patch_status = None + self._classification = None + self._severity_level = None + self._compliance_level = None + self.discriminator = None + + self.instance_compliant_id = instance_compliant_id + if offset is not None: + self.offset = offset + if limit is not None: + self.limit = limit + if title is not None: + self.title = title + if sort_dir is not None: + self.sort_dir = sort_dir + if sort_key is not None: + self.sort_key = sort_key + if patch_status is not None: + self.patch_status = patch_status + if classification is not None: + self.classification = classification + if severity_level is not None: + self.severity_level = severity_level + if compliance_level is not None: + self.compliance_level = compliance_level + + @property + def instance_compliant_id(self): + """Gets the instance_compliant_id of this ShowInstancePatchItemsRequest. + + 合规性报告id + + :return: The instance_compliant_id of this ShowInstancePatchItemsRequest. + :rtype: str + """ + return self._instance_compliant_id + + @instance_compliant_id.setter + def instance_compliant_id(self, instance_compliant_id): + """Sets the instance_compliant_id of this ShowInstancePatchItemsRequest. + + 合规性报告id + + :param instance_compliant_id: The instance_compliant_id of this ShowInstancePatchItemsRequest. + :type instance_compliant_id: str + """ + self._instance_compliant_id = instance_compliant_id + + @property + def offset(self): + """Gets the offset of this ShowInstancePatchItemsRequest. + + 偏移量 + + :return: The offset of this ShowInstancePatchItemsRequest. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this ShowInstancePatchItemsRequest. + + 偏移量 + + :param offset: The offset of this ShowInstancePatchItemsRequest. + :type offset: int + """ + self._offset = offset + + @property + def limit(self): + """Gets the limit of this ShowInstancePatchItemsRequest. + + 每页数量 + + :return: The limit of this ShowInstancePatchItemsRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ShowInstancePatchItemsRequest. + + 每页数量 + + :param limit: The limit of this ShowInstancePatchItemsRequest. + :type limit: int + """ + self._limit = limit + + @property + def title(self): + """Gets the title of this ShowInstancePatchItemsRequest. + + 补丁名称 + + :return: The title of this ShowInstancePatchItemsRequest. + :rtype: str + """ + return self._title + + @title.setter + def title(self, title): + """Sets the title of this ShowInstancePatchItemsRequest. + + 补丁名称 + + :param title: The title of this ShowInstancePatchItemsRequest. + :type title: str + """ + self._title = title + + @property + def sort_dir(self): + """Gets the sort_dir of this ShowInstancePatchItemsRequest. + + 排序 - asc:升序 - desc:降序 + + :return: The sort_dir of this ShowInstancePatchItemsRequest. + :rtype: str + """ + return self._sort_dir + + @sort_dir.setter + def sort_dir(self, sort_dir): + """Sets the sort_dir of this ShowInstancePatchItemsRequest. + + 排序 - asc:升序 - desc:降序 + + :param sort_dir: The sort_dir of this ShowInstancePatchItemsRequest. + :type sort_dir: str + """ + self._sort_dir = sort_dir + + @property + def sort_key(self): + """Gets the sort_key of this ShowInstancePatchItemsRequest. + + 排序字段 -installed_time:补丁安装时间 + + :return: The sort_key of this ShowInstancePatchItemsRequest. + :rtype: str + """ + return self._sort_key + + @sort_key.setter + def sort_key(self, sort_key): + """Sets the sort_key of this ShowInstancePatchItemsRequest. + + 排序字段 -installed_time:补丁安装时间 + + :param sort_key: The sort_key of this ShowInstancePatchItemsRequest. + :type sort_key: str + """ + self._sort_key = sort_key + + @property + def patch_status(self): + """Gets the patch_status of this ShowInstancePatchItemsRequest. + + 补丁状态 INSTALLED:已安装 INSTALLED_OTHER:已安装其他 MISSING:缺失 REJECT:拒绝 FAILED:失败 PENDING_REBOOT:已安装待重启 + + :return: The patch_status of this ShowInstancePatchItemsRequest. + :rtype: str + """ + return self._patch_status + + @patch_status.setter + def patch_status(self, patch_status): + """Sets the patch_status of this ShowInstancePatchItemsRequest. + + 补丁状态 INSTALLED:已安装 INSTALLED_OTHER:已安装其他 MISSING:缺失 REJECT:拒绝 FAILED:失败 PENDING_REBOOT:已安装待重启 + + :param patch_status: The patch_status of this ShowInstancePatchItemsRequest. + :type patch_status: str + """ + self._patch_status = patch_status + + @property + def classification(self): + """Gets the classification of this ShowInstancePatchItemsRequest. + + 分类 + + :return: The classification of this ShowInstancePatchItemsRequest. + :rtype: str + """ + return self._classification + + @classification.setter + def classification(self, classification): + """Sets the classification of this ShowInstancePatchItemsRequest. + + 分类 + + :param classification: The classification of this ShowInstancePatchItemsRequest. + :type classification: str + """ + self._classification = classification + + @property + def severity_level(self): + """Gets the severity_level of this ShowInstancePatchItemsRequest. + + 严重性级别 + + :return: The severity_level of this ShowInstancePatchItemsRequest. + :rtype: str + """ + return self._severity_level + + @severity_level.setter + def severity_level(self, severity_level): + """Sets the severity_level of this ShowInstancePatchItemsRequest. + + 严重性级别 + + :param severity_level: The severity_level of this ShowInstancePatchItemsRequest. + :type severity_level: str + """ + self._severity_level = severity_level + + @property + def compliance_level(self): + """Gets the compliance_level of this ShowInstancePatchItemsRequest. + + 合规性级别 + + :return: The compliance_level of this ShowInstancePatchItemsRequest. + :rtype: str + """ + return self._compliance_level + + @compliance_level.setter + def compliance_level(self, compliance_level): + """Sets the compliance_level of this ShowInstancePatchItemsRequest. + + 合规性级别 + + :param compliance_level: The compliance_level of this ShowInstancePatchItemsRequest. + :type compliance_level: str + """ + self._compliance_level = compliance_level + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowInstancePatchItemsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/show_instance_patch_items_response.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/show_instance_patch_items_response.py new file mode 100644 index 0000000000..1c4ad57542 --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/show_instance_patch_items_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 ShowInstancePatchItemsResponse(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 = { + 'count': 'int', + 'compliance_items': 'list[ComplianceItem]' + } + + attribute_map = { + 'count': 'count', + 'compliance_items': 'compliance_items' + } + + def __init__(self, count=None, compliance_items=None): + """ShowInstancePatchItemsResponse + + The model defined in huaweicloud sdk + + :param count: 总条数 + :type count: int + :param compliance_items: 补丁合规信息 + :type compliance_items: list[:class:`huaweicloudsdkcoc.v1.ComplianceItem`] + """ + + super(ShowInstancePatchItemsResponse, self).__init__() + + self._count = None + self._compliance_items = None + self.discriminator = None + + if count is not None: + self.count = count + if compliance_items is not None: + self.compliance_items = compliance_items + + @property + def count(self): + """Gets the count of this ShowInstancePatchItemsResponse. + + 总条数 + + :return: The count of this ShowInstancePatchItemsResponse. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this ShowInstancePatchItemsResponse. + + 总条数 + + :param count: The count of this ShowInstancePatchItemsResponse. + :type count: int + """ + self._count = count + + @property + def compliance_items(self): + """Gets the compliance_items of this ShowInstancePatchItemsResponse. + + 补丁合规信息 + + :return: The compliance_items of this ShowInstancePatchItemsResponse. + :rtype: list[:class:`huaweicloudsdkcoc.v1.ComplianceItem`] + """ + return self._compliance_items + + @compliance_items.setter + def compliance_items(self, compliance_items): + """Sets the compliance_items of this ShowInstancePatchItemsResponse. + + 补丁合规信息 + + :param compliance_items: The compliance_items of this ShowInstancePatchItemsResponse. + :type compliance_items: list[:class:`huaweicloudsdkcoc.v1.ComplianceItem`] + """ + self._compliance_items = compliance_items + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowInstancePatchItemsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/sync_resource_req.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/sync_resource_req.py new file mode 100644 index 0000000000..a8611ab5c4 --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/sync_resource_req.py @@ -0,0 +1,142 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class SyncResourceReq: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'provider': 'str', + 'type': 'str' + } + + attribute_map = { + 'provider': 'provider', + 'type': 'type' + } + + def __init__(self, provider=None, type=None): + """SyncResourceReq + + The model defined in huaweicloud sdk + + :param provider: 资源提供者 + :type provider: str + :param type: 资源类型 + :type type: str + """ + + + + self._provider = None + self._type = None + self.discriminator = None + + self.provider = provider + self.type = type + + @property + def provider(self): + """Gets the provider of this SyncResourceReq. + + 资源提供者 + + :return: The provider of this SyncResourceReq. + :rtype: str + """ + return self._provider + + @provider.setter + def provider(self, provider): + """Sets the provider of this SyncResourceReq. + + 资源提供者 + + :param provider: The provider of this SyncResourceReq. + :type provider: str + """ + self._provider = provider + + @property + def type(self): + """Gets the type of this SyncResourceReq. + + 资源类型 + + :return: The type of this SyncResourceReq. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this SyncResourceReq. + + 资源类型 + + :param type: The type of this SyncResourceReq. + :type type: str + """ + self._type = 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, SyncResourceReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/sync_resource_request.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/sync_resource_request.py new file mode 100644 index 0000000000..28cf2fea5f --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/sync_resource_request.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class SyncResourceRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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': 'SyncResourceReq' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """SyncResourceRequest + + The model defined in huaweicloud sdk + + :param body: Body of the SyncResourceRequest + :type body: :class:`huaweicloudsdkcoc.v1.SyncResourceReq` + """ + + + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this SyncResourceRequest. + + :return: The body of this SyncResourceRequest. + :rtype: :class:`huaweicloudsdkcoc.v1.SyncResourceReq` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this SyncResourceRequest. + + :param body: The body of this SyncResourceRequest. + :type body: :class:`huaweicloudsdkcoc.v1.SyncResourceReq` + """ + 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, SyncResourceRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/sync_resource_response.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/sync_resource_response.py new file mode 100644 index 0000000000..eb10a9db95 --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/sync_resource_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 SyncResourceResponse(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): + """SyncResourceResponse + + The model defined in huaweicloud sdk + + """ + + super(SyncResourceResponse, 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, SyncResourceResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/tag.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/tag.py new file mode 100644 index 0000000000..0f7db137b5 --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/tag.py @@ -0,0 +1,144 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class Tag: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'key': 'str', + 'value': 'str' + } + + attribute_map = { + 'key': 'key', + 'value': 'value' + } + + def __init__(self, key=None, value=None): + """Tag + + The model defined in huaweicloud sdk + + :param key: 标签的key值 + :type key: str + :param value: 标签的value值 + :type value: str + """ + + + + self._key = None + self._value = None + self.discriminator = None + + if key is not None: + self.key = key + if value is not None: + self.value = value + + @property + def key(self): + """Gets the key of this Tag. + + 标签的key值 + + :return: The key of this Tag. + :rtype: str + """ + return self._key + + @key.setter + def key(self, key): + """Sets the key of this Tag. + + 标签的key值 + + :param key: The key of this Tag. + :type key: str + """ + self._key = key + + @property + def value(self): + """Gets the value of this Tag. + + 标签的value值 + + :return: The value of this Tag. + :rtype: str + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this Tag. + + 标签的value值 + + :param value: The value of this Tag. + :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, Tag): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/ticket_history_info.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/ticket_history_info.py new file mode 100644 index 0000000000..f193bb7e6a --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/ticket_history_info.py @@ -0,0 +1,927 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class TicketHistoryInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'current_cloud_service_id': 'str', + 'description': 'str', + 'level_id': 'str', + 'mtm_region': 'str', + 'mtm_type': 'str', + 'source_id': 'str', + 'title': 'str', + 'is_change_event': 'bool', + 'is_service_interrupt': 'bool', + 'action_id': 'str', + 'action': 'str', + 'sub_action': 'str', + 'operator': 'str', + 'comment': 'str', + 'id': 'str', + 'ticket_id': 'str', + 'start_time': 'int', + 'stop_time': 'int', + 'target_type': 'str', + 'target_value': 'str', + 'is_deteted': 'bool', + 'update_time': 'int', + 'action_name_zh': 'str', + 'action_name_en': 'str', + 'action_template_zh': 'str', + 'action_template_en': 'str', + 'status': 'str', + 'final_sub_action': 'str', + 'enum_data_list': 'list[EnumDataInfo]' + } + + attribute_map = { + 'current_cloud_service_id': 'current_cloud_service_id', + 'description': 'description', + 'level_id': 'level_id', + 'mtm_region': 'mtm_region', + 'mtm_type': 'mtm_type', + 'source_id': 'source_id', + 'title': 'title', + 'is_change_event': 'is_change_event', + 'is_service_interrupt': 'is_service_interrupt', + 'action_id': 'action_id', + 'action': 'action', + 'sub_action': 'sub_action', + 'operator': 'operator', + 'comment': 'comment', + 'id': 'id', + 'ticket_id': 'ticket_id', + 'start_time': 'start_time', + 'stop_time': 'stop_time', + 'target_type': 'target_type', + 'target_value': 'target_value', + 'is_deteted': 'is_deteted', + 'update_time': 'update_time', + 'action_name_zh': 'action_name_zh', + 'action_name_en': 'action_name_en', + 'action_template_zh': 'action_template_zh', + 'action_template_en': 'action_template_en', + 'status': 'status', + 'final_sub_action': 'final_sub_action', + 'enum_data_list': 'enum_data_list' + } + + def __init__(self, current_cloud_service_id=None, description=None, level_id=None, mtm_region=None, mtm_type=None, source_id=None, title=None, is_change_event=None, is_service_interrupt=None, action_id=None, action=None, sub_action=None, operator=None, comment=None, id=None, ticket_id=None, start_time=None, stop_time=None, target_type=None, target_value=None, is_deteted=None, update_time=None, action_name_zh=None, action_name_en=None, action_template_zh=None, action_template_en=None, status=None, final_sub_action=None, enum_data_list=None): + """TicketHistoryInfo + + The model defined in huaweicloud sdk + + :param current_cloud_service_id: 扩展字段 + :type current_cloud_service_id: str + :param description: 扩展字段 + :type description: str + :param level_id: 扩展字段 + :type level_id: str + :param mtm_region: 扩展字段 + :type mtm_region: str + :param mtm_type: 扩展字段 + :type mtm_type: str + :param source_id: 扩展字段 + :type source_id: str + :param title: 扩展字段 + :type title: str + :param is_change_event: 是否变更事件 + :type is_change_event: bool + :param is_service_interrupt: 是否变更事件 + :type is_service_interrupt: bool + :param action_id: 操作标识 + :type action_id: str + :param action: 动作 + :type action: str + :param sub_action: 子动作 + :type sub_action: str + :param operator: 操作人 + :type operator: str + :param comment: 评论 + :type comment: str + :param id: 主键 + :type id: str + :param ticket_id: 单号 + :type ticket_id: str + :param start_time: 起始时间 + :type start_time: int + :param stop_time: 结束时间 + :type stop_time: int + :param target_type: 对象类型 + :type target_type: str + :param target_value: 对象值 + :type target_value: str + :param is_deteted: 待修改 + :type is_deteted: bool + :param update_time: 更新时间 + :type update_time: int + :param action_name_zh: action中文名 + :type action_name_zh: str + :param action_name_en: action英文名 + :type action_name_en: str + :param action_template_zh: action中文模板 + :type action_template_zh: str + :param action_template_en: action中文模板 + :type action_template_en: str + :param status: 工单状态 + :type status: str + :param final_sub_action: 最终子动作 + :type final_sub_action: str + :param enum_data_list: 枚举数据 + :type enum_data_list: list[:class:`huaweicloudsdkcoc.v1.EnumDataInfo`] + """ + + + + self._current_cloud_service_id = None + self._description = None + self._level_id = None + self._mtm_region = None + self._mtm_type = None + self._source_id = None + self._title = None + self._is_change_event = None + self._is_service_interrupt = None + self._action_id = None + self._action = None + self._sub_action = None + self._operator = None + self._comment = None + self._id = None + self._ticket_id = None + self._start_time = None + self._stop_time = None + self._target_type = None + self._target_value = None + self._is_deteted = None + self._update_time = None + self._action_name_zh = None + self._action_name_en = None + self._action_template_zh = None + self._action_template_en = None + self._status = None + self._final_sub_action = None + self._enum_data_list = None + self.discriminator = None + + if current_cloud_service_id is not None: + self.current_cloud_service_id = current_cloud_service_id + if description is not None: + self.description = description + if level_id is not None: + self.level_id = level_id + if mtm_region is not None: + self.mtm_region = mtm_region + if mtm_type is not None: + self.mtm_type = mtm_type + if source_id is not None: + self.source_id = source_id + if title is not None: + self.title = title + if is_change_event is not None: + self.is_change_event = is_change_event + if is_service_interrupt is not None: + self.is_service_interrupt = is_service_interrupt + if action_id is not None: + self.action_id = action_id + if action is not None: + self.action = action + if sub_action is not None: + self.sub_action = sub_action + if operator is not None: + self.operator = operator + if comment is not None: + self.comment = comment + if id is not None: + self.id = id + if ticket_id is not None: + self.ticket_id = ticket_id + if start_time is not None: + self.start_time = start_time + if stop_time is not None: + self.stop_time = stop_time + if target_type is not None: + self.target_type = target_type + if target_value is not None: + self.target_value = target_value + if is_deteted is not None: + self.is_deteted = is_deteted + if update_time is not None: + self.update_time = update_time + if action_name_zh is not None: + self.action_name_zh = action_name_zh + if action_name_en is not None: + self.action_name_en = action_name_en + if action_template_zh is not None: + self.action_template_zh = action_template_zh + if action_template_en is not None: + self.action_template_en = action_template_en + if status is not None: + self.status = status + if final_sub_action is not None: + self.final_sub_action = final_sub_action + if enum_data_list is not None: + self.enum_data_list = enum_data_list + + @property + def current_cloud_service_id(self): + """Gets the current_cloud_service_id of this TicketHistoryInfo. + + 扩展字段 + + :return: The current_cloud_service_id of this TicketHistoryInfo. + :rtype: str + """ + return self._current_cloud_service_id + + @current_cloud_service_id.setter + def current_cloud_service_id(self, current_cloud_service_id): + """Sets the current_cloud_service_id of this TicketHistoryInfo. + + 扩展字段 + + :param current_cloud_service_id: The current_cloud_service_id of this TicketHistoryInfo. + :type current_cloud_service_id: str + """ + self._current_cloud_service_id = current_cloud_service_id + + @property + def description(self): + """Gets the description of this TicketHistoryInfo. + + 扩展字段 + + :return: The description of this TicketHistoryInfo. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this TicketHistoryInfo. + + 扩展字段 + + :param description: The description of this TicketHistoryInfo. + :type description: str + """ + self._description = description + + @property + def level_id(self): + """Gets the level_id of this TicketHistoryInfo. + + 扩展字段 + + :return: The level_id of this TicketHistoryInfo. + :rtype: str + """ + return self._level_id + + @level_id.setter + def level_id(self, level_id): + """Sets the level_id of this TicketHistoryInfo. + + 扩展字段 + + :param level_id: The level_id of this TicketHistoryInfo. + :type level_id: str + """ + self._level_id = level_id + + @property + def mtm_region(self): + """Gets the mtm_region of this TicketHistoryInfo. + + 扩展字段 + + :return: The mtm_region of this TicketHistoryInfo. + :rtype: str + """ + return self._mtm_region + + @mtm_region.setter + def mtm_region(self, mtm_region): + """Sets the mtm_region of this TicketHistoryInfo. + + 扩展字段 + + :param mtm_region: The mtm_region of this TicketHistoryInfo. + :type mtm_region: str + """ + self._mtm_region = mtm_region + + @property + def mtm_type(self): + """Gets the mtm_type of this TicketHistoryInfo. + + 扩展字段 + + :return: The mtm_type of this TicketHistoryInfo. + :rtype: str + """ + return self._mtm_type + + @mtm_type.setter + def mtm_type(self, mtm_type): + """Sets the mtm_type of this TicketHistoryInfo. + + 扩展字段 + + :param mtm_type: The mtm_type of this TicketHistoryInfo. + :type mtm_type: str + """ + self._mtm_type = mtm_type + + @property + def source_id(self): + """Gets the source_id of this TicketHistoryInfo. + + 扩展字段 + + :return: The source_id of this TicketHistoryInfo. + :rtype: str + """ + return self._source_id + + @source_id.setter + def source_id(self, source_id): + """Sets the source_id of this TicketHistoryInfo. + + 扩展字段 + + :param source_id: The source_id of this TicketHistoryInfo. + :type source_id: str + """ + self._source_id = source_id + + @property + def title(self): + """Gets the title of this TicketHistoryInfo. + + 扩展字段 + + :return: The title of this TicketHistoryInfo. + :rtype: str + """ + return self._title + + @title.setter + def title(self, title): + """Sets the title of this TicketHistoryInfo. + + 扩展字段 + + :param title: The title of this TicketHistoryInfo. + :type title: str + """ + self._title = title + + @property + def is_change_event(self): + """Gets the is_change_event of this TicketHistoryInfo. + + 是否变更事件 + + :return: The is_change_event of this TicketHistoryInfo. + :rtype: bool + """ + return self._is_change_event + + @is_change_event.setter + def is_change_event(self, is_change_event): + """Sets the is_change_event of this TicketHistoryInfo. + + 是否变更事件 + + :param is_change_event: The is_change_event of this TicketHistoryInfo. + :type is_change_event: bool + """ + self._is_change_event = is_change_event + + @property + def is_service_interrupt(self): + """Gets the is_service_interrupt of this TicketHistoryInfo. + + 是否变更事件 + + :return: The is_service_interrupt of this TicketHistoryInfo. + :rtype: bool + """ + return self._is_service_interrupt + + @is_service_interrupt.setter + def is_service_interrupt(self, is_service_interrupt): + """Sets the is_service_interrupt of this TicketHistoryInfo. + + 是否变更事件 + + :param is_service_interrupt: The is_service_interrupt of this TicketHistoryInfo. + :type is_service_interrupt: bool + """ + self._is_service_interrupt = is_service_interrupt + + @property + def action_id(self): + """Gets the action_id of this TicketHistoryInfo. + + 操作标识 + + :return: The action_id of this TicketHistoryInfo. + :rtype: str + """ + return self._action_id + + @action_id.setter + def action_id(self, action_id): + """Sets the action_id of this TicketHistoryInfo. + + 操作标识 + + :param action_id: The action_id of this TicketHistoryInfo. + :type action_id: str + """ + self._action_id = action_id + + @property + def action(self): + """Gets the action of this TicketHistoryInfo. + + 动作 + + :return: The action of this TicketHistoryInfo. + :rtype: str + """ + return self._action + + @action.setter + def action(self, action): + """Sets the action of this TicketHistoryInfo. + + 动作 + + :param action: The action of this TicketHistoryInfo. + :type action: str + """ + self._action = action + + @property + def sub_action(self): + """Gets the sub_action of this TicketHistoryInfo. + + 子动作 + + :return: The sub_action of this TicketHistoryInfo. + :rtype: str + """ + return self._sub_action + + @sub_action.setter + def sub_action(self, sub_action): + """Sets the sub_action of this TicketHistoryInfo. + + 子动作 + + :param sub_action: The sub_action of this TicketHistoryInfo. + :type sub_action: str + """ + self._sub_action = sub_action + + @property + def operator(self): + """Gets the operator of this TicketHistoryInfo. + + 操作人 + + :return: The operator of this TicketHistoryInfo. + :rtype: str + """ + return self._operator + + @operator.setter + def operator(self, operator): + """Sets the operator of this TicketHistoryInfo. + + 操作人 + + :param operator: The operator of this TicketHistoryInfo. + :type operator: str + """ + self._operator = operator + + @property + def comment(self): + """Gets the comment of this TicketHistoryInfo. + + 评论 + + :return: The comment of this TicketHistoryInfo. + :rtype: str + """ + return self._comment + + @comment.setter + def comment(self, comment): + """Sets the comment of this TicketHistoryInfo. + + 评论 + + :param comment: The comment of this TicketHistoryInfo. + :type comment: str + """ + self._comment = comment + + @property + def id(self): + """Gets the id of this TicketHistoryInfo. + + 主键 + + :return: The id of this TicketHistoryInfo. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this TicketHistoryInfo. + + 主键 + + :param id: The id of this TicketHistoryInfo. + :type id: str + """ + self._id = id + + @property + def ticket_id(self): + """Gets the ticket_id of this TicketHistoryInfo. + + 单号 + + :return: The ticket_id of this TicketHistoryInfo. + :rtype: str + """ + return self._ticket_id + + @ticket_id.setter + def ticket_id(self, ticket_id): + """Sets the ticket_id of this TicketHistoryInfo. + + 单号 + + :param ticket_id: The ticket_id of this TicketHistoryInfo. + :type ticket_id: str + """ + self._ticket_id = ticket_id + + @property + def start_time(self): + """Gets the start_time of this TicketHistoryInfo. + + 起始时间 + + :return: The start_time of this TicketHistoryInfo. + :rtype: int + """ + return self._start_time + + @start_time.setter + def start_time(self, start_time): + """Sets the start_time of this TicketHistoryInfo. + + 起始时间 + + :param start_time: The start_time of this TicketHistoryInfo. + :type start_time: int + """ + self._start_time = start_time + + @property + def stop_time(self): + """Gets the stop_time of this TicketHistoryInfo. + + 结束时间 + + :return: The stop_time of this TicketHistoryInfo. + :rtype: int + """ + return self._stop_time + + @stop_time.setter + def stop_time(self, stop_time): + """Sets the stop_time of this TicketHistoryInfo. + + 结束时间 + + :param stop_time: The stop_time of this TicketHistoryInfo. + :type stop_time: int + """ + self._stop_time = stop_time + + @property + def target_type(self): + """Gets the target_type of this TicketHistoryInfo. + + 对象类型 + + :return: The target_type of this TicketHistoryInfo. + :rtype: str + """ + return self._target_type + + @target_type.setter + def target_type(self, target_type): + """Sets the target_type of this TicketHistoryInfo. + + 对象类型 + + :param target_type: The target_type of this TicketHistoryInfo. + :type target_type: str + """ + self._target_type = target_type + + @property + def target_value(self): + """Gets the target_value of this TicketHistoryInfo. + + 对象值 + + :return: The target_value of this TicketHistoryInfo. + :rtype: str + """ + return self._target_value + + @target_value.setter + def target_value(self, target_value): + """Sets the target_value of this TicketHistoryInfo. + + 对象值 + + :param target_value: The target_value of this TicketHistoryInfo. + :type target_value: str + """ + self._target_value = target_value + + @property + def is_deteted(self): + """Gets the is_deteted of this TicketHistoryInfo. + + 待修改 + + :return: The is_deteted of this TicketHistoryInfo. + :rtype: bool + """ + return self._is_deteted + + @is_deteted.setter + def is_deteted(self, is_deteted): + """Sets the is_deteted of this TicketHistoryInfo. + + 待修改 + + :param is_deteted: The is_deteted of this TicketHistoryInfo. + :type is_deteted: bool + """ + self._is_deteted = is_deteted + + @property + def update_time(self): + """Gets the update_time of this TicketHistoryInfo. + + 更新时间 + + :return: The update_time of this TicketHistoryInfo. + :rtype: int + """ + return self._update_time + + @update_time.setter + def update_time(self, update_time): + """Sets the update_time of this TicketHistoryInfo. + + 更新时间 + + :param update_time: The update_time of this TicketHistoryInfo. + :type update_time: int + """ + self._update_time = update_time + + @property + def action_name_zh(self): + """Gets the action_name_zh of this TicketHistoryInfo. + + action中文名 + + :return: The action_name_zh of this TicketHistoryInfo. + :rtype: str + """ + return self._action_name_zh + + @action_name_zh.setter + def action_name_zh(self, action_name_zh): + """Sets the action_name_zh of this TicketHistoryInfo. + + action中文名 + + :param action_name_zh: The action_name_zh of this TicketHistoryInfo. + :type action_name_zh: str + """ + self._action_name_zh = action_name_zh + + @property + def action_name_en(self): + """Gets the action_name_en of this TicketHistoryInfo. + + action英文名 + + :return: The action_name_en of this TicketHistoryInfo. + :rtype: str + """ + return self._action_name_en + + @action_name_en.setter + def action_name_en(self, action_name_en): + """Sets the action_name_en of this TicketHistoryInfo. + + action英文名 + + :param action_name_en: The action_name_en of this TicketHistoryInfo. + :type action_name_en: str + """ + self._action_name_en = action_name_en + + @property + def action_template_zh(self): + """Gets the action_template_zh of this TicketHistoryInfo. + + action中文模板 + + :return: The action_template_zh of this TicketHistoryInfo. + :rtype: str + """ + return self._action_template_zh + + @action_template_zh.setter + def action_template_zh(self, action_template_zh): + """Sets the action_template_zh of this TicketHistoryInfo. + + action中文模板 + + :param action_template_zh: The action_template_zh of this TicketHistoryInfo. + :type action_template_zh: str + """ + self._action_template_zh = action_template_zh + + @property + def action_template_en(self): + """Gets the action_template_en of this TicketHistoryInfo. + + action中文模板 + + :return: The action_template_en of this TicketHistoryInfo. + :rtype: str + """ + return self._action_template_en + + @action_template_en.setter + def action_template_en(self, action_template_en): + """Sets the action_template_en of this TicketHistoryInfo. + + action中文模板 + + :param action_template_en: The action_template_en of this TicketHistoryInfo. + :type action_template_en: str + """ + self._action_template_en = action_template_en + + @property + def status(self): + """Gets the status of this TicketHistoryInfo. + + 工单状态 + + :return: The status of this TicketHistoryInfo. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this TicketHistoryInfo. + + 工单状态 + + :param status: The status of this TicketHistoryInfo. + :type status: str + """ + self._status = status + + @property + def final_sub_action(self): + """Gets the final_sub_action of this TicketHistoryInfo. + + 最终子动作 + + :return: The final_sub_action of this TicketHistoryInfo. + :rtype: str + """ + return self._final_sub_action + + @final_sub_action.setter + def final_sub_action(self, final_sub_action): + """Sets the final_sub_action of this TicketHistoryInfo. + + 最终子动作 + + :param final_sub_action: The final_sub_action of this TicketHistoryInfo. + :type final_sub_action: str + """ + self._final_sub_action = final_sub_action + + @property + def enum_data_list(self): + """Gets the enum_data_list of this TicketHistoryInfo. + + 枚举数据 + + :return: The enum_data_list of this TicketHistoryInfo. + :rtype: list[:class:`huaweicloudsdkcoc.v1.EnumDataInfo`] + """ + return self._enum_data_list + + @enum_data_list.setter + def enum_data_list(self, enum_data_list): + """Sets the enum_data_list of this TicketHistoryInfo. + + 枚举数据 + + :param enum_data_list: The enum_data_list of this TicketHistoryInfo. + :type enum_data_list: list[:class:`huaweicloudsdkcoc.v1.EnumDataInfo`] + """ + self._enum_data_list = enum_data_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, TicketHistoryInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/ticket_info_enum_data.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/ticket_info_enum_data.py new file mode 100644 index 0000000000..96a142aea2 --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/ticket_info_enum_data.py @@ -0,0 +1,198 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class TicketInfoEnumData: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'filed_key': 'str', + 'enum_key': 'str', + 'name_zh': 'str', + 'name_en': 'str' + } + + attribute_map = { + 'filed_key': 'filed_key', + 'enum_key': 'enum_key', + 'name_zh': 'name_zh', + 'name_en': 'name_en' + } + + def __init__(self, filed_key=None, enum_key=None, name_zh=None, name_en=None): + """TicketInfoEnumData + + The model defined in huaweicloud sdk + + :param filed_key: 字段KEY 标识哪个字段 + :type filed_key: str + :param enum_key: 枚举KEY + :type enum_key: str + :param name_zh: 中文名称 + :type name_zh: str + :param name_en: 英文名称 + :type name_en: str + """ + + + + self._filed_key = None + self._enum_key = None + self._name_zh = None + self._name_en = None + self.discriminator = None + + self.filed_key = filed_key + self.enum_key = enum_key + self.name_zh = name_zh + self.name_en = name_en + + @property + def filed_key(self): + """Gets the filed_key of this TicketInfoEnumData. + + 字段KEY 标识哪个字段 + + :return: The filed_key of this TicketInfoEnumData. + :rtype: str + """ + return self._filed_key + + @filed_key.setter + def filed_key(self, filed_key): + """Sets the filed_key of this TicketInfoEnumData. + + 字段KEY 标识哪个字段 + + :param filed_key: The filed_key of this TicketInfoEnumData. + :type filed_key: str + """ + self._filed_key = filed_key + + @property + def enum_key(self): + """Gets the enum_key of this TicketInfoEnumData. + + 枚举KEY + + :return: The enum_key of this TicketInfoEnumData. + :rtype: str + """ + return self._enum_key + + @enum_key.setter + def enum_key(self, enum_key): + """Sets the enum_key of this TicketInfoEnumData. + + 枚举KEY + + :param enum_key: The enum_key of this TicketInfoEnumData. + :type enum_key: str + """ + self._enum_key = enum_key + + @property + def name_zh(self): + """Gets the name_zh of this TicketInfoEnumData. + + 中文名称 + + :return: The name_zh of this TicketInfoEnumData. + :rtype: str + """ + return self._name_zh + + @name_zh.setter + def name_zh(self, name_zh): + """Sets the name_zh of this TicketInfoEnumData. + + 中文名称 + + :param name_zh: The name_zh of this TicketInfoEnumData. + :type name_zh: str + """ + self._name_zh = name_zh + + @property + def name_en(self): + """Gets the name_en of this TicketInfoEnumData. + + 英文名称 + + :return: The name_en of this TicketInfoEnumData. + :rtype: str + """ + return self._name_en + + @name_en.setter + def name_en(self, name_en): + """Sets the name_en of this TicketInfoEnumData. + + 英文名称 + + :param name_en: The name_en of this TicketInfoEnumData. + :type name_en: str + """ + self._name_en = name_en + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, TicketInfoEnumData): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/update_script_request.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/update_script_request.py new file mode 100644 index 0000000000..ece0fe2a9f --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/update_script_request.py @@ -0,0 +1,226 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateScriptRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'script_uuid': 'str', + 'x_language': 'str', + 'x_project_id': 'str', + 'x_user_profile': 'str', + 'body': 'EditScriptModel' + } + + attribute_map = { + 'script_uuid': 'script_uuid', + 'x_language': 'X-Language', + 'x_project_id': 'x-project-id', + 'x_user_profile': 'x-user-profile', + 'body': 'body' + } + + def __init__(self, script_uuid=None, x_language=None, x_project_id=None, x_user_profile=None, body=None): + """UpdateScriptRequest + + The model defined in huaweicloud sdk + + :param script_uuid: 脚本uuid + :type script_uuid: str + :param x_language: 国际化标记,zh-cn表示中文,en-us或不传表示英文 + :type x_language: str + :param x_project_id: 项目ID,一个项目对应一个region + :type x_project_id: str + :param x_user_profile: IAM5.0用户信息 + :type x_user_profile: str + :param body: Body of the UpdateScriptRequest + :type body: :class:`huaweicloudsdkcoc.v1.EditScriptModel` + """ + + + + self._script_uuid = None + self._x_language = None + self._x_project_id = None + self._x_user_profile = None + self._body = None + self.discriminator = None + + self.script_uuid = script_uuid + if x_language is not None: + self.x_language = x_language + if x_project_id is not None: + self.x_project_id = x_project_id + if x_user_profile is not None: + self.x_user_profile = x_user_profile + if body is not None: + self.body = body + + @property + def script_uuid(self): + """Gets the script_uuid of this UpdateScriptRequest. + + 脚本uuid + + :return: The script_uuid of this UpdateScriptRequest. + :rtype: str + """ + return self._script_uuid + + @script_uuid.setter + def script_uuid(self, script_uuid): + """Sets the script_uuid of this UpdateScriptRequest. + + 脚本uuid + + :param script_uuid: The script_uuid of this UpdateScriptRequest. + :type script_uuid: str + """ + self._script_uuid = script_uuid + + @property + def x_language(self): + """Gets the x_language of this UpdateScriptRequest. + + 国际化标记,zh-cn表示中文,en-us或不传表示英文 + + :return: The x_language of this UpdateScriptRequest. + :rtype: str + """ + return self._x_language + + @x_language.setter + def x_language(self, x_language): + """Sets the x_language of this UpdateScriptRequest. + + 国际化标记,zh-cn表示中文,en-us或不传表示英文 + + :param x_language: The x_language of this UpdateScriptRequest. + :type x_language: str + """ + self._x_language = x_language + + @property + def x_project_id(self): + """Gets the x_project_id of this UpdateScriptRequest. + + 项目ID,一个项目对应一个region + + :return: The x_project_id of this UpdateScriptRequest. + :rtype: str + """ + return self._x_project_id + + @x_project_id.setter + def x_project_id(self, x_project_id): + """Sets the x_project_id of this UpdateScriptRequest. + + 项目ID,一个项目对应一个region + + :param x_project_id: The x_project_id of this UpdateScriptRequest. + :type x_project_id: str + """ + self._x_project_id = x_project_id + + @property + def x_user_profile(self): + """Gets the x_user_profile of this UpdateScriptRequest. + + IAM5.0用户信息 + + :return: The x_user_profile of this UpdateScriptRequest. + :rtype: str + """ + return self._x_user_profile + + @x_user_profile.setter + def x_user_profile(self, x_user_profile): + """Sets the x_user_profile of this UpdateScriptRequest. + + IAM5.0用户信息 + + :param x_user_profile: The x_user_profile of this UpdateScriptRequest. + :type x_user_profile: str + """ + self._x_user_profile = x_user_profile + + @property + def body(self): + """Gets the body of this UpdateScriptRequest. + + :return: The body of this UpdateScriptRequest. + :rtype: :class:`huaweicloudsdkcoc.v1.EditScriptModel` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdateScriptRequest. + + :param body: The body of this UpdateScriptRequest. + :type body: :class:`huaweicloudsdkcoc.v1.EditScriptModel` + """ + 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, UpdateScriptRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/update_script_response.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/update_script_response.py new file mode 100644 index 0000000000..8befb247b5 --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/update_script_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 UpdateScriptResponse(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): + """UpdateScriptResponse + + The model defined in huaweicloud sdk + + :param data: 被修改脚本的script_uuid + :type data: str + """ + + super(UpdateScriptResponse, 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 UpdateScriptResponse. + + 被修改脚本的script_uuid + + :return: The data of this UpdateScriptResponse. + :rtype: str + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this UpdateScriptResponse. + + 被修改脚本的script_uuid + + :param data: The data of this UpdateScriptResponse. + :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, UpdateScriptResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/update_ticket_history_info.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/update_ticket_history_info.py new file mode 100644 index 0000000000..200709eb05 --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/update_ticket_history_info.py @@ -0,0 +1,492 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateTicketHistoryInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'current_cloud_service_id': 'str', + 'description': 'str', + 'level_id': 'str', + 'mtm_region': 'str', + 'mtm_type': 'str', + 'source_id': 'str', + 'title': 'str', + 'is_change_event': 'bool', + 'is_service_interrupt': 'bool', + 'action_id': 'str', + 'action': 'str', + 'sub_action': 'str', + 'operator': 'str', + 'comment': 'str' + } + + attribute_map = { + 'current_cloud_service_id': 'current_cloud_service_id', + 'description': 'description', + 'level_id': 'level_id', + 'mtm_region': 'mtm_region', + 'mtm_type': 'mtm_type', + 'source_id': 'source_id', + 'title': 'title', + 'is_change_event': 'is_change_event', + 'is_service_interrupt': 'is_service_interrupt', + 'action_id': 'action_id', + 'action': 'action', + 'sub_action': 'sub_action', + 'operator': 'operator', + 'comment': 'comment' + } + + def __init__(self, current_cloud_service_id=None, description=None, level_id=None, mtm_region=None, mtm_type=None, source_id=None, title=None, is_change_event=None, is_service_interrupt=None, action_id=None, action=None, sub_action=None, operator=None, comment=None): + """UpdateTicketHistoryInfo + + The model defined in huaweicloud sdk + + :param current_cloud_service_id: 扩展字段 + :type current_cloud_service_id: str + :param description: 扩展字段 + :type description: str + :param level_id: 扩展字段 + :type level_id: str + :param mtm_region: 扩展字段 + :type mtm_region: str + :param mtm_type: 扩展字段 + :type mtm_type: str + :param source_id: 扩展字段 + :type source_id: str + :param title: 扩展字段 + :type title: str + :param is_change_event: 是否变更事件 + :type is_change_event: bool + :param is_service_interrupt: 是否变更事件 + :type is_service_interrupt: bool + :param action_id: 操作标识 + :type action_id: str + :param action: 动作 + :type action: str + :param sub_action: 子动作 + :type sub_action: str + :param operator: 操作人 + :type operator: str + :param comment: 评论 + :type comment: str + """ + + + + self._current_cloud_service_id = None + self._description = None + self._level_id = None + self._mtm_region = None + self._mtm_type = None + self._source_id = None + self._title = None + self._is_change_event = None + self._is_service_interrupt = None + self._action_id = None + self._action = None + self._sub_action = None + self._operator = None + self._comment = None + self.discriminator = None + + if current_cloud_service_id is not None: + self.current_cloud_service_id = current_cloud_service_id + if description is not None: + self.description = description + if level_id is not None: + self.level_id = level_id + if mtm_region is not None: + self.mtm_region = mtm_region + if mtm_type is not None: + self.mtm_type = mtm_type + if source_id is not None: + self.source_id = source_id + if title is not None: + self.title = title + if is_change_event is not None: + self.is_change_event = is_change_event + if is_service_interrupt is not None: + self.is_service_interrupt = is_service_interrupt + if action_id is not None: + self.action_id = action_id + if action is not None: + self.action = action + if sub_action is not None: + self.sub_action = sub_action + if operator is not None: + self.operator = operator + if comment is not None: + self.comment = comment + + @property + def current_cloud_service_id(self): + """Gets the current_cloud_service_id of this UpdateTicketHistoryInfo. + + 扩展字段 + + :return: The current_cloud_service_id of this UpdateTicketHistoryInfo. + :rtype: str + """ + return self._current_cloud_service_id + + @current_cloud_service_id.setter + def current_cloud_service_id(self, current_cloud_service_id): + """Sets the current_cloud_service_id of this UpdateTicketHistoryInfo. + + 扩展字段 + + :param current_cloud_service_id: The current_cloud_service_id of this UpdateTicketHistoryInfo. + :type current_cloud_service_id: str + """ + self._current_cloud_service_id = current_cloud_service_id + + @property + def description(self): + """Gets the description of this UpdateTicketHistoryInfo. + + 扩展字段 + + :return: The description of this UpdateTicketHistoryInfo. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this UpdateTicketHistoryInfo. + + 扩展字段 + + :param description: The description of this UpdateTicketHistoryInfo. + :type description: str + """ + self._description = description + + @property + def level_id(self): + """Gets the level_id of this UpdateTicketHistoryInfo. + + 扩展字段 + + :return: The level_id of this UpdateTicketHistoryInfo. + :rtype: str + """ + return self._level_id + + @level_id.setter + def level_id(self, level_id): + """Sets the level_id of this UpdateTicketHistoryInfo. + + 扩展字段 + + :param level_id: The level_id of this UpdateTicketHistoryInfo. + :type level_id: str + """ + self._level_id = level_id + + @property + def mtm_region(self): + """Gets the mtm_region of this UpdateTicketHistoryInfo. + + 扩展字段 + + :return: The mtm_region of this UpdateTicketHistoryInfo. + :rtype: str + """ + return self._mtm_region + + @mtm_region.setter + def mtm_region(self, mtm_region): + """Sets the mtm_region of this UpdateTicketHistoryInfo. + + 扩展字段 + + :param mtm_region: The mtm_region of this UpdateTicketHistoryInfo. + :type mtm_region: str + """ + self._mtm_region = mtm_region + + @property + def mtm_type(self): + """Gets the mtm_type of this UpdateTicketHistoryInfo. + + 扩展字段 + + :return: The mtm_type of this UpdateTicketHistoryInfo. + :rtype: str + """ + return self._mtm_type + + @mtm_type.setter + def mtm_type(self, mtm_type): + """Sets the mtm_type of this UpdateTicketHistoryInfo. + + 扩展字段 + + :param mtm_type: The mtm_type of this UpdateTicketHistoryInfo. + :type mtm_type: str + """ + self._mtm_type = mtm_type + + @property + def source_id(self): + """Gets the source_id of this UpdateTicketHistoryInfo. + + 扩展字段 + + :return: The source_id of this UpdateTicketHistoryInfo. + :rtype: str + """ + return self._source_id + + @source_id.setter + def source_id(self, source_id): + """Sets the source_id of this UpdateTicketHistoryInfo. + + 扩展字段 + + :param source_id: The source_id of this UpdateTicketHistoryInfo. + :type source_id: str + """ + self._source_id = source_id + + @property + def title(self): + """Gets the title of this UpdateTicketHistoryInfo. + + 扩展字段 + + :return: The title of this UpdateTicketHistoryInfo. + :rtype: str + """ + return self._title + + @title.setter + def title(self, title): + """Sets the title of this UpdateTicketHistoryInfo. + + 扩展字段 + + :param title: The title of this UpdateTicketHistoryInfo. + :type title: str + """ + self._title = title + + @property + def is_change_event(self): + """Gets the is_change_event of this UpdateTicketHistoryInfo. + + 是否变更事件 + + :return: The is_change_event of this UpdateTicketHistoryInfo. + :rtype: bool + """ + return self._is_change_event + + @is_change_event.setter + def is_change_event(self, is_change_event): + """Sets the is_change_event of this UpdateTicketHistoryInfo. + + 是否变更事件 + + :param is_change_event: The is_change_event of this UpdateTicketHistoryInfo. + :type is_change_event: bool + """ + self._is_change_event = is_change_event + + @property + def is_service_interrupt(self): + """Gets the is_service_interrupt of this UpdateTicketHistoryInfo. + + 是否变更事件 + + :return: The is_service_interrupt of this UpdateTicketHistoryInfo. + :rtype: bool + """ + return self._is_service_interrupt + + @is_service_interrupt.setter + def is_service_interrupt(self, is_service_interrupt): + """Sets the is_service_interrupt of this UpdateTicketHistoryInfo. + + 是否变更事件 + + :param is_service_interrupt: The is_service_interrupt of this UpdateTicketHistoryInfo. + :type is_service_interrupt: bool + """ + self._is_service_interrupt = is_service_interrupt + + @property + def action_id(self): + """Gets the action_id of this UpdateTicketHistoryInfo. + + 操作标识 + + :return: The action_id of this UpdateTicketHistoryInfo. + :rtype: str + """ + return self._action_id + + @action_id.setter + def action_id(self, action_id): + """Sets the action_id of this UpdateTicketHistoryInfo. + + 操作标识 + + :param action_id: The action_id of this UpdateTicketHistoryInfo. + :type action_id: str + """ + self._action_id = action_id + + @property + def action(self): + """Gets the action of this UpdateTicketHistoryInfo. + + 动作 + + :return: The action of this UpdateTicketHistoryInfo. + :rtype: str + """ + return self._action + + @action.setter + def action(self, action): + """Sets the action of this UpdateTicketHistoryInfo. + + 动作 + + :param action: The action of this UpdateTicketHistoryInfo. + :type action: str + """ + self._action = action + + @property + def sub_action(self): + """Gets the sub_action of this UpdateTicketHistoryInfo. + + 子动作 + + :return: The sub_action of this UpdateTicketHistoryInfo. + :rtype: str + """ + return self._sub_action + + @sub_action.setter + def sub_action(self, sub_action): + """Sets the sub_action of this UpdateTicketHistoryInfo. + + 子动作 + + :param sub_action: The sub_action of this UpdateTicketHistoryInfo. + :type sub_action: str + """ + self._sub_action = sub_action + + @property + def operator(self): + """Gets the operator of this UpdateTicketHistoryInfo. + + 操作人 + + :return: The operator of this UpdateTicketHistoryInfo. + :rtype: str + """ + return self._operator + + @operator.setter + def operator(self, operator): + """Sets the operator of this UpdateTicketHistoryInfo. + + 操作人 + + :param operator: The operator of this UpdateTicketHistoryInfo. + :type operator: str + """ + self._operator = operator + + @property + def comment(self): + """Gets the comment of this UpdateTicketHistoryInfo. + + 评论 + + :return: The comment of this UpdateTicketHistoryInfo. + :rtype: str + """ + return self._comment + + @comment.setter + def comment(self, comment): + """Sets the comment of this UpdateTicketHistoryInfo. + + 评论 + + :param comment: The comment of this UpdateTicketHistoryInfo. + :type comment: str + """ + self._comment = comment + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateTicketHistoryInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/war_room_enumeration.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/war_room_enumeration.py new file mode 100644 index 0000000000..807c337fbb --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/war_room_enumeration.py @@ -0,0 +1,202 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class WarRoomEnumeration: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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_zh': 'str', + 'name_en': 'str', + 'type': 'str' + } + + attribute_map = { + 'id': 'id', + 'name_zh': 'name_zh', + 'name_en': 'name_en', + 'type': 'type' + } + + def __init__(self, id=None, name_zh=None, name_en=None, type=None): + """WarRoomEnumeration + + The model defined in huaweicloud sdk + + :param id: 枚举值id + :type id: str + :param name_zh: 枚举值中文名 + :type name_zh: str + :param name_en: 枚举值英文名 + :type name_en: str + :param type: 枚举类型 + :type type: str + """ + + + + self._id = None + self._name_zh = None + self._name_en = None + self._type = None + self.discriminator = None + + if id is not None: + self.id = id + if name_zh is not None: + self.name_zh = name_zh + if name_en is not None: + self.name_en = name_en + if type is not None: + self.type = type + + @property + def id(self): + """Gets the id of this WarRoomEnumeration. + + 枚举值id + + :return: The id of this WarRoomEnumeration. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this WarRoomEnumeration. + + 枚举值id + + :param id: The id of this WarRoomEnumeration. + :type id: str + """ + self._id = id + + @property + def name_zh(self): + """Gets the name_zh of this WarRoomEnumeration. + + 枚举值中文名 + + :return: The name_zh of this WarRoomEnumeration. + :rtype: str + """ + return self._name_zh + + @name_zh.setter + def name_zh(self, name_zh): + """Sets the name_zh of this WarRoomEnumeration. + + 枚举值中文名 + + :param name_zh: The name_zh of this WarRoomEnumeration. + :type name_zh: str + """ + self._name_zh = name_zh + + @property + def name_en(self): + """Gets the name_en of this WarRoomEnumeration. + + 枚举值英文名 + + :return: The name_en of this WarRoomEnumeration. + :rtype: str + """ + return self._name_en + + @name_en.setter + def name_en(self, name_en): + """Sets the name_en of this WarRoomEnumeration. + + 枚举值英文名 + + :param name_en: The name_en of this WarRoomEnumeration. + :type name_en: str + """ + self._name_en = name_en + + @property + def type(self): + """Gets the type of this WarRoomEnumeration. + + 枚举类型 + + :return: The type of this WarRoomEnumeration. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this WarRoomEnumeration. + + 枚举类型 + + :param type: The type of this WarRoomEnumeration. + :type type: str + """ + self._type = 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, WarRoomEnumeration): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/war_room_incident.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/war_room_incident.py new file mode 100644 index 0000000000..6680799572 --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/war_room_incident.py @@ -0,0 +1,230 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class WarRoomIncident: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'incident_id': 'str', + 'is_change_event': 'bool', + 'failure_level': 'str', + 'incident_url': 'str' + } + + attribute_map = { + 'id': 'id', + 'incident_id': 'incident_id', + 'is_change_event': 'is_change_event', + 'failure_level': 'failure_level', + 'incident_url': 'incident_url' + } + + def __init__(self, id=None, incident_id=None, is_change_event=None, failure_level=None, incident_url=None): + """WarRoomIncident + + The model defined in huaweicloud sdk + + :param id: 主键 + :type id: str + :param incident_id: 事件id + :type incident_id: str + :param is_change_event: 是否变更事件 + :type is_change_event: bool + :param failure_level: 事件级别 + :type failure_level: str + :param incident_url: 事件单号链接 + :type incident_url: str + """ + + + + self._id = None + self._incident_id = None + self._is_change_event = None + self._failure_level = None + self._incident_url = None + self.discriminator = None + + self.id = id + if incident_id is not None: + self.incident_id = incident_id + if is_change_event is not None: + self.is_change_event = is_change_event + if failure_level is not None: + self.failure_level = failure_level + if incident_url is not None: + self.incident_url = incident_url + + @property + def id(self): + """Gets the id of this WarRoomIncident. + + 主键 + + :return: The id of this WarRoomIncident. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this WarRoomIncident. + + 主键 + + :param id: The id of this WarRoomIncident. + :type id: str + """ + self._id = id + + @property + def incident_id(self): + """Gets the incident_id of this WarRoomIncident. + + 事件id + + :return: The incident_id of this WarRoomIncident. + :rtype: str + """ + return self._incident_id + + @incident_id.setter + def incident_id(self, incident_id): + """Sets the incident_id of this WarRoomIncident. + + 事件id + + :param incident_id: The incident_id of this WarRoomIncident. + :type incident_id: str + """ + self._incident_id = incident_id + + @property + def is_change_event(self): + """Gets the is_change_event of this WarRoomIncident. + + 是否变更事件 + + :return: The is_change_event of this WarRoomIncident. + :rtype: bool + """ + return self._is_change_event + + @is_change_event.setter + def is_change_event(self, is_change_event): + """Sets the is_change_event of this WarRoomIncident. + + 是否变更事件 + + :param is_change_event: The is_change_event of this WarRoomIncident. + :type is_change_event: bool + """ + self._is_change_event = is_change_event + + @property + def failure_level(self): + """Gets the failure_level of this WarRoomIncident. + + 事件级别 + + :return: The failure_level of this WarRoomIncident. + :rtype: str + """ + return self._failure_level + + @failure_level.setter + def failure_level(self, failure_level): + """Sets the failure_level of this WarRoomIncident. + + 事件级别 + + :param failure_level: The failure_level of this WarRoomIncident. + :type failure_level: str + """ + self._failure_level = failure_level + + @property + def incident_url(self): + """Gets the incident_url of this WarRoomIncident. + + 事件单号链接 + + :return: The incident_url of this WarRoomIncident. + :rtype: str + """ + return self._incident_url + + @incident_url.setter + def incident_url(self, incident_url): + """Sets the incident_url of this WarRoomIncident. + + 事件单号链接 + + :param incident_url: The incident_url of this WarRoomIncident. + :type incident_url: str + """ + self._incident_url = incident_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, WarRoomIncident): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/war_room_tenant_info.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/war_room_tenant_info.py new file mode 100644 index 0000000000..8e62f673b9 --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/war_room_tenant_info.py @@ -0,0 +1,774 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class WarRoomTenantInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'title': 'str', + 'admin': 'str', + 'recover_member': 'list[str]', + 'recover_leader': 'list[str]', + 'incident': 'WarRoomIncident', + 'source': 'str', + 'regions': 'list[WarRoomTenantInfoRegions]', + 'change_num': 'str', + 'occur_time': 'int', + 'recover_time': 'int', + 'fault_cause': 'str', + 'create_time': 'int', + 'first_report_time': 'int', + 'recovery_notification_time': 'int', + 'fault_impact': 'str', + 'description': 'str', + 'circular_level': 'str', + 'war_room_status': 'WarRoomEnumeration', + 'impacted_application': 'list[WarRoomTenantInfoImpactedApplication]', + 'processing_duration': 'int', + 'restoration_duration': 'int', + 'war_room_num': 'str', + 'enterprise_project_id': 'str' + } + + attribute_map = { + 'id': 'id', + 'title': 'title', + 'admin': 'admin', + 'recover_member': 'recover_member', + 'recover_leader': 'recover_leader', + 'incident': 'incident', + 'source': 'source', + 'regions': 'regions', + 'change_num': 'change_num', + 'occur_time': 'occur_time', + 'recover_time': 'recover_time', + 'fault_cause': 'fault_cause', + 'create_time': 'create_time', + 'first_report_time': 'first_report_time', + 'recovery_notification_time': 'recovery_notification_time', + 'fault_impact': 'fault_impact', + 'description': 'description', + 'circular_level': 'circular_level', + 'war_room_status': 'war_room_status', + 'impacted_application': 'impacted_application', + 'processing_duration': 'processing_duration', + 'restoration_duration': 'restoration_duration', + 'war_room_num': 'war_room_num', + 'enterprise_project_id': 'enterprise_project_id' + } + + def __init__(self, id=None, title=None, admin=None, recover_member=None, recover_leader=None, incident=None, source=None, regions=None, change_num=None, occur_time=None, recover_time=None, fault_cause=None, create_time=None, first_report_time=None, recovery_notification_time=None, fault_impact=None, description=None, circular_level=None, war_room_status=None, impacted_application=None, processing_duration=None, restoration_duration=None, war_room_num=None, enterprise_project_id=None): + """WarRoomTenantInfo + + The model defined in huaweicloud sdk + + :param id: 主键 + :type id: str + :param title: 标题 + :type title: str + :param admin: WarRoom管理员 + :type admin: str + :param recover_member: 恢复成员 + :type recover_member: list[str] + :param recover_leader: 主恢复责任人 + :type recover_leader: list[str] + :param incident: + :type incident: :class:`huaweicloudsdkcoc.v1.WarRoomIncident` + :param source: 事件来源 + :type source: str + :param regions: 影响的Region + :type regions: list[:class:`huaweicloudsdkcoc.v1.WarRoomTenantInfoRegions`] + :param change_num: 变更单号 + :type change_num: str + :param occur_time: 开始时间 + :type occur_time: int + :param recover_time: 故障恢复时间 + :type recover_time: int + :param fault_cause: 故障原因 + :type fault_cause: str + :param create_time: 添加时间 + :type create_time: int + :param first_report_time: 首次通报时间 + :type first_report_time: int + :param recovery_notification_time: 恢复通报时间 + :type recovery_notification_time: int + :param fault_impact: 故障影响 + :type fault_impact: str + :param description: WarRoom描述 + :type description: str + :param circular_level: 通报级别 租户区同事件级别 + :type circular_level: str + :param war_room_status: + :type war_room_status: :class:`huaweicloudsdkcoc.v1.WarRoomEnumeration` + :param impacted_application: 影响应用 + :type impacted_application: list[:class:`huaweicloudsdkcoc.v1.WarRoomTenantInfoImpactedApplication`] + :param processing_duration: 处理时长(分钟) + :type processing_duration: int + :param restoration_duration: 恢复时长(分钟) + :type restoration_duration: int + :param war_room_num: WarRoom单号 + :type war_room_num: str + :param enterprise_project_id: 企业项目id + :type enterprise_project_id: str + """ + + + + self._id = None + self._title = None + self._admin = None + self._recover_member = None + self._recover_leader = None + self._incident = None + self._source = None + self._regions = None + self._change_num = None + self._occur_time = None + self._recover_time = None + self._fault_cause = None + self._create_time = None + self._first_report_time = None + self._recovery_notification_time = None + self._fault_impact = None + self._description = None + self._circular_level = None + self._war_room_status = None + self._impacted_application = None + self._processing_duration = None + self._restoration_duration = None + self._war_room_num = None + self._enterprise_project_id = None + self.discriminator = None + + if id is not None: + self.id = id + if title is not None: + self.title = title + if admin is not None: + self.admin = admin + if recover_member is not None: + self.recover_member = recover_member + if recover_leader is not None: + self.recover_leader = recover_leader + if incident is not None: + self.incident = incident + if source is not None: + self.source = source + if regions is not None: + self.regions = regions + if change_num is not None: + self.change_num = change_num + if occur_time is not None: + self.occur_time = occur_time + if recover_time is not None: + self.recover_time = recover_time + if fault_cause is not None: + self.fault_cause = fault_cause + if create_time is not None: + self.create_time = create_time + if first_report_time is not None: + self.first_report_time = first_report_time + if recovery_notification_time is not None: + self.recovery_notification_time = recovery_notification_time + if fault_impact is not None: + self.fault_impact = fault_impact + if description is not None: + self.description = description + if circular_level is not None: + self.circular_level = circular_level + if war_room_status is not None: + self.war_room_status = war_room_status + if impacted_application is not None: + self.impacted_application = impacted_application + if processing_duration is not None: + self.processing_duration = processing_duration + if restoration_duration is not None: + self.restoration_duration = restoration_duration + if war_room_num is not None: + self.war_room_num = war_room_num + if enterprise_project_id is not None: + self.enterprise_project_id = enterprise_project_id + + @property + def id(self): + """Gets the id of this WarRoomTenantInfo. + + 主键 + + :return: The id of this WarRoomTenantInfo. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this WarRoomTenantInfo. + + 主键 + + :param id: The id of this WarRoomTenantInfo. + :type id: str + """ + self._id = id + + @property + def title(self): + """Gets the title of this WarRoomTenantInfo. + + 标题 + + :return: The title of this WarRoomTenantInfo. + :rtype: str + """ + return self._title + + @title.setter + def title(self, title): + """Sets the title of this WarRoomTenantInfo. + + 标题 + + :param title: The title of this WarRoomTenantInfo. + :type title: str + """ + self._title = title + + @property + def admin(self): + """Gets the admin of this WarRoomTenantInfo. + + WarRoom管理员 + + :return: The admin of this WarRoomTenantInfo. + :rtype: str + """ + return self._admin + + @admin.setter + def admin(self, admin): + """Sets the admin of this WarRoomTenantInfo. + + WarRoom管理员 + + :param admin: The admin of this WarRoomTenantInfo. + :type admin: str + """ + self._admin = admin + + @property + def recover_member(self): + """Gets the recover_member of this WarRoomTenantInfo. + + 恢复成员 + + :return: The recover_member of this WarRoomTenantInfo. + :rtype: list[str] + """ + return self._recover_member + + @recover_member.setter + def recover_member(self, recover_member): + """Sets the recover_member of this WarRoomTenantInfo. + + 恢复成员 + + :param recover_member: The recover_member of this WarRoomTenantInfo. + :type recover_member: list[str] + """ + self._recover_member = recover_member + + @property + def recover_leader(self): + """Gets the recover_leader of this WarRoomTenantInfo. + + 主恢复责任人 + + :return: The recover_leader of this WarRoomTenantInfo. + :rtype: list[str] + """ + return self._recover_leader + + @recover_leader.setter + def recover_leader(self, recover_leader): + """Sets the recover_leader of this WarRoomTenantInfo. + + 主恢复责任人 + + :param recover_leader: The recover_leader of this WarRoomTenantInfo. + :type recover_leader: list[str] + """ + self._recover_leader = recover_leader + + @property + def incident(self): + """Gets the incident of this WarRoomTenantInfo. + + :return: The incident of this WarRoomTenantInfo. + :rtype: :class:`huaweicloudsdkcoc.v1.WarRoomIncident` + """ + return self._incident + + @incident.setter + def incident(self, incident): + """Sets the incident of this WarRoomTenantInfo. + + :param incident: The incident of this WarRoomTenantInfo. + :type incident: :class:`huaweicloudsdkcoc.v1.WarRoomIncident` + """ + self._incident = incident + + @property + def source(self): + """Gets the source of this WarRoomTenantInfo. + + 事件来源 + + :return: The source of this WarRoomTenantInfo. + :rtype: str + """ + return self._source + + @source.setter + def source(self, source): + """Sets the source of this WarRoomTenantInfo. + + 事件来源 + + :param source: The source of this WarRoomTenantInfo. + :type source: str + """ + self._source = source + + @property + def regions(self): + """Gets the regions of this WarRoomTenantInfo. + + 影响的Region + + :return: The regions of this WarRoomTenantInfo. + :rtype: list[:class:`huaweicloudsdkcoc.v1.WarRoomTenantInfoRegions`] + """ + return self._regions + + @regions.setter + def regions(self, regions): + """Sets the regions of this WarRoomTenantInfo. + + 影响的Region + + :param regions: The regions of this WarRoomTenantInfo. + :type regions: list[:class:`huaweicloudsdkcoc.v1.WarRoomTenantInfoRegions`] + """ + self._regions = regions + + @property + def change_num(self): + """Gets the change_num of this WarRoomTenantInfo. + + 变更单号 + + :return: The change_num of this WarRoomTenantInfo. + :rtype: str + """ + return self._change_num + + @change_num.setter + def change_num(self, change_num): + """Sets the change_num of this WarRoomTenantInfo. + + 变更单号 + + :param change_num: The change_num of this WarRoomTenantInfo. + :type change_num: str + """ + self._change_num = change_num + + @property + def occur_time(self): + """Gets the occur_time of this WarRoomTenantInfo. + + 开始时间 + + :return: The occur_time of this WarRoomTenantInfo. + :rtype: int + """ + return self._occur_time + + @occur_time.setter + def occur_time(self, occur_time): + """Sets the occur_time of this WarRoomTenantInfo. + + 开始时间 + + :param occur_time: The occur_time of this WarRoomTenantInfo. + :type occur_time: int + """ + self._occur_time = occur_time + + @property + def recover_time(self): + """Gets the recover_time of this WarRoomTenantInfo. + + 故障恢复时间 + + :return: The recover_time of this WarRoomTenantInfo. + :rtype: int + """ + return self._recover_time + + @recover_time.setter + def recover_time(self, recover_time): + """Sets the recover_time of this WarRoomTenantInfo. + + 故障恢复时间 + + :param recover_time: The recover_time of this WarRoomTenantInfo. + :type recover_time: int + """ + self._recover_time = recover_time + + @property + def fault_cause(self): + """Gets the fault_cause of this WarRoomTenantInfo. + + 故障原因 + + :return: The fault_cause of this WarRoomTenantInfo. + :rtype: str + """ + return self._fault_cause + + @fault_cause.setter + def fault_cause(self, fault_cause): + """Sets the fault_cause of this WarRoomTenantInfo. + + 故障原因 + + :param fault_cause: The fault_cause of this WarRoomTenantInfo. + :type fault_cause: str + """ + self._fault_cause = fault_cause + + @property + def create_time(self): + """Gets the create_time of this WarRoomTenantInfo. + + 添加时间 + + :return: The create_time of this WarRoomTenantInfo. + :rtype: int + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this WarRoomTenantInfo. + + 添加时间 + + :param create_time: The create_time of this WarRoomTenantInfo. + :type create_time: int + """ + self._create_time = create_time + + @property + def first_report_time(self): + """Gets the first_report_time of this WarRoomTenantInfo. + + 首次通报时间 + + :return: The first_report_time of this WarRoomTenantInfo. + :rtype: int + """ + return self._first_report_time + + @first_report_time.setter + def first_report_time(self, first_report_time): + """Sets the first_report_time of this WarRoomTenantInfo. + + 首次通报时间 + + :param first_report_time: The first_report_time of this WarRoomTenantInfo. + :type first_report_time: int + """ + self._first_report_time = first_report_time + + @property + def recovery_notification_time(self): + """Gets the recovery_notification_time of this WarRoomTenantInfo. + + 恢复通报时间 + + :return: The recovery_notification_time of this WarRoomTenantInfo. + :rtype: int + """ + return self._recovery_notification_time + + @recovery_notification_time.setter + def recovery_notification_time(self, recovery_notification_time): + """Sets the recovery_notification_time of this WarRoomTenantInfo. + + 恢复通报时间 + + :param recovery_notification_time: The recovery_notification_time of this WarRoomTenantInfo. + :type recovery_notification_time: int + """ + self._recovery_notification_time = recovery_notification_time + + @property + def fault_impact(self): + """Gets the fault_impact of this WarRoomTenantInfo. + + 故障影响 + + :return: The fault_impact of this WarRoomTenantInfo. + :rtype: str + """ + return self._fault_impact + + @fault_impact.setter + def fault_impact(self, fault_impact): + """Sets the fault_impact of this WarRoomTenantInfo. + + 故障影响 + + :param fault_impact: The fault_impact of this WarRoomTenantInfo. + :type fault_impact: str + """ + self._fault_impact = fault_impact + + @property + def description(self): + """Gets the description of this WarRoomTenantInfo. + + WarRoom描述 + + :return: The description of this WarRoomTenantInfo. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this WarRoomTenantInfo. + + WarRoom描述 + + :param description: The description of this WarRoomTenantInfo. + :type description: str + """ + self._description = description + + @property + def circular_level(self): + """Gets the circular_level of this WarRoomTenantInfo. + + 通报级别 租户区同事件级别 + + :return: The circular_level of this WarRoomTenantInfo. + :rtype: str + """ + return self._circular_level + + @circular_level.setter + def circular_level(self, circular_level): + """Sets the circular_level of this WarRoomTenantInfo. + + 通报级别 租户区同事件级别 + + :param circular_level: The circular_level of this WarRoomTenantInfo. + :type circular_level: str + """ + self._circular_level = circular_level + + @property + def war_room_status(self): + """Gets the war_room_status of this WarRoomTenantInfo. + + :return: The war_room_status of this WarRoomTenantInfo. + :rtype: :class:`huaweicloudsdkcoc.v1.WarRoomEnumeration` + """ + return self._war_room_status + + @war_room_status.setter + def war_room_status(self, war_room_status): + """Sets the war_room_status of this WarRoomTenantInfo. + + :param war_room_status: The war_room_status of this WarRoomTenantInfo. + :type war_room_status: :class:`huaweicloudsdkcoc.v1.WarRoomEnumeration` + """ + self._war_room_status = war_room_status + + @property + def impacted_application(self): + """Gets the impacted_application of this WarRoomTenantInfo. + + 影响应用 + + :return: The impacted_application of this WarRoomTenantInfo. + :rtype: list[:class:`huaweicloudsdkcoc.v1.WarRoomTenantInfoImpactedApplication`] + """ + return self._impacted_application + + @impacted_application.setter + def impacted_application(self, impacted_application): + """Sets the impacted_application of this WarRoomTenantInfo. + + 影响应用 + + :param impacted_application: The impacted_application of this WarRoomTenantInfo. + :type impacted_application: list[:class:`huaweicloudsdkcoc.v1.WarRoomTenantInfoImpactedApplication`] + """ + self._impacted_application = impacted_application + + @property + def processing_duration(self): + """Gets the processing_duration of this WarRoomTenantInfo. + + 处理时长(分钟) + + :return: The processing_duration of this WarRoomTenantInfo. + :rtype: int + """ + return self._processing_duration + + @processing_duration.setter + def processing_duration(self, processing_duration): + """Sets the processing_duration of this WarRoomTenantInfo. + + 处理时长(分钟) + + :param processing_duration: The processing_duration of this WarRoomTenantInfo. + :type processing_duration: int + """ + self._processing_duration = processing_duration + + @property + def restoration_duration(self): + """Gets the restoration_duration of this WarRoomTenantInfo. + + 恢复时长(分钟) + + :return: The restoration_duration of this WarRoomTenantInfo. + :rtype: int + """ + return self._restoration_duration + + @restoration_duration.setter + def restoration_duration(self, restoration_duration): + """Sets the restoration_duration of this WarRoomTenantInfo. + + 恢复时长(分钟) + + :param restoration_duration: The restoration_duration of this WarRoomTenantInfo. + :type restoration_duration: int + """ + self._restoration_duration = restoration_duration + + @property + def war_room_num(self): + """Gets the war_room_num of this WarRoomTenantInfo. + + WarRoom单号 + + :return: The war_room_num of this WarRoomTenantInfo. + :rtype: str + """ + return self._war_room_num + + @war_room_num.setter + def war_room_num(self, war_room_num): + """Sets the war_room_num of this WarRoomTenantInfo. + + WarRoom单号 + + :param war_room_num: The war_room_num of this WarRoomTenantInfo. + :type war_room_num: str + """ + self._war_room_num = war_room_num + + @property + def enterprise_project_id(self): + """Gets the enterprise_project_id of this WarRoomTenantInfo. + + 企业项目id + + :return: The enterprise_project_id of this WarRoomTenantInfo. + :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 WarRoomTenantInfo. + + 企业项目id + + :param enterprise_project_id: The enterprise_project_id of this WarRoomTenantInfo. + :type enterprise_project_id: str + """ + self._enterprise_project_id = enterprise_project_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, WarRoomTenantInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/war_room_tenant_info_impacted_application.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/war_room_tenant_info_impacted_application.py new file mode 100644 index 0000000000..84633a91f8 --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/war_room_tenant_info_impacted_application.py @@ -0,0 +1,144 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class WarRoomTenantInfoImpactedApplication: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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' + } + + attribute_map = { + 'id': 'id', + 'name': 'name' + } + + def __init__(self, id=None, name=None): + """WarRoomTenantInfoImpactedApplication + + The model defined in huaweicloud sdk + + :param id: 主键 + :type id: str + :param name: 名字 + :type name: str + """ + + + + self._id = None + self._name = None + self.discriminator = None + + if id is not None: + self.id = id + if name is not None: + self.name = name + + @property + def id(self): + """Gets the id of this WarRoomTenantInfoImpactedApplication. + + 主键 + + :return: The id of this WarRoomTenantInfoImpactedApplication. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this WarRoomTenantInfoImpactedApplication. + + 主键 + + :param id: The id of this WarRoomTenantInfoImpactedApplication. + :type id: str + """ + self._id = id + + @property + def name(self): + """Gets the name of this WarRoomTenantInfoImpactedApplication. + + 名字 + + :return: The name of this WarRoomTenantInfoImpactedApplication. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this WarRoomTenantInfoImpactedApplication. + + 名字 + + :param name: The name of this WarRoomTenantInfoImpactedApplication. + :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, WarRoomTenantInfoImpactedApplication): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/war_room_tenant_info_regions.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/war_room_tenant_info_regions.py new file mode 100644 index 0000000000..e70d7e4290 --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/model/war_room_tenant_info_regions.py @@ -0,0 +1,144 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class WarRoomTenantInfoRegions: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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': 'str', + 'name': 'str' + } + + attribute_map = { + 'code': 'code', + 'name': 'name' + } + + def __init__(self, code=None, name=None): + """WarRoomTenantInfoRegions + + The model defined in huaweicloud sdk + + :param code: 主键 + :type code: str + :param name: 名称 + :type name: str + """ + + + + self._code = None + self._name = None + self.discriminator = None + + if code is not None: + self.code = code + if name is not None: + self.name = name + + @property + def code(self): + """Gets the code of this WarRoomTenantInfoRegions. + + 主键 + + :return: The code of this WarRoomTenantInfoRegions. + :rtype: str + """ + return self._code + + @code.setter + def code(self, code): + """Sets the code of this WarRoomTenantInfoRegions. + + 主键 + + :param code: The code of this WarRoomTenantInfoRegions. + :type code: str + """ + self._code = code + + @property + def name(self): + """Gets the name of this WarRoomTenantInfoRegions. + + 名称 + + :return: The name of this WarRoomTenantInfoRegions. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this WarRoomTenantInfoRegions. + + 名称 + + :param name: The name of this WarRoomTenantInfoRegions. + :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, WarRoomTenantInfoRegions): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/region/__init__.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/region/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/region/coc_region.py b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/region/coc_region.py new file mode 100644 index 0000000000..e10293ae61 --- /dev/null +++ b/huaweicloud-sdk-coc/huaweicloudsdkcoc/v1/region/coc_region.py @@ -0,0 +1,34 @@ +# coding: utf-8 + +from huaweicloudsdkcore.region.region import Region +from huaweicloudsdkcore.region.provider import RegionProviderChain + +class CocRegion: + _PROVIDER = RegionProviderChain.get_default_region_provider_chain("COC") + + CN_NORTH_4 = Region("cn-north-4", + "https://coc.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://coc-intl.myhuaweicloud.com") + + static_fields = { + "cn-north-4": CN_NORTH_4, + "ap-southeast-3": AP_SOUTHEAST_3, + } + + @classmethod + def value_of(cls, region_id, static_fields=None): + if not region_id: + raise KeyError("Unexpected empty parameter: region_id") + + fields = static_fields or cls.static_fields + + region = cls._PROVIDER.get_region(region_id) + if region: + return region + + if region_id in fields: + return fields.get(region_id) + + raise KeyError("region_id '%s' is not in the following supported regions of service 'Coc': [%s]" % ( + region_id, ", ".join(sorted(fields.keys())))) diff --git a/huaweicloud-sdk-coc/requirements.txt b/huaweicloud-sdk-coc/requirements.txt new file mode 100644 index 0000000000..9199f28ef6 --- /dev/null +++ b/huaweicloud-sdk-coc/requirements.txt @@ -0,0 +1 @@ +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-coc/setup.py b/huaweicloud-sdk-coc/setup.py new file mode 100644 index 0000000000..58fb415c40 --- /dev/null +++ b/huaweicloud-sdk-coc/setup.py @@ -0,0 +1,55 @@ +# coding: utf-8 +from os import path + +from setuptools import setup, find_packages + +NAME = "huaweicloudsdkcoc" +VERSION = "3.1.110" +AUTHOR = "HuaweiCloud SDK" +AUTHOR_EMAIL = "hwcloudsdk@huawei.com" +URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" + +DESCRIPTION = "COC" +this_directory = path.abspath(path.dirname(__file__)) +with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: + LONG_DESCRIPTION = f.read() + +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] + +OPTIONS = { + 'bdist_wheel': { + 'universal': True + } +} + +setup( + name=NAME, + version=VERSION, + options=OPTIONS, + description=DESCRIPTION, + long_description=LONG_DESCRIPTION, + long_description_content_type='text/markdown', + author=AUTHOR, + author_email=AUTHOR_EMAIL, + license="Apache LICENSE 2.0", + url=URL, + keywords=["huaweicloud", "sdk", "COC"], + packages=find_packages(exclude=["tests*"]), + install_requires=REQUIRES, + python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*", + include_package_data=True, + classifiers=[ + 'Development Status :: 5 - Production/Stable', + 'Intended Audience :: Developers', + 'License :: OSI Approved :: Apache Software License', + 'Programming Language :: Python :: 2.7', + 'Programming Language :: Python :: 3.3', + 'Programming Language :: Python :: 3.4', + 'Programming Language :: Python :: 3.5', + 'Programming Language :: Python :: 3.6', + 'Programming Language :: Python :: 3.7', + 'Programming Language :: Python :: 3.8', + 'Programming Language :: Python :: 3.9', + 'Topic :: Software Development' + ] +) diff --git a/huaweicloud-sdk-codeartsartifact/requirements.txt b/huaweicloud-sdk-codeartsartifact/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-codeartsartifact/requirements.txt +++ b/huaweicloud-sdk-codeartsartifact/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-codeartsartifact/setup.py b/huaweicloud-sdk-codeartsartifact/setup.py index 31f647b48e..f72c144c8b 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-codeartsbuild/requirements.txt b/huaweicloud-sdk-codeartsbuild/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-codeartsbuild/requirements.txt +++ b/huaweicloud-sdk-codeartsbuild/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-codeartsbuild/setup.py b/huaweicloud-sdk-codeartsbuild/setup.py index 9b666d2393..e891aa9f63 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-codeartscheck/requirements.txt b/huaweicloud-sdk-codeartscheck/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-codeartscheck/requirements.txt +++ b/huaweicloud-sdk-codeartscheck/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-codeartscheck/setup.py b/huaweicloud-sdk-codeartscheck/setup.py index 0f7321916e..71e3156c64 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-codeartsdeploy/requirements.txt b/huaweicloud-sdk-codeartsdeploy/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-codeartsdeploy/requirements.txt +++ b/huaweicloud-sdk-codeartsdeploy/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-codeartsdeploy/setup.py b/huaweicloud-sdk-codeartsdeploy/setup.py index 6355827988..611e1d6229 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-codeartsgovernance/requirements.txt b/huaweicloud-sdk-codeartsgovernance/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-codeartsgovernance/requirements.txt +++ b/huaweicloud-sdk-codeartsgovernance/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-codeartsgovernance/setup.py b/huaweicloud-sdk-codeartsgovernance/setup.py index 22f1188b28..c7df9d305d 100644 --- a/huaweicloud-sdk-codeartsgovernance/setup.py +++ b/huaweicloud-sdk-codeartsgovernance/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkcodeartsgovernance" -VERSION = "3.1.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-codeartsinspector/requirements.txt b/huaweicloud-sdk-codeartsinspector/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-codeartsinspector/requirements.txt +++ b/huaweicloud-sdk-codeartsinspector/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-codeartsinspector/setup.py b/huaweicloud-sdk-codeartsinspector/setup.py index f0cb5757a3..39b868ae6c 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-codeartspipeline/requirements.txt b/huaweicloud-sdk-codeartspipeline/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-codeartspipeline/requirements.txt +++ b/huaweicloud-sdk-codeartspipeline/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-codeartspipeline/setup.py b/huaweicloud-sdk-codeartspipeline/setup.py index 06202aa0f9..e41fc7adab 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-codecraft/requirements.txt b/huaweicloud-sdk-codecraft/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-codecraft/requirements.txt +++ b/huaweicloud-sdk-codecraft/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-codecraft/setup.py b/huaweicloud-sdk-codecraft/setup.py index 23e4c3e0bb..7d6c9c43e5 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-codehub/requirements.txt b/huaweicloud-sdk-codehub/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-codehub/requirements.txt +++ b/huaweicloud-sdk-codehub/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-codehub/setup.py b/huaweicloud-sdk-codehub/setup.py index a14818c17e..57c8ea060f 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/__init__.py b/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/__init__.py index 9347270822..d42160033c 100644 --- a/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/__init__.py +++ b/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/__init__.py @@ -30,6 +30,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_remediation_execution_statuses_summary_request import CollectRemediationExecutionStatusesSummaryRequest +from huaweicloudsdkconfig.v1.model.collect_remediation_execution_statuses_summary_response import CollectRemediationExecutionStatusesSummaryResponse 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 @@ -187,6 +189,9 @@ from huaweicloudsdkconfig.v1.model.remediation_exception import RemediationException from huaweicloudsdkconfig.v1.model.remediation_exception_request import RemediationExceptionRequest from huaweicloudsdkconfig.v1.model.remediation_execution import RemediationExecution +from huaweicloudsdkconfig.v1.model.remediation_execution_status import RemediationExecutionStatus +from huaweicloudsdkconfig.v1.model.remediation_execution_statuses_summary_request_body import RemediationExecutionStatusesSummaryRequestBody +from huaweicloudsdkconfig.v1.model.remediation_resource_key import RemediationResourceKey from huaweicloudsdkconfig.v1.model.remediation_resource_parameter import RemediationResourceParameter from huaweicloudsdkconfig.v1.model.remediation_run_request_body import RemediationRunRequestBody from huaweicloudsdkconfig.v1.model.remediation_static_parameter import RemediationStaticParameter diff --git a/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/config_async_client.py b/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/config_async_client.py index 7290c9be7d..aa861ebe50 100644 --- a/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/config_async_client.py +++ b/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/config_async_client.py @@ -2754,6 +2754,77 @@ def _batch_delete_remediation_exceptions_http_info(self, request): return http_info + def collect_remediation_execution_statuses_summary_async(self, request): + """列举修正最新记录 + + 列举合规规则修正最新记录。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CollectRemediationExecutionStatusesSummary + :type request: :class:`huaweicloudsdkconfig.v1.CollectRemediationExecutionStatusesSummaryRequest` + :rtype: :class:`huaweicloudsdkconfig.v1.CollectRemediationExecutionStatusesSummaryResponse` + """ + http_info = self._collect_remediation_execution_statuses_summary_http_info(request) + return self._call_api(**http_info) + + def collect_remediation_execution_statuses_summary_async_invoker(self, request): + http_info = self._collect_remediation_execution_statuses_summary_http_info(request) + return AsyncInvoker(self, http_info) + + def _collect_remediation_execution_statuses_summary_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v1/resource-manager/domains/{domain_id}/policy-assignments/{policy_assignment_id}/remediation-execution-statuses/summary", + "request_type": request.__class__.__name__, + "response_type": "CollectRemediationExecutionStatusesSummaryResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'policy_assignment_id' in local_var_params: + path_params['policy_assignment_id'] = local_var_params['policy_assignment_id'] + + query_params = [] + 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'])) + + 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_or_update_remediation_configuration_async(self, request): """创建或更新修正配置 diff --git a/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/config_client.py b/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/config_client.py index c5cfabe66b..371b434f6b 100644 --- a/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/config_client.py +++ b/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/config_client.py @@ -2754,6 +2754,77 @@ def _batch_delete_remediation_exceptions_http_info(cls, request): return http_info + def collect_remediation_execution_statuses_summary(self, request): + """列举修正最新记录 + + 列举合规规则修正最新记录。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CollectRemediationExecutionStatusesSummary + :type request: :class:`huaweicloudsdkconfig.v1.CollectRemediationExecutionStatusesSummaryRequest` + :rtype: :class:`huaweicloudsdkconfig.v1.CollectRemediationExecutionStatusesSummaryResponse` + """ + http_info = self._collect_remediation_execution_statuses_summary_http_info(request) + return self._call_api(**http_info) + + def collect_remediation_execution_statuses_summary_invoker(self, request): + http_info = self._collect_remediation_execution_statuses_summary_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _collect_remediation_execution_statuses_summary_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v1/resource-manager/domains/{domain_id}/policy-assignments/{policy_assignment_id}/remediation-execution-statuses/summary", + "request_type": request.__class__.__name__, + "response_type": "CollectRemediationExecutionStatusesSummaryResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'policy_assignment_id' in local_var_params: + path_params['policy_assignment_id'] = local_var_params['policy_assignment_id'] + + query_params = [] + 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'])) + + 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_or_update_remediation_configuration(self, request): """创建或更新修正配置 diff --git a/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/model/__init__.py b/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/model/__init__.py index 6d27d7db0c..53474fd680 100644 --- a/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/model/__init__.py +++ b/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/model/__init__.py @@ -28,6 +28,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_remediation_execution_statuses_summary_request import CollectRemediationExecutionStatusesSummaryRequest +from huaweicloudsdkconfig.v1.model.collect_remediation_execution_statuses_summary_response import CollectRemediationExecutionStatusesSummaryResponse 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 @@ -185,6 +187,9 @@ from huaweicloudsdkconfig.v1.model.remediation_exception import RemediationException from huaweicloudsdkconfig.v1.model.remediation_exception_request import RemediationExceptionRequest from huaweicloudsdkconfig.v1.model.remediation_execution import RemediationExecution +from huaweicloudsdkconfig.v1.model.remediation_execution_status import RemediationExecutionStatus +from huaweicloudsdkconfig.v1.model.remediation_execution_statuses_summary_request_body import RemediationExecutionStatusesSummaryRequestBody +from huaweicloudsdkconfig.v1.model.remediation_resource_key import RemediationResourceKey from huaweicloudsdkconfig.v1.model.remediation_resource_parameter import RemediationResourceParameter from huaweicloudsdkconfig.v1.model.remediation_run_request_body import RemediationRunRequestBody from huaweicloudsdkconfig.v1.model.remediation_static_parameter import RemediationStaticParameter diff --git a/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/model/collect_remediation_execution_statuses_summary_request.py b/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/model/collect_remediation_execution_statuses_summary_request.py new file mode 100644 index 0000000000..eb686ba284 --- /dev/null +++ b/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/model/collect_remediation_execution_statuses_summary_request.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CollectRemediationExecutionStatusesSummaryRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'policy_assignment_id': 'str', + 'limit': 'int', + 'marker': 'str', + 'body': 'RemediationExecutionStatusesSummaryRequestBody' + } + + attribute_map = { + 'policy_assignment_id': 'policy_assignment_id', + 'limit': 'limit', + 'marker': 'marker', + 'body': 'body' + } + + def __init__(self, policy_assignment_id=None, limit=None, marker=None, body=None): + """CollectRemediationExecutionStatusesSummaryRequest + + The model defined in huaweicloud sdk + + :param policy_assignment_id: 规则ID + :type policy_assignment_id: str + :param limit: 最大的返回数量 + :type limit: int + :param marker: 分页参数,通过上一个请求中返回的marker信息作为输入,获取当前页 + :type marker: str + :param body: Body of the CollectRemediationExecutionStatusesSummaryRequest + :type body: :class:`huaweicloudsdkconfig.v1.RemediationExecutionStatusesSummaryRequestBody` + """ + + + + self._policy_assignment_id = None + self._limit = None + self._marker = None + self._body = None + self.discriminator = None + + self.policy_assignment_id = policy_assignment_id + if limit is not None: + self.limit = limit + if marker is not None: + self.marker = marker + if body is not None: + self.body = body + + @property + def policy_assignment_id(self): + """Gets the policy_assignment_id of this CollectRemediationExecutionStatusesSummaryRequest. + + 规则ID + + :return: The policy_assignment_id of this CollectRemediationExecutionStatusesSummaryRequest. + :rtype: str + """ + return self._policy_assignment_id + + @policy_assignment_id.setter + def policy_assignment_id(self, policy_assignment_id): + """Sets the policy_assignment_id of this CollectRemediationExecutionStatusesSummaryRequest. + + 规则ID + + :param policy_assignment_id: The policy_assignment_id of this CollectRemediationExecutionStatusesSummaryRequest. + :type policy_assignment_id: str + """ + self._policy_assignment_id = policy_assignment_id + + @property + def limit(self): + """Gets the limit of this CollectRemediationExecutionStatusesSummaryRequest. + + 最大的返回数量 + + :return: The limit of this CollectRemediationExecutionStatusesSummaryRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this CollectRemediationExecutionStatusesSummaryRequest. + + 最大的返回数量 + + :param limit: The limit of this CollectRemediationExecutionStatusesSummaryRequest. + :type limit: int + """ + self._limit = limit + + @property + def marker(self): + """Gets the marker of this CollectRemediationExecutionStatusesSummaryRequest. + + 分页参数,通过上一个请求中返回的marker信息作为输入,获取当前页 + + :return: The marker of this CollectRemediationExecutionStatusesSummaryRequest. + :rtype: str + """ + return self._marker + + @marker.setter + def marker(self, marker): + """Sets the marker of this CollectRemediationExecutionStatusesSummaryRequest. + + 分页参数,通过上一个请求中返回的marker信息作为输入,获取当前页 + + :param marker: The marker of this CollectRemediationExecutionStatusesSummaryRequest. + :type marker: str + """ + self._marker = marker + + @property + def body(self): + """Gets the body of this CollectRemediationExecutionStatusesSummaryRequest. + + :return: The body of this CollectRemediationExecutionStatusesSummaryRequest. + :rtype: :class:`huaweicloudsdkconfig.v1.RemediationExecutionStatusesSummaryRequestBody` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CollectRemediationExecutionStatusesSummaryRequest. + + :param body: The body of this CollectRemediationExecutionStatusesSummaryRequest. + :type body: :class:`huaweicloudsdkconfig.v1.RemediationExecutionStatusesSummaryRequestBody` + """ + 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, CollectRemediationExecutionStatusesSummaryRequest): + return False + + return self.__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_remediation_execution_statuses_summary_response.py b/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/model/collect_remediation_execution_statuses_summary_response.py new file mode 100644 index 0000000000..8e4479a039 --- /dev/null +++ b/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/model/collect_remediation_execution_statuses_summary_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 CollectRemediationExecutionStatusesSummaryResponse(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 = { + 'value': 'list[RemediationExecutionStatus]', + 'page_info': 'PageInfo' + } + + attribute_map = { + 'value': 'value', + 'page_info': 'page_info' + } + + def __init__(self, value=None, page_info=None): + """CollectRemediationExecutionStatusesSummaryResponse + + The model defined in huaweicloud sdk + + :param value: 合规规则修正执行结果查询列表。 + :type value: list[:class:`huaweicloudsdkconfig.v1.RemediationExecutionStatus`] + :param page_info: + :type page_info: :class:`huaweicloudsdkconfig.v1.PageInfo` + """ + + super(CollectRemediationExecutionStatusesSummaryResponse, self).__init__() + + self._value = None + self._page_info = None + self.discriminator = None + + if value is not None: + self.value = value + if page_info is not None: + self.page_info = page_info + + @property + def value(self): + """Gets the value of this CollectRemediationExecutionStatusesSummaryResponse. + + 合规规则修正执行结果查询列表。 + + :return: The value of this CollectRemediationExecutionStatusesSummaryResponse. + :rtype: list[:class:`huaweicloudsdkconfig.v1.RemediationExecutionStatus`] + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this CollectRemediationExecutionStatusesSummaryResponse. + + 合规规则修正执行结果查询列表。 + + :param value: The value of this CollectRemediationExecutionStatusesSummaryResponse. + :type value: list[:class:`huaweicloudsdkconfig.v1.RemediationExecutionStatus`] + """ + self._value = value + + @property + def page_info(self): + """Gets the page_info of this CollectRemediationExecutionStatusesSummaryResponse. + + :return: The page_info of this CollectRemediationExecutionStatusesSummaryResponse. + :rtype: :class:`huaweicloudsdkconfig.v1.PageInfo` + """ + return self._page_info + + @page_info.setter + def page_info(self, page_info): + """Sets the page_info of this CollectRemediationExecutionStatusesSummaryResponse. + + :param page_info: The page_info of this CollectRemediationExecutionStatusesSummaryResponse. + :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, CollectRemediationExecutionStatusesSummaryResponse): + return False + + return self.__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/remediation_execution_status.py b/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/model/remediation_execution_status.py new file mode 100644 index 0000000000..99b18141a4 --- /dev/null +++ b/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/model/remediation_execution_status.py @@ -0,0 +1,198 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class RemediationExecutionStatus: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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_key': 'RemediationResourceKey', + 'invocation_time': 'str', + 'state': 'str', + 'message': 'str' + } + + attribute_map = { + 'resource_key': 'resource_key', + 'invocation_time': 'invocation_time', + 'state': 'state', + 'message': 'message' + } + + def __init__(self, resource_key=None, invocation_time=None, state=None, message=None): + """RemediationExecutionStatus + + The model defined in huaweicloud sdk + + :param resource_key: + :type resource_key: :class:`huaweicloudsdkconfig.v1.RemediationResourceKey` + :param invocation_time: 补救执行的开始时间。 + :type invocation_time: str + :param state: 合规规则修正执行的状态。 + :type state: str + :param message: 合规规则修正执行的信息。 + :type message: str + """ + + + + self._resource_key = None + self._invocation_time = None + self._state = None + self._message = None + self.discriminator = None + + if resource_key is not None: + self.resource_key = resource_key + if invocation_time is not None: + self.invocation_time = invocation_time + if state is not None: + self.state = state + if message is not None: + self.message = message + + @property + def resource_key(self): + """Gets the resource_key of this RemediationExecutionStatus. + + :return: The resource_key of this RemediationExecutionStatus. + :rtype: :class:`huaweicloudsdkconfig.v1.RemediationResourceKey` + """ + return self._resource_key + + @resource_key.setter + def resource_key(self, resource_key): + """Sets the resource_key of this RemediationExecutionStatus. + + :param resource_key: The resource_key of this RemediationExecutionStatus. + :type resource_key: :class:`huaweicloudsdkconfig.v1.RemediationResourceKey` + """ + self._resource_key = resource_key + + @property + def invocation_time(self): + """Gets the invocation_time of this RemediationExecutionStatus. + + 补救执行的开始时间。 + + :return: The invocation_time of this RemediationExecutionStatus. + :rtype: str + """ + return self._invocation_time + + @invocation_time.setter + def invocation_time(self, invocation_time): + """Sets the invocation_time of this RemediationExecutionStatus. + + 补救执行的开始时间。 + + :param invocation_time: The invocation_time of this RemediationExecutionStatus. + :type invocation_time: str + """ + self._invocation_time = invocation_time + + @property + def state(self): + """Gets the state of this RemediationExecutionStatus. + + 合规规则修正执行的状态。 + + :return: The state of this RemediationExecutionStatus. + :rtype: str + """ + return self._state + + @state.setter + def state(self, state): + """Sets the state of this RemediationExecutionStatus. + + 合规规则修正执行的状态。 + + :param state: The state of this RemediationExecutionStatus. + :type state: str + """ + self._state = state + + @property + def message(self): + """Gets the message of this RemediationExecutionStatus. + + 合规规则修正执行的信息。 + + :return: The message of this RemediationExecutionStatus. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this RemediationExecutionStatus. + + 合规规则修正执行的信息。 + + :param message: The message of this RemediationExecutionStatus. + :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, RemediationExecutionStatus): + return False + + return self.__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/remediation_execution_statuses_summary_request_body.py b/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/model/remediation_execution_statuses_summary_request_body.py new file mode 100644 index 0000000000..9bfd10fa1d --- /dev/null +++ b/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/model/remediation_execution_statuses_summary_request_body.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class RemediationExecutionStatusesSummaryRequestBody: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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_keys': 'list[RemediationResourceKey]' + } + + attribute_map = { + 'resource_keys': 'resource_keys' + } + + def __init__(self, resource_keys=None): + """RemediationExecutionStatusesSummaryRequestBody + + The model defined in huaweicloud sdk + + :param resource_keys: 合规规则最新修正记录查询条件列表。 + :type resource_keys: list[:class:`huaweicloudsdkconfig.v1.RemediationResourceKey`] + """ + + + + self._resource_keys = None + self.discriminator = None + + self.resource_keys = resource_keys + + @property + def resource_keys(self): + """Gets the resource_keys of this RemediationExecutionStatusesSummaryRequestBody. + + 合规规则最新修正记录查询条件列表。 + + :return: The resource_keys of this RemediationExecutionStatusesSummaryRequestBody. + :rtype: list[:class:`huaweicloudsdkconfig.v1.RemediationResourceKey`] + """ + return self._resource_keys + + @resource_keys.setter + def resource_keys(self, resource_keys): + """Sets the resource_keys of this RemediationExecutionStatusesSummaryRequestBody. + + 合规规则最新修正记录查询条件列表。 + + :param resource_keys: The resource_keys of this RemediationExecutionStatusesSummaryRequestBody. + :type resource_keys: list[:class:`huaweicloudsdkconfig.v1.RemediationResourceKey`] + """ + self._resource_keys = resource_keys + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, RemediationExecutionStatusesSummaryRequestBody): + return False + + return self.__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/remediation_resource_key.py b/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/model/remediation_resource_key.py new file mode 100644 index 0000000000..a7a31bf2d2 --- /dev/null +++ b/huaweicloud-sdk-config/huaweicloudsdkconfig/v1/model/remediation_resource_key.py @@ -0,0 +1,170 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class RemediationResourceKey: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'resource_provider': 'str', + 'resource_type': 'str' + } + + attribute_map = { + 'resource_id': 'resource_id', + 'resource_provider': 'resource_provider', + 'resource_type': 'resource_type' + } + + def __init__(self, resource_id=None, resource_provider=None, resource_type=None): + """RemediationResourceKey + + The model defined in huaweicloud sdk + + :param resource_id: 资源ID。 + :type resource_id: str + :param resource_provider: 云服务名称。 + :type resource_provider: str + :param resource_type: 资源类型。 + :type resource_type: str + """ + + + + self._resource_id = None + self._resource_provider = None + self._resource_type = None + self.discriminator = None + + self.resource_id = resource_id + self.resource_provider = resource_provider + self.resource_type = resource_type + + @property + def resource_id(self): + """Gets the resource_id of this RemediationResourceKey. + + 资源ID。 + + :return: The resource_id of this RemediationResourceKey. + :rtype: str + """ + return self._resource_id + + @resource_id.setter + def resource_id(self, resource_id): + """Sets the resource_id of this RemediationResourceKey. + + 资源ID。 + + :param resource_id: The resource_id of this RemediationResourceKey. + :type resource_id: str + """ + self._resource_id = resource_id + + @property + def resource_provider(self): + """Gets the resource_provider of this RemediationResourceKey. + + 云服务名称。 + + :return: The resource_provider of this RemediationResourceKey. + :rtype: str + """ + return self._resource_provider + + @resource_provider.setter + def resource_provider(self, resource_provider): + """Sets the resource_provider of this RemediationResourceKey. + + 云服务名称。 + + :param resource_provider: The resource_provider of this RemediationResourceKey. + :type resource_provider: str + """ + self._resource_provider = resource_provider + + @property + def resource_type(self): + """Gets the resource_type of this RemediationResourceKey. + + 资源类型。 + + :return: The resource_type of this RemediationResourceKey. + :rtype: str + """ + return self._resource_type + + @resource_type.setter + def resource_type(self, resource_type): + """Sets the resource_type of this RemediationResourceKey. + + 资源类型。 + + :param resource_type: The resource_type of this RemediationResourceKey. + :type resource_type: str + """ + self._resource_type = resource_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, RemediationResourceKey): + return False + + return self.__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/requirements.txt b/huaweicloud-sdk-config/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-config/requirements.txt +++ b/huaweicloud-sdk-config/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-config/setup.py b/huaweicloud-sdk-config/setup.py index de9cdcce38..079a1d6711 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-core/setup.py b/huaweicloud-sdk-core/setup.py index a7baca0ee9..98d4449805 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.109" +VERSION = "3.1.110" 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 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-cph/requirements.txt +++ b/huaweicloud-sdk-cph/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-cph/setup.py b/huaweicloud-sdk-cph/setup.py index ff09a52623..3ae187a3b2 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cpts/requirements.txt b/huaweicloud-sdk-cpts/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-cpts/requirements.txt +++ b/huaweicloud-sdk-cpts/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-cpts/setup.py b/huaweicloud-sdk-cpts/setup.py index 4d95e44ca1..2159ba5f75 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cse/requirements.txt b/huaweicloud-sdk-cse/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-cse/requirements.txt +++ b/huaweicloud-sdk-cse/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-cse/setup.py b/huaweicloud-sdk-cse/setup.py index 6ac832ea50..f50a4ac589 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-csms/requirements.txt b/huaweicloud-sdk-csms/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-csms/requirements.txt +++ b/huaweicloud-sdk-csms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-csms/setup.py b/huaweicloud-sdk-csms/setup.py index 361bc02abe..4645856baa 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-css/requirements.txt b/huaweicloud-sdk-css/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-css/requirements.txt +++ b/huaweicloud-sdk-css/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-css/setup.py b/huaweicloud-sdk-css/setup.py index 22378bc940..6ff6997562 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cts/requirements.txt b/huaweicloud-sdk-cts/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-cts/requirements.txt +++ b/huaweicloud-sdk-cts/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-cts/setup.py b/huaweicloud-sdk-cts/setup.py index 04e6b42434..ceeeb60703 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-das/huaweicloudsdkdas/v3/das_async_client.py b/huaweicloud-sdk-das/huaweicloudsdkdas/v3/das_async_client.py index 9d48659ccf..cacd968ce4 100644 --- a/huaweicloud-sdk-das/huaweicloudsdkdas/v3/das_async_client.py +++ b/huaweicloud-sdk-das/huaweicloudsdkdas/v3/das_async_client.py @@ -1848,7 +1848,7 @@ def _list_processes_http_info(self, request): def list_space_analysis_async(self, request): """获取空间分析数据列表 - 获取空间分析数据列表。实例级别数据来源于文件系统,库级别和表级别数据来源于information_schema.tables表。空间&元数据分析最多分析10000张表,若缺少库表空间数据,可能是因为数据库实例表个数过多或者账号未保存密码。如果为保存密码,请使用用户管理接口或页面录入数据库账号。支持MySQL和GaussDB(for MySQL)引擎 + 获取空间分析数据列表。实例级别数据来源于文件系统,库级别和表级别数据来源于information_schema.tables表。空间&元数据分析最多分析10000张表,若缺少库表空间数据,可能是因为数据库实例表个数过多或者账号未保存密码。如果为保存密码,请使用用户管理接口或页面录入数据库账号。 支持MySQL、GaussDB(for MySQL)和SQLServer引擎。 Please refer to HUAWEI cloud API Explorer for details. diff --git a/huaweicloud-sdk-das/huaweicloudsdkdas/v3/das_client.py b/huaweicloud-sdk-das/huaweicloudsdkdas/v3/das_client.py index fd5f5863c6..66162c1ed4 100644 --- a/huaweicloud-sdk-das/huaweicloudsdkdas/v3/das_client.py +++ b/huaweicloud-sdk-das/huaweicloudsdkdas/v3/das_client.py @@ -1848,7 +1848,7 @@ def _list_processes_http_info(cls, request): def list_space_analysis(self, request): """获取空间分析数据列表 - 获取空间分析数据列表。实例级别数据来源于文件系统,库级别和表级别数据来源于information_schema.tables表。空间&元数据分析最多分析10000张表,若缺少库表空间数据,可能是因为数据库实例表个数过多或者账号未保存密码。如果为保存密码,请使用用户管理接口或页面录入数据库账号。支持MySQL和GaussDB(for MySQL)引擎 + 获取空间分析数据列表。实例级别数据来源于文件系统,库级别和表级别数据来源于information_schema.tables表。空间&元数据分析最多分析10000张表,若缺少库表空间数据,可能是因为数据库实例表个数过多或者账号未保存密码。如果为保存密码,请使用用户管理接口或页面录入数据库账号。 支持MySQL、GaussDB(for MySQL)和SQLServer引擎。 Please refer to HUAWEI cloud API Explorer for details. diff --git a/huaweicloud-sdk-das/requirements.txt b/huaweicloud-sdk-das/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-das/requirements.txt +++ b/huaweicloud-sdk-das/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-das/setup.py b/huaweicloud-sdk-das/setup.py index 108371d2ad..cb517cd54c 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dataartsstudio/requirements.txt b/huaweicloud-sdk-dataartsstudio/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-dataartsstudio/requirements.txt +++ b/huaweicloud-sdk-dataartsstudio/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-dataartsstudio/setup.py b/huaweicloud-sdk-dataartsstudio/setup.py index 9194348b8d..fa3e30da93 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dbss/requirements.txt b/huaweicloud-sdk-dbss/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-dbss/requirements.txt +++ b/huaweicloud-sdk-dbss/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-dbss/setup.py b/huaweicloud-sdk-dbss/setup.py index dcd01da522..97e9064f89 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dc/requirements.txt b/huaweicloud-sdk-dc/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-dc/requirements.txt +++ b/huaweicloud-sdk-dc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-dc/setup.py b/huaweicloud-sdk-dc/setup.py index 8af3e1b253..25d7abd97b 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/__init__.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/__init__.py index c5a871d598..d1145a396f 100644 --- a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/__init__.py +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/__init__.py @@ -24,6 +24,10 @@ from huaweicloudsdkdcs.v2.model.batch_delete_instances_request import BatchDeleteInstancesRequest from huaweicloudsdkdcs.v2.model.batch_delete_instances_response import BatchDeleteInstancesResponse from huaweicloudsdkdcs.v2.model.batch_ops_result import BatchOpsResult +from huaweicloudsdkdcs.v2.model.batch_restart_migration_task_result import BatchRestartMigrationTaskResult +from huaweicloudsdkdcs.v2.model.batch_restart_online_migration_tasks_body import BatchRestartOnlineMigrationTasksBody +from huaweicloudsdkdcs.v2.model.batch_restart_online_migration_tasks_request import BatchRestartOnlineMigrationTasksRequest +from huaweicloudsdkdcs.v2.model.batch_restart_online_migration_tasks_response import BatchRestartOnlineMigrationTasksResponse from huaweicloudsdkdcs.v2.model.batch_show_nodes_information_request import BatchShowNodesInformationRequest from huaweicloudsdkdcs.v2.model.batch_show_nodes_information_response import BatchShowNodesInformationResponse from huaweicloudsdkdcs.v2.model.batch_stop_migration_tasks_body import BatchStopMigrationTasksBody diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/dcs_async_client.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/dcs_async_client.py index a998e50665..1c11ceaab4 100644 --- a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/dcs_async_client.py +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/dcs_async_client.py @@ -166,6 +166,71 @@ def _batch_delete_instances_http_info(self, request): return http_info + def batch_restart_online_migration_tasks_async(self, request): + """批量重启在线迁移任务 + + 批量重启在线迁移任务,接口响应成功,返回重启在线迁移任务下发结果。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for BatchRestartOnlineMigrationTasks + :type request: :class:`huaweicloudsdkdcs.v2.BatchRestartOnlineMigrationTasksRequest` + :rtype: :class:`huaweicloudsdkdcs.v2.BatchRestartOnlineMigrationTasksResponse` + """ + http_info = self._batch_restart_online_migration_tasks_http_info(request) + return self._call_api(**http_info) + + def batch_restart_online_migration_tasks_async_invoker(self, request): + http_info = self._batch_restart_online_migration_tasks_http_info(request) + return AsyncInvoker(self, http_info) + + def _batch_restart_online_migration_tasks_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v2/{project_id}/migration-tasks/batch-restart", + "request_type": request.__class__.__name__, + "response_type": "BatchRestartOnlineMigrationTasksResponse" + } + + 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 batch_show_nodes_information_async(self, request): """批量查询实例节点信息 diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/dcs_client.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/dcs_client.py index e422a5a580..507ef6c53f 100644 --- a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/dcs_client.py +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/dcs_client.py @@ -166,6 +166,71 @@ def _batch_delete_instances_http_info(cls, request): return http_info + def batch_restart_online_migration_tasks(self, request): + """批量重启在线迁移任务 + + 批量重启在线迁移任务,接口响应成功,返回重启在线迁移任务下发结果。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for BatchRestartOnlineMigrationTasks + :type request: :class:`huaweicloudsdkdcs.v2.BatchRestartOnlineMigrationTasksRequest` + :rtype: :class:`huaweicloudsdkdcs.v2.BatchRestartOnlineMigrationTasksResponse` + """ + http_info = self._batch_restart_online_migration_tasks_http_info(request) + return self._call_api(**http_info) + + def batch_restart_online_migration_tasks_invoker(self, request): + http_info = self._batch_restart_online_migration_tasks_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _batch_restart_online_migration_tasks_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v2/{project_id}/migration-tasks/batch-restart", + "request_type": request.__class__.__name__, + "response_type": "BatchRestartOnlineMigrationTasksResponse" + } + + 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 batch_show_nodes_information(self, request): """批量查询实例节点信息 diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/__init__.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/__init__.py index 714f05ac36..afffa5f10c 100644 --- a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/__init__.py +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/__init__.py @@ -22,6 +22,10 @@ from huaweicloudsdkdcs.v2.model.batch_delete_instances_request import BatchDeleteInstancesRequest from huaweicloudsdkdcs.v2.model.batch_delete_instances_response import BatchDeleteInstancesResponse from huaweicloudsdkdcs.v2.model.batch_ops_result import BatchOpsResult +from huaweicloudsdkdcs.v2.model.batch_restart_migration_task_result import BatchRestartMigrationTaskResult +from huaweicloudsdkdcs.v2.model.batch_restart_online_migration_tasks_body import BatchRestartOnlineMigrationTasksBody +from huaweicloudsdkdcs.v2.model.batch_restart_online_migration_tasks_request import BatchRestartOnlineMigrationTasksRequest +from huaweicloudsdkdcs.v2.model.batch_restart_online_migration_tasks_response import BatchRestartOnlineMigrationTasksResponse from huaweicloudsdkdcs.v2.model.batch_show_nodes_information_request import BatchShowNodesInformationRequest from huaweicloudsdkdcs.v2.model.batch_show_nodes_information_response import BatchShowNodesInformationResponse from huaweicloudsdkdcs.v2.model.batch_stop_migration_tasks_body import BatchStopMigrationTasksBody diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/batch_restart_migration_task_result.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/batch_restart_migration_task_result.py new file mode 100644 index 0000000000..7be071b1b9 --- /dev/null +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/batch_restart_migration_task_result.py @@ -0,0 +1,202 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class BatchRestartMigrationTaskResult: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'result': 'str', + 'task_id': 'str', + 'error_msg': 'str', + 'error_code': 'str' + } + + attribute_map = { + 'result': 'result', + 'task_id': 'task_id', + 'error_msg': 'error_msg', + 'error_code': 'error_code' + } + + def __init__(self, result=None, task_id=None, error_msg=None, error_code=None): + """BatchRestartMigrationTaskResult + + The model defined in huaweicloud sdk + + :param result: 下发重启迁移任务操作结果。 + :type result: str + :param task_id: 数据迁移任务ID。 + :type task_id: str + :param error_msg: 错误信息 + :type error_msg: str + :param error_code: 错误码 + :type error_code: str + """ + + + + self._result = None + self._task_id = None + self._error_msg = None + self._error_code = None + self.discriminator = None + + if result is not None: + self.result = result + if task_id is not None: + self.task_id = task_id + if error_msg is not None: + self.error_msg = error_msg + if error_code is not None: + self.error_code = error_code + + @property + def result(self): + """Gets the result of this BatchRestartMigrationTaskResult. + + 下发重启迁移任务操作结果。 + + :return: The result of this BatchRestartMigrationTaskResult. + :rtype: str + """ + return self._result + + @result.setter + def result(self, result): + """Sets the result of this BatchRestartMigrationTaskResult. + + 下发重启迁移任务操作结果。 + + :param result: The result of this BatchRestartMigrationTaskResult. + :type result: str + """ + self._result = result + + @property + def task_id(self): + """Gets the task_id of this BatchRestartMigrationTaskResult. + + 数据迁移任务ID。 + + :return: The task_id of this BatchRestartMigrationTaskResult. + :rtype: str + """ + return self._task_id + + @task_id.setter + def task_id(self, task_id): + """Sets the task_id of this BatchRestartMigrationTaskResult. + + 数据迁移任务ID。 + + :param task_id: The task_id of this BatchRestartMigrationTaskResult. + :type task_id: str + """ + self._task_id = task_id + + @property + def error_msg(self): + """Gets the error_msg of this BatchRestartMigrationTaskResult. + + 错误信息 + + :return: The error_msg of this BatchRestartMigrationTaskResult. + :rtype: str + """ + return self._error_msg + + @error_msg.setter + def error_msg(self, error_msg): + """Sets the error_msg of this BatchRestartMigrationTaskResult. + + 错误信息 + + :param error_msg: The error_msg of this BatchRestartMigrationTaskResult. + :type error_msg: str + """ + self._error_msg = error_msg + + @property + def error_code(self): + """Gets the error_code of this BatchRestartMigrationTaskResult. + + 错误码 + + :return: The error_code of this BatchRestartMigrationTaskResult. + :rtype: str + """ + return self._error_code + + @error_code.setter + def error_code(self, error_code): + """Sets the error_code of this BatchRestartMigrationTaskResult. + + 错误码 + + :param error_code: The error_code of this BatchRestartMigrationTaskResult. + :type error_code: str + """ + self._error_code = error_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, BatchRestartMigrationTaskResult): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/batch_restart_online_migration_tasks_body.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/batch_restart_online_migration_tasks_body.py new file mode 100644 index 0000000000..a57dd1be7e --- /dev/null +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/batch_restart_online_migration_tasks_body.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class BatchRestartOnlineMigrationTasksBody: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'migration_tasks': 'list[str]' + } + + attribute_map = { + 'migration_tasks': 'migration_tasks' + } + + def __init__(self, migration_tasks=None): + """BatchRestartOnlineMigrationTasksBody + + The model defined in huaweicloud sdk + + :param migration_tasks: 数据迁移任务列表。 + :type migration_tasks: list[str] + """ + + + + self._migration_tasks = None + self.discriminator = None + + self.migration_tasks = migration_tasks + + @property + def migration_tasks(self): + """Gets the migration_tasks of this BatchRestartOnlineMigrationTasksBody. + + 数据迁移任务列表。 + + :return: The migration_tasks of this BatchRestartOnlineMigrationTasksBody. + :rtype: list[str] + """ + return self._migration_tasks + + @migration_tasks.setter + def migration_tasks(self, migration_tasks): + """Sets the migration_tasks of this BatchRestartOnlineMigrationTasksBody. + + 数据迁移任务列表。 + + :param migration_tasks: The migration_tasks of this BatchRestartOnlineMigrationTasksBody. + :type migration_tasks: list[str] + """ + self._migration_tasks = migration_tasks + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BatchRestartOnlineMigrationTasksBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/batch_restart_online_migration_tasks_request.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/batch_restart_online_migration_tasks_request.py new file mode 100644 index 0000000000..7667e10405 --- /dev/null +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/batch_restart_online_migration_tasks_request.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class BatchRestartOnlineMigrationTasksRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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': 'BatchRestartOnlineMigrationTasksBody' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """BatchRestartOnlineMigrationTasksRequest + + The model defined in huaweicloud sdk + + :param body: Body of the BatchRestartOnlineMigrationTasksRequest + :type body: :class:`huaweicloudsdkdcs.v2.BatchRestartOnlineMigrationTasksBody` + """ + + + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this BatchRestartOnlineMigrationTasksRequest. + + :return: The body of this BatchRestartOnlineMigrationTasksRequest. + :rtype: :class:`huaweicloudsdkdcs.v2.BatchRestartOnlineMigrationTasksBody` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this BatchRestartOnlineMigrationTasksRequest. + + :param body: The body of this BatchRestartOnlineMigrationTasksRequest. + :type body: :class:`huaweicloudsdkdcs.v2.BatchRestartOnlineMigrationTasksBody` + """ + 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, BatchRestartOnlineMigrationTasksRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/batch_restart_online_migration_tasks_response.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/batch_restart_online_migration_tasks_response.py new file mode 100644 index 0000000000..66f7d85d0e --- /dev/null +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/batch_restart_online_migration_tasks_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 BatchRestartOnlineMigrationTasksResponse(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 = { + 'migration_tasks': 'list[BatchRestartMigrationTaskResult]' + } + + attribute_map = { + 'migration_tasks': 'migration_tasks' + } + + def __init__(self, migration_tasks=None): + """BatchRestartOnlineMigrationTasksResponse + + The model defined in huaweicloud sdk + + :param migration_tasks: 数据迁移任务列表。 + :type migration_tasks: list[:class:`huaweicloudsdkdcs.v2.BatchRestartMigrationTaskResult`] + """ + + super(BatchRestartOnlineMigrationTasksResponse, self).__init__() + + self._migration_tasks = None + self.discriminator = None + + if migration_tasks is not None: + self.migration_tasks = migration_tasks + + @property + def migration_tasks(self): + """Gets the migration_tasks of this BatchRestartOnlineMigrationTasksResponse. + + 数据迁移任务列表。 + + :return: The migration_tasks of this BatchRestartOnlineMigrationTasksResponse. + :rtype: list[:class:`huaweicloudsdkdcs.v2.BatchRestartMigrationTaskResult`] + """ + return self._migration_tasks + + @migration_tasks.setter + def migration_tasks(self, migration_tasks): + """Sets the migration_tasks of this BatchRestartOnlineMigrationTasksResponse. + + 数据迁移任务列表。 + + :param migration_tasks: The migration_tasks of this BatchRestartOnlineMigrationTasksResponse. + :type migration_tasks: list[:class:`huaweicloudsdkdcs.v2.BatchRestartMigrationTaskResult`] + """ + self._migration_tasks = migration_tasks + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BatchRestartOnlineMigrationTasksResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/stop_migration_task_result.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/stop_migration_task_result.py index e99b6ed7d0..be97a24208 100644 --- a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/stop_migration_task_result.py +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/stop_migration_task_result.py @@ -18,15 +18,19 @@ class StopMigrationTaskResult: openapi_types = { 'result': 'str', - 'task_id': 'str' + 'task_id': 'str', + 'error_msg': 'str', + 'error_code': 'str' } attribute_map = { 'result': 'result', - 'task_id': 'task_id' + 'task_id': 'task_id', + 'error_msg': 'error_msg', + 'error_code': 'error_code' } - def __init__(self, result=None, task_id=None): + def __init__(self, result=None, task_id=None, error_msg=None, error_code=None): """StopMigrationTaskResult The model defined in huaweicloud sdk @@ -35,18 +39,28 @@ def __init__(self, result=None, task_id=None): :type result: str :param task_id: 数据迁移任务ID。 :type task_id: str + :param error_msg: 错误信息 + :type error_msg: str + :param error_code: 错误码 + :type error_code: str """ self._result = None self._task_id = None + self._error_msg = None + self._error_code = None self.discriminator = None if result is not None: self.result = result if task_id is not None: self.task_id = task_id + if error_msg is not None: + self.error_msg = error_msg + if error_code is not None: + self.error_code = error_code @property def result(self): @@ -92,6 +106,50 @@ def task_id(self, task_id): """ self._task_id = task_id + @property + def error_msg(self): + """Gets the error_msg of this StopMigrationTaskResult. + + 错误信息 + + :return: The error_msg of this StopMigrationTaskResult. + :rtype: str + """ + return self._error_msg + + @error_msg.setter + def error_msg(self, error_msg): + """Sets the error_msg of this StopMigrationTaskResult. + + 错误信息 + + :param error_msg: The error_msg of this StopMigrationTaskResult. + :type error_msg: str + """ + self._error_msg = error_msg + + @property + def error_code(self): + """Gets the error_code of this StopMigrationTaskResult. + + 错误码 + + :return: The error_code of this StopMigrationTaskResult. + :rtype: str + """ + return self._error_code + + @error_code.setter + def error_code(self, error_code): + """Sets the error_code of this StopMigrationTaskResult. + + 错误码 + + :param error_code: The error_code of this StopMigrationTaskResult. + :type error_code: str + """ + self._error_code = error_code + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-dcs/requirements.txt b/huaweicloud-sdk-dcs/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-dcs/requirements.txt +++ b/huaweicloud-sdk-dcs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-dcs/setup.py b/huaweicloud-sdk-dcs/setup.py index d09619a8ab..3f3f72eee0 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ddm/requirements.txt b/huaweicloud-sdk-ddm/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-ddm/requirements.txt +++ b/huaweicloud-sdk-ddm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-ddm/setup.py b/huaweicloud-sdk-ddm/setup.py index c29e4ea46a..ef95c8b71b 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dds/requirements.txt b/huaweicloud-sdk-dds/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-dds/requirements.txt +++ b/huaweicloud-sdk-dds/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-dds/setup.py b/huaweicloud-sdk-dds/setup.py index 3721c7cc93..f232f41b09 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-deh/requirements.txt b/huaweicloud-sdk-deh/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-deh/requirements.txt +++ b/huaweicloud-sdk-deh/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-deh/setup.py b/huaweicloud-sdk-deh/setup.py index 6842ca2a93..ff4c8d6062 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-devstar/requirements.txt b/huaweicloud-sdk-devstar/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-devstar/requirements.txt +++ b/huaweicloud-sdk-devstar/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-devstar/setup.py b/huaweicloud-sdk-devstar/setup.py index 8b6a7a66ba..616d3ccef5 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dgc/requirements.txt b/huaweicloud-sdk-dgc/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-dgc/requirements.txt +++ b/huaweicloud-sdk-dgc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-dgc/setup.py b/huaweicloud-sdk-dgc/setup.py index b290704ee5..32d51bfb34 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dis/requirements.txt b/huaweicloud-sdk-dis/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-dis/requirements.txt +++ b/huaweicloud-sdk-dis/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-dis/setup.py b/huaweicloud-sdk-dis/setup.py index 9a5c2ccfe1..6eedb2d734 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dlf/requirements.txt b/huaweicloud-sdk-dlf/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-dlf/requirements.txt +++ b/huaweicloud-sdk-dlf/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-dlf/setup.py b/huaweicloud-sdk-dlf/setup.py index c35fa86dc0..eb012c836d 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dli/huaweicloudsdkdli/v1/model/queue.py b/huaweicloud-sdk-dli/huaweicloudsdkdli/v1/model/queue.py index 14da184d05..cdd01c373a 100644 --- a/huaweicloud-sdk-dli/huaweicloudsdkdli/v1/model/queue.py +++ b/huaweicloud-sdk-dli/huaweicloudsdkdli/v1/model/queue.py @@ -39,7 +39,15 @@ class Queue: 'cu_spec': 'int', 'cu_scale_out_limit': 'int', 'cu_scale_in_limit': 'int', - 'elastic_resource_pool_name': 'str' + 'elastic_resource_pool_name': 'str', + 'support_spark_versions': 'list[str]', + 'default_spark_version': 'str', + 'support_hetu_engine_versions': 'list[str]', + 'default_hetu_engine_version': 'str', + 'support_flink_sql_versions': 'list[str]', + 'default_flink_sql_version': 'str', + 'support_flink_jar_versions': 'list[str]', + 'default_flink_jar_version': 'str' } attribute_map = { @@ -65,10 +73,18 @@ class Queue: 'cu_spec': 'cu_spec', 'cu_scale_out_limit': 'cu_scale_out_limit', 'cu_scale_in_limit': 'cu_scale_in_limit', - 'elastic_resource_pool_name': 'elastic_resource_pool_name' + 'elastic_resource_pool_name': 'elastic_resource_pool_name', + 'support_spark_versions': 'support_spark_versions', + 'default_spark_version': 'default_spark_version', + 'support_hetu_engine_versions': 'support_hetu_engine_versions', + 'default_hetu_engine_version': 'default_hetu_engine_version', + 'support_flink_sql_versions': 'support_flink_sql_versions', + 'default_flink_sql_version': 'default_flink_sql_version', + 'support_flink_jar_versions': 'support_flink_jar_versions', + 'default_flink_jar_version': 'default_flink_jar_version' } - def __init__(self, queue_id=None, queue_name=None, description=None, owner=None, create_time=None, queue_type=None, cu_count=None, charging_mode=None, resource_id=None, enterprise_project_id=None, cidr_in_vpc=None, cidr_in_mgntsubnet=None, cidr_in_subnet=None, resource_mode=None, platform=None, is_restarting=None, labels=None, feature=None, resource_type=None, cu_spec=None, cu_scale_out_limit=None, cu_scale_in_limit=None, elastic_resource_pool_name=None): + def __init__(self, queue_id=None, queue_name=None, description=None, owner=None, create_time=None, queue_type=None, cu_count=None, charging_mode=None, resource_id=None, enterprise_project_id=None, cidr_in_vpc=None, cidr_in_mgntsubnet=None, cidr_in_subnet=None, resource_mode=None, platform=None, is_restarting=None, labels=None, feature=None, resource_type=None, cu_spec=None, cu_scale_out_limit=None, cu_scale_in_limit=None, elastic_resource_pool_name=None, support_spark_versions=None, default_spark_version=None, support_hetu_engine_versions=None, default_hetu_engine_version=None, support_flink_sql_versions=None, default_flink_sql_version=None, support_flink_jar_versions=None, default_flink_jar_version=None): """Queue The model defined in huaweicloud sdk @@ -119,6 +135,22 @@ def __init__(self, queue_id=None, queue_name=None, description=None, owner=None, :type cu_scale_in_limit: int :param elastic_resource_pool_name: 弹性资源池名称。 :type elastic_resource_pool_name: str + :param support_spark_versions: 队列支持的Spark版本。 + :type support_spark_versions: list[str] + :param default_spark_version: 队列默认的Spark版本。 + :type default_spark_version: str + :param support_hetu_engine_versions: 队列支持的HetuEngine版本。 + :type support_hetu_engine_versions: list[str] + :param default_hetu_engine_version: 队列默认的HetuEngine版本。 + :type default_hetu_engine_version: str + :param support_flink_sql_versions: 队列支持的Flink SQL版本。 + :type support_flink_sql_versions: list[str] + :param default_flink_sql_version: 队列默认的Flink SQL版本。 + :type default_flink_sql_version: str + :param support_flink_jar_versions: 队列支持的Flink JAR版本。 + :type support_flink_jar_versions: list[str] + :param default_flink_jar_version: 队列默认的Flink JAR版本。 + :type default_flink_jar_version: str """ @@ -146,6 +178,14 @@ def __init__(self, queue_id=None, queue_name=None, description=None, owner=None, self._cu_scale_out_limit = None self._cu_scale_in_limit = None self._elastic_resource_pool_name = None + self._support_spark_versions = None + self._default_spark_version = None + self._support_hetu_engine_versions = None + self._default_hetu_engine_version = None + self._support_flink_sql_versions = None + self._default_flink_sql_version = None + self._support_flink_jar_versions = None + self._default_flink_jar_version = None self.discriminator = None if queue_id is not None: @@ -194,6 +234,22 @@ def __init__(self, queue_id=None, queue_name=None, description=None, owner=None, self.cu_scale_in_limit = cu_scale_in_limit if elastic_resource_pool_name is not None: self.elastic_resource_pool_name = elastic_resource_pool_name + if support_spark_versions is not None: + self.support_spark_versions = support_spark_versions + if default_spark_version is not None: + self.default_spark_version = default_spark_version + if support_hetu_engine_versions is not None: + self.support_hetu_engine_versions = support_hetu_engine_versions + if default_hetu_engine_version is not None: + self.default_hetu_engine_version = default_hetu_engine_version + if support_flink_sql_versions is not None: + self.support_flink_sql_versions = support_flink_sql_versions + if default_flink_sql_version is not None: + self.default_flink_sql_version = default_flink_sql_version + if support_flink_jar_versions is not None: + self.support_flink_jar_versions = support_flink_jar_versions + if default_flink_jar_version is not None: + self.default_flink_jar_version = default_flink_jar_version @property def queue_id(self): @@ -701,6 +757,182 @@ def elastic_resource_pool_name(self, elastic_resource_pool_name): """ self._elastic_resource_pool_name = elastic_resource_pool_name + @property + def support_spark_versions(self): + """Gets the support_spark_versions of this Queue. + + 队列支持的Spark版本。 + + :return: The support_spark_versions of this Queue. + :rtype: list[str] + """ + return self._support_spark_versions + + @support_spark_versions.setter + def support_spark_versions(self, support_spark_versions): + """Sets the support_spark_versions of this Queue. + + 队列支持的Spark版本。 + + :param support_spark_versions: The support_spark_versions of this Queue. + :type support_spark_versions: list[str] + """ + self._support_spark_versions = support_spark_versions + + @property + def default_spark_version(self): + """Gets the default_spark_version of this Queue. + + 队列默认的Spark版本。 + + :return: The default_spark_version of this Queue. + :rtype: str + """ + return self._default_spark_version + + @default_spark_version.setter + def default_spark_version(self, default_spark_version): + """Sets the default_spark_version of this Queue. + + 队列默认的Spark版本。 + + :param default_spark_version: The default_spark_version of this Queue. + :type default_spark_version: str + """ + self._default_spark_version = default_spark_version + + @property + def support_hetu_engine_versions(self): + """Gets the support_hetu_engine_versions of this Queue. + + 队列支持的HetuEngine版本。 + + :return: The support_hetu_engine_versions of this Queue. + :rtype: list[str] + """ + return self._support_hetu_engine_versions + + @support_hetu_engine_versions.setter + def support_hetu_engine_versions(self, support_hetu_engine_versions): + """Sets the support_hetu_engine_versions of this Queue. + + 队列支持的HetuEngine版本。 + + :param support_hetu_engine_versions: The support_hetu_engine_versions of this Queue. + :type support_hetu_engine_versions: list[str] + """ + self._support_hetu_engine_versions = support_hetu_engine_versions + + @property + def default_hetu_engine_version(self): + """Gets the default_hetu_engine_version of this Queue. + + 队列默认的HetuEngine版本。 + + :return: The default_hetu_engine_version of this Queue. + :rtype: str + """ + return self._default_hetu_engine_version + + @default_hetu_engine_version.setter + def default_hetu_engine_version(self, default_hetu_engine_version): + """Sets the default_hetu_engine_version of this Queue. + + 队列默认的HetuEngine版本。 + + :param default_hetu_engine_version: The default_hetu_engine_version of this Queue. + :type default_hetu_engine_version: str + """ + self._default_hetu_engine_version = default_hetu_engine_version + + @property + def support_flink_sql_versions(self): + """Gets the support_flink_sql_versions of this Queue. + + 队列支持的Flink SQL版本。 + + :return: The support_flink_sql_versions of this Queue. + :rtype: list[str] + """ + return self._support_flink_sql_versions + + @support_flink_sql_versions.setter + def support_flink_sql_versions(self, support_flink_sql_versions): + """Sets the support_flink_sql_versions of this Queue. + + 队列支持的Flink SQL版本。 + + :param support_flink_sql_versions: The support_flink_sql_versions of this Queue. + :type support_flink_sql_versions: list[str] + """ + self._support_flink_sql_versions = support_flink_sql_versions + + @property + def default_flink_sql_version(self): + """Gets the default_flink_sql_version of this Queue. + + 队列默认的Flink SQL版本。 + + :return: The default_flink_sql_version of this Queue. + :rtype: str + """ + return self._default_flink_sql_version + + @default_flink_sql_version.setter + def default_flink_sql_version(self, default_flink_sql_version): + """Sets the default_flink_sql_version of this Queue. + + 队列默认的Flink SQL版本。 + + :param default_flink_sql_version: The default_flink_sql_version of this Queue. + :type default_flink_sql_version: str + """ + self._default_flink_sql_version = default_flink_sql_version + + @property + def support_flink_jar_versions(self): + """Gets the support_flink_jar_versions of this Queue. + + 队列支持的Flink JAR版本。 + + :return: The support_flink_jar_versions of this Queue. + :rtype: list[str] + """ + return self._support_flink_jar_versions + + @support_flink_jar_versions.setter + def support_flink_jar_versions(self, support_flink_jar_versions): + """Sets the support_flink_jar_versions of this Queue. + + 队列支持的Flink JAR版本。 + + :param support_flink_jar_versions: The support_flink_jar_versions of this Queue. + :type support_flink_jar_versions: list[str] + """ + self._support_flink_jar_versions = support_flink_jar_versions + + @property + def default_flink_jar_version(self): + """Gets the default_flink_jar_version of this Queue. + + 队列默认的Flink JAR版本。 + + :return: The default_flink_jar_version of this Queue. + :rtype: str + """ + return self._default_flink_jar_version + + @default_flink_jar_version.setter + def default_flink_jar_version(self, default_flink_jar_version): + """Sets the default_flink_jar_version of this Queue. + + 队列默认的Flink JAR版本。 + + :param default_flink_jar_version: The default_flink_jar_version of this Queue. + :type default_flink_jar_version: str + """ + self._default_flink_jar_version = default_flink_jar_version + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-dli/huaweicloudsdkdli/v1/model/show_queue_response.py b/huaweicloud-sdk-dli/huaweicloudsdkdli/v1/model/show_queue_response.py index 2a10b2b18d..ecfe970897 100644 --- a/huaweicloud-sdk-dli/huaweicloudsdkdli/v1/model/show_queue_response.py +++ b/huaweicloud-sdk-dli/huaweicloudsdkdli/v1/model/show_queue_response.py @@ -35,7 +35,15 @@ class ShowQueueResponse(SdkResponse): 'cu_spec': 'int', 'cu_scale_out_limit': 'int', 'cu_scale_in_limit': 'int', - 'elastic_resource_pool_name': 'str' + 'elastic_resource_pool_name': 'str', + 'support_spark_versions': 'list[str]', + 'default_spark_version': 'str', + 'support_hetu_engine_versions': 'list[str]', + 'default_hetu_engine_version': 'str', + 'support_flink_sql_versions': 'list[str]', + 'default_flink_sql_version': 'str', + 'support_flink_jar_versions': 'list[str]', + 'default_flink_jar_version': 'str' } attribute_map = { @@ -56,10 +64,18 @@ class ShowQueueResponse(SdkResponse): 'cu_spec': 'cu_spec', 'cu_scale_out_limit': 'cu_scale_out_limit', 'cu_scale_in_limit': 'cu_scale_in_limit', - 'elastic_resource_pool_name': 'elastic_resource_pool_name' + 'elastic_resource_pool_name': 'elastic_resource_pool_name', + 'support_spark_versions': 'support_spark_versions', + 'default_spark_version': 'default_spark_version', + 'support_hetu_engine_versions': 'support_hetu_engine_versions', + 'default_hetu_engine_version': 'default_hetu_engine_version', + 'support_flink_sql_versions': 'support_flink_sql_versions', + 'default_flink_sql_version': 'default_flink_sql_version', + 'support_flink_jar_versions': 'support_flink_jar_versions', + 'default_flink_jar_version': 'default_flink_jar_version' } - def __init__(self, is_success=None, message=None, queue_id=None, queue_name=None, description=None, owner=None, create_time=None, queue_type=None, cu_count=None, charging_mode=None, resource_id=None, resource_mode=None, enterprise_project_id=None, resource_type=None, cu_spec=None, cu_scale_out_limit=None, cu_scale_in_limit=None, elastic_resource_pool_name=None): + def __init__(self, is_success=None, message=None, queue_id=None, queue_name=None, description=None, owner=None, create_time=None, queue_type=None, cu_count=None, charging_mode=None, resource_id=None, resource_mode=None, enterprise_project_id=None, resource_type=None, cu_spec=None, cu_scale_out_limit=None, cu_scale_in_limit=None, elastic_resource_pool_name=None, support_spark_versions=None, default_spark_version=None, support_hetu_engine_versions=None, default_hetu_engine_version=None, support_flink_sql_versions=None, default_flink_sql_version=None, support_flink_jar_versions=None, default_flink_jar_version=None): """ShowQueueResponse The model defined in huaweicloud sdk @@ -100,6 +116,22 @@ def __init__(self, is_success=None, message=None, queue_id=None, queue_name=None :type cu_scale_in_limit: int :param elastic_resource_pool_name: 弹性资源池名称。 :type elastic_resource_pool_name: str + :param support_spark_versions: 队列支持的Spark版本。 + :type support_spark_versions: list[str] + :param default_spark_version: 队列默认的Spark版本。 + :type default_spark_version: str + :param support_hetu_engine_versions: 队列支持的HetuEngine版本。 + :type support_hetu_engine_versions: list[str] + :param default_hetu_engine_version: 队列默认的HetuEngine版本。 + :type default_hetu_engine_version: str + :param support_flink_sql_versions: 队列支持的Flink SQL版本。 + :type support_flink_sql_versions: list[str] + :param default_flink_sql_version: 队列默认的Flink SQL版本。 + :type default_flink_sql_version: str + :param support_flink_jar_versions: 队列支持的Flink JAR版本。 + :type support_flink_jar_versions: list[str] + :param default_flink_jar_version: 队列默认的Flink JAR版本。 + :type default_flink_jar_version: str """ super(ShowQueueResponse, self).__init__() @@ -122,6 +154,14 @@ def __init__(self, is_success=None, message=None, queue_id=None, queue_name=None self._cu_scale_out_limit = None self._cu_scale_in_limit = None self._elastic_resource_pool_name = None + self._support_spark_versions = None + self._default_spark_version = None + self._support_hetu_engine_versions = None + self._default_hetu_engine_version = None + self._support_flink_sql_versions = None + self._default_flink_sql_version = None + self._support_flink_jar_versions = None + self._default_flink_jar_version = None self.discriminator = None if is_success is not None: @@ -160,6 +200,22 @@ def __init__(self, is_success=None, message=None, queue_id=None, queue_name=None self.cu_scale_in_limit = cu_scale_in_limit if elastic_resource_pool_name is not None: self.elastic_resource_pool_name = elastic_resource_pool_name + if support_spark_versions is not None: + self.support_spark_versions = support_spark_versions + if default_spark_version is not None: + self.default_spark_version = default_spark_version + if support_hetu_engine_versions is not None: + self.support_hetu_engine_versions = support_hetu_engine_versions + if default_hetu_engine_version is not None: + self.default_hetu_engine_version = default_hetu_engine_version + if support_flink_sql_versions is not None: + self.support_flink_sql_versions = support_flink_sql_versions + if default_flink_sql_version is not None: + self.default_flink_sql_version = default_flink_sql_version + if support_flink_jar_versions is not None: + self.support_flink_jar_versions = support_flink_jar_versions + if default_flink_jar_version is not None: + self.default_flink_jar_version = default_flink_jar_version @property def is_success(self): @@ -557,6 +613,182 @@ def elastic_resource_pool_name(self, elastic_resource_pool_name): """ self._elastic_resource_pool_name = elastic_resource_pool_name + @property + def support_spark_versions(self): + """Gets the support_spark_versions of this ShowQueueResponse. + + 队列支持的Spark版本。 + + :return: The support_spark_versions of this ShowQueueResponse. + :rtype: list[str] + """ + return self._support_spark_versions + + @support_spark_versions.setter + def support_spark_versions(self, support_spark_versions): + """Sets the support_spark_versions of this ShowQueueResponse. + + 队列支持的Spark版本。 + + :param support_spark_versions: The support_spark_versions of this ShowQueueResponse. + :type support_spark_versions: list[str] + """ + self._support_spark_versions = support_spark_versions + + @property + def default_spark_version(self): + """Gets the default_spark_version of this ShowQueueResponse. + + 队列默认的Spark版本。 + + :return: The default_spark_version of this ShowQueueResponse. + :rtype: str + """ + return self._default_spark_version + + @default_spark_version.setter + def default_spark_version(self, default_spark_version): + """Sets the default_spark_version of this ShowQueueResponse. + + 队列默认的Spark版本。 + + :param default_spark_version: The default_spark_version of this ShowQueueResponse. + :type default_spark_version: str + """ + self._default_spark_version = default_spark_version + + @property + def support_hetu_engine_versions(self): + """Gets the support_hetu_engine_versions of this ShowQueueResponse. + + 队列支持的HetuEngine版本。 + + :return: The support_hetu_engine_versions of this ShowQueueResponse. + :rtype: list[str] + """ + return self._support_hetu_engine_versions + + @support_hetu_engine_versions.setter + def support_hetu_engine_versions(self, support_hetu_engine_versions): + """Sets the support_hetu_engine_versions of this ShowQueueResponse. + + 队列支持的HetuEngine版本。 + + :param support_hetu_engine_versions: The support_hetu_engine_versions of this ShowQueueResponse. + :type support_hetu_engine_versions: list[str] + """ + self._support_hetu_engine_versions = support_hetu_engine_versions + + @property + def default_hetu_engine_version(self): + """Gets the default_hetu_engine_version of this ShowQueueResponse. + + 队列默认的HetuEngine版本。 + + :return: The default_hetu_engine_version of this ShowQueueResponse. + :rtype: str + """ + return self._default_hetu_engine_version + + @default_hetu_engine_version.setter + def default_hetu_engine_version(self, default_hetu_engine_version): + """Sets the default_hetu_engine_version of this ShowQueueResponse. + + 队列默认的HetuEngine版本。 + + :param default_hetu_engine_version: The default_hetu_engine_version of this ShowQueueResponse. + :type default_hetu_engine_version: str + """ + self._default_hetu_engine_version = default_hetu_engine_version + + @property + def support_flink_sql_versions(self): + """Gets the support_flink_sql_versions of this ShowQueueResponse. + + 队列支持的Flink SQL版本。 + + :return: The support_flink_sql_versions of this ShowQueueResponse. + :rtype: list[str] + """ + return self._support_flink_sql_versions + + @support_flink_sql_versions.setter + def support_flink_sql_versions(self, support_flink_sql_versions): + """Sets the support_flink_sql_versions of this ShowQueueResponse. + + 队列支持的Flink SQL版本。 + + :param support_flink_sql_versions: The support_flink_sql_versions of this ShowQueueResponse. + :type support_flink_sql_versions: list[str] + """ + self._support_flink_sql_versions = support_flink_sql_versions + + @property + def default_flink_sql_version(self): + """Gets the default_flink_sql_version of this ShowQueueResponse. + + 队列默认的Flink SQL版本。 + + :return: The default_flink_sql_version of this ShowQueueResponse. + :rtype: str + """ + return self._default_flink_sql_version + + @default_flink_sql_version.setter + def default_flink_sql_version(self, default_flink_sql_version): + """Sets the default_flink_sql_version of this ShowQueueResponse. + + 队列默认的Flink SQL版本。 + + :param default_flink_sql_version: The default_flink_sql_version of this ShowQueueResponse. + :type default_flink_sql_version: str + """ + self._default_flink_sql_version = default_flink_sql_version + + @property + def support_flink_jar_versions(self): + """Gets the support_flink_jar_versions of this ShowQueueResponse. + + 队列支持的Flink JAR版本。 + + :return: The support_flink_jar_versions of this ShowQueueResponse. + :rtype: list[str] + """ + return self._support_flink_jar_versions + + @support_flink_jar_versions.setter + def support_flink_jar_versions(self, support_flink_jar_versions): + """Sets the support_flink_jar_versions of this ShowQueueResponse. + + 队列支持的Flink JAR版本。 + + :param support_flink_jar_versions: The support_flink_jar_versions of this ShowQueueResponse. + :type support_flink_jar_versions: list[str] + """ + self._support_flink_jar_versions = support_flink_jar_versions + + @property + def default_flink_jar_version(self): + """Gets the default_flink_jar_version of this ShowQueueResponse. + + 队列默认的Flink JAR版本。 + + :return: The default_flink_jar_version of this ShowQueueResponse. + :rtype: str + """ + return self._default_flink_jar_version + + @default_flink_jar_version.setter + def default_flink_jar_version(self, default_flink_jar_version): + """Sets the default_flink_jar_version of this ShowQueueResponse. + + 队列默认的Flink JAR版本。 + + :param default_flink_jar_version: The default_flink_jar_version of this ShowQueueResponse. + :type default_flink_jar_version: str + """ + self._default_flink_jar_version = default_flink_jar_version + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-dli/requirements.txt b/huaweicloud-sdk-dli/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-dli/requirements.txt +++ b/huaweicloud-sdk-dli/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-dli/setup.py b/huaweicloud-sdk-dli/setup.py index 7810f271da..8bfc74e156 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dns/requirements.txt b/huaweicloud-sdk-dns/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-dns/requirements.txt +++ b/huaweicloud-sdk-dns/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-dns/setup.py b/huaweicloud-sdk-dns/setup.py index 707bf9ece2..5035f25d12 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dris/requirements.txt b/huaweicloud-sdk-dris/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-dris/requirements.txt +++ b/huaweicloud-sdk-dris/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-dris/setup.py b/huaweicloud-sdk-dris/setup.py index 2d6e986f01..52e0da1421 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-drs/requirements.txt b/huaweicloud-sdk-drs/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-drs/requirements.txt +++ b/huaweicloud-sdk-drs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-drs/setup.py b/huaweicloud-sdk-drs/setup.py index e4c6b27767..12ea20417c 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dsc/requirements.txt b/huaweicloud-sdk-dsc/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-dsc/requirements.txt +++ b/huaweicloud-sdk-dsc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-dsc/setup.py b/huaweicloud-sdk-dsc/setup.py index a4cef03843..6f55dfbfa5 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dwr/requirements.txt b/huaweicloud-sdk-dwr/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-dwr/requirements.txt +++ b/huaweicloud-sdk-dwr/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-dwr/setup.py b/huaweicloud-sdk-dwr/setup.py index 512b23191a..3a1f9c7585 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dws/requirements.txt b/huaweicloud-sdk-dws/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-dws/requirements.txt +++ b/huaweicloud-sdk-dws/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-dws/setup.py b/huaweicloud-sdk-dws/setup.py index e4131db868..884331090f 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ec/requirements.txt b/huaweicloud-sdk-ec/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-ec/requirements.txt +++ b/huaweicloud-sdk-ec/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-ec/setup.py b/huaweicloud-sdk-ec/setup.py index ebf23ad328..6843d68106 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ecs/requirements.txt b/huaweicloud-sdk-ecs/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-ecs/requirements.txt +++ b/huaweicloud-sdk-ecs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-ecs/setup.py b/huaweicloud-sdk-ecs/setup.py index 1ff52a0ad0..d323a409d6 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-edgesec/requirements.txt b/huaweicloud-sdk-edgesec/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-edgesec/requirements.txt +++ b/huaweicloud-sdk-edgesec/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-edgesec/setup.py b/huaweicloud-sdk-edgesec/setup.py index a6a91011fe..97890fee8f 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-eg/requirements.txt b/huaweicloud-sdk-eg/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-eg/requirements.txt +++ b/huaweicloud-sdk-eg/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-eg/setup.py b/huaweicloud-sdk-eg/setup.py index ef6d58e33c..79ad3215e1 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-eihealth/requirements.txt b/huaweicloud-sdk-eihealth/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-eihealth/requirements.txt +++ b/huaweicloud-sdk-eihealth/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-eihealth/setup.py b/huaweicloud-sdk-eihealth/setup.py index 0992324de2..20a4226403 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-eip/huaweicloudsdkeip/v2/model/update_pre_paid_bandwidth_extend_param_option.py b/huaweicloud-sdk-eip/huaweicloudsdkeip/v2/model/update_pre_paid_bandwidth_extend_param_option.py index 035c4ea355..2105366a05 100644 --- a/huaweicloud-sdk-eip/huaweicloudsdkeip/v2/model/update_pre_paid_bandwidth_extend_param_option.py +++ b/huaweicloud-sdk-eip/huaweicloudsdkeip/v2/model/update_pre_paid_bandwidth_extend_param_option.py @@ -17,35 +17,93 @@ class UpdatePrePaidBandwidthExtendParamOption: sensitive_list = [] openapi_types = { + 'period_type': 'str', + 'period_num': 'int', 'is_auto_pay': 'bool' } attribute_map = { + 'period_type': 'period_type', + 'period_num': 'period_num', 'is_auto_pay': 'is_auto_pay' } - def __init__(self, is_auto_pay=None): + def __init__(self, period_type=None, period_num=None, is_auto_pay=None): """UpdatePrePaidBandwidthExtendParamOption The model defined in huaweicloud sdk - :param is_auto_pay: 功能说明:下单订购后,是否自动从客户的账户中支付,而不需要客户手动去进行支付;系统默认是“非自动支付”。 取值范围: true:是(自动支付) false:否(默认值,需要客户手动去支付) 约束:自动支付时,只能使用账户的现金支付;如果要使用代金券,请选择不自动支付,然后在用户费用中心,选择代金券支付。 + :param period_type: - 功能说明:变更资源的周期类型(包年、包月等),可选字段。 - 取值范围: - month-月 - year-年 - 约束:只有在资源续费降配的时候必须传,其他场景不需要传,如果传入默认忽略。 + :type period_type: str + :param period_num: - 功能说明:订购周期数,和period_type同步传入,可选字段 - 取值范围:(后续会随运营策略变化) - period_type为month时,为[1,9] - period_type为year时,为[1,3] - 约束:只有在资源续费降配的时候必须传,其他场景不需要传,如果传入默认忽略。该字段需要和period_type同步传入或同步不传 + :type period_num: int + :param is_auto_pay: - 功能说明:下单订购后,是否自动从客户的账户中支付,而不需要客户手动去进行支付;系统默认是“非自动支付”。 - 取值范围: - true:是(自动支付,从账户余额自动扣费) - false:否(默认值,需要客户手动去支付) - 约束:资源升配或续费降配时,该参数为必传字段。自动支付时,只能使用账户的现金支付;如果要使用代金券,请选择不自动支付,然后在用户费用中心,选择代金券支付。 :type is_auto_pay: bool """ + self._period_type = None + self._period_num = None self._is_auto_pay = None self.discriminator = None + 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_pay is not None: self.is_auto_pay = is_auto_pay + @property + def period_type(self): + """Gets the period_type of this UpdatePrePaidBandwidthExtendParamOption. + + - 功能说明:变更资源的周期类型(包年、包月等),可选字段。 - 取值范围: - month-月 - year-年 - 约束:只有在资源续费降配的时候必须传,其他场景不需要传,如果传入默认忽略。 + + :return: The period_type of this UpdatePrePaidBandwidthExtendParamOption. + :rtype: str + """ + return self._period_type + + @period_type.setter + def period_type(self, period_type): + """Sets the period_type of this UpdatePrePaidBandwidthExtendParamOption. + + - 功能说明:变更资源的周期类型(包年、包月等),可选字段。 - 取值范围: - month-月 - year-年 - 约束:只有在资源续费降配的时候必须传,其他场景不需要传,如果传入默认忽略。 + + :param period_type: The period_type of this UpdatePrePaidBandwidthExtendParamOption. + :type period_type: str + """ + self._period_type = period_type + + @property + def period_num(self): + """Gets the period_num of this UpdatePrePaidBandwidthExtendParamOption. + + - 功能说明:订购周期数,和period_type同步传入,可选字段 - 取值范围:(后续会随运营策略变化) - period_type为month时,为[1,9] - period_type为year时,为[1,3] - 约束:只有在资源续费降配的时候必须传,其他场景不需要传,如果传入默认忽略。该字段需要和period_type同步传入或同步不传 + + :return: The period_num of this UpdatePrePaidBandwidthExtendParamOption. + :rtype: int + """ + return self._period_num + + @period_num.setter + def period_num(self, period_num): + """Sets the period_num of this UpdatePrePaidBandwidthExtendParamOption. + + - 功能说明:订购周期数,和period_type同步传入,可选字段 - 取值范围:(后续会随运营策略变化) - period_type为month时,为[1,9] - period_type为year时,为[1,3] - 约束:只有在资源续费降配的时候必须传,其他场景不需要传,如果传入默认忽略。该字段需要和period_type同步传入或同步不传 + + :param period_num: The period_num of this UpdatePrePaidBandwidthExtendParamOption. + :type period_num: int + """ + self._period_num = period_num + @property def is_auto_pay(self): """Gets the is_auto_pay of this UpdatePrePaidBandwidthExtendParamOption. - 功能说明:下单订购后,是否自动从客户的账户中支付,而不需要客户手动去进行支付;系统默认是“非自动支付”。 取值范围: true:是(自动支付) false:否(默认值,需要客户手动去支付) 约束:自动支付时,只能使用账户的现金支付;如果要使用代金券,请选择不自动支付,然后在用户费用中心,选择代金券支付。 + - 功能说明:下单订购后,是否自动从客户的账户中支付,而不需要客户手动去进行支付;系统默认是“非自动支付”。 - 取值范围: - true:是(自动支付,从账户余额自动扣费) - false:否(默认值,需要客户手动去支付) - 约束:资源升配或续费降配时,该参数为必传字段。自动支付时,只能使用账户的现金支付;如果要使用代金券,请选择不自动支付,然后在用户费用中心,选择代金券支付。 :return: The is_auto_pay of this UpdatePrePaidBandwidthExtendParamOption. :rtype: bool @@ -56,7 +114,7 @@ def is_auto_pay(self): def is_auto_pay(self, is_auto_pay): """Sets the is_auto_pay of this UpdatePrePaidBandwidthExtendParamOption. - 功能说明:下单订购后,是否自动从客户的账户中支付,而不需要客户手动去进行支付;系统默认是“非自动支付”。 取值范围: true:是(自动支付) false:否(默认值,需要客户手动去支付) 约束:自动支付时,只能使用账户的现金支付;如果要使用代金券,请选择不自动支付,然后在用户费用中心,选择代金券支付。 + - 功能说明:下单订购后,是否自动从客户的账户中支付,而不需要客户手动去进行支付;系统默认是“非自动支付”。 - 取值范围: - true:是(自动支付,从账户余额自动扣费) - false:否(默认值,需要客户手动去支付) - 约束:资源升配或续费降配时,该参数为必传字段。自动支付时,只能使用账户的现金支付;如果要使用代金券,请选择不自动支付,然后在用户费用中心,选择代金券支付。 :param is_auto_pay: The is_auto_pay of this UpdatePrePaidBandwidthExtendParamOption. :type is_auto_pay: bool diff --git a/huaweicloud-sdk-eip/huaweicloudsdkeip/v3/model/instance_vnic_resp.py b/huaweicloud-sdk-eip/huaweicloudsdkeip/v3/model/instance_vnic_resp.py index f59d7571d7..d079f187cc 100644 --- a/huaweicloud-sdk-eip/huaweicloudsdkeip/v3/model/instance_vnic_resp.py +++ b/huaweicloud-sdk-eip/huaweicloudsdkeip/v3/model/instance_vnic_resp.py @@ -24,7 +24,7 @@ class InstanceVnicResp: 'port_id': 'str', 'mac': 'str', 'vtep': 'str', - 'vni': 'int', + 'vni': 'str', 'instance_id': 'str', 'instance_type': 'str', 'port_profile': 'str' @@ -64,7 +64,7 @@ def __init__(self, private_ip_address=None, device_id=None, device_owner=None, v :param vtep: port的vtep地址 :type vtep: str :param vni: port的vni - :type vni: int + :type vni: str :param instance_id: port的实例id :type instance_id: str :param instance_type: port的实例类型 @@ -272,7 +272,7 @@ def vni(self): port的vni :return: The vni of this InstanceVnicResp. - :rtype: int + :rtype: str """ return self._vni @@ -283,7 +283,7 @@ def vni(self, vni): port的vni :param vni: The vni of this InstanceVnicResp. - :type vni: int + :type vni: str """ self._vni = vni diff --git a/huaweicloud-sdk-eip/requirements.txt b/huaweicloud-sdk-eip/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-eip/requirements.txt +++ b/huaweicloud-sdk-eip/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-eip/setup.py b/huaweicloud-sdk-eip/setup.py index 536760e014..97c299542e 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/elb_async_client.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/elb_async_client.py index 334ffa6398..a927eb6e0c 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/elb_async_client.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/elb_async_client.py @@ -905,7 +905,7 @@ def create_load_balancer_async(self, request): 6. 若要创建网络型负载均衡器,则需要传入l4_flavor_id(网络型规格ID);若要创建应用型负载均衡器,则需要传入l7_flavor_id(应用型规格ID);若要创建网络型+应用型负载均衡器,则需要传入l4_flavor_id和l7_flavor_id。 7. 若要创建包周期负载均衡器,则需要传入prepaid_options,否则创建按需计费负载均衡器。 8. 按需计费分为固定规格计费和弹性规格计费,根据创建时所选规格的类型决定计费方式。具体规格说明见创建LB请求参数l4_flavor_id和l7_flavor_id。 - [9.若要创建gateway类型的负载均衡器,指定loadbalancer_type=“gateway”,不支持指定vip_address,ipv6_vip_address, 不支持公网类型。如果要指定规格,则从请求参数gw_flavor_id传入。](tag:hws_eu) + [9.若要创建gateway类型的负载均衡器,指定loadbalancer_type=“gateway”,不支持指定vip_address,ipv6_vip_address;vip_subnet_cidr_id和ipv6_subnet_cidr_id两者不能同时为空,如果两者都传入,必须属于同一子网。 不支持公网类型。如果要指定规格,则从请求参数gw_flavor_id传入。](tag:hws_eu) Please refer to HUAWEI cloud API Explorer for details. diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/elb_client.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/elb_client.py index c78191093e..671bd2ca6b 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/elb_client.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/elb_client.py @@ -905,7 +905,7 @@ def create_load_balancer(self, request): 6. 若要创建网络型负载均衡器,则需要传入l4_flavor_id(网络型规格ID);若要创建应用型负载均衡器,则需要传入l7_flavor_id(应用型规格ID);若要创建网络型+应用型负载均衡器,则需要传入l4_flavor_id和l7_flavor_id。 7. 若要创建包周期负载均衡器,则需要传入prepaid_options,否则创建按需计费负载均衡器。 8. 按需计费分为固定规格计费和弹性规格计费,根据创建时所选规格的类型决定计费方式。具体规格说明见创建LB请求参数l4_flavor_id和l7_flavor_id。 - [9.若要创建gateway类型的负载均衡器,指定loadbalancer_type=“gateway”,不支持指定vip_address,ipv6_vip_address, 不支持公网类型。如果要指定规格,则从请求参数gw_flavor_id传入。](tag:hws_eu) + [9.若要创建gateway类型的负载均衡器,指定loadbalancer_type=“gateway”,不支持指定vip_address,ipv6_vip_address;vip_subnet_cidr_id和ipv6_subnet_cidr_id两者不能同时为空,如果两者都传入,必须属于同一子网。 不支持公网类型。如果要指定规格,则从请求参数gw_flavor_id传入。](tag:hws_eu) Please refer to HUAWEI cloud API Explorer for details. diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/autoscaling_ref.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/autoscaling_ref.py index c58cd0a9c9..1e6a428970 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/autoscaling_ref.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/autoscaling_ref.py @@ -31,9 +31,9 @@ def __init__(self, enable=None, min_l7_flavor_id=None): The model defined in huaweicloud sdk - :param enable: 当前负载均衡器是否开启弹性扩缩容。 取值: - true:开启。 - false:不开启,默认值。 + :param enable: 参数解释:当前负载均衡器是否开启弹性扩缩容。 取值范围: - true:开启。 - false:不开启。 默认取值:false :type enable: bool - :param min_l7_flavor_id: 弹性扩缩容的最小七层规格ID(规格类型L7_elastic),有七层监听器时,该字段不能为空。 该字段已经废弃,但仍然保留兼容性支持,建议不要使用该字段。如果传入该字段,创建的弹性实例将会有保底规格并产生对应保底规格的费用。 + :param min_l7_flavor_id: 参数解释:弹性扩缩容的最小七层规格ID(规格类型L7_elastic)。 约束限制:有七层监听器时,该字段不能为空。 > 该字段已经废弃,但仍然保留兼容性支持,建议不要使用该字段。如果传入该字段,创建的弹性实例将会有保底规格并产生对应保底规格的费用。 :type min_l7_flavor_id: str """ @@ -51,7 +51,7 @@ def __init__(self, enable=None, min_l7_flavor_id=None): def enable(self): """Gets the enable of this AutoscalingRef. - 当前负载均衡器是否开启弹性扩缩容。 取值: - true:开启。 - false:不开启,默认值。 + 参数解释:当前负载均衡器是否开启弹性扩缩容。 取值范围: - true:开启。 - false:不开启。 默认取值:false :return: The enable of this AutoscalingRef. :rtype: bool @@ -62,7 +62,7 @@ def enable(self): def enable(self, enable): """Sets the enable of this AutoscalingRef. - 当前负载均衡器是否开启弹性扩缩容。 取值: - true:开启。 - false:不开启,默认值。 + 参数解释:当前负载均衡器是否开启弹性扩缩容。 取值范围: - true:开启。 - false:不开启。 默认取值:false :param enable: The enable of this AutoscalingRef. :type enable: bool @@ -73,7 +73,7 @@ def enable(self, enable): def min_l7_flavor_id(self): """Gets the min_l7_flavor_id of this AutoscalingRef. - 弹性扩缩容的最小七层规格ID(规格类型L7_elastic),有七层监听器时,该字段不能为空。 该字段已经废弃,但仍然保留兼容性支持,建议不要使用该字段。如果传入该字段,创建的弹性实例将会有保底规格并产生对应保底规格的费用。 + 参数解释:弹性扩缩容的最小七层规格ID(规格类型L7_elastic)。 约束限制:有七层监听器时,该字段不能为空。 > 该字段已经废弃,但仍然保留兼容性支持,建议不要使用该字段。如果传入该字段,创建的弹性实例将会有保底规格并产生对应保底规格的费用。 :return: The min_l7_flavor_id of this AutoscalingRef. :rtype: str @@ -84,7 +84,7 @@ def min_l7_flavor_id(self): def min_l7_flavor_id(self, min_l7_flavor_id): """Sets the min_l7_flavor_id of this AutoscalingRef. - 弹性扩缩容的最小七层规格ID(规格类型L7_elastic),有七层监听器时,该字段不能为空。 该字段已经废弃,但仍然保留兼容性支持,建议不要使用该字段。如果传入该字段,创建的弹性实例将会有保底规格并产生对应保底规格的费用。 + 参数解释:弹性扩缩容的最小七层规格ID(规格类型L7_elastic)。 约束限制:有七层监听器时,该字段不能为空。 > 该字段已经废弃,但仍然保留兼容性支持,建议不要使用该字段。如果传入该字段,创建的弹性实例将会有保底规格并产生对应保底规格的费用。 :param min_l7_flavor_id: The min_l7_flavor_id of this AutoscalingRef. :type min_l7_flavor_id: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/availability_zone.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/availability_zone.py index 1e41d68f40..6bd4d4c0ed 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/availability_zone.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/availability_zone.py @@ -37,15 +37,15 @@ def __init__(self, code=None, state=None, protocol=None, public_border_group=Non The model defined in huaweicloud sdk - :param code: 可用区唯一编码。 + :param code: 参数解释:可用区唯一编码。 :type code: str - :param state: 可用区状态。 取值:ACTIVE。 + :param state: 参数解释:可用区状态。 取值范围:ACTIVE。 :type state: str - :param protocol: [未售罄的LB规格类别。 取值:L4 表示网络型LB未售罄;L7 表示应用型LB未售罄。](tag:hws,hk,hws_eu,otc,tlf,ctc,sbc,g42,cmcc,hk_g42,dt_test,mix,hk_sbc,hws_ocb,dt) [LB规格类别。取值:L4 表示网络型LB;L7 表示应用型LB。](tag:ocb,tm,fcs,fcs_dt,hcso,hcso_dt,hk_vdf) + :param protocol: [参数解释:未售罄的LB规格类别。 取值范围:L4 表示网络型LB未售罄;L7 表示应用型LB未售罄。](tag:hws,hk,hws_eu,otc,tlf,ctc,sbc,g42,cmcc,hk_g42,dt_test,mix,hk_sbc,hws_ocb,dt) [参数解释:LB规格类别。 取值范围:L4 表示网络型LB;L7 表示应用型LB。](tag:ocb,tm,fcs,fcs_dt,hcso,hcso_dt,hk_vdf) :type protocol: list[str] - :param public_border_group: 可用区组,如:center + :param public_border_group: 参数解释:可用区组,如:center :type public_border_group: str - :param category: 范围编码,0表示center,21表示homezone + :param category: 参数解释:范围编码。 取值范围:0表示center,21表示homezone。 :type category: int """ @@ -68,7 +68,7 @@ def __init__(self, code=None, state=None, protocol=None, public_border_group=Non def code(self): """Gets the code of this AvailabilityZone. - 可用区唯一编码。 + 参数解释:可用区唯一编码。 :return: The code of this AvailabilityZone. :rtype: str @@ -79,7 +79,7 @@ def code(self): def code(self, code): """Sets the code of this AvailabilityZone. - 可用区唯一编码。 + 参数解释:可用区唯一编码。 :param code: The code of this AvailabilityZone. :type code: str @@ -90,7 +90,7 @@ def code(self, code): def state(self): """Gets the state of this AvailabilityZone. - 可用区状态。 取值:ACTIVE。 + 参数解释:可用区状态。 取值范围:ACTIVE。 :return: The state of this AvailabilityZone. :rtype: str @@ -101,7 +101,7 @@ def state(self): def state(self, state): """Sets the state of this AvailabilityZone. - 可用区状态。 取值:ACTIVE。 + 参数解释:可用区状态。 取值范围:ACTIVE。 :param state: The state of this AvailabilityZone. :type state: str @@ -112,7 +112,7 @@ def state(self, state): def protocol(self): """Gets the protocol of this AvailabilityZone. - [未售罄的LB规格类别。 取值:L4 表示网络型LB未售罄;L7 表示应用型LB未售罄。](tag:hws,hk,hws_eu,otc,tlf,ctc,sbc,g42,cmcc,hk_g42,dt_test,mix,hk_sbc,hws_ocb,dt) [LB规格类别。取值:L4 表示网络型LB;L7 表示应用型LB。](tag:ocb,tm,fcs,fcs_dt,hcso,hcso_dt,hk_vdf) + [参数解释:未售罄的LB规格类别。 取值范围:L4 表示网络型LB未售罄;L7 表示应用型LB未售罄。](tag:hws,hk,hws_eu,otc,tlf,ctc,sbc,g42,cmcc,hk_g42,dt_test,mix,hk_sbc,hws_ocb,dt) [参数解释:LB规格类别。 取值范围:L4 表示网络型LB;L7 表示应用型LB。](tag:ocb,tm,fcs,fcs_dt,hcso,hcso_dt,hk_vdf) :return: The protocol of this AvailabilityZone. :rtype: list[str] @@ -123,7 +123,7 @@ def protocol(self): def protocol(self, protocol): """Sets the protocol of this AvailabilityZone. - [未售罄的LB规格类别。 取值:L4 表示网络型LB未售罄;L7 表示应用型LB未售罄。](tag:hws,hk,hws_eu,otc,tlf,ctc,sbc,g42,cmcc,hk_g42,dt_test,mix,hk_sbc,hws_ocb,dt) [LB规格类别。取值:L4 表示网络型LB;L7 表示应用型LB。](tag:ocb,tm,fcs,fcs_dt,hcso,hcso_dt,hk_vdf) + [参数解释:未售罄的LB规格类别。 取值范围:L4 表示网络型LB未售罄;L7 表示应用型LB未售罄。](tag:hws,hk,hws_eu,otc,tlf,ctc,sbc,g42,cmcc,hk_g42,dt_test,mix,hk_sbc,hws_ocb,dt) [参数解释:LB规格类别。 取值范围:L4 表示网络型LB;L7 表示应用型LB。](tag:ocb,tm,fcs,fcs_dt,hcso,hcso_dt,hk_vdf) :param protocol: The protocol of this AvailabilityZone. :type protocol: list[str] @@ -134,7 +134,7 @@ def protocol(self, protocol): def public_border_group(self): """Gets the public_border_group of this AvailabilityZone. - 可用区组,如:center + 参数解释:可用区组,如:center :return: The public_border_group of this AvailabilityZone. :rtype: str @@ -145,7 +145,7 @@ def public_border_group(self): def public_border_group(self, public_border_group): """Sets the public_border_group of this AvailabilityZone. - 可用区组,如:center + 参数解释:可用区组,如:center :param public_border_group: The public_border_group of this AvailabilityZone. :type public_border_group: str @@ -156,7 +156,7 @@ def public_border_group(self, public_border_group): def category(self): """Gets the category of this AvailabilityZone. - 范围编码,0表示center,21表示homezone + 参数解释:范围编码。 取值范围:0表示center,21表示homezone。 :return: The category of this AvailabilityZone. :rtype: int @@ -167,7 +167,7 @@ def category(self): def category(self, category): """Sets the category of this AvailabilityZone. - 范围编码,0表示center,21表示homezone + 参数解释:范围编码。 取值范围:0表示center,21表示homezone。 :param category: The category of this AvailabilityZone. :type category: int diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/bandwidth_ref.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/bandwidth_ref.py index 98510feac1..4083fc8756 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/bandwidth_ref.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/bandwidth_ref.py @@ -29,7 +29,7 @@ def __init__(self, id=None): The model defined in huaweicloud sdk - :param id: 共享带宽的id + :param id: 参数解释:共享带宽的ID。 :type id: str """ @@ -44,7 +44,7 @@ def __init__(self, id=None): def id(self): """Gets the id of this BandwidthRef. - 共享带宽的id + 参数解释:共享带宽的ID。 :return: The id of this BandwidthRef. :rtype: str @@ -55,7 +55,7 @@ def id(self): def id(self, id): """Sets the id of this BandwidthRef. - 共享带宽的id + 参数解释:共享带宽的ID。 :param id: The id of this BandwidthRef. :type id: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/batch_create_members_option.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/batch_create_members_option.py index cced2b702a..9007f77fbf 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/batch_create_members_option.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/batch_create_members_option.py @@ -41,9 +41,9 @@ def __init__(self, name=None, address=None, protocol_port=None, subnet_cidr_id=N :type name: str :param address: 后端云服务器的对应的IP地址,这个IP必须在subnet_cidr_id字段的子网网段中。例如:192.168.3.11。 subnet_cidr_id为空代表添加跨VPC后端,此时address必须为ipv4地址。 :type address: str - :param protocol_port: 后端服务器端口号。 + :param protocol_port: 后端服务器端口。 在开启端口透传的pool下的member,该字段无法更新。 [网关型LB,即pool协议为IP时,protocol_port必须设置为0。](tag:hws_eu) :type protocol_port: int - :param subnet_cidr_id: 后端云服务器所在的子网,可以是IPv4或IPv6子网。若是IPv4子网,使用对应子网的子网ID(neutron_subnet_id);若是IPv6子网,使用对应子网的网络ID(neutron_network_id)。 ipv4子网的子网ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到 ipv6子网的网络ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到 使用说明: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发已开启(ip_target_enable=true),则该字段可以不传,表示添加跨VPC的后端服务器。 此时address必须为IPv4地址,所在的pool的协议必须为TCP/HTTP/HTTPS。 - 若所属LB未开启跨VPC后端转发,该参数必填。 [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test) + :param subnet_cidr_id: 后端云服务器所在的子网,可以是IPv4或IPv6子网。若是IPv4子网,使用对应子网的子网ID(neutron_subnet_id);若是IPv6子网,使用对应子网的网络ID(neutron_network_id)。 ipv4子网的子网ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到 ipv6子网的网络ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到 使用说明: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发已开启(ip_target_enable=true),则该字段可以不传,表示添加跨VPC的后端服务器。 此时address必须为IPv4地址,所在的pool的协议必须为TCP/HTTP/HTTPS。 - 若所属LB未开启跨VPC后端转发,该参数必填。 [- 网关型LB,即pool协议为IP时,必须指定该子网,且必须和负载均衡器的子网在同一个VPC下,但不能相同。](tag:hws_eu) [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test) :type subnet_cidr_id: str :param weight: 后端云服务器的权重,请求将根据pool配置的负载均衡算法和后端云服务器的权重进行负载分发。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 取值:0-100,默认1。 使用说明:若所在pool的lb_algorithm取值为SOURCE_IP,该字段无效。 :type weight: int @@ -115,7 +115,7 @@ def address(self, address): def protocol_port(self): """Gets the protocol_port of this BatchCreateMembersOption. - 后端服务器端口号。 + 后端服务器端口。 在开启端口透传的pool下的member,该字段无法更新。 [网关型LB,即pool协议为IP时,protocol_port必须设置为0。](tag:hws_eu) :return: The protocol_port of this BatchCreateMembersOption. :rtype: int @@ -126,7 +126,7 @@ def protocol_port(self): def protocol_port(self, protocol_port): """Sets the protocol_port of this BatchCreateMembersOption. - 后端服务器端口号。 + 后端服务器端口。 在开启端口透传的pool下的member,该字段无法更新。 [网关型LB,即pool协议为IP时,protocol_port必须设置为0。](tag:hws_eu) :param protocol_port: The protocol_port of this BatchCreateMembersOption. :type protocol_port: int @@ -137,7 +137,7 @@ def protocol_port(self, protocol_port): def subnet_cidr_id(self): """Gets the subnet_cidr_id of this BatchCreateMembersOption. - 后端云服务器所在的子网,可以是IPv4或IPv6子网。若是IPv4子网,使用对应子网的子网ID(neutron_subnet_id);若是IPv6子网,使用对应子网的网络ID(neutron_network_id)。 ipv4子网的子网ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到 ipv6子网的网络ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到 使用说明: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发已开启(ip_target_enable=true),则该字段可以不传,表示添加跨VPC的后端服务器。 此时address必须为IPv4地址,所在的pool的协议必须为TCP/HTTP/HTTPS。 - 若所属LB未开启跨VPC后端转发,该参数必填。 [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test) + 后端云服务器所在的子网,可以是IPv4或IPv6子网。若是IPv4子网,使用对应子网的子网ID(neutron_subnet_id);若是IPv6子网,使用对应子网的网络ID(neutron_network_id)。 ipv4子网的子网ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到 ipv6子网的网络ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到 使用说明: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发已开启(ip_target_enable=true),则该字段可以不传,表示添加跨VPC的后端服务器。 此时address必须为IPv4地址,所在的pool的协议必须为TCP/HTTP/HTTPS。 - 若所属LB未开启跨VPC后端转发,该参数必填。 [- 网关型LB,即pool协议为IP时,必须指定该子网,且必须和负载均衡器的子网在同一个VPC下,但不能相同。](tag:hws_eu) [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test) :return: The subnet_cidr_id of this BatchCreateMembersOption. :rtype: str @@ -148,7 +148,7 @@ def subnet_cidr_id(self): def subnet_cidr_id(self, subnet_cidr_id): """Sets the subnet_cidr_id of this BatchCreateMembersOption. - 后端云服务器所在的子网,可以是IPv4或IPv6子网。若是IPv4子网,使用对应子网的子网ID(neutron_subnet_id);若是IPv6子网,使用对应子网的网络ID(neutron_network_id)。 ipv4子网的子网ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到 ipv6子网的网络ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到 使用说明: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发已开启(ip_target_enable=true),则该字段可以不传,表示添加跨VPC的后端服务器。 此时address必须为IPv4地址,所在的pool的协议必须为TCP/HTTP/HTTPS。 - 若所属LB未开启跨VPC后端转发,该参数必填。 [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test) + 后端云服务器所在的子网,可以是IPv4或IPv6子网。若是IPv4子网,使用对应子网的子网ID(neutron_subnet_id);若是IPv6子网,使用对应子网的网络ID(neutron_network_id)。 ipv4子网的子网ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到 ipv6子网的网络ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到 使用说明: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发已开启(ip_target_enable=true),则该字段可以不传,表示添加跨VPC的后端服务器。 此时address必须为IPv4地址,所在的pool的协议必须为TCP/HTTP/HTTPS。 - 若所属LB未开启跨VPC后端转发,该参数必填。 [- 网关型LB,即pool协议为IP时,必须指定该子网,且必须和负载均衡器的子网在同一个VPC下,但不能相同。](tag:hws_eu) [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test) :param subnet_cidr_id: The subnet_cidr_id of this BatchCreateMembersOption. :type subnet_cidr_id: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/batch_create_members_request.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/batch_create_members_request.py index 91989aae9f..7307774a97 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/batch_create_members_request.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/batch_create_members_request.py @@ -31,7 +31,7 @@ def __init__(self, pool_id=None, body=None): The model defined in huaweicloud sdk - :param pool_id: 后端服务器组ID。 + :param pool_id: 参数解释:后端服务器组ID。 :type pool_id: str :param body: Body of the BatchCreateMembersRequest :type body: :class:`huaweicloudsdkelb.v3.BatchCreateMembersRequestBody` @@ -51,7 +51,7 @@ def __init__(self, pool_id=None, body=None): def pool_id(self): """Gets the pool_id of this BatchCreateMembersRequest. - 后端服务器组ID。 + 参数解释:后端服务器组ID。 :return: The pool_id of this BatchCreateMembersRequest. :rtype: str @@ -62,7 +62,7 @@ def pool_id(self): def pool_id(self, pool_id): """Sets the pool_id of this BatchCreateMembersRequest. - 后端服务器组ID。 + 参数解释:后端服务器组ID。 :param pool_id: The pool_id of this BatchCreateMembersRequest. :type pool_id: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/batch_delete_members_request.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/batch_delete_members_request.py index f47dc5b2e1..faa04d2240 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/batch_delete_members_request.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/batch_delete_members_request.py @@ -31,7 +31,7 @@ def __init__(self, pool_id=None, body=None): The model defined in huaweicloud sdk - :param pool_id: 后端服务器组ID。 + :param pool_id: 参数解释:后端服务器组ID。 :type pool_id: str :param body: Body of the BatchDeleteMembersRequest :type body: :class:`huaweicloudsdkelb.v3.BatchDeleteMembersRequestBody` @@ -51,7 +51,7 @@ def __init__(self, pool_id=None, body=None): def pool_id(self): """Gets the pool_id of this BatchDeleteMembersRequest. - 后端服务器组ID。 + 参数解释:后端服务器组ID。 :return: The pool_id of this BatchDeleteMembersRequest. :rtype: str @@ -62,7 +62,7 @@ def pool_id(self): def pool_id(self, pool_id): """Sets the pool_id of this BatchDeleteMembersRequest. - 后端服务器组ID。 + 参数解释:后端服务器组ID。 :param pool_id: The pool_id of this BatchDeleteMembersRequest. :type pool_id: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/batch_member.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/batch_member.py index 1c731ac476..8f56109beb 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/batch_member.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/batch_member.py @@ -67,9 +67,9 @@ def __init__(self, id=None, name=None, project_id=None, admin_state_up=None, sub :type project_id: str :param admin_state_up: 后端云服务器的管理状态。 取值:true、false。 虽然创建、更新请求支持该字段,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 :type admin_state_up: bool - :param subnet_cidr_id: 后端云服务器所在的子网,可以是IPv4或IPv6子网。若是IPv4子网,使用对应子网的子网ID(neutron_subnet_id);若是IPv6子网,使用对应子网的网络ID(neutron_network_id)。 ipv4子网的子网ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到 ipv6子网的网络ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到 使用说明: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发已开启(ip_target_enable=true),则该字段可以不传,表示添加跨VPC的后端服务器。 此时address必须为IPv4地址,所在的pool的协议必须为TCP/HTTP/HTTPS。 - 若所属LB未开启跨VPC后端转发,该参数必填。 [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test) + :param subnet_cidr_id: 后端云服务器所在的子网,可以是IPv4或IPv6子网。若是IPv4子网,使用对应子网的子网ID(neutron_subnet_id);若是IPv6子网,使用对应子网的网络ID(neutron_network_id)。 ipv4子网的子网ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到 ipv6子网的网络ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到 使用说明: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发已开启(ip_target_enable=true),则该字段可以不传,表示添加跨VPC的后端服务器。 此时address必须为IPv4地址,所在的pool的协议必须为TCP/HTTP/HTTPS。 - 若所属LB未开启跨VPC后端转发,该参数必填。 [- 网关型LB,即pool协议为IP时,必须指定该子网,且必须和负载均衡器的子网在同一个VPC下,但不能相同。](tag:hws_eu) [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test) :type subnet_cidr_id: str - :param protocol_port: 后端服务器业务端口。 >在开启端口透传的pool下创建member传该字段不生效,可不传该字段。 + :param protocol_port: 后端服务器业务端口。 [网关型LB,即pool协议为IP时,protocol_port必须设置为0。](tag:hws_eu) >在开启端口透传的pool下创建member传该字段不生效,可不传该字段。 :type protocol_port: int :param weight: 后端云服务器的权重,请求将根据pool配置的负载均衡算法和后端云服务器的权重进行负载分发。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 取值:0-100,默认1。 使用说明: - 若所在pool的lb_algorithm取值为SOURCE_IP,该字段无效。 :type weight: int @@ -228,7 +228,7 @@ def admin_state_up(self, admin_state_up): def subnet_cidr_id(self): """Gets the subnet_cidr_id of this BatchMember. - 后端云服务器所在的子网,可以是IPv4或IPv6子网。若是IPv4子网,使用对应子网的子网ID(neutron_subnet_id);若是IPv6子网,使用对应子网的网络ID(neutron_network_id)。 ipv4子网的子网ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到 ipv6子网的网络ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到 使用说明: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发已开启(ip_target_enable=true),则该字段可以不传,表示添加跨VPC的后端服务器。 此时address必须为IPv4地址,所在的pool的协议必须为TCP/HTTP/HTTPS。 - 若所属LB未开启跨VPC后端转发,该参数必填。 [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test) + 后端云服务器所在的子网,可以是IPv4或IPv6子网。若是IPv4子网,使用对应子网的子网ID(neutron_subnet_id);若是IPv6子网,使用对应子网的网络ID(neutron_network_id)。 ipv4子网的子网ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到 ipv6子网的网络ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到 使用说明: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发已开启(ip_target_enable=true),则该字段可以不传,表示添加跨VPC的后端服务器。 此时address必须为IPv4地址,所在的pool的协议必须为TCP/HTTP/HTTPS。 - 若所属LB未开启跨VPC后端转发,该参数必填。 [- 网关型LB,即pool协议为IP时,必须指定该子网,且必须和负载均衡器的子网在同一个VPC下,但不能相同。](tag:hws_eu) [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test) :return: The subnet_cidr_id of this BatchMember. :rtype: str @@ -239,7 +239,7 @@ def subnet_cidr_id(self): def subnet_cidr_id(self, subnet_cidr_id): """Sets the subnet_cidr_id of this BatchMember. - 后端云服务器所在的子网,可以是IPv4或IPv6子网。若是IPv4子网,使用对应子网的子网ID(neutron_subnet_id);若是IPv6子网,使用对应子网的网络ID(neutron_network_id)。 ipv4子网的子网ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到 ipv6子网的网络ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到 使用说明: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发已开启(ip_target_enable=true),则该字段可以不传,表示添加跨VPC的后端服务器。 此时address必须为IPv4地址,所在的pool的协议必须为TCP/HTTP/HTTPS。 - 若所属LB未开启跨VPC后端转发,该参数必填。 [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test) + 后端云服务器所在的子网,可以是IPv4或IPv6子网。若是IPv4子网,使用对应子网的子网ID(neutron_subnet_id);若是IPv6子网,使用对应子网的网络ID(neutron_network_id)。 ipv4子网的子网ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到 ipv6子网的网络ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到 使用说明: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发已开启(ip_target_enable=true),则该字段可以不传,表示添加跨VPC的后端服务器。 此时address必须为IPv4地址,所在的pool的协议必须为TCP/HTTP/HTTPS。 - 若所属LB未开启跨VPC后端转发,该参数必填。 [- 网关型LB,即pool协议为IP时,必须指定该子网,且必须和负载均衡器的子网在同一个VPC下,但不能相同。](tag:hws_eu) [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test) :param subnet_cidr_id: The subnet_cidr_id of this BatchMember. :type subnet_cidr_id: str @@ -250,7 +250,7 @@ def subnet_cidr_id(self, subnet_cidr_id): def protocol_port(self): """Gets the protocol_port of this BatchMember. - 后端服务器业务端口。 >在开启端口透传的pool下创建member传该字段不生效,可不传该字段。 + 后端服务器业务端口。 [网关型LB,即pool协议为IP时,protocol_port必须设置为0。](tag:hws_eu) >在开启端口透传的pool下创建member传该字段不生效,可不传该字段。 :return: The protocol_port of this BatchMember. :rtype: int @@ -261,7 +261,7 @@ def protocol_port(self): def protocol_port(self, protocol_port): """Sets the protocol_port of this BatchMember. - 后端服务器业务端口。 >在开启端口透传的pool下创建member传该字段不生效,可不传该字段。 + 后端服务器业务端口。 [网关型LB,即pool协议为IP时,protocol_port必须设置为0。](tag:hws_eu) >在开启端口透传的pool下创建member传该字段不生效,可不传该字段。 :param protocol_port: The protocol_port of this BatchMember. :type protocol_port: int diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/batch_update_members_option.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/batch_update_members_option.py index 8102008b45..7c1ec43575 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/batch_update_members_option.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/batch_update_members_option.py @@ -43,7 +43,7 @@ def __init__(self, id=None, admin_state_up=None, name=None, protocol_port=None, :type admin_state_up: bool :param name: 后端服务器名称。 :type name: str - :param protocol_port: 后端服务器端口号。 + :param protocol_port: 后端服务器端口。 在开启端口透传的pool下的member,该字段无法更新。 [网关型LB,即pool协议为IP时,protocol_port必须设置为0。](tag:hws_eu) :type protocol_port: int :param weight: 后端云服务器的权重,请求按权重在同一后端云服务器组下的后端云服务器间分发。权重为0的后端不再接受新的请求。当后端云服务器所在的后端云服务器组的lb_algorithm的取值为SOURCE_IP时,该字段无效。 :type weight: int @@ -138,7 +138,7 @@ def name(self, name): def protocol_port(self): """Gets the protocol_port of this BatchUpdateMembersOption. - 后端服务器端口号。 + 后端服务器端口。 在开启端口透传的pool下的member,该字段无法更新。 [网关型LB,即pool协议为IP时,protocol_port必须设置为0。](tag:hws_eu) :return: The protocol_port of this BatchUpdateMembersOption. :rtype: int @@ -149,7 +149,7 @@ def protocol_port(self): def protocol_port(self, protocol_port): """Sets the protocol_port of this BatchUpdateMembersOption. - 后端服务器端口号。 + 后端服务器端口。 在开启端口透传的pool下的member,该字段无法更新。 [网关型LB,即pool协议为IP时,protocol_port必须设置为0。](tag:hws_eu) :param protocol_port: The protocol_port of this BatchUpdateMembersOption. :type protocol_port: int diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/batch_update_members_request.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/batch_update_members_request.py index e7991b39fe..0066b0c4dc 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/batch_update_members_request.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/batch_update_members_request.py @@ -31,7 +31,7 @@ def __init__(self, pool_id=None, body=None): The model defined in huaweicloud sdk - :param pool_id: 后端服务器组ID。 + :param pool_id: 参数解释:后端服务器组ID。 :type pool_id: str :param body: Body of the BatchUpdateMembersRequest :type body: :class:`huaweicloudsdkelb.v3.BatchUpdateMembersRequestBody` @@ -51,7 +51,7 @@ def __init__(self, pool_id=None, body=None): def pool_id(self): """Gets the pool_id of this BatchUpdateMembersRequest. - 后端服务器组ID。 + 参数解释:后端服务器组ID。 :return: The pool_id of this BatchUpdateMembersRequest. :rtype: str @@ -62,7 +62,7 @@ def pool_id(self): def pool_id(self, pool_id): """Sets the pool_id of this BatchUpdateMembersRequest. - 后端服务器组ID。 + 参数解释:后端服务器组ID。 :param pool_id: The pool_id of this BatchUpdateMembersRequest. :type pool_id: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/batch_update_policies_priority_request_body.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/batch_update_policies_priority_request_body.py index 2109590ad1..04678985b0 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/batch_update_policies_priority_request_body.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/batch_update_policies_priority_request_body.py @@ -29,7 +29,7 @@ def __init__(self, l7policies=None): The model defined in huaweicloud sdk - :param l7policies: 转发策略的结构体 + :param l7policies: 参数解释:转发策略的结构体。 :type l7policies: list[:class:`huaweicloudsdkelb.v3.BatchUpdatePriorityRequestBody`] """ @@ -45,7 +45,7 @@ def __init__(self, l7policies=None): def l7policies(self): """Gets the l7policies of this BatchUpdatePoliciesPriorityRequestBody. - 转发策略的结构体 + 参数解释:转发策略的结构体。 :return: The l7policies of this BatchUpdatePoliciesPriorityRequestBody. :rtype: list[:class:`huaweicloudsdkelb.v3.BatchUpdatePriorityRequestBody`] @@ -56,7 +56,7 @@ def l7policies(self): def l7policies(self, l7policies): """Sets the l7policies of this BatchUpdatePoliciesPriorityRequestBody. - 转发策略的结构体 + 参数解释:转发策略的结构体。 :param l7policies: The l7policies of this BatchUpdatePoliciesPriorityRequestBody. :type l7policies: list[:class:`huaweicloudsdkelb.v3.BatchUpdatePriorityRequestBody`] diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/batch_update_priority_request_body.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/batch_update_priority_request_body.py index 82bcabfa51..5c802835aa 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/batch_update_priority_request_body.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/batch_update_priority_request_body.py @@ -31,9 +31,9 @@ def __init__(self, id=None, priority=None): The model defined in huaweicloud sdk - :param id: 待更新的l7policy的ID。 + :param id: 参数解释:待更新的l7policy的ID。 :type id: str - :param priority: 参数解释: 转发策略的优先级。数字越小表示优先级越高。各域名之间优先级独立,相同域名下,按path的compare_type排序, 精确>前缀>正则,匹配类型相同时,path的长度越长优先级越高。 若policy下只有域名rule,没有路径rule,默认path为前缀匹配/。 若关联的listener开启了enhance_l7policy_enable,且不传该字段, 则新创建的转发策略的优先级的值为:同一监听器下已有转发策略的优先级的最大值+1。 因此,若当前已有转发策略的优先级的最大值是10000,新创建会因超出取值范围10000而失败。 此时可通过传入指定priority,或调整原有policy的优先级来避免错误。 若监听器下没有转发策略,则新建的转发策略的优先级为1。 约束限制: - 同一个监听器下不允许重复的优先级数值。 - 当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效,未开启传入该字段会报错。 - 当action为REDIRECT_TO_LISTENER时,仅支持指定为0,优先级最高。 - 当关联的listener没有开启enhance_l7policy_enable,按原有policy的排序逻辑,自动排序。 [- 共享型负载均衡器下的转发策略不支持该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) 取值范围:1-10000 [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) + :param priority: 参数解释:转发策略的优先级。数字越小表示优先级越高。 约束限制: - 同一个监听器下不同转发策略之间不允许重复的优先级数值。 - 当关联的监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效,未开启传入该字段会报错。 - 当关联的监听器的高级转发策略功能(enhance_l7policy_enable)未开启,按原有policy的排序逻辑,自动排序。 不同域名优先级独立。相同域名下,按path的compare_type排序, 精确>前缀>正则,匹配类型相同时,path的长度越长优先级越高。 若policy下只有域名rule,没有路径rule,默认path为前缀匹配/。 [- 共享型负载均衡器下的转发策略不支持该字段。](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) 取值范围: - 当action为REDIRECT_TO_LISTENER时,支持指定为0-10000。 - 其它action取值,支持指定为1-10000。 默认取值: - 若关联的监听器的高级转发策略功能(enhance_l7policy_enable)未开启,且不传入该字段,则新创建的转发策略的优先级的值为1。 - 当action为REDIRECT_TO_LISTENER时,则新创建的转发策略的优先级的值为0。 - 其它action取值,新创建的转发策略的优先级的值为同一监听器下已有转发策略的优先级的最大值+1。 + 若监听器下没有转发策略,则新建的转发策略的优先级为1。 + 若当前已有转发策略的优先级的最大值是10000,则新创建的转发策略会因超出取值范围10000而失败。此时可通过传入指定priority,或调整原有policy的优先级来避免错误。 [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) :type priority: int """ @@ -50,7 +50,7 @@ def __init__(self, id=None, priority=None): def id(self): """Gets the id of this BatchUpdatePriorityRequestBody. - 待更新的l7policy的ID。 + 参数解释:待更新的l7policy的ID。 :return: The id of this BatchUpdatePriorityRequestBody. :rtype: str @@ -61,7 +61,7 @@ def id(self): def id(self, id): """Sets the id of this BatchUpdatePriorityRequestBody. - 待更新的l7policy的ID。 + 参数解释:待更新的l7policy的ID。 :param id: The id of this BatchUpdatePriorityRequestBody. :type id: str @@ -72,7 +72,7 @@ def id(self, id): def priority(self): """Gets the priority of this BatchUpdatePriorityRequestBody. - 参数解释: 转发策略的优先级。数字越小表示优先级越高。各域名之间优先级独立,相同域名下,按path的compare_type排序, 精确>前缀>正则,匹配类型相同时,path的长度越长优先级越高。 若policy下只有域名rule,没有路径rule,默认path为前缀匹配/。 若关联的listener开启了enhance_l7policy_enable,且不传该字段, 则新创建的转发策略的优先级的值为:同一监听器下已有转发策略的优先级的最大值+1。 因此,若当前已有转发策略的优先级的最大值是10000,新创建会因超出取值范围10000而失败。 此时可通过传入指定priority,或调整原有policy的优先级来避免错误。 若监听器下没有转发策略,则新建的转发策略的优先级为1。 约束限制: - 同一个监听器下不允许重复的优先级数值。 - 当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效,未开启传入该字段会报错。 - 当action为REDIRECT_TO_LISTENER时,仅支持指定为0,优先级最高。 - 当关联的listener没有开启enhance_l7policy_enable,按原有policy的排序逻辑,自动排序。 [- 共享型负载均衡器下的转发策略不支持该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) 取值范围:1-10000 [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) + 参数解释:转发策略的优先级。数字越小表示优先级越高。 约束限制: - 同一个监听器下不同转发策略之间不允许重复的优先级数值。 - 当关联的监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效,未开启传入该字段会报错。 - 当关联的监听器的高级转发策略功能(enhance_l7policy_enable)未开启,按原有policy的排序逻辑,自动排序。 不同域名优先级独立。相同域名下,按path的compare_type排序, 精确>前缀>正则,匹配类型相同时,path的长度越长优先级越高。 若policy下只有域名rule,没有路径rule,默认path为前缀匹配/。 [- 共享型负载均衡器下的转发策略不支持该字段。](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) 取值范围: - 当action为REDIRECT_TO_LISTENER时,支持指定为0-10000。 - 其它action取值,支持指定为1-10000。 默认取值: - 若关联的监听器的高级转发策略功能(enhance_l7policy_enable)未开启,且不传入该字段,则新创建的转发策略的优先级的值为1。 - 当action为REDIRECT_TO_LISTENER时,则新创建的转发策略的优先级的值为0。 - 其它action取值,新创建的转发策略的优先级的值为同一监听器下已有转发策略的优先级的最大值+1。 + 若监听器下没有转发策略,则新建的转发策略的优先级为1。 + 若当前已有转发策略的优先级的最大值是10000,则新创建的转发策略会因超出取值范围10000而失败。此时可通过传入指定priority,或调整原有policy的优先级来避免错误。 [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) :return: The priority of this BatchUpdatePriorityRequestBody. :rtype: int @@ -83,7 +83,7 @@ def priority(self): def priority(self, priority): """Sets the priority of this BatchUpdatePriorityRequestBody. - 参数解释: 转发策略的优先级。数字越小表示优先级越高。各域名之间优先级独立,相同域名下,按path的compare_type排序, 精确>前缀>正则,匹配类型相同时,path的长度越长优先级越高。 若policy下只有域名rule,没有路径rule,默认path为前缀匹配/。 若关联的listener开启了enhance_l7policy_enable,且不传该字段, 则新创建的转发策略的优先级的值为:同一监听器下已有转发策略的优先级的最大值+1。 因此,若当前已有转发策略的优先级的最大值是10000,新创建会因超出取值范围10000而失败。 此时可通过传入指定priority,或调整原有policy的优先级来避免错误。 若监听器下没有转发策略,则新建的转发策略的优先级为1。 约束限制: - 同一个监听器下不允许重复的优先级数值。 - 当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效,未开启传入该字段会报错。 - 当action为REDIRECT_TO_LISTENER时,仅支持指定为0,优先级最高。 - 当关联的listener没有开启enhance_l7policy_enable,按原有policy的排序逻辑,自动排序。 [- 共享型负载均衡器下的转发策略不支持该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) 取值范围:1-10000 [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) + 参数解释:转发策略的优先级。数字越小表示优先级越高。 约束限制: - 同一个监听器下不同转发策略之间不允许重复的优先级数值。 - 当关联的监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效,未开启传入该字段会报错。 - 当关联的监听器的高级转发策略功能(enhance_l7policy_enable)未开启,按原有policy的排序逻辑,自动排序。 不同域名优先级独立。相同域名下,按path的compare_type排序, 精确>前缀>正则,匹配类型相同时,path的长度越长优先级越高。 若policy下只有域名rule,没有路径rule,默认path为前缀匹配/。 [- 共享型负载均衡器下的转发策略不支持该字段。](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) 取值范围: - 当action为REDIRECT_TO_LISTENER时,支持指定为0-10000。 - 其它action取值,支持指定为1-10000。 默认取值: - 若关联的监听器的高级转发策略功能(enhance_l7policy_enable)未开启,且不传入该字段,则新创建的转发策略的优先级的值为1。 - 当action为REDIRECT_TO_LISTENER时,则新创建的转发策略的优先级的值为0。 - 其它action取值,新创建的转发策略的优先级的值为同一监听器下已有转发策略的优先级的最大值+1。 + 若监听器下没有转发策略,则新建的转发策略的优先级为1。 + 若当前已有转发策略的优先级的最大值是10000,则新创建的转发策略会因超出取值范围10000而失败。此时可通过传入指定priority,或调整原有policy的优先级来避免错误。 [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) :param priority: The priority of this BatchUpdatePriorityRequestBody. :type priority: int diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_fixted_response_config.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_fixted_response_config.py index ae423cef18..805f4d3762 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_fixted_response_config.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_fixted_response_config.py @@ -39,11 +39,11 @@ def __init__(self, status_code=None, content_type=None, message_body=None, inser The model defined in huaweicloud sdk - :param status_code: 返回码。支持200~299,400~499,500~599。 + :param status_code: 参数解释:返回码。 取值范围:200-299,400-499,500-599。 :type status_code: str - :param content_type: 返回body的格式。 取值范围: - text/plain,默认值 - text/css - text/html - application/javascript - application/json + :param content_type: 参数解释:返回body的格式。 取值范围: - text/plain - text/css - text/html - application/javascript - application/json 默认取值:text/plain :type content_type: str - :param message_body: 返回消息内容。 + :param message_body: 参数解释:返回消息内容。 :type message_body: str :param insert_headers_config: :type insert_headers_config: :class:`huaweicloudsdkelb.v3.CreateInsertHeadersConfig` @@ -79,7 +79,7 @@ def __init__(self, status_code=None, content_type=None, message_body=None, inser def status_code(self): """Gets the status_code of this CreateFixtedResponseConfig. - 返回码。支持200~299,400~499,500~599。 + 参数解释:返回码。 取值范围:200-299,400-499,500-599。 :return: The status_code of this CreateFixtedResponseConfig. :rtype: str @@ -90,7 +90,7 @@ def status_code(self): def status_code(self, status_code): """Sets the status_code of this CreateFixtedResponseConfig. - 返回码。支持200~299,400~499,500~599。 + 参数解释:返回码。 取值范围:200-299,400-499,500-599。 :param status_code: The status_code of this CreateFixtedResponseConfig. :type status_code: str @@ -101,7 +101,7 @@ def status_code(self, status_code): def content_type(self): """Gets the content_type of this CreateFixtedResponseConfig. - 返回body的格式。 取值范围: - text/plain,默认值 - text/css - text/html - application/javascript - application/json + 参数解释:返回body的格式。 取值范围: - text/plain - text/css - text/html - application/javascript - application/json 默认取值:text/plain :return: The content_type of this CreateFixtedResponseConfig. :rtype: str @@ -112,7 +112,7 @@ def content_type(self): def content_type(self, content_type): """Sets the content_type of this CreateFixtedResponseConfig. - 返回body的格式。 取值范围: - text/plain,默认值 - text/css - text/html - application/javascript - application/json + 参数解释:返回body的格式。 取值范围: - text/plain - text/css - text/html - application/javascript - application/json 默认取值:text/plain :param content_type: The content_type of this CreateFixtedResponseConfig. :type content_type: str @@ -123,7 +123,7 @@ def content_type(self, content_type): def message_body(self): """Gets the message_body of this CreateFixtedResponseConfig. - 返回消息内容。 + 参数解释:返回消息内容。 :return: The message_body of this CreateFixtedResponseConfig. :rtype: str @@ -134,7 +134,7 @@ def message_body(self): def message_body(self, message_body): """Sets the message_body of this CreateFixtedResponseConfig. - 返回消息内容。 + 参数解释:返回消息内容。 :param message_body: The message_body of this CreateFixtedResponseConfig. :type message_body: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_health_monitor_option.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_health_monitor_option.py index cd3aab1ebd..361b7be40d 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_health_monitor_option.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_health_monitor_option.py @@ -55,13 +55,13 @@ def __init__(self, admin_state_up=None, delay=None, domain_name=None, expected_c The model defined in huaweicloud sdk - :param admin_state_up: 健康检查的管理状态。 取值: - true:表示开启健康检查,默认为true。 - false表示关闭健康检查。 + :param admin_state_up: 参数解释:健康检查的管理状态。 取值范围: - true:表示开启健康检查。 - false表示关闭健康检查。 默认取值:true :type admin_state_up: bool :param delay: 健康检查间隔。取值:1-50s。 :type delay: int :param domain_name: 发送健康检查请求的域名。 取值:以数字或字母开头,只能包含数字、字母、’-’、’.’。 默认为空,表示使用负载均衡器的vip作为http请求的目的地址。 使用说明:当type为HTTP/HTTPS时生效。 :type domain_name: str - :param expected_codes: 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:若健康检查type为gRPC,则默认值为0,;其他为200。 仅支持HTTP/HTTPS/GRPC设置该字段,其他协议设置不会生效。 + :param expected_codes: 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:若健康检查type为gRPC,则默认值为0,;其他为200。 仅支持HTTP/HTTPS/gRPC设置该字段,其他协议设置不会生效。 :type expected_codes: str :param http_method: HTTP请求方法。 取值:GET、HEAD、POST,默认GET。 使用说明:当type为HTTP/HTTPS时生效。 :type http_method: str @@ -69,7 +69,7 @@ def __init__(self, admin_state_up=None, delay=None, domain_name=None, expected_c :type max_retries: int :param max_retries_down: 健康检查连续失败多少次后,将后端服务器的健康检查状态由ONLINE判定为OFFLINE。取值范围:1-10,默认3。 :type max_retries_down: int - :param monitor_port: 健康检查端口号。取值:1-65535,默认为空,表示使用后端云服务器端口号。 >当绑定的pool开启了端口透传功能时,该字段为必填。 + :param monitor_port: 健康检查端口号。取值:1-65535,默认为空,表示使用后端云服务器端口号。 [当pool协议为IP时,monitor_port必须指定为非0值。](tag:hws_eu) >当绑定的pool开启了端口透传功能时,该字段为必填。 :type monitor_port: int :param name: 健康检查名称。 :type name: str @@ -79,7 +79,7 @@ def __init__(self, admin_state_up=None, delay=None, domain_name=None, expected_c :type project_id: str :param timeout: 一次健康检查请求的超时时间。 建议该值小于delay的值。 :type timeout: int - :param type: 健康检查请求协议。 取值:TCP、UDP_CONNECT、HTTP、HTTPS、GRPC和TLS。 使用说明: - 若pool的protocol为QUIC,则type只能是UDP_CONNECT。 - 若pool的protocol为UDP,则type只能UDP_CONNECT。 - 若pool的protocol为TCP,则type可以是TCP、HTTP、HTTPS。 - 若pool的protocol为HTTP,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 - 若pool的protocol为HTTPS,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 - 若pool的protocol为GRPC,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 - 若pool的protocol为TLS,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) + :param type: 健康检查请求协议。 取值:TCP、UDP_CONNECT、HTTP、HTTPS、gRPC和TLS。 使用说明: - 若pool的protocol为QUIC,则type只能是UDP_CONNECT。 - 若pool的protocol为UDP,则type只能UDP_CONNECT。 - 若pool的protocol为TCP,则type可以是TCP、HTTP、HTTPS。 [- 若pool的protocol为IP,则type可以是TCP、HTTP、HTTPS。](tag:hws_eu) - 若pool的protocol为HTTP,则type可以是TCP、HTTP、HTTPS、TLS、gRPC。 - 若pool的protocol为HTTPS,则type可以是TCP、HTTP、HTTPS、TLS、gRPC。 - 若pool的protocol为gRPC,则type可以是TCP、HTTP、HTTPS、TLS、gRPC。 - 若pool的protocol为TLS,则type可以是TCP、HTTP、HTTPS、TLS、gRPC。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) :type type: str :param url_path: 健康检查请求的请求路径。以\"/\"开头,默认为\"/\"。 支持使用字母、数字和短划线(-)、正斜线(/)、半角句号(.)、百分号(%)、半角问号(?)、井号(#)和and(&)以及扩展字符集_;~!()*[]@$^:',+ 使用说明:当type为HTTP/HTTPS时生效。 :type url_path: str @@ -131,7 +131,7 @@ def __init__(self, admin_state_up=None, delay=None, domain_name=None, expected_c def admin_state_up(self): """Gets the admin_state_up of this CreateHealthMonitorOption. - 健康检查的管理状态。 取值: - true:表示开启健康检查,默认为true。 - false表示关闭健康检查。 + 参数解释:健康检查的管理状态。 取值范围: - true:表示开启健康检查。 - false表示关闭健康检查。 默认取值:true :return: The admin_state_up of this CreateHealthMonitorOption. :rtype: bool @@ -142,7 +142,7 @@ def admin_state_up(self): def admin_state_up(self, admin_state_up): """Sets the admin_state_up of this CreateHealthMonitorOption. - 健康检查的管理状态。 取值: - true:表示开启健康检查,默认为true。 - false表示关闭健康检查。 + 参数解释:健康检查的管理状态。 取值范围: - true:表示开启健康检查。 - false表示关闭健康检查。 默认取值:true :param admin_state_up: The admin_state_up of this CreateHealthMonitorOption. :type admin_state_up: bool @@ -197,7 +197,7 @@ def domain_name(self, domain_name): def expected_codes(self): """Gets the expected_codes of this CreateHealthMonitorOption. - 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:若健康检查type为gRPC,则默认值为0,;其他为200。 仅支持HTTP/HTTPS/GRPC设置该字段,其他协议设置不会生效。 + 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:若健康检查type为gRPC,则默认值为0,;其他为200。 仅支持HTTP/HTTPS/gRPC设置该字段,其他协议设置不会生效。 :return: The expected_codes of this CreateHealthMonitorOption. :rtype: str @@ -208,7 +208,7 @@ def expected_codes(self): def expected_codes(self, expected_codes): """Sets the expected_codes of this CreateHealthMonitorOption. - 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:若健康检查type为gRPC,则默认值为0,;其他为200。 仅支持HTTP/HTTPS/GRPC设置该字段,其他协议设置不会生效。 + 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:若健康检查type为gRPC,则默认值为0,;其他为200。 仅支持HTTP/HTTPS/gRPC设置该字段,其他协议设置不会生效。 :param expected_codes: The expected_codes of this CreateHealthMonitorOption. :type expected_codes: str @@ -285,7 +285,7 @@ def max_retries_down(self, max_retries_down): def monitor_port(self): """Gets the monitor_port of this CreateHealthMonitorOption. - 健康检查端口号。取值:1-65535,默认为空,表示使用后端云服务器端口号。 >当绑定的pool开启了端口透传功能时,该字段为必填。 + 健康检查端口号。取值:1-65535,默认为空,表示使用后端云服务器端口号。 [当pool协议为IP时,monitor_port必须指定为非0值。](tag:hws_eu) >当绑定的pool开启了端口透传功能时,该字段为必填。 :return: The monitor_port of this CreateHealthMonitorOption. :rtype: int @@ -296,7 +296,7 @@ def monitor_port(self): def monitor_port(self, monitor_port): """Sets the monitor_port of this CreateHealthMonitorOption. - 健康检查端口号。取值:1-65535,默认为空,表示使用后端云服务器端口号。 >当绑定的pool开启了端口透传功能时,该字段为必填。 + 健康检查端口号。取值:1-65535,默认为空,表示使用后端云服务器端口号。 [当pool协议为IP时,monitor_port必须指定为非0值。](tag:hws_eu) >当绑定的pool开启了端口透传功能时,该字段为必填。 :param monitor_port: The monitor_port of this CreateHealthMonitorOption. :type monitor_port: int @@ -395,7 +395,7 @@ def timeout(self, timeout): def type(self): """Gets the type of this CreateHealthMonitorOption. - 健康检查请求协议。 取值:TCP、UDP_CONNECT、HTTP、HTTPS、GRPC和TLS。 使用说明: - 若pool的protocol为QUIC,则type只能是UDP_CONNECT。 - 若pool的protocol为UDP,则type只能UDP_CONNECT。 - 若pool的protocol为TCP,则type可以是TCP、HTTP、HTTPS。 - 若pool的protocol为HTTP,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 - 若pool的protocol为HTTPS,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 - 若pool的protocol为GRPC,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 - 若pool的protocol为TLS,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) + 健康检查请求协议。 取值:TCP、UDP_CONNECT、HTTP、HTTPS、gRPC和TLS。 使用说明: - 若pool的protocol为QUIC,则type只能是UDP_CONNECT。 - 若pool的protocol为UDP,则type只能UDP_CONNECT。 - 若pool的protocol为TCP,则type可以是TCP、HTTP、HTTPS。 [- 若pool的protocol为IP,则type可以是TCP、HTTP、HTTPS。](tag:hws_eu) - 若pool的protocol为HTTP,则type可以是TCP、HTTP、HTTPS、TLS、gRPC。 - 若pool的protocol为HTTPS,则type可以是TCP、HTTP、HTTPS、TLS、gRPC。 - 若pool的protocol为gRPC,则type可以是TCP、HTTP、HTTPS、TLS、gRPC。 - 若pool的protocol为TLS,则type可以是TCP、HTTP、HTTPS、TLS、gRPC。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) :return: The type of this CreateHealthMonitorOption. :rtype: str @@ -406,7 +406,7 @@ def type(self): def type(self, type): """Sets the type of this CreateHealthMonitorOption. - 健康检查请求协议。 取值:TCP、UDP_CONNECT、HTTP、HTTPS、GRPC和TLS。 使用说明: - 若pool的protocol为QUIC,则type只能是UDP_CONNECT。 - 若pool的protocol为UDP,则type只能UDP_CONNECT。 - 若pool的protocol为TCP,则type可以是TCP、HTTP、HTTPS。 - 若pool的protocol为HTTP,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 - 若pool的protocol为HTTPS,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 - 若pool的protocol为GRPC,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 - 若pool的protocol为TLS,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) + 健康检查请求协议。 取值:TCP、UDP_CONNECT、HTTP、HTTPS、gRPC和TLS。 使用说明: - 若pool的protocol为QUIC,则type只能是UDP_CONNECT。 - 若pool的protocol为UDP,则type只能UDP_CONNECT。 - 若pool的protocol为TCP,则type可以是TCP、HTTP、HTTPS。 [- 若pool的protocol为IP,则type可以是TCP、HTTP、HTTPS。](tag:hws_eu) - 若pool的protocol为HTTP,则type可以是TCP、HTTP、HTTPS、TLS、gRPC。 - 若pool的protocol为HTTPS,则type可以是TCP、HTTP、HTTPS、TLS、gRPC。 - 若pool的protocol为gRPC,则type可以是TCP、HTTP、HTTPS、TLS、gRPC。 - 若pool的protocol为TLS,则type可以是TCP、HTTP、HTTPS、TLS、gRPC。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) :param type: The type of this CreateHealthMonitorOption. :type type: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_insert_header_config.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_insert_header_config.py index 0ae1680162..7d1d0da505 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_insert_header_config.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_insert_header_config.py @@ -33,11 +33,11 @@ def __init__(self, key=None, value_type=None, value=None): The model defined in huaweicloud sdk - :param key: 支持1-40个字符(不区分大小写)。 支持字母a-z,数字,短划线-和下划线_。 key不能是以下字符: connection、upgrade、content-length、transfer-encoding、keep-alive、te、host、cookie、remoteip、authority、x-forwarded-host、x-forwarded-for、x-forwarded-for-port、x-forwarded-tls-certificate-id、x-forwarded-tls-protocol、x-forwarded-tls-cipher、x-forwarded-elb-ip、x-forwarded-port、x-forwarded-elb-id、x-forwarded-elb-vip、x-real-ip、x-forwarded-proto、x-nuwa-trace-ne-in、x-nuwa-trace-ne-out。 + :param key: 参数解释:请求头参数名。 约束限制:不能是以下字符: connection、upgrade、content-length、transfer-encoding、keep-alive、te、host、cookie、remoteip、authority、x-forwarded-host、x-forwarded-for、x-forwarded-for-port、x-forwarded-tls-certificate-id、x-forwarded-tls-protocol、x-forwarded-tls-cipher、x-forwarded-elb-ip、x-forwarded-port、x-forwarded-elb-id、x-forwarded-elb-vip、x-real-ip、x-forwarded-proto、x-nuwa-trace-ne-in、x-nuwa-trace-ne-out。 取值范围:1-40个字符,字母a-z(不区分大小写)、数字,短划线-和下划线_。 :type key: str - :param value_type: 可选值:USER_DEFINED,REFERENCE_HEADER,SYSTEM_DEFINED。 + :param value_type: 参数解释:请求头参数类别。 取值范围:USER_DEFINED,REFERENCE_HEADER,SYSTEM_DEFINED。 :type value_type: str - :param value: header值。当value_type为SYSTEM_DEFINED时,value只可从CLIENT-PORT,CLIENT-IP, ELB-PROTOCOL, ELB-ID, ELB-PORT, ELB-EIP, ELB-VIP中取值。 取值范围:1-128个字符, 支持ascii码值32<=ch<=127范围内可打印字符,*和英文问号?。不能以空格开头或结尾。 + :param value: 参数解释:请求头参数的值。 约束限制:当value_type为SYSTEM_DEFINED时,value只可从CLIENT-PORT,CLIENT-IP, ELB-PROTOCOL, ELB-ID, ELB-PORT, ELB-EIP, ELB-VIP中取值。 取值范围:1-128个字符,支持ascii码值32<=ch<=127范围内可打印字符,*和英文问号?。不能以空格开头或结尾。 :type value: str """ @@ -56,7 +56,7 @@ def __init__(self, key=None, value_type=None, value=None): def key(self): """Gets the key of this CreateInsertHeaderConfig. - 支持1-40个字符(不区分大小写)。 支持字母a-z,数字,短划线-和下划线_。 key不能是以下字符: connection、upgrade、content-length、transfer-encoding、keep-alive、te、host、cookie、remoteip、authority、x-forwarded-host、x-forwarded-for、x-forwarded-for-port、x-forwarded-tls-certificate-id、x-forwarded-tls-protocol、x-forwarded-tls-cipher、x-forwarded-elb-ip、x-forwarded-port、x-forwarded-elb-id、x-forwarded-elb-vip、x-real-ip、x-forwarded-proto、x-nuwa-trace-ne-in、x-nuwa-trace-ne-out。 + 参数解释:请求头参数名。 约束限制:不能是以下字符: connection、upgrade、content-length、transfer-encoding、keep-alive、te、host、cookie、remoteip、authority、x-forwarded-host、x-forwarded-for、x-forwarded-for-port、x-forwarded-tls-certificate-id、x-forwarded-tls-protocol、x-forwarded-tls-cipher、x-forwarded-elb-ip、x-forwarded-port、x-forwarded-elb-id、x-forwarded-elb-vip、x-real-ip、x-forwarded-proto、x-nuwa-trace-ne-in、x-nuwa-trace-ne-out。 取值范围:1-40个字符,字母a-z(不区分大小写)、数字,短划线-和下划线_。 :return: The key of this CreateInsertHeaderConfig. :rtype: str @@ -67,7 +67,7 @@ def key(self): def key(self, key): """Sets the key of this CreateInsertHeaderConfig. - 支持1-40个字符(不区分大小写)。 支持字母a-z,数字,短划线-和下划线_。 key不能是以下字符: connection、upgrade、content-length、transfer-encoding、keep-alive、te、host、cookie、remoteip、authority、x-forwarded-host、x-forwarded-for、x-forwarded-for-port、x-forwarded-tls-certificate-id、x-forwarded-tls-protocol、x-forwarded-tls-cipher、x-forwarded-elb-ip、x-forwarded-port、x-forwarded-elb-id、x-forwarded-elb-vip、x-real-ip、x-forwarded-proto、x-nuwa-trace-ne-in、x-nuwa-trace-ne-out。 + 参数解释:请求头参数名。 约束限制:不能是以下字符: connection、upgrade、content-length、transfer-encoding、keep-alive、te、host、cookie、remoteip、authority、x-forwarded-host、x-forwarded-for、x-forwarded-for-port、x-forwarded-tls-certificate-id、x-forwarded-tls-protocol、x-forwarded-tls-cipher、x-forwarded-elb-ip、x-forwarded-port、x-forwarded-elb-id、x-forwarded-elb-vip、x-real-ip、x-forwarded-proto、x-nuwa-trace-ne-in、x-nuwa-trace-ne-out。 取值范围:1-40个字符,字母a-z(不区分大小写)、数字,短划线-和下划线_。 :param key: The key of this CreateInsertHeaderConfig. :type key: str @@ -78,7 +78,7 @@ def key(self, key): def value_type(self): """Gets the value_type of this CreateInsertHeaderConfig. - 可选值:USER_DEFINED,REFERENCE_HEADER,SYSTEM_DEFINED。 + 参数解释:请求头参数类别。 取值范围:USER_DEFINED,REFERENCE_HEADER,SYSTEM_DEFINED。 :return: The value_type of this CreateInsertHeaderConfig. :rtype: str @@ -89,7 +89,7 @@ def value_type(self): def value_type(self, value_type): """Sets the value_type of this CreateInsertHeaderConfig. - 可选值:USER_DEFINED,REFERENCE_HEADER,SYSTEM_DEFINED。 + 参数解释:请求头参数类别。 取值范围:USER_DEFINED,REFERENCE_HEADER,SYSTEM_DEFINED。 :param value_type: The value_type of this CreateInsertHeaderConfig. :type value_type: str @@ -100,7 +100,7 @@ def value_type(self, value_type): def value(self): """Gets the value of this CreateInsertHeaderConfig. - header值。当value_type为SYSTEM_DEFINED时,value只可从CLIENT-PORT,CLIENT-IP, ELB-PROTOCOL, ELB-ID, ELB-PORT, ELB-EIP, ELB-VIP中取值。 取值范围:1-128个字符, 支持ascii码值32<=ch<=127范围内可打印字符,*和英文问号?。不能以空格开头或结尾。 + 参数解释:请求头参数的值。 约束限制:当value_type为SYSTEM_DEFINED时,value只可从CLIENT-PORT,CLIENT-IP, ELB-PROTOCOL, ELB-ID, ELB-PORT, ELB-EIP, ELB-VIP中取值。 取值范围:1-128个字符,支持ascii码值32<=ch<=127范围内可打印字符,*和英文问号?。不能以空格开头或结尾。 :return: The value of this CreateInsertHeaderConfig. :rtype: str @@ -111,7 +111,7 @@ def value(self): def value(self, value): """Sets the value of this CreateInsertHeaderConfig. - header值。当value_type为SYSTEM_DEFINED时,value只可从CLIENT-PORT,CLIENT-IP, ELB-PROTOCOL, ELB-ID, ELB-PORT, ELB-EIP, ELB-VIP中取值。 取值范围:1-128个字符, 支持ascii码值32<=ch<=127范围内可打印字符,*和英文问号?。不能以空格开头或结尾。 + 参数解释:请求头参数的值。 约束限制:当value_type为SYSTEM_DEFINED时,value只可从CLIENT-PORT,CLIENT-IP, ELB-PROTOCOL, ELB-ID, ELB-PORT, ELB-EIP, ELB-VIP中取值。 取值范围:1-128个字符,支持ascii码值32<=ch<=127范围内可打印字符,*和英文问号?。不能以空格开头或结尾。 :param value: The value of this CreateInsertHeaderConfig. :type value: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_insert_headers_config.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_insert_headers_config.py index 1ec8e9edf9..dee7e9d7a3 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_insert_headers_config.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_insert_headers_config.py @@ -29,7 +29,7 @@ def __init__(self, configs=None): The model defined in huaweicloud sdk - :param configs: 要添加请求头参数列表。 + :param configs: 参数解释:要添加请求头参数列表。 :type configs: list[:class:`huaweicloudsdkelb.v3.CreateInsertHeaderConfig`] """ @@ -44,7 +44,7 @@ def __init__(self, configs=None): def configs(self): """Gets the configs of this CreateInsertHeadersConfig. - 要添加请求头参数列表。 + 参数解释:要添加请求头参数列表。 :return: The configs of this CreateInsertHeadersConfig. :rtype: list[:class:`huaweicloudsdkelb.v3.CreateInsertHeaderConfig`] @@ -55,7 +55,7 @@ def configs(self): def configs(self, configs): """Sets the configs of this CreateInsertHeadersConfig. - 要添加请求头参数列表。 + 参数解释:要添加请求头参数列表。 :param configs: The configs of this CreateInsertHeadersConfig. :type configs: list[:class:`huaweicloudsdkelb.v3.CreateInsertHeaderConfig`] diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_ip_group_ip_option.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_ip_group_ip_option.py index 3dc5c75fb8..8bb724c2e4 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_ip_group_ip_option.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_ip_group_ip_option.py @@ -31,7 +31,7 @@ def __init__(self, ip=None, description=None): The model defined in huaweicloud sdk - :param ip: 参数解释:IP地址。支持IPv4、IPv6。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test) + :param ip: IP地址或IP地址段。支持IPv4、IPv6。IP地址段格式为ip-ip,例如192.168.1.2-192.168.2.253或者2001:0DB8:02de::0e12-2001:0DB8:02de::0e13,终止IP需要大于起始IP. [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test) :type ip: str :param description: 参数解释:备注信息。 :type description: str @@ -51,7 +51,7 @@ def __init__(self, ip=None, description=None): def ip(self): """Gets the ip of this CreateIpGroupIpOption. - 参数解释:IP地址。支持IPv4、IPv6。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test) + IP地址或IP地址段。支持IPv4、IPv6。IP地址段格式为ip-ip,例如192.168.1.2-192.168.2.253或者2001:0DB8:02de::0e12-2001:0DB8:02de::0e13,终止IP需要大于起始IP. [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test) :return: The ip of this CreateIpGroupIpOption. :rtype: str @@ -62,7 +62,7 @@ def ip(self): def ip(self, ip): """Sets the ip of this CreateIpGroupIpOption. - 参数解释:IP地址。支持IPv4、IPv6。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test) + IP地址或IP地址段。支持IPv4、IPv6。IP地址段格式为ip-ip,例如192.168.1.2-192.168.2.253或者2001:0DB8:02de::0e12-2001:0DB8:02de::0e13,终止IP需要大于起始IP. [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test) :param ip: The ip of this CreateIpGroupIpOption. :type ip: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_l7_policy_option.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_l7_policy_option.py index ace29a8e59..22b375e7af 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_l7_policy_option.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_l7_policy_option.py @@ -61,31 +61,31 @@ def __init__(self, action=None, admin_state_up=None, description=None, listener_ The model defined in huaweicloud sdk - :param action: 转发策略的转发动作。 取值: - REDIRECT_TO_POOL:转发到后端云服务器组。 - REDIRECT_TO_LISTENER:重定向到监听器。 - REDIRECT_TO_URL:重定向到URL。 - FIXED_RESPONSE:返回固定响应体。 使用说明: - REDIRECT_TO_LISTENER的优先级最高,配置了以后,该监听器下的其他policy会失效。 - 当action为REDIRECT_TO_POOL时, 只支持创建在PROTOCOL为HTTP、HTTPS、TERMINATED_HTTPS的listener上。 - 当action为REDIRECT_TO_LISTENER时,只支持创建在PROTOCOL为HTTP的listener上。 [不支持REDIRECT_TO_URL和FIXED_RESPONSE](tag:hcso_dt) + :param action: 参数解释:转发策略的转发动作。 约束限制: - REDIRECT_TO_LISTENER的优先级最高,配置了以后,该监听器下的其他policy会失效。 - 当action为REDIRECT_TO_POOL时, 只支持创建在PROTOCOL为HTTP、HTTPS、TERMINATED_HTTPS的listener上。 - 当action为REDIRECT_TO_LISTENER时,只支持创建在PROTOCOL为HTTP的listener上。 取值范围: - REDIRECT_TO_POOL:转发到后端云服务器组。 - REDIRECT_TO_LISTENER:重定向到监听器。 - REDIRECT_TO_URL:重定向到URL。 - FIXED_RESPONSE:返回固定响应体。 [不支持REDIRECT_TO_URL和FIXED_RESPONSE](tag:hcso_dt) :type action: str - :param admin_state_up: 转发策略的管理状态,默认为true。 不支持该字段,请勿使用。 + :param admin_state_up: 参数解释:转发策略的管理状态。 约束限制:只支持设置为true。 :type admin_state_up: bool - :param description: 转发策略描述信息。 + :param description: 参数解释:转发策略描述信息。 :type description: str - :param listener_id: 转发策略对应的监听器ID。 当action为REDIRECT_TO_POOL时,只支持创建在PROTOCOL为HTTP或HTTPS的listener上。 当action为REDIRECT_TO_LISTENER时,只支持创建在PROTOCOL为HTTP的listener上。 + :param listener_id: 参数解释:转发策略对应的监听器ID。 约束限制: - 当action为REDIRECT_TO_POOL时,只支持创建在PROTOCOL为HTTP或HTTPS的listener上。 - 当action为REDIRECT_TO_LISTENER时,只支持创建在PROTOCOL为HTTP的listener上。 :type listener_id: str - :param name: 转发策略名称。 + :param name: 参数解释:转发策略名称。 :type name: str - :param position: 转发策略的优先级,不支持更新。 不支持该字段,请勿使用。 + :param position: 参数解释:转发策略的优先级。 约束限制:不支持更新。 不支持该字段,请勿使用。 :type position: int - :param priority: 转发策略的优先级。数字越小表示优先级越高,同一监听器下不允许重复。 当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效,未开启传入该字段会报错。 当action为REDIRECT_TO_LISTENER时,仅支持指定为0,优先级最高。 当关联的listener没有开启enhance_l7policy_enable,按原有policy的排序逻辑,自动排序。 各域名之间优先级独立,相同域名下,按path的compare_type排序, 精确>前缀>正则,匹配类型相同时,path的长度越长优先级越高。 若policy下只有域名rule,没有路径rule,默认path为前缀匹配/。 当关联的listener开启了enhance_l7policy_enable,且不传该字段, 则新创建的转发策略的优先级的值为:同一监听器下已有转发策略的优先级的最大值+1。 因此,若当前已有转发策略的优先级的最大值是10000,新创建会因超出取值范围10000而失败。 此时可通过传入指定priority,或调整原有policy的优先级来避免错误。 若监听器下没有转发策略,则新建的转发策略的优先级为1。 [共享型负载均衡器下的转发策略不支持该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) + :param priority: 参数解释:转发策略的优先级。数字越小表示优先级越高。 约束限制: - 同一个监听器下不同转发策略之间不允许重复的优先级数值。 - 当关联的监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效,未开启传入该字段会报错。 - 当关联的监听器的高级转发策略功能(enhance_l7policy_enable)未开启,按原有policy的排序逻辑,自动排序。 不同域名优先级独立。相同域名下,按path的compare_type排序, 精确>前缀>正则,匹配类型相同时,path的长度越长优先级越高。 若policy下只有域名rule,没有路径rule,默认path为前缀匹配/。 [- 共享型负载均衡器下的转发策略不支持该字段。](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) 取值范围: - 当action为REDIRECT_TO_LISTENER时,支持指定为0-10000。 - 其它action取值,支持指定为1-10000。 默认取值: - 若关联的监听器的高级转发策略功能(enhance_l7policy_enable)未开启,且不传入该字段,则新创建的转发策略的优先级的值为1。 - 当action为REDIRECT_TO_LISTENER时,则新创建的转发策略的优先级的值为0。 - 其它action取值,新创建的转发策略的优先级的值为同一监听器下已有转发策略的优先级的最大值+1。 + 若监听器下没有转发策略,则新建的转发策略的优先级为1。 + 若当前已有转发策略的优先级的最大值是10000,则新创建的转发策略会因超出取值范围10000而失败。此时可通过传入指定priority,或调整原有policy的优先级来避免错误。 [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) :type priority: int - :param project_id: 转发策略所在的项目ID。 + :param project_id: 参数解释:转发策略所在的项目ID。 :type project_id: str - :param redirect_listener_id: 转发到的listener的ID,当action为REDIRECT_TO_LISTENER时必选。 使用说明: - 只支持protocol为HTTPS/TERMINATED_HTTPS的listener。 - 不能指定为其他loadbalancer下的listener。 - 当action为REDIRECT_TO_POOL时,创建或更新时不能传入该参数。 [- 共享型负载均衡器下的转发策略不支持该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) + :param redirect_listener_id: 参数解释:转发到的listener的ID,当action为REDIRECT_TO_LISTENER时必选。 约束限制: - 只支持protocol为HTTPS/TERMINATED_HTTPS的listener。 - 不能指定为其他loadbalancer下的listener。 - 当action为REDIRECT_TO_POOL时,创建或更新时不能传入该参数。 [- 共享型负载均衡器下的转发策略不支持该字段。](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) :type redirect_listener_id: str - :param redirect_pool_id: 转发到pool的ID。当action为REDIRECT_TO_POOL时生效。 使用说明: - 当action为REDIRECT_TO_LISTENER时,不可指定。 + :param redirect_pool_id: 参数解释:转发到pool的ID。 约束限制: - 当action为REDIRECT_TO_POOL时生效。 - 当action为REDIRECT_TO_LISTENER时,传入会报错。 :type redirect_pool_id: str - :param redirect_url: 转发到的url。必须满足格式: protocol://host:port/path?query。 [不支持该字段,请勿使用。](tag:hcso_dt) + :param redirect_url: 参数解释:转发到的url。 约束限制:必须满足格式: protocol://host:port/path?query。 [不支持该字段,请勿使用。](tag:hcso_dt) :type redirect_url: str :param redirect_url_config: :type redirect_url_config: :class:`huaweicloudsdkelb.v3.CreateRedirectUrlConfig` - :param redirect_pools_config: 转发到多个主机组列表。一个policy最多配置5个pool。 + :param redirect_pools_config: 参数解释:转发到多个主机组列表。 约束限制:一个policy最多配置5个pool。 :type redirect_pools_config: list[:class:`huaweicloudsdkelb.v3.CreateRedirectPoolsConfig`] :param redirect_pools_sticky_session_config: :type redirect_pools_sticky_session_config: :class:`huaweicloudsdkelb.v3.CreateRedirectPoolsStickySessionConfig` @@ -93,7 +93,7 @@ def __init__(self, action=None, admin_state_up=None, description=None, listener_ :type fixed_response_config: :class:`huaweicloudsdkelb.v3.CreateFixtedResponseConfig` :param redirect_pools_extend_config: :type redirect_pools_extend_config: :class:`huaweicloudsdkelb.v3.CreateRedirectPoolsExtendConfig` - :param rules: 转发策略关联的转发规则对象。详细参考表 l7rule字段说明。rules列表中最多含有10个rule规则 (若rule中包含conditions字段,一条condition算一个规则), 且列表中type为HOST_NAME,PATH,METHOD,SOURCE_IP的rule不能重复,至多指定一条。 使用说明: - 仅支持全量替换。 - 如果l7policy 是重定向到listener的话,不允许创建l7rule。 + :param rules: 参数解释:转发策略关联的转发规则对象。 约束限制: - rules列表中最多含有10个rule规则 (若rule中包含conditions字段,一条condition算一个规则), 且列表中type为HOST_NAME,PATH,METHOD,SOURCE_IP的rule不能重复,至多指定一条。 - 仅支持全量替换。 - 如果l7policy 是重定向到listener的话,不允许创建l7rule。 :type rules: list[:class:`huaweicloudsdkelb.v3.CreateL7PolicyRuleOption`] """ @@ -155,7 +155,7 @@ def __init__(self, action=None, admin_state_up=None, description=None, listener_ def action(self): """Gets the action of this CreateL7PolicyOption. - 转发策略的转发动作。 取值: - REDIRECT_TO_POOL:转发到后端云服务器组。 - REDIRECT_TO_LISTENER:重定向到监听器。 - REDIRECT_TO_URL:重定向到URL。 - FIXED_RESPONSE:返回固定响应体。 使用说明: - REDIRECT_TO_LISTENER的优先级最高,配置了以后,该监听器下的其他policy会失效。 - 当action为REDIRECT_TO_POOL时, 只支持创建在PROTOCOL为HTTP、HTTPS、TERMINATED_HTTPS的listener上。 - 当action为REDIRECT_TO_LISTENER时,只支持创建在PROTOCOL为HTTP的listener上。 [不支持REDIRECT_TO_URL和FIXED_RESPONSE](tag:hcso_dt) + 参数解释:转发策略的转发动作。 约束限制: - REDIRECT_TO_LISTENER的优先级最高,配置了以后,该监听器下的其他policy会失效。 - 当action为REDIRECT_TO_POOL时, 只支持创建在PROTOCOL为HTTP、HTTPS、TERMINATED_HTTPS的listener上。 - 当action为REDIRECT_TO_LISTENER时,只支持创建在PROTOCOL为HTTP的listener上。 取值范围: - REDIRECT_TO_POOL:转发到后端云服务器组。 - REDIRECT_TO_LISTENER:重定向到监听器。 - REDIRECT_TO_URL:重定向到URL。 - FIXED_RESPONSE:返回固定响应体。 [不支持REDIRECT_TO_URL和FIXED_RESPONSE](tag:hcso_dt) :return: The action of this CreateL7PolicyOption. :rtype: str @@ -166,7 +166,7 @@ def action(self): def action(self, action): """Sets the action of this CreateL7PolicyOption. - 转发策略的转发动作。 取值: - REDIRECT_TO_POOL:转发到后端云服务器组。 - REDIRECT_TO_LISTENER:重定向到监听器。 - REDIRECT_TO_URL:重定向到URL。 - FIXED_RESPONSE:返回固定响应体。 使用说明: - REDIRECT_TO_LISTENER的优先级最高,配置了以后,该监听器下的其他policy会失效。 - 当action为REDIRECT_TO_POOL时, 只支持创建在PROTOCOL为HTTP、HTTPS、TERMINATED_HTTPS的listener上。 - 当action为REDIRECT_TO_LISTENER时,只支持创建在PROTOCOL为HTTP的listener上。 [不支持REDIRECT_TO_URL和FIXED_RESPONSE](tag:hcso_dt) + 参数解释:转发策略的转发动作。 约束限制: - REDIRECT_TO_LISTENER的优先级最高,配置了以后,该监听器下的其他policy会失效。 - 当action为REDIRECT_TO_POOL时, 只支持创建在PROTOCOL为HTTP、HTTPS、TERMINATED_HTTPS的listener上。 - 当action为REDIRECT_TO_LISTENER时,只支持创建在PROTOCOL为HTTP的listener上。 取值范围: - REDIRECT_TO_POOL:转发到后端云服务器组。 - REDIRECT_TO_LISTENER:重定向到监听器。 - REDIRECT_TO_URL:重定向到URL。 - FIXED_RESPONSE:返回固定响应体。 [不支持REDIRECT_TO_URL和FIXED_RESPONSE](tag:hcso_dt) :param action: The action of this CreateL7PolicyOption. :type action: str @@ -177,7 +177,7 @@ def action(self, action): def admin_state_up(self): """Gets the admin_state_up of this CreateL7PolicyOption. - 转发策略的管理状态,默认为true。 不支持该字段,请勿使用。 + 参数解释:转发策略的管理状态。 约束限制:只支持设置为true。 :return: The admin_state_up of this CreateL7PolicyOption. :rtype: bool @@ -188,7 +188,7 @@ def admin_state_up(self): def admin_state_up(self, admin_state_up): """Sets the admin_state_up of this CreateL7PolicyOption. - 转发策略的管理状态,默认为true。 不支持该字段,请勿使用。 + 参数解释:转发策略的管理状态。 约束限制:只支持设置为true。 :param admin_state_up: The admin_state_up of this CreateL7PolicyOption. :type admin_state_up: bool @@ -199,7 +199,7 @@ def admin_state_up(self, admin_state_up): def description(self): """Gets the description of this CreateL7PolicyOption. - 转发策略描述信息。 + 参数解释:转发策略描述信息。 :return: The description of this CreateL7PolicyOption. :rtype: str @@ -210,7 +210,7 @@ def description(self): def description(self, description): """Sets the description of this CreateL7PolicyOption. - 转发策略描述信息。 + 参数解释:转发策略描述信息。 :param description: The description of this CreateL7PolicyOption. :type description: str @@ -221,7 +221,7 @@ def description(self, description): def listener_id(self): """Gets the listener_id of this CreateL7PolicyOption. - 转发策略对应的监听器ID。 当action为REDIRECT_TO_POOL时,只支持创建在PROTOCOL为HTTP或HTTPS的listener上。 当action为REDIRECT_TO_LISTENER时,只支持创建在PROTOCOL为HTTP的listener上。 + 参数解释:转发策略对应的监听器ID。 约束限制: - 当action为REDIRECT_TO_POOL时,只支持创建在PROTOCOL为HTTP或HTTPS的listener上。 - 当action为REDIRECT_TO_LISTENER时,只支持创建在PROTOCOL为HTTP的listener上。 :return: The listener_id of this CreateL7PolicyOption. :rtype: str @@ -232,7 +232,7 @@ def listener_id(self): def listener_id(self, listener_id): """Sets the listener_id of this CreateL7PolicyOption. - 转发策略对应的监听器ID。 当action为REDIRECT_TO_POOL时,只支持创建在PROTOCOL为HTTP或HTTPS的listener上。 当action为REDIRECT_TO_LISTENER时,只支持创建在PROTOCOL为HTTP的listener上。 + 参数解释:转发策略对应的监听器ID。 约束限制: - 当action为REDIRECT_TO_POOL时,只支持创建在PROTOCOL为HTTP或HTTPS的listener上。 - 当action为REDIRECT_TO_LISTENER时,只支持创建在PROTOCOL为HTTP的listener上。 :param listener_id: The listener_id of this CreateL7PolicyOption. :type listener_id: str @@ -243,7 +243,7 @@ def listener_id(self, listener_id): def name(self): """Gets the name of this CreateL7PolicyOption. - 转发策略名称。 + 参数解释:转发策略名称。 :return: The name of this CreateL7PolicyOption. :rtype: str @@ -254,7 +254,7 @@ def name(self): def name(self, name): """Sets the name of this CreateL7PolicyOption. - 转发策略名称。 + 参数解释:转发策略名称。 :param name: The name of this CreateL7PolicyOption. :type name: str @@ -265,7 +265,7 @@ def name(self, name): def position(self): """Gets the position of this CreateL7PolicyOption. - 转发策略的优先级,不支持更新。 不支持该字段,请勿使用。 + 参数解释:转发策略的优先级。 约束限制:不支持更新。 不支持该字段,请勿使用。 :return: The position of this CreateL7PolicyOption. :rtype: int @@ -276,7 +276,7 @@ def position(self): def position(self, position): """Sets the position of this CreateL7PolicyOption. - 转发策略的优先级,不支持更新。 不支持该字段,请勿使用。 + 参数解释:转发策略的优先级。 约束限制:不支持更新。 不支持该字段,请勿使用。 :param position: The position of this CreateL7PolicyOption. :type position: int @@ -287,7 +287,7 @@ def position(self, position): def priority(self): """Gets the priority of this CreateL7PolicyOption. - 转发策略的优先级。数字越小表示优先级越高,同一监听器下不允许重复。 当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效,未开启传入该字段会报错。 当action为REDIRECT_TO_LISTENER时,仅支持指定为0,优先级最高。 当关联的listener没有开启enhance_l7policy_enable,按原有policy的排序逻辑,自动排序。 各域名之间优先级独立,相同域名下,按path的compare_type排序, 精确>前缀>正则,匹配类型相同时,path的长度越长优先级越高。 若policy下只有域名rule,没有路径rule,默认path为前缀匹配/。 当关联的listener开启了enhance_l7policy_enable,且不传该字段, 则新创建的转发策略的优先级的值为:同一监听器下已有转发策略的优先级的最大值+1。 因此,若当前已有转发策略的优先级的最大值是10000,新创建会因超出取值范围10000而失败。 此时可通过传入指定priority,或调整原有policy的优先级来避免错误。 若监听器下没有转发策略,则新建的转发策略的优先级为1。 [共享型负载均衡器下的转发策略不支持该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) + 参数解释:转发策略的优先级。数字越小表示优先级越高。 约束限制: - 同一个监听器下不同转发策略之间不允许重复的优先级数值。 - 当关联的监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效,未开启传入该字段会报错。 - 当关联的监听器的高级转发策略功能(enhance_l7policy_enable)未开启,按原有policy的排序逻辑,自动排序。 不同域名优先级独立。相同域名下,按path的compare_type排序, 精确>前缀>正则,匹配类型相同时,path的长度越长优先级越高。 若policy下只有域名rule,没有路径rule,默认path为前缀匹配/。 [- 共享型负载均衡器下的转发策略不支持该字段。](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) 取值范围: - 当action为REDIRECT_TO_LISTENER时,支持指定为0-10000。 - 其它action取值,支持指定为1-10000。 默认取值: - 若关联的监听器的高级转发策略功能(enhance_l7policy_enable)未开启,且不传入该字段,则新创建的转发策略的优先级的值为1。 - 当action为REDIRECT_TO_LISTENER时,则新创建的转发策略的优先级的值为0。 - 其它action取值,新创建的转发策略的优先级的值为同一监听器下已有转发策略的优先级的最大值+1。 + 若监听器下没有转发策略,则新建的转发策略的优先级为1。 + 若当前已有转发策略的优先级的最大值是10000,则新创建的转发策略会因超出取值范围10000而失败。此时可通过传入指定priority,或调整原有policy的优先级来避免错误。 [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) :return: The priority of this CreateL7PolicyOption. :rtype: int @@ -298,7 +298,7 @@ def priority(self): def priority(self, priority): """Sets the priority of this CreateL7PolicyOption. - 转发策略的优先级。数字越小表示优先级越高,同一监听器下不允许重复。 当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效,未开启传入该字段会报错。 当action为REDIRECT_TO_LISTENER时,仅支持指定为0,优先级最高。 当关联的listener没有开启enhance_l7policy_enable,按原有policy的排序逻辑,自动排序。 各域名之间优先级独立,相同域名下,按path的compare_type排序, 精确>前缀>正则,匹配类型相同时,path的长度越长优先级越高。 若policy下只有域名rule,没有路径rule,默认path为前缀匹配/。 当关联的listener开启了enhance_l7policy_enable,且不传该字段, 则新创建的转发策略的优先级的值为:同一监听器下已有转发策略的优先级的最大值+1。 因此,若当前已有转发策略的优先级的最大值是10000,新创建会因超出取值范围10000而失败。 此时可通过传入指定priority,或调整原有policy的优先级来避免错误。 若监听器下没有转发策略,则新建的转发策略的优先级为1。 [共享型负载均衡器下的转发策略不支持该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) + 参数解释:转发策略的优先级。数字越小表示优先级越高。 约束限制: - 同一个监听器下不同转发策略之间不允许重复的优先级数值。 - 当关联的监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效,未开启传入该字段会报错。 - 当关联的监听器的高级转发策略功能(enhance_l7policy_enable)未开启,按原有policy的排序逻辑,自动排序。 不同域名优先级独立。相同域名下,按path的compare_type排序, 精确>前缀>正则,匹配类型相同时,path的长度越长优先级越高。 若policy下只有域名rule,没有路径rule,默认path为前缀匹配/。 [- 共享型负载均衡器下的转发策略不支持该字段。](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) 取值范围: - 当action为REDIRECT_TO_LISTENER时,支持指定为0-10000。 - 其它action取值,支持指定为1-10000。 默认取值: - 若关联的监听器的高级转发策略功能(enhance_l7policy_enable)未开启,且不传入该字段,则新创建的转发策略的优先级的值为1。 - 当action为REDIRECT_TO_LISTENER时,则新创建的转发策略的优先级的值为0。 - 其它action取值,新创建的转发策略的优先级的值为同一监听器下已有转发策略的优先级的最大值+1。 + 若监听器下没有转发策略,则新建的转发策略的优先级为1。 + 若当前已有转发策略的优先级的最大值是10000,则新创建的转发策略会因超出取值范围10000而失败。此时可通过传入指定priority,或调整原有policy的优先级来避免错误。 [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) :param priority: The priority of this CreateL7PolicyOption. :type priority: int @@ -309,7 +309,7 @@ def priority(self, priority): def project_id(self): """Gets the project_id of this CreateL7PolicyOption. - 转发策略所在的项目ID。 + 参数解释:转发策略所在的项目ID。 :return: The project_id of this CreateL7PolicyOption. :rtype: str @@ -320,7 +320,7 @@ def project_id(self): def project_id(self, project_id): """Sets the project_id of this CreateL7PolicyOption. - 转发策略所在的项目ID。 + 参数解释:转发策略所在的项目ID。 :param project_id: The project_id of this CreateL7PolicyOption. :type project_id: str @@ -331,7 +331,7 @@ def project_id(self, project_id): def redirect_listener_id(self): """Gets the redirect_listener_id of this CreateL7PolicyOption. - 转发到的listener的ID,当action为REDIRECT_TO_LISTENER时必选。 使用说明: - 只支持protocol为HTTPS/TERMINATED_HTTPS的listener。 - 不能指定为其他loadbalancer下的listener。 - 当action为REDIRECT_TO_POOL时,创建或更新时不能传入该参数。 [- 共享型负载均衡器下的转发策略不支持该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) + 参数解释:转发到的listener的ID,当action为REDIRECT_TO_LISTENER时必选。 约束限制: - 只支持protocol为HTTPS/TERMINATED_HTTPS的listener。 - 不能指定为其他loadbalancer下的listener。 - 当action为REDIRECT_TO_POOL时,创建或更新时不能传入该参数。 [- 共享型负载均衡器下的转发策略不支持该字段。](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) :return: The redirect_listener_id of this CreateL7PolicyOption. :rtype: str @@ -342,7 +342,7 @@ def redirect_listener_id(self): def redirect_listener_id(self, redirect_listener_id): """Sets the redirect_listener_id of this CreateL7PolicyOption. - 转发到的listener的ID,当action为REDIRECT_TO_LISTENER时必选。 使用说明: - 只支持protocol为HTTPS/TERMINATED_HTTPS的listener。 - 不能指定为其他loadbalancer下的listener。 - 当action为REDIRECT_TO_POOL时,创建或更新时不能传入该参数。 [- 共享型负载均衡器下的转发策略不支持该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) + 参数解释:转发到的listener的ID,当action为REDIRECT_TO_LISTENER时必选。 约束限制: - 只支持protocol为HTTPS/TERMINATED_HTTPS的listener。 - 不能指定为其他loadbalancer下的listener。 - 当action为REDIRECT_TO_POOL时,创建或更新时不能传入该参数。 [- 共享型负载均衡器下的转发策略不支持该字段。](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) :param redirect_listener_id: The redirect_listener_id of this CreateL7PolicyOption. :type redirect_listener_id: str @@ -353,7 +353,7 @@ def redirect_listener_id(self, redirect_listener_id): def redirect_pool_id(self): """Gets the redirect_pool_id of this CreateL7PolicyOption. - 转发到pool的ID。当action为REDIRECT_TO_POOL时生效。 使用说明: - 当action为REDIRECT_TO_LISTENER时,不可指定。 + 参数解释:转发到pool的ID。 约束限制: - 当action为REDIRECT_TO_POOL时生效。 - 当action为REDIRECT_TO_LISTENER时,传入会报错。 :return: The redirect_pool_id of this CreateL7PolicyOption. :rtype: str @@ -364,7 +364,7 @@ def redirect_pool_id(self): def redirect_pool_id(self, redirect_pool_id): """Sets the redirect_pool_id of this CreateL7PolicyOption. - 转发到pool的ID。当action为REDIRECT_TO_POOL时生效。 使用说明: - 当action为REDIRECT_TO_LISTENER时,不可指定。 + 参数解释:转发到pool的ID。 约束限制: - 当action为REDIRECT_TO_POOL时生效。 - 当action为REDIRECT_TO_LISTENER时,传入会报错。 :param redirect_pool_id: The redirect_pool_id of this CreateL7PolicyOption. :type redirect_pool_id: str @@ -375,7 +375,7 @@ def redirect_pool_id(self, redirect_pool_id): def redirect_url(self): """Gets the redirect_url of this CreateL7PolicyOption. - 转发到的url。必须满足格式: protocol://host:port/path?query。 [不支持该字段,请勿使用。](tag:hcso_dt) + 参数解释:转发到的url。 约束限制:必须满足格式: protocol://host:port/path?query。 [不支持该字段,请勿使用。](tag:hcso_dt) :return: The redirect_url of this CreateL7PolicyOption. :rtype: str @@ -386,7 +386,7 @@ def redirect_url(self): def redirect_url(self, redirect_url): """Sets the redirect_url of this CreateL7PolicyOption. - 转发到的url。必须满足格式: protocol://host:port/path?query。 [不支持该字段,请勿使用。](tag:hcso_dt) + 参数解释:转发到的url。 约束限制:必须满足格式: protocol://host:port/path?query。 [不支持该字段,请勿使用。](tag:hcso_dt) :param redirect_url: The redirect_url of this CreateL7PolicyOption. :type redirect_url: str @@ -415,7 +415,7 @@ def redirect_url_config(self, redirect_url_config): def redirect_pools_config(self): """Gets the redirect_pools_config of this CreateL7PolicyOption. - 转发到多个主机组列表。一个policy最多配置5个pool。 + 参数解释:转发到多个主机组列表。 约束限制:一个policy最多配置5个pool。 :return: The redirect_pools_config of this CreateL7PolicyOption. :rtype: list[:class:`huaweicloudsdkelb.v3.CreateRedirectPoolsConfig`] @@ -426,7 +426,7 @@ def redirect_pools_config(self): def redirect_pools_config(self, redirect_pools_config): """Sets the redirect_pools_config of this CreateL7PolicyOption. - 转发到多个主机组列表。一个policy最多配置5个pool。 + 参数解释:转发到多个主机组列表。 约束限制:一个policy最多配置5个pool。 :param redirect_pools_config: The redirect_pools_config of this CreateL7PolicyOption. :type redirect_pools_config: list[:class:`huaweicloudsdkelb.v3.CreateRedirectPoolsConfig`] @@ -491,7 +491,7 @@ def redirect_pools_extend_config(self, redirect_pools_extend_config): def rules(self): """Gets the rules of this CreateL7PolicyOption. - 转发策略关联的转发规则对象。详细参考表 l7rule字段说明。rules列表中最多含有10个rule规则 (若rule中包含conditions字段,一条condition算一个规则), 且列表中type为HOST_NAME,PATH,METHOD,SOURCE_IP的rule不能重复,至多指定一条。 使用说明: - 仅支持全量替换。 - 如果l7policy 是重定向到listener的话,不允许创建l7rule。 + 参数解释:转发策略关联的转发规则对象。 约束限制: - rules列表中最多含有10个rule规则 (若rule中包含conditions字段,一条condition算一个规则), 且列表中type为HOST_NAME,PATH,METHOD,SOURCE_IP的rule不能重复,至多指定一条。 - 仅支持全量替换。 - 如果l7policy 是重定向到listener的话,不允许创建l7rule。 :return: The rules of this CreateL7PolicyOption. :rtype: list[:class:`huaweicloudsdkelb.v3.CreateL7PolicyRuleOption`] @@ -502,7 +502,7 @@ def rules(self): def rules(self, rules): """Sets the rules of this CreateL7PolicyOption. - 转发策略关联的转发规则对象。详细参考表 l7rule字段说明。rules列表中最多含有10个rule规则 (若rule中包含conditions字段,一条condition算一个规则), 且列表中type为HOST_NAME,PATH,METHOD,SOURCE_IP的rule不能重复,至多指定一条。 使用说明: - 仅支持全量替换。 - 如果l7policy 是重定向到listener的话,不允许创建l7rule。 + 参数解释:转发策略关联的转发规则对象。 约束限制: - rules列表中最多含有10个rule规则 (若rule中包含conditions字段,一条condition算一个规则), 且列表中type为HOST_NAME,PATH,METHOD,SOURCE_IP的rule不能重复,至多指定一条。 - 仅支持全量替换。 - 如果l7policy 是重定向到listener的话,不允许创建l7rule。 :param rules: The rules of this CreateL7PolicyOption. :type rules: list[:class:`huaweicloudsdkelb.v3.CreateL7PolicyRuleOption`] diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_l7_policy_response.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_l7_policy_response.py index 936ebd0097..29521cd6e4 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_l7_policy_response.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_l7_policy_response.py @@ -32,7 +32,7 @@ def __init__(self, request_id=None, l7policy=None): The model defined in huaweicloud sdk - :param request_id: 请求ID。 注:自动生成 。 + :param request_id: 参数解释:请求ID。 注:自动生成 。 :type request_id: str :param l7policy: :type l7policy: :class:`huaweicloudsdkelb.v3.L7Policy` @@ -53,7 +53,7 @@ def __init__(self, request_id=None, l7policy=None): def request_id(self): """Gets the request_id of this CreateL7PolicyResponse. - 请求ID。 注:自动生成 。 + 参数解释:请求ID。 注:自动生成 。 :return: The request_id of this CreateL7PolicyResponse. :rtype: str @@ -64,7 +64,7 @@ def request_id(self): def request_id(self, request_id): """Sets the request_id of this CreateL7PolicyResponse. - 请求ID。 注:自动生成 。 + 参数解释:请求ID。 注:自动生成 。 :param request_id: The request_id of this CreateL7PolicyResponse. :type request_id: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_l7_policy_rule_option.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_l7_policy_rule_option.py index 81dfadcd96..463ce88372 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_l7_policy_rule_option.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_l7_policy_rule_option.py @@ -41,19 +41,19 @@ def __init__(self, admin_state_up=None, type=None, compare_type=None, invert=Non The model defined in huaweicloud sdk - :param admin_state_up: 转发规则的管理状态;取值范围: true/false,默认为true。 不支持该字段,请勿使用。 + :param admin_state_up: 参数解释:转发规则的管理状态。 约束限制:只支持设置为true。 :type admin_state_up: bool - :param type: 转发规则类别。 取值: - HOST_NAME:匹配域名。 - PATH:匹配请求路径。 - METHOD:匹配请求方法。 - HEADER:匹配请求头。 - QUERY_STRING:匹配请求查询参数。 - SOURCE_IP:匹配请求源IP地址。 - COOKIE: 匹配cookie信息。 使用说明: - 一个l7policy下创建的l7rule的HOST_NAME,PATH,METHOD,SOURCE_IP不能重复。 HEADER、QUERY_STRING支持重复的rule配置。 [只支持取值为HOST_NAME,PATH。](tag:hcso_dt) + :param type: 参数解释:转发规则类别。 约束限制: - 一个l7policy下创建的l7rule的HOST_NAME,PATH,METHOD,SOURCE_IP不能重复。 HEADER、QUERY_STRING支持重复的rule配置。 取值范围: - HOST_NAME:匹配域名。 - PATH:匹配请求路径。 - METHOD:匹配请求方法。 - HEADER:匹配请求头。 - QUERY_STRING:匹配请求查询参数。 - SOURCE_IP:匹配请求源IP地址。 - COOKIE: 匹配cookie信息。 约束限制: - 一个l7policy下创建的l7rule的HOST_NAME,PATH,METHOD,SOURCE_IP不能重复。 HEADER、QUERY_STRING支持重复的rule配置。 [只支持取值为HOST_NAME,PATH。](tag:hcso_dt) :type type: str - :param compare_type: 转发匹配方式。 取值: - EQUAL_TO 表示精确匹配。 - REGEX 表示正则匹配。 - STARTS_WITH 表示前缀匹配。 使用说明: - type为HOST_NAME时仅支持EQUAL_TO,支持通配符*。 - type为PATH时可以为REGEX,STARTS_WITH,EQUAL_TO。 - type为METHOD、SOURCE_IP时,仅支持EQUAL_TO。 - type为HEADER、QUERY_STRING,仅支持EQUAL_TO,支持通配符*、?。 + :param compare_type: 参数解释:转发匹配方式。 约束限制: - type为HOST_NAME时仅支持EQUAL_TO,支持通配符*。 - type为PATH时可以为REGEX,STARTS_WITH,EQUAL_TO。 - type为METHOD、SOURCE_IP时,仅支持EQUAL_TO。 - type为HEADER、QUERY_STRING,仅支持EQUAL_TO,支持通配符*、?。 取值范围: - EQUAL_TO 表示精确匹配。 - REGEX 表示正则匹配。 - STARTS_WITH 表示前缀匹配。 :type compare_type: str - :param invert: 是否反向匹配;取值范围:true/false。默认值:false。 不支持该字段,请勿使用。 + :param invert: 参数解释:是否反向匹配。 取值范围:true/false。 默认取值:false。 不支持该字段,请勿使用。 :type invert: bool - :param key: 匹配项的名称,比如转发规则匹配类型是请求头匹配,则key表示请求头参数的名称。 不支持该字段,请勿使用。 + :param key: 参数解释:匹配项的名称,比如转发规则匹配类型是请求头匹配,则key表示请求头参数的名称。 不支持该字段,请勿使用。 :type key: str - :param value: 匹配项的值。比如转发规则匹配类型是域名匹配,则value表示域名的值。仅当conditions空时该字段生效。 当转发规则类别type为HOST_NAME时,字符串只能包含英文字母、数字、-、.或\\*,必须以字母、数字或\\*开头。 若域名中包含\\*,则\\*只能出现在开头且必须以\\*.开始。当\\*开头时表示通配0~任一个字符。 当转发规则类别type为PATH时,当转发规则的compare_type为STARTS_WITH、EQUAL_TO时, 字符串只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以\"/\"开头。 当转发规则类别type为METHOD、SOURCE_IP、HEADER,QUERY_STRING时, 该字段无意义,使用conditions来指定key/value。 + :param value: 参数解释: 匹配项的值。比如转发规则匹配类型是域名匹配,则value表示域名的值。 约束限制: - 仅当conditions空时该字段生效。 - 当转发规则类别type为HOST_NAME时,字符串只能包含英文字母、数字、-、.或\\*,必须以字母、数字或\\*开头。 若域名中包含\\*,则\\*只能出现在开头且必须以\\*.开始。当\\*开头时表示通配0~任一个字符。 - 当转发规则类别type为PATH时,当转发规则的compare_type为STARTS_WITH、EQUAL_TO时, 字符串只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以\"/\"开头。 - 当转发规则类别type为METHOD、SOURCE_IP、HEADER,QUERY_STRING时, 该字段无意义,使用conditions来指定key/value。 :type value: str - :param conditions: 转发规则的匹配条件。当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效。 若转发规则配置了conditions,字段key、字段value的值无意义。 同一个rule内的conditions列表中所有key必须相同,value不允许重复。 [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) + :param conditions: 参数解释:转发规则的匹配条件。 约束限制: - 当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效。 - 若转发规则配置了conditions,字段key、字段value的值无意义。 - 同一个rule内的conditions列表中所有key必须相同,value不允许重复。 [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) :type conditions: list[:class:`huaweicloudsdkelb.v3.CreateRuleCondition`] """ @@ -84,7 +84,7 @@ def __init__(self, admin_state_up=None, type=None, compare_type=None, invert=Non def admin_state_up(self): """Gets the admin_state_up of this CreateL7PolicyRuleOption. - 转发规则的管理状态;取值范围: true/false,默认为true。 不支持该字段,请勿使用。 + 参数解释:转发规则的管理状态。 约束限制:只支持设置为true。 :return: The admin_state_up of this CreateL7PolicyRuleOption. :rtype: bool @@ -95,7 +95,7 @@ def admin_state_up(self): def admin_state_up(self, admin_state_up): """Sets the admin_state_up of this CreateL7PolicyRuleOption. - 转发规则的管理状态;取值范围: true/false,默认为true。 不支持该字段,请勿使用。 + 参数解释:转发规则的管理状态。 约束限制:只支持设置为true。 :param admin_state_up: The admin_state_up of this CreateL7PolicyRuleOption. :type admin_state_up: bool @@ -106,7 +106,7 @@ def admin_state_up(self, admin_state_up): def type(self): """Gets the type of this CreateL7PolicyRuleOption. - 转发规则类别。 取值: - HOST_NAME:匹配域名。 - PATH:匹配请求路径。 - METHOD:匹配请求方法。 - HEADER:匹配请求头。 - QUERY_STRING:匹配请求查询参数。 - SOURCE_IP:匹配请求源IP地址。 - COOKIE: 匹配cookie信息。 使用说明: - 一个l7policy下创建的l7rule的HOST_NAME,PATH,METHOD,SOURCE_IP不能重复。 HEADER、QUERY_STRING支持重复的rule配置。 [只支持取值为HOST_NAME,PATH。](tag:hcso_dt) + 参数解释:转发规则类别。 约束限制: - 一个l7policy下创建的l7rule的HOST_NAME,PATH,METHOD,SOURCE_IP不能重复。 HEADER、QUERY_STRING支持重复的rule配置。 取值范围: - HOST_NAME:匹配域名。 - PATH:匹配请求路径。 - METHOD:匹配请求方法。 - HEADER:匹配请求头。 - QUERY_STRING:匹配请求查询参数。 - SOURCE_IP:匹配请求源IP地址。 - COOKIE: 匹配cookie信息。 约束限制: - 一个l7policy下创建的l7rule的HOST_NAME,PATH,METHOD,SOURCE_IP不能重复。 HEADER、QUERY_STRING支持重复的rule配置。 [只支持取值为HOST_NAME,PATH。](tag:hcso_dt) :return: The type of this CreateL7PolicyRuleOption. :rtype: str @@ -117,7 +117,7 @@ def type(self): def type(self, type): """Sets the type of this CreateL7PolicyRuleOption. - 转发规则类别。 取值: - HOST_NAME:匹配域名。 - PATH:匹配请求路径。 - METHOD:匹配请求方法。 - HEADER:匹配请求头。 - QUERY_STRING:匹配请求查询参数。 - SOURCE_IP:匹配请求源IP地址。 - COOKIE: 匹配cookie信息。 使用说明: - 一个l7policy下创建的l7rule的HOST_NAME,PATH,METHOD,SOURCE_IP不能重复。 HEADER、QUERY_STRING支持重复的rule配置。 [只支持取值为HOST_NAME,PATH。](tag:hcso_dt) + 参数解释:转发规则类别。 约束限制: - 一个l7policy下创建的l7rule的HOST_NAME,PATH,METHOD,SOURCE_IP不能重复。 HEADER、QUERY_STRING支持重复的rule配置。 取值范围: - HOST_NAME:匹配域名。 - PATH:匹配请求路径。 - METHOD:匹配请求方法。 - HEADER:匹配请求头。 - QUERY_STRING:匹配请求查询参数。 - SOURCE_IP:匹配请求源IP地址。 - COOKIE: 匹配cookie信息。 约束限制: - 一个l7policy下创建的l7rule的HOST_NAME,PATH,METHOD,SOURCE_IP不能重复。 HEADER、QUERY_STRING支持重复的rule配置。 [只支持取值为HOST_NAME,PATH。](tag:hcso_dt) :param type: The type of this CreateL7PolicyRuleOption. :type type: str @@ -128,7 +128,7 @@ def type(self, type): def compare_type(self): """Gets the compare_type of this CreateL7PolicyRuleOption. - 转发匹配方式。 取值: - EQUAL_TO 表示精确匹配。 - REGEX 表示正则匹配。 - STARTS_WITH 表示前缀匹配。 使用说明: - type为HOST_NAME时仅支持EQUAL_TO,支持通配符*。 - type为PATH时可以为REGEX,STARTS_WITH,EQUAL_TO。 - type为METHOD、SOURCE_IP时,仅支持EQUAL_TO。 - type为HEADER、QUERY_STRING,仅支持EQUAL_TO,支持通配符*、?。 + 参数解释:转发匹配方式。 约束限制: - type为HOST_NAME时仅支持EQUAL_TO,支持通配符*。 - type为PATH时可以为REGEX,STARTS_WITH,EQUAL_TO。 - type为METHOD、SOURCE_IP时,仅支持EQUAL_TO。 - type为HEADER、QUERY_STRING,仅支持EQUAL_TO,支持通配符*、?。 取值范围: - EQUAL_TO 表示精确匹配。 - REGEX 表示正则匹配。 - STARTS_WITH 表示前缀匹配。 :return: The compare_type of this CreateL7PolicyRuleOption. :rtype: str @@ -139,7 +139,7 @@ def compare_type(self): def compare_type(self, compare_type): """Sets the compare_type of this CreateL7PolicyRuleOption. - 转发匹配方式。 取值: - EQUAL_TO 表示精确匹配。 - REGEX 表示正则匹配。 - STARTS_WITH 表示前缀匹配。 使用说明: - type为HOST_NAME时仅支持EQUAL_TO,支持通配符*。 - type为PATH时可以为REGEX,STARTS_WITH,EQUAL_TO。 - type为METHOD、SOURCE_IP时,仅支持EQUAL_TO。 - type为HEADER、QUERY_STRING,仅支持EQUAL_TO,支持通配符*、?。 + 参数解释:转发匹配方式。 约束限制: - type为HOST_NAME时仅支持EQUAL_TO,支持通配符*。 - type为PATH时可以为REGEX,STARTS_WITH,EQUAL_TO。 - type为METHOD、SOURCE_IP时,仅支持EQUAL_TO。 - type为HEADER、QUERY_STRING,仅支持EQUAL_TO,支持通配符*、?。 取值范围: - EQUAL_TO 表示精确匹配。 - REGEX 表示正则匹配。 - STARTS_WITH 表示前缀匹配。 :param compare_type: The compare_type of this CreateL7PolicyRuleOption. :type compare_type: str @@ -150,7 +150,7 @@ def compare_type(self, compare_type): def invert(self): """Gets the invert of this CreateL7PolicyRuleOption. - 是否反向匹配;取值范围:true/false。默认值:false。 不支持该字段,请勿使用。 + 参数解释:是否反向匹配。 取值范围:true/false。 默认取值:false。 不支持该字段,请勿使用。 :return: The invert of this CreateL7PolicyRuleOption. :rtype: bool @@ -161,7 +161,7 @@ def invert(self): def invert(self, invert): """Sets the invert of this CreateL7PolicyRuleOption. - 是否反向匹配;取值范围:true/false。默认值:false。 不支持该字段,请勿使用。 + 参数解释:是否反向匹配。 取值范围:true/false。 默认取值:false。 不支持该字段,请勿使用。 :param invert: The invert of this CreateL7PolicyRuleOption. :type invert: bool @@ -172,7 +172,7 @@ def invert(self, invert): def key(self): """Gets the key of this CreateL7PolicyRuleOption. - 匹配项的名称,比如转发规则匹配类型是请求头匹配,则key表示请求头参数的名称。 不支持该字段,请勿使用。 + 参数解释:匹配项的名称,比如转发规则匹配类型是请求头匹配,则key表示请求头参数的名称。 不支持该字段,请勿使用。 :return: The key of this CreateL7PolicyRuleOption. :rtype: str @@ -183,7 +183,7 @@ def key(self): def key(self, key): """Sets the key of this CreateL7PolicyRuleOption. - 匹配项的名称,比如转发规则匹配类型是请求头匹配,则key表示请求头参数的名称。 不支持该字段,请勿使用。 + 参数解释:匹配项的名称,比如转发规则匹配类型是请求头匹配,则key表示请求头参数的名称。 不支持该字段,请勿使用。 :param key: The key of this CreateL7PolicyRuleOption. :type key: str @@ -194,7 +194,7 @@ def key(self, key): def value(self): """Gets the value of this CreateL7PolicyRuleOption. - 匹配项的值。比如转发规则匹配类型是域名匹配,则value表示域名的值。仅当conditions空时该字段生效。 当转发规则类别type为HOST_NAME时,字符串只能包含英文字母、数字、-、.或\\*,必须以字母、数字或\\*开头。 若域名中包含\\*,则\\*只能出现在开头且必须以\\*.开始。当\\*开头时表示通配0~任一个字符。 当转发规则类别type为PATH时,当转发规则的compare_type为STARTS_WITH、EQUAL_TO时, 字符串只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以\"/\"开头。 当转发规则类别type为METHOD、SOURCE_IP、HEADER,QUERY_STRING时, 该字段无意义,使用conditions来指定key/value。 + 参数解释: 匹配项的值。比如转发规则匹配类型是域名匹配,则value表示域名的值。 约束限制: - 仅当conditions空时该字段生效。 - 当转发规则类别type为HOST_NAME时,字符串只能包含英文字母、数字、-、.或\\*,必须以字母、数字或\\*开头。 若域名中包含\\*,则\\*只能出现在开头且必须以\\*.开始。当\\*开头时表示通配0~任一个字符。 - 当转发规则类别type为PATH时,当转发规则的compare_type为STARTS_WITH、EQUAL_TO时, 字符串只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以\"/\"开头。 - 当转发规则类别type为METHOD、SOURCE_IP、HEADER,QUERY_STRING时, 该字段无意义,使用conditions来指定key/value。 :return: The value of this CreateL7PolicyRuleOption. :rtype: str @@ -205,7 +205,7 @@ def value(self): def value(self, value): """Sets the value of this CreateL7PolicyRuleOption. - 匹配项的值。比如转发规则匹配类型是域名匹配,则value表示域名的值。仅当conditions空时该字段生效。 当转发规则类别type为HOST_NAME时,字符串只能包含英文字母、数字、-、.或\\*,必须以字母、数字或\\*开头。 若域名中包含\\*,则\\*只能出现在开头且必须以\\*.开始。当\\*开头时表示通配0~任一个字符。 当转发规则类别type为PATH时,当转发规则的compare_type为STARTS_WITH、EQUAL_TO时, 字符串只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以\"/\"开头。 当转发规则类别type为METHOD、SOURCE_IP、HEADER,QUERY_STRING时, 该字段无意义,使用conditions来指定key/value。 + 参数解释: 匹配项的值。比如转发规则匹配类型是域名匹配,则value表示域名的值。 约束限制: - 仅当conditions空时该字段生效。 - 当转发规则类别type为HOST_NAME时,字符串只能包含英文字母、数字、-、.或\\*,必须以字母、数字或\\*开头。 若域名中包含\\*,则\\*只能出现在开头且必须以\\*.开始。当\\*开头时表示通配0~任一个字符。 - 当转发规则类别type为PATH时,当转发规则的compare_type为STARTS_WITH、EQUAL_TO时, 字符串只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以\"/\"开头。 - 当转发规则类别type为METHOD、SOURCE_IP、HEADER,QUERY_STRING时, 该字段无意义,使用conditions来指定key/value。 :param value: The value of this CreateL7PolicyRuleOption. :type value: str @@ -216,7 +216,7 @@ def value(self, value): def conditions(self): """Gets the conditions of this CreateL7PolicyRuleOption. - 转发规则的匹配条件。当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效。 若转发规则配置了conditions,字段key、字段value的值无意义。 同一个rule内的conditions列表中所有key必须相同,value不允许重复。 [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) + 参数解释:转发规则的匹配条件。 约束限制: - 当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效。 - 若转发规则配置了conditions,字段key、字段value的值无意义。 - 同一个rule内的conditions列表中所有key必须相同,value不允许重复。 [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) :return: The conditions of this CreateL7PolicyRuleOption. :rtype: list[:class:`huaweicloudsdkelb.v3.CreateRuleCondition`] @@ -227,7 +227,7 @@ def conditions(self): def conditions(self, conditions): """Sets the conditions of this CreateL7PolicyRuleOption. - 转发规则的匹配条件。当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效。 若转发规则配置了conditions,字段key、字段value的值无意义。 同一个rule内的conditions列表中所有key必须相同,value不允许重复。 [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) + 参数解释:转发规则的匹配条件。 约束限制: - 当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效。 - 若转发规则配置了conditions,字段key、字段value的值无意义。 - 同一个rule内的conditions列表中所有key必须相同,value不允许重复。 [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) :param conditions: The conditions of this CreateL7PolicyRuleOption. :type conditions: list[:class:`huaweicloudsdkelb.v3.CreateRuleCondition`] diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_l7_rule_request.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_l7_rule_request.py index b319c1451a..5def56e112 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_l7_rule_request.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_l7_rule_request.py @@ -31,7 +31,7 @@ def __init__(self, l7policy_id=None, body=None): The model defined in huaweicloud sdk - :param l7policy_id: 转发策略ID。 + :param l7policy_id: 参数解释:转发策略ID。 :type l7policy_id: str :param body: Body of the CreateL7RuleRequest :type body: :class:`huaweicloudsdkelb.v3.CreateL7RuleRequestBody` @@ -51,7 +51,7 @@ def __init__(self, l7policy_id=None, body=None): def l7policy_id(self): """Gets the l7policy_id of this CreateL7RuleRequest. - 转发策略ID。 + 参数解释:转发策略ID。 :return: The l7policy_id of this CreateL7RuleRequest. :rtype: str @@ -62,7 +62,7 @@ def l7policy_id(self): def l7policy_id(self, l7policy_id): """Sets the l7policy_id of this CreateL7RuleRequest. - 转发策略ID。 + 参数解释:转发策略ID。 :param l7policy_id: The l7policy_id of this CreateL7RuleRequest. :type l7policy_id: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_l7_rule_response.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_l7_rule_response.py index 07f82cca90..3f35a3e6c3 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_l7_rule_response.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_l7_rule_response.py @@ -32,7 +32,7 @@ def __init__(self, request_id=None, rule=None): The model defined in huaweicloud sdk - :param request_id: 请求ID。 注:自动生成 。 + :param request_id: 参数解释:请求ID。 注:自动生成 。 :type request_id: str :param rule: :type rule: :class:`huaweicloudsdkelb.v3.L7Rule` @@ -53,7 +53,7 @@ def __init__(self, request_id=None, rule=None): def request_id(self): """Gets the request_id of this CreateL7RuleResponse. - 请求ID。 注:自动生成 。 + 参数解释:请求ID。 注:自动生成 。 :return: The request_id of this CreateL7RuleResponse. :rtype: str @@ -64,7 +64,7 @@ def request_id(self): def request_id(self, request_id): """Sets the request_id of this CreateL7RuleResponse. - 请求ID。 注:自动生成 。 + 参数解释:请求ID。 注:自动生成 。 :param request_id: The request_id of this CreateL7RuleResponse. :type request_id: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_listener_ip_group_option.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_listener_ip_group_option.py index 8dc644140e..2c433e20f4 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_listener_ip_group_option.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_listener_ip_group_option.py @@ -33,11 +33,11 @@ def __init__(self, ipgroup_id=None, enable_ipgroup=None, type=None): The model defined in huaweicloud sdk - :param ipgroup_id: 监听器关联的访问控制组的id。 当关联的ipgroup中的ip_list为[],且类型为白名单时,表示禁止所有ip的访问。 当关联的ipgroup中的ip_list为[],且类型为黑名单时,表示允许所有ip的访问。 + :param ipgroup_id: 参数解释:监听器关联的访问控制组的id。 约束限制: - 当关联的ipgroup中的ip_list为[],且类型为白名单时,表示禁止所有ip的访问。 - 当关联的ipgroup中的ip_list为[],且类型为黑名单时,表示允许所有ip的访问。 :type ipgroup_id: str - :param enable_ipgroup: 访问控制组的状态。 取值: - true:开启访问控制,默认值。 - flase:关闭访问控制。 + :param enable_ipgroup: 参数解释:访问控制组的状态。 取值范围: - true:开启访问控制,默认值。 - flase:关闭访问控制。 :type enable_ipgroup: bool - :param type: 访问控制组的类型。 - white:白名单,只允许指定ip访问,默认值。 - black:黑名单,不允许指定ip访问。 + :param type: 参数解释:访问控制组的类型。 取值范围: - white:白名单,只允许指定ip访问。 - black:黑名单,不允许指定ip访问。 默认取值:white :type type: str """ @@ -58,7 +58,7 @@ def __init__(self, ipgroup_id=None, enable_ipgroup=None, type=None): def ipgroup_id(self): """Gets the ipgroup_id of this CreateListenerIpGroupOption. - 监听器关联的访问控制组的id。 当关联的ipgroup中的ip_list为[],且类型为白名单时,表示禁止所有ip的访问。 当关联的ipgroup中的ip_list为[],且类型为黑名单时,表示允许所有ip的访问。 + 参数解释:监听器关联的访问控制组的id。 约束限制: - 当关联的ipgroup中的ip_list为[],且类型为白名单时,表示禁止所有ip的访问。 - 当关联的ipgroup中的ip_list为[],且类型为黑名单时,表示允许所有ip的访问。 :return: The ipgroup_id of this CreateListenerIpGroupOption. :rtype: str @@ -69,7 +69,7 @@ def ipgroup_id(self): def ipgroup_id(self, ipgroup_id): """Sets the ipgroup_id of this CreateListenerIpGroupOption. - 监听器关联的访问控制组的id。 当关联的ipgroup中的ip_list为[],且类型为白名单时,表示禁止所有ip的访问。 当关联的ipgroup中的ip_list为[],且类型为黑名单时,表示允许所有ip的访问。 + 参数解释:监听器关联的访问控制组的id。 约束限制: - 当关联的ipgroup中的ip_list为[],且类型为白名单时,表示禁止所有ip的访问。 - 当关联的ipgroup中的ip_list为[],且类型为黑名单时,表示允许所有ip的访问。 :param ipgroup_id: The ipgroup_id of this CreateListenerIpGroupOption. :type ipgroup_id: str @@ -80,7 +80,7 @@ def ipgroup_id(self, ipgroup_id): def enable_ipgroup(self): """Gets the enable_ipgroup of this CreateListenerIpGroupOption. - 访问控制组的状态。 取值: - true:开启访问控制,默认值。 - flase:关闭访问控制。 + 参数解释:访问控制组的状态。 取值范围: - true:开启访问控制,默认值。 - flase:关闭访问控制。 :return: The enable_ipgroup of this CreateListenerIpGroupOption. :rtype: bool @@ -91,7 +91,7 @@ def enable_ipgroup(self): def enable_ipgroup(self, enable_ipgroup): """Sets the enable_ipgroup of this CreateListenerIpGroupOption. - 访问控制组的状态。 取值: - true:开启访问控制,默认值。 - flase:关闭访问控制。 + 参数解释:访问控制组的状态。 取值范围: - true:开启访问控制,默认值。 - flase:关闭访问控制。 :param enable_ipgroup: The enable_ipgroup of this CreateListenerIpGroupOption. :type enable_ipgroup: bool @@ -102,7 +102,7 @@ def enable_ipgroup(self, enable_ipgroup): def type(self): """Gets the type of this CreateListenerIpGroupOption. - 访问控制组的类型。 - white:白名单,只允许指定ip访问,默认值。 - black:黑名单,不允许指定ip访问。 + 参数解释:访问控制组的类型。 取值范围: - white:白名单,只允许指定ip访问。 - black:黑名单,不允许指定ip访问。 默认取值:white :return: The type of this CreateListenerIpGroupOption. :rtype: str @@ -113,7 +113,7 @@ def type(self): def type(self, type): """Sets the type of this CreateListenerIpGroupOption. - 访问控制组的类型。 - white:白名单,只允许指定ip访问,默认值。 - black:黑名单,不允许指定ip访问。 + 参数解释:访问控制组的类型。 取值范围: - white:白名单,只允许指定ip访问。 - black:黑名单,不允许指定ip访问。 默认取值:white :param type: The type of this CreateListenerIpGroupOption. :type type: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_listener_option.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_listener_option.py index fd925d460f..4bd2799a5c 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_listener_option.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_listener_option.py @@ -89,67 +89,67 @@ def __init__(self, admin_state_up=None, default_pool_id=None, client_ca_tls_cont The model defined in huaweicloud sdk - :param admin_state_up: 监听器的管理状态。只支持设置为true。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt) + :param admin_state_up: 参数解释:监听器的管理状态。 约束限制:只支持设置为true。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt) :type admin_state_up: bool - :param default_pool_id: 监听器默认的后端云服务器组ID。当请求没有匹配的转发策略时,转发到默认后端云服务器上处理。 + :param default_pool_id: 参数解释:监听器默认的后端云服务器组ID。当请求没有匹配的转发策略时,转发到默认后端云服务器上处理。 :type default_pool_id: str - :param client_ca_tls_container_ref: 监听器使用的CA证书ID。当且仅当type=client时,才会使用该字段对应的证书。 监听器协议为QUIC时不支持该字段。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) + :param client_ca_tls_container_ref: 参数解释:监听器使用的CA证书ID。 约束限制: - 当且仅当type=client时,才会使用该字段对应的证书。 - 监听器协议为QUIC时不支持该字段。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) :type client_ca_tls_container_ref: str - :param default_tls_container_ref: 监听器使用的服务器证书ID。 使用说明:当监听器协议为HTTPS、TLS或QUIC时,该字段必传,且对应的证书的type必须是server类型。 + :param default_tls_container_ref: 参数解释:监听器使用的服务器证书ID。 约束限制:当监听器协议为HTTPS、TLS或QUIC时,该字段必传,且对应的证书的type必须是server类型。 :type default_tls_container_ref: str - :param description: 监听器的描述信息。 + :param description: 参数解释:监听器的描述信息。 :type description: str - :param http2_enable: 客户端与LB之间的HTTPS请求的HTTP2功能的开启状态。 开启后,可提升客户端与LB间的访问性能,但LB与后端服务器间仍采用HTTP1.X协议。 使用说明: - 仅HTTPS协议监听器有效。 - QUIC监听器不能设置该字段,固定返回为true。 - 其他协议的监听器可设置该字段但无效,无论取值如何都不影响监听器正常运行。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) + :param http2_enable: 参数解释:客户端与LB之间的HTTPS请求的HTTP2功能的开启状态。 开启后,可提升客户端与LB间的访问性能,但LB与后端服务器间仍采用HTTP1.X协议。 约束限制: - 仅HTTPS协议监听器有效。 - QUIC监听器不能设置该字段,固定返回为true。 - 其他协议的监听器可设置该字段但无效,无论取值如何都不影响监听器正常运行。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) :type http2_enable: bool :param insert_headers: :type insert_headers: :class:`huaweicloudsdkelb.v3.ListenerInsertHeaders` - :param loadbalancer_id: 监听器所属的负载均衡器的ID列表。 使用说明: 一个监听器只支持关联到一个LB。 + :param loadbalancer_id: 参数解释:监听器所属的负载均衡器的ID列表。 约束限制: 一个监听器只支持关联到一个LB。 :type loadbalancer_id: str - :param name: 监听器的名称。 注意:若名称为空,则在控制台的监听器列表无法选择并查看监听器详情。 + :param name: 参数解释:监听器的名称。 注意:若名称为空,则在控制台的监听器列表无法选择并查看监听器详情。 :type name: str - :param project_id: 监听器所在的项目ID。 + :param project_id: 参数解释:监听器所在的项目ID。 :type project_id: str - :param protocol: 监听器的监听协议。 [取值:TCP、UDP、HTTP、HTTPS、TERMINATED_HTTPS、QUIC、TLS。 使用说明: - 共享型LB上的HTTPS监听器只支持设置为TERMINATED_HTTPS。 传入HTTPS将会自动转为TERMINATED_HTTPS。 - 独享型LB上的HTTPS监听器只支持设置为HTTPS,传入TERMINATED_HTTPS将会自动转为HTTPS。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [取值:TCP、UDP、IP、HTTP、HTTPS。IP为网关型LB上的监听器独有的协议。](tag:hws_eu,hcso_dt) [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) + :param protocol: 参数解释:监听器的监听协议。 [ 约束限制: - 共享型LB上的HTTPS监听器只支持设置为TERMINATED_HTTPS。 传入HTTPS将会自动转为TERMINATED_HTTPS。 - 独享型LB上的HTTPS监听器只支持设置为HTTPS,传入TERMINATED_HTTPS将会自动转为HTTPS。 取值范围:TCP、UDP、HTTP、HTTPS、TERMINATED_HTTPS、QUIC、TLS。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [取值范围:TCP、UDP、HTTP、HTTPS。](tag:hcso_dt) [取值范围:TCP、UDP、IP、HTTP、HTTPS。IP为网关型LB上的监听器独有的协议。](tag:hws_eu) [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) :type protocol: str - :param protocol_port: 监听器的监听端口。QUIC监听器端口不能是4789,且不能和UDP监听器端口重复。传0时表示开启监听端口范围的能力,此时port_ranges为必填字段。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) + :param protocol_port: 参数解释:监听器的监听端口。 约束限制: - QUIC监听器端口不能是4789,且不能和UDP监听器端口重复。 - 传0时表示开启监听端口范围的能力,此时port_ranges为必填字段。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) :type protocol_port: int - :param sni_container_refs: 监听器使用的SNI证书(带域名的服务器证书)ID列表。 使用说明: - 列表对应的所有SNI证书的域名不允许存在重复。 - 列表对应的所有SNI证书的域名总数不超过50。 - QUIC监听器仅支持RSA证书。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) + :param sni_container_refs: 参数解释:监听器使用的SNI证书(带域名的服务器证书)ID列表。 约束限制: - 列表对应的所有SNI证书的域名不允许存在重复。 - 列表对应的所有SNI证书的域名总数不超过50。 - QUIC监听器仅支持RSA证书。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) :type sni_container_refs: list[str] - :param sni_match_algo: 监听器使用的SNI证书泛域名匹配方式。 longest_suffix表示最长尾缀匹配,wildcard表示标准域名分级匹配。 默认为wildcard。 + :param sni_match_algo: 参数解释:监听器使用的SNI证书泛域名匹配方式。 取值范围: - longest_suffix 表示最长尾缀匹配。 - wildcard 表示标准域名分级匹配。 默认取值:wildcard。 :type sni_match_algo: str - :param tags: 标签列表 + :param tags: 参数解释:标签列表 :type tags: list[:class:`huaweicloudsdkelb.v3.Tag`] - :param tls_ciphers_policy: 监听器使用的安全策略。 [取值:tls-1-0-inherit、tls-1-0、tls-1-1、 tls-1-2、tls-1-2-strict、tls-1-2-fs、tls-1-0-with-1-3、 tls-1-2-fs-with-1-3、 hybrid-policy-1-0、tls-1-2-strict-no-cbc,默认:tls-1-0。 ](tag:hws,hws_hk,ocb,tlf,ctc,hcso,sbc,tm,cmcc,dt) [取值:tls-1-0、tls-1-1、tls-1-2、 tls-1-2-strict,默认:tls-1-0。](tag:hws_eu,g42,hk_g42,hcso_dt) [使用说明: - 仅对HTTPS协议类型的监听器且关联LB为独享型时有效。 - QUIC监听器不支持该字段。 - 若同时设置了security_policy_id和tls_ciphers_policy,则仅security_policy_id生效。 - 加密套件的优先顺序为ecc套件、rsa套件、tls1.3协议的套件(即支持ecc又支持rsa) ](tag:hws,hws_hk,hws_eu,g42,hk_g42,ocb,tlf,ctc,hcso,sbc,tm,cmcc,dt) [使用说明: - 仅对HTTPS协议类型的监听器有效](tag:hcso_dt) [不支持tls1.3协议的套件。](tag:tm,hws_eu,g42,hk_g42) [不支持QUIC。](tag:tm,dt,dt_test) + :param tls_ciphers_policy: 参数解释:监听器使用的安全策略。 [约束限制: - 仅对HTTPS协议类型的监听器且关联LB为独享型时有效。 - QUIC监听器不支持该字段。 - 若同时设置了security_policy_id和tls_ciphers_policy,则仅security_policy_id生效。 - 加密套件的优先顺序为ecc套件、rsa套件、tls1.3协议的套件(即支持ecc又支持rsa) ](tag:hws,hws_hk,hws_eu,g42,hk_g42,ocb,tlf,ctc,hcso,sbc,tm,cmcc,dt) [约束限制: - 仅对HTTPS协议类型的监听器有效](tag:hcso_dt) [取值范围:tls-1-0-inherit、tls-1-0、tls-1-1、 tls-1-2、tls-1-2-strict、tls-1-2-fs、tls-1-0-with-1-3、 tls-1-2-fs-with-1-3、 hybrid-policy-1-0、tls-1-2-strict-no-cbc,默认:tls-1-0。 ](tag:hws,hws_hk,ocb,tlf,ctc,hcso,sbc,tm,cmcc,dt) [取值范围:tls-1-0、tls-1-1、tls-1-2、 tls-1-2-strict,默认:tls-1-0。](tag:hws_eu,g42,hk_g42,hcso_dt) [不支持tls1.3协议的套件。](tag:tm,hws_eu,g42,hk_g42) [不支持QUIC。](tag:tm,dt,dt_test) :type tls_ciphers_policy: str - :param security_policy_id: 自定义安全策略的ID。 [使用说明: - 仅对HTTPS协议类型的监听器且关联LB为独享型时有效。 - QUIC监听器不支持该字段。 - 若同时设置了security_policy_id和tls_ciphers_policy,则仅security_policy_id生效。 - 加密套件的优先顺序为ecc套件、rsa套件、tls1.3协议的套件 (即支持ecc又支持rsa) ](tag:hws,hws_hk,hws_eu,g42,hk_g42,ocb,tlf,ctc,hcso,sbc,tm,cmcc,dt) [使用说明: - 仅对HTTPS协议类型的监听器有效](tag:hcso_dt) [不支持tls1.3协议的套件。](tag:tm,hws_eu,g42,hk_g42) [不支持QUIC。](tag:tm,dt,dt_test) + :param security_policy_id: 参数解释:自定义安全策略的ID。 [约束限制: - 仅对HTTPS协议类型的监听器且关联LB为独享型时有效。 - QUIC监听器不支持该字段。 - 若同时设置了security_policy_id和tls_ciphers_policy,则仅security_policy_id生效。 - 加密套件的优先顺序为ecc套件、rsa套件、tls1.3协议的套件 (即支持ecc又支持rsa) ](tag:hws,hws_hk,hws_eu,g42,hk_g42,ocb,tlf,ctc,hcso,sbc,tm,cmcc,dt) [约束限制: - 仅对HTTPS协议类型的监听器有效](tag:hcso_dt) [不支持tls1.3协议的套件。](tag:tm,hws_eu,g42,hk_g42) [不支持QUIC。](tag:tm,dt,dt_test) :type security_policy_id: str - :param enable_member_retry: 是否开启后端服务器的重试。 取值:true 开启重试,false 不开启重试。默认:true。 [使用说明: - 若关联是共享型LB,仅在protocol为HTTP、TERMINATED_HTTPS时才能传入该字段。 - 若关联是独享型LB,仅在protocol为HTTP、HTTPS和QUIC时才能传入该字段。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [使用说明: - 仅在protocol为HTTP、HTTPS时才能传入该字段。](tag:hws_eu,hcso_dt) [不支持QUIC。](tag:tm,dt,dt_test) + :param enable_member_retry: 参数解释:是否开启后端服务器的重试。 [约束限制: - 若关联是共享型LB,仅在protocol为HTTP、TERMINATED_HTTPS时才能传入该字段。 - 若关联是独享型LB,仅在protocol为HTTP、HTTPS和QUIC时才能传入该字段。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [约束限制: - 仅在protocol为HTTP、HTTPS时才能传入该字段。](tag:hws_eu,hcso_dt) 取值范围:true 开启重试,false 不开启重试。默认:true。 [不支持QUIC。](tag:tm,dt,dt_test) :type enable_member_retry: bool - :param keepalive_timeout: 客户端连接空闲超时时间。在超过keepalive_timeout时长一直没有请求, 负载均衡会暂时中断当前连接,直到下一次请求时重新建立新的连接。 取值: - TCP监听器[和IP监听器](tag:hws_eu):10-4000s,默认值为300s。 - 若为HTTP/HTTPS/TERMINATED_HTTPS监听器,取值范围为(0-4000s)默认值为60s。 共享型实例的UDP监听器不支持此字段。 + :param keepalive_timeout: 参数解释:客户端连接空闲超时时间。在超过keepalive_timeout时长一直没有请求, 负载均衡会暂时中断当前连接,直到下一次请求时重新建立新的连接。 约束限制:共享型实例的UDP监听器不支持此字段。 取值范围: - TCP监听器[和IP监听器](tag:hws_eu):10-4000s,默认值为300s。 - 若为HTTP/HTTPS/TERMINATED_HTTPS监听器,取值范围为(0-4000s)默认值为60s。 :type keepalive_timeout: int - :param client_timeout: 等待客户端请求超时时间,包括两种情况: - 读取整个客户端请求头的超时时长:如果客户端未在超时时长内发送完整个请求头,则请求将被中断 - 两个连续body体的数据包到达LB的时间间隔,超出client_timeout将会断开连接。 取值范围为1-300s,默认值为60s。 使用说明:仅协议为HTTP/HTTPS的监听器支持该字段。 + :param client_timeout: 参数解释:等待客户端请求超时时间,包括两种情况: - 读取整个客户端请求头的超时时长:如果客户端未在超时时长内发送完整个请求头,则请求将被中断 - 两个连续body体的数据包到达LB的时间间隔,超出client_timeout将会断开连接。 约束限制:仅协议为HTTP/HTTPS的监听器支持该字段。 取值范围: 1-3600s。 默认取值:60s。 :type client_timeout: int - :param member_timeout: 等待后端服务器响应超时时间。请求转发后端服务器后,在等待超时member_timeout时长没有响应,负载均衡将终止等待,并返回 HTTP504错误码。 取值:1-300s,默认为60s。 使用说明:仅支持协议为HTTP/HTTPS的监听器。 + :param member_timeout: 参数解释:等待后端服务器响应超时时间。请求转发后端服务器后,在等待超时member_timeout时长没有响应,负载均衡将终止等待,并返回 HTTP504错误码。 约束限制:仅支持协议为HTTP/HTTPS的监听器。 取值范围:1-3600s。 默认取值:60s。 :type member_timeout: int :param ipgroup: :type ipgroup: :class:`huaweicloudsdkelb.v3.CreateListenerIpGroupOption` - :param transparent_client_ip_enable: 是否透传客户端IP地址。开启后客户端IP地址将透传到后端服务器。 [仅作用于共享型LB的TCP/UDP监听器。 取值: - 共享型LB的TCP/UDP监听器可设置为true或false,不传默认为false。 - 共享型LB的HTTP/HTTPS监听器只支持设置为true,不传默认为true。 - 独享型负载均衡器所有协议的监听器只支持设置为true,不传默认为true。 使用说明: - 开启特性后,ELB和后端服务器之间直接使用真实的IP访问,需要确保已正确设置服务器的安全组以及访问控制策略。 - 开启特性后,不支持同一台服务器既作为后端服务器又作为客户端的场景。 - 开启特性后,不支持变更后端服务器规格。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [只设支持置为true,不传默认为true。](tag:hws_eu,hcso_dt) + :param transparent_client_ip_enable: 参数解释:是否透传客户端IP地址。开启后客户端IP地址将透传到后端服务器。 [约束限制: - 仅作用于共享型LB的TCP/UDP监听器。 - 开启特性后,ELB和后端服务器之间直接使用真实的IP访问,需要确保已正确设置服务器的安全组以及访问控制策略。 - 开启特性后,不支持同一台服务器既作为后端服务器又作为客户端的场景。 - 开启特性后,不支持变更后端服务器规格。 取值范围: - 共享型LB的TCP/UDP监听器可设置为true或false,不传默认为false。 - 共享型LB的HTTP/HTTPS监听器只支持设置为true,不传默认为true。 - 独享型负载均衡器所有协议的监听器只支持设置为true,不传默认为true。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [约束限制:只设支持置为true,不传默认为true。](tag:hws_eu,hcso_dt) :type transparent_client_ip_enable: bool - :param proxy_protocol_enable: 是否开启proxy_protocol。仅TLS监听器可指定,其他协议的监听器该字段不生效,proxy_protocol不开启。 + :param proxy_protocol_enable: 参数解释:是否开启proxy_protocol。 约束限制:仅TLS监听器可指定,其他协议的监听器该字段不生效,proxy_protocol不开启。 :type proxy_protocol_enable: bool - :param enhance_l7policy_enable: 是否开启高级转发策略功能。开启高级转发策略后,支持更灵活的转发策略和转发规则设置。 取值:true开启,false不开启,默认false。 开启后支持如下场景: - 转发策略的action字段支持指定为REDIRECT_TO_URL, FIXED_RESPONSE,即支持URL重定向和响应固定的内容给客户端。 - 转发策略支持指定priority、redirect_url_config、fixed_response_config字段。 - 转发规则rule的type可以指定METHOD, HEADER, QUERY_STRING, SOURCE_IP这几种取值。 - 转发规则rule的type为HOST_NAME时,转发规则rule的value支持通配符*。 - 转发规则支持指定conditions字段。 [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) > 开启后不支持关闭 + :param enhance_l7policy_enable: 参数解释:是否开启高级转发策略功能。开启高级转发策略后,支持更灵活的转发策略和转发规则设置。 开启后支持如下场景: - 转发策略的action字段支持指定为REDIRECT_TO_URL, FIXED_RESPONSE,即支持URL重定向和响应固定的内容给客户端。 - 转发策略支持指定priority、redirect_url_config、fixed_response_config字段。 - 转发规则rule的type可以指定METHOD, HEADER, QUERY_STRING, SOURCE_IP这几种取值。 - 转发规则rule的type为HOST_NAME时,转发规则rule的value支持通配符*。 - 转发规则支持指定conditions字段。 取值范围:true开启,false不开启,默认false。 [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) > 开启后不支持关闭 :type enhance_l7policy_enable: bool :param quic_config: :type quic_config: :class:`huaweicloudsdkelb.v3.CreateListenerQuicConfigOption` - :param protection_status: 修改保护状态, 取值: - nonProtection: 不保护,默认值为nonProtection - consoleProtection: 控制台修改保护 + :param protection_status: 参数解释:修改保护状态。 取值范围: - nonProtection: 不保护,默认值为nonProtection - consoleProtection: 控制台修改保护 :type protection_status: str - :param protection_reason: 设置保护的原因 >仅当protection_status为consoleProtection时有效。 + :param protection_reason: 参数解释:设置保护的原因 约束限制:仅当protection_status为consoleProtection时有效。 :type protection_reason: str - :param gzip_enable: ELB是否开启gzip压缩,缺省值:false,非必选 [仅HTTP/HTTPS类型监听器支持配置。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) [仅HTTP/HTTPS/QUIC类型监听器支持配置。](tag:hws,hws_hk,hws_test,hcs,hcs_sm,hcso,hk_vdf,fcs,fcs_vm,mix,ocb,ctc,cmcc,sbc,hws_ocb,hk_sbc) + :param gzip_enable: 参数解释:ELB是否开启gzip压缩。 [约束限制:仅HTTP/HTTPS类型监听器支持配置。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) [约束限制:仅HTTP/HTTPS/QUIC类型监听器支持配置。](tag:hws,hws_hk,hws_test,hcs,hcs_sm,hcso,hk_vdf,fcs,fcs_vm,mix,ocb,ctc,cmcc,sbc,hws_ocb,hk_sbc) 取值范围:true,false 默认取值:false :type gzip_enable: bool - :param port_ranges: 端口监听范围(闭区间),最多指定10个端口组,每个组范围不可有重叠部分 >仅当protocol_port为0或未传入protoco_port时可以传入该字段。仅TCP, UDP,TLS监听支持该字段 + :param port_ranges: 参数解释:端口监听范围(闭区间),最多指定10个端口组,每个组范围不可有重叠部分。 约束限制: - 仅当protocol_port为0或未传入protoco_port时可以传入该字段。 - 仅TCP, UDP,TLS监听支持该字段 :type port_ranges: list[:class:`huaweicloudsdkelb.v3.PortRange`] - :param ssl_early_data_enable: 监听器0-RTT能力开关,缺省值:false,非必选 仅HTTPS类型监听器支持配置,需要依赖TLSv1.3安全策略协议。开启 ssl_early_data 后,有重放攻击的风险,请谨慎开启。 + :param ssl_early_data_enable: 参数解释:监听器0-RTT能力开关。 约束限制:仅HTTPS类型监听器支持配置,需要依赖TLSv1.3安全策略协议。开启 ssl_early_data 后,有重放攻击的风险,请谨慎开启。 取值范围:true,false 默认取值:false :type ssl_early_data_enable: bool """ @@ -253,7 +253,7 @@ def __init__(self, admin_state_up=None, default_pool_id=None, client_ca_tls_cont def admin_state_up(self): """Gets the admin_state_up of this CreateListenerOption. - 监听器的管理状态。只支持设置为true。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt) + 参数解释:监听器的管理状态。 约束限制:只支持设置为true。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt) :return: The admin_state_up of this CreateListenerOption. :rtype: bool @@ -264,7 +264,7 @@ def admin_state_up(self): def admin_state_up(self, admin_state_up): """Sets the admin_state_up of this CreateListenerOption. - 监听器的管理状态。只支持设置为true。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt) + 参数解释:监听器的管理状态。 约束限制:只支持设置为true。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt) :param admin_state_up: The admin_state_up of this CreateListenerOption. :type admin_state_up: bool @@ -275,7 +275,7 @@ def admin_state_up(self, admin_state_up): def default_pool_id(self): """Gets the default_pool_id of this CreateListenerOption. - 监听器默认的后端云服务器组ID。当请求没有匹配的转发策略时,转发到默认后端云服务器上处理。 + 参数解释:监听器默认的后端云服务器组ID。当请求没有匹配的转发策略时,转发到默认后端云服务器上处理。 :return: The default_pool_id of this CreateListenerOption. :rtype: str @@ -286,7 +286,7 @@ def default_pool_id(self): def default_pool_id(self, default_pool_id): """Sets the default_pool_id of this CreateListenerOption. - 监听器默认的后端云服务器组ID。当请求没有匹配的转发策略时,转发到默认后端云服务器上处理。 + 参数解释:监听器默认的后端云服务器组ID。当请求没有匹配的转发策略时,转发到默认后端云服务器上处理。 :param default_pool_id: The default_pool_id of this CreateListenerOption. :type default_pool_id: str @@ -297,7 +297,7 @@ def default_pool_id(self, default_pool_id): def client_ca_tls_container_ref(self): """Gets the client_ca_tls_container_ref of this CreateListenerOption. - 监听器使用的CA证书ID。当且仅当type=client时,才会使用该字段对应的证书。 监听器协议为QUIC时不支持该字段。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) + 参数解释:监听器使用的CA证书ID。 约束限制: - 当且仅当type=client时,才会使用该字段对应的证书。 - 监听器协议为QUIC时不支持该字段。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) :return: The client_ca_tls_container_ref of this CreateListenerOption. :rtype: str @@ -308,7 +308,7 @@ def client_ca_tls_container_ref(self): def client_ca_tls_container_ref(self, client_ca_tls_container_ref): """Sets the client_ca_tls_container_ref of this CreateListenerOption. - 监听器使用的CA证书ID。当且仅当type=client时,才会使用该字段对应的证书。 监听器协议为QUIC时不支持该字段。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) + 参数解释:监听器使用的CA证书ID。 约束限制: - 当且仅当type=client时,才会使用该字段对应的证书。 - 监听器协议为QUIC时不支持该字段。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) :param client_ca_tls_container_ref: The client_ca_tls_container_ref of this CreateListenerOption. :type client_ca_tls_container_ref: str @@ -319,7 +319,7 @@ def client_ca_tls_container_ref(self, client_ca_tls_container_ref): def default_tls_container_ref(self): """Gets the default_tls_container_ref of this CreateListenerOption. - 监听器使用的服务器证书ID。 使用说明:当监听器协议为HTTPS、TLS或QUIC时,该字段必传,且对应的证书的type必须是server类型。 + 参数解释:监听器使用的服务器证书ID。 约束限制:当监听器协议为HTTPS、TLS或QUIC时,该字段必传,且对应的证书的type必须是server类型。 :return: The default_tls_container_ref of this CreateListenerOption. :rtype: str @@ -330,7 +330,7 @@ def default_tls_container_ref(self): def default_tls_container_ref(self, default_tls_container_ref): """Sets the default_tls_container_ref of this CreateListenerOption. - 监听器使用的服务器证书ID。 使用说明:当监听器协议为HTTPS、TLS或QUIC时,该字段必传,且对应的证书的type必须是server类型。 + 参数解释:监听器使用的服务器证书ID。 约束限制:当监听器协议为HTTPS、TLS或QUIC时,该字段必传,且对应的证书的type必须是server类型。 :param default_tls_container_ref: The default_tls_container_ref of this CreateListenerOption. :type default_tls_container_ref: str @@ -341,7 +341,7 @@ def default_tls_container_ref(self, default_tls_container_ref): def description(self): """Gets the description of this CreateListenerOption. - 监听器的描述信息。 + 参数解释:监听器的描述信息。 :return: The description of this CreateListenerOption. :rtype: str @@ -352,7 +352,7 @@ def description(self): def description(self, description): """Sets the description of this CreateListenerOption. - 监听器的描述信息。 + 参数解释:监听器的描述信息。 :param description: The description of this CreateListenerOption. :type description: str @@ -363,7 +363,7 @@ def description(self, description): def http2_enable(self): """Gets the http2_enable of this CreateListenerOption. - 客户端与LB之间的HTTPS请求的HTTP2功能的开启状态。 开启后,可提升客户端与LB间的访问性能,但LB与后端服务器间仍采用HTTP1.X协议。 使用说明: - 仅HTTPS协议监听器有效。 - QUIC监听器不能设置该字段,固定返回为true。 - 其他协议的监听器可设置该字段但无效,无论取值如何都不影响监听器正常运行。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) + 参数解释:客户端与LB之间的HTTPS请求的HTTP2功能的开启状态。 开启后,可提升客户端与LB间的访问性能,但LB与后端服务器间仍采用HTTP1.X协议。 约束限制: - 仅HTTPS协议监听器有效。 - QUIC监听器不能设置该字段,固定返回为true。 - 其他协议的监听器可设置该字段但无效,无论取值如何都不影响监听器正常运行。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) :return: The http2_enable of this CreateListenerOption. :rtype: bool @@ -374,7 +374,7 @@ def http2_enable(self): def http2_enable(self, http2_enable): """Sets the http2_enable of this CreateListenerOption. - 客户端与LB之间的HTTPS请求的HTTP2功能的开启状态。 开启后,可提升客户端与LB间的访问性能,但LB与后端服务器间仍采用HTTP1.X协议。 使用说明: - 仅HTTPS协议监听器有效。 - QUIC监听器不能设置该字段,固定返回为true。 - 其他协议的监听器可设置该字段但无效,无论取值如何都不影响监听器正常运行。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) + 参数解释:客户端与LB之间的HTTPS请求的HTTP2功能的开启状态。 开启后,可提升客户端与LB间的访问性能,但LB与后端服务器间仍采用HTTP1.X协议。 约束限制: - 仅HTTPS协议监听器有效。 - QUIC监听器不能设置该字段,固定返回为true。 - 其他协议的监听器可设置该字段但无效,无论取值如何都不影响监听器正常运行。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) :param http2_enable: The http2_enable of this CreateListenerOption. :type http2_enable: bool @@ -403,7 +403,7 @@ def insert_headers(self, insert_headers): def loadbalancer_id(self): """Gets the loadbalancer_id of this CreateListenerOption. - 监听器所属的负载均衡器的ID列表。 使用说明: 一个监听器只支持关联到一个LB。 + 参数解释:监听器所属的负载均衡器的ID列表。 约束限制: 一个监听器只支持关联到一个LB。 :return: The loadbalancer_id of this CreateListenerOption. :rtype: str @@ -414,7 +414,7 @@ def loadbalancer_id(self): def loadbalancer_id(self, loadbalancer_id): """Sets the loadbalancer_id of this CreateListenerOption. - 监听器所属的负载均衡器的ID列表。 使用说明: 一个监听器只支持关联到一个LB。 + 参数解释:监听器所属的负载均衡器的ID列表。 约束限制: 一个监听器只支持关联到一个LB。 :param loadbalancer_id: The loadbalancer_id of this CreateListenerOption. :type loadbalancer_id: str @@ -425,7 +425,7 @@ def loadbalancer_id(self, loadbalancer_id): def name(self): """Gets the name of this CreateListenerOption. - 监听器的名称。 注意:若名称为空,则在控制台的监听器列表无法选择并查看监听器详情。 + 参数解释:监听器的名称。 注意:若名称为空,则在控制台的监听器列表无法选择并查看监听器详情。 :return: The name of this CreateListenerOption. :rtype: str @@ -436,7 +436,7 @@ def name(self): def name(self, name): """Sets the name of this CreateListenerOption. - 监听器的名称。 注意:若名称为空,则在控制台的监听器列表无法选择并查看监听器详情。 + 参数解释:监听器的名称。 注意:若名称为空,则在控制台的监听器列表无法选择并查看监听器详情。 :param name: The name of this CreateListenerOption. :type name: str @@ -447,7 +447,7 @@ def name(self, name): def project_id(self): """Gets the project_id of this CreateListenerOption. - 监听器所在的项目ID。 + 参数解释:监听器所在的项目ID。 :return: The project_id of this CreateListenerOption. :rtype: str @@ -458,7 +458,7 @@ def project_id(self): def project_id(self, project_id): """Sets the project_id of this CreateListenerOption. - 监听器所在的项目ID。 + 参数解释:监听器所在的项目ID。 :param project_id: The project_id of this CreateListenerOption. :type project_id: str @@ -469,7 +469,7 @@ def project_id(self, project_id): def protocol(self): """Gets the protocol of this CreateListenerOption. - 监听器的监听协议。 [取值:TCP、UDP、HTTP、HTTPS、TERMINATED_HTTPS、QUIC、TLS。 使用说明: - 共享型LB上的HTTPS监听器只支持设置为TERMINATED_HTTPS。 传入HTTPS将会自动转为TERMINATED_HTTPS。 - 独享型LB上的HTTPS监听器只支持设置为HTTPS,传入TERMINATED_HTTPS将会自动转为HTTPS。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [取值:TCP、UDP、IP、HTTP、HTTPS。IP为网关型LB上的监听器独有的协议。](tag:hws_eu,hcso_dt) [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) + 参数解释:监听器的监听协议。 [ 约束限制: - 共享型LB上的HTTPS监听器只支持设置为TERMINATED_HTTPS。 传入HTTPS将会自动转为TERMINATED_HTTPS。 - 独享型LB上的HTTPS监听器只支持设置为HTTPS,传入TERMINATED_HTTPS将会自动转为HTTPS。 取值范围:TCP、UDP、HTTP、HTTPS、TERMINATED_HTTPS、QUIC、TLS。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [取值范围:TCP、UDP、HTTP、HTTPS。](tag:hcso_dt) [取值范围:TCP、UDP、IP、HTTP、HTTPS。IP为网关型LB上的监听器独有的协议。](tag:hws_eu) [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) :return: The protocol of this CreateListenerOption. :rtype: str @@ -480,7 +480,7 @@ def protocol(self): def protocol(self, protocol): """Sets the protocol of this CreateListenerOption. - 监听器的监听协议。 [取值:TCP、UDP、HTTP、HTTPS、TERMINATED_HTTPS、QUIC、TLS。 使用说明: - 共享型LB上的HTTPS监听器只支持设置为TERMINATED_HTTPS。 传入HTTPS将会自动转为TERMINATED_HTTPS。 - 独享型LB上的HTTPS监听器只支持设置为HTTPS,传入TERMINATED_HTTPS将会自动转为HTTPS。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [取值:TCP、UDP、IP、HTTP、HTTPS。IP为网关型LB上的监听器独有的协议。](tag:hws_eu,hcso_dt) [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) + 参数解释:监听器的监听协议。 [ 约束限制: - 共享型LB上的HTTPS监听器只支持设置为TERMINATED_HTTPS。 传入HTTPS将会自动转为TERMINATED_HTTPS。 - 独享型LB上的HTTPS监听器只支持设置为HTTPS,传入TERMINATED_HTTPS将会自动转为HTTPS。 取值范围:TCP、UDP、HTTP、HTTPS、TERMINATED_HTTPS、QUIC、TLS。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [取值范围:TCP、UDP、HTTP、HTTPS。](tag:hcso_dt) [取值范围:TCP、UDP、IP、HTTP、HTTPS。IP为网关型LB上的监听器独有的协议。](tag:hws_eu) [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) :param protocol: The protocol of this CreateListenerOption. :type protocol: str @@ -491,7 +491,7 @@ def protocol(self, protocol): def protocol_port(self): """Gets the protocol_port of this CreateListenerOption. - 监听器的监听端口。QUIC监听器端口不能是4789,且不能和UDP监听器端口重复。传0时表示开启监听端口范围的能力,此时port_ranges为必填字段。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) + 参数解释:监听器的监听端口。 约束限制: - QUIC监听器端口不能是4789,且不能和UDP监听器端口重复。 - 传0时表示开启监听端口范围的能力,此时port_ranges为必填字段。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) :return: The protocol_port of this CreateListenerOption. :rtype: int @@ -502,7 +502,7 @@ def protocol_port(self): def protocol_port(self, protocol_port): """Sets the protocol_port of this CreateListenerOption. - 监听器的监听端口。QUIC监听器端口不能是4789,且不能和UDP监听器端口重复。传0时表示开启监听端口范围的能力,此时port_ranges为必填字段。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) + 参数解释:监听器的监听端口。 约束限制: - QUIC监听器端口不能是4789,且不能和UDP监听器端口重复。 - 传0时表示开启监听端口范围的能力,此时port_ranges为必填字段。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) :param protocol_port: The protocol_port of this CreateListenerOption. :type protocol_port: int @@ -513,7 +513,7 @@ def protocol_port(self, protocol_port): def sni_container_refs(self): """Gets the sni_container_refs of this CreateListenerOption. - 监听器使用的SNI证书(带域名的服务器证书)ID列表。 使用说明: - 列表对应的所有SNI证书的域名不允许存在重复。 - 列表对应的所有SNI证书的域名总数不超过50。 - QUIC监听器仅支持RSA证书。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) + 参数解释:监听器使用的SNI证书(带域名的服务器证书)ID列表。 约束限制: - 列表对应的所有SNI证书的域名不允许存在重复。 - 列表对应的所有SNI证书的域名总数不超过50。 - QUIC监听器仅支持RSA证书。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) :return: The sni_container_refs of this CreateListenerOption. :rtype: list[str] @@ -524,7 +524,7 @@ def sni_container_refs(self): def sni_container_refs(self, sni_container_refs): """Sets the sni_container_refs of this CreateListenerOption. - 监听器使用的SNI证书(带域名的服务器证书)ID列表。 使用说明: - 列表对应的所有SNI证书的域名不允许存在重复。 - 列表对应的所有SNI证书的域名总数不超过50。 - QUIC监听器仅支持RSA证书。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) + 参数解释:监听器使用的SNI证书(带域名的服务器证书)ID列表。 约束限制: - 列表对应的所有SNI证书的域名不允许存在重复。 - 列表对应的所有SNI证书的域名总数不超过50。 - QUIC监听器仅支持RSA证书。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) :param sni_container_refs: The sni_container_refs of this CreateListenerOption. :type sni_container_refs: list[str] @@ -535,7 +535,7 @@ def sni_container_refs(self, sni_container_refs): def sni_match_algo(self): """Gets the sni_match_algo of this CreateListenerOption. - 监听器使用的SNI证书泛域名匹配方式。 longest_suffix表示最长尾缀匹配,wildcard表示标准域名分级匹配。 默认为wildcard。 + 参数解释:监听器使用的SNI证书泛域名匹配方式。 取值范围: - longest_suffix 表示最长尾缀匹配。 - wildcard 表示标准域名分级匹配。 默认取值:wildcard。 :return: The sni_match_algo of this CreateListenerOption. :rtype: str @@ -546,7 +546,7 @@ def sni_match_algo(self): def sni_match_algo(self, sni_match_algo): """Sets the sni_match_algo of this CreateListenerOption. - 监听器使用的SNI证书泛域名匹配方式。 longest_suffix表示最长尾缀匹配,wildcard表示标准域名分级匹配。 默认为wildcard。 + 参数解释:监听器使用的SNI证书泛域名匹配方式。 取值范围: - longest_suffix 表示最长尾缀匹配。 - wildcard 表示标准域名分级匹配。 默认取值:wildcard。 :param sni_match_algo: The sni_match_algo of this CreateListenerOption. :type sni_match_algo: str @@ -557,7 +557,7 @@ def sni_match_algo(self, sni_match_algo): def tags(self): """Gets the tags of this CreateListenerOption. - 标签列表 + 参数解释:标签列表 :return: The tags of this CreateListenerOption. :rtype: list[:class:`huaweicloudsdkelb.v3.Tag`] @@ -568,7 +568,7 @@ def tags(self): def tags(self, tags): """Sets the tags of this CreateListenerOption. - 标签列表 + 参数解释:标签列表 :param tags: The tags of this CreateListenerOption. :type tags: list[:class:`huaweicloudsdkelb.v3.Tag`] @@ -579,7 +579,7 @@ def tags(self, tags): def tls_ciphers_policy(self): """Gets the tls_ciphers_policy of this CreateListenerOption. - 监听器使用的安全策略。 [取值:tls-1-0-inherit、tls-1-0、tls-1-1、 tls-1-2、tls-1-2-strict、tls-1-2-fs、tls-1-0-with-1-3、 tls-1-2-fs-with-1-3、 hybrid-policy-1-0、tls-1-2-strict-no-cbc,默认:tls-1-0。 ](tag:hws,hws_hk,ocb,tlf,ctc,hcso,sbc,tm,cmcc,dt) [取值:tls-1-0、tls-1-1、tls-1-2、 tls-1-2-strict,默认:tls-1-0。](tag:hws_eu,g42,hk_g42,hcso_dt) [使用说明: - 仅对HTTPS协议类型的监听器且关联LB为独享型时有效。 - QUIC监听器不支持该字段。 - 若同时设置了security_policy_id和tls_ciphers_policy,则仅security_policy_id生效。 - 加密套件的优先顺序为ecc套件、rsa套件、tls1.3协议的套件(即支持ecc又支持rsa) ](tag:hws,hws_hk,hws_eu,g42,hk_g42,ocb,tlf,ctc,hcso,sbc,tm,cmcc,dt) [使用说明: - 仅对HTTPS协议类型的监听器有效](tag:hcso_dt) [不支持tls1.3协议的套件。](tag:tm,hws_eu,g42,hk_g42) [不支持QUIC。](tag:tm,dt,dt_test) + 参数解释:监听器使用的安全策略。 [约束限制: - 仅对HTTPS协议类型的监听器且关联LB为独享型时有效。 - QUIC监听器不支持该字段。 - 若同时设置了security_policy_id和tls_ciphers_policy,则仅security_policy_id生效。 - 加密套件的优先顺序为ecc套件、rsa套件、tls1.3协议的套件(即支持ecc又支持rsa) ](tag:hws,hws_hk,hws_eu,g42,hk_g42,ocb,tlf,ctc,hcso,sbc,tm,cmcc,dt) [约束限制: - 仅对HTTPS协议类型的监听器有效](tag:hcso_dt) [取值范围:tls-1-0-inherit、tls-1-0、tls-1-1、 tls-1-2、tls-1-2-strict、tls-1-2-fs、tls-1-0-with-1-3、 tls-1-2-fs-with-1-3、 hybrid-policy-1-0、tls-1-2-strict-no-cbc,默认:tls-1-0。 ](tag:hws,hws_hk,ocb,tlf,ctc,hcso,sbc,tm,cmcc,dt) [取值范围:tls-1-0、tls-1-1、tls-1-2、 tls-1-2-strict,默认:tls-1-0。](tag:hws_eu,g42,hk_g42,hcso_dt) [不支持tls1.3协议的套件。](tag:tm,hws_eu,g42,hk_g42) [不支持QUIC。](tag:tm,dt,dt_test) :return: The tls_ciphers_policy of this CreateListenerOption. :rtype: str @@ -590,7 +590,7 @@ def tls_ciphers_policy(self): def tls_ciphers_policy(self, tls_ciphers_policy): """Sets the tls_ciphers_policy of this CreateListenerOption. - 监听器使用的安全策略。 [取值:tls-1-0-inherit、tls-1-0、tls-1-1、 tls-1-2、tls-1-2-strict、tls-1-2-fs、tls-1-0-with-1-3、 tls-1-2-fs-with-1-3、 hybrid-policy-1-0、tls-1-2-strict-no-cbc,默认:tls-1-0。 ](tag:hws,hws_hk,ocb,tlf,ctc,hcso,sbc,tm,cmcc,dt) [取值:tls-1-0、tls-1-1、tls-1-2、 tls-1-2-strict,默认:tls-1-0。](tag:hws_eu,g42,hk_g42,hcso_dt) [使用说明: - 仅对HTTPS协议类型的监听器且关联LB为独享型时有效。 - QUIC监听器不支持该字段。 - 若同时设置了security_policy_id和tls_ciphers_policy,则仅security_policy_id生效。 - 加密套件的优先顺序为ecc套件、rsa套件、tls1.3协议的套件(即支持ecc又支持rsa) ](tag:hws,hws_hk,hws_eu,g42,hk_g42,ocb,tlf,ctc,hcso,sbc,tm,cmcc,dt) [使用说明: - 仅对HTTPS协议类型的监听器有效](tag:hcso_dt) [不支持tls1.3协议的套件。](tag:tm,hws_eu,g42,hk_g42) [不支持QUIC。](tag:tm,dt,dt_test) + 参数解释:监听器使用的安全策略。 [约束限制: - 仅对HTTPS协议类型的监听器且关联LB为独享型时有效。 - QUIC监听器不支持该字段。 - 若同时设置了security_policy_id和tls_ciphers_policy,则仅security_policy_id生效。 - 加密套件的优先顺序为ecc套件、rsa套件、tls1.3协议的套件(即支持ecc又支持rsa) ](tag:hws,hws_hk,hws_eu,g42,hk_g42,ocb,tlf,ctc,hcso,sbc,tm,cmcc,dt) [约束限制: - 仅对HTTPS协议类型的监听器有效](tag:hcso_dt) [取值范围:tls-1-0-inherit、tls-1-0、tls-1-1、 tls-1-2、tls-1-2-strict、tls-1-2-fs、tls-1-0-with-1-3、 tls-1-2-fs-with-1-3、 hybrid-policy-1-0、tls-1-2-strict-no-cbc,默认:tls-1-0。 ](tag:hws,hws_hk,ocb,tlf,ctc,hcso,sbc,tm,cmcc,dt) [取值范围:tls-1-0、tls-1-1、tls-1-2、 tls-1-2-strict,默认:tls-1-0。](tag:hws_eu,g42,hk_g42,hcso_dt) [不支持tls1.3协议的套件。](tag:tm,hws_eu,g42,hk_g42) [不支持QUIC。](tag:tm,dt,dt_test) :param tls_ciphers_policy: The tls_ciphers_policy of this CreateListenerOption. :type tls_ciphers_policy: str @@ -601,7 +601,7 @@ def tls_ciphers_policy(self, tls_ciphers_policy): def security_policy_id(self): """Gets the security_policy_id of this CreateListenerOption. - 自定义安全策略的ID。 [使用说明: - 仅对HTTPS协议类型的监听器且关联LB为独享型时有效。 - QUIC监听器不支持该字段。 - 若同时设置了security_policy_id和tls_ciphers_policy,则仅security_policy_id生效。 - 加密套件的优先顺序为ecc套件、rsa套件、tls1.3协议的套件 (即支持ecc又支持rsa) ](tag:hws,hws_hk,hws_eu,g42,hk_g42,ocb,tlf,ctc,hcso,sbc,tm,cmcc,dt) [使用说明: - 仅对HTTPS协议类型的监听器有效](tag:hcso_dt) [不支持tls1.3协议的套件。](tag:tm,hws_eu,g42,hk_g42) [不支持QUIC。](tag:tm,dt,dt_test) + 参数解释:自定义安全策略的ID。 [约束限制: - 仅对HTTPS协议类型的监听器且关联LB为独享型时有效。 - QUIC监听器不支持该字段。 - 若同时设置了security_policy_id和tls_ciphers_policy,则仅security_policy_id生效。 - 加密套件的优先顺序为ecc套件、rsa套件、tls1.3协议的套件 (即支持ecc又支持rsa) ](tag:hws,hws_hk,hws_eu,g42,hk_g42,ocb,tlf,ctc,hcso,sbc,tm,cmcc,dt) [约束限制: - 仅对HTTPS协议类型的监听器有效](tag:hcso_dt) [不支持tls1.3协议的套件。](tag:tm,hws_eu,g42,hk_g42) [不支持QUIC。](tag:tm,dt,dt_test) :return: The security_policy_id of this CreateListenerOption. :rtype: str @@ -612,7 +612,7 @@ def security_policy_id(self): def security_policy_id(self, security_policy_id): """Sets the security_policy_id of this CreateListenerOption. - 自定义安全策略的ID。 [使用说明: - 仅对HTTPS协议类型的监听器且关联LB为独享型时有效。 - QUIC监听器不支持该字段。 - 若同时设置了security_policy_id和tls_ciphers_policy,则仅security_policy_id生效。 - 加密套件的优先顺序为ecc套件、rsa套件、tls1.3协议的套件 (即支持ecc又支持rsa) ](tag:hws,hws_hk,hws_eu,g42,hk_g42,ocb,tlf,ctc,hcso,sbc,tm,cmcc,dt) [使用说明: - 仅对HTTPS协议类型的监听器有效](tag:hcso_dt) [不支持tls1.3协议的套件。](tag:tm,hws_eu,g42,hk_g42) [不支持QUIC。](tag:tm,dt,dt_test) + 参数解释:自定义安全策略的ID。 [约束限制: - 仅对HTTPS协议类型的监听器且关联LB为独享型时有效。 - QUIC监听器不支持该字段。 - 若同时设置了security_policy_id和tls_ciphers_policy,则仅security_policy_id生效。 - 加密套件的优先顺序为ecc套件、rsa套件、tls1.3协议的套件 (即支持ecc又支持rsa) ](tag:hws,hws_hk,hws_eu,g42,hk_g42,ocb,tlf,ctc,hcso,sbc,tm,cmcc,dt) [约束限制: - 仅对HTTPS协议类型的监听器有效](tag:hcso_dt) [不支持tls1.3协议的套件。](tag:tm,hws_eu,g42,hk_g42) [不支持QUIC。](tag:tm,dt,dt_test) :param security_policy_id: The security_policy_id of this CreateListenerOption. :type security_policy_id: str @@ -623,7 +623,7 @@ def security_policy_id(self, security_policy_id): def enable_member_retry(self): """Gets the enable_member_retry of this CreateListenerOption. - 是否开启后端服务器的重试。 取值:true 开启重试,false 不开启重试。默认:true。 [使用说明: - 若关联是共享型LB,仅在protocol为HTTP、TERMINATED_HTTPS时才能传入该字段。 - 若关联是独享型LB,仅在protocol为HTTP、HTTPS和QUIC时才能传入该字段。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [使用说明: - 仅在protocol为HTTP、HTTPS时才能传入该字段。](tag:hws_eu,hcso_dt) [不支持QUIC。](tag:tm,dt,dt_test) + 参数解释:是否开启后端服务器的重试。 [约束限制: - 若关联是共享型LB,仅在protocol为HTTP、TERMINATED_HTTPS时才能传入该字段。 - 若关联是独享型LB,仅在protocol为HTTP、HTTPS和QUIC时才能传入该字段。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [约束限制: - 仅在protocol为HTTP、HTTPS时才能传入该字段。](tag:hws_eu,hcso_dt) 取值范围:true 开启重试,false 不开启重试。默认:true。 [不支持QUIC。](tag:tm,dt,dt_test) :return: The enable_member_retry of this CreateListenerOption. :rtype: bool @@ -634,7 +634,7 @@ def enable_member_retry(self): def enable_member_retry(self, enable_member_retry): """Sets the enable_member_retry of this CreateListenerOption. - 是否开启后端服务器的重试。 取值:true 开启重试,false 不开启重试。默认:true。 [使用说明: - 若关联是共享型LB,仅在protocol为HTTP、TERMINATED_HTTPS时才能传入该字段。 - 若关联是独享型LB,仅在protocol为HTTP、HTTPS和QUIC时才能传入该字段。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [使用说明: - 仅在protocol为HTTP、HTTPS时才能传入该字段。](tag:hws_eu,hcso_dt) [不支持QUIC。](tag:tm,dt,dt_test) + 参数解释:是否开启后端服务器的重试。 [约束限制: - 若关联是共享型LB,仅在protocol为HTTP、TERMINATED_HTTPS时才能传入该字段。 - 若关联是独享型LB,仅在protocol为HTTP、HTTPS和QUIC时才能传入该字段。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [约束限制: - 仅在protocol为HTTP、HTTPS时才能传入该字段。](tag:hws_eu,hcso_dt) 取值范围:true 开启重试,false 不开启重试。默认:true。 [不支持QUIC。](tag:tm,dt,dt_test) :param enable_member_retry: The enable_member_retry of this CreateListenerOption. :type enable_member_retry: bool @@ -645,7 +645,7 @@ def enable_member_retry(self, enable_member_retry): def keepalive_timeout(self): """Gets the keepalive_timeout of this CreateListenerOption. - 客户端连接空闲超时时间。在超过keepalive_timeout时长一直没有请求, 负载均衡会暂时中断当前连接,直到下一次请求时重新建立新的连接。 取值: - TCP监听器[和IP监听器](tag:hws_eu):10-4000s,默认值为300s。 - 若为HTTP/HTTPS/TERMINATED_HTTPS监听器,取值范围为(0-4000s)默认值为60s。 共享型实例的UDP监听器不支持此字段。 + 参数解释:客户端连接空闲超时时间。在超过keepalive_timeout时长一直没有请求, 负载均衡会暂时中断当前连接,直到下一次请求时重新建立新的连接。 约束限制:共享型实例的UDP监听器不支持此字段。 取值范围: - TCP监听器[和IP监听器](tag:hws_eu):10-4000s,默认值为300s。 - 若为HTTP/HTTPS/TERMINATED_HTTPS监听器,取值范围为(0-4000s)默认值为60s。 :return: The keepalive_timeout of this CreateListenerOption. :rtype: int @@ -656,7 +656,7 @@ def keepalive_timeout(self): def keepalive_timeout(self, keepalive_timeout): """Sets the keepalive_timeout of this CreateListenerOption. - 客户端连接空闲超时时间。在超过keepalive_timeout时长一直没有请求, 负载均衡会暂时中断当前连接,直到下一次请求时重新建立新的连接。 取值: - TCP监听器[和IP监听器](tag:hws_eu):10-4000s,默认值为300s。 - 若为HTTP/HTTPS/TERMINATED_HTTPS监听器,取值范围为(0-4000s)默认值为60s。 共享型实例的UDP监听器不支持此字段。 + 参数解释:客户端连接空闲超时时间。在超过keepalive_timeout时长一直没有请求, 负载均衡会暂时中断当前连接,直到下一次请求时重新建立新的连接。 约束限制:共享型实例的UDP监听器不支持此字段。 取值范围: - TCP监听器[和IP监听器](tag:hws_eu):10-4000s,默认值为300s。 - 若为HTTP/HTTPS/TERMINATED_HTTPS监听器,取值范围为(0-4000s)默认值为60s。 :param keepalive_timeout: The keepalive_timeout of this CreateListenerOption. :type keepalive_timeout: int @@ -667,7 +667,7 @@ def keepalive_timeout(self, keepalive_timeout): def client_timeout(self): """Gets the client_timeout of this CreateListenerOption. - 等待客户端请求超时时间,包括两种情况: - 读取整个客户端请求头的超时时长:如果客户端未在超时时长内发送完整个请求头,则请求将被中断 - 两个连续body体的数据包到达LB的时间间隔,超出client_timeout将会断开连接。 取值范围为1-300s,默认值为60s。 使用说明:仅协议为HTTP/HTTPS的监听器支持该字段。 + 参数解释:等待客户端请求超时时间,包括两种情况: - 读取整个客户端请求头的超时时长:如果客户端未在超时时长内发送完整个请求头,则请求将被中断 - 两个连续body体的数据包到达LB的时间间隔,超出client_timeout将会断开连接。 约束限制:仅协议为HTTP/HTTPS的监听器支持该字段。 取值范围: 1-3600s。 默认取值:60s。 :return: The client_timeout of this CreateListenerOption. :rtype: int @@ -678,7 +678,7 @@ def client_timeout(self): def client_timeout(self, client_timeout): """Sets the client_timeout of this CreateListenerOption. - 等待客户端请求超时时间,包括两种情况: - 读取整个客户端请求头的超时时长:如果客户端未在超时时长内发送完整个请求头,则请求将被中断 - 两个连续body体的数据包到达LB的时间间隔,超出client_timeout将会断开连接。 取值范围为1-300s,默认值为60s。 使用说明:仅协议为HTTP/HTTPS的监听器支持该字段。 + 参数解释:等待客户端请求超时时间,包括两种情况: - 读取整个客户端请求头的超时时长:如果客户端未在超时时长内发送完整个请求头,则请求将被中断 - 两个连续body体的数据包到达LB的时间间隔,超出client_timeout将会断开连接。 约束限制:仅协议为HTTP/HTTPS的监听器支持该字段。 取值范围: 1-3600s。 默认取值:60s。 :param client_timeout: The client_timeout of this CreateListenerOption. :type client_timeout: int @@ -689,7 +689,7 @@ def client_timeout(self, client_timeout): def member_timeout(self): """Gets the member_timeout of this CreateListenerOption. - 等待后端服务器响应超时时间。请求转发后端服务器后,在等待超时member_timeout时长没有响应,负载均衡将终止等待,并返回 HTTP504错误码。 取值:1-300s,默认为60s。 使用说明:仅支持协议为HTTP/HTTPS的监听器。 + 参数解释:等待后端服务器响应超时时间。请求转发后端服务器后,在等待超时member_timeout时长没有响应,负载均衡将终止等待,并返回 HTTP504错误码。 约束限制:仅支持协议为HTTP/HTTPS的监听器。 取值范围:1-3600s。 默认取值:60s。 :return: The member_timeout of this CreateListenerOption. :rtype: int @@ -700,7 +700,7 @@ def member_timeout(self): def member_timeout(self, member_timeout): """Sets the member_timeout of this CreateListenerOption. - 等待后端服务器响应超时时间。请求转发后端服务器后,在等待超时member_timeout时长没有响应,负载均衡将终止等待,并返回 HTTP504错误码。 取值:1-300s,默认为60s。 使用说明:仅支持协议为HTTP/HTTPS的监听器。 + 参数解释:等待后端服务器响应超时时间。请求转发后端服务器后,在等待超时member_timeout时长没有响应,负载均衡将终止等待,并返回 HTTP504错误码。 约束限制:仅支持协议为HTTP/HTTPS的监听器。 取值范围:1-3600s。 默认取值:60s。 :param member_timeout: The member_timeout of this CreateListenerOption. :type member_timeout: int @@ -729,7 +729,7 @@ def ipgroup(self, ipgroup): def transparent_client_ip_enable(self): """Gets the transparent_client_ip_enable of this CreateListenerOption. - 是否透传客户端IP地址。开启后客户端IP地址将透传到后端服务器。 [仅作用于共享型LB的TCP/UDP监听器。 取值: - 共享型LB的TCP/UDP监听器可设置为true或false,不传默认为false。 - 共享型LB的HTTP/HTTPS监听器只支持设置为true,不传默认为true。 - 独享型负载均衡器所有协议的监听器只支持设置为true,不传默认为true。 使用说明: - 开启特性后,ELB和后端服务器之间直接使用真实的IP访问,需要确保已正确设置服务器的安全组以及访问控制策略。 - 开启特性后,不支持同一台服务器既作为后端服务器又作为客户端的场景。 - 开启特性后,不支持变更后端服务器规格。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [只设支持置为true,不传默认为true。](tag:hws_eu,hcso_dt) + 参数解释:是否透传客户端IP地址。开启后客户端IP地址将透传到后端服务器。 [约束限制: - 仅作用于共享型LB的TCP/UDP监听器。 - 开启特性后,ELB和后端服务器之间直接使用真实的IP访问,需要确保已正确设置服务器的安全组以及访问控制策略。 - 开启特性后,不支持同一台服务器既作为后端服务器又作为客户端的场景。 - 开启特性后,不支持变更后端服务器规格。 取值范围: - 共享型LB的TCP/UDP监听器可设置为true或false,不传默认为false。 - 共享型LB的HTTP/HTTPS监听器只支持设置为true,不传默认为true。 - 独享型负载均衡器所有协议的监听器只支持设置为true,不传默认为true。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [约束限制:只设支持置为true,不传默认为true。](tag:hws_eu,hcso_dt) :return: The transparent_client_ip_enable of this CreateListenerOption. :rtype: bool @@ -740,7 +740,7 @@ def transparent_client_ip_enable(self): def transparent_client_ip_enable(self, transparent_client_ip_enable): """Sets the transparent_client_ip_enable of this CreateListenerOption. - 是否透传客户端IP地址。开启后客户端IP地址将透传到后端服务器。 [仅作用于共享型LB的TCP/UDP监听器。 取值: - 共享型LB的TCP/UDP监听器可设置为true或false,不传默认为false。 - 共享型LB的HTTP/HTTPS监听器只支持设置为true,不传默认为true。 - 独享型负载均衡器所有协议的监听器只支持设置为true,不传默认为true。 使用说明: - 开启特性后,ELB和后端服务器之间直接使用真实的IP访问,需要确保已正确设置服务器的安全组以及访问控制策略。 - 开启特性后,不支持同一台服务器既作为后端服务器又作为客户端的场景。 - 开启特性后,不支持变更后端服务器规格。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [只设支持置为true,不传默认为true。](tag:hws_eu,hcso_dt) + 参数解释:是否透传客户端IP地址。开启后客户端IP地址将透传到后端服务器。 [约束限制: - 仅作用于共享型LB的TCP/UDP监听器。 - 开启特性后,ELB和后端服务器之间直接使用真实的IP访问,需要确保已正确设置服务器的安全组以及访问控制策略。 - 开启特性后,不支持同一台服务器既作为后端服务器又作为客户端的场景。 - 开启特性后,不支持变更后端服务器规格。 取值范围: - 共享型LB的TCP/UDP监听器可设置为true或false,不传默认为false。 - 共享型LB的HTTP/HTTPS监听器只支持设置为true,不传默认为true。 - 独享型负载均衡器所有协议的监听器只支持设置为true,不传默认为true。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [约束限制:只设支持置为true,不传默认为true。](tag:hws_eu,hcso_dt) :param transparent_client_ip_enable: The transparent_client_ip_enable of this CreateListenerOption. :type transparent_client_ip_enable: bool @@ -751,7 +751,7 @@ def transparent_client_ip_enable(self, transparent_client_ip_enable): def proxy_protocol_enable(self): """Gets the proxy_protocol_enable of this CreateListenerOption. - 是否开启proxy_protocol。仅TLS监听器可指定,其他协议的监听器该字段不生效,proxy_protocol不开启。 + 参数解释:是否开启proxy_protocol。 约束限制:仅TLS监听器可指定,其他协议的监听器该字段不生效,proxy_protocol不开启。 :return: The proxy_protocol_enable of this CreateListenerOption. :rtype: bool @@ -762,7 +762,7 @@ def proxy_protocol_enable(self): def proxy_protocol_enable(self, proxy_protocol_enable): """Sets the proxy_protocol_enable of this CreateListenerOption. - 是否开启proxy_protocol。仅TLS监听器可指定,其他协议的监听器该字段不生效,proxy_protocol不开启。 + 参数解释:是否开启proxy_protocol。 约束限制:仅TLS监听器可指定,其他协议的监听器该字段不生效,proxy_protocol不开启。 :param proxy_protocol_enable: The proxy_protocol_enable of this CreateListenerOption. :type proxy_protocol_enable: bool @@ -773,7 +773,7 @@ def proxy_protocol_enable(self, proxy_protocol_enable): def enhance_l7policy_enable(self): """Gets the enhance_l7policy_enable of this CreateListenerOption. - 是否开启高级转发策略功能。开启高级转发策略后,支持更灵活的转发策略和转发规则设置。 取值:true开启,false不开启,默认false。 开启后支持如下场景: - 转发策略的action字段支持指定为REDIRECT_TO_URL, FIXED_RESPONSE,即支持URL重定向和响应固定的内容给客户端。 - 转发策略支持指定priority、redirect_url_config、fixed_response_config字段。 - 转发规则rule的type可以指定METHOD, HEADER, QUERY_STRING, SOURCE_IP这几种取值。 - 转发规则rule的type为HOST_NAME时,转发规则rule的value支持通配符*。 - 转发规则支持指定conditions字段。 [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) > 开启后不支持关闭 + 参数解释:是否开启高级转发策略功能。开启高级转发策略后,支持更灵活的转发策略和转发规则设置。 开启后支持如下场景: - 转发策略的action字段支持指定为REDIRECT_TO_URL, FIXED_RESPONSE,即支持URL重定向和响应固定的内容给客户端。 - 转发策略支持指定priority、redirect_url_config、fixed_response_config字段。 - 转发规则rule的type可以指定METHOD, HEADER, QUERY_STRING, SOURCE_IP这几种取值。 - 转发规则rule的type为HOST_NAME时,转发规则rule的value支持通配符*。 - 转发规则支持指定conditions字段。 取值范围:true开启,false不开启,默认false。 [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) > 开启后不支持关闭 :return: The enhance_l7policy_enable of this CreateListenerOption. :rtype: bool @@ -784,7 +784,7 @@ def enhance_l7policy_enable(self): def enhance_l7policy_enable(self, enhance_l7policy_enable): """Sets the enhance_l7policy_enable of this CreateListenerOption. - 是否开启高级转发策略功能。开启高级转发策略后,支持更灵活的转发策略和转发规则设置。 取值:true开启,false不开启,默认false。 开启后支持如下场景: - 转发策略的action字段支持指定为REDIRECT_TO_URL, FIXED_RESPONSE,即支持URL重定向和响应固定的内容给客户端。 - 转发策略支持指定priority、redirect_url_config、fixed_response_config字段。 - 转发规则rule的type可以指定METHOD, HEADER, QUERY_STRING, SOURCE_IP这几种取值。 - 转发规则rule的type为HOST_NAME时,转发规则rule的value支持通配符*。 - 转发规则支持指定conditions字段。 [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) > 开启后不支持关闭 + 参数解释:是否开启高级转发策略功能。开启高级转发策略后,支持更灵活的转发策略和转发规则设置。 开启后支持如下场景: - 转发策略的action字段支持指定为REDIRECT_TO_URL, FIXED_RESPONSE,即支持URL重定向和响应固定的内容给客户端。 - 转发策略支持指定priority、redirect_url_config、fixed_response_config字段。 - 转发规则rule的type可以指定METHOD, HEADER, QUERY_STRING, SOURCE_IP这几种取值。 - 转发规则rule的type为HOST_NAME时,转发规则rule的value支持通配符*。 - 转发规则支持指定conditions字段。 取值范围:true开启,false不开启,默认false。 [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) > 开启后不支持关闭 :param enhance_l7policy_enable: The enhance_l7policy_enable of this CreateListenerOption. :type enhance_l7policy_enable: bool @@ -813,7 +813,7 @@ def quic_config(self, quic_config): def protection_status(self): """Gets the protection_status of this CreateListenerOption. - 修改保护状态, 取值: - nonProtection: 不保护,默认值为nonProtection - consoleProtection: 控制台修改保护 + 参数解释:修改保护状态。 取值范围: - nonProtection: 不保护,默认值为nonProtection - consoleProtection: 控制台修改保护 :return: The protection_status of this CreateListenerOption. :rtype: str @@ -824,7 +824,7 @@ def protection_status(self): def protection_status(self, protection_status): """Sets the protection_status of this CreateListenerOption. - 修改保护状态, 取值: - nonProtection: 不保护,默认值为nonProtection - consoleProtection: 控制台修改保护 + 参数解释:修改保护状态。 取值范围: - nonProtection: 不保护,默认值为nonProtection - consoleProtection: 控制台修改保护 :param protection_status: The protection_status of this CreateListenerOption. :type protection_status: str @@ -835,7 +835,7 @@ def protection_status(self, protection_status): def protection_reason(self): """Gets the protection_reason of this CreateListenerOption. - 设置保护的原因 >仅当protection_status为consoleProtection时有效。 + 参数解释:设置保护的原因 约束限制:仅当protection_status为consoleProtection时有效。 :return: The protection_reason of this CreateListenerOption. :rtype: str @@ -846,7 +846,7 @@ def protection_reason(self): def protection_reason(self, protection_reason): """Sets the protection_reason of this CreateListenerOption. - 设置保护的原因 >仅当protection_status为consoleProtection时有效。 + 参数解释:设置保护的原因 约束限制:仅当protection_status为consoleProtection时有效。 :param protection_reason: The protection_reason of this CreateListenerOption. :type protection_reason: str @@ -857,7 +857,7 @@ def protection_reason(self, protection_reason): def gzip_enable(self): """Gets the gzip_enable of this CreateListenerOption. - ELB是否开启gzip压缩,缺省值:false,非必选 [仅HTTP/HTTPS类型监听器支持配置。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) [仅HTTP/HTTPS/QUIC类型监听器支持配置。](tag:hws,hws_hk,hws_test,hcs,hcs_sm,hcso,hk_vdf,fcs,fcs_vm,mix,ocb,ctc,cmcc,sbc,hws_ocb,hk_sbc) + 参数解释:ELB是否开启gzip压缩。 [约束限制:仅HTTP/HTTPS类型监听器支持配置。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) [约束限制:仅HTTP/HTTPS/QUIC类型监听器支持配置。](tag:hws,hws_hk,hws_test,hcs,hcs_sm,hcso,hk_vdf,fcs,fcs_vm,mix,ocb,ctc,cmcc,sbc,hws_ocb,hk_sbc) 取值范围:true,false 默认取值:false :return: The gzip_enable of this CreateListenerOption. :rtype: bool @@ -868,7 +868,7 @@ def gzip_enable(self): def gzip_enable(self, gzip_enable): """Sets the gzip_enable of this CreateListenerOption. - ELB是否开启gzip压缩,缺省值:false,非必选 [仅HTTP/HTTPS类型监听器支持配置。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) [仅HTTP/HTTPS/QUIC类型监听器支持配置。](tag:hws,hws_hk,hws_test,hcs,hcs_sm,hcso,hk_vdf,fcs,fcs_vm,mix,ocb,ctc,cmcc,sbc,hws_ocb,hk_sbc) + 参数解释:ELB是否开启gzip压缩。 [约束限制:仅HTTP/HTTPS类型监听器支持配置。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) [约束限制:仅HTTP/HTTPS/QUIC类型监听器支持配置。](tag:hws,hws_hk,hws_test,hcs,hcs_sm,hcso,hk_vdf,fcs,fcs_vm,mix,ocb,ctc,cmcc,sbc,hws_ocb,hk_sbc) 取值范围:true,false 默认取值:false :param gzip_enable: The gzip_enable of this CreateListenerOption. :type gzip_enable: bool @@ -879,7 +879,7 @@ def gzip_enable(self, gzip_enable): def port_ranges(self): """Gets the port_ranges of this CreateListenerOption. - 端口监听范围(闭区间),最多指定10个端口组,每个组范围不可有重叠部分 >仅当protocol_port为0或未传入protoco_port时可以传入该字段。仅TCP, UDP,TLS监听支持该字段 + 参数解释:端口监听范围(闭区间),最多指定10个端口组,每个组范围不可有重叠部分。 约束限制: - 仅当protocol_port为0或未传入protoco_port时可以传入该字段。 - 仅TCP, UDP,TLS监听支持该字段 :return: The port_ranges of this CreateListenerOption. :rtype: list[:class:`huaweicloudsdkelb.v3.PortRange`] @@ -890,7 +890,7 @@ def port_ranges(self): def port_ranges(self, port_ranges): """Sets the port_ranges of this CreateListenerOption. - 端口监听范围(闭区间),最多指定10个端口组,每个组范围不可有重叠部分 >仅当protocol_port为0或未传入protoco_port时可以传入该字段。仅TCP, UDP,TLS监听支持该字段 + 参数解释:端口监听范围(闭区间),最多指定10个端口组,每个组范围不可有重叠部分。 约束限制: - 仅当protocol_port为0或未传入protoco_port时可以传入该字段。 - 仅TCP, UDP,TLS监听支持该字段 :param port_ranges: The port_ranges of this CreateListenerOption. :type port_ranges: list[:class:`huaweicloudsdkelb.v3.PortRange`] @@ -901,7 +901,7 @@ def port_ranges(self, port_ranges): def ssl_early_data_enable(self): """Gets the ssl_early_data_enable of this CreateListenerOption. - 监听器0-RTT能力开关,缺省值:false,非必选 仅HTTPS类型监听器支持配置,需要依赖TLSv1.3安全策略协议。开启 ssl_early_data 后,有重放攻击的风险,请谨慎开启。 + 参数解释:监听器0-RTT能力开关。 约束限制:仅HTTPS类型监听器支持配置,需要依赖TLSv1.3安全策略协议。开启 ssl_early_data 后,有重放攻击的风险,请谨慎开启。 取值范围:true,false 默认取值:false :return: The ssl_early_data_enable of this CreateListenerOption. :rtype: bool @@ -912,7 +912,7 @@ def ssl_early_data_enable(self): def ssl_early_data_enable(self, ssl_early_data_enable): """Sets the ssl_early_data_enable of this CreateListenerOption. - 监听器0-RTT能力开关,缺省值:false,非必选 仅HTTPS类型监听器支持配置,需要依赖TLSv1.3安全策略协议。开启 ssl_early_data 后,有重放攻击的风险,请谨慎开启。 + 参数解释:监听器0-RTT能力开关。 约束限制:仅HTTPS类型监听器支持配置,需要依赖TLSv1.3安全策略协议。开启 ssl_early_data 后,有重放攻击的风险,请谨慎开启。 取值范围:true,false 默认取值:false :param ssl_early_data_enable: The ssl_early_data_enable of this CreateListenerOption. :type ssl_early_data_enable: bool diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_listener_quic_config_option.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_listener_quic_config_option.py index ea75a64289..ff6f6b5e86 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_listener_quic_config_option.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_listener_quic_config_option.py @@ -31,9 +31,9 @@ def __init__(self, quic_listener_id=None, enable_quic_upgrade=None): The model defined in huaweicloud sdk - :param quic_listener_id: 监听器关联的QUIC监听器ID。指定的listener id必须已存在,且协议类型为QUIC,不能指定为null,否则与enable_quic_upgrade冲突。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) + :param quic_listener_id: 参数解释:监听器关联的QUIC监听器ID。 约束限制:指定的listener id必须已存在,且协议类型为QUIC,不能指定为null,否则与enable_quic_upgrade冲突。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) :type quic_listener_id: str - :param enable_quic_upgrade: QUIC升级的开启状态。 True:开启QUIC升级; Flase:关闭QUIC升级(默认)。 开启HTTPS监听器升级QUIC监听器能力。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) + :param enable_quic_upgrade: 参数解释:QUIC升级的开启状态。 开启HTTPS监听器升级QUIC监听器能力。 取值范围: - true:开启QUIC升级。 - flase:关闭QUIC升级。 默认取值:false [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) :type enable_quic_upgrade: bool """ @@ -51,7 +51,7 @@ def __init__(self, quic_listener_id=None, enable_quic_upgrade=None): def quic_listener_id(self): """Gets the quic_listener_id of this CreateListenerQuicConfigOption. - 监听器关联的QUIC监听器ID。指定的listener id必须已存在,且协议类型为QUIC,不能指定为null,否则与enable_quic_upgrade冲突。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) + 参数解释:监听器关联的QUIC监听器ID。 约束限制:指定的listener id必须已存在,且协议类型为QUIC,不能指定为null,否则与enable_quic_upgrade冲突。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) :return: The quic_listener_id of this CreateListenerQuicConfigOption. :rtype: str @@ -62,7 +62,7 @@ def quic_listener_id(self): def quic_listener_id(self, quic_listener_id): """Sets the quic_listener_id of this CreateListenerQuicConfigOption. - 监听器关联的QUIC监听器ID。指定的listener id必须已存在,且协议类型为QUIC,不能指定为null,否则与enable_quic_upgrade冲突。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) + 参数解释:监听器关联的QUIC监听器ID。 约束限制:指定的listener id必须已存在,且协议类型为QUIC,不能指定为null,否则与enable_quic_upgrade冲突。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) :param quic_listener_id: The quic_listener_id of this CreateListenerQuicConfigOption. :type quic_listener_id: str @@ -73,7 +73,7 @@ def quic_listener_id(self, quic_listener_id): def enable_quic_upgrade(self): """Gets the enable_quic_upgrade of this CreateListenerQuicConfigOption. - QUIC升级的开启状态。 True:开启QUIC升级; Flase:关闭QUIC升级(默认)。 开启HTTPS监听器升级QUIC监听器能力。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) + 参数解释:QUIC升级的开启状态。 开启HTTPS监听器升级QUIC监听器能力。 取值范围: - true:开启QUIC升级。 - flase:关闭QUIC升级。 默认取值:false [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) :return: The enable_quic_upgrade of this CreateListenerQuicConfigOption. :rtype: bool @@ -84,7 +84,7 @@ def enable_quic_upgrade(self): def enable_quic_upgrade(self, enable_quic_upgrade): """Sets the enable_quic_upgrade of this CreateListenerQuicConfigOption. - QUIC升级的开启状态。 True:开启QUIC升级; Flase:关闭QUIC升级(默认)。 开启HTTPS监听器升级QUIC监听器能力。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) + 参数解释:QUIC升级的开启状态。 开启HTTPS监听器升级QUIC监听器能力。 取值范围: - true:开启QUIC升级。 - flase:关闭QUIC升级。 默认取值:false [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) :param enable_quic_upgrade: The enable_quic_upgrade of this CreateListenerQuicConfigOption. :type enable_quic_upgrade: bool diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_listener_response.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_listener_response.py index 1c12e4624c..8ef1eb5f1b 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_listener_response.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_listener_response.py @@ -32,7 +32,7 @@ def __init__(self, request_id=None, listener=None): The model defined in huaweicloud sdk - :param request_id: 请求ID。 注:自动生成 。 + :param request_id: 参数解释:请求ID。 注:自动生成 。 :type request_id: str :param listener: :type listener: :class:`huaweicloudsdkelb.v3.Listener` @@ -53,7 +53,7 @@ def __init__(self, request_id=None, listener=None): def request_id(self): """Gets the request_id of this CreateListenerResponse. - 请求ID。 注:自动生成 。 + 参数解释:请求ID。 注:自动生成 。 :return: The request_id of this CreateListenerResponse. :rtype: str @@ -64,7 +64,7 @@ def request_id(self): def request_id(self, request_id): """Sets the request_id of this CreateListenerResponse. - 请求ID。 注:自动生成 。 + 参数解释:请求ID。 注:自动生成 。 :param request_id: The request_id of this CreateListenerResponse. :type request_id: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_load_balancer_bandwidth_option.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_load_balancer_bandwidth_option.py index c78af7fc9f..22161aab84 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_load_balancer_bandwidth_option.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_load_balancer_bandwidth_option.py @@ -41,11 +41,11 @@ def __init__(self, name=None, size=None, charge_mode=None, share_type=None, bill :param name: 参数解释:带宽名称。 约束限制: - 如果share_type是PER,该字段是必选。 - 如果bandwidth对象的id有值,该字段被忽略。 取值范围:1-64个字符,支持数字、字母、中文、_(下划线)、-(中划线)、.(点) :type name: str - :param size: 参数解释:带宽大小 约束限制:当id字段为null时,size是必须的。 注意,调整带宽时的最小单位会根据带宽范围不同存在差异。 - 小于等于300Mbit/s: 默认最小单位为1Mbit/s。 - 300Mbit/s~1000Mbit/s: 默认最小单位为50Mbit/s。 - 大于1000Mbit/s: 默认最小单位为500Mbit/s。 取值范围:默认1Mbit/s~2000Mbit/s(具体范围以各区域配置为准,请参见控制台对应页面显示)。 + :param size: 参数解释:带宽大小。 约束限制:当id字段为null时,size是必须的。 注意,调整带宽时的最小单位会根据带宽范围不同存在差异。 - 小于等于300Mbit/s: 默认最小单位为1Mbit/s。 - 300Mbit/s~1000Mbit/s: 默认最小单位为50Mbit/s。 - 大于1000Mbit/s: 默认最小单位为500Mbit/s。 取值范围:默认1Mbit/s~2000Mbit/s(具体范围以各区域配置为准,请参见控制台对应页面显示)。 :type size: int :param charge_mode: 参数解释:计费模式。bandwidth 按带宽计费;traffic 按流量计费。 约束限制:当id字段为null时,charge_mode是必须的。 [当前仅支持traffic按流量计费。](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt) 取值范围: - bandwidth:按带宽计费。 - traffic: 按流量计费。 :type charge_mode: str - :param share_type: 参数解释:带宽类型。 取值范围: - PER:独享带宽。 - WHOLE:共享带宽。 + :param share_type: 参数解释:带宽类型。 约束限制: - 当id字段为null时,share_type是必须的。当id不为null时,该字段被忽略。 - 该字段为WHOLE时,必须指定带宽ID。 - IPv6的EIP不支持WHOLE类型带宽。 取值范围: - PER:独享带宽。 - WHOLE:共享带宽。 :type share_type: str :param billing_info: 参数解释:资源计费信息。 约束限制: [如果billing_info不为空,说明是包周期计费的带宽,否则为按需计费的带宽。](tag:hws,hws_hk,tlf,ctc,hcso,sbc,cmcc) [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt,hk_vdf,fcs) :type billing_info: str @@ -102,7 +102,7 @@ def name(self, name): def size(self): """Gets the size of this CreateLoadBalancerBandwidthOption. - 参数解释:带宽大小 约束限制:当id字段为null时,size是必须的。 注意,调整带宽时的最小单位会根据带宽范围不同存在差异。 - 小于等于300Mbit/s: 默认最小单位为1Mbit/s。 - 300Mbit/s~1000Mbit/s: 默认最小单位为50Mbit/s。 - 大于1000Mbit/s: 默认最小单位为500Mbit/s。 取值范围:默认1Mbit/s~2000Mbit/s(具体范围以各区域配置为准,请参见控制台对应页面显示)。 + 参数解释:带宽大小。 约束限制:当id字段为null时,size是必须的。 注意,调整带宽时的最小单位会根据带宽范围不同存在差异。 - 小于等于300Mbit/s: 默认最小单位为1Mbit/s。 - 300Mbit/s~1000Mbit/s: 默认最小单位为50Mbit/s。 - 大于1000Mbit/s: 默认最小单位为500Mbit/s。 取值范围:默认1Mbit/s~2000Mbit/s(具体范围以各区域配置为准,请参见控制台对应页面显示)。 :return: The size of this CreateLoadBalancerBandwidthOption. :rtype: int @@ -113,7 +113,7 @@ def size(self): def size(self, size): """Sets the size of this CreateLoadBalancerBandwidthOption. - 参数解释:带宽大小 约束限制:当id字段为null时,size是必须的。 注意,调整带宽时的最小单位会根据带宽范围不同存在差异。 - 小于等于300Mbit/s: 默认最小单位为1Mbit/s。 - 300Mbit/s~1000Mbit/s: 默认最小单位为50Mbit/s。 - 大于1000Mbit/s: 默认最小单位为500Mbit/s。 取值范围:默认1Mbit/s~2000Mbit/s(具体范围以各区域配置为准,请参见控制台对应页面显示)。 + 参数解释:带宽大小。 约束限制:当id字段为null时,size是必须的。 注意,调整带宽时的最小单位会根据带宽范围不同存在差异。 - 小于等于300Mbit/s: 默认最小单位为1Mbit/s。 - 300Mbit/s~1000Mbit/s: 默认最小单位为50Mbit/s。 - 大于1000Mbit/s: 默认最小单位为500Mbit/s。 取值范围:默认1Mbit/s~2000Mbit/s(具体范围以各区域配置为准,请参见控制台对应页面显示)。 :param size: The size of this CreateLoadBalancerBandwidthOption. :type size: int @@ -146,7 +146,7 @@ def charge_mode(self, charge_mode): def share_type(self): """Gets the share_type of this CreateLoadBalancerBandwidthOption. - 参数解释:带宽类型。 取值范围: - PER:独享带宽。 - WHOLE:共享带宽。 + 参数解释:带宽类型。 约束限制: - 当id字段为null时,share_type是必须的。当id不为null时,该字段被忽略。 - 该字段为WHOLE时,必须指定带宽ID。 - IPv6的EIP不支持WHOLE类型带宽。 取值范围: - PER:独享带宽。 - WHOLE:共享带宽。 :return: The share_type of this CreateLoadBalancerBandwidthOption. :rtype: str @@ -157,7 +157,7 @@ def share_type(self): def share_type(self, share_type): """Sets the share_type of this CreateLoadBalancerBandwidthOption. - 参数解释:带宽类型。 取值范围: - PER:独享带宽。 - WHOLE:共享带宽。 + 参数解释:带宽类型。 约束限制: - 当id字段为null时,share_type是必须的。当id不为null时,该字段被忽略。 - 该字段为WHOLE时,必须指定带宽ID。 - IPv6的EIP不支持WHOLE类型带宽。 取值范围: - PER:独享带宽。 - WHOLE:共享带宽。 :param share_type: The share_type of this CreateLoadBalancerBandwidthOption. :type share_type: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_load_balancer_option.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_load_balancer_option.py index 3652292e38..81a9e7373c 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_load_balancer_option.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_load_balancer_option.py @@ -91,41 +91,41 @@ def __init__(self, project_id=None, name=None, description=None, vip_address=Non :type name: str :param description: 参数解释:负载均衡器的描述。 约束限制: 可以为空, 最大长度为255个字符。 取值范围:支持中文字符、英文字符等unicode字符,且长度为[0-255]个字符。 :type description: str - :param vip_address: 参数解释:负载均衡器的IPv4私网IP。该地址必须包含在所在子网的IPv4网段内,且未被占用。 约束限制: - 传入vip_address时,必须传入vip_subnet_cidr_id。 - 不传入vip_address,但传入vip_subnet_cidr_id,则自动分配IPv4私网IP。 - 不传入vip_address,且不传vip_subnet_cidr_id,则不分配IPv4私网IP,vip_address=null。 取值范围:满足IPv4的地址格式,[0-255].[0-255].[0-255].[0-255]. 如192.168.1.1。 + :param vip_address: 参数解释:负载均衡器的IPv4私网IP。该地址必须包含在所在子网的IPv4网段内,且未被占用。 约束限制: - 传入vip_address时,必须传入vip_subnet_cidr_id。 - 不传入vip_address,但传入vip_subnet_cidr_id,则自动分配IPv4私网IP。 - 不传入vip_address,且不传vip_subnet_cidr_id,则不分配IPv4私网IP,vip_address=null。 [- 网关型LB不支持传入vip_address。](tag:hws_eu) 取值范围:满足IPv4的地址格式,[0-255].[0-255].[0-255].[0-255]. 如192.168.1.1。 :type vip_address: str - :param vip_subnet_cidr_id: 参数解释:负载均衡器所在子网的IPv4子网ID,也称为该负载均衡器实例的前端子网。 约束限制: - 若创建带有IPv4私网IP的负载均衡实例,则字段必须传入。 可以通过调用VPC的API, GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到。 - vpc_id, vip_subnet_cidr_id, ipv6_vip_virsubnet_id不能同时为空,且需要在同一个vpc下。 - 若同时传入vpc_id和vip_subnet_cidr_id,则vip_subnet_cidr_id对应的子网必须属于vpc_id对应的VPC。 取值范围: 标准的UUID格式,长度为36个字符。 + :param vip_subnet_cidr_id: 参数解释:负载均衡器所在子网的IPv4子网ID,也称为该负载均衡器实例的前端子网。 约束限制: - 若创建带有IPv4私网IP的负载均衡实例,则字段必须传入。可以通过调用VPC的API, GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到。 - vpc_id, vip_subnet_cidr_id, ipv6_vip_virsubnet_id不能同时为空,且需要在同一个vpc下。 - 若同时传入vpc_id和vip_subnet_cidr_id,则vip_subnet_cidr_id对应的子网必须属于vpc_id对应的VPC。 [- 创建网关型LB,vip_subnet_cidr_id和ipv6_vip_virsubnet_id不能同时为空。若都传入则必须是同一个子网的IPv4子网ID和IPv6网络ID。](tag:hws_eu) 取值范围: 标准的UUID格式,长度为36个字符。 :type vip_subnet_cidr_id: str - :param ipv6_vip_virsubnet_id: 参数解释:双栈类型负载均衡器所在子网的IPv6网络ID,也称为该负载均衡器实例的前端子网。 约束限制: - 若创建带有IPv6 IP的负载均衡实例,则字段必须传入。 可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到。 - vpc_id,vip_subnet_cidr_id,ipv6_vip_virsubnet_id不能同时为空,且需要在同一个vpc下。 - 需要对应的子网开启IPv6。 [不支持IPv6,请勿使用。](tag:dt,dt_test) 取值范围: 标准的UUID格式,长度为36个字符。 + :param ipv6_vip_virsubnet_id: 参数解释:双栈类型负载均衡器所在子网的IPv6网络ID,也称为该负载均衡器实例的前端子网。 约束限制: - 若创建带有IPv6 IP的负载均衡实例,则字段必须传入。可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到。 - vpc_id,vip_subnet_cidr_id,ipv6_vip_virsubnet_id不能同时为空,且需要在同一个vpc下。 - 需要对应的子网开启IPv6。 [- 创建网关型LB,vip_subnet_cidr_id和ipv6_vip_virsubnet_id不能同时为空。若都传入则必须是同一个子网的IPv4子网ID和IPv6网络ID。](tag:hws_eu) 取值范围: 标准的UUID格式,长度为36个字符。 [不支持IPv6,请勿使用。](tag:dt,dt_test) :type ipv6_vip_virsubnet_id: str - :param provider: 参数解释:负载均衡器的生产者名称。固定为vlb。无需指定。 + :param provider: 参数解释:负载均衡器的生产者名称。固定为vlb,无需指定。 :type provider: str - :param l4_flavor_id: 参数解释:网络型规格ID。 约束限制: [- 可以通过GET https://{ELB_Endpoint}/v3/{project_id}/elb/flavors?type=L4 响应参数中的id得到。 - 当l4_flavor_id和l7_flavor_id都不传的时,会使用默认flavor(默认flavor根据不同局点有所不同,具体以实际值为准)。 - 当传入的规格类型为L4,表示该实例为固定规格实例,按规格计费。 - 当传入的规格类型为L4_elastic_max,表示该实例为弹性实例,按LCU计费。](tag:hws,hws_hk,hws_eu,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb) [只支持设置为l4_flavor.elb.shared。](tag:hcso_dt) [所有LB实例共享带宽,该字段无效,请勿使用。](tag:hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b) 取值范围: 标准的UUID格式,长度为36个字符。 + :param l4_flavor_id: 参数解释:网络型规格ID。 约束限制: [- 可以通过GET https://{ELB_Endpoint}/v3/{project_id}/elb/flavors?type=L4 响应参数中的id得到。 - 当l4_flavor_id和l7_flavor_id都不传的时,会使用默认flavor(默认flavor根据不同局点有所不同,具体以实际值为准)。 - 当传入的规格类型为L4,表示该实例为固定规格实例,按规格计费。 - 当传入的规格类型为L4_elastic_max,表示该实例为弹性实例,按LCU计费。](tag:hws,hws_hk,hws_eu,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb) [网关型LB不支持指定l4_flavor_id。](tag:hws_eu) [只支持设置为l4_flavor.elb.shared。](tag:hcso_dt) [所有LB实例共享带宽,该字段无效,请勿使用。](tag:hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b) 取值范围: 标准的UUID格式,长度为36个字符。 :type l4_flavor_id: str - :param l7_flavor_id: 参数解释:应用型规格ID。 约束限制: [- 可以通过GET https://{ELB_Endpoint}/v3/{project_id}/elb/flavors?type=L7 响应参数中的id得到。 - 当l4_flavor_id和l7_flavor_id都不传的时,会使用默认flavor (默认flavor根据不同局点有所不同,具体以实际值为准)。 - 当传入的规格类型为L7,表示该实例为固定规格实例,按规格计费。 - 当传入的规格类型为L7_elastic_max,表示该实例为弹性实例,按LCU计费。](tag:hws,hws_hk,hws_eu,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb) [只支持设置为l7_flavor.elb.shared。](tag:hcso_dt) [所有LB实例共享带宽,该字段无效,请勿使用。](tag:hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b) 取值范围: 标准的UUID格式,长度为36个字符。 + :param l7_flavor_id: 参数解释:应用型规格ID。 约束限制: [- 可以通过GET https://{ELB_Endpoint}/v3/{project_id}/elb/flavors?type=L7 响应参数中的id得到。 - 当l4_flavor_id和l7_flavor_id都不传的时,会使用默认flavor (默认flavor根据不同局点有所不同,具体以实际值为准)。 - 当传入的规格类型为L7,表示该实例为固定规格实例,按规格计费。 - 当传入的规格类型为L7_elastic_max,表示该实例为弹性实例,按LCU计费。](tag:hws,hws_hk,hws_eu,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb) [网关型LB不支持指定l7_flavor_id。](tag:hws_eu) [只支持设置为l7_flavor.elb.shared。](tag:hcso_dt) [所有LB实例共享带宽,该字段无效,请勿使用。](tag:hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b) 取值范围: 标准的UUID格式,长度为36个字符。 :type l7_flavor_id: str :param guaranteed: 参数解释:是否为独享型负载均衡器实例。 约束限制:当前只支持设置为true,设置为false会返回400 Bad Request。 取值范围:布尔类型。 - true:独享型。 - false:共享型。 默认取值:true。 :type guaranteed: bool - :param vpc_id: 参数解释:负载均衡器所在的VPC ID。 约束限制: - 参数获取,可以通过 GET https://{VPC_Endpoint}/v1/{project_id}/vpcs 响应参数中的id得到。 - vpc_id,vip_subnet_cidr_id,ipv6_vip_virsubnet_id不能同时为空,且需要在同一个vpc下。 取值范围: 标准的UUID格式,长度为36个字符。 + :param vpc_id: 参数解释:负载均衡器所在的VPC ID。 约束限制: - 参数获取,可以通过 GET https://{VPC_Endpoint}/v1/{project_id}/vpcs 响应参数中的id得到。 - vpc_id,vip_subnet_cidr_id,ipv6_vip_virsubnet_id不能同时为空,且需要在同一个vpc下。 取值范围: 标准的UUID格式,长度为36个字符。 :type vpc_id: str - :param availability_zone_list: 参数解释:负载均衡器实例所在的可用区列表。 约束限制: - 参数获取,可通过GET https://{ELB_Endponit}/v3/{project_id}/elb/availability-zones 接口来查询可用区集合列表。创建负载均衡器时,从查询结果选择某一个可用区集合,并从中选择一个或多个可用区。 - 为了支持可用区容灾,建议选取不少于2个可用区。 + :param availability_zone_list: 参数解释:负载均衡器实例所在的可用区列表。 约束限制: - 可通过GET https://{ELB_Endponit}/v3/{project_id}/elb/availability-zones 接口来查询可用区集合列表。创建负载均衡器时,从查询结果选择某一个可用区集合,并从中选择一个或多个可用区。 >为了支持可用区容灾,建议选取不少于2个可用区。 :type availability_zone_list: list[str] :param enterprise_project_id: 参数解释:负载均衡器所属的企业项目ID。 约束限制:不能传入\"\"、\"0\"或不存在的企业项目ID,创建时不传则资源属于default企业项目,默认返回\"0\"。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt) :type enterprise_project_id: str :param tags: 参数解释:负载均衡的标签列表。示例:\"tags\":[{\"key\":\"my_tag\",\"value\":\"my_tag_value\"}] :type tags: list[:class:`huaweicloudsdkelb.v3.Tag`] - :param admin_state_up: 参数解释:负载均衡器的启用状态。 取值范围:布尔类型。 - true :启用。 - false:停用。 默认取值:true。 [不支持该字段,请勿使用。](tag:dt,dt_test) + :param admin_state_up: 参数解释:负载均衡器的启用状态。 取值范围: - true :启用。 - false:停用。 默认取值:true。 [不支持该字段,请勿使用。](tag:dt,dt_test) :type admin_state_up: bool - :param billing_info: 参数解释: 预付费实例的订单信息。 约束限制: - 空:按需计费。 [- 非空:包周期计费。 格式为: order_id:product_id:region_id:project_id,如: CS2107161019CDJZZ:OFFI569702121789763584:region-xxx:057ef081eb00d2732fd1c01a9be75e6f 不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt,hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b) + :param billing_info: 参数解释: 预付费实例的订单信息。 取值范围: - 空:按需计费。 [- 非空:包周期计费。 格式为: order_id:product_id:region_id:project_id,如: CS2107161019CDJZZ:OFFI569702121789763584:region-xxx:057ef081eb00d2732fd1c01a9be75e6f 不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt,hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b) :type billing_info: str :param ipv6_bandwidth: :type ipv6_bandwidth: :class:`huaweicloudsdkelb.v3.BandwidthRef` - :param publicip_ids: 参数解释:负载均衡器绑定的公网IP的ID的数组。 约束限制:只支持绑定数组中的第一个EIP,其他将被忽略。 + :param publicip_ids: 参数解释:负载均衡器绑定的公网IP的ID的数组。 约束限制: - 只支持绑定数组中的第一个EIP,其他将被忽略。 [- 网关型LB不支持该字段。](tag:hws_eu) :type publicip_ids: list[str] :param publicip: :type publicip: :class:`huaweicloudsdkelb.v3.CreateLoadBalancerPublicIpOption` - :param elb_virsubnet_ids: 参数解释:负载均衡器实例所在VPC的子网的网络ID列表。 负载均衡器实例,会预占该子网中的部分IP, 用于负载均衡器网关与该实例后端服务器通信的源地址(典型场景,健康检查探测的源地址,FULLNAT场景的源地址等)。 因此,该子网,也称为负载均衡器的后端子网。通常需要用户指定一个特殊的子网,方便用户在后端服务器关联的安全组中,放通该子网的地址段。 约束限制: 后端子网必须属于该负载均衡器实例所在的VPC。 参数的获取,使用负载均衡器所在vpc的ID查询可用子网 可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets?vpc_id=xxxx 响应参数中的neutron_network_id得到。 若不指定该字段,则按如下规则选择下联面网络: 1. 如果ELB实例开启ipv6,则选择ipv6_vip_virsubnet_id子网对应的网络ID。 2. 如果ELB实例没有开启ipv6,开启ipv4,则选择vip_subnet_cidr_id子网对应的网络ID。 3. 如果ELB实例没有选择私网,只开启公网,则会在当前负载均衡器所在的VPC中任意选一个子网,优选可用IP多的网络。 若指定多个下联面子网,则按顺序优先使用第一个子网来为负载均衡器下联面端口分配ip地址。 建议后端子网,使用一个独占的地址充足的子网,方便运维管理。 - 后端服务器安全组放通:由于负载均衡器网关会使用该子网中的预占的地址,作为源IP与后端服务器通信(健康检查探测,FULLNAT通信),为避免后端服务器关联的安全组拦截,建议将对应的子网地址段进行安全组放通。 - 预占地址变化:负载均衡实例,弹性扩缩场景,可能涉及到预占地址的变化,建议安全组对子网段放通,而不是具体预占地址的放通。 + :param elb_virsubnet_ids: 参数解释:负载均衡器的后端子网的网络ID(OpenStack Neutron接口)列表。负载均衡器实例会预占用该子网中的部分IP, 用于负载均衡器网关与该实例后端服务器通信的源地址(典型场景,健康检查探测的源地址,FULLNAT场景的源地址等)。 使用负载均衡器所在VPC的ID查询可用子网 GET https://{VPC_Endpoint}/v1/{project_id}/subnets?vpc_id=xxxx 获取响应参数中的neutron_network_id字段。 约束限制: - 后端子网必须属于该负载均衡器实例所在的VPC。 - 通常需要用户指定一个特殊的子网,方便用户在后端服务器关联的安全组中,放通该子网的地址段。 - 若指定多个下联面子网,则按顺序优先使用第一个子网来为负载均衡器下联面端口分配ip地址。 - 若不指定该字段,则按如下规则选择下联面网络: 1. 如果ELB实例开启ipv6,则选择ipv6_vip_virsubnet_id子网对应的网络ID。 2. 如果ELB实例没有开启ipv6,开启ipv4,则选择vip_subnet_cidr_id子网对应的网络ID。 3. 如果ELB实例没有选择私网,只开启公网,则会在当前负载均衡器所在的VPC中任意选一个子网,优选可用IP多的网络。 - 后端服务器安全组放通:由于负载均衡器网关会使用该子网中的预占的地址,作为源IP与后端服务器通信(健康检查探测,FULLNAT通信),为避免后端服务器关联的安全组拦截,建议将对应的子网地址段进行安全组放通。 - 预占地址变化:负载均衡实例,弹性扩缩场景,可能涉及到预占地址的变化,建议安全组对子网段放通,而不是具体预占地址的放通。 - 建议后端子网,使用一个独占的地址充足的子网,方便运维管理。 :type elb_virsubnet_ids: list[str] - :param ip_target_enable: 参数解释:是否启用跨VPC后端转发。 约束限制: 开启跨VPC后端转发后,后端服务器组不仅支持添加云上VPC内的服务器,还支持添加其他VPC、其他公有云、云下数据中心的服务器。 使用共享VPC的实例使用此特性时,需确保共享资源所有者已开通VPC对等连接,否则通信异常。 [仅独享型负载均衡器支持该特性。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) - 开启不能关闭。 [荷兰region不支持该字段,请勿使用。](tag:dt) 取值范围: - true:开启。 - false:不开启。 + :param ip_target_enable: 参数解释:是否启用跨VPC后端转发。 开启跨VPC后端转发后,后端服务器组不仅支持添加云上VPC内的服务器,还支持添加其他VPC、其他公有云、云下数据中心的服务器。 约束限制: - 开启后不能关闭。 - 使用共享VPC的实例使用此特性时,需确保共享资源所有者已开通VPC对等连接,否则通信异常。 [- 仅独享型负载均衡器支持该特性。](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [- 网关型LB不支持该特性。](tag:hws_eu) 取值范围: - true:开启。 - false:不开启。 [荷兰region不支持该字段,请勿使用。](tag:dt) :type ip_target_enable: bool :param deletion_protection_enable: 参数解释:实例删除保护开关。 约束限制:实例删除前,需要先关闭该实例下所有资源的删除保护开关。 取值范围: - false: 不开启。 - true: 开启。 默认取值:false。 :type deletion_protection_enable: bool @@ -139,9 +139,9 @@ def __init__(self, project_id=None, name=None, description=None, vip_address=Non :type protection_status: str :param protection_reason: 参数解释:设置保护的原因。作为protection_status的转态设置的原因。 约束限制:仅当protection_status为consoleProtection时有效。 取值范围:通用Unicode字符集字符,最大255个字符。 :type protection_reason: str - :param charge_mode: 参数解释:负载均衡器实例的计费模式。flavor: 固定规格计费,默认值。lcu: 弹性规格计费(按用户真实使用的lcu个数计费)。 约束限制:不建议用户传该字段。系统会基于用户传入的l4_flavor_id/l7_flavor_id的规格类型,自动识别计费模式。 取值范围: - flavor: 固定规格计费。 - lcu: 弹性规格计费(按用户真实使用的lcu个数计费)。 默认取值:flavor。 + :param charge_mode: 参数解释:负载均衡器实例的计费模式。 约束限制:不建议用户传该字段。系统会基于用户传入的l4_flavor_id/l7_flavor_id的规格类型,自动识别计费模式。 取值范围: - flavor:固定规格计费。 - lcu:弹性规格计费(按用户实际使用的lcu个数计费)。 默认取值: - 若是创建共享型实例,不传默认创建固定规格计费实例。 - 若是创建独享型实例,则系统会忽略改字段,而是基于用户传入的l4_flavor_id/l7_flavor_id的规格类型,自动识别计费模式。 :type charge_mode: str - :param ipv6_vip_address: 参数解释:负载均衡器实例的IPv6地址。 约束限制: - 必须属于ipv6_vip_virsubnet_id子网中地址。 - elb_virsubnet_ids中的后端子网必须支持双栈。 [不支持IPv6,请勿使用。](tag:dt,dt_test) + :param ipv6_vip_address: 参数解释:负载均衡器实例的IPv6地址。 约束限制: - 必须属于ipv6_vip_virsubnet_id子网中地址。 - elb_virsubnet_ids中的后端子网必须支持双栈。 [- 网关型LB不支持指定ipv6_vip_address。](tag:hws_eu) [不支持IPv6,请勿使用。](tag:dt,dt_test) :type ipv6_vip_address: str """ @@ -306,7 +306,7 @@ def description(self, description): def vip_address(self): """Gets the vip_address of this CreateLoadBalancerOption. - 参数解释:负载均衡器的IPv4私网IP。该地址必须包含在所在子网的IPv4网段内,且未被占用。 约束限制: - 传入vip_address时,必须传入vip_subnet_cidr_id。 - 不传入vip_address,但传入vip_subnet_cidr_id,则自动分配IPv4私网IP。 - 不传入vip_address,且不传vip_subnet_cidr_id,则不分配IPv4私网IP,vip_address=null。 取值范围:满足IPv4的地址格式,[0-255].[0-255].[0-255].[0-255]. 如192.168.1.1。 + 参数解释:负载均衡器的IPv4私网IP。该地址必须包含在所在子网的IPv4网段内,且未被占用。 约束限制: - 传入vip_address时,必须传入vip_subnet_cidr_id。 - 不传入vip_address,但传入vip_subnet_cidr_id,则自动分配IPv4私网IP。 - 不传入vip_address,且不传vip_subnet_cidr_id,则不分配IPv4私网IP,vip_address=null。 [- 网关型LB不支持传入vip_address。](tag:hws_eu) 取值范围:满足IPv4的地址格式,[0-255].[0-255].[0-255].[0-255]. 如192.168.1.1。 :return: The vip_address of this CreateLoadBalancerOption. :rtype: str @@ -317,7 +317,7 @@ def vip_address(self): def vip_address(self, vip_address): """Sets the vip_address of this CreateLoadBalancerOption. - 参数解释:负载均衡器的IPv4私网IP。该地址必须包含在所在子网的IPv4网段内,且未被占用。 约束限制: - 传入vip_address时,必须传入vip_subnet_cidr_id。 - 不传入vip_address,但传入vip_subnet_cidr_id,则自动分配IPv4私网IP。 - 不传入vip_address,且不传vip_subnet_cidr_id,则不分配IPv4私网IP,vip_address=null。 取值范围:满足IPv4的地址格式,[0-255].[0-255].[0-255].[0-255]. 如192.168.1.1。 + 参数解释:负载均衡器的IPv4私网IP。该地址必须包含在所在子网的IPv4网段内,且未被占用。 约束限制: - 传入vip_address时,必须传入vip_subnet_cidr_id。 - 不传入vip_address,但传入vip_subnet_cidr_id,则自动分配IPv4私网IP。 - 不传入vip_address,且不传vip_subnet_cidr_id,则不分配IPv4私网IP,vip_address=null。 [- 网关型LB不支持传入vip_address。](tag:hws_eu) 取值范围:满足IPv4的地址格式,[0-255].[0-255].[0-255].[0-255]. 如192.168.1.1。 :param vip_address: The vip_address of this CreateLoadBalancerOption. :type vip_address: str @@ -328,7 +328,7 @@ def vip_address(self, vip_address): def vip_subnet_cidr_id(self): """Gets the vip_subnet_cidr_id of this CreateLoadBalancerOption. - 参数解释:负载均衡器所在子网的IPv4子网ID,也称为该负载均衡器实例的前端子网。 约束限制: - 若创建带有IPv4私网IP的负载均衡实例,则字段必须传入。 可以通过调用VPC的API, GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到。 - vpc_id, vip_subnet_cidr_id, ipv6_vip_virsubnet_id不能同时为空,且需要在同一个vpc下。 - 若同时传入vpc_id和vip_subnet_cidr_id,则vip_subnet_cidr_id对应的子网必须属于vpc_id对应的VPC。 取值范围: 标准的UUID格式,长度为36个字符。 + 参数解释:负载均衡器所在子网的IPv4子网ID,也称为该负载均衡器实例的前端子网。 约束限制: - 若创建带有IPv4私网IP的负载均衡实例,则字段必须传入。可以通过调用VPC的API, GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到。 - vpc_id, vip_subnet_cidr_id, ipv6_vip_virsubnet_id不能同时为空,且需要在同一个vpc下。 - 若同时传入vpc_id和vip_subnet_cidr_id,则vip_subnet_cidr_id对应的子网必须属于vpc_id对应的VPC。 [- 创建网关型LB,vip_subnet_cidr_id和ipv6_vip_virsubnet_id不能同时为空。若都传入则必须是同一个子网的IPv4子网ID和IPv6网络ID。](tag:hws_eu) 取值范围: 标准的UUID格式,长度为36个字符。 :return: The vip_subnet_cidr_id of this CreateLoadBalancerOption. :rtype: str @@ -339,7 +339,7 @@ def vip_subnet_cidr_id(self): def vip_subnet_cidr_id(self, vip_subnet_cidr_id): """Sets the vip_subnet_cidr_id of this CreateLoadBalancerOption. - 参数解释:负载均衡器所在子网的IPv4子网ID,也称为该负载均衡器实例的前端子网。 约束限制: - 若创建带有IPv4私网IP的负载均衡实例,则字段必须传入。 可以通过调用VPC的API, GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到。 - vpc_id, vip_subnet_cidr_id, ipv6_vip_virsubnet_id不能同时为空,且需要在同一个vpc下。 - 若同时传入vpc_id和vip_subnet_cidr_id,则vip_subnet_cidr_id对应的子网必须属于vpc_id对应的VPC。 取值范围: 标准的UUID格式,长度为36个字符。 + 参数解释:负载均衡器所在子网的IPv4子网ID,也称为该负载均衡器实例的前端子网。 约束限制: - 若创建带有IPv4私网IP的负载均衡实例,则字段必须传入。可以通过调用VPC的API, GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到。 - vpc_id, vip_subnet_cidr_id, ipv6_vip_virsubnet_id不能同时为空,且需要在同一个vpc下。 - 若同时传入vpc_id和vip_subnet_cidr_id,则vip_subnet_cidr_id对应的子网必须属于vpc_id对应的VPC。 [- 创建网关型LB,vip_subnet_cidr_id和ipv6_vip_virsubnet_id不能同时为空。若都传入则必须是同一个子网的IPv4子网ID和IPv6网络ID。](tag:hws_eu) 取值范围: 标准的UUID格式,长度为36个字符。 :param vip_subnet_cidr_id: The vip_subnet_cidr_id of this CreateLoadBalancerOption. :type vip_subnet_cidr_id: str @@ -350,7 +350,7 @@ def vip_subnet_cidr_id(self, vip_subnet_cidr_id): def ipv6_vip_virsubnet_id(self): """Gets the ipv6_vip_virsubnet_id of this CreateLoadBalancerOption. - 参数解释:双栈类型负载均衡器所在子网的IPv6网络ID,也称为该负载均衡器实例的前端子网。 约束限制: - 若创建带有IPv6 IP的负载均衡实例,则字段必须传入。 可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到。 - vpc_id,vip_subnet_cidr_id,ipv6_vip_virsubnet_id不能同时为空,且需要在同一个vpc下。 - 需要对应的子网开启IPv6。 [不支持IPv6,请勿使用。](tag:dt,dt_test) 取值范围: 标准的UUID格式,长度为36个字符。 + 参数解释:双栈类型负载均衡器所在子网的IPv6网络ID,也称为该负载均衡器实例的前端子网。 约束限制: - 若创建带有IPv6 IP的负载均衡实例,则字段必须传入。可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到。 - vpc_id,vip_subnet_cidr_id,ipv6_vip_virsubnet_id不能同时为空,且需要在同一个vpc下。 - 需要对应的子网开启IPv6。 [- 创建网关型LB,vip_subnet_cidr_id和ipv6_vip_virsubnet_id不能同时为空。若都传入则必须是同一个子网的IPv4子网ID和IPv6网络ID。](tag:hws_eu) 取值范围: 标准的UUID格式,长度为36个字符。 [不支持IPv6,请勿使用。](tag:dt,dt_test) :return: The ipv6_vip_virsubnet_id of this CreateLoadBalancerOption. :rtype: str @@ -361,7 +361,7 @@ def ipv6_vip_virsubnet_id(self): def ipv6_vip_virsubnet_id(self, ipv6_vip_virsubnet_id): """Sets the ipv6_vip_virsubnet_id of this CreateLoadBalancerOption. - 参数解释:双栈类型负载均衡器所在子网的IPv6网络ID,也称为该负载均衡器实例的前端子网。 约束限制: - 若创建带有IPv6 IP的负载均衡实例,则字段必须传入。 可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到。 - vpc_id,vip_subnet_cidr_id,ipv6_vip_virsubnet_id不能同时为空,且需要在同一个vpc下。 - 需要对应的子网开启IPv6。 [不支持IPv6,请勿使用。](tag:dt,dt_test) 取值范围: 标准的UUID格式,长度为36个字符。 + 参数解释:双栈类型负载均衡器所在子网的IPv6网络ID,也称为该负载均衡器实例的前端子网。 约束限制: - 若创建带有IPv6 IP的负载均衡实例,则字段必须传入。可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到。 - vpc_id,vip_subnet_cidr_id,ipv6_vip_virsubnet_id不能同时为空,且需要在同一个vpc下。 - 需要对应的子网开启IPv6。 [- 创建网关型LB,vip_subnet_cidr_id和ipv6_vip_virsubnet_id不能同时为空。若都传入则必须是同一个子网的IPv4子网ID和IPv6网络ID。](tag:hws_eu) 取值范围: 标准的UUID格式,长度为36个字符。 [不支持IPv6,请勿使用。](tag:dt,dt_test) :param ipv6_vip_virsubnet_id: The ipv6_vip_virsubnet_id of this CreateLoadBalancerOption. :type ipv6_vip_virsubnet_id: str @@ -372,7 +372,7 @@ def ipv6_vip_virsubnet_id(self, ipv6_vip_virsubnet_id): def provider(self): """Gets the provider of this CreateLoadBalancerOption. - 参数解释:负载均衡器的生产者名称。固定为vlb。无需指定。 + 参数解释:负载均衡器的生产者名称。固定为vlb,无需指定。 :return: The provider of this CreateLoadBalancerOption. :rtype: str @@ -383,7 +383,7 @@ def provider(self): def provider(self, provider): """Sets the provider of this CreateLoadBalancerOption. - 参数解释:负载均衡器的生产者名称。固定为vlb。无需指定。 + 参数解释:负载均衡器的生产者名称。固定为vlb,无需指定。 :param provider: The provider of this CreateLoadBalancerOption. :type provider: str @@ -394,7 +394,7 @@ def provider(self, provider): def l4_flavor_id(self): """Gets the l4_flavor_id of this CreateLoadBalancerOption. - 参数解释:网络型规格ID。 约束限制: [- 可以通过GET https://{ELB_Endpoint}/v3/{project_id}/elb/flavors?type=L4 响应参数中的id得到。 - 当l4_flavor_id和l7_flavor_id都不传的时,会使用默认flavor(默认flavor根据不同局点有所不同,具体以实际值为准)。 - 当传入的规格类型为L4,表示该实例为固定规格实例,按规格计费。 - 当传入的规格类型为L4_elastic_max,表示该实例为弹性实例,按LCU计费。](tag:hws,hws_hk,hws_eu,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb) [只支持设置为l4_flavor.elb.shared。](tag:hcso_dt) [所有LB实例共享带宽,该字段无效,请勿使用。](tag:hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b) 取值范围: 标准的UUID格式,长度为36个字符。 + 参数解释:网络型规格ID。 约束限制: [- 可以通过GET https://{ELB_Endpoint}/v3/{project_id}/elb/flavors?type=L4 响应参数中的id得到。 - 当l4_flavor_id和l7_flavor_id都不传的时,会使用默认flavor(默认flavor根据不同局点有所不同,具体以实际值为准)。 - 当传入的规格类型为L4,表示该实例为固定规格实例,按规格计费。 - 当传入的规格类型为L4_elastic_max,表示该实例为弹性实例,按LCU计费。](tag:hws,hws_hk,hws_eu,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb) [网关型LB不支持指定l4_flavor_id。](tag:hws_eu) [只支持设置为l4_flavor.elb.shared。](tag:hcso_dt) [所有LB实例共享带宽,该字段无效,请勿使用。](tag:hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b) 取值范围: 标准的UUID格式,长度为36个字符。 :return: The l4_flavor_id of this CreateLoadBalancerOption. :rtype: str @@ -405,7 +405,7 @@ def l4_flavor_id(self): def l4_flavor_id(self, l4_flavor_id): """Sets the l4_flavor_id of this CreateLoadBalancerOption. - 参数解释:网络型规格ID。 约束限制: [- 可以通过GET https://{ELB_Endpoint}/v3/{project_id}/elb/flavors?type=L4 响应参数中的id得到。 - 当l4_flavor_id和l7_flavor_id都不传的时,会使用默认flavor(默认flavor根据不同局点有所不同,具体以实际值为准)。 - 当传入的规格类型为L4,表示该实例为固定规格实例,按规格计费。 - 当传入的规格类型为L4_elastic_max,表示该实例为弹性实例,按LCU计费。](tag:hws,hws_hk,hws_eu,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb) [只支持设置为l4_flavor.elb.shared。](tag:hcso_dt) [所有LB实例共享带宽,该字段无效,请勿使用。](tag:hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b) 取值范围: 标准的UUID格式,长度为36个字符。 + 参数解释:网络型规格ID。 约束限制: [- 可以通过GET https://{ELB_Endpoint}/v3/{project_id}/elb/flavors?type=L4 响应参数中的id得到。 - 当l4_flavor_id和l7_flavor_id都不传的时,会使用默认flavor(默认flavor根据不同局点有所不同,具体以实际值为准)。 - 当传入的规格类型为L4,表示该实例为固定规格实例,按规格计费。 - 当传入的规格类型为L4_elastic_max,表示该实例为弹性实例,按LCU计费。](tag:hws,hws_hk,hws_eu,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb) [网关型LB不支持指定l4_flavor_id。](tag:hws_eu) [只支持设置为l4_flavor.elb.shared。](tag:hcso_dt) [所有LB实例共享带宽,该字段无效,请勿使用。](tag:hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b) 取值范围: 标准的UUID格式,长度为36个字符。 :param l4_flavor_id: The l4_flavor_id of this CreateLoadBalancerOption. :type l4_flavor_id: str @@ -416,7 +416,7 @@ def l4_flavor_id(self, l4_flavor_id): def l7_flavor_id(self): """Gets the l7_flavor_id of this CreateLoadBalancerOption. - 参数解释:应用型规格ID。 约束限制: [- 可以通过GET https://{ELB_Endpoint}/v3/{project_id}/elb/flavors?type=L7 响应参数中的id得到。 - 当l4_flavor_id和l7_flavor_id都不传的时,会使用默认flavor (默认flavor根据不同局点有所不同,具体以实际值为准)。 - 当传入的规格类型为L7,表示该实例为固定规格实例,按规格计费。 - 当传入的规格类型为L7_elastic_max,表示该实例为弹性实例,按LCU计费。](tag:hws,hws_hk,hws_eu,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb) [只支持设置为l7_flavor.elb.shared。](tag:hcso_dt) [所有LB实例共享带宽,该字段无效,请勿使用。](tag:hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b) 取值范围: 标准的UUID格式,长度为36个字符。 + 参数解释:应用型规格ID。 约束限制: [- 可以通过GET https://{ELB_Endpoint}/v3/{project_id}/elb/flavors?type=L7 响应参数中的id得到。 - 当l4_flavor_id和l7_flavor_id都不传的时,会使用默认flavor (默认flavor根据不同局点有所不同,具体以实际值为准)。 - 当传入的规格类型为L7,表示该实例为固定规格实例,按规格计费。 - 当传入的规格类型为L7_elastic_max,表示该实例为弹性实例,按LCU计费。](tag:hws,hws_hk,hws_eu,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb) [网关型LB不支持指定l7_flavor_id。](tag:hws_eu) [只支持设置为l7_flavor.elb.shared。](tag:hcso_dt) [所有LB实例共享带宽,该字段无效,请勿使用。](tag:hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b) 取值范围: 标准的UUID格式,长度为36个字符。 :return: The l7_flavor_id of this CreateLoadBalancerOption. :rtype: str @@ -427,7 +427,7 @@ def l7_flavor_id(self): def l7_flavor_id(self, l7_flavor_id): """Sets the l7_flavor_id of this CreateLoadBalancerOption. - 参数解释:应用型规格ID。 约束限制: [- 可以通过GET https://{ELB_Endpoint}/v3/{project_id}/elb/flavors?type=L7 响应参数中的id得到。 - 当l4_flavor_id和l7_flavor_id都不传的时,会使用默认flavor (默认flavor根据不同局点有所不同,具体以实际值为准)。 - 当传入的规格类型为L7,表示该实例为固定规格实例,按规格计费。 - 当传入的规格类型为L7_elastic_max,表示该实例为弹性实例,按LCU计费。](tag:hws,hws_hk,hws_eu,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb) [只支持设置为l7_flavor.elb.shared。](tag:hcso_dt) [所有LB实例共享带宽,该字段无效,请勿使用。](tag:hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b) 取值范围: 标准的UUID格式,长度为36个字符。 + 参数解释:应用型规格ID。 约束限制: [- 可以通过GET https://{ELB_Endpoint}/v3/{project_id}/elb/flavors?type=L7 响应参数中的id得到。 - 当l4_flavor_id和l7_flavor_id都不传的时,会使用默认flavor (默认flavor根据不同局点有所不同,具体以实际值为准)。 - 当传入的规格类型为L7,表示该实例为固定规格实例,按规格计费。 - 当传入的规格类型为L7_elastic_max,表示该实例为弹性实例,按LCU计费。](tag:hws,hws_hk,hws_eu,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb) [网关型LB不支持指定l7_flavor_id。](tag:hws_eu) [只支持设置为l7_flavor.elb.shared。](tag:hcso_dt) [所有LB实例共享带宽,该字段无效,请勿使用。](tag:hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b) 取值范围: 标准的UUID格式,长度为36个字符。 :param l7_flavor_id: The l7_flavor_id of this CreateLoadBalancerOption. :type l7_flavor_id: str @@ -460,7 +460,7 @@ def guaranteed(self, guaranteed): def vpc_id(self): """Gets the vpc_id of this CreateLoadBalancerOption. - 参数解释:负载均衡器所在的VPC ID。 约束限制: - 参数获取,可以通过 GET https://{VPC_Endpoint}/v1/{project_id}/vpcs 响应参数中的id得到。 - vpc_id,vip_subnet_cidr_id,ipv6_vip_virsubnet_id不能同时为空,且需要在同一个vpc下。 取值范围: 标准的UUID格式,长度为36个字符。 + 参数解释:负载均衡器所在的VPC ID。 约束限制: - 参数获取,可以通过 GET https://{VPC_Endpoint}/v1/{project_id}/vpcs 响应参数中的id得到。 - vpc_id,vip_subnet_cidr_id,ipv6_vip_virsubnet_id不能同时为空,且需要在同一个vpc下。 取值范围: 标准的UUID格式,长度为36个字符。 :return: The vpc_id of this CreateLoadBalancerOption. :rtype: str @@ -471,7 +471,7 @@ def vpc_id(self): def vpc_id(self, vpc_id): """Sets the vpc_id of this CreateLoadBalancerOption. - 参数解释:负载均衡器所在的VPC ID。 约束限制: - 参数获取,可以通过 GET https://{VPC_Endpoint}/v1/{project_id}/vpcs 响应参数中的id得到。 - vpc_id,vip_subnet_cidr_id,ipv6_vip_virsubnet_id不能同时为空,且需要在同一个vpc下。 取值范围: 标准的UUID格式,长度为36个字符。 + 参数解释:负载均衡器所在的VPC ID。 约束限制: - 参数获取,可以通过 GET https://{VPC_Endpoint}/v1/{project_id}/vpcs 响应参数中的id得到。 - vpc_id,vip_subnet_cidr_id,ipv6_vip_virsubnet_id不能同时为空,且需要在同一个vpc下。 取值范围: 标准的UUID格式,长度为36个字符。 :param vpc_id: The vpc_id of this CreateLoadBalancerOption. :type vpc_id: str @@ -482,7 +482,7 @@ def vpc_id(self, vpc_id): def availability_zone_list(self): """Gets the availability_zone_list of this CreateLoadBalancerOption. - 参数解释:负载均衡器实例所在的可用区列表。 约束限制: - 参数获取,可通过GET https://{ELB_Endponit}/v3/{project_id}/elb/availability-zones 接口来查询可用区集合列表。创建负载均衡器时,从查询结果选择某一个可用区集合,并从中选择一个或多个可用区。 - 为了支持可用区容灾,建议选取不少于2个可用区。 + 参数解释:负载均衡器实例所在的可用区列表。 约束限制: - 可通过GET https://{ELB_Endponit}/v3/{project_id}/elb/availability-zones 接口来查询可用区集合列表。创建负载均衡器时,从查询结果选择某一个可用区集合,并从中选择一个或多个可用区。 >为了支持可用区容灾,建议选取不少于2个可用区。 :return: The availability_zone_list of this CreateLoadBalancerOption. :rtype: list[str] @@ -493,7 +493,7 @@ def availability_zone_list(self): def availability_zone_list(self, availability_zone_list): """Sets the availability_zone_list of this CreateLoadBalancerOption. - 参数解释:负载均衡器实例所在的可用区列表。 约束限制: - 参数获取,可通过GET https://{ELB_Endponit}/v3/{project_id}/elb/availability-zones 接口来查询可用区集合列表。创建负载均衡器时,从查询结果选择某一个可用区集合,并从中选择一个或多个可用区。 - 为了支持可用区容灾,建议选取不少于2个可用区。 + 参数解释:负载均衡器实例所在的可用区列表。 约束限制: - 可通过GET https://{ELB_Endponit}/v3/{project_id}/elb/availability-zones 接口来查询可用区集合列表。创建负载均衡器时,从查询结果选择某一个可用区集合,并从中选择一个或多个可用区。 >为了支持可用区容灾,建议选取不少于2个可用区。 :param availability_zone_list: The availability_zone_list of this CreateLoadBalancerOption. :type availability_zone_list: list[str] @@ -548,7 +548,7 @@ def tags(self, tags): def admin_state_up(self): """Gets the admin_state_up of this CreateLoadBalancerOption. - 参数解释:负载均衡器的启用状态。 取值范围:布尔类型。 - true :启用。 - false:停用。 默认取值:true。 [不支持该字段,请勿使用。](tag:dt,dt_test) + 参数解释:负载均衡器的启用状态。 取值范围: - true :启用。 - false:停用。 默认取值:true。 [不支持该字段,请勿使用。](tag:dt,dt_test) :return: The admin_state_up of this CreateLoadBalancerOption. :rtype: bool @@ -559,7 +559,7 @@ def admin_state_up(self): def admin_state_up(self, admin_state_up): """Sets the admin_state_up of this CreateLoadBalancerOption. - 参数解释:负载均衡器的启用状态。 取值范围:布尔类型。 - true :启用。 - false:停用。 默认取值:true。 [不支持该字段,请勿使用。](tag:dt,dt_test) + 参数解释:负载均衡器的启用状态。 取值范围: - true :启用。 - false:停用。 默认取值:true。 [不支持该字段,请勿使用。](tag:dt,dt_test) :param admin_state_up: The admin_state_up of this CreateLoadBalancerOption. :type admin_state_up: bool @@ -570,7 +570,7 @@ def admin_state_up(self, admin_state_up): def billing_info(self): """Gets the billing_info of this CreateLoadBalancerOption. - 参数解释: 预付费实例的订单信息。 约束限制: - 空:按需计费。 [- 非空:包周期计费。 格式为: order_id:product_id:region_id:project_id,如: CS2107161019CDJZZ:OFFI569702121789763584:region-xxx:057ef081eb00d2732fd1c01a9be75e6f 不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt,hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b) + 参数解释: 预付费实例的订单信息。 取值范围: - 空:按需计费。 [- 非空:包周期计费。 格式为: order_id:product_id:region_id:project_id,如: CS2107161019CDJZZ:OFFI569702121789763584:region-xxx:057ef081eb00d2732fd1c01a9be75e6f 不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt,hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b) :return: The billing_info of this CreateLoadBalancerOption. :rtype: str @@ -581,7 +581,7 @@ def billing_info(self): def billing_info(self, billing_info): """Sets the billing_info of this CreateLoadBalancerOption. - 参数解释: 预付费实例的订单信息。 约束限制: - 空:按需计费。 [- 非空:包周期计费。 格式为: order_id:product_id:region_id:project_id,如: CS2107161019CDJZZ:OFFI569702121789763584:region-xxx:057ef081eb00d2732fd1c01a9be75e6f 不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt,hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b) + 参数解释: 预付费实例的订单信息。 取值范围: - 空:按需计费。 [- 非空:包周期计费。 格式为: order_id:product_id:region_id:project_id,如: CS2107161019CDJZZ:OFFI569702121789763584:region-xxx:057ef081eb00d2732fd1c01a9be75e6f 不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt,hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b) :param billing_info: The billing_info of this CreateLoadBalancerOption. :type billing_info: str @@ -610,7 +610,7 @@ def ipv6_bandwidth(self, ipv6_bandwidth): def publicip_ids(self): """Gets the publicip_ids of this CreateLoadBalancerOption. - 参数解释:负载均衡器绑定的公网IP的ID的数组。 约束限制:只支持绑定数组中的第一个EIP,其他将被忽略。 + 参数解释:负载均衡器绑定的公网IP的ID的数组。 约束限制: - 只支持绑定数组中的第一个EIP,其他将被忽略。 [- 网关型LB不支持该字段。](tag:hws_eu) :return: The publicip_ids of this CreateLoadBalancerOption. :rtype: list[str] @@ -621,7 +621,7 @@ def publicip_ids(self): def publicip_ids(self, publicip_ids): """Sets the publicip_ids of this CreateLoadBalancerOption. - 参数解释:负载均衡器绑定的公网IP的ID的数组。 约束限制:只支持绑定数组中的第一个EIP,其他将被忽略。 + 参数解释:负载均衡器绑定的公网IP的ID的数组。 约束限制: - 只支持绑定数组中的第一个EIP,其他将被忽略。 [- 网关型LB不支持该字段。](tag:hws_eu) :param publicip_ids: The publicip_ids of this CreateLoadBalancerOption. :type publicip_ids: list[str] @@ -650,7 +650,7 @@ def publicip(self, publicip): def elb_virsubnet_ids(self): """Gets the elb_virsubnet_ids of this CreateLoadBalancerOption. - 参数解释:负载均衡器实例所在VPC的子网的网络ID列表。 负载均衡器实例,会预占该子网中的部分IP, 用于负载均衡器网关与该实例后端服务器通信的源地址(典型场景,健康检查探测的源地址,FULLNAT场景的源地址等)。 因此,该子网,也称为负载均衡器的后端子网。通常需要用户指定一个特殊的子网,方便用户在后端服务器关联的安全组中,放通该子网的地址段。 约束限制: 后端子网必须属于该负载均衡器实例所在的VPC。 参数的获取,使用负载均衡器所在vpc的ID查询可用子网 可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets?vpc_id=xxxx 响应参数中的neutron_network_id得到。 若不指定该字段,则按如下规则选择下联面网络: 1. 如果ELB实例开启ipv6,则选择ipv6_vip_virsubnet_id子网对应的网络ID。 2. 如果ELB实例没有开启ipv6,开启ipv4,则选择vip_subnet_cidr_id子网对应的网络ID。 3. 如果ELB实例没有选择私网,只开启公网,则会在当前负载均衡器所在的VPC中任意选一个子网,优选可用IP多的网络。 若指定多个下联面子网,则按顺序优先使用第一个子网来为负载均衡器下联面端口分配ip地址。 建议后端子网,使用一个独占的地址充足的子网,方便运维管理。 - 后端服务器安全组放通:由于负载均衡器网关会使用该子网中的预占的地址,作为源IP与后端服务器通信(健康检查探测,FULLNAT通信),为避免后端服务器关联的安全组拦截,建议将对应的子网地址段进行安全组放通。 - 预占地址变化:负载均衡实例,弹性扩缩场景,可能涉及到预占地址的变化,建议安全组对子网段放通,而不是具体预占地址的放通。 + 参数解释:负载均衡器的后端子网的网络ID(OpenStack Neutron接口)列表。负载均衡器实例会预占用该子网中的部分IP, 用于负载均衡器网关与该实例后端服务器通信的源地址(典型场景,健康检查探测的源地址,FULLNAT场景的源地址等)。 使用负载均衡器所在VPC的ID查询可用子网 GET https://{VPC_Endpoint}/v1/{project_id}/subnets?vpc_id=xxxx 获取响应参数中的neutron_network_id字段。 约束限制: - 后端子网必须属于该负载均衡器实例所在的VPC。 - 通常需要用户指定一个特殊的子网,方便用户在后端服务器关联的安全组中,放通该子网的地址段。 - 若指定多个下联面子网,则按顺序优先使用第一个子网来为负载均衡器下联面端口分配ip地址。 - 若不指定该字段,则按如下规则选择下联面网络: 1. 如果ELB实例开启ipv6,则选择ipv6_vip_virsubnet_id子网对应的网络ID。 2. 如果ELB实例没有开启ipv6,开启ipv4,则选择vip_subnet_cidr_id子网对应的网络ID。 3. 如果ELB实例没有选择私网,只开启公网,则会在当前负载均衡器所在的VPC中任意选一个子网,优选可用IP多的网络。 - 后端服务器安全组放通:由于负载均衡器网关会使用该子网中的预占的地址,作为源IP与后端服务器通信(健康检查探测,FULLNAT通信),为避免后端服务器关联的安全组拦截,建议将对应的子网地址段进行安全组放通。 - 预占地址变化:负载均衡实例,弹性扩缩场景,可能涉及到预占地址的变化,建议安全组对子网段放通,而不是具体预占地址的放通。 - 建议后端子网,使用一个独占的地址充足的子网,方便运维管理。 :return: The elb_virsubnet_ids of this CreateLoadBalancerOption. :rtype: list[str] @@ -661,7 +661,7 @@ def elb_virsubnet_ids(self): def elb_virsubnet_ids(self, elb_virsubnet_ids): """Sets the elb_virsubnet_ids of this CreateLoadBalancerOption. - 参数解释:负载均衡器实例所在VPC的子网的网络ID列表。 负载均衡器实例,会预占该子网中的部分IP, 用于负载均衡器网关与该实例后端服务器通信的源地址(典型场景,健康检查探测的源地址,FULLNAT场景的源地址等)。 因此,该子网,也称为负载均衡器的后端子网。通常需要用户指定一个特殊的子网,方便用户在后端服务器关联的安全组中,放通该子网的地址段。 约束限制: 后端子网必须属于该负载均衡器实例所在的VPC。 参数的获取,使用负载均衡器所在vpc的ID查询可用子网 可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets?vpc_id=xxxx 响应参数中的neutron_network_id得到。 若不指定该字段,则按如下规则选择下联面网络: 1. 如果ELB实例开启ipv6,则选择ipv6_vip_virsubnet_id子网对应的网络ID。 2. 如果ELB实例没有开启ipv6,开启ipv4,则选择vip_subnet_cidr_id子网对应的网络ID。 3. 如果ELB实例没有选择私网,只开启公网,则会在当前负载均衡器所在的VPC中任意选一个子网,优选可用IP多的网络。 若指定多个下联面子网,则按顺序优先使用第一个子网来为负载均衡器下联面端口分配ip地址。 建议后端子网,使用一个独占的地址充足的子网,方便运维管理。 - 后端服务器安全组放通:由于负载均衡器网关会使用该子网中的预占的地址,作为源IP与后端服务器通信(健康检查探测,FULLNAT通信),为避免后端服务器关联的安全组拦截,建议将对应的子网地址段进行安全组放通。 - 预占地址变化:负载均衡实例,弹性扩缩场景,可能涉及到预占地址的变化,建议安全组对子网段放通,而不是具体预占地址的放通。 + 参数解释:负载均衡器的后端子网的网络ID(OpenStack Neutron接口)列表。负载均衡器实例会预占用该子网中的部分IP, 用于负载均衡器网关与该实例后端服务器通信的源地址(典型场景,健康检查探测的源地址,FULLNAT场景的源地址等)。 使用负载均衡器所在VPC的ID查询可用子网 GET https://{VPC_Endpoint}/v1/{project_id}/subnets?vpc_id=xxxx 获取响应参数中的neutron_network_id字段。 约束限制: - 后端子网必须属于该负载均衡器实例所在的VPC。 - 通常需要用户指定一个特殊的子网,方便用户在后端服务器关联的安全组中,放通该子网的地址段。 - 若指定多个下联面子网,则按顺序优先使用第一个子网来为负载均衡器下联面端口分配ip地址。 - 若不指定该字段,则按如下规则选择下联面网络: 1. 如果ELB实例开启ipv6,则选择ipv6_vip_virsubnet_id子网对应的网络ID。 2. 如果ELB实例没有开启ipv6,开启ipv4,则选择vip_subnet_cidr_id子网对应的网络ID。 3. 如果ELB实例没有选择私网,只开启公网,则会在当前负载均衡器所在的VPC中任意选一个子网,优选可用IP多的网络。 - 后端服务器安全组放通:由于负载均衡器网关会使用该子网中的预占的地址,作为源IP与后端服务器通信(健康检查探测,FULLNAT通信),为避免后端服务器关联的安全组拦截,建议将对应的子网地址段进行安全组放通。 - 预占地址变化:负载均衡实例,弹性扩缩场景,可能涉及到预占地址的变化,建议安全组对子网段放通,而不是具体预占地址的放通。 - 建议后端子网,使用一个独占的地址充足的子网,方便运维管理。 :param elb_virsubnet_ids: The elb_virsubnet_ids of this CreateLoadBalancerOption. :type elb_virsubnet_ids: list[str] @@ -672,7 +672,7 @@ def elb_virsubnet_ids(self, elb_virsubnet_ids): def ip_target_enable(self): """Gets the ip_target_enable of this CreateLoadBalancerOption. - 参数解释:是否启用跨VPC后端转发。 约束限制: 开启跨VPC后端转发后,后端服务器组不仅支持添加云上VPC内的服务器,还支持添加其他VPC、其他公有云、云下数据中心的服务器。 使用共享VPC的实例使用此特性时,需确保共享资源所有者已开通VPC对等连接,否则通信异常。 [仅独享型负载均衡器支持该特性。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) - 开启不能关闭。 [荷兰region不支持该字段,请勿使用。](tag:dt) 取值范围: - true:开启。 - false:不开启。 + 参数解释:是否启用跨VPC后端转发。 开启跨VPC后端转发后,后端服务器组不仅支持添加云上VPC内的服务器,还支持添加其他VPC、其他公有云、云下数据中心的服务器。 约束限制: - 开启后不能关闭。 - 使用共享VPC的实例使用此特性时,需确保共享资源所有者已开通VPC对等连接,否则通信异常。 [- 仅独享型负载均衡器支持该特性。](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [- 网关型LB不支持该特性。](tag:hws_eu) 取值范围: - true:开启。 - false:不开启。 [荷兰region不支持该字段,请勿使用。](tag:dt) :return: The ip_target_enable of this CreateLoadBalancerOption. :rtype: bool @@ -683,7 +683,7 @@ def ip_target_enable(self): def ip_target_enable(self, ip_target_enable): """Sets the ip_target_enable of this CreateLoadBalancerOption. - 参数解释:是否启用跨VPC后端转发。 约束限制: 开启跨VPC后端转发后,后端服务器组不仅支持添加云上VPC内的服务器,还支持添加其他VPC、其他公有云、云下数据中心的服务器。 使用共享VPC的实例使用此特性时,需确保共享资源所有者已开通VPC对等连接,否则通信异常。 [仅独享型负载均衡器支持该特性。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) - 开启不能关闭。 [荷兰region不支持该字段,请勿使用。](tag:dt) 取值范围: - true:开启。 - false:不开启。 + 参数解释:是否启用跨VPC后端转发。 开启跨VPC后端转发后,后端服务器组不仅支持添加云上VPC内的服务器,还支持添加其他VPC、其他公有云、云下数据中心的服务器。 约束限制: - 开启后不能关闭。 - 使用共享VPC的实例使用此特性时,需确保共享资源所有者已开通VPC对等连接,否则通信异常。 [- 仅独享型负载均衡器支持该特性。](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [- 网关型LB不支持该特性。](tag:hws_eu) 取值范围: - true:开启。 - false:不开启。 [荷兰region不支持该字段,请勿使用。](tag:dt) :param ip_target_enable: The ip_target_enable of this CreateLoadBalancerOption. :type ip_target_enable: bool @@ -818,7 +818,7 @@ def protection_reason(self, protection_reason): def charge_mode(self): """Gets the charge_mode of this CreateLoadBalancerOption. - 参数解释:负载均衡器实例的计费模式。flavor: 固定规格计费,默认值。lcu: 弹性规格计费(按用户真实使用的lcu个数计费)。 约束限制:不建议用户传该字段。系统会基于用户传入的l4_flavor_id/l7_flavor_id的规格类型,自动识别计费模式。 取值范围: - flavor: 固定规格计费。 - lcu: 弹性规格计费(按用户真实使用的lcu个数计费)。 默认取值:flavor。 + 参数解释:负载均衡器实例的计费模式。 约束限制:不建议用户传该字段。系统会基于用户传入的l4_flavor_id/l7_flavor_id的规格类型,自动识别计费模式。 取值范围: - flavor:固定规格计费。 - lcu:弹性规格计费(按用户实际使用的lcu个数计费)。 默认取值: - 若是创建共享型实例,不传默认创建固定规格计费实例。 - 若是创建独享型实例,则系统会忽略改字段,而是基于用户传入的l4_flavor_id/l7_flavor_id的规格类型,自动识别计费模式。 :return: The charge_mode of this CreateLoadBalancerOption. :rtype: str @@ -829,7 +829,7 @@ def charge_mode(self): def charge_mode(self, charge_mode): """Sets the charge_mode of this CreateLoadBalancerOption. - 参数解释:负载均衡器实例的计费模式。flavor: 固定规格计费,默认值。lcu: 弹性规格计费(按用户真实使用的lcu个数计费)。 约束限制:不建议用户传该字段。系统会基于用户传入的l4_flavor_id/l7_flavor_id的规格类型,自动识别计费模式。 取值范围: - flavor: 固定规格计费。 - lcu: 弹性规格计费(按用户真实使用的lcu个数计费)。 默认取值:flavor。 + 参数解释:负载均衡器实例的计费模式。 约束限制:不建议用户传该字段。系统会基于用户传入的l4_flavor_id/l7_flavor_id的规格类型,自动识别计费模式。 取值范围: - flavor:固定规格计费。 - lcu:弹性规格计费(按用户实际使用的lcu个数计费)。 默认取值: - 若是创建共享型实例,不传默认创建固定规格计费实例。 - 若是创建独享型实例,则系统会忽略改字段,而是基于用户传入的l4_flavor_id/l7_flavor_id的规格类型,自动识别计费模式。 :param charge_mode: The charge_mode of this CreateLoadBalancerOption. :type charge_mode: str @@ -840,7 +840,7 @@ def charge_mode(self, charge_mode): def ipv6_vip_address(self): """Gets the ipv6_vip_address of this CreateLoadBalancerOption. - 参数解释:负载均衡器实例的IPv6地址。 约束限制: - 必须属于ipv6_vip_virsubnet_id子网中地址。 - elb_virsubnet_ids中的后端子网必须支持双栈。 [不支持IPv6,请勿使用。](tag:dt,dt_test) + 参数解释:负载均衡器实例的IPv6地址。 约束限制: - 必须属于ipv6_vip_virsubnet_id子网中地址。 - elb_virsubnet_ids中的后端子网必须支持双栈。 [- 网关型LB不支持指定ipv6_vip_address。](tag:hws_eu) [不支持IPv6,请勿使用。](tag:dt,dt_test) :return: The ipv6_vip_address of this CreateLoadBalancerOption. :rtype: str @@ -851,7 +851,7 @@ def ipv6_vip_address(self): def ipv6_vip_address(self, ipv6_vip_address): """Sets the ipv6_vip_address of this CreateLoadBalancerOption. - 参数解释:负载均衡器实例的IPv6地址。 约束限制: - 必须属于ipv6_vip_virsubnet_id子网中地址。 - elb_virsubnet_ids中的后端子网必须支持双栈。 [不支持IPv6,请勿使用。](tag:dt,dt_test) + 参数解释:负载均衡器实例的IPv6地址。 约束限制: - 必须属于ipv6_vip_virsubnet_id子网中地址。 - elb_virsubnet_ids中的后端子网必须支持双栈。 [- 网关型LB不支持指定ipv6_vip_address。](tag:hws_eu) [不支持IPv6,请勿使用。](tag:dt,dt_test) :param ipv6_vip_address: The ipv6_vip_address of this CreateLoadBalancerOption. :type ipv6_vip_address: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_load_balancer_public_ip_option.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_load_balancer_public_ip_option.py index 9c3226d8d8..4431136dfd 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_load_balancer_public_ip_option.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_load_balancer_public_ip_option.py @@ -39,7 +39,7 @@ def __init__(self, ip_version=None, network_type=None, billing_info=None, descri :param ip_version: 参数解释:IP版本。 约束限制:取值只有4和6。4:IPv4, 6: IPv6。 [不支持IPv6,请勿设置为6。](tag:dt,dt_test) 取值范围: - 4:表示IPv4。 - 6:表示IPv6。 默认取值:4 :type ip_version: int - :param network_type: 参数解释:弹性公网IP的网络类型,默认5_bgp,更多请参考弹性公网ip创建。 约束限制: [华南-深圳局点该参数取值只能为5_gray。](tag:hws) [只支持设置为5_gray。](tag:dt) 取值范围:5_bgp。 默认取值:5_bgp。 + :param network_type: 参数解释:弹性公网IP的网络类型,默认5_bgp,更多请参考弹性公网ip创建。 [约束限制:华南-深圳局点该参数取值只能为5_gray。](tag:hws) [约束限制:只支持设置为5_gray。](tag:dt) 取值范围:5_bgp。 默认取值:5_bgp。 :type network_type: str :param billing_info: 参数解释:计费订单信息。 约束限制: - 空:按需计费。 [ - 非空:包周期计费。格式:order_id:product_id:region_id:project_id ](tag:hws,hk,hws_eu,otc,tlf,ctc,hcso,sbc,g42,cmcc,hk_g42,dt_test,hcso_dt,mix,hk_sbc,hws_ocb,hk_vdf,fcs,fcs_dt,dt) [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt,hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b) :type billing_info: str @@ -93,7 +93,7 @@ def ip_version(self, ip_version): def network_type(self): """Gets the network_type of this CreateLoadBalancerPublicIpOption. - 参数解释:弹性公网IP的网络类型,默认5_bgp,更多请参考弹性公网ip创建。 约束限制: [华南-深圳局点该参数取值只能为5_gray。](tag:hws) [只支持设置为5_gray。](tag:dt) 取值范围:5_bgp。 默认取值:5_bgp。 + 参数解释:弹性公网IP的网络类型,默认5_bgp,更多请参考弹性公网ip创建。 [约束限制:华南-深圳局点该参数取值只能为5_gray。](tag:hws) [约束限制:只支持设置为5_gray。](tag:dt) 取值范围:5_bgp。 默认取值:5_bgp。 :return: The network_type of this CreateLoadBalancerPublicIpOption. :rtype: str @@ -104,7 +104,7 @@ def network_type(self): def network_type(self, network_type): """Sets the network_type of this CreateLoadBalancerPublicIpOption. - 参数解释:弹性公网IP的网络类型,默认5_bgp,更多请参考弹性公网ip创建。 约束限制: [华南-深圳局点该参数取值只能为5_gray。](tag:hws) [只支持设置为5_gray。](tag:dt) 取值范围:5_bgp。 默认取值:5_bgp。 + 参数解释:弹性公网IP的网络类型,默认5_bgp,更多请参考弹性公网ip创建。 [约束限制:华南-深圳局点该参数取值只能为5_gray。](tag:hws) [约束限制:只支持设置为5_gray。](tag:dt) 取值范围:5_bgp。 默认取值:5_bgp。 :param network_type: The network_type of this CreateLoadBalancerPublicIpOption. :type network_type: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_load_balancer_response.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_load_balancer_response.py index b455d86d64..91b8da168f 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_load_balancer_response.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_load_balancer_response.py @@ -38,11 +38,11 @@ def __init__(self, loadbalancer=None, loadbalancer_id=None, order_id=None, reque :param loadbalancer: :type loadbalancer: :class:`huaweicloudsdkelb.v3.LoadBalancer` - :param loadbalancer_id: 负载均衡器的ID[(包周期场景返回该字段)](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt,ctc,cmcc,hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b) [不支持该字段,请勿使用](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt,ctc,cmcc,hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b) + :param loadbalancer_id: 参数解释:负载均衡器的ID[(包周期场景返回该字段)](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt,ctc,cmcc,hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b) [不支持该字段,请勿使用](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt,ctc,cmcc,hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b) :type loadbalancer_id: str - :param order_id: 订单号[(包周期场景返回该字段)](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt,ctc,cmcc,hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b) [不支持该字段,请勿使用](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt,ctc,cmcc,hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b) + :param order_id: 参数解释:订单号[(包周期场景返回该字段)](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt,ctc,cmcc,hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b) [不支持该字段,请勿使用](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt,ctc,cmcc,hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b) :type order_id: str - :param request_id: 请求ID。 注:自动生成 。 + :param request_id: 参数解释:请求ID。 注:自动生成 。 :type request_id: str """ @@ -85,7 +85,7 @@ def loadbalancer(self, loadbalancer): def loadbalancer_id(self): """Gets the loadbalancer_id of this CreateLoadBalancerResponse. - 负载均衡器的ID[(包周期场景返回该字段)](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt,ctc,cmcc,hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b) [不支持该字段,请勿使用](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt,ctc,cmcc,hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b) + 参数解释:负载均衡器的ID[(包周期场景返回该字段)](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt,ctc,cmcc,hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b) [不支持该字段,请勿使用](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt,ctc,cmcc,hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b) :return: The loadbalancer_id of this CreateLoadBalancerResponse. :rtype: str @@ -96,7 +96,7 @@ def loadbalancer_id(self): def loadbalancer_id(self, loadbalancer_id): """Sets the loadbalancer_id of this CreateLoadBalancerResponse. - 负载均衡器的ID[(包周期场景返回该字段)](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt,ctc,cmcc,hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b) [不支持该字段,请勿使用](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt,ctc,cmcc,hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b) + 参数解释:负载均衡器的ID[(包周期场景返回该字段)](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt,ctc,cmcc,hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b) [不支持该字段,请勿使用](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt,ctc,cmcc,hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b) :param loadbalancer_id: The loadbalancer_id of this CreateLoadBalancerResponse. :type loadbalancer_id: str @@ -107,7 +107,7 @@ def loadbalancer_id(self, loadbalancer_id): def order_id(self): """Gets the order_id of this CreateLoadBalancerResponse. - 订单号[(包周期场景返回该字段)](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt,ctc,cmcc,hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b) [不支持该字段,请勿使用](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt,ctc,cmcc,hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b) + 参数解释:订单号[(包周期场景返回该字段)](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt,ctc,cmcc,hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b) [不支持该字段,请勿使用](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt,ctc,cmcc,hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b) :return: The order_id of this CreateLoadBalancerResponse. :rtype: str @@ -118,7 +118,7 @@ def order_id(self): def order_id(self, order_id): """Sets the order_id of this CreateLoadBalancerResponse. - 订单号[(包周期场景返回该字段)](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt,ctc,cmcc,hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b) [不支持该字段,请勿使用](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt,ctc,cmcc,hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b) + 参数解释:订单号[(包周期场景返回该字段)](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt,ctc,cmcc,hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b) [不支持该字段,请勿使用](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt,ctc,cmcc,hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b) :param order_id: The order_id of this CreateLoadBalancerResponse. :type order_id: str @@ -129,7 +129,7 @@ def order_id(self, order_id): def request_id(self): """Gets the request_id of this CreateLoadBalancerResponse. - 请求ID。 注:自动生成 。 + 参数解释:请求ID。 注:自动生成 。 :return: The request_id of this CreateLoadBalancerResponse. :rtype: str @@ -140,7 +140,7 @@ def request_id(self): def request_id(self, request_id): """Sets the request_id of this CreateLoadBalancerResponse. - 请求ID。 注:自动生成 。 + 参数解释:请求ID。 注:自动生成 。 :param request_id: The request_id of this CreateLoadBalancerResponse. :type request_id: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_loadbalancer_autoscaling_option.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_loadbalancer_autoscaling_option.py index 5fa6cfc62f..0559f21763 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_loadbalancer_autoscaling_option.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_loadbalancer_autoscaling_option.py @@ -31,7 +31,7 @@ def __init__(self, enable=None, min_l7_flavor_id=None): The model defined in huaweicloud sdk - :param enable: 参数解释:负载均衡器实例弹性扩缩容开关。 取值范围: - true:开启。 - false:关闭。 + :param enable: 参数解释:负载均衡器实例弹性扩缩容开关。 [网关型LB不支持该字段。](tag:hws_eu) 取值范围: - true:开启。 - false:关闭。 :type enable: bool :param min_l7_flavor_id: 参数解释:实例弹性扩缩容的最小七层规格ID。 约束限制: 该字段已经废弃,建议不要使用该字段。 :type min_l7_flavor_id: str @@ -51,7 +51,7 @@ def __init__(self, enable=None, min_l7_flavor_id=None): def enable(self): """Gets the enable of this CreateLoadbalancerAutoscalingOption. - 参数解释:负载均衡器实例弹性扩缩容开关。 取值范围: - true:开启。 - false:关闭。 + 参数解释:负载均衡器实例弹性扩缩容开关。 [网关型LB不支持该字段。](tag:hws_eu) 取值范围: - true:开启。 - false:关闭。 :return: The enable of this CreateLoadbalancerAutoscalingOption. :rtype: bool @@ -62,7 +62,7 @@ def enable(self): def enable(self, enable): """Sets the enable of this CreateLoadbalancerAutoscalingOption. - 参数解释:负载均衡器实例弹性扩缩容开关。 取值范围: - true:开启。 - false:关闭。 + 参数解释:负载均衡器实例弹性扩缩容开关。 [网关型LB不支持该字段。](tag:hws_eu) 取值范围: - true:开启。 - false:关闭。 :param enable: The enable of this CreateLoadbalancerAutoscalingOption. :type enable: bool diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_master_slave_health_monitor_option.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_master_slave_health_monitor_option.py index 4ed0165e83..e1a9e83e7d 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_master_slave_health_monitor_option.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_master_slave_health_monitor_option.py @@ -53,7 +53,7 @@ def __init__(self, delay=None, domain_name=None, expected_codes=None, http_metho :type delay: int :param domain_name: 发送健康检查请求的域名。 取值:以数字或字母开头,只能包含数字、字母、’-’、’.’。 默认为空,表示使用负载均衡器的vip作为http请求的目的地址。 使用说明:当type为HTTP/HTTPS时生效。 :type domain_name: str - :param expected_codes: 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:200。 仅支持HTTP/HTTPS/GRPC设置该字段,其他协议设置不会生效。 + :param expected_codes: 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:200。 仅支持HTTP/HTTPS/gRPC设置该字段,其他协议设置不会生效。 :type expected_codes: str :param http_method: HTTP请求方法。 取值:GET、HEAD、POST,默认GET。 使用说明:当type为HTTP/HTTPS时生效。 :type http_method: str @@ -155,7 +155,7 @@ def domain_name(self, domain_name): def expected_codes(self): """Gets the expected_codes of this CreateMasterSlaveHealthMonitorOption. - 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:200。 仅支持HTTP/HTTPS/GRPC设置该字段,其他协议设置不会生效。 + 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:200。 仅支持HTTP/HTTPS/gRPC设置该字段,其他协议设置不会生效。 :return: The expected_codes of this CreateMasterSlaveHealthMonitorOption. :rtype: str @@ -166,7 +166,7 @@ def expected_codes(self): def expected_codes(self, expected_codes): """Sets the expected_codes of this CreateMasterSlaveHealthMonitorOption. - 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:200。 仅支持HTTP/HTTPS/GRPC设置该字段,其他协议设置不会生效。 + 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:200。 仅支持HTTP/HTTPS/gRPC设置该字段,其他协议设置不会生效。 :param expected_codes: The expected_codes of this CreateMasterSlaveHealthMonitorOption. :type expected_codes: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_member_option.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_member_option.py index 6e60d9e1ad..f52e3e7759 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_member_option.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_member_option.py @@ -41,19 +41,19 @@ def __init__(self, address=None, admin_state_up=None, name=None, project_id=None The model defined in huaweicloud sdk - :param address: 后端服务器对应的IP地址。 使用说明: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址可以是私网IPv4或IPv6。 但必须在subnet_cidr_id对应的子网网段中。且只能指定为关联ECS的主网卡的内网IP。 [ 不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test) + :param address: 参数解释:后端服务器对应的IP地址。 约束限制: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址可以是私网IPv4或IPv6。 但必须在subnet_cidr_id对应的子网网段中。且只能指定为关联ECS的主网卡的内网IP。 [ 不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test) :type address: str - :param admin_state_up: 后端云服务器的管理状态。 取值:true、false。 虽然创建、更新请求支持该字段,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 + :param admin_state_up: 参数解释:后端云服务器的管理状态。 约束限制:虽然创建、更新请求支持该字段,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 取值范围:true、false。 :type admin_state_up: bool - :param name: 后端云服务器名称。注意:该名称并非ECS名称,若不传则返回为空。 + :param name: 参数解释:后端云服务器名称。注意:该名称并非ECS名称,若不传则返回为空。 :type name: str - :param project_id: 后端云服务器所在的项目ID。 + :param project_id: 参数解释:后端云服务器所在的项目ID。 :type project_id: str - :param protocol_port: 后端服务器业务端口。 >在开启端口透传的pool下创建member传该字段不生效,可不传该字段。 + :param protocol_port: 参数解释:后端服务器业务端口。 约束限制: - 在开启端口透传的pool下创建member传该字段不生效,可不传该字段。 [- 网关型LB,即pool协议为IP时,protocol_port必须设置为0。](tag:hws_eu) :type protocol_port: int - :param subnet_cidr_id: 后端云服务器所在的子网,可以是IPv4或IPv6子网。若是IPv4子网,使用对应子网的子网ID(neutron_subnet_id);若是IPv6子网,使用对应子网的网络ID(neutron_network_id)。 ipv4子网的子网ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到 ipv6子网的网络ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到 使用说明: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发已开启(ip_target_enable=true),则该字段可以不传,表示添加跨VPC的后端服务器。 此时address必须为IPv4地址,所在的pool的协议必须为TCP/HTTP/HTTPS。 - 若所属LB未开启跨VPC后端转发,该参数必填。 [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test) + :param subnet_cidr_id: 参数解释:后端云服务器所在的子网,可以是IPv4或IPv6子网。若是IPv4子网,使用对应子网的子网ID(neutron_subnet_id);若是IPv6子网,使用对应子网的网络ID(neutron_network_id)。 ipv4子网的子网ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到 ipv6子网的网络ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到 约束限制: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发已开启(ip_target_enable=true),则该字段可以不传,表示添加跨VPC的后端服务器。 此时address必须为IPv4地址,所在的pool的协议必须为TCP/HTTP/HTTPS。 - 若所属LB未开启跨VPC后端转发,该参数必填。 [- 网关型LB,即pool协议为IP时,必须指定该子网,且必须和负载均衡器的子网在同一个VPC下,但不能相同。](tag:hws_eu) [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test) :type subnet_cidr_id: str - :param weight: 后端云服务器的权重,请求将根据pool配置的负载均衡算法和后端云服务器的权重进行负载分发。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 取值:0-100,默认1。 使用说明:若所在pool的lb_algorithm取值为SOURCE_IP,该字段无效。 + :param weight: 参数解释:后端云服务器的权重,请求将根据pool配置的负载均衡算法和后端云服务器的权重进行负载分发。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 约束限制:若所在pool的lb_algorithm取值为SOURCE_IP,该字段无效。 取值范围:0-100,默认1。 :type weight: int """ @@ -86,7 +86,7 @@ def __init__(self, address=None, admin_state_up=None, name=None, project_id=None def address(self): """Gets the address of this CreateMemberOption. - 后端服务器对应的IP地址。 使用说明: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址可以是私网IPv4或IPv6。 但必须在subnet_cidr_id对应的子网网段中。且只能指定为关联ECS的主网卡的内网IP。 [ 不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test) + 参数解释:后端服务器对应的IP地址。 约束限制: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址可以是私网IPv4或IPv6。 但必须在subnet_cidr_id对应的子网网段中。且只能指定为关联ECS的主网卡的内网IP。 [ 不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test) :return: The address of this CreateMemberOption. :rtype: str @@ -97,7 +97,7 @@ def address(self): def address(self, address): """Sets the address of this CreateMemberOption. - 后端服务器对应的IP地址。 使用说明: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址可以是私网IPv4或IPv6。 但必须在subnet_cidr_id对应的子网网段中。且只能指定为关联ECS的主网卡的内网IP。 [ 不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test) + 参数解释:后端服务器对应的IP地址。 约束限制: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址可以是私网IPv4或IPv6。 但必须在subnet_cidr_id对应的子网网段中。且只能指定为关联ECS的主网卡的内网IP。 [ 不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test) :param address: The address of this CreateMemberOption. :type address: str @@ -108,7 +108,7 @@ def address(self, address): def admin_state_up(self): """Gets the admin_state_up of this CreateMemberOption. - 后端云服务器的管理状态。 取值:true、false。 虽然创建、更新请求支持该字段,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 + 参数解释:后端云服务器的管理状态。 约束限制:虽然创建、更新请求支持该字段,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 取值范围:true、false。 :return: The admin_state_up of this CreateMemberOption. :rtype: bool @@ -119,7 +119,7 @@ def admin_state_up(self): def admin_state_up(self, admin_state_up): """Sets the admin_state_up of this CreateMemberOption. - 后端云服务器的管理状态。 取值:true、false。 虽然创建、更新请求支持该字段,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 + 参数解释:后端云服务器的管理状态。 约束限制:虽然创建、更新请求支持该字段,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 取值范围:true、false。 :param admin_state_up: The admin_state_up of this CreateMemberOption. :type admin_state_up: bool @@ -130,7 +130,7 @@ def admin_state_up(self, admin_state_up): def name(self): """Gets the name of this CreateMemberOption. - 后端云服务器名称。注意:该名称并非ECS名称,若不传则返回为空。 + 参数解释:后端云服务器名称。注意:该名称并非ECS名称,若不传则返回为空。 :return: The name of this CreateMemberOption. :rtype: str @@ -141,7 +141,7 @@ def name(self): def name(self, name): """Sets the name of this CreateMemberOption. - 后端云服务器名称。注意:该名称并非ECS名称,若不传则返回为空。 + 参数解释:后端云服务器名称。注意:该名称并非ECS名称,若不传则返回为空。 :param name: The name of this CreateMemberOption. :type name: str @@ -152,7 +152,7 @@ def name(self, name): def project_id(self): """Gets the project_id of this CreateMemberOption. - 后端云服务器所在的项目ID。 + 参数解释:后端云服务器所在的项目ID。 :return: The project_id of this CreateMemberOption. :rtype: str @@ -163,7 +163,7 @@ def project_id(self): def project_id(self, project_id): """Sets the project_id of this CreateMemberOption. - 后端云服务器所在的项目ID。 + 参数解释:后端云服务器所在的项目ID。 :param project_id: The project_id of this CreateMemberOption. :type project_id: str @@ -174,7 +174,7 @@ def project_id(self, project_id): def protocol_port(self): """Gets the protocol_port of this CreateMemberOption. - 后端服务器业务端口。 >在开启端口透传的pool下创建member传该字段不生效,可不传该字段。 + 参数解释:后端服务器业务端口。 约束限制: - 在开启端口透传的pool下创建member传该字段不生效,可不传该字段。 [- 网关型LB,即pool协议为IP时,protocol_port必须设置为0。](tag:hws_eu) :return: The protocol_port of this CreateMemberOption. :rtype: int @@ -185,7 +185,7 @@ def protocol_port(self): def protocol_port(self, protocol_port): """Sets the protocol_port of this CreateMemberOption. - 后端服务器业务端口。 >在开启端口透传的pool下创建member传该字段不生效,可不传该字段。 + 参数解释:后端服务器业务端口。 约束限制: - 在开启端口透传的pool下创建member传该字段不生效,可不传该字段。 [- 网关型LB,即pool协议为IP时,protocol_port必须设置为0。](tag:hws_eu) :param protocol_port: The protocol_port of this CreateMemberOption. :type protocol_port: int @@ -196,7 +196,7 @@ def protocol_port(self, protocol_port): def subnet_cidr_id(self): """Gets the subnet_cidr_id of this CreateMemberOption. - 后端云服务器所在的子网,可以是IPv4或IPv6子网。若是IPv4子网,使用对应子网的子网ID(neutron_subnet_id);若是IPv6子网,使用对应子网的网络ID(neutron_network_id)。 ipv4子网的子网ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到 ipv6子网的网络ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到 使用说明: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发已开启(ip_target_enable=true),则该字段可以不传,表示添加跨VPC的后端服务器。 此时address必须为IPv4地址,所在的pool的协议必须为TCP/HTTP/HTTPS。 - 若所属LB未开启跨VPC后端转发,该参数必填。 [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test) + 参数解释:后端云服务器所在的子网,可以是IPv4或IPv6子网。若是IPv4子网,使用对应子网的子网ID(neutron_subnet_id);若是IPv6子网,使用对应子网的网络ID(neutron_network_id)。 ipv4子网的子网ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到 ipv6子网的网络ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到 约束限制: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发已开启(ip_target_enable=true),则该字段可以不传,表示添加跨VPC的后端服务器。 此时address必须为IPv4地址,所在的pool的协议必须为TCP/HTTP/HTTPS。 - 若所属LB未开启跨VPC后端转发,该参数必填。 [- 网关型LB,即pool协议为IP时,必须指定该子网,且必须和负载均衡器的子网在同一个VPC下,但不能相同。](tag:hws_eu) [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test) :return: The subnet_cidr_id of this CreateMemberOption. :rtype: str @@ -207,7 +207,7 @@ def subnet_cidr_id(self): def subnet_cidr_id(self, subnet_cidr_id): """Sets the subnet_cidr_id of this CreateMemberOption. - 后端云服务器所在的子网,可以是IPv4或IPv6子网。若是IPv4子网,使用对应子网的子网ID(neutron_subnet_id);若是IPv6子网,使用对应子网的网络ID(neutron_network_id)。 ipv4子网的子网ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到 ipv6子网的网络ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到 使用说明: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发已开启(ip_target_enable=true),则该字段可以不传,表示添加跨VPC的后端服务器。 此时address必须为IPv4地址,所在的pool的协议必须为TCP/HTTP/HTTPS。 - 若所属LB未开启跨VPC后端转发,该参数必填。 [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test) + 参数解释:后端云服务器所在的子网,可以是IPv4或IPv6子网。若是IPv4子网,使用对应子网的子网ID(neutron_subnet_id);若是IPv6子网,使用对应子网的网络ID(neutron_network_id)。 ipv4子网的子网ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到 ipv6子网的网络ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到 约束限制: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发已开启(ip_target_enable=true),则该字段可以不传,表示添加跨VPC的后端服务器。 此时address必须为IPv4地址,所在的pool的协议必须为TCP/HTTP/HTTPS。 - 若所属LB未开启跨VPC后端转发,该参数必填。 [- 网关型LB,即pool协议为IP时,必须指定该子网,且必须和负载均衡器的子网在同一个VPC下,但不能相同。](tag:hws_eu) [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test) :param subnet_cidr_id: The subnet_cidr_id of this CreateMemberOption. :type subnet_cidr_id: str @@ -218,7 +218,7 @@ def subnet_cidr_id(self, subnet_cidr_id): def weight(self): """Gets the weight of this CreateMemberOption. - 后端云服务器的权重,请求将根据pool配置的负载均衡算法和后端云服务器的权重进行负载分发。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 取值:0-100,默认1。 使用说明:若所在pool的lb_algorithm取值为SOURCE_IP,该字段无效。 + 参数解释:后端云服务器的权重,请求将根据pool配置的负载均衡算法和后端云服务器的权重进行负载分发。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 约束限制:若所在pool的lb_algorithm取值为SOURCE_IP,该字段无效。 取值范围:0-100,默认1。 :return: The weight of this CreateMemberOption. :rtype: int @@ -229,7 +229,7 @@ def weight(self): def weight(self, weight): """Sets the weight of this CreateMemberOption. - 后端云服务器的权重,请求将根据pool配置的负载均衡算法和后端云服务器的权重进行负载分发。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 取值:0-100,默认1。 使用说明:若所在pool的lb_algorithm取值为SOURCE_IP,该字段无效。 + 参数解释:后端云服务器的权重,请求将根据pool配置的负载均衡算法和后端云服务器的权重进行负载分发。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 约束限制:若所在pool的lb_algorithm取值为SOURCE_IP,该字段无效。 取值范围:0-100,默认1。 :param weight: The weight of this CreateMemberOption. :type weight: int diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_member_request.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_member_request.py index 838ef45607..26ea443707 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_member_request.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_member_request.py @@ -31,7 +31,7 @@ def __init__(self, pool_id=None, body=None): The model defined in huaweicloud sdk - :param pool_id: 后端服务器组ID。 + :param pool_id: 参数解释:后端服务器组ID。 :type pool_id: str :param body: Body of the CreateMemberRequest :type body: :class:`huaweicloudsdkelb.v3.CreateMemberRequestBody` @@ -51,7 +51,7 @@ def __init__(self, pool_id=None, body=None): def pool_id(self): """Gets the pool_id of this CreateMemberRequest. - 后端服务器组ID。 + 参数解释:后端服务器组ID。 :return: The pool_id of this CreateMemberRequest. :rtype: str @@ -62,7 +62,7 @@ def pool_id(self): def pool_id(self, pool_id): """Sets the pool_id of this CreateMemberRequest. - 后端服务器组ID。 + 参数解释:后端服务器组ID。 :param pool_id: The pool_id of this CreateMemberRequest. :type pool_id: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_member_response.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_member_response.py index e3bc40eaaa..efffa12620 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_member_response.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_member_response.py @@ -32,7 +32,7 @@ def __init__(self, request_id=None, member=None): The model defined in huaweicloud sdk - :param request_id: 请求ID。 注:自动生成 。 + :param request_id: 参数解释:请求ID。 注:自动生成 。 :type request_id: str :param member: :type member: :class:`huaweicloudsdkelb.v3.Member` @@ -53,7 +53,7 @@ def __init__(self, request_id=None, member=None): def request_id(self): """Gets the request_id of this CreateMemberResponse. - 请求ID。 注:自动生成 。 + 参数解释:请求ID。 注:自动生成 。 :return: The request_id of this CreateMemberResponse. :rtype: str @@ -64,7 +64,7 @@ def request_id(self): def request_id(self, request_id): """Sets the request_id of this CreateMemberResponse. - 请求ID。 注:自动生成 。 + 参数解释:请求ID。 注:自动生成 。 :param request_id: The request_id of this CreateMemberResponse. :type request_id: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_pool_option.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_pool_option.py index 7b05dbdc5f..da2567b104 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_pool_option.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_pool_option.py @@ -71,7 +71,7 @@ def __init__(self, admin_state_up=None, description=None, lb_algorithm=None, lis :type admin_state_up: bool :param description: 后端云服务器组的描述信息。 :type description: str - :param lb_algorithm: 后端云服务器组的负载均衡算法。 取值: - ROUND_ROBIN:加权轮询算法。 - LEAST_CONNECTIONS:加权最少连接算法。 - SOURCE_IP:源IP算法。 - QUIC_CID:连接ID算法。 [- 2_TUPLE_HASH:二元组hash算法,仅IP类型的pool支持。 - 3_TUPLE_HASH:三元组hash算法,仅IP类型的pool支持。 - 4_TUPLE_HASH:五元组hash算法,仅IP类型的pool支持。](tag:hws_eu 使用说明: - 当该字段的取值为SOURCE_IP时,后端云服务器组绑定的后端云服务器的weight字段无效。 - 只有pool的protocol为QUIC时,才支持QUIC_CID算法。 [不支持QUIC_CID。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC_CID。](tag:dt,dt_test) + :param lb_algorithm: 后端云服务器组的负载均衡算法。 取值: - ROUND_ROBIN:加权轮询算法。 - LEAST_CONNECTIONS:加权最少连接算法。 - SOURCE_IP:源IP算法。 - QUIC_CID:连接ID算法。 [- 2_TUPLE_HASH:二元组hash算法,仅IP类型的pool支持。 - 3_TUPLE_HASH:三元组hash算法,仅IP类型的pool支持。 - 5_TUPLE_HASH:五元组hash算法,仅IP类型的pool支持。 - IP型pool不指定该字段时,默认设置为5_TUPLE_HASH。](tag:hws_eu) 使用说明: - 当该字段的取值为SOURCE_IP时,后端云服务器组绑定的后端云服务器的weight字段无效。 - 只有pool的protocol为QUIC时,才支持QUIC_CID算法。 [不支持QUIC_CID。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC_CID。](tag:dt,dt_test) :type lb_algorithm: str :param listener_id: 后端云服务器组关联的监听器的ID。 使用说明: - listener_id,loadbalancer_id,type至少指定一个。 [- 共享型实例的后端服务器组loadbalancer_id和listener_id至少指定一个。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) :type listener_id: str @@ -81,7 +81,7 @@ def __init__(self, admin_state_up=None, description=None, lb_algorithm=None, lis :type name: str :param project_id: 后端云服务器组所属的项目ID。 :type project_id: str - :param protocol: 后端云服务器组的后端协议。 取值:TCP、UDP、[IP、](tag:hws_eu)TLS、GRPC、HTTP、HTTPS和QUIC。 使用说明: - listener的protocol为UDP时,pool的protocol必须为UDP或QUIC。 - listener的protocol为TCP时pool的protocol必须为TCP。 [- listener的protocol为IP时,pool的protocol必须为IP。](tag:hws_eu) - listener的protocol为HTTP时,pool的protocol必须为HTTP。 - listener的protocol为HTTPS时,pool的protocol必须为HTTP、HTTPS或GRPC。 - listener的protocol为TERMINATED_HTTPS时,pool的protocol必须为HTTP。 - listener的protocol为QUIC时,pool的protocol必须为HTTP、HTTPS或GRPC。 - listener的protocol为TLS时,pool的protocol必须为TLS或TCP(且只能使用ip_version为v4的TCP pool)。 - 若pool的protocol为QUIC,则必须开启session_persistence且type为SOURCE_IP。 - 若pool的protocol为GRPC,关联监听器的http2_enable必须为true。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) + :param protocol: 后端云服务器组的后端协议。 取值:TCP、UDP、[IP、](tag:hws_eu)TLS、gRPC、HTTP、HTTPS和QUIC。 使用说明: - listener的protocol为UDP时,pool的protocol必须为UDP或QUIC。 - listener的protocol为TCP时pool的protocol必须为TCP。 [- listener的protocol为IP时,pool的protocol必须为IP。](tag:hws_eu) - listener的protocol为HTTP时,pool的protocol必须为HTTP。 - listener的protocol为HTTPS时,pool的protocol必须为HTTP、HTTPS或gRPC。 - listener的protocol为TERMINATED_HTTPS时,pool的protocol必须为HTTP。 - listener的protocol为QUIC时,pool的protocol必须为HTTP、HTTPS或gRPC。 - listener的protocol为TLS时,pool的protocol必须为TLS或TCP(且只能使用ip_version为v4的TCP pool)。 - 若pool的protocol为QUIC,则必须开启session_persistence且type为SOURCE_IP。 - 若pool的protocol为gRPC,关联监听器的http2_enable必须为true。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) :type protocol: str :param session_persistence: :type session_persistence: :class:`huaweicloudsdkelb.v3.CreatePoolSessionPersistenceOption` @@ -89,9 +89,9 @@ def __init__(self, admin_state_up=None, description=None, lb_algorithm=None, lis :type slow_start: :class:`huaweicloudsdkelb.v3.CreatePoolSlowStartOption` :param member_deletion_protection_enable: 是否开启删除保护。 取值:false不开启,true开启,默认false。 > 退场时需要先关闭所有资源的删除保护开关。 [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) :type member_deletion_protection_enable: bool - :param vpc_id: 后端云服务器组关联的虚拟私有云的ID。 使用说明: - 只能挂载到该虚拟私有云下。 - 只能添加该虚拟私有云下的后端服务器或跨VPC的后端服务器。 - type必须指定为instance。 没有指定vpc_id的约束: - 后续添加后端服务器时,vpc_id由后端服务器所在的虚拟私有云确定。 + :param vpc_id: 后端云服务器组关联的虚拟私有云的ID。 使用说明: - 只能挂载到该虚拟私有云下。 - 只能添加该虚拟私有云下的后端服务器或跨VPC的后端服务器。 - type必须指定为instance。 [- pool的protocol为IP时,必须指定vpc_id,且与LB的vpc_id相同。](tag:hws_eu) 没有指定vpc_id的约束: - 后续添加后端服务器时,vpc_id由后端服务器所在的虚拟私有云确定。 :type vpc_id: str - :param type: 后端服务器组的类型。 取值: - instance:允许任意类型的后端,type指定为该类型时,vpc_id是必选字段。 - ip:只能添加跨VPC后端,type指定为该类型时,vpc_id不允许指定。 使用说明: - 不传表示允许任意类型的后端,并返回type为空字符串。 - listener_id,loadbalancer_id,type至少指定一个。 [- 共享型实例的后端服务器组loadbalancer_id和listener_id至少指定一个。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) + :param type: 后端服务器组的类型。 取值: - instance:允许任意类型的后端,type指定为该类型时,vpc_id是必选字段。 - ip:只能添加跨VPC后端,type指定为该类型时,vpc_id不允许指定。[pool的protocol为IP时,type不允许设置为ip。](tag:hws_eu)] 使用说明: - 不传表示允许任意类型的后端,并返回type为空字符串。 - listener_id,loadbalancer_id,type至少指定一个。 [- 共享型实例的后端服务器组loadbalancer_id和listener_id至少指定一个。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) :type type: str :param ip_version: 后端云服务器组支持的IP版本。 [取值: - 共享型:固定为v4; - 独享型:取值dualstack、v4、v6。当协议为TCP/UDP时,ip_version为dualstack,表示双栈。 当协议为HTTP时,ip_version为v4。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs) [取值:dualstack、v4、v6。当协议为TCP/UDP时,ip_version为dualstack,表示双栈。 当协议为HTTP时,ip_version为v4。](tag:hcso_dt) [不支持IPv6,只会返回v4。](tag:dt,dt_test) :type ip_version: str @@ -220,7 +220,7 @@ def description(self, description): def lb_algorithm(self): """Gets the lb_algorithm of this CreatePoolOption. - 后端云服务器组的负载均衡算法。 取值: - ROUND_ROBIN:加权轮询算法。 - LEAST_CONNECTIONS:加权最少连接算法。 - SOURCE_IP:源IP算法。 - QUIC_CID:连接ID算法。 [- 2_TUPLE_HASH:二元组hash算法,仅IP类型的pool支持。 - 3_TUPLE_HASH:三元组hash算法,仅IP类型的pool支持。 - 4_TUPLE_HASH:五元组hash算法,仅IP类型的pool支持。](tag:hws_eu 使用说明: - 当该字段的取值为SOURCE_IP时,后端云服务器组绑定的后端云服务器的weight字段无效。 - 只有pool的protocol为QUIC时,才支持QUIC_CID算法。 [不支持QUIC_CID。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC_CID。](tag:dt,dt_test) + 后端云服务器组的负载均衡算法。 取值: - ROUND_ROBIN:加权轮询算法。 - LEAST_CONNECTIONS:加权最少连接算法。 - SOURCE_IP:源IP算法。 - QUIC_CID:连接ID算法。 [- 2_TUPLE_HASH:二元组hash算法,仅IP类型的pool支持。 - 3_TUPLE_HASH:三元组hash算法,仅IP类型的pool支持。 - 5_TUPLE_HASH:五元组hash算法,仅IP类型的pool支持。 - IP型pool不指定该字段时,默认设置为5_TUPLE_HASH。](tag:hws_eu) 使用说明: - 当该字段的取值为SOURCE_IP时,后端云服务器组绑定的后端云服务器的weight字段无效。 - 只有pool的protocol为QUIC时,才支持QUIC_CID算法。 [不支持QUIC_CID。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC_CID。](tag:dt,dt_test) :return: The lb_algorithm of this CreatePoolOption. :rtype: str @@ -231,7 +231,7 @@ def lb_algorithm(self): def lb_algorithm(self, lb_algorithm): """Sets the lb_algorithm of this CreatePoolOption. - 后端云服务器组的负载均衡算法。 取值: - ROUND_ROBIN:加权轮询算法。 - LEAST_CONNECTIONS:加权最少连接算法。 - SOURCE_IP:源IP算法。 - QUIC_CID:连接ID算法。 [- 2_TUPLE_HASH:二元组hash算法,仅IP类型的pool支持。 - 3_TUPLE_HASH:三元组hash算法,仅IP类型的pool支持。 - 4_TUPLE_HASH:五元组hash算法,仅IP类型的pool支持。](tag:hws_eu 使用说明: - 当该字段的取值为SOURCE_IP时,后端云服务器组绑定的后端云服务器的weight字段无效。 - 只有pool的protocol为QUIC时,才支持QUIC_CID算法。 [不支持QUIC_CID。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC_CID。](tag:dt,dt_test) + 后端云服务器组的负载均衡算法。 取值: - ROUND_ROBIN:加权轮询算法。 - LEAST_CONNECTIONS:加权最少连接算法。 - SOURCE_IP:源IP算法。 - QUIC_CID:连接ID算法。 [- 2_TUPLE_HASH:二元组hash算法,仅IP类型的pool支持。 - 3_TUPLE_HASH:三元组hash算法,仅IP类型的pool支持。 - 5_TUPLE_HASH:五元组hash算法,仅IP类型的pool支持。 - IP型pool不指定该字段时,默认设置为5_TUPLE_HASH。](tag:hws_eu) 使用说明: - 当该字段的取值为SOURCE_IP时,后端云服务器组绑定的后端云服务器的weight字段无效。 - 只有pool的protocol为QUIC时,才支持QUIC_CID算法。 [不支持QUIC_CID。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC_CID。](tag:dt,dt_test) :param lb_algorithm: The lb_algorithm of this CreatePoolOption. :type lb_algorithm: str @@ -330,7 +330,7 @@ def project_id(self, project_id): def protocol(self): """Gets the protocol of this CreatePoolOption. - 后端云服务器组的后端协议。 取值:TCP、UDP、[IP、](tag:hws_eu)TLS、GRPC、HTTP、HTTPS和QUIC。 使用说明: - listener的protocol为UDP时,pool的protocol必须为UDP或QUIC。 - listener的protocol为TCP时pool的protocol必须为TCP。 [- listener的protocol为IP时,pool的protocol必须为IP。](tag:hws_eu) - listener的protocol为HTTP时,pool的protocol必须为HTTP。 - listener的protocol为HTTPS时,pool的protocol必须为HTTP、HTTPS或GRPC。 - listener的protocol为TERMINATED_HTTPS时,pool的protocol必须为HTTP。 - listener的protocol为QUIC时,pool的protocol必须为HTTP、HTTPS或GRPC。 - listener的protocol为TLS时,pool的protocol必须为TLS或TCP(且只能使用ip_version为v4的TCP pool)。 - 若pool的protocol为QUIC,则必须开启session_persistence且type为SOURCE_IP。 - 若pool的protocol为GRPC,关联监听器的http2_enable必须为true。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) + 后端云服务器组的后端协议。 取值:TCP、UDP、[IP、](tag:hws_eu)TLS、gRPC、HTTP、HTTPS和QUIC。 使用说明: - listener的protocol为UDP时,pool的protocol必须为UDP或QUIC。 - listener的protocol为TCP时pool的protocol必须为TCP。 [- listener的protocol为IP时,pool的protocol必须为IP。](tag:hws_eu) - listener的protocol为HTTP时,pool的protocol必须为HTTP。 - listener的protocol为HTTPS时,pool的protocol必须为HTTP、HTTPS或gRPC。 - listener的protocol为TERMINATED_HTTPS时,pool的protocol必须为HTTP。 - listener的protocol为QUIC时,pool的protocol必须为HTTP、HTTPS或gRPC。 - listener的protocol为TLS时,pool的protocol必须为TLS或TCP(且只能使用ip_version为v4的TCP pool)。 - 若pool的protocol为QUIC,则必须开启session_persistence且type为SOURCE_IP。 - 若pool的protocol为gRPC,关联监听器的http2_enable必须为true。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) :return: The protocol of this CreatePoolOption. :rtype: str @@ -341,7 +341,7 @@ def protocol(self): def protocol(self, protocol): """Sets the protocol of this CreatePoolOption. - 后端云服务器组的后端协议。 取值:TCP、UDP、[IP、](tag:hws_eu)TLS、GRPC、HTTP、HTTPS和QUIC。 使用说明: - listener的protocol为UDP时,pool的protocol必须为UDP或QUIC。 - listener的protocol为TCP时pool的protocol必须为TCP。 [- listener的protocol为IP时,pool的protocol必须为IP。](tag:hws_eu) - listener的protocol为HTTP时,pool的protocol必须为HTTP。 - listener的protocol为HTTPS时,pool的protocol必须为HTTP、HTTPS或GRPC。 - listener的protocol为TERMINATED_HTTPS时,pool的protocol必须为HTTP。 - listener的protocol为QUIC时,pool的protocol必须为HTTP、HTTPS或GRPC。 - listener的protocol为TLS时,pool的protocol必须为TLS或TCP(且只能使用ip_version为v4的TCP pool)。 - 若pool的protocol为QUIC,则必须开启session_persistence且type为SOURCE_IP。 - 若pool的protocol为GRPC,关联监听器的http2_enable必须为true。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) + 后端云服务器组的后端协议。 取值:TCP、UDP、[IP、](tag:hws_eu)TLS、gRPC、HTTP、HTTPS和QUIC。 使用说明: - listener的protocol为UDP时,pool的protocol必须为UDP或QUIC。 - listener的protocol为TCP时pool的protocol必须为TCP。 [- listener的protocol为IP时,pool的protocol必须为IP。](tag:hws_eu) - listener的protocol为HTTP时,pool的protocol必须为HTTP。 - listener的protocol为HTTPS时,pool的protocol必须为HTTP、HTTPS或gRPC。 - listener的protocol为TERMINATED_HTTPS时,pool的protocol必须为HTTP。 - listener的protocol为QUIC时,pool的protocol必须为HTTP、HTTPS或gRPC。 - listener的protocol为TLS时,pool的protocol必须为TLS或TCP(且只能使用ip_version为v4的TCP pool)。 - 若pool的protocol为QUIC,则必须开启session_persistence且type为SOURCE_IP。 - 若pool的protocol为gRPC,关联监听器的http2_enable必须为true。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) :param protocol: The protocol of this CreatePoolOption. :type protocol: str @@ -410,7 +410,7 @@ def member_deletion_protection_enable(self, member_deletion_protection_enable): def vpc_id(self): """Gets the vpc_id of this CreatePoolOption. - 后端云服务器组关联的虚拟私有云的ID。 使用说明: - 只能挂载到该虚拟私有云下。 - 只能添加该虚拟私有云下的后端服务器或跨VPC的后端服务器。 - type必须指定为instance。 没有指定vpc_id的约束: - 后续添加后端服务器时,vpc_id由后端服务器所在的虚拟私有云确定。 + 后端云服务器组关联的虚拟私有云的ID。 使用说明: - 只能挂载到该虚拟私有云下。 - 只能添加该虚拟私有云下的后端服务器或跨VPC的后端服务器。 - type必须指定为instance。 [- pool的protocol为IP时,必须指定vpc_id,且与LB的vpc_id相同。](tag:hws_eu) 没有指定vpc_id的约束: - 后续添加后端服务器时,vpc_id由后端服务器所在的虚拟私有云确定。 :return: The vpc_id of this CreatePoolOption. :rtype: str @@ -421,7 +421,7 @@ def vpc_id(self): def vpc_id(self, vpc_id): """Sets the vpc_id of this CreatePoolOption. - 后端云服务器组关联的虚拟私有云的ID。 使用说明: - 只能挂载到该虚拟私有云下。 - 只能添加该虚拟私有云下的后端服务器或跨VPC的后端服务器。 - type必须指定为instance。 没有指定vpc_id的约束: - 后续添加后端服务器时,vpc_id由后端服务器所在的虚拟私有云确定。 + 后端云服务器组关联的虚拟私有云的ID。 使用说明: - 只能挂载到该虚拟私有云下。 - 只能添加该虚拟私有云下的后端服务器或跨VPC的后端服务器。 - type必须指定为instance。 [- pool的protocol为IP时,必须指定vpc_id,且与LB的vpc_id相同。](tag:hws_eu) 没有指定vpc_id的约束: - 后续添加后端服务器时,vpc_id由后端服务器所在的虚拟私有云确定。 :param vpc_id: The vpc_id of this CreatePoolOption. :type vpc_id: str @@ -432,7 +432,7 @@ def vpc_id(self, vpc_id): def type(self): """Gets the type of this CreatePoolOption. - 后端服务器组的类型。 取值: - instance:允许任意类型的后端,type指定为该类型时,vpc_id是必选字段。 - ip:只能添加跨VPC后端,type指定为该类型时,vpc_id不允许指定。 使用说明: - 不传表示允许任意类型的后端,并返回type为空字符串。 - listener_id,loadbalancer_id,type至少指定一个。 [- 共享型实例的后端服务器组loadbalancer_id和listener_id至少指定一个。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) + 后端服务器组的类型。 取值: - instance:允许任意类型的后端,type指定为该类型时,vpc_id是必选字段。 - ip:只能添加跨VPC后端,type指定为该类型时,vpc_id不允许指定。[pool的protocol为IP时,type不允许设置为ip。](tag:hws_eu)] 使用说明: - 不传表示允许任意类型的后端,并返回type为空字符串。 - listener_id,loadbalancer_id,type至少指定一个。 [- 共享型实例的后端服务器组loadbalancer_id和listener_id至少指定一个。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) :return: The type of this CreatePoolOption. :rtype: str @@ -443,7 +443,7 @@ def type(self): def type(self, type): """Sets the type of this CreatePoolOption. - 后端服务器组的类型。 取值: - instance:允许任意类型的后端,type指定为该类型时,vpc_id是必选字段。 - ip:只能添加跨VPC后端,type指定为该类型时,vpc_id不允许指定。 使用说明: - 不传表示允许任意类型的后端,并返回type为空字符串。 - listener_id,loadbalancer_id,type至少指定一个。 [- 共享型实例的后端服务器组loadbalancer_id和listener_id至少指定一个。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) + 后端服务器组的类型。 取值: - instance:允许任意类型的后端,type指定为该类型时,vpc_id是必选字段。 - ip:只能添加跨VPC后端,type指定为该类型时,vpc_id不允许指定。[pool的protocol为IP时,type不允许设置为ip。](tag:hws_eu)] 使用说明: - 不传表示允许任意类型的后端,并返回type为空字符串。 - listener_id,loadbalancer_id,type至少指定一个。 [- 共享型实例的后端服务器组loadbalancer_id和listener_id至少指定一个。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) :param type: The type of this CreatePoolOption. :type type: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_pool_session_persistence_option.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_pool_session_persistence_option.py index 71af1385b6..720da978f1 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_pool_session_persistence_option.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_pool_session_persistence_option.py @@ -33,7 +33,7 @@ def __init__(self, cookie_name=None, type=None, persistence_timeout=None): The model defined in huaweicloud sdk - :param cookie_name: cookie名称。 [共享型LB,支持字母、数字、中划线(-)和下划线(_),最大长度64个字符。 独享型LB,支持字母、数字、中划线(-)、下划线(_)和点号(.),最大长度255个字符。](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt,hk_tm) [支持字母、数字、中划线(-)、下划线(_)和点号(.),最大长度255个字符。](tag:hws_eu,hcso_dt) 使用说明: - 只有当type为APP_COOKIE时才有效。其他情况下传该字段会报错。 [不支持该字段,请勿使用。](tag:hws_eu,hcso_dt) + :param cookie_name: cookie名称。 [共享型LB,支持字母、数字、中划线(-)和下划线(_),最大长度64个字符。 独享型LB,支持字母、数字、中划线(-)、下划线(_)和点号(.),最大长度255个字符。](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt,hk_tm) [支持字母、数字、中划线(-)、下划线(_)和点号(.),最大长度255个字符。](tag:hws_eu,hcso_dt) 使用说明: - 只有当type为APP_COOKIE时才有效。其他情况下传该字段会报错。 [网关型LB,不支持该特性,请勿使用。](tag:hws_eu) [不支持该字段,请勿使用。](tag:hws_eu,hcso_dt) :type cookie_name: str :param type: 会话保持类型。 取值范围:SOURCE_IP、HTTP_COOKIE、APP_COOKIE。 [使用说明: - 当pool的protocol为TCP、UDP,无论type取值如何,都会被忽略,会话保持只按SOURCE_IP生效; - 当pool的protocol为HTTP、HTTPS时。type可以为HTTP_COOKIE和APP_COOKIE,其他取值会话保持失效。 - 若pool的protocol为QUIC,则必须开启session_persistence且type为SOURCE_IP。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt) [使用说明: - 当pool的protocol为TCP、UDP,无论type取值如何,都会被忽略,会话保持只按SOURCE_IP生效; - 当pool的protocol为HTTP、HTTPS时。 type只能为HTTP_COOKIE,其他取值会话保持失效。](tag:hws_eu,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) [不支持QUIC。](tag:tm) :type type: str @@ -58,7 +58,7 @@ def __init__(self, cookie_name=None, type=None, persistence_timeout=None): def cookie_name(self): """Gets the cookie_name of this CreatePoolSessionPersistenceOption. - cookie名称。 [共享型LB,支持字母、数字、中划线(-)和下划线(_),最大长度64个字符。 独享型LB,支持字母、数字、中划线(-)、下划线(_)和点号(.),最大长度255个字符。](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt,hk_tm) [支持字母、数字、中划线(-)、下划线(_)和点号(.),最大长度255个字符。](tag:hws_eu,hcso_dt) 使用说明: - 只有当type为APP_COOKIE时才有效。其他情况下传该字段会报错。 [不支持该字段,请勿使用。](tag:hws_eu,hcso_dt) + cookie名称。 [共享型LB,支持字母、数字、中划线(-)和下划线(_),最大长度64个字符。 独享型LB,支持字母、数字、中划线(-)、下划线(_)和点号(.),最大长度255个字符。](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt,hk_tm) [支持字母、数字、中划线(-)、下划线(_)和点号(.),最大长度255个字符。](tag:hws_eu,hcso_dt) 使用说明: - 只有当type为APP_COOKIE时才有效。其他情况下传该字段会报错。 [网关型LB,不支持该特性,请勿使用。](tag:hws_eu) [不支持该字段,请勿使用。](tag:hws_eu,hcso_dt) :return: The cookie_name of this CreatePoolSessionPersistenceOption. :rtype: str @@ -69,7 +69,7 @@ def cookie_name(self): def cookie_name(self, cookie_name): """Sets the cookie_name of this CreatePoolSessionPersistenceOption. - cookie名称。 [共享型LB,支持字母、数字、中划线(-)和下划线(_),最大长度64个字符。 独享型LB,支持字母、数字、中划线(-)、下划线(_)和点号(.),最大长度255个字符。](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt,hk_tm) [支持字母、数字、中划线(-)、下划线(_)和点号(.),最大长度255个字符。](tag:hws_eu,hcso_dt) 使用说明: - 只有当type为APP_COOKIE时才有效。其他情况下传该字段会报错。 [不支持该字段,请勿使用。](tag:hws_eu,hcso_dt) + cookie名称。 [共享型LB,支持字母、数字、中划线(-)和下划线(_),最大长度64个字符。 独享型LB,支持字母、数字、中划线(-)、下划线(_)和点号(.),最大长度255个字符。](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt,hk_tm) [支持字母、数字、中划线(-)、下划线(_)和点号(.),最大长度255个字符。](tag:hws_eu,hcso_dt) 使用说明: - 只有当type为APP_COOKIE时才有效。其他情况下传该字段会报错。 [网关型LB,不支持该特性,请勿使用。](tag:hws_eu) [不支持该字段,请勿使用。](tag:hws_eu,hcso_dt) :param cookie_name: The cookie_name of this CreatePoolSessionPersistenceOption. :type cookie_name: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_redirect_pools_config.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_redirect_pools_config.py index b2b4c90f94..cb1fc950b4 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_redirect_pools_config.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_redirect_pools_config.py @@ -31,9 +31,9 @@ def __init__(self, pool_id=None, weight=None): The model defined in huaweicloud sdk - :param pool_id: 所在后端服务器组ID。 + :param pool_id: 参数解释:所在后端服务器组ID。 :type pool_id: str - :param weight: 转发策略主机组的权重,取值范围为[1,100],默认为1。请求将根据该权重进行负载分发到不同的主机组。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 + :param weight: 参数解释:转发策略主机组的权重。请求将根据该权重进行负载分发到不同的主机组。权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 取值范围:1-100 默认取值:1 :type weight: str """ @@ -51,7 +51,7 @@ def __init__(self, pool_id=None, weight=None): def pool_id(self): """Gets the pool_id of this CreateRedirectPoolsConfig. - 所在后端服务器组ID。 + 参数解释:所在后端服务器组ID。 :return: The pool_id of this CreateRedirectPoolsConfig. :rtype: str @@ -62,7 +62,7 @@ def pool_id(self): def pool_id(self, pool_id): """Sets the pool_id of this CreateRedirectPoolsConfig. - 所在后端服务器组ID。 + 参数解释:所在后端服务器组ID。 :param pool_id: The pool_id of this CreateRedirectPoolsConfig. :type pool_id: str @@ -73,7 +73,7 @@ def pool_id(self, pool_id): def weight(self): """Gets the weight of this CreateRedirectPoolsConfig. - 转发策略主机组的权重,取值范围为[1,100],默认为1。请求将根据该权重进行负载分发到不同的主机组。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 + 参数解释:转发策略主机组的权重。请求将根据该权重进行负载分发到不同的主机组。权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 取值范围:1-100 默认取值:1 :return: The weight of this CreateRedirectPoolsConfig. :rtype: str @@ -84,7 +84,7 @@ def weight(self): def weight(self, weight): """Sets the weight of this CreateRedirectPoolsConfig. - 转发策略主机组的权重,取值范围为[1,100],默认为1。请求将根据该权重进行负载分发到不同的主机组。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 + 参数解释:转发策略主机组的权重。请求将根据该权重进行负载分发到不同的主机组。权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 取值范围:1-100 默认取值:1 :param weight: The weight of this CreateRedirectPoolsConfig. :type weight: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_redirect_pools_extend_config.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_redirect_pools_extend_config.py index d5673f0070..4376e8e963 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_redirect_pools_extend_config.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_redirect_pools_extend_config.py @@ -37,7 +37,7 @@ def __init__(self, rewrite_url_enable=None, rewrite_url_config=None, insert_head The model defined in huaweicloud sdk - :param rewrite_url_enable: 是否开启url重定向。 + :param rewrite_url_enable: 参数解释:是否开启url重定向。 :type rewrite_url_enable: bool :param rewrite_url_config: :type rewrite_url_config: :class:`huaweicloudsdkelb.v3.CreateRewriteUrlConfig` @@ -73,7 +73,7 @@ def __init__(self, rewrite_url_enable=None, rewrite_url_config=None, insert_head def rewrite_url_enable(self): """Gets the rewrite_url_enable of this CreateRedirectPoolsExtendConfig. - 是否开启url重定向。 + 参数解释:是否开启url重定向。 :return: The rewrite_url_enable of this CreateRedirectPoolsExtendConfig. :rtype: bool @@ -84,7 +84,7 @@ def rewrite_url_enable(self): def rewrite_url_enable(self, rewrite_url_enable): """Sets the rewrite_url_enable of this CreateRedirectPoolsExtendConfig. - 是否开启url重定向。 + 参数解释:是否开启url重定向。 :param rewrite_url_enable: The rewrite_url_enable of this CreateRedirectPoolsExtendConfig. :type rewrite_url_enable: bool diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_redirect_pools_sticky_session_config.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_redirect_pools_sticky_session_config.py index 46e9e11aea..efc3d13757 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_redirect_pools_sticky_session_config.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_redirect_pools_sticky_session_config.py @@ -31,9 +31,9 @@ def __init__(self, enable=None, timeout=None): The model defined in huaweicloud sdk - :param enable: 转发策略主机组会话保持开启的开关。 默认值为false,表示关闭主机组会话保持。 + :param enable: 参数解释:转发策略主机组会话保持开启的开关。 默认取值:false,表示关闭主机组会话保持。 :type enable: bool - :param timeout: 会话保持的时间。 适用范围:范围为[1,1440](分钟),默认值1440。 [荷兰region不支持QUIC。](tag:dt,dt_test) + :param timeout: 参数解释:会话保持的时间。 取值范围:1-1440(分钟) 默认取值:1440 [荷兰region不支持QUIC。](tag:dt,dt_test) :type timeout: int """ @@ -52,7 +52,7 @@ def __init__(self, enable=None, timeout=None): def enable(self): """Gets the enable of this CreateRedirectPoolsStickySessionConfig. - 转发策略主机组会话保持开启的开关。 默认值为false,表示关闭主机组会话保持。 + 参数解释:转发策略主机组会话保持开启的开关。 默认取值:false,表示关闭主机组会话保持。 :return: The enable of this CreateRedirectPoolsStickySessionConfig. :rtype: bool @@ -63,7 +63,7 @@ def enable(self): def enable(self, enable): """Sets the enable of this CreateRedirectPoolsStickySessionConfig. - 转发策略主机组会话保持开启的开关。 默认值为false,表示关闭主机组会话保持。 + 参数解释:转发策略主机组会话保持开启的开关。 默认取值:false,表示关闭主机组会话保持。 :param enable: The enable of this CreateRedirectPoolsStickySessionConfig. :type enable: bool @@ -74,7 +74,7 @@ def enable(self, enable): def timeout(self): """Gets the timeout of this CreateRedirectPoolsStickySessionConfig. - 会话保持的时间。 适用范围:范围为[1,1440](分钟),默认值1440。 [荷兰region不支持QUIC。](tag:dt,dt_test) + 参数解释:会话保持的时间。 取值范围:1-1440(分钟) 默认取值:1440 [荷兰region不支持QUIC。](tag:dt,dt_test) :return: The timeout of this CreateRedirectPoolsStickySessionConfig. :rtype: int @@ -85,7 +85,7 @@ def timeout(self): def timeout(self, timeout): """Sets the timeout of this CreateRedirectPoolsStickySessionConfig. - 会话保持的时间。 适用范围:范围为[1,1440](分钟),默认值1440。 [荷兰region不支持QUIC。](tag:dt,dt_test) + 参数解释:会话保持的时间。 取值范围:1-1440(分钟) 默认取值:1440 [荷兰region不支持QUIC。](tag:dt,dt_test) :param timeout: The timeout of this CreateRedirectPoolsStickySessionConfig. :type timeout: int diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_redirect_url_config.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_redirect_url_config.py index 6ae47fb7e0..ec08e2d17b 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_redirect_url_config.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_redirect_url_config.py @@ -43,17 +43,17 @@ def __init__(self, protocol=None, host=None, port=None, path=None, query=None, s The model defined in huaweicloud sdk - :param protocol: 重定向的协议。默认值${protocol}表示继承原值(即与被转发请求保持一致)。 取值范围: - HTTP - HTTPS - ${protocol} + :param protocol: 参数解释:重定向的协议。 取值范围: - HTTP - HTTPS - ${protocol},表示继承原值(即与被转发请求保持一致)。 默认取值:${protocol} :type protocol: str - :param host: 重定向的主机名。字符串只能包含英文字母、数字、“-”、“.”,必须以字母、数字开头。 默认值${host}表示继承原值(即与被转发请求保持一致)。 + :param host: 参数解释:重定向的主机名。 取值范围:字符串只能包含英文字母、数字、“-”、“.”,必须以字母、数字开头。 默认取值:${host},表示继承原值(即与被转发请求保持一致)。 :type host: str - :param port: 重定向到的端口。默认值${port}表示继承原值(即与被转发请求保持一致)。 + :param port: 参数解释:重定向到的端口。 默认取值:${port},表示继承原值(即与被转发请求保持一致)。 :type port: str - :param path: 重定向的路径。默认值${path}表示继承原值(即与被转发请求保持一致)。 只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以\"/\"开头。其中$1,$2会匹配请求url通配符星号(*) + :param path: 参数解释:重定向的路径。 取值范围:只能包含英文字母、数字、_~';@^-%#&$.\\*+?,=!:|\\/()\\[\\]{},且必须以\"/\"开头。其中$1,$2会匹配请求url通配符星号(\\*) 默认取值:${path},表示继承原值(即与被转发请求保持一致)。 :type path: str - :param query: 重定向的查询字符串。默认${query}表示继承原值(即与被转发请求保持一致)。举例如下: 若该字段被设置为:${query}&name=my_name,则在转发符合条件的URL (如https://www.example.com:8080/elb?type=loadbalancer, 此时${query}表示type=loadbalancer)时,将会重定向到 https://www.example.com:8080/elb?type=loadbalancer&name=my_name。 只能包含英文字母、数字和特殊字符:!$&'()*+,-./:;=?@^_`。字母区分大小写。其中$1,$2会匹配请求url通配符星号(*) + :param query: 参数解释:重定向的查询字符串。举例如下: 将query设置为:${query}&name=my_name,则在转发符合条件的URL (如https://www.example.com:8080/elb?type=loadbalancer)时,将会重定向到 https://www.example.com:8080/elb?type=loadbalancer&name=my_name。在例子中${query}表示type=loadbalancer。 取值范围:只能包含英文字母、数字和特殊字符:!$&'()\\*+,-./:;=?@^_`。字母区分大小写。其中$1,$2会匹配请求url通配符星号(\\*) 默认取值:${query}表示继承原值(即与被转发请求保持一致) :type query: str - :param status_code: 重定向后的返回码。 取值范围: - 301 - 302 - 303 - 307 - 308 + :param status_code: 参数解释:重定向后的返回码。 取值范围: - 301 - 302 - 303 - 307 - 308 :type status_code: str :param insert_headers_config: :type insert_headers_config: :class:`huaweicloudsdkelb.v3.CreateInsertHeadersConfig` @@ -93,7 +93,7 @@ def __init__(self, protocol=None, host=None, port=None, path=None, query=None, s def protocol(self): """Gets the protocol of this CreateRedirectUrlConfig. - 重定向的协议。默认值${protocol}表示继承原值(即与被转发请求保持一致)。 取值范围: - HTTP - HTTPS - ${protocol} + 参数解释:重定向的协议。 取值范围: - HTTP - HTTPS - ${protocol},表示继承原值(即与被转发请求保持一致)。 默认取值:${protocol} :return: The protocol of this CreateRedirectUrlConfig. :rtype: str @@ -104,7 +104,7 @@ def protocol(self): def protocol(self, protocol): """Sets the protocol of this CreateRedirectUrlConfig. - 重定向的协议。默认值${protocol}表示继承原值(即与被转发请求保持一致)。 取值范围: - HTTP - HTTPS - ${protocol} + 参数解释:重定向的协议。 取值范围: - HTTP - HTTPS - ${protocol},表示继承原值(即与被转发请求保持一致)。 默认取值:${protocol} :param protocol: The protocol of this CreateRedirectUrlConfig. :type protocol: str @@ -115,7 +115,7 @@ def protocol(self, protocol): def host(self): """Gets the host of this CreateRedirectUrlConfig. - 重定向的主机名。字符串只能包含英文字母、数字、“-”、“.”,必须以字母、数字开头。 默认值${host}表示继承原值(即与被转发请求保持一致)。 + 参数解释:重定向的主机名。 取值范围:字符串只能包含英文字母、数字、“-”、“.”,必须以字母、数字开头。 默认取值:${host},表示继承原值(即与被转发请求保持一致)。 :return: The host of this CreateRedirectUrlConfig. :rtype: str @@ -126,7 +126,7 @@ def host(self): def host(self, host): """Sets the host of this CreateRedirectUrlConfig. - 重定向的主机名。字符串只能包含英文字母、数字、“-”、“.”,必须以字母、数字开头。 默认值${host}表示继承原值(即与被转发请求保持一致)。 + 参数解释:重定向的主机名。 取值范围:字符串只能包含英文字母、数字、“-”、“.”,必须以字母、数字开头。 默认取值:${host},表示继承原值(即与被转发请求保持一致)。 :param host: The host of this CreateRedirectUrlConfig. :type host: str @@ -137,7 +137,7 @@ def host(self, host): def port(self): """Gets the port of this CreateRedirectUrlConfig. - 重定向到的端口。默认值${port}表示继承原值(即与被转发请求保持一致)。 + 参数解释:重定向到的端口。 默认取值:${port},表示继承原值(即与被转发请求保持一致)。 :return: The port of this CreateRedirectUrlConfig. :rtype: str @@ -148,7 +148,7 @@ def port(self): def port(self, port): """Sets the port of this CreateRedirectUrlConfig. - 重定向到的端口。默认值${port}表示继承原值(即与被转发请求保持一致)。 + 参数解释:重定向到的端口。 默认取值:${port},表示继承原值(即与被转发请求保持一致)。 :param port: The port of this CreateRedirectUrlConfig. :type port: str @@ -159,7 +159,7 @@ def port(self, port): def path(self): """Gets the path of this CreateRedirectUrlConfig. - 重定向的路径。默认值${path}表示继承原值(即与被转发请求保持一致)。 只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以\"/\"开头。其中$1,$2会匹配请求url通配符星号(*) + 参数解释:重定向的路径。 取值范围:只能包含英文字母、数字、_~';@^-%#&$.\\*+?,=!:|\\/()\\[\\]{},且必须以\"/\"开头。其中$1,$2会匹配请求url通配符星号(\\*) 默认取值:${path},表示继承原值(即与被转发请求保持一致)。 :return: The path of this CreateRedirectUrlConfig. :rtype: str @@ -170,7 +170,7 @@ def path(self): def path(self, path): """Sets the path of this CreateRedirectUrlConfig. - 重定向的路径。默认值${path}表示继承原值(即与被转发请求保持一致)。 只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以\"/\"开头。其中$1,$2会匹配请求url通配符星号(*) + 参数解释:重定向的路径。 取值范围:只能包含英文字母、数字、_~';@^-%#&$.\\*+?,=!:|\\/()\\[\\]{},且必须以\"/\"开头。其中$1,$2会匹配请求url通配符星号(\\*) 默认取值:${path},表示继承原值(即与被转发请求保持一致)。 :param path: The path of this CreateRedirectUrlConfig. :type path: str @@ -181,7 +181,7 @@ def path(self, path): def query(self): """Gets the query of this CreateRedirectUrlConfig. - 重定向的查询字符串。默认${query}表示继承原值(即与被转发请求保持一致)。举例如下: 若该字段被设置为:${query}&name=my_name,则在转发符合条件的URL (如https://www.example.com:8080/elb?type=loadbalancer, 此时${query}表示type=loadbalancer)时,将会重定向到 https://www.example.com:8080/elb?type=loadbalancer&name=my_name。 只能包含英文字母、数字和特殊字符:!$&'()*+,-./:;=?@^_`。字母区分大小写。其中$1,$2会匹配请求url通配符星号(*) + 参数解释:重定向的查询字符串。举例如下: 将query设置为:${query}&name=my_name,则在转发符合条件的URL (如https://www.example.com:8080/elb?type=loadbalancer)时,将会重定向到 https://www.example.com:8080/elb?type=loadbalancer&name=my_name。在例子中${query}表示type=loadbalancer。 取值范围:只能包含英文字母、数字和特殊字符:!$&'()\\*+,-./:;=?@^_`。字母区分大小写。其中$1,$2会匹配请求url通配符星号(\\*) 默认取值:${query}表示继承原值(即与被转发请求保持一致) :return: The query of this CreateRedirectUrlConfig. :rtype: str @@ -192,7 +192,7 @@ def query(self): def query(self, query): """Sets the query of this CreateRedirectUrlConfig. - 重定向的查询字符串。默认${query}表示继承原值(即与被转发请求保持一致)。举例如下: 若该字段被设置为:${query}&name=my_name,则在转发符合条件的URL (如https://www.example.com:8080/elb?type=loadbalancer, 此时${query}表示type=loadbalancer)时,将会重定向到 https://www.example.com:8080/elb?type=loadbalancer&name=my_name。 只能包含英文字母、数字和特殊字符:!$&'()*+,-./:;=?@^_`。字母区分大小写。其中$1,$2会匹配请求url通配符星号(*) + 参数解释:重定向的查询字符串。举例如下: 将query设置为:${query}&name=my_name,则在转发符合条件的URL (如https://www.example.com:8080/elb?type=loadbalancer)时,将会重定向到 https://www.example.com:8080/elb?type=loadbalancer&name=my_name。在例子中${query}表示type=loadbalancer。 取值范围:只能包含英文字母、数字和特殊字符:!$&'()\\*+,-./:;=?@^_`。字母区分大小写。其中$1,$2会匹配请求url通配符星号(\\*) 默认取值:${query}表示继承原值(即与被转发请求保持一致) :param query: The query of this CreateRedirectUrlConfig. :type query: str @@ -203,7 +203,7 @@ def query(self, query): def status_code(self): """Gets the status_code of this CreateRedirectUrlConfig. - 重定向后的返回码。 取值范围: - 301 - 302 - 303 - 307 - 308 + 参数解释:重定向后的返回码。 取值范围: - 301 - 302 - 303 - 307 - 308 :return: The status_code of this CreateRedirectUrlConfig. :rtype: str @@ -214,7 +214,7 @@ def status_code(self): def status_code(self, status_code): """Sets the status_code of this CreateRedirectUrlConfig. - 重定向后的返回码。 取值范围: - 301 - 302 - 303 - 307 - 308 + 参数解释:重定向后的返回码。 取值范围: - 301 - 302 - 303 - 307 - 308 :param status_code: The status_code of this CreateRedirectUrlConfig. :type status_code: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_remove_header_config.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_remove_header_config.py index a903cab5f9..a1eaf68f60 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_remove_header_config.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_remove_header_config.py @@ -29,7 +29,7 @@ def __init__(self, key=None): The model defined in huaweicloud sdk - :param key: 被移除的请求头的参数名。取值范围: 1-40个字符(不区分大小写)。 支持字母a-z,数字,短划线-和下划线_。 不能移除以下请求头参数: connection、upgrade、content-length、transfer-encoding、keep-alive、te、host、cookie、remoteip、authority、x-forwarded-host、x-forwarded-for、x-forwarded-for-port、x-forwarded-tls-certificate-id、x-forwarded-tls-protocol、x-forwarded-tls-cipher、x-forwarded-elb-ip、x-forwarded-port、x-forwarded-elb-id、x-forwarded-elb-vip、x-real-ip、x-forwarded-proto、x-nuwa-trace-ne-in、x-nuwa-trace-ne-out + :param key: 参数解释:被移除的请求头的参数名。 约束限制:不能移除以下请求头参数: connection、upgrade、content-length、transfer-encoding、keep-alive、te、host、cookie、remoteip、authority、x-forwarded-host、x-forwarded-for、x-forwarded-for-port、x-forwarded-tls-certificate-id、x-forwarded-tls-protocol、x-forwarded-tls-cipher、x-forwarded-elb-ip、x-forwarded-port、x-forwarded-elb-id、x-forwarded-elb-vip、x-real-ip、x-forwarded-proto、x-nuwa-trace-ne-in、x-nuwa-trace-ne-out 取值范围:1-40个字符,字母a-z(不区分大小写)、数字,短划线-和下划线_。 :type key: str """ @@ -44,7 +44,7 @@ def __init__(self, key=None): def key(self): """Gets the key of this CreateRemoveHeaderConfig. - 被移除的请求头的参数名。取值范围: 1-40个字符(不区分大小写)。 支持字母a-z,数字,短划线-和下划线_。 不能移除以下请求头参数: connection、upgrade、content-length、transfer-encoding、keep-alive、te、host、cookie、remoteip、authority、x-forwarded-host、x-forwarded-for、x-forwarded-for-port、x-forwarded-tls-certificate-id、x-forwarded-tls-protocol、x-forwarded-tls-cipher、x-forwarded-elb-ip、x-forwarded-port、x-forwarded-elb-id、x-forwarded-elb-vip、x-real-ip、x-forwarded-proto、x-nuwa-trace-ne-in、x-nuwa-trace-ne-out + 参数解释:被移除的请求头的参数名。 约束限制:不能移除以下请求头参数: connection、upgrade、content-length、transfer-encoding、keep-alive、te、host、cookie、remoteip、authority、x-forwarded-host、x-forwarded-for、x-forwarded-for-port、x-forwarded-tls-certificate-id、x-forwarded-tls-protocol、x-forwarded-tls-cipher、x-forwarded-elb-ip、x-forwarded-port、x-forwarded-elb-id、x-forwarded-elb-vip、x-real-ip、x-forwarded-proto、x-nuwa-trace-ne-in、x-nuwa-trace-ne-out 取值范围:1-40个字符,字母a-z(不区分大小写)、数字,短划线-和下划线_。 :return: The key of this CreateRemoveHeaderConfig. :rtype: str @@ -55,7 +55,7 @@ def key(self): def key(self, key): """Sets the key of this CreateRemoveHeaderConfig. - 被移除的请求头的参数名。取值范围: 1-40个字符(不区分大小写)。 支持字母a-z,数字,短划线-和下划线_。 不能移除以下请求头参数: connection、upgrade、content-length、transfer-encoding、keep-alive、te、host、cookie、remoteip、authority、x-forwarded-host、x-forwarded-for、x-forwarded-for-port、x-forwarded-tls-certificate-id、x-forwarded-tls-protocol、x-forwarded-tls-cipher、x-forwarded-elb-ip、x-forwarded-port、x-forwarded-elb-id、x-forwarded-elb-vip、x-real-ip、x-forwarded-proto、x-nuwa-trace-ne-in、x-nuwa-trace-ne-out + 参数解释:被移除的请求头的参数名。 约束限制:不能移除以下请求头参数: connection、upgrade、content-length、transfer-encoding、keep-alive、te、host、cookie、remoteip、authority、x-forwarded-host、x-forwarded-for、x-forwarded-for-port、x-forwarded-tls-certificate-id、x-forwarded-tls-protocol、x-forwarded-tls-cipher、x-forwarded-elb-ip、x-forwarded-port、x-forwarded-elb-id、x-forwarded-elb-vip、x-real-ip、x-forwarded-proto、x-nuwa-trace-ne-in、x-nuwa-trace-ne-out 取值范围:1-40个字符,字母a-z(不区分大小写)、数字,短划线-和下划线_。 :param key: The key of this CreateRemoveHeaderConfig. :type key: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_remove_headers_config.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_remove_headers_config.py index 33cc54a051..92fae4512c 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_remove_headers_config.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_remove_headers_config.py @@ -29,7 +29,7 @@ def __init__(self, configs=None): The model defined in huaweicloud sdk - :param configs: 要移除的请求头参数列表。 + :param configs: 参数解释:要移除的请求头参数列表。 :type configs: list[:class:`huaweicloudsdkelb.v3.CreateRemoveHeaderConfig`] """ @@ -44,7 +44,7 @@ def __init__(self, configs=None): def configs(self): """Gets the configs of this CreateRemoveHeadersConfig. - 要移除的请求头参数列表。 + 参数解释:要移除的请求头参数列表。 :return: The configs of this CreateRemoveHeadersConfig. :rtype: list[:class:`huaweicloudsdkelb.v3.CreateRemoveHeaderConfig`] @@ -55,7 +55,7 @@ def configs(self): def configs(self, configs): """Sets the configs of this CreateRemoveHeadersConfig. - 要移除的请求头参数列表。 + 参数解释:要移除的请求头参数列表。 :param configs: The configs of this CreateRemoveHeadersConfig. :type configs: list[:class:`huaweicloudsdkelb.v3.CreateRemoveHeaderConfig`] diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_rewrite_url_config.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_rewrite_url_config.py index 19e3b9908b..e9f3b9d964 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_rewrite_url_config.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_rewrite_url_config.py @@ -33,11 +33,11 @@ def __init__(self, host=None, path=None, query=None): The model defined in huaweicloud sdk - :param host: 重定向的域名。取值只能包含英文字母、数字、“-”、“.”,必须以字母、数字开头。 默认值${host},表示继承原值(即与被重写请求host保持一致)。 + :param host: 参数解释:重定向的域名。 取值范围:英文字母、数字、“-”、“.”,必须以字母、数字开头。 默认取值:${host},表示继承原值(即与被重写请求host保持一致)。 :type host: str - :param path: 重定向的请求路径。 取值只能包含英文字母、数字、_~';@^-%#&$.+?,=!:|/(),且必须以\"/\"开头。其中$1-$9会匹配请求url通配符星号(),当正则匹配分组小于指定数字,则$指定数字结果为空。$后面跟字母,匹配结果均为空,直到下一个特殊字符出现,例如$abc#123,则匹配结果为#123;$后面跟特殊字符则直接输出特殊字符,例如$#匹配结果为$#。 默认值${path}表示继承原值(即与被重写请求保持一致)。 + :param path: 参数解释:重定向的请求路径。其中$1-$9会匹配请求url通配符星号(*),当正则匹配分组小于指定数字,则$指定数字结果为空。$后面跟字母,匹配结果均为空,直到下一个特殊字符出现,例如$abc#123,则匹配结果为#123;$后面跟特殊字符则直接输出特殊字符,例如$#匹配结果为$#。 取值范围:英文字母、数字、_~';@^-%#&$.+?,=!:|/(),且必须以\"/\"开头。 默认值${path}表示继承原值(即与被重写请求保持一致)。 :type path: str - :param query: 重定向的查询字符串。取值只能包含英文字母、数字和特殊字符:!$&'()+,-./:;=?@^_`。字母区分大小写。其中$1-$9会匹配请求url通配符星号(),当正则匹配分组小于指定数字,则$指定数字结果为空。$后面跟字母,匹配结果均为空,直到下一个特殊字符出现,例如$abc#123,则匹配结果为#123;$后面跟特殊字符则直接输出特殊字符,例如$#匹配结果为$#。 默认${query},表示继承原值(即与被重写请求保持一致)。 + :param query: 参数解释:重定向的查询字符串。其中$1-$9会匹配请求url通配符星号(*),当正则匹配分组小于指定数字,则$指定数字结果为空。$后面跟字母,匹配结果均为空,直到下一个特殊字符出现,例如$abc#123,则匹配结果为#123;$后面跟特殊字符则直接输出特殊字符,例如$#匹配结果为$#。 取值范围:英文字母、数字和特殊字符:!$&'()+,-./:;=?@^_`。字母区分大小写。 默认取值:${query},表示继承原值(即与被重写请求保持一致)。 :type query: str """ @@ -59,7 +59,7 @@ def __init__(self, host=None, path=None, query=None): def host(self): """Gets the host of this CreateRewriteUrlConfig. - 重定向的域名。取值只能包含英文字母、数字、“-”、“.”,必须以字母、数字开头。 默认值${host},表示继承原值(即与被重写请求host保持一致)。 + 参数解释:重定向的域名。 取值范围:英文字母、数字、“-”、“.”,必须以字母、数字开头。 默认取值:${host},表示继承原值(即与被重写请求host保持一致)。 :return: The host of this CreateRewriteUrlConfig. :rtype: str @@ -70,7 +70,7 @@ def host(self): def host(self, host): """Sets the host of this CreateRewriteUrlConfig. - 重定向的域名。取值只能包含英文字母、数字、“-”、“.”,必须以字母、数字开头。 默认值${host},表示继承原值(即与被重写请求host保持一致)。 + 参数解释:重定向的域名。 取值范围:英文字母、数字、“-”、“.”,必须以字母、数字开头。 默认取值:${host},表示继承原值(即与被重写请求host保持一致)。 :param host: The host of this CreateRewriteUrlConfig. :type host: str @@ -81,7 +81,7 @@ def host(self, host): def path(self): """Gets the path of this CreateRewriteUrlConfig. - 重定向的请求路径。 取值只能包含英文字母、数字、_~';@^-%#&$.+?,=!:|/(),且必须以\"/\"开头。其中$1-$9会匹配请求url通配符星号(),当正则匹配分组小于指定数字,则$指定数字结果为空。$后面跟字母,匹配结果均为空,直到下一个特殊字符出现,例如$abc#123,则匹配结果为#123;$后面跟特殊字符则直接输出特殊字符,例如$#匹配结果为$#。 默认值${path}表示继承原值(即与被重写请求保持一致)。 + 参数解释:重定向的请求路径。其中$1-$9会匹配请求url通配符星号(*),当正则匹配分组小于指定数字,则$指定数字结果为空。$后面跟字母,匹配结果均为空,直到下一个特殊字符出现,例如$abc#123,则匹配结果为#123;$后面跟特殊字符则直接输出特殊字符,例如$#匹配结果为$#。 取值范围:英文字母、数字、_~';@^-%#&$.+?,=!:|/(),且必须以\"/\"开头。 默认值${path}表示继承原值(即与被重写请求保持一致)。 :return: The path of this CreateRewriteUrlConfig. :rtype: str @@ -92,7 +92,7 @@ def path(self): def path(self, path): """Sets the path of this CreateRewriteUrlConfig. - 重定向的请求路径。 取值只能包含英文字母、数字、_~';@^-%#&$.+?,=!:|/(),且必须以\"/\"开头。其中$1-$9会匹配请求url通配符星号(),当正则匹配分组小于指定数字,则$指定数字结果为空。$后面跟字母,匹配结果均为空,直到下一个特殊字符出现,例如$abc#123,则匹配结果为#123;$后面跟特殊字符则直接输出特殊字符,例如$#匹配结果为$#。 默认值${path}表示继承原值(即与被重写请求保持一致)。 + 参数解释:重定向的请求路径。其中$1-$9会匹配请求url通配符星号(*),当正则匹配分组小于指定数字,则$指定数字结果为空。$后面跟字母,匹配结果均为空,直到下一个特殊字符出现,例如$abc#123,则匹配结果为#123;$后面跟特殊字符则直接输出特殊字符,例如$#匹配结果为$#。 取值范围:英文字母、数字、_~';@^-%#&$.+?,=!:|/(),且必须以\"/\"开头。 默认值${path}表示继承原值(即与被重写请求保持一致)。 :param path: The path of this CreateRewriteUrlConfig. :type path: str @@ -103,7 +103,7 @@ def path(self, path): def query(self): """Gets the query of this CreateRewriteUrlConfig. - 重定向的查询字符串。取值只能包含英文字母、数字和特殊字符:!$&'()+,-./:;=?@^_`。字母区分大小写。其中$1-$9会匹配请求url通配符星号(),当正则匹配分组小于指定数字,则$指定数字结果为空。$后面跟字母,匹配结果均为空,直到下一个特殊字符出现,例如$abc#123,则匹配结果为#123;$后面跟特殊字符则直接输出特殊字符,例如$#匹配结果为$#。 默认${query},表示继承原值(即与被重写请求保持一致)。 + 参数解释:重定向的查询字符串。其中$1-$9会匹配请求url通配符星号(*),当正则匹配分组小于指定数字,则$指定数字结果为空。$后面跟字母,匹配结果均为空,直到下一个特殊字符出现,例如$abc#123,则匹配结果为#123;$后面跟特殊字符则直接输出特殊字符,例如$#匹配结果为$#。 取值范围:英文字母、数字和特殊字符:!$&'()+,-./:;=?@^_`。字母区分大小写。 默认取值:${query},表示继承原值(即与被重写请求保持一致)。 :return: The query of this CreateRewriteUrlConfig. :rtype: str @@ -114,7 +114,7 @@ def query(self): def query(self, query): """Sets the query of this CreateRewriteUrlConfig. - 重定向的查询字符串。取值只能包含英文字母、数字和特殊字符:!$&'()+,-./:;=?@^_`。字母区分大小写。其中$1-$9会匹配请求url通配符星号(),当正则匹配分组小于指定数字,则$指定数字结果为空。$后面跟字母,匹配结果均为空,直到下一个特殊字符出现,例如$abc#123,则匹配结果为#123;$后面跟特殊字符则直接输出特殊字符,例如$#匹配结果为$#。 默认${query},表示继承原值(即与被重写请求保持一致)。 + 参数解释:重定向的查询字符串。其中$1-$9会匹配请求url通配符星号(*),当正则匹配分组小于指定数字,则$指定数字结果为空。$后面跟字母,匹配结果均为空,直到下一个特殊字符出现,例如$abc#123,则匹配结果为#123;$后面跟特殊字符则直接输出特殊字符,例如$#匹配结果为$#。 取值范围:英文字母、数字和特殊字符:!$&'()+,-./:;=?@^_`。字母区分大小写。 默认取值:${query},表示继承原值(即与被重写请求保持一致)。 :param query: The query of this CreateRewriteUrlConfig. :type query: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_rule_condition.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_rule_condition.py index ed0348029a..ef8243b52f 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_rule_condition.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_rule_condition.py @@ -31,9 +31,9 @@ def __init__(self, key=None, value=None): The model defined in huaweicloud sdk - :param key: 匹配项的名称。 当转发规则类别type为HOST_NAME、PATH、METHOD、SOURCE_IP时,该字段固定为空字符串。 当转发规则类别type为HEADER时,key表示请求头参数的名称,value表示请求头参数的值。 key的长度限制1-40字符,只允许包含字母、数字和-_。 当转发规则类别type为QUERY_STRING时,key表示查询参数的名称,value表示查询参数的值。 key的长度限制为1-128字符,不支持空格,中括号,大括号,尖括号, 反斜杠,双引号,'#','&','|',‘%’,‘~’,字母区分大小写。 同一个rule内的conditions列表中所有key必须相同。 + :param key: 参数解释:匹配项的名称。 约束限制:同一个rule内的conditions列表中所有key必须相同。 取值范围: - 当转发规则类别type为HOST_NAME、PATH、METHOD、SOURCE_IP时,该字段固定为空字符串。 - 当转发规则类别type为HEADER时,key表示请求头参数的名称,value表示请求头参数的值。 key的长度限制1-40字符,只允许包含字母、数字和-_。 - 当转发规则类别type为QUERY_STRING时,key表示查询参数的名称,value表示查询参数的值。 key的长度限制为1-128字符,不支持空格,中括号,大括号,尖括号,反斜杠,双引号,'#','&','|',‘%’,‘~’,字母区分大小写。 :type key: str - :param value: 匹配项的值。 当转发规则类别type为HOST_NAME时,key固定为空字符串,value表示域名的值。 value长度1-128字符,字符串只能包含英文字母、数字、-、.或\\*, 必须以字母、数字或\\*开头,\\*只能出现在开头且必须以\\*.开始。 当转发规则类别type为PATH时,key固定为空字符串,value表示请求路径的值。 value长度1-128字符。当转发规则的compare_type为STARTS_WITH、EQUAL_TO时, 字符串只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以/开头。 当转发规则类别type为HEADER时,key表示请求头参数的名称,value表示请求头参数的值。 value长度限制1-128字符,不支持空格, 双引号,支持以下通配符:*(匹配0个或更多字符)和?(正好匹配1个字符)。 当转发规则类别type为QUERY_STRING时,key表示查询参数的名称,value表示查询参数的值。 value长度限制为1-128字符,不支持空格,中括号,大括号,尖括号,反斜杠,双引号, '#','&','|',‘%’,‘~’,字母区分大小写,支持通配符:*(匹配0个或更多字符)和?(正好匹配1个字符) 当转发规则类别type为METHOD时,key固定为空字符串,value表示请求方式。value取值范围为:GET, PUT, POST,DELETE, PATCH, HEAD, OPTIONS。 当转发规则类别type为SOURCE_IP时,key固定为空字符串,value表示请求源地址。 value为CIDR格式,支持ipv4,ipv6。例如192.168.0.2/32,2049::49/64。 同一个rule内的conditions列表中所有value不允许重复。 + :param value: 参数解释:匹配项的值。 约束限制: - 同一个rule内的conditions列表中所有key必须相同。 - 同一个rule内的conditions列表中所有value不允许重复。 取值范围: - 当转发规则类别type为HOST_NAME时,key固定为空字符串,value表示域名的值。 value长度1-128字符,字符串只能包含英文字母、数字、-、.或\\*, 必须以字母、数字或\\*开头,\\*只能出现在开头且必须以\\*.开始。 - 当转发规则类别type为PATH时,key固定为空字符串,value表示请求路径的值。 value长度1-128字符。当转发规则的compare_type为STARTS_WITH、EQUAL_TO时, 字符串只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以/开头。 - 当转发规则类别type为HEADER时,key表示请求头参数的名称,value表示请求头参数的值。 value长度限制1-128字符,不支持空格, 双引号,支持以下通配符:*(匹配0个或更多字符)和?(正好匹配1个字符)。 - 当转发规则类别type为QUERY_STRING时,key表示查询参数的名称,value表示查询参数的值。 value长度限制为1-128字符,不支持空格,中括号,大括号,尖括号,反斜杠,双引号, '#','&','|',‘%’,‘~’,字母区分大小写,支持通配符:*(匹配0个或更多字符)和?(正好匹配1个字符) - 当转发规则类别type为METHOD时,key固定为空字符串,value表示请求方式。value取值范围为:GET, PUT, POST,DELETE, PATCH, HEAD, OPTIONS。 - 当转发规则类别type为SOURCE_IP时,key固定为空字符串,value表示请求源地址。 value为CIDR格式,支持ipv4,ipv6。例如192.168.0.2/32,2049::49/64。 :type value: str """ @@ -51,7 +51,7 @@ def __init__(self, key=None, value=None): def key(self): """Gets the key of this CreateRuleCondition. - 匹配项的名称。 当转发规则类别type为HOST_NAME、PATH、METHOD、SOURCE_IP时,该字段固定为空字符串。 当转发规则类别type为HEADER时,key表示请求头参数的名称,value表示请求头参数的值。 key的长度限制1-40字符,只允许包含字母、数字和-_。 当转发规则类别type为QUERY_STRING时,key表示查询参数的名称,value表示查询参数的值。 key的长度限制为1-128字符,不支持空格,中括号,大括号,尖括号, 反斜杠,双引号,'#','&','|',‘%’,‘~’,字母区分大小写。 同一个rule内的conditions列表中所有key必须相同。 + 参数解释:匹配项的名称。 约束限制:同一个rule内的conditions列表中所有key必须相同。 取值范围: - 当转发规则类别type为HOST_NAME、PATH、METHOD、SOURCE_IP时,该字段固定为空字符串。 - 当转发规则类别type为HEADER时,key表示请求头参数的名称,value表示请求头参数的值。 key的长度限制1-40字符,只允许包含字母、数字和-_。 - 当转发规则类别type为QUERY_STRING时,key表示查询参数的名称,value表示查询参数的值。 key的长度限制为1-128字符,不支持空格,中括号,大括号,尖括号,反斜杠,双引号,'#','&','|',‘%’,‘~’,字母区分大小写。 :return: The key of this CreateRuleCondition. :rtype: str @@ -62,7 +62,7 @@ def key(self): def key(self, key): """Sets the key of this CreateRuleCondition. - 匹配项的名称。 当转发规则类别type为HOST_NAME、PATH、METHOD、SOURCE_IP时,该字段固定为空字符串。 当转发规则类别type为HEADER时,key表示请求头参数的名称,value表示请求头参数的值。 key的长度限制1-40字符,只允许包含字母、数字和-_。 当转发规则类别type为QUERY_STRING时,key表示查询参数的名称,value表示查询参数的值。 key的长度限制为1-128字符,不支持空格,中括号,大括号,尖括号, 反斜杠,双引号,'#','&','|',‘%’,‘~’,字母区分大小写。 同一个rule内的conditions列表中所有key必须相同。 + 参数解释:匹配项的名称。 约束限制:同一个rule内的conditions列表中所有key必须相同。 取值范围: - 当转发规则类别type为HOST_NAME、PATH、METHOD、SOURCE_IP时,该字段固定为空字符串。 - 当转发规则类别type为HEADER时,key表示请求头参数的名称,value表示请求头参数的值。 key的长度限制1-40字符,只允许包含字母、数字和-_。 - 当转发规则类别type为QUERY_STRING时,key表示查询参数的名称,value表示查询参数的值。 key的长度限制为1-128字符,不支持空格,中括号,大括号,尖括号,反斜杠,双引号,'#','&','|',‘%’,‘~’,字母区分大小写。 :param key: The key of this CreateRuleCondition. :type key: str @@ -73,7 +73,7 @@ def key(self, key): def value(self): """Gets the value of this CreateRuleCondition. - 匹配项的值。 当转发规则类别type为HOST_NAME时,key固定为空字符串,value表示域名的值。 value长度1-128字符,字符串只能包含英文字母、数字、-、.或\\*, 必须以字母、数字或\\*开头,\\*只能出现在开头且必须以\\*.开始。 当转发规则类别type为PATH时,key固定为空字符串,value表示请求路径的值。 value长度1-128字符。当转发规则的compare_type为STARTS_WITH、EQUAL_TO时, 字符串只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以/开头。 当转发规则类别type为HEADER时,key表示请求头参数的名称,value表示请求头参数的值。 value长度限制1-128字符,不支持空格, 双引号,支持以下通配符:*(匹配0个或更多字符)和?(正好匹配1个字符)。 当转发规则类别type为QUERY_STRING时,key表示查询参数的名称,value表示查询参数的值。 value长度限制为1-128字符,不支持空格,中括号,大括号,尖括号,反斜杠,双引号, '#','&','|',‘%’,‘~’,字母区分大小写,支持通配符:*(匹配0个或更多字符)和?(正好匹配1个字符) 当转发规则类别type为METHOD时,key固定为空字符串,value表示请求方式。value取值范围为:GET, PUT, POST,DELETE, PATCH, HEAD, OPTIONS。 当转发规则类别type为SOURCE_IP时,key固定为空字符串,value表示请求源地址。 value为CIDR格式,支持ipv4,ipv6。例如192.168.0.2/32,2049::49/64。 同一个rule内的conditions列表中所有value不允许重复。 + 参数解释:匹配项的值。 约束限制: - 同一个rule内的conditions列表中所有key必须相同。 - 同一个rule内的conditions列表中所有value不允许重复。 取值范围: - 当转发规则类别type为HOST_NAME时,key固定为空字符串,value表示域名的值。 value长度1-128字符,字符串只能包含英文字母、数字、-、.或\\*, 必须以字母、数字或\\*开头,\\*只能出现在开头且必须以\\*.开始。 - 当转发规则类别type为PATH时,key固定为空字符串,value表示请求路径的值。 value长度1-128字符。当转发规则的compare_type为STARTS_WITH、EQUAL_TO时, 字符串只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以/开头。 - 当转发规则类别type为HEADER时,key表示请求头参数的名称,value表示请求头参数的值。 value长度限制1-128字符,不支持空格, 双引号,支持以下通配符:*(匹配0个或更多字符)和?(正好匹配1个字符)。 - 当转发规则类别type为QUERY_STRING时,key表示查询参数的名称,value表示查询参数的值。 value长度限制为1-128字符,不支持空格,中括号,大括号,尖括号,反斜杠,双引号, '#','&','|',‘%’,‘~’,字母区分大小写,支持通配符:*(匹配0个或更多字符)和?(正好匹配1个字符) - 当转发规则类别type为METHOD时,key固定为空字符串,value表示请求方式。value取值范围为:GET, PUT, POST,DELETE, PATCH, HEAD, OPTIONS。 - 当转发规则类别type为SOURCE_IP时,key固定为空字符串,value表示请求源地址。 value为CIDR格式,支持ipv4,ipv6。例如192.168.0.2/32,2049::49/64。 :return: The value of this CreateRuleCondition. :rtype: str @@ -84,7 +84,7 @@ def value(self): def value(self, value): """Sets the value of this CreateRuleCondition. - 匹配项的值。 当转发规则类别type为HOST_NAME时,key固定为空字符串,value表示域名的值。 value长度1-128字符,字符串只能包含英文字母、数字、-、.或\\*, 必须以字母、数字或\\*开头,\\*只能出现在开头且必须以\\*.开始。 当转发规则类别type为PATH时,key固定为空字符串,value表示请求路径的值。 value长度1-128字符。当转发规则的compare_type为STARTS_WITH、EQUAL_TO时, 字符串只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以/开头。 当转发规则类别type为HEADER时,key表示请求头参数的名称,value表示请求头参数的值。 value长度限制1-128字符,不支持空格, 双引号,支持以下通配符:*(匹配0个或更多字符)和?(正好匹配1个字符)。 当转发规则类别type为QUERY_STRING时,key表示查询参数的名称,value表示查询参数的值。 value长度限制为1-128字符,不支持空格,中括号,大括号,尖括号,反斜杠,双引号, '#','&','|',‘%’,‘~’,字母区分大小写,支持通配符:*(匹配0个或更多字符)和?(正好匹配1个字符) 当转发规则类别type为METHOD时,key固定为空字符串,value表示请求方式。value取值范围为:GET, PUT, POST,DELETE, PATCH, HEAD, OPTIONS。 当转发规则类别type为SOURCE_IP时,key固定为空字符串,value表示请求源地址。 value为CIDR格式,支持ipv4,ipv6。例如192.168.0.2/32,2049::49/64。 同一个rule内的conditions列表中所有value不允许重复。 + 参数解释:匹配项的值。 约束限制: - 同一个rule内的conditions列表中所有key必须相同。 - 同一个rule内的conditions列表中所有value不允许重复。 取值范围: - 当转发规则类别type为HOST_NAME时,key固定为空字符串,value表示域名的值。 value长度1-128字符,字符串只能包含英文字母、数字、-、.或\\*, 必须以字母、数字或\\*开头,\\*只能出现在开头且必须以\\*.开始。 - 当转发规则类别type为PATH时,key固定为空字符串,value表示请求路径的值。 value长度1-128字符。当转发规则的compare_type为STARTS_WITH、EQUAL_TO时, 字符串只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以/开头。 - 当转发规则类别type为HEADER时,key表示请求头参数的名称,value表示请求头参数的值。 value长度限制1-128字符,不支持空格, 双引号,支持以下通配符:*(匹配0个或更多字符)和?(正好匹配1个字符)。 - 当转发规则类别type为QUERY_STRING时,key表示查询参数的名称,value表示查询参数的值。 value长度限制为1-128字符,不支持空格,中括号,大括号,尖括号,反斜杠,双引号, '#','&','|',‘%’,‘~’,字母区分大小写,支持通配符:*(匹配0个或更多字符)和?(正好匹配1个字符) - 当转发规则类别type为METHOD时,key固定为空字符串,value表示请求方式。value取值范围为:GET, PUT, POST,DELETE, PATCH, HEAD, OPTIONS。 - 当转发规则类别type为SOURCE_IP时,key固定为空字符串,value表示请求源地址。 value为CIDR格式,支持ipv4,ipv6。例如192.168.0.2/32,2049::49/64。 :param value: The value of this CreateRuleCondition. :type value: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_rule_option.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_rule_option.py index 901b616bdc..b5c7cef6d7 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_rule_option.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_rule_option.py @@ -43,21 +43,21 @@ def __init__(self, admin_state_up=None, compare_type=None, key=None, value=None, The model defined in huaweicloud sdk - :param admin_state_up: 转发规则的管理状态,默认为true。 不支持该字段,请勿使用。 + :param admin_state_up: 参数解释:转发规则的管理状态。 约束限制:只支持设置为true。 :type admin_state_up: bool - :param compare_type: 转发匹配方式。 取值: - EQUAL_TO 表示精确匹配。 - REGEX 表示正则匹配。 - STARTS_WITH 表示前缀匹配。 使用说明: - type为HOST_NAME时仅支持EQUAL_TO,支持通配符*。 - type为PATH时可以为REGEX,STARTS_WITH,EQUAL_TO。 - type为METHOD、SOURCE_IP时,仅支持EQUAL_TO。 - type为HEADER、QUERY_STRING,仅支持EQUAL_TO,支持通配符*、?。 + :param compare_type: 参数解释:转发匹配方式。 约束限制: - type为HOST_NAME时仅支持EQUAL_TO,支持通配符*。 - type为PATH时可以为REGEX,STARTS_WITH,EQUAL_TO。 - type为METHOD、SOURCE_IP时,仅支持EQUAL_TO。 - type为HEADER、QUERY_STRING,仅支持EQUAL_TO,支持通配符*、?。 取值范围: - EQUAL_TO 表示精确匹配。 - REGEX 表示正则匹配。 - STARTS_WITH 表示前缀匹配。 :type compare_type: str - :param key: 匹配项的名称,比如转发规则匹配类型是请求头匹配,则key表示请求头参数的名称。 不支持该字段,请勿使用。 + :param key: 参数解释:匹配项的名称,比如转发规则匹配类型是请求头匹配,则key表示请求头参数的名称。 不支持该字段,请勿使用。 :type key: str - :param value: 匹配项的值。比如转发规则匹配类型是域名匹配,则value表示域名的值。仅当conditions空时该字段生效。 当转发规则类别type为HOST_NAME时,字符串只能包含英文字母、数字、-、.或*,必须以字母、数字或*开头。 若域名中包含\\*,则\\*只能出现在开头且必须以\\*.开始。 当\\*开头时表示通配0~任一个字符。 当转发规则类别type为PATH时,当转发规则的compare_type为STARTS_WITH、EQUAL_TO时, 字符串只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以/开头。 当转发规则类别type为METHOD、SOURCE_IP、HEADER,QUERY_STRING时, 该字段无意义,使用conditions来指定key/value。 + :param value: 参数解释:匹配项的值。比如转发规则匹配类型是域名匹配,则value表示域名的值。 约束限制:仅当conditions空时该字段生效。 取值范围: - 当转发规则类别type为HOST_NAME时,字符串只能包含英文字母、数字、-、.或*,必须以字母、数字或*开头。 若域名中包含\\*,则\\*只能出现在开头且必须以\\*.开始。 当\\*开头时表示通配0~任一个字符。 - 当转发规则类别type为PATH时,当转发规则的compare_type为STARTS_WITH、EQUAL_TO时, 字符串只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以/开头。 - 当转发规则类别type为METHOD、SOURCE_IP、HEADER,QUERY_STRING时, 该字段无意义,使用conditions来指定key/value。 :type value: str - :param project_id: 转发规则所在的项目ID。 + :param project_id: 参数解释:转发规则所在的项目ID。 :type project_id: str - :param type: 转发规则类别。 取值: - HOST_NAME:匹配域名。 - PATH:匹配请求路径。 - METHOD:匹配请求方法。 - HEADER:匹配请求头。 - QUERY_STRING:匹配请求查询参数。 - SOURCE_IP:匹配请求源IP地址。 - COOKIE: 匹配cookie信息。 使用说明: - 一个l7policy下创建的l7rule的HOST_NAME,PATH,METHOD,SOURCE_IP不能重复。 HEADER、QUERY_STRING支持重复的rule配置。 [只支持取值为HOST_NAME,PATH。](tag:hcso_dt) + :param type: 参数解释:转发规则类别。 约束限制: - 一个l7policy下创建的l7rule的HOST_NAME,PATH,METHOD,SOURCE_IP不能重复。 HEADER、QUERY_STRING支持重复的rule配置。 取值范围: - HOST_NAME:匹配域名。 - PATH:匹配请求路径。 - METHOD:匹配请求方法。 - HEADER:匹配请求头。 - QUERY_STRING:匹配请求查询参数。 - SOURCE_IP:匹配请求源IP地址。 - COOKIE: 匹配cookie信息。 [只支持取值为HOST_NAME,PATH。](tag:hcso_dt) :type type: str - :param invert: 是否反向匹配。 取值:true、false,默认false。 不支持该字段,请勿使用。 + :param invert: 参数解释:是否反向匹配。 取值范围:true、false,默认false。 不支持该字段,请勿使用。 :type invert: bool - :param conditions: 转发规则的匹配条件。当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效。 若转发规则配置了conditions,字段key、字段value的值无意义。 同一个rule内的conditions列表中所有key必须相同,value不允许重复。 [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) + :param conditions: 参数解释:转发规则的匹配条件。 约束限制: - 当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效。 - 若转发规则配置了conditions,字段key、字段value的值无意义。 - 同一个rule内的conditions列表中所有key必须相同,value不允许重复。 [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) :type conditions: list[:class:`huaweicloudsdkelb.v3.CreateRuleCondition`] """ @@ -91,7 +91,7 @@ def __init__(self, admin_state_up=None, compare_type=None, key=None, value=None, def admin_state_up(self): """Gets the admin_state_up of this CreateRuleOption. - 转发规则的管理状态,默认为true。 不支持该字段,请勿使用。 + 参数解释:转发规则的管理状态。 约束限制:只支持设置为true。 :return: The admin_state_up of this CreateRuleOption. :rtype: bool @@ -102,7 +102,7 @@ def admin_state_up(self): def admin_state_up(self, admin_state_up): """Sets the admin_state_up of this CreateRuleOption. - 转发规则的管理状态,默认为true。 不支持该字段,请勿使用。 + 参数解释:转发规则的管理状态。 约束限制:只支持设置为true。 :param admin_state_up: The admin_state_up of this CreateRuleOption. :type admin_state_up: bool @@ -113,7 +113,7 @@ def admin_state_up(self, admin_state_up): def compare_type(self): """Gets the compare_type of this CreateRuleOption. - 转发匹配方式。 取值: - EQUAL_TO 表示精确匹配。 - REGEX 表示正则匹配。 - STARTS_WITH 表示前缀匹配。 使用说明: - type为HOST_NAME时仅支持EQUAL_TO,支持通配符*。 - type为PATH时可以为REGEX,STARTS_WITH,EQUAL_TO。 - type为METHOD、SOURCE_IP时,仅支持EQUAL_TO。 - type为HEADER、QUERY_STRING,仅支持EQUAL_TO,支持通配符*、?。 + 参数解释:转发匹配方式。 约束限制: - type为HOST_NAME时仅支持EQUAL_TO,支持通配符*。 - type为PATH时可以为REGEX,STARTS_WITH,EQUAL_TO。 - type为METHOD、SOURCE_IP时,仅支持EQUAL_TO。 - type为HEADER、QUERY_STRING,仅支持EQUAL_TO,支持通配符*、?。 取值范围: - EQUAL_TO 表示精确匹配。 - REGEX 表示正则匹配。 - STARTS_WITH 表示前缀匹配。 :return: The compare_type of this CreateRuleOption. :rtype: str @@ -124,7 +124,7 @@ def compare_type(self): def compare_type(self, compare_type): """Sets the compare_type of this CreateRuleOption. - 转发匹配方式。 取值: - EQUAL_TO 表示精确匹配。 - REGEX 表示正则匹配。 - STARTS_WITH 表示前缀匹配。 使用说明: - type为HOST_NAME时仅支持EQUAL_TO,支持通配符*。 - type为PATH时可以为REGEX,STARTS_WITH,EQUAL_TO。 - type为METHOD、SOURCE_IP时,仅支持EQUAL_TO。 - type为HEADER、QUERY_STRING,仅支持EQUAL_TO,支持通配符*、?。 + 参数解释:转发匹配方式。 约束限制: - type为HOST_NAME时仅支持EQUAL_TO,支持通配符*。 - type为PATH时可以为REGEX,STARTS_WITH,EQUAL_TO。 - type为METHOD、SOURCE_IP时,仅支持EQUAL_TO。 - type为HEADER、QUERY_STRING,仅支持EQUAL_TO,支持通配符*、?。 取值范围: - EQUAL_TO 表示精确匹配。 - REGEX 表示正则匹配。 - STARTS_WITH 表示前缀匹配。 :param compare_type: The compare_type of this CreateRuleOption. :type compare_type: str @@ -135,7 +135,7 @@ def compare_type(self, compare_type): def key(self): """Gets the key of this CreateRuleOption. - 匹配项的名称,比如转发规则匹配类型是请求头匹配,则key表示请求头参数的名称。 不支持该字段,请勿使用。 + 参数解释:匹配项的名称,比如转发规则匹配类型是请求头匹配,则key表示请求头参数的名称。 不支持该字段,请勿使用。 :return: The key of this CreateRuleOption. :rtype: str @@ -146,7 +146,7 @@ def key(self): def key(self, key): """Sets the key of this CreateRuleOption. - 匹配项的名称,比如转发规则匹配类型是请求头匹配,则key表示请求头参数的名称。 不支持该字段,请勿使用。 + 参数解释:匹配项的名称,比如转发规则匹配类型是请求头匹配,则key表示请求头参数的名称。 不支持该字段,请勿使用。 :param key: The key of this CreateRuleOption. :type key: str @@ -157,7 +157,7 @@ def key(self, key): def value(self): """Gets the value of this CreateRuleOption. - 匹配项的值。比如转发规则匹配类型是域名匹配,则value表示域名的值。仅当conditions空时该字段生效。 当转发规则类别type为HOST_NAME时,字符串只能包含英文字母、数字、-、.或*,必须以字母、数字或*开头。 若域名中包含\\*,则\\*只能出现在开头且必须以\\*.开始。 当\\*开头时表示通配0~任一个字符。 当转发规则类别type为PATH时,当转发规则的compare_type为STARTS_WITH、EQUAL_TO时, 字符串只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以/开头。 当转发规则类别type为METHOD、SOURCE_IP、HEADER,QUERY_STRING时, 该字段无意义,使用conditions来指定key/value。 + 参数解释:匹配项的值。比如转发规则匹配类型是域名匹配,则value表示域名的值。 约束限制:仅当conditions空时该字段生效。 取值范围: - 当转发规则类别type为HOST_NAME时,字符串只能包含英文字母、数字、-、.或*,必须以字母、数字或*开头。 若域名中包含\\*,则\\*只能出现在开头且必须以\\*.开始。 当\\*开头时表示通配0~任一个字符。 - 当转发规则类别type为PATH时,当转发规则的compare_type为STARTS_WITH、EQUAL_TO时, 字符串只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以/开头。 - 当转发规则类别type为METHOD、SOURCE_IP、HEADER,QUERY_STRING时, 该字段无意义,使用conditions来指定key/value。 :return: The value of this CreateRuleOption. :rtype: str @@ -168,7 +168,7 @@ def value(self): def value(self, value): """Sets the value of this CreateRuleOption. - 匹配项的值。比如转发规则匹配类型是域名匹配,则value表示域名的值。仅当conditions空时该字段生效。 当转发规则类别type为HOST_NAME时,字符串只能包含英文字母、数字、-、.或*,必须以字母、数字或*开头。 若域名中包含\\*,则\\*只能出现在开头且必须以\\*.开始。 当\\*开头时表示通配0~任一个字符。 当转发规则类别type为PATH时,当转发规则的compare_type为STARTS_WITH、EQUAL_TO时, 字符串只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以/开头。 当转发规则类别type为METHOD、SOURCE_IP、HEADER,QUERY_STRING时, 该字段无意义,使用conditions来指定key/value。 + 参数解释:匹配项的值。比如转发规则匹配类型是域名匹配,则value表示域名的值。 约束限制:仅当conditions空时该字段生效。 取值范围: - 当转发规则类别type为HOST_NAME时,字符串只能包含英文字母、数字、-、.或*,必须以字母、数字或*开头。 若域名中包含\\*,则\\*只能出现在开头且必须以\\*.开始。 当\\*开头时表示通配0~任一个字符。 - 当转发规则类别type为PATH时,当转发规则的compare_type为STARTS_WITH、EQUAL_TO时, 字符串只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以/开头。 - 当转发规则类别type为METHOD、SOURCE_IP、HEADER,QUERY_STRING时, 该字段无意义,使用conditions来指定key/value。 :param value: The value of this CreateRuleOption. :type value: str @@ -179,7 +179,7 @@ def value(self, value): def project_id(self): """Gets the project_id of this CreateRuleOption. - 转发规则所在的项目ID。 + 参数解释:转发规则所在的项目ID。 :return: The project_id of this CreateRuleOption. :rtype: str @@ -190,7 +190,7 @@ def project_id(self): def project_id(self, project_id): """Sets the project_id of this CreateRuleOption. - 转发规则所在的项目ID。 + 参数解释:转发规则所在的项目ID。 :param project_id: The project_id of this CreateRuleOption. :type project_id: str @@ -201,7 +201,7 @@ def project_id(self, project_id): def type(self): """Gets the type of this CreateRuleOption. - 转发规则类别。 取值: - HOST_NAME:匹配域名。 - PATH:匹配请求路径。 - METHOD:匹配请求方法。 - HEADER:匹配请求头。 - QUERY_STRING:匹配请求查询参数。 - SOURCE_IP:匹配请求源IP地址。 - COOKIE: 匹配cookie信息。 使用说明: - 一个l7policy下创建的l7rule的HOST_NAME,PATH,METHOD,SOURCE_IP不能重复。 HEADER、QUERY_STRING支持重复的rule配置。 [只支持取值为HOST_NAME,PATH。](tag:hcso_dt) + 参数解释:转发规则类别。 约束限制: - 一个l7policy下创建的l7rule的HOST_NAME,PATH,METHOD,SOURCE_IP不能重复。 HEADER、QUERY_STRING支持重复的rule配置。 取值范围: - HOST_NAME:匹配域名。 - PATH:匹配请求路径。 - METHOD:匹配请求方法。 - HEADER:匹配请求头。 - QUERY_STRING:匹配请求查询参数。 - SOURCE_IP:匹配请求源IP地址。 - COOKIE: 匹配cookie信息。 [只支持取值为HOST_NAME,PATH。](tag:hcso_dt) :return: The type of this CreateRuleOption. :rtype: str @@ -212,7 +212,7 @@ def type(self): def type(self, type): """Sets the type of this CreateRuleOption. - 转发规则类别。 取值: - HOST_NAME:匹配域名。 - PATH:匹配请求路径。 - METHOD:匹配请求方法。 - HEADER:匹配请求头。 - QUERY_STRING:匹配请求查询参数。 - SOURCE_IP:匹配请求源IP地址。 - COOKIE: 匹配cookie信息。 使用说明: - 一个l7policy下创建的l7rule的HOST_NAME,PATH,METHOD,SOURCE_IP不能重复。 HEADER、QUERY_STRING支持重复的rule配置。 [只支持取值为HOST_NAME,PATH。](tag:hcso_dt) + 参数解释:转发规则类别。 约束限制: - 一个l7policy下创建的l7rule的HOST_NAME,PATH,METHOD,SOURCE_IP不能重复。 HEADER、QUERY_STRING支持重复的rule配置。 取值范围: - HOST_NAME:匹配域名。 - PATH:匹配请求路径。 - METHOD:匹配请求方法。 - HEADER:匹配请求头。 - QUERY_STRING:匹配请求查询参数。 - SOURCE_IP:匹配请求源IP地址。 - COOKIE: 匹配cookie信息。 [只支持取值为HOST_NAME,PATH。](tag:hcso_dt) :param type: The type of this CreateRuleOption. :type type: str @@ -223,7 +223,7 @@ def type(self, type): def invert(self): """Gets the invert of this CreateRuleOption. - 是否反向匹配。 取值:true、false,默认false。 不支持该字段,请勿使用。 + 参数解释:是否反向匹配。 取值范围:true、false,默认false。 不支持该字段,请勿使用。 :return: The invert of this CreateRuleOption. :rtype: bool @@ -234,7 +234,7 @@ def invert(self): def invert(self, invert): """Sets the invert of this CreateRuleOption. - 是否反向匹配。 取值:true、false,默认false。 不支持该字段,请勿使用。 + 参数解释:是否反向匹配。 取值范围:true、false,默认false。 不支持该字段,请勿使用。 :param invert: The invert of this CreateRuleOption. :type invert: bool @@ -245,7 +245,7 @@ def invert(self, invert): def conditions(self): """Gets the conditions of this CreateRuleOption. - 转发规则的匹配条件。当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效。 若转发规则配置了conditions,字段key、字段value的值无意义。 同一个rule内的conditions列表中所有key必须相同,value不允许重复。 [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) + 参数解释:转发规则的匹配条件。 约束限制: - 当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效。 - 若转发规则配置了conditions,字段key、字段value的值无意义。 - 同一个rule内的conditions列表中所有key必须相同,value不允许重复。 [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) :return: The conditions of this CreateRuleOption. :rtype: list[:class:`huaweicloudsdkelb.v3.CreateRuleCondition`] @@ -256,7 +256,7 @@ def conditions(self): def conditions(self, conditions): """Sets the conditions of this CreateRuleOption. - 转发规则的匹配条件。当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效。 若转发规则配置了conditions,字段key、字段value的值无意义。 同一个rule内的conditions列表中所有key必须相同,value不允许重复。 [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) + 参数解释:转发规则的匹配条件。 约束限制: - 当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效。 - 若转发规则配置了conditions,字段key、字段value的值无意义。 - 同一个rule内的conditions列表中所有key必须相同,value不允许重复。 [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) :param conditions: The conditions of this CreateRuleOption. :type conditions: list[:class:`huaweicloudsdkelb.v3.CreateRuleCondition`] diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_traffic_limit_config.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_traffic_limit_config.py index f5e07cd836..170740e1de 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_traffic_limit_config.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/create_traffic_limit_config.py @@ -33,11 +33,11 @@ def __init__(self, qps=None, per_source_ip_qps=None, burst=None): The model defined in huaweicloud sdk - :param qps: 转发策略整体限速。取值: 0-100000s。0表示不限速 + :param qps: 参数解释:转发策略qps限速。 取值范围:0-100000,单位:个/秒。0表示不限速。 :type qps: int - :param per_source_ip_qps: 对转发策略单源进行限速。 quic监听器下转发策略不支持配置单源限速。指定该字段时,赋值可以为0或者为null。 取值: 0-100000s。0表示不限速,如果qps不为0,per_source_ip_qps需要小于qps。 + :param per_source_ip_qps: 参数解释:对转发策略单源(单个客户端IP)进行限速。 约束限制: - quic监听器下转发策略不支持配置单源限速。 - 指定该字段时,赋值可以为0或者为null。 - 如果qps不为0,per_source_ip_qps需要小于qps。 取值范围:0-100000,单位:个/秒。0表示不限速。 :type per_source_ip_qps: int - :param burst: 对转发策略单源进行限速。取值: 0-100000s。当qps超限的时候,不返回503,支持允许局部突增burst大小的请求。 + :param burst: 参数解释:设置当单源qps超限时,允许的局部突增请求数量。超出该限制的请求将返回503。 取值范围:0-100000,单位:个/秒。 :type burst: int """ @@ -59,7 +59,7 @@ def __init__(self, qps=None, per_source_ip_qps=None, burst=None): def qps(self): """Gets the qps of this CreateTrafficLimitConfig. - 转发策略整体限速。取值: 0-100000s。0表示不限速 + 参数解释:转发策略qps限速。 取值范围:0-100000,单位:个/秒。0表示不限速。 :return: The qps of this CreateTrafficLimitConfig. :rtype: int @@ -70,7 +70,7 @@ def qps(self): def qps(self, qps): """Sets the qps of this CreateTrafficLimitConfig. - 转发策略整体限速。取值: 0-100000s。0表示不限速 + 参数解释:转发策略qps限速。 取值范围:0-100000,单位:个/秒。0表示不限速。 :param qps: The qps of this CreateTrafficLimitConfig. :type qps: int @@ -81,7 +81,7 @@ def qps(self, qps): def per_source_ip_qps(self): """Gets the per_source_ip_qps of this CreateTrafficLimitConfig. - 对转发策略单源进行限速。 quic监听器下转发策略不支持配置单源限速。指定该字段时,赋值可以为0或者为null。 取值: 0-100000s。0表示不限速,如果qps不为0,per_source_ip_qps需要小于qps。 + 参数解释:对转发策略单源(单个客户端IP)进行限速。 约束限制: - quic监听器下转发策略不支持配置单源限速。 - 指定该字段时,赋值可以为0或者为null。 - 如果qps不为0,per_source_ip_qps需要小于qps。 取值范围:0-100000,单位:个/秒。0表示不限速。 :return: The per_source_ip_qps of this CreateTrafficLimitConfig. :rtype: int @@ -92,7 +92,7 @@ def per_source_ip_qps(self): def per_source_ip_qps(self, per_source_ip_qps): """Sets the per_source_ip_qps of this CreateTrafficLimitConfig. - 对转发策略单源进行限速。 quic监听器下转发策略不支持配置单源限速。指定该字段时,赋值可以为0或者为null。 取值: 0-100000s。0表示不限速,如果qps不为0,per_source_ip_qps需要小于qps。 + 参数解释:对转发策略单源(单个客户端IP)进行限速。 约束限制: - quic监听器下转发策略不支持配置单源限速。 - 指定该字段时,赋值可以为0或者为null。 - 如果qps不为0,per_source_ip_qps需要小于qps。 取值范围:0-100000,单位:个/秒。0表示不限速。 :param per_source_ip_qps: The per_source_ip_qps of this CreateTrafficLimitConfig. :type per_source_ip_qps: int @@ -103,7 +103,7 @@ def per_source_ip_qps(self, per_source_ip_qps): def burst(self): """Gets the burst of this CreateTrafficLimitConfig. - 对转发策略单源进行限速。取值: 0-100000s。当qps超限的时候,不返回503,支持允许局部突增burst大小的请求。 + 参数解释:设置当单源qps超限时,允许的局部突增请求数量。超出该限制的请求将返回503。 取值范围:0-100000,单位:个/秒。 :return: The burst of this CreateTrafficLimitConfig. :rtype: int @@ -114,7 +114,7 @@ def burst(self): def burst(self, burst): """Sets the burst of this CreateTrafficLimitConfig. - 对转发策略单源进行限速。取值: 0-100000s。当qps超限的时候,不返回503,支持允许局部突增burst大小的请求。 + 参数解释:设置当单源qps超限时,允许的局部突增请求数量。超出该限制的请求将返回503。 取值范围:0-100000,单位:个/秒。 :param burst: The burst of this CreateTrafficLimitConfig. :type burst: int diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/delete_l7_policy_request.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/delete_l7_policy_request.py index b79b5f753c..c18f252849 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/delete_l7_policy_request.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/delete_l7_policy_request.py @@ -29,7 +29,7 @@ def __init__(self, l7policy_id=None): The model defined in huaweicloud sdk - :param l7policy_id: 转发策略ID。 + :param l7policy_id: 参数解释:转发策略ID。 :type l7policy_id: str """ @@ -44,7 +44,7 @@ def __init__(self, l7policy_id=None): def l7policy_id(self): """Gets the l7policy_id of this DeleteL7PolicyRequest. - 转发策略ID。 + 参数解释:转发策略ID。 :return: The l7policy_id of this DeleteL7PolicyRequest. :rtype: str @@ -55,7 +55,7 @@ def l7policy_id(self): def l7policy_id(self, l7policy_id): """Sets the l7policy_id of this DeleteL7PolicyRequest. - 转发策略ID。 + 参数解释:转发策略ID。 :param l7policy_id: The l7policy_id of this DeleteL7PolicyRequest. :type l7policy_id: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/delete_master_slave_pool_request.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/delete_master_slave_pool_request.py index 870e8c63dc..30d3bc17de 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/delete_master_slave_pool_request.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/delete_master_slave_pool_request.py @@ -29,7 +29,7 @@ def __init__(self, pool_id=None): The model defined in huaweicloud sdk - :param pool_id: 后端服务器组ID。 + :param pool_id: 参数解释:后端服务器组ID。 :type pool_id: str """ @@ -44,7 +44,7 @@ def __init__(self, pool_id=None): def pool_id(self): """Gets the pool_id of this DeleteMasterSlavePoolRequest. - 后端服务器组ID。 + 参数解释:后端服务器组ID。 :return: The pool_id of this DeleteMasterSlavePoolRequest. :rtype: str @@ -55,7 +55,7 @@ def pool_id(self): def pool_id(self, pool_id): """Sets the pool_id of this DeleteMasterSlavePoolRequest. - 后端服务器组ID。 + 参数解释:后端服务器组ID。 :param pool_id: The pool_id of this DeleteMasterSlavePoolRequest. :type pool_id: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/delete_member_request.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/delete_member_request.py index b08a3e5054..6fe69a3eca 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/delete_member_request.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/delete_member_request.py @@ -31,7 +31,7 @@ def __init__(self, pool_id=None, member_id=None): The model defined in huaweicloud sdk - :param pool_id: 后端服务器组ID。 + :param pool_id: 参数解释:后端服务器组ID。 :type pool_id: str :param member_id: 后端服务器ID。 >说明: 此处并非ECS服务器的ID,而是ELB为绑定的后端服务器自动生成的member ID。 member ID可以通过[查询后端云服务器列表](ListMembers.xml)获取。 :type member_id: str @@ -50,7 +50,7 @@ def __init__(self, pool_id=None, member_id=None): def pool_id(self): """Gets the pool_id of this DeleteMemberRequest. - 后端服务器组ID。 + 参数解释:后端服务器组ID。 :return: The pool_id of this DeleteMemberRequest. :rtype: str @@ -61,7 +61,7 @@ def pool_id(self): def pool_id(self, pool_id): """Sets the pool_id of this DeleteMemberRequest. - 后端服务器组ID。 + 参数解释:后端服务器组ID。 :param pool_id: The pool_id of this DeleteMemberRequest. :type pool_id: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/delete_pool_request.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/delete_pool_request.py index 367c4e7104..24e0d70743 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/delete_pool_request.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/delete_pool_request.py @@ -29,7 +29,7 @@ def __init__(self, pool_id=None): The model defined in huaweicloud sdk - :param pool_id: 后端服务器组ID。 + :param pool_id: 参数解释:后端服务器组ID。 :type pool_id: str """ @@ -44,7 +44,7 @@ def __init__(self, pool_id=None): def pool_id(self): """Gets the pool_id of this DeletePoolRequest. - 后端服务器组ID。 + 参数解释:后端服务器组ID。 :return: The pool_id of this DeletePoolRequest. :rtype: str @@ -55,7 +55,7 @@ def pool_id(self): def pool_id(self, pool_id): """Sets the pool_id of this DeletePoolRequest. - 后端服务器组ID。 + 参数解释:后端服务器组ID。 :param pool_id: The pool_id of this DeletePoolRequest. :type pool_id: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/eip_info.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/eip_info.py index 76574f533e..131f9c693a 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/eip_info.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/eip_info.py @@ -33,11 +33,11 @@ def __init__(self, eip_id=None, eip_address=None, ip_version=None): The model defined in huaweicloud sdk - :param eip_id: eip_id + :param eip_id: 参数解释:弹性IP的ID。 :type eip_id: str - :param eip_address: eip_address + :param eip_address: 参数解释:弹性IP的IP地址。 :type eip_address: str - :param ip_version: IP版本号。 取值:4表示IPv4,6表示IPv6。 [不支持IPv6,请勿设置为6。](tag:dt,dt_test) + :param ip_version: 参数解释:IP版本号。 取值范围: - 4表示IPv4。 - 6表示IPv6。 [不支持IPv6,请勿设置为6。](tag:dt,dt_test) :type ip_version: int """ @@ -59,7 +59,7 @@ def __init__(self, eip_id=None, eip_address=None, ip_version=None): def eip_id(self): """Gets the eip_id of this EipInfo. - eip_id + 参数解释:弹性IP的ID。 :return: The eip_id of this EipInfo. :rtype: str @@ -70,7 +70,7 @@ def eip_id(self): def eip_id(self, eip_id): """Sets the eip_id of this EipInfo. - eip_id + 参数解释:弹性IP的ID。 :param eip_id: The eip_id of this EipInfo. :type eip_id: str @@ -81,7 +81,7 @@ def eip_id(self, eip_id): def eip_address(self): """Gets the eip_address of this EipInfo. - eip_address + 参数解释:弹性IP的IP地址。 :return: The eip_address of this EipInfo. :rtype: str @@ -92,7 +92,7 @@ def eip_address(self): def eip_address(self, eip_address): """Sets the eip_address of this EipInfo. - eip_address + 参数解释:弹性IP的IP地址。 :param eip_address: The eip_address of this EipInfo. :type eip_address: str @@ -103,7 +103,7 @@ def eip_address(self, eip_address): def ip_version(self): """Gets the ip_version of this EipInfo. - IP版本号。 取值:4表示IPv4,6表示IPv6。 [不支持IPv6,请勿设置为6。](tag:dt,dt_test) + 参数解释:IP版本号。 取值范围: - 4表示IPv4。 - 6表示IPv6。 [不支持IPv6,请勿设置为6。](tag:dt,dt_test) :return: The ip_version of this EipInfo. :rtype: int @@ -114,7 +114,7 @@ def ip_version(self): def ip_version(self, ip_version): """Sets the ip_version of this EipInfo. - IP版本号。 取值:4表示IPv4,6表示IPv6。 [不支持IPv6,请勿设置为6。](tag:dt,dt_test) + 参数解释:IP版本号。 取值范围: - 4表示IPv4。 - 6表示IPv6。 [不支持IPv6,请勿设置为6。](tag:dt,dt_test) :param ip_version: The ip_version of this EipInfo. :type ip_version: int diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/fixted_response_config.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/fixted_response_config.py index 8cda879257..9d43a3b547 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/fixted_response_config.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/fixted_response_config.py @@ -39,11 +39,11 @@ def __init__(self, status_code=None, content_type=None, message_body=None, inser The model defined in huaweicloud sdk - :param status_code: 返回码。支持200~299,400~499,500~599。 + :param status_code: 参数解释:返回码。支持200~299,400~499,500~599。 :type status_code: str - :param content_type: 返回body的格式。 取值范围: - text/plain - text/css - text/html - application/javascript - application/json + :param content_type: 参数解释:返回body的格式。 取值范围: - text/plain - text/css - text/html - application/javascript - application/json :type content_type: str - :param message_body: 返回消息内容。 + :param message_body: 参数解释:返回消息内容。 :type message_body: str :param insert_headers_config: :type insert_headers_config: :class:`huaweicloudsdkelb.v3.InsertHeadersConfig` @@ -77,7 +77,7 @@ def __init__(self, status_code=None, content_type=None, message_body=None, inser def status_code(self): """Gets the status_code of this FixtedResponseConfig. - 返回码。支持200~299,400~499,500~599。 + 参数解释:返回码。支持200~299,400~499,500~599。 :return: The status_code of this FixtedResponseConfig. :rtype: str @@ -88,7 +88,7 @@ def status_code(self): def status_code(self, status_code): """Sets the status_code of this FixtedResponseConfig. - 返回码。支持200~299,400~499,500~599。 + 参数解释:返回码。支持200~299,400~499,500~599。 :param status_code: The status_code of this FixtedResponseConfig. :type status_code: str @@ -99,7 +99,7 @@ def status_code(self, status_code): def content_type(self): """Gets the content_type of this FixtedResponseConfig. - 返回body的格式。 取值范围: - text/plain - text/css - text/html - application/javascript - application/json + 参数解释:返回body的格式。 取值范围: - text/plain - text/css - text/html - application/javascript - application/json :return: The content_type of this FixtedResponseConfig. :rtype: str @@ -110,7 +110,7 @@ def content_type(self): def content_type(self, content_type): """Sets the content_type of this FixtedResponseConfig. - 返回body的格式。 取值范围: - text/plain - text/css - text/html - application/javascript - application/json + 参数解释:返回body的格式。 取值范围: - text/plain - text/css - text/html - application/javascript - application/json :param content_type: The content_type of this FixtedResponseConfig. :type content_type: str @@ -121,7 +121,7 @@ def content_type(self, content_type): def message_body(self): """Gets the message_body of this FixtedResponseConfig. - 返回消息内容。 + 参数解释:返回消息内容。 :return: The message_body of this FixtedResponseConfig. :rtype: str @@ -132,7 +132,7 @@ def message_body(self): def message_body(self, message_body): """Sets the message_body of this FixtedResponseConfig. - 返回消息内容。 + 参数解释:返回消息内容。 :param message_body: The message_body of this FixtedResponseConfig. :type message_body: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/flavor.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/flavor.py index 4604c40125..5ab7e7b0d5 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/flavor.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/flavor.py @@ -55,9 +55,9 @@ def __init__(self, id=None, info=None, name=None, shared=None, project_id=None, :type shared: bool :param project_id: 参数解释:项目ID。 :type project_id: str - :param type: 参数解释:规格类别。 取值: - L4和L7 表示四层网络型和七层应用型flavor。 [- gateway 表示网关型LB的flavor,目前只支持弹性计费类型。当前仅支持欧洲局点。](tag:hws_eu) - L4_elastic和L7_elastic 表示弹性扩缩容实例的下限规格。 - L4_elastic_max、L7_elastic_max[和gateway_elastic_max](tag:hws_eu) 表示弹性扩缩容实例的上限规格。 + :param type: 参数解释:规格类别。 取值范围: - L4和L7 表示四层网络型和七层应用型flavor。 [- gateway 表示网关型LB的flavor,目前只支持弹性计费类型。当前仅支持欧洲局点。](tag:hws_eu) - L4_elastic和L7_elastic 表示弹性扩缩容实例的下限规格。已废弃,请勿使用。 - L4_elastic_max、L7_elastic_max[和gateway_elastic_max](tag:hws_eu) 表示弹性扩缩容实例的上限规格。 :type type: str - :param flavor_sold_out: 参数解释: [是否售罄。](tag:hws,hk,hws_eu,otc,tlf,ctc,sbc,g42,cmcc,hk_g42,dt_test,mix,hk_sbc,hws_ocb,dt) [是否无法购买该规格的LB](tag:ocb,tm,fcs,fcs_dt,hcso,hcso_dt,hk_vdf) 取值范围: - true:[已售罄,将](tag:hws,hk,hws_eu,otc,tlf,ctc,sbc,g42,cmcc,hk_g42,dt_test,mix,hk_sbc,hws_ocb,dt)无法购买该规格的LB。 - false:[未售罄,](tag:hws,hk,hws_eu,otc,tlf,ctc,sbc,g42,cmcc,hk_g42,dt_test,mix,hk_sbc,hws_ocb,dt)可购买该规格的LB。 + :param flavor_sold_out: 参数解释:[是否售罄。](tag:hws,hk,hws_eu,otc,tlf,ctc,sbc,g42,cmcc,hk_g42,dt_test,mix,hk_sbc,hws_ocb,dt) [是否无法购买该规格的LB](tag:ocb,tm,fcs,fcs_dt,hcso,hcso_dt,hk_vdf) 取值范围: - true:[已售罄,将](tag:hws,hk,hws_eu,otc,tlf,ctc,sbc,g42,cmcc,hk_g42,dt_test,mix,hk_sbc,hws_ocb,dt)无法购买该规格的LB。 - false:[未售罄,](tag:hws,hk,hws_eu,otc,tlf,ctc,sbc,g42,cmcc,hk_g42,dt_test,mix,hk_sbc,hws_ocb,dt)可购买该规格的LB。 :type flavor_sold_out: bool :param public_border_group: 参数解释:可用区组,如:center :type public_border_group: str @@ -200,7 +200,7 @@ def project_id(self, project_id): def type(self): """Gets the type of this Flavor. - 参数解释:规格类别。 取值: - L4和L7 表示四层网络型和七层应用型flavor。 [- gateway 表示网关型LB的flavor,目前只支持弹性计费类型。当前仅支持欧洲局点。](tag:hws_eu) - L4_elastic和L7_elastic 表示弹性扩缩容实例的下限规格。 - L4_elastic_max、L7_elastic_max[和gateway_elastic_max](tag:hws_eu) 表示弹性扩缩容实例的上限规格。 + 参数解释:规格类别。 取值范围: - L4和L7 表示四层网络型和七层应用型flavor。 [- gateway 表示网关型LB的flavor,目前只支持弹性计费类型。当前仅支持欧洲局点。](tag:hws_eu) - L4_elastic和L7_elastic 表示弹性扩缩容实例的下限规格。已废弃,请勿使用。 - L4_elastic_max、L7_elastic_max[和gateway_elastic_max](tag:hws_eu) 表示弹性扩缩容实例的上限规格。 :return: The type of this Flavor. :rtype: str @@ -211,7 +211,7 @@ def type(self): def type(self, type): """Sets the type of this Flavor. - 参数解释:规格类别。 取值: - L4和L7 表示四层网络型和七层应用型flavor。 [- gateway 表示网关型LB的flavor,目前只支持弹性计费类型。当前仅支持欧洲局点。](tag:hws_eu) - L4_elastic和L7_elastic 表示弹性扩缩容实例的下限规格。 - L4_elastic_max、L7_elastic_max[和gateway_elastic_max](tag:hws_eu) 表示弹性扩缩容实例的上限规格。 + 参数解释:规格类别。 取值范围: - L4和L7 表示四层网络型和七层应用型flavor。 [- gateway 表示网关型LB的flavor,目前只支持弹性计费类型。当前仅支持欧洲局点。](tag:hws_eu) - L4_elastic和L7_elastic 表示弹性扩缩容实例的下限规格。已废弃,请勿使用。 - L4_elastic_max、L7_elastic_max[和gateway_elastic_max](tag:hws_eu) 表示弹性扩缩容实例的上限规格。 :param type: The type of this Flavor. :type type: str @@ -222,7 +222,7 @@ def type(self, type): def flavor_sold_out(self): """Gets the flavor_sold_out of this Flavor. - 参数解释: [是否售罄。](tag:hws,hk,hws_eu,otc,tlf,ctc,sbc,g42,cmcc,hk_g42,dt_test,mix,hk_sbc,hws_ocb,dt) [是否无法购买该规格的LB](tag:ocb,tm,fcs,fcs_dt,hcso,hcso_dt,hk_vdf) 取值范围: - true:[已售罄,将](tag:hws,hk,hws_eu,otc,tlf,ctc,sbc,g42,cmcc,hk_g42,dt_test,mix,hk_sbc,hws_ocb,dt)无法购买该规格的LB。 - false:[未售罄,](tag:hws,hk,hws_eu,otc,tlf,ctc,sbc,g42,cmcc,hk_g42,dt_test,mix,hk_sbc,hws_ocb,dt)可购买该规格的LB。 + 参数解释:[是否售罄。](tag:hws,hk,hws_eu,otc,tlf,ctc,sbc,g42,cmcc,hk_g42,dt_test,mix,hk_sbc,hws_ocb,dt) [是否无法购买该规格的LB](tag:ocb,tm,fcs,fcs_dt,hcso,hcso_dt,hk_vdf) 取值范围: - true:[已售罄,将](tag:hws,hk,hws_eu,otc,tlf,ctc,sbc,g42,cmcc,hk_g42,dt_test,mix,hk_sbc,hws_ocb,dt)无法购买该规格的LB。 - false:[未售罄,](tag:hws,hk,hws_eu,otc,tlf,ctc,sbc,g42,cmcc,hk_g42,dt_test,mix,hk_sbc,hws_ocb,dt)可购买该规格的LB。 :return: The flavor_sold_out of this Flavor. :rtype: bool @@ -233,7 +233,7 @@ def flavor_sold_out(self): def flavor_sold_out(self, flavor_sold_out): """Sets the flavor_sold_out of this Flavor. - 参数解释: [是否售罄。](tag:hws,hk,hws_eu,otc,tlf,ctc,sbc,g42,cmcc,hk_g42,dt_test,mix,hk_sbc,hws_ocb,dt) [是否无法购买该规格的LB](tag:ocb,tm,fcs,fcs_dt,hcso,hcso_dt,hk_vdf) 取值范围: - true:[已售罄,将](tag:hws,hk,hws_eu,otc,tlf,ctc,sbc,g42,cmcc,hk_g42,dt_test,mix,hk_sbc,hws_ocb,dt)无法购买该规格的LB。 - false:[未售罄,](tag:hws,hk,hws_eu,otc,tlf,ctc,sbc,g42,cmcc,hk_g42,dt_test,mix,hk_sbc,hws_ocb,dt)可购买该规格的LB。 + 参数解释:[是否售罄。](tag:hws,hk,hws_eu,otc,tlf,ctc,sbc,g42,cmcc,hk_g42,dt_test,mix,hk_sbc,hws_ocb,dt) [是否无法购买该规格的LB](tag:ocb,tm,fcs,fcs_dt,hcso,hcso_dt,hk_vdf) 取值范围: - true:[已售罄,将](tag:hws,hk,hws_eu,otc,tlf,ctc,sbc,g42,cmcc,hk_g42,dt_test,mix,hk_sbc,hws_ocb,dt)无法购买该规格的LB。 - false:[未售罄,](tag:hws,hk,hws_eu,otc,tlf,ctc,sbc,g42,cmcc,hk_g42,dt_test,mix,hk_sbc,hws_ocb,dt)可购买该规格的LB。 :param flavor_sold_out: The flavor_sold_out of this Flavor. :type flavor_sold_out: bool diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/flavor_info.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/flavor_info.py index e9f89f4d8e..3e1ddf76aa 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/flavor_info.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/flavor_info.py @@ -39,17 +39,17 @@ def __init__(self, connection=None, cps=None, qps=None, bandwidth=None, lcu=None The model defined in huaweicloud sdk - :param connection: 并发数。单位:个 + :param connection: 参数解释:并发数。单位:个。 :type connection: int - :param cps: 新建数。单位:个 + :param cps: 参数解释:新建数。单位:个。 :type cps: int - :param qps: 每秒查询数。单位:个。仅7层LB有该指标。 + :param qps: 参数解释:每秒查询数。单位:个。 约束限制:仅7层LB有该指标。 :type qps: int - :param bandwidth: 带宽。单位:Kbit/s。 + :param bandwidth: 参数解释:带宽。单位:Kbit/s。 :type bandwidth: int - :param lcu: 当前flavor对应的lcu数量。 LCU是用来衡量独享型ELB处理性能综合指标,LCU值越大,性能越好。单位:个 + :param lcu: 参数解释:当前flavor对应的lcu数量。单位:个。 > LCU是用来衡量独享型ELB处理性能综合指标,LCU值越大,性能越好。 :type lcu: int - :param https_cps: https新建连接数。单位:个。仅7层LB有该指标。 + :param https_cps: 参数解释:https新建连接数。单位:个。 约束限制:仅7层LB有该指标。 :type https_cps: int """ @@ -78,7 +78,7 @@ def __init__(self, connection=None, cps=None, qps=None, bandwidth=None, lcu=None def connection(self): """Gets the connection of this FlavorInfo. - 并发数。单位:个 + 参数解释:并发数。单位:个。 :return: The connection of this FlavorInfo. :rtype: int @@ -89,7 +89,7 @@ def connection(self): def connection(self, connection): """Sets the connection of this FlavorInfo. - 并发数。单位:个 + 参数解释:并发数。单位:个。 :param connection: The connection of this FlavorInfo. :type connection: int @@ -100,7 +100,7 @@ def connection(self, connection): def cps(self): """Gets the cps of this FlavorInfo. - 新建数。单位:个 + 参数解释:新建数。单位:个。 :return: The cps of this FlavorInfo. :rtype: int @@ -111,7 +111,7 @@ def cps(self): def cps(self, cps): """Sets the cps of this FlavorInfo. - 新建数。单位:个 + 参数解释:新建数。单位:个。 :param cps: The cps of this FlavorInfo. :type cps: int @@ -122,7 +122,7 @@ def cps(self, cps): def qps(self): """Gets the qps of this FlavorInfo. - 每秒查询数。单位:个。仅7层LB有该指标。 + 参数解释:每秒查询数。单位:个。 约束限制:仅7层LB有该指标。 :return: The qps of this FlavorInfo. :rtype: int @@ -133,7 +133,7 @@ def qps(self): def qps(self, qps): """Sets the qps of this FlavorInfo. - 每秒查询数。单位:个。仅7层LB有该指标。 + 参数解释:每秒查询数。单位:个。 约束限制:仅7层LB有该指标。 :param qps: The qps of this FlavorInfo. :type qps: int @@ -144,7 +144,7 @@ def qps(self, qps): def bandwidth(self): """Gets the bandwidth of this FlavorInfo. - 带宽。单位:Kbit/s。 + 参数解释:带宽。单位:Kbit/s。 :return: The bandwidth of this FlavorInfo. :rtype: int @@ -155,7 +155,7 @@ def bandwidth(self): def bandwidth(self, bandwidth): """Sets the bandwidth of this FlavorInfo. - 带宽。单位:Kbit/s。 + 参数解释:带宽。单位:Kbit/s。 :param bandwidth: The bandwidth of this FlavorInfo. :type bandwidth: int @@ -166,7 +166,7 @@ def bandwidth(self, bandwidth): def lcu(self): """Gets the lcu of this FlavorInfo. - 当前flavor对应的lcu数量。 LCU是用来衡量独享型ELB处理性能综合指标,LCU值越大,性能越好。单位:个 + 参数解释:当前flavor对应的lcu数量。单位:个。 > LCU是用来衡量独享型ELB处理性能综合指标,LCU值越大,性能越好。 :return: The lcu of this FlavorInfo. :rtype: int @@ -177,7 +177,7 @@ def lcu(self): def lcu(self, lcu): """Sets the lcu of this FlavorInfo. - 当前flavor对应的lcu数量。 LCU是用来衡量独享型ELB处理性能综合指标,LCU值越大,性能越好。单位:个 + 参数解释:当前flavor对应的lcu数量。单位:个。 > LCU是用来衡量独享型ELB处理性能综合指标,LCU值越大,性能越好。 :param lcu: The lcu of this FlavorInfo. :type lcu: int @@ -188,7 +188,7 @@ def lcu(self, lcu): def https_cps(self): """Gets the https_cps of this FlavorInfo. - https新建连接数。单位:个。仅7层LB有该指标。 + 参数解释:https新建连接数。单位:个。 约束限制:仅7层LB有该指标。 :return: The https_cps of this FlavorInfo. :rtype: int @@ -199,7 +199,7 @@ def https_cps(self): def https_cps(self, https_cps): """Sets the https_cps of this FlavorInfo. - https新建连接数。单位:个。仅7层LB有该指标。 + 参数解释:https新建连接数。单位:个。 约束限制:仅7层LB有该指标。 :param https_cps: The https_cps of this FlavorInfo. :type https_cps: int diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/global_eip_info.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/global_eip_info.py index d0f00d0b5e..5943f70550 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/global_eip_info.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/global_eip_info.py @@ -33,11 +33,11 @@ def __init__(self, global_eip_id=None, global_eip_address=None, ip_version=None) The model defined in huaweicloud sdk - :param global_eip_id: global eip的id + :param global_eip_id: 参数解释:global eip的id :type global_eip_id: str - :param global_eip_address: global eip的ip地址 + :param global_eip_address: 参数解释:global eip的ip地址 :type global_eip_address: str - :param ip_version: IP版本信息。 取值范围:4和6 4:IPv4 6:IPv6 [不支持IPv6,请勿设置为6。](tag:dt,dt_test) + :param ip_version: 参数解释:IP版本信息。 取值范围: - 4,表示IPv4 - 6,表示IPv6 [不支持IPv6,请勿设置为6。](tag:dt,dt_test) :type ip_version: int """ @@ -59,7 +59,7 @@ def __init__(self, global_eip_id=None, global_eip_address=None, ip_version=None) def global_eip_id(self): """Gets the global_eip_id of this GlobalEipInfo. - global eip的id + 参数解释:global eip的id :return: The global_eip_id of this GlobalEipInfo. :rtype: str @@ -70,7 +70,7 @@ def global_eip_id(self): def global_eip_id(self, global_eip_id): """Sets the global_eip_id of this GlobalEipInfo. - global eip的id + 参数解释:global eip的id :param global_eip_id: The global_eip_id of this GlobalEipInfo. :type global_eip_id: str @@ -81,7 +81,7 @@ def global_eip_id(self, global_eip_id): def global_eip_address(self): """Gets the global_eip_address of this GlobalEipInfo. - global eip的ip地址 + 参数解释:global eip的ip地址 :return: The global_eip_address of this GlobalEipInfo. :rtype: str @@ -92,7 +92,7 @@ def global_eip_address(self): def global_eip_address(self, global_eip_address): """Sets the global_eip_address of this GlobalEipInfo. - global eip的ip地址 + 参数解释:global eip的ip地址 :param global_eip_address: The global_eip_address of this GlobalEipInfo. :type global_eip_address: str @@ -103,7 +103,7 @@ def global_eip_address(self, global_eip_address): def ip_version(self): """Gets the ip_version of this GlobalEipInfo. - IP版本信息。 取值范围:4和6 4:IPv4 6:IPv6 [不支持IPv6,请勿设置为6。](tag:dt,dt_test) + 参数解释:IP版本信息。 取值范围: - 4,表示IPv4 - 6,表示IPv6 [不支持IPv6,请勿设置为6。](tag:dt,dt_test) :return: The ip_version of this GlobalEipInfo. :rtype: int @@ -114,7 +114,7 @@ def ip_version(self): def ip_version(self, ip_version): """Sets the ip_version of this GlobalEipInfo. - IP版本信息。 取值范围:4和6 4:IPv4 6:IPv6 [不支持IPv6,请勿设置为6。](tag:dt,dt_test) + 参数解释:IP版本信息。 取值范围: - 4,表示IPv4 - 6,表示IPv6 [不支持IPv6,请勿设置为6。](tag:dt,dt_test) :param ip_version: The ip_version of this GlobalEipInfo. :type ip_version: int diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/health_monitor.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/health_monitor.py index 886c2c72de..0a9176d468 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/health_monitor.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/health_monitor.py @@ -61,13 +61,13 @@ def __init__(self, admin_state_up=None, delay=None, domain_name=None, expected_c The model defined in huaweicloud sdk - :param admin_state_up: 健康检查的管理状态。 取值: - true:表示开启健康检查,默认为true。 - false表示关闭健康检查。 + :param admin_state_up: 健康检查的管理状态。 取值范围: - true:表示开启健康检查。 - false表示关闭健康检查。 默认取值:true。 :type admin_state_up: bool :param delay: 健康检查间隔。取值:1-50s。 :type delay: int :param domain_name: 发送健康检查请求的域名。 取值:以数字或字母开头,只能包含数字、字母、’-’、’.’。 默认为空,表示使用负载均衡器的vip作为http请求的目的地址。 使用说明:当type为HTTP/HTTPS时生效。 :type domain_name: str - :param expected_codes: 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:若健康检查type为gRPC,则默认值为0,;其他为200。 仅支持HTTP/HTTPS/GRPC设置该字段,其他协议设置不会生效。 + :param expected_codes: 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:若健康检查type为gRPC,则默认值为0,;其他为200。 仅支持HTTP/HTTPS/gRPC设置该字段,其他协议设置不会生效。 :type expected_codes: str :param http_method: HTTP请求方法。 取值:GET、HEAD、POST,默认GET。 使用说明:当type为HTTP/HTTPS时生效。 :type http_method: str @@ -77,7 +77,7 @@ def __init__(self, admin_state_up=None, delay=None, domain_name=None, expected_c :type max_retries: int :param max_retries_down: 健康检查连续失败多少次后,将后端服务器的健康检查状态由ONLINE判定为OFFLINE。取值范围:1-10,默认3。 :type max_retries_down: int - :param monitor_port: 健康检查端口号。取值:1-65535,默认为空,表示使用后端云服务器端口号。 + :param monitor_port: 健康检查端口号。取值:1-65535,默认为空,表示使用后端云服务器端口号。[当pool协议为IP时,monitor_port必须指定为非0值。](tag:hws_eu) :type monitor_port: int :param name: 健康检查名称。 :type name: str @@ -87,7 +87,7 @@ def __init__(self, admin_state_up=None, delay=None, domain_name=None, expected_c :type project_id: str :param timeout: 一次健康检查请求的超时时间。 建议该值小于delay的值。 :type timeout: int - :param type: 健康检查请求协议。 取值:TCP、UDP_CONNECT、HTTP、HTTPS、TLS和GRPC。 使用说明: - 若pool的protocol为QUIC,则type只能是UDP_CONNECT。 - 若pool的protocol为UDP,则type只能UDP_CONNECT。 - 若pool的protocol为TCP,则type可以是TCP、HTTP、HTTPS。 - 若pool的protocol为HTTP,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 - 若pool的protocol为HTTPS,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 - 若pool的protocol为GRPC,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 - 若pool的protocol为TLS,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) + :param type: 健康检查请求协议。 取值:TCP、UDP_CONNECT、HTTP、HTTPS、TLS和gRPC。 使用说明: - 若pool的protocol为QUIC,则type只能是UDP_CONNECT。 - 若pool的protocol为UDP,则type只能UDP_CONNECT。 - 若pool的protocol为TCP,则type可以是TCP、HTTP、HTTPS。 [- 若pool的protocol为IP,则type可以是TCP、HTTP、HTTPS。](tag:hws_eu) - 若pool的protocol为HTTP,则type可以是TCP、HTTP、HTTPS、TLS、gRPC。 - 若pool的protocol为HTTPS,则type可以是TCP、HTTP、HTTPS、TLS、gRPC。 - 若pool的protocol为gRPC,则type可以是TCP、HTTP、HTTPS、TLS、gRPC。 - 若pool的protocol为TLS,则type可以是TCP、HTTP、HTTPS、TLS、gRPC。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) :type type: str :param url_path: 健康检查请求的请求路径。以\"/\"开头,默认为\"/\"。 支持使用字母、数字和短划线(-)、正斜线(/)、半角句号(.)、百分号(%)、半角问号(?)、井号(#)和and(&)以及扩展字符集_;~!()*[]@$^:',+ 使用说明:当type为HTTP/HTTPS时生效。 :type url_path: str @@ -142,7 +142,7 @@ def __init__(self, admin_state_up=None, delay=None, domain_name=None, expected_c def admin_state_up(self): """Gets the admin_state_up of this HealthMonitor. - 健康检查的管理状态。 取值: - true:表示开启健康检查,默认为true。 - false表示关闭健康检查。 + 健康检查的管理状态。 取值范围: - true:表示开启健康检查。 - false表示关闭健康检查。 默认取值:true。 :return: The admin_state_up of this HealthMonitor. :rtype: bool @@ -153,7 +153,7 @@ def admin_state_up(self): def admin_state_up(self, admin_state_up): """Sets the admin_state_up of this HealthMonitor. - 健康检查的管理状态。 取值: - true:表示开启健康检查,默认为true。 - false表示关闭健康检查。 + 健康检查的管理状态。 取值范围: - true:表示开启健康检查。 - false表示关闭健康检查。 默认取值:true。 :param admin_state_up: The admin_state_up of this HealthMonitor. :type admin_state_up: bool @@ -208,7 +208,7 @@ def domain_name(self, domain_name): def expected_codes(self): """Gets the expected_codes of this HealthMonitor. - 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:若健康检查type为gRPC,则默认值为0,;其他为200。 仅支持HTTP/HTTPS/GRPC设置该字段,其他协议设置不会生效。 + 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:若健康检查type为gRPC,则默认值为0,;其他为200。 仅支持HTTP/HTTPS/gRPC设置该字段,其他协议设置不会生效。 :return: The expected_codes of this HealthMonitor. :rtype: str @@ -219,7 +219,7 @@ def expected_codes(self): def expected_codes(self, expected_codes): """Sets the expected_codes of this HealthMonitor. - 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:若健康检查type为gRPC,则默认值为0,;其他为200。 仅支持HTTP/HTTPS/GRPC设置该字段,其他协议设置不会生效。 + 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:若健康检查type为gRPC,则默认值为0,;其他为200。 仅支持HTTP/HTTPS/gRPC设置该字段,其他协议设置不会生效。 :param expected_codes: The expected_codes of this HealthMonitor. :type expected_codes: str @@ -318,7 +318,7 @@ def max_retries_down(self, max_retries_down): def monitor_port(self): """Gets the monitor_port of this HealthMonitor. - 健康检查端口号。取值:1-65535,默认为空,表示使用后端云服务器端口号。 + 健康检查端口号。取值:1-65535,默认为空,表示使用后端云服务器端口号。[当pool协议为IP时,monitor_port必须指定为非0值。](tag:hws_eu) :return: The monitor_port of this HealthMonitor. :rtype: int @@ -329,7 +329,7 @@ def monitor_port(self): def monitor_port(self, monitor_port): """Sets the monitor_port of this HealthMonitor. - 健康检查端口号。取值:1-65535,默认为空,表示使用后端云服务器端口号。 + 健康检查端口号。取值:1-65535,默认为空,表示使用后端云服务器端口号。[当pool协议为IP时,monitor_port必须指定为非0值。](tag:hws_eu) :param monitor_port: The monitor_port of this HealthMonitor. :type monitor_port: int @@ -428,7 +428,7 @@ def timeout(self, timeout): def type(self): """Gets the type of this HealthMonitor. - 健康检查请求协议。 取值:TCP、UDP_CONNECT、HTTP、HTTPS、TLS和GRPC。 使用说明: - 若pool的protocol为QUIC,则type只能是UDP_CONNECT。 - 若pool的protocol为UDP,则type只能UDP_CONNECT。 - 若pool的protocol为TCP,则type可以是TCP、HTTP、HTTPS。 - 若pool的protocol为HTTP,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 - 若pool的protocol为HTTPS,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 - 若pool的protocol为GRPC,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 - 若pool的protocol为TLS,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) + 健康检查请求协议。 取值:TCP、UDP_CONNECT、HTTP、HTTPS、TLS和gRPC。 使用说明: - 若pool的protocol为QUIC,则type只能是UDP_CONNECT。 - 若pool的protocol为UDP,则type只能UDP_CONNECT。 - 若pool的protocol为TCP,则type可以是TCP、HTTP、HTTPS。 [- 若pool的protocol为IP,则type可以是TCP、HTTP、HTTPS。](tag:hws_eu) - 若pool的protocol为HTTP,则type可以是TCP、HTTP、HTTPS、TLS、gRPC。 - 若pool的protocol为HTTPS,则type可以是TCP、HTTP、HTTPS、TLS、gRPC。 - 若pool的protocol为gRPC,则type可以是TCP、HTTP、HTTPS、TLS、gRPC。 - 若pool的protocol为TLS,则type可以是TCP、HTTP、HTTPS、TLS、gRPC。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) :return: The type of this HealthMonitor. :rtype: str @@ -439,7 +439,7 @@ def type(self): def type(self, type): """Sets the type of this HealthMonitor. - 健康检查请求协议。 取值:TCP、UDP_CONNECT、HTTP、HTTPS、TLS和GRPC。 使用说明: - 若pool的protocol为QUIC,则type只能是UDP_CONNECT。 - 若pool的protocol为UDP,则type只能UDP_CONNECT。 - 若pool的protocol为TCP,则type可以是TCP、HTTP、HTTPS。 - 若pool的protocol为HTTP,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 - 若pool的protocol为HTTPS,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 - 若pool的protocol为GRPC,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 - 若pool的protocol为TLS,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) + 健康检查请求协议。 取值:TCP、UDP_CONNECT、HTTP、HTTPS、TLS和gRPC。 使用说明: - 若pool的protocol为QUIC,则type只能是UDP_CONNECT。 - 若pool的protocol为UDP,则type只能UDP_CONNECT。 - 若pool的protocol为TCP,则type可以是TCP、HTTP、HTTPS。 [- 若pool的protocol为IP,则type可以是TCP、HTTP、HTTPS。](tag:hws_eu) - 若pool的protocol为HTTP,则type可以是TCP、HTTP、HTTPS、TLS、gRPC。 - 若pool的protocol为HTTPS,则type可以是TCP、HTTP、HTTPS、TLS、gRPC。 - 若pool的protocol为gRPC,则type可以是TCP、HTTP、HTTPS、TLS、gRPC。 - 若pool的protocol为TLS,则type可以是TCP、HTTP、HTTPS、TLS、gRPC。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) :param type: The type of this HealthMonitor. :type type: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/insert_header_config.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/insert_header_config.py index 39e759eca5..fc0755292d 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/insert_header_config.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/insert_header_config.py @@ -33,11 +33,11 @@ def __init__(self, key=None, value_type=None, value=None): The model defined in huaweicloud sdk - :param key: 支持1-40个字符(不区分大小写)。 支持字母a-z,数字,短划线-和下划线_。 key不能是以下字符: connection、upgrade、content-length、transfer-encoding、keep-alive、te、host、cookie、remoteip、authority、x-forwarded-host、x-forwarded-for、x-forwarded-for-port、x-forwarded-tls-certificate-id、x-forwarded-tls-protocol、x-forwarded-tls-cipher、x-forwarded-elb-ip、x-forwarded-port、x-forwarded-elb-id、x-forwarded-elb-vip、x-real-ip、x-forwarded-proto、x-nuwa-trace-ne-in、x-nuwa-trace-ne-out。 + :param key: 参数解释:请求头参数名。 约束限制:不能是以下字符: connection、upgrade、content-length、transfer-encoding、keep-alive、te、host、cookie、remoteip、authority、x-forwarded-host、x-forwarded-for、x-forwarded-for-port、x-forwarded-tls-certificate-id、x-forwarded-tls-protocol、x-forwarded-tls-cipher、x-forwarded-elb-ip、x-forwarded-port、x-forwarded-elb-id、x-forwarded-elb-vip、x-real-ip、x-forwarded-proto、x-nuwa-trace-ne-in、x-nuwa-trace-ne-out。 取值范围:1-40个字符,字母a-z(不区分大小写)、数字,短划线-和下划线_。 :type key: str - :param value_type: 可选值:USER_DEFINED,REFERENCE_HEADER,SYSTEM_DEFINED。 + :param value_type: 参数解释:请求头参数类别。 取值范围:USER_DEFINED,REFERENCE_HEADER,SYSTEM_DEFINED。 :type value_type: str - :param value: header值。当value_type为SYSTEM_DEFINED时,value只可从CLIENT-PORT,CLIENT-IP, ELB-PROTOCOL, ELB-ID, ELB-PORT, ELB-EIP, ELB-VIP中取值。 取值范围:1-128个字符, 支持ascii码值32<=ch<=127范围内可打印字符,*和英文问号?。不能以空格开头或结尾。 + :param value: 参数解释:请求头参数的值。 约束限制:当value_type为SYSTEM_DEFINED时,value只可从CLIENT-PORT,CLIENT-IP, ELB-PROTOCOL, ELB-ID, ELB-PORT, ELB-EIP, ELB-VIP中取值。 取值范围:1-128个字符,支持ascii码值32<=ch<=127范围内可打印字符,*和英文问号?。不能以空格开头或结尾。 :type value: str """ @@ -56,7 +56,7 @@ def __init__(self, key=None, value_type=None, value=None): def key(self): """Gets the key of this InsertHeaderConfig. - 支持1-40个字符(不区分大小写)。 支持字母a-z,数字,短划线-和下划线_。 key不能是以下字符: connection、upgrade、content-length、transfer-encoding、keep-alive、te、host、cookie、remoteip、authority、x-forwarded-host、x-forwarded-for、x-forwarded-for-port、x-forwarded-tls-certificate-id、x-forwarded-tls-protocol、x-forwarded-tls-cipher、x-forwarded-elb-ip、x-forwarded-port、x-forwarded-elb-id、x-forwarded-elb-vip、x-real-ip、x-forwarded-proto、x-nuwa-trace-ne-in、x-nuwa-trace-ne-out。 + 参数解释:请求头参数名。 约束限制:不能是以下字符: connection、upgrade、content-length、transfer-encoding、keep-alive、te、host、cookie、remoteip、authority、x-forwarded-host、x-forwarded-for、x-forwarded-for-port、x-forwarded-tls-certificate-id、x-forwarded-tls-protocol、x-forwarded-tls-cipher、x-forwarded-elb-ip、x-forwarded-port、x-forwarded-elb-id、x-forwarded-elb-vip、x-real-ip、x-forwarded-proto、x-nuwa-trace-ne-in、x-nuwa-trace-ne-out。 取值范围:1-40个字符,字母a-z(不区分大小写)、数字,短划线-和下划线_。 :return: The key of this InsertHeaderConfig. :rtype: str @@ -67,7 +67,7 @@ def key(self): def key(self, key): """Sets the key of this InsertHeaderConfig. - 支持1-40个字符(不区分大小写)。 支持字母a-z,数字,短划线-和下划线_。 key不能是以下字符: connection、upgrade、content-length、transfer-encoding、keep-alive、te、host、cookie、remoteip、authority、x-forwarded-host、x-forwarded-for、x-forwarded-for-port、x-forwarded-tls-certificate-id、x-forwarded-tls-protocol、x-forwarded-tls-cipher、x-forwarded-elb-ip、x-forwarded-port、x-forwarded-elb-id、x-forwarded-elb-vip、x-real-ip、x-forwarded-proto、x-nuwa-trace-ne-in、x-nuwa-trace-ne-out。 + 参数解释:请求头参数名。 约束限制:不能是以下字符: connection、upgrade、content-length、transfer-encoding、keep-alive、te、host、cookie、remoteip、authority、x-forwarded-host、x-forwarded-for、x-forwarded-for-port、x-forwarded-tls-certificate-id、x-forwarded-tls-protocol、x-forwarded-tls-cipher、x-forwarded-elb-ip、x-forwarded-port、x-forwarded-elb-id、x-forwarded-elb-vip、x-real-ip、x-forwarded-proto、x-nuwa-trace-ne-in、x-nuwa-trace-ne-out。 取值范围:1-40个字符,字母a-z(不区分大小写)、数字,短划线-和下划线_。 :param key: The key of this InsertHeaderConfig. :type key: str @@ -78,7 +78,7 @@ def key(self, key): def value_type(self): """Gets the value_type of this InsertHeaderConfig. - 可选值:USER_DEFINED,REFERENCE_HEADER,SYSTEM_DEFINED。 + 参数解释:请求头参数类别。 取值范围:USER_DEFINED,REFERENCE_HEADER,SYSTEM_DEFINED。 :return: The value_type of this InsertHeaderConfig. :rtype: str @@ -89,7 +89,7 @@ def value_type(self): def value_type(self, value_type): """Sets the value_type of this InsertHeaderConfig. - 可选值:USER_DEFINED,REFERENCE_HEADER,SYSTEM_DEFINED。 + 参数解释:请求头参数类别。 取值范围:USER_DEFINED,REFERENCE_HEADER,SYSTEM_DEFINED。 :param value_type: The value_type of this InsertHeaderConfig. :type value_type: str @@ -100,7 +100,7 @@ def value_type(self, value_type): def value(self): """Gets the value of this InsertHeaderConfig. - header值。当value_type为SYSTEM_DEFINED时,value只可从CLIENT-PORT,CLIENT-IP, ELB-PROTOCOL, ELB-ID, ELB-PORT, ELB-EIP, ELB-VIP中取值。 取值范围:1-128个字符, 支持ascii码值32<=ch<=127范围内可打印字符,*和英文问号?。不能以空格开头或结尾。 + 参数解释:请求头参数的值。 约束限制:当value_type为SYSTEM_DEFINED时,value只可从CLIENT-PORT,CLIENT-IP, ELB-PROTOCOL, ELB-ID, ELB-PORT, ELB-EIP, ELB-VIP中取值。 取值范围:1-128个字符,支持ascii码值32<=ch<=127范围内可打印字符,*和英文问号?。不能以空格开头或结尾。 :return: The value of this InsertHeaderConfig. :rtype: str @@ -111,7 +111,7 @@ def value(self): def value(self, value): """Sets the value of this InsertHeaderConfig. - header值。当value_type为SYSTEM_DEFINED时,value只可从CLIENT-PORT,CLIENT-IP, ELB-PROTOCOL, ELB-ID, ELB-PORT, ELB-EIP, ELB-VIP中取值。 取值范围:1-128个字符, 支持ascii码值32<=ch<=127范围内可打印字符,*和英文问号?。不能以空格开头或结尾。 + 参数解释:请求头参数的值。 约束限制:当value_type为SYSTEM_DEFINED时,value只可从CLIENT-PORT,CLIENT-IP, ELB-PROTOCOL, ELB-ID, ELB-PORT, ELB-EIP, ELB-VIP中取值。 取值范围:1-128个字符,支持ascii码值32<=ch<=127范围内可打印字符,*和英文问号?。不能以空格开头或结尾。 :param value: The value of this InsertHeaderConfig. :type value: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/insert_headers_config.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/insert_headers_config.py index 3ff45d8428..96502c2854 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/insert_headers_config.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/insert_headers_config.py @@ -29,7 +29,7 @@ def __init__(self, configs=None): The model defined in huaweicloud sdk - :param configs: 要添加请求头参数列表。 + :param configs: 参数解释:要添加请求头参数列表。 :type configs: list[:class:`huaweicloudsdkelb.v3.InsertHeaderConfig`] """ @@ -44,7 +44,7 @@ def __init__(self, configs=None): def configs(self): """Gets the configs of this InsertHeadersConfig. - 要添加请求头参数列表。 + 参数解释:要添加请求头参数列表。 :return: The configs of this InsertHeadersConfig. :rtype: list[:class:`huaweicloudsdkelb.v3.InsertHeaderConfig`] @@ -55,7 +55,7 @@ def configs(self): def configs(self, configs): """Sets the configs of this InsertHeadersConfig. - 要添加请求头参数列表。 + 参数解释:要添加请求头参数列表。 :param configs: The configs of this InsertHeadersConfig. :type configs: list[:class:`huaweicloudsdkelb.v3.InsertHeaderConfig`] diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/l7_policy.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/l7_policy.py index 162bc86619..1814789ef9 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/l7_policy.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/l7_policy.py @@ -69,37 +69,37 @@ def __init__(self, action=None, admin_state_up=None, description=None, id=None, The model defined in huaweicloud sdk - :param action: 转发策略的转发动作。 取值: - REDIRECT_TO_POOL:转发到后端云服务器组; - REDIRECT_TO_LISTENER:重定向到监听器; - REDIRECT_TO_URL:重定向到URL; - FIXED_RESPONSE:返回固定响应体。 使用说明: - REDIRECT_TO_LISTENER的优先级最高,配置了以后,该监听器下的其他policy会失效。 - 当action为REDIRECT_TO_POOL时, 只支持创建在PROTOCOL为HTTP、HTTPS、TERMINATED_HTTPS的listener上。 - 当action为REDIRECT_TO_LISTENER时,只支持创建在PROTOCOL为HTTP的listener上。 [不支持REDIRECT_TO_URL和FIXED_RESPONSE](tag:hcso_dt) + :param action: 参数解释:转发策略的转发动作。 约束限制: - REDIRECT_TO_LISTENER的优先级最高,配置了以后,该监听器下的其他policy会失效。 - 当action为REDIRECT_TO_POOL时, 只支持创建在PROTOCOL为HTTP、HTTPS、TERMINATED_HTTPS的listener上。 - 当action为REDIRECT_TO_LISTENER时,只支持创建在PROTOCOL为HTTP的listener上。 取值范围: - REDIRECT_TO_POOL:转发到后端云服务器组; - REDIRECT_TO_LISTENER:重定向到监听器; - REDIRECT_TO_URL:重定向到URL; - FIXED_RESPONSE:返回固定响应体。 [不支持REDIRECT_TO_URL和FIXED_RESPONSE](tag:hcso_dt) :type action: str - :param admin_state_up: 转发策略的管理状态,默认为true。 不支持该字段,请勿使用。 + :param admin_state_up: 参数解释:转发策略的管理状态。 约束限制:只支持设置为true。 :type admin_state_up: bool - :param description: 转发策略描述信息。 + :param description: 参数解释:转发策略描述信息。 :type description: str - :param id: 转发策略ID。 + :param id: 参数解释:转发策略ID。 :type id: str - :param listener_id: 转发策略所属的监听器ID。 + :param listener_id: 参数解释:转发策略所属的监听器ID。 :type listener_id: str - :param name: 转发策略名称 + :param name: 参数解释:转发策略名称 :type name: str - :param position: 转发策略的优先级,不支持更新。 不支持该字段,请勿使用。 + :param position: 参数解释:转发策略的优先级,不支持更新。 不支持该字段,请勿使用。 :type position: int - :param priority: 转发策略的优先级。数字越小表示优先级越高,同一监听器下不允许重复。 当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效,未开启传入该字段会报错。 当action为REDIRECT_TO_LISTENER时,仅支持指定为0,优先级最高。 当关联的listener没有开启enhance_l7policy_enable,按原有policy的排序逻辑,自动排序。 各域名之间优先级独立,相同域名下,按path的compare_type排序,精确>前缀>正则, 匹配类型相同时,path的长度越长优先级越高。若policy下只有域名rule,没有路径rule,默认path为前缀匹配/。 当关联的listener开启了enhance_l7policy_enable,且不传该字段,则新创建的转发策略的优先级的值为: 同一监听器下已有转发策略的优先级的最大值+1。 因此,若当前已有转发策略的优先级的最大值是10000,新创建会因超出取值范围10000而失败。 此时可通过传入指定priority,或调整原有policy的优先级来避免错误。若监听器下没有转发策略,则新建的转发策略的优先级为1。 [共享型负载均衡器下的转发策略不支持该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) + :param priority: 参数解释:转发策略的优先级。数字越小表示优先级越高。 约束限制: - 同一个监听器下不同转发策略之间不允许重复的优先级数值。 - 当关联的监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效,未开启传入该字段会报错。 - 当关联的监听器的高级转发策略功能(enhance_l7policy_enable)未开启,按原有policy的排序逻辑,自动排序。 不同域名优先级独立。相同域名下,按path的compare_type排序, 精确>前缀>正则,匹配类型相同时,path的长度越长优先级越高。 若policy下只有域名rule,没有路径rule,默认path为前缀匹配/。 [- 共享型负载均衡器下的转发策略不支持该字段。](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) 取值范围: - 当action为REDIRECT_TO_LISTENER时,支持指定为0-10000。 - 其它action取值,支持指定为1-10000。 默认取值: - 若关联的监听器的高级转发策略功能(enhance_l7policy_enable)未开启,且不传入该字段,则新创建的转发策略的优先级的值为1。 - 当action为REDIRECT_TO_LISTENER时,则新创建的转发策略的优先级的值为0。 - 其它action取值,新创建的转发策略的优先级的值为同一监听器下已有转发策略的优先级的最大值+1。 + 若监听器下没有转发策略,则新建的转发策略的优先级为1。 + 若当前已有转发策略的优先级的最大值是10000,则新创建的转发策略会因超出取值范围10000而失败。此时可通过传入指定priority,或调整原有policy的优先级来避免错误。 [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) :type priority: int - :param project_id: 转发策略所在的项目ID。 + :param project_id: 参数解释:转发策略所在的项目ID。 :type project_id: str - :param provisioning_status: 转发策略的配置状态。 取值范围: - ACTIVE: 默认值,表示正常。 [- ERROR: 表示当前策略与同一监听器下的其他策略存在相同的规则配置。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs) + :param provisioning_status: 参数解释:转发策略的配置状态。 取值范围: - ACTIVE: 默认值,表示正常。 [- ERROR: 表示当前策略与同一监听器下的其他策略存在相同的规则配置。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs) :type provisioning_status: str - :param redirect_pool_id: 转发到pool的ID。当action为REDIRECT_TO_POOL时生效。 + :param redirect_pool_id: 参数解释:转发到pool的ID。 约束限制:当action为REDIRECT_TO_POOL时生效。 :type redirect_pool_id: str - :param redirect_listener_id: 转发到的listener的ID,当action为REDIRECT_TO_LISTENER时必选。 使用说明: - 只支持protocol为HTTPS/TERMINATED_HTTPS的listener。 - 不能指定为其他loadbalancer下的listener。 - 当action为REDIRECT_TO_POOL时,创建或更新时不能传入该参数。 + :param redirect_listener_id: 参数解释:转发到的listener的ID。 约束限制: - 当action为REDIRECT_TO_LISTENER时必选。 - 只支持protocol为HTTPS/TERMINATED_HTTPS的listener。 - 不能指定为其他loadbalancer下的listener。 - 当action为REDIRECT_TO_POOL时,创建或更新时不能传入该参数。 :type redirect_listener_id: str - :param redirect_url: 转发到的url。必须满足格式: protocol://host:port/path?query。 不支持该字段,请勿使用。 + :param redirect_url: 参数解释:转发到的url。 取值范围:必须满足格式: protocol://host:port/path?query。 不支持该字段,请勿使用。 :type redirect_url: str - :param rules: 转发策略关联的转发规则列表 + :param rules: 参数解释:转发策略关联的转发规则列表。 :type rules: list[:class:`huaweicloudsdkelb.v3.RuleRef`] :param redirect_url_config: :type redirect_url_config: :class:`huaweicloudsdkelb.v3.RedirectUrlConfig` - :param redirect_pools_config: 转发到多个主机组列表。一个policy最多配置5个pool。 + :param redirect_pools_config: 参数解释:转发到多个主机组列表。 约束限制:一个policy最多配置5个pool。 :type redirect_pools_config: list[:class:`huaweicloudsdkelb.v3.RedirectPoolsConfig`] :param redirect_pools_sticky_session_config: :type redirect_pools_sticky_session_config: :class:`huaweicloudsdkelb.v3.RedirectPoolsStickySessionConfig` @@ -107,9 +107,9 @@ def __init__(self, action=None, admin_state_up=None, description=None, id=None, :type redirect_pools_extend_config: :class:`huaweicloudsdkelb.v3.RedirectPoolsExtendConfig` :param fixed_response_config: :type fixed_response_config: :class:`huaweicloudsdkelb.v3.FixtedResponseConfig` - :param created_at: 创建时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) + :param created_at: 参数解释:创建时间。 取值范围:格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) :type created_at: str - :param updated_at: 更新时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) + :param updated_at: 参数解释:更新时间。 取值范围:格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) :type updated_at: str """ @@ -170,7 +170,7 @@ def __init__(self, action=None, admin_state_up=None, description=None, id=None, def action(self): """Gets the action of this L7Policy. - 转发策略的转发动作。 取值: - REDIRECT_TO_POOL:转发到后端云服务器组; - REDIRECT_TO_LISTENER:重定向到监听器; - REDIRECT_TO_URL:重定向到URL; - FIXED_RESPONSE:返回固定响应体。 使用说明: - REDIRECT_TO_LISTENER的优先级最高,配置了以后,该监听器下的其他policy会失效。 - 当action为REDIRECT_TO_POOL时, 只支持创建在PROTOCOL为HTTP、HTTPS、TERMINATED_HTTPS的listener上。 - 当action为REDIRECT_TO_LISTENER时,只支持创建在PROTOCOL为HTTP的listener上。 [不支持REDIRECT_TO_URL和FIXED_RESPONSE](tag:hcso_dt) + 参数解释:转发策略的转发动作。 约束限制: - REDIRECT_TO_LISTENER的优先级最高,配置了以后,该监听器下的其他policy会失效。 - 当action为REDIRECT_TO_POOL时, 只支持创建在PROTOCOL为HTTP、HTTPS、TERMINATED_HTTPS的listener上。 - 当action为REDIRECT_TO_LISTENER时,只支持创建在PROTOCOL为HTTP的listener上。 取值范围: - REDIRECT_TO_POOL:转发到后端云服务器组; - REDIRECT_TO_LISTENER:重定向到监听器; - REDIRECT_TO_URL:重定向到URL; - FIXED_RESPONSE:返回固定响应体。 [不支持REDIRECT_TO_URL和FIXED_RESPONSE](tag:hcso_dt) :return: The action of this L7Policy. :rtype: str @@ -181,7 +181,7 @@ def action(self): def action(self, action): """Sets the action of this L7Policy. - 转发策略的转发动作。 取值: - REDIRECT_TO_POOL:转发到后端云服务器组; - REDIRECT_TO_LISTENER:重定向到监听器; - REDIRECT_TO_URL:重定向到URL; - FIXED_RESPONSE:返回固定响应体。 使用说明: - REDIRECT_TO_LISTENER的优先级最高,配置了以后,该监听器下的其他policy会失效。 - 当action为REDIRECT_TO_POOL时, 只支持创建在PROTOCOL为HTTP、HTTPS、TERMINATED_HTTPS的listener上。 - 当action为REDIRECT_TO_LISTENER时,只支持创建在PROTOCOL为HTTP的listener上。 [不支持REDIRECT_TO_URL和FIXED_RESPONSE](tag:hcso_dt) + 参数解释:转发策略的转发动作。 约束限制: - REDIRECT_TO_LISTENER的优先级最高,配置了以后,该监听器下的其他policy会失效。 - 当action为REDIRECT_TO_POOL时, 只支持创建在PROTOCOL为HTTP、HTTPS、TERMINATED_HTTPS的listener上。 - 当action为REDIRECT_TO_LISTENER时,只支持创建在PROTOCOL为HTTP的listener上。 取值范围: - REDIRECT_TO_POOL:转发到后端云服务器组; - REDIRECT_TO_LISTENER:重定向到监听器; - REDIRECT_TO_URL:重定向到URL; - FIXED_RESPONSE:返回固定响应体。 [不支持REDIRECT_TO_URL和FIXED_RESPONSE](tag:hcso_dt) :param action: The action of this L7Policy. :type action: str @@ -192,7 +192,7 @@ def action(self, action): def admin_state_up(self): """Gets the admin_state_up of this L7Policy. - 转发策略的管理状态,默认为true。 不支持该字段,请勿使用。 + 参数解释:转发策略的管理状态。 约束限制:只支持设置为true。 :return: The admin_state_up of this L7Policy. :rtype: bool @@ -203,7 +203,7 @@ def admin_state_up(self): def admin_state_up(self, admin_state_up): """Sets the admin_state_up of this L7Policy. - 转发策略的管理状态,默认为true。 不支持该字段,请勿使用。 + 参数解释:转发策略的管理状态。 约束限制:只支持设置为true。 :param admin_state_up: The admin_state_up of this L7Policy. :type admin_state_up: bool @@ -214,7 +214,7 @@ def admin_state_up(self, admin_state_up): def description(self): """Gets the description of this L7Policy. - 转发策略描述信息。 + 参数解释:转发策略描述信息。 :return: The description of this L7Policy. :rtype: str @@ -225,7 +225,7 @@ def description(self): def description(self, description): """Sets the description of this L7Policy. - 转发策略描述信息。 + 参数解释:转发策略描述信息。 :param description: The description of this L7Policy. :type description: str @@ -236,7 +236,7 @@ def description(self, description): def id(self): """Gets the id of this L7Policy. - 转发策略ID。 + 参数解释:转发策略ID。 :return: The id of this L7Policy. :rtype: str @@ -247,7 +247,7 @@ def id(self): def id(self, id): """Sets the id of this L7Policy. - 转发策略ID。 + 参数解释:转发策略ID。 :param id: The id of this L7Policy. :type id: str @@ -258,7 +258,7 @@ def id(self, id): def listener_id(self): """Gets the listener_id of this L7Policy. - 转发策略所属的监听器ID。 + 参数解释:转发策略所属的监听器ID。 :return: The listener_id of this L7Policy. :rtype: str @@ -269,7 +269,7 @@ def listener_id(self): def listener_id(self, listener_id): """Sets the listener_id of this L7Policy. - 转发策略所属的监听器ID。 + 参数解释:转发策略所属的监听器ID。 :param listener_id: The listener_id of this L7Policy. :type listener_id: str @@ -280,7 +280,7 @@ def listener_id(self, listener_id): def name(self): """Gets the name of this L7Policy. - 转发策略名称 + 参数解释:转发策略名称 :return: The name of this L7Policy. :rtype: str @@ -291,7 +291,7 @@ def name(self): def name(self, name): """Sets the name of this L7Policy. - 转发策略名称 + 参数解释:转发策略名称 :param name: The name of this L7Policy. :type name: str @@ -302,7 +302,7 @@ def name(self, name): def position(self): """Gets the position of this L7Policy. - 转发策略的优先级,不支持更新。 不支持该字段,请勿使用。 + 参数解释:转发策略的优先级,不支持更新。 不支持该字段,请勿使用。 :return: The position of this L7Policy. :rtype: int @@ -313,7 +313,7 @@ def position(self): def position(self, position): """Sets the position of this L7Policy. - 转发策略的优先级,不支持更新。 不支持该字段,请勿使用。 + 参数解释:转发策略的优先级,不支持更新。 不支持该字段,请勿使用。 :param position: The position of this L7Policy. :type position: int @@ -324,7 +324,7 @@ def position(self, position): def priority(self): """Gets the priority of this L7Policy. - 转发策略的优先级。数字越小表示优先级越高,同一监听器下不允许重复。 当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效,未开启传入该字段会报错。 当action为REDIRECT_TO_LISTENER时,仅支持指定为0,优先级最高。 当关联的listener没有开启enhance_l7policy_enable,按原有policy的排序逻辑,自动排序。 各域名之间优先级独立,相同域名下,按path的compare_type排序,精确>前缀>正则, 匹配类型相同时,path的长度越长优先级越高。若policy下只有域名rule,没有路径rule,默认path为前缀匹配/。 当关联的listener开启了enhance_l7policy_enable,且不传该字段,则新创建的转发策略的优先级的值为: 同一监听器下已有转发策略的优先级的最大值+1。 因此,若当前已有转发策略的优先级的最大值是10000,新创建会因超出取值范围10000而失败。 此时可通过传入指定priority,或调整原有policy的优先级来避免错误。若监听器下没有转发策略,则新建的转发策略的优先级为1。 [共享型负载均衡器下的转发策略不支持该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) + 参数解释:转发策略的优先级。数字越小表示优先级越高。 约束限制: - 同一个监听器下不同转发策略之间不允许重复的优先级数值。 - 当关联的监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效,未开启传入该字段会报错。 - 当关联的监听器的高级转发策略功能(enhance_l7policy_enable)未开启,按原有policy的排序逻辑,自动排序。 不同域名优先级独立。相同域名下,按path的compare_type排序, 精确>前缀>正则,匹配类型相同时,path的长度越长优先级越高。 若policy下只有域名rule,没有路径rule,默认path为前缀匹配/。 [- 共享型负载均衡器下的转发策略不支持该字段。](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) 取值范围: - 当action为REDIRECT_TO_LISTENER时,支持指定为0-10000。 - 其它action取值,支持指定为1-10000。 默认取值: - 若关联的监听器的高级转发策略功能(enhance_l7policy_enable)未开启,且不传入该字段,则新创建的转发策略的优先级的值为1。 - 当action为REDIRECT_TO_LISTENER时,则新创建的转发策略的优先级的值为0。 - 其它action取值,新创建的转发策略的优先级的值为同一监听器下已有转发策略的优先级的最大值+1。 + 若监听器下没有转发策略,则新建的转发策略的优先级为1。 + 若当前已有转发策略的优先级的最大值是10000,则新创建的转发策略会因超出取值范围10000而失败。此时可通过传入指定priority,或调整原有policy的优先级来避免错误。 [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) :return: The priority of this L7Policy. :rtype: int @@ -335,7 +335,7 @@ def priority(self): def priority(self, priority): """Sets the priority of this L7Policy. - 转发策略的优先级。数字越小表示优先级越高,同一监听器下不允许重复。 当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效,未开启传入该字段会报错。 当action为REDIRECT_TO_LISTENER时,仅支持指定为0,优先级最高。 当关联的listener没有开启enhance_l7policy_enable,按原有policy的排序逻辑,自动排序。 各域名之间优先级独立,相同域名下,按path的compare_type排序,精确>前缀>正则, 匹配类型相同时,path的长度越长优先级越高。若policy下只有域名rule,没有路径rule,默认path为前缀匹配/。 当关联的listener开启了enhance_l7policy_enable,且不传该字段,则新创建的转发策略的优先级的值为: 同一监听器下已有转发策略的优先级的最大值+1。 因此,若当前已有转发策略的优先级的最大值是10000,新创建会因超出取值范围10000而失败。 此时可通过传入指定priority,或调整原有policy的优先级来避免错误。若监听器下没有转发策略,则新建的转发策略的优先级为1。 [共享型负载均衡器下的转发策略不支持该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) + 参数解释:转发策略的优先级。数字越小表示优先级越高。 约束限制: - 同一个监听器下不同转发策略之间不允许重复的优先级数值。 - 当关联的监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效,未开启传入该字段会报错。 - 当关联的监听器的高级转发策略功能(enhance_l7policy_enable)未开启,按原有policy的排序逻辑,自动排序。 不同域名优先级独立。相同域名下,按path的compare_type排序, 精确>前缀>正则,匹配类型相同时,path的长度越长优先级越高。 若policy下只有域名rule,没有路径rule,默认path为前缀匹配/。 [- 共享型负载均衡器下的转发策略不支持该字段。](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) 取值范围: - 当action为REDIRECT_TO_LISTENER时,支持指定为0-10000。 - 其它action取值,支持指定为1-10000。 默认取值: - 若关联的监听器的高级转发策略功能(enhance_l7policy_enable)未开启,且不传入该字段,则新创建的转发策略的优先级的值为1。 - 当action为REDIRECT_TO_LISTENER时,则新创建的转发策略的优先级的值为0。 - 其它action取值,新创建的转发策略的优先级的值为同一监听器下已有转发策略的优先级的最大值+1。 + 若监听器下没有转发策略,则新建的转发策略的优先级为1。 + 若当前已有转发策略的优先级的最大值是10000,则新创建的转发策略会因超出取值范围10000而失败。此时可通过传入指定priority,或调整原有policy的优先级来避免错误。 [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) :param priority: The priority of this L7Policy. :type priority: int @@ -346,7 +346,7 @@ def priority(self, priority): def project_id(self): """Gets the project_id of this L7Policy. - 转发策略所在的项目ID。 + 参数解释:转发策略所在的项目ID。 :return: The project_id of this L7Policy. :rtype: str @@ -357,7 +357,7 @@ def project_id(self): def project_id(self, project_id): """Sets the project_id of this L7Policy. - 转发策略所在的项目ID。 + 参数解释:转发策略所在的项目ID。 :param project_id: The project_id of this L7Policy. :type project_id: str @@ -368,7 +368,7 @@ def project_id(self, project_id): def provisioning_status(self): """Gets the provisioning_status of this L7Policy. - 转发策略的配置状态。 取值范围: - ACTIVE: 默认值,表示正常。 [- ERROR: 表示当前策略与同一监听器下的其他策略存在相同的规则配置。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs) + 参数解释:转发策略的配置状态。 取值范围: - ACTIVE: 默认值,表示正常。 [- ERROR: 表示当前策略与同一监听器下的其他策略存在相同的规则配置。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs) :return: The provisioning_status of this L7Policy. :rtype: str @@ -379,7 +379,7 @@ def provisioning_status(self): def provisioning_status(self, provisioning_status): """Sets the provisioning_status of this L7Policy. - 转发策略的配置状态。 取值范围: - ACTIVE: 默认值,表示正常。 [- ERROR: 表示当前策略与同一监听器下的其他策略存在相同的规则配置。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs) + 参数解释:转发策略的配置状态。 取值范围: - ACTIVE: 默认值,表示正常。 [- ERROR: 表示当前策略与同一监听器下的其他策略存在相同的规则配置。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs) :param provisioning_status: The provisioning_status of this L7Policy. :type provisioning_status: str @@ -390,7 +390,7 @@ def provisioning_status(self, provisioning_status): def redirect_pool_id(self): """Gets the redirect_pool_id of this L7Policy. - 转发到pool的ID。当action为REDIRECT_TO_POOL时生效。 + 参数解释:转发到pool的ID。 约束限制:当action为REDIRECT_TO_POOL时生效。 :return: The redirect_pool_id of this L7Policy. :rtype: str @@ -401,7 +401,7 @@ def redirect_pool_id(self): def redirect_pool_id(self, redirect_pool_id): """Sets the redirect_pool_id of this L7Policy. - 转发到pool的ID。当action为REDIRECT_TO_POOL时生效。 + 参数解释:转发到pool的ID。 约束限制:当action为REDIRECT_TO_POOL时生效。 :param redirect_pool_id: The redirect_pool_id of this L7Policy. :type redirect_pool_id: str @@ -412,7 +412,7 @@ def redirect_pool_id(self, redirect_pool_id): def redirect_listener_id(self): """Gets the redirect_listener_id of this L7Policy. - 转发到的listener的ID,当action为REDIRECT_TO_LISTENER时必选。 使用说明: - 只支持protocol为HTTPS/TERMINATED_HTTPS的listener。 - 不能指定为其他loadbalancer下的listener。 - 当action为REDIRECT_TO_POOL时,创建或更新时不能传入该参数。 + 参数解释:转发到的listener的ID。 约束限制: - 当action为REDIRECT_TO_LISTENER时必选。 - 只支持protocol为HTTPS/TERMINATED_HTTPS的listener。 - 不能指定为其他loadbalancer下的listener。 - 当action为REDIRECT_TO_POOL时,创建或更新时不能传入该参数。 :return: The redirect_listener_id of this L7Policy. :rtype: str @@ -423,7 +423,7 @@ def redirect_listener_id(self): def redirect_listener_id(self, redirect_listener_id): """Sets the redirect_listener_id of this L7Policy. - 转发到的listener的ID,当action为REDIRECT_TO_LISTENER时必选。 使用说明: - 只支持protocol为HTTPS/TERMINATED_HTTPS的listener。 - 不能指定为其他loadbalancer下的listener。 - 当action为REDIRECT_TO_POOL时,创建或更新时不能传入该参数。 + 参数解释:转发到的listener的ID。 约束限制: - 当action为REDIRECT_TO_LISTENER时必选。 - 只支持protocol为HTTPS/TERMINATED_HTTPS的listener。 - 不能指定为其他loadbalancer下的listener。 - 当action为REDIRECT_TO_POOL时,创建或更新时不能传入该参数。 :param redirect_listener_id: The redirect_listener_id of this L7Policy. :type redirect_listener_id: str @@ -434,7 +434,7 @@ def redirect_listener_id(self, redirect_listener_id): def redirect_url(self): """Gets the redirect_url of this L7Policy. - 转发到的url。必须满足格式: protocol://host:port/path?query。 不支持该字段,请勿使用。 + 参数解释:转发到的url。 取值范围:必须满足格式: protocol://host:port/path?query。 不支持该字段,请勿使用。 :return: The redirect_url of this L7Policy. :rtype: str @@ -445,7 +445,7 @@ def redirect_url(self): def redirect_url(self, redirect_url): """Sets the redirect_url of this L7Policy. - 转发到的url。必须满足格式: protocol://host:port/path?query。 不支持该字段,请勿使用。 + 参数解释:转发到的url。 取值范围:必须满足格式: protocol://host:port/path?query。 不支持该字段,请勿使用。 :param redirect_url: The redirect_url of this L7Policy. :type redirect_url: str @@ -456,7 +456,7 @@ def redirect_url(self, redirect_url): def rules(self): """Gets the rules of this L7Policy. - 转发策略关联的转发规则列表 + 参数解释:转发策略关联的转发规则列表。 :return: The rules of this L7Policy. :rtype: list[:class:`huaweicloudsdkelb.v3.RuleRef`] @@ -467,7 +467,7 @@ def rules(self): def rules(self, rules): """Sets the rules of this L7Policy. - 转发策略关联的转发规则列表 + 参数解释:转发策略关联的转发规则列表。 :param rules: The rules of this L7Policy. :type rules: list[:class:`huaweicloudsdkelb.v3.RuleRef`] @@ -496,7 +496,7 @@ def redirect_url_config(self, redirect_url_config): def redirect_pools_config(self): """Gets the redirect_pools_config of this L7Policy. - 转发到多个主机组列表。一个policy最多配置5个pool。 + 参数解释:转发到多个主机组列表。 约束限制:一个policy最多配置5个pool。 :return: The redirect_pools_config of this L7Policy. :rtype: list[:class:`huaweicloudsdkelb.v3.RedirectPoolsConfig`] @@ -507,7 +507,7 @@ def redirect_pools_config(self): def redirect_pools_config(self, redirect_pools_config): """Sets the redirect_pools_config of this L7Policy. - 转发到多个主机组列表。一个policy最多配置5个pool。 + 参数解释:转发到多个主机组列表。 约束限制:一个policy最多配置5个pool。 :param redirect_pools_config: The redirect_pools_config of this L7Policy. :type redirect_pools_config: list[:class:`huaweicloudsdkelb.v3.RedirectPoolsConfig`] @@ -572,7 +572,7 @@ def fixed_response_config(self, fixed_response_config): def created_at(self): """Gets the created_at of this L7Policy. - 创建时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) + 参数解释:创建时间。 取值范围:格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) :return: The created_at of this L7Policy. :rtype: str @@ -583,7 +583,7 @@ def created_at(self): def created_at(self, created_at): """Sets the created_at of this L7Policy. - 创建时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) + 参数解释:创建时间。 取值范围:格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) :param created_at: The created_at of this L7Policy. :type created_at: str @@ -594,7 +594,7 @@ def created_at(self, created_at): def updated_at(self): """Gets the updated_at of this L7Policy. - 更新时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) + 参数解释:更新时间。 取值范围:格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) :return: The updated_at of this L7Policy. :rtype: str @@ -605,7 +605,7 @@ def updated_at(self): def updated_at(self, updated_at): """Sets the updated_at of this L7Policy. - 更新时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) + 参数解释:更新时间。 取值范围:格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) :param updated_at: The updated_at of this L7Policy. :type updated_at: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/l7_rule.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/l7_rule.py index bbbb76f8af..c96a607ef5 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/l7_rule.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/l7_rule.py @@ -51,29 +51,29 @@ def __init__(self, admin_state_up=None, compare_type=None, key=None, project_id= The model defined in huaweicloud sdk - :param admin_state_up: 转发规则的管理状,默认为true。 不支持该字段,请勿使用。 + :param admin_state_up: 参数解释:转发规则的管理状,固定为true。 不支持该字段,请勿使用。 :type admin_state_up: bool - :param compare_type: 转发规则的匹配方式。type为HOST_NAME时可以为EQUAL_TO。type为PATH时可以为REGEX, STARTS_WITH,EQUAL_TO。 + :param compare_type: 参数解释:转发规则的匹配方式。 取值范围:type为HOST_NAME时可以为EQUAL_TO。type为PATH时可以为REGEX,STARTS_WITH,EQUAL_TO。 :type compare_type: str - :param key: 匹配内容的键值。[type为HOST_NAME和PATH时,该字段不生效。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [不支持该字段,请勿使用。](tag:hcso_dt) + :param key: 参数解释:匹配内容的键值。 [约束限制:type为HOST_NAME和PATH时,该字段不生效。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [不支持该字段,请勿使用。](tag:hcso_dt) :type key: str - :param project_id: 转发规则所在的项目ID。 + :param project_id: 参数解释:转发规则所在的项目ID。 :type project_id: str - :param type: 转发规则类别。 取值: - HOST_NAME:匹配域名。 - PATH:匹配请求路径。 - METHOD:匹配请求方法。 - HEADER:匹配请求头。 - QUERY_STRING:匹配请求查询参数。 - SOURCE_IP:匹配请求源IP地址。 - COOKIE: 匹配cookie信息。 使用说明: - 一个l7policy下创建的l7rule的HOST_NAME,PATH,METHOD,SOURCE_IP不能重复。 HEADER、QUERY_STRING支持重复的rule配置。 [只支持取值为HOST_NAME,PATH。](tag:hcso_dt) + :param type: 参数解释:转发规则类别。 约束限制: - 一个l7policy下创建的l7rule的HOST_NAME,PATH,METHOD,SOURCE_IP不能重复。 HEADER、QUERY_STRING支持重复的rule配置。 取值范围: - HOST_NAME:匹配域名。 - PATH:匹配请求路径。 - METHOD:匹配请求方法。 - HEADER:匹配请求头。 - QUERY_STRING:匹配请求查询参数。 - SOURCE_IP:匹配请求源IP地址。 - COOKIE: 匹配cookie信息。 [只支持取值为HOST_NAME,PATH。](tag:hcso_dt) :type type: str - :param value: 匹配内容的值。仅当conditions空时该字段生效。 当type为HOST_NAME时,字符串只能包含英文字母、数字、-.*,必须以字母、数字或*开头。 若域名中包含*,则*只能出现在开头且必须以*.开始。当*开头时表示通配0~任一个字符。 当type为PATH时,当转发规则的compare_type为STARTS_WITH、EQUAL_TO时, 字符串只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以/开头。 当type为METHOD、SOURCE_IP、HEADER, QUERY_STRING时,该字段无意义,使用condition_pair来指定key,value。 + :param value: 参数解释:匹配内容的值。 约束限制:仅当conditions空时该字段生效。 取值范围: - 当type为HOST_NAME时,字符串只能包含英文字母、数字、-.*,必须以字母、数字或*开头。若域名中包含*,则*只能出现在开头且必须以*.开始。当*开头时表示通配0~任一个字符。 - 当type为PATH时,当转发规则的compare_type为STARTS_WITH、EQUAL_TO时,字符串只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以/开头。 - 当type为METHOD、SOURCE_IP、HEADER, QUERY_STRING时,该字段无意义,使用condition_pair来指定key,value。 :type value: str - :param provisioning_status: provisioning状态,可以为ACTIVE、PENDING_CREATE 或者ERROR。 说明:该字段无实际含义,默认为ACTIVE。 + :param provisioning_status: 参数解释:provisioning状态。该字段无效,默认为ACTIVE。 取值范围:ACTIVE、PENDING_CREATE 或者ERROR。 :type provisioning_status: str - :param invert: 是否反向匹配。 使用说明:固定为false。该字段能更新但不会生效。 + :param invert: 参数解释:是否反向匹配。 约束限制:固定为false。该字段能更新但不会生效。 :type invert: bool - :param id: 规则ID。 + :param id: 参数解释:规则ID。 :type id: str - :param conditions: 转发规则的匹配条件。当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效。 若转发规则配置了conditions,字段key、字段value的值无意义。 同一个rule内的conditions列表中所有key必须相同,value不允许重复。 [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) + :param conditions: 参数解释:转发规则的匹配条件。 约束限制: - 当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效。 - 若转发规则配置了conditions,字段key、字段value的值无意义。 - 同一个rule内的conditions列表中所有key必须相同,value不允许重复。 [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) :type conditions: list[:class:`huaweicloudsdkelb.v3.RuleCondition`] - :param created_at: 创建时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) + :param created_at: 参数解释:创建时间。 取值范围:格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) :type created_at: str - :param updated_at: 更新时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) + :param updated_at: 参数解释:更新时间。 取值范围:格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) :type updated_at: str """ @@ -112,7 +112,7 @@ def __init__(self, admin_state_up=None, compare_type=None, key=None, project_id= def admin_state_up(self): """Gets the admin_state_up of this L7Rule. - 转发规则的管理状,默认为true。 不支持该字段,请勿使用。 + 参数解释:转发规则的管理状,固定为true。 不支持该字段,请勿使用。 :return: The admin_state_up of this L7Rule. :rtype: bool @@ -123,7 +123,7 @@ def admin_state_up(self): def admin_state_up(self, admin_state_up): """Sets the admin_state_up of this L7Rule. - 转发规则的管理状,默认为true。 不支持该字段,请勿使用。 + 参数解释:转发规则的管理状,固定为true。 不支持该字段,请勿使用。 :param admin_state_up: The admin_state_up of this L7Rule. :type admin_state_up: bool @@ -134,7 +134,7 @@ def admin_state_up(self, admin_state_up): def compare_type(self): """Gets the compare_type of this L7Rule. - 转发规则的匹配方式。type为HOST_NAME时可以为EQUAL_TO。type为PATH时可以为REGEX, STARTS_WITH,EQUAL_TO。 + 参数解释:转发规则的匹配方式。 取值范围:type为HOST_NAME时可以为EQUAL_TO。type为PATH时可以为REGEX,STARTS_WITH,EQUAL_TO。 :return: The compare_type of this L7Rule. :rtype: str @@ -145,7 +145,7 @@ def compare_type(self): def compare_type(self, compare_type): """Sets the compare_type of this L7Rule. - 转发规则的匹配方式。type为HOST_NAME时可以为EQUAL_TO。type为PATH时可以为REGEX, STARTS_WITH,EQUAL_TO。 + 参数解释:转发规则的匹配方式。 取值范围:type为HOST_NAME时可以为EQUAL_TO。type为PATH时可以为REGEX,STARTS_WITH,EQUAL_TO。 :param compare_type: The compare_type of this L7Rule. :type compare_type: str @@ -156,7 +156,7 @@ def compare_type(self, compare_type): def key(self): """Gets the key of this L7Rule. - 匹配内容的键值。[type为HOST_NAME和PATH时,该字段不生效。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [不支持该字段,请勿使用。](tag:hcso_dt) + 参数解释:匹配内容的键值。 [约束限制:type为HOST_NAME和PATH时,该字段不生效。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [不支持该字段,请勿使用。](tag:hcso_dt) :return: The key of this L7Rule. :rtype: str @@ -167,7 +167,7 @@ def key(self): def key(self, key): """Sets the key of this L7Rule. - 匹配内容的键值。[type为HOST_NAME和PATH时,该字段不生效。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [不支持该字段,请勿使用。](tag:hcso_dt) + 参数解释:匹配内容的键值。 [约束限制:type为HOST_NAME和PATH时,该字段不生效。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [不支持该字段,请勿使用。](tag:hcso_dt) :param key: The key of this L7Rule. :type key: str @@ -178,7 +178,7 @@ def key(self, key): def project_id(self): """Gets the project_id of this L7Rule. - 转发规则所在的项目ID。 + 参数解释:转发规则所在的项目ID。 :return: The project_id of this L7Rule. :rtype: str @@ -189,7 +189,7 @@ def project_id(self): def project_id(self, project_id): """Sets the project_id of this L7Rule. - 转发规则所在的项目ID。 + 参数解释:转发规则所在的项目ID。 :param project_id: The project_id of this L7Rule. :type project_id: str @@ -200,7 +200,7 @@ def project_id(self, project_id): def type(self): """Gets the type of this L7Rule. - 转发规则类别。 取值: - HOST_NAME:匹配域名。 - PATH:匹配请求路径。 - METHOD:匹配请求方法。 - HEADER:匹配请求头。 - QUERY_STRING:匹配请求查询参数。 - SOURCE_IP:匹配请求源IP地址。 - COOKIE: 匹配cookie信息。 使用说明: - 一个l7policy下创建的l7rule的HOST_NAME,PATH,METHOD,SOURCE_IP不能重复。 HEADER、QUERY_STRING支持重复的rule配置。 [只支持取值为HOST_NAME,PATH。](tag:hcso_dt) + 参数解释:转发规则类别。 约束限制: - 一个l7policy下创建的l7rule的HOST_NAME,PATH,METHOD,SOURCE_IP不能重复。 HEADER、QUERY_STRING支持重复的rule配置。 取值范围: - HOST_NAME:匹配域名。 - PATH:匹配请求路径。 - METHOD:匹配请求方法。 - HEADER:匹配请求头。 - QUERY_STRING:匹配请求查询参数。 - SOURCE_IP:匹配请求源IP地址。 - COOKIE: 匹配cookie信息。 [只支持取值为HOST_NAME,PATH。](tag:hcso_dt) :return: The type of this L7Rule. :rtype: str @@ -211,7 +211,7 @@ def type(self): def type(self, type): """Sets the type of this L7Rule. - 转发规则类别。 取值: - HOST_NAME:匹配域名。 - PATH:匹配请求路径。 - METHOD:匹配请求方法。 - HEADER:匹配请求头。 - QUERY_STRING:匹配请求查询参数。 - SOURCE_IP:匹配请求源IP地址。 - COOKIE: 匹配cookie信息。 使用说明: - 一个l7policy下创建的l7rule的HOST_NAME,PATH,METHOD,SOURCE_IP不能重复。 HEADER、QUERY_STRING支持重复的rule配置。 [只支持取值为HOST_NAME,PATH。](tag:hcso_dt) + 参数解释:转发规则类别。 约束限制: - 一个l7policy下创建的l7rule的HOST_NAME,PATH,METHOD,SOURCE_IP不能重复。 HEADER、QUERY_STRING支持重复的rule配置。 取值范围: - HOST_NAME:匹配域名。 - PATH:匹配请求路径。 - METHOD:匹配请求方法。 - HEADER:匹配请求头。 - QUERY_STRING:匹配请求查询参数。 - SOURCE_IP:匹配请求源IP地址。 - COOKIE: 匹配cookie信息。 [只支持取值为HOST_NAME,PATH。](tag:hcso_dt) :param type: The type of this L7Rule. :type type: str @@ -222,7 +222,7 @@ def type(self, type): def value(self): """Gets the value of this L7Rule. - 匹配内容的值。仅当conditions空时该字段生效。 当type为HOST_NAME时,字符串只能包含英文字母、数字、-.*,必须以字母、数字或*开头。 若域名中包含*,则*只能出现在开头且必须以*.开始。当*开头时表示通配0~任一个字符。 当type为PATH时,当转发规则的compare_type为STARTS_WITH、EQUAL_TO时, 字符串只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以/开头。 当type为METHOD、SOURCE_IP、HEADER, QUERY_STRING时,该字段无意义,使用condition_pair来指定key,value。 + 参数解释:匹配内容的值。 约束限制:仅当conditions空时该字段生效。 取值范围: - 当type为HOST_NAME时,字符串只能包含英文字母、数字、-.*,必须以字母、数字或*开头。若域名中包含*,则*只能出现在开头且必须以*.开始。当*开头时表示通配0~任一个字符。 - 当type为PATH时,当转发规则的compare_type为STARTS_WITH、EQUAL_TO时,字符串只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以/开头。 - 当type为METHOD、SOURCE_IP、HEADER, QUERY_STRING时,该字段无意义,使用condition_pair来指定key,value。 :return: The value of this L7Rule. :rtype: str @@ -233,7 +233,7 @@ def value(self): def value(self, value): """Sets the value of this L7Rule. - 匹配内容的值。仅当conditions空时该字段生效。 当type为HOST_NAME时,字符串只能包含英文字母、数字、-.*,必须以字母、数字或*开头。 若域名中包含*,则*只能出现在开头且必须以*.开始。当*开头时表示通配0~任一个字符。 当type为PATH时,当转发规则的compare_type为STARTS_WITH、EQUAL_TO时, 字符串只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以/开头。 当type为METHOD、SOURCE_IP、HEADER, QUERY_STRING时,该字段无意义,使用condition_pair来指定key,value。 + 参数解释:匹配内容的值。 约束限制:仅当conditions空时该字段生效。 取值范围: - 当type为HOST_NAME时,字符串只能包含英文字母、数字、-.*,必须以字母、数字或*开头。若域名中包含*,则*只能出现在开头且必须以*.开始。当*开头时表示通配0~任一个字符。 - 当type为PATH时,当转发规则的compare_type为STARTS_WITH、EQUAL_TO时,字符串只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以/开头。 - 当type为METHOD、SOURCE_IP、HEADER, QUERY_STRING时,该字段无意义,使用condition_pair来指定key,value。 :param value: The value of this L7Rule. :type value: str @@ -244,7 +244,7 @@ def value(self, value): def provisioning_status(self): """Gets the provisioning_status of this L7Rule. - provisioning状态,可以为ACTIVE、PENDING_CREATE 或者ERROR。 说明:该字段无实际含义,默认为ACTIVE。 + 参数解释:provisioning状态。该字段无效,默认为ACTIVE。 取值范围:ACTIVE、PENDING_CREATE 或者ERROR。 :return: The provisioning_status of this L7Rule. :rtype: str @@ -255,7 +255,7 @@ def provisioning_status(self): def provisioning_status(self, provisioning_status): """Sets the provisioning_status of this L7Rule. - provisioning状态,可以为ACTIVE、PENDING_CREATE 或者ERROR。 说明:该字段无实际含义,默认为ACTIVE。 + 参数解释:provisioning状态。该字段无效,默认为ACTIVE。 取值范围:ACTIVE、PENDING_CREATE 或者ERROR。 :param provisioning_status: The provisioning_status of this L7Rule. :type provisioning_status: str @@ -266,7 +266,7 @@ def provisioning_status(self, provisioning_status): def invert(self): """Gets the invert of this L7Rule. - 是否反向匹配。 使用说明:固定为false。该字段能更新但不会生效。 + 参数解释:是否反向匹配。 约束限制:固定为false。该字段能更新但不会生效。 :return: The invert of this L7Rule. :rtype: bool @@ -277,7 +277,7 @@ def invert(self): def invert(self, invert): """Sets the invert of this L7Rule. - 是否反向匹配。 使用说明:固定为false。该字段能更新但不会生效。 + 参数解释:是否反向匹配。 约束限制:固定为false。该字段能更新但不会生效。 :param invert: The invert of this L7Rule. :type invert: bool @@ -288,7 +288,7 @@ def invert(self, invert): def id(self): """Gets the id of this L7Rule. - 规则ID。 + 参数解释:规则ID。 :return: The id of this L7Rule. :rtype: str @@ -299,7 +299,7 @@ def id(self): def id(self, id): """Sets the id of this L7Rule. - 规则ID。 + 参数解释:规则ID。 :param id: The id of this L7Rule. :type id: str @@ -310,7 +310,7 @@ def id(self, id): def conditions(self): """Gets the conditions of this L7Rule. - 转发规则的匹配条件。当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效。 若转发规则配置了conditions,字段key、字段value的值无意义。 同一个rule内的conditions列表中所有key必须相同,value不允许重复。 [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) + 参数解释:转发规则的匹配条件。 约束限制: - 当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效。 - 若转发规则配置了conditions,字段key、字段value的值无意义。 - 同一个rule内的conditions列表中所有key必须相同,value不允许重复。 [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) :return: The conditions of this L7Rule. :rtype: list[:class:`huaweicloudsdkelb.v3.RuleCondition`] @@ -321,7 +321,7 @@ def conditions(self): def conditions(self, conditions): """Sets the conditions of this L7Rule. - 转发规则的匹配条件。当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效。 若转发规则配置了conditions,字段key、字段value的值无意义。 同一个rule内的conditions列表中所有key必须相同,value不允许重复。 [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) + 参数解释:转发规则的匹配条件。 约束限制: - 当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效。 - 若转发规则配置了conditions,字段key、字段value的值无意义。 - 同一个rule内的conditions列表中所有key必须相同,value不允许重复。 [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) :param conditions: The conditions of this L7Rule. :type conditions: list[:class:`huaweicloudsdkelb.v3.RuleCondition`] @@ -332,7 +332,7 @@ def conditions(self, conditions): def created_at(self): """Gets the created_at of this L7Rule. - 创建时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) + 参数解释:创建时间。 取值范围:格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) :return: The created_at of this L7Rule. :rtype: str @@ -343,7 +343,7 @@ def created_at(self): def created_at(self, created_at): """Sets the created_at of this L7Rule. - 创建时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) + 参数解释:创建时间。 取值范围:格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) :param created_at: The created_at of this L7Rule. :type created_at: str @@ -354,7 +354,7 @@ def created_at(self, created_at): def updated_at(self): """Gets the updated_at of this L7Rule. - 更新时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) + 参数解释:更新时间。 取值范围:格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) :return: The updated_at of this L7Rule. :rtype: str @@ -365,7 +365,7 @@ def updated_at(self): def updated_at(self, updated_at): """Sets the updated_at of this L7Rule. - 更新时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) + 参数解释:更新时间。 取值范围:格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) :param updated_at: The updated_at of this L7Rule. :type updated_at: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_availability_zones_request.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_availability_zones_request.py index bf04ffa02d..60dfb2412c 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_availability_zones_request.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_availability_zones_request.py @@ -29,7 +29,7 @@ def __init__(self, public_border_group=None): The model defined in huaweicloud sdk - :param public_border_group: AZ组。 + :param public_border_group: 参数解释:AZ组。 :type public_border_group: str """ @@ -45,7 +45,7 @@ def __init__(self, public_border_group=None): def public_border_group(self): """Gets the public_border_group of this ListAvailabilityZonesRequest. - AZ组。 + 参数解释:AZ组。 :return: The public_border_group of this ListAvailabilityZonesRequest. :rtype: str @@ -56,7 +56,7 @@ def public_border_group(self): def public_border_group(self, public_border_group): """Sets the public_border_group of this ListAvailabilityZonesRequest. - AZ组。 + 参数解释:AZ组。 :param public_border_group: The public_border_group of this ListAvailabilityZonesRequest. :type public_border_group: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_availability_zones_response.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_availability_zones_response.py index 4c5584a90d..31ab219aff 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_availability_zones_response.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_availability_zones_response.py @@ -19,41 +19,48 @@ class ListAvailabilityZonesResponse(SdkResponse): openapi_types = { 'request_id': 'str', - 'availability_zones': 'list[list[AvailabilityZone]]' + 'availability_zones': 'list[list[AvailabilityZone]]', + 'spec_code': 'str' } attribute_map = { 'request_id': 'request_id', - 'availability_zones': 'availability_zones' + 'availability_zones': 'availability_zones', + 'spec_code': 'spec_code' } - def __init__(self, request_id=None, availability_zones=None): + def __init__(self, request_id=None, availability_zones=None, spec_code=None): """ListAvailabilityZonesResponse The model defined in huaweicloud sdk - :param request_id: 请求ID。 注:自动生成。 + :param request_id: 参数解释:请求ID。 注:自动生成。 :type request_id: str - :param availability_zones: 返回创建LB时可使用的可用区集合列表。如:[[az1,az2],[az2,az3]] , 则在创建LB时,只能从其中的一个子列表中选择一个或多个可用区,不能跨列表选择。在上述例子中,不能选择az1和az3。 + :param availability_zones: 参数解释:返回创建LB时可使用的可用区集合列表。如:[[az1,az2],[az2,az3]] ,则在创建LB时,只能从其中的一个子列表中选择一个或多个可用区,不能跨列表选择。在上述例子中,不能选择az1和az3。 :type availability_zones: list[list[AvailabilityZone]] + :param spec_code: 可用区的产品编码,仅边缘场景有效。 + :type spec_code: str """ super(ListAvailabilityZonesResponse, self).__init__() self._request_id = None self._availability_zones = None + self._spec_code = None self.discriminator = None if request_id is not None: self.request_id = request_id if availability_zones is not None: self.availability_zones = availability_zones + if spec_code is not None: + self.spec_code = spec_code @property def request_id(self): """Gets the request_id of this ListAvailabilityZonesResponse. - 请求ID。 注:自动生成。 + 参数解释:请求ID。 注:自动生成。 :return: The request_id of this ListAvailabilityZonesResponse. :rtype: str @@ -64,7 +71,7 @@ def request_id(self): def request_id(self, request_id): """Sets the request_id of this ListAvailabilityZonesResponse. - 请求ID。 注:自动生成。 + 参数解释:请求ID。 注:自动生成。 :param request_id: The request_id of this ListAvailabilityZonesResponse. :type request_id: str @@ -75,7 +82,7 @@ def request_id(self, request_id): def availability_zones(self): """Gets the availability_zones of this ListAvailabilityZonesResponse. - 返回创建LB时可使用的可用区集合列表。如:[[az1,az2],[az2,az3]] , 则在创建LB时,只能从其中的一个子列表中选择一个或多个可用区,不能跨列表选择。在上述例子中,不能选择az1和az3。 + 参数解释:返回创建LB时可使用的可用区集合列表。如:[[az1,az2],[az2,az3]] ,则在创建LB时,只能从其中的一个子列表中选择一个或多个可用区,不能跨列表选择。在上述例子中,不能选择az1和az3。 :return: The availability_zones of this ListAvailabilityZonesResponse. :rtype: list[list[AvailabilityZone]] @@ -86,13 +93,35 @@ def availability_zones(self): def availability_zones(self, availability_zones): """Sets the availability_zones of this ListAvailabilityZonesResponse. - 返回创建LB时可使用的可用区集合列表。如:[[az1,az2],[az2,az3]] , 则在创建LB时,只能从其中的一个子列表中选择一个或多个可用区,不能跨列表选择。在上述例子中,不能选择az1和az3。 + 参数解释:返回创建LB时可使用的可用区集合列表。如:[[az1,az2],[az2,az3]] ,则在创建LB时,只能从其中的一个子列表中选择一个或多个可用区,不能跨列表选择。在上述例子中,不能选择az1和az3。 :param availability_zones: The availability_zones of this ListAvailabilityZonesResponse. :type availability_zones: list[list[AvailabilityZone]] """ self._availability_zones = availability_zones + @property + def spec_code(self): + """Gets the spec_code of this ListAvailabilityZonesResponse. + + 可用区的产品编码,仅边缘场景有效。 + + :return: The spec_code of this ListAvailabilityZonesResponse. + :rtype: str + """ + return self._spec_code + + @spec_code.setter + def spec_code(self, spec_code): + """Sets the spec_code of this ListAvailabilityZonesResponse. + + 可用区的产品编码,仅边缘场景有效。 + + :param spec_code: The spec_code of this ListAvailabilityZonesResponse. + :type spec_code: str + """ + self._spec_code = spec_code + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_flavors_request.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_flavors_request.py index cd59598c75..0cbda45804 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_flavors_request.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_flavors_request.py @@ -45,13 +45,13 @@ def __init__(self, marker=None, limit=None, page_reverse=None, id=None, name=Non :type marker: str :param limit: 参数解释:每页返回的个数。 取值范围:0-2000 默认取值:2000 :type limit: int - :param page_reverse: 参数解释:是否反向查询。 取值: - true:查询上一页。 - false:查询下一页,默认。 使用说明: - 必须与limit一起使用。 - 当page_reverse=true时,若要查询上一页,marker取值为当前页返回值的previous_marker。 + :param page_reverse: 参数解释:是否反向查询。 约束限制: - 必须与limit一起使用。 - 当page_reverse=true时,若要查询上一页,marker取值为当前页返回值的previous_marker。 取值范围: - true:查询上一页。 - false:查询下一页,默认。 :type page_reverse: bool :param id: 参数解释:规格ID。 支持多值查询,查询条件格式:*id=xxx&id=xxx*。 :type id: list[str] - :param name: 参数解释:规格名称。 支持多值查询,查询条件格式:*name=xxx&name=xxx*。 + :param name: 参数解释:规格名称。 支持多值查询,查询条件格式:*name=xxx&name=xxx*。 :type name: list[str] - :param type: 参数解释:规格类别。 取值: - L4和L7 表示四层网络型和七层应用型flavor。 [- gateway 表示网关型LB的flavor,目前只支持弹性计费类型。当前仅支持欧洲局点。](tag:hws_eu) - L4_elastic和L7_elastic 表示弹性扩缩容实例的下限规格。 - L4_elastic_max、L7_elastic_max[和gateway_elastic_max](tag:hws_eu) 表示弹性扩缩容实例的上限规格。 支持多值查询,查询条件格式:*type=xxx&type=xxx*。 + :param type: 参数解释:规格类别。 取值范围: - L4和L7 表示四层网络型和七层应用型flavor。 [- gateway 表示网关型LB的flavor,目前只支持弹性计费类型。当前仅支持欧洲局点。](tag:hws_eu) - L4_elastic和L7_elastic 表示弹性扩缩容实例的下限规格。 - L4_elastic_max、L7_elastic_max[和gateway_elastic_max](tag:hws_eu) 表示弹性扩缩容实例的上限规格。 支持多值查询,查询条件格式:*type=xxx&type=xxx*。 :type type: list[str] :param shared: 参数解释:是否查询公共规格。 取值范围:true表示公共规格,所有租户可见。false表示私有规格,为当前租户所有。 :type shared: bool @@ -131,7 +131,7 @@ def limit(self, limit): def page_reverse(self): """Gets the page_reverse of this ListFlavorsRequest. - 参数解释:是否反向查询。 取值: - true:查询上一页。 - false:查询下一页,默认。 使用说明: - 必须与limit一起使用。 - 当page_reverse=true时,若要查询上一页,marker取值为当前页返回值的previous_marker。 + 参数解释:是否反向查询。 约束限制: - 必须与limit一起使用。 - 当page_reverse=true时,若要查询上一页,marker取值为当前页返回值的previous_marker。 取值范围: - true:查询上一页。 - false:查询下一页,默认。 :return: The page_reverse of this ListFlavorsRequest. :rtype: bool @@ -142,7 +142,7 @@ def page_reverse(self): def page_reverse(self, page_reverse): """Sets the page_reverse of this ListFlavorsRequest. - 参数解释:是否反向查询。 取值: - true:查询上一页。 - false:查询下一页,默认。 使用说明: - 必须与limit一起使用。 - 当page_reverse=true时,若要查询上一页,marker取值为当前页返回值的previous_marker。 + 参数解释:是否反向查询。 约束限制: - 必须与limit一起使用。 - 当page_reverse=true时,若要查询上一页,marker取值为当前页返回值的previous_marker。 取值范围: - true:查询上一页。 - false:查询下一页,默认。 :param page_reverse: The page_reverse of this ListFlavorsRequest. :type page_reverse: bool @@ -175,7 +175,7 @@ def id(self, id): def name(self): """Gets the name of this ListFlavorsRequest. - 参数解释:规格名称。 支持多值查询,查询条件格式:*name=xxx&name=xxx*。 + 参数解释:规格名称。 支持多值查询,查询条件格式:*name=xxx&name=xxx*。 :return: The name of this ListFlavorsRequest. :rtype: list[str] @@ -186,7 +186,7 @@ def name(self): def name(self, name): """Sets the name of this ListFlavorsRequest. - 参数解释:规格名称。 支持多值查询,查询条件格式:*name=xxx&name=xxx*。 + 参数解释:规格名称。 支持多值查询,查询条件格式:*name=xxx&name=xxx*。 :param name: The name of this ListFlavorsRequest. :type name: list[str] @@ -197,7 +197,7 @@ def name(self, name): def type(self): """Gets the type of this ListFlavorsRequest. - 参数解释:规格类别。 取值: - L4和L7 表示四层网络型和七层应用型flavor。 [- gateway 表示网关型LB的flavor,目前只支持弹性计费类型。当前仅支持欧洲局点。](tag:hws_eu) - L4_elastic和L7_elastic 表示弹性扩缩容实例的下限规格。 - L4_elastic_max、L7_elastic_max[和gateway_elastic_max](tag:hws_eu) 表示弹性扩缩容实例的上限规格。 支持多值查询,查询条件格式:*type=xxx&type=xxx*。 + 参数解释:规格类别。 取值范围: - L4和L7 表示四层网络型和七层应用型flavor。 [- gateway 表示网关型LB的flavor,目前只支持弹性计费类型。当前仅支持欧洲局点。](tag:hws_eu) - L4_elastic和L7_elastic 表示弹性扩缩容实例的下限规格。 - L4_elastic_max、L7_elastic_max[和gateway_elastic_max](tag:hws_eu) 表示弹性扩缩容实例的上限规格。 支持多值查询,查询条件格式:*type=xxx&type=xxx*。 :return: The type of this ListFlavorsRequest. :rtype: list[str] @@ -208,7 +208,7 @@ def type(self): def type(self, type): """Sets the type of this ListFlavorsRequest. - 参数解释:规格类别。 取值: - L4和L7 表示四层网络型和七层应用型flavor。 [- gateway 表示网关型LB的flavor,目前只支持弹性计费类型。当前仅支持欧洲局点。](tag:hws_eu) - L4_elastic和L7_elastic 表示弹性扩缩容实例的下限规格。 - L4_elastic_max、L7_elastic_max[和gateway_elastic_max](tag:hws_eu) 表示弹性扩缩容实例的上限规格。 支持多值查询,查询条件格式:*type=xxx&type=xxx*。 + 参数解释:规格类别。 取值范围: - L4和L7 表示四层网络型和七层应用型flavor。 [- gateway 表示网关型LB的flavor,目前只支持弹性计费类型。当前仅支持欧洲局点。](tag:hws_eu) - L4_elastic和L7_elastic 表示弹性扩缩容实例的下限规格。 - L4_elastic_max、L7_elastic_max[和gateway_elastic_max](tag:hws_eu) 表示弹性扩缩容实例的上限规格。 支持多值查询,查询条件格式:*type=xxx&type=xxx*。 :param type: The type of this ListFlavorsRequest. :type type: list[str] diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_health_monitors_request.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_health_monitors_request.py index e2dd577cda..cde934a05c 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_health_monitors_request.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_health_monitors_request.py @@ -79,15 +79,15 @@ def __init__(self, marker=None, limit=None, page_reverse=None, id=None, monitor_ :type delay: list[int] :param max_retries: 健康检查连续成功多少次后,将后端服务器的健康检查状态由OFFLINE判定为ONLINE。取值范围:1-10。 支持多值查询,查询条件格式:*******max_retries=xxx&max_retries=xxx*******。 :type max_retries: list[int] - :param admin_state_up: 健康检查的管理状态。 取值: - true:表示开启健康检查,默认为true。 - false表示关闭健康检查。 + :param admin_state_up: 参数解释:健康检查的管理状态。 取值范围: - true:表示开启健康检查。 - false表示关闭健康检查。 :type admin_state_up: bool :param max_retries_down: 健康检查连续失败多少次后,将后端服务器的健康检查状态由ONLINE判定为OFFLINE。取值范围:1-10。 支持多值查询,查询条件格式:******max_retries_down=xxx&max_retries_down=xxx******。 :type max_retries_down: list[int] :param timeout: 一次健康检查请求的超时时间。 :type timeout: int - :param type: 健康检查请求协议。 取值:TCP、UDP_CONNECT、HTTP、HTTPS、TLS和GRPC。 支持多值查询,查询条件格式:*****type=xxx&type=xxx*****。 + :param type: 健康检查请求协议。 取值:TCP、UDP_CONNECT、HTTP、HTTPS、TLS和gRPC。 支持多值查询,查询条件格式:*****type=xxx&type=xxx*****。 :type type: list[str] - :param expected_codes: 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:200。 仅支持HTTP/HTTPS/GRPC设置该字段,其他协议设置不会生效。 支持多值查询,查询条件格式:****expected_codes=xxx&expected_codes=xxx****。 + :param expected_codes: 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:200。 仅支持HTTP/HTTPS/gRPC设置该字段,其他协议设置不会生效。 支持多值查询,查询条件格式:****expected_codes=xxx&expected_codes=xxx****。 :type expected_codes: list[str] :param url_path: 健康检查测试member健康时发送的http请求路径。默认为“/”。 使用说明:以“/”开头。当type为HTTP/HTTPS时生效。 支持多值查询,查询条件格式:***url_path=xxx&url_path=xxx***。 :type url_path: list[str] @@ -355,7 +355,7 @@ def max_retries(self, max_retries): def admin_state_up(self): """Gets the admin_state_up of this ListHealthMonitorsRequest. - 健康检查的管理状态。 取值: - true:表示开启健康检查,默认为true。 - false表示关闭健康检查。 + 参数解释:健康检查的管理状态。 取值范围: - true:表示开启健康检查。 - false表示关闭健康检查。 :return: The admin_state_up of this ListHealthMonitorsRequest. :rtype: bool @@ -366,7 +366,7 @@ def admin_state_up(self): def admin_state_up(self, admin_state_up): """Sets the admin_state_up of this ListHealthMonitorsRequest. - 健康检查的管理状态。 取值: - true:表示开启健康检查,默认为true。 - false表示关闭健康检查。 + 参数解释:健康检查的管理状态。 取值范围: - true:表示开启健康检查。 - false表示关闭健康检查。 :param admin_state_up: The admin_state_up of this ListHealthMonitorsRequest. :type admin_state_up: bool @@ -421,7 +421,7 @@ def timeout(self, timeout): def type(self): """Gets the type of this ListHealthMonitorsRequest. - 健康检查请求协议。 取值:TCP、UDP_CONNECT、HTTP、HTTPS、TLS和GRPC。 支持多值查询,查询条件格式:*****type=xxx&type=xxx*****。 + 健康检查请求协议。 取值:TCP、UDP_CONNECT、HTTP、HTTPS、TLS和gRPC。 支持多值查询,查询条件格式:*****type=xxx&type=xxx*****。 :return: The type of this ListHealthMonitorsRequest. :rtype: list[str] @@ -432,7 +432,7 @@ def type(self): def type(self, type): """Sets the type of this ListHealthMonitorsRequest. - 健康检查请求协议。 取值:TCP、UDP_CONNECT、HTTP、HTTPS、TLS和GRPC。 支持多值查询,查询条件格式:*****type=xxx&type=xxx*****。 + 健康检查请求协议。 取值:TCP、UDP_CONNECT、HTTP、HTTPS、TLS和gRPC。 支持多值查询,查询条件格式:*****type=xxx&type=xxx*****。 :param type: The type of this ListHealthMonitorsRequest. :type type: list[str] @@ -443,7 +443,7 @@ def type(self, type): def expected_codes(self): """Gets the expected_codes of this ListHealthMonitorsRequest. - 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:200。 仅支持HTTP/HTTPS/GRPC设置该字段,其他协议设置不会生效。 支持多值查询,查询条件格式:****expected_codes=xxx&expected_codes=xxx****。 + 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:200。 仅支持HTTP/HTTPS/gRPC设置该字段,其他协议设置不会生效。 支持多值查询,查询条件格式:****expected_codes=xxx&expected_codes=xxx****。 :return: The expected_codes of this ListHealthMonitorsRequest. :rtype: list[str] @@ -454,7 +454,7 @@ def expected_codes(self): def expected_codes(self, expected_codes): """Sets the expected_codes of this ListHealthMonitorsRequest. - 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:200。 仅支持HTTP/HTTPS/GRPC设置该字段,其他协议设置不会生效。 支持多值查询,查询条件格式:****expected_codes=xxx&expected_codes=xxx****。 + 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:200。 仅支持HTTP/HTTPS/gRPC设置该字段,其他协议设置不会生效。 支持多值查询,查询条件格式:****expected_codes=xxx&expected_codes=xxx****。 :param expected_codes: The expected_codes of this ListHealthMonitorsRequest. :type expected_codes: list[str] diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_l7_policies_request.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_l7_policies_request.py index 74f45ba2dd..73bc29ecaa 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_l7_policies_request.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_l7_policies_request.py @@ -61,39 +61,39 @@ def __init__(self, marker=None, limit=None, page_reverse=None, enterprise_projec The model defined in huaweicloud sdk - :param marker: 上一页最后一条记录的ID。 使用说明: - 必须与limit一起使用。 - 不指定时表示查询第一页。 - 该字段不允许为空或无效的ID。 + :param marker: 参数解释:上一页最后一条记录的ID。 约束限制: - 必须与limit一起使用。 - 不指定时表示查询第一页。 - 该字段不允许为空或无效的ID。 :type marker: str :param limit: 参数解释:每页返回的个数。 取值范围:0-2000 默认取值:2000 :type limit: int - :param page_reverse: 是否反向查询。 取值: - true:查询上一页。 - false:查询下一页,默认。 使用说明: - 必须与limit一起使用。 - 当page_reverse=true时,若要查询上一页,marker取值为当前页返回值的previous_marker。 + :param page_reverse: 参数解释:是否反向查询。 约束限制: - 必须与limit一起使用。 - 当page_reverse=true时,若要查询上一页,marker取值为当前页返回值的previous_marker。 取值范围: - true:查询上一页。 - false:查询下一页。 默认取值:false :type page_reverse: bool - :param enterprise_project_id: 企业项目ID。不传时查询default企业项目\"0\"下的资源,鉴权按照default企业项目鉴权; 如果传值,则传已存在的企业项目ID或all_granted_eps(表示查询所有企业项目)进行查询。 支持多值查询,查询条件格式: *enterprise_project_id=xxx&enterprise_project_id=xxx*。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt) + :param enterprise_project_id: 参数解释:企业项目ID。不传时查询default企业项目\"0\"下的资源,鉴权按照default企业项目鉴权。 如果传值,则传已存在的企业项目ID或all_granted_eps(表示查询所有企业项目)进行查询。 支持多值查询,查询条件格式: *enterprise_project_id=xxx&enterprise_project_id=xxx*。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt) :type enterprise_project_id: list[str] - :param id: 转发策略ID。 支持多值查询,查询条件格式:*id=xxx&id=xxx*。 + :param id: 参数解释:转发策略ID。 支持多值查询,查询条件格式:*id=xxx&id=xxx*。 :type id: list[str] - :param name: 转发策略名称。 支持多值查询,查询条件格式:**name=xxx&name=xxx**。 + :param name: 参数解释:转发策略名称。 支持多值查询,查询条件格式:**name=xxx&name=xxx**。 :type name: list[str] - :param description: 转发策略额描述信息。 支持多值查询,查询条件格式:*description=xxx&description=xxx*。 + :param description: 参数解释:转发策略额描述信息。 支持多值查询,查询条件格式:*description=xxx&description=xxx*。 :type description: list[str] - :param admin_state_up: 转发策略的管理状态,默认为true。 不支持该字段,请勿使用。 + :param admin_state_up: 参数解释:转发策略的管理状态。 :type admin_state_up: bool - :param listener_id: 转发策略所属的监听器ID。 支持多值查询,查询条件格式:*******listener_id=xxx&listener_id=xxx*******。 + :param listener_id: 参数解释:转发策略所属的监听器ID。 支持多值查询,查询条件格式:*******listener_id=xxx&listener_id=xxx*******。 :type listener_id: list[str] - :param position: 转发策略的优先级。 支持多值查询,查询条件格式:****position=xxx&position=xxx****。 不支持该字段,请勿使用。 + :param position: 参数解释:转发策略的优先级。 支持多值查询,查询条件格式:****position=xxx&position=xxx****。 不支持该字段,请勿使用。 :type position: list[int] - :param action: 转发策略的转发动作。 取值: - REDIRECT_TO_POOL:转发到后端云服务器组。 - REDIRECT_TO_LISTENER:重定向到监听器。 - REDIRECT_TO_URL:重定向到URL。 - FIXED_RESPONSE:返回固定响应体。 支持多值查询,查询条件格式:*****action=xxx&action=xxx*****。 [不支持REDIRECT_TO_URL和FIXED_RESPONSE](tag:hcso_dt) + :param action: 参数解释:转发策略的转发动作。 取值范围: - REDIRECT_TO_POOL:转发到后端云服务器组。 - REDIRECT_TO_LISTENER:重定向到监听器。 - REDIRECT_TO_URL:重定向到URL。 - FIXED_RESPONSE:返回固定响应体。 支持多值查询,查询条件格式:*****action=xxx&action=xxx*****。 [不支持REDIRECT_TO_URL和FIXED_RESPONSE](tag:hcso_dt) :type action: list[str] - :param redirect_url: 转发到的url。必须满足格式: protocol://host:port/path?query。 支持多值查询,查询条件格式:****redirect_url=xxx&redirect_url=xxx****。 不支持该字段,请勿使用。 + :param redirect_url: 参数解释:转发到的url。 支持多值查询,查询条件格式:****redirect_url=xxx&redirect_url=xxx****。 不支持该字段,请勿使用。 :type redirect_url: list[str] - :param redirect_pool_id: 转发到pool的ID。 支持多值查询,查询条件格式:***redirect_pool_id=xxx&redirect_pool_id=xxx***。 + :param redirect_pool_id: 参数解释:转发到pool的ID。 支持多值查询,查询条件格式:***redirect_pool_id=xxx&redirect_pool_id=xxx***。 :type redirect_pool_id: list[str] - :param redirect_listener_id: 转发到的listener的ID。 支持多值查询,查询条件格式:**redirect_listener_id=xxx&redirect_listener_id=xxx**。 + :param redirect_listener_id: 参数解释:转发到的listener的ID。 支持多值查询,查询条件格式:**redirect_listener_id=xxx&redirect_listener_id=xxx**。 :type redirect_listener_id: list[str] - :param provisioning_status: 转发策略的配置状态。 取值范围: - ACTIVE: 默认值,表示正常。 - ERROR: 表示当前策略与同一监听器下的其他策略存在相同的规则配置。 支持多值查询,查询条件格式:*provisioning_status=xxx&provisioning_status=xxx*。 + :param provisioning_status: 参数解释:转发策略的配置状态。 取值范围: - ACTIVE: 表示正常。 - ERROR: 表示当前策略与同一监听器下的其他策略存在相同的规则配置。 支持多值查询,查询条件格式:*provisioning_status=xxx&provisioning_status=xxx*。 :type provisioning_status: list[str] - :param display_all_rules: 是否显示转发策略下的rule详细信息。 取值: - true:显示policy下面的rule的详细信息。 - false:只显示policy下面的rule的id信息 + :param display_all_rules: 参数解释:是否显示转发策略下的rule详细信息。 取值范围: - true:显示policy下面的rule的详细信息。 - false:只显示policy下面的rule的id信息 :type display_all_rules: bool - :param priority: 转发策略的优先级。数值越小,优先级越高。 支持多值查询,查询条件格式:*priority=xxx&priority=xxx*。 [不支持该字段,请勿使用。](tag:hcso_dt) + :param priority: 参数解释:转发策略的优先级。数值越小,优先级越高。 支持多值查询,查询条件格式:*priority=xxx&priority=xxx*。 [不支持该字段,请勿使用。](tag:hcso_dt) :type priority: list[int] """ @@ -157,7 +157,7 @@ def __init__(self, marker=None, limit=None, page_reverse=None, enterprise_projec def marker(self): """Gets the marker of this ListL7PoliciesRequest. - 上一页最后一条记录的ID。 使用说明: - 必须与limit一起使用。 - 不指定时表示查询第一页。 - 该字段不允许为空或无效的ID。 + 参数解释:上一页最后一条记录的ID。 约束限制: - 必须与limit一起使用。 - 不指定时表示查询第一页。 - 该字段不允许为空或无效的ID。 :return: The marker of this ListL7PoliciesRequest. :rtype: str @@ -168,7 +168,7 @@ def marker(self): def marker(self, marker): """Sets the marker of this ListL7PoliciesRequest. - 上一页最后一条记录的ID。 使用说明: - 必须与limit一起使用。 - 不指定时表示查询第一页。 - 该字段不允许为空或无效的ID。 + 参数解释:上一页最后一条记录的ID。 约束限制: - 必须与limit一起使用。 - 不指定时表示查询第一页。 - 该字段不允许为空或无效的ID。 :param marker: The marker of this ListL7PoliciesRequest. :type marker: str @@ -201,7 +201,7 @@ def limit(self, limit): def page_reverse(self): """Gets the page_reverse of this ListL7PoliciesRequest. - 是否反向查询。 取值: - true:查询上一页。 - false:查询下一页,默认。 使用说明: - 必须与limit一起使用。 - 当page_reverse=true时,若要查询上一页,marker取值为当前页返回值的previous_marker。 + 参数解释:是否反向查询。 约束限制: - 必须与limit一起使用。 - 当page_reverse=true时,若要查询上一页,marker取值为当前页返回值的previous_marker。 取值范围: - true:查询上一页。 - false:查询下一页。 默认取值:false :return: The page_reverse of this ListL7PoliciesRequest. :rtype: bool @@ -212,7 +212,7 @@ def page_reverse(self): def page_reverse(self, page_reverse): """Sets the page_reverse of this ListL7PoliciesRequest. - 是否反向查询。 取值: - true:查询上一页。 - false:查询下一页,默认。 使用说明: - 必须与limit一起使用。 - 当page_reverse=true时,若要查询上一页,marker取值为当前页返回值的previous_marker。 + 参数解释:是否反向查询。 约束限制: - 必须与limit一起使用。 - 当page_reverse=true时,若要查询上一页,marker取值为当前页返回值的previous_marker。 取值范围: - true:查询上一页。 - false:查询下一页。 默认取值:false :param page_reverse: The page_reverse of this ListL7PoliciesRequest. :type page_reverse: bool @@ -223,7 +223,7 @@ def page_reverse(self, page_reverse): def enterprise_project_id(self): """Gets the enterprise_project_id of this ListL7PoliciesRequest. - 企业项目ID。不传时查询default企业项目\"0\"下的资源,鉴权按照default企业项目鉴权; 如果传值,则传已存在的企业项目ID或all_granted_eps(表示查询所有企业项目)进行查询。 支持多值查询,查询条件格式: *enterprise_project_id=xxx&enterprise_project_id=xxx*。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt) + 参数解释:企业项目ID。不传时查询default企业项目\"0\"下的资源,鉴权按照default企业项目鉴权。 如果传值,则传已存在的企业项目ID或all_granted_eps(表示查询所有企业项目)进行查询。 支持多值查询,查询条件格式: *enterprise_project_id=xxx&enterprise_project_id=xxx*。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt) :return: The enterprise_project_id of this ListL7PoliciesRequest. :rtype: list[str] @@ -234,7 +234,7 @@ def enterprise_project_id(self): def enterprise_project_id(self, enterprise_project_id): """Sets the enterprise_project_id of this ListL7PoliciesRequest. - 企业项目ID。不传时查询default企业项目\"0\"下的资源,鉴权按照default企业项目鉴权; 如果传值,则传已存在的企业项目ID或all_granted_eps(表示查询所有企业项目)进行查询。 支持多值查询,查询条件格式: *enterprise_project_id=xxx&enterprise_project_id=xxx*。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt) + 参数解释:企业项目ID。不传时查询default企业项目\"0\"下的资源,鉴权按照default企业项目鉴权。 如果传值,则传已存在的企业项目ID或all_granted_eps(表示查询所有企业项目)进行查询。 支持多值查询,查询条件格式: *enterprise_project_id=xxx&enterprise_project_id=xxx*。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt) :param enterprise_project_id: The enterprise_project_id of this ListL7PoliciesRequest. :type enterprise_project_id: list[str] @@ -245,7 +245,7 @@ def enterprise_project_id(self, enterprise_project_id): def id(self): """Gets the id of this ListL7PoliciesRequest. - 转发策略ID。 支持多值查询,查询条件格式:*id=xxx&id=xxx*。 + 参数解释:转发策略ID。 支持多值查询,查询条件格式:*id=xxx&id=xxx*。 :return: The id of this ListL7PoliciesRequest. :rtype: list[str] @@ -256,7 +256,7 @@ def id(self): def id(self, id): """Sets the id of this ListL7PoliciesRequest. - 转发策略ID。 支持多值查询,查询条件格式:*id=xxx&id=xxx*。 + 参数解释:转发策略ID。 支持多值查询,查询条件格式:*id=xxx&id=xxx*。 :param id: The id of this ListL7PoliciesRequest. :type id: list[str] @@ -267,7 +267,7 @@ def id(self, id): def name(self): """Gets the name of this ListL7PoliciesRequest. - 转发策略名称。 支持多值查询,查询条件格式:**name=xxx&name=xxx**。 + 参数解释:转发策略名称。 支持多值查询,查询条件格式:**name=xxx&name=xxx**。 :return: The name of this ListL7PoliciesRequest. :rtype: list[str] @@ -278,7 +278,7 @@ def name(self): def name(self, name): """Sets the name of this ListL7PoliciesRequest. - 转发策略名称。 支持多值查询,查询条件格式:**name=xxx&name=xxx**。 + 参数解释:转发策略名称。 支持多值查询,查询条件格式:**name=xxx&name=xxx**。 :param name: The name of this ListL7PoliciesRequest. :type name: list[str] @@ -289,7 +289,7 @@ def name(self, name): def description(self): """Gets the description of this ListL7PoliciesRequest. - 转发策略额描述信息。 支持多值查询,查询条件格式:*description=xxx&description=xxx*。 + 参数解释:转发策略额描述信息。 支持多值查询,查询条件格式:*description=xxx&description=xxx*。 :return: The description of this ListL7PoliciesRequest. :rtype: list[str] @@ -300,7 +300,7 @@ def description(self): def description(self, description): """Sets the description of this ListL7PoliciesRequest. - 转发策略额描述信息。 支持多值查询,查询条件格式:*description=xxx&description=xxx*。 + 参数解释:转发策略额描述信息。 支持多值查询,查询条件格式:*description=xxx&description=xxx*。 :param description: The description of this ListL7PoliciesRequest. :type description: list[str] @@ -311,7 +311,7 @@ def description(self, description): def admin_state_up(self): """Gets the admin_state_up of this ListL7PoliciesRequest. - 转发策略的管理状态,默认为true。 不支持该字段,请勿使用。 + 参数解释:转发策略的管理状态。 :return: The admin_state_up of this ListL7PoliciesRequest. :rtype: bool @@ -322,7 +322,7 @@ def admin_state_up(self): def admin_state_up(self, admin_state_up): """Sets the admin_state_up of this ListL7PoliciesRequest. - 转发策略的管理状态,默认为true。 不支持该字段,请勿使用。 + 参数解释:转发策略的管理状态。 :param admin_state_up: The admin_state_up of this ListL7PoliciesRequest. :type admin_state_up: bool @@ -333,7 +333,7 @@ def admin_state_up(self, admin_state_up): def listener_id(self): """Gets the listener_id of this ListL7PoliciesRequest. - 转发策略所属的监听器ID。 支持多值查询,查询条件格式:*******listener_id=xxx&listener_id=xxx*******。 + 参数解释:转发策略所属的监听器ID。 支持多值查询,查询条件格式:*******listener_id=xxx&listener_id=xxx*******。 :return: The listener_id of this ListL7PoliciesRequest. :rtype: list[str] @@ -344,7 +344,7 @@ def listener_id(self): def listener_id(self, listener_id): """Sets the listener_id of this ListL7PoliciesRequest. - 转发策略所属的监听器ID。 支持多值查询,查询条件格式:*******listener_id=xxx&listener_id=xxx*******。 + 参数解释:转发策略所属的监听器ID。 支持多值查询,查询条件格式:*******listener_id=xxx&listener_id=xxx*******。 :param listener_id: The listener_id of this ListL7PoliciesRequest. :type listener_id: list[str] @@ -355,7 +355,7 @@ def listener_id(self, listener_id): def position(self): """Gets the position of this ListL7PoliciesRequest. - 转发策略的优先级。 支持多值查询,查询条件格式:****position=xxx&position=xxx****。 不支持该字段,请勿使用。 + 参数解释:转发策略的优先级。 支持多值查询,查询条件格式:****position=xxx&position=xxx****。 不支持该字段,请勿使用。 :return: The position of this ListL7PoliciesRequest. :rtype: list[int] @@ -366,7 +366,7 @@ def position(self): def position(self, position): """Sets the position of this ListL7PoliciesRequest. - 转发策略的优先级。 支持多值查询,查询条件格式:****position=xxx&position=xxx****。 不支持该字段,请勿使用。 + 参数解释:转发策略的优先级。 支持多值查询,查询条件格式:****position=xxx&position=xxx****。 不支持该字段,请勿使用。 :param position: The position of this ListL7PoliciesRequest. :type position: list[int] @@ -377,7 +377,7 @@ def position(self, position): def action(self): """Gets the action of this ListL7PoliciesRequest. - 转发策略的转发动作。 取值: - REDIRECT_TO_POOL:转发到后端云服务器组。 - REDIRECT_TO_LISTENER:重定向到监听器。 - REDIRECT_TO_URL:重定向到URL。 - FIXED_RESPONSE:返回固定响应体。 支持多值查询,查询条件格式:*****action=xxx&action=xxx*****。 [不支持REDIRECT_TO_URL和FIXED_RESPONSE](tag:hcso_dt) + 参数解释:转发策略的转发动作。 取值范围: - REDIRECT_TO_POOL:转发到后端云服务器组。 - REDIRECT_TO_LISTENER:重定向到监听器。 - REDIRECT_TO_URL:重定向到URL。 - FIXED_RESPONSE:返回固定响应体。 支持多值查询,查询条件格式:*****action=xxx&action=xxx*****。 [不支持REDIRECT_TO_URL和FIXED_RESPONSE](tag:hcso_dt) :return: The action of this ListL7PoliciesRequest. :rtype: list[str] @@ -388,7 +388,7 @@ def action(self): def action(self, action): """Sets the action of this ListL7PoliciesRequest. - 转发策略的转发动作。 取值: - REDIRECT_TO_POOL:转发到后端云服务器组。 - REDIRECT_TO_LISTENER:重定向到监听器。 - REDIRECT_TO_URL:重定向到URL。 - FIXED_RESPONSE:返回固定响应体。 支持多值查询,查询条件格式:*****action=xxx&action=xxx*****。 [不支持REDIRECT_TO_URL和FIXED_RESPONSE](tag:hcso_dt) + 参数解释:转发策略的转发动作。 取值范围: - REDIRECT_TO_POOL:转发到后端云服务器组。 - REDIRECT_TO_LISTENER:重定向到监听器。 - REDIRECT_TO_URL:重定向到URL。 - FIXED_RESPONSE:返回固定响应体。 支持多值查询,查询条件格式:*****action=xxx&action=xxx*****。 [不支持REDIRECT_TO_URL和FIXED_RESPONSE](tag:hcso_dt) :param action: The action of this ListL7PoliciesRequest. :type action: list[str] @@ -399,7 +399,7 @@ def action(self, action): def redirect_url(self): """Gets the redirect_url of this ListL7PoliciesRequest. - 转发到的url。必须满足格式: protocol://host:port/path?query。 支持多值查询,查询条件格式:****redirect_url=xxx&redirect_url=xxx****。 不支持该字段,请勿使用。 + 参数解释:转发到的url。 支持多值查询,查询条件格式:****redirect_url=xxx&redirect_url=xxx****。 不支持该字段,请勿使用。 :return: The redirect_url of this ListL7PoliciesRequest. :rtype: list[str] @@ -410,7 +410,7 @@ def redirect_url(self): def redirect_url(self, redirect_url): """Sets the redirect_url of this ListL7PoliciesRequest. - 转发到的url。必须满足格式: protocol://host:port/path?query。 支持多值查询,查询条件格式:****redirect_url=xxx&redirect_url=xxx****。 不支持该字段,请勿使用。 + 参数解释:转发到的url。 支持多值查询,查询条件格式:****redirect_url=xxx&redirect_url=xxx****。 不支持该字段,请勿使用。 :param redirect_url: The redirect_url of this ListL7PoliciesRequest. :type redirect_url: list[str] @@ -421,7 +421,7 @@ def redirect_url(self, redirect_url): def redirect_pool_id(self): """Gets the redirect_pool_id of this ListL7PoliciesRequest. - 转发到pool的ID。 支持多值查询,查询条件格式:***redirect_pool_id=xxx&redirect_pool_id=xxx***。 + 参数解释:转发到pool的ID。 支持多值查询,查询条件格式:***redirect_pool_id=xxx&redirect_pool_id=xxx***。 :return: The redirect_pool_id of this ListL7PoliciesRequest. :rtype: list[str] @@ -432,7 +432,7 @@ def redirect_pool_id(self): def redirect_pool_id(self, redirect_pool_id): """Sets the redirect_pool_id of this ListL7PoliciesRequest. - 转发到pool的ID。 支持多值查询,查询条件格式:***redirect_pool_id=xxx&redirect_pool_id=xxx***。 + 参数解释:转发到pool的ID。 支持多值查询,查询条件格式:***redirect_pool_id=xxx&redirect_pool_id=xxx***。 :param redirect_pool_id: The redirect_pool_id of this ListL7PoliciesRequest. :type redirect_pool_id: list[str] @@ -443,7 +443,7 @@ def redirect_pool_id(self, redirect_pool_id): def redirect_listener_id(self): """Gets the redirect_listener_id of this ListL7PoliciesRequest. - 转发到的listener的ID。 支持多值查询,查询条件格式:**redirect_listener_id=xxx&redirect_listener_id=xxx**。 + 参数解释:转发到的listener的ID。 支持多值查询,查询条件格式:**redirect_listener_id=xxx&redirect_listener_id=xxx**。 :return: The redirect_listener_id of this ListL7PoliciesRequest. :rtype: list[str] @@ -454,7 +454,7 @@ def redirect_listener_id(self): def redirect_listener_id(self, redirect_listener_id): """Sets the redirect_listener_id of this ListL7PoliciesRequest. - 转发到的listener的ID。 支持多值查询,查询条件格式:**redirect_listener_id=xxx&redirect_listener_id=xxx**。 + 参数解释:转发到的listener的ID。 支持多值查询,查询条件格式:**redirect_listener_id=xxx&redirect_listener_id=xxx**。 :param redirect_listener_id: The redirect_listener_id of this ListL7PoliciesRequest. :type redirect_listener_id: list[str] @@ -465,7 +465,7 @@ def redirect_listener_id(self, redirect_listener_id): def provisioning_status(self): """Gets the provisioning_status of this ListL7PoliciesRequest. - 转发策略的配置状态。 取值范围: - ACTIVE: 默认值,表示正常。 - ERROR: 表示当前策略与同一监听器下的其他策略存在相同的规则配置。 支持多值查询,查询条件格式:*provisioning_status=xxx&provisioning_status=xxx*。 + 参数解释:转发策略的配置状态。 取值范围: - ACTIVE: 表示正常。 - ERROR: 表示当前策略与同一监听器下的其他策略存在相同的规则配置。 支持多值查询,查询条件格式:*provisioning_status=xxx&provisioning_status=xxx*。 :return: The provisioning_status of this ListL7PoliciesRequest. :rtype: list[str] @@ -476,7 +476,7 @@ def provisioning_status(self): def provisioning_status(self, provisioning_status): """Sets the provisioning_status of this ListL7PoliciesRequest. - 转发策略的配置状态。 取值范围: - ACTIVE: 默认值,表示正常。 - ERROR: 表示当前策略与同一监听器下的其他策略存在相同的规则配置。 支持多值查询,查询条件格式:*provisioning_status=xxx&provisioning_status=xxx*。 + 参数解释:转发策略的配置状态。 取值范围: - ACTIVE: 表示正常。 - ERROR: 表示当前策略与同一监听器下的其他策略存在相同的规则配置。 支持多值查询,查询条件格式:*provisioning_status=xxx&provisioning_status=xxx*。 :param provisioning_status: The provisioning_status of this ListL7PoliciesRequest. :type provisioning_status: list[str] @@ -487,7 +487,7 @@ def provisioning_status(self, provisioning_status): def display_all_rules(self): """Gets the display_all_rules of this ListL7PoliciesRequest. - 是否显示转发策略下的rule详细信息。 取值: - true:显示policy下面的rule的详细信息。 - false:只显示policy下面的rule的id信息 + 参数解释:是否显示转发策略下的rule详细信息。 取值范围: - true:显示policy下面的rule的详细信息。 - false:只显示policy下面的rule的id信息 :return: The display_all_rules of this ListL7PoliciesRequest. :rtype: bool @@ -498,7 +498,7 @@ def display_all_rules(self): def display_all_rules(self, display_all_rules): """Sets the display_all_rules of this ListL7PoliciesRequest. - 是否显示转发策略下的rule详细信息。 取值: - true:显示policy下面的rule的详细信息。 - false:只显示policy下面的rule的id信息 + 参数解释:是否显示转发策略下的rule详细信息。 取值范围: - true:显示policy下面的rule的详细信息。 - false:只显示policy下面的rule的id信息 :param display_all_rules: The display_all_rules of this ListL7PoliciesRequest. :type display_all_rules: bool @@ -509,7 +509,7 @@ def display_all_rules(self, display_all_rules): def priority(self): """Gets the priority of this ListL7PoliciesRequest. - 转发策略的优先级。数值越小,优先级越高。 支持多值查询,查询条件格式:*priority=xxx&priority=xxx*。 [不支持该字段,请勿使用。](tag:hcso_dt) + 参数解释:转发策略的优先级。数值越小,优先级越高。 支持多值查询,查询条件格式:*priority=xxx&priority=xxx*。 [不支持该字段,请勿使用。](tag:hcso_dt) :return: The priority of this ListL7PoliciesRequest. :rtype: list[int] @@ -520,7 +520,7 @@ def priority(self): def priority(self, priority): """Sets the priority of this ListL7PoliciesRequest. - 转发策略的优先级。数值越小,优先级越高。 支持多值查询,查询条件格式:*priority=xxx&priority=xxx*。 [不支持该字段,请勿使用。](tag:hcso_dt) + 参数解释:转发策略的优先级。数值越小,优先级越高。 支持多值查询,查询条件格式:*priority=xxx&priority=xxx*。 [不支持该字段,请勿使用。](tag:hcso_dt) :param priority: The priority of this ListL7PoliciesRequest. :type priority: list[int] diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_l7_policies_response.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_l7_policies_response.py index e10c30eae0..f9a58e4315 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_l7_policies_response.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_l7_policies_response.py @@ -34,11 +34,11 @@ def __init__(self, request_id=None, page_info=None, l7policies=None): The model defined in huaweicloud sdk - :param request_id: 请求ID。 注:自动生成 。 + :param request_id: 参数解释:请求ID。 注:自动生成 。 :type request_id: str :param page_info: :type page_info: :class:`huaweicloudsdkelb.v3.PageInfo` - :param l7policies: 转发策略对象列表。 + :param l7policies: 参数解释:转发策略对象列表。 :type l7policies: list[:class:`huaweicloudsdkelb.v3.L7Policy`] """ @@ -60,7 +60,7 @@ def __init__(self, request_id=None, page_info=None, l7policies=None): def request_id(self): """Gets the request_id of this ListL7PoliciesResponse. - 请求ID。 注:自动生成 。 + 参数解释:请求ID。 注:自动生成 。 :return: The request_id of this ListL7PoliciesResponse. :rtype: str @@ -71,7 +71,7 @@ def request_id(self): def request_id(self, request_id): """Sets the request_id of this ListL7PoliciesResponse. - 请求ID。 注:自动生成 。 + 参数解释:请求ID。 注:自动生成 。 :param request_id: The request_id of this ListL7PoliciesResponse. :type request_id: str @@ -100,7 +100,7 @@ def page_info(self, page_info): def l7policies(self): """Gets the l7policies of this ListL7PoliciesResponse. - 转发策略对象列表。 + 参数解释:转发策略对象列表。 :return: The l7policies of this ListL7PoliciesResponse. :rtype: list[:class:`huaweicloudsdkelb.v3.L7Policy`] @@ -111,7 +111,7 @@ def l7policies(self): def l7policies(self, l7policies): """Sets the l7policies of this ListL7PoliciesResponse. - 转发策略对象列表。 + 参数解释:转发策略对象列表。 :param l7policies: The l7policies of this ListL7PoliciesResponse. :type l7policies: list[:class:`huaweicloudsdkelb.v3.L7Policy`] diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_l7_rules_request.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_l7_rules_request.py index f3220f4f4a..85355769bb 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_l7_rules_request.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_l7_rules_request.py @@ -69,7 +69,7 @@ def __init__(self, l7policy_id=None, limit=None, marker=None, page_reverse=None, :type provisioning_status: list[str] :param invert: 是否反向匹配。使用说明:固定为false。该字段能更新但不会生效。 :type invert: bool - :param admin_state_up: 转发规则的管理状态,默认为true。 不支持该字段,请勿使用。 + :param admin_state_up: 转发规则的管理状态。 不支持该字段,请勿使用。 :type admin_state_up: bool :param value: 匹配内容的值。 支持多值查询,查询条件格式:*value=xxx&value=xxx*。 :type value: list[str] @@ -304,7 +304,7 @@ def invert(self, invert): def admin_state_up(self): """Gets the admin_state_up of this ListL7RulesRequest. - 转发规则的管理状态,默认为true。 不支持该字段,请勿使用。 + 转发规则的管理状态。 不支持该字段,请勿使用。 :return: The admin_state_up of this ListL7RulesRequest. :rtype: bool @@ -315,7 +315,7 @@ def admin_state_up(self): def admin_state_up(self, admin_state_up): """Sets the admin_state_up of this ListL7RulesRequest. - 转发规则的管理状态,默认为true。 不支持该字段,请勿使用。 + 转发规则的管理状态。 不支持该字段,请勿使用。 :param admin_state_up: The admin_state_up of this ListL7RulesRequest. :type admin_state_up: bool diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_l7_rules_response.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_l7_rules_response.py index 606d1ca2f6..e113c374ab 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_l7_rules_response.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_l7_rules_response.py @@ -34,11 +34,11 @@ def __init__(self, request_id=None, page_info=None, rules=None): The model defined in huaweicloud sdk - :param request_id: 请求ID。 注:自动生成 。 + :param request_id: 参数解释:请求ID。 注:自动生成 。 :type request_id: str :param page_info: :type page_info: :class:`huaweicloudsdkelb.v3.PageInfo` - :param rules: 规则对象列表。 + :param rules: 参数解释:规则对象列表。 :type rules: list[:class:`huaweicloudsdkelb.v3.L7Rule`] """ @@ -60,7 +60,7 @@ def __init__(self, request_id=None, page_info=None, rules=None): def request_id(self): """Gets the request_id of this ListL7RulesResponse. - 请求ID。 注:自动生成 。 + 参数解释:请求ID。 注:自动生成 。 :return: The request_id of this ListL7RulesResponse. :rtype: str @@ -71,7 +71,7 @@ def request_id(self): def request_id(self, request_id): """Sets the request_id of this ListL7RulesResponse. - 请求ID。 注:自动生成 。 + 参数解释:请求ID。 注:自动生成 。 :param request_id: The request_id of this ListL7RulesResponse. :type request_id: str @@ -100,7 +100,7 @@ def page_info(self, page_info): def rules(self): """Gets the rules of this ListL7RulesResponse. - 规则对象列表。 + 参数解释:规则对象列表。 :return: The rules of this ListL7RulesResponse. :rtype: list[:class:`huaweicloudsdkelb.v3.L7Rule`] @@ -111,7 +111,7 @@ def rules(self): def rules(self, rules): """Sets the rules of this ListL7RulesResponse. - 规则对象列表。 + 参数解释:规则对象列表。 :param rules: The rules of this ListL7RulesResponse. :type rules: list[:class:`huaweicloudsdkelb.v3.L7Rule`] diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_listeners_request.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_listeners_request.py index 298942f55d..8680acf7ba 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_listeners_request.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_listeners_request.py @@ -91,7 +91,7 @@ def __init__(self, limit=None, marker=None, page_reverse=None, protocol_port=Non :type page_reverse: bool :param protocol_port: 监听器的前端监听端口。 [当监听器的protocol为IP时,前端端口固定为0。](tag:hws_eu) 支持多值查询,查询条件格式:*protocol_port=xxx&protocol_port=xxx*。 :type protocol_port: list[str] - :param protocol: 监听器的监听协议。 [取值:TCP、UDP、HTTP、HTTPS、TERMINATED_HTTPS、QUIC、TLS。 说明:TERMINATED_HTTPS为共享型LB上的监听器独有的协议。](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt) [取值:TCP、UDP、IP、HTTP、HTTPS。IP为网关型LB上的监听器独有的协议。](tag:hws_eu,hcso_dt) 支持多值查询,查询条件格式:*protocol=xxx&protocol=xxx*。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) + :param protocol: 监听器的监听协议。 [取值:TCP、UDP、HTTP、HTTPS、TERMINATED_HTTPS、QUIC、TLS。 说明:TERMINATED_HTTPS为共享型LB上的监听器独有的协议。](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt) [取值:TCP、UDP、HTTP、HTTPS。](tag:hcso_dt) [取值:TCP、UDP、IP、HTTP、HTTPS。IP为网关型LB上的监听器独有的协议。](tag:hws_eu) 支持多值查询,查询条件格式:*protocol=xxx&protocol=xxx*。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) :type protocol: list[str] :param description: 监听器的描述信息。 支持多值查询,查询条件格式:*description=xxx&description=xxx*。 :type description: list[str] @@ -123,9 +123,9 @@ def __init__(self, limit=None, marker=None, page_reverse=None, protocol_port=Non :type enterprise_project_id: list[str] :param enable_member_retry: 是否开启后端服务器的重试。 取值:true 开启重试,false 不开启重试。 :type enable_member_retry: bool - :param member_timeout: 等待后端服务器响应超时时间。请求转发后端服务器后,在等待超时member_timeout时长没有响应,负载均衡将终止等待,并返回 HTTP504错误码。 取值:1-300s。 支持多值查询,查询条件格式:*member_timeout=xxx&member_timeout=xxx*。 + :param member_timeout: 等待后端服务器响应超时时间。请求转发后端服务器后,在等待超时member_timeout时长没有响应,负载均衡将终止等待,并返回 HTTP504错误码。 取值:1-3600s。 支持多值查询,查询条件格式:*member_timeout=xxx&member_timeout=xxx*。 :type member_timeout: list[int] - :param client_timeout: 等待客户端请求超时时间,包括两种情况: - 读取整个客户端请求头的超时时长:如果客户端未在超时时长内发送完整个请求头,则请求将被中断 - 两个连续body体的数据包到达LB的时间间隔,超出client_timeout将会断开连接。 取值:1-300s。 支持多值查询,查询条件格式:*client_timeout=xxx&client_timeout=xxx*。 + :param client_timeout: 等待客户端请求超时时间,包括两种情况: - 读取整个客户端请求头的超时时长:如果客户端未在超时时长内发送完整个请求头,则请求将被中断 - 两个连续body体的数据包到达LB的时间间隔,超出client_timeout将会断开连接。 取值:1-3600s。 支持多值查询,查询条件格式:*client_timeout=xxx&client_timeout=xxx*。 :type client_timeout: list[int] :param keepalive_timeout: 客户端连接空闲超时时间。在超过keepalive_timeout时长一直没有请求, 负载均衡会暂时中断当前连接,直到下一次请求时重新建立新的连接。 取值: - TCP监听器[和IP监听器](tag:hws_eu):10-4000s。 - HTTP/HTTPS/TERMINATED_HTTPS监听器:0-4000s。 [- 共享型实例的UDP监听器不支持此字段。](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt,dt_test,hk_tm) 支持多值查询,查询条件格式:*keepalive_timeout=xxx&keepalive_timeout=xxx*。 :type keepalive_timeout: list[int] @@ -322,7 +322,7 @@ def protocol_port(self, protocol_port): def protocol(self): """Gets the protocol of this ListListenersRequest. - 监听器的监听协议。 [取值:TCP、UDP、HTTP、HTTPS、TERMINATED_HTTPS、QUIC、TLS。 说明:TERMINATED_HTTPS为共享型LB上的监听器独有的协议。](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt) [取值:TCP、UDP、IP、HTTP、HTTPS。IP为网关型LB上的监听器独有的协议。](tag:hws_eu,hcso_dt) 支持多值查询,查询条件格式:*protocol=xxx&protocol=xxx*。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) + 监听器的监听协议。 [取值:TCP、UDP、HTTP、HTTPS、TERMINATED_HTTPS、QUIC、TLS。 说明:TERMINATED_HTTPS为共享型LB上的监听器独有的协议。](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt) [取值:TCP、UDP、HTTP、HTTPS。](tag:hcso_dt) [取值:TCP、UDP、IP、HTTP、HTTPS。IP为网关型LB上的监听器独有的协议。](tag:hws_eu) 支持多值查询,查询条件格式:*protocol=xxx&protocol=xxx*。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) :return: The protocol of this ListListenersRequest. :rtype: list[str] @@ -333,7 +333,7 @@ def protocol(self): def protocol(self, protocol): """Sets the protocol of this ListListenersRequest. - 监听器的监听协议。 [取值:TCP、UDP、HTTP、HTTPS、TERMINATED_HTTPS、QUIC、TLS。 说明:TERMINATED_HTTPS为共享型LB上的监听器独有的协议。](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt) [取值:TCP、UDP、IP、HTTP、HTTPS。IP为网关型LB上的监听器独有的协议。](tag:hws_eu,hcso_dt) 支持多值查询,查询条件格式:*protocol=xxx&protocol=xxx*。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) + 监听器的监听协议。 [取值:TCP、UDP、HTTP、HTTPS、TERMINATED_HTTPS、QUIC、TLS。 说明:TERMINATED_HTTPS为共享型LB上的监听器独有的协议。](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt) [取值:TCP、UDP、HTTP、HTTPS。](tag:hcso_dt) [取值:TCP、UDP、IP、HTTP、HTTPS。IP为网关型LB上的监听器独有的协议。](tag:hws_eu) 支持多值查询,查询条件格式:*protocol=xxx&protocol=xxx*。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) :param protocol: The protocol of this ListListenersRequest. :type protocol: list[str] @@ -674,7 +674,7 @@ def enable_member_retry(self, enable_member_retry): def member_timeout(self): """Gets the member_timeout of this ListListenersRequest. - 等待后端服务器响应超时时间。请求转发后端服务器后,在等待超时member_timeout时长没有响应,负载均衡将终止等待,并返回 HTTP504错误码。 取值:1-300s。 支持多值查询,查询条件格式:*member_timeout=xxx&member_timeout=xxx*。 + 等待后端服务器响应超时时间。请求转发后端服务器后,在等待超时member_timeout时长没有响应,负载均衡将终止等待,并返回 HTTP504错误码。 取值:1-3600s。 支持多值查询,查询条件格式:*member_timeout=xxx&member_timeout=xxx*。 :return: The member_timeout of this ListListenersRequest. :rtype: list[int] @@ -685,7 +685,7 @@ def member_timeout(self): def member_timeout(self, member_timeout): """Sets the member_timeout of this ListListenersRequest. - 等待后端服务器响应超时时间。请求转发后端服务器后,在等待超时member_timeout时长没有响应,负载均衡将终止等待,并返回 HTTP504错误码。 取值:1-300s。 支持多值查询,查询条件格式:*member_timeout=xxx&member_timeout=xxx*。 + 等待后端服务器响应超时时间。请求转发后端服务器后,在等待超时member_timeout时长没有响应,负载均衡将终止等待,并返回 HTTP504错误码。 取值:1-3600s。 支持多值查询,查询条件格式:*member_timeout=xxx&member_timeout=xxx*。 :param member_timeout: The member_timeout of this ListListenersRequest. :type member_timeout: list[int] @@ -696,7 +696,7 @@ def member_timeout(self, member_timeout): def client_timeout(self): """Gets the client_timeout of this ListListenersRequest. - 等待客户端请求超时时间,包括两种情况: - 读取整个客户端请求头的超时时长:如果客户端未在超时时长内发送完整个请求头,则请求将被中断 - 两个连续body体的数据包到达LB的时间间隔,超出client_timeout将会断开连接。 取值:1-300s。 支持多值查询,查询条件格式:*client_timeout=xxx&client_timeout=xxx*。 + 等待客户端请求超时时间,包括两种情况: - 读取整个客户端请求头的超时时长:如果客户端未在超时时长内发送完整个请求头,则请求将被中断 - 两个连续body体的数据包到达LB的时间间隔,超出client_timeout将会断开连接。 取值:1-3600s。 支持多值查询,查询条件格式:*client_timeout=xxx&client_timeout=xxx*。 :return: The client_timeout of this ListListenersRequest. :rtype: list[int] @@ -707,7 +707,7 @@ def client_timeout(self): def client_timeout(self, client_timeout): """Sets the client_timeout of this ListListenersRequest. - 等待客户端请求超时时间,包括两种情况: - 读取整个客户端请求头的超时时长:如果客户端未在超时时长内发送完整个请求头,则请求将被中断 - 两个连续body体的数据包到达LB的时间间隔,超出client_timeout将会断开连接。 取值:1-300s。 支持多值查询,查询条件格式:*client_timeout=xxx&client_timeout=xxx*。 + 等待客户端请求超时时间,包括两种情况: - 读取整个客户端请求头的超时时长:如果客户端未在超时时长内发送完整个请求头,则请求将被中断 - 两个连续body体的数据包到达LB的时间间隔,超出client_timeout将会断开连接。 取值:1-3600s。 支持多值查询,查询条件格式:*client_timeout=xxx&client_timeout=xxx*。 :param client_timeout: The client_timeout of this ListListenersRequest. :type client_timeout: list[int] diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_listeners_response.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_listeners_response.py index b40770545c..7b5535bc12 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_listeners_response.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_listeners_response.py @@ -34,11 +34,11 @@ def __init__(self, request_id=None, page_info=None, listeners=None): The model defined in huaweicloud sdk - :param request_id: 请求ID。 注:自动生成 。 + :param request_id: 参数解释:请求ID。 注:自动生成 。 :type request_id: str :param page_info: :type page_info: :class:`huaweicloudsdkelb.v3.PageInfo` - :param listeners: Listener的列表。 + :param listeners: 参数解释:Listener的列表。 :type listeners: list[:class:`huaweicloudsdkelb.v3.Listener`] """ @@ -60,7 +60,7 @@ def __init__(self, request_id=None, page_info=None, listeners=None): def request_id(self): """Gets the request_id of this ListListenersResponse. - 请求ID。 注:自动生成 。 + 参数解释:请求ID。 注:自动生成 。 :return: The request_id of this ListListenersResponse. :rtype: str @@ -71,7 +71,7 @@ def request_id(self): def request_id(self, request_id): """Sets the request_id of this ListListenersResponse. - 请求ID。 注:自动生成 。 + 参数解释:请求ID。 注:自动生成 。 :param request_id: The request_id of this ListListenersResponse. :type request_id: str @@ -100,7 +100,7 @@ def page_info(self, page_info): def listeners(self): """Gets the listeners of this ListListenersResponse. - Listener的列表。 + 参数解释:Listener的列表。 :return: The listeners of this ListListenersResponse. :rtype: list[:class:`huaweicloudsdkelb.v3.Listener`] @@ -111,7 +111,7 @@ def listeners(self): def listeners(self, listeners): """Sets the listeners of this ListListenersResponse. - Listener的列表。 + 参数解释:Listener的列表。 :param listeners: The listeners of this ListListenersResponse. :type listeners: list[:class:`huaweicloudsdkelb.v3.Listener`] diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_load_balancers_request.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_load_balancers_request.py index 543ccff71e..e5a719f8ce 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_load_balancers_request.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_load_balancers_request.py @@ -111,7 +111,7 @@ def __init__(self, marker=None, limit=None, page_reverse=None, id=None, name=Non :type name: list[str] :param description: 负载均衡器的描述信息。 支持多值查询,查询条件格式:*description=xxx&description=xxx*。 :type description: list[str] - :param admin_state_up: 参数解释:负载均衡器的启用状态。 取值范围:布尔类型。 - true :启用。 - false:停用。 [不支持该字段,请勿使用。](tag:dt,dt_test) + :param admin_state_up: 参数解释:负载均衡器的启用状态。 取值范围: - true :启用。 - false:停用。 [不支持该字段,请勿使用。](tag:dt,dt_test) :type admin_state_up: bool :param provisioning_status: 负载均衡器的配置状态。 取值: - ACTIVE:使用中。 - PENDING_DELETE:删除中。 支持多值查询,查询条件格式:*provisioning_status=xxx&provisioning_status=xxx*。 :type provisioning_status: list[str] @@ -125,7 +125,7 @@ def __init__(self, marker=None, limit=None, page_reverse=None, id=None, name=Non :type vip_port_id: list[str] :param vip_address: 负载均衡器的IPv4虚拟IP地址。 支持多值查询,查询条件格式:*vip_address=xxx&vip_address=xxx*。 :type vip_address: list[str] - :param vip_subnet_cidr_id: 负载均衡器所在子网的IPv4子网ID,也称为该负载均衡器实例的前端子网。 支持多值查询,查询条件格式:*vip_subnet_cidr_id=xxx&vip_subnet_cidr_id=xxx*。 + :param vip_subnet_cidr_id: 负载均衡器所在子网的IPv4子网ID,也称为该负载均衡器实例的前端子网。 支持多值查询,查询条件格式:*vip_subnet_cidr_id=xxx&vip_subnet_cidr_id=xxx*。 :type vip_subnet_cidr_id: list[str] :param ipv6_vip_port_id: 双栈类型负载均衡器的IPv6对应的port ID。 支持多值查询,查询条件格式:*ipv6_vip_port_id=xxx&ipv6_vip_port_id=xxx*。 [不支持IPv6,请勿使用。](tag:dt,dt_test) :type ipv6_vip_port_id: list[str] @@ -422,7 +422,7 @@ def description(self, description): def admin_state_up(self): """Gets the admin_state_up of this ListLoadBalancersRequest. - 参数解释:负载均衡器的启用状态。 取值范围:布尔类型。 - true :启用。 - false:停用。 [不支持该字段,请勿使用。](tag:dt,dt_test) + 参数解释:负载均衡器的启用状态。 取值范围: - true :启用。 - false:停用。 [不支持该字段,请勿使用。](tag:dt,dt_test) :return: The admin_state_up of this ListLoadBalancersRequest. :rtype: bool @@ -433,7 +433,7 @@ def admin_state_up(self): def admin_state_up(self, admin_state_up): """Sets the admin_state_up of this ListLoadBalancersRequest. - 参数解释:负载均衡器的启用状态。 取值范围:布尔类型。 - true :启用。 - false:停用。 [不支持该字段,请勿使用。](tag:dt,dt_test) + 参数解释:负载均衡器的启用状态。 取值范围: - true :启用。 - false:停用。 [不支持该字段,请勿使用。](tag:dt,dt_test) :param admin_state_up: The admin_state_up of this ListLoadBalancersRequest. :type admin_state_up: bool @@ -576,7 +576,7 @@ def vip_address(self, vip_address): def vip_subnet_cidr_id(self): """Gets the vip_subnet_cidr_id of this ListLoadBalancersRequest. - 负载均衡器所在子网的IPv4子网ID,也称为该负载均衡器实例的前端子网。 支持多值查询,查询条件格式:*vip_subnet_cidr_id=xxx&vip_subnet_cidr_id=xxx*。 + 负载均衡器所在子网的IPv4子网ID,也称为该负载均衡器实例的前端子网。 支持多值查询,查询条件格式:*vip_subnet_cidr_id=xxx&vip_subnet_cidr_id=xxx*。 :return: The vip_subnet_cidr_id of this ListLoadBalancersRequest. :rtype: list[str] @@ -587,7 +587,7 @@ def vip_subnet_cidr_id(self): def vip_subnet_cidr_id(self, vip_subnet_cidr_id): """Sets the vip_subnet_cidr_id of this ListLoadBalancersRequest. - 负载均衡器所在子网的IPv4子网ID,也称为该负载均衡器实例的前端子网。 支持多值查询,查询条件格式:*vip_subnet_cidr_id=xxx&vip_subnet_cidr_id=xxx*。 + 负载均衡器所在子网的IPv4子网ID,也称为该负载均衡器实例的前端子网。 支持多值查询,查询条件格式:*vip_subnet_cidr_id=xxx&vip_subnet_cidr_id=xxx*。 :param vip_subnet_cidr_id: The vip_subnet_cidr_id of this ListLoadBalancersRequest. :type vip_subnet_cidr_id: list[str] diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_master_slave_pools_request.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_master_slave_pools_request.py index f88ae4b9ab..a12f9093e3 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_master_slave_pools_request.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_master_slave_pools_request.py @@ -81,7 +81,7 @@ def __init__(self, marker=None, limit=None, page_reverse=None, description=None, :type name: list[str] :param loadbalancer_id: 后端云服务器组绑定的负载均衡器ID。 支持多值查询,查询条件格式:*loadbalancer_id=xxx&loadbalancer_id=xxx*。 :type loadbalancer_id: list[str] - :param protocol: 后端云服务器组的后端协议。 取值:TCP、UDP、[IP、](tag:hws_eu)TLS、GRPC、HTTP、HTTPS和QUIC。 IP类型为网关型LB独有的后端服务器组协议。 支持多值查询,查询条件格式:*protocol=xxx&protocol=xxx*。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) + :param protocol: 后端云服务器组的后端协议。 取值:TCP、UDP、[IP、](tag:hws_eu)TLS、gRPC、HTTP、HTTPS和QUIC。 [IP类型为网关型LB独有的后端服务器组协议。](tag:hws_eu) 支持多值查询,查询条件格式:*protocol=xxx&protocol=xxx*。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) :type protocol: list[str] :param lb_algorithm: 后端云服务器组的负载均衡算法。 取值: 1、ROUND_ROBIN:加权轮询算法。 2、LEAST_CONNECTIONS:加权最少连接算法。 3、SOURCE_IP:源IP算法。 4、QUIC_CID:连接ID算法。 支持多值查询,查询条件格式:*lb_algorithm=xxx&lb_algorithm=xxx*。 [不支持QUIC_CID。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC_CID。](tag:dt,dt_test) :type lb_algorithm: list[str] @@ -347,7 +347,7 @@ def loadbalancer_id(self, loadbalancer_id): def protocol(self): """Gets the protocol of this ListMasterSlavePoolsRequest. - 后端云服务器组的后端协议。 取值:TCP、UDP、[IP、](tag:hws_eu)TLS、GRPC、HTTP、HTTPS和QUIC。 IP类型为网关型LB独有的后端服务器组协议。 支持多值查询,查询条件格式:*protocol=xxx&protocol=xxx*。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) + 后端云服务器组的后端协议。 取值:TCP、UDP、[IP、](tag:hws_eu)TLS、gRPC、HTTP、HTTPS和QUIC。 [IP类型为网关型LB独有的后端服务器组协议。](tag:hws_eu) 支持多值查询,查询条件格式:*protocol=xxx&protocol=xxx*。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) :return: The protocol of this ListMasterSlavePoolsRequest. :rtype: list[str] @@ -358,7 +358,7 @@ def protocol(self): def protocol(self, protocol): """Sets the protocol of this ListMasterSlavePoolsRequest. - 后端云服务器组的后端协议。 取值:TCP、UDP、[IP、](tag:hws_eu)TLS、GRPC、HTTP、HTTPS和QUIC。 IP类型为网关型LB独有的后端服务器组协议。 支持多值查询,查询条件格式:*protocol=xxx&protocol=xxx*。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) + 后端云服务器组的后端协议。 取值:TCP、UDP、[IP、](tag:hws_eu)TLS、gRPC、HTTP、HTTPS和QUIC。 [IP类型为网关型LB独有的后端服务器组协议。](tag:hws_eu) 支持多值查询,查询条件格式:*protocol=xxx&protocol=xxx*。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) :param protocol: The protocol of this ListMasterSlavePoolsRequest. :type protocol: list[str] diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_members_request.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_members_request.py index d10e0c011a..81ece57d5b 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_members_request.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_members_request.py @@ -59,7 +59,7 @@ def __init__(self, pool_id=None, marker=None, limit=None, page_reverse=None, nam The model defined in huaweicloud sdk - :param pool_id: 后端服务器组ID。 + :param pool_id: 参数解释:后端服务器组ID。 :type pool_id: str :param marker: 上一页最后一条记录的ID。 使用说明: - 必须与limit一起使用。 - 不指定时表示查询第一页。 - 该字段不允许为空或无效的ID。 :type marker: str @@ -149,7 +149,7 @@ def __init__(self, pool_id=None, marker=None, limit=None, page_reverse=None, nam def pool_id(self): """Gets the pool_id of this ListMembersRequest. - 后端服务器组ID。 + 参数解释:后端服务器组ID。 :return: The pool_id of this ListMembersRequest. :rtype: str @@ -160,7 +160,7 @@ def pool_id(self): def pool_id(self, pool_id): """Sets the pool_id of this ListMembersRequest. - 后端服务器组ID。 + 参数解释:后端服务器组ID。 :param pool_id: The pool_id of this ListMembersRequest. :type pool_id: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_pools_request.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_pools_request.py index 73392f9a60..78856f0e6e 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_pools_request.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/list_pools_request.py @@ -95,7 +95,7 @@ def __init__(self, marker=None, limit=None, page_reverse=None, description=None, :type name: list[str] :param loadbalancer_id: 后端云服务器组绑定的负载均衡器ID。 支持多值查询,查询条件格式:*loadbalancer_id=xxx&loadbalancer_id=xxx*。 :type loadbalancer_id: list[str] - :param protocol: 后端云服务器组的后端协议。 取值:TCP、UDP、[IP、](tag:hws_eu)TLS、HTTP、HTTPS、QUIC和GRPC。 支持多值查询,查询条件格式:*protocol=xxx&protocol=xxx*。 [不支持QUIC协议。](tag:hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) + :param protocol: 后端云服务器组的后端协议。 取值:TCP、UDP、[IP、](tag:hws_eu)TLS、HTTP、HTTPS、QUIC和gRPC。 支持多值查询,查询条件格式:*protocol=xxx&protocol=xxx*。 [不支持QUIC协议。](tag:hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) :type protocol: list[str] :param lb_algorithm: 后端云服务器组的负载均衡算法。 取值: - ROUND_ROBIN:加权轮询算法。 - LEAST_CONNECTIONS:加权最少连接算法。 - SOURCE_IP:源IP算法。 - QUIC_CID:连接ID算法。 [- 2_TUPLE_HASH:二元组hash算法,仅IP类型的pool支持。 - 3_TUPLE_HASH:三元组hash算法,仅IP类型的pool支持。 - 4_TUPLE_HASH:五元组hash算法,仅IP类型的pool支持。](tag:hws_eu) 支持多值查询,查询条件格式:*lb_algorithm=xxx&lb_algorithm=xxx*。 [不支持QUIC_CID。](tag:hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC_CID。](tag:dt,dt_test) :type lb_algorithm: list[str] @@ -411,7 +411,7 @@ def loadbalancer_id(self, loadbalancer_id): def protocol(self): """Gets the protocol of this ListPoolsRequest. - 后端云服务器组的后端协议。 取值:TCP、UDP、[IP、](tag:hws_eu)TLS、HTTP、HTTPS、QUIC和GRPC。 支持多值查询,查询条件格式:*protocol=xxx&protocol=xxx*。 [不支持QUIC协议。](tag:hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) + 后端云服务器组的后端协议。 取值:TCP、UDP、[IP、](tag:hws_eu)TLS、HTTP、HTTPS、QUIC和gRPC。 支持多值查询,查询条件格式:*protocol=xxx&protocol=xxx*。 [不支持QUIC协议。](tag:hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) :return: The protocol of this ListPoolsRequest. :rtype: list[str] @@ -422,7 +422,7 @@ def protocol(self): def protocol(self, protocol): """Sets the protocol of this ListPoolsRequest. - 后端云服务器组的后端协议。 取值:TCP、UDP、[IP、](tag:hws_eu)TLS、HTTP、HTTPS、QUIC和GRPC。 支持多值查询,查询条件格式:*protocol=xxx&protocol=xxx*。 [不支持QUIC协议。](tag:hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) + 后端云服务器组的后端协议。 取值:TCP、UDP、[IP、](tag:hws_eu)TLS、HTTP、HTTPS、QUIC和gRPC。 支持多值查询,查询条件格式:*protocol=xxx&protocol=xxx*。 [不支持QUIC协议。](tag:hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) :param protocol: The protocol of this ListPoolsRequest. :type protocol: list[str] diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/listener.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/listener.py index 6740b4f2c2..ed622a9f94 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/listener.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/listener.py @@ -97,75 +97,75 @@ def __init__(self, admin_state_up=None, client_ca_tls_container_ref=None, connec The model defined in huaweicloud sdk - :param admin_state_up: 监听器的管理状态。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt) + :param admin_state_up: 参数解释:监听器的管理状态。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt) :type admin_state_up: bool - :param client_ca_tls_container_ref: 监听器使用的CA证书ID。当且仅当type=client时,才会使用该字段对应的证书。 + :param client_ca_tls_container_ref: 参数解释:监听器使用的CA证书ID。 约束限制:当且仅当type=client时,才会使用该字段对应的证书。 :type client_ca_tls_container_ref: str - :param connection_limit: 监听器的最大连接数。 取值:-1表示不限制,默认为-1。 不支持该字段,请勿使用。 + :param connection_limit: 参数解释:监听器的最大连接数。 取值范围:-1表示不限制。 默认取值:-1。 不支持该字段,请勿使用。 :type connection_limit: int - :param created_at: 监听器的创建时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',如:2021-07-30T12:03:44Z + :param created_at: 参数解释:监听器的创建时间。 取值范围: 格式:yyyy-MM-dd'T'HH:mm:ss'Z',如:2021-07-30T12:03:44Z :type created_at: str - :param default_pool_id: 监听器的默认后端云服务器组ID。当请求没有匹配的转发策略时,转发到默认后端云服务器上处理。 + :param default_pool_id: 参数解释:监听器的默认后端云服务器组ID。当请求没有匹配的转发策略时,转发到默认后端云服务器上处理。 :type default_pool_id: str - :param default_tls_container_ref: 监听器使用的服务器证书ID。 + :param default_tls_container_ref: 参数解释:监听器使用的服务器证书ID。 :type default_tls_container_ref: str - :param description: 监听器的描述信息。 + :param description: 参数解释:监听器的描述信息。 :type description: str - :param http2_enable: 客户端与LB之间的HTTPS请求的HTTP2功能的开启状态。 开启后,可提升客户端与LB间的访问性能,但LB与后端服务器间仍采用HTTP1.X协议。 使用说明: - 仅HTTPS协议监听器有效。 - QUIC监听器不能设置该字段,固定返回为true。 - 其他协议的监听器可设置该字段但无效,无论取值如何都不影响监听器正常运行。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) + :param http2_enable: 参数解释:客户端与LB之间的HTTPS请求的HTTP2功能的开启状态。 开启后,可提升客户端与LB间的访问性能,但LB与后端服务器间仍采用HTTP1.X协议。 约束限制: - 仅HTTPS协议监听器有效。 - QUIC监听器不能设置该字段,固定返回为true。 - 其他协议的监听器可设置该字段但无效,无论取值如何都不影响监听器正常运行。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) :type http2_enable: bool - :param id: 监听器ID。 + :param id: 参数解释:监听器ID。 :type id: str :param insert_headers: :type insert_headers: :class:`huaweicloudsdkelb.v3.ListenerInsertHeaders` - :param loadbalancers: 监听器所属的负载均衡器的ID列表。一个监听器只支持关联到一个LB。 + :param loadbalancers: 参数解释:监听器所属的负载均衡器的ID列表。 约束限制:一个监听器只支持关联到一个LB。 :type loadbalancers: list[:class:`huaweicloudsdkelb.v3.LoadBalancerRef`] - :param name: 监听器的名称。 注意:若名称为空,则在控制台的监听器列表无法选择并查看监听器详情。 + :param name: 参数解释:监听器的名称。 约束限制:若名称为空,则在控制台的监听器列表无法选择并查看监听器详情。 :type name: str - :param project_id: 监听器所在的项目ID。 + :param project_id: 参数解释:监听器所在的项目ID。 :type project_id: str - :param protocol: 监听器的监听协议。 [取值:TCP、UDP、HTTP、HTTPS、TERMINATED_HTTPS、QUIC、TLS。 使用说明: - 共享型LB上的HTTPS监听器只支持设置为TERMINATED_HTTPS, 创建时传入HTTPS将会自动转为TERMINATED_HTTPS。 - 独享型LB上的HTTPS监听器只支持设置为HTTPS,创建时传入TERMINATED_HTTPS将会自动转为HTTPS。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [取值:TCP、UDP、IP、HTTP、HTTPS。IP为网关型LB上的监听器独有的协议。](tag:hws_eu,hcso_dt) [不支持QUIC。](tag:tm,dt,dt_test) + :param protocol: 参数解释:监听器的监听协议。 [取值范围:TCP、UDP、HTTP、HTTPS、TERMINATED_HTTPS、QUIC、TLS。 约束限制: - 共享型LB上的HTTPS监听器只支持设置为TERMINATED_HTTPS, 创建时传入HTTPS将会自动转为TERMINATED_HTTPS。 - 独享型LB上的HTTPS监听器只支持设置为HTTPS,创建时传入TERMINATED_HTTPS将会自动转为HTTPS。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [取值:TCP、UDP、HTTP、HTTPS。](tag:hcso_dt) [取值:TCP、UDP、IP、HTTP、HTTPS。IP为网关型LB上的监听器独有的协议。](tag:hws_eu) [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) :type protocol: str - :param protocol_port: 监听器的监听端口。QUIC监听器端口不能是4789,且不能和UDP监听器端口重复。传0时表示开启监听端口范围的能力,此时port_ranges为必填字段。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) + :param protocol_port: 参数解释:监听器的监听端口。 约束限制: - QUIC监听器端口不能是4789,且不能和UDP监听器端口重复。 - 传0表示开启监听端口范围的能力,此时port_ranges为必填字段。 [-不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) :type protocol_port: int - :param sni_container_refs: 监听器使用的SNI证书(带域名的服务器证书)ID列表。 使用说明: - 列表对应的所有SNI证书的域名不允许存在重复。 - 列表对应的所有SNI证书的域名总数不超过50。 + :param sni_container_refs: 参数解释:监听器使用的SNI证书(带域名的服务器证书)ID列表。 约束限制: - 列表对应的所有SNI证书的域名不允许存在重复。 - 列表对应的所有SNI证书的域名总数不超过50。 :type sni_container_refs: list[str] - :param sni_match_algo: 监听器使用的SNI证书泛域名匹配方式。 longest_suffix表示最长尾缀匹配,wildcard表示标准域名分级匹配。 默认为wildcard。 + :param sni_match_algo: 参数解释:监听器使用的SNI证书泛域名匹配方式。 取值范围:longest_suffix表示最长尾缀匹配;wildcard表示标准域名分级匹配。 默认取值:wildcard :type sni_match_algo: str - :param tags: 标签列表。 + :param tags: 参数解释:标签列表。 :type tags: list[:class:`huaweicloudsdkelb.v3.Tag`] - :param updated_at: 监听器的更新时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',如:2021-07-30T12:03:44Z + :param updated_at: 参数解释:监听器的更新时间。 取值范围: 格式:yyyy-MM-dd'T'HH:mm:ss'Z',如:2021-07-30T12:03:44Z :type updated_at: str - :param tls_ciphers_policy: 监听器使用的安全策略。 [取值:tls-1-0-inherit、tls-1-0、tls-1-1、 tls-1-2、tls-1-2-strict、tls-1-2-fs、tls-1-0-with-1-3、 tls-1-2-fs-with-1-3、 hybrid-policy-1-0、tls-1-2-strict-no-cbc,默认:tls-1-0。 ](tag:hws,hws_hk,ocb,tlf,ctc,hcso,sbc,tm,cmcc,dt) [取值:tls-1-0、tls-1-1、tls-1-2、 tls-1-2-strict,默认:tls-1-0。](tag:hws_eu,g42,hk_g42,hcso_dt) [使用说明: - 仅对HTTPS协议类型的监听器且关联LB为独享型时有效。 - QUIC监听器不支持该字段。 - 若同时设置了security_policy_id和tls_ciphers_policy,则仅security_policy_id生效。 - 加密套件的优先顺序为ecc套件、rsa套件、tls1.3协议的套件(即支持ecc又支持rsa) ](tag:hws,hws_hk,hws_eu,ocb,tlf,ctc,hcso,sbc,g42,tm,cmcc,hk-g42,dt) [使用说明: - 仅对HTTPS协议类型的监听器有效](tag:hcso_dt) [不支持tls1.3协议的套件。](tag:tm,hws_eu,g42,hk_g42) [不支持QUIC。](tag:tm,dt,dt_test) + :param tls_ciphers_policy: 参数解释:监听器使用的安全策略。 [取值范围:tls-1-0-inherit、tls-1-0、tls-1-1、 tls-1-2、tls-1-2-strict、tls-1-2-fs、tls-1-0-with-1-3、 tls-1-2-fs-with-1-3、 hybrid-policy-1-0、tls-1-2-strict-no-cbc,默认:tls-1-0。 ](tag:hws,hws_hk,ocb,tlf,ctc,hcso,sbc,tm,cmcc,dt) [取值范围:tls-1-0、tls-1-1、tls-1-2、 tls-1-2-strict,默认:tls-1-0。](tag:hws_eu,g42,hk_g42,hcso_dt) [约束限制: - 仅对HTTPS协议类型的监听器且关联LB为独享型时有效。 - QUIC监听器不支持该字段。 - 若同时设置了security_policy_id和tls_ciphers_policy,则仅security_policy_id生效。 - 加密套件的优先顺序为ecc套件、rsa套件、tls1.3协议的套件(即支持ecc又支持rsa) ](tag:hws,hws_hk,hws_eu,ocb,tlf,ctc,hcso,sbc,g42,tm,cmcc,hk-g42,dt) [约束限制: - 仅对HTTPS协议类型的监听器有效](tag:hcso_dt) [不支持tls1.3协议的套件。](tag:tm,hws_eu,g42,hk_g42) [不支持QUIC。](tag:tm,dt,dt_test) :type tls_ciphers_policy: str - :param security_policy_id: 自定义安全策略的ID。 [使用说明: - 仅对HTTPS协议类型的监听器且关联LB为独享型时有效。 - 若同时设置了security_policy_id和tls_ciphers_policy,则仅security_policy_id生效。 - 加密套件的优先顺序为ecc套件、rsa套件、tls1.3协议的套件(即支持ecc又支持rsa) ](tag:hws,hws_hk,hws_eu,ocb,ctc,hcso,g42,tm,cmcc,hk-g42,dt) [使用说明: - 仅对HTTPS协议类型的监听器有效](tag:hcso_dt) [不支持tls1.3协议的套件。](tag:tm,hws_eu,g42,hk_g42) + :param security_policy_id: 参数解释:自定义安全策略的ID。 [约束限制: - 仅对HTTPS协议类型的监听器且关联LB为独享型时有效。 - 若同时设置了security_policy_id和tls_ciphers_policy,则仅security_policy_id生效。 - 加密套件的优先顺序为ecc套件、rsa套件、tls1.3协议的套件(即支持ecc又支持rsa) ](tag:hws,hws_hk,hws_eu,ocb,ctc,hcso,g42,tm,cmcc,hk-g42,dt) [约束限制: - 仅对HTTPS协议类型的监听器有效](tag:hcso_dt) [不支持tls1.3协议的套件。](tag:tm,hws_eu,g42,hk_g42) :type security_policy_id: str - :param enable_member_retry: 是否开启后端服务器的重试。 取值:true 开启重试,false 不开启重试。默认:true。 [使用说明: - 若关联是共享型LB,仅在protocol为HTTP、TERMINATED_HTTPS时才能传入该字段。 - 若关联是独享型LB,仅在protocol为HTTP、HTTPS和QUIC时才能传入该字段。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [使用说明: - 仅在protocol为HTTP、HTTPS时才能传入该字段。](tag:hws_eu,hcso_dt) [不支持QUIC。](tag:tm,dt,dt_test) + :param enable_member_retry: 参数解释:是否开启后端服务器的重试。 [约束限制: - 若关联是共享型LB,仅在protocol为HTTP、TERMINATED_HTTPS时才能传入该字段。 - 若关联是独享型LB,仅在protocol为HTTP、HTTPS和QUIC时才能传入该字段。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [约束限制: - 仅在protocol为HTTP、HTTPS时才能传入该字段。](tag:hws_eu,hcso_dt) 取值范围:true 开启重试,false 不开启重试。 默认取值:true。 [不支持QUIC。](tag:tm,dt,dt_test) :type enable_member_retry: bool - :param keepalive_timeout: 客户端连接空闲超时时间。在超过keepalive_timeout时长一直没有请求, 负载均衡会暂时中断当前连接,直到下一次请求时重新建立新的连接。 取值: - TCP监听器[和IP监听器](tag:hws_eu):10-4000s,默认值为300s。 - 若为HTTP/HTTPS/TERMINATED_HTTPS监听器,取值范围为(0-4000s)默认值为60s。 共享型实例的UDP监听器不支持此字段。 + :param keepalive_timeout: 参数解释:客户端连接空闲超时时间。在超过keepalive_timeout时长一直没有请求, 负载均衡会暂时中断当前连接,直到下一次请求时重新建立新的连接。 约束限制:共享型实例的UDP监听器不支持此字段。 取值范围: - TCP监听器[和IP监听器](tag:hws_eu):10-4000s,默认值为300s。 - 若为HTTP/HTTPS/TERMINATED_HTTPS监听器,取值范围为(0-4000s)默认值为60s。 :type keepalive_timeout: int - :param client_timeout: 等待客户端请求超时时间,包括两种情况: - 读取整个客户端请求头的超时时长:如果客户端未在超时时长内发送完整个请求头,则请求将被中断 - 两个连续body体的数据包到达LB的时间间隔,超出client_timeout将会断开连接。 取值范围为1-300s,默认值为60s。 使用说明:仅协议为HTTP/HTTPS的监听器支持该字段。 + :param client_timeout: 参数解释:等待客户端请求超时时间,包括两种情况: - 读取整个客户端请求头的超时时长:如果客户端未在超时时长内发送完整个请求头,则请求将被中断 - 两个连续body体的数据包到达LB的时间间隔,超出client_timeout将会断开连接。 约束限制:仅协议为HTTP/HTTPS的监听器支持该字段。 取值范围:1-3600s 默认取值:60s。 :type client_timeout: int - :param member_timeout: 等待后端服务器响应超时时间。请求转发后端服务器后,在等待超时member_timeout时长没有响应,负载均衡将终止等待,并返回 HTTP504错误码。 取值:1-300s,默认为60s。 使用说明:仅支持协议为HTTP/HTTPS的监听器。 + :param member_timeout: 参数解释:等待后端服务器响应超时时间。请求转发后端服务器后,在等待超时member_timeout时长没有响应,负载均衡将终止等待,并返回HTTP504错误码。 约束限制:仅支持协议为HTTP/HTTPS的监听器。 取值范围:1-3600s 默认取值:60s。 :type member_timeout: int :param ipgroup: :type ipgroup: :class:`huaweicloudsdkelb.v3.ListenerIpGroup` - :param transparent_client_ip_enable: 是否透传客户端IP地址。开启后客户端IP地址将透传到后端服务器。 [仅作用于共享型LB的TCP/UDP监听器。 取值: - 共享型LB的TCP/UDP监听器可设置为true或false,不传默认为false。 - 共享型LB的HTTP/HTTPS监听器只支持设置为true,不传默认为true。 - 独享型负载均衡器所有协议的监听器只支持设置为true,不传默认为true。 使用说明: - 开启特性后,ELB和后端服务器之间直接使用真实的IP访问,需要确保已正确设置服务器的安全组以及访问控制策略。 - 开启特性后,不支持同一台服务器既作为后端服务器又作为客户端的场景。 - 开启特性后,不支持变更后端服务器规格。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [只设支持置为true,不传默认为true。](tag:hws_eu,hcso_dt) + :param transparent_client_ip_enable: 参数解释:是否透传客户端IP地址。开启后客户端IP地址将透传到后端服务器。 [仅作用于共享型LB的TCP/UDP监听器。 约束限制: - 开启特性后,ELB和后端服务器之间直接使用真实的IP访问,需要确保已正确设置服务器的安全组以及访问控制策略。 - 开启特性后,不支持同一台服务器既作为后端服务器又作为客户端的场景。 - 开启特性后,不支持变更后端服务器规格。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) 取值范围: - 共享型LB的TCP/UDP监听器可设置为true或false,不传默认为false。 - 共享型LB的HTTP/HTTPS监听器只支持设置为true,不传默认为true。 - 独享型负载均衡器所有协议的监听器只支持设置为true,不传默认为true。 [只设支持置为true,不传默认为true。](tag:hws_eu,hcso_dt) :type transparent_client_ip_enable: bool - :param proxy_protocol_enable: 是否开启proxy_protocol。仅TLS监听器可指定,其他协议的监听器该字段不生效,proxy_protocol不开启。 + :param proxy_protocol_enable: 参数解释:是否开启proxy_protocol。仅TLS监听器可指定,其他协议的监听器该字段不生效,proxy_protocol不开启。 :type proxy_protocol_enable: bool - :param enhance_l7policy_enable: 是否开启高级转发策略功能。开启高级转发策略后,支持更灵活的转发策略和转发规则设置。 取值:true开启,false不开启,默认false。 开启后支持如下场景: - 转发策略的action字段支持指定为REDIRECT_TO_URL, FIXED_RESPONSE,即支持URL重定向和响应固定的内容给客户端。 - 转发策略支持指定priority、redirect_url_config、fixed_response_config字段。 - 转发规则rule的type可以指定METHOD, HEADER, QUERY_STRING, SOURCE_IP这几种取值。 - 转发规则rule的type为HOST_NAME时,转发规则rule的value支持通配符*。 - 转发规则支持指定conditions字段。 [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) + :param enhance_l7policy_enable: 参数解释:是否开启高级转发策略功能。开启高级转发策略后,支持更灵活的转发策略和转发规则设置。 开启后支持如下场景: - 转发策略的action字段支持指定为REDIRECT_TO_URL, FIXED_RESPONSE,即支持URL重定向和响应固定的内容给客户端。 - 转发策略支持指定priority、redirect_url_config、fixed_response_config字段。 - 转发规则rule的type可以指定METHOD, HEADER, QUERY_STRING, SOURCE_IP这几种取值。 - 转发规则rule的type为HOST_NAME时,转发规则rule的value支持通配符*。 - 转发规则支持指定conditions字段。 取值范围:true开启,false不开启。 默认取值:false。 [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) :type enhance_l7policy_enable: bool :param quic_config: :type quic_config: :class:`huaweicloudsdkelb.v3.ListenerQuicConfig` - :param protection_status: 修改保护状态, 取值: - nonProtection: 不保护,默认值为nonProtection - consoleProtection: 控制台修改保护 + :param protection_status: 参数解释:修改保护状态, 取值范围: - nonProtection: 不保护,默认值为nonProtection - consoleProtection: 控制台修改保护 :type protection_status: str - :param protection_reason: 设置保护的原因 >仅当protection_status为consoleProtection时有效。 + :param protection_reason: 参数解释:设置保护的原因。 约束限制: 仅当protection_status为consoleProtection时有效。 :type protection_reason: str - :param gzip_enable: ELB是否开启gzip压缩,缺省值:false,非必选 [仅HTTP/HTTPS类型监听器支持配置。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) [仅HTTP/HTTPS/QUIC类型监听器支持配置。](tag:hws,hws_hk,hws_test,hcs,hcs_sm,hcso,hk_vdf,fcs,fcs_vm,mix,ocb,ctc,cmcc,sbc,hws_ocb,hk_sbc) + :param gzip_enable: 参数解释:ELB是否开启gzip压缩。 [约束限制:仅HTTP/HTTPS类型监听器支持配置。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) [约束限制:仅HTTP/HTTPS/QUIC类型监听器支持配置。](tag:hws,hws_hk,hws_test,hcs,hcs_sm,hcso,hk_vdf,fcs,fcs_vm,mix,ocb,ctc,cmcc,sbc,hws_ocb,hk_sbc) 默认取值:false :type gzip_enable: bool - :param port_ranges: 端口监听范围(闭区间),最多指定10个端口组,每个组范围不可有重叠部分 >仅当protocol_port为0时可以传入。 + :param port_ranges: 参数解释:端口监听范围(闭区间)。 约束限制: - 最多指定10个端口组,每个组范围不可有重叠部分 - 仅当protocol_port为0时可以传入。 :type port_ranges: list[:class:`huaweicloudsdkelb.v3.PortRange`] - :param ssl_early_data_enable: 监听器0-RTT能力开关,缺省值:false,非必选 仅HTTPS类型监听器支持配置,需要依赖TLSv1.3安全策略协议。 + :param ssl_early_data_enable: 参数解释:监听器0-RTT能力开关 约束限制:仅HTTPS类型监听器支持配置,需要依赖TLSv1.3安全策略协议。 默认取值:false。 :type ssl_early_data_enable: bool """ @@ -255,7 +255,7 @@ def __init__(self, admin_state_up=None, client_ca_tls_container_ref=None, connec def admin_state_up(self): """Gets the admin_state_up of this Listener. - 监听器的管理状态。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt) + 参数解释:监听器的管理状态。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt) :return: The admin_state_up of this Listener. :rtype: bool @@ -266,7 +266,7 @@ def admin_state_up(self): def admin_state_up(self, admin_state_up): """Sets the admin_state_up of this Listener. - 监听器的管理状态。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt) + 参数解释:监听器的管理状态。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt) :param admin_state_up: The admin_state_up of this Listener. :type admin_state_up: bool @@ -277,7 +277,7 @@ def admin_state_up(self, admin_state_up): def client_ca_tls_container_ref(self): """Gets the client_ca_tls_container_ref of this Listener. - 监听器使用的CA证书ID。当且仅当type=client时,才会使用该字段对应的证书。 + 参数解释:监听器使用的CA证书ID。 约束限制:当且仅当type=client时,才会使用该字段对应的证书。 :return: The client_ca_tls_container_ref of this Listener. :rtype: str @@ -288,7 +288,7 @@ def client_ca_tls_container_ref(self): def client_ca_tls_container_ref(self, client_ca_tls_container_ref): """Sets the client_ca_tls_container_ref of this Listener. - 监听器使用的CA证书ID。当且仅当type=client时,才会使用该字段对应的证书。 + 参数解释:监听器使用的CA证书ID。 约束限制:当且仅当type=client时,才会使用该字段对应的证书。 :param client_ca_tls_container_ref: The client_ca_tls_container_ref of this Listener. :type client_ca_tls_container_ref: str @@ -299,7 +299,7 @@ def client_ca_tls_container_ref(self, client_ca_tls_container_ref): def connection_limit(self): """Gets the connection_limit of this Listener. - 监听器的最大连接数。 取值:-1表示不限制,默认为-1。 不支持该字段,请勿使用。 + 参数解释:监听器的最大连接数。 取值范围:-1表示不限制。 默认取值:-1。 不支持该字段,请勿使用。 :return: The connection_limit of this Listener. :rtype: int @@ -310,7 +310,7 @@ def connection_limit(self): def connection_limit(self, connection_limit): """Sets the connection_limit of this Listener. - 监听器的最大连接数。 取值:-1表示不限制,默认为-1。 不支持该字段,请勿使用。 + 参数解释:监听器的最大连接数。 取值范围:-1表示不限制。 默认取值:-1。 不支持该字段,请勿使用。 :param connection_limit: The connection_limit of this Listener. :type connection_limit: int @@ -321,7 +321,7 @@ def connection_limit(self, connection_limit): def created_at(self): """Gets the created_at of this Listener. - 监听器的创建时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',如:2021-07-30T12:03:44Z + 参数解释:监听器的创建时间。 取值范围: 格式:yyyy-MM-dd'T'HH:mm:ss'Z',如:2021-07-30T12:03:44Z :return: The created_at of this Listener. :rtype: str @@ -332,7 +332,7 @@ def created_at(self): def created_at(self, created_at): """Sets the created_at of this Listener. - 监听器的创建时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',如:2021-07-30T12:03:44Z + 参数解释:监听器的创建时间。 取值范围: 格式:yyyy-MM-dd'T'HH:mm:ss'Z',如:2021-07-30T12:03:44Z :param created_at: The created_at of this Listener. :type created_at: str @@ -343,7 +343,7 @@ def created_at(self, created_at): def default_pool_id(self): """Gets the default_pool_id of this Listener. - 监听器的默认后端云服务器组ID。当请求没有匹配的转发策略时,转发到默认后端云服务器上处理。 + 参数解释:监听器的默认后端云服务器组ID。当请求没有匹配的转发策略时,转发到默认后端云服务器上处理。 :return: The default_pool_id of this Listener. :rtype: str @@ -354,7 +354,7 @@ def default_pool_id(self): def default_pool_id(self, default_pool_id): """Sets the default_pool_id of this Listener. - 监听器的默认后端云服务器组ID。当请求没有匹配的转发策略时,转发到默认后端云服务器上处理。 + 参数解释:监听器的默认后端云服务器组ID。当请求没有匹配的转发策略时,转发到默认后端云服务器上处理。 :param default_pool_id: The default_pool_id of this Listener. :type default_pool_id: str @@ -365,7 +365,7 @@ def default_pool_id(self, default_pool_id): def default_tls_container_ref(self): """Gets the default_tls_container_ref of this Listener. - 监听器使用的服务器证书ID。 + 参数解释:监听器使用的服务器证书ID。 :return: The default_tls_container_ref of this Listener. :rtype: str @@ -376,7 +376,7 @@ def default_tls_container_ref(self): def default_tls_container_ref(self, default_tls_container_ref): """Sets the default_tls_container_ref of this Listener. - 监听器使用的服务器证书ID。 + 参数解释:监听器使用的服务器证书ID。 :param default_tls_container_ref: The default_tls_container_ref of this Listener. :type default_tls_container_ref: str @@ -387,7 +387,7 @@ def default_tls_container_ref(self, default_tls_container_ref): def description(self): """Gets the description of this Listener. - 监听器的描述信息。 + 参数解释:监听器的描述信息。 :return: The description of this Listener. :rtype: str @@ -398,7 +398,7 @@ def description(self): def description(self, description): """Sets the description of this Listener. - 监听器的描述信息。 + 参数解释:监听器的描述信息。 :param description: The description of this Listener. :type description: str @@ -409,7 +409,7 @@ def description(self, description): def http2_enable(self): """Gets the http2_enable of this Listener. - 客户端与LB之间的HTTPS请求的HTTP2功能的开启状态。 开启后,可提升客户端与LB间的访问性能,但LB与后端服务器间仍采用HTTP1.X协议。 使用说明: - 仅HTTPS协议监听器有效。 - QUIC监听器不能设置该字段,固定返回为true。 - 其他协议的监听器可设置该字段但无效,无论取值如何都不影响监听器正常运行。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) + 参数解释:客户端与LB之间的HTTPS请求的HTTP2功能的开启状态。 开启后,可提升客户端与LB间的访问性能,但LB与后端服务器间仍采用HTTP1.X协议。 约束限制: - 仅HTTPS协议监听器有效。 - QUIC监听器不能设置该字段,固定返回为true。 - 其他协议的监听器可设置该字段但无效,无论取值如何都不影响监听器正常运行。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) :return: The http2_enable of this Listener. :rtype: bool @@ -420,7 +420,7 @@ def http2_enable(self): def http2_enable(self, http2_enable): """Sets the http2_enable of this Listener. - 客户端与LB之间的HTTPS请求的HTTP2功能的开启状态。 开启后,可提升客户端与LB间的访问性能,但LB与后端服务器间仍采用HTTP1.X协议。 使用说明: - 仅HTTPS协议监听器有效。 - QUIC监听器不能设置该字段,固定返回为true。 - 其他协议的监听器可设置该字段但无效,无论取值如何都不影响监听器正常运行。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) + 参数解释:客户端与LB之间的HTTPS请求的HTTP2功能的开启状态。 开启后,可提升客户端与LB间的访问性能,但LB与后端服务器间仍采用HTTP1.X协议。 约束限制: - 仅HTTPS协议监听器有效。 - QUIC监听器不能设置该字段,固定返回为true。 - 其他协议的监听器可设置该字段但无效,无论取值如何都不影响监听器正常运行。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) :param http2_enable: The http2_enable of this Listener. :type http2_enable: bool @@ -431,7 +431,7 @@ def http2_enable(self, http2_enable): def id(self): """Gets the id of this Listener. - 监听器ID。 + 参数解释:监听器ID。 :return: The id of this Listener. :rtype: str @@ -442,7 +442,7 @@ def id(self): def id(self, id): """Sets the id of this Listener. - 监听器ID。 + 参数解释:监听器ID。 :param id: The id of this Listener. :type id: str @@ -471,7 +471,7 @@ def insert_headers(self, insert_headers): def loadbalancers(self): """Gets the loadbalancers of this Listener. - 监听器所属的负载均衡器的ID列表。一个监听器只支持关联到一个LB。 + 参数解释:监听器所属的负载均衡器的ID列表。 约束限制:一个监听器只支持关联到一个LB。 :return: The loadbalancers of this Listener. :rtype: list[:class:`huaweicloudsdkelb.v3.LoadBalancerRef`] @@ -482,7 +482,7 @@ def loadbalancers(self): def loadbalancers(self, loadbalancers): """Sets the loadbalancers of this Listener. - 监听器所属的负载均衡器的ID列表。一个监听器只支持关联到一个LB。 + 参数解释:监听器所属的负载均衡器的ID列表。 约束限制:一个监听器只支持关联到一个LB。 :param loadbalancers: The loadbalancers of this Listener. :type loadbalancers: list[:class:`huaweicloudsdkelb.v3.LoadBalancerRef`] @@ -493,7 +493,7 @@ def loadbalancers(self, loadbalancers): def name(self): """Gets the name of this Listener. - 监听器的名称。 注意:若名称为空,则在控制台的监听器列表无法选择并查看监听器详情。 + 参数解释:监听器的名称。 约束限制:若名称为空,则在控制台的监听器列表无法选择并查看监听器详情。 :return: The name of this Listener. :rtype: str @@ -504,7 +504,7 @@ def name(self): def name(self, name): """Sets the name of this Listener. - 监听器的名称。 注意:若名称为空,则在控制台的监听器列表无法选择并查看监听器详情。 + 参数解释:监听器的名称。 约束限制:若名称为空,则在控制台的监听器列表无法选择并查看监听器详情。 :param name: The name of this Listener. :type name: str @@ -515,7 +515,7 @@ def name(self, name): def project_id(self): """Gets the project_id of this Listener. - 监听器所在的项目ID。 + 参数解释:监听器所在的项目ID。 :return: The project_id of this Listener. :rtype: str @@ -526,7 +526,7 @@ def project_id(self): def project_id(self, project_id): """Sets the project_id of this Listener. - 监听器所在的项目ID。 + 参数解释:监听器所在的项目ID。 :param project_id: The project_id of this Listener. :type project_id: str @@ -537,7 +537,7 @@ def project_id(self, project_id): def protocol(self): """Gets the protocol of this Listener. - 监听器的监听协议。 [取值:TCP、UDP、HTTP、HTTPS、TERMINATED_HTTPS、QUIC、TLS。 使用说明: - 共享型LB上的HTTPS监听器只支持设置为TERMINATED_HTTPS, 创建时传入HTTPS将会自动转为TERMINATED_HTTPS。 - 独享型LB上的HTTPS监听器只支持设置为HTTPS,创建时传入TERMINATED_HTTPS将会自动转为HTTPS。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [取值:TCP、UDP、IP、HTTP、HTTPS。IP为网关型LB上的监听器独有的协议。](tag:hws_eu,hcso_dt) [不支持QUIC。](tag:tm,dt,dt_test) + 参数解释:监听器的监听协议。 [取值范围:TCP、UDP、HTTP、HTTPS、TERMINATED_HTTPS、QUIC、TLS。 约束限制: - 共享型LB上的HTTPS监听器只支持设置为TERMINATED_HTTPS, 创建时传入HTTPS将会自动转为TERMINATED_HTTPS。 - 独享型LB上的HTTPS监听器只支持设置为HTTPS,创建时传入TERMINATED_HTTPS将会自动转为HTTPS。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [取值:TCP、UDP、HTTP、HTTPS。](tag:hcso_dt) [取值:TCP、UDP、IP、HTTP、HTTPS。IP为网关型LB上的监听器独有的协议。](tag:hws_eu) [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) :return: The protocol of this Listener. :rtype: str @@ -548,7 +548,7 @@ def protocol(self): def protocol(self, protocol): """Sets the protocol of this Listener. - 监听器的监听协议。 [取值:TCP、UDP、HTTP、HTTPS、TERMINATED_HTTPS、QUIC、TLS。 使用说明: - 共享型LB上的HTTPS监听器只支持设置为TERMINATED_HTTPS, 创建时传入HTTPS将会自动转为TERMINATED_HTTPS。 - 独享型LB上的HTTPS监听器只支持设置为HTTPS,创建时传入TERMINATED_HTTPS将会自动转为HTTPS。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [取值:TCP、UDP、IP、HTTP、HTTPS。IP为网关型LB上的监听器独有的协议。](tag:hws_eu,hcso_dt) [不支持QUIC。](tag:tm,dt,dt_test) + 参数解释:监听器的监听协议。 [取值范围:TCP、UDP、HTTP、HTTPS、TERMINATED_HTTPS、QUIC、TLS。 约束限制: - 共享型LB上的HTTPS监听器只支持设置为TERMINATED_HTTPS, 创建时传入HTTPS将会自动转为TERMINATED_HTTPS。 - 独享型LB上的HTTPS监听器只支持设置为HTTPS,创建时传入TERMINATED_HTTPS将会自动转为HTTPS。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [取值:TCP、UDP、HTTP、HTTPS。](tag:hcso_dt) [取值:TCP、UDP、IP、HTTP、HTTPS。IP为网关型LB上的监听器独有的协议。](tag:hws_eu) [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) :param protocol: The protocol of this Listener. :type protocol: str @@ -559,7 +559,7 @@ def protocol(self, protocol): def protocol_port(self): """Gets the protocol_port of this Listener. - 监听器的监听端口。QUIC监听器端口不能是4789,且不能和UDP监听器端口重复。传0时表示开启监听端口范围的能力,此时port_ranges为必填字段。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) + 参数解释:监听器的监听端口。 约束限制: - QUIC监听器端口不能是4789,且不能和UDP监听器端口重复。 - 传0表示开启监听端口范围的能力,此时port_ranges为必填字段。 [-不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) :return: The protocol_port of this Listener. :rtype: int @@ -570,7 +570,7 @@ def protocol_port(self): def protocol_port(self, protocol_port): """Sets the protocol_port of this Listener. - 监听器的监听端口。QUIC监听器端口不能是4789,且不能和UDP监听器端口重复。传0时表示开启监听端口范围的能力,此时port_ranges为必填字段。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) + 参数解释:监听器的监听端口。 约束限制: - QUIC监听器端口不能是4789,且不能和UDP监听器端口重复。 - 传0表示开启监听端口范围的能力,此时port_ranges为必填字段。 [-不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) :param protocol_port: The protocol_port of this Listener. :type protocol_port: int @@ -581,7 +581,7 @@ def protocol_port(self, protocol_port): def sni_container_refs(self): """Gets the sni_container_refs of this Listener. - 监听器使用的SNI证书(带域名的服务器证书)ID列表。 使用说明: - 列表对应的所有SNI证书的域名不允许存在重复。 - 列表对应的所有SNI证书的域名总数不超过50。 + 参数解释:监听器使用的SNI证书(带域名的服务器证书)ID列表。 约束限制: - 列表对应的所有SNI证书的域名不允许存在重复。 - 列表对应的所有SNI证书的域名总数不超过50。 :return: The sni_container_refs of this Listener. :rtype: list[str] @@ -592,7 +592,7 @@ def sni_container_refs(self): def sni_container_refs(self, sni_container_refs): """Sets the sni_container_refs of this Listener. - 监听器使用的SNI证书(带域名的服务器证书)ID列表。 使用说明: - 列表对应的所有SNI证书的域名不允许存在重复。 - 列表对应的所有SNI证书的域名总数不超过50。 + 参数解释:监听器使用的SNI证书(带域名的服务器证书)ID列表。 约束限制: - 列表对应的所有SNI证书的域名不允许存在重复。 - 列表对应的所有SNI证书的域名总数不超过50。 :param sni_container_refs: The sni_container_refs of this Listener. :type sni_container_refs: list[str] @@ -603,7 +603,7 @@ def sni_container_refs(self, sni_container_refs): def sni_match_algo(self): """Gets the sni_match_algo of this Listener. - 监听器使用的SNI证书泛域名匹配方式。 longest_suffix表示最长尾缀匹配,wildcard表示标准域名分级匹配。 默认为wildcard。 + 参数解释:监听器使用的SNI证书泛域名匹配方式。 取值范围:longest_suffix表示最长尾缀匹配;wildcard表示标准域名分级匹配。 默认取值:wildcard :return: The sni_match_algo of this Listener. :rtype: str @@ -614,7 +614,7 @@ def sni_match_algo(self): def sni_match_algo(self, sni_match_algo): """Sets the sni_match_algo of this Listener. - 监听器使用的SNI证书泛域名匹配方式。 longest_suffix表示最长尾缀匹配,wildcard表示标准域名分级匹配。 默认为wildcard。 + 参数解释:监听器使用的SNI证书泛域名匹配方式。 取值范围:longest_suffix表示最长尾缀匹配;wildcard表示标准域名分级匹配。 默认取值:wildcard :param sni_match_algo: The sni_match_algo of this Listener. :type sni_match_algo: str @@ -625,7 +625,7 @@ def sni_match_algo(self, sni_match_algo): def tags(self): """Gets the tags of this Listener. - 标签列表。 + 参数解释:标签列表。 :return: The tags of this Listener. :rtype: list[:class:`huaweicloudsdkelb.v3.Tag`] @@ -636,7 +636,7 @@ def tags(self): def tags(self, tags): """Sets the tags of this Listener. - 标签列表。 + 参数解释:标签列表。 :param tags: The tags of this Listener. :type tags: list[:class:`huaweicloudsdkelb.v3.Tag`] @@ -647,7 +647,7 @@ def tags(self, tags): def updated_at(self): """Gets the updated_at of this Listener. - 监听器的更新时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',如:2021-07-30T12:03:44Z + 参数解释:监听器的更新时间。 取值范围: 格式:yyyy-MM-dd'T'HH:mm:ss'Z',如:2021-07-30T12:03:44Z :return: The updated_at of this Listener. :rtype: str @@ -658,7 +658,7 @@ def updated_at(self): def updated_at(self, updated_at): """Sets the updated_at of this Listener. - 监听器的更新时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',如:2021-07-30T12:03:44Z + 参数解释:监听器的更新时间。 取值范围: 格式:yyyy-MM-dd'T'HH:mm:ss'Z',如:2021-07-30T12:03:44Z :param updated_at: The updated_at of this Listener. :type updated_at: str @@ -669,7 +669,7 @@ def updated_at(self, updated_at): def tls_ciphers_policy(self): """Gets the tls_ciphers_policy of this Listener. - 监听器使用的安全策略。 [取值:tls-1-0-inherit、tls-1-0、tls-1-1、 tls-1-2、tls-1-2-strict、tls-1-2-fs、tls-1-0-with-1-3、 tls-1-2-fs-with-1-3、 hybrid-policy-1-0、tls-1-2-strict-no-cbc,默认:tls-1-0。 ](tag:hws,hws_hk,ocb,tlf,ctc,hcso,sbc,tm,cmcc,dt) [取值:tls-1-0、tls-1-1、tls-1-2、 tls-1-2-strict,默认:tls-1-0。](tag:hws_eu,g42,hk_g42,hcso_dt) [使用说明: - 仅对HTTPS协议类型的监听器且关联LB为独享型时有效。 - QUIC监听器不支持该字段。 - 若同时设置了security_policy_id和tls_ciphers_policy,则仅security_policy_id生效。 - 加密套件的优先顺序为ecc套件、rsa套件、tls1.3协议的套件(即支持ecc又支持rsa) ](tag:hws,hws_hk,hws_eu,ocb,tlf,ctc,hcso,sbc,g42,tm,cmcc,hk-g42,dt) [使用说明: - 仅对HTTPS协议类型的监听器有效](tag:hcso_dt) [不支持tls1.3协议的套件。](tag:tm,hws_eu,g42,hk_g42) [不支持QUIC。](tag:tm,dt,dt_test) + 参数解释:监听器使用的安全策略。 [取值范围:tls-1-0-inherit、tls-1-0、tls-1-1、 tls-1-2、tls-1-2-strict、tls-1-2-fs、tls-1-0-with-1-3、 tls-1-2-fs-with-1-3、 hybrid-policy-1-0、tls-1-2-strict-no-cbc,默认:tls-1-0。 ](tag:hws,hws_hk,ocb,tlf,ctc,hcso,sbc,tm,cmcc,dt) [取值范围:tls-1-0、tls-1-1、tls-1-2、 tls-1-2-strict,默认:tls-1-0。](tag:hws_eu,g42,hk_g42,hcso_dt) [约束限制: - 仅对HTTPS协议类型的监听器且关联LB为独享型时有效。 - QUIC监听器不支持该字段。 - 若同时设置了security_policy_id和tls_ciphers_policy,则仅security_policy_id生效。 - 加密套件的优先顺序为ecc套件、rsa套件、tls1.3协议的套件(即支持ecc又支持rsa) ](tag:hws,hws_hk,hws_eu,ocb,tlf,ctc,hcso,sbc,g42,tm,cmcc,hk-g42,dt) [约束限制: - 仅对HTTPS协议类型的监听器有效](tag:hcso_dt) [不支持tls1.3协议的套件。](tag:tm,hws_eu,g42,hk_g42) [不支持QUIC。](tag:tm,dt,dt_test) :return: The tls_ciphers_policy of this Listener. :rtype: str @@ -680,7 +680,7 @@ def tls_ciphers_policy(self): def tls_ciphers_policy(self, tls_ciphers_policy): """Sets the tls_ciphers_policy of this Listener. - 监听器使用的安全策略。 [取值:tls-1-0-inherit、tls-1-0、tls-1-1、 tls-1-2、tls-1-2-strict、tls-1-2-fs、tls-1-0-with-1-3、 tls-1-2-fs-with-1-3、 hybrid-policy-1-0、tls-1-2-strict-no-cbc,默认:tls-1-0。 ](tag:hws,hws_hk,ocb,tlf,ctc,hcso,sbc,tm,cmcc,dt) [取值:tls-1-0、tls-1-1、tls-1-2、 tls-1-2-strict,默认:tls-1-0。](tag:hws_eu,g42,hk_g42,hcso_dt) [使用说明: - 仅对HTTPS协议类型的监听器且关联LB为独享型时有效。 - QUIC监听器不支持该字段。 - 若同时设置了security_policy_id和tls_ciphers_policy,则仅security_policy_id生效。 - 加密套件的优先顺序为ecc套件、rsa套件、tls1.3协议的套件(即支持ecc又支持rsa) ](tag:hws,hws_hk,hws_eu,ocb,tlf,ctc,hcso,sbc,g42,tm,cmcc,hk-g42,dt) [使用说明: - 仅对HTTPS协议类型的监听器有效](tag:hcso_dt) [不支持tls1.3协议的套件。](tag:tm,hws_eu,g42,hk_g42) [不支持QUIC。](tag:tm,dt,dt_test) + 参数解释:监听器使用的安全策略。 [取值范围:tls-1-0-inherit、tls-1-0、tls-1-1、 tls-1-2、tls-1-2-strict、tls-1-2-fs、tls-1-0-with-1-3、 tls-1-2-fs-with-1-3、 hybrid-policy-1-0、tls-1-2-strict-no-cbc,默认:tls-1-0。 ](tag:hws,hws_hk,ocb,tlf,ctc,hcso,sbc,tm,cmcc,dt) [取值范围:tls-1-0、tls-1-1、tls-1-2、 tls-1-2-strict,默认:tls-1-0。](tag:hws_eu,g42,hk_g42,hcso_dt) [约束限制: - 仅对HTTPS协议类型的监听器且关联LB为独享型时有效。 - QUIC监听器不支持该字段。 - 若同时设置了security_policy_id和tls_ciphers_policy,则仅security_policy_id生效。 - 加密套件的优先顺序为ecc套件、rsa套件、tls1.3协议的套件(即支持ecc又支持rsa) ](tag:hws,hws_hk,hws_eu,ocb,tlf,ctc,hcso,sbc,g42,tm,cmcc,hk-g42,dt) [约束限制: - 仅对HTTPS协议类型的监听器有效](tag:hcso_dt) [不支持tls1.3协议的套件。](tag:tm,hws_eu,g42,hk_g42) [不支持QUIC。](tag:tm,dt,dt_test) :param tls_ciphers_policy: The tls_ciphers_policy of this Listener. :type tls_ciphers_policy: str @@ -691,7 +691,7 @@ def tls_ciphers_policy(self, tls_ciphers_policy): def security_policy_id(self): """Gets the security_policy_id of this Listener. - 自定义安全策略的ID。 [使用说明: - 仅对HTTPS协议类型的监听器且关联LB为独享型时有效。 - 若同时设置了security_policy_id和tls_ciphers_policy,则仅security_policy_id生效。 - 加密套件的优先顺序为ecc套件、rsa套件、tls1.3协议的套件(即支持ecc又支持rsa) ](tag:hws,hws_hk,hws_eu,ocb,ctc,hcso,g42,tm,cmcc,hk-g42,dt) [使用说明: - 仅对HTTPS协议类型的监听器有效](tag:hcso_dt) [不支持tls1.3协议的套件。](tag:tm,hws_eu,g42,hk_g42) + 参数解释:自定义安全策略的ID。 [约束限制: - 仅对HTTPS协议类型的监听器且关联LB为独享型时有效。 - 若同时设置了security_policy_id和tls_ciphers_policy,则仅security_policy_id生效。 - 加密套件的优先顺序为ecc套件、rsa套件、tls1.3协议的套件(即支持ecc又支持rsa) ](tag:hws,hws_hk,hws_eu,ocb,ctc,hcso,g42,tm,cmcc,hk-g42,dt) [约束限制: - 仅对HTTPS协议类型的监听器有效](tag:hcso_dt) [不支持tls1.3协议的套件。](tag:tm,hws_eu,g42,hk_g42) :return: The security_policy_id of this Listener. :rtype: str @@ -702,7 +702,7 @@ def security_policy_id(self): def security_policy_id(self, security_policy_id): """Sets the security_policy_id of this Listener. - 自定义安全策略的ID。 [使用说明: - 仅对HTTPS协议类型的监听器且关联LB为独享型时有效。 - 若同时设置了security_policy_id和tls_ciphers_policy,则仅security_policy_id生效。 - 加密套件的优先顺序为ecc套件、rsa套件、tls1.3协议的套件(即支持ecc又支持rsa) ](tag:hws,hws_hk,hws_eu,ocb,ctc,hcso,g42,tm,cmcc,hk-g42,dt) [使用说明: - 仅对HTTPS协议类型的监听器有效](tag:hcso_dt) [不支持tls1.3协议的套件。](tag:tm,hws_eu,g42,hk_g42) + 参数解释:自定义安全策略的ID。 [约束限制: - 仅对HTTPS协议类型的监听器且关联LB为独享型时有效。 - 若同时设置了security_policy_id和tls_ciphers_policy,则仅security_policy_id生效。 - 加密套件的优先顺序为ecc套件、rsa套件、tls1.3协议的套件(即支持ecc又支持rsa) ](tag:hws,hws_hk,hws_eu,ocb,ctc,hcso,g42,tm,cmcc,hk-g42,dt) [约束限制: - 仅对HTTPS协议类型的监听器有效](tag:hcso_dt) [不支持tls1.3协议的套件。](tag:tm,hws_eu,g42,hk_g42) :param security_policy_id: The security_policy_id of this Listener. :type security_policy_id: str @@ -713,7 +713,7 @@ def security_policy_id(self, security_policy_id): def enable_member_retry(self): """Gets the enable_member_retry of this Listener. - 是否开启后端服务器的重试。 取值:true 开启重试,false 不开启重试。默认:true。 [使用说明: - 若关联是共享型LB,仅在protocol为HTTP、TERMINATED_HTTPS时才能传入该字段。 - 若关联是独享型LB,仅在protocol为HTTP、HTTPS和QUIC时才能传入该字段。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [使用说明: - 仅在protocol为HTTP、HTTPS时才能传入该字段。](tag:hws_eu,hcso_dt) [不支持QUIC。](tag:tm,dt,dt_test) + 参数解释:是否开启后端服务器的重试。 [约束限制: - 若关联是共享型LB,仅在protocol为HTTP、TERMINATED_HTTPS时才能传入该字段。 - 若关联是独享型LB,仅在protocol为HTTP、HTTPS和QUIC时才能传入该字段。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [约束限制: - 仅在protocol为HTTP、HTTPS时才能传入该字段。](tag:hws_eu,hcso_dt) 取值范围:true 开启重试,false 不开启重试。 默认取值:true。 [不支持QUIC。](tag:tm,dt,dt_test) :return: The enable_member_retry of this Listener. :rtype: bool @@ -724,7 +724,7 @@ def enable_member_retry(self): def enable_member_retry(self, enable_member_retry): """Sets the enable_member_retry of this Listener. - 是否开启后端服务器的重试。 取值:true 开启重试,false 不开启重试。默认:true。 [使用说明: - 若关联是共享型LB,仅在protocol为HTTP、TERMINATED_HTTPS时才能传入该字段。 - 若关联是独享型LB,仅在protocol为HTTP、HTTPS和QUIC时才能传入该字段。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [使用说明: - 仅在protocol为HTTP、HTTPS时才能传入该字段。](tag:hws_eu,hcso_dt) [不支持QUIC。](tag:tm,dt,dt_test) + 参数解释:是否开启后端服务器的重试。 [约束限制: - 若关联是共享型LB,仅在protocol为HTTP、TERMINATED_HTTPS时才能传入该字段。 - 若关联是独享型LB,仅在protocol为HTTP、HTTPS和QUIC时才能传入该字段。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [约束限制: - 仅在protocol为HTTP、HTTPS时才能传入该字段。](tag:hws_eu,hcso_dt) 取值范围:true 开启重试,false 不开启重试。 默认取值:true。 [不支持QUIC。](tag:tm,dt,dt_test) :param enable_member_retry: The enable_member_retry of this Listener. :type enable_member_retry: bool @@ -735,7 +735,7 @@ def enable_member_retry(self, enable_member_retry): def keepalive_timeout(self): """Gets the keepalive_timeout of this Listener. - 客户端连接空闲超时时间。在超过keepalive_timeout时长一直没有请求, 负载均衡会暂时中断当前连接,直到下一次请求时重新建立新的连接。 取值: - TCP监听器[和IP监听器](tag:hws_eu):10-4000s,默认值为300s。 - 若为HTTP/HTTPS/TERMINATED_HTTPS监听器,取值范围为(0-4000s)默认值为60s。 共享型实例的UDP监听器不支持此字段。 + 参数解释:客户端连接空闲超时时间。在超过keepalive_timeout时长一直没有请求, 负载均衡会暂时中断当前连接,直到下一次请求时重新建立新的连接。 约束限制:共享型实例的UDP监听器不支持此字段。 取值范围: - TCP监听器[和IP监听器](tag:hws_eu):10-4000s,默认值为300s。 - 若为HTTP/HTTPS/TERMINATED_HTTPS监听器,取值范围为(0-4000s)默认值为60s。 :return: The keepalive_timeout of this Listener. :rtype: int @@ -746,7 +746,7 @@ def keepalive_timeout(self): def keepalive_timeout(self, keepalive_timeout): """Sets the keepalive_timeout of this Listener. - 客户端连接空闲超时时间。在超过keepalive_timeout时长一直没有请求, 负载均衡会暂时中断当前连接,直到下一次请求时重新建立新的连接。 取值: - TCP监听器[和IP监听器](tag:hws_eu):10-4000s,默认值为300s。 - 若为HTTP/HTTPS/TERMINATED_HTTPS监听器,取值范围为(0-4000s)默认值为60s。 共享型实例的UDP监听器不支持此字段。 + 参数解释:客户端连接空闲超时时间。在超过keepalive_timeout时长一直没有请求, 负载均衡会暂时中断当前连接,直到下一次请求时重新建立新的连接。 约束限制:共享型实例的UDP监听器不支持此字段。 取值范围: - TCP监听器[和IP监听器](tag:hws_eu):10-4000s,默认值为300s。 - 若为HTTP/HTTPS/TERMINATED_HTTPS监听器,取值范围为(0-4000s)默认值为60s。 :param keepalive_timeout: The keepalive_timeout of this Listener. :type keepalive_timeout: int @@ -757,7 +757,7 @@ def keepalive_timeout(self, keepalive_timeout): def client_timeout(self): """Gets the client_timeout of this Listener. - 等待客户端请求超时时间,包括两种情况: - 读取整个客户端请求头的超时时长:如果客户端未在超时时长内发送完整个请求头,则请求将被中断 - 两个连续body体的数据包到达LB的时间间隔,超出client_timeout将会断开连接。 取值范围为1-300s,默认值为60s。 使用说明:仅协议为HTTP/HTTPS的监听器支持该字段。 + 参数解释:等待客户端请求超时时间,包括两种情况: - 读取整个客户端请求头的超时时长:如果客户端未在超时时长内发送完整个请求头,则请求将被中断 - 两个连续body体的数据包到达LB的时间间隔,超出client_timeout将会断开连接。 约束限制:仅协议为HTTP/HTTPS的监听器支持该字段。 取值范围:1-3600s 默认取值:60s。 :return: The client_timeout of this Listener. :rtype: int @@ -768,7 +768,7 @@ def client_timeout(self): def client_timeout(self, client_timeout): """Sets the client_timeout of this Listener. - 等待客户端请求超时时间,包括两种情况: - 读取整个客户端请求头的超时时长:如果客户端未在超时时长内发送完整个请求头,则请求将被中断 - 两个连续body体的数据包到达LB的时间间隔,超出client_timeout将会断开连接。 取值范围为1-300s,默认值为60s。 使用说明:仅协议为HTTP/HTTPS的监听器支持该字段。 + 参数解释:等待客户端请求超时时间,包括两种情况: - 读取整个客户端请求头的超时时长:如果客户端未在超时时长内发送完整个请求头,则请求将被中断 - 两个连续body体的数据包到达LB的时间间隔,超出client_timeout将会断开连接。 约束限制:仅协议为HTTP/HTTPS的监听器支持该字段。 取值范围:1-3600s 默认取值:60s。 :param client_timeout: The client_timeout of this Listener. :type client_timeout: int @@ -779,7 +779,7 @@ def client_timeout(self, client_timeout): def member_timeout(self): """Gets the member_timeout of this Listener. - 等待后端服务器响应超时时间。请求转发后端服务器后,在等待超时member_timeout时长没有响应,负载均衡将终止等待,并返回 HTTP504错误码。 取值:1-300s,默认为60s。 使用说明:仅支持协议为HTTP/HTTPS的监听器。 + 参数解释:等待后端服务器响应超时时间。请求转发后端服务器后,在等待超时member_timeout时长没有响应,负载均衡将终止等待,并返回HTTP504错误码。 约束限制:仅支持协议为HTTP/HTTPS的监听器。 取值范围:1-3600s 默认取值:60s。 :return: The member_timeout of this Listener. :rtype: int @@ -790,7 +790,7 @@ def member_timeout(self): def member_timeout(self, member_timeout): """Sets the member_timeout of this Listener. - 等待后端服务器响应超时时间。请求转发后端服务器后,在等待超时member_timeout时长没有响应,负载均衡将终止等待,并返回 HTTP504错误码。 取值:1-300s,默认为60s。 使用说明:仅支持协议为HTTP/HTTPS的监听器。 + 参数解释:等待后端服务器响应超时时间。请求转发后端服务器后,在等待超时member_timeout时长没有响应,负载均衡将终止等待,并返回HTTP504错误码。 约束限制:仅支持协议为HTTP/HTTPS的监听器。 取值范围:1-3600s 默认取值:60s。 :param member_timeout: The member_timeout of this Listener. :type member_timeout: int @@ -819,7 +819,7 @@ def ipgroup(self, ipgroup): def transparent_client_ip_enable(self): """Gets the transparent_client_ip_enable of this Listener. - 是否透传客户端IP地址。开启后客户端IP地址将透传到后端服务器。 [仅作用于共享型LB的TCP/UDP监听器。 取值: - 共享型LB的TCP/UDP监听器可设置为true或false,不传默认为false。 - 共享型LB的HTTP/HTTPS监听器只支持设置为true,不传默认为true。 - 独享型负载均衡器所有协议的监听器只支持设置为true,不传默认为true。 使用说明: - 开启特性后,ELB和后端服务器之间直接使用真实的IP访问,需要确保已正确设置服务器的安全组以及访问控制策略。 - 开启特性后,不支持同一台服务器既作为后端服务器又作为客户端的场景。 - 开启特性后,不支持变更后端服务器规格。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [只设支持置为true,不传默认为true。](tag:hws_eu,hcso_dt) + 参数解释:是否透传客户端IP地址。开启后客户端IP地址将透传到后端服务器。 [仅作用于共享型LB的TCP/UDP监听器。 约束限制: - 开启特性后,ELB和后端服务器之间直接使用真实的IP访问,需要确保已正确设置服务器的安全组以及访问控制策略。 - 开启特性后,不支持同一台服务器既作为后端服务器又作为客户端的场景。 - 开启特性后,不支持变更后端服务器规格。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) 取值范围: - 共享型LB的TCP/UDP监听器可设置为true或false,不传默认为false。 - 共享型LB的HTTP/HTTPS监听器只支持设置为true,不传默认为true。 - 独享型负载均衡器所有协议的监听器只支持设置为true,不传默认为true。 [只设支持置为true,不传默认为true。](tag:hws_eu,hcso_dt) :return: The transparent_client_ip_enable of this Listener. :rtype: bool @@ -830,7 +830,7 @@ def transparent_client_ip_enable(self): def transparent_client_ip_enable(self, transparent_client_ip_enable): """Sets the transparent_client_ip_enable of this Listener. - 是否透传客户端IP地址。开启后客户端IP地址将透传到后端服务器。 [仅作用于共享型LB的TCP/UDP监听器。 取值: - 共享型LB的TCP/UDP监听器可设置为true或false,不传默认为false。 - 共享型LB的HTTP/HTTPS监听器只支持设置为true,不传默认为true。 - 独享型负载均衡器所有协议的监听器只支持设置为true,不传默认为true。 使用说明: - 开启特性后,ELB和后端服务器之间直接使用真实的IP访问,需要确保已正确设置服务器的安全组以及访问控制策略。 - 开启特性后,不支持同一台服务器既作为后端服务器又作为客户端的场景。 - 开启特性后,不支持变更后端服务器规格。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [只设支持置为true,不传默认为true。](tag:hws_eu,hcso_dt) + 参数解释:是否透传客户端IP地址。开启后客户端IP地址将透传到后端服务器。 [仅作用于共享型LB的TCP/UDP监听器。 约束限制: - 开启特性后,ELB和后端服务器之间直接使用真实的IP访问,需要确保已正确设置服务器的安全组以及访问控制策略。 - 开启特性后,不支持同一台服务器既作为后端服务器又作为客户端的场景。 - 开启特性后,不支持变更后端服务器规格。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) 取值范围: - 共享型LB的TCP/UDP监听器可设置为true或false,不传默认为false。 - 共享型LB的HTTP/HTTPS监听器只支持设置为true,不传默认为true。 - 独享型负载均衡器所有协议的监听器只支持设置为true,不传默认为true。 [只设支持置为true,不传默认为true。](tag:hws_eu,hcso_dt) :param transparent_client_ip_enable: The transparent_client_ip_enable of this Listener. :type transparent_client_ip_enable: bool @@ -841,7 +841,7 @@ def transparent_client_ip_enable(self, transparent_client_ip_enable): def proxy_protocol_enable(self): """Gets the proxy_protocol_enable of this Listener. - 是否开启proxy_protocol。仅TLS监听器可指定,其他协议的监听器该字段不生效,proxy_protocol不开启。 + 参数解释:是否开启proxy_protocol。仅TLS监听器可指定,其他协议的监听器该字段不生效,proxy_protocol不开启。 :return: The proxy_protocol_enable of this Listener. :rtype: bool @@ -852,7 +852,7 @@ def proxy_protocol_enable(self): def proxy_protocol_enable(self, proxy_protocol_enable): """Sets the proxy_protocol_enable of this Listener. - 是否开启proxy_protocol。仅TLS监听器可指定,其他协议的监听器该字段不生效,proxy_protocol不开启。 + 参数解释:是否开启proxy_protocol。仅TLS监听器可指定,其他协议的监听器该字段不生效,proxy_protocol不开启。 :param proxy_protocol_enable: The proxy_protocol_enable of this Listener. :type proxy_protocol_enable: bool @@ -863,7 +863,7 @@ def proxy_protocol_enable(self, proxy_protocol_enable): def enhance_l7policy_enable(self): """Gets the enhance_l7policy_enable of this Listener. - 是否开启高级转发策略功能。开启高级转发策略后,支持更灵活的转发策略和转发规则设置。 取值:true开启,false不开启,默认false。 开启后支持如下场景: - 转发策略的action字段支持指定为REDIRECT_TO_URL, FIXED_RESPONSE,即支持URL重定向和响应固定的内容给客户端。 - 转发策略支持指定priority、redirect_url_config、fixed_response_config字段。 - 转发规则rule的type可以指定METHOD, HEADER, QUERY_STRING, SOURCE_IP这几种取值。 - 转发规则rule的type为HOST_NAME时,转发规则rule的value支持通配符*。 - 转发规则支持指定conditions字段。 [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) + 参数解释:是否开启高级转发策略功能。开启高级转发策略后,支持更灵活的转发策略和转发规则设置。 开启后支持如下场景: - 转发策略的action字段支持指定为REDIRECT_TO_URL, FIXED_RESPONSE,即支持URL重定向和响应固定的内容给客户端。 - 转发策略支持指定priority、redirect_url_config、fixed_response_config字段。 - 转发规则rule的type可以指定METHOD, HEADER, QUERY_STRING, SOURCE_IP这几种取值。 - 转发规则rule的type为HOST_NAME时,转发规则rule的value支持通配符*。 - 转发规则支持指定conditions字段。 取值范围:true开启,false不开启。 默认取值:false。 [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) :return: The enhance_l7policy_enable of this Listener. :rtype: bool @@ -874,7 +874,7 @@ def enhance_l7policy_enable(self): def enhance_l7policy_enable(self, enhance_l7policy_enable): """Sets the enhance_l7policy_enable of this Listener. - 是否开启高级转发策略功能。开启高级转发策略后,支持更灵活的转发策略和转发规则设置。 取值:true开启,false不开启,默认false。 开启后支持如下场景: - 转发策略的action字段支持指定为REDIRECT_TO_URL, FIXED_RESPONSE,即支持URL重定向和响应固定的内容给客户端。 - 转发策略支持指定priority、redirect_url_config、fixed_response_config字段。 - 转发规则rule的type可以指定METHOD, HEADER, QUERY_STRING, SOURCE_IP这几种取值。 - 转发规则rule的type为HOST_NAME时,转发规则rule的value支持通配符*。 - 转发规则支持指定conditions字段。 [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) + 参数解释:是否开启高级转发策略功能。开启高级转发策略后,支持更灵活的转发策略和转发规则设置。 开启后支持如下场景: - 转发策略的action字段支持指定为REDIRECT_TO_URL, FIXED_RESPONSE,即支持URL重定向和响应固定的内容给客户端。 - 转发策略支持指定priority、redirect_url_config、fixed_response_config字段。 - 转发规则rule的type可以指定METHOD, HEADER, QUERY_STRING, SOURCE_IP这几种取值。 - 转发规则rule的type为HOST_NAME时,转发规则rule的value支持通配符*。 - 转发规则支持指定conditions字段。 取值范围:true开启,false不开启。 默认取值:false。 [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) :param enhance_l7policy_enable: The enhance_l7policy_enable of this Listener. :type enhance_l7policy_enable: bool @@ -903,7 +903,7 @@ def quic_config(self, quic_config): def protection_status(self): """Gets the protection_status of this Listener. - 修改保护状态, 取值: - nonProtection: 不保护,默认值为nonProtection - consoleProtection: 控制台修改保护 + 参数解释:修改保护状态, 取值范围: - nonProtection: 不保护,默认值为nonProtection - consoleProtection: 控制台修改保护 :return: The protection_status of this Listener. :rtype: str @@ -914,7 +914,7 @@ def protection_status(self): def protection_status(self, protection_status): """Sets the protection_status of this Listener. - 修改保护状态, 取值: - nonProtection: 不保护,默认值为nonProtection - consoleProtection: 控制台修改保护 + 参数解释:修改保护状态, 取值范围: - nonProtection: 不保护,默认值为nonProtection - consoleProtection: 控制台修改保护 :param protection_status: The protection_status of this Listener. :type protection_status: str @@ -925,7 +925,7 @@ def protection_status(self, protection_status): def protection_reason(self): """Gets the protection_reason of this Listener. - 设置保护的原因 >仅当protection_status为consoleProtection时有效。 + 参数解释:设置保护的原因。 约束限制: 仅当protection_status为consoleProtection时有效。 :return: The protection_reason of this Listener. :rtype: str @@ -936,7 +936,7 @@ def protection_reason(self): def protection_reason(self, protection_reason): """Sets the protection_reason of this Listener. - 设置保护的原因 >仅当protection_status为consoleProtection时有效。 + 参数解释:设置保护的原因。 约束限制: 仅当protection_status为consoleProtection时有效。 :param protection_reason: The protection_reason of this Listener. :type protection_reason: str @@ -947,7 +947,7 @@ def protection_reason(self, protection_reason): def gzip_enable(self): """Gets the gzip_enable of this Listener. - ELB是否开启gzip压缩,缺省值:false,非必选 [仅HTTP/HTTPS类型监听器支持配置。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) [仅HTTP/HTTPS/QUIC类型监听器支持配置。](tag:hws,hws_hk,hws_test,hcs,hcs_sm,hcso,hk_vdf,fcs,fcs_vm,mix,ocb,ctc,cmcc,sbc,hws_ocb,hk_sbc) + 参数解释:ELB是否开启gzip压缩。 [约束限制:仅HTTP/HTTPS类型监听器支持配置。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) [约束限制:仅HTTP/HTTPS/QUIC类型监听器支持配置。](tag:hws,hws_hk,hws_test,hcs,hcs_sm,hcso,hk_vdf,fcs,fcs_vm,mix,ocb,ctc,cmcc,sbc,hws_ocb,hk_sbc) 默认取值:false :return: The gzip_enable of this Listener. :rtype: bool @@ -958,7 +958,7 @@ def gzip_enable(self): def gzip_enable(self, gzip_enable): """Sets the gzip_enable of this Listener. - ELB是否开启gzip压缩,缺省值:false,非必选 [仅HTTP/HTTPS类型监听器支持配置。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) [仅HTTP/HTTPS/QUIC类型监听器支持配置。](tag:hws,hws_hk,hws_test,hcs,hcs_sm,hcso,hk_vdf,fcs,fcs_vm,mix,ocb,ctc,cmcc,sbc,hws_ocb,hk_sbc) + 参数解释:ELB是否开启gzip压缩。 [约束限制:仅HTTP/HTTPS类型监听器支持配置。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) [约束限制:仅HTTP/HTTPS/QUIC类型监听器支持配置。](tag:hws,hws_hk,hws_test,hcs,hcs_sm,hcso,hk_vdf,fcs,fcs_vm,mix,ocb,ctc,cmcc,sbc,hws_ocb,hk_sbc) 默认取值:false :param gzip_enable: The gzip_enable of this Listener. :type gzip_enable: bool @@ -969,7 +969,7 @@ def gzip_enable(self, gzip_enable): def port_ranges(self): """Gets the port_ranges of this Listener. - 端口监听范围(闭区间),最多指定10个端口组,每个组范围不可有重叠部分 >仅当protocol_port为0时可以传入。 + 参数解释:端口监听范围(闭区间)。 约束限制: - 最多指定10个端口组,每个组范围不可有重叠部分 - 仅当protocol_port为0时可以传入。 :return: The port_ranges of this Listener. :rtype: list[:class:`huaweicloudsdkelb.v3.PortRange`] @@ -980,7 +980,7 @@ def port_ranges(self): def port_ranges(self, port_ranges): """Sets the port_ranges of this Listener. - 端口监听范围(闭区间),最多指定10个端口组,每个组范围不可有重叠部分 >仅当protocol_port为0时可以传入。 + 参数解释:端口监听范围(闭区间)。 约束限制: - 最多指定10个端口组,每个组范围不可有重叠部分 - 仅当protocol_port为0时可以传入。 :param port_ranges: The port_ranges of this Listener. :type port_ranges: list[:class:`huaweicloudsdkelb.v3.PortRange`] @@ -991,7 +991,7 @@ def port_ranges(self, port_ranges): def ssl_early_data_enable(self): """Gets the ssl_early_data_enable of this Listener. - 监听器0-RTT能力开关,缺省值:false,非必选 仅HTTPS类型监听器支持配置,需要依赖TLSv1.3安全策略协议。 + 参数解释:监听器0-RTT能力开关 约束限制:仅HTTPS类型监听器支持配置,需要依赖TLSv1.3安全策略协议。 默认取值:false。 :return: The ssl_early_data_enable of this Listener. :rtype: bool @@ -1002,7 +1002,7 @@ def ssl_early_data_enable(self): def ssl_early_data_enable(self, ssl_early_data_enable): """Sets the ssl_early_data_enable of this Listener. - 监听器0-RTT能力开关,缺省值:false,非必选 仅HTTPS类型监听器支持配置,需要依赖TLSv1.3安全策略协议。 + 参数解释:监听器0-RTT能力开关 约束限制:仅HTTPS类型监听器支持配置,需要依赖TLSv1.3安全策略协议。 默认取值:false。 :param ssl_early_data_enable: The ssl_early_data_enable of this Listener. :type ssl_early_data_enable: bool diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/listener_insert_headers.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/listener_insert_headers.py index 241fbaed2a..2641d29b8c 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/listener_insert_headers.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/listener_insert_headers.py @@ -47,25 +47,25 @@ def __init__(self, x_forwarded_elb_ip=None, x_forwarded_port=None, x_forwarded_f The model defined in huaweicloud sdk - :param x_forwarded_elb_ip: X-Forwarded-ELB-IP设为true可以将ELB实例的eip地址从报文的http头中带到后端云服务器。 + :param x_forwarded_elb_ip: 参数解释:X-Forwarded-ELB-IP设为true可以将ELB实例的eip地址从报文的http头中带到后端云服务器。 :type x_forwarded_elb_ip: bool - :param x_forwarded_port: X-Forwarded-Port设为true可以将ELB实例的监听端口从报文的http头中带到后端云服务器。 + :param x_forwarded_port: 参数解释:X-Forwarded-Port设为true可以将ELB实例的监听端口从报文的http头中带到后端云服务器。 :type x_forwarded_port: bool :param x_forwarded_for_port: X-Forwarded-For-Port设为true可以将客户端的源端口从报文的http头中带到后端云服务器。 :type x_forwarded_for_port: bool - :param x_forwarded_host: X-Forwarded-Host设为true可以将客户请求头的X-Forwarded-Host设置为请求头的Host带到后端云服务器。 + :param x_forwarded_host: 参数解释:X-Forwarded-Host设为true可以将客户请求头的X-Forwarded-Host设置为请求头的Host带到后端云服务器。 :type x_forwarded_host: bool - :param x_forwarded_proto: X-Forwarded-Proto设为true可以将负载均衡器实例的监听协议通过报文的http头带到后端云服务器。 + :param x_forwarded_proto: 参数解释:X-Forwarded-Proto设为true可以将负载均衡器实例的监听协议通过报文的http头带到后端云服务器。 :type x_forwarded_proto: bool - :param x_real_ip: X-Real-IP设为true可以将客户端的IP通过报文的http头带到后端云服务器。 + :param x_real_ip: 参数解释:X-Real-IP设为true可以将客户端的IP通过报文的http头带到后端云服务器。 :type x_real_ip: bool - :param x_forwarded_elb_id: X-Forwarded-ELB-ID设为true可以将负载均衡器实例的ID通过报文的http头带到后端云服务器。 + :param x_forwarded_elb_id: 参数解释:X-Forwarded-ELB-ID设为true可以将负载均衡器实例的ID通过报文的http头带到后端云服务器。 :type x_forwarded_elb_id: bool - :param x_forwarded_tls_certificate_id: X-Forwarded-TLS-Certificate-ID设为true可以将负载均衡器实例的证书ID通过报文的http头带到后端云服务器。 + :param x_forwarded_tls_certificate_id: 参数解释:X-Forwarded-TLS-Certificate-ID设为true可以将负载均衡器实例的证书ID通过报文的http头带到后端云服务器。 :type x_forwarded_tls_certificate_id: bool - :param x_forwarded_tls_protocol: X-Forwarded-TLS-Protocol设为true可以将负载均衡器实例的算法协议通过报文的http头带到后端云服务器。 + :param x_forwarded_tls_protocol: 参数解释:X-Forwarded-TLS-Protocol设为true可以将负载均衡器实例的算法协议通过报文的http头带到后端云服务器。 :type x_forwarded_tls_protocol: bool - :param x_forwarded_tls_cipher: X-Forwarded-TLS-Cipher设为true可以将负载均衡器实例的算法套件通过报文的http头带到后端云服务器。 + :param x_forwarded_tls_cipher: 参数解释:X-Forwarded-TLS-Cipher设为true可以将负载均衡器实例的算法套件通过报文的http头带到后端云服务器。 :type x_forwarded_tls_cipher: bool """ @@ -108,7 +108,7 @@ def __init__(self, x_forwarded_elb_ip=None, x_forwarded_port=None, x_forwarded_f def x_forwarded_elb_ip(self): """Gets the x_forwarded_elb_ip of this ListenerInsertHeaders. - X-Forwarded-ELB-IP设为true可以将ELB实例的eip地址从报文的http头中带到后端云服务器。 + 参数解释:X-Forwarded-ELB-IP设为true可以将ELB实例的eip地址从报文的http头中带到后端云服务器。 :return: The x_forwarded_elb_ip of this ListenerInsertHeaders. :rtype: bool @@ -119,7 +119,7 @@ def x_forwarded_elb_ip(self): def x_forwarded_elb_ip(self, x_forwarded_elb_ip): """Sets the x_forwarded_elb_ip of this ListenerInsertHeaders. - X-Forwarded-ELB-IP设为true可以将ELB实例的eip地址从报文的http头中带到后端云服务器。 + 参数解释:X-Forwarded-ELB-IP设为true可以将ELB实例的eip地址从报文的http头中带到后端云服务器。 :param x_forwarded_elb_ip: The x_forwarded_elb_ip of this ListenerInsertHeaders. :type x_forwarded_elb_ip: bool @@ -130,7 +130,7 @@ def x_forwarded_elb_ip(self, x_forwarded_elb_ip): def x_forwarded_port(self): """Gets the x_forwarded_port of this ListenerInsertHeaders. - X-Forwarded-Port设为true可以将ELB实例的监听端口从报文的http头中带到后端云服务器。 + 参数解释:X-Forwarded-Port设为true可以将ELB实例的监听端口从报文的http头中带到后端云服务器。 :return: The x_forwarded_port of this ListenerInsertHeaders. :rtype: bool @@ -141,7 +141,7 @@ def x_forwarded_port(self): def x_forwarded_port(self, x_forwarded_port): """Sets the x_forwarded_port of this ListenerInsertHeaders. - X-Forwarded-Port设为true可以将ELB实例的监听端口从报文的http头中带到后端云服务器。 + 参数解释:X-Forwarded-Port设为true可以将ELB实例的监听端口从报文的http头中带到后端云服务器。 :param x_forwarded_port: The x_forwarded_port of this ListenerInsertHeaders. :type x_forwarded_port: bool @@ -174,7 +174,7 @@ def x_forwarded_for_port(self, x_forwarded_for_port): def x_forwarded_host(self): """Gets the x_forwarded_host of this ListenerInsertHeaders. - X-Forwarded-Host设为true可以将客户请求头的X-Forwarded-Host设置为请求头的Host带到后端云服务器。 + 参数解释:X-Forwarded-Host设为true可以将客户请求头的X-Forwarded-Host设置为请求头的Host带到后端云服务器。 :return: The x_forwarded_host of this ListenerInsertHeaders. :rtype: bool @@ -185,7 +185,7 @@ def x_forwarded_host(self): def x_forwarded_host(self, x_forwarded_host): """Sets the x_forwarded_host of this ListenerInsertHeaders. - X-Forwarded-Host设为true可以将客户请求头的X-Forwarded-Host设置为请求头的Host带到后端云服务器。 + 参数解释:X-Forwarded-Host设为true可以将客户请求头的X-Forwarded-Host设置为请求头的Host带到后端云服务器。 :param x_forwarded_host: The x_forwarded_host of this ListenerInsertHeaders. :type x_forwarded_host: bool @@ -196,7 +196,7 @@ def x_forwarded_host(self, x_forwarded_host): def x_forwarded_proto(self): """Gets the x_forwarded_proto of this ListenerInsertHeaders. - X-Forwarded-Proto设为true可以将负载均衡器实例的监听协议通过报文的http头带到后端云服务器。 + 参数解释:X-Forwarded-Proto设为true可以将负载均衡器实例的监听协议通过报文的http头带到后端云服务器。 :return: The x_forwarded_proto of this ListenerInsertHeaders. :rtype: bool @@ -207,7 +207,7 @@ def x_forwarded_proto(self): def x_forwarded_proto(self, x_forwarded_proto): """Sets the x_forwarded_proto of this ListenerInsertHeaders. - X-Forwarded-Proto设为true可以将负载均衡器实例的监听协议通过报文的http头带到后端云服务器。 + 参数解释:X-Forwarded-Proto设为true可以将负载均衡器实例的监听协议通过报文的http头带到后端云服务器。 :param x_forwarded_proto: The x_forwarded_proto of this ListenerInsertHeaders. :type x_forwarded_proto: bool @@ -218,7 +218,7 @@ def x_forwarded_proto(self, x_forwarded_proto): def x_real_ip(self): """Gets the x_real_ip of this ListenerInsertHeaders. - X-Real-IP设为true可以将客户端的IP通过报文的http头带到后端云服务器。 + 参数解释:X-Real-IP设为true可以将客户端的IP通过报文的http头带到后端云服务器。 :return: The x_real_ip of this ListenerInsertHeaders. :rtype: bool @@ -229,7 +229,7 @@ def x_real_ip(self): def x_real_ip(self, x_real_ip): """Sets the x_real_ip of this ListenerInsertHeaders. - X-Real-IP设为true可以将客户端的IP通过报文的http头带到后端云服务器。 + 参数解释:X-Real-IP设为true可以将客户端的IP通过报文的http头带到后端云服务器。 :param x_real_ip: The x_real_ip of this ListenerInsertHeaders. :type x_real_ip: bool @@ -240,7 +240,7 @@ def x_real_ip(self, x_real_ip): def x_forwarded_elb_id(self): """Gets the x_forwarded_elb_id of this ListenerInsertHeaders. - X-Forwarded-ELB-ID设为true可以将负载均衡器实例的ID通过报文的http头带到后端云服务器。 + 参数解释:X-Forwarded-ELB-ID设为true可以将负载均衡器实例的ID通过报文的http头带到后端云服务器。 :return: The x_forwarded_elb_id of this ListenerInsertHeaders. :rtype: bool @@ -251,7 +251,7 @@ def x_forwarded_elb_id(self): def x_forwarded_elb_id(self, x_forwarded_elb_id): """Sets the x_forwarded_elb_id of this ListenerInsertHeaders. - X-Forwarded-ELB-ID设为true可以将负载均衡器实例的ID通过报文的http头带到后端云服务器。 + 参数解释:X-Forwarded-ELB-ID设为true可以将负载均衡器实例的ID通过报文的http头带到后端云服务器。 :param x_forwarded_elb_id: The x_forwarded_elb_id of this ListenerInsertHeaders. :type x_forwarded_elb_id: bool @@ -262,7 +262,7 @@ def x_forwarded_elb_id(self, x_forwarded_elb_id): def x_forwarded_tls_certificate_id(self): """Gets the x_forwarded_tls_certificate_id of this ListenerInsertHeaders. - X-Forwarded-TLS-Certificate-ID设为true可以将负载均衡器实例的证书ID通过报文的http头带到后端云服务器。 + 参数解释:X-Forwarded-TLS-Certificate-ID设为true可以将负载均衡器实例的证书ID通过报文的http头带到后端云服务器。 :return: The x_forwarded_tls_certificate_id of this ListenerInsertHeaders. :rtype: bool @@ -273,7 +273,7 @@ def x_forwarded_tls_certificate_id(self): def x_forwarded_tls_certificate_id(self, x_forwarded_tls_certificate_id): """Sets the x_forwarded_tls_certificate_id of this ListenerInsertHeaders. - X-Forwarded-TLS-Certificate-ID设为true可以将负载均衡器实例的证书ID通过报文的http头带到后端云服务器。 + 参数解释:X-Forwarded-TLS-Certificate-ID设为true可以将负载均衡器实例的证书ID通过报文的http头带到后端云服务器。 :param x_forwarded_tls_certificate_id: The x_forwarded_tls_certificate_id of this ListenerInsertHeaders. :type x_forwarded_tls_certificate_id: bool @@ -284,7 +284,7 @@ def x_forwarded_tls_certificate_id(self, x_forwarded_tls_certificate_id): def x_forwarded_tls_protocol(self): """Gets the x_forwarded_tls_protocol of this ListenerInsertHeaders. - X-Forwarded-TLS-Protocol设为true可以将负载均衡器实例的算法协议通过报文的http头带到后端云服务器。 + 参数解释:X-Forwarded-TLS-Protocol设为true可以将负载均衡器实例的算法协议通过报文的http头带到后端云服务器。 :return: The x_forwarded_tls_protocol of this ListenerInsertHeaders. :rtype: bool @@ -295,7 +295,7 @@ def x_forwarded_tls_protocol(self): def x_forwarded_tls_protocol(self, x_forwarded_tls_protocol): """Sets the x_forwarded_tls_protocol of this ListenerInsertHeaders. - X-Forwarded-TLS-Protocol设为true可以将负载均衡器实例的算法协议通过报文的http头带到后端云服务器。 + 参数解释:X-Forwarded-TLS-Protocol设为true可以将负载均衡器实例的算法协议通过报文的http头带到后端云服务器。 :param x_forwarded_tls_protocol: The x_forwarded_tls_protocol of this ListenerInsertHeaders. :type x_forwarded_tls_protocol: bool @@ -306,7 +306,7 @@ def x_forwarded_tls_protocol(self, x_forwarded_tls_protocol): def x_forwarded_tls_cipher(self): """Gets the x_forwarded_tls_cipher of this ListenerInsertHeaders. - X-Forwarded-TLS-Cipher设为true可以将负载均衡器实例的算法套件通过报文的http头带到后端云服务器。 + 参数解释:X-Forwarded-TLS-Cipher设为true可以将负载均衡器实例的算法套件通过报文的http头带到后端云服务器。 :return: The x_forwarded_tls_cipher of this ListenerInsertHeaders. :rtype: bool @@ -317,7 +317,7 @@ def x_forwarded_tls_cipher(self): def x_forwarded_tls_cipher(self, x_forwarded_tls_cipher): """Sets the x_forwarded_tls_cipher of this ListenerInsertHeaders. - X-Forwarded-TLS-Cipher设为true可以将负载均衡器实例的算法套件通过报文的http头带到后端云服务器。 + 参数解释:X-Forwarded-TLS-Cipher设为true可以将负载均衡器实例的算法套件通过报文的http头带到后端云服务器。 :param x_forwarded_tls_cipher: The x_forwarded_tls_cipher of this ListenerInsertHeaders. :type x_forwarded_tls_cipher: bool diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/listener_ip_group.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/listener_ip_group.py index b423ed6c5f..24a047db3d 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/listener_ip_group.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/listener_ip_group.py @@ -33,11 +33,11 @@ def __init__(self, ipgroup_id=None, enable_ipgroup=None, type=None): The model defined in huaweicloud sdk - :param ipgroup_id: 监听器关联的访问控制组的id。 创建时必选,更新时非必选。 指定的ipgroup必须已存在,不能指定为null,否则与enable_ipgroup冲突。 + :param ipgroup_id: 参数解释:监听器关联的访问控制组的id。 创建时必选,更新时非必选。 约束限制: 指定的ipgroup必须已存在,不能指定为null,否则与enable_ipgroup冲突。 :type ipgroup_id: str - :param enable_ipgroup: 访问控制组的状态。 True:开启访问控制; Flase:关闭访问控制; 开启访问控制的监听器,允许直接删除。 + :param enable_ipgroup: 参数解释:访问控制组的状态。 开启访问控制的监听器,允许直接删除。 取值范围: - true:开启访问控制。 - flase:关闭访问控制。 :type enable_ipgroup: bool - :param type: 访问控制组的类型。 white:白名单,只允许指定ip访问; black:黑名单,不允许指定ip访问; + :param type: 参数解释:访问控制组的类型。 取值范围: - white:白名单,只允许指定ip访问。 - black:黑名单,不允许指定ip访问。 :type type: str """ @@ -56,7 +56,7 @@ def __init__(self, ipgroup_id=None, enable_ipgroup=None, type=None): def ipgroup_id(self): """Gets the ipgroup_id of this ListenerIpGroup. - 监听器关联的访问控制组的id。 创建时必选,更新时非必选。 指定的ipgroup必须已存在,不能指定为null,否则与enable_ipgroup冲突。 + 参数解释:监听器关联的访问控制组的id。 创建时必选,更新时非必选。 约束限制: 指定的ipgroup必须已存在,不能指定为null,否则与enable_ipgroup冲突。 :return: The ipgroup_id of this ListenerIpGroup. :rtype: str @@ -67,7 +67,7 @@ def ipgroup_id(self): def ipgroup_id(self, ipgroup_id): """Sets the ipgroup_id of this ListenerIpGroup. - 监听器关联的访问控制组的id。 创建时必选,更新时非必选。 指定的ipgroup必须已存在,不能指定为null,否则与enable_ipgroup冲突。 + 参数解释:监听器关联的访问控制组的id。 创建时必选,更新时非必选。 约束限制: 指定的ipgroup必须已存在,不能指定为null,否则与enable_ipgroup冲突。 :param ipgroup_id: The ipgroup_id of this ListenerIpGroup. :type ipgroup_id: str @@ -78,7 +78,7 @@ def ipgroup_id(self, ipgroup_id): def enable_ipgroup(self): """Gets the enable_ipgroup of this ListenerIpGroup. - 访问控制组的状态。 True:开启访问控制; Flase:关闭访问控制; 开启访问控制的监听器,允许直接删除。 + 参数解释:访问控制组的状态。 开启访问控制的监听器,允许直接删除。 取值范围: - true:开启访问控制。 - flase:关闭访问控制。 :return: The enable_ipgroup of this ListenerIpGroup. :rtype: bool @@ -89,7 +89,7 @@ def enable_ipgroup(self): def enable_ipgroup(self, enable_ipgroup): """Sets the enable_ipgroup of this ListenerIpGroup. - 访问控制组的状态。 True:开启访问控制; Flase:关闭访问控制; 开启访问控制的监听器,允许直接删除。 + 参数解释:访问控制组的状态。 开启访问控制的监听器,允许直接删除。 取值范围: - true:开启访问控制。 - flase:关闭访问控制。 :param enable_ipgroup: The enable_ipgroup of this ListenerIpGroup. :type enable_ipgroup: bool @@ -100,7 +100,7 @@ def enable_ipgroup(self, enable_ipgroup): def type(self): """Gets the type of this ListenerIpGroup. - 访问控制组的类型。 white:白名单,只允许指定ip访问; black:黑名单,不允许指定ip访问; + 参数解释:访问控制组的类型。 取值范围: - white:白名单,只允许指定ip访问。 - black:黑名单,不允许指定ip访问。 :return: The type of this ListenerIpGroup. :rtype: str @@ -111,7 +111,7 @@ def type(self): def type(self, type): """Sets the type of this ListenerIpGroup. - 访问控制组的类型。 white:白名单,只允许指定ip访问; black:黑名单,不允许指定ip访问; + 参数解释:访问控制组的类型。 取值范围: - white:白名单,只允许指定ip访问。 - black:黑名单,不允许指定ip访问。 :param type: The type of this ListenerIpGroup. :type type: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/listener_quic_config.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/listener_quic_config.py index 0cc3b983cb..125cb102eb 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/listener_quic_config.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/listener_quic_config.py @@ -31,9 +31,9 @@ def __init__(self, quic_listener_id=None, enable_quic_upgrade=None): The model defined in huaweicloud sdk - :param quic_listener_id: 监听器关联的QUIC监听器ID。 创建时必选,更新时非必选。 指定的listener id必须已存在,且协议类型为QUIC,不能指定为null,否则与enable_quic_upgrade冲突。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) + :param quic_listener_id: 参数解释:监听器关联的QUIC监听器ID。 约束限制:指定的listener id必须已存在,且协议类型为QUIC,不能指定为null,否则与enable_quic_upgrade冲突。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) :type quic_listener_id: str - :param enable_quic_upgrade: QUIC升级的开启状态。 True:开启QUIC升级; Flase:关闭QUIC升级; 开启HTTPS监听器升级QUIC监听器能力 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) + :param enable_quic_upgrade: 参数解释:QUIC升级的开启状态。开启HTTPS监听器升级QUIC监听器能力。 取值范围: - true:开启QUIC升级。 - flase:关闭QUIC升级。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) :type enable_quic_upgrade: bool """ @@ -52,7 +52,7 @@ def __init__(self, quic_listener_id=None, enable_quic_upgrade=None): def quic_listener_id(self): """Gets the quic_listener_id of this ListenerQuicConfig. - 监听器关联的QUIC监听器ID。 创建时必选,更新时非必选。 指定的listener id必须已存在,且协议类型为QUIC,不能指定为null,否则与enable_quic_upgrade冲突。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) + 参数解释:监听器关联的QUIC监听器ID。 约束限制:指定的listener id必须已存在,且协议类型为QUIC,不能指定为null,否则与enable_quic_upgrade冲突。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) :return: The quic_listener_id of this ListenerQuicConfig. :rtype: str @@ -63,7 +63,7 @@ def quic_listener_id(self): def quic_listener_id(self, quic_listener_id): """Sets the quic_listener_id of this ListenerQuicConfig. - 监听器关联的QUIC监听器ID。 创建时必选,更新时非必选。 指定的listener id必须已存在,且协议类型为QUIC,不能指定为null,否则与enable_quic_upgrade冲突。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) + 参数解释:监听器关联的QUIC监听器ID。 约束限制:指定的listener id必须已存在,且协议类型为QUIC,不能指定为null,否则与enable_quic_upgrade冲突。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) :param quic_listener_id: The quic_listener_id of this ListenerQuicConfig. :type quic_listener_id: str @@ -74,7 +74,7 @@ def quic_listener_id(self, quic_listener_id): def enable_quic_upgrade(self): """Gets the enable_quic_upgrade of this ListenerQuicConfig. - QUIC升级的开启状态。 True:开启QUIC升级; Flase:关闭QUIC升级; 开启HTTPS监听器升级QUIC监听器能力 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) + 参数解释:QUIC升级的开启状态。开启HTTPS监听器升级QUIC监听器能力。 取值范围: - true:开启QUIC升级。 - flase:关闭QUIC升级。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) :return: The enable_quic_upgrade of this ListenerQuicConfig. :rtype: bool @@ -85,7 +85,7 @@ def enable_quic_upgrade(self): def enable_quic_upgrade(self, enable_quic_upgrade): """Sets the enable_quic_upgrade of this ListenerQuicConfig. - QUIC升级的开启状态。 True:开启QUIC升级; Flase:关闭QUIC升级; 开启HTTPS监听器升级QUIC监听器能力 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) + 参数解释:QUIC升级的开启状态。开启HTTPS监听器升级QUIC监听器能力。 取值范围: - true:开启QUIC升级。 - flase:关闭QUIC升级。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) :param enable_quic_upgrade: The enable_quic_upgrade of this ListenerQuicConfig. :type enable_quic_upgrade: bool diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/load_balancer.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/load_balancer.py index 23ad8c00be..426dc62046 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/load_balancer.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/load_balancer.py @@ -117,95 +117,95 @@ def __init__(self, id=None, description=None, provisioning_status=None, admin_st The model defined in huaweicloud sdk - :param id: 负载均衡器ID。 + :param id: 参数解释:负载均衡器ID。 :type id: str - :param description: 负载均衡器描述信息。 + :param description: 参数解释:负载均衡器描述信息。 :type description: str - :param provisioning_status: 负载均衡器的配置状态。 取值: - ACTIVE:使用中。 - PENDING_DELETE:删除中。 + :param provisioning_status: 参数解释:负载均衡器的配置状态。 取值范围: - ACTIVE:使用中。 - PENDING_DELETE:删除中。 :type provisioning_status: str - :param admin_state_up: 负载均衡器的启用状态。取值:false停用,true启用。 + :param admin_state_up: 参数解释:负载均衡器的启用状态。 取值范围: - true :启用。 - false:停用。 [不支持该字段,请勿使用。](tag:dt,dt_test) :type admin_state_up: bool - :param provider: 负载均衡器的生产者名称。固定为vlb。 + :param provider: 参数解释:负载均衡器的生产者名称。固定为vlb。 :type provider: str - :param pools: 负载均衡器直接关联的后端云服务器组的ID列表。 + :param pools: 参数解释:负载均衡器直接关联的后端云服务器组的ID列表。 :type pools: list[:class:`huaweicloudsdkelb.v3.PoolRef`] - :param listeners: 负载均衡器关联的监听器的ID列表。 + :param listeners: 参数解释:负载均衡器关联的监听器的ID列表。 :type listeners: list[:class:`huaweicloudsdkelb.v3.ListenerRef`] - :param operating_status: 负载均衡器的操作状态。 取值: - ONLINE:在线。 + :param operating_status: 参数解释:负载均衡器的操作状态。 取值范围: - ONLINE:在线。 - FROZEN:已冻结。 :type operating_status: str - :param name: 负载均衡器的名称。 + :param name: 参数解释:负载均衡器的名称。 :type name: str - :param project_id: 负载均衡器所属的项目ID。 + :param project_id: 参数解释:负载均衡器所属的项目ID。 :type project_id: str - :param vip_subnet_cidr_id: 负载均衡器所在子网的IPv4子网ID,也称为该负载均衡器实例的前端子网。 + :param vip_subnet_cidr_id: 参数解释:负载均衡器所在子网的IPv4子网ID,也称为该负载均衡器实例的前端子网。 :type vip_subnet_cidr_id: str - :param vip_address: 负载均衡器的IPv4虚拟IP地址。 + :param vip_address: 参数解释:负载均衡器的IPv4虚拟IP地址。 :type vip_address: str - :param vip_port_id: 负载均衡器的IPv4对应的port ID。 [创建弹性负载均衡时,会自动为负载均衡创建一个port并关联一个默认的安全组,这个安全组对所有流量不生效。 ](tag:dt,dt_test,hcso_dt) + :param vip_port_id: 参数解释:负载均衡器的IPv4对应的port ID。 [创建弹性负载均衡时,会自动为负载均衡创建一个port并关联一个默认的安全组,这个安全组对所有流量不生效。 ](tag:dt,dt_test,hcso_dt) :type vip_port_id: str - :param tags: 负载均衡的标签列表。 + :param tags: 参数解释:负载均衡的标签列表。 :type tags: list[:class:`huaweicloudsdkelb.v3.Tag`] - :param created_at: 负载均衡器的创建时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z' + :param created_at: 参数解释:负载均衡器的创建时间。 取值范围: 格式:yyyy-MM-dd'T'HH:mm:ss'Z' :type created_at: str - :param updated_at: 负载均衡器的更新时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z' + :param updated_at: 参数解释:负载均衡器的更新时间。 取值范围; 格式:yyyy-MM-dd'T'HH:mm:ss'Z' :type updated_at: str - :param guaranteed: 是否独享型LB。 取值: - false:共享型。 - true:独享型。 + :param guaranteed: 参数解释:是否独享型LB。 取值范围: - false:共享型。 - true:独享型。 :type guaranteed: bool - :param vpc_id: 负载均衡器所在VPC ID。 + :param vpc_id: 参数解释:负载均衡器所在VPC ID。 :type vpc_id: str - :param eips: 负载均衡器绑定的EIP。只支持绑定一个EIP。 注:该字段与publicips一致。 + :param eips: 参数解释:负载均衡器绑定的EIP。 约束限制:只支持绑定一个EIP。 注:该字段与publicips一致。 :type eips: list[:class:`huaweicloudsdkelb.v3.EipInfo`] - :param ipv6_vip_address: 双栈类型负载均衡器的IPv6地址。 [不支持IPv6,请勿使用。](tag:dt,dt_test) + :param ipv6_vip_address: 参数解释:双栈类型负载均衡器的IPv6地址。 [不支持IPv6,请勿使用。](tag:dt,dt_test) :type ipv6_vip_address: str - :param ipv6_vip_virsubnet_id: 双栈类型负载均衡器所在子网的IPv6网络ID,也称为该负载均衡器实例的前端子网。 [不支持IPv6,请勿使用。](tag:dt,dt_test) + :param ipv6_vip_virsubnet_id: 参数解释:双栈类型负载均衡器所在子网的IPv6网络ID,也称为该负载均衡器实例的前端子网。 [不支持IPv6,请勿使用。](tag:dt,dt_test) :type ipv6_vip_virsubnet_id: str - :param ipv6_vip_port_id: 双栈类型负载均衡器的IPv6对应的port ID。 [不支持IPv6,请勿使用。](tag:dt,dt_test) + :param ipv6_vip_port_id: 参数解释:双栈类型负载均衡器的IPv6对应的port ID。 [不支持IPv6,请勿使用。](tag:dt,dt_test) :type ipv6_vip_port_id: str - :param availability_zone_list: 负载均衡器所在的可用区列表。 + :param availability_zone_list: 参数解释:负载均衡器所在的可用区列表。 :type availability_zone_list: list[str] - :param enterprise_project_id: 企业项目ID。创建时不传则返回\"0\",表示资源属于default企业项目。 注:\"0\"并不是真实存在的企业项目ID,在创建、更新和查询时不能作为请求参数传入。 [不支持该字段,请勿使用](tag:dt,dt_test,hcso_dt) + :param enterprise_project_id: 参数解释:企业项目ID。创建时不传则返回\"0\",表示资源属于default企业项目。 注意:\"0\"并不是真实存在的企业项目ID,在创建、更新和查询时不能作为请求参数传入。 [不支持该字段,请勿使用](tag:dt,dt_test,hcso_dt) :type enterprise_project_id: str - :param billing_info: 资源账单信息。 取值: - 空:按需计费。 [- 非空:包周期计费, 包周期计费billing_info字段的格式为:order_id:product_id:region_id:project_id,如: CS2107161019CDJZZ:OFFI569702121789763584: az:057ef081eb00d2732fd1c01a9be75e6f 不支持该字段,请勿使用](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt,hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b) + :param billing_info: 参数解释:资源账单信息。 取值范围: - 空:按需计费。 [- 非空:包周期计费, 包周期计费billing_info字段的格式为:order_id:product_id:region_id:project_id,如: CS2107161019CDJZZ:OFFI569702121789763584: az:057ef081eb00d2732fd1c01a9be75e6f 不支持该字段,请勿使用](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt,hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b) :type billing_info: str - :param l4_flavor_id: 网络型规格ID。 对于弹性扩缩容实例,表示上限规格。 当传入的规格类型为L4,表示该实例为固定规格实例,按规格计费; 当传入的规格类型为L4_elastic_max,表示该实例为弹性实例,按LCU计费 [hsco场景下所有LB实例共享带宽,该字段无效,请勿使用。](tag:hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b) + :param l4_flavor_id: 参数解释:网络型规格ID。 对于弹性扩缩容实例,表示上限规格。 约束限制: - 当传入的规格类型为L4,表示该实例为固定规格实例,按规格计费; - 当传入的规格类型为L4_elastic_max,表示该实例为弹性实例,按LCU计费 [hsco场景下所有LB实例共享带宽,该字段无效,请勿使用。](tag:hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b) :type l4_flavor_id: str - :param l4_scale_flavor_id: 四层弹性Flavor ID。 不支持该字段,请勿使用。 + :param l4_scale_flavor_id: 参数解释:四层弹性Flavor ID。 不支持该字段,请勿使用。 :type l4_scale_flavor_id: str - :param l7_flavor_id: 应用型ID。 对于弹性扩缩容实例,表示上限规格ID。 当传入的规格类型为L7,表示该实例为固定规格实例,按规格计费; 当传入的规格类型为L7_elastic_max,表示该实例为弹性实例,按LCU计费 [hsco场景下所有LB实例共享带宽,该字段无效,请勿使用。](tag:hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b) + :param l7_flavor_id: 参数解释:应用型ID。 对于弹性扩缩容实例,表示上限规格ID。 约束限制: - 当传入的规格类型为L7,表示该实例为固定规格实例,按规格计费; - 当传入的规格类型为L7_elastic_max,表示该实例为弹性实例,按LCU计费 [hsco场景下所有LB实例共享带宽,该字段无效,请勿使用。](tag:hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b) :type l7_flavor_id: str - :param l7_scale_flavor_id: 七层弹性Flavor ID。 不支持该字段,请勿使用。 + :param l7_scale_flavor_id: 参数解释:七层弹性Flavor ID。 不支持该字段,请勿使用。 :type l7_scale_flavor_id: str - :param publicips: 负载均衡器绑定的公网IP。只支持绑定一个公网IP。 注:该字段与eips一致。 + :param publicips: 参数解释:负载均衡器绑定的公网IP。只支持绑定一个公网IP。 注:该字段与eips一致。 :type publicips: list[:class:`huaweicloudsdkelb.v3.PublicIpInfo`] - :param global_eips: 负载均衡器绑定的global eip。只支持绑定一个globaleip。 [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt,hk_vdf,fcs,ctc,ocb,hws_ocb) + :param global_eips: 参数解释:负载均衡器绑定的global eip。 约束限制:只支持绑定一个globaleip。 [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt,hk_vdf,fcs,ctc,ocb,hws_ocb) :type global_eips: list[:class:`huaweicloudsdkelb.v3.GlobalEipInfo`] - :param elb_virsubnet_ids: 下联面子网的网络ID列表。 + :param elb_virsubnet_ids: 参数解释:下联面子网的网络ID列表。 :type elb_virsubnet_ids: list[str] - :param elb_virsubnet_type: 下联面子网类型 - ipv4:ipv4 - dualstack:双栈 + :param elb_virsubnet_type: 参数解释:下联面子网类型。 取值范围: - ipv4:ipv4 - dualstack:双栈 :type elb_virsubnet_type: str - :param ip_target_enable: 是否启用跨VPC后端转发。 开启跨VPC后端转发后,后端服务器组不仅支持添加云上VPC内的服务器,还支持添加其他VPC、其他公有云、云下数据中心的服务器。 使用共享VPC的实例使用此特性时,需确保共享资源所有者已开通VPC对等连接,否则通信异常。 [仅独享型负载均衡器支持该特性。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) 取值: - true:开启。 - false:不开启。 使用说明: - 开启不能关闭。 [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) + :param ip_target_enable: 参数解释:是否启用跨VPC后端转发。 开启跨VPC后端转发后,后端服务器组不仅支持添加云上VPC内的服务器,还支持添加其他VPC、其他公有云、云下数据中心的服务器。 约束限制: - 开启后不能关闭。 - 使用共享VPC的实例使用此特性时,需确保共享资源所有者已开通VPC对等连接,否则通信异常。 [- 仅独享型负载均衡器支持该特性。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) 取值范围: - true:开启。 - false:不开启。 [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) :type ip_target_enable: bool - :param frozen_scene: 负载均衡器的冻结场景。 [若负载均衡器有多个冻结场景,用逗号分隔。 取值: - POLICE:公安冻结场景。 - ILLEGAL:违规冻结场景。 - VERIFY:客户未实名认证冻结场景。 - PARTNER:合作伙伴冻结(合作伙伴冻结子客户资源)。 - AREAR:欠费冻结场景。](tag:hws,hws_hk) [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt,ocb,hws_ocb) + :param frozen_scene: 参数解释:负载均衡器的冻结场景。 [若负载均衡器有多个冻结场景,用逗号分隔。 取值范围: - POLICE:公安冻结场景。 - ILLEGAL:违规冻结场景。 - VERIFY:客户未实名认证冻结场景。 - PARTNER:合作伙伴冻结(合作伙伴冻结子客户资源)。 - AREAR:欠费冻结场景。](tag:hws,hws_hk) [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt,ocb,hws_ocb) :type frozen_scene: str :param ipv6_bandwidth: :type ipv6_bandwidth: :class:`huaweicloudsdkelb.v3.BandwidthRef` - :param deletion_protection_enable: 是否开启删除保护。 取值: - false:不开启。 - true:开启。 >退场时需要先关闭所有资源的删除保护开关。 仅当前局点启用删除保护特性后才会返回该字段。 [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) + :param deletion_protection_enable: 参数解释:是否开启删除保护。 约束限制: - 仅当前局点启用删除保护特性后才会返回该字段。 - 退场时需要先关闭所有资源的删除保护开关。 取值范围: - false:不开启。 - true:开启。 >退场时需要先关闭所有资源的删除保护开关。 [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) :type deletion_protection_enable: bool :param autoscaling: :type autoscaling: :class:`huaweicloudsdkelb.v3.AutoscalingRef` - :param public_border_group: LB所属AZ组 + :param public_border_group: 参数解释:LB所属AZ组。 :type public_border_group: str - :param charge_mode: 收费模式。取值: - flavor:按规格计费 - lcu:按使用量计费 + :param charge_mode: 参数解释:负载均衡器实例的计费模式。 取值范围: - flavor:按规格计费 - lcu:按使用量计费 - 空值:若是共享型表示免费实例。若是独享型则与flavor模式一致,都是按规格计费。 :type charge_mode: str - :param waf_failure_action: WAF故障时的流量处理策略。discard:丢弃,forward: 转发到后端(默认) 使用说明:只有绑定了waf的LB实例,该字段才会生效。 [不支持该字段,请勿使用。](tag:hws_hk,hws_eu,hws_test,hcs,hcs_sm,hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b,hcso_dt,dt,dt_test,ocb,ctc,cmcc,tm,sbc,g42,hws_ocb,hk_sbc,hk_tm,hk_g42) + :param waf_failure_action: 参数解释:WAF故障时的流量处理策略。 约束限制:只有绑定了waf的LB实例,该字段才会生效。 取值范围:discard:丢弃,forward: 转发到后端。 默认取值:forward [不支持该字段,请勿使用。](tag:hws_hk,hws_eu,hws_test,hcs,hcs_sm,hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b,hcso_dt,dt,dt_test,ocb,ctc,cmcc,tm,sbc,g42,hws_ocb,hk_sbc,hk_tm,hk_g42) :type waf_failure_action: str - :param protection_status: 修改保护状态, 取值: - nonProtection: 不保护,默认值为nonProtection - consoleProtection: 控制台修改保护 + :param protection_status: 参数解释:修改保护状态。 取值范围: - nonProtection: 不保护。 - consoleProtection: 控制台修改保护。 默认取值:nonProtection :type protection_status: str - :param protection_reason: 设置保护的原因 >仅当protection_status为consoleProtection时有效。 + :param protection_reason: 参数解释:设置保护的原因 约束限制:仅当protection_status为consoleProtection时有效。 :type protection_reason: str - :param log_group_id: LB所绑定的logtank对应的group id + :param log_group_id: 参数解释:LB所绑定的logtank对应的group id :type log_group_id: str - :param log_topic_id: LB所绑定的logtank对应的topic id + :param log_topic_id: 参数解释:LB所绑定的logtank对应的topic id :type log_topic_id: str """ @@ -317,7 +317,7 @@ def __init__(self, id=None, description=None, provisioning_status=None, admin_st def id(self): """Gets the id of this LoadBalancer. - 负载均衡器ID。 + 参数解释:负载均衡器ID。 :return: The id of this LoadBalancer. :rtype: str @@ -328,7 +328,7 @@ def id(self): def id(self, id): """Sets the id of this LoadBalancer. - 负载均衡器ID。 + 参数解释:负载均衡器ID。 :param id: The id of this LoadBalancer. :type id: str @@ -339,7 +339,7 @@ def id(self, id): def description(self): """Gets the description of this LoadBalancer. - 负载均衡器描述信息。 + 参数解释:负载均衡器描述信息。 :return: The description of this LoadBalancer. :rtype: str @@ -350,7 +350,7 @@ def description(self): def description(self, description): """Sets the description of this LoadBalancer. - 负载均衡器描述信息。 + 参数解释:负载均衡器描述信息。 :param description: The description of this LoadBalancer. :type description: str @@ -361,7 +361,7 @@ def description(self, description): def provisioning_status(self): """Gets the provisioning_status of this LoadBalancer. - 负载均衡器的配置状态。 取值: - ACTIVE:使用中。 - PENDING_DELETE:删除中。 + 参数解释:负载均衡器的配置状态。 取值范围: - ACTIVE:使用中。 - PENDING_DELETE:删除中。 :return: The provisioning_status of this LoadBalancer. :rtype: str @@ -372,7 +372,7 @@ def provisioning_status(self): def provisioning_status(self, provisioning_status): """Sets the provisioning_status of this LoadBalancer. - 负载均衡器的配置状态。 取值: - ACTIVE:使用中。 - PENDING_DELETE:删除中。 + 参数解释:负载均衡器的配置状态。 取值范围: - ACTIVE:使用中。 - PENDING_DELETE:删除中。 :param provisioning_status: The provisioning_status of this LoadBalancer. :type provisioning_status: str @@ -383,7 +383,7 @@ def provisioning_status(self, provisioning_status): def admin_state_up(self): """Gets the admin_state_up of this LoadBalancer. - 负载均衡器的启用状态。取值:false停用,true启用。 + 参数解释:负载均衡器的启用状态。 取值范围: - true :启用。 - false:停用。 [不支持该字段,请勿使用。](tag:dt,dt_test) :return: The admin_state_up of this LoadBalancer. :rtype: bool @@ -394,7 +394,7 @@ def admin_state_up(self): def admin_state_up(self, admin_state_up): """Sets the admin_state_up of this LoadBalancer. - 负载均衡器的启用状态。取值:false停用,true启用。 + 参数解释:负载均衡器的启用状态。 取值范围: - true :启用。 - false:停用。 [不支持该字段,请勿使用。](tag:dt,dt_test) :param admin_state_up: The admin_state_up of this LoadBalancer. :type admin_state_up: bool @@ -405,7 +405,7 @@ def admin_state_up(self, admin_state_up): def provider(self): """Gets the provider of this LoadBalancer. - 负载均衡器的生产者名称。固定为vlb。 + 参数解释:负载均衡器的生产者名称。固定为vlb。 :return: The provider of this LoadBalancer. :rtype: str @@ -416,7 +416,7 @@ def provider(self): def provider(self, provider): """Sets the provider of this LoadBalancer. - 负载均衡器的生产者名称。固定为vlb。 + 参数解释:负载均衡器的生产者名称。固定为vlb。 :param provider: The provider of this LoadBalancer. :type provider: str @@ -427,7 +427,7 @@ def provider(self, provider): def pools(self): """Gets the pools of this LoadBalancer. - 负载均衡器直接关联的后端云服务器组的ID列表。 + 参数解释:负载均衡器直接关联的后端云服务器组的ID列表。 :return: The pools of this LoadBalancer. :rtype: list[:class:`huaweicloudsdkelb.v3.PoolRef`] @@ -438,7 +438,7 @@ def pools(self): def pools(self, pools): """Sets the pools of this LoadBalancer. - 负载均衡器直接关联的后端云服务器组的ID列表。 + 参数解释:负载均衡器直接关联的后端云服务器组的ID列表。 :param pools: The pools of this LoadBalancer. :type pools: list[:class:`huaweicloudsdkelb.v3.PoolRef`] @@ -449,7 +449,7 @@ def pools(self, pools): def listeners(self): """Gets the listeners of this LoadBalancer. - 负载均衡器关联的监听器的ID列表。 + 参数解释:负载均衡器关联的监听器的ID列表。 :return: The listeners of this LoadBalancer. :rtype: list[:class:`huaweicloudsdkelb.v3.ListenerRef`] @@ -460,7 +460,7 @@ def listeners(self): def listeners(self, listeners): """Sets the listeners of this LoadBalancer. - 负载均衡器关联的监听器的ID列表。 + 参数解释:负载均衡器关联的监听器的ID列表。 :param listeners: The listeners of this LoadBalancer. :type listeners: list[:class:`huaweicloudsdkelb.v3.ListenerRef`] @@ -471,7 +471,7 @@ def listeners(self, listeners): def operating_status(self): """Gets the operating_status of this LoadBalancer. - 负载均衡器的操作状态。 取值: - ONLINE:在线。 + 参数解释:负载均衡器的操作状态。 取值范围: - ONLINE:在线。 - FROZEN:已冻结。 :return: The operating_status of this LoadBalancer. :rtype: str @@ -482,7 +482,7 @@ def operating_status(self): def operating_status(self, operating_status): """Sets the operating_status of this LoadBalancer. - 负载均衡器的操作状态。 取值: - ONLINE:在线。 + 参数解释:负载均衡器的操作状态。 取值范围: - ONLINE:在线。 - FROZEN:已冻结。 :param operating_status: The operating_status of this LoadBalancer. :type operating_status: str @@ -493,7 +493,7 @@ def operating_status(self, operating_status): def name(self): """Gets the name of this LoadBalancer. - 负载均衡器的名称。 + 参数解释:负载均衡器的名称。 :return: The name of this LoadBalancer. :rtype: str @@ -504,7 +504,7 @@ def name(self): def name(self, name): """Sets the name of this LoadBalancer. - 负载均衡器的名称。 + 参数解释:负载均衡器的名称。 :param name: The name of this LoadBalancer. :type name: str @@ -515,7 +515,7 @@ def name(self, name): def project_id(self): """Gets the project_id of this LoadBalancer. - 负载均衡器所属的项目ID。 + 参数解释:负载均衡器所属的项目ID。 :return: The project_id of this LoadBalancer. :rtype: str @@ -526,7 +526,7 @@ def project_id(self): def project_id(self, project_id): """Sets the project_id of this LoadBalancer. - 负载均衡器所属的项目ID。 + 参数解释:负载均衡器所属的项目ID。 :param project_id: The project_id of this LoadBalancer. :type project_id: str @@ -537,7 +537,7 @@ def project_id(self, project_id): def vip_subnet_cidr_id(self): """Gets the vip_subnet_cidr_id of this LoadBalancer. - 负载均衡器所在子网的IPv4子网ID,也称为该负载均衡器实例的前端子网。 + 参数解释:负载均衡器所在子网的IPv4子网ID,也称为该负载均衡器实例的前端子网。 :return: The vip_subnet_cidr_id of this LoadBalancer. :rtype: str @@ -548,7 +548,7 @@ def vip_subnet_cidr_id(self): def vip_subnet_cidr_id(self, vip_subnet_cidr_id): """Sets the vip_subnet_cidr_id of this LoadBalancer. - 负载均衡器所在子网的IPv4子网ID,也称为该负载均衡器实例的前端子网。 + 参数解释:负载均衡器所在子网的IPv4子网ID,也称为该负载均衡器实例的前端子网。 :param vip_subnet_cidr_id: The vip_subnet_cidr_id of this LoadBalancer. :type vip_subnet_cidr_id: str @@ -559,7 +559,7 @@ def vip_subnet_cidr_id(self, vip_subnet_cidr_id): def vip_address(self): """Gets the vip_address of this LoadBalancer. - 负载均衡器的IPv4虚拟IP地址。 + 参数解释:负载均衡器的IPv4虚拟IP地址。 :return: The vip_address of this LoadBalancer. :rtype: str @@ -570,7 +570,7 @@ def vip_address(self): def vip_address(self, vip_address): """Sets the vip_address of this LoadBalancer. - 负载均衡器的IPv4虚拟IP地址。 + 参数解释:负载均衡器的IPv4虚拟IP地址。 :param vip_address: The vip_address of this LoadBalancer. :type vip_address: str @@ -581,7 +581,7 @@ def vip_address(self, vip_address): def vip_port_id(self): """Gets the vip_port_id of this LoadBalancer. - 负载均衡器的IPv4对应的port ID。 [创建弹性负载均衡时,会自动为负载均衡创建一个port并关联一个默认的安全组,这个安全组对所有流量不生效。 ](tag:dt,dt_test,hcso_dt) + 参数解释:负载均衡器的IPv4对应的port ID。 [创建弹性负载均衡时,会自动为负载均衡创建一个port并关联一个默认的安全组,这个安全组对所有流量不生效。 ](tag:dt,dt_test,hcso_dt) :return: The vip_port_id of this LoadBalancer. :rtype: str @@ -592,7 +592,7 @@ def vip_port_id(self): def vip_port_id(self, vip_port_id): """Sets the vip_port_id of this LoadBalancer. - 负载均衡器的IPv4对应的port ID。 [创建弹性负载均衡时,会自动为负载均衡创建一个port并关联一个默认的安全组,这个安全组对所有流量不生效。 ](tag:dt,dt_test,hcso_dt) + 参数解释:负载均衡器的IPv4对应的port ID。 [创建弹性负载均衡时,会自动为负载均衡创建一个port并关联一个默认的安全组,这个安全组对所有流量不生效。 ](tag:dt,dt_test,hcso_dt) :param vip_port_id: The vip_port_id of this LoadBalancer. :type vip_port_id: str @@ -603,7 +603,7 @@ def vip_port_id(self, vip_port_id): def tags(self): """Gets the tags of this LoadBalancer. - 负载均衡的标签列表。 + 参数解释:负载均衡的标签列表。 :return: The tags of this LoadBalancer. :rtype: list[:class:`huaweicloudsdkelb.v3.Tag`] @@ -614,7 +614,7 @@ def tags(self): def tags(self, tags): """Sets the tags of this LoadBalancer. - 负载均衡的标签列表。 + 参数解释:负载均衡的标签列表。 :param tags: The tags of this LoadBalancer. :type tags: list[:class:`huaweicloudsdkelb.v3.Tag`] @@ -625,7 +625,7 @@ def tags(self, tags): def created_at(self): """Gets the created_at of this LoadBalancer. - 负载均衡器的创建时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z' + 参数解释:负载均衡器的创建时间。 取值范围: 格式:yyyy-MM-dd'T'HH:mm:ss'Z' :return: The created_at of this LoadBalancer. :rtype: str @@ -636,7 +636,7 @@ def created_at(self): def created_at(self, created_at): """Sets the created_at of this LoadBalancer. - 负载均衡器的创建时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z' + 参数解释:负载均衡器的创建时间。 取值范围: 格式:yyyy-MM-dd'T'HH:mm:ss'Z' :param created_at: The created_at of this LoadBalancer. :type created_at: str @@ -647,7 +647,7 @@ def created_at(self, created_at): def updated_at(self): """Gets the updated_at of this LoadBalancer. - 负载均衡器的更新时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z' + 参数解释:负载均衡器的更新时间。 取值范围; 格式:yyyy-MM-dd'T'HH:mm:ss'Z' :return: The updated_at of this LoadBalancer. :rtype: str @@ -658,7 +658,7 @@ def updated_at(self): def updated_at(self, updated_at): """Sets the updated_at of this LoadBalancer. - 负载均衡器的更新时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z' + 参数解释:负载均衡器的更新时间。 取值范围; 格式:yyyy-MM-dd'T'HH:mm:ss'Z' :param updated_at: The updated_at of this LoadBalancer. :type updated_at: str @@ -669,7 +669,7 @@ def updated_at(self, updated_at): def guaranteed(self): """Gets the guaranteed of this LoadBalancer. - 是否独享型LB。 取值: - false:共享型。 - true:独享型。 + 参数解释:是否独享型LB。 取值范围: - false:共享型。 - true:独享型。 :return: The guaranteed of this LoadBalancer. :rtype: bool @@ -680,7 +680,7 @@ def guaranteed(self): def guaranteed(self, guaranteed): """Sets the guaranteed of this LoadBalancer. - 是否独享型LB。 取值: - false:共享型。 - true:独享型。 + 参数解释:是否独享型LB。 取值范围: - false:共享型。 - true:独享型。 :param guaranteed: The guaranteed of this LoadBalancer. :type guaranteed: bool @@ -691,7 +691,7 @@ def guaranteed(self, guaranteed): def vpc_id(self): """Gets the vpc_id of this LoadBalancer. - 负载均衡器所在VPC ID。 + 参数解释:负载均衡器所在VPC ID。 :return: The vpc_id of this LoadBalancer. :rtype: str @@ -702,7 +702,7 @@ def vpc_id(self): def vpc_id(self, vpc_id): """Sets the vpc_id of this LoadBalancer. - 负载均衡器所在VPC ID。 + 参数解释:负载均衡器所在VPC ID。 :param vpc_id: The vpc_id of this LoadBalancer. :type vpc_id: str @@ -713,7 +713,7 @@ def vpc_id(self, vpc_id): def eips(self): """Gets the eips of this LoadBalancer. - 负载均衡器绑定的EIP。只支持绑定一个EIP。 注:该字段与publicips一致。 + 参数解释:负载均衡器绑定的EIP。 约束限制:只支持绑定一个EIP。 注:该字段与publicips一致。 :return: The eips of this LoadBalancer. :rtype: list[:class:`huaweicloudsdkelb.v3.EipInfo`] @@ -724,7 +724,7 @@ def eips(self): def eips(self, eips): """Sets the eips of this LoadBalancer. - 负载均衡器绑定的EIP。只支持绑定一个EIP。 注:该字段与publicips一致。 + 参数解释:负载均衡器绑定的EIP。 约束限制:只支持绑定一个EIP。 注:该字段与publicips一致。 :param eips: The eips of this LoadBalancer. :type eips: list[:class:`huaweicloudsdkelb.v3.EipInfo`] @@ -735,7 +735,7 @@ def eips(self, eips): def ipv6_vip_address(self): """Gets the ipv6_vip_address of this LoadBalancer. - 双栈类型负载均衡器的IPv6地址。 [不支持IPv6,请勿使用。](tag:dt,dt_test) + 参数解释:双栈类型负载均衡器的IPv6地址。 [不支持IPv6,请勿使用。](tag:dt,dt_test) :return: The ipv6_vip_address of this LoadBalancer. :rtype: str @@ -746,7 +746,7 @@ def ipv6_vip_address(self): def ipv6_vip_address(self, ipv6_vip_address): """Sets the ipv6_vip_address of this LoadBalancer. - 双栈类型负载均衡器的IPv6地址。 [不支持IPv6,请勿使用。](tag:dt,dt_test) + 参数解释:双栈类型负载均衡器的IPv6地址。 [不支持IPv6,请勿使用。](tag:dt,dt_test) :param ipv6_vip_address: The ipv6_vip_address of this LoadBalancer. :type ipv6_vip_address: str @@ -757,7 +757,7 @@ def ipv6_vip_address(self, ipv6_vip_address): def ipv6_vip_virsubnet_id(self): """Gets the ipv6_vip_virsubnet_id of this LoadBalancer. - 双栈类型负载均衡器所在子网的IPv6网络ID,也称为该负载均衡器实例的前端子网。 [不支持IPv6,请勿使用。](tag:dt,dt_test) + 参数解释:双栈类型负载均衡器所在子网的IPv6网络ID,也称为该负载均衡器实例的前端子网。 [不支持IPv6,请勿使用。](tag:dt,dt_test) :return: The ipv6_vip_virsubnet_id of this LoadBalancer. :rtype: str @@ -768,7 +768,7 @@ def ipv6_vip_virsubnet_id(self): def ipv6_vip_virsubnet_id(self, ipv6_vip_virsubnet_id): """Sets the ipv6_vip_virsubnet_id of this LoadBalancer. - 双栈类型负载均衡器所在子网的IPv6网络ID,也称为该负载均衡器实例的前端子网。 [不支持IPv6,请勿使用。](tag:dt,dt_test) + 参数解释:双栈类型负载均衡器所在子网的IPv6网络ID,也称为该负载均衡器实例的前端子网。 [不支持IPv6,请勿使用。](tag:dt,dt_test) :param ipv6_vip_virsubnet_id: The ipv6_vip_virsubnet_id of this LoadBalancer. :type ipv6_vip_virsubnet_id: str @@ -779,7 +779,7 @@ def ipv6_vip_virsubnet_id(self, ipv6_vip_virsubnet_id): def ipv6_vip_port_id(self): """Gets the ipv6_vip_port_id of this LoadBalancer. - 双栈类型负载均衡器的IPv6对应的port ID。 [不支持IPv6,请勿使用。](tag:dt,dt_test) + 参数解释:双栈类型负载均衡器的IPv6对应的port ID。 [不支持IPv6,请勿使用。](tag:dt,dt_test) :return: The ipv6_vip_port_id of this LoadBalancer. :rtype: str @@ -790,7 +790,7 @@ def ipv6_vip_port_id(self): def ipv6_vip_port_id(self, ipv6_vip_port_id): """Sets the ipv6_vip_port_id of this LoadBalancer. - 双栈类型负载均衡器的IPv6对应的port ID。 [不支持IPv6,请勿使用。](tag:dt,dt_test) + 参数解释:双栈类型负载均衡器的IPv6对应的port ID。 [不支持IPv6,请勿使用。](tag:dt,dt_test) :param ipv6_vip_port_id: The ipv6_vip_port_id of this LoadBalancer. :type ipv6_vip_port_id: str @@ -801,7 +801,7 @@ def ipv6_vip_port_id(self, ipv6_vip_port_id): def availability_zone_list(self): """Gets the availability_zone_list of this LoadBalancer. - 负载均衡器所在的可用区列表。 + 参数解释:负载均衡器所在的可用区列表。 :return: The availability_zone_list of this LoadBalancer. :rtype: list[str] @@ -812,7 +812,7 @@ def availability_zone_list(self): def availability_zone_list(self, availability_zone_list): """Sets the availability_zone_list of this LoadBalancer. - 负载均衡器所在的可用区列表。 + 参数解释:负载均衡器所在的可用区列表。 :param availability_zone_list: The availability_zone_list of this LoadBalancer. :type availability_zone_list: list[str] @@ -823,7 +823,7 @@ def availability_zone_list(self, availability_zone_list): def enterprise_project_id(self): """Gets the enterprise_project_id of this LoadBalancer. - 企业项目ID。创建时不传则返回\"0\",表示资源属于default企业项目。 注:\"0\"并不是真实存在的企业项目ID,在创建、更新和查询时不能作为请求参数传入。 [不支持该字段,请勿使用](tag:dt,dt_test,hcso_dt) + 参数解释:企业项目ID。创建时不传则返回\"0\",表示资源属于default企业项目。 注意:\"0\"并不是真实存在的企业项目ID,在创建、更新和查询时不能作为请求参数传入。 [不支持该字段,请勿使用](tag:dt,dt_test,hcso_dt) :return: The enterprise_project_id of this LoadBalancer. :rtype: str @@ -834,7 +834,7 @@ def enterprise_project_id(self): def enterprise_project_id(self, enterprise_project_id): """Sets the enterprise_project_id of this LoadBalancer. - 企业项目ID。创建时不传则返回\"0\",表示资源属于default企业项目。 注:\"0\"并不是真实存在的企业项目ID,在创建、更新和查询时不能作为请求参数传入。 [不支持该字段,请勿使用](tag:dt,dt_test,hcso_dt) + 参数解释:企业项目ID。创建时不传则返回\"0\",表示资源属于default企业项目。 注意:\"0\"并不是真实存在的企业项目ID,在创建、更新和查询时不能作为请求参数传入。 [不支持该字段,请勿使用](tag:dt,dt_test,hcso_dt) :param enterprise_project_id: The enterprise_project_id of this LoadBalancer. :type enterprise_project_id: str @@ -845,7 +845,7 @@ def enterprise_project_id(self, enterprise_project_id): def billing_info(self): """Gets the billing_info of this LoadBalancer. - 资源账单信息。 取值: - 空:按需计费。 [- 非空:包周期计费, 包周期计费billing_info字段的格式为:order_id:product_id:region_id:project_id,如: CS2107161019CDJZZ:OFFI569702121789763584: az:057ef081eb00d2732fd1c01a9be75e6f 不支持该字段,请勿使用](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt,hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b) + 参数解释:资源账单信息。 取值范围: - 空:按需计费。 [- 非空:包周期计费, 包周期计费billing_info字段的格式为:order_id:product_id:region_id:project_id,如: CS2107161019CDJZZ:OFFI569702121789763584: az:057ef081eb00d2732fd1c01a9be75e6f 不支持该字段,请勿使用](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt,hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b) :return: The billing_info of this LoadBalancer. :rtype: str @@ -856,7 +856,7 @@ def billing_info(self): def billing_info(self, billing_info): """Sets the billing_info of this LoadBalancer. - 资源账单信息。 取值: - 空:按需计费。 [- 非空:包周期计费, 包周期计费billing_info字段的格式为:order_id:product_id:region_id:project_id,如: CS2107161019CDJZZ:OFFI569702121789763584: az:057ef081eb00d2732fd1c01a9be75e6f 不支持该字段,请勿使用](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt,hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b) + 参数解释:资源账单信息。 取值范围: - 空:按需计费。 [- 非空:包周期计费, 包周期计费billing_info字段的格式为:order_id:product_id:region_id:project_id,如: CS2107161019CDJZZ:OFFI569702121789763584: az:057ef081eb00d2732fd1c01a9be75e6f 不支持该字段,请勿使用](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt,hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b) :param billing_info: The billing_info of this LoadBalancer. :type billing_info: str @@ -867,7 +867,7 @@ def billing_info(self, billing_info): def l4_flavor_id(self): """Gets the l4_flavor_id of this LoadBalancer. - 网络型规格ID。 对于弹性扩缩容实例,表示上限规格。 当传入的规格类型为L4,表示该实例为固定规格实例,按规格计费; 当传入的规格类型为L4_elastic_max,表示该实例为弹性实例,按LCU计费 [hsco场景下所有LB实例共享带宽,该字段无效,请勿使用。](tag:hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b) + 参数解释:网络型规格ID。 对于弹性扩缩容实例,表示上限规格。 约束限制: - 当传入的规格类型为L4,表示该实例为固定规格实例,按规格计费; - 当传入的规格类型为L4_elastic_max,表示该实例为弹性实例,按LCU计费 [hsco场景下所有LB实例共享带宽,该字段无效,请勿使用。](tag:hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b) :return: The l4_flavor_id of this LoadBalancer. :rtype: str @@ -878,7 +878,7 @@ def l4_flavor_id(self): def l4_flavor_id(self, l4_flavor_id): """Sets the l4_flavor_id of this LoadBalancer. - 网络型规格ID。 对于弹性扩缩容实例,表示上限规格。 当传入的规格类型为L4,表示该实例为固定规格实例,按规格计费; 当传入的规格类型为L4_elastic_max,表示该实例为弹性实例,按LCU计费 [hsco场景下所有LB实例共享带宽,该字段无效,请勿使用。](tag:hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b) + 参数解释:网络型规格ID。 对于弹性扩缩容实例,表示上限规格。 约束限制: - 当传入的规格类型为L4,表示该实例为固定规格实例,按规格计费; - 当传入的规格类型为L4_elastic_max,表示该实例为弹性实例,按LCU计费 [hsco场景下所有LB实例共享带宽,该字段无效,请勿使用。](tag:hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b) :param l4_flavor_id: The l4_flavor_id of this LoadBalancer. :type l4_flavor_id: str @@ -889,7 +889,7 @@ def l4_flavor_id(self, l4_flavor_id): def l4_scale_flavor_id(self): """Gets the l4_scale_flavor_id of this LoadBalancer. - 四层弹性Flavor ID。 不支持该字段,请勿使用。 + 参数解释:四层弹性Flavor ID。 不支持该字段,请勿使用。 :return: The l4_scale_flavor_id of this LoadBalancer. :rtype: str @@ -900,7 +900,7 @@ def l4_scale_flavor_id(self): def l4_scale_flavor_id(self, l4_scale_flavor_id): """Sets the l4_scale_flavor_id of this LoadBalancer. - 四层弹性Flavor ID。 不支持该字段,请勿使用。 + 参数解释:四层弹性Flavor ID。 不支持该字段,请勿使用。 :param l4_scale_flavor_id: The l4_scale_flavor_id of this LoadBalancer. :type l4_scale_flavor_id: str @@ -911,7 +911,7 @@ def l4_scale_flavor_id(self, l4_scale_flavor_id): def l7_flavor_id(self): """Gets the l7_flavor_id of this LoadBalancer. - 应用型ID。 对于弹性扩缩容实例,表示上限规格ID。 当传入的规格类型为L7,表示该实例为固定规格实例,按规格计费; 当传入的规格类型为L7_elastic_max,表示该实例为弹性实例,按LCU计费 [hsco场景下所有LB实例共享带宽,该字段无效,请勿使用。](tag:hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b) + 参数解释:应用型ID。 对于弹性扩缩容实例,表示上限规格ID。 约束限制: - 当传入的规格类型为L7,表示该实例为固定规格实例,按规格计费; - 当传入的规格类型为L7_elastic_max,表示该实例为弹性实例,按LCU计费 [hsco场景下所有LB实例共享带宽,该字段无效,请勿使用。](tag:hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b) :return: The l7_flavor_id of this LoadBalancer. :rtype: str @@ -922,7 +922,7 @@ def l7_flavor_id(self): def l7_flavor_id(self, l7_flavor_id): """Sets the l7_flavor_id of this LoadBalancer. - 应用型ID。 对于弹性扩缩容实例,表示上限规格ID。 当传入的规格类型为L7,表示该实例为固定规格实例,按规格计费; 当传入的规格类型为L7_elastic_max,表示该实例为弹性实例,按LCU计费 [hsco场景下所有LB实例共享带宽,该字段无效,请勿使用。](tag:hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b) + 参数解释:应用型ID。 对于弹性扩缩容实例,表示上限规格ID。 约束限制: - 当传入的规格类型为L7,表示该实例为固定规格实例,按规格计费; - 当传入的规格类型为L7_elastic_max,表示该实例为弹性实例,按LCU计费 [hsco场景下所有LB实例共享带宽,该字段无效,请勿使用。](tag:hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b) :param l7_flavor_id: The l7_flavor_id of this LoadBalancer. :type l7_flavor_id: str @@ -933,7 +933,7 @@ def l7_flavor_id(self, l7_flavor_id): def l7_scale_flavor_id(self): """Gets the l7_scale_flavor_id of this LoadBalancer. - 七层弹性Flavor ID。 不支持该字段,请勿使用。 + 参数解释:七层弹性Flavor ID。 不支持该字段,请勿使用。 :return: The l7_scale_flavor_id of this LoadBalancer. :rtype: str @@ -944,7 +944,7 @@ def l7_scale_flavor_id(self): def l7_scale_flavor_id(self, l7_scale_flavor_id): """Sets the l7_scale_flavor_id of this LoadBalancer. - 七层弹性Flavor ID。 不支持该字段,请勿使用。 + 参数解释:七层弹性Flavor ID。 不支持该字段,请勿使用。 :param l7_scale_flavor_id: The l7_scale_flavor_id of this LoadBalancer. :type l7_scale_flavor_id: str @@ -955,7 +955,7 @@ def l7_scale_flavor_id(self, l7_scale_flavor_id): def publicips(self): """Gets the publicips of this LoadBalancer. - 负载均衡器绑定的公网IP。只支持绑定一个公网IP。 注:该字段与eips一致。 + 参数解释:负载均衡器绑定的公网IP。只支持绑定一个公网IP。 注:该字段与eips一致。 :return: The publicips of this LoadBalancer. :rtype: list[:class:`huaweicloudsdkelb.v3.PublicIpInfo`] @@ -966,7 +966,7 @@ def publicips(self): def publicips(self, publicips): """Sets the publicips of this LoadBalancer. - 负载均衡器绑定的公网IP。只支持绑定一个公网IP。 注:该字段与eips一致。 + 参数解释:负载均衡器绑定的公网IP。只支持绑定一个公网IP。 注:该字段与eips一致。 :param publicips: The publicips of this LoadBalancer. :type publicips: list[:class:`huaweicloudsdkelb.v3.PublicIpInfo`] @@ -977,7 +977,7 @@ def publicips(self, publicips): def global_eips(self): """Gets the global_eips of this LoadBalancer. - 负载均衡器绑定的global eip。只支持绑定一个globaleip。 [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt,hk_vdf,fcs,ctc,ocb,hws_ocb) + 参数解释:负载均衡器绑定的global eip。 约束限制:只支持绑定一个globaleip。 [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt,hk_vdf,fcs,ctc,ocb,hws_ocb) :return: The global_eips of this LoadBalancer. :rtype: list[:class:`huaweicloudsdkelb.v3.GlobalEipInfo`] @@ -988,7 +988,7 @@ def global_eips(self): def global_eips(self, global_eips): """Sets the global_eips of this LoadBalancer. - 负载均衡器绑定的global eip。只支持绑定一个globaleip。 [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt,hk_vdf,fcs,ctc,ocb,hws_ocb) + 参数解释:负载均衡器绑定的global eip。 约束限制:只支持绑定一个globaleip。 [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt,hk_vdf,fcs,ctc,ocb,hws_ocb) :param global_eips: The global_eips of this LoadBalancer. :type global_eips: list[:class:`huaweicloudsdkelb.v3.GlobalEipInfo`] @@ -999,7 +999,7 @@ def global_eips(self, global_eips): def elb_virsubnet_ids(self): """Gets the elb_virsubnet_ids of this LoadBalancer. - 下联面子网的网络ID列表。 + 参数解释:下联面子网的网络ID列表。 :return: The elb_virsubnet_ids of this LoadBalancer. :rtype: list[str] @@ -1010,7 +1010,7 @@ def elb_virsubnet_ids(self): def elb_virsubnet_ids(self, elb_virsubnet_ids): """Sets the elb_virsubnet_ids of this LoadBalancer. - 下联面子网的网络ID列表。 + 参数解释:下联面子网的网络ID列表。 :param elb_virsubnet_ids: The elb_virsubnet_ids of this LoadBalancer. :type elb_virsubnet_ids: list[str] @@ -1021,7 +1021,7 @@ def elb_virsubnet_ids(self, elb_virsubnet_ids): def elb_virsubnet_type(self): """Gets the elb_virsubnet_type of this LoadBalancer. - 下联面子网类型 - ipv4:ipv4 - dualstack:双栈 + 参数解释:下联面子网类型。 取值范围: - ipv4:ipv4 - dualstack:双栈 :return: The elb_virsubnet_type of this LoadBalancer. :rtype: str @@ -1032,7 +1032,7 @@ def elb_virsubnet_type(self): def elb_virsubnet_type(self, elb_virsubnet_type): """Sets the elb_virsubnet_type of this LoadBalancer. - 下联面子网类型 - ipv4:ipv4 - dualstack:双栈 + 参数解释:下联面子网类型。 取值范围: - ipv4:ipv4 - dualstack:双栈 :param elb_virsubnet_type: The elb_virsubnet_type of this LoadBalancer. :type elb_virsubnet_type: str @@ -1043,7 +1043,7 @@ def elb_virsubnet_type(self, elb_virsubnet_type): def ip_target_enable(self): """Gets the ip_target_enable of this LoadBalancer. - 是否启用跨VPC后端转发。 开启跨VPC后端转发后,后端服务器组不仅支持添加云上VPC内的服务器,还支持添加其他VPC、其他公有云、云下数据中心的服务器。 使用共享VPC的实例使用此特性时,需确保共享资源所有者已开通VPC对等连接,否则通信异常。 [仅独享型负载均衡器支持该特性。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) 取值: - true:开启。 - false:不开启。 使用说明: - 开启不能关闭。 [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) + 参数解释:是否启用跨VPC后端转发。 开启跨VPC后端转发后,后端服务器组不仅支持添加云上VPC内的服务器,还支持添加其他VPC、其他公有云、云下数据中心的服务器。 约束限制: - 开启后不能关闭。 - 使用共享VPC的实例使用此特性时,需确保共享资源所有者已开通VPC对等连接,否则通信异常。 [- 仅独享型负载均衡器支持该特性。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) 取值范围: - true:开启。 - false:不开启。 [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) :return: The ip_target_enable of this LoadBalancer. :rtype: bool @@ -1054,7 +1054,7 @@ def ip_target_enable(self): def ip_target_enable(self, ip_target_enable): """Sets the ip_target_enable of this LoadBalancer. - 是否启用跨VPC后端转发。 开启跨VPC后端转发后,后端服务器组不仅支持添加云上VPC内的服务器,还支持添加其他VPC、其他公有云、云下数据中心的服务器。 使用共享VPC的实例使用此特性时,需确保共享资源所有者已开通VPC对等连接,否则通信异常。 [仅独享型负载均衡器支持该特性。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) 取值: - true:开启。 - false:不开启。 使用说明: - 开启不能关闭。 [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) + 参数解释:是否启用跨VPC后端转发。 开启跨VPC后端转发后,后端服务器组不仅支持添加云上VPC内的服务器,还支持添加其他VPC、其他公有云、云下数据中心的服务器。 约束限制: - 开启后不能关闭。 - 使用共享VPC的实例使用此特性时,需确保共享资源所有者已开通VPC对等连接,否则通信异常。 [- 仅独享型负载均衡器支持该特性。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) 取值范围: - true:开启。 - false:不开启。 [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) :param ip_target_enable: The ip_target_enable of this LoadBalancer. :type ip_target_enable: bool @@ -1065,7 +1065,7 @@ def ip_target_enable(self, ip_target_enable): def frozen_scene(self): """Gets the frozen_scene of this LoadBalancer. - 负载均衡器的冻结场景。 [若负载均衡器有多个冻结场景,用逗号分隔。 取值: - POLICE:公安冻结场景。 - ILLEGAL:违规冻结场景。 - VERIFY:客户未实名认证冻结场景。 - PARTNER:合作伙伴冻结(合作伙伴冻结子客户资源)。 - AREAR:欠费冻结场景。](tag:hws,hws_hk) [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt,ocb,hws_ocb) + 参数解释:负载均衡器的冻结场景。 [若负载均衡器有多个冻结场景,用逗号分隔。 取值范围: - POLICE:公安冻结场景。 - ILLEGAL:违规冻结场景。 - VERIFY:客户未实名认证冻结场景。 - PARTNER:合作伙伴冻结(合作伙伴冻结子客户资源)。 - AREAR:欠费冻结场景。](tag:hws,hws_hk) [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt,ocb,hws_ocb) :return: The frozen_scene of this LoadBalancer. :rtype: str @@ -1076,7 +1076,7 @@ def frozen_scene(self): def frozen_scene(self, frozen_scene): """Sets the frozen_scene of this LoadBalancer. - 负载均衡器的冻结场景。 [若负载均衡器有多个冻结场景,用逗号分隔。 取值: - POLICE:公安冻结场景。 - ILLEGAL:违规冻结场景。 - VERIFY:客户未实名认证冻结场景。 - PARTNER:合作伙伴冻结(合作伙伴冻结子客户资源)。 - AREAR:欠费冻结场景。](tag:hws,hws_hk) [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt,ocb,hws_ocb) + 参数解释:负载均衡器的冻结场景。 [若负载均衡器有多个冻结场景,用逗号分隔。 取值范围: - POLICE:公安冻结场景。 - ILLEGAL:违规冻结场景。 - VERIFY:客户未实名认证冻结场景。 - PARTNER:合作伙伴冻结(合作伙伴冻结子客户资源)。 - AREAR:欠费冻结场景。](tag:hws,hws_hk) [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt,ocb,hws_ocb) :param frozen_scene: The frozen_scene of this LoadBalancer. :type frozen_scene: str @@ -1105,7 +1105,7 @@ def ipv6_bandwidth(self, ipv6_bandwidth): def deletion_protection_enable(self): """Gets the deletion_protection_enable of this LoadBalancer. - 是否开启删除保护。 取值: - false:不开启。 - true:开启。 >退场时需要先关闭所有资源的删除保护开关。 仅当前局点启用删除保护特性后才会返回该字段。 [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) + 参数解释:是否开启删除保护。 约束限制: - 仅当前局点启用删除保护特性后才会返回该字段。 - 退场时需要先关闭所有资源的删除保护开关。 取值范围: - false:不开启。 - true:开启。 >退场时需要先关闭所有资源的删除保护开关。 [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) :return: The deletion_protection_enable of this LoadBalancer. :rtype: bool @@ -1116,7 +1116,7 @@ def deletion_protection_enable(self): def deletion_protection_enable(self, deletion_protection_enable): """Sets the deletion_protection_enable of this LoadBalancer. - 是否开启删除保护。 取值: - false:不开启。 - true:开启。 >退场时需要先关闭所有资源的删除保护开关。 仅当前局点启用删除保护特性后才会返回该字段。 [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) + 参数解释:是否开启删除保护。 约束限制: - 仅当前局点启用删除保护特性后才会返回该字段。 - 退场时需要先关闭所有资源的删除保护开关。 取值范围: - false:不开启。 - true:开启。 >退场时需要先关闭所有资源的删除保护开关。 [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) :param deletion_protection_enable: The deletion_protection_enable of this LoadBalancer. :type deletion_protection_enable: bool @@ -1145,7 +1145,7 @@ def autoscaling(self, autoscaling): def public_border_group(self): """Gets the public_border_group of this LoadBalancer. - LB所属AZ组 + 参数解释:LB所属AZ组。 :return: The public_border_group of this LoadBalancer. :rtype: str @@ -1156,7 +1156,7 @@ def public_border_group(self): def public_border_group(self, public_border_group): """Sets the public_border_group of this LoadBalancer. - LB所属AZ组 + 参数解释:LB所属AZ组。 :param public_border_group: The public_border_group of this LoadBalancer. :type public_border_group: str @@ -1167,7 +1167,7 @@ def public_border_group(self, public_border_group): def charge_mode(self): """Gets the charge_mode of this LoadBalancer. - 收费模式。取值: - flavor:按规格计费 - lcu:按使用量计费 + 参数解释:负载均衡器实例的计费模式。 取值范围: - flavor:按规格计费 - lcu:按使用量计费 - 空值:若是共享型表示免费实例。若是独享型则与flavor模式一致,都是按规格计费。 :return: The charge_mode of this LoadBalancer. :rtype: str @@ -1178,7 +1178,7 @@ def charge_mode(self): def charge_mode(self, charge_mode): """Sets the charge_mode of this LoadBalancer. - 收费模式。取值: - flavor:按规格计费 - lcu:按使用量计费 + 参数解释:负载均衡器实例的计费模式。 取值范围: - flavor:按规格计费 - lcu:按使用量计费 - 空值:若是共享型表示免费实例。若是独享型则与flavor模式一致,都是按规格计费。 :param charge_mode: The charge_mode of this LoadBalancer. :type charge_mode: str @@ -1189,7 +1189,7 @@ def charge_mode(self, charge_mode): def waf_failure_action(self): """Gets the waf_failure_action of this LoadBalancer. - WAF故障时的流量处理策略。discard:丢弃,forward: 转发到后端(默认) 使用说明:只有绑定了waf的LB实例,该字段才会生效。 [不支持该字段,请勿使用。](tag:hws_hk,hws_eu,hws_test,hcs,hcs_sm,hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b,hcso_dt,dt,dt_test,ocb,ctc,cmcc,tm,sbc,g42,hws_ocb,hk_sbc,hk_tm,hk_g42) + 参数解释:WAF故障时的流量处理策略。 约束限制:只有绑定了waf的LB实例,该字段才会生效。 取值范围:discard:丢弃,forward: 转发到后端。 默认取值:forward [不支持该字段,请勿使用。](tag:hws_hk,hws_eu,hws_test,hcs,hcs_sm,hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b,hcso_dt,dt,dt_test,ocb,ctc,cmcc,tm,sbc,g42,hws_ocb,hk_sbc,hk_tm,hk_g42) :return: The waf_failure_action of this LoadBalancer. :rtype: str @@ -1200,7 +1200,7 @@ def waf_failure_action(self): def waf_failure_action(self, waf_failure_action): """Sets the waf_failure_action of this LoadBalancer. - WAF故障时的流量处理策略。discard:丢弃,forward: 转发到后端(默认) 使用说明:只有绑定了waf的LB实例,该字段才会生效。 [不支持该字段,请勿使用。](tag:hws_hk,hws_eu,hws_test,hcs,hcs_sm,hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b,hcso_dt,dt,dt_test,ocb,ctc,cmcc,tm,sbc,g42,hws_ocb,hk_sbc,hk_tm,hk_g42) + 参数解释:WAF故障时的流量处理策略。 约束限制:只有绑定了waf的LB实例,该字段才会生效。 取值范围:discard:丢弃,forward: 转发到后端。 默认取值:forward [不支持该字段,请勿使用。](tag:hws_hk,hws_eu,hws_test,hcs,hcs_sm,hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b,hcso_dt,dt,dt_test,ocb,ctc,cmcc,tm,sbc,g42,hws_ocb,hk_sbc,hk_tm,hk_g42) :param waf_failure_action: The waf_failure_action of this LoadBalancer. :type waf_failure_action: str @@ -1211,7 +1211,7 @@ def waf_failure_action(self, waf_failure_action): def protection_status(self): """Gets the protection_status of this LoadBalancer. - 修改保护状态, 取值: - nonProtection: 不保护,默认值为nonProtection - consoleProtection: 控制台修改保护 + 参数解释:修改保护状态。 取值范围: - nonProtection: 不保护。 - consoleProtection: 控制台修改保护。 默认取值:nonProtection :return: The protection_status of this LoadBalancer. :rtype: str @@ -1222,7 +1222,7 @@ def protection_status(self): def protection_status(self, protection_status): """Sets the protection_status of this LoadBalancer. - 修改保护状态, 取值: - nonProtection: 不保护,默认值为nonProtection - consoleProtection: 控制台修改保护 + 参数解释:修改保护状态。 取值范围: - nonProtection: 不保护。 - consoleProtection: 控制台修改保护。 默认取值:nonProtection :param protection_status: The protection_status of this LoadBalancer. :type protection_status: str @@ -1233,7 +1233,7 @@ def protection_status(self, protection_status): def protection_reason(self): """Gets the protection_reason of this LoadBalancer. - 设置保护的原因 >仅当protection_status为consoleProtection时有效。 + 参数解释:设置保护的原因 约束限制:仅当protection_status为consoleProtection时有效。 :return: The protection_reason of this LoadBalancer. :rtype: str @@ -1244,7 +1244,7 @@ def protection_reason(self): def protection_reason(self, protection_reason): """Sets the protection_reason of this LoadBalancer. - 设置保护的原因 >仅当protection_status为consoleProtection时有效。 + 参数解释:设置保护的原因 约束限制:仅当protection_status为consoleProtection时有效。 :param protection_reason: The protection_reason of this LoadBalancer. :type protection_reason: str @@ -1255,7 +1255,7 @@ def protection_reason(self, protection_reason): def log_group_id(self): """Gets the log_group_id of this LoadBalancer. - LB所绑定的logtank对应的group id + 参数解释:LB所绑定的logtank对应的group id :return: The log_group_id of this LoadBalancer. :rtype: str @@ -1266,7 +1266,7 @@ def log_group_id(self): def log_group_id(self, log_group_id): """Sets the log_group_id of this LoadBalancer. - LB所绑定的logtank对应的group id + 参数解释:LB所绑定的logtank对应的group id :param log_group_id: The log_group_id of this LoadBalancer. :type log_group_id: str @@ -1277,7 +1277,7 @@ def log_group_id(self, log_group_id): def log_topic_id(self): """Gets the log_topic_id of this LoadBalancer. - LB所绑定的logtank对应的topic id + 参数解释:LB所绑定的logtank对应的topic id :return: The log_topic_id of this LoadBalancer. :rtype: str @@ -1288,7 +1288,7 @@ def log_topic_id(self): def log_topic_id(self, log_topic_id): """Sets the log_topic_id of this LoadBalancer. - LB所绑定的logtank对应的topic id + 参数解释:LB所绑定的logtank对应的topic id :param log_topic_id: The log_topic_id of this LoadBalancer. :type log_topic_id: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/load_balancer_ref.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/load_balancer_ref.py index 08c0dbe7cc..d3fcfd96b2 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/load_balancer_ref.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/load_balancer_ref.py @@ -29,7 +29,7 @@ def __init__(self, id=None): The model defined in huaweicloud sdk - :param id: 负载均衡器ID。 + :param id: 参数解释:负载均衡器ID。 :type id: str """ @@ -45,7 +45,7 @@ def __init__(self, id=None): def id(self): """Gets the id of this LoadBalancerRef. - 负载均衡器ID。 + 参数解释:负载均衡器ID。 :return: The id of this LoadBalancerRef. :rtype: str @@ -56,7 +56,7 @@ def id(self): def id(self, id): """Sets the id of this LoadBalancerRef. - 负载均衡器ID。 + 参数解释:负载均衡器ID。 :param id: The id of this LoadBalancerRef. :type id: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/load_balancer_status_pool.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/load_balancer_status_pool.py index cf41fdeabd..4cf05183ac 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/load_balancer_status_pool.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/load_balancer_status_pool.py @@ -47,7 +47,7 @@ def __init__(self, provisioning_status=None, name=None, healthmonitor=None, memb :type healthmonitor: :class:`huaweicloudsdkelb.v3.LoadBalancerStatusHealthMonitor` :param members: 后端服务器状态信息。 :type members: list[:class:`huaweicloudsdkelb.v3.LoadBalancerStatusMember`] - :param id: 后端服务器组ID。 + :param id: 参数解释:后端服务器组ID。 :type id: str :param operating_status: 后端服务器组的操作状态。 取值: - ONLINE:创建时默认状态,表后端服务器组正常。 - DEGRADED:该后端服务器组下存在member为的operating_status=OFFLINE。 - DISABLED:负载均衡器或后端服务器组的admin_state_up=false。 说明: DEGRADED和DISABLED仅在当前接口返回, 查询后端服务器组详情等其他接口返回的operating_status字段不存在这两个状态值。 :type operating_status: str @@ -164,7 +164,7 @@ def members(self, members): def id(self): """Gets the id of this LoadBalancerStatusPool. - 后端服务器组ID。 + 参数解释:后端服务器组ID。 :return: The id of this LoadBalancerStatusPool. :rtype: str @@ -175,7 +175,7 @@ def id(self): def id(self, id): """Sets the id of this LoadBalancerStatusPool. - 后端服务器组ID。 + 参数解释:后端服务器组ID。 :param id: The id of this LoadBalancerStatusPool. :type id: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/logtank.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/logtank.py index 60afcf4ef0..59187bc926 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/logtank.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/logtank.py @@ -39,7 +39,7 @@ def __init__(self, id=None, project_id=None, loadbalancer_id=None, log_group_id= :param id: 云日志ID。 :type id: str - :param project_id: 项目ID。 + :param project_id: 参数解释:项目ID。 :type project_id: str :param loadbalancer_id: 负载均衡器ID。 :type loadbalancer_id: str @@ -90,7 +90,7 @@ def id(self, id): def project_id(self): """Gets the project_id of this Logtank. - 项目ID。 + 参数解释:项目ID。 :return: The project_id of this Logtank. :rtype: str @@ -101,7 +101,7 @@ def project_id(self): def project_id(self, project_id): """Sets the project_id of this Logtank. - 项目ID。 + 参数解释:项目ID。 :param project_id: The project_id of this Logtank. :type project_id: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/master_slave_health_monitor.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/master_slave_health_monitor.py index 9a9ed0731b..f25585725d 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/master_slave_health_monitor.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/master_slave_health_monitor.py @@ -53,13 +53,13 @@ def __init__(self, admin_state_up=None, delay=None, domain_name=None, expected_c The model defined in huaweicloud sdk - :param admin_state_up: 健康检查的管理状态。 取值: - true:表示开启健康检查,默认为true。 - false表示关闭健康检查。 + :param admin_state_up: 参数解释:健康检查的管理状态。 取值范围: - true:表示开启健康检查。 - false表示关闭健康检查。 默认取值:true。 :type admin_state_up: bool :param delay: 健康检查间隔。取值:1-50s。 :type delay: int :param domain_name: 发送健康检查请求的域名。 取值:以数字或字母开头,只能包含数字、字母、’-’、’.’。 默认为空,表示使用负载均衡器的vip作为http请求的目的地址。 使用说明:当type为HTTP/HTTPS时生效。 :type domain_name: str - :param expected_codes: 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:200。 仅支持HTTP/HTTPS/GRPC设置该字段,其他协议设置不会生效。 + :param expected_codes: 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:200。 仅支持HTTP/HTTPS/gRPC设置该字段,其他协议设置不会生效。 :type expected_codes: str :param http_method: HTTP请求方法。 取值:GET、HEAD、POST,默认GET。 使用说明:当type为HTTP/HTTPS时生效。 :type http_method: str @@ -116,7 +116,7 @@ def __init__(self, admin_state_up=None, delay=None, domain_name=None, expected_c def admin_state_up(self): """Gets the admin_state_up of this MasterSlaveHealthMonitor. - 健康检查的管理状态。 取值: - true:表示开启健康检查,默认为true。 - false表示关闭健康检查。 + 参数解释:健康检查的管理状态。 取值范围: - true:表示开启健康检查。 - false表示关闭健康检查。 默认取值:true。 :return: The admin_state_up of this MasterSlaveHealthMonitor. :rtype: bool @@ -127,7 +127,7 @@ def admin_state_up(self): def admin_state_up(self, admin_state_up): """Sets the admin_state_up of this MasterSlaveHealthMonitor. - 健康检查的管理状态。 取值: - true:表示开启健康检查,默认为true。 - false表示关闭健康检查。 + 参数解释:健康检查的管理状态。 取值范围: - true:表示开启健康检查。 - false表示关闭健康检查。 默认取值:true。 :param admin_state_up: The admin_state_up of this MasterSlaveHealthMonitor. :type admin_state_up: bool @@ -182,7 +182,7 @@ def domain_name(self, domain_name): def expected_codes(self): """Gets the expected_codes of this MasterSlaveHealthMonitor. - 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:200。 仅支持HTTP/HTTPS/GRPC设置该字段,其他协议设置不会生效。 + 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:200。 仅支持HTTP/HTTPS/gRPC设置该字段,其他协议设置不会生效。 :return: The expected_codes of this MasterSlaveHealthMonitor. :rtype: str @@ -193,7 +193,7 @@ def expected_codes(self): def expected_codes(self, expected_codes): """Sets the expected_codes of this MasterSlaveHealthMonitor. - 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:200。 仅支持HTTP/HTTPS/GRPC设置该字段,其他协议设置不会生效。 + 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:200。 仅支持HTTP/HTTPS/gRPC设置该字段,其他协议设置不会生效。 :param expected_codes: The expected_codes of this MasterSlaveHealthMonitor. :type expected_codes: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/member.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/member.py index da740b0768..c23cca2384 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/member.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/member.py @@ -57,35 +57,35 @@ def __init__(self, id=None, name=None, project_id=None, admin_state_up=None, sub The model defined in huaweicloud sdk - :param id: 后端服务器ID。 >说明: 此处并非ECS服务器的ID,而是ELB为绑定的后端服务器自动生成的member ID。 + :param id: 参数解释:后端服务器ID。 >说明: 此处并非ECS服务器的ID,而是ELB为绑定的后端服务器自动生成的member ID。 :type id: str - :param name: 后端服务器名称。注意:该名称并非ECS名称。 + :param name: 参数解释:后端服务器名称。 注意:该名称并非ECS名称。 :type name: str - :param project_id: 后端服务器所在的项目ID。 + :param project_id: 参数解释:后端服务器所在的项目ID。 :type project_id: str - :param admin_state_up: 后端云服务器的管理状态。 取值:true、false。 虽然创建、更新请求支持该字段,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 + :param admin_state_up: 参数解释:后端云服务器的管理状态。 约束限制:虽然创建、更新请求支持该字段,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 取值范围:true、false。 :type admin_state_up: bool - :param subnet_cidr_id: 后端云服务器所在的子网,可以是IPv4或IPv6子网。若是IPv4子网,使用对应子网的子网ID(neutron_subnet_id);若是IPv6子网,使用对应子网的网络ID(neutron_network_id)。 ipv4子网的子网ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到 ipv6子网的网络ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到 使用说明: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发特性已开启,则该字段可以不传,表示添加跨VPC的后端服务器。 此时address必须为IPv4地址,所在的pool的协议必须为TCP/HTTP/HTTPS。 [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test) + :param subnet_cidr_id: 参数解释:后端云服务器所在的子网,可以是IPv4或IPv6子网。若是IPv4子网,使用对应子网的子网ID(neutron_subnet_id);若是IPv6子网,使用对应子网的网络ID(neutron_network_id)。 ipv4子网的子网ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到 ipv6子网的网络ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到 约束限制: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发特性已开启,则该字段可以不传,表示添加跨VPC的后端服务器。 此时address必须为IPv4地址,所在的pool的协议必须为TCP/HTTP/HTTPS。 [- 网关型LB,即pool协议为IP时,必须指定该子网,且必须和负载均衡器的子网在同一个VPC下,但不能相同。](tag:hws_eu) [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test) :type subnet_cidr_id: str - :param protocol_port: 后端服务器业务端口。 >在开启端口透传的pool下创建member传该字段不生效,可不传该字段。 + :param protocol_port: 参数解释:后端服务器业务端口。 [约束限制:网关型LB,即pool协议为IP时,protocol_port必须设置为0。](tag:hws_eu) >在开启端口透传的pool下创建member传该字段不生效,可不传该字段。 :type protocol_port: int - :param weight: 后端云服务器的权重,请求将根据pool配置的负载均衡算法和后端云服务器的权重进行负载分发。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 取值:0-100,默认1。 使用说明:若所在pool的lb_algorithm取值为SOURCE_IP,该字段无效。 + :param weight: 参数解释:后端云服务器的权重,请求将根据pool配置的负载均衡算法和后端云服务器的权重进行负载分发。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 约束限制:若所在pool的lb_algorithm取值为SOURCE_IP,该字段无效。 取值范围:0-100 默认取值:1。 :type weight: int - :param address: 后端服务器对应的IP地址。 使用说明: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址可以是私网IPv4或IPv6。 但必须在subnet_cidr_id对应的子网网段中。且只能指定为关联ECS的主网卡内网IP。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test) + :param address: 参数解释:后端服务器对应的IP地址。 约束限制: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址可以是私网IPv4或IPv6。 但必须在subnet_cidr_id对应的子网网段中。且只能指定为关联ECS的主网卡内网IP。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test) :type address: str - :param ip_version: 当前后端服务器的IP地址版本,由后端系统自动根据传入的address字段确定。取值:v4、v6。 + :param ip_version: 参数解释:当前后端服务器的IP地址版本,由后端系统自动根据传入的address字段确定。 取值范围:v4、v6。 :type ip_version: str - :param operating_status: 后端云服务器的健康状态。当status非空时,以status字段中监听器粒度的健康检查状态优先。 取值: - ONLINE:后端云服务器正常。 - NO_MONITOR:后端云服务器所在的服务器组没有健康检查器。 - OFFLINE:后端云服务器关联的ECS服务器不存在或已关机。 + :param operating_status: 参数解释:后端云服务器的健康状态。当status非空时,以status字段中监听器粒度的健康检查状态优先。 取值范围: - ONLINE:后端云服务器正常。 - NO_MONITOR:后端云服务器所在的服务器组没有健康检查器。 - OFFLINE:后端云服务器关联的ECS服务器不存在或已关机。 :type operating_status: str - :param status: 后端云服务器监听器粒度的的健康状态。 若绑定的监听器在该字段中,则以该字段中监听器对应的operating_stauts为准。 若绑定的监听器不在该字段中,则以外层的operating_status为准。 + :param status: 参数解释:后端云服务器监听器粒度的的健康状态。 约束限制: - 若绑定的监听器在该字段中,则以该字段中监听器对应的operating_stauts为准。 - 若绑定的监听器不在该字段中,则以外层的operating_status为准。 :type status: list[:class:`huaweicloudsdkelb.v3.MemberStatus`] - :param created_at: 创建时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) + :param created_at: 参数解释:创建时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) :type created_at: str - :param updated_at: 更新时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) + :param updated_at: 参数解释:更新时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) :type updated_at: str - :param member_type: 后端云服务器的类型。 取值: - ip:跨VPC的member。 - instance:关联到ECS的member。 + :param member_type: 参数解释:后端云服务器的类型。 取值范围: - ip:跨VPC的member。 - instance:关联到ECS的member。 :type member_type: str - :param instance_id: member关联的实例ID。空表示member关联的实例为非真实设备 (如:跨VPC场景) + :param instance_id: 参数解释:member关联的实例ID。空表示member关联的实例为非真实设备 (如:跨VPC场景) :type instance_id: str """ @@ -133,7 +133,7 @@ def __init__(self, id=None, name=None, project_id=None, admin_state_up=None, sub def id(self): """Gets the id of this Member. - 后端服务器ID。 >说明: 此处并非ECS服务器的ID,而是ELB为绑定的后端服务器自动生成的member ID。 + 参数解释:后端服务器ID。 >说明: 此处并非ECS服务器的ID,而是ELB为绑定的后端服务器自动生成的member ID。 :return: The id of this Member. :rtype: str @@ -144,7 +144,7 @@ def id(self): def id(self, id): """Sets the id of this Member. - 后端服务器ID。 >说明: 此处并非ECS服务器的ID,而是ELB为绑定的后端服务器自动生成的member ID。 + 参数解释:后端服务器ID。 >说明: 此处并非ECS服务器的ID,而是ELB为绑定的后端服务器自动生成的member ID。 :param id: The id of this Member. :type id: str @@ -155,7 +155,7 @@ def id(self, id): def name(self): """Gets the name of this Member. - 后端服务器名称。注意:该名称并非ECS名称。 + 参数解释:后端服务器名称。 注意:该名称并非ECS名称。 :return: The name of this Member. :rtype: str @@ -166,7 +166,7 @@ def name(self): def name(self, name): """Sets the name of this Member. - 后端服务器名称。注意:该名称并非ECS名称。 + 参数解释:后端服务器名称。 注意:该名称并非ECS名称。 :param name: The name of this Member. :type name: str @@ -177,7 +177,7 @@ def name(self, name): def project_id(self): """Gets the project_id of this Member. - 后端服务器所在的项目ID。 + 参数解释:后端服务器所在的项目ID。 :return: The project_id of this Member. :rtype: str @@ -188,7 +188,7 @@ def project_id(self): def project_id(self, project_id): """Sets the project_id of this Member. - 后端服务器所在的项目ID。 + 参数解释:后端服务器所在的项目ID。 :param project_id: The project_id of this Member. :type project_id: str @@ -199,7 +199,7 @@ def project_id(self, project_id): def admin_state_up(self): """Gets the admin_state_up of this Member. - 后端云服务器的管理状态。 取值:true、false。 虽然创建、更新请求支持该字段,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 + 参数解释:后端云服务器的管理状态。 约束限制:虽然创建、更新请求支持该字段,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 取值范围:true、false。 :return: The admin_state_up of this Member. :rtype: bool @@ -210,7 +210,7 @@ def admin_state_up(self): def admin_state_up(self, admin_state_up): """Sets the admin_state_up of this Member. - 后端云服务器的管理状态。 取值:true、false。 虽然创建、更新请求支持该字段,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 + 参数解释:后端云服务器的管理状态。 约束限制:虽然创建、更新请求支持该字段,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 取值范围:true、false。 :param admin_state_up: The admin_state_up of this Member. :type admin_state_up: bool @@ -221,7 +221,7 @@ def admin_state_up(self, admin_state_up): def subnet_cidr_id(self): """Gets the subnet_cidr_id of this Member. - 后端云服务器所在的子网,可以是IPv4或IPv6子网。若是IPv4子网,使用对应子网的子网ID(neutron_subnet_id);若是IPv6子网,使用对应子网的网络ID(neutron_network_id)。 ipv4子网的子网ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到 ipv6子网的网络ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到 使用说明: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发特性已开启,则该字段可以不传,表示添加跨VPC的后端服务器。 此时address必须为IPv4地址,所在的pool的协议必须为TCP/HTTP/HTTPS。 [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test) + 参数解释:后端云服务器所在的子网,可以是IPv4或IPv6子网。若是IPv4子网,使用对应子网的子网ID(neutron_subnet_id);若是IPv6子网,使用对应子网的网络ID(neutron_network_id)。 ipv4子网的子网ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到 ipv6子网的网络ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到 约束限制: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发特性已开启,则该字段可以不传,表示添加跨VPC的后端服务器。 此时address必须为IPv4地址,所在的pool的协议必须为TCP/HTTP/HTTPS。 [- 网关型LB,即pool协议为IP时,必须指定该子网,且必须和负载均衡器的子网在同一个VPC下,但不能相同。](tag:hws_eu) [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test) :return: The subnet_cidr_id of this Member. :rtype: str @@ -232,7 +232,7 @@ def subnet_cidr_id(self): def subnet_cidr_id(self, subnet_cidr_id): """Sets the subnet_cidr_id of this Member. - 后端云服务器所在的子网,可以是IPv4或IPv6子网。若是IPv4子网,使用对应子网的子网ID(neutron_subnet_id);若是IPv6子网,使用对应子网的网络ID(neutron_network_id)。 ipv4子网的子网ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到 ipv6子网的网络ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到 使用说明: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发特性已开启,则该字段可以不传,表示添加跨VPC的后端服务器。 此时address必须为IPv4地址,所在的pool的协议必须为TCP/HTTP/HTTPS。 [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test) + 参数解释:后端云服务器所在的子网,可以是IPv4或IPv6子网。若是IPv4子网,使用对应子网的子网ID(neutron_subnet_id);若是IPv6子网,使用对应子网的网络ID(neutron_network_id)。 ipv4子网的子网ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到 ipv6子网的网络ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到 约束限制: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发特性已开启,则该字段可以不传,表示添加跨VPC的后端服务器。 此时address必须为IPv4地址,所在的pool的协议必须为TCP/HTTP/HTTPS。 [- 网关型LB,即pool协议为IP时,必须指定该子网,且必须和负载均衡器的子网在同一个VPC下,但不能相同。](tag:hws_eu) [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test) :param subnet_cidr_id: The subnet_cidr_id of this Member. :type subnet_cidr_id: str @@ -243,7 +243,7 @@ def subnet_cidr_id(self, subnet_cidr_id): def protocol_port(self): """Gets the protocol_port of this Member. - 后端服务器业务端口。 >在开启端口透传的pool下创建member传该字段不生效,可不传该字段。 + 参数解释:后端服务器业务端口。 [约束限制:网关型LB,即pool协议为IP时,protocol_port必须设置为0。](tag:hws_eu) >在开启端口透传的pool下创建member传该字段不生效,可不传该字段。 :return: The protocol_port of this Member. :rtype: int @@ -254,7 +254,7 @@ def protocol_port(self): def protocol_port(self, protocol_port): """Sets the protocol_port of this Member. - 后端服务器业务端口。 >在开启端口透传的pool下创建member传该字段不生效,可不传该字段。 + 参数解释:后端服务器业务端口。 [约束限制:网关型LB,即pool协议为IP时,protocol_port必须设置为0。](tag:hws_eu) >在开启端口透传的pool下创建member传该字段不生效,可不传该字段。 :param protocol_port: The protocol_port of this Member. :type protocol_port: int @@ -265,7 +265,7 @@ def protocol_port(self, protocol_port): def weight(self): """Gets the weight of this Member. - 后端云服务器的权重,请求将根据pool配置的负载均衡算法和后端云服务器的权重进行负载分发。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 取值:0-100,默认1。 使用说明:若所在pool的lb_algorithm取值为SOURCE_IP,该字段无效。 + 参数解释:后端云服务器的权重,请求将根据pool配置的负载均衡算法和后端云服务器的权重进行负载分发。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 约束限制:若所在pool的lb_algorithm取值为SOURCE_IP,该字段无效。 取值范围:0-100 默认取值:1。 :return: The weight of this Member. :rtype: int @@ -276,7 +276,7 @@ def weight(self): def weight(self, weight): """Sets the weight of this Member. - 后端云服务器的权重,请求将根据pool配置的负载均衡算法和后端云服务器的权重进行负载分发。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 取值:0-100,默认1。 使用说明:若所在pool的lb_algorithm取值为SOURCE_IP,该字段无效。 + 参数解释:后端云服务器的权重,请求将根据pool配置的负载均衡算法和后端云服务器的权重进行负载分发。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 约束限制:若所在pool的lb_algorithm取值为SOURCE_IP,该字段无效。 取值范围:0-100 默认取值:1。 :param weight: The weight of this Member. :type weight: int @@ -287,7 +287,7 @@ def weight(self, weight): def address(self): """Gets the address of this Member. - 后端服务器对应的IP地址。 使用说明: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址可以是私网IPv4或IPv6。 但必须在subnet_cidr_id对应的子网网段中。且只能指定为关联ECS的主网卡内网IP。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test) + 参数解释:后端服务器对应的IP地址。 约束限制: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址可以是私网IPv4或IPv6。 但必须在subnet_cidr_id对应的子网网段中。且只能指定为关联ECS的主网卡内网IP。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test) :return: The address of this Member. :rtype: str @@ -298,7 +298,7 @@ def address(self): def address(self, address): """Sets the address of this Member. - 后端服务器对应的IP地址。 使用说明: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址可以是私网IPv4或IPv6。 但必须在subnet_cidr_id对应的子网网段中。且只能指定为关联ECS的主网卡内网IP。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test) + 参数解释:后端服务器对应的IP地址。 约束限制: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址可以是私网IPv4或IPv6。 但必须在subnet_cidr_id对应的子网网段中。且只能指定为关联ECS的主网卡内网IP。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test) :param address: The address of this Member. :type address: str @@ -309,7 +309,7 @@ def address(self, address): def ip_version(self): """Gets the ip_version of this Member. - 当前后端服务器的IP地址版本,由后端系统自动根据传入的address字段确定。取值:v4、v6。 + 参数解释:当前后端服务器的IP地址版本,由后端系统自动根据传入的address字段确定。 取值范围:v4、v6。 :return: The ip_version of this Member. :rtype: str @@ -320,7 +320,7 @@ def ip_version(self): def ip_version(self, ip_version): """Sets the ip_version of this Member. - 当前后端服务器的IP地址版本,由后端系统自动根据传入的address字段确定。取值:v4、v6。 + 参数解释:当前后端服务器的IP地址版本,由后端系统自动根据传入的address字段确定。 取值范围:v4、v6。 :param ip_version: The ip_version of this Member. :type ip_version: str @@ -331,7 +331,7 @@ def ip_version(self, ip_version): def operating_status(self): """Gets the operating_status of this Member. - 后端云服务器的健康状态。当status非空时,以status字段中监听器粒度的健康检查状态优先。 取值: - ONLINE:后端云服务器正常。 - NO_MONITOR:后端云服务器所在的服务器组没有健康检查器。 - OFFLINE:后端云服务器关联的ECS服务器不存在或已关机。 + 参数解释:后端云服务器的健康状态。当status非空时,以status字段中监听器粒度的健康检查状态优先。 取值范围: - ONLINE:后端云服务器正常。 - NO_MONITOR:后端云服务器所在的服务器组没有健康检查器。 - OFFLINE:后端云服务器关联的ECS服务器不存在或已关机。 :return: The operating_status of this Member. :rtype: str @@ -342,7 +342,7 @@ def operating_status(self): def operating_status(self, operating_status): """Sets the operating_status of this Member. - 后端云服务器的健康状态。当status非空时,以status字段中监听器粒度的健康检查状态优先。 取值: - ONLINE:后端云服务器正常。 - NO_MONITOR:后端云服务器所在的服务器组没有健康检查器。 - OFFLINE:后端云服务器关联的ECS服务器不存在或已关机。 + 参数解释:后端云服务器的健康状态。当status非空时,以status字段中监听器粒度的健康检查状态优先。 取值范围: - ONLINE:后端云服务器正常。 - NO_MONITOR:后端云服务器所在的服务器组没有健康检查器。 - OFFLINE:后端云服务器关联的ECS服务器不存在或已关机。 :param operating_status: The operating_status of this Member. :type operating_status: str @@ -353,7 +353,7 @@ def operating_status(self, operating_status): def status(self): """Gets the status of this Member. - 后端云服务器监听器粒度的的健康状态。 若绑定的监听器在该字段中,则以该字段中监听器对应的operating_stauts为准。 若绑定的监听器不在该字段中,则以外层的operating_status为准。 + 参数解释:后端云服务器监听器粒度的的健康状态。 约束限制: - 若绑定的监听器在该字段中,则以该字段中监听器对应的operating_stauts为准。 - 若绑定的监听器不在该字段中,则以外层的operating_status为准。 :return: The status of this Member. :rtype: list[:class:`huaweicloudsdkelb.v3.MemberStatus`] @@ -364,7 +364,7 @@ def status(self): def status(self, status): """Sets the status of this Member. - 后端云服务器监听器粒度的的健康状态。 若绑定的监听器在该字段中,则以该字段中监听器对应的operating_stauts为准。 若绑定的监听器不在该字段中,则以外层的operating_status为准。 + 参数解释:后端云服务器监听器粒度的的健康状态。 约束限制: - 若绑定的监听器在该字段中,则以该字段中监听器对应的operating_stauts为准。 - 若绑定的监听器不在该字段中,则以外层的operating_status为准。 :param status: The status of this Member. :type status: list[:class:`huaweicloudsdkelb.v3.MemberStatus`] @@ -375,7 +375,7 @@ def status(self, status): def created_at(self): """Gets the created_at of this Member. - 创建时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) + 参数解释:创建时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) :return: The created_at of this Member. :rtype: str @@ -386,7 +386,7 @@ def created_at(self): def created_at(self, created_at): """Sets the created_at of this Member. - 创建时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) + 参数解释:创建时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) :param created_at: The created_at of this Member. :type created_at: str @@ -397,7 +397,7 @@ def created_at(self, created_at): def updated_at(self): """Gets the updated_at of this Member. - 更新时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) + 参数解释:更新时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) :return: The updated_at of this Member. :rtype: str @@ -408,7 +408,7 @@ def updated_at(self): def updated_at(self, updated_at): """Sets the updated_at of this Member. - 更新时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) + 参数解释:更新时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) :param updated_at: The updated_at of this Member. :type updated_at: str @@ -419,7 +419,7 @@ def updated_at(self, updated_at): def member_type(self): """Gets the member_type of this Member. - 后端云服务器的类型。 取值: - ip:跨VPC的member。 - instance:关联到ECS的member。 + 参数解释:后端云服务器的类型。 取值范围: - ip:跨VPC的member。 - instance:关联到ECS的member。 :return: The member_type of this Member. :rtype: str @@ -430,7 +430,7 @@ def member_type(self): def member_type(self, member_type): """Sets the member_type of this Member. - 后端云服务器的类型。 取值: - ip:跨VPC的member。 - instance:关联到ECS的member。 + 参数解释:后端云服务器的类型。 取值范围: - ip:跨VPC的member。 - instance:关联到ECS的member。 :param member_type: The member_type of this Member. :type member_type: str @@ -441,7 +441,7 @@ def member_type(self, member_type): def instance_id(self): """Gets the instance_id of this Member. - member关联的实例ID。空表示member关联的实例为非真实设备 (如:跨VPC场景) + 参数解释:member关联的实例ID。空表示member关联的实例为非真实设备 (如:跨VPC场景) :return: The instance_id of this Member. :rtype: str @@ -452,7 +452,7 @@ def instance_id(self): def instance_id(self, instance_id): """Sets the instance_id of this Member. - member关联的实例ID。空表示member关联的实例为非真实设备 (如:跨VPC场景) + 参数解释:member关联的实例ID。空表示member关联的实例为非真实设备 (如:跨VPC场景) :param instance_id: The instance_id of this Member. :type instance_id: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/member_info.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/member_info.py index d49925566a..877098c3b9 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/member_info.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/member_info.py @@ -77,9 +77,9 @@ def __init__(self, id=None, name=None, project_id=None, pool_id=None, admin_stat :type pool_id: str :param admin_state_up: 后端云服务器的管理状态。 取值:true、false。 虽然创建、更新请求支持该字段,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 :type admin_state_up: bool - :param subnet_cidr_id: 后端云服务器所在的子网,可以是IPv4或IPv6子网。若是IPv4子网,使用对应子网的子网ID(neutron_subnet_id);若是IPv6子网,使用对应子网的网络ID(neutron_network_id)。 ipv4子网的子网ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到 ipv6子网的网络ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到 使用说明: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发特性已开启,则该字段可以不传,表示添加跨VPC的后端服务器。 此时address必须为IPv4地址,所在的pool的协议必须为TCP/HTTP/HTTPS。 [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test) + :param subnet_cidr_id: 后端云服务器所在的子网,可以是IPv4或IPv6子网。若是IPv4子网,使用对应子网的子网ID(neutron_subnet_id);若是IPv6子网,使用对应子网的网络ID(neutron_network_id)。 ipv4子网的子网ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到 ipv6子网的网络ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到 使用说明: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发特性已开启,则该字段可以不传,表示添加跨VPC的后端服务器。 此时address必须为IPv4地址,所在的pool的协议必须为TCP/HTTP/HTTPS。 [- 网关型LB,即pool协议为IP时,必须指定该子网,且必须和负载均衡器的子网在同一个VPC下,但不能相同。](tag:hws_eu) [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test) :type subnet_cidr_id: str - :param protocol_port: 后端服务器业务端口。 >在开启端口透传的pool下创建member传该字段不生效,可不传该字段。 + :param protocol_port: 后端服务器业务端口。 [网关型LB,即pool协议为IP时,protocol_port必须设置为0。](tag:hws_eu) >在开启端口透传的pool下创建member传该字段不生效,可不传该字段。 :type protocol_port: int :param weight: 后端云服务器的权重,请求将根据pool配置的负载均衡算法和后端云服务器的权重进行负载分发。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 取值:0-100,默认1。 使用说明:若所在pool的lb_algorithm取值为SOURCE_IP,该字段无效。 :type weight: int @@ -278,7 +278,7 @@ def admin_state_up(self, admin_state_up): def subnet_cidr_id(self): """Gets the subnet_cidr_id of this MemberInfo. - 后端云服务器所在的子网,可以是IPv4或IPv6子网。若是IPv4子网,使用对应子网的子网ID(neutron_subnet_id);若是IPv6子网,使用对应子网的网络ID(neutron_network_id)。 ipv4子网的子网ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到 ipv6子网的网络ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到 使用说明: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发特性已开启,则该字段可以不传,表示添加跨VPC的后端服务器。 此时address必须为IPv4地址,所在的pool的协议必须为TCP/HTTP/HTTPS。 [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test) + 后端云服务器所在的子网,可以是IPv4或IPv6子网。若是IPv4子网,使用对应子网的子网ID(neutron_subnet_id);若是IPv6子网,使用对应子网的网络ID(neutron_network_id)。 ipv4子网的子网ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到 ipv6子网的网络ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到 使用说明: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发特性已开启,则该字段可以不传,表示添加跨VPC的后端服务器。 此时address必须为IPv4地址,所在的pool的协议必须为TCP/HTTP/HTTPS。 [- 网关型LB,即pool协议为IP时,必须指定该子网,且必须和负载均衡器的子网在同一个VPC下,但不能相同。](tag:hws_eu) [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test) :return: The subnet_cidr_id of this MemberInfo. :rtype: str @@ -289,7 +289,7 @@ def subnet_cidr_id(self): def subnet_cidr_id(self, subnet_cidr_id): """Sets the subnet_cidr_id of this MemberInfo. - 后端云服务器所在的子网,可以是IPv4或IPv6子网。若是IPv4子网,使用对应子网的子网ID(neutron_subnet_id);若是IPv6子网,使用对应子网的网络ID(neutron_network_id)。 ipv4子网的子网ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到 ipv6子网的网络ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到 使用说明: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发特性已开启,则该字段可以不传,表示添加跨VPC的后端服务器。 此时address必须为IPv4地址,所在的pool的协议必须为TCP/HTTP/HTTPS。 [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test) + 后端云服务器所在的子网,可以是IPv4或IPv6子网。若是IPv4子网,使用对应子网的子网ID(neutron_subnet_id);若是IPv6子网,使用对应子网的网络ID(neutron_network_id)。 ipv4子网的子网ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到 ipv6子网的网络ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到 使用说明: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发特性已开启,则该字段可以不传,表示添加跨VPC的后端服务器。 此时address必须为IPv4地址,所在的pool的协议必须为TCP/HTTP/HTTPS。 [- 网关型LB,即pool协议为IP时,必须指定该子网,且必须和负载均衡器的子网在同一个VPC下,但不能相同。](tag:hws_eu) [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test) :param subnet_cidr_id: The subnet_cidr_id of this MemberInfo. :type subnet_cidr_id: str @@ -300,7 +300,7 @@ def subnet_cidr_id(self, subnet_cidr_id): def protocol_port(self): """Gets the protocol_port of this MemberInfo. - 后端服务器业务端口。 >在开启端口透传的pool下创建member传该字段不生效,可不传该字段。 + 后端服务器业务端口。 [网关型LB,即pool协议为IP时,protocol_port必须设置为0。](tag:hws_eu) >在开启端口透传的pool下创建member传该字段不生效,可不传该字段。 :return: The protocol_port of this MemberInfo. :rtype: int @@ -311,7 +311,7 @@ def protocol_port(self): def protocol_port(self, protocol_port): """Sets the protocol_port of this MemberInfo. - 后端服务器业务端口。 >在开启端口透传的pool下创建member传该字段不生效,可不传该字段。 + 后端服务器业务端口。 [网关型LB,即pool协议为IP时,protocol_port必须设置为0。](tag:hws_eu) >在开启端口透传的pool下创建member传该字段不生效,可不传该字段。 :param protocol_port: The protocol_port of this MemberInfo. :type protocol_port: int diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/member_status.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/member_status.py index 6606efff46..ef838044e1 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/member_status.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/member_status.py @@ -31,9 +31,9 @@ def __init__(self, listener_id=None, operating_status=None): The model defined in huaweicloud sdk - :param listener_id: 监听器ID + :param listener_id: 参数解释:监听器ID :type listener_id: str - :param operating_status: 后端云服务器的健康状态。 取值: - ONLINE:后端云服务器正常。 - NO_MONITOR:后端云服务器所在的服务器组没有健康检查器。 - OFFLINE:后端云服务器关联的ECS服务器不存在或已关机。 + :param operating_status: 参数解释:后端云服务器的健康状态。 取值范围: - ONLINE:后端云服务器正常。 - NO_MONITOR:后端云服务器所在的服务器组没有健康检查器。 - OFFLINE:后端云服务器关联的ECS服务器不存在或已关机。 :type operating_status: str """ @@ -50,7 +50,7 @@ def __init__(self, listener_id=None, operating_status=None): def listener_id(self): """Gets the listener_id of this MemberStatus. - 监听器ID + 参数解释:监听器ID :return: The listener_id of this MemberStatus. :rtype: str @@ -61,7 +61,7 @@ def listener_id(self): def listener_id(self, listener_id): """Sets the listener_id of this MemberStatus. - 监听器ID + 参数解释:监听器ID :param listener_id: The listener_id of this MemberStatus. :type listener_id: str @@ -72,7 +72,7 @@ def listener_id(self, listener_id): def operating_status(self): """Gets the operating_status of this MemberStatus. - 后端云服务器的健康状态。 取值: - ONLINE:后端云服务器正常。 - NO_MONITOR:后端云服务器所在的服务器组没有健康检查器。 - OFFLINE:后端云服务器关联的ECS服务器不存在或已关机。 + 参数解释:后端云服务器的健康状态。 取值范围: - ONLINE:后端云服务器正常。 - NO_MONITOR:后端云服务器所在的服务器组没有健康检查器。 - OFFLINE:后端云服务器关联的ECS服务器不存在或已关机。 :return: The operating_status of this MemberStatus. :rtype: str @@ -83,7 +83,7 @@ def operating_status(self): def operating_status(self, operating_status): """Sets the operating_status of this MemberStatus. - 后端云服务器的健康状态。 取值: - ONLINE:后端云服务器正常。 - NO_MONITOR:后端云服务器所在的服务器组没有健康检查器。 - OFFLINE:后端云服务器关联的ECS服务器不存在或已关机。 + 参数解释:后端云服务器的健康状态。 取值范围: - ONLINE:后端云服务器正常。 - NO_MONITOR:后端云服务器所在的服务器组没有健康检查器。 - OFFLINE:后端云服务器关联的ECS服务器不存在或已关机。 :param operating_status: The operating_status of this MemberStatus. :type operating_status: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/pool.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/pool.py index d5b6fe3ef1..c497b3829e 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/pool.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/pool.py @@ -87,7 +87,7 @@ def __init__(self, admin_state_up=None, description=None, healthmonitor_id=None, :type healthmonitor_id: str :param id: 后端云服务器组的ID。 :type id: str - :param lb_algorithm: 后端云服务器组的负载均衡算法。 取值: - ROUND_ROBIN:加权轮询算法。 - LEAST_CONNECTIONS:加权最少连接算法。 - SOURCE_IP:源IP算法。 - QUIC_CID:连接ID算法。 [- 2_TUPLE_HASH:二元组hash算法,仅IP类型的pool支持。 - 3_TUPLE_HASH:三元组hash算法,仅IP类型的pool支持。 - 4_TUPLE_HASH:五元组hash算法,仅IP类型的pool支持。](tag:hws_eu) 使用说明: - 当该字段的取值为SOURCE_IP时,后端云服务器组绑定的后端云服务器的weight字段无效。 - 只有pool的protocol为QUIC时,才支持QUIC_CID算法。 [不支持QUIC_CID算法。](tag:hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC_CID。](tag:dt,dt_test) + :param lb_algorithm: 后端云服务器组的负载均衡算法。 取值: - ROUND_ROBIN:加权轮询算法。 - LEAST_CONNECTIONS:加权最少连接算法。 - SOURCE_IP:源IP算法。 - QUIC_CID:连接ID算法。 [- 2_TUPLE_HASH:二元组hash算法,仅IP类型的pool支持。 - 3_TUPLE_HASH:三元组hash算法,仅IP类型的pool支持。 - 5_TUPLE_HASH:五元组hash算法,仅IP类型的pool支持。 - IP型pool不指定该字段时,默认设置为5_TUPLE_HASH。](tag:hws_eu) 使用说明: - 当该字段的取值为SOURCE_IP时,后端云服务器组绑定的后端云服务器的weight字段无效。 - 只有pool的protocol为QUIC时,才支持QUIC_CID算法。 [不支持QUIC_CID算法。](tag:hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC_CID。](tag:dt,dt_test) :type lb_algorithm: str :param listeners: 后端云服务器组关联的监听器ID列表。 :type listeners: list[:class:`huaweicloudsdkelb.v3.ListenerRef`] @@ -99,7 +99,7 @@ def __init__(self, admin_state_up=None, description=None, healthmonitor_id=None, :type name: str :param project_id: 后端云服务器组所在的项目ID。 :type project_id: str - :param protocol: 后端云服务器组的后端协议。 取值:TCP、UDP、[IP、](tag:hws_eu)TLS、GRPC、HTTP、HTTPS和QUIC。 使用说明: - listener的protocol为UDP时,pool的protocol必须为UDP或QUIC。 - listener的protocol为TCP时pool的protocol必须为TCP。 [- listener的protocol为IP时,pool的protocol必须为IP。](tag:hws_eu) - listener的protocol为HTTP时,pool的protocol必须为HTTP。 - listener的protocol为HTTPS时,pool的protocol必须为HTTP、HTTPS或GRPC。 - listener的protocol为TERMINATED_HTTPS时,pool的protocol必须为HTTP。 - listener的protocol为QUIC时,pool的protocol必须为HTTP、HTTPS或GRPC。 - listener的protocol为TLS时,pool的protocol必须为TLS或TCP。 - 若pool的protocol为QUIC,则必须开启session_persistence且type为SOURCE_IP。 - 若pool的protocol为GRPC,关联监听器必须开启HTTP2。 - 若pool的protocol为TCP,则pool的ip_version字段取值必须是4。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) + :param protocol: 后端云服务器组的后端协议。 取值:TCP、UDP、[IP、](tag:hws_eu)TLS、gRPC、HTTP、HTTPS和QUIC。 使用说明: - listener的protocol为UDP时,pool的protocol必须为UDP或QUIC。 - listener的protocol为TCP时pool的protocol必须为TCP。 [- listener的protocol为IP时,pool的protocol必须为IP。](tag:hws_eu) - listener的protocol为HTTP时,pool的protocol必须为HTTP。 - listener的protocol为HTTPS时,pool的protocol必须为HTTP、HTTPS或gRPC。 - listener的protocol为TERMINATED_HTTPS时,pool的protocol必须为HTTP。 - listener的protocol为QUIC时,pool的protocol必须为HTTP、HTTPS或gRPC。 - listener的protocol为TLS时,pool的protocol必须为TLS或TCP。 - 若pool的protocol为QUIC,则必须开启session_persistence且type为SOURCE_IP。 - 若pool的protocol为gRPC,关联监听器必须开启HTTP2。 - 若pool的protocol为TCP,则pool的ip_version字段取值必须是4。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) :type protocol: str :param session_persistence: :type session_persistence: :class:`huaweicloudsdkelb.v3.SessionPersistence` @@ -291,7 +291,7 @@ def id(self, id): def lb_algorithm(self): """Gets the lb_algorithm of this Pool. - 后端云服务器组的负载均衡算法。 取值: - ROUND_ROBIN:加权轮询算法。 - LEAST_CONNECTIONS:加权最少连接算法。 - SOURCE_IP:源IP算法。 - QUIC_CID:连接ID算法。 [- 2_TUPLE_HASH:二元组hash算法,仅IP类型的pool支持。 - 3_TUPLE_HASH:三元组hash算法,仅IP类型的pool支持。 - 4_TUPLE_HASH:五元组hash算法,仅IP类型的pool支持。](tag:hws_eu) 使用说明: - 当该字段的取值为SOURCE_IP时,后端云服务器组绑定的后端云服务器的weight字段无效。 - 只有pool的protocol为QUIC时,才支持QUIC_CID算法。 [不支持QUIC_CID算法。](tag:hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC_CID。](tag:dt,dt_test) + 后端云服务器组的负载均衡算法。 取值: - ROUND_ROBIN:加权轮询算法。 - LEAST_CONNECTIONS:加权最少连接算法。 - SOURCE_IP:源IP算法。 - QUIC_CID:连接ID算法。 [- 2_TUPLE_HASH:二元组hash算法,仅IP类型的pool支持。 - 3_TUPLE_HASH:三元组hash算法,仅IP类型的pool支持。 - 5_TUPLE_HASH:五元组hash算法,仅IP类型的pool支持。 - IP型pool不指定该字段时,默认设置为5_TUPLE_HASH。](tag:hws_eu) 使用说明: - 当该字段的取值为SOURCE_IP时,后端云服务器组绑定的后端云服务器的weight字段无效。 - 只有pool的protocol为QUIC时,才支持QUIC_CID算法。 [不支持QUIC_CID算法。](tag:hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC_CID。](tag:dt,dt_test) :return: The lb_algorithm of this Pool. :rtype: str @@ -302,7 +302,7 @@ def lb_algorithm(self): def lb_algorithm(self, lb_algorithm): """Sets the lb_algorithm of this Pool. - 后端云服务器组的负载均衡算法。 取值: - ROUND_ROBIN:加权轮询算法。 - LEAST_CONNECTIONS:加权最少连接算法。 - SOURCE_IP:源IP算法。 - QUIC_CID:连接ID算法。 [- 2_TUPLE_HASH:二元组hash算法,仅IP类型的pool支持。 - 3_TUPLE_HASH:三元组hash算法,仅IP类型的pool支持。 - 4_TUPLE_HASH:五元组hash算法,仅IP类型的pool支持。](tag:hws_eu) 使用说明: - 当该字段的取值为SOURCE_IP时,后端云服务器组绑定的后端云服务器的weight字段无效。 - 只有pool的protocol为QUIC时,才支持QUIC_CID算法。 [不支持QUIC_CID算法。](tag:hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC_CID。](tag:dt,dt_test) + 后端云服务器组的负载均衡算法。 取值: - ROUND_ROBIN:加权轮询算法。 - LEAST_CONNECTIONS:加权最少连接算法。 - SOURCE_IP:源IP算法。 - QUIC_CID:连接ID算法。 [- 2_TUPLE_HASH:二元组hash算法,仅IP类型的pool支持。 - 3_TUPLE_HASH:三元组hash算法,仅IP类型的pool支持。 - 5_TUPLE_HASH:五元组hash算法,仅IP类型的pool支持。 - IP型pool不指定该字段时,默认设置为5_TUPLE_HASH。](tag:hws_eu) 使用说明: - 当该字段的取值为SOURCE_IP时,后端云服务器组绑定的后端云服务器的weight字段无效。 - 只有pool的protocol为QUIC时,才支持QUIC_CID算法。 [不支持QUIC_CID算法。](tag:hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC_CID。](tag:dt,dt_test) :param lb_algorithm: The lb_algorithm of this Pool. :type lb_algorithm: str @@ -423,7 +423,7 @@ def project_id(self, project_id): def protocol(self): """Gets the protocol of this Pool. - 后端云服务器组的后端协议。 取值:TCP、UDP、[IP、](tag:hws_eu)TLS、GRPC、HTTP、HTTPS和QUIC。 使用说明: - listener的protocol为UDP时,pool的protocol必须为UDP或QUIC。 - listener的protocol为TCP时pool的protocol必须为TCP。 [- listener的protocol为IP时,pool的protocol必须为IP。](tag:hws_eu) - listener的protocol为HTTP时,pool的protocol必须为HTTP。 - listener的protocol为HTTPS时,pool的protocol必须为HTTP、HTTPS或GRPC。 - listener的protocol为TERMINATED_HTTPS时,pool的protocol必须为HTTP。 - listener的protocol为QUIC时,pool的protocol必须为HTTP、HTTPS或GRPC。 - listener的protocol为TLS时,pool的protocol必须为TLS或TCP。 - 若pool的protocol为QUIC,则必须开启session_persistence且type为SOURCE_IP。 - 若pool的protocol为GRPC,关联监听器必须开启HTTP2。 - 若pool的protocol为TCP,则pool的ip_version字段取值必须是4。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) + 后端云服务器组的后端协议。 取值:TCP、UDP、[IP、](tag:hws_eu)TLS、gRPC、HTTP、HTTPS和QUIC。 使用说明: - listener的protocol为UDP时,pool的protocol必须为UDP或QUIC。 - listener的protocol为TCP时pool的protocol必须为TCP。 [- listener的protocol为IP时,pool的protocol必须为IP。](tag:hws_eu) - listener的protocol为HTTP时,pool的protocol必须为HTTP。 - listener的protocol为HTTPS时,pool的protocol必须为HTTP、HTTPS或gRPC。 - listener的protocol为TERMINATED_HTTPS时,pool的protocol必须为HTTP。 - listener的protocol为QUIC时,pool的protocol必须为HTTP、HTTPS或gRPC。 - listener的protocol为TLS时,pool的protocol必须为TLS或TCP。 - 若pool的protocol为QUIC,则必须开启session_persistence且type为SOURCE_IP。 - 若pool的protocol为gRPC,关联监听器必须开启HTTP2。 - 若pool的protocol为TCP,则pool的ip_version字段取值必须是4。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) :return: The protocol of this Pool. :rtype: str @@ -434,7 +434,7 @@ def protocol(self): def protocol(self, protocol): """Sets the protocol of this Pool. - 后端云服务器组的后端协议。 取值:TCP、UDP、[IP、](tag:hws_eu)TLS、GRPC、HTTP、HTTPS和QUIC。 使用说明: - listener的protocol为UDP时,pool的protocol必须为UDP或QUIC。 - listener的protocol为TCP时pool的protocol必须为TCP。 [- listener的protocol为IP时,pool的protocol必须为IP。](tag:hws_eu) - listener的protocol为HTTP时,pool的protocol必须为HTTP。 - listener的protocol为HTTPS时,pool的protocol必须为HTTP、HTTPS或GRPC。 - listener的protocol为TERMINATED_HTTPS时,pool的protocol必须为HTTP。 - listener的protocol为QUIC时,pool的protocol必须为HTTP、HTTPS或GRPC。 - listener的protocol为TLS时,pool的protocol必须为TLS或TCP。 - 若pool的protocol为QUIC,则必须开启session_persistence且type为SOURCE_IP。 - 若pool的protocol为GRPC,关联监听器必须开启HTTP2。 - 若pool的protocol为TCP,则pool的ip_version字段取值必须是4。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) + 后端云服务器组的后端协议。 取值:TCP、UDP、[IP、](tag:hws_eu)TLS、gRPC、HTTP、HTTPS和QUIC。 使用说明: - listener的protocol为UDP时,pool的protocol必须为UDP或QUIC。 - listener的protocol为TCP时pool的protocol必须为TCP。 [- listener的protocol为IP时,pool的protocol必须为IP。](tag:hws_eu) - listener的protocol为HTTP时,pool的protocol必须为HTTP。 - listener的protocol为HTTPS时,pool的protocol必须为HTTP、HTTPS或gRPC。 - listener的protocol为TERMINATED_HTTPS时,pool的protocol必须为HTTP。 - listener的protocol为QUIC时,pool的protocol必须为HTTP、HTTPS或gRPC。 - listener的protocol为TLS时,pool的protocol必须为TLS或TCP。 - 若pool的protocol为QUIC,则必须开启session_persistence且type为SOURCE_IP。 - 若pool的protocol为gRPC,关联监听器必须开启HTTP2。 - 若pool的protocol为TCP,则pool的ip_version字段取值必须是4。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) :param protocol: The protocol of this Pool. :type protocol: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/pool_ref.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/pool_ref.py index 05c2976372..96c940d509 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/pool_ref.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/pool_ref.py @@ -29,7 +29,7 @@ def __init__(self, id=None): The model defined in huaweicloud sdk - :param id: 后端服务器组ID。 + :param id: 参数解释:后端服务器组ID。 :type id: str """ @@ -44,7 +44,7 @@ def __init__(self, id=None): def id(self): """Gets the id of this PoolRef. - 后端服务器组ID。 + 参数解释:后端服务器组ID。 :return: The id of this PoolRef. :rtype: str @@ -55,7 +55,7 @@ def id(self): def id(self, id): """Sets the id of this PoolRef. - 后端服务器组ID。 + 参数解释:后端服务器组ID。 :param id: The id of this PoolRef. :type id: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/prepaid_create_option.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/prepaid_create_option.py index e0ed8c5db3..69d337f8ca 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/prepaid_create_option.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/prepaid_create_option.py @@ -37,7 +37,7 @@ def __init__(self, period_type=None, period_num=None, auto_renew=None, auto_pay= :param period_type: 参数解释:预付费实例的订购周期类型,当前支持月和年。 取值范围: - month:月。 - year:年。 :type period_type: str - :param period_num: 参数解释:预付费实例的订购周期数,取值会随运营策略变化。 约束限制: - period_type为month时,为[1,9]。 - period_type为year时,为[1,3]。 + :param period_num: 参数解释:预付费实例的订购周期数。 取值范围: - period_type为month时,为[1,9]。 - period_type为year时,为[1,3]。 :type period_num: int :param auto_renew: 参数解释:自动续订开关。 取值范围: - true:开启自动续订。 - false:关闭自动续订。 :type auto_renew: bool @@ -87,7 +87,7 @@ def period_type(self, period_type): def period_num(self): """Gets the period_num of this PrepaidCreateOption. - 参数解释:预付费实例的订购周期数,取值会随运营策略变化。 约束限制: - period_type为month时,为[1,9]。 - period_type为year时,为[1,3]。 + 参数解释:预付费实例的订购周期数。 取值范围: - period_type为month时,为[1,9]。 - period_type为year时,为[1,3]。 :return: The period_num of this PrepaidCreateOption. :rtype: int @@ -98,7 +98,7 @@ def period_num(self): def period_num(self, period_num): """Sets the period_num of this PrepaidCreateOption. - 参数解释:预付费实例的订购周期数,取值会随运营策略变化。 约束限制: - period_type为month时,为[1,9]。 - period_type为year时,为[1,3]。 + 参数解释:预付费实例的订购周期数。 取值范围: - period_type为month时,为[1,9]。 - period_type为year时,为[1,3]。 :param period_num: The period_num of this PrepaidCreateOption. :type period_num: int diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/public_ip_info.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/public_ip_info.py index 79b6b11573..e1e474212f 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/public_ip_info.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/public_ip_info.py @@ -33,11 +33,11 @@ def __init__(self, publicip_id=None, publicip_address=None, ip_version=None): The model defined in huaweicloud sdk - :param publicip_id: 弹性公网ip配置id + :param publicip_id: 参数解释:弹性公网ip配置id :type publicip_id: str - :param publicip_address: IP地址 + :param publicip_address: 参数解释:IP地址 :type publicip_address: str - :param ip_version: IP版本信息。 取值范围:4和6 4:IPv4 6:IPv6 [不支持IPv6,请勿设置为6。](tag:dt,dt_test) + :param ip_version: 参数解释:IP版本信息。 取值范围:4和6 4:IPv4 6:IPv6 [不支持IPv6,请勿设置为6。](tag:dt,dt_test) :type ip_version: int """ @@ -56,7 +56,7 @@ def __init__(self, publicip_id=None, publicip_address=None, ip_version=None): def publicip_id(self): """Gets the publicip_id of this PublicIpInfo. - 弹性公网ip配置id + 参数解释:弹性公网ip配置id :return: The publicip_id of this PublicIpInfo. :rtype: str @@ -67,7 +67,7 @@ def publicip_id(self): def publicip_id(self, publicip_id): """Sets the publicip_id of this PublicIpInfo. - 弹性公网ip配置id + 参数解释:弹性公网ip配置id :param publicip_id: The publicip_id of this PublicIpInfo. :type publicip_id: str @@ -78,7 +78,7 @@ def publicip_id(self, publicip_id): def publicip_address(self): """Gets the publicip_address of this PublicIpInfo. - IP地址 + 参数解释:IP地址 :return: The publicip_address of this PublicIpInfo. :rtype: str @@ -89,7 +89,7 @@ def publicip_address(self): def publicip_address(self, publicip_address): """Sets the publicip_address of this PublicIpInfo. - IP地址 + 参数解释:IP地址 :param publicip_address: The publicip_address of this PublicIpInfo. :type publicip_address: str @@ -100,7 +100,7 @@ def publicip_address(self, publicip_address): def ip_version(self): """Gets the ip_version of this PublicIpInfo. - IP版本信息。 取值范围:4和6 4:IPv4 6:IPv6 [不支持IPv6,请勿设置为6。](tag:dt,dt_test) + 参数解释:IP版本信息。 取值范围:4和6 4:IPv4 6:IPv6 [不支持IPv6,请勿设置为6。](tag:dt,dt_test) :return: The ip_version of this PublicIpInfo. :rtype: int @@ -111,7 +111,7 @@ def ip_version(self): def ip_version(self, ip_version): """Sets the ip_version of this PublicIpInfo. - IP版本信息。 取值范围:4和6 4:IPv4 6:IPv6 [不支持IPv6,请勿设置为6。](tag:dt,dt_test) + 参数解释:IP版本信息。 取值范围:4和6 4:IPv4 6:IPv6 [不支持IPv6,请勿设置为6。](tag:dt,dt_test) :param ip_version: The ip_version of this PublicIpInfo. :type ip_version: int diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/quota.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/quota.py index dff5000e16..baae020aa4 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/quota.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/quota.py @@ -59,7 +59,7 @@ def __init__(self, project_id=None, loadbalancer=None, certificate=None, listene The model defined in huaweicloud sdk - :param project_id: 项目ID。 + :param project_id: 参数解释:项目ID。 :type project_id: str :param loadbalancer: 负载均衡器配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。 :type loadbalancer: int @@ -134,7 +134,7 @@ def __init__(self, project_id=None, loadbalancer=None, certificate=None, listene def project_id(self): """Gets the project_id of this Quota. - 项目ID。 + 参数解释:项目ID。 :return: The project_id of this Quota. :rtype: str @@ -145,7 +145,7 @@ def project_id(self): def project_id(self, project_id): """Sets the project_id of this Quota. - 项目ID。 + 参数解释:项目ID。 :param project_id: The project_id of this Quota. :type project_id: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/redirect_pools_config.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/redirect_pools_config.py index 26dc6daeb0..8fd289e282 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/redirect_pools_config.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/redirect_pools_config.py @@ -31,9 +31,9 @@ def __init__(self, pool_id=None, weight=None): The model defined in huaweicloud sdk - :param pool_id: 所在后端服务器组ID。 + :param pool_id: 参数解释:所在后端服务器组ID。 :type pool_id: str - :param weight: 转发策略主机组的权重,范围为[0,100], 请求将根据该权重进行负载分发到不同的主机组。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 + :param weight: 参数解释:转发策略主机组的权重。请求将根据该权重进行负载分发到不同的主机组。权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 取值范围:0-100 :type weight: int """ @@ -52,7 +52,7 @@ def __init__(self, pool_id=None, weight=None): def pool_id(self): """Gets the pool_id of this RedirectPoolsConfig. - 所在后端服务器组ID。 + 参数解释:所在后端服务器组ID。 :return: The pool_id of this RedirectPoolsConfig. :rtype: str @@ -63,7 +63,7 @@ def pool_id(self): def pool_id(self, pool_id): """Sets the pool_id of this RedirectPoolsConfig. - 所在后端服务器组ID。 + 参数解释:所在后端服务器组ID。 :param pool_id: The pool_id of this RedirectPoolsConfig. :type pool_id: str @@ -74,7 +74,7 @@ def pool_id(self, pool_id): def weight(self): """Gets the weight of this RedirectPoolsConfig. - 转发策略主机组的权重,范围为[0,100], 请求将根据该权重进行负载分发到不同的主机组。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 + 参数解释:转发策略主机组的权重。请求将根据该权重进行负载分发到不同的主机组。权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 取值范围:0-100 :return: The weight of this RedirectPoolsConfig. :rtype: int @@ -85,7 +85,7 @@ def weight(self): def weight(self, weight): """Sets the weight of this RedirectPoolsConfig. - 转发策略主机组的权重,范围为[0,100], 请求将根据该权重进行负载分发到不同的主机组。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 + 参数解释:转发策略主机组的权重。请求将根据该权重进行负载分发到不同的主机组。权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 取值范围:0-100 :param weight: The weight of this RedirectPoolsConfig. :type weight: int diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/redirect_pools_extend_config.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/redirect_pools_extend_config.py index 1f3a891d65..80d3a2f6cd 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/redirect_pools_extend_config.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/redirect_pools_extend_config.py @@ -37,7 +37,7 @@ def __init__(self, rewrite_url_enable=None, rewrite_url_config=None, insert_head The model defined in huaweicloud sdk - :param rewrite_url_enable: 是否开启url重定向。 + :param rewrite_url_enable: 参数解释:是否开启url重定向。 :type rewrite_url_enable: bool :param rewrite_url_config: :type rewrite_url_config: :class:`huaweicloudsdkelb.v3.RewriteUrlConfig` @@ -73,7 +73,7 @@ def __init__(self, rewrite_url_enable=None, rewrite_url_config=None, insert_head def rewrite_url_enable(self): """Gets the rewrite_url_enable of this RedirectPoolsExtendConfig. - 是否开启url重定向。 + 参数解释:是否开启url重定向。 :return: The rewrite_url_enable of this RedirectPoolsExtendConfig. :rtype: bool @@ -84,7 +84,7 @@ def rewrite_url_enable(self): def rewrite_url_enable(self, rewrite_url_enable): """Sets the rewrite_url_enable of this RedirectPoolsExtendConfig. - 是否开启url重定向。 + 参数解释:是否开启url重定向。 :param rewrite_url_enable: The rewrite_url_enable of this RedirectPoolsExtendConfig. :type rewrite_url_enable: bool diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/redirect_pools_sticky_session_config.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/redirect_pools_sticky_session_config.py index e17648f283..caca61935e 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/redirect_pools_sticky_session_config.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/redirect_pools_sticky_session_config.py @@ -31,9 +31,9 @@ def __init__(self, enable=None, timeout=None): The model defined in huaweicloud sdk - :param enable: 转发策略主机组会话保持开启的开关。 默认值为false,表示关闭主机组会话保持。 + :param enable: 参数解释:转发策略主机组会话保持开启的开关。 默认取值:false,表示关闭主机组会话保持。 :type enable: bool - :param timeout: 会话保持的时间。 适用范围:范围为[1,1440](分钟),默认值1440。 [荷兰region不支持QUIC。](tag:dt,dt_test) + :param timeout: 参数解释:会话保持的时间。 取值范围:1-1440(分钟) 默认取值:1440 [荷兰region不支持QUIC。](tag:dt,dt_test) :type timeout: int """ @@ -52,7 +52,7 @@ def __init__(self, enable=None, timeout=None): def enable(self): """Gets the enable of this RedirectPoolsStickySessionConfig. - 转发策略主机组会话保持开启的开关。 默认值为false,表示关闭主机组会话保持。 + 参数解释:转发策略主机组会话保持开启的开关。 默认取值:false,表示关闭主机组会话保持。 :return: The enable of this RedirectPoolsStickySessionConfig. :rtype: bool @@ -63,7 +63,7 @@ def enable(self): def enable(self, enable): """Sets the enable of this RedirectPoolsStickySessionConfig. - 转发策略主机组会话保持开启的开关。 默认值为false,表示关闭主机组会话保持。 + 参数解释:转发策略主机组会话保持开启的开关。 默认取值:false,表示关闭主机组会话保持。 :param enable: The enable of this RedirectPoolsStickySessionConfig. :type enable: bool @@ -74,7 +74,7 @@ def enable(self, enable): def timeout(self): """Gets the timeout of this RedirectPoolsStickySessionConfig. - 会话保持的时间。 适用范围:范围为[1,1440](分钟),默认值1440。 [荷兰region不支持QUIC。](tag:dt,dt_test) + 参数解释:会话保持的时间。 取值范围:1-1440(分钟) 默认取值:1440 [荷兰region不支持QUIC。](tag:dt,dt_test) :return: The timeout of this RedirectPoolsStickySessionConfig. :rtype: int @@ -85,7 +85,7 @@ def timeout(self): def timeout(self, timeout): """Sets the timeout of this RedirectPoolsStickySessionConfig. - 会话保持的时间。 适用范围:范围为[1,1440](分钟),默认值1440。 [荷兰region不支持QUIC。](tag:dt,dt_test) + 参数解释:会话保持的时间。 取值范围:1-1440(分钟) 默认取值:1440 [荷兰region不支持QUIC。](tag:dt,dt_test) :param timeout: The timeout of this RedirectPoolsStickySessionConfig. :type timeout: int diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/redirect_url_config.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/redirect_url_config.py index 013d524746..68c582dd40 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/redirect_url_config.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/redirect_url_config.py @@ -43,17 +43,17 @@ def __init__(self, protocol=None, host=None, port=None, path=None, query=None, s The model defined in huaweicloud sdk - :param protocol: 重定向的协议。默认值${protocol}表示继承原值(即与被转发请求保持一致)。 取值: - HTTP - HTTPS - ${protocol} + :param protocol: 参数解释:重定向的协议。 取值范围: - HTTP - HTTPS - ${protocol},表示继承原值(即与被转发请求保持一致)。 :type protocol: str - :param host: 重定向的主机名。字符串只能包含英文字母、数字、“-”、“.”。 且必须以字母、数字开头。默认值${host}表示继承原值(即与被转发请求保持一致)。 + :param host: 参数解释:重定向的主机名。 取值范围:只能包含英文字母、数字、“-”、“.”。且必须以字母、数字开头。 默认取值:${host} 表示继承原值(即与被转发请求保持一致)。 :type host: str - :param port: 重定向到的端口。默认值${port}表示继承原值(即与被转发请求保持一致)。 + :param port: 参数解释:重定向到的端口。 默认取值:默认值${port}表示继承原值(即与被转发请求保持一致)。 :type port: str - :param path: 重定向的路径。默认值${path}表示继承原值(即与被转发请求保持一致)。 支持英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以\"/\"开头。 + :param path: 参数解释:重定向的路径。 取值范围:支持英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以\"/\"开头。 默认取值:${path} 表示继承原值(即与被转发请求保持一致)。 :type path: str - :param query: 重定向的查询字符串。默认${query}表示继承原值(即与被转发请求保持一致)。举例如下: 若该字段被设置为:${query}&name=my_name,则在转发符合条件的URL (如https://www.example.com:8080/elb?type=loadbalancer, 此时${query}表示type=loadbalancer)时,将会重定向到 https://www.example.com:8080/elb?type=loadbalancer&name=my_name。 只能包含英文字母、数字和特殊字符:!$&'()*+,-./:;=?@^_`。字母区分大小写。 + :param query: 参数解释:重定向的查询字符串。举例如下: 将query设置为:${query}&name=my_name,则在转发符合条件的URL (如https://www.example.com:8080/elb?type=loadbalancer)时,将会重定向到 https://www.example.com:8080/elb?type=loadbalancer&name=my_name。在例子中${query}表示type=loadbalancer。 取值范围:只能包含英文字母、数字和特殊字符:!$&'()\\*+,-./:;=?@^_`。字母区分大小写。其中$1,$2会匹配请求url通配符星号(\\*) 默认取值:${query}表示继承原值(即与被转发请求保持一致) :type query: str - :param status_code: 重定向后的返回码。 取值范围: - 301 - 302 - 303 - 307 - 308 + :param status_code: 参数解释:重定向后的返回码。 取值范围: - 301 - 302 - 303 - 307 - 308 :type status_code: str :param insert_headers_config: :type insert_headers_config: :class:`huaweicloudsdkelb.v3.InsertHeadersConfig` @@ -94,7 +94,7 @@ def __init__(self, protocol=None, host=None, port=None, path=None, query=None, s def protocol(self): """Gets the protocol of this RedirectUrlConfig. - 重定向的协议。默认值${protocol}表示继承原值(即与被转发请求保持一致)。 取值: - HTTP - HTTPS - ${protocol} + 参数解释:重定向的协议。 取值范围: - HTTP - HTTPS - ${protocol},表示继承原值(即与被转发请求保持一致)。 :return: The protocol of this RedirectUrlConfig. :rtype: str @@ -105,7 +105,7 @@ def protocol(self): def protocol(self, protocol): """Sets the protocol of this RedirectUrlConfig. - 重定向的协议。默认值${protocol}表示继承原值(即与被转发请求保持一致)。 取值: - HTTP - HTTPS - ${protocol} + 参数解释:重定向的协议。 取值范围: - HTTP - HTTPS - ${protocol},表示继承原值(即与被转发请求保持一致)。 :param protocol: The protocol of this RedirectUrlConfig. :type protocol: str @@ -116,7 +116,7 @@ def protocol(self, protocol): def host(self): """Gets the host of this RedirectUrlConfig. - 重定向的主机名。字符串只能包含英文字母、数字、“-”、“.”。 且必须以字母、数字开头。默认值${host}表示继承原值(即与被转发请求保持一致)。 + 参数解释:重定向的主机名。 取值范围:只能包含英文字母、数字、“-”、“.”。且必须以字母、数字开头。 默认取值:${host} 表示继承原值(即与被转发请求保持一致)。 :return: The host of this RedirectUrlConfig. :rtype: str @@ -127,7 +127,7 @@ def host(self): def host(self, host): """Sets the host of this RedirectUrlConfig. - 重定向的主机名。字符串只能包含英文字母、数字、“-”、“.”。 且必须以字母、数字开头。默认值${host}表示继承原值(即与被转发请求保持一致)。 + 参数解释:重定向的主机名。 取值范围:只能包含英文字母、数字、“-”、“.”。且必须以字母、数字开头。 默认取值:${host} 表示继承原值(即与被转发请求保持一致)。 :param host: The host of this RedirectUrlConfig. :type host: str @@ -138,7 +138,7 @@ def host(self, host): def port(self): """Gets the port of this RedirectUrlConfig. - 重定向到的端口。默认值${port}表示继承原值(即与被转发请求保持一致)。 + 参数解释:重定向到的端口。 默认取值:默认值${port}表示继承原值(即与被转发请求保持一致)。 :return: The port of this RedirectUrlConfig. :rtype: str @@ -149,7 +149,7 @@ def port(self): def port(self, port): """Sets the port of this RedirectUrlConfig. - 重定向到的端口。默认值${port}表示继承原值(即与被转发请求保持一致)。 + 参数解释:重定向到的端口。 默认取值:默认值${port}表示继承原值(即与被转发请求保持一致)。 :param port: The port of this RedirectUrlConfig. :type port: str @@ -160,7 +160,7 @@ def port(self, port): def path(self): """Gets the path of this RedirectUrlConfig. - 重定向的路径。默认值${path}表示继承原值(即与被转发请求保持一致)。 支持英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以\"/\"开头。 + 参数解释:重定向的路径。 取值范围:支持英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以\"/\"开头。 默认取值:${path} 表示继承原值(即与被转发请求保持一致)。 :return: The path of this RedirectUrlConfig. :rtype: str @@ -171,7 +171,7 @@ def path(self): def path(self, path): """Sets the path of this RedirectUrlConfig. - 重定向的路径。默认值${path}表示继承原值(即与被转发请求保持一致)。 支持英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以\"/\"开头。 + 参数解释:重定向的路径。 取值范围:支持英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以\"/\"开头。 默认取值:${path} 表示继承原值(即与被转发请求保持一致)。 :param path: The path of this RedirectUrlConfig. :type path: str @@ -182,7 +182,7 @@ def path(self, path): def query(self): """Gets the query of this RedirectUrlConfig. - 重定向的查询字符串。默认${query}表示继承原值(即与被转发请求保持一致)。举例如下: 若该字段被设置为:${query}&name=my_name,则在转发符合条件的URL (如https://www.example.com:8080/elb?type=loadbalancer, 此时${query}表示type=loadbalancer)时,将会重定向到 https://www.example.com:8080/elb?type=loadbalancer&name=my_name。 只能包含英文字母、数字和特殊字符:!$&'()*+,-./:;=?@^_`。字母区分大小写。 + 参数解释:重定向的查询字符串。举例如下: 将query设置为:${query}&name=my_name,则在转发符合条件的URL (如https://www.example.com:8080/elb?type=loadbalancer)时,将会重定向到 https://www.example.com:8080/elb?type=loadbalancer&name=my_name。在例子中${query}表示type=loadbalancer。 取值范围:只能包含英文字母、数字和特殊字符:!$&'()\\*+,-./:;=?@^_`。字母区分大小写。其中$1,$2会匹配请求url通配符星号(\\*) 默认取值:${query}表示继承原值(即与被转发请求保持一致) :return: The query of this RedirectUrlConfig. :rtype: str @@ -193,7 +193,7 @@ def query(self): def query(self, query): """Sets the query of this RedirectUrlConfig. - 重定向的查询字符串。默认${query}表示继承原值(即与被转发请求保持一致)。举例如下: 若该字段被设置为:${query}&name=my_name,则在转发符合条件的URL (如https://www.example.com:8080/elb?type=loadbalancer, 此时${query}表示type=loadbalancer)时,将会重定向到 https://www.example.com:8080/elb?type=loadbalancer&name=my_name。 只能包含英文字母、数字和特殊字符:!$&'()*+,-./:;=?@^_`。字母区分大小写。 + 参数解释:重定向的查询字符串。举例如下: 将query设置为:${query}&name=my_name,则在转发符合条件的URL (如https://www.example.com:8080/elb?type=loadbalancer)时,将会重定向到 https://www.example.com:8080/elb?type=loadbalancer&name=my_name。在例子中${query}表示type=loadbalancer。 取值范围:只能包含英文字母、数字和特殊字符:!$&'()\\*+,-./:;=?@^_`。字母区分大小写。其中$1,$2会匹配请求url通配符星号(\\*) 默认取值:${query}表示继承原值(即与被转发请求保持一致) :param query: The query of this RedirectUrlConfig. :type query: str @@ -204,7 +204,7 @@ def query(self, query): def status_code(self): """Gets the status_code of this RedirectUrlConfig. - 重定向后的返回码。 取值范围: - 301 - 302 - 303 - 307 - 308 + 参数解释:重定向后的返回码。 取值范围: - 301 - 302 - 303 - 307 - 308 :return: The status_code of this RedirectUrlConfig. :rtype: str @@ -215,7 +215,7 @@ def status_code(self): def status_code(self, status_code): """Sets the status_code of this RedirectUrlConfig. - 重定向后的返回码。 取值范围: - 301 - 302 - 303 - 307 - 308 + 参数解释:重定向后的返回码。 取值范围: - 301 - 302 - 303 - 307 - 308 :param status_code: The status_code of this RedirectUrlConfig. :type status_code: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/remove_header_config.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/remove_header_config.py index 616f90c863..8930b7551c 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/remove_header_config.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/remove_header_config.py @@ -29,7 +29,7 @@ def __init__(self, key=None): The model defined in huaweicloud sdk - :param key: 被移除的请求头的参数名。取值范围: 1-40个字符(不区分大小写)。 支持字母a-z,数字,短划线-和下划线_。 不能移除以下请求头参数: connection、upgrade、content-length、transfer-encoding、keep-alive、te、host、cookie、remoteip、authority、x-forwarded-host、x-forwarded-for、x-forwarded-for-port、x-forwarded-tls-certificate-id、x-forwarded-tls-protocol、x-forwarded-tls-cipher、x-forwarded-elb-ip、x-forwarded-port、x-forwarded-elb-id、x-forwarded-elb-vip、x-real-ip、x-forwarded-proto、x-nuwa-trace-ne-in、x-nuwa-trace-ne-out + :param key: 参数解释:被移除的请求头的参数名。 约束限制:不能移除以下请求头参数: connection、upgrade、content-length、transfer-encoding、keep-alive、te、host、cookie、remoteip、authority、x-forwarded-host、x-forwarded-for、x-forwarded-for-port、x-forwarded-tls-certificate-id、x-forwarded-tls-protocol、x-forwarded-tls-cipher、x-forwarded-elb-ip、x-forwarded-port、x-forwarded-elb-id、x-forwarded-elb-vip、x-real-ip、x-forwarded-proto、x-nuwa-trace-ne-in、x-nuwa-trace-ne-out 取值范围:1-40个字符,字母a-z(不区分大小写)、数字,短划线-和下划线_。 :type key: str """ @@ -44,7 +44,7 @@ def __init__(self, key=None): def key(self): """Gets the key of this RemoveHeaderConfig. - 被移除的请求头的参数名。取值范围: 1-40个字符(不区分大小写)。 支持字母a-z,数字,短划线-和下划线_。 不能移除以下请求头参数: connection、upgrade、content-length、transfer-encoding、keep-alive、te、host、cookie、remoteip、authority、x-forwarded-host、x-forwarded-for、x-forwarded-for-port、x-forwarded-tls-certificate-id、x-forwarded-tls-protocol、x-forwarded-tls-cipher、x-forwarded-elb-ip、x-forwarded-port、x-forwarded-elb-id、x-forwarded-elb-vip、x-real-ip、x-forwarded-proto、x-nuwa-trace-ne-in、x-nuwa-trace-ne-out + 参数解释:被移除的请求头的参数名。 约束限制:不能移除以下请求头参数: connection、upgrade、content-length、transfer-encoding、keep-alive、te、host、cookie、remoteip、authority、x-forwarded-host、x-forwarded-for、x-forwarded-for-port、x-forwarded-tls-certificate-id、x-forwarded-tls-protocol、x-forwarded-tls-cipher、x-forwarded-elb-ip、x-forwarded-port、x-forwarded-elb-id、x-forwarded-elb-vip、x-real-ip、x-forwarded-proto、x-nuwa-trace-ne-in、x-nuwa-trace-ne-out 取值范围:1-40个字符,字母a-z(不区分大小写)、数字,短划线-和下划线_。 :return: The key of this RemoveHeaderConfig. :rtype: str @@ -55,7 +55,7 @@ def key(self): def key(self, key): """Sets the key of this RemoveHeaderConfig. - 被移除的请求头的参数名。取值范围: 1-40个字符(不区分大小写)。 支持字母a-z,数字,短划线-和下划线_。 不能移除以下请求头参数: connection、upgrade、content-length、transfer-encoding、keep-alive、te、host、cookie、remoteip、authority、x-forwarded-host、x-forwarded-for、x-forwarded-for-port、x-forwarded-tls-certificate-id、x-forwarded-tls-protocol、x-forwarded-tls-cipher、x-forwarded-elb-ip、x-forwarded-port、x-forwarded-elb-id、x-forwarded-elb-vip、x-real-ip、x-forwarded-proto、x-nuwa-trace-ne-in、x-nuwa-trace-ne-out + 参数解释:被移除的请求头的参数名。 约束限制:不能移除以下请求头参数: connection、upgrade、content-length、transfer-encoding、keep-alive、te、host、cookie、remoteip、authority、x-forwarded-host、x-forwarded-for、x-forwarded-for-port、x-forwarded-tls-certificate-id、x-forwarded-tls-protocol、x-forwarded-tls-cipher、x-forwarded-elb-ip、x-forwarded-port、x-forwarded-elb-id、x-forwarded-elb-vip、x-real-ip、x-forwarded-proto、x-nuwa-trace-ne-in、x-nuwa-trace-ne-out 取值范围:1-40个字符,字母a-z(不区分大小写)、数字,短划线-和下划线_。 :param key: The key of this RemoveHeaderConfig. :type key: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/remove_headers_config.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/remove_headers_config.py index 4a15e8b683..f76c612ebf 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/remove_headers_config.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/remove_headers_config.py @@ -29,7 +29,7 @@ def __init__(self, configs=None): The model defined in huaweicloud sdk - :param configs: 要移除的请求头参数列表。 + :param configs: 参数解释:要移除的请求头参数列表。 :type configs: list[:class:`huaweicloudsdkelb.v3.RemoveHeaderConfig`] """ @@ -44,7 +44,7 @@ def __init__(self, configs=None): def configs(self): """Gets the configs of this RemoveHeadersConfig. - 要移除的请求头参数列表。 + 参数解释:要移除的请求头参数列表。 :return: The configs of this RemoveHeadersConfig. :rtype: list[:class:`huaweicloudsdkelb.v3.RemoveHeaderConfig`] @@ -55,7 +55,7 @@ def configs(self): def configs(self, configs): """Sets the configs of this RemoveHeadersConfig. - 要移除的请求头参数列表。 + 参数解释:要移除的请求头参数列表。 :param configs: The configs of this RemoveHeadersConfig. :type configs: list[:class:`huaweicloudsdkelb.v3.RemoveHeaderConfig`] diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/rewrite_url_config.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/rewrite_url_config.py index 439223fa12..8c48a29160 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/rewrite_url_config.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/rewrite_url_config.py @@ -33,11 +33,11 @@ def __init__(self, host=None, path=None, query=None): The model defined in huaweicloud sdk - :param host: 重定向的域名。取值只能包含英文字母、数字、“-”、“.”,必须以字母、数字开头。 默认值${host},表示继承原值(即与被重写请求host保持一致)。 + :param host: 参数解释:重定向的域名。 取值范围:英文字母、数字、“-”、“.”,必须以字母、数字开头。 默认取值:${host},表示继承原值(即与被重写请求host保持一致)。 :type host: str - :param path: 重定向的请求路径。 取值只能包含英文字母、数字、_~';@^-%#&$.+?,=!:|/(),且必须以\"/\"开头。其中$1-$9会匹配请求url通配符星号(),当正则匹配分组小于指定数字,则$指定数字结果为空。$后面跟字母,匹配结果均为空,直到下一个特殊字符出现,例如$abc#123,则匹配结果为#123;$后面跟特殊字符则直接输出特殊字符,例如$#匹配结果为$#。 默认值${path}表示继承原值(即与被重写请求保持一致)。 + :param path: 参数解释:重定向的请求路径。其中$1-$9会匹配请求url通配符星号(*),当正则匹配分组小于指定数字,则$指定数字结果为空。$后面跟字母,匹配结果均为空,直到下一个特殊字符出现,例如$abc#123,则匹配结果为#123;$后面跟特殊字符则直接输出特殊字符,例如$#匹配结果为$#。 取值范围:英文字母、数字、_~';@^-%#&$.+?,=!:|/(),且必须以\"/\"开头。 默认取值:${path},表示继承原值(即与被重写请求保持一致)。 :type path: str - :param query: 重定向的查询字符串。取值只能包含英文字母、数字和特殊字符:!$&'()+,-./:;=?@^_`。字母区分大小写。其中$1-$9会匹配请求url通配符星号(),当正则匹配分组小于指定数字,则$指定数字结果为空。$后面跟字母,匹配结果均为空,直到下一个特殊字符出现,例如$abc#123,则匹配结果为#123;$后面跟特殊字符则直接输出特殊字符,例如$#匹配结果为$#。 默认${query},表示继承原值(即与被重写请求保持一致)。 + :param query: 参数解释:重定向的查询字符串。其中$1-$9会匹配请求url通配符星号(*),当正则匹配分组小于指定数字,则$指定数字结果为空。$后面跟字母,匹配结果均为空,直到下一个特殊字符出现,例如$abc#123,则匹配结果为#123;$后面跟特殊字符则直接输出特殊字符,例如$#匹配结果为$#。 取值范围:英文字母、数字和特殊字符:!$&'()+,-./:;=?@^_`。字母区分大小写。 默认取值:${query},表示继承原值(即与被重写请求保持一致)。 :type query: str """ @@ -59,7 +59,7 @@ def __init__(self, host=None, path=None, query=None): def host(self): """Gets the host of this RewriteUrlConfig. - 重定向的域名。取值只能包含英文字母、数字、“-”、“.”,必须以字母、数字开头。 默认值${host},表示继承原值(即与被重写请求host保持一致)。 + 参数解释:重定向的域名。 取值范围:英文字母、数字、“-”、“.”,必须以字母、数字开头。 默认取值:${host},表示继承原值(即与被重写请求host保持一致)。 :return: The host of this RewriteUrlConfig. :rtype: str @@ -70,7 +70,7 @@ def host(self): def host(self, host): """Sets the host of this RewriteUrlConfig. - 重定向的域名。取值只能包含英文字母、数字、“-”、“.”,必须以字母、数字开头。 默认值${host},表示继承原值(即与被重写请求host保持一致)。 + 参数解释:重定向的域名。 取值范围:英文字母、数字、“-”、“.”,必须以字母、数字开头。 默认取值:${host},表示继承原值(即与被重写请求host保持一致)。 :param host: The host of this RewriteUrlConfig. :type host: str @@ -81,7 +81,7 @@ def host(self, host): def path(self): """Gets the path of this RewriteUrlConfig. - 重定向的请求路径。 取值只能包含英文字母、数字、_~';@^-%#&$.+?,=!:|/(),且必须以\"/\"开头。其中$1-$9会匹配请求url通配符星号(),当正则匹配分组小于指定数字,则$指定数字结果为空。$后面跟字母,匹配结果均为空,直到下一个特殊字符出现,例如$abc#123,则匹配结果为#123;$后面跟特殊字符则直接输出特殊字符,例如$#匹配结果为$#。 默认值${path}表示继承原值(即与被重写请求保持一致)。 + 参数解释:重定向的请求路径。其中$1-$9会匹配请求url通配符星号(*),当正则匹配分组小于指定数字,则$指定数字结果为空。$后面跟字母,匹配结果均为空,直到下一个特殊字符出现,例如$abc#123,则匹配结果为#123;$后面跟特殊字符则直接输出特殊字符,例如$#匹配结果为$#。 取值范围:英文字母、数字、_~';@^-%#&$.+?,=!:|/(),且必须以\"/\"开头。 默认取值:${path},表示继承原值(即与被重写请求保持一致)。 :return: The path of this RewriteUrlConfig. :rtype: str @@ -92,7 +92,7 @@ def path(self): def path(self, path): """Sets the path of this RewriteUrlConfig. - 重定向的请求路径。 取值只能包含英文字母、数字、_~';@^-%#&$.+?,=!:|/(),且必须以\"/\"开头。其中$1-$9会匹配请求url通配符星号(),当正则匹配分组小于指定数字,则$指定数字结果为空。$后面跟字母,匹配结果均为空,直到下一个特殊字符出现,例如$abc#123,则匹配结果为#123;$后面跟特殊字符则直接输出特殊字符,例如$#匹配结果为$#。 默认值${path}表示继承原值(即与被重写请求保持一致)。 + 参数解释:重定向的请求路径。其中$1-$9会匹配请求url通配符星号(*),当正则匹配分组小于指定数字,则$指定数字结果为空。$后面跟字母,匹配结果均为空,直到下一个特殊字符出现,例如$abc#123,则匹配结果为#123;$后面跟特殊字符则直接输出特殊字符,例如$#匹配结果为$#。 取值范围:英文字母、数字、_~';@^-%#&$.+?,=!:|/(),且必须以\"/\"开头。 默认取值:${path},表示继承原值(即与被重写请求保持一致)。 :param path: The path of this RewriteUrlConfig. :type path: str @@ -103,7 +103,7 @@ def path(self, path): def query(self): """Gets the query of this RewriteUrlConfig. - 重定向的查询字符串。取值只能包含英文字母、数字和特殊字符:!$&'()+,-./:;=?@^_`。字母区分大小写。其中$1-$9会匹配请求url通配符星号(),当正则匹配分组小于指定数字,则$指定数字结果为空。$后面跟字母,匹配结果均为空,直到下一个特殊字符出现,例如$abc#123,则匹配结果为#123;$后面跟特殊字符则直接输出特殊字符,例如$#匹配结果为$#。 默认${query},表示继承原值(即与被重写请求保持一致)。 + 参数解释:重定向的查询字符串。其中$1-$9会匹配请求url通配符星号(*),当正则匹配分组小于指定数字,则$指定数字结果为空。$后面跟字母,匹配结果均为空,直到下一个特殊字符出现,例如$abc#123,则匹配结果为#123;$后面跟特殊字符则直接输出特殊字符,例如$#匹配结果为$#。 取值范围:英文字母、数字和特殊字符:!$&'()+,-./:;=?@^_`。字母区分大小写。 默认取值:${query},表示继承原值(即与被重写请求保持一致)。 :return: The query of this RewriteUrlConfig. :rtype: str @@ -114,7 +114,7 @@ def query(self): def query(self, query): """Sets the query of this RewriteUrlConfig. - 重定向的查询字符串。取值只能包含英文字母、数字和特殊字符:!$&'()+,-./:;=?@^_`。字母区分大小写。其中$1-$9会匹配请求url通配符星号(),当正则匹配分组小于指定数字,则$指定数字结果为空。$后面跟字母,匹配结果均为空,直到下一个特殊字符出现,例如$abc#123,则匹配结果为#123;$后面跟特殊字符则直接输出特殊字符,例如$#匹配结果为$#。 默认${query},表示继承原值(即与被重写请求保持一致)。 + 参数解释:重定向的查询字符串。其中$1-$9会匹配请求url通配符星号(*),当正则匹配分组小于指定数字,则$指定数字结果为空。$后面跟字母,匹配结果均为空,直到下一个特殊字符出现,例如$abc#123,则匹配结果为#123;$后面跟特殊字符则直接输出特殊字符,例如$#匹配结果为$#。 取值范围:英文字母、数字和特殊字符:!$&'()+,-./:;=?@^_`。字母区分大小写。 默认取值:${query},表示继承原值(即与被重写请求保持一致)。 :param query: The query of this RewriteUrlConfig. :type query: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/rule_condition.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/rule_condition.py index ff1e03c067..69e9d528f9 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/rule_condition.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/rule_condition.py @@ -31,9 +31,9 @@ def __init__(self, key=None, value=None): The model defined in huaweicloud sdk - :param key: 匹配项的名称。 当转发规则类别type为HOST_NAME、PATH、METHOD、SOURCE_IP时,该字段固定为空字符串。 当转发规则类别type为HEADER时,key表示请求头参数的名称,value表示请求头参数的值。 key的长度限制1-40字符,只允许包含字母、数字和-_。 当转发规则类别type为QUERY_STRING时,key表示查询参数的名称,value表示查询参数的值。 key的长度限制为1-128字符,不支持空格,中括号,大括号,尖括号,反斜杠,双引号, '#','&','|',‘%’,‘~’,字母区分大小写。 同一个rule内的conditions列表中所有key必须相同。 + :param key: 参数解释:匹配项的名称。 约束限制:同一个rule内的conditions列表中所有key必须相同。 取值范围: - 当转发规则类别type为HOST_NAME、PATH、METHOD、SOURCE_IP时,该字段固定为空字符串。 - 当转发规则类别type为HEADER时,key表示请求头参数的名称,value表示请求头参数的值。 key的长度限制1-40字符,只允许包含字母、数字和-_。 - 当转发规则类别type为QUERY_STRING时,key表示查询参数的名称,value表示查询参数的值。 key的长度限制为1-128字符,不支持空格,中括号,大括号,尖括号,反斜杠,双引号, '#','&','|',‘%’,‘~’,字母区分大小写。 :type key: str - :param value: 匹配项的值。 当转发规则类别type为HOST_NAME时,key固定为空字符串,value表示域名的值。 value长度1-128字符,字符串只能包含英文字母、数字、-.\\*, 必须以字母、数字或\\*开头,\\*只能出现在开头且必须以\\*.开始。 当转发规则类别type为PATH时,key固定为空字符串,value表示请求路径的值。 value长度1-128字符。当转发规则的compare_type为STARTS_WITH、EQUAL_TO时, 字符串只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以\"/\"开头。 当转发规则类别type为HEADER时,key表示请求头参数的名称,value表示请求头参数的值。 value长度限制1-128字符,不支持空格, 双引号,支持以下通配符:*(匹配0个或更多字符)和?(正好匹配1个字符)。 当转发规则类别type为QUERY_STRING时,key表示查询参数的名称,value表示查询参数的值。 value长度限制为1-128字符,不支持空格,中括号,大括号,尖括号,反斜杠,双引号, '#','&','|',‘%’,‘~’,字母区分大小写,支持通配符:*(匹配0个或更多字符)和?(正好匹配1个字符) 当转发规则类别type为METHOD时,key固定为空字符串,value表示请求方式。value取值范围为:GET, PUT, POST,DELETE, PATCH, HEAD, OPTIONS。 当转发规则类别type为SOURCE_IP时,key固定为空字符串,value表示请求源地址。 value为CIDR格式,支持ipv4,ipv6。例如192.168.0.2/32,2049::49/64。 同一个rule内的conditions列表中所有value不允许重复。 + :param value: 参数解释:匹配项的值。 约束限制: 同一个rule内的conditions列表中所有value不允许重复。 取值范围: - 当转发规则类别type为HOST_NAME时,key固定为空字符串,value表示域名的值。 value长度1-128字符,字符串只能包含英文字母、数字、-.\\*, 必须以字母、数字或\\*开头,\\*只能出现在开头且必须以\\*.开始。 - 当转发规则类别type为PATH时,key固定为空字符串,value表示请求路径的值。 value长度1-128字符。当转发规则的compare_type为STARTS_WITH、EQUAL_TO时, 字符串只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以\"/\"开头。 - 当转发规则类别type为HEADER时,key表示请求头参数的名称,value表示请求头参数的值。 value长度限制1-128字符,不支持空格, 双引号,支持以下通配符:*(匹配0个或更多字符)和?(正好匹配1个字符)。 - 当转发规则类别type为QUERY_STRING时,key表示查询参数的名称,value表示查询参数的值。 value长度限制为1-128字符,不支持空格,中括号,大括号,尖括号,反斜杠,双引号, '#','&','|',‘%’,‘~’,字母区分大小写,支持通配符:*(匹配0个或更多字符)和?(正好匹配1个字符) - 当转发规则类别type为METHOD时,key固定为空字符串,value表示请求方式。value取值范围为:GET, PUT, POST,DELETE, PATCH, HEAD, OPTIONS。 - 当转发规则类别type为SOURCE_IP时,key固定为空字符串,value表示请求源地址。 value为CIDR格式,支持ipv4,ipv6。例如192.168.0.2/32,2049::49/64。 :type value: str """ @@ -50,7 +50,7 @@ def __init__(self, key=None, value=None): def key(self): """Gets the key of this RuleCondition. - 匹配项的名称。 当转发规则类别type为HOST_NAME、PATH、METHOD、SOURCE_IP时,该字段固定为空字符串。 当转发规则类别type为HEADER时,key表示请求头参数的名称,value表示请求头参数的值。 key的长度限制1-40字符,只允许包含字母、数字和-_。 当转发规则类别type为QUERY_STRING时,key表示查询参数的名称,value表示查询参数的值。 key的长度限制为1-128字符,不支持空格,中括号,大括号,尖括号,反斜杠,双引号, '#','&','|',‘%’,‘~’,字母区分大小写。 同一个rule内的conditions列表中所有key必须相同。 + 参数解释:匹配项的名称。 约束限制:同一个rule内的conditions列表中所有key必须相同。 取值范围: - 当转发规则类别type为HOST_NAME、PATH、METHOD、SOURCE_IP时,该字段固定为空字符串。 - 当转发规则类别type为HEADER时,key表示请求头参数的名称,value表示请求头参数的值。 key的长度限制1-40字符,只允许包含字母、数字和-_。 - 当转发规则类别type为QUERY_STRING时,key表示查询参数的名称,value表示查询参数的值。 key的长度限制为1-128字符,不支持空格,中括号,大括号,尖括号,反斜杠,双引号, '#','&','|',‘%’,‘~’,字母区分大小写。 :return: The key of this RuleCondition. :rtype: str @@ -61,7 +61,7 @@ def key(self): def key(self, key): """Sets the key of this RuleCondition. - 匹配项的名称。 当转发规则类别type为HOST_NAME、PATH、METHOD、SOURCE_IP时,该字段固定为空字符串。 当转发规则类别type为HEADER时,key表示请求头参数的名称,value表示请求头参数的值。 key的长度限制1-40字符,只允许包含字母、数字和-_。 当转发规则类别type为QUERY_STRING时,key表示查询参数的名称,value表示查询参数的值。 key的长度限制为1-128字符,不支持空格,中括号,大括号,尖括号,反斜杠,双引号, '#','&','|',‘%’,‘~’,字母区分大小写。 同一个rule内的conditions列表中所有key必须相同。 + 参数解释:匹配项的名称。 约束限制:同一个rule内的conditions列表中所有key必须相同。 取值范围: - 当转发规则类别type为HOST_NAME、PATH、METHOD、SOURCE_IP时,该字段固定为空字符串。 - 当转发规则类别type为HEADER时,key表示请求头参数的名称,value表示请求头参数的值。 key的长度限制1-40字符,只允许包含字母、数字和-_。 - 当转发规则类别type为QUERY_STRING时,key表示查询参数的名称,value表示查询参数的值。 key的长度限制为1-128字符,不支持空格,中括号,大括号,尖括号,反斜杠,双引号, '#','&','|',‘%’,‘~’,字母区分大小写。 :param key: The key of this RuleCondition. :type key: str @@ -72,7 +72,7 @@ def key(self, key): def value(self): """Gets the value of this RuleCondition. - 匹配项的值。 当转发规则类别type为HOST_NAME时,key固定为空字符串,value表示域名的值。 value长度1-128字符,字符串只能包含英文字母、数字、-.\\*, 必须以字母、数字或\\*开头,\\*只能出现在开头且必须以\\*.开始。 当转发规则类别type为PATH时,key固定为空字符串,value表示请求路径的值。 value长度1-128字符。当转发规则的compare_type为STARTS_WITH、EQUAL_TO时, 字符串只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以\"/\"开头。 当转发规则类别type为HEADER时,key表示请求头参数的名称,value表示请求头参数的值。 value长度限制1-128字符,不支持空格, 双引号,支持以下通配符:*(匹配0个或更多字符)和?(正好匹配1个字符)。 当转发规则类别type为QUERY_STRING时,key表示查询参数的名称,value表示查询参数的值。 value长度限制为1-128字符,不支持空格,中括号,大括号,尖括号,反斜杠,双引号, '#','&','|',‘%’,‘~’,字母区分大小写,支持通配符:*(匹配0个或更多字符)和?(正好匹配1个字符) 当转发规则类别type为METHOD时,key固定为空字符串,value表示请求方式。value取值范围为:GET, PUT, POST,DELETE, PATCH, HEAD, OPTIONS。 当转发规则类别type为SOURCE_IP时,key固定为空字符串,value表示请求源地址。 value为CIDR格式,支持ipv4,ipv6。例如192.168.0.2/32,2049::49/64。 同一个rule内的conditions列表中所有value不允许重复。 + 参数解释:匹配项的值。 约束限制: 同一个rule内的conditions列表中所有value不允许重复。 取值范围: - 当转发规则类别type为HOST_NAME时,key固定为空字符串,value表示域名的值。 value长度1-128字符,字符串只能包含英文字母、数字、-.\\*, 必须以字母、数字或\\*开头,\\*只能出现在开头且必须以\\*.开始。 - 当转发规则类别type为PATH时,key固定为空字符串,value表示请求路径的值。 value长度1-128字符。当转发规则的compare_type为STARTS_WITH、EQUAL_TO时, 字符串只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以\"/\"开头。 - 当转发规则类别type为HEADER时,key表示请求头参数的名称,value表示请求头参数的值。 value长度限制1-128字符,不支持空格, 双引号,支持以下通配符:*(匹配0个或更多字符)和?(正好匹配1个字符)。 - 当转发规则类别type为QUERY_STRING时,key表示查询参数的名称,value表示查询参数的值。 value长度限制为1-128字符,不支持空格,中括号,大括号,尖括号,反斜杠,双引号, '#','&','|',‘%’,‘~’,字母区分大小写,支持通配符:*(匹配0个或更多字符)和?(正好匹配1个字符) - 当转发规则类别type为METHOD时,key固定为空字符串,value表示请求方式。value取值范围为:GET, PUT, POST,DELETE, PATCH, HEAD, OPTIONS。 - 当转发规则类别type为SOURCE_IP时,key固定为空字符串,value表示请求源地址。 value为CIDR格式,支持ipv4,ipv6。例如192.168.0.2/32,2049::49/64。 :return: The value of this RuleCondition. :rtype: str @@ -83,7 +83,7 @@ def value(self): def value(self, value): """Sets the value of this RuleCondition. - 匹配项的值。 当转发规则类别type为HOST_NAME时,key固定为空字符串,value表示域名的值。 value长度1-128字符,字符串只能包含英文字母、数字、-.\\*, 必须以字母、数字或\\*开头,\\*只能出现在开头且必须以\\*.开始。 当转发规则类别type为PATH时,key固定为空字符串,value表示请求路径的值。 value长度1-128字符。当转发规则的compare_type为STARTS_WITH、EQUAL_TO时, 字符串只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以\"/\"开头。 当转发规则类别type为HEADER时,key表示请求头参数的名称,value表示请求头参数的值。 value长度限制1-128字符,不支持空格, 双引号,支持以下通配符:*(匹配0个或更多字符)和?(正好匹配1个字符)。 当转发规则类别type为QUERY_STRING时,key表示查询参数的名称,value表示查询参数的值。 value长度限制为1-128字符,不支持空格,中括号,大括号,尖括号,反斜杠,双引号, '#','&','|',‘%’,‘~’,字母区分大小写,支持通配符:*(匹配0个或更多字符)和?(正好匹配1个字符) 当转发规则类别type为METHOD时,key固定为空字符串,value表示请求方式。value取值范围为:GET, PUT, POST,DELETE, PATCH, HEAD, OPTIONS。 当转发规则类别type为SOURCE_IP时,key固定为空字符串,value表示请求源地址。 value为CIDR格式,支持ipv4,ipv6。例如192.168.0.2/32,2049::49/64。 同一个rule内的conditions列表中所有value不允许重复。 + 参数解释:匹配项的值。 约束限制: 同一个rule内的conditions列表中所有value不允许重复。 取值范围: - 当转发规则类别type为HOST_NAME时,key固定为空字符串,value表示域名的值。 value长度1-128字符,字符串只能包含英文字母、数字、-.\\*, 必须以字母、数字或\\*开头,\\*只能出现在开头且必须以\\*.开始。 - 当转发规则类别type为PATH时,key固定为空字符串,value表示请求路径的值。 value长度1-128字符。当转发规则的compare_type为STARTS_WITH、EQUAL_TO时, 字符串只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以\"/\"开头。 - 当转发规则类别type为HEADER时,key表示请求头参数的名称,value表示请求头参数的值。 value长度限制1-128字符,不支持空格, 双引号,支持以下通配符:*(匹配0个或更多字符)和?(正好匹配1个字符)。 - 当转发规则类别type为QUERY_STRING时,key表示查询参数的名称,value表示查询参数的值。 value长度限制为1-128字符,不支持空格,中括号,大括号,尖括号,反斜杠,双引号, '#','&','|',‘%’,‘~’,字母区分大小写,支持通配符:*(匹配0个或更多字符)和?(正好匹配1个字符) - 当转发规则类别type为METHOD时,key固定为空字符串,value表示请求方式。value取值范围为:GET, PUT, POST,DELETE, PATCH, HEAD, OPTIONS。 - 当转发规则类别type为SOURCE_IP时,key固定为空字符串,value表示请求源地址。 value为CIDR格式,支持ipv4,ipv6。例如192.168.0.2/32,2049::49/64。 :param value: The value of this RuleCondition. :type value: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/rule_ref.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/rule_ref.py index 4b567b4537..b77058f810 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/rule_ref.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/rule_ref.py @@ -29,7 +29,7 @@ def __init__(self, id=None): The model defined in huaweicloud sdk - :param id: 规则ID。 + :param id: 参数解释:规则ID。 :type id: str """ @@ -44,7 +44,7 @@ def __init__(self, id=None): def id(self): """Gets the id of this RuleRef. - 规则ID。 + 参数解释:规则ID。 :return: The id of this RuleRef. :rtype: str @@ -55,7 +55,7 @@ def id(self): def id(self, id): """Sets the id of this RuleRef. - 规则ID。 + 参数解释:规则ID。 :param id: The id of this RuleRef. :type id: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/show_l7_policy_request.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/show_l7_policy_request.py index 97b4762a54..c3b7244daa 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/show_l7_policy_request.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/show_l7_policy_request.py @@ -29,7 +29,7 @@ def __init__(self, l7policy_id=None): The model defined in huaweicloud sdk - :param l7policy_id: 转发策略ID。 + :param l7policy_id: 参数解释:转发策略ID。 :type l7policy_id: str """ @@ -44,7 +44,7 @@ def __init__(self, l7policy_id=None): def l7policy_id(self): """Gets the l7policy_id of this ShowL7PolicyRequest. - 转发策略ID。 + 参数解释:转发策略ID。 :return: The l7policy_id of this ShowL7PolicyRequest. :rtype: str @@ -55,7 +55,7 @@ def l7policy_id(self): def l7policy_id(self, l7policy_id): """Sets the l7policy_id of this ShowL7PolicyRequest. - 转发策略ID。 + 参数解释:转发策略ID。 :param l7policy_id: The l7policy_id of this ShowL7PolicyRequest. :type l7policy_id: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/show_l7_policy_response.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/show_l7_policy_response.py index 263d9ac94d..1e7bb0964e 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/show_l7_policy_response.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/show_l7_policy_response.py @@ -32,7 +32,7 @@ def __init__(self, request_id=None, l7policy=None): The model defined in huaweicloud sdk - :param request_id: 请求ID。 注:自动生成 。 + :param request_id: 参数解释:请求ID。 注:自动生成 。 :type request_id: str :param l7policy: :type l7policy: :class:`huaweicloudsdkelb.v3.L7Policy` @@ -53,7 +53,7 @@ def __init__(self, request_id=None, l7policy=None): def request_id(self): """Gets the request_id of this ShowL7PolicyResponse. - 请求ID。 注:自动生成 。 + 参数解释:请求ID。 注:自动生成 。 :return: The request_id of this ShowL7PolicyResponse. :rtype: str @@ -64,7 +64,7 @@ def request_id(self): def request_id(self, request_id): """Sets the request_id of this ShowL7PolicyResponse. - 请求ID。 注:自动生成 。 + 参数解释:请求ID。 注:自动生成 。 :param request_id: The request_id of this ShowL7PolicyResponse. :type request_id: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/show_l7_rule_response.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/show_l7_rule_response.py index 5e83b33b79..fdad7dbb96 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/show_l7_rule_response.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/show_l7_rule_response.py @@ -32,7 +32,7 @@ def __init__(self, request_id=None, rule=None): The model defined in huaweicloud sdk - :param request_id: 请求ID。 注:自动生成 。 + :param request_id: 参数解释:请求ID。 注:自动生成 。 :type request_id: str :param rule: :type rule: :class:`huaweicloudsdkelb.v3.L7Rule` @@ -53,7 +53,7 @@ def __init__(self, request_id=None, rule=None): def request_id(self): """Gets the request_id of this ShowL7RuleResponse. - 请求ID。 注:自动生成 。 + 参数解释:请求ID。 注:自动生成 。 :return: The request_id of this ShowL7RuleResponse. :rtype: str @@ -64,7 +64,7 @@ def request_id(self): def request_id(self, request_id): """Sets the request_id of this ShowL7RuleResponse. - 请求ID。 注:自动生成 。 + 参数解释:请求ID。 注:自动生成 。 :param request_id: The request_id of this ShowL7RuleResponse. :type request_id: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/show_listener_response.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/show_listener_response.py index b00936c566..e35c760a7d 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/show_listener_response.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/show_listener_response.py @@ -32,7 +32,7 @@ def __init__(self, request_id=None, listener=None): The model defined in huaweicloud sdk - :param request_id: 请求ID。 注:自动生成 。 + :param request_id: 参数解释:请求ID。 注:自动生成 。 :type request_id: str :param listener: :type listener: :class:`huaweicloudsdkelb.v3.Listener` @@ -53,7 +53,7 @@ def __init__(self, request_id=None, listener=None): def request_id(self): """Gets the request_id of this ShowListenerResponse. - 请求ID。 注:自动生成 。 + 参数解释:请求ID。 注:自动生成 。 :return: The request_id of this ShowListenerResponse. :rtype: str @@ -64,7 +64,7 @@ def request_id(self): def request_id(self, request_id): """Sets the request_id of this ShowListenerResponse. - 请求ID。 注:自动生成 。 + 参数解释:请求ID。 注:自动生成 。 :param request_id: The request_id of this ShowListenerResponse. :type request_id: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/show_load_balancer_response.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/show_load_balancer_response.py index 90b9e69669..5669f4a7dd 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/show_load_balancer_response.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/show_load_balancer_response.py @@ -32,7 +32,7 @@ def __init__(self, request_id=None, loadbalancer=None): The model defined in huaweicloud sdk - :param request_id: 请求ID。 注:自动生成 。 + :param request_id: 参数解释:请求ID。 注:自动生成 。 :type request_id: str :param loadbalancer: :type loadbalancer: :class:`huaweicloudsdkelb.v3.LoadBalancer` @@ -53,7 +53,7 @@ def __init__(self, request_id=None, loadbalancer=None): def request_id(self): """Gets the request_id of this ShowLoadBalancerResponse. - 请求ID。 注:自动生成 。 + 参数解释:请求ID。 注:自动生成 。 :return: The request_id of this ShowLoadBalancerResponse. :rtype: str @@ -64,7 +64,7 @@ def request_id(self): def request_id(self, request_id): """Sets the request_id of this ShowLoadBalancerResponse. - 请求ID。 注:自动生成 。 + 参数解释:请求ID。 注:自动生成 。 :param request_id: The request_id of this ShowLoadBalancerResponse. :type request_id: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/show_load_balancer_status_response.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/show_load_balancer_status_response.py index 6b6ec8b4eb..a49f2be3bc 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/show_load_balancer_status_response.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/show_load_balancer_status_response.py @@ -34,7 +34,7 @@ def __init__(self, statuses=None, request_id=None): :param statuses: :type statuses: :class:`huaweicloudsdkelb.v3.LoadBalancerStatusResult` - :param request_id: 请求ID。 注:自动生成 。 + :param request_id: 参数解释:请求ID。 注:自动生成 。 :type request_id: str """ @@ -71,7 +71,7 @@ def statuses(self, statuses): def request_id(self): """Gets the request_id of this ShowLoadBalancerStatusResponse. - 请求ID。 注:自动生成 。 + 参数解释:请求ID。 注:自动生成 。 :return: The request_id of this ShowLoadBalancerStatusResponse. :rtype: str @@ -82,7 +82,7 @@ def request_id(self): def request_id(self, request_id): """Sets the request_id of this ShowLoadBalancerStatusResponse. - 请求ID。 注:自动生成 。 + 参数解释:请求ID。 注:自动生成 。 :param request_id: The request_id of this ShowLoadBalancerStatusResponse. :type request_id: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/show_master_slave_pool_request.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/show_master_slave_pool_request.py index 72c5f77e30..35b708d77b 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/show_master_slave_pool_request.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/show_master_slave_pool_request.py @@ -29,7 +29,7 @@ def __init__(self, pool_id=None): The model defined in huaweicloud sdk - :param pool_id: 后端服务器组ID。 + :param pool_id: 参数解释:后端服务器组ID。 :type pool_id: str """ @@ -44,7 +44,7 @@ def __init__(self, pool_id=None): def pool_id(self): """Gets the pool_id of this ShowMasterSlavePoolRequest. - 后端服务器组ID。 + 参数解释:后端服务器组ID。 :return: The pool_id of this ShowMasterSlavePoolRequest. :rtype: str @@ -55,7 +55,7 @@ def pool_id(self): def pool_id(self, pool_id): """Sets the pool_id of this ShowMasterSlavePoolRequest. - 后端服务器组ID。 + 参数解释:后端服务器组ID。 :param pool_id: The pool_id of this ShowMasterSlavePoolRequest. :type pool_id: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/show_member_request.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/show_member_request.py index 83ca80216f..8f922e70a2 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/show_member_request.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/show_member_request.py @@ -31,7 +31,7 @@ def __init__(self, pool_id=None, member_id=None): The model defined in huaweicloud sdk - :param pool_id: 后端服务器组ID。 + :param pool_id: 参数解释:后端服务器组ID。 :type pool_id: str :param member_id: 后端服务器ID。 >说明: 此处并非ECS服务器的ID,而是ELB为绑定的后端服务器自动生成的member ID。 :type member_id: str @@ -50,7 +50,7 @@ def __init__(self, pool_id=None, member_id=None): def pool_id(self): """Gets the pool_id of this ShowMemberRequest. - 后端服务器组ID。 + 参数解释:后端服务器组ID。 :return: The pool_id of this ShowMemberRequest. :rtype: str @@ -61,7 +61,7 @@ def pool_id(self): def pool_id(self, pool_id): """Sets the pool_id of this ShowMemberRequest. - 后端服务器组ID。 + 参数解释:后端服务器组ID。 :param pool_id: The pool_id of this ShowMemberRequest. :type pool_id: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/show_pool_request.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/show_pool_request.py index 1a30bcaf84..247e5f0636 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/show_pool_request.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/show_pool_request.py @@ -29,7 +29,7 @@ def __init__(self, pool_id=None): The model defined in huaweicloud sdk - :param pool_id: 后端服务器组ID。 + :param pool_id: 参数解释:后端服务器组ID。 :type pool_id: str """ @@ -44,7 +44,7 @@ def __init__(self, pool_id=None): def pool_id(self): """Gets the pool_id of this ShowPoolRequest. - 后端服务器组ID。 + 参数解释:后端服务器组ID。 :return: The pool_id of this ShowPoolRequest. :rtype: str @@ -55,7 +55,7 @@ def pool_id(self): def pool_id(self, pool_id): """Sets the pool_id of this ShowPoolRequest. - 后端服务器组ID。 + 参数解释:后端服务器组ID。 :param pool_id: The pool_id of this ShowPoolRequest. :type pool_id: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/tag.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/tag.py index df5d3506b0..61e08eda1b 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/tag.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/tag.py @@ -31,9 +31,9 @@ def __init__(self, key=None, value=None): The model defined in huaweicloud sdk - :param key: 标签键 + :param key: 参数解释:标签键 :type key: str - :param value: 标签值 + :param value: 参数解释:标签值 :type value: str """ @@ -52,7 +52,7 @@ def __init__(self, key=None, value=None): def key(self): """Gets the key of this Tag. - 标签键 + 参数解释:标签键 :return: The key of this Tag. :rtype: str @@ -63,7 +63,7 @@ def key(self): def key(self, key): """Sets the key of this Tag. - 标签键 + 参数解释:标签键 :param key: The key of this Tag. :type key: str @@ -74,7 +74,7 @@ def key(self, key): def value(self): """Gets the value of this Tag. - 标签值 + 参数解释:标签值 :return: The value of this Tag. :rtype: str @@ -85,7 +85,7 @@ def value(self): def value(self, value): """Sets the value of this Tag. - 标签值 + 参数解释:标签值 :param value: The value of this Tag. :type value: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/traffic_limit_config.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/traffic_limit_config.py index 83a20abbf4..f075c23059 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/traffic_limit_config.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/traffic_limit_config.py @@ -33,11 +33,11 @@ def __init__(self, qps=None, per_source_ip_qps=None, burst=None): The model defined in huaweicloud sdk - :param qps: 转发策略整体限速。取值: 0-100000s。0表示不限速 + :param qps: 参数解释:转发策略qps限速。 取值范围:0-100000,单位:个/秒。0表示不限速。 :type qps: int - :param per_source_ip_qps: 对转发策略单源进行限速。 quic监听器下转发策略不支持配置单源限速,指定该字段时,赋值可以为0或者为null 取值: 0-100000s。0表示不限速,如果qps不为0,per_ip_qps需要小于qps。 + :param per_source_ip_qps: 参数解释:对转发策略单源(单个客户端IP)进行限速。 约束限制: - quic监听器下转发策略不支持配置单源限速。 - 指定该字段时,赋值可以为0或者为null。 - 如果qps不为0,per_source_ip_qps需要小于qps。 取值范围:0-100000,单位:个/秒。0表示不限速。 :type per_source_ip_qps: int - :param burst: 对转发策略单源进行限速。取值: 0-100000s。当qps超限的时候,不返回503,支持允许局部突增burst大小的请求。 + :param burst: 参数解释:设置当单源qps超限时,允许的局部突增请求数量。超出该限制的请求将返回503。 取值范围:0-100000,单位:个/秒。 :type burst: int """ @@ -59,7 +59,7 @@ def __init__(self, qps=None, per_source_ip_qps=None, burst=None): def qps(self): """Gets the qps of this TrafficLimitConfig. - 转发策略整体限速。取值: 0-100000s。0表示不限速 + 参数解释:转发策略qps限速。 取值范围:0-100000,单位:个/秒。0表示不限速。 :return: The qps of this TrafficLimitConfig. :rtype: int @@ -70,7 +70,7 @@ def qps(self): def qps(self, qps): """Sets the qps of this TrafficLimitConfig. - 转发策略整体限速。取值: 0-100000s。0表示不限速 + 参数解释:转发策略qps限速。 取值范围:0-100000,单位:个/秒。0表示不限速。 :param qps: The qps of this TrafficLimitConfig. :type qps: int @@ -81,7 +81,7 @@ def qps(self, qps): def per_source_ip_qps(self): """Gets the per_source_ip_qps of this TrafficLimitConfig. - 对转发策略单源进行限速。 quic监听器下转发策略不支持配置单源限速,指定该字段时,赋值可以为0或者为null 取值: 0-100000s。0表示不限速,如果qps不为0,per_ip_qps需要小于qps。 + 参数解释:对转发策略单源(单个客户端IP)进行限速。 约束限制: - quic监听器下转发策略不支持配置单源限速。 - 指定该字段时,赋值可以为0或者为null。 - 如果qps不为0,per_source_ip_qps需要小于qps。 取值范围:0-100000,单位:个/秒。0表示不限速。 :return: The per_source_ip_qps of this TrafficLimitConfig. :rtype: int @@ -92,7 +92,7 @@ def per_source_ip_qps(self): def per_source_ip_qps(self, per_source_ip_qps): """Sets the per_source_ip_qps of this TrafficLimitConfig. - 对转发策略单源进行限速。 quic监听器下转发策略不支持配置单源限速,指定该字段时,赋值可以为0或者为null 取值: 0-100000s。0表示不限速,如果qps不为0,per_ip_qps需要小于qps。 + 参数解释:对转发策略单源(单个客户端IP)进行限速。 约束限制: - quic监听器下转发策略不支持配置单源限速。 - 指定该字段时,赋值可以为0或者为null。 - 如果qps不为0,per_source_ip_qps需要小于qps。 取值范围:0-100000,单位:个/秒。0表示不限速。 :param per_source_ip_qps: The per_source_ip_qps of this TrafficLimitConfig. :type per_source_ip_qps: int @@ -103,7 +103,7 @@ def per_source_ip_qps(self, per_source_ip_qps): def burst(self): """Gets the burst of this TrafficLimitConfig. - 对转发策略单源进行限速。取值: 0-100000s。当qps超限的时候,不返回503,支持允许局部突增burst大小的请求。 + 参数解释:设置当单源qps超限时,允许的局部突增请求数量。超出该限制的请求将返回503。 取值范围:0-100000,单位:个/秒。 :return: The burst of this TrafficLimitConfig. :rtype: int @@ -114,7 +114,7 @@ def burst(self): def burst(self, burst): """Sets the burst of this TrafficLimitConfig. - 对转发策略单源进行限速。取值: 0-100000s。当qps超限的时候,不返回503,支持允许局部突增burst大小的请求。 + 参数解释:设置当单源qps超限时,允许的局部突增请求数量。超出该限制的请求将返回503。 取值范围:0-100000,单位:个/秒。 :param burst: The burst of this TrafficLimitConfig. :type burst: int diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/upadate_ip_group_ip_option.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/upadate_ip_group_ip_option.py index 4b35c8db90..d3254bf687 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/upadate_ip_group_ip_option.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/upadate_ip_group_ip_option.py @@ -31,7 +31,7 @@ def __init__(self, ip=None, description=None): The model defined in huaweicloud sdk - :param ip: 参数解释:IP地址。支持IPv4、IPv6。若传入IP地址不存在,则新增;否则更新已有IP地址的描述信息。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test) + :param ip: 参数解释:IP地址或者IP地址段。支持IPv4、IPv6。IP地址段格式为ip-ip,例如192.168.1.2-192.168.2.253或者2001:0DB8:02de::0e12-2001:0DB8:02de::0e13,终止IP需要大于起始IP。 若传入IP地址不存在,则新增;否则更新已有IP地址的描述信息。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test) :type ip: str :param description: 参数解释:备注信息。 :type description: str @@ -51,7 +51,7 @@ def __init__(self, ip=None, description=None): def ip(self): """Gets the ip of this UpadateIpGroupIpOption. - 参数解释:IP地址。支持IPv4、IPv6。若传入IP地址不存在,则新增;否则更新已有IP地址的描述信息。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test) + 参数解释:IP地址或者IP地址段。支持IPv4、IPv6。IP地址段格式为ip-ip,例如192.168.1.2-192.168.2.253或者2001:0DB8:02de::0e12-2001:0DB8:02de::0e13,终止IP需要大于起始IP。 若传入IP地址不存在,则新增;否则更新已有IP地址的描述信息。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test) :return: The ip of this UpadateIpGroupIpOption. :rtype: str @@ -62,7 +62,7 @@ def ip(self): def ip(self, ip): """Sets the ip of this UpadateIpGroupIpOption. - 参数解释:IP地址。支持IPv4、IPv6。若传入IP地址不存在,则新增;否则更新已有IP地址的描述信息。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test) + 参数解释:IP地址或者IP地址段。支持IPv4、IPv6。IP地址段格式为ip-ip,例如192.168.1.2-192.168.2.253或者2001:0DB8:02de::0e12-2001:0DB8:02de::0e13,终止IP需要大于起始IP。 若传入IP地址不存在,则新增;否则更新已有IP地址的描述信息。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test) :param ip: The ip of this UpadateIpGroupIpOption. :type ip: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_fixted_response_config.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_fixted_response_config.py index 8a255f00f2..102b62db0e 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_fixted_response_config.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_fixted_response_config.py @@ -39,11 +39,11 @@ def __init__(self, status_code=None, content_type=None, message_body=None, inser The model defined in huaweicloud sdk - :param status_code: 返回码。支持200~299,400~499,500~599。 + :param status_code: 参数解释:返回码。 取值范围:200-299,400-499,500-599。 :type status_code: str - :param content_type: 返回body的格式。 取值范围: - text/plain - text/css - text/html - application/javascript - application/json application/json + :param content_type: 参数解释:返回body的格式。 取值范围: - text/plain - text/css - text/html - application/javascript - application/json application/json :type content_type: str - :param message_body: 返回消息内容。 + :param message_body: 参数解释:返回消息内容。 :type message_body: str :param insert_headers_config: :type insert_headers_config: :class:`huaweicloudsdkelb.v3.UpdateInsertHeadersConfig` @@ -80,7 +80,7 @@ def __init__(self, status_code=None, content_type=None, message_body=None, inser def status_code(self): """Gets the status_code of this UpdateFixtedResponseConfig. - 返回码。支持200~299,400~499,500~599。 + 参数解释:返回码。 取值范围:200-299,400-499,500-599。 :return: The status_code of this UpdateFixtedResponseConfig. :rtype: str @@ -91,7 +91,7 @@ def status_code(self): def status_code(self, status_code): """Sets the status_code of this UpdateFixtedResponseConfig. - 返回码。支持200~299,400~499,500~599。 + 参数解释:返回码。 取值范围:200-299,400-499,500-599。 :param status_code: The status_code of this UpdateFixtedResponseConfig. :type status_code: str @@ -102,7 +102,7 @@ def status_code(self, status_code): def content_type(self): """Gets the content_type of this UpdateFixtedResponseConfig. - 返回body的格式。 取值范围: - text/plain - text/css - text/html - application/javascript - application/json application/json + 参数解释:返回body的格式。 取值范围: - text/plain - text/css - text/html - application/javascript - application/json application/json :return: The content_type of this UpdateFixtedResponseConfig. :rtype: str @@ -113,7 +113,7 @@ def content_type(self): def content_type(self, content_type): """Sets the content_type of this UpdateFixtedResponseConfig. - 返回body的格式。 取值范围: - text/plain - text/css - text/html - application/javascript - application/json application/json + 参数解释:返回body的格式。 取值范围: - text/plain - text/css - text/html - application/javascript - application/json application/json :param content_type: The content_type of this UpdateFixtedResponseConfig. :type content_type: str @@ -124,7 +124,7 @@ def content_type(self, content_type): def message_body(self): """Gets the message_body of this UpdateFixtedResponseConfig. - 返回消息内容。 + 参数解释:返回消息内容。 :return: The message_body of this UpdateFixtedResponseConfig. :rtype: str @@ -135,7 +135,7 @@ def message_body(self): def message_body(self, message_body): """Sets the message_body of this UpdateFixtedResponseConfig. - 返回消息内容。 + 参数解释:返回消息内容。 :param message_body: The message_body of this UpdateFixtedResponseConfig. :type message_body: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_health_monitor_option.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_health_monitor_option.py index 02acf4c6b1..7890c42b24 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_health_monitor_option.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_health_monitor_option.py @@ -51,13 +51,13 @@ def __init__(self, admin_state_up=None, delay=None, domain_name=None, expected_c The model defined in huaweicloud sdk - :param admin_state_up: 健康检查的管理状态。 取值: - true:表示开启健康检查,默认为true。 - false表示关闭健康检查。 + :param admin_state_up: 参数解释:健康检查的管理状态。 取值范围: - true:表示开启健康检查。 - false表示关闭健康检查。 :type admin_state_up: bool :param delay: 健康检查间隔。健康检查间隔。取值:1-50s。 :type delay: int :param domain_name: 发送健康检查请求的域名。 取值:以数字或字母开头,只能包含数字、字母、’-’、’.’。 不能传空,但可传null或不传,表示使用负载均衡器的vip作为http请求的目的地址。 使用说明:当type为HTTP/HTTPS时生效。 :type domain_name: str - :param expected_codes: 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 仅支持HTTP/HTTPS/GRPC设置该字段,其他协议设置不会生效。 + :param expected_codes: 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 仅支持HTTP/HTTPS/gRPC设置该字段,其他协议设置不会生效。 :type expected_codes: str :param http_method: HTTP请求方法。 取值:GET、HEAD、POST,默认GET。 使用说明:当type为HTTP/HTTPS时生效。 :type http_method: str @@ -65,7 +65,7 @@ def __init__(self, admin_state_up=None, delay=None, domain_name=None, expected_c :type max_retries: int :param max_retries_down: 健康检查连续失败多少次后,将后端服务器的健康检查状态由ONLINE判定为OFFLINE。取值范围:1-10。 :type max_retries_down: int - :param monitor_port: 健康检查端口号。取值:1-65535,不可传入空,但可传入null,表示使用后端云服务器端口号。 + :param monitor_port: 健康检查端口号。取值:1-65535,不可传入空,但可传入null,表示使用后端云服务器端口号。[当pool协议为IP时,monitor_port必须指定为非0值。](tag:hws_eu) :type monitor_port: int :param name: 健康检查名称。 :type name: str @@ -73,7 +73,7 @@ def __init__(self, admin_state_up=None, delay=None, domain_name=None, expected_c :type timeout: int :param url_path: 健康检查请求的请求路径。以\"/\"开头,默认为\"/\"。 支持使用字母、数字和短划线(-)、正斜线(/)、半角句号(.)、百分号(%)、半角问号(?)、井号(#)和and(&)以及扩展字符集_;~!()*[]@$^:',+ 使用说明:当type为HTTP/HTTPS时生效。 :type url_path: str - :param type: 健康检查请求协议。 取值:TCP、UDP_CONNECT、HTTP、HTTPS、TLS和GRPC。 使用说明: - 若pool的protocol为QUIC,则type只能是UDP_CONNECT。 - 若pool的protocol为UDP,则type只能UDP_CONNECT。 - 若pool的protocol为TCP,则type可以是TCP、HTTP、HTTPS。 - 若pool的protocol为HTTP,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 - 若pool的protocol为HTTPS,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 - 若pool的protocol为GRPC,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 - 若pool的protocol为TLS,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) + :param type: 健康检查请求协议。 取值:TCP、UDP_CONNECT、HTTP、HTTPS、TLS和gRPC。 使用说明: - 若pool的protocol为QUIC,则type只能是UDP_CONNECT。 - 若pool的protocol为UDP,则type只能UDP_CONNECT。 - 若pool的protocol为TCP,则type可以是TCP、HTTP、HTTPS。 [- 若pool的protocol为IP,则type可以是TCP、HTTP、HTTPS。](tag:hws_eu) - 若pool的protocol为HTTP,则type可以是TCP、HTTP、HTTPS、TLS、gRPC。 - 若pool的protocol为HTTPS,则type可以是TCP、HTTP、HTTPS、TLS、gRPC。 - 若pool的protocol为gRPC,则type可以是TCP、HTTP、HTTPS、TLS、gRPC。 - 若pool的protocol为TLS,则type可以是TCP、HTTP、HTTPS、TLS、gRPC。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) :type type: str """ @@ -122,7 +122,7 @@ def __init__(self, admin_state_up=None, delay=None, domain_name=None, expected_c def admin_state_up(self): """Gets the admin_state_up of this UpdateHealthMonitorOption. - 健康检查的管理状态。 取值: - true:表示开启健康检查,默认为true。 - false表示关闭健康检查。 + 参数解释:健康检查的管理状态。 取值范围: - true:表示开启健康检查。 - false表示关闭健康检查。 :return: The admin_state_up of this UpdateHealthMonitorOption. :rtype: bool @@ -133,7 +133,7 @@ def admin_state_up(self): def admin_state_up(self, admin_state_up): """Sets the admin_state_up of this UpdateHealthMonitorOption. - 健康检查的管理状态。 取值: - true:表示开启健康检查,默认为true。 - false表示关闭健康检查。 + 参数解释:健康检查的管理状态。 取值范围: - true:表示开启健康检查。 - false表示关闭健康检查。 :param admin_state_up: The admin_state_up of this UpdateHealthMonitorOption. :type admin_state_up: bool @@ -188,7 +188,7 @@ def domain_name(self, domain_name): def expected_codes(self): """Gets the expected_codes of this UpdateHealthMonitorOption. - 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 仅支持HTTP/HTTPS/GRPC设置该字段,其他协议设置不会生效。 + 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 仅支持HTTP/HTTPS/gRPC设置该字段,其他协议设置不会生效。 :return: The expected_codes of this UpdateHealthMonitorOption. :rtype: str @@ -199,7 +199,7 @@ def expected_codes(self): def expected_codes(self, expected_codes): """Sets the expected_codes of this UpdateHealthMonitorOption. - 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 仅支持HTTP/HTTPS/GRPC设置该字段,其他协议设置不会生效。 + 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 仅支持HTTP/HTTPS/gRPC设置该字段,其他协议设置不会生效。 :param expected_codes: The expected_codes of this UpdateHealthMonitorOption. :type expected_codes: str @@ -276,7 +276,7 @@ def max_retries_down(self, max_retries_down): def monitor_port(self): """Gets the monitor_port of this UpdateHealthMonitorOption. - 健康检查端口号。取值:1-65535,不可传入空,但可传入null,表示使用后端云服务器端口号。 + 健康检查端口号。取值:1-65535,不可传入空,但可传入null,表示使用后端云服务器端口号。[当pool协议为IP时,monitor_port必须指定为非0值。](tag:hws_eu) :return: The monitor_port of this UpdateHealthMonitorOption. :rtype: int @@ -287,7 +287,7 @@ def monitor_port(self): def monitor_port(self, monitor_port): """Sets the monitor_port of this UpdateHealthMonitorOption. - 健康检查端口号。取值:1-65535,不可传入空,但可传入null,表示使用后端云服务器端口号。 + 健康检查端口号。取值:1-65535,不可传入空,但可传入null,表示使用后端云服务器端口号。[当pool协议为IP时,monitor_port必须指定为非0值。](tag:hws_eu) :param monitor_port: The monitor_port of this UpdateHealthMonitorOption. :type monitor_port: int @@ -364,7 +364,7 @@ def url_path(self, url_path): def type(self): """Gets the type of this UpdateHealthMonitorOption. - 健康检查请求协议。 取值:TCP、UDP_CONNECT、HTTP、HTTPS、TLS和GRPC。 使用说明: - 若pool的protocol为QUIC,则type只能是UDP_CONNECT。 - 若pool的protocol为UDP,则type只能UDP_CONNECT。 - 若pool的protocol为TCP,则type可以是TCP、HTTP、HTTPS。 - 若pool的protocol为HTTP,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 - 若pool的protocol为HTTPS,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 - 若pool的protocol为GRPC,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 - 若pool的protocol为TLS,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) + 健康检查请求协议。 取值:TCP、UDP_CONNECT、HTTP、HTTPS、TLS和gRPC。 使用说明: - 若pool的protocol为QUIC,则type只能是UDP_CONNECT。 - 若pool的protocol为UDP,则type只能UDP_CONNECT。 - 若pool的protocol为TCP,则type可以是TCP、HTTP、HTTPS。 [- 若pool的protocol为IP,则type可以是TCP、HTTP、HTTPS。](tag:hws_eu) - 若pool的protocol为HTTP,则type可以是TCP、HTTP、HTTPS、TLS、gRPC。 - 若pool的protocol为HTTPS,则type可以是TCP、HTTP、HTTPS、TLS、gRPC。 - 若pool的protocol为gRPC,则type可以是TCP、HTTP、HTTPS、TLS、gRPC。 - 若pool的protocol为TLS,则type可以是TCP、HTTP、HTTPS、TLS、gRPC。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) :return: The type of this UpdateHealthMonitorOption. :rtype: str @@ -375,7 +375,7 @@ def type(self): def type(self, type): """Sets the type of this UpdateHealthMonitorOption. - 健康检查请求协议。 取值:TCP、UDP_CONNECT、HTTP、HTTPS、TLS和GRPC。 使用说明: - 若pool的protocol为QUIC,则type只能是UDP_CONNECT。 - 若pool的protocol为UDP,则type只能UDP_CONNECT。 - 若pool的protocol为TCP,则type可以是TCP、HTTP、HTTPS。 - 若pool的protocol为HTTP,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 - 若pool的protocol为HTTPS,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 - 若pool的protocol为GRPC,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 - 若pool的protocol为TLS,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) + 健康检查请求协议。 取值:TCP、UDP_CONNECT、HTTP、HTTPS、TLS和gRPC。 使用说明: - 若pool的protocol为QUIC,则type只能是UDP_CONNECT。 - 若pool的protocol为UDP,则type只能UDP_CONNECT。 - 若pool的protocol为TCP,则type可以是TCP、HTTP、HTTPS。 [- 若pool的protocol为IP,则type可以是TCP、HTTP、HTTPS。](tag:hws_eu) - 若pool的protocol为HTTP,则type可以是TCP、HTTP、HTTPS、TLS、gRPC。 - 若pool的protocol为HTTPS,则type可以是TCP、HTTP、HTTPS、TLS、gRPC。 - 若pool的protocol为gRPC,则type可以是TCP、HTTP、HTTPS、TLS、gRPC。 - 若pool的protocol为TLS,则type可以是TCP、HTTP、HTTPS、TLS、gRPC。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) :param type: The type of this UpdateHealthMonitorOption. :type type: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_insert_header_config.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_insert_header_config.py index d14ec55920..69a956c52d 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_insert_header_config.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_insert_header_config.py @@ -33,11 +33,11 @@ def __init__(self, key=None, value_type=None, value=None): The model defined in huaweicloud sdk - :param key: 支持1-40个字符(不区分大小写)。 支持字母a-z,数字,短划线-和下划线_。 key不能是以下字符: connection、upgrade、content-length、transfer-encoding、keep-alive、te、host、cookie、remoteip、authority、x-forwarded-host、x-forwarded-for、x-forwarded-for-port、x-forwarded-tls-certificate-id、x-forwarded-tls-protocol、x-forwarded-tls-cipher、x-forwarded-elb-ip、x-forwarded-port、x-forwarded-elb-id、x-forwarded-elb-vip、x-real-ip、x-forwarded-proto、x-nuwa-trace-ne-in、x-nuwa-trace-ne-out。 + :param key: 参数解释:请求头参数名。 约束限制:不能是以下字符: connection、upgrade、content-length、transfer-encoding、keep-alive、te、host、cookie、remoteip、authority、x-forwarded-host、x-forwarded-for、x-forwarded-for-port、x-forwarded-tls-certificate-id、x-forwarded-tls-protocol、x-forwarded-tls-cipher、x-forwarded-elb-ip、x-forwarded-port、x-forwarded-elb-id、x-forwarded-elb-vip、x-real-ip、x-forwarded-proto、x-nuwa-trace-ne-in、x-nuwa-trace-ne-out。 取值范围:1-40个字符,字母a-z(不区分大小写)、数字,短划线-和下划线_。 :type key: str - :param value_type: 可选值:USER_DEFINED,REFERENCE_HEADER,SYSTEM_DEFINED。 + :param value_type: 参数解释:请求头参数类别。 取值范围:USER_DEFINED,REFERENCE_HEADER,SYSTEM_DEFINED。 :type value_type: str - :param value: header值。当value_type为SYSTEM_DEFINED时,value只可从CLIENT-PORT,CLIENT-IP, ELB-PROTOCOL, ELB-ID, ELB-PORT, ELB-EIP, ELB-VIP中取值。 取值范围:1-128个字符, 支持ascii码值32<=ch<=127范围内可打印字符,*和英文问号?。不能以空格开头或结尾。 + :param value: 参数解释:请求头参数的值。 约束限制:当value_type为SYSTEM_DEFINED时,value只可从CLIENT-PORT,CLIENT-IP, ELB-PROTOCOL, ELB-ID, ELB-PORT, ELB-EIP, ELB-VIP中取值。 取值范围:1-128个字符,支持ascii码值32<=ch<=127范围内可打印字符,*和英文问号?。不能以空格开头或结尾。 :type value: str """ @@ -56,7 +56,7 @@ def __init__(self, key=None, value_type=None, value=None): def key(self): """Gets the key of this UpdateInsertHeaderConfig. - 支持1-40个字符(不区分大小写)。 支持字母a-z,数字,短划线-和下划线_。 key不能是以下字符: connection、upgrade、content-length、transfer-encoding、keep-alive、te、host、cookie、remoteip、authority、x-forwarded-host、x-forwarded-for、x-forwarded-for-port、x-forwarded-tls-certificate-id、x-forwarded-tls-protocol、x-forwarded-tls-cipher、x-forwarded-elb-ip、x-forwarded-port、x-forwarded-elb-id、x-forwarded-elb-vip、x-real-ip、x-forwarded-proto、x-nuwa-trace-ne-in、x-nuwa-trace-ne-out。 + 参数解释:请求头参数名。 约束限制:不能是以下字符: connection、upgrade、content-length、transfer-encoding、keep-alive、te、host、cookie、remoteip、authority、x-forwarded-host、x-forwarded-for、x-forwarded-for-port、x-forwarded-tls-certificate-id、x-forwarded-tls-protocol、x-forwarded-tls-cipher、x-forwarded-elb-ip、x-forwarded-port、x-forwarded-elb-id、x-forwarded-elb-vip、x-real-ip、x-forwarded-proto、x-nuwa-trace-ne-in、x-nuwa-trace-ne-out。 取值范围:1-40个字符,字母a-z(不区分大小写)、数字,短划线-和下划线_。 :return: The key of this UpdateInsertHeaderConfig. :rtype: str @@ -67,7 +67,7 @@ def key(self): def key(self, key): """Sets the key of this UpdateInsertHeaderConfig. - 支持1-40个字符(不区分大小写)。 支持字母a-z,数字,短划线-和下划线_。 key不能是以下字符: connection、upgrade、content-length、transfer-encoding、keep-alive、te、host、cookie、remoteip、authority、x-forwarded-host、x-forwarded-for、x-forwarded-for-port、x-forwarded-tls-certificate-id、x-forwarded-tls-protocol、x-forwarded-tls-cipher、x-forwarded-elb-ip、x-forwarded-port、x-forwarded-elb-id、x-forwarded-elb-vip、x-real-ip、x-forwarded-proto、x-nuwa-trace-ne-in、x-nuwa-trace-ne-out。 + 参数解释:请求头参数名。 约束限制:不能是以下字符: connection、upgrade、content-length、transfer-encoding、keep-alive、te、host、cookie、remoteip、authority、x-forwarded-host、x-forwarded-for、x-forwarded-for-port、x-forwarded-tls-certificate-id、x-forwarded-tls-protocol、x-forwarded-tls-cipher、x-forwarded-elb-ip、x-forwarded-port、x-forwarded-elb-id、x-forwarded-elb-vip、x-real-ip、x-forwarded-proto、x-nuwa-trace-ne-in、x-nuwa-trace-ne-out。 取值范围:1-40个字符,字母a-z(不区分大小写)、数字,短划线-和下划线_。 :param key: The key of this UpdateInsertHeaderConfig. :type key: str @@ -78,7 +78,7 @@ def key(self, key): def value_type(self): """Gets the value_type of this UpdateInsertHeaderConfig. - 可选值:USER_DEFINED,REFERENCE_HEADER,SYSTEM_DEFINED。 + 参数解释:请求头参数类别。 取值范围:USER_DEFINED,REFERENCE_HEADER,SYSTEM_DEFINED。 :return: The value_type of this UpdateInsertHeaderConfig. :rtype: str @@ -89,7 +89,7 @@ def value_type(self): def value_type(self, value_type): """Sets the value_type of this UpdateInsertHeaderConfig. - 可选值:USER_DEFINED,REFERENCE_HEADER,SYSTEM_DEFINED。 + 参数解释:请求头参数类别。 取值范围:USER_DEFINED,REFERENCE_HEADER,SYSTEM_DEFINED。 :param value_type: The value_type of this UpdateInsertHeaderConfig. :type value_type: str @@ -100,7 +100,7 @@ def value_type(self, value_type): def value(self): """Gets the value of this UpdateInsertHeaderConfig. - header值。当value_type为SYSTEM_DEFINED时,value只可从CLIENT-PORT,CLIENT-IP, ELB-PROTOCOL, ELB-ID, ELB-PORT, ELB-EIP, ELB-VIP中取值。 取值范围:1-128个字符, 支持ascii码值32<=ch<=127范围内可打印字符,*和英文问号?。不能以空格开头或结尾。 + 参数解释:请求头参数的值。 约束限制:当value_type为SYSTEM_DEFINED时,value只可从CLIENT-PORT,CLIENT-IP, ELB-PROTOCOL, ELB-ID, ELB-PORT, ELB-EIP, ELB-VIP中取值。 取值范围:1-128个字符,支持ascii码值32<=ch<=127范围内可打印字符,*和英文问号?。不能以空格开头或结尾。 :return: The value of this UpdateInsertHeaderConfig. :rtype: str @@ -111,7 +111,7 @@ def value(self): def value(self, value): """Sets the value of this UpdateInsertHeaderConfig. - header值。当value_type为SYSTEM_DEFINED时,value只可从CLIENT-PORT,CLIENT-IP, ELB-PROTOCOL, ELB-ID, ELB-PORT, ELB-EIP, ELB-VIP中取值。 取值范围:1-128个字符, 支持ascii码值32<=ch<=127范围内可打印字符,*和英文问号?。不能以空格开头或结尾。 + 参数解释:请求头参数的值。 约束限制:当value_type为SYSTEM_DEFINED时,value只可从CLIENT-PORT,CLIENT-IP, ELB-PROTOCOL, ELB-ID, ELB-PORT, ELB-EIP, ELB-VIP中取值。 取值范围:1-128个字符,支持ascii码值32<=ch<=127范围内可打印字符,*和英文问号?。不能以空格开头或结尾。 :param value: The value of this UpdateInsertHeaderConfig. :type value: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_insert_headers_config.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_insert_headers_config.py index 5130d665ea..63211133eb 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_insert_headers_config.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_insert_headers_config.py @@ -29,7 +29,7 @@ def __init__(self, configs=None): The model defined in huaweicloud sdk - :param configs: 要添加请求头参数列表。 + :param configs: 参数解释:要添加请求头参数列表。 :type configs: list[:class:`huaweicloudsdkelb.v3.UpdateInsertHeaderConfig`] """ @@ -44,7 +44,7 @@ def __init__(self, configs=None): def configs(self): """Gets the configs of this UpdateInsertHeadersConfig. - 要添加请求头参数列表。 + 参数解释:要添加请求头参数列表。 :return: The configs of this UpdateInsertHeadersConfig. :rtype: list[:class:`huaweicloudsdkelb.v3.UpdateInsertHeaderConfig`] @@ -55,7 +55,7 @@ def configs(self): def configs(self, configs): """Sets the configs of this UpdateInsertHeadersConfig. - 要添加请求头参数列表。 + 参数解释:要添加请求头参数列表。 :param configs: The configs of this UpdateInsertHeadersConfig. :type configs: list[:class:`huaweicloudsdkelb.v3.UpdateInsertHeaderConfig`] diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_l7_policy_option.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_l7_policy_option.py index e11080e353..b50486af82 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_l7_policy_option.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_l7_policy_option.py @@ -51,17 +51,17 @@ def __init__(self, admin_state_up=None, description=None, name=None, redirect_li The model defined in huaweicloud sdk - :param admin_state_up: 转发策略的管理状态,默认为true。 不支持该字段,请勿使用。 + :param admin_state_up: 参数解释:转发策略的管理状态。 约束限制:只支持设置为true。 :type admin_state_up: bool - :param description: 转发策略描述信息。 + :param description: 参数解释:转发策略描述信息。 :type description: str - :param name: 转发策略名称。 + :param name: 参数解释:转发策略名称。 :type name: str - :param redirect_listener_id: 转发到的listener的ID。 使用说明: - 当action为REDIRECT_TO_LISTENER时不能更新为空或null。 - 只支持protocol为HTTPS/TERMINATED_HTTPS的listener。 - 不能指定为其他loadbalancer下的listener。 - 当action为REDIRECT_TO_POOL时,创建或更新时不能传入该参数。 + :param redirect_listener_id: 参数解释:转发到的listener的ID。 约束限制: - 当action为REDIRECT_TO_LISTENER时不能更新为空或null。 - 只支持protocol为HTTPS/TERMINATED_HTTPS的listener。 - 不能指定为其他loadbalancer下的listener。 - 当action为REDIRECT_TO_POOL时,创建或更新时不能传入该参数。 :type redirect_listener_id: str - :param redirect_pool_id: 转发到pool的ID。 使用说明: - 指定的pool不能是listener的default_pool。不能是其他listener的l7policy使用的pool。 - 当action为REDIRECT_TO_POOL时为必选字段,不能更新为空或null。 当action为REDIRECT_TO_LISTENER时,不可指定。 + :param redirect_pool_id: 参数解释:转发到pool的ID。 约束限制: - 指定的pool不能是任何listener的default_pool。不能是其他listener的l7policy使用的pool。 - 当action为REDIRECT_TO_POOL时生效,但不能更新为空或null。 - 当action为REDIRECT_TO_LISTENER时,传入会报错。 :type redirect_pool_id: str - :param redirect_pools_config: 转发到多个主机组列表。一个policy最多配置5个pool。 + :param redirect_pools_config: 参数解释:转发到多个主机组列表。一个policy最多配置5个pool。 :type redirect_pools_config: list[:class:`huaweicloudsdkelb.v3.UpdateRedirectPoolsConfig`] :param redirect_pools_sticky_session_config: :type redirect_pools_sticky_session_config: :class:`huaweicloudsdkelb.v3.UpdateRedirectPoolsStickySessionConfig` @@ -71,9 +71,9 @@ def __init__(self, admin_state_up=None, description=None, name=None, redirect_li :type fixed_response_config: :class:`huaweicloudsdkelb.v3.UpdateFixtedResponseConfig` :param redirect_pools_extend_config: :type redirect_pools_extend_config: :class:`huaweicloudsdkelb.v3.UpdateRedirectPoolsExtendConfig` - :param rules: 转发策略关联的转发规则对象。 详细参考表l7rule字段说明。rules列表中最多含有10个rule规则 (若rule中包含conditions字段,一条condition算一个规则), 且列表中type为HOST_NAME,PATH,METHOD,SOURCE_IP的rule不能重复,至多指定一条。 + :param rules: 参数解释:转发策略关联的转发规则对象。 约束限制: - rules列表中最多含有10个rule规则 (若rule中包含conditions字段,一条condition算一个规则), 且列表中type为HOST_NAME,PATH,METHOD,SOURCE_IP的rule不能重复,至多指定一条。 - 仅支持全量替换。 :type rules: list[:class:`huaweicloudsdkelb.v3.CreateRuleOption`] - :param priority: 转发策略的优先级。数字越小表示优先级越高,同一监听器下不允许重复。 当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效,未开启传入该字段会报错。 当action为REDIRECT_TO_LISTENER时,仅支持指定为0,优先级最高。 当关联的listener没有开启enhance_l7policy_enable,按原有policy的排序逻辑,自动排序。 各域名之间优先级独立,相同域名下,按path的compare_type排序, 精确>前缀>正则,匹配类型相同时,path的长度越长优先级越高。 若policy下只有域名rule,没有路径rule,默认path为前缀匹配/。 当关联的listener开启了enhance_l7policy_enable,且不传该字段, 则新创建的转发策略的优先级的值为:同一监听器下已有转发策略的优先级的最大值+1。 因此,若当前已有转发策略的优先级的最大值是10000,新创建会因超出取值范围10000而失败。 此时可通过传入指定priority,或调整原有policy的优先级来避免错误。 若监听器下没有转发策略,则新建的转发策略的优先级为1。 [共享型负载均衡器下的转发策略不支持该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) + :param priority: 参数解释:转发策略的优先级。数字越小表示优先级越高。 约束限制: - 同一个监听器下不同转发策略之间不允许重复的优先级数值。 - 当关联的监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效,未开启传入该字段会报错。 - 当关联的监听器的高级转发策略功能(enhance_l7policy_enable)未开启,按原有policy的排序逻辑,自动排序。 不同域名优先级独立。相同域名下,按path的compare_type排序, 精确>前缀>正则,匹配类型相同时,path的长度越长优先级越高。 若policy下只有域名rule,没有路径rule,默认path为前缀匹配/。 [- 共享型负载均衡器下的转发策略不支持该字段。](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) 取值范围: - 当action为REDIRECT_TO_LISTENER时,支持指定为0-10000。 - 其它action取值,支持指定为1-10000。 默认取值: - 若关联的监听器的高级转发策略功能(enhance_l7policy_enable)未开启,且不传入该字段,则新创建的转发策略的优先级的值为1。 - 当action为REDIRECT_TO_LISTENER时,则新创建的转发策略的优先级的值为0。 - 其它action取值,新创建的转发策略的优先级的值为同一监听器下已有转发策略的优先级的最大值+1。 + 若监听器下没有转发策略,则新建的转发策略的优先级为1。 + 若当前已有转发策略的优先级的最大值是10000,则新创建的转发策略会因超出取值范围10000而失败。此时可通过传入指定priority,或调整原有policy的优先级来避免错误。 [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) :type priority: int """ @@ -122,7 +122,7 @@ def __init__(self, admin_state_up=None, description=None, name=None, redirect_li def admin_state_up(self): """Gets the admin_state_up of this UpdateL7PolicyOption. - 转发策略的管理状态,默认为true。 不支持该字段,请勿使用。 + 参数解释:转发策略的管理状态。 约束限制:只支持设置为true。 :return: The admin_state_up of this UpdateL7PolicyOption. :rtype: bool @@ -133,7 +133,7 @@ def admin_state_up(self): def admin_state_up(self, admin_state_up): """Sets the admin_state_up of this UpdateL7PolicyOption. - 转发策略的管理状态,默认为true。 不支持该字段,请勿使用。 + 参数解释:转发策略的管理状态。 约束限制:只支持设置为true。 :param admin_state_up: The admin_state_up of this UpdateL7PolicyOption. :type admin_state_up: bool @@ -144,7 +144,7 @@ def admin_state_up(self, admin_state_up): def description(self): """Gets the description of this UpdateL7PolicyOption. - 转发策略描述信息。 + 参数解释:转发策略描述信息。 :return: The description of this UpdateL7PolicyOption. :rtype: str @@ -155,7 +155,7 @@ def description(self): def description(self, description): """Sets the description of this UpdateL7PolicyOption. - 转发策略描述信息。 + 参数解释:转发策略描述信息。 :param description: The description of this UpdateL7PolicyOption. :type description: str @@ -166,7 +166,7 @@ def description(self, description): def name(self): """Gets the name of this UpdateL7PolicyOption. - 转发策略名称。 + 参数解释:转发策略名称。 :return: The name of this UpdateL7PolicyOption. :rtype: str @@ -177,7 +177,7 @@ def name(self): def name(self, name): """Sets the name of this UpdateL7PolicyOption. - 转发策略名称。 + 参数解释:转发策略名称。 :param name: The name of this UpdateL7PolicyOption. :type name: str @@ -188,7 +188,7 @@ def name(self, name): def redirect_listener_id(self): """Gets the redirect_listener_id of this UpdateL7PolicyOption. - 转发到的listener的ID。 使用说明: - 当action为REDIRECT_TO_LISTENER时不能更新为空或null。 - 只支持protocol为HTTPS/TERMINATED_HTTPS的listener。 - 不能指定为其他loadbalancer下的listener。 - 当action为REDIRECT_TO_POOL时,创建或更新时不能传入该参数。 + 参数解释:转发到的listener的ID。 约束限制: - 当action为REDIRECT_TO_LISTENER时不能更新为空或null。 - 只支持protocol为HTTPS/TERMINATED_HTTPS的listener。 - 不能指定为其他loadbalancer下的listener。 - 当action为REDIRECT_TO_POOL时,创建或更新时不能传入该参数。 :return: The redirect_listener_id of this UpdateL7PolicyOption. :rtype: str @@ -199,7 +199,7 @@ def redirect_listener_id(self): def redirect_listener_id(self, redirect_listener_id): """Sets the redirect_listener_id of this UpdateL7PolicyOption. - 转发到的listener的ID。 使用说明: - 当action为REDIRECT_TO_LISTENER时不能更新为空或null。 - 只支持protocol为HTTPS/TERMINATED_HTTPS的listener。 - 不能指定为其他loadbalancer下的listener。 - 当action为REDIRECT_TO_POOL时,创建或更新时不能传入该参数。 + 参数解释:转发到的listener的ID。 约束限制: - 当action为REDIRECT_TO_LISTENER时不能更新为空或null。 - 只支持protocol为HTTPS/TERMINATED_HTTPS的listener。 - 不能指定为其他loadbalancer下的listener。 - 当action为REDIRECT_TO_POOL时,创建或更新时不能传入该参数。 :param redirect_listener_id: The redirect_listener_id of this UpdateL7PolicyOption. :type redirect_listener_id: str @@ -210,7 +210,7 @@ def redirect_listener_id(self, redirect_listener_id): def redirect_pool_id(self): """Gets the redirect_pool_id of this UpdateL7PolicyOption. - 转发到pool的ID。 使用说明: - 指定的pool不能是listener的default_pool。不能是其他listener的l7policy使用的pool。 - 当action为REDIRECT_TO_POOL时为必选字段,不能更新为空或null。 当action为REDIRECT_TO_LISTENER时,不可指定。 + 参数解释:转发到pool的ID。 约束限制: - 指定的pool不能是任何listener的default_pool。不能是其他listener的l7policy使用的pool。 - 当action为REDIRECT_TO_POOL时生效,但不能更新为空或null。 - 当action为REDIRECT_TO_LISTENER时,传入会报错。 :return: The redirect_pool_id of this UpdateL7PolicyOption. :rtype: str @@ -221,7 +221,7 @@ def redirect_pool_id(self): def redirect_pool_id(self, redirect_pool_id): """Sets the redirect_pool_id of this UpdateL7PolicyOption. - 转发到pool的ID。 使用说明: - 指定的pool不能是listener的default_pool。不能是其他listener的l7policy使用的pool。 - 当action为REDIRECT_TO_POOL时为必选字段,不能更新为空或null。 当action为REDIRECT_TO_LISTENER时,不可指定。 + 参数解释:转发到pool的ID。 约束限制: - 指定的pool不能是任何listener的default_pool。不能是其他listener的l7policy使用的pool。 - 当action为REDIRECT_TO_POOL时生效,但不能更新为空或null。 - 当action为REDIRECT_TO_LISTENER时,传入会报错。 :param redirect_pool_id: The redirect_pool_id of this UpdateL7PolicyOption. :type redirect_pool_id: str @@ -232,7 +232,7 @@ def redirect_pool_id(self, redirect_pool_id): def redirect_pools_config(self): """Gets the redirect_pools_config of this UpdateL7PolicyOption. - 转发到多个主机组列表。一个policy最多配置5个pool。 + 参数解释:转发到多个主机组列表。一个policy最多配置5个pool。 :return: The redirect_pools_config of this UpdateL7PolicyOption. :rtype: list[:class:`huaweicloudsdkelb.v3.UpdateRedirectPoolsConfig`] @@ -243,7 +243,7 @@ def redirect_pools_config(self): def redirect_pools_config(self, redirect_pools_config): """Sets the redirect_pools_config of this UpdateL7PolicyOption. - 转发到多个主机组列表。一个policy最多配置5个pool。 + 参数解释:转发到多个主机组列表。一个policy最多配置5个pool。 :param redirect_pools_config: The redirect_pools_config of this UpdateL7PolicyOption. :type redirect_pools_config: list[:class:`huaweicloudsdkelb.v3.UpdateRedirectPoolsConfig`] @@ -326,7 +326,7 @@ def redirect_pools_extend_config(self, redirect_pools_extend_config): def rules(self): """Gets the rules of this UpdateL7PolicyOption. - 转发策略关联的转发规则对象。 详细参考表l7rule字段说明。rules列表中最多含有10个rule规则 (若rule中包含conditions字段,一条condition算一个规则), 且列表中type为HOST_NAME,PATH,METHOD,SOURCE_IP的rule不能重复,至多指定一条。 + 参数解释:转发策略关联的转发规则对象。 约束限制: - rules列表中最多含有10个rule规则 (若rule中包含conditions字段,一条condition算一个规则), 且列表中type为HOST_NAME,PATH,METHOD,SOURCE_IP的rule不能重复,至多指定一条。 - 仅支持全量替换。 :return: The rules of this UpdateL7PolicyOption. :rtype: list[:class:`huaweicloudsdkelb.v3.CreateRuleOption`] @@ -337,7 +337,7 @@ def rules(self): def rules(self, rules): """Sets the rules of this UpdateL7PolicyOption. - 转发策略关联的转发规则对象。 详细参考表l7rule字段说明。rules列表中最多含有10个rule规则 (若rule中包含conditions字段,一条condition算一个规则), 且列表中type为HOST_NAME,PATH,METHOD,SOURCE_IP的rule不能重复,至多指定一条。 + 参数解释:转发策略关联的转发规则对象。 约束限制: - rules列表中最多含有10个rule规则 (若rule中包含conditions字段,一条condition算一个规则), 且列表中type为HOST_NAME,PATH,METHOD,SOURCE_IP的rule不能重复,至多指定一条。 - 仅支持全量替换。 :param rules: The rules of this UpdateL7PolicyOption. :type rules: list[:class:`huaweicloudsdkelb.v3.CreateRuleOption`] @@ -348,7 +348,7 @@ def rules(self, rules): def priority(self): """Gets the priority of this UpdateL7PolicyOption. - 转发策略的优先级。数字越小表示优先级越高,同一监听器下不允许重复。 当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效,未开启传入该字段会报错。 当action为REDIRECT_TO_LISTENER时,仅支持指定为0,优先级最高。 当关联的listener没有开启enhance_l7policy_enable,按原有policy的排序逻辑,自动排序。 各域名之间优先级独立,相同域名下,按path的compare_type排序, 精确>前缀>正则,匹配类型相同时,path的长度越长优先级越高。 若policy下只有域名rule,没有路径rule,默认path为前缀匹配/。 当关联的listener开启了enhance_l7policy_enable,且不传该字段, 则新创建的转发策略的优先级的值为:同一监听器下已有转发策略的优先级的最大值+1。 因此,若当前已有转发策略的优先级的最大值是10000,新创建会因超出取值范围10000而失败。 此时可通过传入指定priority,或调整原有policy的优先级来避免错误。 若监听器下没有转发策略,则新建的转发策略的优先级为1。 [共享型负载均衡器下的转发策略不支持该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) + 参数解释:转发策略的优先级。数字越小表示优先级越高。 约束限制: - 同一个监听器下不同转发策略之间不允许重复的优先级数值。 - 当关联的监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效,未开启传入该字段会报错。 - 当关联的监听器的高级转发策略功能(enhance_l7policy_enable)未开启,按原有policy的排序逻辑,自动排序。 不同域名优先级独立。相同域名下,按path的compare_type排序, 精确>前缀>正则,匹配类型相同时,path的长度越长优先级越高。 若policy下只有域名rule,没有路径rule,默认path为前缀匹配/。 [- 共享型负载均衡器下的转发策略不支持该字段。](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) 取值范围: - 当action为REDIRECT_TO_LISTENER时,支持指定为0-10000。 - 其它action取值,支持指定为1-10000。 默认取值: - 若关联的监听器的高级转发策略功能(enhance_l7policy_enable)未开启,且不传入该字段,则新创建的转发策略的优先级的值为1。 - 当action为REDIRECT_TO_LISTENER时,则新创建的转发策略的优先级的值为0。 - 其它action取值,新创建的转发策略的优先级的值为同一监听器下已有转发策略的优先级的最大值+1。 + 若监听器下没有转发策略,则新建的转发策略的优先级为1。 + 若当前已有转发策略的优先级的最大值是10000,则新创建的转发策略会因超出取值范围10000而失败。此时可通过传入指定priority,或调整原有policy的优先级来避免错误。 [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) :return: The priority of this UpdateL7PolicyOption. :rtype: int @@ -359,7 +359,7 @@ def priority(self): def priority(self, priority): """Sets the priority of this UpdateL7PolicyOption. - 转发策略的优先级。数字越小表示优先级越高,同一监听器下不允许重复。 当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效,未开启传入该字段会报错。 当action为REDIRECT_TO_LISTENER时,仅支持指定为0,优先级最高。 当关联的listener没有开启enhance_l7policy_enable,按原有policy的排序逻辑,自动排序。 各域名之间优先级独立,相同域名下,按path的compare_type排序, 精确>前缀>正则,匹配类型相同时,path的长度越长优先级越高。 若policy下只有域名rule,没有路径rule,默认path为前缀匹配/。 当关联的listener开启了enhance_l7policy_enable,且不传该字段, 则新创建的转发策略的优先级的值为:同一监听器下已有转发策略的优先级的最大值+1。 因此,若当前已有转发策略的优先级的最大值是10000,新创建会因超出取值范围10000而失败。 此时可通过传入指定priority,或调整原有policy的优先级来避免错误。 若监听器下没有转发策略,则新建的转发策略的优先级为1。 [共享型负载均衡器下的转发策略不支持该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) + 参数解释:转发策略的优先级。数字越小表示优先级越高。 约束限制: - 同一个监听器下不同转发策略之间不允许重复的优先级数值。 - 当关联的监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效,未开启传入该字段会报错。 - 当关联的监听器的高级转发策略功能(enhance_l7policy_enable)未开启,按原有policy的排序逻辑,自动排序。 不同域名优先级独立。相同域名下,按path的compare_type排序, 精确>前缀>正则,匹配类型相同时,path的长度越长优先级越高。 若policy下只有域名rule,没有路径rule,默认path为前缀匹配/。 [- 共享型负载均衡器下的转发策略不支持该字段。](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) 取值范围: - 当action为REDIRECT_TO_LISTENER时,支持指定为0-10000。 - 其它action取值,支持指定为1-10000。 默认取值: - 若关联的监听器的高级转发策略功能(enhance_l7policy_enable)未开启,且不传入该字段,则新创建的转发策略的优先级的值为1。 - 当action为REDIRECT_TO_LISTENER时,则新创建的转发策略的优先级的值为0。 - 其它action取值,新创建的转发策略的优先级的值为同一监听器下已有转发策略的优先级的最大值+1。 + 若监听器下没有转发策略,则新建的转发策略的优先级为1。 + 若当前已有转发策略的优先级的最大值是10000,则新创建的转发策略会因超出取值范围10000而失败。此时可通过传入指定priority,或调整原有policy的优先级来避免错误。 [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) :param priority: The priority of this UpdateL7PolicyOption. :type priority: int diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_l7_policy_request.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_l7_policy_request.py index f245002e91..82dd1adcb8 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_l7_policy_request.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_l7_policy_request.py @@ -31,7 +31,7 @@ def __init__(self, l7policy_id=None, body=None): The model defined in huaweicloud sdk - :param l7policy_id: 转发策略ID。 + :param l7policy_id: 参数解释:转发策略ID。 :type l7policy_id: str :param body: Body of the UpdateL7PolicyRequest :type body: :class:`huaweicloudsdkelb.v3.UpdateL7PolicyRequestBody` @@ -51,7 +51,7 @@ def __init__(self, l7policy_id=None, body=None): def l7policy_id(self): """Gets the l7policy_id of this UpdateL7PolicyRequest. - 转发策略ID。 + 参数解释:转发策略ID。 :return: The l7policy_id of this UpdateL7PolicyRequest. :rtype: str @@ -62,7 +62,7 @@ def l7policy_id(self): def l7policy_id(self, l7policy_id): """Sets the l7policy_id of this UpdateL7PolicyRequest. - 转发策略ID。 + 参数解释:转发策略ID。 :param l7policy_id: The l7policy_id of this UpdateL7PolicyRequest. :type l7policy_id: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_l7_policy_response.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_l7_policy_response.py index 0f0c5be1ed..5d17cec4fc 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_l7_policy_response.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_l7_policy_response.py @@ -32,7 +32,7 @@ def __init__(self, request_id=None, l7policy=None): The model defined in huaweicloud sdk - :param request_id: 请求ID。 注:自动生成 。 + :param request_id: 参数解释:请求ID。 注:自动生成 。 :type request_id: str :param l7policy: :type l7policy: :class:`huaweicloudsdkelb.v3.L7Policy` @@ -53,7 +53,7 @@ def __init__(self, request_id=None, l7policy=None): def request_id(self): """Gets the request_id of this UpdateL7PolicyResponse. - 请求ID。 注:自动生成 。 + 参数解释:请求ID。 注:自动生成 。 :return: The request_id of this UpdateL7PolicyResponse. :rtype: str @@ -64,7 +64,7 @@ def request_id(self): def request_id(self, request_id): """Sets the request_id of this UpdateL7PolicyResponse. - 请求ID。 注:自动生成 。 + 参数解释:请求ID。 注:自动生成 。 :param request_id: The request_id of this UpdateL7PolicyResponse. :type request_id: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_l7_rule_option.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_l7_rule_option.py index 435282a908..822ff9e174 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_l7_rule_option.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_l7_rule_option.py @@ -39,17 +39,17 @@ def __init__(self, admin_state_up=None, compare_type=None, invert=None, key=None The model defined in huaweicloud sdk - :param admin_state_up: 转发规则的管理状态,默认为true。 不支持该字段,请勿使用。 + :param admin_state_up: 参数解释:转发规则的管理状态。 约束限制:只支持设置为true。 :type admin_state_up: bool - :param compare_type: 转发匹配方式。 取值: - EQUAL_TO 表示精确匹配。 - REGEX 表示正则匹配。 - STARTS_WITH 表示前缀匹配。 使用说明: - type为HOST_NAME时仅支持EQUAL_TO,支持通配符*。 - type为PATH时可以为REGEX,STARTS_WITH,EQUAL_TO。 - type为METHOD、SOURCE_IP时,仅支持EQUAL_TO。 - type为HEADER、QUERY_STRING,仅支持EQUAL_TO,支持通配符*、?。 + :param compare_type: 参数解释:转发匹配方式。 约束限制: - type为HOST_NAME时仅支持EQUAL_TO,支持通配符*。 - type为PATH时可以为REGEX,STARTS_WITH,EQUAL_TO。 - type为METHOD、SOURCE_IP时,仅支持EQUAL_TO。 - type为HEADER、QUERY_STRING,仅支持EQUAL_TO,支持通配符*、?。 取值范围: - EQUAL_TO 表示精确匹配。 - REGEX 表示正则匹配。 - STARTS_WITH 表示前缀匹配。 :type compare_type: str - :param invert: 是否反向匹配。 取值:true、false。 不支持该字段,请勿使用。 + :param invert: 参数解释:是否反向匹配。 取值范围:true、false。 不支持该字段,请勿使用。 :type invert: bool - :param key: 匹配项的名称,比如转发规则匹配类型是请求头匹配,则key表示请求头参数的名称。 不支持该字段,请勿使用。 + :param key: 参数解释:匹配项的名称,比如转发规则匹配类型是请求头匹配,则key表示请求头参数的名称。 不支持该字段,请勿使用。 :type key: str - :param value: 匹配项的值。比如转发规则匹配类型是域名匹配,则value表示域名的值。仅当conditions空时该字段生效。 当转发规则类别type为HOST_NAME时,字符串只能包含英文字母、数字、-.\\*,必须以字母、数字或\\*开头。 若域名中包含\\*,则\\*只能出现在开头且必须以\\*.开始。当\\*开头时表示通配0~任一个字符。 当转发规则类别type为PATH时,当转发规则的compare_type为STARTS_WITH、EQUAL_TO时, 字符串只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以/开头。 当转发规则类别type为METHOD、SOURCE_IP、HEADER,QUERY_STRING时, 该字段无意义,使用conditions来指定key/value。 + :param value: 参数解释:匹配项的值。比如转发规则匹配类型是域名匹配,则value表示域名的值。 约束限制:仅当conditions空时该字段生效。 取值范围: - 当转发规则类别type为HOST_NAME时,字符串只能包含英文字母、数字、-.\\*,必须以字母、数字或\\*开头。 若域名中包含\\*,则\\*只能出现在开头且必须以\\*.开始。当\\*开头时表示通配0~任一个字符。 - 当转发规则类别type为PATH时,当转发规则的compare_type为STARTS_WITH、EQUAL_TO时, 字符串只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以/开头。 - 当转发规则类别type为METHOD、SOURCE_IP、HEADER,QUERY_STRING时, 该字段无意义,使用conditions来指定key/value。 :type value: str - :param conditions: 转发规则的匹配条件。当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效。 若转发规则配置了conditions,字段key、字段value的值无意义。 同一个rule内的conditions列表中所有key必须相同,value不允许重复。 [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) + :param conditions: 参数解释:转发规则的匹配条件。 约束限制: - 当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效。 - 若转发规则配置了conditions,字段key、字段value的值无意义。 - 同一个rule内的conditions列表中所有key必须相同,value不允许重复。 [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) :type conditions: list[:class:`huaweicloudsdkelb.v3.UpdateRuleCondition`] """ @@ -80,7 +80,7 @@ def __init__(self, admin_state_up=None, compare_type=None, invert=None, key=None def admin_state_up(self): """Gets the admin_state_up of this UpdateL7RuleOption. - 转发规则的管理状态,默认为true。 不支持该字段,请勿使用。 + 参数解释:转发规则的管理状态。 约束限制:只支持设置为true。 :return: The admin_state_up of this UpdateL7RuleOption. :rtype: bool @@ -91,7 +91,7 @@ def admin_state_up(self): def admin_state_up(self, admin_state_up): """Sets the admin_state_up of this UpdateL7RuleOption. - 转发规则的管理状态,默认为true。 不支持该字段,请勿使用。 + 参数解释:转发规则的管理状态。 约束限制:只支持设置为true。 :param admin_state_up: The admin_state_up of this UpdateL7RuleOption. :type admin_state_up: bool @@ -102,7 +102,7 @@ def admin_state_up(self, admin_state_up): def compare_type(self): """Gets the compare_type of this UpdateL7RuleOption. - 转发匹配方式。 取值: - EQUAL_TO 表示精确匹配。 - REGEX 表示正则匹配。 - STARTS_WITH 表示前缀匹配。 使用说明: - type为HOST_NAME时仅支持EQUAL_TO,支持通配符*。 - type为PATH时可以为REGEX,STARTS_WITH,EQUAL_TO。 - type为METHOD、SOURCE_IP时,仅支持EQUAL_TO。 - type为HEADER、QUERY_STRING,仅支持EQUAL_TO,支持通配符*、?。 + 参数解释:转发匹配方式。 约束限制: - type为HOST_NAME时仅支持EQUAL_TO,支持通配符*。 - type为PATH时可以为REGEX,STARTS_WITH,EQUAL_TO。 - type为METHOD、SOURCE_IP时,仅支持EQUAL_TO。 - type为HEADER、QUERY_STRING,仅支持EQUAL_TO,支持通配符*、?。 取值范围: - EQUAL_TO 表示精确匹配。 - REGEX 表示正则匹配。 - STARTS_WITH 表示前缀匹配。 :return: The compare_type of this UpdateL7RuleOption. :rtype: str @@ -113,7 +113,7 @@ def compare_type(self): def compare_type(self, compare_type): """Sets the compare_type of this UpdateL7RuleOption. - 转发匹配方式。 取值: - EQUAL_TO 表示精确匹配。 - REGEX 表示正则匹配。 - STARTS_WITH 表示前缀匹配。 使用说明: - type为HOST_NAME时仅支持EQUAL_TO,支持通配符*。 - type为PATH时可以为REGEX,STARTS_WITH,EQUAL_TO。 - type为METHOD、SOURCE_IP时,仅支持EQUAL_TO。 - type为HEADER、QUERY_STRING,仅支持EQUAL_TO,支持通配符*、?。 + 参数解释:转发匹配方式。 约束限制: - type为HOST_NAME时仅支持EQUAL_TO,支持通配符*。 - type为PATH时可以为REGEX,STARTS_WITH,EQUAL_TO。 - type为METHOD、SOURCE_IP时,仅支持EQUAL_TO。 - type为HEADER、QUERY_STRING,仅支持EQUAL_TO,支持通配符*、?。 取值范围: - EQUAL_TO 表示精确匹配。 - REGEX 表示正则匹配。 - STARTS_WITH 表示前缀匹配。 :param compare_type: The compare_type of this UpdateL7RuleOption. :type compare_type: str @@ -124,7 +124,7 @@ def compare_type(self, compare_type): def invert(self): """Gets the invert of this UpdateL7RuleOption. - 是否反向匹配。 取值:true、false。 不支持该字段,请勿使用。 + 参数解释:是否反向匹配。 取值范围:true、false。 不支持该字段,请勿使用。 :return: The invert of this UpdateL7RuleOption. :rtype: bool @@ -135,7 +135,7 @@ def invert(self): def invert(self, invert): """Sets the invert of this UpdateL7RuleOption. - 是否反向匹配。 取值:true、false。 不支持该字段,请勿使用。 + 参数解释:是否反向匹配。 取值范围:true、false。 不支持该字段,请勿使用。 :param invert: The invert of this UpdateL7RuleOption. :type invert: bool @@ -146,7 +146,7 @@ def invert(self, invert): def key(self): """Gets the key of this UpdateL7RuleOption. - 匹配项的名称,比如转发规则匹配类型是请求头匹配,则key表示请求头参数的名称。 不支持该字段,请勿使用。 + 参数解释:匹配项的名称,比如转发规则匹配类型是请求头匹配,则key表示请求头参数的名称。 不支持该字段,请勿使用。 :return: The key of this UpdateL7RuleOption. :rtype: str @@ -157,7 +157,7 @@ def key(self): def key(self, key): """Sets the key of this UpdateL7RuleOption. - 匹配项的名称,比如转发规则匹配类型是请求头匹配,则key表示请求头参数的名称。 不支持该字段,请勿使用。 + 参数解释:匹配项的名称,比如转发规则匹配类型是请求头匹配,则key表示请求头参数的名称。 不支持该字段,请勿使用。 :param key: The key of this UpdateL7RuleOption. :type key: str @@ -168,7 +168,7 @@ def key(self, key): def value(self): """Gets the value of this UpdateL7RuleOption. - 匹配项的值。比如转发规则匹配类型是域名匹配,则value表示域名的值。仅当conditions空时该字段生效。 当转发规则类别type为HOST_NAME时,字符串只能包含英文字母、数字、-.\\*,必须以字母、数字或\\*开头。 若域名中包含\\*,则\\*只能出现在开头且必须以\\*.开始。当\\*开头时表示通配0~任一个字符。 当转发规则类别type为PATH时,当转发规则的compare_type为STARTS_WITH、EQUAL_TO时, 字符串只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以/开头。 当转发规则类别type为METHOD、SOURCE_IP、HEADER,QUERY_STRING时, 该字段无意义,使用conditions来指定key/value。 + 参数解释:匹配项的值。比如转发规则匹配类型是域名匹配,则value表示域名的值。 约束限制:仅当conditions空时该字段生效。 取值范围: - 当转发规则类别type为HOST_NAME时,字符串只能包含英文字母、数字、-.\\*,必须以字母、数字或\\*开头。 若域名中包含\\*,则\\*只能出现在开头且必须以\\*.开始。当\\*开头时表示通配0~任一个字符。 - 当转发规则类别type为PATH时,当转发规则的compare_type为STARTS_WITH、EQUAL_TO时, 字符串只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以/开头。 - 当转发规则类别type为METHOD、SOURCE_IP、HEADER,QUERY_STRING时, 该字段无意义,使用conditions来指定key/value。 :return: The value of this UpdateL7RuleOption. :rtype: str @@ -179,7 +179,7 @@ def value(self): def value(self, value): """Sets the value of this UpdateL7RuleOption. - 匹配项的值。比如转发规则匹配类型是域名匹配,则value表示域名的值。仅当conditions空时该字段生效。 当转发规则类别type为HOST_NAME时,字符串只能包含英文字母、数字、-.\\*,必须以字母、数字或\\*开头。 若域名中包含\\*,则\\*只能出现在开头且必须以\\*.开始。当\\*开头时表示通配0~任一个字符。 当转发规则类别type为PATH时,当转发规则的compare_type为STARTS_WITH、EQUAL_TO时, 字符串只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以/开头。 当转发规则类别type为METHOD、SOURCE_IP、HEADER,QUERY_STRING时, 该字段无意义,使用conditions来指定key/value。 + 参数解释:匹配项的值。比如转发规则匹配类型是域名匹配,则value表示域名的值。 约束限制:仅当conditions空时该字段生效。 取值范围: - 当转发规则类别type为HOST_NAME时,字符串只能包含英文字母、数字、-.\\*,必须以字母、数字或\\*开头。 若域名中包含\\*,则\\*只能出现在开头且必须以\\*.开始。当\\*开头时表示通配0~任一个字符。 - 当转发规则类别type为PATH时,当转发规则的compare_type为STARTS_WITH、EQUAL_TO时, 字符串只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以/开头。 - 当转发规则类别type为METHOD、SOURCE_IP、HEADER,QUERY_STRING时, 该字段无意义,使用conditions来指定key/value。 :param value: The value of this UpdateL7RuleOption. :type value: str @@ -190,7 +190,7 @@ def value(self, value): def conditions(self): """Gets the conditions of this UpdateL7RuleOption. - 转发规则的匹配条件。当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效。 若转发规则配置了conditions,字段key、字段value的值无意义。 同一个rule内的conditions列表中所有key必须相同,value不允许重复。 [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) + 参数解释:转发规则的匹配条件。 约束限制: - 当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效。 - 若转发规则配置了conditions,字段key、字段value的值无意义。 - 同一个rule内的conditions列表中所有key必须相同,value不允许重复。 [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) :return: The conditions of this UpdateL7RuleOption. :rtype: list[:class:`huaweicloudsdkelb.v3.UpdateRuleCondition`] @@ -201,7 +201,7 @@ def conditions(self): def conditions(self, conditions): """Sets the conditions of this UpdateL7RuleOption. - 转发规则的匹配条件。当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效。 若转发规则配置了conditions,字段key、字段value的值无意义。 同一个rule内的conditions列表中所有key必须相同,value不允许重复。 [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) + 参数解释:转发规则的匹配条件。 约束限制: - 当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效。 - 若转发规则配置了conditions,字段key、字段value的值无意义。 - 同一个rule内的conditions列表中所有key必须相同,value不允许重复。 [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) :param conditions: The conditions of this UpdateL7RuleOption. :type conditions: list[:class:`huaweicloudsdkelb.v3.UpdateRuleCondition`] diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_l7_rule_response.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_l7_rule_response.py index a22ad57257..e261d2685c 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_l7_rule_response.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_l7_rule_response.py @@ -32,7 +32,7 @@ def __init__(self, request_id=None, rule=None): The model defined in huaweicloud sdk - :param request_id: 请求ID。 注:自动生成 。 + :param request_id: 参数解释:请求ID。 注:自动生成 。 :type request_id: str :param rule: :type rule: :class:`huaweicloudsdkelb.v3.L7Rule` @@ -53,7 +53,7 @@ def __init__(self, request_id=None, rule=None): def request_id(self): """Gets the request_id of this UpdateL7RuleResponse. - 请求ID。 注:自动生成 。 + 参数解释:请求ID。 注:自动生成 。 :return: The request_id of this UpdateL7RuleResponse. :rtype: str @@ -64,7 +64,7 @@ def request_id(self): def request_id(self, request_id): """Sets the request_id of this UpdateL7RuleResponse. - 请求ID。 注:自动生成 。 + 参数解释:请求ID。 注:自动生成 。 :param request_id: The request_id of this UpdateL7RuleResponse. :type request_id: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_listener_ip_group_option.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_listener_ip_group_option.py index 9c629d0ff5..6bc95c0b81 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_listener_ip_group_option.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_listener_ip_group_option.py @@ -33,11 +33,11 @@ def __init__(self, ipgroup_id=None, enable_ipgroup=None, type=None): The model defined in huaweicloud sdk - :param ipgroup_id: 监听器关联的访问控制组的id。 创建时必选,更新时非必选。 指定的ipgroup必须已存在,不能指定为null,否则与enable_ipgroup冲突。 + :param ipgroup_id: 参数解释:监听器关联的访问控制组的id。 创建时必选,更新时非必选。 约束限制:指定的ipgroup必须已存在,不能指定为null,否则与enable_ipgroup冲突。 :type ipgroup_id: str - :param enable_ipgroup: 访问控制组的状态。 True:开启访问控制; Flase:关闭访问控制; 开启访问控制的监听器,允许直接删除。 + :param enable_ipgroup: 参数解释:访问控制组的状态。 开启访问控制的监听器,允许直接删除。 取值范围: - true:开启访问控制。 - flase:关闭访问控制。 :type enable_ipgroup: bool - :param type: 访问控制组的类型。 white:白名单,只允许指定ip访问; black:黑名单,不允许指定ip访问; + :param type: 参数解释:访问控制组的类型。 取值范围: - white:白名单,只允许指定ip访问。 - black:黑名单,不允许指定ip访问。 :type type: str """ @@ -59,7 +59,7 @@ def __init__(self, ipgroup_id=None, enable_ipgroup=None, type=None): def ipgroup_id(self): """Gets the ipgroup_id of this UpdateListenerIpGroupOption. - 监听器关联的访问控制组的id。 创建时必选,更新时非必选。 指定的ipgroup必须已存在,不能指定为null,否则与enable_ipgroup冲突。 + 参数解释:监听器关联的访问控制组的id。 创建时必选,更新时非必选。 约束限制:指定的ipgroup必须已存在,不能指定为null,否则与enable_ipgroup冲突。 :return: The ipgroup_id of this UpdateListenerIpGroupOption. :rtype: str @@ -70,7 +70,7 @@ def ipgroup_id(self): def ipgroup_id(self, ipgroup_id): """Sets the ipgroup_id of this UpdateListenerIpGroupOption. - 监听器关联的访问控制组的id。 创建时必选,更新时非必选。 指定的ipgroup必须已存在,不能指定为null,否则与enable_ipgroup冲突。 + 参数解释:监听器关联的访问控制组的id。 创建时必选,更新时非必选。 约束限制:指定的ipgroup必须已存在,不能指定为null,否则与enable_ipgroup冲突。 :param ipgroup_id: The ipgroup_id of this UpdateListenerIpGroupOption. :type ipgroup_id: str @@ -81,7 +81,7 @@ def ipgroup_id(self, ipgroup_id): def enable_ipgroup(self): """Gets the enable_ipgroup of this UpdateListenerIpGroupOption. - 访问控制组的状态。 True:开启访问控制; Flase:关闭访问控制; 开启访问控制的监听器,允许直接删除。 + 参数解释:访问控制组的状态。 开启访问控制的监听器,允许直接删除。 取值范围: - true:开启访问控制。 - flase:关闭访问控制。 :return: The enable_ipgroup of this UpdateListenerIpGroupOption. :rtype: bool @@ -92,7 +92,7 @@ def enable_ipgroup(self): def enable_ipgroup(self, enable_ipgroup): """Sets the enable_ipgroup of this UpdateListenerIpGroupOption. - 访问控制组的状态。 True:开启访问控制; Flase:关闭访问控制; 开启访问控制的监听器,允许直接删除。 + 参数解释:访问控制组的状态。 开启访问控制的监听器,允许直接删除。 取值范围: - true:开启访问控制。 - flase:关闭访问控制。 :param enable_ipgroup: The enable_ipgroup of this UpdateListenerIpGroupOption. :type enable_ipgroup: bool @@ -103,7 +103,7 @@ def enable_ipgroup(self, enable_ipgroup): def type(self): """Gets the type of this UpdateListenerIpGroupOption. - 访问控制组的类型。 white:白名单,只允许指定ip访问; black:黑名单,不允许指定ip访问; + 参数解释:访问控制组的类型。 取值范围: - white:白名单,只允许指定ip访问。 - black:黑名单,不允许指定ip访问。 :return: The type of this UpdateListenerIpGroupOption. :rtype: str @@ -114,7 +114,7 @@ def type(self): def type(self, type): """Sets the type of this UpdateListenerIpGroupOption. - 访问控制组的类型。 white:白名单,只允许指定ip访问; black:黑名单,不允许指定ip访问; + 参数解释:访问控制组的类型。 取值范围: - white:白名单,只允许指定ip访问。 - black:黑名单,不允许指定ip访问。 :param type: The type of this UpdateListenerIpGroupOption. :type type: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_listener_option.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_listener_option.py index 430db4a80c..ac2506340e 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_listener_option.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_listener_option.py @@ -77,55 +77,55 @@ def __init__(self, admin_state_up=None, client_ca_tls_container_ref=None, defaul The model defined in huaweicloud sdk - :param admin_state_up: 监听器的管理状态。只支持更新为true。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt) + :param admin_state_up: 参数解释:监听器的管理状态。 约束限制:只支持更新为true。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt) :type admin_state_up: bool - :param client_ca_tls_container_ref: 监听器使用的CA证书ID。当且仅当type=client时,才会使用该字段对应的证书。 监听器协议为QUIC时不支持该字段。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) + :param client_ca_tls_container_ref: 参数解释:监听器使用的CA证书ID。 约束限制: - 当且仅当type=client时,才会使用该字段对应的证书。 - 监听器协议为QUIC时不支持该字段。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) :type client_ca_tls_container_ref: str - :param default_pool_id: 监听器的默认后端云服务器组ID。当请求没有匹配的转发策略时,转发到默认后端云服务器上处理。 + :param default_pool_id: 参数解释:监听器的默认后端云服务器组ID。当请求没有匹配的转发策略时,转发到默认后端云服务器上处理。 :type default_pool_id: str - :param default_tls_container_ref: 监听器使用的服务器证书ID。 使用说明:当监听器协议为HTTPS时,该字段必传,且对应的证书的type必须是server类型。 + :param default_tls_container_ref: 参数解释:监听器使用的服务器证书ID。 约束限制:当监听器协议为HTTPS时,该字段必传,且对应的证书的type必须是server类型。 :type default_tls_container_ref: str - :param description: 监听器的描述信息。 + :param description: 参数解释:监听器的描述信息。 :type description: str - :param http2_enable: 客户端与LB之间的HTTPS请求的HTTP2功能的开启状态。 开启后,可提升客户端与LB间的访问性能,但LB与后端服务器间仍采用HTTP1.X协议。 使用说明: - 仅HTTPS协议监听器有效。 - QUIC监听器不能设置该字段,固定返回为true。 - 其他协议的监听器可设置该字段但无效,无论取值如何都不影响监听器正常运行。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) + :param http2_enable: 参数解释:客户端与LB之间的HTTPS请求的HTTP2功能的开启状态。 开启后,可提升客户端与LB间的访问性能,但LB与后端服务器间仍采用HTTP1.X协议。 约束限制: - 仅HTTPS协议监听器有效。 - QUIC监听器不能设置该字段,固定返回为true。 - 其他协议的监听器可设置该字段但无效,无论取值如何都不影响监听器正常运行。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) :type http2_enable: bool :param insert_headers: :type insert_headers: :class:`huaweicloudsdkelb.v3.ListenerInsertHeaders` - :param name: 监听器的名称。 注意:若名称为空,则在控制台的监听器列表无法选择并查看监听器详情。 + :param name: 参数解释:监听器的名称。 约束限制:若名称为空,则在控制台的监听器列表无法选择并查看监听器详情。 :type name: str - :param sni_container_refs: 监听器使用的SNI证书(带域名的服务器证书)ID列表。 使用说明: - 列表对应的所有SNI证书的域名不允许存在重复。 - 列表对应的所有SNI证书的域名总数不超过50。 + :param sni_container_refs: 参数解释:监听器使用的SNI证书(带域名的服务器证书)ID列表。 约束限制: - 列表对应的所有SNI证书的域名不允许存在重复。 - 列表对应的所有SNI证书的域名总数不超过50。 :type sni_container_refs: list[str] - :param sni_match_algo: 监听器使用的SNI证书泛域名匹配方式。 longest_suffix表示最长尾缀匹配,wildcard表示标准域名分级匹配。 默认为wildcard。 + :param sni_match_algo: 参数解释:监听器使用的SNI证书泛域名匹配方式。 取值范围: - longest_suffix表示最长尾缀匹配。 - wildcard表示标准域名分级匹配。 默认取值:wildcard。 :type sni_match_algo: str - :param tls_ciphers_policy: 监听器使用的安全策略。 [取值:tls-1-0-inherit、tls-1-0、tls-1-1、 tls-1-2、tls-1-2-strict、tls-1-2-fs、tls-1-0-with-1-3、 tls-1-2-fs-with-1-3、 hybrid-policy-1-0、tls-1-2-strict-no-cbc,默认:tls-1-0。 ](tag:hws,hws_hk,ocb,tlf,ctc,hcso,sbc,tm,cmcc,dt) [取值:tls-1-0、tls-1-1、tls-1-2、 tls-1-2-strict,默认:tls-1-0。](tag:hws_eu,g42,hk_g42,hcso_dt) [使用说明: - 仅对HTTPS协议类型的监听器且关联LB为独享型时有效。 - QUIC监听器不支持该字段。 - 若同时设置了security_policy_id和tls_ciphers_policy,则仅security_policy_id生效。 - 加密套件的优先顺序为ecc套件、rsa套件、tls1.3协议的套件(即支持ecc又支持rsa) ](tag:hws,hws_hk,hws_eu,ocb,tlf,ctc,hcso,sbc,g42,tm,cmcc,hk-g42,dt) [使用说明: - 仅对HTTPS协议类型的监听器有效](tag:hcso_dt) [不支持tls1.3协议的套件。](tag:tm,hws_eu,g42,hk_g42) [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) + :param tls_ciphers_policy: 参数解释:监听器使用的安全策略。 [约束限制: - 仅对HTTPS协议类型的监听器且关联LB为独享型时有效。 - QUIC监听器不支持该字段。 - 若同时设置了security_policy_id和tls_ciphers_policy,则仅security_policy_id生效。 - 加密套件的优先顺序为ecc套件、rsa套件、tls1.3协议的套件(即支持ecc又支持rsa) ](tag:hws,hws_hk,hws_eu,ocb,tlf,ctc,hcso,sbc,g42,tm,cmcc,hk-g42,dt) [约束限制: - 仅对HTTPS协议类型的监听器有效](tag:hcso_dt) [取值范围:tls-1-0-inherit、tls-1-0、tls-1-1、 tls-1-2、tls-1-2-strict、tls-1-2-fs、tls-1-0-with-1-3、 tls-1-2-fs-with-1-3、 hybrid-policy-1-0、tls-1-2-strict-no-cbc,默认:tls-1-0。 ](tag:hws,hws_hk,ocb,tlf,ctc,hcso,sbc,tm,cmcc,dt) [取值范围:tls-1-0、tls-1-1、tls-1-2、 tls-1-2-strict,默认:tls-1-0。](tag:hws_eu,g42,hk_g42,hcso_dt) [不支持tls1.3协议的套件。](tag:tm,hws_eu,g42,hk_g42) [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) :type tls_ciphers_policy: str - :param security_policy_id: 自定义安全策略的ID。 [使用说明: - 仅对HTTPS协议类型的监听器且关联LB为独享型时有效。 - 若同时设置了security_policy_id和tls_ciphers_policy,则仅security_policy_id生效。 - 加密套件的优先顺序为ecc套件、rsa套件、tls1.3协议的套件(即支持ecc又支持rsa) ](tag:hws,hws_hk,hws_eu,ocb,ctc,hcso,g42,tm,cmcc,hk-g42,dt) [使用说明: - 仅对HTTPS协议类型的监听器有效](tag:hcso_dt) [不支持tls1.3协议的套件。](tag:hws_eu,g42,hk_g42) + :param security_policy_id: 参数解释:自定义安全策略的ID。 [约束限制: - 仅对HTTPS协议类型的监听器且关联LB为独享型时有效。 - 若同时设置了security_policy_id和tls_ciphers_policy,则仅security_policy_id生效。 - 加密套件的优先顺序为ecc套件、rsa套件、tls1.3协议的套件(即支持ecc又支持rsa) ](tag:hws,hws_hk,hws_eu,ocb,ctc,hcso,g42,tm,cmcc,hk-g42,dt) [约束限制: - 仅对HTTPS协议类型的监听器有效](tag:hcso_dt) [不支持tls1.3协议的套件。](tag:hws_eu,g42,hk_g42) :type security_policy_id: str - :param enable_member_retry: 是否开启后端服务器的重试。 取值:true 开启重试,false 不开启重试。默认:true。 [使用说明: - 若关联是共享型LB,仅在protocol为HTTP、TERMINATED_HTTPS时才能传入该字段。 - 若关联是独享型LB,仅在protocol为HTTP、HTTPS和QUIC时才能传入该字段。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [使用说明: - 仅在protocol为HTTP、HTTPS时才能传入该字段。](tag:hws_eu,hcso_dt) [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) + :param enable_member_retry: 参数解释:是否开启后端服务器的重试。 [约束限制: - 若关联是共享型LB,仅在protocol为HTTP、TERMINATED_HTTPS时才能传入该字段。 - 若关联是独享型LB,仅在protocol为HTTP、HTTPS和QUIC时才能传入该字段。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [约束限制: - 仅在protocol为HTTP、HTTPS时才能传入该字段。](tag:hws_eu,hcso_dt) 取值范围:true 开启重试;false 不开启重试。 默认取值:true。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) :type enable_member_retry: bool - :param member_timeout: 等待后端服务器响应超时时间。请求转发后端服务器后,在等待超时member_timeout时长没有响应,负载均衡将终止等待,并返回 HTTP504错误码。 取值:1-300s。 使用说明:仅支持协议为HTTP/HTTPS的监听器。 + :param member_timeout: 参数解释:等待后端服务器响应超时时间。请求转发后端服务器后,在等待超时member_timeout时长没有响应,负载均衡将终止等待,并返回HTTP504错误码。 约束限制:仅支持协议为HTTP/HTTPS的监听器。 取值范围:1-3600s。 :type member_timeout: int - :param client_timeout: 等待客户端请求超时时间,仅限协议为HTTP,HTTPS的监听器配置。取值范围为1-300s, 默认值为60s TCP,UDP协议的监听器不支持此字段 + :param client_timeout: 参数解释:等待客户端请求超时时间,仅限协议为HTTP,HTTPS的监听器配置。 约束限制:TCP,UDP协议的监听器不支持此字段。 取值范围:1-3600s 默认取值:60s :type client_timeout: int - :param keepalive_timeout: 客户端连接空闲超时时间。在超过keepalive_timeout时长一直没有请求, 负载均衡会暂时中断当前连接,直到下一次请求时重新建立新的连接。 取值: - TCP监听器[和IP监听器](tag:hws_eu):10-4000s。 - 若为HTTP/HTTPS/TERMINATED_HTTPS监听器,取值范围为(0-4000s)默认值为60s。 共享型实例的UDP监听器不支持此字段。 + :param keepalive_timeout: 参数解释:客户端连接空闲超时时间。在超过keepalive_timeout时长一直没有请求, 负载均衡会暂时中断当前连接,直到下一次请求时重新建立新的连接。 约束限制:共享型实例的UDP监听器不支持此字段。 取值范围: - TCP监听器[和IP监听器](tag:hws_eu):10-4000s。 - 若为HTTP/HTTPS/TERMINATED_HTTPS监听器,取值范围为(0-4000s) 默认取值:60s。 :type keepalive_timeout: int :param ipgroup: :type ipgroup: :class:`huaweicloudsdkelb.v3.UpdateListenerIpGroupOption` - :param transparent_client_ip_enable: 是否透传客户端IP地址。开启后客户端IP地址将透传到后端服务器。 [仅作用于共享型LB的TCP/UDP监听器。 取值: - 共享型LB的TCP/UDP监听器可设置为true或false,不传默认为false。 - 共享型LB的HTTP/HTTPS监听器只支持设置为true,不传默认为true。 - 独享型负载均衡器所有协议的监听器只支持设置为true,不传默认为true。 使用说明: - 开启特性后,ELB和后端服务器之间直接使用真实的IP访问,需要确保已正确设置服务器的安全组以及访问控制策略。 - 开启特性后,不支持同一台服务器既作为后端服务器又作为客户端的场景。 - 开启特性后,不支持变更后端服务器规格。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [只设支持置为true,不传默认为true。](tag:hws_eu,hcso_dt) + :param transparent_client_ip_enable: 参数解释:是否透传客户端IP地址。开启后客户端IP地址将透传到后端服务器。 [仅作用于共享型LB的TCP/UDP监听器。 约束限制: - 开启特性后,ELB和后端服务器之间直接使用真实的IP访问,需要确保已正确设置服务器的安全组以及访问控制策略。 - 开启特性后,不支持同一台服务器既作为后端服务器又作为客户端的场景。 - 开启特性后,不支持变更后端服务器规格。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) 取值范围: - 共享型LB的TCP/UDP监听器可设置为true或false,不传默认为false。 - 共享型LB的HTTP/HTTPS监听器只支持设置为true,不传默认为true。 - 独享型负载均衡器所有协议的监听器只支持设置为true,不传默认为true。 [只设支持置为true,不传默认为true。](tag:hws_eu,hcso_dt) :type transparent_client_ip_enable: bool - :param proxy_protocol_enable: 是否开启proxy_protocol。仅TLS监听器可指定,其他协议的监听器该字段不生效,proxy_protocol不开启。 + :param proxy_protocol_enable: 参数解释:是否开启proxy_protocol。 约束限制:仅TLS监听器可指定,其他协议的监听器该字段不生效,proxy_protocol不开启。 :type proxy_protocol_enable: bool - :param enhance_l7policy_enable: 是否开启高级转发策略功能。开启高级转发策略后,支持更灵活的转发策略和转发规则设置。 取值:true开启,false不开启。 开启后支持如下场景: - 转发策略的action字段支持指定为REDIRECT_TO_URL, FIXED_RESPONSE,即支持URL重定向和响应固定的内容给客户端。 - 转发策略支持指定priority、redirect_url_config、fixed_response_config字段。 - 转发规则rule的type可以指定METHOD, HEADER, QUERY_STRING, SOURCE_IP这几种取值。 - 转发规则rule的type为HOST_NAME时,转发规则rule的value支持通配符*。 - 转发规则支持指定conditions字段。 [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) > 开启后不支持关闭 + :param enhance_l7policy_enable: 参数解释:是否开启高级转发策略功能。开启高级转发策略后,支持更灵活的转发策略和转发规则设置。 开启后支持如下场景: - 转发策略的action字段支持指定为REDIRECT_TO_URL, FIXED_RESPONSE,即支持URL重定向和响应固定的内容给客户端。 - 转发策略支持指定priority、redirect_url_config、fixed_response_config字段。 - 转发规则rule的type可以指定METHOD, HEADER, QUERY_STRING, SOURCE_IP这几种取值。 - 转发规则rule的type为HOST_NAME时,转发规则rule的value支持通配符*。 - 转发规则支持指定conditions字段。 约束限制:开启后不支持关闭 取值范围:true开启,false不开启。 [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) :type enhance_l7policy_enable: bool :param quic_config: :type quic_config: :class:`huaweicloudsdkelb.v3.UpdateListenerQuicConfigOption` - :param protection_status: 修改保护状态, 取值: - nonProtection: 不保护 - consoleProtection: 控制台修改保护 + :param protection_status: 参数解释:修改保护状态。 取值范围: - nonProtection: 不保护 - consoleProtection: 控制台修改保护 :type protection_status: str - :param protection_reason: 设置保护的原因 >仅当protection_status为consoleProtection时有效。 + :param protection_reason: 参数解释:设置保护的原因。 约束限制:仅当protection_status为consoleProtection时有效。 :type protection_reason: str - :param gzip_enable: ELB是否开启gzip压缩,缺省值:false,非必选 [仅HTTP/HTTPS类型监听器支持配置。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) [仅HTTP/HTTPS/QUIC类型监听器支持配置。](tag:hws,hws_hk,hws_test,hcs,hcs_sm,hcso,hk_vdf,fcs,fcs_vm,mix,ocb,ctc,cmcc,sbc,hws_ocb,hk_sbc) + :param gzip_enable: 参数解释:ELB是否开启gzip压缩。 [约束限制:仅HTTP/HTTPS类型监听器支持配置。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) [约束限制:仅HTTP/HTTPS/QUIC类型监听器支持配置。](tag:hws,hws_hk,hws_test,hcs,hcs_sm,hcso,hk_vdf,fcs,fcs_vm,mix,ocb,ctc,cmcc,sbc,hws_ocb,hk_sbc) 默认取值:false :type gzip_enable: bool - :param ssl_early_data_enable: 监听器0-RTT能力开关,缺省值:false,非必选 仅HTTPS类型监听器支持配置,需要依赖TLSv1.3安全策略协议。开启 ssl_early_data 后,有重放攻击的风险,请谨慎开启。 + :param ssl_early_data_enable: 参数解释:监听器0-RTT能力开关。 约束限制:仅HTTPS类型监听器支持配置,需要依赖TLSv1.3安全策略协议。开启 ssl_early_data 后,有重放攻击的风险,请谨慎开启。 默认取值:false :type ssl_early_data_enable: bool """ @@ -213,7 +213,7 @@ def __init__(self, admin_state_up=None, client_ca_tls_container_ref=None, defaul def admin_state_up(self): """Gets the admin_state_up of this UpdateListenerOption. - 监听器的管理状态。只支持更新为true。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt) + 参数解释:监听器的管理状态。 约束限制:只支持更新为true。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt) :return: The admin_state_up of this UpdateListenerOption. :rtype: bool @@ -224,7 +224,7 @@ def admin_state_up(self): def admin_state_up(self, admin_state_up): """Sets the admin_state_up of this UpdateListenerOption. - 监听器的管理状态。只支持更新为true。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt) + 参数解释:监听器的管理状态。 约束限制:只支持更新为true。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt) :param admin_state_up: The admin_state_up of this UpdateListenerOption. :type admin_state_up: bool @@ -235,7 +235,7 @@ def admin_state_up(self, admin_state_up): def client_ca_tls_container_ref(self): """Gets the client_ca_tls_container_ref of this UpdateListenerOption. - 监听器使用的CA证书ID。当且仅当type=client时,才会使用该字段对应的证书。 监听器协议为QUIC时不支持该字段。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) + 参数解释:监听器使用的CA证书ID。 约束限制: - 当且仅当type=client时,才会使用该字段对应的证书。 - 监听器协议为QUIC时不支持该字段。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) :return: The client_ca_tls_container_ref of this UpdateListenerOption. :rtype: str @@ -246,7 +246,7 @@ def client_ca_tls_container_ref(self): def client_ca_tls_container_ref(self, client_ca_tls_container_ref): """Sets the client_ca_tls_container_ref of this UpdateListenerOption. - 监听器使用的CA证书ID。当且仅当type=client时,才会使用该字段对应的证书。 监听器协议为QUIC时不支持该字段。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) + 参数解释:监听器使用的CA证书ID。 约束限制: - 当且仅当type=client时,才会使用该字段对应的证书。 - 监听器协议为QUIC时不支持该字段。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) :param client_ca_tls_container_ref: The client_ca_tls_container_ref of this UpdateListenerOption. :type client_ca_tls_container_ref: str @@ -257,7 +257,7 @@ def client_ca_tls_container_ref(self, client_ca_tls_container_ref): def default_pool_id(self): """Gets the default_pool_id of this UpdateListenerOption. - 监听器的默认后端云服务器组ID。当请求没有匹配的转发策略时,转发到默认后端云服务器上处理。 + 参数解释:监听器的默认后端云服务器组ID。当请求没有匹配的转发策略时,转发到默认后端云服务器上处理。 :return: The default_pool_id of this UpdateListenerOption. :rtype: str @@ -268,7 +268,7 @@ def default_pool_id(self): def default_pool_id(self, default_pool_id): """Sets the default_pool_id of this UpdateListenerOption. - 监听器的默认后端云服务器组ID。当请求没有匹配的转发策略时,转发到默认后端云服务器上处理。 + 参数解释:监听器的默认后端云服务器组ID。当请求没有匹配的转发策略时,转发到默认后端云服务器上处理。 :param default_pool_id: The default_pool_id of this UpdateListenerOption. :type default_pool_id: str @@ -279,7 +279,7 @@ def default_pool_id(self, default_pool_id): def default_tls_container_ref(self): """Gets the default_tls_container_ref of this UpdateListenerOption. - 监听器使用的服务器证书ID。 使用说明:当监听器协议为HTTPS时,该字段必传,且对应的证书的type必须是server类型。 + 参数解释:监听器使用的服务器证书ID。 约束限制:当监听器协议为HTTPS时,该字段必传,且对应的证书的type必须是server类型。 :return: The default_tls_container_ref of this UpdateListenerOption. :rtype: str @@ -290,7 +290,7 @@ def default_tls_container_ref(self): def default_tls_container_ref(self, default_tls_container_ref): """Sets the default_tls_container_ref of this UpdateListenerOption. - 监听器使用的服务器证书ID。 使用说明:当监听器协议为HTTPS时,该字段必传,且对应的证书的type必须是server类型。 + 参数解释:监听器使用的服务器证书ID。 约束限制:当监听器协议为HTTPS时,该字段必传,且对应的证书的type必须是server类型。 :param default_tls_container_ref: The default_tls_container_ref of this UpdateListenerOption. :type default_tls_container_ref: str @@ -301,7 +301,7 @@ def default_tls_container_ref(self, default_tls_container_ref): def description(self): """Gets the description of this UpdateListenerOption. - 监听器的描述信息。 + 参数解释:监听器的描述信息。 :return: The description of this UpdateListenerOption. :rtype: str @@ -312,7 +312,7 @@ def description(self): def description(self, description): """Sets the description of this UpdateListenerOption. - 监听器的描述信息。 + 参数解释:监听器的描述信息。 :param description: The description of this UpdateListenerOption. :type description: str @@ -323,7 +323,7 @@ def description(self, description): def http2_enable(self): """Gets the http2_enable of this UpdateListenerOption. - 客户端与LB之间的HTTPS请求的HTTP2功能的开启状态。 开启后,可提升客户端与LB间的访问性能,但LB与后端服务器间仍采用HTTP1.X协议。 使用说明: - 仅HTTPS协议监听器有效。 - QUIC监听器不能设置该字段,固定返回为true。 - 其他协议的监听器可设置该字段但无效,无论取值如何都不影响监听器正常运行。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) + 参数解释:客户端与LB之间的HTTPS请求的HTTP2功能的开启状态。 开启后,可提升客户端与LB间的访问性能,但LB与后端服务器间仍采用HTTP1.X协议。 约束限制: - 仅HTTPS协议监听器有效。 - QUIC监听器不能设置该字段,固定返回为true。 - 其他协议的监听器可设置该字段但无效,无论取值如何都不影响监听器正常运行。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) :return: The http2_enable of this UpdateListenerOption. :rtype: bool @@ -334,7 +334,7 @@ def http2_enable(self): def http2_enable(self, http2_enable): """Sets the http2_enable of this UpdateListenerOption. - 客户端与LB之间的HTTPS请求的HTTP2功能的开启状态。 开启后,可提升客户端与LB间的访问性能,但LB与后端服务器间仍采用HTTP1.X协议。 使用说明: - 仅HTTPS协议监听器有效。 - QUIC监听器不能设置该字段,固定返回为true。 - 其他协议的监听器可设置该字段但无效,无论取值如何都不影响监听器正常运行。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) + 参数解释:客户端与LB之间的HTTPS请求的HTTP2功能的开启状态。 开启后,可提升客户端与LB间的访问性能,但LB与后端服务器间仍采用HTTP1.X协议。 约束限制: - 仅HTTPS协议监听器有效。 - QUIC监听器不能设置该字段,固定返回为true。 - 其他协议的监听器可设置该字段但无效,无论取值如何都不影响监听器正常运行。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) :param http2_enable: The http2_enable of this UpdateListenerOption. :type http2_enable: bool @@ -363,7 +363,7 @@ def insert_headers(self, insert_headers): def name(self): """Gets the name of this UpdateListenerOption. - 监听器的名称。 注意:若名称为空,则在控制台的监听器列表无法选择并查看监听器详情。 + 参数解释:监听器的名称。 约束限制:若名称为空,则在控制台的监听器列表无法选择并查看监听器详情。 :return: The name of this UpdateListenerOption. :rtype: str @@ -374,7 +374,7 @@ def name(self): def name(self, name): """Sets the name of this UpdateListenerOption. - 监听器的名称。 注意:若名称为空,则在控制台的监听器列表无法选择并查看监听器详情。 + 参数解释:监听器的名称。 约束限制:若名称为空,则在控制台的监听器列表无法选择并查看监听器详情。 :param name: The name of this UpdateListenerOption. :type name: str @@ -385,7 +385,7 @@ def name(self, name): def sni_container_refs(self): """Gets the sni_container_refs of this UpdateListenerOption. - 监听器使用的SNI证书(带域名的服务器证书)ID列表。 使用说明: - 列表对应的所有SNI证书的域名不允许存在重复。 - 列表对应的所有SNI证书的域名总数不超过50。 + 参数解释:监听器使用的SNI证书(带域名的服务器证书)ID列表。 约束限制: - 列表对应的所有SNI证书的域名不允许存在重复。 - 列表对应的所有SNI证书的域名总数不超过50。 :return: The sni_container_refs of this UpdateListenerOption. :rtype: list[str] @@ -396,7 +396,7 @@ def sni_container_refs(self): def sni_container_refs(self, sni_container_refs): """Sets the sni_container_refs of this UpdateListenerOption. - 监听器使用的SNI证书(带域名的服务器证书)ID列表。 使用说明: - 列表对应的所有SNI证书的域名不允许存在重复。 - 列表对应的所有SNI证书的域名总数不超过50。 + 参数解释:监听器使用的SNI证书(带域名的服务器证书)ID列表。 约束限制: - 列表对应的所有SNI证书的域名不允许存在重复。 - 列表对应的所有SNI证书的域名总数不超过50。 :param sni_container_refs: The sni_container_refs of this UpdateListenerOption. :type sni_container_refs: list[str] @@ -407,7 +407,7 @@ def sni_container_refs(self, sni_container_refs): def sni_match_algo(self): """Gets the sni_match_algo of this UpdateListenerOption. - 监听器使用的SNI证书泛域名匹配方式。 longest_suffix表示最长尾缀匹配,wildcard表示标准域名分级匹配。 默认为wildcard。 + 参数解释:监听器使用的SNI证书泛域名匹配方式。 取值范围: - longest_suffix表示最长尾缀匹配。 - wildcard表示标准域名分级匹配。 默认取值:wildcard。 :return: The sni_match_algo of this UpdateListenerOption. :rtype: str @@ -418,7 +418,7 @@ def sni_match_algo(self): def sni_match_algo(self, sni_match_algo): """Sets the sni_match_algo of this UpdateListenerOption. - 监听器使用的SNI证书泛域名匹配方式。 longest_suffix表示最长尾缀匹配,wildcard表示标准域名分级匹配。 默认为wildcard。 + 参数解释:监听器使用的SNI证书泛域名匹配方式。 取值范围: - longest_suffix表示最长尾缀匹配。 - wildcard表示标准域名分级匹配。 默认取值:wildcard。 :param sni_match_algo: The sni_match_algo of this UpdateListenerOption. :type sni_match_algo: str @@ -429,7 +429,7 @@ def sni_match_algo(self, sni_match_algo): def tls_ciphers_policy(self): """Gets the tls_ciphers_policy of this UpdateListenerOption. - 监听器使用的安全策略。 [取值:tls-1-0-inherit、tls-1-0、tls-1-1、 tls-1-2、tls-1-2-strict、tls-1-2-fs、tls-1-0-with-1-3、 tls-1-2-fs-with-1-3、 hybrid-policy-1-0、tls-1-2-strict-no-cbc,默认:tls-1-0。 ](tag:hws,hws_hk,ocb,tlf,ctc,hcso,sbc,tm,cmcc,dt) [取值:tls-1-0、tls-1-1、tls-1-2、 tls-1-2-strict,默认:tls-1-0。](tag:hws_eu,g42,hk_g42,hcso_dt) [使用说明: - 仅对HTTPS协议类型的监听器且关联LB为独享型时有效。 - QUIC监听器不支持该字段。 - 若同时设置了security_policy_id和tls_ciphers_policy,则仅security_policy_id生效。 - 加密套件的优先顺序为ecc套件、rsa套件、tls1.3协议的套件(即支持ecc又支持rsa) ](tag:hws,hws_hk,hws_eu,ocb,tlf,ctc,hcso,sbc,g42,tm,cmcc,hk-g42,dt) [使用说明: - 仅对HTTPS协议类型的监听器有效](tag:hcso_dt) [不支持tls1.3协议的套件。](tag:tm,hws_eu,g42,hk_g42) [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) + 参数解释:监听器使用的安全策略。 [约束限制: - 仅对HTTPS协议类型的监听器且关联LB为独享型时有效。 - QUIC监听器不支持该字段。 - 若同时设置了security_policy_id和tls_ciphers_policy,则仅security_policy_id生效。 - 加密套件的优先顺序为ecc套件、rsa套件、tls1.3协议的套件(即支持ecc又支持rsa) ](tag:hws,hws_hk,hws_eu,ocb,tlf,ctc,hcso,sbc,g42,tm,cmcc,hk-g42,dt) [约束限制: - 仅对HTTPS协议类型的监听器有效](tag:hcso_dt) [取值范围:tls-1-0-inherit、tls-1-0、tls-1-1、 tls-1-2、tls-1-2-strict、tls-1-2-fs、tls-1-0-with-1-3、 tls-1-2-fs-with-1-3、 hybrid-policy-1-0、tls-1-2-strict-no-cbc,默认:tls-1-0。 ](tag:hws,hws_hk,ocb,tlf,ctc,hcso,sbc,tm,cmcc,dt) [取值范围:tls-1-0、tls-1-1、tls-1-2、 tls-1-2-strict,默认:tls-1-0。](tag:hws_eu,g42,hk_g42,hcso_dt) [不支持tls1.3协议的套件。](tag:tm,hws_eu,g42,hk_g42) [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) :return: The tls_ciphers_policy of this UpdateListenerOption. :rtype: str @@ -440,7 +440,7 @@ def tls_ciphers_policy(self): def tls_ciphers_policy(self, tls_ciphers_policy): """Sets the tls_ciphers_policy of this UpdateListenerOption. - 监听器使用的安全策略。 [取值:tls-1-0-inherit、tls-1-0、tls-1-1、 tls-1-2、tls-1-2-strict、tls-1-2-fs、tls-1-0-with-1-3、 tls-1-2-fs-with-1-3、 hybrid-policy-1-0、tls-1-2-strict-no-cbc,默认:tls-1-0。 ](tag:hws,hws_hk,ocb,tlf,ctc,hcso,sbc,tm,cmcc,dt) [取值:tls-1-0、tls-1-1、tls-1-2、 tls-1-2-strict,默认:tls-1-0。](tag:hws_eu,g42,hk_g42,hcso_dt) [使用说明: - 仅对HTTPS协议类型的监听器且关联LB为独享型时有效。 - QUIC监听器不支持该字段。 - 若同时设置了security_policy_id和tls_ciphers_policy,则仅security_policy_id生效。 - 加密套件的优先顺序为ecc套件、rsa套件、tls1.3协议的套件(即支持ecc又支持rsa) ](tag:hws,hws_hk,hws_eu,ocb,tlf,ctc,hcso,sbc,g42,tm,cmcc,hk-g42,dt) [使用说明: - 仅对HTTPS协议类型的监听器有效](tag:hcso_dt) [不支持tls1.3协议的套件。](tag:tm,hws_eu,g42,hk_g42) [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) + 参数解释:监听器使用的安全策略。 [约束限制: - 仅对HTTPS协议类型的监听器且关联LB为独享型时有效。 - QUIC监听器不支持该字段。 - 若同时设置了security_policy_id和tls_ciphers_policy,则仅security_policy_id生效。 - 加密套件的优先顺序为ecc套件、rsa套件、tls1.3协议的套件(即支持ecc又支持rsa) ](tag:hws,hws_hk,hws_eu,ocb,tlf,ctc,hcso,sbc,g42,tm,cmcc,hk-g42,dt) [约束限制: - 仅对HTTPS协议类型的监听器有效](tag:hcso_dt) [取值范围:tls-1-0-inherit、tls-1-0、tls-1-1、 tls-1-2、tls-1-2-strict、tls-1-2-fs、tls-1-0-with-1-3、 tls-1-2-fs-with-1-3、 hybrid-policy-1-0、tls-1-2-strict-no-cbc,默认:tls-1-0。 ](tag:hws,hws_hk,ocb,tlf,ctc,hcso,sbc,tm,cmcc,dt) [取值范围:tls-1-0、tls-1-1、tls-1-2、 tls-1-2-strict,默认:tls-1-0。](tag:hws_eu,g42,hk_g42,hcso_dt) [不支持tls1.3协议的套件。](tag:tm,hws_eu,g42,hk_g42) [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) :param tls_ciphers_policy: The tls_ciphers_policy of this UpdateListenerOption. :type tls_ciphers_policy: str @@ -451,7 +451,7 @@ def tls_ciphers_policy(self, tls_ciphers_policy): def security_policy_id(self): """Gets the security_policy_id of this UpdateListenerOption. - 自定义安全策略的ID。 [使用说明: - 仅对HTTPS协议类型的监听器且关联LB为独享型时有效。 - 若同时设置了security_policy_id和tls_ciphers_policy,则仅security_policy_id生效。 - 加密套件的优先顺序为ecc套件、rsa套件、tls1.3协议的套件(即支持ecc又支持rsa) ](tag:hws,hws_hk,hws_eu,ocb,ctc,hcso,g42,tm,cmcc,hk-g42,dt) [使用说明: - 仅对HTTPS协议类型的监听器有效](tag:hcso_dt) [不支持tls1.3协议的套件。](tag:hws_eu,g42,hk_g42) + 参数解释:自定义安全策略的ID。 [约束限制: - 仅对HTTPS协议类型的监听器且关联LB为独享型时有效。 - 若同时设置了security_policy_id和tls_ciphers_policy,则仅security_policy_id生效。 - 加密套件的优先顺序为ecc套件、rsa套件、tls1.3协议的套件(即支持ecc又支持rsa) ](tag:hws,hws_hk,hws_eu,ocb,ctc,hcso,g42,tm,cmcc,hk-g42,dt) [约束限制: - 仅对HTTPS协议类型的监听器有效](tag:hcso_dt) [不支持tls1.3协议的套件。](tag:hws_eu,g42,hk_g42) :return: The security_policy_id of this UpdateListenerOption. :rtype: str @@ -462,7 +462,7 @@ def security_policy_id(self): def security_policy_id(self, security_policy_id): """Sets the security_policy_id of this UpdateListenerOption. - 自定义安全策略的ID。 [使用说明: - 仅对HTTPS协议类型的监听器且关联LB为独享型时有效。 - 若同时设置了security_policy_id和tls_ciphers_policy,则仅security_policy_id生效。 - 加密套件的优先顺序为ecc套件、rsa套件、tls1.3协议的套件(即支持ecc又支持rsa) ](tag:hws,hws_hk,hws_eu,ocb,ctc,hcso,g42,tm,cmcc,hk-g42,dt) [使用说明: - 仅对HTTPS协议类型的监听器有效](tag:hcso_dt) [不支持tls1.3协议的套件。](tag:hws_eu,g42,hk_g42) + 参数解释:自定义安全策略的ID。 [约束限制: - 仅对HTTPS协议类型的监听器且关联LB为独享型时有效。 - 若同时设置了security_policy_id和tls_ciphers_policy,则仅security_policy_id生效。 - 加密套件的优先顺序为ecc套件、rsa套件、tls1.3协议的套件(即支持ecc又支持rsa) ](tag:hws,hws_hk,hws_eu,ocb,ctc,hcso,g42,tm,cmcc,hk-g42,dt) [约束限制: - 仅对HTTPS协议类型的监听器有效](tag:hcso_dt) [不支持tls1.3协议的套件。](tag:hws_eu,g42,hk_g42) :param security_policy_id: The security_policy_id of this UpdateListenerOption. :type security_policy_id: str @@ -473,7 +473,7 @@ def security_policy_id(self, security_policy_id): def enable_member_retry(self): """Gets the enable_member_retry of this UpdateListenerOption. - 是否开启后端服务器的重试。 取值:true 开启重试,false 不开启重试。默认:true。 [使用说明: - 若关联是共享型LB,仅在protocol为HTTP、TERMINATED_HTTPS时才能传入该字段。 - 若关联是独享型LB,仅在protocol为HTTP、HTTPS和QUIC时才能传入该字段。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [使用说明: - 仅在protocol为HTTP、HTTPS时才能传入该字段。](tag:hws_eu,hcso_dt) [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) + 参数解释:是否开启后端服务器的重试。 [约束限制: - 若关联是共享型LB,仅在protocol为HTTP、TERMINATED_HTTPS时才能传入该字段。 - 若关联是独享型LB,仅在protocol为HTTP、HTTPS和QUIC时才能传入该字段。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [约束限制: - 仅在protocol为HTTP、HTTPS时才能传入该字段。](tag:hws_eu,hcso_dt) 取值范围:true 开启重试;false 不开启重试。 默认取值:true。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) :return: The enable_member_retry of this UpdateListenerOption. :rtype: bool @@ -484,7 +484,7 @@ def enable_member_retry(self): def enable_member_retry(self, enable_member_retry): """Sets the enable_member_retry of this UpdateListenerOption. - 是否开启后端服务器的重试。 取值:true 开启重试,false 不开启重试。默认:true。 [使用说明: - 若关联是共享型LB,仅在protocol为HTTP、TERMINATED_HTTPS时才能传入该字段。 - 若关联是独享型LB,仅在protocol为HTTP、HTTPS和QUIC时才能传入该字段。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [使用说明: - 仅在protocol为HTTP、HTTPS时才能传入该字段。](tag:hws_eu,hcso_dt) [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) + 参数解释:是否开启后端服务器的重试。 [约束限制: - 若关联是共享型LB,仅在protocol为HTTP、TERMINATED_HTTPS时才能传入该字段。 - 若关联是独享型LB,仅在protocol为HTTP、HTTPS和QUIC时才能传入该字段。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [约束限制: - 仅在protocol为HTTP、HTTPS时才能传入该字段。](tag:hws_eu,hcso_dt) 取值范围:true 开启重试;false 不开启重试。 默认取值:true。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) :param enable_member_retry: The enable_member_retry of this UpdateListenerOption. :type enable_member_retry: bool @@ -495,7 +495,7 @@ def enable_member_retry(self, enable_member_retry): def member_timeout(self): """Gets the member_timeout of this UpdateListenerOption. - 等待后端服务器响应超时时间。请求转发后端服务器后,在等待超时member_timeout时长没有响应,负载均衡将终止等待,并返回 HTTP504错误码。 取值:1-300s。 使用说明:仅支持协议为HTTP/HTTPS的监听器。 + 参数解释:等待后端服务器响应超时时间。请求转发后端服务器后,在等待超时member_timeout时长没有响应,负载均衡将终止等待,并返回HTTP504错误码。 约束限制:仅支持协议为HTTP/HTTPS的监听器。 取值范围:1-3600s。 :return: The member_timeout of this UpdateListenerOption. :rtype: int @@ -506,7 +506,7 @@ def member_timeout(self): def member_timeout(self, member_timeout): """Sets the member_timeout of this UpdateListenerOption. - 等待后端服务器响应超时时间。请求转发后端服务器后,在等待超时member_timeout时长没有响应,负载均衡将终止等待,并返回 HTTP504错误码。 取值:1-300s。 使用说明:仅支持协议为HTTP/HTTPS的监听器。 + 参数解释:等待后端服务器响应超时时间。请求转发后端服务器后,在等待超时member_timeout时长没有响应,负载均衡将终止等待,并返回HTTP504错误码。 约束限制:仅支持协议为HTTP/HTTPS的监听器。 取值范围:1-3600s。 :param member_timeout: The member_timeout of this UpdateListenerOption. :type member_timeout: int @@ -517,7 +517,7 @@ def member_timeout(self, member_timeout): def client_timeout(self): """Gets the client_timeout of this UpdateListenerOption. - 等待客户端请求超时时间,仅限协议为HTTP,HTTPS的监听器配置。取值范围为1-300s, 默认值为60s TCP,UDP协议的监听器不支持此字段 + 参数解释:等待客户端请求超时时间,仅限协议为HTTP,HTTPS的监听器配置。 约束限制:TCP,UDP协议的监听器不支持此字段。 取值范围:1-3600s 默认取值:60s :return: The client_timeout of this UpdateListenerOption. :rtype: int @@ -528,7 +528,7 @@ def client_timeout(self): def client_timeout(self, client_timeout): """Sets the client_timeout of this UpdateListenerOption. - 等待客户端请求超时时间,仅限协议为HTTP,HTTPS的监听器配置。取值范围为1-300s, 默认值为60s TCP,UDP协议的监听器不支持此字段 + 参数解释:等待客户端请求超时时间,仅限协议为HTTP,HTTPS的监听器配置。 约束限制:TCP,UDP协议的监听器不支持此字段。 取值范围:1-3600s 默认取值:60s :param client_timeout: The client_timeout of this UpdateListenerOption. :type client_timeout: int @@ -539,7 +539,7 @@ def client_timeout(self, client_timeout): def keepalive_timeout(self): """Gets the keepalive_timeout of this UpdateListenerOption. - 客户端连接空闲超时时间。在超过keepalive_timeout时长一直没有请求, 负载均衡会暂时中断当前连接,直到下一次请求时重新建立新的连接。 取值: - TCP监听器[和IP监听器](tag:hws_eu):10-4000s。 - 若为HTTP/HTTPS/TERMINATED_HTTPS监听器,取值范围为(0-4000s)默认值为60s。 共享型实例的UDP监听器不支持此字段。 + 参数解释:客户端连接空闲超时时间。在超过keepalive_timeout时长一直没有请求, 负载均衡会暂时中断当前连接,直到下一次请求时重新建立新的连接。 约束限制:共享型实例的UDP监听器不支持此字段。 取值范围: - TCP监听器[和IP监听器](tag:hws_eu):10-4000s。 - 若为HTTP/HTTPS/TERMINATED_HTTPS监听器,取值范围为(0-4000s) 默认取值:60s。 :return: The keepalive_timeout of this UpdateListenerOption. :rtype: int @@ -550,7 +550,7 @@ def keepalive_timeout(self): def keepalive_timeout(self, keepalive_timeout): """Sets the keepalive_timeout of this UpdateListenerOption. - 客户端连接空闲超时时间。在超过keepalive_timeout时长一直没有请求, 负载均衡会暂时中断当前连接,直到下一次请求时重新建立新的连接。 取值: - TCP监听器[和IP监听器](tag:hws_eu):10-4000s。 - 若为HTTP/HTTPS/TERMINATED_HTTPS监听器,取值范围为(0-4000s)默认值为60s。 共享型实例的UDP监听器不支持此字段。 + 参数解释:客户端连接空闲超时时间。在超过keepalive_timeout时长一直没有请求, 负载均衡会暂时中断当前连接,直到下一次请求时重新建立新的连接。 约束限制:共享型实例的UDP监听器不支持此字段。 取值范围: - TCP监听器[和IP监听器](tag:hws_eu):10-4000s。 - 若为HTTP/HTTPS/TERMINATED_HTTPS监听器,取值范围为(0-4000s) 默认取值:60s。 :param keepalive_timeout: The keepalive_timeout of this UpdateListenerOption. :type keepalive_timeout: int @@ -579,7 +579,7 @@ def ipgroup(self, ipgroup): def transparent_client_ip_enable(self): """Gets the transparent_client_ip_enable of this UpdateListenerOption. - 是否透传客户端IP地址。开启后客户端IP地址将透传到后端服务器。 [仅作用于共享型LB的TCP/UDP监听器。 取值: - 共享型LB的TCP/UDP监听器可设置为true或false,不传默认为false。 - 共享型LB的HTTP/HTTPS监听器只支持设置为true,不传默认为true。 - 独享型负载均衡器所有协议的监听器只支持设置为true,不传默认为true。 使用说明: - 开启特性后,ELB和后端服务器之间直接使用真实的IP访问,需要确保已正确设置服务器的安全组以及访问控制策略。 - 开启特性后,不支持同一台服务器既作为后端服务器又作为客户端的场景。 - 开启特性后,不支持变更后端服务器规格。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [只设支持置为true,不传默认为true。](tag:hws_eu,hcso_dt) + 参数解释:是否透传客户端IP地址。开启后客户端IP地址将透传到后端服务器。 [仅作用于共享型LB的TCP/UDP监听器。 约束限制: - 开启特性后,ELB和后端服务器之间直接使用真实的IP访问,需要确保已正确设置服务器的安全组以及访问控制策略。 - 开启特性后,不支持同一台服务器既作为后端服务器又作为客户端的场景。 - 开启特性后,不支持变更后端服务器规格。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) 取值范围: - 共享型LB的TCP/UDP监听器可设置为true或false,不传默认为false。 - 共享型LB的HTTP/HTTPS监听器只支持设置为true,不传默认为true。 - 独享型负载均衡器所有协议的监听器只支持设置为true,不传默认为true。 [只设支持置为true,不传默认为true。](tag:hws_eu,hcso_dt) :return: The transparent_client_ip_enable of this UpdateListenerOption. :rtype: bool @@ -590,7 +590,7 @@ def transparent_client_ip_enable(self): def transparent_client_ip_enable(self, transparent_client_ip_enable): """Sets the transparent_client_ip_enable of this UpdateListenerOption. - 是否透传客户端IP地址。开启后客户端IP地址将透传到后端服务器。 [仅作用于共享型LB的TCP/UDP监听器。 取值: - 共享型LB的TCP/UDP监听器可设置为true或false,不传默认为false。 - 共享型LB的HTTP/HTTPS监听器只支持设置为true,不传默认为true。 - 独享型负载均衡器所有协议的监听器只支持设置为true,不传默认为true。 使用说明: - 开启特性后,ELB和后端服务器之间直接使用真实的IP访问,需要确保已正确设置服务器的安全组以及访问控制策略。 - 开启特性后,不支持同一台服务器既作为后端服务器又作为客户端的场景。 - 开启特性后,不支持变更后端服务器规格。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [只设支持置为true,不传默认为true。](tag:hws_eu,hcso_dt) + 参数解释:是否透传客户端IP地址。开启后客户端IP地址将透传到后端服务器。 [仅作用于共享型LB的TCP/UDP监听器。 约束限制: - 开启特性后,ELB和后端服务器之间直接使用真实的IP访问,需要确保已正确设置服务器的安全组以及访问控制策略。 - 开启特性后,不支持同一台服务器既作为后端服务器又作为客户端的场景。 - 开启特性后,不支持变更后端服务器规格。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) 取值范围: - 共享型LB的TCP/UDP监听器可设置为true或false,不传默认为false。 - 共享型LB的HTTP/HTTPS监听器只支持设置为true,不传默认为true。 - 独享型负载均衡器所有协议的监听器只支持设置为true,不传默认为true。 [只设支持置为true,不传默认为true。](tag:hws_eu,hcso_dt) :param transparent_client_ip_enable: The transparent_client_ip_enable of this UpdateListenerOption. :type transparent_client_ip_enable: bool @@ -601,7 +601,7 @@ def transparent_client_ip_enable(self, transparent_client_ip_enable): def proxy_protocol_enable(self): """Gets the proxy_protocol_enable of this UpdateListenerOption. - 是否开启proxy_protocol。仅TLS监听器可指定,其他协议的监听器该字段不生效,proxy_protocol不开启。 + 参数解释:是否开启proxy_protocol。 约束限制:仅TLS监听器可指定,其他协议的监听器该字段不生效,proxy_protocol不开启。 :return: The proxy_protocol_enable of this UpdateListenerOption. :rtype: bool @@ -612,7 +612,7 @@ def proxy_protocol_enable(self): def proxy_protocol_enable(self, proxy_protocol_enable): """Sets the proxy_protocol_enable of this UpdateListenerOption. - 是否开启proxy_protocol。仅TLS监听器可指定,其他协议的监听器该字段不生效,proxy_protocol不开启。 + 参数解释:是否开启proxy_protocol。 约束限制:仅TLS监听器可指定,其他协议的监听器该字段不生效,proxy_protocol不开启。 :param proxy_protocol_enable: The proxy_protocol_enable of this UpdateListenerOption. :type proxy_protocol_enable: bool @@ -623,7 +623,7 @@ def proxy_protocol_enable(self, proxy_protocol_enable): def enhance_l7policy_enable(self): """Gets the enhance_l7policy_enable of this UpdateListenerOption. - 是否开启高级转发策略功能。开启高级转发策略后,支持更灵活的转发策略和转发规则设置。 取值:true开启,false不开启。 开启后支持如下场景: - 转发策略的action字段支持指定为REDIRECT_TO_URL, FIXED_RESPONSE,即支持URL重定向和响应固定的内容给客户端。 - 转发策略支持指定priority、redirect_url_config、fixed_response_config字段。 - 转发规则rule的type可以指定METHOD, HEADER, QUERY_STRING, SOURCE_IP这几种取值。 - 转发规则rule的type为HOST_NAME时,转发规则rule的value支持通配符*。 - 转发规则支持指定conditions字段。 [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) > 开启后不支持关闭 + 参数解释:是否开启高级转发策略功能。开启高级转发策略后,支持更灵活的转发策略和转发规则设置。 开启后支持如下场景: - 转发策略的action字段支持指定为REDIRECT_TO_URL, FIXED_RESPONSE,即支持URL重定向和响应固定的内容给客户端。 - 转发策略支持指定priority、redirect_url_config、fixed_response_config字段。 - 转发规则rule的type可以指定METHOD, HEADER, QUERY_STRING, SOURCE_IP这几种取值。 - 转发规则rule的type为HOST_NAME时,转发规则rule的value支持通配符*。 - 转发规则支持指定conditions字段。 约束限制:开启后不支持关闭 取值范围:true开启,false不开启。 [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) :return: The enhance_l7policy_enable of this UpdateListenerOption. :rtype: bool @@ -634,7 +634,7 @@ def enhance_l7policy_enable(self): def enhance_l7policy_enable(self, enhance_l7policy_enable): """Sets the enhance_l7policy_enable of this UpdateListenerOption. - 是否开启高级转发策略功能。开启高级转发策略后,支持更灵活的转发策略和转发规则设置。 取值:true开启,false不开启。 开启后支持如下场景: - 转发策略的action字段支持指定为REDIRECT_TO_URL, FIXED_RESPONSE,即支持URL重定向和响应固定的内容给客户端。 - 转发策略支持指定priority、redirect_url_config、fixed_response_config字段。 - 转发规则rule的type可以指定METHOD, HEADER, QUERY_STRING, SOURCE_IP这几种取值。 - 转发规则rule的type为HOST_NAME时,转发规则rule的value支持通配符*。 - 转发规则支持指定conditions字段。 [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) > 开启后不支持关闭 + 参数解释:是否开启高级转发策略功能。开启高级转发策略后,支持更灵活的转发策略和转发规则设置。 开启后支持如下场景: - 转发策略的action字段支持指定为REDIRECT_TO_URL, FIXED_RESPONSE,即支持URL重定向和响应固定的内容给客户端。 - 转发策略支持指定priority、redirect_url_config、fixed_response_config字段。 - 转发规则rule的type可以指定METHOD, HEADER, QUERY_STRING, SOURCE_IP这几种取值。 - 转发规则rule的type为HOST_NAME时,转发规则rule的value支持通配符*。 - 转发规则支持指定conditions字段。 约束限制:开启后不支持关闭 取值范围:true开启,false不开启。 [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) :param enhance_l7policy_enable: The enhance_l7policy_enable of this UpdateListenerOption. :type enhance_l7policy_enable: bool @@ -663,7 +663,7 @@ def quic_config(self, quic_config): def protection_status(self): """Gets the protection_status of this UpdateListenerOption. - 修改保护状态, 取值: - nonProtection: 不保护 - consoleProtection: 控制台修改保护 + 参数解释:修改保护状态。 取值范围: - nonProtection: 不保护 - consoleProtection: 控制台修改保护 :return: The protection_status of this UpdateListenerOption. :rtype: str @@ -674,7 +674,7 @@ def protection_status(self): def protection_status(self, protection_status): """Sets the protection_status of this UpdateListenerOption. - 修改保护状态, 取值: - nonProtection: 不保护 - consoleProtection: 控制台修改保护 + 参数解释:修改保护状态。 取值范围: - nonProtection: 不保护 - consoleProtection: 控制台修改保护 :param protection_status: The protection_status of this UpdateListenerOption. :type protection_status: str @@ -685,7 +685,7 @@ def protection_status(self, protection_status): def protection_reason(self): """Gets the protection_reason of this UpdateListenerOption. - 设置保护的原因 >仅当protection_status为consoleProtection时有效。 + 参数解释:设置保护的原因。 约束限制:仅当protection_status为consoleProtection时有效。 :return: The protection_reason of this UpdateListenerOption. :rtype: str @@ -696,7 +696,7 @@ def protection_reason(self): def protection_reason(self, protection_reason): """Sets the protection_reason of this UpdateListenerOption. - 设置保护的原因 >仅当protection_status为consoleProtection时有效。 + 参数解释:设置保护的原因。 约束限制:仅当protection_status为consoleProtection时有效。 :param protection_reason: The protection_reason of this UpdateListenerOption. :type protection_reason: str @@ -707,7 +707,7 @@ def protection_reason(self, protection_reason): def gzip_enable(self): """Gets the gzip_enable of this UpdateListenerOption. - ELB是否开启gzip压缩,缺省值:false,非必选 [仅HTTP/HTTPS类型监听器支持配置。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) [仅HTTP/HTTPS/QUIC类型监听器支持配置。](tag:hws,hws_hk,hws_test,hcs,hcs_sm,hcso,hk_vdf,fcs,fcs_vm,mix,ocb,ctc,cmcc,sbc,hws_ocb,hk_sbc) + 参数解释:ELB是否开启gzip压缩。 [约束限制:仅HTTP/HTTPS类型监听器支持配置。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) [约束限制:仅HTTP/HTTPS/QUIC类型监听器支持配置。](tag:hws,hws_hk,hws_test,hcs,hcs_sm,hcso,hk_vdf,fcs,fcs_vm,mix,ocb,ctc,cmcc,sbc,hws_ocb,hk_sbc) 默认取值:false :return: The gzip_enable of this UpdateListenerOption. :rtype: bool @@ -718,7 +718,7 @@ def gzip_enable(self): def gzip_enable(self, gzip_enable): """Sets the gzip_enable of this UpdateListenerOption. - ELB是否开启gzip压缩,缺省值:false,非必选 [仅HTTP/HTTPS类型监听器支持配置。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) [仅HTTP/HTTPS/QUIC类型监听器支持配置。](tag:hws,hws_hk,hws_test,hcs,hcs_sm,hcso,hk_vdf,fcs,fcs_vm,mix,ocb,ctc,cmcc,sbc,hws_ocb,hk_sbc) + 参数解释:ELB是否开启gzip压缩。 [约束限制:仅HTTP/HTTPS类型监听器支持配置。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) [约束限制:仅HTTP/HTTPS/QUIC类型监听器支持配置。](tag:hws,hws_hk,hws_test,hcs,hcs_sm,hcso,hk_vdf,fcs,fcs_vm,mix,ocb,ctc,cmcc,sbc,hws_ocb,hk_sbc) 默认取值:false :param gzip_enable: The gzip_enable of this UpdateListenerOption. :type gzip_enable: bool @@ -729,7 +729,7 @@ def gzip_enable(self, gzip_enable): def ssl_early_data_enable(self): """Gets the ssl_early_data_enable of this UpdateListenerOption. - 监听器0-RTT能力开关,缺省值:false,非必选 仅HTTPS类型监听器支持配置,需要依赖TLSv1.3安全策略协议。开启 ssl_early_data 后,有重放攻击的风险,请谨慎开启。 + 参数解释:监听器0-RTT能力开关。 约束限制:仅HTTPS类型监听器支持配置,需要依赖TLSv1.3安全策略协议。开启 ssl_early_data 后,有重放攻击的风险,请谨慎开启。 默认取值:false :return: The ssl_early_data_enable of this UpdateListenerOption. :rtype: bool @@ -740,7 +740,7 @@ def ssl_early_data_enable(self): def ssl_early_data_enable(self, ssl_early_data_enable): """Sets the ssl_early_data_enable of this UpdateListenerOption. - 监听器0-RTT能力开关,缺省值:false,非必选 仅HTTPS类型监听器支持配置,需要依赖TLSv1.3安全策略协议。开启 ssl_early_data 后,有重放攻击的风险,请谨慎开启。 + 参数解释:监听器0-RTT能力开关。 约束限制:仅HTTPS类型监听器支持配置,需要依赖TLSv1.3安全策略协议。开启 ssl_early_data 后,有重放攻击的风险,请谨慎开启。 默认取值:false :param ssl_early_data_enable: The ssl_early_data_enable of this UpdateListenerOption. :type ssl_early_data_enable: bool diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_listener_quic_config_option.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_listener_quic_config_option.py index 52e3089d82..f2c6e2ef3b 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_listener_quic_config_option.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_listener_quic_config_option.py @@ -31,9 +31,9 @@ def __init__(self, quic_listener_id=None, enable_quic_upgrade=None): The model defined in huaweicloud sdk - :param quic_listener_id: 监听器关联的QUIC监听器ID。指定的listener id必须已存在,且协议类型为QUIC,不能指定为null,否则与enable_quic_upgrade冲突。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) + :param quic_listener_id: 参数解释:监听器关联的QUIC监听器ID。 约束限制:指定的listener id必须已存在,且协议类型为QUIC,不能指定为null,否则与enable_quic_upgrade冲突。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) :type quic_listener_id: str - :param enable_quic_upgrade: QUIC升级的开启状态。 True:开启QUIC升级; Flase:关闭QUIC升级; 开启HTTPS监听器升级QUIC监听器能力 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) + :param enable_quic_upgrade: 参数解释:QUIC升级的开启状态。 开启HTTPS监听器升级QUIC监听器能力。 取值范围: - true:开启QUIC升级. - flase:关闭QUIC升级 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) :type enable_quic_upgrade: bool """ @@ -52,7 +52,7 @@ def __init__(self, quic_listener_id=None, enable_quic_upgrade=None): def quic_listener_id(self): """Gets the quic_listener_id of this UpdateListenerQuicConfigOption. - 监听器关联的QUIC监听器ID。指定的listener id必须已存在,且协议类型为QUIC,不能指定为null,否则与enable_quic_upgrade冲突。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) + 参数解释:监听器关联的QUIC监听器ID。 约束限制:指定的listener id必须已存在,且协议类型为QUIC,不能指定为null,否则与enable_quic_upgrade冲突。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) :return: The quic_listener_id of this UpdateListenerQuicConfigOption. :rtype: str @@ -63,7 +63,7 @@ def quic_listener_id(self): def quic_listener_id(self, quic_listener_id): """Sets the quic_listener_id of this UpdateListenerQuicConfigOption. - 监听器关联的QUIC监听器ID。指定的listener id必须已存在,且协议类型为QUIC,不能指定为null,否则与enable_quic_upgrade冲突。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) + 参数解释:监听器关联的QUIC监听器ID。 约束限制:指定的listener id必须已存在,且协议类型为QUIC,不能指定为null,否则与enable_quic_upgrade冲突。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) :param quic_listener_id: The quic_listener_id of this UpdateListenerQuicConfigOption. :type quic_listener_id: str @@ -74,7 +74,7 @@ def quic_listener_id(self, quic_listener_id): def enable_quic_upgrade(self): """Gets the enable_quic_upgrade of this UpdateListenerQuicConfigOption. - QUIC升级的开启状态。 True:开启QUIC升级; Flase:关闭QUIC升级; 开启HTTPS监听器升级QUIC监听器能力 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) + 参数解释:QUIC升级的开启状态。 开启HTTPS监听器升级QUIC监听器能力。 取值范围: - true:开启QUIC升级. - flase:关闭QUIC升级 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) :return: The enable_quic_upgrade of this UpdateListenerQuicConfigOption. :rtype: bool @@ -85,7 +85,7 @@ def enable_quic_upgrade(self): def enable_quic_upgrade(self, enable_quic_upgrade): """Sets the enable_quic_upgrade of this UpdateListenerQuicConfigOption. - QUIC升级的开启状态。 True:开启QUIC升级; Flase:关闭QUIC升级; 开启HTTPS监听器升级QUIC监听器能力 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) + 参数解释:QUIC升级的开启状态。 开启HTTPS监听器升级QUIC监听器能力。 取值范围: - true:开启QUIC升级. - flase:关闭QUIC升级 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt,dt,dt_test) :param enable_quic_upgrade: The enable_quic_upgrade of this UpdateListenerQuicConfigOption. :type enable_quic_upgrade: bool diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_listener_response.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_listener_response.py index ff3c06ffa4..a41302127c 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_listener_response.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_listener_response.py @@ -32,7 +32,7 @@ def __init__(self, request_id=None, listener=None): The model defined in huaweicloud sdk - :param request_id: 请求ID。 注:自动生成 。 + :param request_id: 参数解释:请求ID。 注:自动生成 。 :type request_id: str :param listener: :type listener: :class:`huaweicloudsdkelb.v3.Listener` @@ -53,7 +53,7 @@ def __init__(self, request_id=None, listener=None): def request_id(self): """Gets the request_id of this UpdateListenerResponse. - 请求ID。 注:自动生成 。 + 参数解释:请求ID。 注:自动生成 。 :return: The request_id of this UpdateListenerResponse. :rtype: str @@ -64,7 +64,7 @@ def request_id(self): def request_id(self, request_id): """Sets the request_id of this UpdateListenerResponse. - 请求ID。 注:自动生成 。 + 参数解释:请求ID。 注:自动生成 。 :param request_id: The request_id of this UpdateListenerResponse. :type request_id: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_load_balancer_option.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_load_balancer_option.py index 2020079a06..5056bc2255 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_load_balancer_option.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_load_balancer_option.py @@ -65,43 +65,43 @@ def __init__(self, name=None, admin_state_up=None, description=None, ipv6_vip_vi The model defined in huaweicloud sdk - :param name: 负载均衡器的名称。 + :param name: 参数解释:负载均衡器的名称。 :type name: str - :param admin_state_up: 负载均衡器的启用状态,true表示启用,false表示停用。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt) + :param admin_state_up: 参数解释:负载均衡器的启用状态。 取值范围: - true :启用。 - false:停用。 [不支持该字段,请勿使用。](tag:dt,dt_test) :type admin_state_up: bool - :param description: 负载均衡器的描述。 + :param description: 参数解释:负载均衡器的描述。 :type description: str - :param ipv6_vip_virsubnet_id: 双栈类型负载均衡器所在子网的IPv6网络ID,也称为该负载均衡器实例的前端子网。可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到。 通过更新ipv6_vip_virsubnet_id可以更新负载均衡器所在IPv6子网,且负载均衡器的内网IPv6地址将发生变化。 使用说明: - ipv6_vip_virsubnet_id 对应的子网必须属于当前负载均衡器所在VPC,且子网需开启支持IPv6。 - 只有guaranteed是true的负载均衡器才支持更新ipv6_vip_virsubnet_id。 - *传入为null表示解绑IPv6子网。* - 更新IPv6子网不会导致IPv4子网发生变化。 [不支持IPv6,请勿使用。](tag:dt,dt_test) + :param ipv6_vip_virsubnet_id: 参数解释:双栈类型负载均衡器所在子网的IPv6网络ID,也称为该负载均衡器实例的前端子网。可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到。 通过更新ipv6_vip_virsubnet_id可以更新负载均衡器所在IPv6子网,且负载均衡器的内网IPv6地址将发生变化。 约束限制: - ipv6_vip_virsubnet_id 对应的子网必须属于当前负载均衡器所在VPC,且子网需开启支持IPv6。 - 只有guaranteed是true的负载均衡器才支持更新ipv6_vip_virsubnet_id。 - *传入为null表示解绑IPv6子网。* - 更新IPv6子网不会导致IPv4子网发生变化。 [不支持IPv6,请勿使用。](tag:dt,dt_test) :type ipv6_vip_virsubnet_id: str - :param vip_subnet_cidr_id: 负载均衡器所在的IPv4子网ID,也称为该负载均衡器实例的前端子网。可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到。 通过更新vip_subnet_cidr_id可以更新负载均衡器所在IPv4子网,并且负载均衡器的内网IPv4地址将发生变化。 使用说明: - 若同时设置了vip_address,则必须保证vip_address对应的IP在vip_subnet_cidr_id的子网网段中。 - vip_subnet_cidr_id对应的子网必须属于当前负载均衡器vpc_id对应的VPC。 - 只有guaranteed是true的负载均衡器才支持更新vip_subnet_cidr_id。 - *传入null表示解绑IPv4子网。* - 更新IPv子网不会导致IPv4子网发生变化。 + :param vip_subnet_cidr_id: 参数解释:负载均衡器所在的IPv4子网ID,也称为该负载均衡器实例的前端子网。可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到。 通过更新vip_subnet_cidr_id可以更新负载均衡器所在IPv4子网,并且负载均衡器的内网IPv4地址将发生变化。 约束限制: - 若同时设置了vip_address,则必须保证vip_address对应的IP在vip_subnet_cidr_id的子网网段中。 - vip_subnet_cidr_id对应的子网必须属于当前负载均衡器vpc_id对应的VPC。 - 只有guaranteed是true的负载均衡器才支持更新vip_subnet_cidr_id。 - *传入null表示解绑IPv4子网。* - 更新IPv子网不会导致IPv4子网发生变化。 :type vip_subnet_cidr_id: str - :param vip_address: 负载均衡器的IPv4虚拟IP。该地址必须包含在所在子网的IPv4网段内,且未被占用。 注:仅当guaranteed是true的场合,才支持更新。 + :param vip_address: 参数解释:负载均衡器的IPv4虚拟IP。 约束限制:该地址必须包含在所在子网的IPv4网段内,且未被占用。 注:仅当guaranteed是true的场合,才支持更新。 :type vip_address: str - :param l4_flavor_id: 网络型规格ID。 [使用说明: - 可以通过GET https://{ELB_Endpoint}/v3/{project_id}/elb/flavors?type=L4 响应参数中的id得到。 - 仅当guaranteed是true的场合,才支持更新。 - 可以支持规格改大改小,注意改小过程中可能会造成部分长连接中断,影响部分链接的新建, - autoscaling.enable=true时,修改无意义,不生效。 - 当传入的规格类型为L4,表示该实例为固定规格实例,按规格计费。 - 当传入的规格类型为L4_elastic_max,表示该实例为弹性实例,按LCU计费。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,dt) [只支持设置为l4_flavor.elb.shared。](tag:hcso_dt) [hcso场景下所有LB实例共享带宽,该字段无效,请勿使用。](tag:hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b) + :param l4_flavor_id: 参数解释:网络型规格ID。 [约束限制: - 可以通过GET https://{ELB_Endpoint}/v3/{project_id}/elb/flavors?type=L4 响应参数中的id得到。 - 仅当guaranteed是true的场合,才支持更新。 - 可以支持规格改大改小,注意改小过程中可能会造成部分长连接中断,影响部分链接的新建, - autoscaling.enable=true时,修改无意义,不生效。 - 当传入的规格类型为L4,表示该实例为固定规格实例,按规格计费。 - 当传入的规格类型为L4_elastic_max,表示该实例为弹性实例,按LCU计费。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,dt) [只支持设置为l4_flavor.elb.shared。](tag:hcso_dt) [hcso场景下所有LB实例共享带宽,该字段无效,请勿使用。](tag:hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b) :type l4_flavor_id: str - :param l7_flavor_id: 应用型ID。 [使用说明: - 可以通过GET https://{ELB_Endpoint}/v3/{project_id}/elb/flavors?type=L7 响应参数中的id得到。 - 仅当guaranteed是true的场合,才支持更新。 - 可以支持规格改大改小,注意改小过程中可能会造成部分长连接中断,影响部分链接的新建, - autoscaling.enable=true时,修改无意义,不生效。 - 当传入的规格类型为L7,表示该实例为固定规格实例,按规格计费。 - 当传入的规格类型为L7_elastic_max,表示该实例为弹性实例,按LCU计费。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,dt) [只支持设置为l7_flavor.elb.shared。](tag:hcso_dt) [所有LB实例共享带宽,该字段无效,请勿使用。](tag:hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b) + :param l7_flavor_id: 参数解释:应用型ID。 [约束限制: - 可以通过GET https://{ELB_Endpoint}/v3/{project_id}/elb/flavors?type=L7 响应参数中的id得到。 - 仅当guaranteed是true的场合,才支持更新。 - 可以支持规格改大改小,注意改小过程中可能会造成部分长连接中断,影响部分链接的新建, - autoscaling.enable=true时,修改无意义,不生效。 - 当传入的规格类型为L7,表示该实例为固定规格实例,按规格计费。 - 当传入的规格类型为L7_elastic_max,表示该实例为弹性实例,按LCU计费。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,dt) [网关型LB不支持l7_flavor_id。](tag:hws_eu) [只支持设置为l7_flavor.elb.shared。](tag:hcso_dt) [所有LB实例共享带宽,该字段无效,请勿使用。](tag:hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b) :type l7_flavor_id: str :param ipv6_bandwidth: :type ipv6_bandwidth: :class:`huaweicloudsdkelb.v3.BandwidthRef` - :param ip_target_enable: 是否启用跨VPC后端转发。 开启跨VPC后端转发后,后端服务器组不仅支持添加云上VPC内的服务器,还支持添加其他VPC、其他公有云、云下数据中心的服务器。 使用共享VPC的实例使用此特性时,需确保共享资源所有者已开通VPC对等连接,否则通信异常。 [仅独享型负载均衡器支持该特性。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) 取值: - true:开启。 - false:不开启。 使用说明: - 开启不能关闭。 [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) + :param ip_target_enable: 参数解释:是否启用跨VPC后端转发。 开启跨VPC后端转发后,后端服务器组不仅支持添加云上VPC内的服务器,还支持添加其他VPC、其他公有云、云下数据中心的服务器。 约束限制: - 使用共享VPC的实例使用此特性时,需确保共享资源所有者已开通VPC对等连接,否则通信异常。 - 开启后不能关闭。 [- 仅独享型负载均衡器支持该特性。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) 取值范围: - true:开启。 - false:不开启。 [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) :type ip_target_enable: bool - :param elb_virsubnet_ids: 下联面子网的网络ID列表。 可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到。 已绑定的下联面子网也在传参elb_virsubnet_ids列表中,则绑定关系保留。 已绑定的下联面子网若不在传参elb_virsubnet_ids列表中, 则将移除LB与该下联面子网的关联关系。但不允许移除已被ELB使用的子网,否则将报错,不做任何修改。 在传参elb_virsubnet_ids列表中但不在已绑定的下联面子网列表中,则将新增LB与下联面的绑定关系。 使用说明: - 所有ID同属于该LB所在的VPC。 - 不支持边缘云子网。 + :param elb_virsubnet_ids: 参数解释:下联面子网的网络ID列表。 可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到。 约束限制: - 已绑定的下联面子网也在传参elb_virsubnet_ids列表中,则绑定关系保留。 - 已绑定的下联面子网若不在传参elb_virsubnet_ids列表中, 则将移除LB与该下联面子网的关联关系。但不允许移除已被ELB使用的子网,否则将报错,不做任何修改。 - 在传参elb_virsubnet_ids列表中但不在已绑定的下联面子网列表中,则将新增LB与下联面的绑定关系。 - 所有elb_virsubnet_ids中的ID同属于该LB所在的VPC。 - 不支持边缘云子网。 :type elb_virsubnet_ids: list[str] - :param deletion_protection_enable: 是否开启删除保护。 取值:false不开启,true开启。 > 退场时需要先关闭所有资源的删除保护开关。 [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) + :param deletion_protection_enable: 参数解释:是否开启删除保护。 约束限制:退场时需要先关闭所有资源的删除保护开关。 取值范围:false不开启,true开启。 [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) :type deletion_protection_enable: bool :param prepaid_options: :type prepaid_options: :class:`huaweicloudsdkelb.v3.PrepaidUpdateOption` :param autoscaling: :type autoscaling: :class:`huaweicloudsdkelb.v3.UpdateLoadbalancerAutoscalingOption` - :param charge_mode: 计费模式。 取值: - flavor:按规格计费 + :param charge_mode: 参数解释:计费模式。 取值范围: - flavor:按规格计费 :type charge_mode: str - :param waf_failure_action: WAF故障时的流量处理策略。discard:丢弃,forward: 转发到后端(默认) 使用说明:只有绑定了waf的LB实例,该字段才会生效。 [不支持该字段,请勿使用。](tag:hws_hk,hws_eu,hws_test,hcs,hcs_sm,hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b,hcso_dt,dt,dt_test,ocb,ctc,cmcc,tm,sbc,g42,hws_ocb,hk_sbc,hk_tm,hk_g42) + :param waf_failure_action: 参数解释:WAF故障时的流量处理策略。 约束限制:只有绑定了waf的LB实例,该字段才会生效。 取值范围:discard:丢弃,forward: 转发到后端。 默认取值:forward [不支持该字段,请勿使用。](tag:hws_hk,hws_eu,hws_test,hcs,hcs_sm,hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b,hcso_dt,dt,dt_test,ocb,ctc,cmcc,tm,sbc,g42,hws_ocb,hk_sbc,hk_tm,hk_g42) :type waf_failure_action: str - :param protection_status: 修改保护状态, 取值: - nonProtection: 不保护 - consoleProtection: 控制台修改保护 + :param protection_status: 参数解释:修改保护状态。 取值范围: - nonProtection: 不保护 - consoleProtection: 控制台修改保护 :type protection_status: str - :param protection_reason: 设置保护的原因 >仅当protection_status为consoleProtection时有效。 + :param protection_reason: 参数解释:设置保护的原因。 约束限制:仅当protection_status为consoleProtection时有效。 :type protection_reason: str - :param ipv6_vip_address: 双栈类型负载均衡器的IPv6地址。 [不支持IPv6,请勿使用。](tag:dt,dt_test) + :param ipv6_vip_address: 参数解释:双栈类型负载均衡器的IPv6地址。 [不支持IPv6,请勿使用。](tag:dt,dt_test) :type ipv6_vip_address: str """ @@ -171,7 +171,7 @@ def __init__(self, name=None, admin_state_up=None, description=None, ipv6_vip_vi def name(self): """Gets the name of this UpdateLoadBalancerOption. - 负载均衡器的名称。 + 参数解释:负载均衡器的名称。 :return: The name of this UpdateLoadBalancerOption. :rtype: str @@ -182,7 +182,7 @@ def name(self): def name(self, name): """Sets the name of this UpdateLoadBalancerOption. - 负载均衡器的名称。 + 参数解释:负载均衡器的名称。 :param name: The name of this UpdateLoadBalancerOption. :type name: str @@ -193,7 +193,7 @@ def name(self, name): def admin_state_up(self): """Gets the admin_state_up of this UpdateLoadBalancerOption. - 负载均衡器的启用状态,true表示启用,false表示停用。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt) + 参数解释:负载均衡器的启用状态。 取值范围: - true :启用。 - false:停用。 [不支持该字段,请勿使用。](tag:dt,dt_test) :return: The admin_state_up of this UpdateLoadBalancerOption. :rtype: bool @@ -204,7 +204,7 @@ def admin_state_up(self): def admin_state_up(self, admin_state_up): """Sets the admin_state_up of this UpdateLoadBalancerOption. - 负载均衡器的启用状态,true表示启用,false表示停用。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt) + 参数解释:负载均衡器的启用状态。 取值范围: - true :启用。 - false:停用。 [不支持该字段,请勿使用。](tag:dt,dt_test) :param admin_state_up: The admin_state_up of this UpdateLoadBalancerOption. :type admin_state_up: bool @@ -215,7 +215,7 @@ def admin_state_up(self, admin_state_up): def description(self): """Gets the description of this UpdateLoadBalancerOption. - 负载均衡器的描述。 + 参数解释:负载均衡器的描述。 :return: The description of this UpdateLoadBalancerOption. :rtype: str @@ -226,7 +226,7 @@ def description(self): def description(self, description): """Sets the description of this UpdateLoadBalancerOption. - 负载均衡器的描述。 + 参数解释:负载均衡器的描述。 :param description: The description of this UpdateLoadBalancerOption. :type description: str @@ -237,7 +237,7 @@ def description(self, description): def ipv6_vip_virsubnet_id(self): """Gets the ipv6_vip_virsubnet_id of this UpdateLoadBalancerOption. - 双栈类型负载均衡器所在子网的IPv6网络ID,也称为该负载均衡器实例的前端子网。可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到。 通过更新ipv6_vip_virsubnet_id可以更新负载均衡器所在IPv6子网,且负载均衡器的内网IPv6地址将发生变化。 使用说明: - ipv6_vip_virsubnet_id 对应的子网必须属于当前负载均衡器所在VPC,且子网需开启支持IPv6。 - 只有guaranteed是true的负载均衡器才支持更新ipv6_vip_virsubnet_id。 - *传入为null表示解绑IPv6子网。* - 更新IPv6子网不会导致IPv4子网发生变化。 [不支持IPv6,请勿使用。](tag:dt,dt_test) + 参数解释:双栈类型负载均衡器所在子网的IPv6网络ID,也称为该负载均衡器实例的前端子网。可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到。 通过更新ipv6_vip_virsubnet_id可以更新负载均衡器所在IPv6子网,且负载均衡器的内网IPv6地址将发生变化。 约束限制: - ipv6_vip_virsubnet_id 对应的子网必须属于当前负载均衡器所在VPC,且子网需开启支持IPv6。 - 只有guaranteed是true的负载均衡器才支持更新ipv6_vip_virsubnet_id。 - *传入为null表示解绑IPv6子网。* - 更新IPv6子网不会导致IPv4子网发生变化。 [不支持IPv6,请勿使用。](tag:dt,dt_test) :return: The ipv6_vip_virsubnet_id of this UpdateLoadBalancerOption. :rtype: str @@ -248,7 +248,7 @@ def ipv6_vip_virsubnet_id(self): def ipv6_vip_virsubnet_id(self, ipv6_vip_virsubnet_id): """Sets the ipv6_vip_virsubnet_id of this UpdateLoadBalancerOption. - 双栈类型负载均衡器所在子网的IPv6网络ID,也称为该负载均衡器实例的前端子网。可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到。 通过更新ipv6_vip_virsubnet_id可以更新负载均衡器所在IPv6子网,且负载均衡器的内网IPv6地址将发生变化。 使用说明: - ipv6_vip_virsubnet_id 对应的子网必须属于当前负载均衡器所在VPC,且子网需开启支持IPv6。 - 只有guaranteed是true的负载均衡器才支持更新ipv6_vip_virsubnet_id。 - *传入为null表示解绑IPv6子网。* - 更新IPv6子网不会导致IPv4子网发生变化。 [不支持IPv6,请勿使用。](tag:dt,dt_test) + 参数解释:双栈类型负载均衡器所在子网的IPv6网络ID,也称为该负载均衡器实例的前端子网。可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到。 通过更新ipv6_vip_virsubnet_id可以更新负载均衡器所在IPv6子网,且负载均衡器的内网IPv6地址将发生变化。 约束限制: - ipv6_vip_virsubnet_id 对应的子网必须属于当前负载均衡器所在VPC,且子网需开启支持IPv6。 - 只有guaranteed是true的负载均衡器才支持更新ipv6_vip_virsubnet_id。 - *传入为null表示解绑IPv6子网。* - 更新IPv6子网不会导致IPv4子网发生变化。 [不支持IPv6,请勿使用。](tag:dt,dt_test) :param ipv6_vip_virsubnet_id: The ipv6_vip_virsubnet_id of this UpdateLoadBalancerOption. :type ipv6_vip_virsubnet_id: str @@ -259,7 +259,7 @@ def ipv6_vip_virsubnet_id(self, ipv6_vip_virsubnet_id): def vip_subnet_cidr_id(self): """Gets the vip_subnet_cidr_id of this UpdateLoadBalancerOption. - 负载均衡器所在的IPv4子网ID,也称为该负载均衡器实例的前端子网。可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到。 通过更新vip_subnet_cidr_id可以更新负载均衡器所在IPv4子网,并且负载均衡器的内网IPv4地址将发生变化。 使用说明: - 若同时设置了vip_address,则必须保证vip_address对应的IP在vip_subnet_cidr_id的子网网段中。 - vip_subnet_cidr_id对应的子网必须属于当前负载均衡器vpc_id对应的VPC。 - 只有guaranteed是true的负载均衡器才支持更新vip_subnet_cidr_id。 - *传入null表示解绑IPv4子网。* - 更新IPv子网不会导致IPv4子网发生变化。 + 参数解释:负载均衡器所在的IPv4子网ID,也称为该负载均衡器实例的前端子网。可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到。 通过更新vip_subnet_cidr_id可以更新负载均衡器所在IPv4子网,并且负载均衡器的内网IPv4地址将发生变化。 约束限制: - 若同时设置了vip_address,则必须保证vip_address对应的IP在vip_subnet_cidr_id的子网网段中。 - vip_subnet_cidr_id对应的子网必须属于当前负载均衡器vpc_id对应的VPC。 - 只有guaranteed是true的负载均衡器才支持更新vip_subnet_cidr_id。 - *传入null表示解绑IPv4子网。* - 更新IPv子网不会导致IPv4子网发生变化。 :return: The vip_subnet_cidr_id of this UpdateLoadBalancerOption. :rtype: str @@ -270,7 +270,7 @@ def vip_subnet_cidr_id(self): def vip_subnet_cidr_id(self, vip_subnet_cidr_id): """Sets the vip_subnet_cidr_id of this UpdateLoadBalancerOption. - 负载均衡器所在的IPv4子网ID,也称为该负载均衡器实例的前端子网。可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到。 通过更新vip_subnet_cidr_id可以更新负载均衡器所在IPv4子网,并且负载均衡器的内网IPv4地址将发生变化。 使用说明: - 若同时设置了vip_address,则必须保证vip_address对应的IP在vip_subnet_cidr_id的子网网段中。 - vip_subnet_cidr_id对应的子网必须属于当前负载均衡器vpc_id对应的VPC。 - 只有guaranteed是true的负载均衡器才支持更新vip_subnet_cidr_id。 - *传入null表示解绑IPv4子网。* - 更新IPv子网不会导致IPv4子网发生变化。 + 参数解释:负载均衡器所在的IPv4子网ID,也称为该负载均衡器实例的前端子网。可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到。 通过更新vip_subnet_cidr_id可以更新负载均衡器所在IPv4子网,并且负载均衡器的内网IPv4地址将发生变化。 约束限制: - 若同时设置了vip_address,则必须保证vip_address对应的IP在vip_subnet_cidr_id的子网网段中。 - vip_subnet_cidr_id对应的子网必须属于当前负载均衡器vpc_id对应的VPC。 - 只有guaranteed是true的负载均衡器才支持更新vip_subnet_cidr_id。 - *传入null表示解绑IPv4子网。* - 更新IPv子网不会导致IPv4子网发生变化。 :param vip_subnet_cidr_id: The vip_subnet_cidr_id of this UpdateLoadBalancerOption. :type vip_subnet_cidr_id: str @@ -281,7 +281,7 @@ def vip_subnet_cidr_id(self, vip_subnet_cidr_id): def vip_address(self): """Gets the vip_address of this UpdateLoadBalancerOption. - 负载均衡器的IPv4虚拟IP。该地址必须包含在所在子网的IPv4网段内,且未被占用。 注:仅当guaranteed是true的场合,才支持更新。 + 参数解释:负载均衡器的IPv4虚拟IP。 约束限制:该地址必须包含在所在子网的IPv4网段内,且未被占用。 注:仅当guaranteed是true的场合,才支持更新。 :return: The vip_address of this UpdateLoadBalancerOption. :rtype: str @@ -292,7 +292,7 @@ def vip_address(self): def vip_address(self, vip_address): """Sets the vip_address of this UpdateLoadBalancerOption. - 负载均衡器的IPv4虚拟IP。该地址必须包含在所在子网的IPv4网段内,且未被占用。 注:仅当guaranteed是true的场合,才支持更新。 + 参数解释:负载均衡器的IPv4虚拟IP。 约束限制:该地址必须包含在所在子网的IPv4网段内,且未被占用。 注:仅当guaranteed是true的场合,才支持更新。 :param vip_address: The vip_address of this UpdateLoadBalancerOption. :type vip_address: str @@ -303,7 +303,7 @@ def vip_address(self, vip_address): def l4_flavor_id(self): """Gets the l4_flavor_id of this UpdateLoadBalancerOption. - 网络型规格ID。 [使用说明: - 可以通过GET https://{ELB_Endpoint}/v3/{project_id}/elb/flavors?type=L4 响应参数中的id得到。 - 仅当guaranteed是true的场合,才支持更新。 - 可以支持规格改大改小,注意改小过程中可能会造成部分长连接中断,影响部分链接的新建, - autoscaling.enable=true时,修改无意义,不生效。 - 当传入的规格类型为L4,表示该实例为固定规格实例,按规格计费。 - 当传入的规格类型为L4_elastic_max,表示该实例为弹性实例,按LCU计费。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,dt) [只支持设置为l4_flavor.elb.shared。](tag:hcso_dt) [hcso场景下所有LB实例共享带宽,该字段无效,请勿使用。](tag:hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b) + 参数解释:网络型规格ID。 [约束限制: - 可以通过GET https://{ELB_Endpoint}/v3/{project_id}/elb/flavors?type=L4 响应参数中的id得到。 - 仅当guaranteed是true的场合,才支持更新。 - 可以支持规格改大改小,注意改小过程中可能会造成部分长连接中断,影响部分链接的新建, - autoscaling.enable=true时,修改无意义,不生效。 - 当传入的规格类型为L4,表示该实例为固定规格实例,按规格计费。 - 当传入的规格类型为L4_elastic_max,表示该实例为弹性实例,按LCU计费。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,dt) [只支持设置为l4_flavor.elb.shared。](tag:hcso_dt) [hcso场景下所有LB实例共享带宽,该字段无效,请勿使用。](tag:hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b) :return: The l4_flavor_id of this UpdateLoadBalancerOption. :rtype: str @@ -314,7 +314,7 @@ def l4_flavor_id(self): def l4_flavor_id(self, l4_flavor_id): """Sets the l4_flavor_id of this UpdateLoadBalancerOption. - 网络型规格ID。 [使用说明: - 可以通过GET https://{ELB_Endpoint}/v3/{project_id}/elb/flavors?type=L4 响应参数中的id得到。 - 仅当guaranteed是true的场合,才支持更新。 - 可以支持规格改大改小,注意改小过程中可能会造成部分长连接中断,影响部分链接的新建, - autoscaling.enable=true时,修改无意义,不生效。 - 当传入的规格类型为L4,表示该实例为固定规格实例,按规格计费。 - 当传入的规格类型为L4_elastic_max,表示该实例为弹性实例,按LCU计费。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,dt) [只支持设置为l4_flavor.elb.shared。](tag:hcso_dt) [hcso场景下所有LB实例共享带宽,该字段无效,请勿使用。](tag:hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b) + 参数解释:网络型规格ID。 [约束限制: - 可以通过GET https://{ELB_Endpoint}/v3/{project_id}/elb/flavors?type=L4 响应参数中的id得到。 - 仅当guaranteed是true的场合,才支持更新。 - 可以支持规格改大改小,注意改小过程中可能会造成部分长连接中断,影响部分链接的新建, - autoscaling.enable=true时,修改无意义,不生效。 - 当传入的规格类型为L4,表示该实例为固定规格实例,按规格计费。 - 当传入的规格类型为L4_elastic_max,表示该实例为弹性实例,按LCU计费。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,dt) [只支持设置为l4_flavor.elb.shared。](tag:hcso_dt) [hcso场景下所有LB实例共享带宽,该字段无效,请勿使用。](tag:hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b) :param l4_flavor_id: The l4_flavor_id of this UpdateLoadBalancerOption. :type l4_flavor_id: str @@ -325,7 +325,7 @@ def l4_flavor_id(self, l4_flavor_id): def l7_flavor_id(self): """Gets the l7_flavor_id of this UpdateLoadBalancerOption. - 应用型ID。 [使用说明: - 可以通过GET https://{ELB_Endpoint}/v3/{project_id}/elb/flavors?type=L7 响应参数中的id得到。 - 仅当guaranteed是true的场合,才支持更新。 - 可以支持规格改大改小,注意改小过程中可能会造成部分长连接中断,影响部分链接的新建, - autoscaling.enable=true时,修改无意义,不生效。 - 当传入的规格类型为L7,表示该实例为固定规格实例,按规格计费。 - 当传入的规格类型为L7_elastic_max,表示该实例为弹性实例,按LCU计费。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,dt) [只支持设置为l7_flavor.elb.shared。](tag:hcso_dt) [所有LB实例共享带宽,该字段无效,请勿使用。](tag:hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b) + 参数解释:应用型ID。 [约束限制: - 可以通过GET https://{ELB_Endpoint}/v3/{project_id}/elb/flavors?type=L7 响应参数中的id得到。 - 仅当guaranteed是true的场合,才支持更新。 - 可以支持规格改大改小,注意改小过程中可能会造成部分长连接中断,影响部分链接的新建, - autoscaling.enable=true时,修改无意义,不生效。 - 当传入的规格类型为L7,表示该实例为固定规格实例,按规格计费。 - 当传入的规格类型为L7_elastic_max,表示该实例为弹性实例,按LCU计费。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,dt) [网关型LB不支持l7_flavor_id。](tag:hws_eu) [只支持设置为l7_flavor.elb.shared。](tag:hcso_dt) [所有LB实例共享带宽,该字段无效,请勿使用。](tag:hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b) :return: The l7_flavor_id of this UpdateLoadBalancerOption. :rtype: str @@ -336,7 +336,7 @@ def l7_flavor_id(self): def l7_flavor_id(self, l7_flavor_id): """Sets the l7_flavor_id of this UpdateLoadBalancerOption. - 应用型ID。 [使用说明: - 可以通过GET https://{ELB_Endpoint}/v3/{project_id}/elb/flavors?type=L7 响应参数中的id得到。 - 仅当guaranteed是true的场合,才支持更新。 - 可以支持规格改大改小,注意改小过程中可能会造成部分长连接中断,影响部分链接的新建, - autoscaling.enable=true时,修改无意义,不生效。 - 当传入的规格类型为L7,表示该实例为固定规格实例,按规格计费。 - 当传入的规格类型为L7_elastic_max,表示该实例为弹性实例,按LCU计费。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,dt) [只支持设置为l7_flavor.elb.shared。](tag:hcso_dt) [所有LB实例共享带宽,该字段无效,请勿使用。](tag:hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b) + 参数解释:应用型ID。 [约束限制: - 可以通过GET https://{ELB_Endpoint}/v3/{project_id}/elb/flavors?type=L7 响应参数中的id得到。 - 仅当guaranteed是true的场合,才支持更新。 - 可以支持规格改大改小,注意改小过程中可能会造成部分长连接中断,影响部分链接的新建, - autoscaling.enable=true时,修改无意义,不生效。 - 当传入的规格类型为L7,表示该实例为固定规格实例,按规格计费。 - 当传入的规格类型为L7_elastic_max,表示该实例为弹性实例,按LCU计费。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,dt) [网关型LB不支持l7_flavor_id。](tag:hws_eu) [只支持设置为l7_flavor.elb.shared。](tag:hcso_dt) [所有LB实例共享带宽,该字段无效,请勿使用。](tag:hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b) :param l7_flavor_id: The l7_flavor_id of this UpdateLoadBalancerOption. :type l7_flavor_id: str @@ -365,7 +365,7 @@ def ipv6_bandwidth(self, ipv6_bandwidth): def ip_target_enable(self): """Gets the ip_target_enable of this UpdateLoadBalancerOption. - 是否启用跨VPC后端转发。 开启跨VPC后端转发后,后端服务器组不仅支持添加云上VPC内的服务器,还支持添加其他VPC、其他公有云、云下数据中心的服务器。 使用共享VPC的实例使用此特性时,需确保共享资源所有者已开通VPC对等连接,否则通信异常。 [仅独享型负载均衡器支持该特性。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) 取值: - true:开启。 - false:不开启。 使用说明: - 开启不能关闭。 [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) + 参数解释:是否启用跨VPC后端转发。 开启跨VPC后端转发后,后端服务器组不仅支持添加云上VPC内的服务器,还支持添加其他VPC、其他公有云、云下数据中心的服务器。 约束限制: - 使用共享VPC的实例使用此特性时,需确保共享资源所有者已开通VPC对等连接,否则通信异常。 - 开启后不能关闭。 [- 仅独享型负载均衡器支持该特性。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) 取值范围: - true:开启。 - false:不开启。 [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) :return: The ip_target_enable of this UpdateLoadBalancerOption. :rtype: bool @@ -376,7 +376,7 @@ def ip_target_enable(self): def ip_target_enable(self, ip_target_enable): """Sets the ip_target_enable of this UpdateLoadBalancerOption. - 是否启用跨VPC后端转发。 开启跨VPC后端转发后,后端服务器组不仅支持添加云上VPC内的服务器,还支持添加其他VPC、其他公有云、云下数据中心的服务器。 使用共享VPC的实例使用此特性时,需确保共享资源所有者已开通VPC对等连接,否则通信异常。 [仅独享型负载均衡器支持该特性。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) 取值: - true:开启。 - false:不开启。 使用说明: - 开启不能关闭。 [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) + 参数解释:是否启用跨VPC后端转发。 开启跨VPC后端转发后,后端服务器组不仅支持添加云上VPC内的服务器,还支持添加其他VPC、其他公有云、云下数据中心的服务器。 约束限制: - 使用共享VPC的实例使用此特性时,需确保共享资源所有者已开通VPC对等连接,否则通信异常。 - 开启后不能关闭。 [- 仅独享型负载均衡器支持该特性。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) 取值范围: - true:开启。 - false:不开启。 [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) :param ip_target_enable: The ip_target_enable of this UpdateLoadBalancerOption. :type ip_target_enable: bool @@ -387,7 +387,7 @@ def ip_target_enable(self, ip_target_enable): def elb_virsubnet_ids(self): """Gets the elb_virsubnet_ids of this UpdateLoadBalancerOption. - 下联面子网的网络ID列表。 可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到。 已绑定的下联面子网也在传参elb_virsubnet_ids列表中,则绑定关系保留。 已绑定的下联面子网若不在传参elb_virsubnet_ids列表中, 则将移除LB与该下联面子网的关联关系。但不允许移除已被ELB使用的子网,否则将报错,不做任何修改。 在传参elb_virsubnet_ids列表中但不在已绑定的下联面子网列表中,则将新增LB与下联面的绑定关系。 使用说明: - 所有ID同属于该LB所在的VPC。 - 不支持边缘云子网。 + 参数解释:下联面子网的网络ID列表。 可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到。 约束限制: - 已绑定的下联面子网也在传参elb_virsubnet_ids列表中,则绑定关系保留。 - 已绑定的下联面子网若不在传参elb_virsubnet_ids列表中, 则将移除LB与该下联面子网的关联关系。但不允许移除已被ELB使用的子网,否则将报错,不做任何修改。 - 在传参elb_virsubnet_ids列表中但不在已绑定的下联面子网列表中,则将新增LB与下联面的绑定关系。 - 所有elb_virsubnet_ids中的ID同属于该LB所在的VPC。 - 不支持边缘云子网。 :return: The elb_virsubnet_ids of this UpdateLoadBalancerOption. :rtype: list[str] @@ -398,7 +398,7 @@ def elb_virsubnet_ids(self): def elb_virsubnet_ids(self, elb_virsubnet_ids): """Sets the elb_virsubnet_ids of this UpdateLoadBalancerOption. - 下联面子网的网络ID列表。 可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到。 已绑定的下联面子网也在传参elb_virsubnet_ids列表中,则绑定关系保留。 已绑定的下联面子网若不在传参elb_virsubnet_ids列表中, 则将移除LB与该下联面子网的关联关系。但不允许移除已被ELB使用的子网,否则将报错,不做任何修改。 在传参elb_virsubnet_ids列表中但不在已绑定的下联面子网列表中,则将新增LB与下联面的绑定关系。 使用说明: - 所有ID同属于该LB所在的VPC。 - 不支持边缘云子网。 + 参数解释:下联面子网的网络ID列表。 可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到。 约束限制: - 已绑定的下联面子网也在传参elb_virsubnet_ids列表中,则绑定关系保留。 - 已绑定的下联面子网若不在传参elb_virsubnet_ids列表中, 则将移除LB与该下联面子网的关联关系。但不允许移除已被ELB使用的子网,否则将报错,不做任何修改。 - 在传参elb_virsubnet_ids列表中但不在已绑定的下联面子网列表中,则将新增LB与下联面的绑定关系。 - 所有elb_virsubnet_ids中的ID同属于该LB所在的VPC。 - 不支持边缘云子网。 :param elb_virsubnet_ids: The elb_virsubnet_ids of this UpdateLoadBalancerOption. :type elb_virsubnet_ids: list[str] @@ -409,7 +409,7 @@ def elb_virsubnet_ids(self, elb_virsubnet_ids): def deletion_protection_enable(self): """Gets the deletion_protection_enable of this UpdateLoadBalancerOption. - 是否开启删除保护。 取值:false不开启,true开启。 > 退场时需要先关闭所有资源的删除保护开关。 [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) + 参数解释:是否开启删除保护。 约束限制:退场时需要先关闭所有资源的删除保护开关。 取值范围:false不开启,true开启。 [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) :return: The deletion_protection_enable of this UpdateLoadBalancerOption. :rtype: bool @@ -420,7 +420,7 @@ def deletion_protection_enable(self): def deletion_protection_enable(self, deletion_protection_enable): """Sets the deletion_protection_enable of this UpdateLoadBalancerOption. - 是否开启删除保护。 取值:false不开启,true开启。 > 退场时需要先关闭所有资源的删除保护开关。 [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) + 参数解释:是否开启删除保护。 约束限制:退场时需要先关闭所有资源的删除保护开关。 取值范围:false不开启,true开启。 [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) :param deletion_protection_enable: The deletion_protection_enable of this UpdateLoadBalancerOption. :type deletion_protection_enable: bool @@ -467,7 +467,7 @@ def autoscaling(self, autoscaling): def charge_mode(self): """Gets the charge_mode of this UpdateLoadBalancerOption. - 计费模式。 取值: - flavor:按规格计费 + 参数解释:计费模式。 取值范围: - flavor:按规格计费 :return: The charge_mode of this UpdateLoadBalancerOption. :rtype: str @@ -478,7 +478,7 @@ def charge_mode(self): def charge_mode(self, charge_mode): """Sets the charge_mode of this UpdateLoadBalancerOption. - 计费模式。 取值: - flavor:按规格计费 + 参数解释:计费模式。 取值范围: - flavor:按规格计费 :param charge_mode: The charge_mode of this UpdateLoadBalancerOption. :type charge_mode: str @@ -489,7 +489,7 @@ def charge_mode(self, charge_mode): def waf_failure_action(self): """Gets the waf_failure_action of this UpdateLoadBalancerOption. - WAF故障时的流量处理策略。discard:丢弃,forward: 转发到后端(默认) 使用说明:只有绑定了waf的LB实例,该字段才会生效。 [不支持该字段,请勿使用。](tag:hws_hk,hws_eu,hws_test,hcs,hcs_sm,hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b,hcso_dt,dt,dt_test,ocb,ctc,cmcc,tm,sbc,g42,hws_ocb,hk_sbc,hk_tm,hk_g42) + 参数解释:WAF故障时的流量处理策略。 约束限制:只有绑定了waf的LB实例,该字段才会生效。 取值范围:discard:丢弃,forward: 转发到后端。 默认取值:forward [不支持该字段,请勿使用。](tag:hws_hk,hws_eu,hws_test,hcs,hcs_sm,hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b,hcso_dt,dt,dt_test,ocb,ctc,cmcc,tm,sbc,g42,hws_ocb,hk_sbc,hk_tm,hk_g42) :return: The waf_failure_action of this UpdateLoadBalancerOption. :rtype: str @@ -500,7 +500,7 @@ def waf_failure_action(self): def waf_failure_action(self, waf_failure_action): """Sets the waf_failure_action of this UpdateLoadBalancerOption. - WAF故障时的流量处理策略。discard:丢弃,forward: 转发到后端(默认) 使用说明:只有绑定了waf的LB实例,该字段才会生效。 [不支持该字段,请勿使用。](tag:hws_hk,hws_eu,hws_test,hcs,hcs_sm,hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b,hcso_dt,dt,dt_test,ocb,ctc,cmcc,tm,sbc,g42,hws_ocb,hk_sbc,hk_tm,hk_g42) + 参数解释:WAF故障时的流量处理策略。 约束限制:只有绑定了waf的LB实例,该字段才会生效。 取值范围:discard:丢弃,forward: 转发到后端。 默认取值:forward [不支持该字段,请勿使用。](tag:hws_hk,hws_eu,hws_test,hcs,hcs_sm,hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b,hcso_dt,dt,dt_test,ocb,ctc,cmcc,tm,sbc,g42,hws_ocb,hk_sbc,hk_tm,hk_g42) :param waf_failure_action: The waf_failure_action of this UpdateLoadBalancerOption. :type waf_failure_action: str @@ -511,7 +511,7 @@ def waf_failure_action(self, waf_failure_action): def protection_status(self): """Gets the protection_status of this UpdateLoadBalancerOption. - 修改保护状态, 取值: - nonProtection: 不保护 - consoleProtection: 控制台修改保护 + 参数解释:修改保护状态。 取值范围: - nonProtection: 不保护 - consoleProtection: 控制台修改保护 :return: The protection_status of this UpdateLoadBalancerOption. :rtype: str @@ -522,7 +522,7 @@ def protection_status(self): def protection_status(self, protection_status): """Sets the protection_status of this UpdateLoadBalancerOption. - 修改保护状态, 取值: - nonProtection: 不保护 - consoleProtection: 控制台修改保护 + 参数解释:修改保护状态。 取值范围: - nonProtection: 不保护 - consoleProtection: 控制台修改保护 :param protection_status: The protection_status of this UpdateLoadBalancerOption. :type protection_status: str @@ -533,7 +533,7 @@ def protection_status(self, protection_status): def protection_reason(self): """Gets the protection_reason of this UpdateLoadBalancerOption. - 设置保护的原因 >仅当protection_status为consoleProtection时有效。 + 参数解释:设置保护的原因。 约束限制:仅当protection_status为consoleProtection时有效。 :return: The protection_reason of this UpdateLoadBalancerOption. :rtype: str @@ -544,7 +544,7 @@ def protection_reason(self): def protection_reason(self, protection_reason): """Sets the protection_reason of this UpdateLoadBalancerOption. - 设置保护的原因 >仅当protection_status为consoleProtection时有效。 + 参数解释:设置保护的原因。 约束限制:仅当protection_status为consoleProtection时有效。 :param protection_reason: The protection_reason of this UpdateLoadBalancerOption. :type protection_reason: str @@ -555,7 +555,7 @@ def protection_reason(self, protection_reason): def ipv6_vip_address(self): """Gets the ipv6_vip_address of this UpdateLoadBalancerOption. - 双栈类型负载均衡器的IPv6地址。 [不支持IPv6,请勿使用。](tag:dt,dt_test) + 参数解释:双栈类型负载均衡器的IPv6地址。 [不支持IPv6,请勿使用。](tag:dt,dt_test) :return: The ipv6_vip_address of this UpdateLoadBalancerOption. :rtype: str @@ -566,7 +566,7 @@ def ipv6_vip_address(self): def ipv6_vip_address(self, ipv6_vip_address): """Sets the ipv6_vip_address of this UpdateLoadBalancerOption. - 双栈类型负载均衡器的IPv6地址。 [不支持IPv6,请勿使用。](tag:dt,dt_test) + 参数解释:双栈类型负载均衡器的IPv6地址。 [不支持IPv6,请勿使用。](tag:dt,dt_test) :param ipv6_vip_address: The ipv6_vip_address of this UpdateLoadBalancerOption. :type ipv6_vip_address: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_load_balancer_response.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_load_balancer_response.py index a3b0164fdb..760a625181 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_load_balancer_response.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_load_balancer_response.py @@ -38,11 +38,11 @@ def __init__(self, loadbalancer=None, loadbalancer_id=None, order_id=None, reque :param loadbalancer: :type loadbalancer: :class:`huaweicloudsdkelb.v3.LoadBalancer` - :param loadbalancer_id: 负载均衡器的id[(包周期场景返回该字段) 不支持该字段,请勿使用](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt,hk_vdf,fcs,ctc,cmcc) + :param loadbalancer_id: 参数解释:负载均衡器的id[(包周期场景返回该字段) 不支持该字段,请勿使用](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt,hk_vdf,fcs,ctc,cmcc) :type loadbalancer_id: str - :param order_id: 订单号[(包周期规格变更场景返回该字段) 不支持该字段,请勿使用](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt,hk_vdf,fcs,ctc,cmcc) + :param order_id: 参数解释:订单号[(包周期规格变更场景返回该字段) 不支持该字段,请勿使用](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt,hk_vdf,fcs,ctc,cmcc) :type order_id: str - :param request_id: 请求ID。 注:自动生成 。 + :param request_id: 参数解释:请求ID。 注:自动生成 。 :type request_id: str """ @@ -85,7 +85,7 @@ def loadbalancer(self, loadbalancer): def loadbalancer_id(self): """Gets the loadbalancer_id of this UpdateLoadBalancerResponse. - 负载均衡器的id[(包周期场景返回该字段) 不支持该字段,请勿使用](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt,hk_vdf,fcs,ctc,cmcc) + 参数解释:负载均衡器的id[(包周期场景返回该字段) 不支持该字段,请勿使用](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt,hk_vdf,fcs,ctc,cmcc) :return: The loadbalancer_id of this UpdateLoadBalancerResponse. :rtype: str @@ -96,7 +96,7 @@ def loadbalancer_id(self): def loadbalancer_id(self, loadbalancer_id): """Sets the loadbalancer_id of this UpdateLoadBalancerResponse. - 负载均衡器的id[(包周期场景返回该字段) 不支持该字段,请勿使用](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt,hk_vdf,fcs,ctc,cmcc) + 参数解释:负载均衡器的id[(包周期场景返回该字段) 不支持该字段,请勿使用](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt,hk_vdf,fcs,ctc,cmcc) :param loadbalancer_id: The loadbalancer_id of this UpdateLoadBalancerResponse. :type loadbalancer_id: str @@ -107,7 +107,7 @@ def loadbalancer_id(self, loadbalancer_id): def order_id(self): """Gets the order_id of this UpdateLoadBalancerResponse. - 订单号[(包周期规格变更场景返回该字段) 不支持该字段,请勿使用](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt,hk_vdf,fcs,ctc,cmcc) + 参数解释:订单号[(包周期规格变更场景返回该字段) 不支持该字段,请勿使用](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt,hk_vdf,fcs,ctc,cmcc) :return: The order_id of this UpdateLoadBalancerResponse. :rtype: str @@ -118,7 +118,7 @@ def order_id(self): def order_id(self, order_id): """Sets the order_id of this UpdateLoadBalancerResponse. - 订单号[(包周期规格变更场景返回该字段) 不支持该字段,请勿使用](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt,hk_vdf,fcs,ctc,cmcc) + 参数解释:订单号[(包周期规格变更场景返回该字段) 不支持该字段,请勿使用](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt,hk_vdf,fcs,ctc,cmcc) :param order_id: The order_id of this UpdateLoadBalancerResponse. :type order_id: str @@ -129,7 +129,7 @@ def order_id(self, order_id): def request_id(self): """Gets the request_id of this UpdateLoadBalancerResponse. - 请求ID。 注:自动生成 。 + 参数解释:请求ID。 注:自动生成 。 :return: The request_id of this UpdateLoadBalancerResponse. :rtype: str @@ -140,7 +140,7 @@ def request_id(self): def request_id(self, request_id): """Sets the request_id of this UpdateLoadBalancerResponse. - 请求ID。 注:自动生成 。 + 参数解释:请求ID。 注:自动生成 。 :param request_id: The request_id of this UpdateLoadBalancerResponse. :type request_id: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_loadbalancer_autoscaling_option.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_loadbalancer_autoscaling_option.py index 83a6e99b43..969241dc05 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_loadbalancer_autoscaling_option.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_loadbalancer_autoscaling_option.py @@ -31,9 +31,9 @@ def __init__(self, enable=None, min_l7_flavor_id=None): The model defined in huaweicloud sdk - :param enable: 当前负载均衡器是否开启弹性扩缩容。 取值: - true:开启。 - false:不开启。 + :param enable: 参数解释:当前负载均衡器是否开启弹性扩缩容。 取值范围: - true:开启。 - false:不开启。 :type enable: bool - :param min_l7_flavor_id: 弹性扩缩容的最小七层规格ID(规格类型L7_elastic),有七层监听器时,该字段不能为空。 该字段已经废弃,但仍然保留兼容性支持,建议不要使用该字段。如果传入该字段,创建的弹性实例将会有保底规格并产生对应保底规格的费用。 + :param min_l7_flavor_id: 参数解释:弹性扩缩容的最小七层规格ID(规格类型L7_elastic)。 约束限制:有七层监听器时,该字段不能为空。 该字段已经废弃,但仍然保留兼容性支持,建议不要使用该字段。如果传入该字段,创建的弹性实例将会有保底规格并产生对应保底规格的费用。 :type min_l7_flavor_id: str """ @@ -51,7 +51,7 @@ def __init__(self, enable=None, min_l7_flavor_id=None): def enable(self): """Gets the enable of this UpdateLoadbalancerAutoscalingOption. - 当前负载均衡器是否开启弹性扩缩容。 取值: - true:开启。 - false:不开启。 + 参数解释:当前负载均衡器是否开启弹性扩缩容。 取值范围: - true:开启。 - false:不开启。 :return: The enable of this UpdateLoadbalancerAutoscalingOption. :rtype: bool @@ -62,7 +62,7 @@ def enable(self): def enable(self, enable): """Sets the enable of this UpdateLoadbalancerAutoscalingOption. - 当前负载均衡器是否开启弹性扩缩容。 取值: - true:开启。 - false:不开启。 + 参数解释:当前负载均衡器是否开启弹性扩缩容。 取值范围: - true:开启。 - false:不开启。 :param enable: The enable of this UpdateLoadbalancerAutoscalingOption. :type enable: bool @@ -73,7 +73,7 @@ def enable(self, enable): def min_l7_flavor_id(self): """Gets the min_l7_flavor_id of this UpdateLoadbalancerAutoscalingOption. - 弹性扩缩容的最小七层规格ID(规格类型L7_elastic),有七层监听器时,该字段不能为空。 该字段已经废弃,但仍然保留兼容性支持,建议不要使用该字段。如果传入该字段,创建的弹性实例将会有保底规格并产生对应保底规格的费用。 + 参数解释:弹性扩缩容的最小七层规格ID(规格类型L7_elastic)。 约束限制:有七层监听器时,该字段不能为空。 该字段已经废弃,但仍然保留兼容性支持,建议不要使用该字段。如果传入该字段,创建的弹性实例将会有保底规格并产生对应保底规格的费用。 :return: The min_l7_flavor_id of this UpdateLoadbalancerAutoscalingOption. :rtype: str @@ -84,7 +84,7 @@ def min_l7_flavor_id(self): def min_l7_flavor_id(self, min_l7_flavor_id): """Sets the min_l7_flavor_id of this UpdateLoadbalancerAutoscalingOption. - 弹性扩缩容的最小七层规格ID(规格类型L7_elastic),有七层监听器时,该字段不能为空。 该字段已经废弃,但仍然保留兼容性支持,建议不要使用该字段。如果传入该字段,创建的弹性实例将会有保底规格并产生对应保底规格的费用。 + 参数解释:弹性扩缩容的最小七层规格ID(规格类型L7_elastic)。 约束限制:有七层监听器时,该字段不能为空。 该字段已经废弃,但仍然保留兼容性支持,建议不要使用该字段。如果传入该字段,创建的弹性实例将会有保底规格并产生对应保底规格的费用。 :param min_l7_flavor_id: The min_l7_flavor_id of this UpdateLoadbalancerAutoscalingOption. :type min_l7_flavor_id: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_member_option.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_member_option.py index ea580e8076..4a400a9cb5 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_member_option.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_member_option.py @@ -41,7 +41,7 @@ def __init__(self, admin_state_up=None, name=None, weight=None, protocol_port=No :type name: str :param weight: 后端云服务器的权重,请求将根据pool配置的负载均衡算法和后端云服务器的权重进行负载分发。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 取值:0-100,默认1。 使用说明:若所在pool的lb_algorithm取值为SOURCE_IP,该字段无效。 :type weight: int - :param protocol_port: 后端服务器端口。>在开启端口透传的pool下的member,该字段无法更新 + :param protocol_port: 后端服务器端口。 在开启端口透传的pool下的member,该字段无法更新。 [网关型LB,即pool协议为IP时,protocol_port必须设置为0。](tag:hws_eu) :type protocol_port: int """ @@ -132,7 +132,7 @@ def weight(self, weight): def protocol_port(self): """Gets the protocol_port of this UpdateMemberOption. - 后端服务器端口。>在开启端口透传的pool下的member,该字段无法更新 + 后端服务器端口。 在开启端口透传的pool下的member,该字段无法更新。 [网关型LB,即pool协议为IP时,protocol_port必须设置为0。](tag:hws_eu) :return: The protocol_port of this UpdateMemberOption. :rtype: int @@ -143,7 +143,7 @@ def protocol_port(self): def protocol_port(self, protocol_port): """Sets the protocol_port of this UpdateMemberOption. - 后端服务器端口。>在开启端口透传的pool下的member,该字段无法更新 + 后端服务器端口。 在开启端口透传的pool下的member,该字段无法更新。 [网关型LB,即pool协议为IP时,protocol_port必须设置为0。](tag:hws_eu) :param protocol_port: The protocol_port of this UpdateMemberOption. :type protocol_port: int diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_member_request.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_member_request.py index 7426a1bafa..53ce230ab2 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_member_request.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_member_request.py @@ -35,7 +35,7 @@ def __init__(self, member_id=None, pool_id=None, body=None): :param member_id: 后端服务器ID。 >说明: 此处并非ECS服务器的ID,而是ELB为绑定的后端服务器自动生成的member ID。 :type member_id: str - :param pool_id: 后端服务器组ID。 + :param pool_id: 参数解释:后端服务器组ID。 :type pool_id: str :param body: Body of the UpdateMemberRequest :type body: :class:`huaweicloudsdkelb.v3.UpdateMemberRequestBody` @@ -79,7 +79,7 @@ def member_id(self, member_id): def pool_id(self): """Gets the pool_id of this UpdateMemberRequest. - 后端服务器组ID。 + 参数解释:后端服务器组ID。 :return: The pool_id of this UpdateMemberRequest. :rtype: str @@ -90,7 +90,7 @@ def pool_id(self): def pool_id(self, pool_id): """Sets the pool_id of this UpdateMemberRequest. - 后端服务器组ID。 + 参数解释:后端服务器组ID。 :param pool_id: The pool_id of this UpdateMemberRequest. :type pool_id: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_pool_option.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_pool_option.py index c1333c44a4..a51501bf62 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_pool_option.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_pool_option.py @@ -59,7 +59,7 @@ def __init__(self, admin_state_up=None, description=None, lb_algorithm=None, nam :type admin_state_up: bool :param description: 后端云服务器组的描述信息。 :type description: str - :param lb_algorithm: 后端云服务器组的负载均衡算法。 取值: - ROUND_ROBIN:加权轮询算法。 - LEAST_CONNECTIONS:加权最少连接算法。 - SOURCE_IP:源IP算法。 - QUIC_CID:连接ID算法。 [- 2_TUPLE_HASH:二元组hash算法,仅IP类型的pool支持。 - 3_TUPLE_HASH:三元组hash算法,仅IP类型的pool支持。 - 4_TUPLE_HASH:五元组hash算法,仅IP类型的pool支持。](tag:hws_eu 使用说明: - 当该字段的取值为SOURCE_IP时,后端云服务器组绑定的后端云服务器的weight字段无效。 - 只有pool的protocol为QUIC时,才支持QUIC_CID算法。 [不支持QUIC_CID。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC_CID。](tag:dt,dt_test) + :param lb_algorithm: 后端云服务器组的负载均衡算法。 取值: - ROUND_ROBIN:加权轮询算法。 - LEAST_CONNECTIONS:加权最少连接算法。 - SOURCE_IP:源IP算法。 - QUIC_CID:连接ID算法。 [- 2_TUPLE_HASH:二元组hash算法,仅IP类型的pool支持。 - 3_TUPLE_HASH:三元组hash算法,仅IP类型的pool支持。 - 5_TUPLE_HASH:五元组hash算法,仅IP类型的pool支持。 - IP型pool不指定该字段时,默认设置为5_TUPLE_HASH。](tag:hws_eu) 使用说明: - 当该字段的取值为SOURCE_IP时,后端云服务器组绑定的后端云服务器的weight字段无效。 - 只有pool的protocol为QUIC时,才支持QUIC_CID算法。 [不支持QUIC_CID。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC_CID。](tag:dt,dt_test) :type lb_algorithm: str :param name: 后端云服务器组的名称。 :type name: str @@ -69,9 +69,9 @@ def __init__(self, admin_state_up=None, description=None, lb_algorithm=None, nam :type slow_start: :class:`huaweicloudsdkelb.v3.UpdatePoolSlowStartOption` :param member_deletion_protection_enable: 是否开启删除保护。 取值:false不开启,true开启。 > 退场时需要先关闭所有资源的删除保护开关。 [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test) :type member_deletion_protection_enable: bool - :param vpc_id: 后端云服务器组关联的虚拟私有云的ID。 只有vpc_id为空时允许更新。 + :param vpc_id: 后端云服务器组关联的虚拟私有云的ID。 [- pool的protocol为IP时,必须指定vpc_id,且与LB的vpc_id相同。](tag:hws_eu) 只有vpc_id为空时允许更新。 :type vpc_id: str - :param type: 后端服务器组的类型。 取值: - instance:允许任意类型的后端,type指定为该类型时,vpc_id是必选字段。 - ip:只能添加跨VPC后端,type指定为该类型时,vpc_id不允许指定。 - 空字符串(\"\"):允许任意类型的后端 使用说明: - 只有type为空时允许更新,不允许从非空更新为空。 + :param type: 后端服务器组的类型。 取值: - instance:允许任意类型的后端,type指定为该类型时,vpc_id是必选字段。 - ip:只能添加跨VPC后端,type指定为该类型时,vpc_id不允许指定。[pool的protocol为IP时,type不允许设置为ip。](tag:hws_eu)] - 空字符串(\"\"):允许任意类型的后端 使用说明: - 只有type为空时允许更新,不允许从非空更新为空。 :type type: str :param protection_status: 修改保护状态, 取值: - nonProtection: 不保护 - consoleProtection: 控制台修改保护 :type protection_status: str @@ -180,7 +180,7 @@ def description(self, description): def lb_algorithm(self): """Gets the lb_algorithm of this UpdatePoolOption. - 后端云服务器组的负载均衡算法。 取值: - ROUND_ROBIN:加权轮询算法。 - LEAST_CONNECTIONS:加权最少连接算法。 - SOURCE_IP:源IP算法。 - QUIC_CID:连接ID算法。 [- 2_TUPLE_HASH:二元组hash算法,仅IP类型的pool支持。 - 3_TUPLE_HASH:三元组hash算法,仅IP类型的pool支持。 - 4_TUPLE_HASH:五元组hash算法,仅IP类型的pool支持。](tag:hws_eu 使用说明: - 当该字段的取值为SOURCE_IP时,后端云服务器组绑定的后端云服务器的weight字段无效。 - 只有pool的protocol为QUIC时,才支持QUIC_CID算法。 [不支持QUIC_CID。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC_CID。](tag:dt,dt_test) + 后端云服务器组的负载均衡算法。 取值: - ROUND_ROBIN:加权轮询算法。 - LEAST_CONNECTIONS:加权最少连接算法。 - SOURCE_IP:源IP算法。 - QUIC_CID:连接ID算法。 [- 2_TUPLE_HASH:二元组hash算法,仅IP类型的pool支持。 - 3_TUPLE_HASH:三元组hash算法,仅IP类型的pool支持。 - 5_TUPLE_HASH:五元组hash算法,仅IP类型的pool支持。 - IP型pool不指定该字段时,默认设置为5_TUPLE_HASH。](tag:hws_eu) 使用说明: - 当该字段的取值为SOURCE_IP时,后端云服务器组绑定的后端云服务器的weight字段无效。 - 只有pool的protocol为QUIC时,才支持QUIC_CID算法。 [不支持QUIC_CID。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC_CID。](tag:dt,dt_test) :return: The lb_algorithm of this UpdatePoolOption. :rtype: str @@ -191,7 +191,7 @@ def lb_algorithm(self): def lb_algorithm(self, lb_algorithm): """Sets the lb_algorithm of this UpdatePoolOption. - 后端云服务器组的负载均衡算法。 取值: - ROUND_ROBIN:加权轮询算法。 - LEAST_CONNECTIONS:加权最少连接算法。 - SOURCE_IP:源IP算法。 - QUIC_CID:连接ID算法。 [- 2_TUPLE_HASH:二元组hash算法,仅IP类型的pool支持。 - 3_TUPLE_HASH:三元组hash算法,仅IP类型的pool支持。 - 4_TUPLE_HASH:五元组hash算法,仅IP类型的pool支持。](tag:hws_eu 使用说明: - 当该字段的取值为SOURCE_IP时,后端云服务器组绑定的后端云服务器的weight字段无效。 - 只有pool的protocol为QUIC时,才支持QUIC_CID算法。 [不支持QUIC_CID。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC_CID。](tag:dt,dt_test) + 后端云服务器组的负载均衡算法。 取值: - ROUND_ROBIN:加权轮询算法。 - LEAST_CONNECTIONS:加权最少连接算法。 - SOURCE_IP:源IP算法。 - QUIC_CID:连接ID算法。 [- 2_TUPLE_HASH:二元组hash算法,仅IP类型的pool支持。 - 3_TUPLE_HASH:三元组hash算法,仅IP类型的pool支持。 - 5_TUPLE_HASH:五元组hash算法,仅IP类型的pool支持。 - IP型pool不指定该字段时,默认设置为5_TUPLE_HASH。](tag:hws_eu) 使用说明: - 当该字段的取值为SOURCE_IP时,后端云服务器组绑定的后端云服务器的weight字段无效。 - 只有pool的protocol为QUIC时,才支持QUIC_CID算法。 [不支持QUIC_CID。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC_CID。](tag:dt,dt_test) :param lb_algorithm: The lb_algorithm of this UpdatePoolOption. :type lb_algorithm: str @@ -282,7 +282,7 @@ def member_deletion_protection_enable(self, member_deletion_protection_enable): def vpc_id(self): """Gets the vpc_id of this UpdatePoolOption. - 后端云服务器组关联的虚拟私有云的ID。 只有vpc_id为空时允许更新。 + 后端云服务器组关联的虚拟私有云的ID。 [- pool的protocol为IP时,必须指定vpc_id,且与LB的vpc_id相同。](tag:hws_eu) 只有vpc_id为空时允许更新。 :return: The vpc_id of this UpdatePoolOption. :rtype: str @@ -293,7 +293,7 @@ def vpc_id(self): def vpc_id(self, vpc_id): """Sets the vpc_id of this UpdatePoolOption. - 后端云服务器组关联的虚拟私有云的ID。 只有vpc_id为空时允许更新。 + 后端云服务器组关联的虚拟私有云的ID。 [- pool的protocol为IP时,必须指定vpc_id,且与LB的vpc_id相同。](tag:hws_eu) 只有vpc_id为空时允许更新。 :param vpc_id: The vpc_id of this UpdatePoolOption. :type vpc_id: str @@ -304,7 +304,7 @@ def vpc_id(self, vpc_id): def type(self): """Gets the type of this UpdatePoolOption. - 后端服务器组的类型。 取值: - instance:允许任意类型的后端,type指定为该类型时,vpc_id是必选字段。 - ip:只能添加跨VPC后端,type指定为该类型时,vpc_id不允许指定。 - 空字符串(\"\"):允许任意类型的后端 使用说明: - 只有type为空时允许更新,不允许从非空更新为空。 + 后端服务器组的类型。 取值: - instance:允许任意类型的后端,type指定为该类型时,vpc_id是必选字段。 - ip:只能添加跨VPC后端,type指定为该类型时,vpc_id不允许指定。[pool的protocol为IP时,type不允许设置为ip。](tag:hws_eu)] - 空字符串(\"\"):允许任意类型的后端 使用说明: - 只有type为空时允许更新,不允许从非空更新为空。 :return: The type of this UpdatePoolOption. :rtype: str @@ -315,7 +315,7 @@ def type(self): def type(self, type): """Sets the type of this UpdatePoolOption. - 后端服务器组的类型。 取值: - instance:允许任意类型的后端,type指定为该类型时,vpc_id是必选字段。 - ip:只能添加跨VPC后端,type指定为该类型时,vpc_id不允许指定。 - 空字符串(\"\"):允许任意类型的后端 使用说明: - 只有type为空时允许更新,不允许从非空更新为空。 + 后端服务器组的类型。 取值: - instance:允许任意类型的后端,type指定为该类型时,vpc_id是必选字段。 - ip:只能添加跨VPC后端,type指定为该类型时,vpc_id不允许指定。[pool的protocol为IP时,type不允许设置为ip。](tag:hws_eu)] - 空字符串(\"\"):允许任意类型的后端 使用说明: - 只有type为空时允许更新,不允许从非空更新为空。 :param type: The type of this UpdatePoolOption. :type type: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_pool_request.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_pool_request.py index 2649fc89e6..f535488cfb 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_pool_request.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_pool_request.py @@ -31,7 +31,7 @@ def __init__(self, pool_id=None, body=None): The model defined in huaweicloud sdk - :param pool_id: 后端服务器组ID。 + :param pool_id: 参数解释:后端服务器组ID。 :type pool_id: str :param body: Body of the UpdatePoolRequest :type body: :class:`huaweicloudsdkelb.v3.UpdatePoolRequestBody` @@ -51,7 +51,7 @@ def __init__(self, pool_id=None, body=None): def pool_id(self): """Gets the pool_id of this UpdatePoolRequest. - 后端服务器组ID。 + 参数解释:后端服务器组ID。 :return: The pool_id of this UpdatePoolRequest. :rtype: str @@ -62,7 +62,7 @@ def pool_id(self): def pool_id(self, pool_id): """Sets the pool_id of this UpdatePoolRequest. - 后端服务器组ID。 + 参数解释:后端服务器组ID。 :param pool_id: The pool_id of this UpdatePoolRequest. :type pool_id: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_pool_session_persistence_option.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_pool_session_persistence_option.py index 6621d79092..fe2b8d45ac 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_pool_session_persistence_option.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_pool_session_persistence_option.py @@ -33,7 +33,7 @@ def __init__(self, cookie_name=None, type=None, persistence_timeout=None): The model defined in huaweicloud sdk - :param cookie_name: cookie名称。 [共享型LB,支持字母、数字、中划线(-)和下划线(_),最大长度64个字符。 独享型LB,支持字母、数字、中划线(-)、下划线(_)和点号(.),最大长度255个字符。](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) [支持字母、数字、中划线(-)、下划线(_)和点号(.),最大长度255个字符。](tag:hws_eu,hcso_dt) 使用说明: - 只有当type为APP_COOKIE时才有效。其他情况下传该字段会报错。 [不支持该字段,请勿使用。](tag:hws_eu,hcso_dt) + :param cookie_name: cookie名称。 [共享型LB,支持字母、数字、中划线(-)和下划线(_),最大长度64个字符。 独享型LB,支持字母、数字、中划线(-)、下划线(_)和点号(.),最大长度255个字符。](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) [支持字母、数字、中划线(-)、下划线(_)和点号(.),最大长度255个字符。](tag:hws_eu,hcso_dt) 使用说明: - 只有当type为APP_COOKIE时才有效。其他情况下传该字段会报错。 [网关型LB,不支持该特性,请勿使用。](tag:hws_eu) [不支持该字段,请勿使用。](tag:hws_eu,hcso_dt) :type cookie_name: str :param type: 会话保持类型。 取值范围:SOURCE_IP、HTTP_COOKIE、APP_COOKIE。 [使用说明: - 当pool的protocol为TCP、UDP,无论type取值如何,都会被忽略,会话保持只按SOURCE_IP生效。 - 当pool的protocol为HTTP、HTTPS时。type可以为HTTP_COOKIE和APP_COOKIE,其他取值会话保持失效。 - 若pool的protocol为QUIC,则必须开启session_persistence且type为SOURCE_IP。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [使用说明: - 当pool的protocol为TCP、UDP,无论type取值如何,都会被忽略,会话保持只按SOURCE_IP生效。 - 当pool的protocol为HTTP、HTTPS时。type只能为HTTP_COOKIE, 其他取值会话保持失效。](tag:hws_eu,hcso_dt) [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test) :type type: str @@ -59,7 +59,7 @@ def __init__(self, cookie_name=None, type=None, persistence_timeout=None): def cookie_name(self): """Gets the cookie_name of this UpdatePoolSessionPersistenceOption. - cookie名称。 [共享型LB,支持字母、数字、中划线(-)和下划线(_),最大长度64个字符。 独享型LB,支持字母、数字、中划线(-)、下划线(_)和点号(.),最大长度255个字符。](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) [支持字母、数字、中划线(-)、下划线(_)和点号(.),最大长度255个字符。](tag:hws_eu,hcso_dt) 使用说明: - 只有当type为APP_COOKIE时才有效。其他情况下传该字段会报错。 [不支持该字段,请勿使用。](tag:hws_eu,hcso_dt) + cookie名称。 [共享型LB,支持字母、数字、中划线(-)和下划线(_),最大长度64个字符。 独享型LB,支持字母、数字、中划线(-)、下划线(_)和点号(.),最大长度255个字符。](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) [支持字母、数字、中划线(-)、下划线(_)和点号(.),最大长度255个字符。](tag:hws_eu,hcso_dt) 使用说明: - 只有当type为APP_COOKIE时才有效。其他情况下传该字段会报错。 [网关型LB,不支持该特性,请勿使用。](tag:hws_eu) [不支持该字段,请勿使用。](tag:hws_eu,hcso_dt) :return: The cookie_name of this UpdatePoolSessionPersistenceOption. :rtype: str @@ -70,7 +70,7 @@ def cookie_name(self): def cookie_name(self, cookie_name): """Sets the cookie_name of this UpdatePoolSessionPersistenceOption. - cookie名称。 [共享型LB,支持字母、数字、中划线(-)和下划线(_),最大长度64个字符。 独享型LB,支持字母、数字、中划线(-)、下划线(_)和点号(.),最大长度255个字符。](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) [支持字母、数字、中划线(-)、下划线(_)和点号(.),最大长度255个字符。](tag:hws_eu,hcso_dt) 使用说明: - 只有当type为APP_COOKIE时才有效。其他情况下传该字段会报错。 [不支持该字段,请勿使用。](tag:hws_eu,hcso_dt) + cookie名称。 [共享型LB,支持字母、数字、中划线(-)和下划线(_),最大长度64个字符。 独享型LB,支持字母、数字、中划线(-)、下划线(_)和点号(.),最大长度255个字符。](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) [支持字母、数字、中划线(-)、下划线(_)和点号(.),最大长度255个字符。](tag:hws_eu,hcso_dt) 使用说明: - 只有当type为APP_COOKIE时才有效。其他情况下传该字段会报错。 [网关型LB,不支持该特性,请勿使用。](tag:hws_eu) [不支持该字段,请勿使用。](tag:hws_eu,hcso_dt) :param cookie_name: The cookie_name of this UpdatePoolSessionPersistenceOption. :type cookie_name: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_redirect_pools_config.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_redirect_pools_config.py index 61a409e501..49c605bed2 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_redirect_pools_config.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_redirect_pools_config.py @@ -31,9 +31,9 @@ def __init__(self, pool_id=None, weight=None): The model defined in huaweicloud sdk - :param pool_id: 所在后端服务器组ID。 + :param pool_id: 参数解释:所在后端服务器组ID。 :type pool_id: str - :param weight: 转发策略主机组的权重,取值范围为[1,100],默认为1。请求将根据该权重进行负载分发到不同的主机组。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 + :param weight: 参数解释:转发策略主机组的权重。请求将根据该权重进行负载分发到不同的主机组。权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 取值范围:0-100 :type weight: str """ @@ -51,7 +51,7 @@ def __init__(self, pool_id=None, weight=None): def pool_id(self): """Gets the pool_id of this UpdateRedirectPoolsConfig. - 所在后端服务器组ID。 + 参数解释:所在后端服务器组ID。 :return: The pool_id of this UpdateRedirectPoolsConfig. :rtype: str @@ -62,7 +62,7 @@ def pool_id(self): def pool_id(self, pool_id): """Sets the pool_id of this UpdateRedirectPoolsConfig. - 所在后端服务器组ID。 + 参数解释:所在后端服务器组ID。 :param pool_id: The pool_id of this UpdateRedirectPoolsConfig. :type pool_id: str @@ -73,7 +73,7 @@ def pool_id(self, pool_id): def weight(self): """Gets the weight of this UpdateRedirectPoolsConfig. - 转发策略主机组的权重,取值范围为[1,100],默认为1。请求将根据该权重进行负载分发到不同的主机组。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 + 参数解释:转发策略主机组的权重。请求将根据该权重进行负载分发到不同的主机组。权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 取值范围:0-100 :return: The weight of this UpdateRedirectPoolsConfig. :rtype: str @@ -84,7 +84,7 @@ def weight(self): def weight(self, weight): """Sets the weight of this UpdateRedirectPoolsConfig. - 转发策略主机组的权重,取值范围为[1,100],默认为1。请求将根据该权重进行负载分发到不同的主机组。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 + 参数解释:转发策略主机组的权重。请求将根据该权重进行负载分发到不同的主机组。权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 取值范围:0-100 :param weight: The weight of this UpdateRedirectPoolsConfig. :type weight: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_redirect_pools_extend_config.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_redirect_pools_extend_config.py index e4033aa665..0ddaef5887 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_redirect_pools_extend_config.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_redirect_pools_extend_config.py @@ -37,7 +37,7 @@ def __init__(self, rewrite_url_enable=None, rewrite_url_config=None, insert_head The model defined in huaweicloud sdk - :param rewrite_url_enable: 是否开启url重定向 + :param rewrite_url_enable: 参数解释:是否开启url重定向 :type rewrite_url_enable: bool :param rewrite_url_config: :type rewrite_url_config: :class:`huaweicloudsdkelb.v3.UpdateRewriteUrlConfig` @@ -73,7 +73,7 @@ def __init__(self, rewrite_url_enable=None, rewrite_url_config=None, insert_head def rewrite_url_enable(self): """Gets the rewrite_url_enable of this UpdateRedirectPoolsExtendConfig. - 是否开启url重定向 + 参数解释:是否开启url重定向 :return: The rewrite_url_enable of this UpdateRedirectPoolsExtendConfig. :rtype: bool @@ -84,7 +84,7 @@ def rewrite_url_enable(self): def rewrite_url_enable(self, rewrite_url_enable): """Sets the rewrite_url_enable of this UpdateRedirectPoolsExtendConfig. - 是否开启url重定向 + 参数解释:是否开启url重定向 :param rewrite_url_enable: The rewrite_url_enable of this UpdateRedirectPoolsExtendConfig. :type rewrite_url_enable: bool diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_redirect_pools_sticky_session_config.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_redirect_pools_sticky_session_config.py index aec5cc5c04..e6ec106522 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_redirect_pools_sticky_session_config.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_redirect_pools_sticky_session_config.py @@ -31,9 +31,9 @@ def __init__(self, enable=None, timeout=None): The model defined in huaweicloud sdk - :param enable: 转发策略主机组会话保持开启的开关。 默认值为false,表示关闭主机组会话保持。 + :param enable: 参数解释:转发策略主机组会话保持开启的开关。 默认取值:false,表示关闭主机组会话保持。 :type enable: bool - :param timeout: 会话保持的时间。 适用范围:范围为[1,1440](分钟),默认值1440。 [荷兰region不支持QUIC。](tag:dt,dt_test) + :param timeout: 参数解释:会话保持的时间。 取值范围:1-1440(分钟) 默认取值:1440 [荷兰region不支持QUIC。](tag:dt,dt_test) :type timeout: int """ @@ -52,7 +52,7 @@ def __init__(self, enable=None, timeout=None): def enable(self): """Gets the enable of this UpdateRedirectPoolsStickySessionConfig. - 转发策略主机组会话保持开启的开关。 默认值为false,表示关闭主机组会话保持。 + 参数解释:转发策略主机组会话保持开启的开关。 默认取值:false,表示关闭主机组会话保持。 :return: The enable of this UpdateRedirectPoolsStickySessionConfig. :rtype: bool @@ -63,7 +63,7 @@ def enable(self): def enable(self, enable): """Sets the enable of this UpdateRedirectPoolsStickySessionConfig. - 转发策略主机组会话保持开启的开关。 默认值为false,表示关闭主机组会话保持。 + 参数解释:转发策略主机组会话保持开启的开关。 默认取值:false,表示关闭主机组会话保持。 :param enable: The enable of this UpdateRedirectPoolsStickySessionConfig. :type enable: bool @@ -74,7 +74,7 @@ def enable(self, enable): def timeout(self): """Gets the timeout of this UpdateRedirectPoolsStickySessionConfig. - 会话保持的时间。 适用范围:范围为[1,1440](分钟),默认值1440。 [荷兰region不支持QUIC。](tag:dt,dt_test) + 参数解释:会话保持的时间。 取值范围:1-1440(分钟) 默认取值:1440 [荷兰region不支持QUIC。](tag:dt,dt_test) :return: The timeout of this UpdateRedirectPoolsStickySessionConfig. :rtype: int @@ -85,7 +85,7 @@ def timeout(self): def timeout(self, timeout): """Sets the timeout of this UpdateRedirectPoolsStickySessionConfig. - 会话保持的时间。 适用范围:范围为[1,1440](分钟),默认值1440。 [荷兰region不支持QUIC。](tag:dt,dt_test) + 参数解释:会话保持的时间。 取值范围:1-1440(分钟) 默认取值:1440 [荷兰region不支持QUIC。](tag:dt,dt_test) :param timeout: The timeout of this UpdateRedirectPoolsStickySessionConfig. :type timeout: int diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_redirect_url_config.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_redirect_url_config.py index 92dc79f6e4..8a093b2be7 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_redirect_url_config.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_redirect_url_config.py @@ -43,17 +43,17 @@ def __init__(self, protocol=None, host=None, port=None, path=None, query=None, s The model defined in huaweicloud sdk - :param protocol: 重定向的协议。默认值${protocol}表示继承原值(即与被转发请求保持一致)。 取值范围: - HTTP - HTTPS - ${protocol} + :param protocol: 参数解释:重定向的协议。 取值范围: - HTTP - HTTPS - ${protocol},表示继承原值(即与被转发请求保持一致)。 :type protocol: str - :param host: 重定向的主机名。字符串只能包含英文字母、数字、“-”、“.”,必须以字母、数字开头。 默认值${host}表示继承原值(即与被转发请求保持一致)。 + :param host: 参数解释:重定向的主机名。 取值范围:字符串只能包含英文字母、数字、“-”、“.”,必须以字母、数字开头。 默认取值:${host},表示继承原值(即与被转发请求保持一致)。 :type host: str - :param port: 重定向到的端口。默认值${port}表示继承原值(即与被转发请求保持一致)。 + :param port: 参数解释:重定向到的端口。 默认取值:${port}表示继承原值(即与被转发请求保持一致)。 :type port: str - :param path: 重定向的路径。默认值${path}表示继承原值(即与被转发请求保持一致)。 只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以\"/\"开头 + :param path: 参数解释:重定向的路径。 取值范围:只能包含英文字母、数字、_~';@^-%#&$.\\*+?,=!:|\\/()\\[\\]{},且必须以\"/\"开头。 默认取值:${path},表示继承原值(即与被转发请求保持一致)。 :type path: str - :param query: 重定向的查询字符串。默认${query}表示继承原值(即与被转发请求保持一致)。举例如下: 若该字段被设置为:${query}&name=my_name,则在转发符合条件的URL (如https://www.example.com:8080/elb?type=loadbalancer, 此时${query}表示type=loadbalancer)时,将会重定向到 https://www.example.com:8080/elb?type=loadbalancer&name=my_name。其中$1,$2会匹配请求url通配符星号(*)。 只能包含英文字母、数字和特殊字符:!$&'()*+,-./:;=?@^_`。字母区分大小写。 + :param query: 参数解释:重定向的查询字符串。举例如下: 将query设置为:${query}&name=my_name,则在转发符合条件的URL (如https://www.example.com:8080/elb?type=loadbalancer)时,将会重定向到 https://www.example.com:8080/elb?type=loadbalancer&name=my_name。在例子中${query}表示type=loadbalancer。 取值范围:只能包含英文字母、数字和特殊字符:!$&'()\\*+,-./:;=?@^_`。字母区分大小写。其中$1,$2会匹配请求url通配符星号(\\*) 默认取值:${query}表示继承原值(即与被转发请求保持一致) :type query: str - :param status_code: 重定向后的返回码。 取值范围: - 301 - 302 - 303 - 307 - 308 + :param status_code: 参数解释:重定向后的返回码。 取值范围: - 301 - 302 - 303 - 307 - 308 :type status_code: str :param insert_headers_config: :type insert_headers_config: :class:`huaweicloudsdkelb.v3.UpdateInsertHeadersConfig` @@ -94,7 +94,7 @@ def __init__(self, protocol=None, host=None, port=None, path=None, query=None, s def protocol(self): """Gets the protocol of this UpdateRedirectUrlConfig. - 重定向的协议。默认值${protocol}表示继承原值(即与被转发请求保持一致)。 取值范围: - HTTP - HTTPS - ${protocol} + 参数解释:重定向的协议。 取值范围: - HTTP - HTTPS - ${protocol},表示继承原值(即与被转发请求保持一致)。 :return: The protocol of this UpdateRedirectUrlConfig. :rtype: str @@ -105,7 +105,7 @@ def protocol(self): def protocol(self, protocol): """Sets the protocol of this UpdateRedirectUrlConfig. - 重定向的协议。默认值${protocol}表示继承原值(即与被转发请求保持一致)。 取值范围: - HTTP - HTTPS - ${protocol} + 参数解释:重定向的协议。 取值范围: - HTTP - HTTPS - ${protocol},表示继承原值(即与被转发请求保持一致)。 :param protocol: The protocol of this UpdateRedirectUrlConfig. :type protocol: str @@ -116,7 +116,7 @@ def protocol(self, protocol): def host(self): """Gets the host of this UpdateRedirectUrlConfig. - 重定向的主机名。字符串只能包含英文字母、数字、“-”、“.”,必须以字母、数字开头。 默认值${host}表示继承原值(即与被转发请求保持一致)。 + 参数解释:重定向的主机名。 取值范围:字符串只能包含英文字母、数字、“-”、“.”,必须以字母、数字开头。 默认取值:${host},表示继承原值(即与被转发请求保持一致)。 :return: The host of this UpdateRedirectUrlConfig. :rtype: str @@ -127,7 +127,7 @@ def host(self): def host(self, host): """Sets the host of this UpdateRedirectUrlConfig. - 重定向的主机名。字符串只能包含英文字母、数字、“-”、“.”,必须以字母、数字开头。 默认值${host}表示继承原值(即与被转发请求保持一致)。 + 参数解释:重定向的主机名。 取值范围:字符串只能包含英文字母、数字、“-”、“.”,必须以字母、数字开头。 默认取值:${host},表示继承原值(即与被转发请求保持一致)。 :param host: The host of this UpdateRedirectUrlConfig. :type host: str @@ -138,7 +138,7 @@ def host(self, host): def port(self): """Gets the port of this UpdateRedirectUrlConfig. - 重定向到的端口。默认值${port}表示继承原值(即与被转发请求保持一致)。 + 参数解释:重定向到的端口。 默认取值:${port}表示继承原值(即与被转发请求保持一致)。 :return: The port of this UpdateRedirectUrlConfig. :rtype: str @@ -149,7 +149,7 @@ def port(self): def port(self, port): """Sets the port of this UpdateRedirectUrlConfig. - 重定向到的端口。默认值${port}表示继承原值(即与被转发请求保持一致)。 + 参数解释:重定向到的端口。 默认取值:${port}表示继承原值(即与被转发请求保持一致)。 :param port: The port of this UpdateRedirectUrlConfig. :type port: str @@ -160,7 +160,7 @@ def port(self, port): def path(self): """Gets the path of this UpdateRedirectUrlConfig. - 重定向的路径。默认值${path}表示继承原值(即与被转发请求保持一致)。 只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以\"/\"开头 + 参数解释:重定向的路径。 取值范围:只能包含英文字母、数字、_~';@^-%#&$.\\*+?,=!:|\\/()\\[\\]{},且必须以\"/\"开头。 默认取值:${path},表示继承原值(即与被转发请求保持一致)。 :return: The path of this UpdateRedirectUrlConfig. :rtype: str @@ -171,7 +171,7 @@ def path(self): def path(self, path): """Sets the path of this UpdateRedirectUrlConfig. - 重定向的路径。默认值${path}表示继承原值(即与被转发请求保持一致)。 只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以\"/\"开头 + 参数解释:重定向的路径。 取值范围:只能包含英文字母、数字、_~';@^-%#&$.\\*+?,=!:|\\/()\\[\\]{},且必须以\"/\"开头。 默认取值:${path},表示继承原值(即与被转发请求保持一致)。 :param path: The path of this UpdateRedirectUrlConfig. :type path: str @@ -182,7 +182,7 @@ def path(self, path): def query(self): """Gets the query of this UpdateRedirectUrlConfig. - 重定向的查询字符串。默认${query}表示继承原值(即与被转发请求保持一致)。举例如下: 若该字段被设置为:${query}&name=my_name,则在转发符合条件的URL (如https://www.example.com:8080/elb?type=loadbalancer, 此时${query}表示type=loadbalancer)时,将会重定向到 https://www.example.com:8080/elb?type=loadbalancer&name=my_name。其中$1,$2会匹配请求url通配符星号(*)。 只能包含英文字母、数字和特殊字符:!$&'()*+,-./:;=?@^_`。字母区分大小写。 + 参数解释:重定向的查询字符串。举例如下: 将query设置为:${query}&name=my_name,则在转发符合条件的URL (如https://www.example.com:8080/elb?type=loadbalancer)时,将会重定向到 https://www.example.com:8080/elb?type=loadbalancer&name=my_name。在例子中${query}表示type=loadbalancer。 取值范围:只能包含英文字母、数字和特殊字符:!$&'()\\*+,-./:;=?@^_`。字母区分大小写。其中$1,$2会匹配请求url通配符星号(\\*) 默认取值:${query}表示继承原值(即与被转发请求保持一致) :return: The query of this UpdateRedirectUrlConfig. :rtype: str @@ -193,7 +193,7 @@ def query(self): def query(self, query): """Sets the query of this UpdateRedirectUrlConfig. - 重定向的查询字符串。默认${query}表示继承原值(即与被转发请求保持一致)。举例如下: 若该字段被设置为:${query}&name=my_name,则在转发符合条件的URL (如https://www.example.com:8080/elb?type=loadbalancer, 此时${query}表示type=loadbalancer)时,将会重定向到 https://www.example.com:8080/elb?type=loadbalancer&name=my_name。其中$1,$2会匹配请求url通配符星号(*)。 只能包含英文字母、数字和特殊字符:!$&'()*+,-./:;=?@^_`。字母区分大小写。 + 参数解释:重定向的查询字符串。举例如下: 将query设置为:${query}&name=my_name,则在转发符合条件的URL (如https://www.example.com:8080/elb?type=loadbalancer)时,将会重定向到 https://www.example.com:8080/elb?type=loadbalancer&name=my_name。在例子中${query}表示type=loadbalancer。 取值范围:只能包含英文字母、数字和特殊字符:!$&'()\\*+,-./:;=?@^_`。字母区分大小写。其中$1,$2会匹配请求url通配符星号(\\*) 默认取值:${query}表示继承原值(即与被转发请求保持一致) :param query: The query of this UpdateRedirectUrlConfig. :type query: str @@ -204,7 +204,7 @@ def query(self, query): def status_code(self): """Gets the status_code of this UpdateRedirectUrlConfig. - 重定向后的返回码。 取值范围: - 301 - 302 - 303 - 307 - 308 + 参数解释:重定向后的返回码。 取值范围: - 301 - 302 - 303 - 307 - 308 :return: The status_code of this UpdateRedirectUrlConfig. :rtype: str @@ -215,7 +215,7 @@ def status_code(self): def status_code(self, status_code): """Sets the status_code of this UpdateRedirectUrlConfig. - 重定向后的返回码。 取值范围: - 301 - 302 - 303 - 307 - 308 + 参数解释:重定向后的返回码。 取值范围: - 301 - 302 - 303 - 307 - 308 :param status_code: The status_code of this UpdateRedirectUrlConfig. :type status_code: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_remove_header_config.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_remove_header_config.py index 8954140c80..ffcb980c23 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_remove_header_config.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_remove_header_config.py @@ -29,7 +29,7 @@ def __init__(self, key=None): The model defined in huaweicloud sdk - :param key: 被移除的请求头的参数名。取值范围: 1-40个字符(不区分大小写)。 支持字母a-z,数字,短划线-和下划线_。 不能移除以下请求头参数: connection、upgrade、content-length、transfer-encoding、keep-alive、te、host、cookie、remoteip、authority、x-forwarded-host、x-forwarded-for、x-forwarded-for-port、x-forwarded-tls-certificate-id、x-forwarded-tls-protocol、x-forwarded-tls-cipher、x-forwarded-elb-ip、x-forwarded-port、x-forwarded-elb-id、x-forwarded-elb-vip、x-real-ip、x-forwarded-proto、x-nuwa-trace-ne-in、x-nuwa-trace-ne-out + :param key: 参数解释:被移除的请求头的参数名。 约束限制:不能移除以下请求头参数: connection、upgrade、content-length、transfer-encoding、keep-alive、te、host、cookie、remoteip、authority、x-forwarded-host、x-forwarded-for、x-forwarded-for-port、x-forwarded-tls-certificate-id、x-forwarded-tls-protocol、x-forwarded-tls-cipher、x-forwarded-elb-ip、x-forwarded-port、x-forwarded-elb-id、x-forwarded-elb-vip、x-real-ip、x-forwarded-proto、x-nuwa-trace-ne-in、x-nuwa-trace-ne-out 取值范围:1-40个字符,字母a-z(不区分大小写)、数字,短划线-和下划线_。 :type key: str """ @@ -44,7 +44,7 @@ def __init__(self, key=None): def key(self): """Gets the key of this UpdateRemoveHeaderConfig. - 被移除的请求头的参数名。取值范围: 1-40个字符(不区分大小写)。 支持字母a-z,数字,短划线-和下划线_。 不能移除以下请求头参数: connection、upgrade、content-length、transfer-encoding、keep-alive、te、host、cookie、remoteip、authority、x-forwarded-host、x-forwarded-for、x-forwarded-for-port、x-forwarded-tls-certificate-id、x-forwarded-tls-protocol、x-forwarded-tls-cipher、x-forwarded-elb-ip、x-forwarded-port、x-forwarded-elb-id、x-forwarded-elb-vip、x-real-ip、x-forwarded-proto、x-nuwa-trace-ne-in、x-nuwa-trace-ne-out + 参数解释:被移除的请求头的参数名。 约束限制:不能移除以下请求头参数: connection、upgrade、content-length、transfer-encoding、keep-alive、te、host、cookie、remoteip、authority、x-forwarded-host、x-forwarded-for、x-forwarded-for-port、x-forwarded-tls-certificate-id、x-forwarded-tls-protocol、x-forwarded-tls-cipher、x-forwarded-elb-ip、x-forwarded-port、x-forwarded-elb-id、x-forwarded-elb-vip、x-real-ip、x-forwarded-proto、x-nuwa-trace-ne-in、x-nuwa-trace-ne-out 取值范围:1-40个字符,字母a-z(不区分大小写)、数字,短划线-和下划线_。 :return: The key of this UpdateRemoveHeaderConfig. :rtype: str @@ -55,7 +55,7 @@ def key(self): def key(self, key): """Sets the key of this UpdateRemoveHeaderConfig. - 被移除的请求头的参数名。取值范围: 1-40个字符(不区分大小写)。 支持字母a-z,数字,短划线-和下划线_。 不能移除以下请求头参数: connection、upgrade、content-length、transfer-encoding、keep-alive、te、host、cookie、remoteip、authority、x-forwarded-host、x-forwarded-for、x-forwarded-for-port、x-forwarded-tls-certificate-id、x-forwarded-tls-protocol、x-forwarded-tls-cipher、x-forwarded-elb-ip、x-forwarded-port、x-forwarded-elb-id、x-forwarded-elb-vip、x-real-ip、x-forwarded-proto、x-nuwa-trace-ne-in、x-nuwa-trace-ne-out + 参数解释:被移除的请求头的参数名。 约束限制:不能移除以下请求头参数: connection、upgrade、content-length、transfer-encoding、keep-alive、te、host、cookie、remoteip、authority、x-forwarded-host、x-forwarded-for、x-forwarded-for-port、x-forwarded-tls-certificate-id、x-forwarded-tls-protocol、x-forwarded-tls-cipher、x-forwarded-elb-ip、x-forwarded-port、x-forwarded-elb-id、x-forwarded-elb-vip、x-real-ip、x-forwarded-proto、x-nuwa-trace-ne-in、x-nuwa-trace-ne-out 取值范围:1-40个字符,字母a-z(不区分大小写)、数字,短划线-和下划线_。 :param key: The key of this UpdateRemoveHeaderConfig. :type key: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_remove_headers_config.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_remove_headers_config.py index 7a09f239e4..4c7d7ac4d2 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_remove_headers_config.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_remove_headers_config.py @@ -29,7 +29,7 @@ def __init__(self, configs=None): The model defined in huaweicloud sdk - :param configs: 要移除的请求头参数列表。 + :param configs: 参数解释:要移除的请求头参数列表。 :type configs: list[:class:`huaweicloudsdkelb.v3.UpdateRemoveHeaderConfig`] """ @@ -44,7 +44,7 @@ def __init__(self, configs=None): def configs(self): """Gets the configs of this UpdateRemoveHeadersConfig. - 要移除的请求头参数列表。 + 参数解释:要移除的请求头参数列表。 :return: The configs of this UpdateRemoveHeadersConfig. :rtype: list[:class:`huaweicloudsdkelb.v3.UpdateRemoveHeaderConfig`] @@ -55,7 +55,7 @@ def configs(self): def configs(self, configs): """Sets the configs of this UpdateRemoveHeadersConfig. - 要移除的请求头参数列表。 + 参数解释:要移除的请求头参数列表。 :param configs: The configs of this UpdateRemoveHeadersConfig. :type configs: list[:class:`huaweicloudsdkelb.v3.UpdateRemoveHeaderConfig`] diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_rewrite_url_config.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_rewrite_url_config.py index a6fca59296..3797e696c1 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_rewrite_url_config.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_rewrite_url_config.py @@ -33,11 +33,11 @@ def __init__(self, host=None, path=None, query=None): The model defined in huaweicloud sdk - :param host: 重定向的域名。取值只能包含英文字母、数字、“-”、“.”,必须以字母、数字开头。 默认值${host},表示继承原值(即与被重写请求host保持一致)。 + :param host: 参数解释:重定向的域名。 取值范围:英文字母、数字、“-”、“.”,必须以字母、数字开头。 :type host: str - :param path: 重定向的请求路径。 取值只能包含英文字母、数字、_~';@^-%#&$.+?,=!:|/(),且必须以\"/\"开头。其中$1-$9会匹配请求url通配符星号(),当正则匹配分组小于指定数字,则$指定数字结果为空。$后面跟字母,匹配结果均为空,直到下一个特殊字符出现,例如$abc#123,则匹配结果为#123;$后面跟特殊字符则直接输出特殊字符,例如$#匹配结果为$#。 默认值${path}表示继承原值(即与被重写请求保持一致)。 + :param path: 参数解释:重定向的请求路径。其中$1-$9会匹配请求url通配符星号(*),当正则匹配分组小于指定数字,则$指定数字结果为空。$后面跟字母,匹配结果均为空,直到下一个特殊字符出现,例如$abc#123,则匹配结果为#123;$后面跟特殊字符则直接输出特殊字符,例如$#匹配结果为$#。 取值范围:英文字母、数字、_~';@^-%#&$.+?,=!:|/(),且必须以\"/\"开头。 :type path: str - :param query: 重定向的查询字符串。取值只能包含英文字母、数字和特殊字符:!$&'()+,-./:;=?@^_`。字母区分大小写。其中$1-$9会匹配请求url通配符星号(),当正则匹配分组小于指定数字,则$指定数字结果为空。$后面跟字母,匹配结果均为空,直到下一个特殊字符出现,例如$abc#123,则匹配结果为#123;$后面跟特殊字符则直接输出特殊字符,例如$#匹配结果为$#。 默认${query},表示继承原值(即与被重写请求保持一致)。 + :param query: 参数解释:重定向的查询字符串。其中$1-$9会匹配请求url通配符星号(*),当正则匹配分组小于指定数字,则$指定数字结果为空。$后面跟字母,匹配结果均为空,直到下一个特殊字符出现,例如$abc#123,则匹配结果为#123;$后面跟特殊字符则直接输出特殊字符,例如$#匹配结果为$#。 取值范围:英文字母、数字和特殊字符:!$&'()+,-./:;=?@^_`。字母区分大小写。 :type query: str """ @@ -59,7 +59,7 @@ def __init__(self, host=None, path=None, query=None): def host(self): """Gets the host of this UpdateRewriteUrlConfig. - 重定向的域名。取值只能包含英文字母、数字、“-”、“.”,必须以字母、数字开头。 默认值${host},表示继承原值(即与被重写请求host保持一致)。 + 参数解释:重定向的域名。 取值范围:英文字母、数字、“-”、“.”,必须以字母、数字开头。 :return: The host of this UpdateRewriteUrlConfig. :rtype: str @@ -70,7 +70,7 @@ def host(self): def host(self, host): """Sets the host of this UpdateRewriteUrlConfig. - 重定向的域名。取值只能包含英文字母、数字、“-”、“.”,必须以字母、数字开头。 默认值${host},表示继承原值(即与被重写请求host保持一致)。 + 参数解释:重定向的域名。 取值范围:英文字母、数字、“-”、“.”,必须以字母、数字开头。 :param host: The host of this UpdateRewriteUrlConfig. :type host: str @@ -81,7 +81,7 @@ def host(self, host): def path(self): """Gets the path of this UpdateRewriteUrlConfig. - 重定向的请求路径。 取值只能包含英文字母、数字、_~';@^-%#&$.+?,=!:|/(),且必须以\"/\"开头。其中$1-$9会匹配请求url通配符星号(),当正则匹配分组小于指定数字,则$指定数字结果为空。$后面跟字母,匹配结果均为空,直到下一个特殊字符出现,例如$abc#123,则匹配结果为#123;$后面跟特殊字符则直接输出特殊字符,例如$#匹配结果为$#。 默认值${path}表示继承原值(即与被重写请求保持一致)。 + 参数解释:重定向的请求路径。其中$1-$9会匹配请求url通配符星号(*),当正则匹配分组小于指定数字,则$指定数字结果为空。$后面跟字母,匹配结果均为空,直到下一个特殊字符出现,例如$abc#123,则匹配结果为#123;$后面跟特殊字符则直接输出特殊字符,例如$#匹配结果为$#。 取值范围:英文字母、数字、_~';@^-%#&$.+?,=!:|/(),且必须以\"/\"开头。 :return: The path of this UpdateRewriteUrlConfig. :rtype: str @@ -92,7 +92,7 @@ def path(self): def path(self, path): """Sets the path of this UpdateRewriteUrlConfig. - 重定向的请求路径。 取值只能包含英文字母、数字、_~';@^-%#&$.+?,=!:|/(),且必须以\"/\"开头。其中$1-$9会匹配请求url通配符星号(),当正则匹配分组小于指定数字,则$指定数字结果为空。$后面跟字母,匹配结果均为空,直到下一个特殊字符出现,例如$abc#123,则匹配结果为#123;$后面跟特殊字符则直接输出特殊字符,例如$#匹配结果为$#。 默认值${path}表示继承原值(即与被重写请求保持一致)。 + 参数解释:重定向的请求路径。其中$1-$9会匹配请求url通配符星号(*),当正则匹配分组小于指定数字,则$指定数字结果为空。$后面跟字母,匹配结果均为空,直到下一个特殊字符出现,例如$abc#123,则匹配结果为#123;$后面跟特殊字符则直接输出特殊字符,例如$#匹配结果为$#。 取值范围:英文字母、数字、_~';@^-%#&$.+?,=!:|/(),且必须以\"/\"开头。 :param path: The path of this UpdateRewriteUrlConfig. :type path: str @@ -103,7 +103,7 @@ def path(self, path): def query(self): """Gets the query of this UpdateRewriteUrlConfig. - 重定向的查询字符串。取值只能包含英文字母、数字和特殊字符:!$&'()+,-./:;=?@^_`。字母区分大小写。其中$1-$9会匹配请求url通配符星号(),当正则匹配分组小于指定数字,则$指定数字结果为空。$后面跟字母,匹配结果均为空,直到下一个特殊字符出现,例如$abc#123,则匹配结果为#123;$后面跟特殊字符则直接输出特殊字符,例如$#匹配结果为$#。 默认${query},表示继承原值(即与被重写请求保持一致)。 + 参数解释:重定向的查询字符串。其中$1-$9会匹配请求url通配符星号(*),当正则匹配分组小于指定数字,则$指定数字结果为空。$后面跟字母,匹配结果均为空,直到下一个特殊字符出现,例如$abc#123,则匹配结果为#123;$后面跟特殊字符则直接输出特殊字符,例如$#匹配结果为$#。 取值范围:英文字母、数字和特殊字符:!$&'()+,-./:;=?@^_`。字母区分大小写。 :return: The query of this UpdateRewriteUrlConfig. :rtype: str @@ -114,7 +114,7 @@ def query(self): def query(self, query): """Sets the query of this UpdateRewriteUrlConfig. - 重定向的查询字符串。取值只能包含英文字母、数字和特殊字符:!$&'()+,-./:;=?@^_`。字母区分大小写。其中$1-$9会匹配请求url通配符星号(),当正则匹配分组小于指定数字,则$指定数字结果为空。$后面跟字母,匹配结果均为空,直到下一个特殊字符出现,例如$abc#123,则匹配结果为#123;$后面跟特殊字符则直接输出特殊字符,例如$#匹配结果为$#。 默认${query},表示继承原值(即与被重写请求保持一致)。 + 参数解释:重定向的查询字符串。其中$1-$9会匹配请求url通配符星号(*),当正则匹配分组小于指定数字,则$指定数字结果为空。$后面跟字母,匹配结果均为空,直到下一个特殊字符出现,例如$abc#123,则匹配结果为#123;$后面跟特殊字符则直接输出特殊字符,例如$#匹配结果为$#。 取值范围:英文字母、数字和特殊字符:!$&'()+,-./:;=?@^_`。字母区分大小写。 :param query: The query of this UpdateRewriteUrlConfig. :type query: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_rule_condition.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_rule_condition.py index 045d49a9f4..9d740cfbf8 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_rule_condition.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_rule_condition.py @@ -31,9 +31,9 @@ def __init__(self, key=None, value=None): The model defined in huaweicloud sdk - :param key: 匹配项的名称。 当转发规则类别type为HOST_NAME、PATH、METHOD、SOURCE_IP时,该字段固定为空字符串。 当转发规则类别type为HEADER时,key表示请求头参数的名称,value表示请求头参数的值。 key的长度限制1-40字符,只允许包含字母、数字和-_。 当转发规则类别type为QUERY_STRING时,key表示查询参数的名称,value表示查询参数的值。 key的长度限制为1-128字符,不支持空格,中括号,大括号,尖括号,反斜杠,双引号, '#','&','|',‘%’,‘~’,字母区分大小写。 同一个rule内的conditions列表中所有key必须相同。 + :param key: 参数解释:匹配项的名称。 约束限制:同一个rule内的conditions列表中所有key必须相同。 取值范围: - 当转发规则类别type为HOST_NAME、PATH、METHOD、SOURCE_IP时,该字段固定为空字符串。 - 当转发规则类别type为HEADER时,key表示请求头参数的名称,value表示请求头参数的值。 key的长度限制1-40字符,只允许包含字母、数字和-_。 - 当转发规则类别type为QUERY_STRING时,key表示查询参数的名称,value表示查询参数的值。 key的长度限制为1-128字符,不支持空格,中括号,大括号,尖括号,反斜杠,双引号, '#','&','|',‘%’,‘~’,字母区分大小写。 :type key: str - :param value: 匹配项的值。 当转发规则类别type为HOST_NAME时,key固定为空字符串,value表示域名的值。 value长度1-128字符,字符串只能包含英文字母、数字、-.\\*, 必须以字母、数字或\\*开头,\\*只能出现在开头且必须以\\*.开始。 当转发规则类别type为PATH时,key固定为空字符串,value表示请求路径的值。 value长度1-128字符。当转发规则的compare_type为STARTS_WITH、EQUAL_TO时, 字符串只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以/开头。 当转发规则类别type为HEADER时,key表示请求头参数的名称,value表示请求头参数的值。 value长度限制1-128字符,不支持空格, 双引号,支持以下通配符:*(匹配0个或更多字符)和?(正好匹配1个字符)。 当转发规则类别type为QUERY_STRING时,key表示查询参数的名称,value表示查询参数的值。 value长度限制为1-128字符,不支持空格,中括号,大括号,尖括号,反斜杠,双引号, '#','&','|',‘%’,‘~’,字母区分大小写,支持通配符:*(匹配0个或更多字符)和?(正好匹配1个字符) 当转发规则类别type为METHOD时,key固定为空字符串,value表示请求方式。value取值范围为:GET, PUT, POST,DELETE, PATCH, HEAD, OPTIONS。 当转发规则类别type为SOURCE_IP时,key固定为空字符串,value表示请求源地址。 value为CIDR格式,支持ipv4,ipv6。例如192.168.0.2/32,2049::49/64。 同一个rule内的conditions列表中所有value不允许重复。 + :param value: 参数解释:匹配项的值。 约束限制: - 同一个rule内的conditions列表中所有value不允许重复。 - 同一个rule内的conditions列表中所有value不允许重复。 取值范围: - 当转发规则类别type为HOST_NAME时,key固定为空字符串,value表示域名的值。 value长度1-128字符,字符串只能包含英文字母、数字、-.\\*, 必须以字母、数字或\\*开头,\\*只能出现在开头且必须以\\*.开始。 - 当转发规则类别type为PATH时,key固定为空字符串,value表示请求路径的值。 value长度1-128字符。当转发规则的compare_type为STARTS_WITH、EQUAL_TO时, 字符串只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以\"/\"开头。 - 当转发规则类别type为HEADER时,key表示请求头参数的名称,value表示请求头参数的值。 value长度限制1-128字符,不支持空格, 双引号,支持以下通配符:*(匹配0个或更多字符)和?(正好匹配1个字符)。 - 当转发规则类别type为QUERY_STRING时,key表示查询参数的名称,value表示查询参数的值。 value长度限制为1-128字符,不支持空格,中括号,大括号,尖括号,反斜杠,双引号, '#','&','|',‘%’,‘~’,字母区分大小写,支持通配符:*(匹配0个或更多字符)和?(正好匹配1个字符) - 当转发规则类别type为METHOD时,key固定为空字符串,value表示请求方式。value取值范围为:GET, PUT, POST,DELETE, PATCH, HEAD, OPTIONS。 - 当转发规则类别type为SOURCE_IP时,key固定为空字符串,value表示请求源地址。 value为CIDR格式,支持ipv4,ipv6。例如192.168.0.2/32,2049::49/64。 :type value: str """ @@ -52,7 +52,7 @@ def __init__(self, key=None, value=None): def key(self): """Gets the key of this UpdateRuleCondition. - 匹配项的名称。 当转发规则类别type为HOST_NAME、PATH、METHOD、SOURCE_IP时,该字段固定为空字符串。 当转发规则类别type为HEADER时,key表示请求头参数的名称,value表示请求头参数的值。 key的长度限制1-40字符,只允许包含字母、数字和-_。 当转发规则类别type为QUERY_STRING时,key表示查询参数的名称,value表示查询参数的值。 key的长度限制为1-128字符,不支持空格,中括号,大括号,尖括号,反斜杠,双引号, '#','&','|',‘%’,‘~’,字母区分大小写。 同一个rule内的conditions列表中所有key必须相同。 + 参数解释:匹配项的名称。 约束限制:同一个rule内的conditions列表中所有key必须相同。 取值范围: - 当转发规则类别type为HOST_NAME、PATH、METHOD、SOURCE_IP时,该字段固定为空字符串。 - 当转发规则类别type为HEADER时,key表示请求头参数的名称,value表示请求头参数的值。 key的长度限制1-40字符,只允许包含字母、数字和-_。 - 当转发规则类别type为QUERY_STRING时,key表示查询参数的名称,value表示查询参数的值。 key的长度限制为1-128字符,不支持空格,中括号,大括号,尖括号,反斜杠,双引号, '#','&','|',‘%’,‘~’,字母区分大小写。 :return: The key of this UpdateRuleCondition. :rtype: str @@ -63,7 +63,7 @@ def key(self): def key(self, key): """Sets the key of this UpdateRuleCondition. - 匹配项的名称。 当转发规则类别type为HOST_NAME、PATH、METHOD、SOURCE_IP时,该字段固定为空字符串。 当转发规则类别type为HEADER时,key表示请求头参数的名称,value表示请求头参数的值。 key的长度限制1-40字符,只允许包含字母、数字和-_。 当转发规则类别type为QUERY_STRING时,key表示查询参数的名称,value表示查询参数的值。 key的长度限制为1-128字符,不支持空格,中括号,大括号,尖括号,反斜杠,双引号, '#','&','|',‘%’,‘~’,字母区分大小写。 同一个rule内的conditions列表中所有key必须相同。 + 参数解释:匹配项的名称。 约束限制:同一个rule内的conditions列表中所有key必须相同。 取值范围: - 当转发规则类别type为HOST_NAME、PATH、METHOD、SOURCE_IP时,该字段固定为空字符串。 - 当转发规则类别type为HEADER时,key表示请求头参数的名称,value表示请求头参数的值。 key的长度限制1-40字符,只允许包含字母、数字和-_。 - 当转发规则类别type为QUERY_STRING时,key表示查询参数的名称,value表示查询参数的值。 key的长度限制为1-128字符,不支持空格,中括号,大括号,尖括号,反斜杠,双引号, '#','&','|',‘%’,‘~’,字母区分大小写。 :param key: The key of this UpdateRuleCondition. :type key: str @@ -74,7 +74,7 @@ def key(self, key): def value(self): """Gets the value of this UpdateRuleCondition. - 匹配项的值。 当转发规则类别type为HOST_NAME时,key固定为空字符串,value表示域名的值。 value长度1-128字符,字符串只能包含英文字母、数字、-.\\*, 必须以字母、数字或\\*开头,\\*只能出现在开头且必须以\\*.开始。 当转发规则类别type为PATH时,key固定为空字符串,value表示请求路径的值。 value长度1-128字符。当转发规则的compare_type为STARTS_WITH、EQUAL_TO时, 字符串只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以/开头。 当转发规则类别type为HEADER时,key表示请求头参数的名称,value表示请求头参数的值。 value长度限制1-128字符,不支持空格, 双引号,支持以下通配符:*(匹配0个或更多字符)和?(正好匹配1个字符)。 当转发规则类别type为QUERY_STRING时,key表示查询参数的名称,value表示查询参数的值。 value长度限制为1-128字符,不支持空格,中括号,大括号,尖括号,反斜杠,双引号, '#','&','|',‘%’,‘~’,字母区分大小写,支持通配符:*(匹配0个或更多字符)和?(正好匹配1个字符) 当转发规则类别type为METHOD时,key固定为空字符串,value表示请求方式。value取值范围为:GET, PUT, POST,DELETE, PATCH, HEAD, OPTIONS。 当转发规则类别type为SOURCE_IP时,key固定为空字符串,value表示请求源地址。 value为CIDR格式,支持ipv4,ipv6。例如192.168.0.2/32,2049::49/64。 同一个rule内的conditions列表中所有value不允许重复。 + 参数解释:匹配项的值。 约束限制: - 同一个rule内的conditions列表中所有value不允许重复。 - 同一个rule内的conditions列表中所有value不允许重复。 取值范围: - 当转发规则类别type为HOST_NAME时,key固定为空字符串,value表示域名的值。 value长度1-128字符,字符串只能包含英文字母、数字、-.\\*, 必须以字母、数字或\\*开头,\\*只能出现在开头且必须以\\*.开始。 - 当转发规则类别type为PATH时,key固定为空字符串,value表示请求路径的值。 value长度1-128字符。当转发规则的compare_type为STARTS_WITH、EQUAL_TO时, 字符串只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以\"/\"开头。 - 当转发规则类别type为HEADER时,key表示请求头参数的名称,value表示请求头参数的值。 value长度限制1-128字符,不支持空格, 双引号,支持以下通配符:*(匹配0个或更多字符)和?(正好匹配1个字符)。 - 当转发规则类别type为QUERY_STRING时,key表示查询参数的名称,value表示查询参数的值。 value长度限制为1-128字符,不支持空格,中括号,大括号,尖括号,反斜杠,双引号, '#','&','|',‘%’,‘~’,字母区分大小写,支持通配符:*(匹配0个或更多字符)和?(正好匹配1个字符) - 当转发规则类别type为METHOD时,key固定为空字符串,value表示请求方式。value取值范围为:GET, PUT, POST,DELETE, PATCH, HEAD, OPTIONS。 - 当转发规则类别type为SOURCE_IP时,key固定为空字符串,value表示请求源地址。 value为CIDR格式,支持ipv4,ipv6。例如192.168.0.2/32,2049::49/64。 :return: The value of this UpdateRuleCondition. :rtype: str @@ -85,7 +85,7 @@ def value(self): def value(self, value): """Sets the value of this UpdateRuleCondition. - 匹配项的值。 当转发规则类别type为HOST_NAME时,key固定为空字符串,value表示域名的值。 value长度1-128字符,字符串只能包含英文字母、数字、-.\\*, 必须以字母、数字或\\*开头,\\*只能出现在开头且必须以\\*.开始。 当转发规则类别type为PATH时,key固定为空字符串,value表示请求路径的值。 value长度1-128字符。当转发规则的compare_type为STARTS_WITH、EQUAL_TO时, 字符串只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以/开头。 当转发规则类别type为HEADER时,key表示请求头参数的名称,value表示请求头参数的值。 value长度限制1-128字符,不支持空格, 双引号,支持以下通配符:*(匹配0个或更多字符)和?(正好匹配1个字符)。 当转发规则类别type为QUERY_STRING时,key表示查询参数的名称,value表示查询参数的值。 value长度限制为1-128字符,不支持空格,中括号,大括号,尖括号,反斜杠,双引号, '#','&','|',‘%’,‘~’,字母区分大小写,支持通配符:*(匹配0个或更多字符)和?(正好匹配1个字符) 当转发规则类别type为METHOD时,key固定为空字符串,value表示请求方式。value取值范围为:GET, PUT, POST,DELETE, PATCH, HEAD, OPTIONS。 当转发规则类别type为SOURCE_IP时,key固定为空字符串,value表示请求源地址。 value为CIDR格式,支持ipv4,ipv6。例如192.168.0.2/32,2049::49/64。 同一个rule内的conditions列表中所有value不允许重复。 + 参数解释:匹配项的值。 约束限制: - 同一个rule内的conditions列表中所有value不允许重复。 - 同一个rule内的conditions列表中所有value不允许重复。 取值范围: - 当转发规则类别type为HOST_NAME时,key固定为空字符串,value表示域名的值。 value长度1-128字符,字符串只能包含英文字母、数字、-.\\*, 必须以字母、数字或\\*开头,\\*只能出现在开头且必须以\\*.开始。 - 当转发规则类别type为PATH时,key固定为空字符串,value表示请求路径的值。 value长度1-128字符。当转发规则的compare_type为STARTS_WITH、EQUAL_TO时, 字符串只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以\"/\"开头。 - 当转发规则类别type为HEADER时,key表示请求头参数的名称,value表示请求头参数的值。 value长度限制1-128字符,不支持空格, 双引号,支持以下通配符:*(匹配0个或更多字符)和?(正好匹配1个字符)。 - 当转发规则类别type为QUERY_STRING时,key表示查询参数的名称,value表示查询参数的值。 value长度限制为1-128字符,不支持空格,中括号,大括号,尖括号,反斜杠,双引号, '#','&','|',‘%’,‘~’,字母区分大小写,支持通配符:*(匹配0个或更多字符)和?(正好匹配1个字符) - 当转发规则类别type为METHOD时,key固定为空字符串,value表示请求方式。value取值范围为:GET, PUT, POST,DELETE, PATCH, HEAD, OPTIONS。 - 当转发规则类别type为SOURCE_IP时,key固定为空字符串,value表示请求源地址。 value为CIDR格式,支持ipv4,ipv6。例如192.168.0.2/32,2049::49/64。 :param value: The value of this UpdateRuleCondition. :type value: str diff --git a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_traffic_limit_config.py b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_traffic_limit_config.py index fcb88df84b..b1ef8517f0 100644 --- a/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_traffic_limit_config.py +++ b/huaweicloud-sdk-elb/huaweicloudsdkelb/v3/model/update_traffic_limit_config.py @@ -33,11 +33,11 @@ def __init__(self, qps=None, per_source_ip_qps=None, burst=None): The model defined in huaweicloud sdk - :param qps: 转发策略整体限速。取值: 0-100000s。0表示不限速 + :param qps: 参数解释:转发策略qps限速。 取值范围:0-100000,单位:个/秒。0表示不限速。 :type qps: int - :param per_source_ip_qps: 对转发策略单源进行限速。 quic监听器下转发策略不支持配置单源限速,指定该字段时,赋值可以为0或者为null 取值: 0-100000s。0表示不限速,如果qps不为0,per_ip_qps需要小于qps。 + :param per_source_ip_qps: 参数解释:对转发策略单源(单个客户端IP)进行限速。 约束限制: - quic监听器下转发策略不支持配置单源限速。 - 指定该字段时,赋值可以为0或者为null。 - 如果qps不为0,per_source_ip_qps需要小于qps。 取值范围:0-100000,单位:个/秒。0表示不限速。 :type per_source_ip_qps: int - :param burst: 对转发策略单源进行限速。取值: 0-100000s。当qps超限的时候,不返回503,支持允许局部突增burst大小的请求。 + :param burst: 参数解释:设置当单源qps超限时,允许的局部突增请求数量。超出该限制的请求将返回503。 取值范围:0-100000,单位:个/秒。 :type burst: int """ @@ -59,7 +59,7 @@ def __init__(self, qps=None, per_source_ip_qps=None, burst=None): def qps(self): """Gets the qps of this UpdateTrafficLimitConfig. - 转发策略整体限速。取值: 0-100000s。0表示不限速 + 参数解释:转发策略qps限速。 取值范围:0-100000,单位:个/秒。0表示不限速。 :return: The qps of this UpdateTrafficLimitConfig. :rtype: int @@ -70,7 +70,7 @@ def qps(self): def qps(self, qps): """Sets the qps of this UpdateTrafficLimitConfig. - 转发策略整体限速。取值: 0-100000s。0表示不限速 + 参数解释:转发策略qps限速。 取值范围:0-100000,单位:个/秒。0表示不限速。 :param qps: The qps of this UpdateTrafficLimitConfig. :type qps: int @@ -81,7 +81,7 @@ def qps(self, qps): def per_source_ip_qps(self): """Gets the per_source_ip_qps of this UpdateTrafficLimitConfig. - 对转发策略单源进行限速。 quic监听器下转发策略不支持配置单源限速,指定该字段时,赋值可以为0或者为null 取值: 0-100000s。0表示不限速,如果qps不为0,per_ip_qps需要小于qps。 + 参数解释:对转发策略单源(单个客户端IP)进行限速。 约束限制: - quic监听器下转发策略不支持配置单源限速。 - 指定该字段时,赋值可以为0或者为null。 - 如果qps不为0,per_source_ip_qps需要小于qps。 取值范围:0-100000,单位:个/秒。0表示不限速。 :return: The per_source_ip_qps of this UpdateTrafficLimitConfig. :rtype: int @@ -92,7 +92,7 @@ def per_source_ip_qps(self): def per_source_ip_qps(self, per_source_ip_qps): """Sets the per_source_ip_qps of this UpdateTrafficLimitConfig. - 对转发策略单源进行限速。 quic监听器下转发策略不支持配置单源限速,指定该字段时,赋值可以为0或者为null 取值: 0-100000s。0表示不限速,如果qps不为0,per_ip_qps需要小于qps。 + 参数解释:对转发策略单源(单个客户端IP)进行限速。 约束限制: - quic监听器下转发策略不支持配置单源限速。 - 指定该字段时,赋值可以为0或者为null。 - 如果qps不为0,per_source_ip_qps需要小于qps。 取值范围:0-100000,单位:个/秒。0表示不限速。 :param per_source_ip_qps: The per_source_ip_qps of this UpdateTrafficLimitConfig. :type per_source_ip_qps: int @@ -103,7 +103,7 @@ def per_source_ip_qps(self, per_source_ip_qps): def burst(self): """Gets the burst of this UpdateTrafficLimitConfig. - 对转发策略单源进行限速。取值: 0-100000s。当qps超限的时候,不返回503,支持允许局部突增burst大小的请求。 + 参数解释:设置当单源qps超限时,允许的局部突增请求数量。超出该限制的请求将返回503。 取值范围:0-100000,单位:个/秒。 :return: The burst of this UpdateTrafficLimitConfig. :rtype: int @@ -114,7 +114,7 @@ def burst(self): def burst(self, burst): """Sets the burst of this UpdateTrafficLimitConfig. - 对转发策略单源进行限速。取值: 0-100000s。当qps超限的时候,不返回503,支持允许局部突增burst大小的请求。 + 参数解释:设置当单源qps超限时,允许的局部突增请求数量。超出该限制的请求将返回503。 取值范围:0-100000,单位:个/秒。 :param burst: The burst of this UpdateTrafficLimitConfig. :type burst: int diff --git a/huaweicloud-sdk-elb/requirements.txt b/huaweicloud-sdk-elb/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-elb/requirements.txt +++ b/huaweicloud-sdk-elb/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-elb/setup.py b/huaweicloud-sdk-elb/setup.py index d292da0bad..46adf2f0a8 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-eps/requirements.txt b/huaweicloud-sdk-eps/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-eps/requirements.txt +++ b/huaweicloud-sdk-eps/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-eps/setup.py b/huaweicloud-sdk-eps/setup.py index ce784ed776..8ad651a380 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-er/requirements.txt b/huaweicloud-sdk-er/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-er/requirements.txt +++ b/huaweicloud-sdk-er/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-er/setup.py b/huaweicloud-sdk-er/setup.py index e6b18a9b9c..9642efd31b 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-evs/requirements.txt b/huaweicloud-sdk-evs/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-evs/requirements.txt +++ b/huaweicloud-sdk-evs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-evs/setup.py b/huaweicloud-sdk-evs/setup.py index 5b7917d9f8..1f1887f5e6 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-frs/requirements.txt b/huaweicloud-sdk-frs/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-frs/requirements.txt +++ b/huaweicloud-sdk-frs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-frs/setup.py b/huaweicloud-sdk-frs/setup.py index 4004e3ffda..00354f02dc 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-functiongraph/requirements.txt b/huaweicloud-sdk-functiongraph/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-functiongraph/requirements.txt +++ b/huaweicloud-sdk-functiongraph/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-functiongraph/setup.py b/huaweicloud-sdk-functiongraph/setup.py index cbf67cac7e..27f1b4722c 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ga/requirements.txt b/huaweicloud-sdk-ga/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-ga/requirements.txt +++ b/huaweicloud-sdk-ga/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-ga/setup.py b/huaweicloud-sdk-ga/setup.py index 0cd2e62eb9..7f3ba8445c 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-gaussdb/requirements.txt b/huaweicloud-sdk-gaussdb/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-gaussdb/requirements.txt +++ b/huaweicloud-sdk-gaussdb/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-gaussdb/setup.py b/huaweicloud-sdk-gaussdb/setup.py index 38f7a6e806..444165ee2e 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-gaussdbfornosql/requirements.txt b/huaweicloud-sdk-gaussdbfornosql/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-gaussdbfornosql/requirements.txt +++ b/huaweicloud-sdk-gaussdbfornosql/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-gaussdbfornosql/setup.py b/huaweicloud-sdk-gaussdbfornosql/setup.py index 98812d7115..1cdf749b10 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_async_client.py b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_async_client.py index 42a47b04b2..8f41aaa5a1 100644 --- a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_async_client.py +++ b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_async_client.py @@ -5209,9 +5209,9 @@ def _show_balance_status_http_info(self, request): return http_info def show_batch_upgrade_candidate_versions_async(self, request): - """查询批量实例可升级的版本和升级类型 + """查询批量实例可升级的版本和升级类型。 - 查询批量实例可升级的版本和升级类型 + 查询批量实例可升级的版本和升级类型。 Please refer to HUAWEI cloud API Explorer for details. @@ -6083,7 +6083,7 @@ def _show_ssl_cert_download_link_http_info(self, request): def show_upgrade_candidate_versions_async(self, request): """查询实例可升级版本 - 查询实例可升级版本 + 查询实例可升级版本。 Please refer to HUAWEI cloud API Explorer for details. diff --git a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_client.py b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_client.py index d15b728570..313cac9011 100644 --- a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_client.py +++ b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_client.py @@ -5209,9 +5209,9 @@ def _show_balance_status_http_info(cls, request): return http_info def show_batch_upgrade_candidate_versions(self, request): - """查询批量实例可升级的版本和升级类型 + """查询批量实例可升级的版本和升级类型。 - 查询批量实例可升级的版本和升级类型 + 查询批量实例可升级的版本和升级类型。 Please refer to HUAWEI cloud API Explorer for details. @@ -6083,7 +6083,7 @@ def _show_ssl_cert_download_link_http_info(cls, request): def show_upgrade_candidate_versions(self, request): """查询实例可升级版本 - 查询实例可升级版本 + 查询实例可升级版本。 Please refer to HUAWEI cloud API Explorer for details. diff --git a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/data_stroe_error_response.py b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/data_stroe_error_response.py index b211f91666..c4c8519cdf 100644 --- a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/data_stroe_error_response.py +++ b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/data_stroe_error_response.py @@ -31,7 +31,7 @@ def __init__(self, error_code=None, error_msg=None): The model defined in huaweicloud sdk - :param error_code: 错误码 + :param error_code: 错误码。 :type error_code: str :param error_msg: 错误消息。 :type error_msg: str @@ -50,7 +50,7 @@ def __init__(self, error_code=None, error_msg=None): def error_code(self): """Gets the error_code of this DataStroeErrorResponse. - 错误码 + 错误码。 :return: The error_code of this DataStroeErrorResponse. :rtype: str @@ -61,7 +61,7 @@ def error_code(self): def error_code(self, error_code): """Sets the error_code of this DataStroeErrorResponse. - 错误码 + 错误码。 :param error_code: The error_code of this DataStroeErrorResponse. :type error_code: str diff --git a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/delete_backup_error_response.py b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/delete_backup_error_response.py index b340eaef41..0a0f563a7f 100644 --- a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/delete_backup_error_response.py +++ b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/delete_backup_error_response.py @@ -31,7 +31,7 @@ def __init__(self, error_code=None, error_msg=None): The model defined in huaweicloud sdk - :param error_code: 错误码 + :param error_code: 错误码。 :type error_code: str :param error_msg: 错误消息。 :type error_msg: str @@ -50,7 +50,7 @@ def __init__(self, error_code=None, error_msg=None): def error_code(self): """Gets the error_code of this DeleteBackupErrorResponse. - 错误码 + 错误码。 :return: The error_code of this DeleteBackupErrorResponse. :rtype: str @@ -61,7 +61,7 @@ def error_code(self): def error_code(self, error_code): """Sets the error_code of this DeleteBackupErrorResponse. - 错误码 + 错误码。 :param error_code: The error_code of this DeleteBackupErrorResponse. :type error_code: str diff --git a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/download_backup_error_response.py b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/download_backup_error_response.py index f1929cc596..d754e8f32e 100644 --- a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/download_backup_error_response.py +++ b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/download_backup_error_response.py @@ -31,7 +31,7 @@ def __init__(self, error_code=None, error_msg=None): The model defined in huaweicloud sdk - :param error_code: 错误码 + :param error_code: 错误码。 :type error_code: str :param error_msg: 错误消息。 :type error_msg: str @@ -50,7 +50,7 @@ def __init__(self, error_code=None, error_msg=None): def error_code(self): """Gets the error_code of this DownloadBackupErrorResponse. - 错误码 + 错误码。 :return: The error_code of this DownloadBackupErrorResponse. :rtype: str @@ -61,7 +61,7 @@ def error_code(self): def error_code(self, error_code): """Sets the error_code of this DownloadBackupErrorResponse. - 错误码 + 错误码。 :param error_code: The error_code of this DownloadBackupErrorResponse. :type error_code: str diff --git a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/flavor_error_response.py b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/flavor_error_response.py index 958731a462..ff4c9cb82b 100644 --- a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/flavor_error_response.py +++ b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/flavor_error_response.py @@ -31,7 +31,7 @@ def __init__(self, error_code=None, error_msg=None): The model defined in huaweicloud sdk - :param error_code: 错误码 + :param error_code: 错误码。 :type error_code: str :param error_msg: 错误消息。 :type error_msg: str @@ -50,7 +50,7 @@ def __init__(self, error_code=None, error_msg=None): def error_code(self): """Gets the error_code of this FlavorErrorResponse. - 错误码 + 错误码。 :return: The error_code of this FlavorErrorResponse. :rtype: str @@ -61,7 +61,7 @@ def error_code(self): def error_code(self, error_code): """Sets the error_code of this FlavorErrorResponse. - 错误码 + 错误码。 :param error_code: The error_code of this FlavorErrorResponse. :type error_code: str diff --git a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/gauss_db_upgrade_instances_version_request.py b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/gauss_db_upgrade_instances_version_request.py index e1b1fd56cb..bde6275e51 100644 --- a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/gauss_db_upgrade_instances_version_request.py +++ b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/gauss_db_upgrade_instances_version_request.py @@ -35,9 +35,9 @@ def __init__(self, instance_ids=None, upgrade_type=None, upgrade_action=None, ta The model defined in huaweicloud sdk - :param instance_ids: 批量实例ID + :param instance_ids: 批量实例ID。 :type instance_ids: list[str] - :param upgrade_type: 实例升级类型,包括就地升级,灰度升级、热补丁升级三种 + :param upgrade_type: 实例升级类型,包括就地升级,灰度升级、热补丁升级三种。 :type upgrade_type: str :param upgrade_action: 实例升级操作,就地升级无需传值。灰度升级包括升级自动提交,升级待观察,提交升级,升级回退四种。 :type upgrade_action: str @@ -65,7 +65,7 @@ def __init__(self, instance_ids=None, upgrade_type=None, upgrade_action=None, ta def instance_ids(self): """Gets the instance_ids of this GaussDBUpgradeInstancesVersionRequest. - 批量实例ID + 批量实例ID。 :return: The instance_ids of this GaussDBUpgradeInstancesVersionRequest. :rtype: list[str] @@ -76,7 +76,7 @@ def instance_ids(self): def instance_ids(self, instance_ids): """Sets the instance_ids of this GaussDBUpgradeInstancesVersionRequest. - 批量实例ID + 批量实例ID。 :param instance_ids: The instance_ids of this GaussDBUpgradeInstancesVersionRequest. :type instance_ids: list[str] @@ -87,7 +87,7 @@ def instance_ids(self, instance_ids): def upgrade_type(self): """Gets the upgrade_type of this GaussDBUpgradeInstancesVersionRequest. - 实例升级类型,包括就地升级,灰度升级、热补丁升级三种 + 实例升级类型,包括就地升级,灰度升级、热补丁升级三种。 :return: The upgrade_type of this GaussDBUpgradeInstancesVersionRequest. :rtype: str @@ -98,7 +98,7 @@ def upgrade_type(self): def upgrade_type(self, upgrade_type): """Sets the upgrade_type of this GaussDBUpgradeInstancesVersionRequest. - 实例升级类型,包括就地升级,灰度升级、热补丁升级三种 + 实例升级类型,包括就地升级,灰度升级、热补丁升级三种。 :param upgrade_type: The upgrade_type of this GaussDBUpgradeInstancesVersionRequest. :type upgrade_type: str diff --git a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/hotfix_info.py b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/hotfix_info.py index 450fc44f9e..c4677d054b 100644 --- a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/hotfix_info.py +++ b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/hotfix_info.py @@ -35,13 +35,13 @@ def __init__(self, version=None, common_patch=None, backup_sensitive=None, descr The model defined in huaweicloud sdk - :param version: 热补丁版本 + :param version: 热补丁版本。 :type version: str - :param common_patch: 通用非通用信息,common=通用补丁,certain=定制补丁 + :param common_patch: 通用非通用信息,common=通用补丁,certain=定制补丁。 :type common_patch: str - :param backup_sensitive: 是否和备份相关 + :param backup_sensitive: 是否和备份相关。 :type backup_sensitive: bool - :param descripition: 补丁的描述信息 + :param descripition: 补丁的描述信息。 :type descripition: str """ @@ -66,7 +66,7 @@ def __init__(self, version=None, common_patch=None, backup_sensitive=None, descr def version(self): """Gets the version of this HotfixInfo. - 热补丁版本 + 热补丁版本。 :return: The version of this HotfixInfo. :rtype: str @@ -77,7 +77,7 @@ def version(self): def version(self, version): """Sets the version of this HotfixInfo. - 热补丁版本 + 热补丁版本。 :param version: The version of this HotfixInfo. :type version: str @@ -88,7 +88,7 @@ def version(self, version): def common_patch(self): """Gets the common_patch of this HotfixInfo. - 通用非通用信息,common=通用补丁,certain=定制补丁 + 通用非通用信息,common=通用补丁,certain=定制补丁。 :return: The common_patch of this HotfixInfo. :rtype: str @@ -99,7 +99,7 @@ def common_patch(self): def common_patch(self, common_patch): """Sets the common_patch of this HotfixInfo. - 通用非通用信息,common=通用补丁,certain=定制补丁 + 通用非通用信息,common=通用补丁,certain=定制补丁。 :param common_patch: The common_patch of this HotfixInfo. :type common_patch: str @@ -110,7 +110,7 @@ def common_patch(self, common_patch): def backup_sensitive(self): """Gets the backup_sensitive of this HotfixInfo. - 是否和备份相关 + 是否和备份相关。 :return: The backup_sensitive of this HotfixInfo. :rtype: bool @@ -121,7 +121,7 @@ def backup_sensitive(self): def backup_sensitive(self, backup_sensitive): """Sets the backup_sensitive of this HotfixInfo. - 是否和备份相关 + 是否和备份相关。 :param backup_sensitive: The backup_sensitive of this HotfixInfo. :type backup_sensitive: bool @@ -132,7 +132,7 @@ def backup_sensitive(self, backup_sensitive): def descripition(self): """Gets the descripition of this HotfixInfo. - 补丁的描述信息 + 补丁的描述信息。 :return: The descripition of this HotfixInfo. :rtype: str @@ -143,7 +143,7 @@ def descripition(self): def descripition(self, descripition): """Sets the descripition of this HotfixInfo. - 补丁的描述信息 + 补丁的描述信息。 :param descripition: The descripition of this HotfixInfo. :type descripition: str diff --git a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/open_gauss_error_response.py b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/open_gauss_error_response.py index e54a13cfe2..afc6c31de0 100644 --- a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/open_gauss_error_response.py +++ b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/open_gauss_error_response.py @@ -31,7 +31,7 @@ def __init__(self, error_code=None, error_msg=None): The model defined in huaweicloud sdk - :param error_code: 错误码 + :param error_code: 错误码。 :type error_code: str :param error_msg: 错误消息。 :type error_msg: str @@ -50,7 +50,7 @@ def __init__(self, error_code=None, error_msg=None): def error_code(self): """Gets the error_code of this OpenGaussErrorResponse. - 错误码 + 错误码。 :return: The error_code of this OpenGaussErrorResponse. :rtype: str @@ -61,7 +61,7 @@ def error_code(self): def error_code(self, error_code): """Sets the error_code of this OpenGaussErrorResponse. - 错误码 + 错误码。 :param error_code: The error_code of this OpenGaussErrorResponse. :type error_code: str diff --git a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/open_gauss_ha.py b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/open_gauss_ha.py index 41bb514c05..a037707bb2 100644 --- a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/open_gauss_ha.py +++ b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/open_gauss_ha.py @@ -19,16 +19,18 @@ class OpenGaussHa: openapi_types = { 'mode': 'str', 'consistency': 'str', - 'replication_mode': 'str' + 'replication_mode': 'str', + 'instance_mode': 'str' } attribute_map = { 'mode': 'mode', 'consistency': 'consistency', - 'replication_mode': 'replication_mode' + 'replication_mode': 'replication_mode', + 'instance_mode': 'instance_mode' } - def __init__(self, mode=None, consistency=None, replication_mode=None): + def __init__(self, mode=None, consistency=None, replication_mode=None, instance_mode=None): """OpenGaussHa The model defined in huaweicloud sdk @@ -39,6 +41,8 @@ def __init__(self, mode=None, consistency=None, replication_mode=None): :type consistency: str :param replication_mode: 备机同步参数。 取值: GaussDB为“sync\" 说明: - “sync”为同步模式。 :type replication_mode: str + :param instance_mode: 指定创建实例的产品类型,创建企业版实例时传空值或者enterprise,创建基础版实例时需要指定instance_mode的值为basic,创建生态版实例时需要指定instance_mode的值为ecology。 + :type instance_mode: str """ @@ -46,11 +50,14 @@ def __init__(self, mode=None, consistency=None, replication_mode=None): self._mode = None self._consistency = None self._replication_mode = None + self._instance_mode = None self.discriminator = None self.mode = mode self.consistency = consistency self.replication_mode = replication_mode + if instance_mode is not None: + self.instance_mode = instance_mode @property def mode(self): @@ -118,6 +125,28 @@ def replication_mode(self, replication_mode): """ self._replication_mode = replication_mode + @property + def instance_mode(self): + """Gets the instance_mode of this OpenGaussHa. + + 指定创建实例的产品类型,创建企业版实例时传空值或者enterprise,创建基础版实例时需要指定instance_mode的值为basic,创建生态版实例时需要指定instance_mode的值为ecology。 + + :return: The instance_mode of this OpenGaussHa. + :rtype: str + """ + return self._instance_mode + + @instance_mode.setter + def instance_mode(self, instance_mode): + """Sets the instance_mode of this OpenGaussHa. + + 指定创建实例的产品类型,创建企业版实例时传空值或者enterprise,创建基础版实例时需要指定instance_mode的值为basic,创建生态版实例时需要指定instance_mode的值为ecology。 + + :param instance_mode: The instance_mode of this OpenGaussHa. + :type instance_mode: str + """ + self._instance_mode = instance_mode + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/resource_error_response.py b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/resource_error_response.py index 3c0cce48c9..8a3cf05fcf 100644 --- a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/resource_error_response.py +++ b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/resource_error_response.py @@ -31,7 +31,7 @@ def __init__(self, error_code=None, error_msg=None): The model defined in huaweicloud sdk - :param error_code: 错误码 + :param error_code: 错误码。 :type error_code: str :param error_msg: 错误消息。 :type error_msg: str @@ -50,7 +50,7 @@ def __init__(self, error_code=None, error_msg=None): def error_code(self): """Gets the error_code of this ResourceErrorResponse. - 错误码 + 错误码。 :return: The error_code of this ResourceErrorResponse. :rtype: str @@ -61,7 +61,7 @@ def error_code(self): def error_code(self, error_code): """Sets the error_code of this ResourceErrorResponse. - 错误码 + 错误码。 :param error_code: The error_code of this ResourceErrorResponse. :type error_code: str diff --git a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/roll_upgrade_progress.py b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/roll_upgrade_progress.py index 139c0482d6..cc4693b177 100644 --- a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/roll_upgrade_progress.py +++ b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/roll_upgrade_progress.py @@ -37,15 +37,15 @@ def __init__(self, upgraded_dn_group_numbers=None, total_dn_group_numbers=None, The model defined in huaweicloud sdk - :param upgraded_dn_group_numbers: 已升级分片数,非独立部署返回null + :param upgraded_dn_group_numbers: 已升级分片数,非独立部署返回null。 :type upgraded_dn_group_numbers: str - :param total_dn_group_numbers: 总分片数,非独立部署返回null + :param total_dn_group_numbers: 总分片数,非独立部署返回null。 :type total_dn_group_numbers: str - :param not_fully_upgraded_az: 未完成升级的az,以“,”隔开,独立部署返回null + :param not_fully_upgraded_az: 未完成升级的az,以“,”隔开,独立部署返回null。 :type not_fully_upgraded_az: str - :param already_upgraded_az: 已升级az,以“,”隔开,独立部署返回null + :param already_upgraded_az: 已升级az,以“,”隔开,独立部署返回null。 :type already_upgraded_az: str - :param az_description_map: az描述键值对Map<String,String> + :param az_description_map: az描述键值对Map<String,String>。 :type az_description_map: dict(str, str) """ @@ -73,7 +73,7 @@ def __init__(self, upgraded_dn_group_numbers=None, total_dn_group_numbers=None, def upgraded_dn_group_numbers(self): """Gets the upgraded_dn_group_numbers of this RollUpgradeProgress. - 已升级分片数,非独立部署返回null + 已升级分片数,非独立部署返回null。 :return: The upgraded_dn_group_numbers of this RollUpgradeProgress. :rtype: str @@ -84,7 +84,7 @@ def upgraded_dn_group_numbers(self): def upgraded_dn_group_numbers(self, upgraded_dn_group_numbers): """Sets the upgraded_dn_group_numbers of this RollUpgradeProgress. - 已升级分片数,非独立部署返回null + 已升级分片数,非独立部署返回null。 :param upgraded_dn_group_numbers: The upgraded_dn_group_numbers of this RollUpgradeProgress. :type upgraded_dn_group_numbers: str @@ -95,7 +95,7 @@ def upgraded_dn_group_numbers(self, upgraded_dn_group_numbers): def total_dn_group_numbers(self): """Gets the total_dn_group_numbers of this RollUpgradeProgress. - 总分片数,非独立部署返回null + 总分片数,非独立部署返回null。 :return: The total_dn_group_numbers of this RollUpgradeProgress. :rtype: str @@ -106,7 +106,7 @@ def total_dn_group_numbers(self): def total_dn_group_numbers(self, total_dn_group_numbers): """Sets the total_dn_group_numbers of this RollUpgradeProgress. - 总分片数,非独立部署返回null + 总分片数,非独立部署返回null。 :param total_dn_group_numbers: The total_dn_group_numbers of this RollUpgradeProgress. :type total_dn_group_numbers: str @@ -117,7 +117,7 @@ def total_dn_group_numbers(self, total_dn_group_numbers): def not_fully_upgraded_az(self): """Gets the not_fully_upgraded_az of this RollUpgradeProgress. - 未完成升级的az,以“,”隔开,独立部署返回null + 未完成升级的az,以“,”隔开,独立部署返回null。 :return: The not_fully_upgraded_az of this RollUpgradeProgress. :rtype: str @@ -128,7 +128,7 @@ def not_fully_upgraded_az(self): def not_fully_upgraded_az(self, not_fully_upgraded_az): """Sets the not_fully_upgraded_az of this RollUpgradeProgress. - 未完成升级的az,以“,”隔开,独立部署返回null + 未完成升级的az,以“,”隔开,独立部署返回null。 :param not_fully_upgraded_az: The not_fully_upgraded_az of this RollUpgradeProgress. :type not_fully_upgraded_az: str @@ -139,7 +139,7 @@ def not_fully_upgraded_az(self, not_fully_upgraded_az): def already_upgraded_az(self): """Gets the already_upgraded_az of this RollUpgradeProgress. - 已升级az,以“,”隔开,独立部署返回null + 已升级az,以“,”隔开,独立部署返回null。 :return: The already_upgraded_az of this RollUpgradeProgress. :rtype: str @@ -150,7 +150,7 @@ def already_upgraded_az(self): def already_upgraded_az(self, already_upgraded_az): """Sets the already_upgraded_az of this RollUpgradeProgress. - 已升级az,以“,”隔开,独立部署返回null + 已升级az,以“,”隔开,独立部署返回null。 :param already_upgraded_az: The already_upgraded_az of this RollUpgradeProgress. :type already_upgraded_az: str @@ -161,7 +161,7 @@ def already_upgraded_az(self, already_upgraded_az): def az_description_map(self): """Gets the az_description_map of this RollUpgradeProgress. - az描述键值对Map + az描述键值对Map。 :return: The az_description_map of this RollUpgradeProgress. :rtype: dict(str, str) @@ -172,7 +172,7 @@ def az_description_map(self): def az_description_map(self, az_description_map): """Sets the az_description_map of this RollUpgradeProgress. - az描述键值对Map + az描述键值对Map。 :param az_description_map: The az_description_map of this RollUpgradeProgress. :type az_description_map: dict(str, str) diff --git a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/show_batch_upgrade_candidate_versions_request.py b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/show_batch_upgrade_candidate_versions_request.py index c24964af4e..71265a5e02 100644 --- a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/show_batch_upgrade_candidate_versions_request.py +++ b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/show_batch_upgrade_candidate_versions_request.py @@ -31,7 +31,7 @@ def __init__(self, x_language=None, body=None): The model defined in huaweicloud sdk - :param x_language: 语言[zh-cn, en-us] + :param x_language: 语言[zh-cn, en-us]。 :type x_language: str :param body: Body of the ShowBatchUpgradeCandidateVersionsRequest :type body: :class:`huaweicloudsdkgaussdbforopengauss.v3.UpgradeInstancesRequestBody` @@ -52,7 +52,7 @@ def __init__(self, x_language=None, body=None): def x_language(self): """Gets the x_language of this ShowBatchUpgradeCandidateVersionsRequest. - 语言[zh-cn, en-us] + 语言[zh-cn, en-us]。 :return: The x_language of this ShowBatchUpgradeCandidateVersionsRequest. :rtype: str @@ -63,7 +63,7 @@ def x_language(self): def x_language(self, x_language): """Sets the x_language of this ShowBatchUpgradeCandidateVersionsRequest. - 语言[zh-cn, en-us] + 语言[zh-cn, en-us]。 :param x_language: The x_language of this ShowBatchUpgradeCandidateVersionsRequest. :type x_language: str diff --git a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/show_batch_upgrade_candidate_versions_response.py b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/show_batch_upgrade_candidate_versions_response.py index f589b58030..234507afb1 100644 --- a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/show_batch_upgrade_candidate_versions_response.py +++ b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/show_batch_upgrade_candidate_versions_response.py @@ -21,29 +21,33 @@ class ShowBatchUpgradeCandidateVersionsResponse(SdkResponse): 'upgrade_type_list': 'list[UpgradeTypeInfo]', 'target_version': 'str', 'upgrade_candidate_versions': 'list[str]', - 'hotfix_upgrade_infos': 'list[HotfixInfo]' + 'hotfix_upgrade_infos': 'list[HotfixInfo]', + 'hotfix_rollback_infos': 'list[HotfixInfo]' } attribute_map = { 'upgrade_type_list': 'upgrade_type_list', 'target_version': 'target_version', 'upgrade_candidate_versions': 'upgrade_candidate_versions', - 'hotfix_upgrade_infos': 'hotfix_upgrade_infos' + 'hotfix_upgrade_infos': 'hotfix_upgrade_infos', + 'hotfix_rollback_infos': 'hotfix_rollback_infos' } - def __init__(self, upgrade_type_list=None, target_version=None, upgrade_candidate_versions=None, hotfix_upgrade_infos=None): + def __init__(self, upgrade_type_list=None, target_version=None, upgrade_candidate_versions=None, hotfix_upgrade_infos=None, hotfix_rollback_infos=None): """ShowBatchUpgradeCandidateVersionsResponse The model defined in huaweicloud sdk - :param upgrade_type_list: 升级类型信息列表 + :param upgrade_type_list: 升级类型信息列表。 :type upgrade_type_list: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.UpgradeTypeInfo`] - :param target_version: 升级目标版本,没有在滚动升级中返回null + :param target_version: 升级目标版本,没有在滚动升级中返回null。 :type target_version: str - :param upgrade_candidate_versions: 可以升级的版本,包括大小版本 + :param upgrade_candidate_versions: 可以升级的版本,包括大小版本。 :type upgrade_candidate_versions: list[str] - :param hotfix_upgrade_infos: 可以升级的热补丁信息 + :param hotfix_upgrade_infos: 可以升级的热补丁信息。 :type hotfix_upgrade_infos: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.HotfixInfo`] + :param hotfix_rollback_infos: 可以回滚的热补丁信息。 + :type hotfix_rollback_infos: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.HotfixInfo`] """ super(ShowBatchUpgradeCandidateVersionsResponse, self).__init__() @@ -52,6 +56,7 @@ def __init__(self, upgrade_type_list=None, target_version=None, upgrade_candidat self._target_version = None self._upgrade_candidate_versions = None self._hotfix_upgrade_infos = None + self._hotfix_rollback_infos = None self.discriminator = None if upgrade_type_list is not None: @@ -62,12 +67,14 @@ def __init__(self, upgrade_type_list=None, target_version=None, upgrade_candidat self.upgrade_candidate_versions = upgrade_candidate_versions if hotfix_upgrade_infos is not None: self.hotfix_upgrade_infos = hotfix_upgrade_infos + if hotfix_rollback_infos is not None: + self.hotfix_rollback_infos = hotfix_rollback_infos @property def upgrade_type_list(self): """Gets the upgrade_type_list of this ShowBatchUpgradeCandidateVersionsResponse. - 升级类型信息列表 + 升级类型信息列表。 :return: The upgrade_type_list of this ShowBatchUpgradeCandidateVersionsResponse. :rtype: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.UpgradeTypeInfo`] @@ -78,7 +85,7 @@ def upgrade_type_list(self): def upgrade_type_list(self, upgrade_type_list): """Sets the upgrade_type_list of this ShowBatchUpgradeCandidateVersionsResponse. - 升级类型信息列表 + 升级类型信息列表。 :param upgrade_type_list: The upgrade_type_list of this ShowBatchUpgradeCandidateVersionsResponse. :type upgrade_type_list: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.UpgradeTypeInfo`] @@ -89,7 +96,7 @@ def upgrade_type_list(self, upgrade_type_list): def target_version(self): """Gets the target_version of this ShowBatchUpgradeCandidateVersionsResponse. - 升级目标版本,没有在滚动升级中返回null + 升级目标版本,没有在滚动升级中返回null。 :return: The target_version of this ShowBatchUpgradeCandidateVersionsResponse. :rtype: str @@ -100,7 +107,7 @@ def target_version(self): def target_version(self, target_version): """Sets the target_version of this ShowBatchUpgradeCandidateVersionsResponse. - 升级目标版本,没有在滚动升级中返回null + 升级目标版本,没有在滚动升级中返回null。 :param target_version: The target_version of this ShowBatchUpgradeCandidateVersionsResponse. :type target_version: str @@ -111,7 +118,7 @@ def target_version(self, target_version): def upgrade_candidate_versions(self): """Gets the upgrade_candidate_versions of this ShowBatchUpgradeCandidateVersionsResponse. - 可以升级的版本,包括大小版本 + 可以升级的版本,包括大小版本。 :return: The upgrade_candidate_versions of this ShowBatchUpgradeCandidateVersionsResponse. :rtype: list[str] @@ -122,7 +129,7 @@ def upgrade_candidate_versions(self): def upgrade_candidate_versions(self, upgrade_candidate_versions): """Sets the upgrade_candidate_versions of this ShowBatchUpgradeCandidateVersionsResponse. - 可以升级的版本,包括大小版本 + 可以升级的版本,包括大小版本。 :param upgrade_candidate_versions: The upgrade_candidate_versions of this ShowBatchUpgradeCandidateVersionsResponse. :type upgrade_candidate_versions: list[str] @@ -133,7 +140,7 @@ def upgrade_candidate_versions(self, upgrade_candidate_versions): def hotfix_upgrade_infos(self): """Gets the hotfix_upgrade_infos of this ShowBatchUpgradeCandidateVersionsResponse. - 可以升级的热补丁信息 + 可以升级的热补丁信息。 :return: The hotfix_upgrade_infos of this ShowBatchUpgradeCandidateVersionsResponse. :rtype: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.HotfixInfo`] @@ -144,13 +151,35 @@ def hotfix_upgrade_infos(self): def hotfix_upgrade_infos(self, hotfix_upgrade_infos): """Sets the hotfix_upgrade_infos of this ShowBatchUpgradeCandidateVersionsResponse. - 可以升级的热补丁信息 + 可以升级的热补丁信息。 :param hotfix_upgrade_infos: The hotfix_upgrade_infos of this ShowBatchUpgradeCandidateVersionsResponse. :type hotfix_upgrade_infos: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.HotfixInfo`] """ self._hotfix_upgrade_infos = hotfix_upgrade_infos + @property + def hotfix_rollback_infos(self): + """Gets the hotfix_rollback_infos of this ShowBatchUpgradeCandidateVersionsResponse. + + 可以回滚的热补丁信息。 + + :return: The hotfix_rollback_infos of this ShowBatchUpgradeCandidateVersionsResponse. + :rtype: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.HotfixInfo`] + """ + return self._hotfix_rollback_infos + + @hotfix_rollback_infos.setter + def hotfix_rollback_infos(self, hotfix_rollback_infos): + """Sets the hotfix_rollback_infos of this ShowBatchUpgradeCandidateVersionsResponse. + + 可以回滚的热补丁信息。 + + :param hotfix_rollback_infos: The hotfix_rollback_infos of this ShowBatchUpgradeCandidateVersionsResponse. + :type hotfix_rollback_infos: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.HotfixInfo`] + """ + self._hotfix_rollback_infos = hotfix_rollback_infos + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/show_upgrade_candidate_versions_request.py b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/show_upgrade_candidate_versions_request.py index 21d951df91..00d7a1f56e 100644 --- a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/show_upgrade_candidate_versions_request.py +++ b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/show_upgrade_candidate_versions_request.py @@ -33,7 +33,7 @@ def __init__(self, instance_id=None, x_language=None): :param instance_id: 实例ID。 :type instance_id: str - :param x_language: 语言[zh-cn, en-us] + :param x_language: 语言[zh-cn, en-us]。 :type x_language: str """ @@ -73,7 +73,7 @@ def instance_id(self, instance_id): def x_language(self): """Gets the x_language of this ShowUpgradeCandidateVersionsRequest. - 语言[zh-cn, en-us] + 语言[zh-cn, en-us]。 :return: The x_language of this ShowUpgradeCandidateVersionsRequest. :rtype: str @@ -84,7 +84,7 @@ def x_language(self): def x_language(self, x_language): """Sets the x_language of this ShowUpgradeCandidateVersionsRequest. - 语言[zh-cn, en-us] + 语言[zh-cn, en-us]。 :param x_language: The x_language of this ShowUpgradeCandidateVersionsRequest. :type x_language: str diff --git a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/show_upgrade_candidate_versions_response.py b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/show_upgrade_candidate_versions_response.py index fea1345508..829828c613 100644 --- a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/show_upgrade_candidate_versions_response.py +++ b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/show_upgrade_candidate_versions_response.py @@ -50,19 +50,19 @@ def __init__(self, upgrade_type_list=None, rollback_enabled=None, source_version :param upgrade_type_list: 升级类型信息列表 :type upgrade_type_list: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.UpgradeTypeInfo`] - :param rollback_enabled: 是否可以回滚,true可以回滚,false不可以回滚 + :param rollback_enabled: 是否可以回滚,true可以回滚,false不可以回滚。 :type rollback_enabled: bool :param source_version: 原版本 :type source_version: str - :param target_version: 升级目标版本,没有在滚动升级中返回null + :param target_version: 升级目标版本,没有在滚动升级中返回null。 :type target_version: str :param roll_upgrade_progress: :type roll_upgrade_progress: :class:`huaweicloudsdkgaussdbforopengauss.v3.RollUpgradeProgress` - :param upgrade_candidate_versions: 可以升级的版本,包括大小版本,滚动升级中返回空数组 + :param upgrade_candidate_versions: 可以升级的版本,包括大小版本,滚动升级中返回空数组。 :type upgrade_candidate_versions: list[str] - :param hotfix_upgrade_candidate_versions: 可以升级的热补丁版本,滚动升级中返回空数组 + :param hotfix_upgrade_candidate_versions: 可以升级的热补丁版本,滚动升级中返回空数组。 :type hotfix_upgrade_candidate_versions: list[str] - :param hotfix_rollback_candidate_versions: 可以回滚的热补丁版本,滚动升级中返回空数组 + :param hotfix_rollback_candidate_versions: 可以回滚的热补丁版本,滚动升级中返回空数组。 :type hotfix_rollback_candidate_versions: list[str] :param hotfix_upgrade_infos: :type hotfix_upgrade_infos: :class:`huaweicloudsdkgaussdbforopengauss.v3.HotfixUpgradeInfos` @@ -131,7 +131,7 @@ def upgrade_type_list(self, upgrade_type_list): def rollback_enabled(self): """Gets the rollback_enabled of this ShowUpgradeCandidateVersionsResponse. - 是否可以回滚,true可以回滚,false不可以回滚 + 是否可以回滚,true可以回滚,false不可以回滚。 :return: The rollback_enabled of this ShowUpgradeCandidateVersionsResponse. :rtype: bool @@ -142,7 +142,7 @@ def rollback_enabled(self): def rollback_enabled(self, rollback_enabled): """Sets the rollback_enabled of this ShowUpgradeCandidateVersionsResponse. - 是否可以回滚,true可以回滚,false不可以回滚 + 是否可以回滚,true可以回滚,false不可以回滚。 :param rollback_enabled: The rollback_enabled of this ShowUpgradeCandidateVersionsResponse. :type rollback_enabled: bool @@ -175,7 +175,7 @@ def source_version(self, source_version): def target_version(self): """Gets the target_version of this ShowUpgradeCandidateVersionsResponse. - 升级目标版本,没有在滚动升级中返回null + 升级目标版本,没有在滚动升级中返回null。 :return: The target_version of this ShowUpgradeCandidateVersionsResponse. :rtype: str @@ -186,7 +186,7 @@ def target_version(self): def target_version(self, target_version): """Sets the target_version of this ShowUpgradeCandidateVersionsResponse. - 升级目标版本,没有在滚动升级中返回null + 升级目标版本,没有在滚动升级中返回null。 :param target_version: The target_version of this ShowUpgradeCandidateVersionsResponse. :type target_version: str @@ -215,7 +215,7 @@ def roll_upgrade_progress(self, roll_upgrade_progress): def upgrade_candidate_versions(self): """Gets the upgrade_candidate_versions of this ShowUpgradeCandidateVersionsResponse. - 可以升级的版本,包括大小版本,滚动升级中返回空数组 + 可以升级的版本,包括大小版本,滚动升级中返回空数组。 :return: The upgrade_candidate_versions of this ShowUpgradeCandidateVersionsResponse. :rtype: list[str] @@ -226,7 +226,7 @@ def upgrade_candidate_versions(self): def upgrade_candidate_versions(self, upgrade_candidate_versions): """Sets the upgrade_candidate_versions of this ShowUpgradeCandidateVersionsResponse. - 可以升级的版本,包括大小版本,滚动升级中返回空数组 + 可以升级的版本,包括大小版本,滚动升级中返回空数组。 :param upgrade_candidate_versions: The upgrade_candidate_versions of this ShowUpgradeCandidateVersionsResponse. :type upgrade_candidate_versions: list[str] @@ -237,7 +237,7 @@ def upgrade_candidate_versions(self, upgrade_candidate_versions): def hotfix_upgrade_candidate_versions(self): """Gets the hotfix_upgrade_candidate_versions of this ShowUpgradeCandidateVersionsResponse. - 可以升级的热补丁版本,滚动升级中返回空数组 + 可以升级的热补丁版本,滚动升级中返回空数组。 :return: The hotfix_upgrade_candidate_versions of this ShowUpgradeCandidateVersionsResponse. :rtype: list[str] @@ -248,7 +248,7 @@ def hotfix_upgrade_candidate_versions(self): def hotfix_upgrade_candidate_versions(self, hotfix_upgrade_candidate_versions): """Sets the hotfix_upgrade_candidate_versions of this ShowUpgradeCandidateVersionsResponse. - 可以升级的热补丁版本,滚动升级中返回空数组 + 可以升级的热补丁版本,滚动升级中返回空数组。 :param hotfix_upgrade_candidate_versions: The hotfix_upgrade_candidate_versions of this ShowUpgradeCandidateVersionsResponse. :type hotfix_upgrade_candidate_versions: list[str] @@ -259,7 +259,7 @@ def hotfix_upgrade_candidate_versions(self, hotfix_upgrade_candidate_versions): def hotfix_rollback_candidate_versions(self): """Gets the hotfix_rollback_candidate_versions of this ShowUpgradeCandidateVersionsResponse. - 可以回滚的热补丁版本,滚动升级中返回空数组 + 可以回滚的热补丁版本,滚动升级中返回空数组。 :return: The hotfix_rollback_candidate_versions of this ShowUpgradeCandidateVersionsResponse. :rtype: list[str] @@ -270,7 +270,7 @@ def hotfix_rollback_candidate_versions(self): def hotfix_rollback_candidate_versions(self, hotfix_rollback_candidate_versions): """Sets the hotfix_rollback_candidate_versions of this ShowUpgradeCandidateVersionsResponse. - 可以回滚的热补丁版本,滚动升级中返回空数组 + 可以回滚的热补丁版本,滚动升级中返回空数组。 :param hotfix_rollback_candidate_versions: The hotfix_rollback_candidate_versions of this ShowUpgradeCandidateVersionsResponse. :type hotfix_rollback_candidate_versions: list[str] diff --git a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_action_info.py b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_action_info.py index 5b21eeebc9..b7942bc15f 100644 --- a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_action_info.py +++ b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_action_info.py @@ -31,9 +31,9 @@ def __init__(self, upgrade_action=None, enable=None): The model defined in huaweicloud sdk - :param upgrade_action: 升级操作,upgrade=升级,upgradeAutoCommit=升级自动提交,commit=提交,rollback=回滚 + :param upgrade_action: 升级操作,upgrade=升级,upgradeAutoCommit=升级自动提交,commit=提交,rollback=回滚。 :type upgrade_action: str - :param enable: 可用,不可用 + :param enable: 可用,不可用。 :type enable: bool """ @@ -52,7 +52,7 @@ def __init__(self, upgrade_action=None, enable=None): def upgrade_action(self): """Gets the upgrade_action of this UpgradeActionInfo. - 升级操作,upgrade=升级,upgradeAutoCommit=升级自动提交,commit=提交,rollback=回滚 + 升级操作,upgrade=升级,upgradeAutoCommit=升级自动提交,commit=提交,rollback=回滚。 :return: The upgrade_action of this UpgradeActionInfo. :rtype: str @@ -63,7 +63,7 @@ def upgrade_action(self): def upgrade_action(self, upgrade_action): """Sets the upgrade_action of this UpgradeActionInfo. - 升级操作,upgrade=升级,upgradeAutoCommit=升级自动提交,commit=提交,rollback=回滚 + 升级操作,upgrade=升级,upgradeAutoCommit=升级自动提交,commit=提交,rollback=回滚。 :param upgrade_action: The upgrade_action of this UpgradeActionInfo. :type upgrade_action: str @@ -74,7 +74,7 @@ def upgrade_action(self, upgrade_action): def enable(self): """Gets the enable of this UpgradeActionInfo. - 可用,不可用 + 可用,不可用。 :return: The enable of this UpgradeActionInfo. :rtype: bool @@ -85,7 +85,7 @@ def enable(self): def enable(self, enable): """Sets the enable of this UpgradeActionInfo. - 可用,不可用 + 可用,不可用。 :param enable: The enable of this UpgradeActionInfo. :type enable: bool diff --git a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_instance_version_request.py b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_instance_version_request.py index e6355fa605..2341facba3 100644 --- a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_instance_version_request.py +++ b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_instance_version_request.py @@ -33,7 +33,7 @@ def __init__(self, x_language=None, instance_id=None, body=None): The model defined in huaweicloud sdk - :param x_language: 语言 + :param x_language: 语言。 :type x_language: str :param instance_id: 实例ID。 :type instance_id: str @@ -58,7 +58,7 @@ def __init__(self, x_language=None, instance_id=None, body=None): def x_language(self): """Gets the x_language of this UpgradeInstanceVersionRequest. - 语言 + 语言。 :return: The x_language of this UpgradeInstanceVersionRequest. :rtype: str @@ -69,7 +69,7 @@ def x_language(self): def x_language(self, x_language): """Sets the x_language of this UpgradeInstanceVersionRequest. - 语言 + 语言。 :param x_language: The x_language of this UpgradeInstanceVersionRequest. :type x_language: str diff --git a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_instances_request_body.py b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_instances_request_body.py index 2b8b2f86ea..6d18d5a7c5 100644 --- a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_instances_request_body.py +++ b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_instances_request_body.py @@ -29,7 +29,7 @@ def __init__(self, instance_ids=None): The model defined in huaweicloud sdk - :param instance_ids: 批量实例ID + :param instance_ids: 批量实例ID。 :type instance_ids: list[str] """ @@ -45,7 +45,7 @@ def __init__(self, instance_ids=None): def instance_ids(self): """Gets the instance_ids of this UpgradeInstancesRequestBody. - 批量实例ID + 批量实例ID。 :return: The instance_ids of this UpgradeInstancesRequestBody. :rtype: list[str] @@ -56,7 +56,7 @@ def instance_ids(self): def instance_ids(self, instance_ids): """Sets the instance_ids of this UpgradeInstancesRequestBody. - 批量实例ID + 批量实例ID。 :param instance_ids: The instance_ids of this UpgradeInstancesRequestBody. :type instance_ids: list[str] diff --git a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_instances_version_request.py b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_instances_version_request.py index 2cee46dd7b..0855f174d3 100644 --- a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_instances_version_request.py +++ b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_instances_version_request.py @@ -31,7 +31,7 @@ def __init__(self, x_language=None, body=None): The model defined in huaweicloud sdk - :param x_language: 语言 + :param x_language: 语言。 :type x_language: str :param body: Body of the UpgradeInstancesVersionRequest :type body: :class:`huaweicloudsdkgaussdbforopengauss.v3.GaussDBUpgradeInstancesVersionRequest` @@ -52,7 +52,7 @@ def __init__(self, x_language=None, body=None): def x_language(self): """Gets the x_language of this UpgradeInstancesVersionRequest. - 语言 + 语言。 :return: The x_language of this UpgradeInstancesVersionRequest. :rtype: str @@ -63,7 +63,7 @@ def x_language(self): def x_language(self, x_language): """Sets the x_language of this UpgradeInstancesVersionRequest. - 语言 + 语言。 :param x_language: The x_language of this UpgradeInstancesVersionRequest. :type x_language: str diff --git a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_instances_version_response.py b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_instances_version_response.py index 2bfba8c343..ef32d951cc 100644 --- a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_instances_version_response.py +++ b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_instances_version_response.py @@ -40,13 +40,13 @@ def __init__(self, job_ids=None, succeeded_num=None, failed_num=None, failed_ins :param job_ids: 任务id。 :type job_ids: list[str] - :param succeeded_num: 下发成功的实例数量 + :param succeeded_num: 下发成功的实例数量。 :type succeeded_num: int - :param failed_num: 下发失败的实例数量 + :param failed_num: 下发失败的实例数量。 :type failed_num: int - :param failed_instance_ids: 下发失败的实例ID列表 + :param failed_instance_ids: 下发失败的实例ID列表。 :type failed_instance_ids: list[str] - :param error_messages: 下发失败错误信息列表 + :param error_messages: 下发失败错误信息列表。 :type error_messages: list[str] """ @@ -96,7 +96,7 @@ def job_ids(self, job_ids): def succeeded_num(self): """Gets the succeeded_num of this UpgradeInstancesVersionResponse. - 下发成功的实例数量 + 下发成功的实例数量。 :return: The succeeded_num of this UpgradeInstancesVersionResponse. :rtype: int @@ -107,7 +107,7 @@ def succeeded_num(self): def succeeded_num(self, succeeded_num): """Sets the succeeded_num of this UpgradeInstancesVersionResponse. - 下发成功的实例数量 + 下发成功的实例数量。 :param succeeded_num: The succeeded_num of this UpgradeInstancesVersionResponse. :type succeeded_num: int @@ -118,7 +118,7 @@ def succeeded_num(self, succeeded_num): def failed_num(self): """Gets the failed_num of this UpgradeInstancesVersionResponse. - 下发失败的实例数量 + 下发失败的实例数量。 :return: The failed_num of this UpgradeInstancesVersionResponse. :rtype: int @@ -129,7 +129,7 @@ def failed_num(self): def failed_num(self, failed_num): """Sets the failed_num of this UpgradeInstancesVersionResponse. - 下发失败的实例数量 + 下发失败的实例数量。 :param failed_num: The failed_num of this UpgradeInstancesVersionResponse. :type failed_num: int @@ -140,7 +140,7 @@ def failed_num(self, failed_num): def failed_instance_ids(self): """Gets the failed_instance_ids of this UpgradeInstancesVersionResponse. - 下发失败的实例ID列表 + 下发失败的实例ID列表。 :return: The failed_instance_ids of this UpgradeInstancesVersionResponse. :rtype: list[str] @@ -151,7 +151,7 @@ def failed_instance_ids(self): def failed_instance_ids(self, failed_instance_ids): """Sets the failed_instance_ids of this UpgradeInstancesVersionResponse. - 下发失败的实例ID列表 + 下发失败的实例ID列表。 :param failed_instance_ids: The failed_instance_ids of this UpgradeInstancesVersionResponse. :type failed_instance_ids: list[str] @@ -162,7 +162,7 @@ def failed_instance_ids(self, failed_instance_ids): def error_messages(self): """Gets the error_messages of this UpgradeInstancesVersionResponse. - 下发失败错误信息列表 + 下发失败错误信息列表。 :return: The error_messages of this UpgradeInstancesVersionResponse. :rtype: list[str] @@ -173,7 +173,7 @@ def error_messages(self): def error_messages(self, error_messages): """Sets the error_messages of this UpgradeInstancesVersionResponse. - 下发失败错误信息列表 + 下发失败错误信息列表。 :param error_messages: The error_messages of this UpgradeInstancesVersionResponse. :type error_messages: list[str] diff --git a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_type_info.py b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_type_info.py index 1ef01cac48..b74804415f 100644 --- a/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_type_info.py +++ b/huaweicloud-sdk-gaussdbforopengauss/huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_type_info.py @@ -35,11 +35,11 @@ def __init__(self, upgrade_type=None, enable=None, upgrade_action_list=None, is_ The model defined in huaweicloud sdk - :param upgrade_type: 升级类型,grey=灰度升级,inplace=就地升级,hotfix=热补丁升级 + :param upgrade_type: 升级类型,grey=灰度升级,inplace=就地升级,hotfix=热补丁升级。 :type upgrade_type: str - :param enable: 可用,不可用 + :param enable: 可用,不可用。 :type enable: bool - :param upgrade_action_list: 升级操作列表 + :param upgrade_action_list: 升级操作列表。 :type upgrade_action_list: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.UpgradeActionInfo`] :param is_parallel_upgrade: 是否正在进行AZ内并行升级。 -true:当前实例处于灰度升级的升级待观察升级方式中,已选择了AZ内并行升级方式,后续无法更改。 -false:当前实例处于升级流程中,未选择AZ内并行升级的方式,后续无法更改。null:当前实例尚未处于升级流程中。 :type is_parallel_upgrade: bool @@ -66,7 +66,7 @@ def __init__(self, upgrade_type=None, enable=None, upgrade_action_list=None, is_ def upgrade_type(self): """Gets the upgrade_type of this UpgradeTypeInfo. - 升级类型,grey=灰度升级,inplace=就地升级,hotfix=热补丁升级 + 升级类型,grey=灰度升级,inplace=就地升级,hotfix=热补丁升级。 :return: The upgrade_type of this UpgradeTypeInfo. :rtype: str @@ -77,7 +77,7 @@ def upgrade_type(self): def upgrade_type(self, upgrade_type): """Sets the upgrade_type of this UpgradeTypeInfo. - 升级类型,grey=灰度升级,inplace=就地升级,hotfix=热补丁升级 + 升级类型,grey=灰度升级,inplace=就地升级,hotfix=热补丁升级。 :param upgrade_type: The upgrade_type of this UpgradeTypeInfo. :type upgrade_type: str @@ -88,7 +88,7 @@ def upgrade_type(self, upgrade_type): def enable(self): """Gets the enable of this UpgradeTypeInfo. - 可用,不可用 + 可用,不可用。 :return: The enable of this UpgradeTypeInfo. :rtype: bool @@ -99,7 +99,7 @@ def enable(self): def enable(self, enable): """Sets the enable of this UpgradeTypeInfo. - 可用,不可用 + 可用,不可用。 :param enable: The enable of this UpgradeTypeInfo. :type enable: bool @@ -110,7 +110,7 @@ def enable(self, enable): def upgrade_action_list(self): """Gets the upgrade_action_list of this UpgradeTypeInfo. - 升级操作列表 + 升级操作列表。 :return: The upgrade_action_list of this UpgradeTypeInfo. :rtype: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.UpgradeActionInfo`] @@ -121,7 +121,7 @@ def upgrade_action_list(self): def upgrade_action_list(self, upgrade_action_list): """Sets the upgrade_action_list of this UpgradeTypeInfo. - 升级操作列表 + 升级操作列表。 :param upgrade_action_list: The upgrade_action_list of this UpgradeTypeInfo. :type upgrade_action_list: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.UpgradeActionInfo`] diff --git a/huaweicloud-sdk-gaussdbforopengauss/requirements.txt b/huaweicloud-sdk-gaussdbforopengauss/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-gaussdbforopengauss/requirements.txt +++ b/huaweicloud-sdk-gaussdbforopengauss/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-gaussdbforopengauss/setup.py b/huaweicloud-sdk-gaussdbforopengauss/setup.py index 31f680d7fc..8390fd47d1 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-geip/requirements.txt b/huaweicloud-sdk-geip/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-geip/requirements.txt +++ b/huaweicloud-sdk-geip/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-geip/setup.py b/huaweicloud-sdk-geip/setup.py index 5ba0a96d62..a2f20dff76 100644 --- a/huaweicloud-sdk-geip/setup.py +++ b/huaweicloud-sdk-geip/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkgeip" -VERSION = "3.1.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ges/requirements.txt b/huaweicloud-sdk-ges/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-ges/requirements.txt +++ b/huaweicloud-sdk-ges/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-ges/setup.py b/huaweicloud-sdk-ges/setup.py index 3b7b6aa7bb..566b62ba67 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-gsl/requirements.txt b/huaweicloud-sdk-gsl/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-gsl/requirements.txt +++ b/huaweicloud-sdk-gsl/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-gsl/setup.py b/huaweicloud-sdk-gsl/setup.py index b405ae2f33..778ddba0ab 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-hilens/requirements.txt b/huaweicloud-sdk-hilens/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-hilens/requirements.txt +++ b/huaweicloud-sdk-hilens/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-hilens/setup.py b/huaweicloud-sdk-hilens/setup.py index 3ee17a1129..904ede4c09 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-hss/requirements.txt b/huaweicloud-sdk-hss/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-hss/requirements.txt +++ b/huaweicloud-sdk-hss/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-hss/setup.py b/huaweicloud-sdk-hss/setup.py index 8ef14d946b..dc7b492c26 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/iam_async_client.py b/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/iam_async_client.py index cb775a7e8b..fdc3253828 100644 --- a/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/iam_async_client.py +++ b/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/iam_async_client.py @@ -798,6 +798,73 @@ def _create_agency_custom_policy_http_info(self, request): return http_info + def create_binding_device_async(self, request): + """绑定MFA设备 + + 该接口可以用于绑定MFA设备。 + + 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreateBindingDevice + :type request: :class:`huaweicloudsdkiam.v3.CreateBindingDeviceRequest` + :rtype: :class:`huaweicloudsdkiam.v3.CreateBindingDeviceResponse` + """ + http_info = self._create_binding_device_http_info(request) + return self._call_api(**http_info) + + def create_binding_device_async_invoker(self, request): + http_info = self._create_binding_device_http_info(request) + return AsyncInvoker(self, http_info) + + def _create_binding_device_http_info(self, request): + http_info = { + "method": "PUT", + "resource_path": "/v3.0/OS-MFA/mfa-devices/bind", + "request_type": request.__class__.__name__, + "response_type": "CreateBindingDeviceResponse" + } + + 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_cloud_service_custom_policy_async(self, request): """创建云服务自定义策略 @@ -1007,6 +1074,73 @@ def _create_metadata_http_info(self, request): return http_info + def create_mfa_device_async(self, request): + """创建MFA设备 + + 该接口可以用于创建MFA设备。 + + 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreateMfaDevice + :type request: :class:`huaweicloudsdkiam.v3.CreateMfaDeviceRequest` + :rtype: :class:`huaweicloudsdkiam.v3.CreateMfaDeviceResponse` + """ + http_info = self._create_mfa_device_http_info(request) + return self._call_api(**http_info) + + def create_mfa_device_async_invoker(self, request): + http_info = self._create_mfa_device_http_info(request) + return AsyncInvoker(self, http_info) + + def _create_mfa_device_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v3.0/OS-MFA/virtual-mfa-devices", + "request_type": request.__class__.__name__, + "response_type": "CreateMfaDeviceResponse" + } + + 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_open_id_connect_config_async(self, request): """创建OpenId Connect身份提供商配置 @@ -1277,6 +1411,73 @@ def _delete_agency_http_info(self, request): return http_info + def delete_binding_device_async(self, request): + """解绑MFA设备 + + 该接口可以用于解绑MFA设备 + + 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for DeleteBindingDevice + :type request: :class:`huaweicloudsdkiam.v3.DeleteBindingDeviceRequest` + :rtype: :class:`huaweicloudsdkiam.v3.DeleteBindingDeviceResponse` + """ + http_info = self._delete_binding_device_http_info(request) + return self._call_api(**http_info) + + def delete_binding_device_async_invoker(self, request): + http_info = self._delete_binding_device_http_info(request) + return AsyncInvoker(self, http_info) + + def _delete_binding_device_http_info(self, request): + http_info = { + "method": "PUT", + "resource_path": "/v3.0/OS-MFA/mfa-devices/unbind", + "request_type": request.__class__.__name__, + "response_type": "DeleteBindingDeviceResponse" + } + + 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_custom_policy_async(self, request): """删除自定义策略 @@ -1415,33 +1616,33 @@ def _delete_domain_group_inherited_role_http_info(self, request): return http_info - def keystone_add_user_to_group_async(self, request): - """添加IAM用户到用户组 + def delete_mfa_device_async(self, request): + """删除MFA设备 - 该接口可以用于[管理员](https://support.huaweicloud.com/usermanual-iam/iam_01_0001.html)添加IAM用户到用户组。 + 该接口可以用于[管理员](https://support.huaweicloud.com/usermanual-iam/iam_01_0001.html)删除MFA设备。 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for KeystoneAddUserToGroup - :type request: :class:`huaweicloudsdkiam.v3.KeystoneAddUserToGroupRequest` - :rtype: :class:`huaweicloudsdkiam.v3.KeystoneAddUserToGroupResponse` + :param request: Request instance for DeleteMfaDevice + :type request: :class:`huaweicloudsdkiam.v3.DeleteMfaDeviceRequest` + :rtype: :class:`huaweicloudsdkiam.v3.DeleteMfaDeviceResponse` """ - http_info = self._keystone_add_user_to_group_http_info(request) + http_info = self._delete_mfa_device_http_info(request) return self._call_api(**http_info) - def keystone_add_user_to_group_async_invoker(self, request): - http_info = self._keystone_add_user_to_group_http_info(request) + def delete_mfa_device_async_invoker(self, request): + http_info = self._delete_mfa_device_http_info(request) return AsyncInvoker(self, http_info) - def _keystone_add_user_to_group_http_info(self, request): + def _delete_mfa_device_http_info(self, request): http_info = { - "method": "PUT", - "resource_path": "/v3/groups/{group_id}/users/{user_id}", + "method": "DELETE", + "resource_path": "/v3.0/OS-MFA/virtual-mfa-devices", "request_type": request.__class__.__name__, - "response_type": "KeystoneAddUserToGroupResponse" + "response_type": "DeleteMfaDeviceResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1451,12 +1652,12 @@ def _keystone_add_user_to_group_http_info(self, request): collection_formats = {} path_params = {} - if 'group_id' in local_var_params: - path_params['group_id'] = local_var_params['group_id'] - if 'user_id' in local_var_params: - path_params['user_id'] = local_var_params['user_id'] query_params = [] + if 'user_id' in local_var_params: + query_params.append(('user_id', local_var_params['user_id'])) + if 'serial_number' in local_var_params: + query_params.append(('serial_number', local_var_params['serial_number'])) header_params = {} @@ -1484,31 +1685,100 @@ def _keystone_add_user_to_group_http_info(self, request): return http_info - def keystone_associate_group_with_domain_permission_async(self, request): - """为用户组授予全局服务权限 + def keystone_add_user_to_group_async(self, request): + """添加IAM用户到用户组 - 该接口可以用于[管理员](https://support.huaweicloud.com/usermanual-iam/iam_01_0001.html)为用户组授予全局服务权限。 + 该接口可以用于[管理员](https://support.huaweicloud.com/usermanual-iam/iam_01_0001.html)添加IAM用户到用户组。 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for KeystoneAssociateGroupWithDomainPermission - :type request: :class:`huaweicloudsdkiam.v3.KeystoneAssociateGroupWithDomainPermissionRequest` - :rtype: :class:`huaweicloudsdkiam.v3.KeystoneAssociateGroupWithDomainPermissionResponse` + :param request: Request instance for KeystoneAddUserToGroup + :type request: :class:`huaweicloudsdkiam.v3.KeystoneAddUserToGroupRequest` + :rtype: :class:`huaweicloudsdkiam.v3.KeystoneAddUserToGroupResponse` """ - http_info = self._keystone_associate_group_with_domain_permission_http_info(request) + http_info = self._keystone_add_user_to_group_http_info(request) return self._call_api(**http_info) - def keystone_associate_group_with_domain_permission_async_invoker(self, request): - http_info = self._keystone_associate_group_with_domain_permission_http_info(request) + def keystone_add_user_to_group_async_invoker(self, request): + http_info = self._keystone_add_user_to_group_http_info(request) return AsyncInvoker(self, http_info) - def _keystone_associate_group_with_domain_permission_http_info(self, request): + def _keystone_add_user_to_group_http_info(self, request): http_info = { "method": "PUT", - "resource_path": "/v3/domains/{domain_id}/groups/{group_id}/roles/{role_id}", + "resource_path": "/v3/groups/{group_id}/users/{user_id}", + "request_type": request.__class__.__name__, + "response_type": "KeystoneAddUserToGroupResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'group_id' in local_var_params: + path_params['group_id'] = local_var_params['group_id'] + if 'user_id' in local_var_params: + path_params['user_id'] = local_var_params['user_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 keystone_associate_group_with_domain_permission_async(self, request): + """为用户组授予全局服务权限 + + 该接口可以用于[管理员](https://support.huaweicloud.com/usermanual-iam/iam_01_0001.html)为用户组授予全局服务权限。 + + 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for KeystoneAssociateGroupWithDomainPermission + :type request: :class:`huaweicloudsdkiam.v3.KeystoneAssociateGroupWithDomainPermissionRequest` + :rtype: :class:`huaweicloudsdkiam.v3.KeystoneAssociateGroupWithDomainPermissionResponse` + """ + http_info = self._keystone_associate_group_with_domain_permission_http_info(request) + return self._call_api(**http_info) + + def keystone_associate_group_with_domain_permission_async_invoker(self, request): + http_info = self._keystone_associate_group_with_domain_permission_http_info(request) + return AsyncInvoker(self, http_info) + + def _keystone_associate_group_with_domain_permission_http_info(self, request): + http_info = { + "method": "PUT", + "resource_path": "/v3/domains/{domain_id}/groups/{group_id}/roles/{role_id}", "request_type": request.__class__.__name__, "response_type": "KeystoneAssociateGroupWithDomainPermissionResponse" } @@ -5523,7 +5793,7 @@ def _list_enterprise_projects_for_group_http_info(self, request): return http_info def list_enterprise_projects_for_user_async(self, request): - """查询用户关联的企业项目 + """查询用户直接关联的企业项目 该接口可用于查询用户所关联的企业项目。 @@ -5726,7 +5996,7 @@ def _list_project_permissions_for_agency_http_info(self, request): return http_info def list_roles_for_group_on_enterprise_project_async(self, request): - """查询企业项目已关联用户组的权限 + """查询企业项目关联用户组的权限 该接口可用于查询企业项目已关联用户组的权限。 @@ -8481,140 +8751,6 @@ def _update_permanent_access_key_http_info(self, request): return http_info - def create_binding_device_async(self, request): - """绑定MFA设备 - - 该接口可以用于绑定MFA设备。 - - 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。 - - Please refer to HUAWEI cloud API Explorer for details. - - - :param request: Request instance for CreateBindingDevice - :type request: :class:`huaweicloudsdkiam.v3.CreateBindingDeviceRequest` - :rtype: :class:`huaweicloudsdkiam.v3.CreateBindingDeviceResponse` - """ - http_info = self._create_binding_device_http_info(request) - return self._call_api(**http_info) - - def create_binding_device_async_invoker(self, request): - http_info = self._create_binding_device_http_info(request) - return AsyncInvoker(self, http_info) - - def _create_binding_device_http_info(self, request): - http_info = { - "method": "PUT", - "resource_path": "/v3.0/OS-MFA/mfa-devices/bind", - "request_type": request.__class__.__name__, - "response_type": "CreateBindingDeviceResponse" - } - - 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_mfa_device_async(self, request): - """创建MFA设备 - - 该接口可以用于创建MFA设备。 - - 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。 - - Please refer to HUAWEI cloud API Explorer for details. - - - :param request: Request instance for CreateMfaDevice - :type request: :class:`huaweicloudsdkiam.v3.CreateMfaDeviceRequest` - :rtype: :class:`huaweicloudsdkiam.v3.CreateMfaDeviceResponse` - """ - http_info = self._create_mfa_device_http_info(request) - return self._call_api(**http_info) - - def create_mfa_device_async_invoker(self, request): - http_info = self._create_mfa_device_http_info(request) - return AsyncInvoker(self, http_info) - - def _create_mfa_device_http_info(self, request): - http_info = { - "method": "POST", - "resource_path": "/v3.0/OS-MFA/virtual-mfa-devices", - "request_type": request.__class__.__name__, - "response_type": "CreateMfaDeviceResponse" - } - - 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_user_async(self, request): """管理员创建IAM用户(推荐) @@ -8682,142 +8818,6 @@ def _create_user_http_info(self, request): return http_info - def delete_binding_device_async(self, request): - """解绑MFA设备 - - 该接口可以用于解绑MFA设备 - - 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。 - - Please refer to HUAWEI cloud API Explorer for details. - - - :param request: Request instance for DeleteBindingDevice - :type request: :class:`huaweicloudsdkiam.v3.DeleteBindingDeviceRequest` - :rtype: :class:`huaweicloudsdkiam.v3.DeleteBindingDeviceResponse` - """ - http_info = self._delete_binding_device_http_info(request) - return self._call_api(**http_info) - - def delete_binding_device_async_invoker(self, request): - http_info = self._delete_binding_device_http_info(request) - return AsyncInvoker(self, http_info) - - def _delete_binding_device_http_info(self, request): - http_info = { - "method": "PUT", - "resource_path": "/v3.0/OS-MFA/mfa-devices/unbind", - "request_type": request.__class__.__name__, - "response_type": "DeleteBindingDeviceResponse" - } - - 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_mfa_device_async(self, request): - """删除MFA设备 - - 该接口可以用于[管理员](https://support.huaweicloud.com/usermanual-iam/iam_01_0001.html)删除MFA设备。 - - 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。 - - Please refer to HUAWEI cloud API Explorer for details. - - - :param request: Request instance for DeleteMfaDevice - :type request: :class:`huaweicloudsdkiam.v3.DeleteMfaDeviceRequest` - :rtype: :class:`huaweicloudsdkiam.v3.DeleteMfaDeviceResponse` - """ - http_info = self._delete_mfa_device_http_info(request) - return self._call_api(**http_info) - - def delete_mfa_device_async_invoker(self, request): - http_info = self._delete_mfa_device_http_info(request) - return AsyncInvoker(self, http_info) - - def _delete_mfa_device_http_info(self, request): - http_info = { - "method": "DELETE", - "resource_path": "/v3.0/OS-MFA/virtual-mfa-devices", - "request_type": request.__class__.__name__, - "response_type": "DeleteMfaDeviceResponse" - } - - 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 'user_id' in local_var_params: - query_params.append(('user_id', local_var_params['user_id'])) - if 'serial_number' in local_var_params: - query_params.append(('serial_number', local_var_params['serial_number'])) - - 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 keystone_create_user_async(self, request): """管理员创建IAM用户 @@ -9430,7 +9430,7 @@ def _list_user_login_protects_http_info(self, request): return http_info def list_user_mfa_devices_async(self, request): - """该接口可以用于获取MFA设备。 + """查询IAM用户的MFA绑定信息列表 该接口可以用于[管理员](https://support.huaweicloud.com/usermanual-iam/iam_01_0001.html)查询IAM用户的MFA绑定信息列表。 diff --git a/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/iam_client.py b/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/iam_client.py index 2e0fd4d7ba..de416866ed 100644 --- a/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/iam_client.py +++ b/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/iam_client.py @@ -798,6 +798,73 @@ def _create_agency_custom_policy_http_info(cls, request): return http_info + def create_binding_device(self, request): + """绑定MFA设备 + + 该接口可以用于绑定MFA设备。 + + 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreateBindingDevice + :type request: :class:`huaweicloudsdkiam.v3.CreateBindingDeviceRequest` + :rtype: :class:`huaweicloudsdkiam.v3.CreateBindingDeviceResponse` + """ + http_info = self._create_binding_device_http_info(request) + return self._call_api(**http_info) + + def create_binding_device_invoker(self, request): + http_info = self._create_binding_device_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _create_binding_device_http_info(cls, request): + http_info = { + "method": "PUT", + "resource_path": "/v3.0/OS-MFA/mfa-devices/bind", + "request_type": request.__class__.__name__, + "response_type": "CreateBindingDeviceResponse" + } + + 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_cloud_service_custom_policy(self, request): """创建云服务自定义策略 @@ -1007,6 +1074,73 @@ def _create_metadata_http_info(cls, request): return http_info + def create_mfa_device(self, request): + """创建MFA设备 + + 该接口可以用于创建MFA设备。 + + 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreateMfaDevice + :type request: :class:`huaweicloudsdkiam.v3.CreateMfaDeviceRequest` + :rtype: :class:`huaweicloudsdkiam.v3.CreateMfaDeviceResponse` + """ + http_info = self._create_mfa_device_http_info(request) + return self._call_api(**http_info) + + def create_mfa_device_invoker(self, request): + http_info = self._create_mfa_device_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _create_mfa_device_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v3.0/OS-MFA/virtual-mfa-devices", + "request_type": request.__class__.__name__, + "response_type": "CreateMfaDeviceResponse" + } + + 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_open_id_connect_config(self, request): """创建OpenId Connect身份提供商配置 @@ -1277,6 +1411,73 @@ def _delete_agency_http_info(cls, request): return http_info + def delete_binding_device(self, request): + """解绑MFA设备 + + 该接口可以用于解绑MFA设备 + + 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for DeleteBindingDevice + :type request: :class:`huaweicloudsdkiam.v3.DeleteBindingDeviceRequest` + :rtype: :class:`huaweicloudsdkiam.v3.DeleteBindingDeviceResponse` + """ + http_info = self._delete_binding_device_http_info(request) + return self._call_api(**http_info) + + def delete_binding_device_invoker(self, request): + http_info = self._delete_binding_device_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _delete_binding_device_http_info(cls, request): + http_info = { + "method": "PUT", + "resource_path": "/v3.0/OS-MFA/mfa-devices/unbind", + "request_type": request.__class__.__name__, + "response_type": "DeleteBindingDeviceResponse" + } + + 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_custom_policy(self, request): """删除自定义策略 @@ -1415,33 +1616,33 @@ def _delete_domain_group_inherited_role_http_info(cls, request): return http_info - def keystone_add_user_to_group(self, request): - """添加IAM用户到用户组 + def delete_mfa_device(self, request): + """删除MFA设备 - 该接口可以用于[管理员](https://support.huaweicloud.com/usermanual-iam/iam_01_0001.html)添加IAM用户到用户组。 + 该接口可以用于[管理员](https://support.huaweicloud.com/usermanual-iam/iam_01_0001.html)删除MFA设备。 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for KeystoneAddUserToGroup - :type request: :class:`huaweicloudsdkiam.v3.KeystoneAddUserToGroupRequest` - :rtype: :class:`huaweicloudsdkiam.v3.KeystoneAddUserToGroupResponse` + :param request: Request instance for DeleteMfaDevice + :type request: :class:`huaweicloudsdkiam.v3.DeleteMfaDeviceRequest` + :rtype: :class:`huaweicloudsdkiam.v3.DeleteMfaDeviceResponse` """ - http_info = self._keystone_add_user_to_group_http_info(request) + http_info = self._delete_mfa_device_http_info(request) return self._call_api(**http_info) - def keystone_add_user_to_group_invoker(self, request): - http_info = self._keystone_add_user_to_group_http_info(request) + def delete_mfa_device_invoker(self, request): + http_info = self._delete_mfa_device_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _keystone_add_user_to_group_http_info(cls, request): + def _delete_mfa_device_http_info(cls, request): http_info = { - "method": "PUT", - "resource_path": "/v3/groups/{group_id}/users/{user_id}", + "method": "DELETE", + "resource_path": "/v3.0/OS-MFA/virtual-mfa-devices", "request_type": request.__class__.__name__, - "response_type": "KeystoneAddUserToGroupResponse" + "response_type": "DeleteMfaDeviceResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -1451,12 +1652,12 @@ def _keystone_add_user_to_group_http_info(cls, request): collection_formats = {} path_params = {} - if 'group_id' in local_var_params: - path_params['group_id'] = local_var_params['group_id'] - if 'user_id' in local_var_params: - path_params['user_id'] = local_var_params['user_id'] query_params = [] + if 'user_id' in local_var_params: + query_params.append(('user_id', local_var_params['user_id'])) + if 'serial_number' in local_var_params: + query_params.append(('serial_number', local_var_params['serial_number'])) header_params = {} @@ -1484,31 +1685,100 @@ def _keystone_add_user_to_group_http_info(cls, request): return http_info - def keystone_associate_group_with_domain_permission(self, request): - """为用户组授予全局服务权限 + def keystone_add_user_to_group(self, request): + """添加IAM用户到用户组 - 该接口可以用于[管理员](https://support.huaweicloud.com/usermanual-iam/iam_01_0001.html)为用户组授予全局服务权限。 + 该接口可以用于[管理员](https://support.huaweicloud.com/usermanual-iam/iam_01_0001.html)添加IAM用户到用户组。 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for KeystoneAssociateGroupWithDomainPermission - :type request: :class:`huaweicloudsdkiam.v3.KeystoneAssociateGroupWithDomainPermissionRequest` - :rtype: :class:`huaweicloudsdkiam.v3.KeystoneAssociateGroupWithDomainPermissionResponse` + :param request: Request instance for KeystoneAddUserToGroup + :type request: :class:`huaweicloudsdkiam.v3.KeystoneAddUserToGroupRequest` + :rtype: :class:`huaweicloudsdkiam.v3.KeystoneAddUserToGroupResponse` """ - http_info = self._keystone_associate_group_with_domain_permission_http_info(request) + http_info = self._keystone_add_user_to_group_http_info(request) return self._call_api(**http_info) - def keystone_associate_group_with_domain_permission_invoker(self, request): - http_info = self._keystone_associate_group_with_domain_permission_http_info(request) + def keystone_add_user_to_group_invoker(self, request): + http_info = self._keystone_add_user_to_group_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _keystone_associate_group_with_domain_permission_http_info(cls, request): + def _keystone_add_user_to_group_http_info(cls, request): http_info = { "method": "PUT", - "resource_path": "/v3/domains/{domain_id}/groups/{group_id}/roles/{role_id}", + "resource_path": "/v3/groups/{group_id}/users/{user_id}", + "request_type": request.__class__.__name__, + "response_type": "KeystoneAddUserToGroupResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'group_id' in local_var_params: + path_params['group_id'] = local_var_params['group_id'] + if 'user_id' in local_var_params: + path_params['user_id'] = local_var_params['user_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 keystone_associate_group_with_domain_permission(self, request): + """为用户组授予全局服务权限 + + 该接口可以用于[管理员](https://support.huaweicloud.com/usermanual-iam/iam_01_0001.html)为用户组授予全局服务权限。 + + 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for KeystoneAssociateGroupWithDomainPermission + :type request: :class:`huaweicloudsdkiam.v3.KeystoneAssociateGroupWithDomainPermissionRequest` + :rtype: :class:`huaweicloudsdkiam.v3.KeystoneAssociateGroupWithDomainPermissionResponse` + """ + http_info = self._keystone_associate_group_with_domain_permission_http_info(request) + return self._call_api(**http_info) + + def keystone_associate_group_with_domain_permission_invoker(self, request): + http_info = self._keystone_associate_group_with_domain_permission_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _keystone_associate_group_with_domain_permission_http_info(cls, request): + http_info = { + "method": "PUT", + "resource_path": "/v3/domains/{domain_id}/groups/{group_id}/roles/{role_id}", "request_type": request.__class__.__name__, "response_type": "KeystoneAssociateGroupWithDomainPermissionResponse" } @@ -5523,7 +5793,7 @@ def _list_enterprise_projects_for_group_http_info(cls, request): return http_info def list_enterprise_projects_for_user(self, request): - """查询用户关联的企业项目 + """查询用户直接关联的企业项目 该接口可用于查询用户所关联的企业项目。 @@ -5726,7 +5996,7 @@ def _list_project_permissions_for_agency_http_info(cls, request): return http_info def list_roles_for_group_on_enterprise_project(self, request): - """查询企业项目已关联用户组的权限 + """查询企业项目关联用户组的权限 该接口可用于查询企业项目已关联用户组的权限。 @@ -8481,140 +8751,6 @@ def _update_permanent_access_key_http_info(cls, request): return http_info - def create_binding_device(self, request): - """绑定MFA设备 - - 该接口可以用于绑定MFA设备。 - - 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。 - - Please refer to HUAWEI cloud API Explorer for details. - - :param request: Request instance for CreateBindingDevice - :type request: :class:`huaweicloudsdkiam.v3.CreateBindingDeviceRequest` - :rtype: :class:`huaweicloudsdkiam.v3.CreateBindingDeviceResponse` - """ - http_info = self._create_binding_device_http_info(request) - return self._call_api(**http_info) - - def create_binding_device_invoker(self, request): - http_info = self._create_binding_device_http_info(request) - return SyncInvoker(self, http_info) - - @classmethod - def _create_binding_device_http_info(cls, request): - http_info = { - "method": "PUT", - "resource_path": "/v3.0/OS-MFA/mfa-devices/bind", - "request_type": request.__class__.__name__, - "response_type": "CreateBindingDeviceResponse" - } - - 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_mfa_device(self, request): - """创建MFA设备 - - 该接口可以用于创建MFA设备。 - - 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。 - - Please refer to HUAWEI cloud API Explorer for details. - - :param request: Request instance for CreateMfaDevice - :type request: :class:`huaweicloudsdkiam.v3.CreateMfaDeviceRequest` - :rtype: :class:`huaweicloudsdkiam.v3.CreateMfaDeviceResponse` - """ - http_info = self._create_mfa_device_http_info(request) - return self._call_api(**http_info) - - def create_mfa_device_invoker(self, request): - http_info = self._create_mfa_device_http_info(request) - return SyncInvoker(self, http_info) - - @classmethod - def _create_mfa_device_http_info(cls, request): - http_info = { - "method": "POST", - "resource_path": "/v3.0/OS-MFA/virtual-mfa-devices", - "request_type": request.__class__.__name__, - "response_type": "CreateMfaDeviceResponse" - } - - 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_user(self, request): """管理员创建IAM用户(推荐) @@ -8682,142 +8818,6 @@ def _create_user_http_info(cls, request): return http_info - def delete_binding_device(self, request): - """解绑MFA设备 - - 该接口可以用于解绑MFA设备 - - 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。 - - Please refer to HUAWEI cloud API Explorer for details. - - :param request: Request instance for DeleteBindingDevice - :type request: :class:`huaweicloudsdkiam.v3.DeleteBindingDeviceRequest` - :rtype: :class:`huaweicloudsdkiam.v3.DeleteBindingDeviceResponse` - """ - http_info = self._delete_binding_device_http_info(request) - return self._call_api(**http_info) - - def delete_binding_device_invoker(self, request): - http_info = self._delete_binding_device_http_info(request) - return SyncInvoker(self, http_info) - - @classmethod - def _delete_binding_device_http_info(cls, request): - http_info = { - "method": "PUT", - "resource_path": "/v3.0/OS-MFA/mfa-devices/unbind", - "request_type": request.__class__.__name__, - "response_type": "DeleteBindingDeviceResponse" - } - - 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_mfa_device(self, request): - """删除MFA设备 - - 该接口可以用于[管理员](https://support.huaweicloud.com/usermanual-iam/iam_01_0001.html)删除MFA设备。 - - 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。 - - Please refer to HUAWEI cloud API Explorer for details. - - :param request: Request instance for DeleteMfaDevice - :type request: :class:`huaweicloudsdkiam.v3.DeleteMfaDeviceRequest` - :rtype: :class:`huaweicloudsdkiam.v3.DeleteMfaDeviceResponse` - """ - http_info = self._delete_mfa_device_http_info(request) - return self._call_api(**http_info) - - def delete_mfa_device_invoker(self, request): - http_info = self._delete_mfa_device_http_info(request) - return SyncInvoker(self, http_info) - - @classmethod - def _delete_mfa_device_http_info(cls, request): - http_info = { - "method": "DELETE", - "resource_path": "/v3.0/OS-MFA/virtual-mfa-devices", - "request_type": request.__class__.__name__, - "response_type": "DeleteMfaDeviceResponse" - } - - 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 'user_id' in local_var_params: - query_params.append(('user_id', local_var_params['user_id'])) - if 'serial_number' in local_var_params: - query_params.append(('serial_number', local_var_params['serial_number'])) - - 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 keystone_create_user(self, request): """管理员创建IAM用户 @@ -9430,7 +9430,7 @@ def _list_user_login_protects_http_info(cls, request): return http_info def list_user_mfa_devices(self, request): - """该接口可以用于获取MFA设备。 + """查询IAM用户的MFA绑定信息列表 该接口可以用于[管理员](https://support.huaweicloud.com/usermanual-iam/iam_01_0001.html)查询IAM用户的MFA绑定信息列表。 diff --git a/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/agency_policy_statement.py b/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/agency_policy_statement.py index 111fff4281..ccadf26850 100644 --- a/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/agency_policy_statement.py +++ b/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/agency_policy_statement.py @@ -50,7 +50,8 @@ def __init__(self, action=None, effect=None, resource=None): self.action = action self.effect = effect - self.resource = resource + if resource is not None: + self.resource = resource @property def action(self): diff --git a/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/protocol_option.py b/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/protocol_option.py index b9b7db3803..2f9429110a 100644 --- a/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/protocol_option.py +++ b/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/protocol_option.py @@ -38,8 +38,7 @@ def __init__(self, mapping_id=None): self._mapping_id = None self.discriminator = None - if mapping_id is not None: - self.mapping_id = mapping_id + self.mapping_id = mapping_id @property def mapping_id(self): diff --git a/huaweicloud-sdk-iam/requirements.txt b/huaweicloud-sdk-iam/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-iam/requirements.txt +++ b/huaweicloud-sdk-iam/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-iam/setup.py b/huaweicloud-sdk-iam/setup.py index 9cc022c5e0..3a6e03b2ef 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-iamaccessanalyzer/requirements.txt b/huaweicloud-sdk-iamaccessanalyzer/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-iamaccessanalyzer/requirements.txt +++ b/huaweicloud-sdk-iamaccessanalyzer/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-iamaccessanalyzer/setup.py b/huaweicloud-sdk-iamaccessanalyzer/setup.py index 52b247a1e8..bc674e3c88 100644 --- a/huaweicloud-sdk-iamaccessanalyzer/setup.py +++ b/huaweicloud-sdk-iamaccessanalyzer/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkiamaccessanalyzer" -VERSION = "3.1.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-identitycenter/requirements.txt b/huaweicloud-sdk-identitycenter/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-identitycenter/requirements.txt +++ b/huaweicloud-sdk-identitycenter/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-identitycenter/setup.py b/huaweicloud-sdk-identitycenter/setup.py index 4c00a12c13..afd9ba9f6b 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-identitycenterstore/requirements.txt b/huaweicloud-sdk-identitycenterstore/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-identitycenterstore/requirements.txt +++ b/huaweicloud-sdk-identitycenterstore/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-identitycenterstore/setup.py b/huaweicloud-sdk-identitycenterstore/setup.py index c74ed45850..e898dac10b 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-idme/requirements.txt b/huaweicloud-sdk-idme/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-idme/requirements.txt +++ b/huaweicloud-sdk-idme/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-idme/setup.py b/huaweicloud-sdk-idme/setup.py index 24c0c30004..32adba9225 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-idmeclassicapi/requirements.txt b/huaweicloud-sdk-idmeclassicapi/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-idmeclassicapi/requirements.txt +++ b/huaweicloud-sdk-idmeclassicapi/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-idmeclassicapi/setup.py b/huaweicloud-sdk-idmeclassicapi/setup.py index 185ea2a87f..f07a488b27 100644 --- a/huaweicloud-sdk-idmeclassicapi/setup.py +++ b/huaweicloud-sdk-idmeclassicapi/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkidmeclassicapi" -VERSION = "3.1.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-iec/requirements.txt b/huaweicloud-sdk-iec/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-iec/requirements.txt +++ b/huaweicloud-sdk-iec/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-iec/setup.py b/huaweicloud-sdk-iec/setup.py index 458ea18596..b79dd6d563 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ief/requirements.txt b/huaweicloud-sdk-ief/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-ief/requirements.txt +++ b/huaweicloud-sdk-ief/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-ief/setup.py b/huaweicloud-sdk-ief/setup.py index 2007c23ec2..88fbf025e8 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-image/requirements.txt b/huaweicloud-sdk-image/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-image/requirements.txt +++ b/huaweicloud-sdk-image/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-image/setup.py b/huaweicloud-sdk-image/setup.py index fdaa6b1ef4..fd23f0600a 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-imagesearch/requirements.txt b/huaweicloud-sdk-imagesearch/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-imagesearch/requirements.txt +++ b/huaweicloud-sdk-imagesearch/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-imagesearch/setup.py b/huaweicloud-sdk-imagesearch/setup.py index a6a091bb2d..7a9c7a2d66 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ims/huaweicloudsdkims/v2/model/image_info.py b/huaweicloud-sdk-ims/huaweicloudsdkims/v2/model/image_info.py index 6c0670074b..b62f5b5691 100644 --- a/huaweicloud-sdk-ims/huaweicloudsdkims/v2/model/image_info.py +++ b/huaweicloud-sdk-ims/huaweicloudsdkims/v2/model/image_info.py @@ -233,7 +233,7 @@ def __init__(self, backup_id=None, data_origin=None, description=None, image_siz :type virtual_env_type: str :param virtual_size: 目前暂时不使用 :type virtual_size: int - :param visibility: 是否被其他租户可见,取值为private或public + :param visibility: 是否被其他租户可见,取值为private、public或shared :type visibility: str :param support_fc_inject: 表示当前镜像支持CloudInit密码/密钥注入方式,建议设置为\"true\"或者\"false\"。 如果取值为\"true\",表示该镜像不支持CloudInit注入密码/密钥,其他取值时表示支持CloudInit注入密钥/密码。 :type support_fc_inject: str @@ -1384,7 +1384,7 @@ def virtual_size(self, virtual_size): def visibility(self): """Gets the visibility of this ImageInfo. - 是否被其他租户可见,取值为private或public + 是否被其他租户可见,取值为private、public或shared :return: The visibility of this ImageInfo. :rtype: str @@ -1395,7 +1395,7 @@ def visibility(self): def visibility(self, visibility): """Sets the visibility of this ImageInfo. - 是否被其他租户可见,取值为private或public + 是否被其他租户可见,取值为private、public或shared :param visibility: The visibility of this ImageInfo. :type visibility: str diff --git a/huaweicloud-sdk-ims/huaweicloudsdkims/v2/model/list_images_request.py b/huaweicloud-sdk-ims/huaweicloudsdkims/v2/model/list_images_request.py index d909c8d670..7601dfbcd7 100644 --- a/huaweicloud-sdk-ims/huaweicloudsdkims/v2/model/list_images_request.py +++ b/huaweicloud-sdk-ims/huaweicloudsdkims/v2/model/list_images_request.py @@ -163,7 +163,7 @@ def __init__(self, imagetype=None, isregistered=None, os_bit=None, os_type=None, :type tag: str :param virtual_env_type: 镜像使用环境类型:FusionCompute,Ironic,DataImage。如果弹性云服务器镜像,则取值为FusionCompute,如果是数据卷镜像则取值是DataImage,如果是裸金属服务器镜像,则取值是Ironic。 :type virtual_env_type: str - :param visibility: 是否被其他租户可见,取值为public或private + :param visibility: 是否被其他租户可见,取值为public、private或shared :type visibility: str :param x_sdk_date: 请求的发生时间,格式为YYYYMMDDTHHMMSSZ。取值为当前系统的GMT时间。使用AK/SK认证时该字段必选 :type x_sdk_date: str @@ -979,7 +979,7 @@ def virtual_env_type(self, virtual_env_type): def visibility(self): """Gets the visibility of this ListImagesRequest. - 是否被其他租户可见,取值为public或private + 是否被其他租户可见,取值为public、private或shared :return: The visibility of this ListImagesRequest. :rtype: str @@ -990,7 +990,7 @@ def visibility(self): def visibility(self, visibility): """Sets the visibility of this ListImagesRequest. - 是否被其他租户可见,取值为public或private + 是否被其他租户可见,取值为public、private或shared :param visibility: The visibility of this ListImagesRequest. :type visibility: str diff --git a/huaweicloud-sdk-ims/huaweicloudsdkims/v2/model/update_image_response.py b/huaweicloud-sdk-ims/huaweicloudsdkims/v2/model/update_image_response.py index ce8e58d992..f054081454 100644 --- a/huaweicloud-sdk-ims/huaweicloudsdkims/v2/model/update_image_response.py +++ b/huaweicloud-sdk-ims/huaweicloudsdkims/v2/model/update_image_response.py @@ -234,7 +234,7 @@ def __init__(self, backup_id=None, data_origin=None, description=None, image_siz :type virtual_env_type: str :param virtual_size: 目前暂时不使用 :type virtual_size: int - :param visibility: 是否被其他租户可见,取值为private或public + :param visibility: 是否被其他租户可见,取值为private、public或shared :type visibility: str :param support_fc_inject: 表示当前镜像支持CloudInit密码/密钥注入方式,建议设置为\"true\"或者\"false\"。 如果取值为\"true\",表示该镜像不支持CloudInit注入密码/密钥,其他取值时表示支持CloudInit注入密钥/密码。 :type support_fc_inject: str @@ -1405,7 +1405,7 @@ def virtual_size(self, virtual_size): def visibility(self): """Gets the visibility of this UpdateImageResponse. - 是否被其他租户可见,取值为private或public + 是否被其他租户可见,取值为private、public或shared :return: The visibility of this UpdateImageResponse. :rtype: str @@ -1416,7 +1416,7 @@ def visibility(self): def visibility(self, visibility): """Sets the visibility of this UpdateImageResponse. - 是否被其他租户可见,取值为private或public + 是否被其他租户可见,取值为private、public或shared :param visibility: The visibility of this UpdateImageResponse. :type visibility: str diff --git a/huaweicloud-sdk-ims/requirements.txt b/huaweicloud-sdk-ims/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-ims/requirements.txt +++ b/huaweicloud-sdk-ims/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-ims/setup.py b/huaweicloud-sdk-ims/setup.py index a95cf3397e..1734d8b830 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-iotanalytics/requirements.txt b/huaweicloud-sdk-iotanalytics/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-iotanalytics/requirements.txt +++ b/huaweicloud-sdk-iotanalytics/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-iotanalytics/setup.py b/huaweicloud-sdk-iotanalytics/setup.py index 11a91c1f90..f973ea13a0 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-iotda/requirements.txt b/huaweicloud-sdk-iotda/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-iotda/requirements.txt +++ b/huaweicloud-sdk-iotda/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-iotda/setup.py b/huaweicloud-sdk-iotda/setup.py index 363f9659c4..1834c81523 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-iotdm/requirements.txt b/huaweicloud-sdk-iotdm/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-iotdm/requirements.txt +++ b/huaweicloud-sdk-iotdm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-iotdm/setup.py b/huaweicloud-sdk-iotdm/setup.py index f3aa2aa553..e5031b6159 100644 --- a/huaweicloud-sdk-iotdm/setup.py +++ b/huaweicloud-sdk-iotdm/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkiotdm" -VERSION = "3.1.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-iotedge/requirements.txt b/huaweicloud-sdk-iotedge/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-iotedge/requirements.txt +++ b/huaweicloud-sdk-iotedge/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-iotedge/setup.py b/huaweicloud-sdk-iotedge/setup.py index 79df31de0e..207232805f 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ivs/requirements.txt b/huaweicloud-sdk-ivs/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-ivs/requirements.txt +++ b/huaweicloud-sdk-ivs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-ivs/setup.py b/huaweicloud-sdk-ivs/setup.py index 56ebe6fe61..fdb62a8239 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-kafka/requirements.txt b/huaweicloud-sdk-kafka/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-kafka/requirements.txt +++ b/huaweicloud-sdk-kafka/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-kafka/setup.py b/huaweicloud-sdk-kafka/setup.py index 355fbf9049..0b92eb66cf 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-kms/requirements.txt b/huaweicloud-sdk-kms/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-kms/requirements.txt +++ b/huaweicloud-sdk-kms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-kms/setup.py b/huaweicloud-sdk-kms/setup.py index 513536cf93..b829ecafe4 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-koomessage/huaweicloudsdkkoomessage/v1/model/aim_template.py b/huaweicloud-sdk-koomessage/huaweicloudsdkkoomessage/v1/model/aim_template.py index a7d7685f40..385c9fcd64 100644 --- a/huaweicloud-sdk-koomessage/huaweicloudsdkkoomessage/v1/model/aim_template.py +++ b/huaweicloud-sdk-koomessage/huaweicloudsdkkoomessage/v1/model/aim_template.py @@ -30,7 +30,11 @@ class AIMTemplate: 'update_time': 'str', 'pages': 'str', 'params': 'list[AIMTemplateParams]', - 'factory_info': 'list[FactoryInfo]' + 'factory_info': 'list[FactoryInfo]', + 'match_type': 'int', + 'card_id': 'str', + 'sub_type': 'int', + 'preview_url': 'str' } attribute_map = { @@ -47,10 +51,14 @@ class AIMTemplate: 'update_time': 'update_time', 'pages': 'pages', 'params': 'params', - 'factory_info': 'factory_info' + 'factory_info': 'factory_info', + 'match_type': 'match_type', + 'card_id': 'card_id', + 'sub_type': 'sub_type', + 'preview_url': 'preview_url' } - def __init__(self, tpl_id=None, tpl_name=None, scene=None, tpl_state=None, disable_desc=None, disable_time=None, audit_state=None, audit_desc=None, description=None, creation_time=None, update_time=None, pages=None, params=None, factory_info=None): + def __init__(self, tpl_id=None, tpl_name=None, scene=None, tpl_state=None, disable_desc=None, disable_time=None, audit_state=None, audit_desc=None, description=None, creation_time=None, update_time=None, pages=None, params=None, factory_info=None, match_type=None, card_id=None, sub_type=None, preview_url=None): """AIMTemplate The model defined in huaweicloud sdk @@ -83,6 +91,14 @@ def __init__(self, tpl_id=None, tpl_name=None, scene=None, tpl_state=None, disab :type params: list[:class:`huaweicloudsdkkoomessage.v1.AIMTemplateParams`] :param factory_info: 支持厂商列表。 :type factory_info: list[:class:`huaweicloudsdkkoomessage.v1.FactoryInfo`] + :param match_type: 审核状态。 - 1:短链解析模板 - 2:文本识别模板 - 4:一体化模板 + :type match_type: int + :param card_id: 布局类型。 + :type card_id: str + :param sub_type: sub_type。 + :type sub_type: int + :param preview_url: 模板二维码预览地址。 + :type preview_url: str """ @@ -101,6 +117,10 @@ def __init__(self, tpl_id=None, tpl_name=None, scene=None, tpl_state=None, disab self._pages = None self._params = None self._factory_info = None + self._match_type = None + self._card_id = None + self._sub_type = None + self._preview_url = None self.discriminator = None if tpl_id is not None: @@ -131,6 +151,14 @@ def __init__(self, tpl_id=None, tpl_name=None, scene=None, tpl_state=None, disab self.params = params if factory_info is not None: self.factory_info = factory_info + if match_type is not None: + self.match_type = match_type + if card_id is not None: + self.card_id = card_id + if sub_type is not None: + self.sub_type = sub_type + if preview_url is not None: + self.preview_url = preview_url @property def tpl_id(self): @@ -440,6 +468,94 @@ def factory_info(self, factory_info): """ self._factory_info = factory_info + @property + def match_type(self): + """Gets the match_type of this AIMTemplate. + + 审核状态。 - 1:短链解析模板 - 2:文本识别模板 - 4:一体化模板 + + :return: The match_type of this AIMTemplate. + :rtype: int + """ + return self._match_type + + @match_type.setter + def match_type(self, match_type): + """Sets the match_type of this AIMTemplate. + + 审核状态。 - 1:短链解析模板 - 2:文本识别模板 - 4:一体化模板 + + :param match_type: The match_type of this AIMTemplate. + :type match_type: int + """ + self._match_type = match_type + + @property + def card_id(self): + """Gets the card_id of this AIMTemplate. + + 布局类型。 + + :return: The card_id of this AIMTemplate. + :rtype: str + """ + return self._card_id + + @card_id.setter + def card_id(self, card_id): + """Sets the card_id of this AIMTemplate. + + 布局类型。 + + :param card_id: The card_id of this AIMTemplate. + :type card_id: str + """ + self._card_id = card_id + + @property + def sub_type(self): + """Gets the sub_type of this AIMTemplate. + + sub_type。 + + :return: The sub_type of this AIMTemplate. + :rtype: int + """ + return self._sub_type + + @sub_type.setter + def sub_type(self, sub_type): + """Sets the sub_type of this AIMTemplate. + + sub_type。 + + :param sub_type: The sub_type of this AIMTemplate. + :type sub_type: int + """ + self._sub_type = sub_type + + @property + def preview_url(self): + """Gets the preview_url of this AIMTemplate. + + 模板二维码预览地址。 + + :return: The preview_url of this AIMTemplate. + :rtype: str + """ + return self._preview_url + + @preview_url.setter + def preview_url(self, preview_url): + """Sets the preview_url of this AIMTemplate. + + 模板二维码预览地址。 + + :param preview_url: The preview_url of this AIMTemplate. + :type preview_url: str + """ + self._preview_url = preview_url + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-koomessage/huaweicloudsdkkoomessage/v1/model/create_pub_fastapp_model.py b/huaweicloud-sdk-koomessage/huaweicloudsdkkoomessage/v1/model/create_pub_fastapp_model.py index 7869a5a8d9..a8ee69d8f9 100644 --- a/huaweicloud-sdk-koomessage/huaweicloudsdkkoomessage/v1/model/create_pub_fastapp_model.py +++ b/huaweicloud-sdk-koomessage/huaweicloudsdkkoomessage/v1/model/create_pub_fastapp_model.py @@ -60,8 +60,7 @@ def __init__(self, name=None, logo_img=None, description=None, deeplink=None, de self.name = name self.logo_img = logo_img - if description is not None: - self.description = description + self.description = description self.deeplink = deeplink self.depend_engine_version = depend_engine_version diff --git a/huaweicloud-sdk-koomessage/huaweicloudsdkkoomessage/v1/model/factory_info.py b/huaweicloud-sdk-koomessage/huaweicloudsdkkoomessage/v1/model/factory_info.py index 1466a6d612..cec3b88ca3 100644 --- a/huaweicloud-sdk-koomessage/huaweicloudsdkkoomessage/v1/model/factory_info.py +++ b/huaweicloud-sdk-koomessage/huaweicloudsdkkoomessage/v1/model/factory_info.py @@ -19,16 +19,18 @@ class FactoryInfo: openapi_types = { 'factory_type': 'str', 'state': 'int', - 'version': 'str' + 'version': 'str', + 'tpl_id': 'str' } attribute_map = { 'factory_type': 'factory_type', 'state': 'state', - 'version': 'version' + 'version': 'version', + 'tpl_id': 'tpl_id' } - def __init__(self, factory_type=None, state=None, version=None): + def __init__(self, factory_type=None, state=None, version=None, tpl_id=None): """FactoryInfo The model defined in huaweicloud sdk @@ -39,6 +41,8 @@ def __init__(self, factory_type=None, state=None, version=None): :type state: int :param version: 厂商版本 :type version: str + :param tpl_id: 智能信息模板ID + :type tpl_id: str """ @@ -46,12 +50,15 @@ def __init__(self, factory_type=None, state=None, version=None): self._factory_type = None self._state = None self._version = None + self._tpl_id = None self.discriminator = None self.factory_type = factory_type self.state = state if version is not None: self.version = version + if tpl_id is not None: + self.tpl_id = tpl_id @property def factory_type(self): @@ -119,6 +126,28 @@ def version(self, version): """ self._version = version + @property + def tpl_id(self): + """Gets the tpl_id of this FactoryInfo. + + 智能信息模板ID + + :return: The tpl_id of this FactoryInfo. + :rtype: str + """ + return self._tpl_id + + @tpl_id.setter + def tpl_id(self, tpl_id): + """Sets the tpl_id of this FactoryInfo. + + 智能信息模板ID + + :param tpl_id: The tpl_id of this FactoryInfo. + :type tpl_id: str + """ + self._tpl_id = tpl_id + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-koomessage/huaweicloudsdkkoomessage/v1/model/list_thumbnail.py b/huaweicloud-sdk-koomessage/huaweicloudsdkkoomessage/v1/model/list_thumbnail.py index f7b2ce90e5..a86b450a31 100644 --- a/huaweicloud-sdk-koomessage/huaweicloudsdkkoomessage/v1/model/list_thumbnail.py +++ b/huaweicloud-sdk-koomessage/huaweicloudsdkkoomessage/v1/model/list_thumbnail.py @@ -25,7 +25,11 @@ class ListThumbnail: 'obs_object_key': 'str', 'image_rate': 'str', 'is_auto_gen': 'int', - 'description': 'str' + 'description': 'str', + 'obs_bucket_name': 'str', + 'domain_id': 'str', + 'size': 'int', + 'obs_file_url': 'str' } attribute_map = { @@ -37,10 +41,14 @@ class ListThumbnail: 'obs_object_key': 'obs_object_key', 'image_rate': 'image_rate', 'is_auto_gen': 'is_auto_gen', - 'description': 'description' + 'description': 'description', + 'obs_bucket_name': 'obs_bucket_name', + 'domain_id': 'domain_id', + 'size': 'size', + 'obs_file_url': 'obs_file_url' } - def __init__(self, id=None, created_at=None, is_primary=None, file_name=None, aim_resource_id=None, obs_object_key=None, image_rate=None, is_auto_gen=None, description=None): + def __init__(self, id=None, created_at=None, is_primary=None, file_name=None, aim_resource_id=None, obs_object_key=None, image_rate=None, is_auto_gen=None, description=None, obs_bucket_name=None, domain_id=None, size=None, obs_file_url=None): """ListThumbnail The model defined in huaweicloud sdk @@ -57,12 +65,20 @@ def __init__(self, id=None, created_at=None, is_primary=None, file_name=None, ai :type aim_resource_id: str :param obs_object_key: 从OBS返回的文件Key。 :type obs_object_key: str - :param image_rate: 图像比例。 - oneToOne:指1:1比例 - sixteenToNine:指16:9比例 - threeToOne:指3:1比例 - fortyEightToSixtyFive:指48:65比例 - twentyOneToNine:指21:9比例 + :param image_rate: 图像比例。 - oneToOne:指1:1比例 - sixteenToNine:指16:9比例 - threeToOne:指3:1比例 - fortyEightToSixtyFive:指48:65比例 - twentyOneToNine:指21:9比例 - threeToFour:指3:4比例 :type image_rate: str :param is_auto_gen: 视频封面图是否自动从系统生成。 - 0:系统自动生成 - 1:上传自定义 :type is_auto_gen: int :param description: 视频封面图的详细描述。 :type description: str + :param obs_bucket_name: OBS桶名称。 + :type obs_bucket_name: str + :param domain_id: 租户ID。 + :type domain_id: str + :param size: 素材所占空间大小。 + :type size: int + :param obs_file_url: 文件访问路径。 + :type obs_file_url: str """ @@ -76,6 +92,10 @@ def __init__(self, id=None, created_at=None, is_primary=None, file_name=None, ai self._image_rate = None self._is_auto_gen = None self._description = None + self._obs_bucket_name = None + self._domain_id = None + self._size = None + self._obs_file_url = None self.discriminator = None self.id = id @@ -90,6 +110,14 @@ def __init__(self, id=None, created_at=None, is_primary=None, file_name=None, ai self.is_auto_gen = is_auto_gen if description is not None: self.description = description + if obs_bucket_name is not None: + self.obs_bucket_name = obs_bucket_name + if domain_id is not None: + self.domain_id = domain_id + if size is not None: + self.size = size + if obs_file_url is not None: + self.obs_file_url = obs_file_url @property def id(self): @@ -227,7 +255,7 @@ def obs_object_key(self, obs_object_key): def image_rate(self): """Gets the image_rate of this ListThumbnail. - 图像比例。 - oneToOne:指1:1比例 - sixteenToNine:指16:9比例 - threeToOne:指3:1比例 - fortyEightToSixtyFive:指48:65比例 - twentyOneToNine:指21:9比例 + 图像比例。 - oneToOne:指1:1比例 - sixteenToNine:指16:9比例 - threeToOne:指3:1比例 - fortyEightToSixtyFive:指48:65比例 - twentyOneToNine:指21:9比例 - threeToFour:指3:4比例 :return: The image_rate of this ListThumbnail. :rtype: str @@ -238,7 +266,7 @@ def image_rate(self): def image_rate(self, image_rate): """Sets the image_rate of this ListThumbnail. - 图像比例。 - oneToOne:指1:1比例 - sixteenToNine:指16:9比例 - threeToOne:指3:1比例 - fortyEightToSixtyFive:指48:65比例 - twentyOneToNine:指21:9比例 + 图像比例。 - oneToOne:指1:1比例 - sixteenToNine:指16:9比例 - threeToOne:指3:1比例 - fortyEightToSixtyFive:指48:65比例 - twentyOneToNine:指21:9比例 - threeToFour:指3:4比例 :param image_rate: The image_rate of this ListThumbnail. :type image_rate: str @@ -289,6 +317,94 @@ def description(self, description): """ self._description = description + @property + def obs_bucket_name(self): + """Gets the obs_bucket_name of this ListThumbnail. + + OBS桶名称。 + + :return: The obs_bucket_name of this ListThumbnail. + :rtype: str + """ + return self._obs_bucket_name + + @obs_bucket_name.setter + def obs_bucket_name(self, obs_bucket_name): + """Sets the obs_bucket_name of this ListThumbnail. + + OBS桶名称。 + + :param obs_bucket_name: The obs_bucket_name of this ListThumbnail. + :type obs_bucket_name: str + """ + self._obs_bucket_name = obs_bucket_name + + @property + def domain_id(self): + """Gets the domain_id of this ListThumbnail. + + 租户ID。 + + :return: The domain_id of this ListThumbnail. + :rtype: str + """ + return self._domain_id + + @domain_id.setter + def domain_id(self, domain_id): + """Sets the domain_id of this ListThumbnail. + + 租户ID。 + + :param domain_id: The domain_id of this ListThumbnail. + :type domain_id: str + """ + self._domain_id = domain_id + + @property + def size(self): + """Gets the size of this ListThumbnail. + + 素材所占空间大小。 + + :return: The size of this ListThumbnail. + :rtype: int + """ + return self._size + + @size.setter + def size(self, size): + """Sets the size of this ListThumbnail. + + 素材所占空间大小。 + + :param size: The size of this ListThumbnail. + :type size: int + """ + self._size = size + + @property + def obs_file_url(self): + """Gets the obs_file_url of this ListThumbnail. + + 文件访问路径。 + + :return: The obs_file_url of this ListThumbnail. + :rtype: str + """ + return self._obs_file_url + + @obs_file_url.setter + def obs_file_url(self, obs_file_url): + """Sets the obs_file_url of this ListThumbnail. + + 文件访问路径。 + + :param obs_file_url: The obs_file_url of this ListThumbnail. + :type obs_file_url: str + """ + self._obs_file_url = obs_file_url + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-koomessage/huaweicloudsdkkoomessage/v1/model/lock_port_request_body.py b/huaweicloud-sdk-koomessage/huaweicloudsdkkoomessage/v1/model/lock_port_request_body.py index 13946d5ff6..738290ec50 100644 --- a/huaweicloud-sdk-koomessage/huaweicloudsdkkoomessage/v1/model/lock_port_request_body.py +++ b/huaweicloud-sdk-koomessage/huaweicloudsdkkoomessage/v1/model/lock_port_request_body.py @@ -41,7 +41,7 @@ def __init__(self, pub_id=None, port=None, province=None, sign=None, ext_port_id :type pub_id: str :param port: 通道号。 - port_type=5时,长度必须为5 - port_type=1或3,长度在21位内 :type port: str - :param province: 通道号绑定/解绑的province字段取值范围如下: 全国、河北省、山西省、辽宁省、吉林省、黑龙江省、江苏省、浙江省、安徽省、福建省、江西省、山东省、河南省、湖北省、湖南省、广东省、海南省、四川省、贵州省、云南省、陕西省、甘肃省、青海省、台湾省、内蒙古自治区、广西壮族自治区、西藏自治区、宁夏回族自治区、新疆维吾尔自治区、北京市、天津市、上海市、重庆市、香港特别行政区、澳门特别行政区。 + :param province: 绑定的地区,不允许传入重叠地区。地区取值见《地区名称列表》。 :type province: str :param sign: 绑定签名,必须是该端口号签名的子集。单个签名长度为2-18。 :type sign: list[str] @@ -112,7 +112,7 @@ def port(self, port): def province(self): """Gets the province of this LockPortRequestBody. - 通道号绑定/解绑的province字段取值范围如下: 全国、河北省、山西省、辽宁省、吉林省、黑龙江省、江苏省、浙江省、安徽省、福建省、江西省、山东省、河南省、湖北省、湖南省、广东省、海南省、四川省、贵州省、云南省、陕西省、甘肃省、青海省、台湾省、内蒙古自治区、广西壮族自治区、西藏自治区、宁夏回族自治区、新疆维吾尔自治区、北京市、天津市、上海市、重庆市、香港特别行政区、澳门特别行政区。 + 绑定的地区,不允许传入重叠地区。地区取值见《地区名称列表》。 :return: The province of this LockPortRequestBody. :rtype: str @@ -123,7 +123,7 @@ def province(self): def province(self, province): """Sets the province of this LockPortRequestBody. - 通道号绑定/解绑的province字段取值范围如下: 全国、河北省、山西省、辽宁省、吉林省、黑龙江省、江苏省、浙江省、安徽省、福建省、江西省、山东省、河南省、湖北省、湖南省、广东省、海南省、四川省、贵州省、云南省、陕西省、甘肃省、青海省、台湾省、内蒙古自治区、广西壮族自治区、西藏自治区、宁夏回族自治区、新疆维吾尔自治区、北京市、天津市、上海市、重庆市、香港特别行政区、澳门特别行政区。 + 绑定的地区,不允许传入重叠地区。地区取值见《地区名称列表》。 :param province: The province of this LockPortRequestBody. :type province: str diff --git a/huaweicloud-sdk-koomessage/huaweicloudsdkkoomessage/v1/model/menus_rsp.py b/huaweicloud-sdk-koomessage/huaweicloudsdkkoomessage/v1/model/menus_rsp.py index b5d278628a..56043a7480 100644 --- a/huaweicloud-sdk-koomessage/huaweicloudsdkkoomessage/v1/model/menus_rsp.py +++ b/huaweicloud-sdk-koomessage/huaweicloudsdkkoomessage/v1/model/menus_rsp.py @@ -26,7 +26,9 @@ class MenusRsp: 'menu_state': 'int', 'approve_state': 'int', 'online_time': 'str', - 'oper_time': 'str' + 'oper_time': 'str', + 'company_id': 'str', + 'company_name': 'str' } attribute_map = { @@ -39,10 +41,12 @@ class MenusRsp: 'menu_state': 'menu_state', 'approve_state': 'approve_state', 'online_time': 'online_time', - 'oper_time': 'oper_time' + 'oper_time': 'oper_time', + 'company_id': 'company_id', + 'company_name': 'company_name' } - def __init__(self, menu_id=None, pub_id=None, pub_name=None, logo_img=None, logo_url=None, menu=None, menu_state=None, approve_state=None, online_time=None, oper_time=None): + def __init__(self, menu_id=None, pub_id=None, pub_name=None, logo_img=None, logo_url=None, menu=None, menu_state=None, approve_state=None, online_time=None, oper_time=None, company_id=None, company_name=None): """MenusRsp The model defined in huaweicloud sdk @@ -67,6 +71,10 @@ def __init__(self, menu_id=None, pub_id=None, pub_name=None, logo_img=None, logo :type online_time: str :param oper_time: 最新操作时间。格式为:2020-12-12T12:00:00Z。 :type oper_time: str + :param company_id: 企业ID。 + :type company_id: str + :param company_name: 企业名称。 + :type company_name: str """ @@ -81,6 +89,8 @@ def __init__(self, menu_id=None, pub_id=None, pub_name=None, logo_img=None, logo self._approve_state = None self._online_time = None self._oper_time = None + self._company_id = None + self._company_name = None self.discriminator = None if menu_id is not None: @@ -103,6 +113,10 @@ def __init__(self, menu_id=None, pub_id=None, pub_name=None, logo_img=None, logo self.online_time = online_time if oper_time is not None: self.oper_time = oper_time + if company_id is not None: + self.company_id = company_id + if company_name is not None: + self.company_name = company_name @property def menu_id(self): @@ -320,6 +334,50 @@ def oper_time(self, oper_time): """ self._oper_time = oper_time + @property + def company_id(self): + """Gets the company_id of this MenusRsp. + + 企业ID。 + + :return: The company_id of this MenusRsp. + :rtype: str + """ + return self._company_id + + @company_id.setter + def company_id(self, company_id): + """Sets the company_id of this MenusRsp. + + 企业ID。 + + :param company_id: The company_id of this MenusRsp. + :type company_id: str + """ + self._company_id = company_id + + @property + def company_name(self): + """Gets the company_name of this MenusRsp. + + 企业名称。 + + :return: The company_name of this MenusRsp. + :rtype: str + """ + return self._company_name + + @company_name.setter + def company_name(self, company_name): + """Sets the company_name of this MenusRsp. + + 企业名称。 + + :param company_name: The company_name of this MenusRsp. + :type company_name: str + """ + self._company_name = company_name + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-koomessage/huaweicloudsdkkoomessage/v1/model/pub_detail.py b/huaweicloud-sdk-koomessage/huaweicloudsdkkoomessage/v1/model/pub_detail.py index cde4b4af7f..f441e418d0 100644 --- a/huaweicloud-sdk-koomessage/huaweicloudsdkkoomessage/v1/model/pub_detail.py +++ b/huaweicloud-sdk-koomessage/huaweicloudsdkkoomessage/v1/model/pub_detail.py @@ -31,7 +31,9 @@ class PubDetail: 'pub_abstract': 'str', 'signs_for_auto_get_port': 'list[str]', 'company_id': 'str', - 'pub_remark': 'str' + 'pub_remark': 'str', + 'approve_state': 'int', + 'areas_for_auto_get_port': 'list[str]' } attribute_map = { @@ -49,10 +51,12 @@ class PubDetail: 'pub_abstract': 'pub_abstract', 'signs_for_auto_get_port': 'signs_for_auto_get_port', 'company_id': 'company_id', - 'pub_remark': 'pub_remark' + 'pub_remark': 'pub_remark', + 'approve_state': 'approve_state', + 'areas_for_auto_get_port': 'areas_for_auto_get_port' } - def __init__(self, pub_id=None, oper_time=None, state=None, online_time=None, company_name=None, pub_name=None, logo_img=None, logo_url=None, authorization_files=None, auto_get_port=None, industry=None, pub_abstract=None, signs_for_auto_get_port=None, company_id=None, pub_remark=None): + def __init__(self, pub_id=None, oper_time=None, state=None, online_time=None, company_name=None, pub_name=None, logo_img=None, logo_url=None, authorization_files=None, auto_get_port=None, industry=None, pub_abstract=None, signs_for_auto_get_port=None, company_id=None, pub_remark=None, approve_state=None, areas_for_auto_get_port=None): """PubDetail The model defined in huaweicloud sdk @@ -87,6 +91,10 @@ def __init__(self, pub_id=None, oper_time=None, state=None, online_time=None, co :type company_id: str :param pub_remark: 服务号备注。 :type pub_remark: str + :param approve_state: 审核状态。 - 1:审核中 - 2:审核通过 - 3:驳回 + :type approve_state: int + :param areas_for_auto_get_port: 自动收集端口生效的地区列表。地区取值见《地区名称列表》。 + :type areas_for_auto_get_port: list[str] """ @@ -106,6 +114,8 @@ def __init__(self, pub_id=None, oper_time=None, state=None, online_time=None, co self._signs_for_auto_get_port = None self._company_id = None self._pub_remark = None + self._approve_state = None + self._areas_for_auto_get_port = None self.discriminator = None if pub_id is not None: @@ -138,6 +148,10 @@ def __init__(self, pub_id=None, oper_time=None, state=None, online_time=None, co self.company_id = company_id if pub_remark is not None: self.pub_remark = pub_remark + if approve_state is not None: + self.approve_state = approve_state + if areas_for_auto_get_port is not None: + self.areas_for_auto_get_port = areas_for_auto_get_port @property def pub_id(self): @@ -469,6 +483,50 @@ def pub_remark(self, pub_remark): """ self._pub_remark = pub_remark + @property + def approve_state(self): + """Gets the approve_state of this PubDetail. + + 审核状态。 - 1:审核中 - 2:审核通过 - 3:驳回 + + :return: The approve_state of this PubDetail. + :rtype: int + """ + return self._approve_state + + @approve_state.setter + def approve_state(self, approve_state): + """Sets the approve_state of this PubDetail. + + 审核状态。 - 1:审核中 - 2:审核通过 - 3:驳回 + + :param approve_state: The approve_state of this PubDetail. + :type approve_state: int + """ + self._approve_state = approve_state + + @property + def areas_for_auto_get_port(self): + """Gets the areas_for_auto_get_port of this PubDetail. + + 自动收集端口生效的地区列表。地区取值见《地区名称列表》。 + + :return: The areas_for_auto_get_port of this PubDetail. + :rtype: list[str] + """ + return self._areas_for_auto_get_port + + @areas_for_auto_get_port.setter + def areas_for_auto_get_port(self, areas_for_auto_get_port): + """Sets the areas_for_auto_get_port of this PubDetail. + + 自动收集端口生效的地区列表。地区取值见《地区名称列表》。 + + :param areas_for_auto_get_port: The areas_for_auto_get_port of this PubDetail. + :type areas_for_auto_get_port: list[str] + """ + self._areas_for_auto_get_port = areas_for_auto_get_port + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-koomessage/huaweicloudsdkkoomessage/v1/model/pub_info_request_body.py b/huaweicloud-sdk-koomessage/huaweicloudsdkkoomessage/v1/model/pub_info_request_body.py index 54a8b1e94a..a6d45557e2 100644 --- a/huaweicloud-sdk-koomessage/huaweicloudsdkkoomessage/v1/model/pub_info_request_body.py +++ b/huaweicloud-sdk-koomessage/huaweicloudsdkkoomessage/v1/model/pub_info_request_body.py @@ -23,6 +23,7 @@ class PubInfoRequestBody: 'pub_remark': 'str', 'auto_get_port': 'int', 'signs_for_auto_get_port': 'list[str]', + 'areas_for_auto_get_port': 'list[str]', 'industry': 'int', 'authorization_files': 'list[str]' } @@ -34,11 +35,12 @@ class PubInfoRequestBody: 'pub_remark': 'pub_remark', 'auto_get_port': 'auto_get_port', 'signs_for_auto_get_port': 'signs_for_auto_get_port', + 'areas_for_auto_get_port': 'areas_for_auto_get_port', 'industry': 'industry', 'authorization_files': 'authorization_files' } - def __init__(self, logo_img=None, pub_name=None, pub_abstract=None, pub_remark=None, auto_get_port=None, signs_for_auto_get_port=None, industry=None, authorization_files=None): + def __init__(self, logo_img=None, pub_name=None, pub_abstract=None, pub_remark=None, auto_get_port=None, signs_for_auto_get_port=None, areas_for_auto_get_port=None, industry=None, authorization_files=None): """PubInfoRequestBody The model defined in huaweicloud sdk @@ -55,9 +57,11 @@ def __init__(self, logo_img=None, pub_name=None, pub_abstract=None, pub_remark=N :type auto_get_port: int :param signs_for_auto_get_port: 自动收集端口使用的签名列表。 > auto_get_port为1时,该字段为必填,每个签名长度为2-18个字符,每个服务号签名不可以重复。 :type signs_for_auto_get_port: list[str] + :param areas_for_auto_get_port: 自动收集端口生效的地区列表。地区取值见《地区名称列表》。 > auto_get_port为1时,该字段有效。不填则默认全国,不允许传入重叠地区。 + :type areas_for_auto_get_port: list[str] :param industry: 从事行业,默认取服务号所属商家的行业分类。 - 1:金融理财 - 2:社交通讯 - 3:影音娱乐 - 4:旅游出行 - 5:购物 - 6:本地生活 - 7:运动健康 - 8:教育培训 - 9:新闻阅读 - 10:运营商 - 11:其他 :type industry: int - :param authorization_files: 授权证明图片ID,最多支持6张。 > 参数值为上传智能信息服务号图片资源API返回的resource_id。 + :param authorization_files: 授权证明图片ID,支持jpg、bmp、png和jpeg格式,全部图片总大小不超过4M,最多支持6张。 > 参数值为上传智能信息服务号图片资源API返回的resource_id。 :type authorization_files: list[str] """ @@ -69,6 +73,7 @@ def __init__(self, logo_img=None, pub_name=None, pub_abstract=None, pub_remark=N self._pub_remark = None self._auto_get_port = None self._signs_for_auto_get_port = None + self._areas_for_auto_get_port = None self._industry = None self._authorization_files = None self.discriminator = None @@ -82,6 +87,8 @@ def __init__(self, logo_img=None, pub_name=None, pub_abstract=None, pub_remark=N self.auto_get_port = auto_get_port if signs_for_auto_get_port is not None: self.signs_for_auto_get_port = signs_for_auto_get_port + if areas_for_auto_get_port is not None: + self.areas_for_auto_get_port = areas_for_auto_get_port if industry is not None: self.industry = industry self.authorization_files = authorization_files @@ -218,6 +225,28 @@ def signs_for_auto_get_port(self, signs_for_auto_get_port): """ self._signs_for_auto_get_port = signs_for_auto_get_port + @property + def areas_for_auto_get_port(self): + """Gets the areas_for_auto_get_port of this PubInfoRequestBody. + + 自动收集端口生效的地区列表。地区取值见《地区名称列表》。 > auto_get_port为1时,该字段有效。不填则默认全国,不允许传入重叠地区。 + + :return: The areas_for_auto_get_port of this PubInfoRequestBody. + :rtype: list[str] + """ + return self._areas_for_auto_get_port + + @areas_for_auto_get_port.setter + def areas_for_auto_get_port(self, areas_for_auto_get_port): + """Sets the areas_for_auto_get_port of this PubInfoRequestBody. + + 自动收集端口生效的地区列表。地区取值见《地区名称列表》。 > auto_get_port为1时,该字段有效。不填则默认全国,不允许传入重叠地区。 + + :param areas_for_auto_get_port: The areas_for_auto_get_port of this PubInfoRequestBody. + :type areas_for_auto_get_port: list[str] + """ + self._areas_for_auto_get_port = areas_for_auto_get_port + @property def industry(self): """Gets the industry of this PubInfoRequestBody. @@ -244,7 +273,7 @@ def industry(self, industry): def authorization_files(self): """Gets the authorization_files of this PubInfoRequestBody. - 授权证明图片ID,最多支持6张。 > 参数值为上传智能信息服务号图片资源API返回的resource_id。 + 授权证明图片ID,支持jpg、bmp、png和jpeg格式,全部图片总大小不超过4M,最多支持6张。 > 参数值为上传智能信息服务号图片资源API返回的resource_id。 :return: The authorization_files of this PubInfoRequestBody. :rtype: list[str] @@ -255,7 +284,7 @@ def authorization_files(self): def authorization_files(self, authorization_files): """Sets the authorization_files of this PubInfoRequestBody. - 授权证明图片ID,最多支持6张。 > 参数值为上传智能信息服务号图片资源API返回的resource_id。 + 授权证明图片ID,支持jpg、bmp、png和jpeg格式,全部图片总大小不超过4M,最多支持6张。 > 参数值为上传智能信息服务号图片资源API返回的resource_id。 :param authorization_files: The authorization_files of this PubInfoRequestBody. :type authorization_files: list[str] diff --git a/huaweicloud-sdk-koomessage/huaweicloudsdkkoomessage/v1/model/register_port_request_body.py b/huaweicloud-sdk-koomessage/huaweicloudsdkkoomessage/v1/model/register_port_request_body.py index 8647e3fa3d..9f42d42a23 100644 --- a/huaweicloud-sdk-koomessage/huaweicloudsdkkoomessage/v1/model/register_port_request_body.py +++ b/huaweicloud-sdk-koomessage/huaweicloudsdkkoomessage/v1/model/register_port_request_body.py @@ -45,7 +45,7 @@ def __init__(self, port=None, port_type=None, sign=None, sign_check=None, author :type sign: list[str] :param sign_check: 是否需要校验。 - 0:不校验 - 1:校验签名 > 当port_type为3或者5时,sign_check必须为1。 :type sign_check: int - :param authorization_files: 授权证明图片资源,最多支持5张。参数格式为:*资源ID:资源URL*,样例:3d214a61672846f88ad77597f935cccc:AimSauploadService/272957b708ac4891a6d5282ccd2175cccc.png。 > 资源ID与资源URL对应上传智能信息服务号图片资源API返回的resource_id和resource_url。 + :param authorization_files: 授权证明图片资源,支持jpg、bmp、png和jpeg格式,全部图片总大小不超过4M,最多支持5张。参数格式为:*资源ID:资源URL*,样例:3d214a61672846f88ad77597f935cccc:AimSauploadService/272957b708ac4891a6d5282ccd2175cccc.png。 > 资源ID与资源URL对应上传智能信息服务号图片资源API返回的resource_id和resource_url。 :type authorization_files: list[str] """ @@ -156,7 +156,7 @@ def sign_check(self, sign_check): def authorization_files(self): """Gets the authorization_files of this RegisterPortRequestBody. - 授权证明图片资源,最多支持5张。参数格式为:*资源ID:资源URL*,样例:3d214a61672846f88ad77597f935cccc:AimSauploadService/272957b708ac4891a6d5282ccd2175cccc.png。 > 资源ID与资源URL对应上传智能信息服务号图片资源API返回的resource_id和resource_url。 + 授权证明图片资源,支持jpg、bmp、png和jpeg格式,全部图片总大小不超过4M,最多支持5张。参数格式为:*资源ID:资源URL*,样例:3d214a61672846f88ad77597f935cccc:AimSauploadService/272957b708ac4891a6d5282ccd2175cccc.png。 > 资源ID与资源URL对应上传智能信息服务号图片资源API返回的resource_id和resource_url。 :return: The authorization_files of this RegisterPortRequestBody. :rtype: list[str] @@ -167,7 +167,7 @@ def authorization_files(self): def authorization_files(self, authorization_files): """Sets the authorization_files of this RegisterPortRequestBody. - 授权证明图片资源,最多支持5张。参数格式为:*资源ID:资源URL*,样例:3d214a61672846f88ad77597f935cccc:AimSauploadService/272957b708ac4891a6d5282ccd2175cccc.png。 > 资源ID与资源URL对应上传智能信息服务号图片资源API返回的resource_id和resource_url。 + 授权证明图片资源,支持jpg、bmp、png和jpeg格式,全部图片总大小不超过4M,最多支持5张。参数格式为:*资源ID:资源URL*,样例:3d214a61672846f88ad77597f935cccc:AimSauploadService/272957b708ac4891a6d5282ccd2175cccc.png。 > 资源ID与资源URL对应上传智能信息服务号图片资源API返回的resource_id和resource_url。 :param authorization_files: The authorization_files of this RegisterPortRequestBody. :type authorization_files: list[str] diff --git a/huaweicloud-sdk-koomessage/huaweicloudsdkkoomessage/v1/model/thumbnail.py b/huaweicloud-sdk-koomessage/huaweicloudsdkkoomessage/v1/model/thumbnail.py index 57fda30a74..688e5cd3e0 100644 --- a/huaweicloud-sdk-koomessage/huaweicloudsdkkoomessage/v1/model/thumbnail.py +++ b/huaweicloud-sdk-koomessage/huaweicloudsdkkoomessage/v1/model/thumbnail.py @@ -24,9 +24,11 @@ class Thumbnail: 'file_name': 'str', 'aim_resource_id': 'str', 'obs_object_key': 'str', + 'obs_file_url': 'str', 'image_rate': 'str', 'is_auto_gen': 'int', - 'description': 'str' + 'description': 'str', + 'size': 'int' } attribute_map = { @@ -37,12 +39,14 @@ class Thumbnail: 'file_name': 'file_name', 'aim_resource_id': 'aim_resource_id', 'obs_object_key': 'obs_object_key', + 'obs_file_url': 'obs_file_url', 'image_rate': 'image_rate', 'is_auto_gen': 'is_auto_gen', - 'description': 'description' + 'description': 'description', + 'size': 'size' } - def __init__(self, id=None, created_at=None, is_primary=None, resource_type=None, file_name=None, aim_resource_id=None, obs_object_key=None, image_rate=None, is_auto_gen=None, description=None): + def __init__(self, id=None, created_at=None, is_primary=None, resource_type=None, file_name=None, aim_resource_id=None, obs_object_key=None, obs_file_url=None, image_rate=None, is_auto_gen=None, description=None, size=None): """Thumbnail The model defined in huaweicloud sdk @@ -61,12 +65,16 @@ def __init__(self, id=None, created_at=None, is_primary=None, resource_type=None :type aim_resource_id: str :param obs_object_key: 从OBS返回的文件Key。 :type obs_object_key: str - :param image_rate: 图像比例。 - oneToOne:指1:1比例 - sixteenToNine:指16:9比例 - threeToOne:指3:1比例 - fortyEightToSixtyFive:指48:65比例 - twentyOneToNine:指21:9比例 + :param obs_file_url: 文件访问路径。 + :type obs_file_url: str + :param image_rate: 图像比例。 - oneToOne:指1:1比例 - sixteenToNine:指16:9比例 - threeToOne:指3:1比例 - fortyEightToSixtyFive:指48:65比例 - twentyOneToNine:指21:9比例 - threeToFour:指3:4比例 :type image_rate: str :param is_auto_gen: 缩略图是否自动从系统生成。 :type is_auto_gen: int :param description: 缩略图的详细描述。 :type description: str + :param size: 缩略图所占空间大小。 + :type size: int """ @@ -78,9 +86,11 @@ def __init__(self, id=None, created_at=None, is_primary=None, resource_type=None self._file_name = None self._aim_resource_id = None self._obs_object_key = None + self._obs_file_url = None self._image_rate = None self._is_auto_gen = None self._description = None + self._size = None self.discriminator = None self.id = id @@ -90,12 +100,16 @@ def __init__(self, id=None, created_at=None, is_primary=None, resource_type=None self.file_name = file_name self.aim_resource_id = aim_resource_id self.obs_object_key = obs_object_key + if obs_file_url is not None: + self.obs_file_url = obs_file_url if image_rate is not None: self.image_rate = image_rate if is_auto_gen is not None: self.is_auto_gen = is_auto_gen if description is not None: self.description = description + if size is not None: + self.size = size @property def id(self): @@ -251,11 +265,33 @@ def obs_object_key(self, obs_object_key): """ self._obs_object_key = obs_object_key + @property + def obs_file_url(self): + """Gets the obs_file_url of this Thumbnail. + + 文件访问路径。 + + :return: The obs_file_url of this Thumbnail. + :rtype: str + """ + return self._obs_file_url + + @obs_file_url.setter + def obs_file_url(self, obs_file_url): + """Sets the obs_file_url of this Thumbnail. + + 文件访问路径。 + + :param obs_file_url: The obs_file_url of this Thumbnail. + :type obs_file_url: str + """ + self._obs_file_url = obs_file_url + @property def image_rate(self): """Gets the image_rate of this Thumbnail. - 图像比例。 - oneToOne:指1:1比例 - sixteenToNine:指16:9比例 - threeToOne:指3:1比例 - fortyEightToSixtyFive:指48:65比例 - twentyOneToNine:指21:9比例 + 图像比例。 - oneToOne:指1:1比例 - sixteenToNine:指16:9比例 - threeToOne:指3:1比例 - fortyEightToSixtyFive:指48:65比例 - twentyOneToNine:指21:9比例 - threeToFour:指3:4比例 :return: The image_rate of this Thumbnail. :rtype: str @@ -266,7 +302,7 @@ def image_rate(self): def image_rate(self, image_rate): """Sets the image_rate of this Thumbnail. - 图像比例。 - oneToOne:指1:1比例 - sixteenToNine:指16:9比例 - threeToOne:指3:1比例 - fortyEightToSixtyFive:指48:65比例 - twentyOneToNine:指21:9比例 + 图像比例。 - oneToOne:指1:1比例 - sixteenToNine:指16:9比例 - threeToOne:指3:1比例 - fortyEightToSixtyFive:指48:65比例 - twentyOneToNine:指21:9比例 - threeToFour:指3:4比例 :param image_rate: The image_rate of this Thumbnail. :type image_rate: str @@ -317,6 +353,28 @@ def description(self, description): """ self._description = description + @property + def size(self): + """Gets the size of this Thumbnail. + + 缩略图所占空间大小。 + + :return: The size of this Thumbnail. + :rtype: int + """ + return self._size + + @size.setter + def size(self, size): + """Sets the size of this Thumbnail. + + 缩略图所占空间大小。 + + :param size: The size of this Thumbnail. + :type size: int + """ + self._size = size + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-koomessage/huaweicloudsdkkoomessage/v1/model/update_portal_fastapp_model.py b/huaweicloud-sdk-koomessage/huaweicloudsdkkoomessage/v1/model/update_portal_fastapp_model.py index e2187f66c7..d28264a2f6 100644 --- a/huaweicloud-sdk-koomessage/huaweicloudsdkkoomessage/v1/model/update_portal_fastapp_model.py +++ b/huaweicloud-sdk-koomessage/huaweicloudsdkkoomessage/v1/model/update_portal_fastapp_model.py @@ -58,16 +58,11 @@ def __init__(self, name=None, logo_img=None, description=None, deeplink=None, de self._depend_engine_version = None self.discriminator = None - if name is not None: - self.name = name - if logo_img is not None: - self.logo_img = logo_img - if description is not None: - self.description = description - if deeplink is not None: - self.deeplink = deeplink - if depend_engine_version is not None: - self.depend_engine_version = depend_engine_version + self.name = name + self.logo_img = logo_img + self.description = description + self.deeplink = deeplink + self.depend_engine_version = depend_engine_version @property def name(self): diff --git a/huaweicloud-sdk-koomessage/huaweicloudsdkkoomessage/v1/model/update_pub_info_request_body.py b/huaweicloud-sdk-koomessage/huaweicloudsdkkoomessage/v1/model/update_pub_info_request_body.py index 405ee73426..40da49bd99 100644 --- a/huaweicloud-sdk-koomessage/huaweicloudsdkkoomessage/v1/model/update_pub_info_request_body.py +++ b/huaweicloud-sdk-koomessage/huaweicloudsdkkoomessage/v1/model/update_pub_info_request_body.py @@ -25,6 +25,7 @@ class UpdatePubInfoRequestBody: 'pub_remark': 'str', 'auto_get_port': 'int', 'signs_for_auto_get_port': 'list[str]', + 'areas_for_auto_get_port': 'list[str]', 'industry': 'int' } @@ -37,10 +38,11 @@ class UpdatePubInfoRequestBody: 'pub_remark': 'pub_remark', 'auto_get_port': 'auto_get_port', 'signs_for_auto_get_port': 'signs_for_auto_get_port', + 'areas_for_auto_get_port': 'areas_for_auto_get_port', 'industry': 'industry' } - def __init__(self, change_reason=None, logo_img=None, authorization_files=None, pub_name=None, pub_abstract=None, pub_remark=None, auto_get_port=None, signs_for_auto_get_port=None, industry=None): + def __init__(self, change_reason=None, logo_img=None, authorization_files=None, pub_name=None, pub_abstract=None, pub_remark=None, auto_get_port=None, signs_for_auto_get_port=None, areas_for_auto_get_port=None, industry=None): """UpdatePubInfoRequestBody The model defined in huaweicloud sdk @@ -55,12 +57,14 @@ def __init__(self, change_reason=None, logo_img=None, authorization_files=None, :type pub_name: str :param pub_abstract: 服务号简介。 :type pub_abstract: str - :param pub_remark: 服务号摘要。 + :param pub_remark: 服务号备注。 :type pub_remark: str :param auto_get_port: 自动获取端口。 :type auto_get_port: int :param signs_for_auto_get_port: 自动收集端口使用的签名列表。 > auto_get_port为1时,该字段为必填,每个签名长度须为2-18个字符,每个服务号签名不可以重复。 :type signs_for_auto_get_port: list[str] + :param areas_for_auto_get_port: 自动收集端口生效的地区列表。地区取值见《地区名称列表》。 > auto_get_port为1时,该字段有效。不填则默认全国,不允许传入重叠地区。 + :type areas_for_auto_get_port: list[str] :param industry: 从事行业,默认取服务号所属商家的行业分类。 - 1:金融理财 - 2:社交通讯 - 3:影音娱乐 - 4:旅游出行 - 5:购物 - 6:本地生活 - 7:运动健康 - 8:教育培训 - 9:新闻阅读 - 10:运营商 - 11:其他 :type industry: int """ @@ -75,6 +79,7 @@ def __init__(self, change_reason=None, logo_img=None, authorization_files=None, self._pub_remark = None self._auto_get_port = None self._signs_for_auto_get_port = None + self._areas_for_auto_get_port = None self._industry = None self.discriminator = None @@ -85,13 +90,16 @@ def __init__(self, change_reason=None, logo_img=None, authorization_files=None, self.authorization_files = authorization_files if pub_name is not None: self.pub_name = pub_name - self.pub_abstract = pub_abstract + if pub_abstract is not None: + self.pub_abstract = pub_abstract if pub_remark is not None: self.pub_remark = pub_remark if auto_get_port is not None: self.auto_get_port = auto_get_port if signs_for_auto_get_port is not None: self.signs_for_auto_get_port = signs_for_auto_get_port + if areas_for_auto_get_port is not None: + self.areas_for_auto_get_port = areas_for_auto_get_port if industry is not None: self.industry = industry @@ -209,7 +217,7 @@ def pub_abstract(self, pub_abstract): def pub_remark(self): """Gets the pub_remark of this UpdatePubInfoRequestBody. - 服务号摘要。 + 服务号备注。 :return: The pub_remark of this UpdatePubInfoRequestBody. :rtype: str @@ -220,7 +228,7 @@ def pub_remark(self): def pub_remark(self, pub_remark): """Sets the pub_remark of this UpdatePubInfoRequestBody. - 服务号摘要。 + 服务号备注。 :param pub_remark: The pub_remark of this UpdatePubInfoRequestBody. :type pub_remark: str @@ -271,6 +279,28 @@ def signs_for_auto_get_port(self, signs_for_auto_get_port): """ self._signs_for_auto_get_port = signs_for_auto_get_port + @property + def areas_for_auto_get_port(self): + """Gets the areas_for_auto_get_port of this UpdatePubInfoRequestBody. + + 自动收集端口生效的地区列表。地区取值见《地区名称列表》。 > auto_get_port为1时,该字段有效。不填则默认全国,不允许传入重叠地区。 + + :return: The areas_for_auto_get_port of this UpdatePubInfoRequestBody. + :rtype: list[str] + """ + return self._areas_for_auto_get_port + + @areas_for_auto_get_port.setter + def areas_for_auto_get_port(self, areas_for_auto_get_port): + """Sets the areas_for_auto_get_port of this UpdatePubInfoRequestBody. + + 自动收集端口生效的地区列表。地区取值见《地区名称列表》。 > auto_get_port为1时,该字段有效。不填则默认全国,不允许传入重叠地区。 + + :param areas_for_auto_get_port: The areas_for_auto_get_port of this UpdatePubInfoRequestBody. + :type areas_for_auto_get_port: list[str] + """ + self._areas_for_auto_get_port = areas_for_auto_get_port + @property def industry(self): """Gets the industry of this UpdatePubInfoRequestBody. diff --git a/huaweicloud-sdk-koomessage/huaweicloudsdkkoomessage/v1/model/upload_aim_template_material_request_body.py b/huaweicloud-sdk-koomessage/huaweicloudsdkkoomessage/v1/model/upload_aim_template_material_request_body.py index 2032549d4b..3f7e5cd9b4 100644 --- a/huaweicloud-sdk-koomessage/huaweicloudsdkkoomessage/v1/model/upload_aim_template_material_request_body.py +++ b/huaweicloud-sdk-koomessage/huaweicloudsdkkoomessage/v1/model/upload_aim_template_material_request_body.py @@ -53,7 +53,7 @@ def __init__(self, resource_type=None, material_id=None, file_type=None, file_ur :type file_url: str :param file_stream: 文件资源码流。 > file_type=stream时,file_stream为必填。 :type file_stream: str - :param image_rate: 图像比例。 - oneToOne:指1:1比例 - sixteenToNine:指16:9比例 - threeToOne:指3:1比例 - fortyEightToSixtyFive:指48:65比例 - twentyOneToNine:指21:9比例 > resource type=image时,image_rate必填。 + :param image_rate: 图像比例。 - oneToOne:指1:1比例 - sixteenToNine:指16:9比例 - threeToOne:指3:1比例 - fortyEightToSixtyFive:指48:65比例 - twentyOneToNine:指21:9比例 - threeToFour:指3:4比例 > resource type=image时,image_rate必填。 :type image_rate: str :param file_name: 文件名称。 > file_type=stream时,file_name必填。 :type file_name: str @@ -202,7 +202,7 @@ def file_stream(self, file_stream): def image_rate(self): """Gets the image_rate of this UploadAimTemplateMaterialRequestBody. - 图像比例。 - oneToOne:指1:1比例 - sixteenToNine:指16:9比例 - threeToOne:指3:1比例 - fortyEightToSixtyFive:指48:65比例 - twentyOneToNine:指21:9比例 > resource type=image时,image_rate必填。 + 图像比例。 - oneToOne:指1:1比例 - sixteenToNine:指16:9比例 - threeToOne:指3:1比例 - fortyEightToSixtyFive:指48:65比例 - twentyOneToNine:指21:9比例 - threeToFour:指3:4比例 > resource type=image时,image_rate必填。 :return: The image_rate of this UploadAimTemplateMaterialRequestBody. :rtype: str @@ -213,7 +213,7 @@ def image_rate(self): def image_rate(self, image_rate): """Sets the image_rate of this UploadAimTemplateMaterialRequestBody. - 图像比例。 - oneToOne:指1:1比例 - sixteenToNine:指16:9比例 - threeToOne:指3:1比例 - fortyEightToSixtyFive:指48:65比例 - twentyOneToNine:指21:9比例 > resource type=image时,image_rate必填。 + 图像比例。 - oneToOne:指1:1比例 - sixteenToNine:指16:9比例 - threeToOne:指3:1比例 - fortyEightToSixtyFive:指48:65比例 - twentyOneToNine:指21:9比例 - threeToFour:指3:4比例 > resource type=image时,image_rate必填。 :param image_rate: The image_rate of this UploadAimTemplateMaterialRequestBody. :type image_rate: str diff --git a/huaweicloud-sdk-koomessage/huaweicloudsdkkoomessage/v1/model/upload_media_request_body.py b/huaweicloud-sdk-koomessage/huaweicloudsdkkoomessage/v1/model/upload_media_request_body.py index 651b1beb46..8f19f05ded 100644 --- a/huaweicloud-sdk-koomessage/huaweicloudsdkkoomessage/v1/model/upload_media_request_body.py +++ b/huaweicloud-sdk-koomessage/huaweicloudsdkkoomessage/v1/model/upload_media_request_body.py @@ -33,7 +33,7 @@ def __init__(self, file=None, file_type=None): :param file: 图片资源。 > 文件格式与文件名后缀需保持一致,请勿修改原始文件后缀,否则导致资源上传失败。 :type file: :class:`huaweicloudsdkcore.http.formdata.FormFile` - :param file_type: 文件类型。 - PUB_LOGO:上传服务号LOGO。支持jpg、bmp、png和jpeg格式,分辨率大于等于240*240且比例为1:1,大小不超过100K。 - BG_IMAGE:上传服务号主页背景图。分辨率大于等于1440*810。 - FASTAPP_LOGO:上传快应用LOGO。上传快应用LOGO。支持jpg、bmp和jpeg格式,分辨率大于等于192*192,大小不超过4M。 - OTHER:上传授权证明和营业执照等 + :param file_type: 文件类型。 - PUB_LOGO:上传服务号LOGO。支持jpg、bmp、png和jpeg格式,分辨率大于等于240*240且比例为1:1,大小不超过100K。 - BG_IMAGE:上传服务号主页背景图。支持jpg、bmp、png和jpeg格式,分辨率大于等于1440*810且比例为16:9,大小不超过4M。 - FASTAPP_LOGO:上传快应用LOGO。支持jpg、bmp、png和jpeg格式,分辨率大于等于192*192且比例为1:1,大小不超过4M。 - OTHER:上传授权证明和营业执照等 :type file_type: str """ @@ -72,7 +72,7 @@ def file(self, file): def file_type(self): """Gets the file_type of this UploadMediaRequestBody. - 文件类型。 - PUB_LOGO:上传服务号LOGO。支持jpg、bmp、png和jpeg格式,分辨率大于等于240*240且比例为1:1,大小不超过100K。 - BG_IMAGE:上传服务号主页背景图。分辨率大于等于1440*810。 - FASTAPP_LOGO:上传快应用LOGO。上传快应用LOGO。支持jpg、bmp和jpeg格式,分辨率大于等于192*192,大小不超过4M。 - OTHER:上传授权证明和营业执照等 + 文件类型。 - PUB_LOGO:上传服务号LOGO。支持jpg、bmp、png和jpeg格式,分辨率大于等于240*240且比例为1:1,大小不超过100K。 - BG_IMAGE:上传服务号主页背景图。支持jpg、bmp、png和jpeg格式,分辨率大于等于1440*810且比例为16:9,大小不超过4M。 - FASTAPP_LOGO:上传快应用LOGO。支持jpg、bmp、png和jpeg格式,分辨率大于等于192*192且比例为1:1,大小不超过4M。 - OTHER:上传授权证明和营业执照等 :return: The file_type of this UploadMediaRequestBody. :rtype: str @@ -83,7 +83,7 @@ def file_type(self): def file_type(self, file_type): """Sets the file_type of this UploadMediaRequestBody. - 文件类型。 - PUB_LOGO:上传服务号LOGO。支持jpg、bmp、png和jpeg格式,分辨率大于等于240*240且比例为1:1,大小不超过100K。 - BG_IMAGE:上传服务号主页背景图。分辨率大于等于1440*810。 - FASTAPP_LOGO:上传快应用LOGO。上传快应用LOGO。支持jpg、bmp和jpeg格式,分辨率大于等于192*192,大小不超过4M。 - OTHER:上传授权证明和营业执照等 + 文件类型。 - PUB_LOGO:上传服务号LOGO。支持jpg、bmp、png和jpeg格式,分辨率大于等于240*240且比例为1:1,大小不超过100K。 - BG_IMAGE:上传服务号主页背景图。支持jpg、bmp、png和jpeg格式,分辨率大于等于1440*810且比例为16:9,大小不超过4M。 - FASTAPP_LOGO:上传快应用LOGO。支持jpg、bmp、png和jpeg格式,分辨率大于等于192*192且比例为1:1,大小不超过4M。 - OTHER:上传授权证明和营业执照等 :param file_type: The file_type of this UploadMediaRequestBody. :type file_type: str diff --git a/huaweicloud-sdk-koomessage/requirements.txt b/huaweicloud-sdk-koomessage/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-koomessage/requirements.txt +++ b/huaweicloud-sdk-koomessage/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-koomessage/setup.py b/huaweicloud-sdk-koomessage/setup.py index 6c310c5d37..5f68213b08 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-kps/requirements.txt b/huaweicloud-sdk-kps/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-kps/requirements.txt +++ b/huaweicloud-sdk-kps/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-kps/setup.py b/huaweicloud-sdk-kps/setup.py index 6fd5649b11..e5c89ec108 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-lakeformation/requirements.txt b/huaweicloud-sdk-lakeformation/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-lakeformation/requirements.txt +++ b/huaweicloud-sdk-lakeformation/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-lakeformation/setup.py b/huaweicloud-sdk-lakeformation/setup.py index 0b4d0b5b17..eeb2246c03 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-live/requirements.txt b/huaweicloud-sdk-live/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-live/requirements.txt +++ b/huaweicloud-sdk-live/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-live/setup.py b/huaweicloud-sdk-live/setup.py index eb2b4615f5..87420360d2 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/list_logs_response.py b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/list_logs_response.py index 4aa3fb97af..72ae537156 100644 --- a/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/list_logs_response.py +++ b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/list_logs_response.py @@ -20,16 +20,18 @@ class ListLogsResponse(SdkResponse): openapi_types = { 'count': 'int', 'logs': 'list[LogContents]', - 'is_query_complete': 'bool' + 'is_query_complete': 'bool', + 'analysis_logs': 'list[dict(str, str)]' } attribute_map = { 'count': 'count', 'logs': 'logs', - 'is_query_complete': 'isQueryComplete' + 'is_query_complete': 'isQueryComplete', + 'analysis_logs': 'analysisLogs' } - def __init__(self, count=None, logs=None, is_query_complete=None): + def __init__(self, count=None, logs=None, is_query_complete=None, analysis_logs=None): """ListLogsResponse The model defined in huaweicloud sdk @@ -40,6 +42,8 @@ def __init__(self, count=None, logs=None, is_query_complete=None): :type logs: list[:class:`huaweicloudsdklts.v2.LogContents`] :param is_query_complete: 是否查询完成。 :type is_query_complete: bool + :param analysis_logs: 分析日志返回响应体 + :type analysis_logs: list[dict(str, str)] """ super(ListLogsResponse, self).__init__() @@ -47,6 +51,7 @@ def __init__(self, count=None, logs=None, is_query_complete=None): self._count = None self._logs = None self._is_query_complete = None + self._analysis_logs = None self.discriminator = None if count is not None: @@ -55,6 +60,8 @@ def __init__(self, count=None, logs=None, is_query_complete=None): self.logs = logs if is_query_complete is not None: self.is_query_complete = is_query_complete + if analysis_logs is not None: + self.analysis_logs = analysis_logs @property def count(self): @@ -122,6 +129,28 @@ def is_query_complete(self, is_query_complete): """ self._is_query_complete = is_query_complete + @property + def analysis_logs(self): + """Gets the analysis_logs of this ListLogsResponse. + + 分析日志返回响应体 + + :return: The analysis_logs of this ListLogsResponse. + :rtype: list[dict(str, str)] + """ + return self._analysis_logs + + @analysis_logs.setter + def analysis_logs(self, analysis_logs): + """Sets the analysis_logs of this ListLogsResponse. + + 分析日志返回响应体 + + :param analysis_logs: The analysis_logs of this ListLogsResponse. + :type analysis_logs: list[dict(str, str)] + """ + self._analysis_logs = analysis_logs + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/query_lts_log_params.py b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/query_lts_log_params.py index 6007cd0824..f4cc971cdd 100644 --- a/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/query_lts_log_params.py +++ b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/query_lts_log_params.py @@ -28,7 +28,9 @@ class QueryLtsLogParams: 'search_type': 'str', 'limit': 'int', 'highlight': 'bool', - 'is_iterative': 'bool' + 'is_iterative': 'bool', + 'query': 'str', + 'is_analysis_query': 'bool' } attribute_map = { @@ -43,10 +45,12 @@ class QueryLtsLogParams: 'search_type': 'search_type', 'limit': 'limit', 'highlight': 'highlight', - 'is_iterative': 'is_iterative' + 'is_iterative': 'is_iterative', + 'query': 'query', + 'is_analysis_query': 'is_analysis_query' } - def __init__(self, start_time=None, end_time=None, labels=None, is_count=None, keywords=None, line_num=None, time__=None, is_desc=None, search_type=None, limit=None, highlight=None, is_iterative=None): + def __init__(self, start_time=None, end_time=None, labels=None, is_count=None, keywords=None, line_num=None, time__=None, is_desc=None, search_type=None, limit=None, highlight=None, is_iterative=None, query=None, is_analysis_query=None): """QueryLtsLogParams The model defined in huaweicloud sdk @@ -75,6 +79,10 @@ def __init__(self, start_time=None, end_time=None, labels=None, is_count=None, k :type highlight: bool :param is_iterative: 日志迭代查询,默认为false(不开启迭代),true为开启迭代。 :type is_iterative: bool + :param query: 使用带管道符的sql分析语句进行查询,需要query参数is_analysis_query为true时生效。 + :type query: str + :param is_analysis_query: 是否为带管道符的sql分析语句。当该参数为true时,将依照body体中的query参数内容进行查询,且body体中除start_time与end_time以外的参数失效,分页、排序、查询结果条数等功能请依照sql语法规则实现。查询结果的响应体不同于未启用时的查询方式,将以默认列存的形式返回查询结果。当前仅对内测用户开放。响应示例:{\"analysisLogs\":[{\"field1\":\"1\",\"field2\":\"2\",\"field3\":\"3\"},{\"field1\":\"1\",\"field2\":\"2\",\"field3\":\"3\"},{\"field1\":\"1\",\"field2\":\"2\",\"field3\":\"3\"}]} + :type is_analysis_query: bool """ @@ -91,6 +99,8 @@ def __init__(self, start_time=None, end_time=None, labels=None, is_count=None, k self._limit = None self._highlight = None self._is_iterative = None + self._query = None + self._is_analysis_query = None self.discriminator = None self.start_time = start_time @@ -115,6 +125,10 @@ def __init__(self, start_time=None, end_time=None, labels=None, is_count=None, k self.highlight = highlight if is_iterative is not None: self.is_iterative = is_iterative + if query is not None: + self.query = query + if is_analysis_query is not None: + self.is_analysis_query = is_analysis_query @property def start_time(self): @@ -380,6 +394,50 @@ def is_iterative(self, is_iterative): """ self._is_iterative = is_iterative + @property + def query(self): + """Gets the query of this QueryLtsLogParams. + + 使用带管道符的sql分析语句进行查询,需要query参数is_analysis_query为true时生效。 + + :return: The query of this QueryLtsLogParams. + :rtype: str + """ + return self._query + + @query.setter + def query(self, query): + """Sets the query of this QueryLtsLogParams. + + 使用带管道符的sql分析语句进行查询,需要query参数is_analysis_query为true时生效。 + + :param query: The query of this QueryLtsLogParams. + :type query: str + """ + self._query = query + + @property + def is_analysis_query(self): + """Gets the is_analysis_query of this QueryLtsLogParams. + + 是否为带管道符的sql分析语句。当该参数为true时,将依照body体中的query参数内容进行查询,且body体中除start_time与end_time以外的参数失效,分页、排序、查询结果条数等功能请依照sql语法规则实现。查询结果的响应体不同于未启用时的查询方式,将以默认列存的形式返回查询结果。当前仅对内测用户开放。响应示例:{\"analysisLogs\":[{\"field1\":\"1\",\"field2\":\"2\",\"field3\":\"3\"},{\"field1\":\"1\",\"field2\":\"2\",\"field3\":\"3\"},{\"field1\":\"1\",\"field2\":\"2\",\"field3\":\"3\"}]} + + :return: The is_analysis_query of this QueryLtsLogParams. + :rtype: bool + """ + return self._is_analysis_query + + @is_analysis_query.setter + def is_analysis_query(self, is_analysis_query): + """Sets the is_analysis_query of this QueryLtsLogParams. + + 是否为带管道符的sql分析语句。当该参数为true时,将依照body体中的query参数内容进行查询,且body体中除start_time与end_time以外的参数失效,分页、排序、查询结果条数等功能请依照sql语法规则实现。查询结果的响应体不同于未启用时的查询方式,将以默认列存的形式返回查询结果。当前仅对内测用户开放。响应示例:{\"analysisLogs\":[{\"field1\":\"1\",\"field2\":\"2\",\"field3\":\"3\"},{\"field1\":\"1\",\"field2\":\"2\",\"field3\":\"3\"},{\"field1\":\"1\",\"field2\":\"2\",\"field3\":\"3\"}]} + + :param is_analysis_query: The is_analysis_query of this QueryLtsLogParams. + :type is_analysis_query: bool + """ + self._is_analysis_query = is_analysis_query + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-lts/requirements.txt b/huaweicloud-sdk-lts/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-lts/requirements.txt +++ b/huaweicloud-sdk-lts/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-lts/setup.py b/huaweicloud-sdk-lts/setup.py index f249bc7fdb..659a8513bf 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-mapds/requirements.txt b/huaweicloud-sdk-mapds/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-mapds/requirements.txt +++ b/huaweicloud-sdk-mapds/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-mapds/setup.py b/huaweicloud-sdk-mapds/setup.py index c221d28577..4bff62ff7e 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-mas/requirements.txt b/huaweicloud-sdk-mas/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-mas/requirements.txt +++ b/huaweicloud-sdk-mas/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-mas/setup.py b/huaweicloud-sdk-mas/setup.py index f534f8b1b6..978c603598 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-meeting/requirements.txt b/huaweicloud-sdk-meeting/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-meeting/requirements.txt +++ b/huaweicloud-sdk-meeting/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-meeting/setup.py b/huaweicloud-sdk-meeting/setup.py index e7d717a948..9b1077e6c5 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-metastudio/requirements.txt b/huaweicloud-sdk-metastudio/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-metastudio/requirements.txt +++ b/huaweicloud-sdk-metastudio/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-metastudio/setup.py b/huaweicloud-sdk-metastudio/setup.py index 1a8796b86c..2b0873bd6f 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-moderation/requirements.txt b/huaweicloud-sdk-moderation/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-moderation/requirements.txt +++ b/huaweicloud-sdk-moderation/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-moderation/setup.py b/huaweicloud-sdk-moderation/setup.py index afbc51b769..3d0c08fd69 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-mpc/requirements.txt b/huaweicloud-sdk-mpc/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-mpc/requirements.txt +++ b/huaweicloud-sdk-mpc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-mpc/setup.py b/huaweicloud-sdk-mpc/setup.py index 89e0097564..3103aa6015 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-mrs/requirements.txt b/huaweicloud-sdk-mrs/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-mrs/requirements.txt +++ b/huaweicloud-sdk-mrs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-mrs/setup.py b/huaweicloud-sdk-mrs/setup.py index ee7a6cfe3b..f6b43434d6 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-msgsms/requirements.txt b/huaweicloud-sdk-msgsms/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-msgsms/requirements.txt +++ b/huaweicloud-sdk-msgsms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-msgsms/setup.py b/huaweicloud-sdk-msgsms/setup.py index 62d8bd5f3c..13a423e486 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-mssi/requirements.txt b/huaweicloud-sdk-mssi/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-mssi/requirements.txt +++ b/huaweicloud-sdk-mssi/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-mssi/setup.py b/huaweicloud-sdk-mssi/setup.py index 0c95fc4a01..68281c510c 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-nat/requirements.txt b/huaweicloud-sdk-nat/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-nat/requirements.txt +++ b/huaweicloud-sdk-nat/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-nat/setup.py b/huaweicloud-sdk-nat/setup.py index c8e477f1b2..038335bbe2 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-nlp/requirements.txt b/huaweicloud-sdk-nlp/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-nlp/requirements.txt +++ b/huaweicloud-sdk-nlp/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-nlp/setup.py b/huaweicloud-sdk-nlp/setup.py index ffd3bc2a04..989e9de552 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-obs/requirements.txt b/huaweicloud-sdk-obs/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-obs/requirements.txt +++ b/huaweicloud-sdk-obs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-obs/setup.py b/huaweicloud-sdk-obs/setup.py index 82a2ca3f70..db9976b5dc 100644 --- a/huaweicloud-sdk-obs/setup.py +++ b/huaweicloud-sdk-obs/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkobs" -VERSION = "3.1.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/auto_classification_request_body.py b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/auto_classification_request_body.py index 93da66245d..7220614a53 100644 --- a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/auto_classification_request_body.py +++ b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/auto_classification_request_body.py @@ -37,7 +37,7 @@ def __init__(self, image=None, url=None, type_list=None, extended_parameters=Non The model defined in huaweicloud sdk - :param image: 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过8000px,支持JPEG、JPG、PNG、BMP、TIFF、PDF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 + :param image: 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过8000px,支持JPEG、JPG、PNG、BMP、TIFF、PDF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 :type image: str :param url: 与image二选一 图片的URL路径,目前支持: - 公网http/https url - OBS提供的url,使用OBS数据需要进行授权。包括对服务授权、临时授权、匿名公开授权,详情参见[配置OBS访问权限](https://support.huaweicloud.com/api-ocr/ocr_03_0132.html)。 > 说明: - 接口响应时间依赖于图片的下载时间,如果图片下载时间过长,会返回接口调用失败。 - 请保证被检测图片所在的存储服务稳定可靠,推荐使用OBS服务存储图片数据。 - url中不能存在中文字符,若存在,中文需要进行utf8编码。 :type url: str @@ -73,7 +73,7 @@ def __init__(self, image=None, url=None, type_list=None, extended_parameters=Non def image(self): """Gets the image of this AutoClassificationRequestBody. - 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过8000px,支持JPEG、JPG、PNG、BMP、TIFF、PDF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 + 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过8000px,支持JPEG、JPG、PNG、BMP、TIFF、PDF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 :return: The image of this AutoClassificationRequestBody. :rtype: str @@ -84,7 +84,7 @@ def image(self): def image(self, image): """Sets the image of this AutoClassificationRequestBody. - 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过8000px,支持JPEG、JPG、PNG、BMP、TIFF、PDF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 + 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过8000px,支持JPEG、JPG、PNG、BMP、TIFF、PDF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 :param image: The image of this AutoClassificationRequestBody. :type image: str diff --git a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/auto_classification_result.py b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/auto_classification_result.py index fb5051a1cb..d79966d1e0 100644 --- a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/auto_classification_result.py +++ b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/auto_classification_result.py @@ -41,7 +41,7 @@ def __init__(self, status=None, content=None, type=None, location=None, seal_mar :type status: :class:`huaweicloudsdkocr.v1.AutoClassificationResultStatus` :param content: 对应票证具体结构化识别的结果。 :type content: object - :param type: 对应票证的类别。 + :param type: 对应票证的类别。 :type type: str :param location: 文字块的区域位置信息,列表形式,包含文字区域四个顶点的二维坐标(x,y);坐标原点为图片左上角,x轴沿水平方向,y轴沿竖直方向。 :type location: list[list[int]] @@ -109,7 +109,7 @@ def content(self, content): def type(self): """Gets the type of this AutoClassificationResult. - 对应票证的类别。 + 对应票证的类别。 :return: The type of this AutoClassificationResult. :rtype: str @@ -120,7 +120,7 @@ def type(self): def type(self, type): """Sets the type of this AutoClassificationResult. - 对应票证的类别。 + 对应票证的类别。 :param type: The type of this AutoClassificationResult. :type type: str diff --git a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/bankcard_request_body.py b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/bankcard_request_body.py index cabc2ae0f7..4d43367355 100644 --- a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/bankcard_request_body.py +++ b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/bankcard_request_body.py @@ -33,7 +33,7 @@ def __init__(self, image=None, url=None, return_text_location=None): The model defined in huaweicloud sdk - :param image: 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过8192px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 + :param image: 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过8192px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 :type image: str :param url: 与image二选一 图片的URL路径,目前支持: - 公网http/https url - OBS提供的url,使用OBS数据需要进行授权。包括对服务授权、临时授权、匿名公开授权,详情参见[配置OBS访问权限](https://support.huaweicloud.com/api-ocr/ocr_03_0132.html)。 > 说明: - 接口响应时间依赖于图片的下载时间,如果图片下载时间过长,会返回接口调用失败。 - 请保证被检测图片所在的存储服务稳定可靠,推荐使用OBS服务存储图片数据。 - url中不能存在中文字符,若存在,中文需要进行utf8编码。 :type url: str @@ -59,7 +59,7 @@ def __init__(self, image=None, url=None, return_text_location=None): def image(self): """Gets the image of this BankcardRequestBody. - 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过8192px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 + 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过8192px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 :return: The image of this BankcardRequestBody. :rtype: str @@ -70,7 +70,7 @@ def image(self): def image(self, image): """Sets the image of this BankcardRequestBody. - 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过8192px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 + 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过8192px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 :param image: The image of this BankcardRequestBody. :type image: str diff --git a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/business_card_request_body.py b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/business_card_request_body.py index afb4450aea..d38dc2ef58 100644 --- a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/business_card_request_body.py +++ b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/business_card_request_body.py @@ -35,7 +35,7 @@ def __init__(self, image=None, url=None, detect_direction=None, return_adjusted_ The model defined in huaweicloud sdk - :param image: 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过8192px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 + :param image: 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过8192px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 :type image: str :param url: 与image二选一 图片的URL路径,目前支持: - 公网http/https url - OBS提供的url,使用OBS数据需要进行授权。包括对服务授权、临时授权、匿名公开授权,详情参见[配置OBS访问权限](https://support.huaweicloud.com/api-ocr/ocr_03_0132.html)。 > 说明: - 接口响应时间依赖于图片的下载时间,如果图片下载时间过长,会返回接口调用失败。 - 请保证被检测图片所在的存储服务稳定可靠,推荐使用OBS服务存储图片数据。 - url中不能存在中文字符,若存在,中文需要进行utf8编码。 :type url: str @@ -66,7 +66,7 @@ def __init__(self, image=None, url=None, detect_direction=None, return_adjusted_ def image(self): """Gets the image of this BusinessCardRequestBody. - 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过8192px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 + 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过8192px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 :return: The image of this BusinessCardRequestBody. :rtype: str @@ -77,7 +77,7 @@ def image(self): def image(self, image): """Sets the image of this BusinessCardRequestBody. - 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过8192px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 + 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过8192px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 :param image: The image of this BusinessCardRequestBody. :type image: str diff --git a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/business_license_request_body.py b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/business_license_request_body.py index c70d47d3e8..e78722bee6 100644 --- a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/business_license_request_body.py +++ b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/business_license_request_body.py @@ -31,7 +31,7 @@ def __init__(self, image=None, url=None): The model defined in huaweicloud sdk - :param image: 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过8192px,支持JPEG、JPG、PNG、BMP、TIFF、PDF格式。多页PDF仅识别第一页。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 + :param image: 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过8192px,支持JPEG、JPG、PNG、BMP、TIFF、PDF格式。多页PDF仅识别第一页。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 :type image: str :param url: 与image二选一 图片的URL路径,目前支持: - 公网http/https url - OBS提供的url,使用OBS数据需要进行授权。包括对服务授权、临时授权、匿名公开授权,详情参见[配置OBS访问权限](https://support.huaweicloud.com/api-ocr/ocr_03_0132.html)。 > 说明: - 接口响应时间依赖于图片的下载时间,如果图片下载时间过长,会返回接口调用失败。 - 请保证被检测图片所在的存储服务稳定可靠,推荐使用OBS服务存储图片数据。 - url中不能存在中文字符,若存在,中文需要进行utf8编码。 :type url: str @@ -52,7 +52,7 @@ def __init__(self, image=None, url=None): def image(self): """Gets the image of this BusinessLicenseRequestBody. - 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过8192px,支持JPEG、JPG、PNG、BMP、TIFF、PDF格式。多页PDF仅识别第一页。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 + 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过8192px,支持JPEG、JPG、PNG、BMP、TIFF、PDF格式。多页PDF仅识别第一页。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 :return: The image of this BusinessLicenseRequestBody. :rtype: str @@ -63,7 +63,7 @@ def image(self): def image(self, image): """Sets the image of this BusinessLicenseRequestBody. - 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过8192px,支持JPEG、JPG、PNG、BMP、TIFF、PDF格式。多页PDF仅识别第一页。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 + 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过8192px,支持JPEG、JPG、PNG、BMP、TIFF、PDF格式。多页PDF仅识别第一页。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 :param image: The image of this BusinessLicenseRequestBody. :type image: str diff --git a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/custom_template_request_body.py b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/custom_template_request_body.py index 72506a7cd4..f911a599a9 100644 --- a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/custom_template_request_body.py +++ b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/custom_template_request_body.py @@ -37,7 +37,7 @@ def __init__(self, image=None, url=None, template_id=None, classifier_id=None, c The model defined in huaweicloud sdk - :param image: 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过8192px,支持JPEG、JPG、PNG、BMP、TIFF、GIF、WEBP格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 + :param image: 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过8192px,支持JPEG、JPG、PNG、BMP、TIFF、GIF、WEBP格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 :type image: str :param url: 与image二选一 图片的URL路径,目前支持: - 公网http/https url - OBS提供的url,使用OBS数据需要进行授权。包括对服务授权、临时授权、匿名公开授权,详情参见[配置OBS访问权限](https://support.huaweicloud.com/api-ocr/ocr_03_0132.html)。 > 说明: - 接口响应时间依赖于图片的下载时间,如果图片下载时间过长,会返回接口调用失败。 - 请保证被检测图片所在的存储服务稳定可靠,推荐使用OBS服务存储图片数据。 - url中不能存在中文字符,若存在,中文需要进行utf8编码。 :type url: str @@ -73,7 +73,7 @@ def __init__(self, image=None, url=None, template_id=None, classifier_id=None, c def image(self): """Gets the image of this CustomTemplateRequestBody. - 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过8192px,支持JPEG、JPG、PNG、BMP、TIFF、GIF、WEBP格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 + 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过8192px,支持JPEG、JPG、PNG、BMP、TIFF、GIF、WEBP格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 :return: The image of this CustomTemplateRequestBody. :rtype: str @@ -84,7 +84,7 @@ def image(self): def image(self, image): """Sets the image of this CustomTemplateRequestBody. - 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过8192px,支持JPEG、JPG、PNG、BMP、TIFF、GIF、WEBP格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 + 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过8192px,支持JPEG、JPG、PNG、BMP、TIFF、GIF、WEBP格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 :param image: The image of this CustomTemplateRequestBody. :type image: str diff --git a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/driver_license_request_body.py b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/driver_license_request_body.py index 1f3cb4d0ec..6b017a389d 100644 --- a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/driver_license_request_body.py +++ b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/driver_license_request_body.py @@ -37,7 +37,7 @@ def __init__(self, image=None, url=None, side=None, return_issuing_authority=Non The model defined in huaweicloud sdk - :param image: 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于100px,最长边不超过8000px。支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 + :param image: 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于100px,最长边不超过8000px。支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 :type image: str :param url: 与image二选一 图片的URL路径,目前支持: - 公网http/https url - OBS提供的url,使用OBS数据需要进行授权。包括对服务授权、临时授权、匿名公开授权,详情参见[配置OBS访问权限](https://support.huaweicloud.com/api-ocr/ocr_03_0132.html)。 > 说明: - 接口响应时间依赖于图片的下载时间,如果图片下载时间过长,会返回接口调用失败。 - 请保证被检测图片所在的存储服务稳定可靠,推荐使用OBS服务存储图片数据。 - url中不能存在中文字符,若存在,中文需要进行utf8编码。 :type url: str @@ -73,7 +73,7 @@ def __init__(self, image=None, url=None, side=None, return_issuing_authority=Non def image(self): """Gets the image of this DriverLicenseRequestBody. - 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于100px,最长边不超过8000px。支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 + 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于100px,最长边不超过8000px。支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 :return: The image of this DriverLicenseRequestBody. :rtype: str @@ -84,7 +84,7 @@ def image(self): def image(self, image): """Sets the image of this DriverLicenseRequestBody. - 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于100px,最长边不超过8000px。支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 + 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于100px,最长边不超过8000px。支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 :param image: The image of this DriverLicenseRequestBody. :type image: str diff --git a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/financial_statement_request_body.py b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/financial_statement_request_body.py index b3aa0645eb..9c0ac54e54 100644 --- a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/financial_statement_request_body.py +++ b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/financial_statement_request_body.py @@ -43,7 +43,7 @@ def __init__(self, image=None, url=None, return_text_location=None, return_confi The model defined in huaweicloud sdk - :param image: 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过8192px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 + :param image: 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过8192px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 :type image: str :param url: 与image二选一 图片的URL路径,目前支持: - 公网http/https url - OBS提供的url,使用OBS数据需要进行授权。包括对服务授权、临时授权、匿名公开授权,详情参见[配置OBS访问权限](https://support.huaweicloud.com/api-ocr/ocr_03_0132.html)。 > 说明: - 接口响应时间依赖于图片的下载时间,如果图片下载时间过长,会返回接口调用失败。 - 请保证被检测图片所在的存储服务稳定可靠,推荐使用OBS服务存储图片数据。 - url中不能存在中文字符,若存在,中文需要进行utf8编码。 :type url: str @@ -94,7 +94,7 @@ def __init__(self, image=None, url=None, return_text_location=None, return_confi def image(self): """Gets the image of this FinancialStatementRequestBody. - 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过8192px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 + 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过8192px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 :return: The image of this FinancialStatementRequestBody. :rtype: str @@ -105,7 +105,7 @@ def image(self): def image(self, image): """Sets the image of this FinancialStatementRequestBody. - 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过8192px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 + 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过8192px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 :param image: The image of this FinancialStatementRequestBody. :type image: str diff --git a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/flight_itinerary_request_body.py b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/flight_itinerary_request_body.py index aec1cd5bc8..d9e7e5d6ac 100644 --- a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/flight_itinerary_request_body.py +++ b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/flight_itinerary_request_body.py @@ -31,7 +31,7 @@ def __init__(self, image=None, url=None): The model defined in huaweicloud sdk - :param image: 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过8192px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 + :param image: 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过8192px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 :type image: str :param url: 与image二选一 图片的URL路径,目前支持: - 公网http/https url - OBS提供的url,使用OBS数据需要进行授权。包括对服务授权、临时授权、匿名公开授权,详情参见[配置OBS访问权限](https://support.huaweicloud.com/api-ocr/ocr_03_0132.html)。 > 说明: - 接口响应时间依赖于图片的下载时间,如果图片下载时间过长,会返回接口调用失败。 - 请保证被检测图片所在的存储服务稳定可靠,推荐使用OBS服务存储图片数据。 - url中不能存在中文字符,若存在,中文需要进行utf8编码。 :type url: str @@ -52,7 +52,7 @@ def __init__(self, image=None, url=None): def image(self): """Gets the image of this FlightItineraryRequestBody. - 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过8192px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 + 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过8192px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 :return: The image of this FlightItineraryRequestBody. :rtype: str @@ -63,7 +63,7 @@ def image(self): def image(self, image): """Sets the image of this FlightItineraryRequestBody. - 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过8192px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 + 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过8192px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 :param image: The image of this FlightItineraryRequestBody. :type image: str diff --git a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/general_table_request_body.py b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/general_table_request_body.py index 9f68af2fc7..c84b418e8c 100644 --- a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/general_table_request_body.py +++ b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/general_table_request_body.py @@ -43,7 +43,7 @@ def __init__(self, image=None, url=None, return_text_location=None, return_char_ The model defined in huaweicloud sdk - :param image: 与url二选一 图片最小边不小于15px,最长边不超过8192px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,[点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)](tag:hc)[点击[这里](https://support.huaweicloud.com/intl/zh-cn/ocr_faq/ocr_01_0032.html)](tag:hk)查看详细获取方式。 + :param image: 与url二选一 图片最小边不小于15px,最长边不超过8192px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,[点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)](tag:hc)[点击[这里](https://support.huaweicloud.com/intl/zh-cn/ocr_faq/ocr_01_0032.html)](tag:hk)查看详细获取方式。 :type image: str :param url: 与image二选一 图片的URL路径,目前支持: - 公网http/https url - OBS提供的url,使用OBS数据需要进行授权。包括对服务授权、临时授权、匿名公开授权,[详情参见[配置OBS访问权限](https://support.huaweicloud.com/api-ocr/ocr_03_0132.html)。](tag:hc)[详情参见[配置OBS访问权限](https://support.huaweicloud.com/intl/zh-cn/api-ocr/ocr_03_0132.html)。](tag:hk) > 说明: - 接口响应时间依赖于图片的下载时间,如果图片下载时间过长,会返回接口调用失败。 - 请保证被检测图片所在的存储服务稳定可靠,推荐使用OBS服务存储图片数据。 - url中不能存在中文字符,若存在,中文需要进行utf8编码。 :type url: str @@ -94,7 +94,7 @@ def __init__(self, image=None, url=None, return_text_location=None, return_char_ def image(self): """Gets the image of this GeneralTableRequestBody. - 与url二选一 图片最小边不小于15px,最长边不超过8192px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,[点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)](tag:hc)[点击[这里](https://support.huaweicloud.com/intl/zh-cn/ocr_faq/ocr_01_0032.html)](tag:hk)查看详细获取方式。 + 与url二选一 图片最小边不小于15px,最长边不超过8192px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,[点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)](tag:hc)[点击[这里](https://support.huaweicloud.com/intl/zh-cn/ocr_faq/ocr_01_0032.html)](tag:hk)查看详细获取方式。 :return: The image of this GeneralTableRequestBody. :rtype: str @@ -105,7 +105,7 @@ def image(self): def image(self, image): """Sets the image of this GeneralTableRequestBody. - 与url二选一 图片最小边不小于15px,最长边不超过8192px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,[点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)](tag:hc)[点击[这里](https://support.huaweicloud.com/intl/zh-cn/ocr_faq/ocr_01_0032.html)](tag:hk)查看详细获取方式。 + 与url二选一 图片最小边不小于15px,最长边不超过8192px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,[点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)](tag:hc)[点击[这里](https://support.huaweicloud.com/intl/zh-cn/ocr_faq/ocr_01_0032.html)](tag:hk)查看详细获取方式。 :param image: The image of this GeneralTableRequestBody. :type image: str diff --git a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/general_table_result.py b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/general_table_result.py index a4df7dd450..4d5caa693d 100644 --- a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/general_table_result.py +++ b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/general_table_result.py @@ -33,7 +33,7 @@ def __init__(self, words_region_count=None, words_region_list=None, excel=None): The model defined in huaweicloud sdk - :param words_region_count: 文字区域数目。 + :param words_region_count: 文字区域数目。 :type words_region_count: int :param words_region_list: 文字区域识别结果列表,输出顺序从左到右,先上后下。 :type words_region_list: list[:class:`huaweicloudsdkocr.v1.WordsRegionList`] @@ -57,7 +57,7 @@ def __init__(self, words_region_count=None, words_region_list=None, excel=None): def words_region_count(self): """Gets the words_region_count of this GeneralTableResult. - 文字区域数目。 + 文字区域数目。 :return: The words_region_count of this GeneralTableResult. :rtype: int @@ -68,7 +68,7 @@ def words_region_count(self): def words_region_count(self, words_region_count): """Sets the words_region_count of this GeneralTableResult. - 文字区域数目。 + 文字区域数目。 :param words_region_count: The words_region_count of this GeneralTableResult. :type words_region_count: int diff --git a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/general_text_request_body.py b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/general_text_request_body.py index 8d714665f6..80a5c120b7 100644 --- a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/general_text_request_body.py +++ b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/general_text_request_body.py @@ -41,7 +41,7 @@ def __init__(self, image=None, url=None, detect_direction=None, quick_mode=None, The model defined in huaweicloud sdk - :param image: 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过4096px。支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,[点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)](tag:hc)[点击[这里](https://support.huaweicloud.com/intl/zh-cn/ocr_faq/ocr_01_0032.html)](tag:hk)查看详细获取方式。 + :param image: 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过4096px。支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,[点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)](tag:hc)[点击[这里](https://support.huaweicloud.com/intl/zh-cn/ocr_faq/ocr_01_0032.html)](tag:hk)查看详细获取方式。 :type image: str :param url: 与image二选一 图片的URL路径,目前支持: - 公网http/https url - OBS提供的url,使用OBS数据需要进行授权。包括对服务授权、临时授权、匿名公开授权,[详情参见[配置OBS访问权限](https://support.huaweicloud.com/api-ocr/ocr_03_0132.html)。](tag:hc)[详情参见[配置OBS访问权限](https://support.huaweicloud.com/intl/zh-cn/api-ocr/ocr_03_0132.html)。](tag:hk) > 说明: - 接口响应时间依赖于图片的下载时间,如果图片下载时间过长,会返回接口调用失败。 - 请保证被检测图片所在的存储服务稳定可靠,推荐使用OBS服务存储图片数据。 - url中不能存在中文字符,若存在,中文需要进行utf8编码。 :type url: str @@ -53,7 +53,7 @@ def __init__(self, image=None, url=None, detect_direction=None, quick_mode=None, :type character_mode: bool :param language: 语种选择,可选值可参考表1中英文列。未传入该参数时默认为中英文识别模式。 **表1* 语种选择说明 | 英文 | 中文 | | :--: | :----------: | | auto | 自动语种分类 | | ms | 马来语 | | uk | 乌克兰语 | | hi | 印地语 | | ru | 俄语 | | vi | 越南语 | | id | 印尼语 | | th | 泰语 | | zh | 中英文 | | ar | 阿拉伯语 | | de | 德语 | | la | 拉丁语 | | fr | 法语 | | it | 意大利语 | | es | 西班牙语 | | pt | 葡萄牙语 | | ro | 罗马尼亚语 | | pl | 波兰语 | | am | 阿姆哈拉语 | | ja | 日语 | | ko | 韩语 | | tr | 土耳其语 | | no | 挪威语 | | da | 丹麦语 | | sv | 瑞典语 | | km | 柬埔寨语 | | he | 希伯来语 | :type language: str - :param single_orientation_mode: 单朝向模式开关。可选值包括: - true:打开单朝向模式 - false:关闭单朝向模式 未传入该参数时默认为false,既默认图片中的字段为多朝向。 + :param single_orientation_mode: 单朝向模式开关。可选值包括: - true:打开单朝向模式 - false:关闭单朝向模式 未传入该参数时默认为false,即默认图片中的字段为多朝向。 :type single_orientation_mode: bool """ @@ -87,7 +87,7 @@ def __init__(self, image=None, url=None, detect_direction=None, quick_mode=None, def image(self): """Gets the image of this GeneralTextRequestBody. - 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过4096px。支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,[点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)](tag:hc)[点击[这里](https://support.huaweicloud.com/intl/zh-cn/ocr_faq/ocr_01_0032.html)](tag:hk)查看详细获取方式。 + 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过4096px。支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,[点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)](tag:hc)[点击[这里](https://support.huaweicloud.com/intl/zh-cn/ocr_faq/ocr_01_0032.html)](tag:hk)查看详细获取方式。 :return: The image of this GeneralTextRequestBody. :rtype: str @@ -98,7 +98,7 @@ def image(self): def image(self, image): """Sets the image of this GeneralTextRequestBody. - 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过4096px。支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,[点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)](tag:hc)[点击[这里](https://support.huaweicloud.com/intl/zh-cn/ocr_faq/ocr_01_0032.html)](tag:hk)查看详细获取方式。 + 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过4096px。支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,[点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)](tag:hc)[点击[这里](https://support.huaweicloud.com/intl/zh-cn/ocr_faq/ocr_01_0032.html)](tag:hk)查看详细获取方式。 :param image: The image of this GeneralTextRequestBody. :type image: str @@ -219,7 +219,7 @@ def language(self, language): def single_orientation_mode(self): """Gets the single_orientation_mode of this GeneralTextRequestBody. - 单朝向模式开关。可选值包括: - true:打开单朝向模式 - false:关闭单朝向模式 未传入该参数时默认为false,既默认图片中的字段为多朝向。 + 单朝向模式开关。可选值包括: - true:打开单朝向模式 - false:关闭单朝向模式 未传入该参数时默认为false,即默认图片中的字段为多朝向。 :return: The single_orientation_mode of this GeneralTextRequestBody. :rtype: bool @@ -230,7 +230,7 @@ def single_orientation_mode(self): def single_orientation_mode(self, single_orientation_mode): """Sets the single_orientation_mode of this GeneralTextRequestBody. - 单朝向模式开关。可选值包括: - true:打开单朝向模式 - false:关闭单朝向模式 未传入该参数时默认为false,既默认图片中的字段为多朝向。 + 单朝向模式开关。可选值包括: - true:打开单朝向模式 - false:关闭单朝向模式 未传入该参数时默认为false,即默认图片中的字段为多朝向。 :param single_orientation_mode: The single_orientation_mode of this GeneralTextRequestBody. :type single_orientation_mode: bool diff --git a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/handwriting_request_body.py b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/handwriting_request_body.py index 00ac279ec1..d106fd4f81 100644 --- a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/handwriting_request_body.py +++ b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/handwriting_request_body.py @@ -37,7 +37,7 @@ def __init__(self, image=None, url=None, quick_mode=None, char_set=None, detect_ The model defined in huaweicloud sdk - :param image: 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于8px,最长边不超过8192px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 + :param image: 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于8px,最长边不超过8192px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 :type image: str :param url: 与image二选一 图片的URL路径,目前支持: - 公网http/https url - OBS提供的url,使用OBS数据需要进行授权。包括对服务授权、临时授权、匿名公开授权,详情参见[配置OBS访问权限](https://support.huaweicloud.com/api-ocr/ocr_03_0132.html)。 > 说明: - 接口响应时间依赖于图片的下载时间,如果图片下载时间过长,会返回接口调用失败。 - 请保证被检测图片所在的存储服务稳定可靠,推荐使用OBS服务存储图片数据。 - url中不能存在中文字符,若存在,中文需要进行utf8编码。 :type url: str @@ -73,7 +73,7 @@ def __init__(self, image=None, url=None, quick_mode=None, char_set=None, detect_ def image(self): """Gets the image of this HandwritingRequestBody. - 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于8px,最长边不超过8192px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 + 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于8px,最长边不超过8192px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 :return: The image of this HandwritingRequestBody. :rtype: str @@ -84,7 +84,7 @@ def image(self): def image(self, image): """Sets the image of this HandwritingRequestBody. - 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于8px,最长边不超过8192px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 + 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于8px,最长边不超过8192px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 :param image: The image of this HandwritingRequestBody. :type image: str diff --git a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/handwriting_result.py b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/handwriting_result.py index 56ef3be760..ab59b5ad85 100644 --- a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/handwriting_result.py +++ b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/handwriting_result.py @@ -31,7 +31,7 @@ def __init__(self, words_block_count=None, words_block_list=None): The model defined in huaweicloud sdk - :param words_block_count: 代表检测识别出来的文字块数目。 \"segment_digit\" 和\"segment\"默认为1。 + :param words_block_count: 代表检测识别出来的文字块数目。 \"segment_digit\" 和\"segment\"默认为1。 :type words_block_count: int :param words_block_list: 识别文字块列表,输出顺序从左到右,从上到下。 :type words_block_list: list[:class:`huaweicloudsdkocr.v1.HandwritingWordsBlockList`] @@ -50,7 +50,7 @@ def __init__(self, words_block_count=None, words_block_list=None): def words_block_count(self): """Gets the words_block_count of this HandwritingResult. - 代表检测识别出来的文字块数目。 \"segment_digit\" 和\"segment\"默认为1。 + 代表检测识别出来的文字块数目。 \"segment_digit\" 和\"segment\"默认为1。 :return: The words_block_count of this HandwritingResult. :rtype: int @@ -61,7 +61,7 @@ def words_block_count(self): def words_block_count(self, words_block_count): """Sets the words_block_count of this HandwritingResult. - 代表检测识别出来的文字块数目。 \"segment_digit\" 和\"segment\"默认为1。 + 代表检测识别出来的文字块数目。 \"segment_digit\" 和\"segment\"默认为1。 :param words_block_count: The words_block_count of this HandwritingResult. :type words_block_count: int diff --git a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/id_card_request_body.py b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/id_card_request_body.py index a1df0a0d43..616e2ba1b0 100644 --- a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/id_card_request_body.py +++ b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/id_card_request_body.py @@ -59,7 +59,7 @@ def __init__(self, image=None, url=None, side=None, return_verification=None, re The model defined in huaweicloud sdk - :param image: 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过8000px。支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 + :param image: 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过8000px。支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 :type image: str :param url: 与image二选一 图片的URL路径,目前支持: - 公网http/https url - OBS提供的url,使用OBS数据需要进行授权。包括对服务授权、临时授权、匿名公开授权,详情参见[配置OBS访问权限](https://support.huaweicloud.com/api-ocr/ocr_03_0132.html)。 > 说明: - 接口响应时间依赖于图片的下载时间,如果图片下载时间过长,会返回接口调用失败。 - 请保证被检测图片所在的存储服务稳定可靠,推荐使用OBS服务存储图片数据。 - url中不能存在中文字符,若存在,中文需要进行utf8编码。 :type url: str @@ -150,7 +150,7 @@ def __init__(self, image=None, url=None, side=None, return_verification=None, re def image(self): """Gets the image of this IdCardRequestBody. - 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过8000px。支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 + 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过8000px。支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 :return: The image of this IdCardRequestBody. :rtype: str @@ -161,7 +161,7 @@ def image(self): def image(self, image): """Sets the image of this IdCardRequestBody. - 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过8000px。支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 + 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过8000px。支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 :param image: The image of this IdCardRequestBody. :type image: str diff --git a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/insurance_policy_request_body.py b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/insurance_policy_request_body.py index 2155061090..6e9ccafef4 100644 --- a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/insurance_policy_request_body.py +++ b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/insurance_policy_request_body.py @@ -33,7 +33,7 @@ def __init__(self, image=None, url=None, detect_direction=None): The model defined in huaweicloud sdk - :param image: 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过8192px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 + :param image: 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过8192px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 :type image: str :param url: 与image二选一 图片的URL路径,目前支持: - 公网http/https url - OBS提供的url,使用OBS数据需要进行授权。包括对服务授权、临时授权、匿名公开授权,详情参见[配置OBS访问权限](https://support.huaweicloud.com/api-ocr/ocr_03_0132.html)。 > 说明: - 接口响应时间依赖于图片的下载时间,如果图片下载时间过长,会返回接口调用失败。 - 请保证被检测图片所在的存储服务稳定可靠,推荐使用OBS服务存储图片数据。 - url中不能存在中文字符,若存在,中文需要进行utf8编码。 :type url: str @@ -59,7 +59,7 @@ def __init__(self, image=None, url=None, detect_direction=None): def image(self): """Gets the image of this InsurancePolicyRequestBody. - 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过8192px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 + 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过8192px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 :return: The image of this InsurancePolicyRequestBody. :rtype: str @@ -70,7 +70,7 @@ def image(self): def image(self, image): """Sets the image of this InsurancePolicyRequestBody. - 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过8192px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 + 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过8192px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 :param image: The image of this InsurancePolicyRequestBody. :type image: str diff --git a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/license_plate_request_body.py b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/license_plate_request_body.py index 805478ddcb..245953236c 100644 --- a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/license_plate_request_body.py +++ b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/license_plate_request_body.py @@ -31,7 +31,7 @@ def __init__(self, image=None, url=None): The model defined in huaweicloud sdk - :param image: 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过4096px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 + :param image: 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过4096px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 :type image: str :param url: 与image二选一 图片的URL路径,目前支持: - 公网http/https url - OBS提供的url,使用OBS数据需要进行授权。包括对服务授权、临时授权、匿名公开授权,详情参见[配置OBS访问权限](https://support.huaweicloud.com/api-ocr/ocr_03_0132.html)。 > 说明: - 接口响应时间依赖于图片的下载时间,如果图片下载时间过长,会返回接口调用失败。 - 请保证被检测图片所在的存储服务稳定可靠,推荐使用OBS服务存储图片数据。 - url中不能存在中文字符,若存在,中文需要进行utf8编码。 :type url: str @@ -52,7 +52,7 @@ def __init__(self, image=None, url=None): def image(self): """Gets the image of this LicensePlateRequestBody. - 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过4096px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 + 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过4096px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 :return: The image of this LicensePlateRequestBody. :rtype: str @@ -63,7 +63,7 @@ def image(self): def image(self, image): """Sets the image of this LicensePlateRequestBody. - 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过4096px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 + 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过4096px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 :param image: The image of this LicensePlateRequestBody. :type image: str diff --git a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/mvs_invoice_request_body.py b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/mvs_invoice_request_body.py index 5b394c5919..980b64c0ac 100644 --- a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/mvs_invoice_request_body.py +++ b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/mvs_invoice_request_body.py @@ -37,7 +37,7 @@ def __init__(self, image=None, url=None, return_text_location=None, return_confi The model defined in huaweicloud sdk - :param image: 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于100px,最长边不超过8000px。支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 + :param image: 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于100px,最长边不超过8000px。支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 :type image: str :param url: 与image二选一 图片的URL路径,目前支持: - 公网http/https url - OBS提供的url,使用OBS数据需要进行授权。包括对服务授权、临时授权、匿名公开授权,详情参见[配置OBS访问权限](https://support.huaweicloud.com/api-ocr/ocr_03_0132.html)。 > 说明: - 接口响应时间依赖于图片的下载时间,如果图片下载时间过长,会返回接口调用失败。 - 请保证被检测图片所在的存储服务稳定可靠,推荐使用OBS服务存储图片数据。 - url中不能存在中文字符,若存在,中文需要进行utf8编码。 :type url: str @@ -73,7 +73,7 @@ def __init__(self, image=None, url=None, return_text_location=None, return_confi def image(self): """Gets the image of this MvsInvoiceRequestBody. - 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于100px,最长边不超过8000px。支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 + 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于100px,最长边不超过8000px。支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 :return: The image of this MvsInvoiceRequestBody. :rtype: str @@ -84,7 +84,7 @@ def image(self): def image(self, image): """Sets the image of this MvsInvoiceRequestBody. - 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于100px,最长边不超过8000px。支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 + 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于100px,最长边不超过8000px。支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 :param image: The image of this MvsInvoiceRequestBody. :type image: str diff --git a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/passport_request_body.py b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/passport_request_body.py index b38fcdd190..3407aa586f 100644 --- a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/passport_request_body.py +++ b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/passport_request_body.py @@ -33,7 +33,7 @@ def __init__(self, image=None, url=None, country_code=None): The model defined in huaweicloud sdk - :param image: 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过4096px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,[点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)](tag:hc)[点击[这里](https://support.huaweicloud.com/intl/zh-cn/ocr_faq/ocr_01_0032.html)](tag:hk)查看详细获取方式。 + :param image: 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过4096px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,[点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)](tag:hc)[点击[这里](https://support.huaweicloud.com/intl/zh-cn/ocr_faq/ocr_01_0032.html)](tag:hk)查看详细获取方式。 :type image: str :param url: 与image二选一 图片的URL路径,目前支持: - 公网http/https url - OBS提供的url,使用OBS数据需要进行授权。包括对服务授权、临时授权、匿名公开授权,[详情参见[配置OBS访问权限](https://support.huaweicloud.com/api-ocr/ocr_03_0132.html)。](tag:hc)[详情参见[配置OBS访问权限](https://support.huaweicloud.com/intl/zh-cn/api-ocr/ocr_03_0132.html)。](tag:hk) 。 > 说明: - 接口响应时间依赖于图片的下载时间,如果图片下载时间过长,会返回接口调用失败。 - 请保证被检测图片所在的存储服务稳定可靠,推荐使用OBS服务存储图片数据。 - url中不能存在中文字符,若存在,中文需要进行utf8编码。 :type url: str @@ -59,7 +59,7 @@ def __init__(self, image=None, url=None, country_code=None): def image(self): """Gets the image of this PassportRequestBody. - 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过4096px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,[点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)](tag:hc)[点击[这里](https://support.huaweicloud.com/intl/zh-cn/ocr_faq/ocr_01_0032.html)](tag:hk)查看详细获取方式。 + 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过4096px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,[点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)](tag:hc)[点击[这里](https://support.huaweicloud.com/intl/zh-cn/ocr_faq/ocr_01_0032.html)](tag:hk)查看详细获取方式。 :return: The image of this PassportRequestBody. :rtype: str @@ -70,7 +70,7 @@ def image(self): def image(self, image): """Sets the image of this PassportRequestBody. - 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过4096px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,[点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)](tag:hc)[点击[这里](https://support.huaweicloud.com/intl/zh-cn/ocr_faq/ocr_01_0032.html)](tag:hk)查看详细获取方式。 + 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过4096px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,[点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)](tag:hc)[点击[这里](https://support.huaweicloud.com/intl/zh-cn/ocr_faq/ocr_01_0032.html)](tag:hk)查看详细获取方式。 :param image: The image of this PassportRequestBody. :type image: str diff --git a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/qualification_certificate_request_body.py b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/qualification_certificate_request_body.py index a800ffb034..ba448042ea 100644 --- a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/qualification_certificate_request_body.py +++ b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/qualification_certificate_request_body.py @@ -31,7 +31,7 @@ def __init__(self, image=None, url=None): The model defined in huaweicloud sdk - :param image: 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过8192px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 + :param image: 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过8192px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 :type image: str :param url: 与image二选一 图片的URL路径,目前支持: - 公网http/https url - OBS提供的url,使用OBS数据需要进行授权。包括对服务授权、临时授权、匿名公开授权,详情参见[配置OBS访问权限](https://support.huaweicloud.com/api-ocr/ocr_03_0132.html)。 > 说明: - 接口响应时间依赖于图片的下载时间,如果图片下载时间过长,会返回接口调用失败。 - 请保证被检测图片所在的存储服务稳定可靠,推荐使用OBS服务存储图片数据。 - url中不能存在中文字符,若存在,中文需要进行utf8编码。 :type url: str @@ -52,7 +52,7 @@ def __init__(self, image=None, url=None): def image(self): """Gets the image of this QualificationCertificateRequestBody. - 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过8192px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 + 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过8192px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 :return: The image of this QualificationCertificateRequestBody. :rtype: str @@ -63,7 +63,7 @@ def image(self): def image(self, image): """Sets the image of this QualificationCertificateRequestBody. - 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过8192px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 + 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过8192px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 :param image: The image of this QualificationCertificateRequestBody. :type image: str diff --git a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/quota_invoice_request_body.py b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/quota_invoice_request_body.py index 8516a158e7..50d0d6ef98 100644 --- a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/quota_invoice_request_body.py +++ b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/quota_invoice_request_body.py @@ -31,7 +31,7 @@ def __init__(self, image=None, url=None): The model defined in huaweicloud sdk - :param image: 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过4096px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 + :param image: 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过4096px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 :type image: str :param url: 与image二选一 图片的URL路径,目前支持: - 公网http/https url - OBS提供的url,使用OBS数据需要进行授权。包括对服务授权、临时授权、匿名公开授权,详情参见[配置OBS访问权限](https://support.huaweicloud.com/api-ocr/ocr_03_0132.html)。 > 说明: - 接口响应时间依赖于图片的下载时间,如果图片下载时间过长,会返回接口调用失败。 - 请保证被检测图片所在的存储服务稳定可靠,推荐使用OBS服务存储图片数据。 - url中不能存在中文字符,若存在,中文需要进行utf8编码。 :type url: str @@ -52,7 +52,7 @@ def __init__(self, image=None, url=None): def image(self): """Gets the image of this QuotaInvoiceRequestBody. - 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过4096px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 + 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过4096px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 :return: The image of this QuotaInvoiceRequestBody. :rtype: str @@ -63,7 +63,7 @@ def image(self): def image(self, image): """Sets the image of this QuotaInvoiceRequestBody. - 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过4096px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 + 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过4096px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 :param image: The image of this QuotaInvoiceRequestBody. :type image: str diff --git a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/smart_document_recognizer_request_body.py b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/smart_document_recognizer_request_body.py index c49e67bc3d..f941559612 100644 --- a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/smart_document_recognizer_request_body.py +++ b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/smart_document_recognizer_request_body.py @@ -53,7 +53,7 @@ def __init__(self, data=None, url=None, single_orientation_mode=None, kv=None, t :type data: str :param url: 与data二选一。 图片或PDF的URL路径,目前支持: - 公网http/https url - OBS提供的url,使用OBS数据需要进行授权。包括对服务授权、临时授权、匿名公开授权,详情参见[配置OBS访问权限](https://support.huaweicloud.com/api-ocr/ocr_03_0132.html)。 > 说明: - 接口响应时间依赖于图片的下载时间,如果图片下载时间过长,会返回接口调用失败。 - 请保证被检测图片所在的存储服务稳定可靠,推荐使用OBS服务存储图片数据。 - url中不能存在中文字符,若存在,中文需要进行utf8编码。 :type url: str - :param single_orientation_mode: 单朝向模式开关。可选值包括: - true:打开单朝向模式 - false:关闭单朝向模式 未传入该参数时默认为false,既默认图片中的字段为多朝向 + :param single_orientation_mode: 单朝向模式开关。可选值包括: - true:打开单朝向模式 - false:关闭单朝向模式 未传入该参数时默认为false,即默认图片中的字段为多朝向 :type single_orientation_mode: bool :param kv: 是否进行键值对(key-value)提取。若是,结果会以“kv_result”这一关键字返回。 :type kv: bool @@ -159,7 +159,7 @@ def url(self, url): def single_orientation_mode(self): """Gets the single_orientation_mode of this SmartDocumentRecognizerRequestBody. - 单朝向模式开关。可选值包括: - true:打开单朝向模式 - false:关闭单朝向模式 未传入该参数时默认为false,既默认图片中的字段为多朝向 + 单朝向模式开关。可选值包括: - true:打开单朝向模式 - false:关闭单朝向模式 未传入该参数时默认为false,即默认图片中的字段为多朝向 :return: The single_orientation_mode of this SmartDocumentRecognizerRequestBody. :rtype: bool @@ -170,7 +170,7 @@ def single_orientation_mode(self): def single_orientation_mode(self, single_orientation_mode): """Sets the single_orientation_mode of this SmartDocumentRecognizerRequestBody. - 单朝向模式开关。可选值包括: - true:打开单朝向模式 - false:关闭单朝向模式 未传入该参数时默认为false,既默认图片中的字段为多朝向 + 单朝向模式开关。可选值包括: - true:打开单朝向模式 - false:关闭单朝向模式 未传入该参数时默认为false,即默认图片中的字段为多朝向 :param single_orientation_mode: The single_orientation_mode of this SmartDocumentRecognizerRequestBody. :type single_orientation_mode: bool diff --git a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/taxi_invoice_request_body.py b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/taxi_invoice_request_body.py index ae970a6052..5407e59993 100644 --- a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/taxi_invoice_request_body.py +++ b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/taxi_invoice_request_body.py @@ -33,7 +33,7 @@ def __init__(self, image=None, url=None, return_text_location=None): The model defined in huaweicloud sdk - :param image: 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过4096px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 + :param image: 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过4096px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 :type image: str :param url: 与image二选一 图片的URL路径,目前支持: - 公网http/https url - OBS提供的url,使用OBS数据需要进行授权。包括对服务授权、临时授权、匿名公开授权,详情参见[配置OBS访问权限](https://support.huaweicloud.com/api-ocr/ocr_03_0132.html)。 > 说明: - 接口响应时间依赖于图片的下载时间,如果图片下载时间过长,会返回接口调用失败。 - 请保证被检测图片所在的存储服务稳定可靠,推荐使用OBS服务存储图片数据。 - url中不能存在中文字符,若存在,中文需要进行utf8编码。 :type url: str @@ -59,7 +59,7 @@ def __init__(self, image=None, url=None, return_text_location=None): def image(self): """Gets the image of this TaxiInvoiceRequestBody. - 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过4096px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 + 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过4096px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 :return: The image of this TaxiInvoiceRequestBody. :rtype: str @@ -70,7 +70,7 @@ def image(self): def image(self, image): """Sets the image of this TaxiInvoiceRequestBody. - 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过4096px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 + 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过4096px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 :param image: The image of this TaxiInvoiceRequestBody. :type image: str diff --git a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/toll_invoice_request_body.py b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/toll_invoice_request_body.py index 5509f2ebfa..1ccb04af33 100644 --- a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/toll_invoice_request_body.py +++ b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/toll_invoice_request_body.py @@ -33,7 +33,7 @@ def __init__(self, image=None, url=None, return_text_location=None): The model defined in huaweicloud sdk - :param image: 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过4096px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 + :param image: 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过4096px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 :type image: str :param url: 与image二选一 图片的URL路径,目前支持: - 公网http/https url - OBS提供的url,使用OBS数据需要进行授权。包括对服务授权、临时授权、匿名公开授权,详情参见[配置OBS访问权限](https://support.huaweicloud.com/api-ocr/ocr_03_0132.html)。 > 说明: - 接口响应时间依赖于图片的下载时间,如果图片下载时间过长,会返回接口调用失败。 - 请保证被检测图片所在的存储服务稳定可靠,推荐使用OBS服务存储图片数据。 - url中不能存在中文字符,若存在,中文需要进行utf8编码。 :type url: str @@ -59,7 +59,7 @@ def __init__(self, image=None, url=None, return_text_location=None): def image(self): """Gets the image of this TollInvoiceRequestBody. - 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过4096px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 + 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过4096px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 :return: The image of this TollInvoiceRequestBody. :rtype: str @@ -70,7 +70,7 @@ def image(self): def image(self, image): """Sets the image of this TollInvoiceRequestBody. - 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过4096px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 + 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过4096px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 :param image: The image of this TollInvoiceRequestBody. :type image: str diff --git a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/train_ticket_request_body.py b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/train_ticket_request_body.py index cccf6a0b22..8a39ab295b 100644 --- a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/train_ticket_request_body.py +++ b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/train_ticket_request_body.py @@ -33,7 +33,7 @@ def __init__(self, image=None, url=None, return_text_location=None): The model defined in huaweicloud sdk - :param image: 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过8192px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 + :param image: 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过8192px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 :type image: str :param url: 与image二选一 图片的URL路径,目前支持: - 公网http/https url - OBS提供的url,使用OBS数据需要进行授权。包括对服务授权、临时授权、匿名公开授权,详情参见[配置OBS访问权限](https://support.huaweicloud.com/api-ocr/ocr_03_0132.html)。 > 说明: - 接口响应时间依赖于图片的下载时间,如果图片下载时间过长,会返回接口调用失败。 - 请保证被检测图片所在的存储服务稳定可靠,推荐使用OBS服务存储图片数据。 - url中不能存在中文字符,若存在,中文需要进行utf8编码。 :type url: str @@ -59,7 +59,7 @@ def __init__(self, image=None, url=None, return_text_location=None): def image(self): """Gets the image of this TrainTicketRequestBody. - 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过8192px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 + 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过8192px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 :return: The image of this TrainTicketRequestBody. :rtype: str @@ -70,7 +70,7 @@ def image(self): def image(self, image): """Sets the image of this TrainTicketRequestBody. - 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过8192px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 + 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过8192px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 :param image: The image of this TrainTicketRequestBody. :type image: str diff --git a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/transportation_license_request_body.py b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/transportation_license_request_body.py index 0bb1a61ff6..a88b6f9fdf 100644 --- a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/transportation_license_request_body.py +++ b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/transportation_license_request_body.py @@ -31,7 +31,7 @@ def __init__(self, image=None, url=None): The model defined in huaweicloud sdk - :param image: 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过4096px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 + :param image: 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过4096px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 :type image: str :param url: 与image二选一 图片的URL路径,目前支持: - 公网http/https url - OBS提供的url,使用OBS数据需要进行授权。包括对服务授权、临时授权、匿名公开授权,详情参见[配置OBS访问权限](https://support.huaweicloud.com/api-ocr/ocr_03_0132.html)。 > 说明: - 接口响应时间依赖于图片的下载时间,如果图片下载时间过长,会返回接口调用失败。 - 请保证被检测图片所在的存储服务稳定可靠,推荐使用OBS服务存储图片数据。 - url中不能存在中文字符,若存在,中文需要进行utf8编码。 :type url: str @@ -52,7 +52,7 @@ def __init__(self, image=None, url=None): def image(self): """Gets the image of this TransportationLicenseRequestBody. - 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过4096px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 + 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过4096px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 :return: The image of this TransportationLicenseRequestBody. :rtype: str @@ -63,7 +63,7 @@ def image(self): def image(self, image): """Sets the image of this TransportationLicenseRequestBody. - 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过4096px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 + 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过4096px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 :param image: The image of this TransportationLicenseRequestBody. :type image: str diff --git a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/transportation_license_result.py b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/transportation_license_result.py index 88dd1c9614..f3ca443294 100644 --- a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/transportation_license_result.py +++ b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/transportation_license_result.py @@ -29,6 +29,9 @@ class TransportationLicenseResult: 'economic_type': 'str', 'business_certificate': 'str', 'business_scope': 'str', + 'expiry_date': 'str', + 'review_expiry_date': 'str', + 'assessed_technical_level': 'str', 'confidence': 'object' } @@ -45,10 +48,13 @@ class TransportationLicenseResult: 'economic_type': 'economic_type', 'business_certificate': 'business_certificate', 'business_scope': 'business_scope', + 'expiry_date': 'expiry_date', + 'review_expiry_date': 'review_expiry_date', + 'assessed_technical_level': 'assessed_technical_level', 'confidence': 'confidence' } - def __init__(self, owner_name=None, license_number=None, vehicle_number=None, vehicle_type=None, maximum_capacity=None, vehicle_size=None, issuing_authority=None, issue_date=None, owner_address=None, economic_type=None, business_certificate=None, business_scope=None, confidence=None): + def __init__(self, owner_name=None, license_number=None, vehicle_number=None, vehicle_type=None, maximum_capacity=None, vehicle_size=None, issuing_authority=None, issue_date=None, owner_address=None, economic_type=None, business_certificate=None, business_scope=None, expiry_date=None, review_expiry_date=None, assessed_technical_level=None, confidence=None): """TransportationLicenseResult The model defined in huaweicloud sdk @@ -65,18 +71,24 @@ def __init__(self, owner_name=None, license_number=None, vehicle_number=None, ve :type maximum_capacity: str :param vehicle_size: 车辆尺寸。 :type vehicle_size: str - :param issuing_authority: 核发机关(非必有,依赖对应运输证板式)。 + :param issuing_authority: 核发机关。 :type issuing_authority: str - :param issue_date: 发证日期(非必有,依赖对应运输证板式)。 + :param issue_date: 发证日期。 :type issue_date: str - :param owner_address: 业户地址(非必有,依赖对应运输证板式)。 + :param owner_address: 业户地址。 :type owner_address: str - :param economic_type: 经济类型(非必有,依赖对应运输证板式)。 + :param economic_type: 经济类型。 :type economic_type: str - :param business_certificate: 经营许可证号(非必有,依赖对应运输证板式)。 + :param business_certificate: 经营许可证号。 :type business_certificate: str - :param business_scope: 经营范围(非必有,依赖对应运输证板式)。 + :param business_scope: 经营范围。 :type business_scope: str + :param expiry_date: 有效期。 + :type expiry_date: str + :param review_expiry_date: 审验有效期。 + :type review_expiry_date: str + :param assessed_technical_level: 技术等级评定。 + :type assessed_technical_level: str :param confidence: 相关字段的置信度信息,置信度越大,表示本次识别的对应字段的可靠性越高,在统计意义上,置信度越大,准确率越高。 置信度由算法给出,不直接等价于对应字段的准确率。 :type confidence: object """ @@ -95,6 +107,9 @@ def __init__(self, owner_name=None, license_number=None, vehicle_number=None, ve self._economic_type = None self._business_certificate = None self._business_scope = None + self._expiry_date = None + self._review_expiry_date = None + self._assessed_technical_level = None self._confidence = None self.discriminator = None @@ -122,6 +137,12 @@ def __init__(self, owner_name=None, license_number=None, vehicle_number=None, ve self.business_certificate = business_certificate if business_scope is not None: self.business_scope = business_scope + if expiry_date is not None: + self.expiry_date = expiry_date + if review_expiry_date is not None: + self.review_expiry_date = review_expiry_date + if assessed_technical_level is not None: + self.assessed_technical_level = assessed_technical_level if confidence is not None: self.confidence = confidence @@ -261,7 +282,7 @@ def vehicle_size(self, vehicle_size): def issuing_authority(self): """Gets the issuing_authority of this TransportationLicenseResult. - 核发机关(非必有,依赖对应运输证板式)。 + 核发机关。 :return: The issuing_authority of this TransportationLicenseResult. :rtype: str @@ -272,7 +293,7 @@ def issuing_authority(self): def issuing_authority(self, issuing_authority): """Sets the issuing_authority of this TransportationLicenseResult. - 核发机关(非必有,依赖对应运输证板式)。 + 核发机关。 :param issuing_authority: The issuing_authority of this TransportationLicenseResult. :type issuing_authority: str @@ -283,7 +304,7 @@ def issuing_authority(self, issuing_authority): def issue_date(self): """Gets the issue_date of this TransportationLicenseResult. - 发证日期(非必有,依赖对应运输证板式)。 + 发证日期。 :return: The issue_date of this TransportationLicenseResult. :rtype: str @@ -294,7 +315,7 @@ def issue_date(self): def issue_date(self, issue_date): """Sets the issue_date of this TransportationLicenseResult. - 发证日期(非必有,依赖对应运输证板式)。 + 发证日期。 :param issue_date: The issue_date of this TransportationLicenseResult. :type issue_date: str @@ -305,7 +326,7 @@ def issue_date(self, issue_date): def owner_address(self): """Gets the owner_address of this TransportationLicenseResult. - 业户地址(非必有,依赖对应运输证板式)。 + 业户地址。 :return: The owner_address of this TransportationLicenseResult. :rtype: str @@ -316,7 +337,7 @@ def owner_address(self): def owner_address(self, owner_address): """Sets the owner_address of this TransportationLicenseResult. - 业户地址(非必有,依赖对应运输证板式)。 + 业户地址。 :param owner_address: The owner_address of this TransportationLicenseResult. :type owner_address: str @@ -327,7 +348,7 @@ def owner_address(self, owner_address): def economic_type(self): """Gets the economic_type of this TransportationLicenseResult. - 经济类型(非必有,依赖对应运输证板式)。 + 经济类型。 :return: The economic_type of this TransportationLicenseResult. :rtype: str @@ -338,7 +359,7 @@ def economic_type(self): def economic_type(self, economic_type): """Sets the economic_type of this TransportationLicenseResult. - 经济类型(非必有,依赖对应运输证板式)。 + 经济类型。 :param economic_type: The economic_type of this TransportationLicenseResult. :type economic_type: str @@ -349,7 +370,7 @@ def economic_type(self, economic_type): def business_certificate(self): """Gets the business_certificate of this TransportationLicenseResult. - 经营许可证号(非必有,依赖对应运输证板式)。 + 经营许可证号。 :return: The business_certificate of this TransportationLicenseResult. :rtype: str @@ -360,7 +381,7 @@ def business_certificate(self): def business_certificate(self, business_certificate): """Sets the business_certificate of this TransportationLicenseResult. - 经营许可证号(非必有,依赖对应运输证板式)。 + 经营许可证号。 :param business_certificate: The business_certificate of this TransportationLicenseResult. :type business_certificate: str @@ -371,7 +392,7 @@ def business_certificate(self, business_certificate): def business_scope(self): """Gets the business_scope of this TransportationLicenseResult. - 经营范围(非必有,依赖对应运输证板式)。 + 经营范围。 :return: The business_scope of this TransportationLicenseResult. :rtype: str @@ -382,13 +403,79 @@ def business_scope(self): def business_scope(self, business_scope): """Sets the business_scope of this TransportationLicenseResult. - 经营范围(非必有,依赖对应运输证板式)。 + 经营范围。 :param business_scope: The business_scope of this TransportationLicenseResult. :type business_scope: str """ self._business_scope = business_scope + @property + def expiry_date(self): + """Gets the expiry_date of this TransportationLicenseResult. + + 有效期。 + + :return: The expiry_date of this TransportationLicenseResult. + :rtype: str + """ + return self._expiry_date + + @expiry_date.setter + def expiry_date(self, expiry_date): + """Sets the expiry_date of this TransportationLicenseResult. + + 有效期。 + + :param expiry_date: The expiry_date of this TransportationLicenseResult. + :type expiry_date: str + """ + self._expiry_date = expiry_date + + @property + def review_expiry_date(self): + """Gets the review_expiry_date of this TransportationLicenseResult. + + 审验有效期。 + + :return: The review_expiry_date of this TransportationLicenseResult. + :rtype: str + """ + return self._review_expiry_date + + @review_expiry_date.setter + def review_expiry_date(self, review_expiry_date): + """Sets the review_expiry_date of this TransportationLicenseResult. + + 审验有效期。 + + :param review_expiry_date: The review_expiry_date of this TransportationLicenseResult. + :type review_expiry_date: str + """ + self._review_expiry_date = review_expiry_date + + @property + def assessed_technical_level(self): + """Gets the assessed_technical_level of this TransportationLicenseResult. + + 技术等级评定。 + + :return: The assessed_technical_level of this TransportationLicenseResult. + :rtype: str + """ + return self._assessed_technical_level + + @assessed_technical_level.setter + def assessed_technical_level(self, assessed_technical_level): + """Sets the assessed_technical_level of this TransportationLicenseResult. + + 技术等级评定。 + + :param assessed_technical_level: The assessed_technical_level of this TransportationLicenseResult. + :type assessed_technical_level: str + """ + self._assessed_technical_level = assessed_technical_level + @property def confidence(self): """Gets the confidence of this TransportationLicenseResult. diff --git a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/vat_invoice_request_body.py b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/vat_invoice_request_body.py index 78c10a9d61..5cdeda2c6d 100644 --- a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/vat_invoice_request_body.py +++ b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/vat_invoice_request_body.py @@ -37,7 +37,7 @@ def __init__(self, image=None, url=None, advanced_mode=None, return_text_locatio The model defined in huaweicloud sdk - :param image: 该参数与url二选一。图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于100px,最长边不超过8192px,支持JPEG、JPG、PNG、BMP、TIFF、PDF、OFD格式,多页PDF仅识别第一页。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 + :param image: 该参数与url二选一。图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于100px,最长边不超过8192px,支持JPEG、JPG、PNG、BMP、TIFF、PDF、OFD格式,多页PDF仅识别第一页。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 :type image: str :param url: 与image二选一 图片的URL路径,目前支持: - 公网http/https url - OBS提供的url,使用OBS数据需要进行授权。包括对服务授权、临时授权、匿名公开授权,详情参见[配置OBS访问权限](https://support.huaweicloud.com/api-ocr/ocr_03_0132.html)。 > 说明: - 接口响应时间依赖于图片的下载时间,如果图片下载时间过长,会返回接口调用失败。 - 请保证被检测图片所在的存储服务稳定可靠,推荐使用OBS服务存储图片数据。 - url中不能存在中文字符,若存在,中文需要进行utf8编码。 :type url: str @@ -73,7 +73,7 @@ def __init__(self, image=None, url=None, advanced_mode=None, return_text_locatio def image(self): """Gets the image of this VatInvoiceRequestBody. - 该参数与url二选一。图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于100px,最长边不超过8192px,支持JPEG、JPG、PNG、BMP、TIFF、PDF、OFD格式,多页PDF仅识别第一页。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 + 该参数与url二选一。图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于100px,最长边不超过8192px,支持JPEG、JPG、PNG、BMP、TIFF、PDF、OFD格式,多页PDF仅识别第一页。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 :return: The image of this VatInvoiceRequestBody. :rtype: str @@ -84,7 +84,7 @@ def image(self): def image(self, image): """Sets the image of this VatInvoiceRequestBody. - 该参数与url二选一。图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于100px,最长边不超过8192px,支持JPEG、JPG、PNG、BMP、TIFF、PDF、OFD格式,多页PDF仅识别第一页。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 + 该参数与url二选一。图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于100px,最长边不超过8192px,支持JPEG、JPG、PNG、BMP、TIFF、PDF、OFD格式,多页PDF仅识别第一页。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 :param image: The image of this VatInvoiceRequestBody. :type image: str diff --git a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/vehicle_license_request_body.py b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/vehicle_license_request_body.py index 04687c99e9..d9d70dcd20 100644 --- a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/vehicle_license_request_body.py +++ b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/vehicle_license_request_body.py @@ -37,7 +37,7 @@ def __init__(self, image=None, url=None, side=None, return_issuing_authority=Non The model defined in huaweicloud sdk - :param image: 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于100px,最长边不超过8000px。支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 + :param image: 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于100px,最长边不超过8000px。支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 :type image: str :param url: 与image二选一 图片的URL路径,目前支持: - 公网http/https url - OBS提供的url,使用OBS数据需要进行授权。包括对服务授权、临时授权、匿名公开授权,详情参见[配置OBS访问权限](https://support.huaweicloud.com/api-ocr/ocr_03_0132.html)。 > 说明: - 接口响应时间依赖于图片的下载时间,如果图片下载时间过长,会返回接口调用失败。 - 请保证被检测图片所在的存储服务稳定可靠,推荐使用OBS服务存储图片数据。 - url中不能存在中文字符,若存在,中文需要进行utf8编码。 :type url: str @@ -73,7 +73,7 @@ def __init__(self, image=None, url=None, side=None, return_issuing_authority=Non def image(self): """Gets the image of this VehicleLicenseRequestBody. - 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于100px,最长边不超过8000px。支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 + 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于100px,最长边不超过8000px。支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 :return: The image of this VehicleLicenseRequestBody. :rtype: str @@ -84,7 +84,7 @@ def image(self): def image(self, image): """Sets the image of this VehicleLicenseRequestBody. - 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于100px,最长边不超过8000px。支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 + 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于100px,最长边不超过8000px。支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 :param image: The image of this VehicleLicenseRequestBody. :type image: str diff --git a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/vehicle_licenseback.py b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/vehicle_licenseback.py index 6fc8934e41..03d6487506 100644 --- a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/vehicle_licenseback.py +++ b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/vehicle_licenseback.py @@ -73,7 +73,7 @@ def __init__(self, number=None, file_no=None, approved_passengers=None, gross_ma :type remarks: str :param inspection_record: 检验记录。 :type inspection_record: str - :param code_number: 条码号。 + :param code_number: 条码号。 :type code_number: str :param energy_type: 能源类型。 :type energy_type: str @@ -349,7 +349,7 @@ def inspection_record(self, inspection_record): def code_number(self): """Gets the code_number of this VehicleLicenseback. - 条码号。 + 条码号。 :return: The code_number of this VehicleLicenseback. :rtype: str @@ -360,7 +360,7 @@ def code_number(self): def code_number(self, code_number): """Sets the code_number of this VehicleLicenseback. - 条码号。 + 条码号。 :param code_number: The code_number of this VehicleLicenseback. :type code_number: str diff --git a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/vin_request_body.py b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/vin_request_body.py index 9271c4ce8a..d047e57565 100644 --- a/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/vin_request_body.py +++ b/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/vin_request_body.py @@ -31,7 +31,7 @@ def __init__(self, image=None, url=None): The model defined in huaweicloud sdk - :param image: 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过4096px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 + :param image: 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过4096px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 :type image: str :param url: 与image二选一 图片的URL路径,目前支持: - 公网http/https url - OBS提供的url,使用OBS数据需要进行授权。包括对服务授权、临时授权、匿名公开授权,详情参见[配置OBS访问权限](https://support.huaweicloud.com/api-ocr/ocr_03_0132.html)。 > 说明: - 接口响应时间依赖于图片的下载时间,如果图片下载时间过长,会返回接口调用失败。 - 请保证被检测图片所在的存储服务稳定可靠,推荐使用OBS服务存储图片数据。 - url中不能存在中文字符,若存在,中文需要进行utf8编码。 :type url: str @@ -52,7 +52,7 @@ def __init__(self, image=None, url=None): def image(self): """Gets the image of this VinRequestBody. - 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过4096px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 + 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过4096px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 :return: The image of this VinRequestBody. :rtype: str @@ -63,7 +63,7 @@ def image(self): def image(self, image): """Sets the image of this VinRequestBody. - 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过4096px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 + 与url二选一 图像数据,base64编码,要求base64编码后大小不超过10MB。图片最小边不小于15px,最长边不超过4096px,支持JPEG、JPG、PNG、BMP、TIFF格式。 图片文件Base64编码字符串,点击[这里](https://support.huaweicloud.com/ocr_faq/ocr_01_0032.html)查看详细获取方式。 :param image: The image of this VinRequestBody. :type image: str diff --git a/huaweicloud-sdk-ocr/requirements.txt b/huaweicloud-sdk-ocr/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-ocr/requirements.txt +++ b/huaweicloud-sdk-ocr/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-ocr/setup.py b/huaweicloud-sdk-ocr/setup.py index 80f5051aa5..d8d3e52f41 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-octopus/requirements.txt b/huaweicloud-sdk-octopus/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-octopus/requirements.txt +++ b/huaweicloud-sdk-octopus/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-octopus/setup.py b/huaweicloud-sdk-octopus/setup.py index c14f5bcd94..d79f5aa1fc 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-oms/requirements.txt b/huaweicloud-sdk-oms/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-oms/requirements.txt +++ b/huaweicloud-sdk-oms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-oms/setup.py b/huaweicloud-sdk-oms/setup.py index 51d7c8548e..add641c2c1 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-optverse/requirements.txt b/huaweicloud-sdk-optverse/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-optverse/requirements.txt +++ b/huaweicloud-sdk-optverse/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-optverse/setup.py b/huaweicloud-sdk-optverse/setup.py index 8c0bb06d82..021b519d37 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-organizations/requirements.txt b/huaweicloud-sdk-organizations/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-organizations/requirements.txt +++ b/huaweicloud-sdk-organizations/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-organizations/setup.py b/huaweicloud-sdk-organizations/setup.py index 29982c0153..278a1bad9e 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-orgid/requirements.txt b/huaweicloud-sdk-orgid/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-orgid/requirements.txt +++ b/huaweicloud-sdk-orgid/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-orgid/setup.py b/huaweicloud-sdk-orgid/setup.py index 5616b1dfb4..499eda296f 100644 --- a/huaweicloud-sdk-orgid/setup.py +++ b/huaweicloud-sdk-orgid/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkorgid" -VERSION = "3.1.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-oroas/requirements.txt b/huaweicloud-sdk-oroas/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-oroas/requirements.txt +++ b/huaweicloud-sdk-oroas/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-oroas/setup.py b/huaweicloud-sdk-oroas/setup.py index 65ffa3dc0b..20345cfc68 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-osm/requirements.txt b/huaweicloud-sdk-osm/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-osm/requirements.txt +++ b/huaweicloud-sdk-osm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-osm/setup.py b/huaweicloud-sdk-osm/setup.py index 4a512995ba..6d6827c510 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-pangulargemodels/requirements.txt b/huaweicloud-sdk-pangulargemodels/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-pangulargemodels/requirements.txt +++ b/huaweicloud-sdk-pangulargemodels/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-pangulargemodels/setup.py b/huaweicloud-sdk-pangulargemodels/setup.py index aadc38f5ad..cc2d03299a 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-projectman/requirements.txt b/huaweicloud-sdk-projectman/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-projectman/requirements.txt +++ b/huaweicloud-sdk-projectman/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-projectman/setup.py b/huaweicloud-sdk-projectman/setup.py index c13b5ddb4f..9cc639f59d 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-rabbitmq/requirements.txt b/huaweicloud-sdk-rabbitmq/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-rabbitmq/requirements.txt +++ b/huaweicloud-sdk-rabbitmq/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-rabbitmq/setup.py b/huaweicloud-sdk-rabbitmq/setup.py index 92649acf5b..7f7eb73233 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ram/requirements.txt b/huaweicloud-sdk-ram/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-ram/requirements.txt +++ b/huaweicloud-sdk-ram/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-ram/setup.py b/huaweicloud-sdk-ram/setup.py index 464cd4ae2c..314b12a302 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/create_instance_resp_item.py b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/create_instance_resp_item.py index 3b5fafddc3..cfe6475521 100644 --- a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/create_instance_resp_item.py +++ b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/create_instance_resp_item.py @@ -91,9 +91,9 @@ def __init__(self, id=None, name=None, status=None, datastore=None, ha=None, con :type flavor_ref: str :param volume: :type volume: :class:`huaweicloudsdkrds.v3.Volume` - :param region: 区域ID。创建主实例时必选,其它场景不可选。 取值参见[地区和终端节点](https://developer.huaweicloud.com/endpoint)。 + :param region: 区域ID。创建主实例时必选,其它场景不可选。 取值参见OpenAPI查询数据库规格(https://console.huaweicloud.com/apiexplorer/#/openapi/RDS/doc?api=ListFlavors)响应体的az_desc字段。 :type region: str - :param availability_zone: 可用区ID。对于数据库实例类型不是单机的实例,需要分别为实例所有节点指定可用区,并用逗号隔开。 取值参见[地区和终端节点](https://developer.huaweicloud.com/endpoint)。 + :param availability_zone: 可用区ID。对于数据库实例类型不是单机的实例,需要分别为实例所有节点指定可用区,并用逗号隔开。 取值参见OpenAPI查询数据库规格(https://console.huaweicloud.com/apiexplorer/#/openapi/RDS/doc?api=ListFlavors)响应体的az_desc字段。 :type availability_zone: str :param vpc_id: 虚拟私有云ID。创建只读实例时不可选(只读实例的网络属性默认和主实例相同),其它场景必选。 :type vpc_id: str @@ -417,7 +417,7 @@ def volume(self, volume): def region(self): """Gets the region of this CreateInstanceRespItem. - 区域ID。创建主实例时必选,其它场景不可选。 取值参见[地区和终端节点](https://developer.huaweicloud.com/endpoint)。 + 区域ID。创建主实例时必选,其它场景不可选。 取值参见OpenAPI查询数据库规格(https://console.huaweicloud.com/apiexplorer/#/openapi/RDS/doc?api=ListFlavors)响应体的az_desc字段。 :return: The region of this CreateInstanceRespItem. :rtype: str @@ -428,7 +428,7 @@ def region(self): def region(self, region): """Sets the region of this CreateInstanceRespItem. - 区域ID。创建主实例时必选,其它场景不可选。 取值参见[地区和终端节点](https://developer.huaweicloud.com/endpoint)。 + 区域ID。创建主实例时必选,其它场景不可选。 取值参见OpenAPI查询数据库规格(https://console.huaweicloud.com/apiexplorer/#/openapi/RDS/doc?api=ListFlavors)响应体的az_desc字段。 :param region: The region of this CreateInstanceRespItem. :type region: str @@ -439,7 +439,7 @@ def region(self, region): def availability_zone(self): """Gets the availability_zone of this CreateInstanceRespItem. - 可用区ID。对于数据库实例类型不是单机的实例,需要分别为实例所有节点指定可用区,并用逗号隔开。 取值参见[地区和终端节点](https://developer.huaweicloud.com/endpoint)。 + 可用区ID。对于数据库实例类型不是单机的实例,需要分别为实例所有节点指定可用区,并用逗号隔开。 取值参见OpenAPI查询数据库规格(https://console.huaweicloud.com/apiexplorer/#/openapi/RDS/doc?api=ListFlavors)响应体的az_desc字段。 :return: The availability_zone of this CreateInstanceRespItem. :rtype: str @@ -450,7 +450,7 @@ def availability_zone(self): def availability_zone(self, availability_zone): """Sets the availability_zone of this CreateInstanceRespItem. - 可用区ID。对于数据库实例类型不是单机的实例,需要分别为实例所有节点指定可用区,并用逗号隔开。 取值参见[地区和终端节点](https://developer.huaweicloud.com/endpoint)。 + 可用区ID。对于数据库实例类型不是单机的实例,需要分别为实例所有节点指定可用区,并用逗号隔开。 取值参见OpenAPI查询数据库规格(https://console.huaweicloud.com/apiexplorer/#/openapi/RDS/doc?api=ListFlavors)响应体的az_desc字段。 :param availability_zone: The availability_zone of this CreateInstanceRespItem. :type availability_zone: str diff --git a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/create_restore_instance_request_body.py b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/create_restore_instance_request_body.py index 9425c03893..fcf0b92db2 100644 --- a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/create_restore_instance_request_body.py +++ b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/create_restore_instance_request_body.py @@ -99,9 +99,9 @@ def __init__(self, name=None, datastore=None, ha=None, configuration_id=None, po :type flavor_ref: str :param volume: :type volume: :class:`huaweicloudsdkrds.v3.Volume` - :param region: 区域ID。创建主实例时必选,其它场景不可选。 取值参见[地区和终端节点](https://developer.huaweicloud.com/endpoint)。 SQL Server数据库和PostgreSQL数据库备份恢复到新实例时为必填项。 + :param region: 区域ID。创建主实例时必选,其它场景不可选。 取值参见OpenAPI查询数据库规格(https://console.huaweicloud.com/apiexplorer/#/openapi/RDS/doc?api=ListFlavors)响应体的az_desc字段。 SQL Server数据库和PostgreSQL数据库备份恢复到新实例时为必填项。 :type region: str - :param availability_zone: 可用区ID。对于数据库实例类型不是单机的实例,需要分别为实例所有节点指定可用区,并用逗号隔开。 取值参见[地区和终端节点](https://developer.huaweicloud.com/endpoint)。 + :param availability_zone: 可用区ID。对于数据库实例类型不是单机的实例,需要分别为实例所有节点指定可用区,并用逗号隔开。 取值参见OpenAPI查询数据库规格(https://console.huaweicloud.com/apiexplorer/#/openapi/RDS/doc?api=ListFlavors)响应体的az_desc字段。 :type availability_zone: str :param vpc_id: 虚拟私有云ID。创建只读实例时不可选(只读实例的网络属性默认和主实例相同),其它场景必选。 获取方法如下: - 方法1:登录虚拟私有云服务的控制台界面,在虚拟私有云的详情页面查找VPC ID。 - 方法2:通过虚拟私有云服务的API接口查询,具体操作可参考[查询VPC列表](https://support.huaweicloud.com/api-vpc/vpc_api01_0003.html)。 SQL Server数据库和PostgreSQL数据库备份恢复到新实例时为必填项。 :type vpc_id: str @@ -435,7 +435,7 @@ def volume(self, volume): def region(self): """Gets the region of this CreateRestoreInstanceRequestBody. - 区域ID。创建主实例时必选,其它场景不可选。 取值参见[地区和终端节点](https://developer.huaweicloud.com/endpoint)。 SQL Server数据库和PostgreSQL数据库备份恢复到新实例时为必填项。 + 区域ID。创建主实例时必选,其它场景不可选。 取值参见OpenAPI查询数据库规格(https://console.huaweicloud.com/apiexplorer/#/openapi/RDS/doc?api=ListFlavors)响应体的az_desc字段。 SQL Server数据库和PostgreSQL数据库备份恢复到新实例时为必填项。 :return: The region of this CreateRestoreInstanceRequestBody. :rtype: str @@ -446,7 +446,7 @@ def region(self): def region(self, region): """Sets the region of this CreateRestoreInstanceRequestBody. - 区域ID。创建主实例时必选,其它场景不可选。 取值参见[地区和终端节点](https://developer.huaweicloud.com/endpoint)。 SQL Server数据库和PostgreSQL数据库备份恢复到新实例时为必填项。 + 区域ID。创建主实例时必选,其它场景不可选。 取值参见OpenAPI查询数据库规格(https://console.huaweicloud.com/apiexplorer/#/openapi/RDS/doc?api=ListFlavors)响应体的az_desc字段。 SQL Server数据库和PostgreSQL数据库备份恢复到新实例时为必填项。 :param region: The region of this CreateRestoreInstanceRequestBody. :type region: str @@ -457,7 +457,7 @@ def region(self, region): def availability_zone(self): """Gets the availability_zone of this CreateRestoreInstanceRequestBody. - 可用区ID。对于数据库实例类型不是单机的实例,需要分别为实例所有节点指定可用区,并用逗号隔开。 取值参见[地区和终端节点](https://developer.huaweicloud.com/endpoint)。 + 可用区ID。对于数据库实例类型不是单机的实例,需要分别为实例所有节点指定可用区,并用逗号隔开。 取值参见OpenAPI查询数据库规格(https://console.huaweicloud.com/apiexplorer/#/openapi/RDS/doc?api=ListFlavors)响应体的az_desc字段。 :return: The availability_zone of this CreateRestoreInstanceRequestBody. :rtype: str @@ -468,7 +468,7 @@ def availability_zone(self): def availability_zone(self, availability_zone): """Sets the availability_zone of this CreateRestoreInstanceRequestBody. - 可用区ID。对于数据库实例类型不是单机的实例,需要分别为实例所有节点指定可用区,并用逗号隔开。 取值参见[地区和终端节点](https://developer.huaweicloud.com/endpoint)。 + 可用区ID。对于数据库实例类型不是单机的实例,需要分别为实例所有节点指定可用区,并用逗号隔开。 取值参见OpenAPI查询数据库规格(https://console.huaweicloud.com/apiexplorer/#/openapi/RDS/doc?api=ListFlavors)响应体的az_desc字段。 :param availability_zone: The availability_zone of this CreateRestoreInstanceRequestBody. :type availability_zone: str diff --git a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/customer_create_instance_req.py b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/customer_create_instance_req.py index 433e39abd4..2409d573c7 100644 --- a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/customer_create_instance_req.py +++ b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/customer_create_instance_req.py @@ -107,9 +107,9 @@ def __init__(self, name=None, datastore=None, ha=None, configuration_id=None, po :type flavor_ref: str :param volume: :type volume: :class:`huaweicloudsdkrds.v3.Volume` - :param region: 区域ID。创建主实例时必选,其它场景不可选。 取值参见[地区和终端节点](https://developer.huaweicloud.com/endpoint)。 + :param region: 区域ID。创建主实例时必选,其它场景不可选。 取值参见OpenAPI查询数据库规格(https://console.huaweicloud.com/apiexplorer/#/openapi/RDS/doc?api=ListFlavors)响应体的az_desc字段。 :type region: str - :param availability_zone: 可用区ID。对于数据库实例类型不是单机的实例,需要分别为实例所有节点指定可用区,并用逗号隔开。 取值参见[地区和终端节点](https://developer.huaweicloud.com/endpoint)。 + :param availability_zone: 可用区ID。对于数据库实例类型不是单机的实例,需要分别为实例所有节点指定可用区,并用逗号隔开。 取值参见OpenAPI查询数据库规格(https://console.huaweicloud.com/apiexplorer/#/openapi/RDS/doc?api=ListFlavors)响应体的az_desc字段。 :type availability_zone: str :param vpc_id: 虚拟私有云ID。创建只读实例时不可选(只读实例的网络属性默认和主实例相同),其它场景必选。 获取方法如下: - 方法1:登录虚拟私有云服务的控制台界面,在虚拟私有云的详情页面查找VPC ID。 - 方法2:通过虚拟私有云服务的API接口查询,具体操作可参考[查询VPC列表](https://support.huaweicloud.com/api-vpc/vpc_api01_0003.html)。 :type vpc_id: str @@ -458,7 +458,7 @@ def volume(self, volume): def region(self): """Gets the region of this CustomerCreateInstanceReq. - 区域ID。创建主实例时必选,其它场景不可选。 取值参见[地区和终端节点](https://developer.huaweicloud.com/endpoint)。 + 区域ID。创建主实例时必选,其它场景不可选。 取值参见OpenAPI查询数据库规格(https://console.huaweicloud.com/apiexplorer/#/openapi/RDS/doc?api=ListFlavors)响应体的az_desc字段。 :return: The region of this CustomerCreateInstanceReq. :rtype: str @@ -469,7 +469,7 @@ def region(self): def region(self, region): """Sets the region of this CustomerCreateInstanceReq. - 区域ID。创建主实例时必选,其它场景不可选。 取值参见[地区和终端节点](https://developer.huaweicloud.com/endpoint)。 + 区域ID。创建主实例时必选,其它场景不可选。 取值参见OpenAPI查询数据库规格(https://console.huaweicloud.com/apiexplorer/#/openapi/RDS/doc?api=ListFlavors)响应体的az_desc字段。 :param region: The region of this CustomerCreateInstanceReq. :type region: str @@ -480,7 +480,7 @@ def region(self, region): def availability_zone(self): """Gets the availability_zone of this CustomerCreateInstanceReq. - 可用区ID。对于数据库实例类型不是单机的实例,需要分别为实例所有节点指定可用区,并用逗号隔开。 取值参见[地区和终端节点](https://developer.huaweicloud.com/endpoint)。 + 可用区ID。对于数据库实例类型不是单机的实例,需要分别为实例所有节点指定可用区,并用逗号隔开。 取值参见OpenAPI查询数据库规格(https://console.huaweicloud.com/apiexplorer/#/openapi/RDS/doc?api=ListFlavors)响应体的az_desc字段。 :return: The availability_zone of this CustomerCreateInstanceReq. :rtype: str @@ -491,7 +491,7 @@ def availability_zone(self): def availability_zone(self, availability_zone): """Sets the availability_zone of this CustomerCreateInstanceReq. - 可用区ID。对于数据库实例类型不是单机的实例,需要分别为实例所有节点指定可用区,并用逗号隔开。 取值参见[地区和终端节点](https://developer.huaweicloud.com/endpoint)。 + 可用区ID。对于数据库实例类型不是单机的实例,需要分别为实例所有节点指定可用区,并用逗号隔开。 取值参见OpenAPI查询数据库规格(https://console.huaweicloud.com/apiexplorer/#/openapi/RDS/doc?api=ListFlavors)响应体的az_desc字段。 :param availability_zone: The availability_zone of this CustomerCreateInstanceReq. :type availability_zone: str diff --git a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/instance_request.py b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/instance_request.py index 52b09ca86c..6494e97682 100644 --- a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/instance_request.py +++ b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/instance_request.py @@ -105,9 +105,9 @@ def __init__(self, name=None, datastore=None, ha=None, configuration_id=None, po :type flavor_ref: str :param volume: :type volume: :class:`huaweicloudsdkrds.v3.Volume` - :param region: 区域ID。创建主实例时必选,其它场景不可选。 取值参见[地区和终端节点](https://developer.huaweicloud.com/endpoint)。 + :param region: 区域ID。创建主实例时必选,其它场景不可选。 取值参见OpenAPI查询数据库规格(https://console.huaweicloud.com/apiexplorer/#/openapi/RDS/doc?api=ListFlavors)响应体的az_desc字段。 :type region: str - :param availability_zone: 可用区ID。对于数据库实例类型不是单机的实例,需要分别为实例所有节点指定可用区,并用逗号隔开。 取值参见[地区和终端节点](https://developer.huaweicloud.com/endpoint)。 + :param availability_zone: 可用区ID。对于数据库实例类型不是单机的实例,需要分别为实例所有节点指定可用区,并用逗号隔开。 取值参见OpenAPI查询数据库规格(https://console.huaweicloud.com/apiexplorer/#/openapi/RDS/doc?api=ListFlavors)响应体的az_desc字段。 :type availability_zone: str :param vpc_id: 虚拟私有云ID。创建只读实例时不可选(只读实例的网络属性默认和主实例相同),其它场景必选。 获取方法如下: - 方法1:登录虚拟私有云服务的控制台界面,在虚拟私有云的详情页面查找VPC ID。 - 方法2:通过虚拟私有云服务的API接口查询,具体操作可参考[查询VPC列表](https://support.huaweicloud.com/api-vpc/vpc_api01_0003.html)。 :type vpc_id: str @@ -451,7 +451,7 @@ def volume(self, volume): def region(self): """Gets the region of this InstanceRequest. - 区域ID。创建主实例时必选,其它场景不可选。 取值参见[地区和终端节点](https://developer.huaweicloud.com/endpoint)。 + 区域ID。创建主实例时必选,其它场景不可选。 取值参见OpenAPI查询数据库规格(https://console.huaweicloud.com/apiexplorer/#/openapi/RDS/doc?api=ListFlavors)响应体的az_desc字段。 :return: The region of this InstanceRequest. :rtype: str @@ -462,7 +462,7 @@ def region(self): def region(self, region): """Sets the region of this InstanceRequest. - 区域ID。创建主实例时必选,其它场景不可选。 取值参见[地区和终端节点](https://developer.huaweicloud.com/endpoint)。 + 区域ID。创建主实例时必选,其它场景不可选。 取值参见OpenAPI查询数据库规格(https://console.huaweicloud.com/apiexplorer/#/openapi/RDS/doc?api=ListFlavors)响应体的az_desc字段。 :param region: The region of this InstanceRequest. :type region: str @@ -473,7 +473,7 @@ def region(self, region): def availability_zone(self): """Gets the availability_zone of this InstanceRequest. - 可用区ID。对于数据库实例类型不是单机的实例,需要分别为实例所有节点指定可用区,并用逗号隔开。 取值参见[地区和终端节点](https://developer.huaweicloud.com/endpoint)。 + 可用区ID。对于数据库实例类型不是单机的实例,需要分别为实例所有节点指定可用区,并用逗号隔开。 取值参见OpenAPI查询数据库规格(https://console.huaweicloud.com/apiexplorer/#/openapi/RDS/doc?api=ListFlavors)响应体的az_desc字段。 :return: The availability_zone of this InstanceRequest. :rtype: str @@ -484,7 +484,7 @@ def availability_zone(self): def availability_zone(self, availability_zone): """Sets the availability_zone of this InstanceRequest. - 可用区ID。对于数据库实例类型不是单机的实例,需要分别为实例所有节点指定可用区,并用逗号隔开。 取值参见[地区和终端节点](https://developer.huaweicloud.com/endpoint)。 + 可用区ID。对于数据库实例类型不是单机的实例,需要分别为实例所有节点指定可用区,并用逗号隔开。 取值参见OpenAPI查询数据库规格(https://console.huaweicloud.com/apiexplorer/#/openapi/RDS/doc?api=ListFlavors)响应体的az_desc字段。 :param availability_zone: The availability_zone of this InstanceRequest. :type availability_zone: str diff --git a/huaweicloud-sdk-rds/requirements.txt b/huaweicloud-sdk-rds/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-rds/requirements.txt +++ b/huaweicloud-sdk-rds/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-rds/setup.py b/huaweicloud-sdk-rds/setup.py index 49081899c5..a0e8ff00b1 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-res/requirements.txt b/huaweicloud-sdk-res/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-res/requirements.txt +++ b/huaweicloud-sdk-res/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-res/setup.py b/huaweicloud-sdk-res/setup.py index 2bda6388cc..dff18c2869 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-rgc/requirements.txt b/huaweicloud-sdk-rgc/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-rgc/requirements.txt +++ b/huaweicloud-sdk-rgc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-rgc/setup.py b/huaweicloud-sdk-rgc/setup.py index ba90c6f498..008ffa40a1 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-rms/requirements.txt b/huaweicloud-sdk-rms/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-rms/requirements.txt +++ b/huaweicloud-sdk-rms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-rms/setup.py b/huaweicloud-sdk-rms/setup.py index 8416bfbfcc..f26587c37b 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-rocketmq/requirements.txt b/huaweicloud-sdk-rocketmq/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-rocketmq/requirements.txt +++ b/huaweicloud-sdk-rocketmq/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-rocketmq/setup.py b/huaweicloud-sdk-rocketmq/setup.py index 597f9c880f..26f68decb2 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-roma/requirements.txt b/huaweicloud-sdk-roma/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-roma/requirements.txt +++ b/huaweicloud-sdk-roma/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-roma/setup.py b/huaweicloud-sdk-roma/setup.py index c54bc1760c..9cab6b8f16 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-sa/requirements.txt b/huaweicloud-sdk-sa/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-sa/requirements.txt +++ b/huaweicloud-sdk-sa/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-sa/setup.py b/huaweicloud-sdk-sa/setup.py index 7f45fd7e9d..56463d1686 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-scm/requirements.txt b/huaweicloud-sdk-scm/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-scm/requirements.txt +++ b/huaweicloud-sdk-scm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-scm/setup.py b/huaweicloud-sdk-scm/setup.py index a39a9917a7..a9179c5a5b 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-sdrs/requirements.txt b/huaweicloud-sdk-sdrs/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-sdrs/requirements.txt +++ b/huaweicloud-sdk-sdrs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-sdrs/setup.py b/huaweicloud-sdk-sdrs/setup.py index 2f217c5318..468bf87cf1 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-secmaster/requirements.txt b/huaweicloud-sdk-secmaster/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-secmaster/requirements.txt +++ b/huaweicloud-sdk-secmaster/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-secmaster/setup.py b/huaweicloud-sdk-secmaster/setup.py index 290991392d..64d4e762f1 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-servicestage/huaweicloudsdkservicestage/v3/__init__.py b/huaweicloud-sdk-servicestage/huaweicloudsdkservicestage/v3/__init__.py index 3a16161f61..780f4250bb 100644 --- a/huaweicloud-sdk-servicestage/huaweicloudsdkservicestage/v3/__init__.py +++ b/huaweicloud-sdk-servicestage/huaweicloudsdkservicestage/v3/__init__.py @@ -59,6 +59,7 @@ from huaweicloudsdkservicestage.v3.model.delete_environment_response import DeleteEnvironmentResponse from huaweicloudsdkservicestage.v3.model.deploy_strategy import DeployStrategy from huaweicloudsdkservicestage.v3.model.deploy_strategy_gray_release import DeployStrategyGrayRelease +from huaweicloudsdkservicestage.v3.model.deploy_strategy_gray_release_rules import DeployStrategyGrayReleaseRules from huaweicloudsdkservicestage.v3.model.deploy_strategy_rolling_release import DeployStrategyRollingRelease from huaweicloudsdkservicestage.v3.model.environment_create import EnvironmentCreate from huaweicloudsdkservicestage.v3.model.environment_create_labels import EnvironmentCreateLabels diff --git a/huaweicloud-sdk-servicestage/huaweicloudsdkservicestage/v3/model/__init__.py b/huaweicloud-sdk-servicestage/huaweicloudsdkservicestage/v3/model/__init__.py index bad1561890..3414a5182d 100644 --- a/huaweicloud-sdk-servicestage/huaweicloudsdkservicestage/v3/model/__init__.py +++ b/huaweicloud-sdk-servicestage/huaweicloudsdkservicestage/v3/model/__init__.py @@ -57,6 +57,7 @@ from huaweicloudsdkservicestage.v3.model.delete_environment_response import DeleteEnvironmentResponse from huaweicloudsdkservicestage.v3.model.deploy_strategy import DeployStrategy from huaweicloudsdkservicestage.v3.model.deploy_strategy_gray_release import DeployStrategyGrayRelease +from huaweicloudsdkservicestage.v3.model.deploy_strategy_gray_release_rules import DeployStrategyGrayReleaseRules from huaweicloudsdkservicestage.v3.model.deploy_strategy_rolling_release import DeployStrategyRollingRelease from huaweicloudsdkservicestage.v3.model.environment_create import EnvironmentCreate from huaweicloudsdkservicestage.v3.model.environment_create_labels import EnvironmentCreateLabels diff --git a/huaweicloud-sdk-servicestage/huaweicloudsdkservicestage/v3/model/component_action_type.py b/huaweicloud-sdk-servicestage/huaweicloudsdkservicestage/v3/model/component_action_type.py index 18b7c8ae24..5b1be271c5 100644 --- a/huaweicloud-sdk-servicestage/huaweicloudsdkservicestage/v3/model/component_action_type.py +++ b/huaweicloud-sdk-servicestage/huaweicloudsdkservicestage/v3/model/component_action_type.py @@ -17,6 +17,7 @@ class ComponentActionType: CONTINUE_DEPLOY = "continue_deploy" CHECK_GRAY_RELEASE = "check_gray_release" MODIFY_GRAY_RULE = "modify_gray_rule" + ROLLBACK_CURRENT = "rollback_current" """ Attributes: openapi_types (dict): The key is attribute name diff --git a/huaweicloud-sdk-servicestage/huaweicloudsdkservicestage/v3/model/component_create.py b/huaweicloud-sdk-servicestage/huaweicloudsdkservicestage/v3/model/component_create.py index 9facc8f107..3b405c6abf 100644 --- a/huaweicloud-sdk-servicestage/huaweicloudsdkservicestage/v3/model/component_create.py +++ b/huaweicloud-sdk-servicestage/huaweicloudsdkservicestage/v3/model/component_create.py @@ -30,6 +30,7 @@ class ComponentCreate: 'request_memory': 'float', 'replica': 'int', 'version': 'str', + 'swimlane_id': 'str', 'envs': 'list[ComponentEnvironment]', 'storages': 'list[ComponentStorage]', 'deploy_strategy': 'DeployStrategy', @@ -64,6 +65,7 @@ class ComponentCreate: 'request_memory': 'request_memory', 'replica': 'replica', 'version': 'version', + 'swimlane_id': 'swimlane_id', 'envs': 'envs', 'storages': 'storages', 'deploy_strategy': 'deploy_strategy', @@ -84,7 +86,7 @@ class ComponentCreate: 'external_accesses': 'external_accesses' } - def __init__(self, name=None, description=None, labels=None, runtime_stack=None, source=None, build=None, environment_id=None, limit_cpu=None, limit_memory=None, request_cpu=None, request_memory=None, replica=None, version=None, envs=None, storages=None, deploy_strategy=None, command=None, post_start=None, pre_stop=None, mesher=None, timezone=None, jvm_opts=None, tomcat_opts=None, logs=None, custom_metric=None, affinity=None, anti_affinity=None, liveness_probe=None, readiness_probe=None, refer_resources=None, external_accesses=None): + def __init__(self, name=None, description=None, labels=None, runtime_stack=None, source=None, build=None, environment_id=None, limit_cpu=None, limit_memory=None, request_cpu=None, request_memory=None, replica=None, version=None, swimlane_id=None, envs=None, storages=None, deploy_strategy=None, command=None, post_start=None, pre_stop=None, mesher=None, timezone=None, jvm_opts=None, tomcat_opts=None, logs=None, custom_metric=None, affinity=None, anti_affinity=None, liveness_probe=None, readiness_probe=None, refer_resources=None, external_accesses=None): """ComponentCreate The model defined in huaweicloud sdk @@ -115,6 +117,8 @@ def __init__(self, name=None, description=None, labels=None, runtime_stack=None, :type replica: int :param version: :type version: str + :param swimlane_id: 泳道id + :type swimlane_id: str :param envs: :type envs: list[:class:`huaweicloudsdkservicestage.v3.ComponentEnvironment`] :param storages: @@ -168,6 +172,7 @@ def __init__(self, name=None, description=None, labels=None, runtime_stack=None, self._request_memory = None self._replica = None self._version = None + self._swimlane_id = None self._envs = None self._storages = None self._deploy_strategy = None @@ -209,6 +214,8 @@ def __init__(self, name=None, description=None, labels=None, runtime_stack=None, self.request_memory = request_memory self.replica = replica self.version = version + if swimlane_id is not None: + self.swimlane_id = swimlane_id if envs is not None: self.envs = envs if storages is not None: @@ -495,6 +502,28 @@ def version(self, version): """ self._version = version + @property + def swimlane_id(self): + """Gets the swimlane_id of this ComponentCreate. + + 泳道id + + :return: The swimlane_id of this ComponentCreate. + :rtype: str + """ + return self._swimlane_id + + @swimlane_id.setter + def swimlane_id(self, swimlane_id): + """Sets the swimlane_id of this ComponentCreate. + + 泳道id + + :param swimlane_id: The swimlane_id of this ComponentCreate. + :type swimlane_id: str + """ + self._swimlane_id = swimlane_id + @property def envs(self): """Gets the envs of this ComponentCreate. diff --git a/huaweicloud-sdk-servicestage/huaweicloudsdkservicestage/v3/model/component_modify.py b/huaweicloud-sdk-servicestage/huaweicloudsdkservicestage/v3/model/component_modify.py index 2c2a20e4ec..4a41317b05 100644 --- a/huaweicloud-sdk-servicestage/huaweicloudsdkservicestage/v3/model/component_modify.py +++ b/huaweicloud-sdk-servicestage/huaweicloudsdkservicestage/v3/model/component_modify.py @@ -29,6 +29,7 @@ class ComponentModify: 'request_memory': 'float', 'replica': 'int', 'version': 'str', + 'swimlane_id': 'str', 'envs': 'list[ComponentEnvironment]', 'storages': 'list[ComponentStorage]', 'deploy_strategy': 'DeployStrategy', @@ -62,6 +63,7 @@ class ComponentModify: 'request_memory': 'request_memory', 'replica': 'replica', 'version': 'version', + 'swimlane_id': 'swimlane_id', 'envs': 'envs', 'storages': 'storages', 'deploy_strategy': 'deploy_strategy', @@ -82,7 +84,7 @@ class ComponentModify: 'refer_resources': 'refer_resources' } - def __init__(self, name=None, description=None, labels=None, runtime_stack=None, source=None, build=None, limit_cpu=None, limit_memory=None, request_cpu=None, request_memory=None, replica=None, version=None, envs=None, storages=None, deploy_strategy=None, command=None, post_start=None, pre_stop=None, timezone=None, mesher=None, jvm_opts=None, tomcat_opts=None, logs=None, custom_metric=None, affinity=None, anti_affinity=None, liveness_probe=None, readiness_probe=None, external_accesses=None, refer_resources=None): + def __init__(self, name=None, description=None, labels=None, runtime_stack=None, source=None, build=None, limit_cpu=None, limit_memory=None, request_cpu=None, request_memory=None, replica=None, version=None, swimlane_id=None, envs=None, storages=None, deploy_strategy=None, command=None, post_start=None, pre_stop=None, timezone=None, mesher=None, jvm_opts=None, tomcat_opts=None, logs=None, custom_metric=None, affinity=None, anti_affinity=None, liveness_probe=None, readiness_probe=None, external_accesses=None, refer_resources=None): """ComponentModify The model defined in huaweicloud sdk @@ -111,6 +113,8 @@ def __init__(self, name=None, description=None, labels=None, runtime_stack=None, :type replica: int :param version: :type version: str + :param swimlane_id: 泳道id + :type swimlane_id: str :param envs: :type envs: list[:class:`huaweicloudsdkservicestage.v3.ComponentEnvironment`] :param storages: @@ -163,6 +167,7 @@ def __init__(self, name=None, description=None, labels=None, runtime_stack=None, self._request_memory = None self._replica = None self._version = None + self._swimlane_id = None self._envs = None self._storages = None self._deploy_strategy = None @@ -202,6 +207,8 @@ def __init__(self, name=None, description=None, labels=None, runtime_stack=None, self.request_memory = request_memory self.replica = replica self.version = version + if swimlane_id is not None: + self.swimlane_id = swimlane_id if envs is not None: self.envs = envs if storages is not None: @@ -471,6 +478,28 @@ def version(self, version): """ self._version = version + @property + def swimlane_id(self): + """Gets the swimlane_id of this ComponentModify. + + 泳道id + + :return: The swimlane_id of this ComponentModify. + :rtype: str + """ + return self._swimlane_id + + @swimlane_id.setter + def swimlane_id(self, swimlane_id): + """Sets the swimlane_id of this ComponentModify. + + 泳道id + + :param swimlane_id: The swimlane_id of this ComponentModify. + :type swimlane_id: str + """ + self._swimlane_id = swimlane_id + @property def envs(self): """Gets the envs of this ComponentModify. diff --git a/huaweicloud-sdk-servicestage/huaweicloudsdkservicestage/v3/model/deploy_strategy_gray_release.py b/huaweicloud-sdk-servicestage/huaweicloudsdkservicestage/v3/model/deploy_strategy_gray_release.py index e8d2fbeaec..506829bb75 100644 --- a/huaweicloud-sdk-servicestage/huaweicloudsdkservicestage/v3/model/deploy_strategy_gray_release.py +++ b/huaweicloud-sdk-servicestage/huaweicloudsdkservicestage/v3/model/deploy_strategy_gray_release.py @@ -18,50 +18,81 @@ class DeployStrategyGrayRelease: openapi_types = { 'type': 'str', + 'replica_surge_mode': 'str', + 'deployment_mode': 'int', 'first_batch_weight': 'int', + 'rule_match_mode': 'str', + 'rules': 'list[DeployStrategyGrayReleaseRules]', 'first_batch_replica': 'int', 'remaining_batch': 'int' } attribute_map = { 'type': 'type', + 'replica_surge_mode': 'replica_surge_mode', + 'deployment_mode': 'deployment_mode', 'first_batch_weight': 'first_batch_weight', + 'rule_match_mode': 'rule_match_mode', + 'rules': 'rules', 'first_batch_replica': 'first_batch_replica', 'remaining_batch': 'remaining_batch' } - def __init__(self, type=None, first_batch_weight=None, first_batch_replica=None, remaining_batch=None): + def __init__(self, type=None, replica_surge_mode=None, deployment_mode=None, first_batch_weight=None, rule_match_mode=None, rules=None, first_batch_replica=None, remaining_batch=None): """DeployStrategyGrayRelease The model defined in huaweicloud sdk - :param type: + :param type: 灰度策略:WEIGHT为基于流量比例,CONTENT为基于内容 :type type: str - :param first_batch_weight: only used for weight type + :param replica_surge_mode: 灰度实例新增模式:MIRROR为蓝绿,EXTRA为金丝雀(先增后减),NOSURGE为金丝雀(先减后增) + :type replica_surge_mode: str + :param deployment_mode: 类型1(使用应用网关、微服务引擎)、类型3(注册到微服务中心)、类型4(对接ELB独享型)、类型6(对接ELB共享型) + :type deployment_mode: int + :param first_batch_weight: 灰度流量比例(type为WEIGHT时配置) :type first_batch_weight: int - :param first_batch_replica: + :param rule_match_mode: all满足所有条件,any满足任意条件(type为CONTENT时配置) + :type rule_match_mode: str + :param rules: 灰度匹配规则(type为CONTENT时配置) + :type rules: list[:class:`huaweicloudsdkservicestage.v3.DeployStrategyGrayReleaseRules`] + :param first_batch_replica: 首批灰度实例数量(replica_surge_mode为金丝雀类型时需要配置) :type first_batch_replica: int - :param remaining_batch: + :param remaining_batch: 剩余实例部署批次(replica_surge_mode为金丝雀类型时需要配置) :type remaining_batch: int """ self._type = None + self._replica_surge_mode = None + self._deployment_mode = None self._first_batch_weight = None + self._rule_match_mode = None + self._rules = None self._first_batch_replica = None self._remaining_batch = None self.discriminator = None self.type = type - self.first_batch_weight = first_batch_weight - self.first_batch_replica = first_batch_replica - self.remaining_batch = remaining_batch + self.replica_surge_mode = replica_surge_mode + self.deployment_mode = deployment_mode + if first_batch_weight is not None: + self.first_batch_weight = first_batch_weight + if rule_match_mode is not None: + self.rule_match_mode = rule_match_mode + if rules is not None: + self.rules = rules + if first_batch_replica is not None: + self.first_batch_replica = first_batch_replica + if remaining_batch is not None: + self.remaining_batch = remaining_batch @property def type(self): """Gets the type of this DeployStrategyGrayRelease. + 灰度策略:WEIGHT为基于流量比例,CONTENT为基于内容 + :return: The type of this DeployStrategyGrayRelease. :rtype: str """ @@ -71,16 +102,62 @@ def type(self): def type(self, type): """Sets the type of this DeployStrategyGrayRelease. + 灰度策略:WEIGHT为基于流量比例,CONTENT为基于内容 + :param type: The type of this DeployStrategyGrayRelease. :type type: str """ self._type = type + @property + def replica_surge_mode(self): + """Gets the replica_surge_mode of this DeployStrategyGrayRelease. + + 灰度实例新增模式:MIRROR为蓝绿,EXTRA为金丝雀(先增后减),NOSURGE为金丝雀(先减后增) + + :return: The replica_surge_mode of this DeployStrategyGrayRelease. + :rtype: str + """ + return self._replica_surge_mode + + @replica_surge_mode.setter + def replica_surge_mode(self, replica_surge_mode): + """Sets the replica_surge_mode of this DeployStrategyGrayRelease. + + 灰度实例新增模式:MIRROR为蓝绿,EXTRA为金丝雀(先增后减),NOSURGE为金丝雀(先减后增) + + :param replica_surge_mode: The replica_surge_mode of this DeployStrategyGrayRelease. + :type replica_surge_mode: str + """ + self._replica_surge_mode = replica_surge_mode + + @property + def deployment_mode(self): + """Gets the deployment_mode of this DeployStrategyGrayRelease. + + 类型1(使用应用网关、微服务引擎)、类型3(注册到微服务中心)、类型4(对接ELB独享型)、类型6(对接ELB共享型) + + :return: The deployment_mode of this DeployStrategyGrayRelease. + :rtype: int + """ + return self._deployment_mode + + @deployment_mode.setter + def deployment_mode(self, deployment_mode): + """Sets the deployment_mode of this DeployStrategyGrayRelease. + + 类型1(使用应用网关、微服务引擎)、类型3(注册到微服务中心)、类型4(对接ELB独享型)、类型6(对接ELB共享型) + + :param deployment_mode: The deployment_mode of this DeployStrategyGrayRelease. + :type deployment_mode: int + """ + self._deployment_mode = deployment_mode + @property def first_batch_weight(self): """Gets the first_batch_weight of this DeployStrategyGrayRelease. - only used for weight type + 灰度流量比例(type为WEIGHT时配置) :return: The first_batch_weight of this DeployStrategyGrayRelease. :rtype: int @@ -91,17 +168,63 @@ def first_batch_weight(self): def first_batch_weight(self, first_batch_weight): """Sets the first_batch_weight of this DeployStrategyGrayRelease. - only used for weight type + 灰度流量比例(type为WEIGHT时配置) :param first_batch_weight: The first_batch_weight of this DeployStrategyGrayRelease. :type first_batch_weight: int """ self._first_batch_weight = first_batch_weight + @property + def rule_match_mode(self): + """Gets the rule_match_mode of this DeployStrategyGrayRelease. + + all满足所有条件,any满足任意条件(type为CONTENT时配置) + + :return: The rule_match_mode of this DeployStrategyGrayRelease. + :rtype: str + """ + return self._rule_match_mode + + @rule_match_mode.setter + def rule_match_mode(self, rule_match_mode): + """Sets the rule_match_mode of this DeployStrategyGrayRelease. + + all满足所有条件,any满足任意条件(type为CONTENT时配置) + + :param rule_match_mode: The rule_match_mode of this DeployStrategyGrayRelease. + :type rule_match_mode: str + """ + self._rule_match_mode = rule_match_mode + + @property + def rules(self): + """Gets the rules of this DeployStrategyGrayRelease. + + 灰度匹配规则(type为CONTENT时配置) + + :return: The rules of this DeployStrategyGrayRelease. + :rtype: list[:class:`huaweicloudsdkservicestage.v3.DeployStrategyGrayReleaseRules`] + """ + return self._rules + + @rules.setter + def rules(self, rules): + """Sets the rules of this DeployStrategyGrayRelease. + + 灰度匹配规则(type为CONTENT时配置) + + :param rules: The rules of this DeployStrategyGrayRelease. + :type rules: list[:class:`huaweicloudsdkservicestage.v3.DeployStrategyGrayReleaseRules`] + """ + self._rules = rules + @property def first_batch_replica(self): """Gets the first_batch_replica of this DeployStrategyGrayRelease. + 首批灰度实例数量(replica_surge_mode为金丝雀类型时需要配置) + :return: The first_batch_replica of this DeployStrategyGrayRelease. :rtype: int """ @@ -111,6 +234,8 @@ def first_batch_replica(self): def first_batch_replica(self, first_batch_replica): """Sets the first_batch_replica of this DeployStrategyGrayRelease. + 首批灰度实例数量(replica_surge_mode为金丝雀类型时需要配置) + :param first_batch_replica: The first_batch_replica of this DeployStrategyGrayRelease. :type first_batch_replica: int """ @@ -120,6 +245,8 @@ def first_batch_replica(self, first_batch_replica): def remaining_batch(self): """Gets the remaining_batch of this DeployStrategyGrayRelease. + 剩余实例部署批次(replica_surge_mode为金丝雀类型时需要配置) + :return: The remaining_batch of this DeployStrategyGrayRelease. :rtype: int """ @@ -129,6 +256,8 @@ def remaining_batch(self): def remaining_batch(self, remaining_batch): """Sets the remaining_batch of this DeployStrategyGrayRelease. + 剩余实例部署批次(replica_surge_mode为金丝雀类型时需要配置) + :param remaining_batch: The remaining_batch of this DeployStrategyGrayRelease. :type remaining_batch: int """ diff --git a/huaweicloud-sdk-servicestage/huaweicloudsdkservicestage/v3/model/deploy_strategy_gray_release_rules.py b/huaweicloud-sdk-servicestage/huaweicloudsdkservicestage/v3/model/deploy_strategy_gray_release_rules.py new file mode 100644 index 0000000000..6aa09018e5 --- /dev/null +++ b/huaweicloud-sdk-servicestage/huaweicloudsdkservicestage/v3/model/deploy_strategy_gray_release_rules.py @@ -0,0 +1,198 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeployStrategyGrayReleaseRules: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'key': 'str', + 'value': 'str', + 'condition': 'str' + } + + attribute_map = { + 'type': 'type', + 'key': 'key', + 'value': 'value', + 'condition': 'condition' + } + + def __init__(self, type=None, key=None, value=None, condition=None): + """DeployStrategyGrayReleaseRules + + The model defined in huaweicloud sdk + + :param type: 匹配类型 + :type type: str + :param key: 参数名称 + :type key: str + :param value: 条件值 + :type value: str + :param condition: equal相等,match匹配,in枚举 + :type condition: str + """ + + + + self._type = None + self._key = None + self._value = None + self._condition = None + self.discriminator = None + + self.type = type + self.key = key + self.value = value + self.condition = condition + + @property + def type(self): + """Gets the type of this DeployStrategyGrayReleaseRules. + + 匹配类型 + + :return: The type of this DeployStrategyGrayReleaseRules. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this DeployStrategyGrayReleaseRules. + + 匹配类型 + + :param type: The type of this DeployStrategyGrayReleaseRules. + :type type: str + """ + self._type = type + + @property + def key(self): + """Gets the key of this DeployStrategyGrayReleaseRules. + + 参数名称 + + :return: The key of this DeployStrategyGrayReleaseRules. + :rtype: str + """ + return self._key + + @key.setter + def key(self, key): + """Sets the key of this DeployStrategyGrayReleaseRules. + + 参数名称 + + :param key: The key of this DeployStrategyGrayReleaseRules. + :type key: str + """ + self._key = key + + @property + def value(self): + """Gets the value of this DeployStrategyGrayReleaseRules. + + 条件值 + + :return: The value of this DeployStrategyGrayReleaseRules. + :rtype: str + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this DeployStrategyGrayReleaseRules. + + 条件值 + + :param value: The value of this DeployStrategyGrayReleaseRules. + :type value: str + """ + self._value = value + + @property + def condition(self): + """Gets the condition of this DeployStrategyGrayReleaseRules. + + equal相等,match匹配,in枚举 + + :return: The condition of this DeployStrategyGrayReleaseRules. + :rtype: str + """ + return self._condition + + @condition.setter + def condition(self, condition): + """Sets the condition of this DeployStrategyGrayReleaseRules. + + equal相等,match匹配,in枚举 + + :param condition: The condition of this DeployStrategyGrayReleaseRules. + :type condition: str + """ + self._condition = condition + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeployStrategyGrayReleaseRules): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-servicestage/huaweicloudsdkservicestage/v3/model/show_component_info_response.py b/huaweicloud-sdk-servicestage/huaweicloudsdkservicestage/v3/model/show_component_info_response.py index ca2c54e765..93d1c08ce4 100644 --- a/huaweicloud-sdk-servicestage/huaweicloudsdkservicestage/v3/model/show_component_info_response.py +++ b/huaweicloud-sdk-servicestage/huaweicloudsdkservicestage/v3/model/show_component_info_response.py @@ -32,6 +32,7 @@ class ShowComponentInfoResponse(SdkResponse): 'request_memory': 'float', 'replica': 'int', 'version': 'str', + 'swimlane_id': 'str', 'envs': 'list[ComponentEnvironment]', 'storages': 'list[ComponentStorage]', 'command': 'ComponentCommand', @@ -67,6 +68,7 @@ class ShowComponentInfoResponse(SdkResponse): 'request_memory': 'request_memory', 'replica': 'replica', 'version': 'version', + 'swimlane_id': 'swimlane_id', 'envs': 'envs', 'storages': 'storages', 'command': 'command', @@ -87,7 +89,7 @@ class ShowComponentInfoResponse(SdkResponse): 'status': 'status' } - def __init__(self, name=None, description=None, labels=None, runtime_stack=None, source=None, build=None, environment_id=None, application_id=None, limit_cpu=None, limit_memory=None, request_cpu=None, request_memory=None, replica=None, version=None, envs=None, storages=None, command=None, post_start=None, pre_stop=None, timezone=None, mesher=None, deploy_strategy=None, jvm_opts=None, tomcat_opts=None, logs=None, custom_metric=None, affinity=None, anti_affinity=None, liveness_probe=None, readiness_probe=None, refer_resources=None, status=None): + def __init__(self, name=None, description=None, labels=None, runtime_stack=None, source=None, build=None, environment_id=None, application_id=None, limit_cpu=None, limit_memory=None, request_cpu=None, request_memory=None, replica=None, version=None, swimlane_id=None, envs=None, storages=None, command=None, post_start=None, pre_stop=None, timezone=None, mesher=None, deploy_strategy=None, jvm_opts=None, tomcat_opts=None, logs=None, custom_metric=None, affinity=None, anti_affinity=None, liveness_probe=None, readiness_probe=None, refer_resources=None, status=None): """ShowComponentInfoResponse The model defined in huaweicloud sdk @@ -120,6 +122,8 @@ def __init__(self, name=None, description=None, labels=None, runtime_stack=None, :type replica: int :param version: :type version: str + :param swimlane_id: 泳道id + :type swimlane_id: str :param envs: :type envs: list[:class:`huaweicloudsdkservicestage.v3.ComponentEnvironment`] :param storages: @@ -174,6 +178,7 @@ def __init__(self, name=None, description=None, labels=None, runtime_stack=None, self._request_memory = None self._replica = None self._version = None + self._swimlane_id = None self._envs = None self._storages = None self._command = None @@ -222,6 +227,8 @@ def __init__(self, name=None, description=None, labels=None, runtime_stack=None, self.replica = replica if version is not None: self.version = version + if swimlane_id is not None: + self.swimlane_id = swimlane_id if envs is not None: self.envs = envs if storages is not None: @@ -527,6 +534,28 @@ def version(self, version): """ self._version = version + @property + def swimlane_id(self): + """Gets the swimlane_id of this ShowComponentInfoResponse. + + 泳道id + + :return: The swimlane_id of this ShowComponentInfoResponse. + :rtype: str + """ + return self._swimlane_id + + @swimlane_id.setter + def swimlane_id(self, swimlane_id): + """Sets the swimlane_id of this ShowComponentInfoResponse. + + 泳道id + + :param swimlane_id: The swimlane_id of this ShowComponentInfoResponse. + :type swimlane_id: str + """ + self._swimlane_id = swimlane_id + @property def envs(self): """Gets the envs of this ShowComponentInfoResponse. diff --git a/huaweicloud-sdk-servicestage/requirements.txt b/huaweicloud-sdk-servicestage/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-servicestage/requirements.txt +++ b/huaweicloud-sdk-servicestage/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-servicestage/setup.py b/huaweicloud-sdk-servicestage/setup.py index 583f87d61e..e1c29d1d26 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-sfsturbo/requirements.txt b/huaweicloud-sdk-sfsturbo/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-sfsturbo/requirements.txt +++ b/huaweicloud-sdk-sfsturbo/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-sfsturbo/setup.py b/huaweicloud-sdk-sfsturbo/setup.py index a8317968ee..cabad06cc0 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-sis/requirements.txt b/huaweicloud-sdk-sis/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-sis/requirements.txt +++ b/huaweicloud-sdk-sis/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-sis/setup.py b/huaweicloud-sdk-sis/setup.py index 7fe454f331..f93d4e37ef 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-smn/requirements.txt b/huaweicloud-sdk-smn/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-smn/requirements.txt +++ b/huaweicloud-sdk-smn/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-smn/setup.py b/huaweicloud-sdk-smn/setup.py index 06da4bc49a..9cdd51b5bd 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-sms/huaweicloudsdksms/v3/model/put_task_req.py b/huaweicloud-sdk-sms/huaweicloudsdksms/v3/model/put_task_req.py index 084a463659..a2bd8162c4 100644 --- a/huaweicloud-sdk-sms/huaweicloudsdksms/v3/model/put_task_req.py +++ b/huaweicloud-sdk-sms/huaweicloudsdksms/v3/model/put_task_req.py @@ -25,6 +25,7 @@ class PutTaskReq: 'region_id': 'str', 'start_target_server': 'bool', 'enterprise_project_id': 'str', + 'exist_server': 'bool', 'migration_ip': 'str', 'region_name': 'str', 'speed_limit': 'int', @@ -58,6 +59,7 @@ class PutTaskReq: 'region_id': 'region_id', 'start_target_server': 'start_target_server', 'enterprise_project_id': 'enterprise_project_id', + 'exist_server': 'exist_server', 'migration_ip': 'migration_ip', 'region_name': 'region_name', 'speed_limit': 'speed_limit', @@ -82,7 +84,7 @@ class PutTaskReq: 'sub_tasks': 'sub_tasks' } - def __init__(self, name=None, type=None, os_type=None, id=None, priority=None, region_id=None, start_target_server=None, enterprise_project_id=None, migration_ip=None, region_name=None, speed_limit=None, project_name=None, project_id=None, vm_template_id=None, source_server=None, target_server=None, state=None, estimate_complete_time=None, connected=None, create_date=None, start_date=None, finish_date=None, migrate_speed=None, error_json=None, total_time=None, float_ip=None, remain_seconds=None, target_snapshot_id=None, clone_server=None, sub_tasks=None): + def __init__(self, name=None, type=None, os_type=None, id=None, priority=None, region_id=None, start_target_server=None, enterprise_project_id=None, exist_server=None, migration_ip=None, region_name=None, speed_limit=None, project_name=None, project_id=None, vm_template_id=None, source_server=None, target_server=None, state=None, estimate_complete_time=None, connected=None, create_date=None, start_date=None, finish_date=None, migrate_speed=None, error_json=None, total_time=None, float_ip=None, remain_seconds=None, target_snapshot_id=None, clone_server=None, sub_tasks=None): """PutTaskReq The model defined in huaweicloud sdk @@ -103,6 +105,8 @@ def __init__(self, name=None, type=None, os_type=None, id=None, priority=None, r :type start_target_server: bool :param enterprise_project_id: 企业项目ID :type enterprise_project_id: str + :param exist_server: 目的端服务器是否存在。true代表已有目的端服务器,false代表需要新建目的端服务器 + :type exist_server: bool :param migration_ip: 目的端服务器的IP地址。 公网迁移时请填写弹性IP地址 专线迁移时请填写私有IP地址 :type migration_ip: str :param region_name: 目的端服务器的区域名称 @@ -159,6 +163,7 @@ def __init__(self, name=None, type=None, os_type=None, id=None, priority=None, r self._region_id = None self._start_target_server = None self._enterprise_project_id = None + self._exist_server = None self._migration_ip = None self._region_name = None self._speed_limit = None @@ -199,6 +204,8 @@ def __init__(self, name=None, type=None, os_type=None, id=None, priority=None, r self.start_target_server = start_target_server if enterprise_project_id is not None: self.enterprise_project_id = enterprise_project_id + if exist_server is not None: + self.exist_server = exist_server if migration_ip is not None: self.migration_ip = migration_ip if region_name is not None: @@ -420,6 +427,28 @@ def enterprise_project_id(self, enterprise_project_id): """ self._enterprise_project_id = enterprise_project_id + @property + def exist_server(self): + """Gets the exist_server of this PutTaskReq. + + 目的端服务器是否存在。true代表已有目的端服务器,false代表需要新建目的端服务器 + + :return: The exist_server of this PutTaskReq. + :rtype: bool + """ + return self._exist_server + + @exist_server.setter + def exist_server(self, exist_server): + """Sets the exist_server of this PutTaskReq. + + 目的端服务器是否存在。true代表已有目的端服务器,false代表需要新建目的端服务器 + + :param exist_server: The exist_server of this PutTaskReq. + :type exist_server: bool + """ + self._exist_server = exist_server + @property def migration_ip(self): """Gets the migration_ip of this PutTaskReq. diff --git a/huaweicloud-sdk-sms/huaweicloudsdksms/v3/model/show_task_response.py b/huaweicloud-sdk-sms/huaweicloudsdksms/v3/model/show_task_response.py index dbf42c27c6..43fc44ce99 100644 --- a/huaweicloud-sdk-sms/huaweicloudsdksms/v3/model/show_task_response.py +++ b/huaweicloud-sdk-sms/huaweicloudsdksms/v3/model/show_task_response.py @@ -27,7 +27,6 @@ class ShowTaskResponse(SdkResponse): 'region_id': 'str', 'start_target_server': 'bool', 'enterprise_project_id': 'str', - 'exist_server': 'bool', 'migration_ip': 'str', 'region_name': 'str', 'project_name': 'str', @@ -63,7 +62,6 @@ class ShowTaskResponse(SdkResponse): 'region_id': 'region_id', 'start_target_server': 'start_target_server', 'enterprise_project_id': 'enterprise_project_id', - 'exist_server': 'exist_server', 'migration_ip': 'migration_ip', 'region_name': 'region_name', 'project_name': 'project_name', @@ -89,7 +87,7 @@ class ShowTaskResponse(SdkResponse): 'network_check_info': 'network_check_info' } - def __init__(self, name=None, type=None, os_type=None, id=None, priority=None, speed_limit=None, region_id=None, start_target_server=None, enterprise_project_id=None, exist_server=None, migration_ip=None, region_name=None, project_name=None, project_id=None, vm_template_id=None, source_server=None, target_server=None, state=None, estimate_complete_time=None, connected=None, create_date=None, start_date=None, finish_date=None, migrate_speed=None, compress_rate=None, error_json=None, total_time=None, float_ip=None, remain_seconds=None, target_snapshot_id=None, clone_server=None, sub_tasks=None, network_check_info=None): + def __init__(self, name=None, type=None, os_type=None, id=None, priority=None, speed_limit=None, region_id=None, start_target_server=None, enterprise_project_id=None, migration_ip=None, region_name=None, project_name=None, project_id=None, vm_template_id=None, source_server=None, target_server=None, state=None, estimate_complete_time=None, connected=None, create_date=None, start_date=None, finish_date=None, migrate_speed=None, compress_rate=None, error_json=None, total_time=None, float_ip=None, remain_seconds=None, target_snapshot_id=None, clone_server=None, sub_tasks=None, network_check_info=None): """ShowTaskResponse The model defined in huaweicloud sdk @@ -112,8 +110,6 @@ def __init__(self, name=None, type=None, os_type=None, id=None, priority=None, s :type start_target_server: bool :param enterprise_project_id: 企业项目ID :type enterprise_project_id: str - :param exist_server: 目的端服务器是否存在。true代表已有目的端服务器,false代表需要新建目的端服务器 - :type exist_server: bool :param migration_ip: 目的端服务器的IP地址。 公网迁移时请填写弹性IP地址 专线迁移时请填写私有IP地址 :type migration_ip: str :param region_name: 目的端服务器的区域名称 @@ -173,7 +169,6 @@ def __init__(self, name=None, type=None, os_type=None, id=None, priority=None, s self._region_id = None self._start_target_server = None self._enterprise_project_id = None - self._exist_server = None self._migration_ip = None self._region_name = None self._project_name = None @@ -217,8 +212,6 @@ def __init__(self, name=None, type=None, os_type=None, id=None, priority=None, s self.start_target_server = start_target_server if enterprise_project_id is not None: self.enterprise_project_id = enterprise_project_id - if exist_server is not None: - self.exist_server = exist_server if migration_ip is not None: self.migration_ip = migration_ip if region_name is not None: @@ -464,28 +457,6 @@ def enterprise_project_id(self, enterprise_project_id): """ self._enterprise_project_id = enterprise_project_id - @property - def exist_server(self): - """Gets the exist_server of this ShowTaskResponse. - - 目的端服务器是否存在。true代表已有目的端服务器,false代表需要新建目的端服务器 - - :return: The exist_server of this ShowTaskResponse. - :rtype: bool - """ - return self._exist_server - - @exist_server.setter - def exist_server(self, exist_server): - """Sets the exist_server of this ShowTaskResponse. - - 目的端服务器是否存在。true代表已有目的端服务器,false代表需要新建目的端服务器 - - :param exist_server: The exist_server of this ShowTaskResponse. - :type exist_server: bool - """ - self._exist_server = exist_server - @property def migration_ip(self): """Gets the migration_ip of this ShowTaskResponse. diff --git a/huaweicloud-sdk-sms/requirements.txt b/huaweicloud-sdk-sms/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-sms/requirements.txt +++ b/huaweicloud-sdk-sms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-sms/setup.py b/huaweicloud-sdk-sms/setup.py index dece4c3235..f7bedde4f6 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-sts/requirements.txt b/huaweicloud-sdk-sts/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-sts/requirements.txt +++ b/huaweicloud-sdk-sts/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-sts/setup.py b/huaweicloud-sdk-sts/setup.py index 38c6c8a8b0..068b8b2b14 100644 --- a/huaweicloud-sdk-sts/setup.py +++ b/huaweicloud-sdk-sts/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdksts" -VERSION = "3.1.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-swr/requirements.txt b/huaweicloud-sdk-swr/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-swr/requirements.txt +++ b/huaweicloud-sdk-swr/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-swr/setup.py b/huaweicloud-sdk-swr/setup.py index 42246237a5..7e4544e936 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-tics/requirements.txt b/huaweicloud-sdk-tics/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-tics/requirements.txt +++ b/huaweicloud-sdk-tics/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-tics/setup.py b/huaweicloud-sdk-tics/setup.py index 7449fe3357..855948045b 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-tms/requirements.txt b/huaweicloud-sdk-tms/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-tms/requirements.txt +++ b/huaweicloud-sdk-tms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-tms/setup.py b/huaweicloud-sdk-tms/setup.py index 53056e6c7c..991d6db2bb 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ugo/requirements.txt b/huaweicloud-sdk-ugo/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-ugo/requirements.txt +++ b/huaweicloud-sdk-ugo/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-ugo/setup.py b/huaweicloud-sdk-ugo/setup.py index 7b47ed083e..926f3f1b6a 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-vas/requirements.txt b/huaweicloud-sdk-vas/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-vas/requirements.txt +++ b/huaweicloud-sdk-vas/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-vas/setup.py b/huaweicloud-sdk-vas/setup.py index 45bcffb320..82cd6431ae 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-vcm/requirements.txt b/huaweicloud-sdk-vcm/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-vcm/requirements.txt +++ b/huaweicloud-sdk-vcm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-vcm/setup.py b/huaweicloud-sdk-vcm/setup.py index d80b0285b3..72c4666b52 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-vod/requirements.txt b/huaweicloud-sdk-vod/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-vod/requirements.txt +++ b/huaweicloud-sdk-vod/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-vod/setup.py b/huaweicloud-sdk-vod/setup.py index c85c54bceb..222c66c533 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-vpc/requirements.txt b/huaweicloud-sdk-vpc/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-vpc/requirements.txt +++ b/huaweicloud-sdk-vpc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-vpc/setup.py b/huaweicloud-sdk-vpc/setup.py index 869246812d..45e1527a63 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-vpcep/huaweicloudsdkvpcep/v1/model/policy_statement.py b/huaweicloud-sdk-vpcep/huaweicloudsdkvpcep/v1/model/policy_statement.py index 4cae326ab8..d9dfc62c63 100644 --- a/huaweicloud-sdk-vpcep/huaweicloudsdkvpcep/v1/model/policy_statement.py +++ b/huaweicloud-sdk-vpcep/huaweicloudsdkvpcep/v1/model/policy_statement.py @@ -33,7 +33,7 @@ def __init__(self, effect=None, action=None, resource=None): The model defined in huaweicloud sdk - :param effect: Allow允许或Refuse拒绝,控制访问权限 + :param effect: Allow允许或Deny拒绝,控制访问权限 :type effect: str :param action: obs访问权限 :type action: list[str] @@ -56,7 +56,7 @@ def __init__(self, effect=None, action=None, resource=None): def effect(self): """Gets the effect of this PolicyStatement. - Allow允许或Refuse拒绝,控制访问权限 + Allow允许或Deny拒绝,控制访问权限 :return: The effect of this PolicyStatement. :rtype: str @@ -67,7 +67,7 @@ def effect(self): def effect(self, effect): """Sets the effect of this PolicyStatement. - Allow允许或Refuse拒绝,控制访问权限 + Allow允许或Deny拒绝,控制访问权限 :param effect: The effect of this PolicyStatement. :type effect: str diff --git a/huaweicloud-sdk-vpcep/requirements.txt b/huaweicloud-sdk-vpcep/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-vpcep/requirements.txt +++ b/huaweicloud-sdk-vpcep/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-vpcep/setup.py b/huaweicloud-sdk-vpcep/setup.py index 4c437becc8..77420ded5e 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/__init__.py b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/__init__.py index 6d09ef4aa5..effb2bf6be 100644 --- a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/__init__.py +++ b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/__init__.py @@ -195,6 +195,8 @@ from huaweicloudsdkvpn.v5.model.update_p2c_vgw_request_body import UpdateP2cVgwRequestBody from huaweicloudsdkvpn.v5.model.update_p2c_vgw_request_body_content import UpdateP2cVgwRequestBodyContent from huaweicloudsdkvpn.v5.model.update_p2c_vgw_response import UpdateP2cVgwResponse +from huaweicloudsdkvpn.v5.model.update_postpaid_vgw_specification_request import UpdatePostpaidVgwSpecificationRequest +from huaweicloudsdkvpn.v5.model.update_postpaid_vgw_specification_response import UpdatePostpaidVgwSpecificationResponse from huaweicloudsdkvpn.v5.model.update_request_policy_template import UpdateRequestPolicyTemplate from huaweicloudsdkvpn.v5.model.update_response_vpn_connection import UpdateResponseVpnConnection from huaweicloudsdkvpn.v5.model.update_response_vpn_gateway import UpdateResponseVpnGateway @@ -210,6 +212,8 @@ from huaweicloudsdkvpn.v5.model.update_vgw_request_body import UpdateVgwRequestBody from huaweicloudsdkvpn.v5.model.update_vgw_request_body_content import UpdateVgwRequestBodyContent from huaweicloudsdkvpn.v5.model.update_vgw_response import UpdateVgwResponse +from huaweicloudsdkvpn.v5.model.update_vgw_specification_request_body import UpdateVgwSpecificationRequestBody +from huaweicloudsdkvpn.v5.model.update_vgw_specification_request_body_content import UpdateVgwSpecificationRequestBodyContent from huaweicloudsdkvpn.v5.model.update_vpn_access_policy_request import UpdateVpnAccessPolicyRequest from huaweicloudsdkvpn.v5.model.update_vpn_access_policy_request_body import UpdateVpnAccessPolicyRequestBody from huaweicloudsdkvpn.v5.model.update_vpn_access_policy_request_body_content import UpdateVpnAccessPolicyRequestBodyContent diff --git a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/__init__.py b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/__init__.py index f7dd7a8be8..20f5f7dfb4 100644 --- a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/__init__.py +++ b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/__init__.py @@ -193,6 +193,8 @@ from huaweicloudsdkvpn.v5.model.update_p2c_vgw_request_body import UpdateP2cVgwRequestBody from huaweicloudsdkvpn.v5.model.update_p2c_vgw_request_body_content import UpdateP2cVgwRequestBodyContent from huaweicloudsdkvpn.v5.model.update_p2c_vgw_response import UpdateP2cVgwResponse +from huaweicloudsdkvpn.v5.model.update_postpaid_vgw_specification_request import UpdatePostpaidVgwSpecificationRequest +from huaweicloudsdkvpn.v5.model.update_postpaid_vgw_specification_response import UpdatePostpaidVgwSpecificationResponse from huaweicloudsdkvpn.v5.model.update_request_policy_template import UpdateRequestPolicyTemplate from huaweicloudsdkvpn.v5.model.update_response_vpn_connection import UpdateResponseVpnConnection from huaweicloudsdkvpn.v5.model.update_response_vpn_gateway import UpdateResponseVpnGateway @@ -208,6 +210,8 @@ from huaweicloudsdkvpn.v5.model.update_vgw_request_body import UpdateVgwRequestBody from huaweicloudsdkvpn.v5.model.update_vgw_request_body_content import UpdateVgwRequestBodyContent from huaweicloudsdkvpn.v5.model.update_vgw_response import UpdateVgwResponse +from huaweicloudsdkvpn.v5.model.update_vgw_specification_request_body import UpdateVgwSpecificationRequestBody +from huaweicloudsdkvpn.v5.model.update_vgw_specification_request_body_content import UpdateVgwSpecificationRequestBodyContent from huaweicloudsdkvpn.v5.model.update_vpn_access_policy_request import UpdateVpnAccessPolicyRequest from huaweicloudsdkvpn.v5.model.update_vpn_access_policy_request_body import UpdateVpnAccessPolicyRequestBody from huaweicloudsdkvpn.v5.model.update_vpn_access_policy_request_body_content import UpdateVpnAccessPolicyRequestBodyContent diff --git a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/update_postpaid_vgw_specification_request.py b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/update_postpaid_vgw_specification_request.py new file mode 100644 index 0000000000..e56fa06506 --- /dev/null +++ b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/update_postpaid_vgw_specification_request.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdatePostpaidVgwSpecificationRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'vgw_id': 'str', + 'body': 'UpdateVgwSpecificationRequestBody' + } + + attribute_map = { + 'vgw_id': 'vgw_id', + 'body': 'body' + } + + def __init__(self, vgw_id=None, body=None): + """UpdatePostpaidVgwSpecificationRequest + + The model defined in huaweicloud sdk + + :param vgw_id: VPN网关实例ID + :type vgw_id: str + :param body: Body of the UpdatePostpaidVgwSpecificationRequest + :type body: :class:`huaweicloudsdkvpn.v5.UpdateVgwSpecificationRequestBody` + """ + + + + self._vgw_id = None + self._body = None + self.discriminator = None + + self.vgw_id = vgw_id + if body is not None: + self.body = body + + @property + def vgw_id(self): + """Gets the vgw_id of this UpdatePostpaidVgwSpecificationRequest. + + VPN网关实例ID + + :return: The vgw_id of this UpdatePostpaidVgwSpecificationRequest. + :rtype: str + """ + return self._vgw_id + + @vgw_id.setter + def vgw_id(self, vgw_id): + """Sets the vgw_id of this UpdatePostpaidVgwSpecificationRequest. + + VPN网关实例ID + + :param vgw_id: The vgw_id of this UpdatePostpaidVgwSpecificationRequest. + :type vgw_id: str + """ + self._vgw_id = vgw_id + + @property + def body(self): + """Gets the body of this UpdatePostpaidVgwSpecificationRequest. + + :return: The body of this UpdatePostpaidVgwSpecificationRequest. + :rtype: :class:`huaweicloudsdkvpn.v5.UpdateVgwSpecificationRequestBody` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdatePostpaidVgwSpecificationRequest. + + :param body: The body of this UpdatePostpaidVgwSpecificationRequest. + :type body: :class:`huaweicloudsdkvpn.v5.UpdateVgwSpecificationRequestBody` + """ + 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, UpdatePostpaidVgwSpecificationRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/update_postpaid_vgw_specification_response.py b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/update_postpaid_vgw_specification_response.py new file mode 100644 index 0000000000..cbecbd68c5 --- /dev/null +++ b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/update_postpaid_vgw_specification_response.py @@ -0,0 +1,166 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdatePostpaidVgwSpecificationResponse(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 = { + 'vpn_gateway': 'UpdateResponseVpnGateway', + 'request_id': 'str', + 'header_response_token': 'str' + } + + attribute_map = { + 'vpn_gateway': 'vpn_gateway', + 'request_id': 'request_id', + 'header_response_token': 'header-response-token' + } + + def __init__(self, vpn_gateway=None, request_id=None, header_response_token=None): + """UpdatePostpaidVgwSpecificationResponse + + The model defined in huaweicloud sdk + + :param vpn_gateway: + :type vpn_gateway: :class:`huaweicloudsdkvpn.v5.UpdateResponseVpnGateway` + :param request_id: 请求ID + :type request_id: str + :param header_response_token: + :type header_response_token: str + """ + + super(UpdatePostpaidVgwSpecificationResponse, self).__init__() + + self._vpn_gateway = None + self._request_id = None + self._header_response_token = None + self.discriminator = None + + if vpn_gateway is not None: + self.vpn_gateway = vpn_gateway + if request_id is not None: + self.request_id = request_id + if header_response_token is not None: + self.header_response_token = header_response_token + + @property + def vpn_gateway(self): + """Gets the vpn_gateway of this UpdatePostpaidVgwSpecificationResponse. + + :return: The vpn_gateway of this UpdatePostpaidVgwSpecificationResponse. + :rtype: :class:`huaweicloudsdkvpn.v5.UpdateResponseVpnGateway` + """ + return self._vpn_gateway + + @vpn_gateway.setter + def vpn_gateway(self, vpn_gateway): + """Sets the vpn_gateway of this UpdatePostpaidVgwSpecificationResponse. + + :param vpn_gateway: The vpn_gateway of this UpdatePostpaidVgwSpecificationResponse. + :type vpn_gateway: :class:`huaweicloudsdkvpn.v5.UpdateResponseVpnGateway` + """ + self._vpn_gateway = vpn_gateway + + @property + def request_id(self): + """Gets the request_id of this UpdatePostpaidVgwSpecificationResponse. + + 请求ID + + :return: The request_id of this UpdatePostpaidVgwSpecificationResponse. + :rtype: str + """ + return self._request_id + + @request_id.setter + def request_id(self, request_id): + """Sets the request_id of this UpdatePostpaidVgwSpecificationResponse. + + 请求ID + + :param request_id: The request_id of this UpdatePostpaidVgwSpecificationResponse. + :type request_id: str + """ + self._request_id = request_id + + @property + def header_response_token(self): + """Gets the header_response_token of this UpdatePostpaidVgwSpecificationResponse. + + :return: The header_response_token of this UpdatePostpaidVgwSpecificationResponse. + :rtype: str + """ + return self._header_response_token + + @header_response_token.setter + def header_response_token(self, header_response_token): + """Sets the header_response_token of this UpdatePostpaidVgwSpecificationResponse. + + :param header_response_token: The header_response_token of this UpdatePostpaidVgwSpecificationResponse. + :type header_response_token: str + """ + self._header_response_token = header_response_token + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdatePostpaidVgwSpecificationResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/update_vgw_specification_request_body.py b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/update_vgw_specification_request_body.py new file mode 100644 index 0000000000..ceab52de55 --- /dev/null +++ b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/update_vgw_specification_request_body.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateVgwSpecificationRequestBody: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'vpn_gateway': 'UpdateVgwSpecificationRequestBodyContent' + } + + attribute_map = { + 'vpn_gateway': 'vpn_gateway' + } + + def __init__(self, vpn_gateway=None): + """UpdateVgwSpecificationRequestBody + + The model defined in huaweicloud sdk + + :param vpn_gateway: + :type vpn_gateway: :class:`huaweicloudsdkvpn.v5.UpdateVgwSpecificationRequestBodyContent` + """ + + + + self._vpn_gateway = None + self.discriminator = None + + self.vpn_gateway = vpn_gateway + + @property + def vpn_gateway(self): + """Gets the vpn_gateway of this UpdateVgwSpecificationRequestBody. + + :return: The vpn_gateway of this UpdateVgwSpecificationRequestBody. + :rtype: :class:`huaweicloudsdkvpn.v5.UpdateVgwSpecificationRequestBodyContent` + """ + return self._vpn_gateway + + @vpn_gateway.setter + def vpn_gateway(self, vpn_gateway): + """Sets the vpn_gateway of this UpdateVgwSpecificationRequestBody. + + :param vpn_gateway: The vpn_gateway of this UpdateVgwSpecificationRequestBody. + :type vpn_gateway: :class:`huaweicloudsdkvpn.v5.UpdateVgwSpecificationRequestBodyContent` + """ + self._vpn_gateway = vpn_gateway + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateVgwSpecificationRequestBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/update_vgw_specification_request_body_content.py b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/update_vgw_specification_request_body_content.py new file mode 100644 index 0000000000..b112fc7727 --- /dev/null +++ b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/model/update_vgw_specification_request_body_content.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateVgwSpecificationRequestBodyContent: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'flavor': 'str' + } + + attribute_map = { + 'flavor': 'flavor' + } + + def __init__(self, flavor=None): + """UpdateVgwSpecificationRequestBodyContent + + The model defined in huaweicloud sdk + + :param flavor: 修改后的VPN网关的规格类型 + :type flavor: str + """ + + + + self._flavor = None + self.discriminator = None + + self.flavor = flavor + + @property + def flavor(self): + """Gets the flavor of this UpdateVgwSpecificationRequestBodyContent. + + 修改后的VPN网关的规格类型 + + :return: The flavor of this UpdateVgwSpecificationRequestBodyContent. + :rtype: str + """ + return self._flavor + + @flavor.setter + def flavor(self, flavor): + """Sets the flavor of this UpdateVgwSpecificationRequestBodyContent. + + 修改后的VPN网关的规格类型 + + :param flavor: The flavor of this UpdateVgwSpecificationRequestBodyContent. + :type flavor: str + """ + self._flavor = flavor + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateVgwSpecificationRequestBodyContent): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/vpn_async_client.py b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/vpn_async_client.py index a9894ed3fb..9ae1127b70 100644 --- a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/vpn_async_client.py +++ b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/vpn_async_client.py @@ -2707,6 +2707,73 @@ def _show_vgw_http_info(self, request): return http_info + def update_postpaid_vgw_specification_async(self, request): + """修改网关规格 + + 对单个网关规格进行修改,可以升配或降配 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for UpdatePostpaidVgwSpecification + :type request: :class:`huaweicloudsdkvpn.v5.UpdatePostpaidVgwSpecificationRequest` + :rtype: :class:`huaweicloudsdkvpn.v5.UpdatePostpaidVgwSpecificationResponse` + """ + http_info = self._update_postpaid_vgw_specification_http_info(request) + return self._call_api(**http_info) + + def update_postpaid_vgw_specification_async_invoker(self, request): + http_info = self._update_postpaid_vgw_specification_http_info(request) + return AsyncInvoker(self, http_info) + + def _update_postpaid_vgw_specification_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v5/{project_id}/vpn-gateways/{vgw_id}/update-specification", + "request_type": request.__class__.__name__, + "response_type": "UpdatePostpaidVgwSpecificationResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'vgw_id' in local_var_params: + path_params['vgw_id'] = local_var_params['vgw_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-response-token", ] + + 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_vgw_async(self, request): """更新VPN网关 diff --git a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/vpn_client.py b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/vpn_client.py index 4282ee8247..c1f69c440b 100644 --- a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/vpn_client.py +++ b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/vpn_client.py @@ -2707,6 +2707,73 @@ def _show_vgw_http_info(cls, request): return http_info + def update_postpaid_vgw_specification(self, request): + """修改网关规格 + + 对单个网关规格进行修改,可以升配或降配 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for UpdatePostpaidVgwSpecification + :type request: :class:`huaweicloudsdkvpn.v5.UpdatePostpaidVgwSpecificationRequest` + :rtype: :class:`huaweicloudsdkvpn.v5.UpdatePostpaidVgwSpecificationResponse` + """ + http_info = self._update_postpaid_vgw_specification_http_info(request) + return self._call_api(**http_info) + + def update_postpaid_vgw_specification_invoker(self, request): + http_info = self._update_postpaid_vgw_specification_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _update_postpaid_vgw_specification_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v5/{project_id}/vpn-gateways/{vgw_id}/update-specification", + "request_type": request.__class__.__name__, + "response_type": "UpdatePostpaidVgwSpecificationResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'vgw_id' in local_var_params: + path_params['vgw_id'] = local_var_params['vgw_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-response-token", ] + + 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_vgw(self, request): """更新VPN网关 diff --git a/huaweicloud-sdk-vpn/requirements.txt b/huaweicloud-sdk-vpn/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-vpn/requirements.txt +++ b/huaweicloud-sdk-vpn/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-vpn/setup.py b/huaweicloud-sdk-vpn/setup.py index e6293abeb4..36966a72f6 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-waf/requirements.txt b/huaweicloud-sdk-waf/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-waf/requirements.txt +++ b/huaweicloud-sdk-waf/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-waf/setup.py b/huaweicloud-sdk-waf/setup.py index 3cf39997d8..fcb4c47faf 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-workspace/huaweicloudsdkworkspace/v2/model/list_desktops_detail_request.py b/huaweicloud-sdk-workspace/huaweicloudsdkworkspace/v2/model/list_desktops_detail_request.py index 10fd11e1e7..98f6297356 100644 --- a/huaweicloud-sdk-workspace/huaweicloudsdkworkspace/v2/model/list_desktops_detail_request.py +++ b/huaweicloud-sdk-workspace/huaweicloudsdkworkspace/v2/model/list_desktops_detail_request.py @@ -85,7 +85,7 @@ def __init__(self, status=None, user_name=None, user_names=None, sort_field=None :type limit: int :param desktop_id: 桌面ID。 :type desktop_id: list[str] - :param desktop_type: 桌面类型,为空时查所有桌面。 - DEDICATED:普通桌面,包括专享桌面、专属桌面等 - POOLED:池桌面,即桌面池里的桌面 + :param desktop_type: 桌面类型,为空时查所有桌面。 - DEDICATED:普通桌面,包括专享桌面、专属桌面等 - POOLED:池桌面,即桌面池里的桌面 - SHARED: 多用户共享桌面。 :type desktop_type: str :param tag: 桌面的标签。样例: - key1=value1。 - key1=value1,key2=value2。 :type tag: str @@ -391,7 +391,7 @@ def desktop_id(self, desktop_id): def desktop_type(self): """Gets the desktop_type of this ListDesktopsDetailRequest. - 桌面类型,为空时查所有桌面。 - DEDICATED:普通桌面,包括专享桌面、专属桌面等 - POOLED:池桌面,即桌面池里的桌面 + 桌面类型,为空时查所有桌面。 - DEDICATED:普通桌面,包括专享桌面、专属桌面等 - POOLED:池桌面,即桌面池里的桌面 - SHARED: 多用户共享桌面。 :return: The desktop_type of this ListDesktopsDetailRequest. :rtype: str @@ -402,7 +402,7 @@ def desktop_type(self): def desktop_type(self, desktop_type): """Sets the desktop_type of this ListDesktopsDetailRequest. - 桌面类型,为空时查所有桌面。 - DEDICATED:普通桌面,包括专享桌面、专属桌面等 - POOLED:池桌面,即桌面池里的桌面 + 桌面类型,为空时查所有桌面。 - DEDICATED:普通桌面,包括专享桌面、专属桌面等 - POOLED:池桌面,即桌面池里的桌面 - SHARED: 多用户共享桌面。 :param desktop_type: The desktop_type of this ListDesktopsDetailRequest. :type desktop_type: str diff --git a/huaweicloud-sdk-workspace/requirements.txt b/huaweicloud-sdk-workspace/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-workspace/requirements.txt +++ b/huaweicloud-sdk-workspace/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-workspace/setup.py b/huaweicloud-sdk-workspace/setup.py index 80aff9c799..0023711e3b 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-workspaceapp/requirements.txt b/huaweicloud-sdk-workspaceapp/requirements.txt index 44eb39fe8c..9199f28ef6 100644 --- a/huaweicloud-sdk-workspaceapp/requirements.txt +++ b/huaweicloud-sdk-workspaceapp/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.109 \ No newline at end of file +huaweicloudsdkcore >= 3.1.110 \ No newline at end of file diff --git a/huaweicloud-sdk-workspaceapp/setup.py b/huaweicloud-sdk-workspaceapp/setup.py index 58c2d67880..2646b1e1da 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.109" +VERSION = "3.1.110" 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.109"] +REQUIRES = ["huaweicloudsdkcore>=3.1.110"] OPTIONS = { 'bdist_wheel': {