From 2db01671327577423f02af69d23929147b1e8621 Mon Sep 17 00:00:00 2001 From: Huaweicloud-SDK Date: Thu, 20 Jun 2024 17:10:52 +0800 Subject: [PATCH] release 3.1.102 source code --- CHANGELOG.md | 359 ++ CHANGELOG_CN.md | 359 ++ VERSION | 2 +- huaweicloud-sdk-aad/requirements.txt | 2 +- huaweicloud-sdk-aad/setup.py | 4 +- huaweicloud-sdk-all/requirements.txt | 326 +- huaweicloud-sdk-all/setup.py | 328 +- huaweicloud-sdk-antiddos/requirements.txt | 2 +- huaweicloud-sdk-antiddos/setup.py | 4 +- huaweicloud-sdk-aom/requirements.txt | 2 +- huaweicloud-sdk-aom/setup.py | 4 +- huaweicloud-sdk-aos/requirements.txt | 2 +- huaweicloud-sdk-aos/setup.py | 4 +- huaweicloud-sdk-apig/requirements.txt | 2 +- huaweicloud-sdk-apig/setup.py | 4 +- huaweicloud-sdk-apm/requirements.txt | 2 +- huaweicloud-sdk-apm/setup.py | 4 +- huaweicloud-sdk-as/requirements.txt | 2 +- huaweicloud-sdk-as/setup.py | 4 +- huaweicloud-sdk-asm/requirements.txt | 2 +- huaweicloud-sdk-asm/setup.py | 4 +- huaweicloud-sdk-bcs/requirements.txt | 2 +- huaweicloud-sdk-bcs/setup.py | 4 +- huaweicloud-sdk-bms/requirements.txt | 2 +- huaweicloud-sdk-bms/setup.py | 4 +- .../huaweicloudsdkbss/v2/bss_async_client.py | 278 +- .../huaweicloudsdkbss/v2/bss_client.py | 278 +- .../v2/model/demand_discount_rating_result.py | 8 +- .../v2/model/demand_product_info.py | 8 +- .../v2/model/monthly_bill_record.py | 96 +- .../v2/model/monthly_bill_res.py | 88 +- .../model/official_website_rating_result.py | 8 +- .../model/optional_discount_rating_result.py | 24 +- .../v2/model/order_line_item_v3.py | 16 +- .../v2/model/order_refund_info_v2.py | 8 +- .../period_product_official_rating_result.py | 8 +- .../v2/model/period_product_rating_result.py | 24 +- .../v2/model/query_indirect_partners_req.py | 6 +- .../v2/model/res_fee_record_v2.py | 128 +- .../v2/model/retrieve_amount_info_v2.py | 24 +- .../v2/model/transfer_amount_info_v2.py | 24 +- huaweicloud-sdk-bss/requirements.txt | 2 +- huaweicloud-sdk-bss/setup.py | 4 +- .../v2/bssintl_async_client.py | 262 +- .../v2/bssintl_client.py | 262 +- .../v2/model/account_balance_v3.py | 24 +- .../v2/model/balance_type_pay.py | 8 +- .../v2/model/bill_sum_record_info.py | 24 +- .../v2/model/demand_discount_rating_result.py | 8 +- .../v2/model/discount_detail_info.py | 8 +- .../v2/model/invoice_request_info_intl.py | 8 +- .../list_monthly_expenditures_response.py | 56 +- .../model/list_postpaid_bill_sum_response.py | 40 +- .../v2/model/monthly_bill_res.py | 88 +- .../model/official_website_rating_result.py | 8 +- .../model/optional_discount_rating_result.py | 24 +- .../v2/model/order_line_item_v3.py | 16 +- .../v2/model/order_refund_info_v2.py | 8 +- .../period_product_official_rating_result.py | 8 +- .../v2/model/period_product_rating_result.py | 24 +- .../v2/model/renew_inquiry_result_info.py | 6 +- .../v2/model/res_fee_record_v2.py | 128 +- ...show_customer_account_balances_response.py | 8 +- .../show_sub_customer_budget_response.py | 16 +- .../v2/model/tax_info.py | 8 +- huaweicloud-sdk-bssintl/requirements.txt | 2 +- huaweicloud-sdk-bssintl/setup.py | 4 +- huaweicloud-sdk-cae/requirements.txt | 2 +- huaweicloud-sdk-cae/setup.py | 4 +- huaweicloud-sdk-campusgo/requirements.txt | 2 +- huaweicloud-sdk-campusgo/setup.py | 4 +- .../huaweicloudsdkcbh/v1/region/cbh_region.py | 6 + .../huaweicloudsdkcbh/v2/region/cbh_region.py | 6 + huaweicloud-sdk-cbh/requirements.txt | 2 +- huaweicloud-sdk-cbh/setup.py | 4 +- huaweicloud-sdk-cbr/requirements.txt | 2 +- huaweicloud-sdk-cbr/setup.py | 4 +- huaweicloud-sdk-cbs/requirements.txt | 2 +- huaweicloud-sdk-cbs/setup.py | 4 +- huaweicloud-sdk-cc/requirements.txt | 2 +- huaweicloud-sdk-cc/setup.py | 4 +- huaweicloud-sdk-cce/requirements.txt | 2 +- huaweicloud-sdk-cce/setup.py | 4 +- .../huaweicloudsdkccm/v1/region/ccm_region.py | 3 + huaweicloud-sdk-ccm/requirements.txt | 2 +- huaweicloud-sdk-ccm/setup.py | 4 +- huaweicloud-sdk-cdm/requirements.txt | 2 +- huaweicloud-sdk-cdm/setup.py | 4 +- huaweicloud-sdk-cdn/requirements.txt | 2 +- huaweicloud-sdk-cdn/setup.py | 4 +- huaweicloud-sdk-ces/requirements.txt | 2 +- huaweicloud-sdk-ces/setup.py | 4 +- huaweicloud-sdk-cfw/requirements.txt | 2 +- huaweicloud-sdk-cfw/setup.py | 4 +- huaweicloud-sdk-cgs/requirements.txt | 2 +- huaweicloud-sdk-cgs/setup.py | 4 +- huaweicloud-sdk-classroom/requirements.txt | 2 +- huaweicloud-sdk-classroom/setup.py | 4 +- huaweicloud-sdk-cloudide/requirements.txt | 2 +- huaweicloud-sdk-cloudide/setup.py | 4 +- huaweicloud-sdk-cloudpond/requirements.txt | 2 +- huaweicloud-sdk-cloudpond/setup.py | 4 +- huaweicloud-sdk-cloudrtc/requirements.txt | 2 +- huaweicloud-sdk-cloudrtc/setup.py | 4 +- huaweicloud-sdk-cloudtable/requirements.txt | 2 +- huaweicloud-sdk-cloudtable/setup.py | 4 +- huaweicloud-sdk-cloudtest/requirements.txt | 2 +- huaweicloud-sdk-cloudtest/setup.py | 4 +- .../requirements.txt | 2 +- huaweicloud-sdk-codeartsartifact/setup.py | 4 +- .../requirements.txt | 2 +- huaweicloud-sdk-codeartsbuild/setup.py | 4 +- .../requirements.txt | 2 +- huaweicloud-sdk-codeartscheck/setup.py | 4 +- .../requirements.txt | 2 +- huaweicloud-sdk-codeartsdeploy/setup.py | 4 +- .../requirements.txt | 2 +- huaweicloud-sdk-codeartsinspector/setup.py | 4 +- .../v2/__init__.py | 1 + .../v2/codeartspipeline_async_client.py | 4 + .../v2/codeartspipeline_client.py | 4 + .../v2/model/__init__.py | 1 + .../v2/model/agent_plugin_info_query_dto.py | 30 +- .../model/business_type_plugins_query_dto.py | 6 +- .../v2/model/delete_basic_plugin_request.py | 72 +- .../v2/model/delete_plugin_draft_request.py | 6 +- .../v2/model/delete_publisher_request.py | 3 +- .../v2/model/list_base_plugins_request.py | 15 +- .../v2/model/list_p_lugin_version_request.py | 9 +- .../v2/model/list_pipeline_templates_query.py | 6 +- .../list_plugin_version_number_request.py | 9 +- .../v2/model/list_plugins_request.py | 6 +- .../v2/model/list_publisher_request.py | 6 +- .../v2/model/pipeline_concurrency_mgmt.py | 260 ++ .../v2/model/pipeline_dto.py | 40 +- .../v2/model/plugin_basic_dto.py | 12 +- .../v2/model/plugin_dto.py | 24 +- .../v2/model/plugin_part_query_dto.py | 24 +- .../v2/model/publish_plugin_dto.py | 9 +- .../v2/model/publisher_request.py | 9 +- .../v2/model/show_basic_plugin_request.py | 6 +- .../v2/model/show_pipeline_log_response.py | 12 +- .../v2/model/show_plugin_version_request.py | 3 +- .../v2/model/update_rule_set_req.py | 3 +- .../v2/model/upload_basic_plugin_request.py | 6 +- .../v2/model/upload_plugin_icon_request.py | 3 +- .../v2/model/upload_publisher_icon_request.py | 3 +- .../requirements.txt | 2 +- huaweicloud-sdk-codeartspipeline/setup.py | 4 +- huaweicloud-sdk-codecraft/requirements.txt | 2 +- huaweicloud-sdk-codecraft/setup.py | 4 +- huaweicloud-sdk-codehub/requirements.txt | 2 +- huaweicloud-sdk-codehub/setup.py | 4 +- huaweicloud-sdk-config/requirements.txt | 2 +- huaweicloud-sdk-config/setup.py | 4 +- huaweicloud-sdk-core/setup.py | 2 +- ...ne_server_detail_response_body_metadata.py | 12 +- huaweicloud-sdk-cph/requirements.txt | 2 +- huaweicloud-sdk-cph/setup.py | 4 +- huaweicloud-sdk-cpts/requirements.txt | 2 +- huaweicloud-sdk-cpts/setup.py | 4 +- huaweicloud-sdk-cse/requirements.txt | 2 +- huaweicloud-sdk-cse/setup.py | 4 +- huaweicloud-sdk-csms/requirements.txt | 2 +- huaweicloud-sdk-csms/setup.py | 4 +- .../huaweicloudsdkcss/v1/__init__.py | 1 + .../huaweicloudsdkcss/v1/css_async_client.py | 2 + .../huaweicloudsdkcss/v1/css_client.py | 2 + .../huaweicloudsdkcss/v1/model/__init__.py | 1 + .../v1/model/list_clusters_details_request.py | 35 +- .../v1/model/permission_info.py | 202 ++ .../model/show_vpcep_connection_response.py | 60 +- .../huaweicloudsdkcss/v1/region/css_region.py | 3 + .../huaweicloudsdkcss/v2/region/css_region.py | 3 + huaweicloud-sdk-css/requirements.txt | 2 +- huaweicloud-sdk-css/setup.py | 4 +- huaweicloud-sdk-cts/requirements.txt | 2 +- huaweicloud-sdk-cts/setup.py | 4 +- .../huaweicloudsdkdas/v3/__init__.py | 3 + .../huaweicloudsdkdas/v3/das_async_client.py | 69 + .../huaweicloudsdkdas/v3/das_client.py | 69 + .../huaweicloudsdkdas/v3/model/__init__.py | 3 + .../v3/model/parse_sql_limit_rules_req.py | 198 ++ .../v3/model/parse_sql_limit_rules_request.py | 168 + .../model/parse_sql_limit_rules_response.py | 116 + .../huaweicloudsdkdas/v3/region/das_region.py | 30 + huaweicloud-sdk-das/requirements.txt | 2 +- huaweicloud-sdk-das/setup.py | 4 +- .../model/list_release_packages_resp_data.py | 8 +- .../show_package_detail_resp_task_details.py | 60 +- .../requirements.txt | 2 +- huaweicloud-sdk-dataartsstudio/setup.py | 4 +- huaweicloud-sdk-dbss/requirements.txt | 2 +- huaweicloud-sdk-dbss/setup.py | 4 +- huaweicloud-sdk-dc/requirements.txt | 2 +- huaweicloud-sdk-dc/setup.py | 4 +- huaweicloud-sdk-dcs/requirements.txt | 2 +- huaweicloud-sdk-dcs/setup.py | 4 +- huaweicloud-sdk-ddm/requirements.txt | 2 +- huaweicloud-sdk-ddm/setup.py | 4 +- .../huaweicloudsdkdds/v3/region/dds_region.py | 5 +- huaweicloud-sdk-dds/requirements.txt | 2 +- huaweicloud-sdk-dds/setup.py | 4 +- huaweicloud-sdk-deh/requirements.txt | 2 +- huaweicloud-sdk-deh/setup.py | 4 +- huaweicloud-sdk-devsecurity/requirements.txt | 2 +- huaweicloud-sdk-devsecurity/setup.py | 4 +- huaweicloud-sdk-devstar/requirements.txt | 2 +- huaweicloud-sdk-devstar/setup.py | 4 +- huaweicloud-sdk-dgc/requirements.txt | 2 +- huaweicloud-sdk-dgc/setup.py | 4 +- huaweicloud-sdk-dis/requirements.txt | 2 +- huaweicloud-sdk-dis/setup.py | 4 +- huaweicloud-sdk-dlf/requirements.txt | 2 +- huaweicloud-sdk-dlf/setup.py | 4 +- .../create_flink_sql_job_request_body.py | 6 +- huaweicloud-sdk-dli/requirements.txt | 2 +- huaweicloud-sdk-dli/setup.py | 4 +- huaweicloud-sdk-dns/requirements.txt | 2 +- huaweicloud-sdk-dns/setup.py | 4 +- huaweicloud-sdk-dris/requirements.txt | 2 +- huaweicloud-sdk-dris/setup.py | 4 +- huaweicloud-sdk-drs/requirements.txt | 2 +- huaweicloud-sdk-drs/setup.py | 4 +- huaweicloud-sdk-dsc/requirements.txt | 2 +- huaweicloud-sdk-dsc/setup.py | 4 +- huaweicloud-sdk-dwr/requirements.txt | 2 +- huaweicloud-sdk-dwr/setup.py | 4 +- .../huaweicloudsdkdws/v2/__init__.py | 8 + .../huaweicloudsdkdws/v2/dws_async_client.py | 134 + .../huaweicloudsdkdws/v2/dws_client.py | 134 + .../huaweicloudsdkdws/v2/model/__init__.py | 8 + .../v2/model/change_security_group_request.py | 139 + .../change_security_group_request_body.py | 114 + .../model/change_security_group_response.py | 85 + .../v2/model/cluster_flavor_detail_info.py | 334 ++ .../v2/model/flavor_attribute_info.py | 142 + .../v2/model/flavor_volume_node_info.py | 198 ++ .../v2/model/show_cluster_flavor_request.py | 143 + .../v2/model/show_cluster_flavor_response.py | 112 + .../huaweicloudsdkdws/v2/region/dws_region.py | 3 + huaweicloud-sdk-dws/requirements.txt | 2 +- huaweicloud-sdk-dws/setup.py | 4 +- huaweicloud-sdk-ec/requirements.txt | 2 +- huaweicloud-sdk-ec/setup.py | 4 +- huaweicloud-sdk-ecs/requirements.txt | 2 +- huaweicloud-sdk-ecs/setup.py | 4 +- huaweicloud-sdk-edgesec/requirements.txt | 2 +- huaweicloud-sdk-edgesec/setup.py | 4 +- huaweicloud-sdk-eg/requirements.txt | 2 +- huaweicloud-sdk-eg/setup.py | 4 +- huaweicloud-sdk-eihealth/requirements.txt | 2 +- huaweicloud-sdk-eihealth/setup.py | 4 +- huaweicloud-sdk-eip/requirements.txt | 2 +- huaweicloud-sdk-eip/setup.py | 4 +- huaweicloud-sdk-elb/requirements.txt | 2 +- huaweicloud-sdk-elb/setup.py | 4 +- huaweicloud-sdk-eps/requirements.txt | 2 +- huaweicloud-sdk-eps/setup.py | 4 +- huaweicloud-sdk-er/requirements.txt | 2 +- huaweicloud-sdk-er/setup.py | 4 +- huaweicloud-sdk-evs/requirements.txt | 2 +- huaweicloud-sdk-evs/setup.py | 4 +- huaweicloud-sdk-frs/requirements.txt | 2 +- huaweicloud-sdk-frs/setup.py | 4 +- .../requirements.txt | 2 +- huaweicloud-sdk-functiongraph/setup.py | 4 +- huaweicloud-sdk-ga/requirements.txt | 2 +- huaweicloud-sdk-ga/setup.py | 4 +- huaweicloud-sdk-gaussdb/requirements.txt | 2 +- huaweicloud-sdk-gaussdb/setup.py | 4 +- .../requirements.txt | 2 +- huaweicloud-sdk-gaussdbfornosql/setup.py | 4 +- .../requirements.txt | 2 +- huaweicloud-sdk-gaussdbforopengauss/setup.py | 4 +- huaweicloud-sdk-geip/requirements.txt | 2 +- huaweicloud-sdk-geip/setup.py | 4 +- huaweicloud-sdk-ges/requirements.txt | 2 +- huaweicloud-sdk-ges/setup.py | 4 +- huaweicloud-sdk-gsl/requirements.txt | 2 +- huaweicloud-sdk-gsl/setup.py | 4 +- huaweicloud-sdk-hilens/requirements.txt | 2 +- huaweicloud-sdk-hilens/setup.py | 4 +- huaweicloud-sdk-hss/requirements.txt | 2 +- huaweicloud-sdk-hss/setup.py | 4 +- huaweicloud-sdk-iam/requirements.txt | 2 +- huaweicloud-sdk-iam/setup.py | 4 +- .../requirements.txt | 2 +- huaweicloud-sdk-iamaccessanalyzer/setup.py | 4 +- .../requirements.txt | 2 +- huaweicloud-sdk-identitycenter/setup.py | 4 +- .../requirements.txt | 2 +- huaweicloud-sdk-identitycenterstore/setup.py | 4 +- huaweicloud-sdk-idme/requirements.txt | 2 +- huaweicloud-sdk-idme/setup.py | 4 +- .../requirements.txt | 2 +- huaweicloud-sdk-idmeclassicapi/setup.py | 4 +- huaweicloud-sdk-iec/requirements.txt | 2 +- huaweicloud-sdk-iec/setup.py | 4 +- huaweicloud-sdk-ief/requirements.txt | 2 +- huaweicloud-sdk-ief/setup.py | 4 +- huaweicloud-sdk-image/requirements.txt | 2 +- huaweicloud-sdk-image/setup.py | 4 +- huaweicloud-sdk-imagesearch/requirements.txt | 2 +- huaweicloud-sdk-imagesearch/setup.py | 4 +- huaweicloud-sdk-ims/requirements.txt | 2 +- huaweicloud-sdk-ims/setup.py | 4 +- huaweicloud-sdk-iotanalytics/requirements.txt | 2 +- huaweicloud-sdk-iotanalytics/setup.py | 4 +- .../huaweicloudsdkiotda/v5/__init__.py | 57 + .../v5/iotda_async_client.py | 2907 ++++++++++++----- .../huaweicloudsdkiotda/v5/iotda_client.py | 2907 ++++++++++++----- .../huaweicloudsdkiotda/v5/model/__init__.py | 57 + .../v5/model/bind_device_policy.py | 142 + .../v5/model/bind_device_policy_request.py | 168 + .../v5/model/bind_device_policy_response.py | 203 ++ .../v5/model/create_device_authorizer.py | 316 ++ .../model/create_device_authorizer_request.py | 140 + .../create_device_authorizer_response.py | 435 +++ .../v5/model/create_device_policy.py | 171 + .../v5/model/create_device_policy_request.py | 140 + .../v5/model/create_device_policy_response.py | 261 ++ .../v5/model/create_provisioning_template.py | 167 + .../create_provisioning_template_request.py | 140 + .../create_provisioning_template_response.py | 257 ++ .../model/delete_device_authorizer_request.py | 143 + .../delete_device_authorizer_response.py | 112 + .../v5/model/delete_device_policy_request.py | 143 + .../v5/model/delete_device_policy_response.py | 112 + .../delete_provisioning_template_request.py | 143 + .../delete_provisioning_template_response.py | 112 + .../v5/model/device_authorizer_simple.py | 376 +++ ...ce_policy_bind_or_unbind_failure_detail.py | 173 + .../v5/model/device_resource.py | 192 ++ .../model/list_device_authorizers_request.py | 231 ++ .../model/list_device_authorizers_response.py | 141 + .../v5/model/list_device_policies_request.py | 260 ++ .../v5/model/list_device_policies_response.py | 141 + .../v5/model/list_device_policy_base.py | 231 ++ .../list_provisioning_templates_request.py | 231 ++ .../list_provisioning_templates_response.py | 141 + .../v5/model/parameter_ref.py | 114 + .../v5/model/policy_resource.py | 115 + .../v5/model/policy_target_base.py | 142 + .../v5/model/provisioning_template_body.py | 138 + .../v5/model/provisioning_template_simple.py | 231 ++ .../model/show_device_authorizer_request.py | 143 + .../model/show_device_authorizer_response.py | 435 +++ .../v5/model/show_device_policy_request.py | 143 + .../v5/model/show_device_policy_response.py | 261 ++ .../show_provisioning_template_request.py | 143 + .../show_provisioning_template_response.py | 257 ++ .../show_targets_in_device_policy_request.py | 168 + ...w_targets_in_device_policy_request_body.py | 202 ++ .../show_targets_in_device_policy_response.py | 141 + .../huaweicloudsdkiotda/v5/model/statement.py | 170 + .../huaweicloudsdkiotda/v5/model/tag_ref.py | 144 + .../v5/model/template_resource.py | 135 + .../v5/model/un_bind_device_policy.py | 142 + .../v5/model/unbind_device_policy_request.py | 168 + .../v5/model/unbind_device_policy_response.py | 203 ++ .../v5/model/update_device_authorizer.py | 318 ++ .../model/update_device_authorizer_request.py | 168 + .../update_device_authorizer_response.py | 435 +++ .../v5/model/update_device_policy.py | 144 + .../v5/model/update_device_policy_request.py | 168 + .../v5/model/update_device_policy_response.py | 261 ++ .../v5/model/update_provisioning_template.py | 140 + .../update_provisioning_template_request.py | 168 + .../update_provisioning_template_response.py | 257 ++ huaweicloud-sdk-iotda/requirements.txt | 2 +- huaweicloud-sdk-iotda/setup.py | 4 +- huaweicloud-sdk-iotedge/requirements.txt | 2 +- huaweicloud-sdk-iotedge/setup.py | 4 +- huaweicloud-sdk-ivs/requirements.txt | 2 +- huaweicloud-sdk-ivs/setup.py | 4 +- ...ch_delete_message_diagnosis_reports_req.py | 6 +- ...h_delete_message_diagnosis_resp_results.py | 6 +- .../v2/model/create_instance_by_engine_req.py | 6 +- .../v2/model/create_instance_topic_req.py | 12 +- .../create_message_diagnosis_task_response.py | 6 +- .../v2/model/create_post_paid_instance_req.py | 6 +- ...ka_message_diagnosis_report_info_entity.py | 6 +- .../v2/model/list_engine_products_entity.py | 6 +- .../show_diagnosis_pre_check_response.py | 6 +- .../v2/model/show_instance_resp.py | 6 +- .../v2/model/show_instance_response.py | 6 +- .../smart_connect_task_resp_sink_config.py | 89 +- .../v2/model/tag_entity.py | 12 +- huaweicloud-sdk-kafka/requirements.txt | 2 +- huaweicloud-sdk-kafka/setup.py | 4 +- huaweicloud-sdk-kms/requirements.txt | 2 +- huaweicloud-sdk-kms/setup.py | 4 +- huaweicloud-sdk-koomessage/requirements.txt | 2 +- huaweicloud-sdk-koomessage/setup.py | 4 +- huaweicloud-sdk-kps/requirements.txt | 2 +- huaweicloud-sdk-kps/setup.py | 4 +- .../requirements.txt | 2 +- huaweicloud-sdk-lakeformation/setup.py | 4 +- huaweicloud-sdk-live/requirements.txt | 2 +- huaweicloud-sdk-live/setup.py | 4 +- huaweicloud-sdk-lts/requirements.txt | 2 +- huaweicloud-sdk-lts/setup.py | 4 +- huaweicloud-sdk-mapds/requirements.txt | 2 +- huaweicloud-sdk-mapds/setup.py | 4 +- huaweicloud-sdk-mas/requirements.txt | 2 +- huaweicloud-sdk-mas/setup.py | 4 +- huaweicloud-sdk-meeting/requirements.txt | 2 +- huaweicloud-sdk-meeting/setup.py | 4 +- huaweicloud-sdk-metastudio/requirements.txt | 2 +- huaweicloud-sdk-metastudio/setup.py | 4 +- .../v3/model/audio_input_body.py | 35 +- .../model/audio_stream_create_request_data.py | 35 +- huaweicloud-sdk-moderation/requirements.txt | 2 +- huaweicloud-sdk-moderation/setup.py | 4 +- huaweicloud-sdk-mpc/requirements.txt | 2 +- huaweicloud-sdk-mpc/setup.py | 4 +- huaweicloud-sdk-mrs/requirements.txt | 2 +- huaweicloud-sdk-mrs/setup.py | 4 +- huaweicloud-sdk-msgsms/requirements.txt | 2 +- huaweicloud-sdk-msgsms/setup.py | 4 +- huaweicloud-sdk-mssi/requirements.txt | 2 +- huaweicloud-sdk-mssi/setup.py | 4 +- huaweicloud-sdk-nat/requirements.txt | 2 +- huaweicloud-sdk-nat/setup.py | 4 +- huaweicloud-sdk-nlp/requirements.txt | 2 +- huaweicloud-sdk-nlp/setup.py | 4 +- huaweicloud-sdk-obs/requirements.txt | 2 +- huaweicloud-sdk-obs/setup.py | 4 +- huaweicloud-sdk-ocr/requirements.txt | 2 +- huaweicloud-sdk-ocr/setup.py | 4 +- huaweicloud-sdk-octopus/requirements.txt | 2 +- huaweicloud-sdk-octopus/setup.py | 4 +- huaweicloud-sdk-oms/requirements.txt | 2 +- huaweicloud-sdk-oms/setup.py | 4 +- huaweicloud-sdk-optverse/requirements.txt | 2 +- huaweicloud-sdk-optverse/setup.py | 4 +- .../requirements.txt | 2 +- huaweicloud-sdk-organizations/setup.py | 4 +- huaweicloud-sdk-orgid/requirements.txt | 2 +- huaweicloud-sdk-orgid/setup.py | 4 +- huaweicloud-sdk-oroas/requirements.txt | 2 +- huaweicloud-sdk-oroas/setup.py | 4 +- huaweicloud-sdk-osm/requirements.txt | 2 +- huaweicloud-sdk-osm/setup.py | 4 +- .../requirements.txt | 2 +- huaweicloud-sdk-pangulargemodels/setup.py | 4 +- huaweicloud-sdk-projectman/requirements.txt | 2 +- huaweicloud-sdk-projectman/setup.py | 4 +- huaweicloud-sdk-rabbitmq/requirements.txt | 2 +- huaweicloud-sdk-rabbitmq/setup.py | 4 +- huaweicloud-sdk-ram/requirements.txt | 2 +- huaweicloud-sdk-ram/setup.py | 4 +- huaweicloud-sdk-rds/requirements.txt | 2 +- huaweicloud-sdk-rds/setup.py | 4 +- huaweicloud-sdk-res/requirements.txt | 2 +- huaweicloud-sdk-res/setup.py | 4 +- huaweicloud-sdk-rgc/requirements.txt | 2 +- huaweicloud-sdk-rgc/setup.py | 4 +- huaweicloud-sdk-rms/requirements.txt | 2 +- huaweicloud-sdk-rms/setup.py | 4 +- huaweicloud-sdk-rocketmq/requirements.txt | 2 +- huaweicloud-sdk-rocketmq/setup.py | 4 +- huaweicloud-sdk-roma/requirements.txt | 2 +- huaweicloud-sdk-roma/setup.py | 4 +- huaweicloud-sdk-sa/requirements.txt | 2 +- huaweicloud-sdk-sa/setup.py | 4 +- huaweicloud-sdk-scm/requirements.txt | 2 +- huaweicloud-sdk-scm/setup.py | 4 +- huaweicloud-sdk-sdrs/requirements.txt | 2 +- huaweicloud-sdk-sdrs/setup.py | 4 +- huaweicloud-sdk-secmaster/requirements.txt | 2 +- huaweicloud-sdk-secmaster/setup.py | 4 +- huaweicloud-sdk-servicestage/requirements.txt | 2 +- huaweicloud-sdk-servicestage/setup.py | 4 +- huaweicloud-sdk-sfsturbo/requirements.txt | 2 +- huaweicloud-sdk-sfsturbo/setup.py | 4 +- huaweicloud-sdk-sis/requirements.txt | 2 +- huaweicloud-sdk-sis/setup.py | 4 +- huaweicloud-sdk-smn/requirements.txt | 2 +- huaweicloud-sdk-smn/setup.py | 4 +- huaweicloud-sdk-sms/requirements.txt | 2 +- huaweicloud-sdk-sms/setup.py | 4 +- huaweicloud-sdk-sts/requirements.txt | 2 +- huaweicloud-sdk-sts/setup.py | 4 +- huaweicloud-sdk-swr/requirements.txt | 2 +- huaweicloud-sdk-swr/setup.py | 4 +- huaweicloud-sdk-tics/requirements.txt | 2 +- huaweicloud-sdk-tics/setup.py | 4 +- huaweicloud-sdk-tms/requirements.txt | 2 +- huaweicloud-sdk-tms/setup.py | 4 +- huaweicloud-sdk-ugo/requirements.txt | 2 +- huaweicloud-sdk-ugo/setup.py | 4 +- huaweicloud-sdk-vas/requirements.txt | 2 +- huaweicloud-sdk-vas/setup.py | 4 +- huaweicloud-sdk-vcm/requirements.txt | 2 +- huaweicloud-sdk-vcm/setup.py | 4 +- huaweicloud-sdk-vod/requirements.txt | 2 +- huaweicloud-sdk-vod/setup.py | 4 +- huaweicloud-sdk-vpc/requirements.txt | 2 +- huaweicloud-sdk-vpc/setup.py | 4 +- huaweicloud-sdk-vpcep/requirements.txt | 2 +- huaweicloud-sdk-vpcep/setup.py | 4 +- .../huaweicloudsdkvpn/v5/region/vpn_region.py | 3 + huaweicloud-sdk-vpn/requirements.txt | 2 +- huaweicloud-sdk-vpn/setup.py | 4 +- huaweicloud-sdk-waf/requirements.txt | 2 +- huaweicloud-sdk-waf/setup.py | 4 +- huaweicloud-sdk-workspace/requirements.txt | 2 +- huaweicloud-sdk-workspace/setup.py | 4 +- huaweicloud-sdk-workspaceapp/requirements.txt | 2 +- huaweicloud-sdk-workspaceapp/setup.py | 4 +- 512 files changed, 21080 insertions(+), 3803 deletions(-) create mode 100644 huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/pipeline_concurrency_mgmt.py create mode 100644 huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/permission_info.py create mode 100644 huaweicloud-sdk-das/huaweicloudsdkdas/v3/model/parse_sql_limit_rules_req.py create mode 100644 huaweicloud-sdk-das/huaweicloudsdkdas/v3/model/parse_sql_limit_rules_request.py create mode 100644 huaweicloud-sdk-das/huaweicloudsdkdas/v3/model/parse_sql_limit_rules_response.py create mode 100644 huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/change_security_group_request.py create mode 100644 huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/change_security_group_request_body.py create mode 100644 huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/change_security_group_response.py create mode 100644 huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/cluster_flavor_detail_info.py create mode 100644 huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/flavor_attribute_info.py create mode 100644 huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/flavor_volume_node_info.py create mode 100644 huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/show_cluster_flavor_request.py create mode 100644 huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/show_cluster_flavor_response.py create mode 100644 huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/bind_device_policy.py create mode 100644 huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/bind_device_policy_request.py create mode 100644 huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/bind_device_policy_response.py create mode 100644 huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/create_device_authorizer.py create mode 100644 huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/create_device_authorizer_request.py create mode 100644 huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/create_device_authorizer_response.py create mode 100644 huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/create_device_policy.py create mode 100644 huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/create_device_policy_request.py create mode 100644 huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/create_device_policy_response.py create mode 100644 huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/create_provisioning_template.py create mode 100644 huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/create_provisioning_template_request.py create mode 100644 huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/create_provisioning_template_response.py create mode 100644 huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/delete_device_authorizer_request.py create mode 100644 huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/delete_device_authorizer_response.py create mode 100644 huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/delete_device_policy_request.py create mode 100644 huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/delete_device_policy_response.py create mode 100644 huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/delete_provisioning_template_request.py create mode 100644 huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/delete_provisioning_template_response.py create mode 100644 huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/device_authorizer_simple.py create mode 100644 huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/device_policy_bind_or_unbind_failure_detail.py create mode 100644 huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/device_resource.py create mode 100644 huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/list_device_authorizers_request.py create mode 100644 huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/list_device_authorizers_response.py create mode 100644 huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/list_device_policies_request.py create mode 100644 huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/list_device_policies_response.py create mode 100644 huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/list_device_policy_base.py create mode 100644 huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/list_provisioning_templates_request.py create mode 100644 huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/list_provisioning_templates_response.py create mode 100644 huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/parameter_ref.py create mode 100644 huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/policy_resource.py create mode 100644 huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/policy_target_base.py create mode 100644 huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/provisioning_template_body.py create mode 100644 huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/provisioning_template_simple.py create mode 100644 huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/show_device_authorizer_request.py create mode 100644 huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/show_device_authorizer_response.py create mode 100644 huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/show_device_policy_request.py create mode 100644 huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/show_device_policy_response.py create mode 100644 huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/show_provisioning_template_request.py create mode 100644 huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/show_provisioning_template_response.py create mode 100644 huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/show_targets_in_device_policy_request.py create mode 100644 huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/show_targets_in_device_policy_request_body.py create mode 100644 huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/show_targets_in_device_policy_response.py create mode 100644 huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/statement.py create mode 100644 huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/tag_ref.py create mode 100644 huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/template_resource.py create mode 100644 huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/un_bind_device_policy.py create mode 100644 huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/unbind_device_policy_request.py create mode 100644 huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/unbind_device_policy_response.py create mode 100644 huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/update_device_authorizer.py create mode 100644 huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/update_device_authorizer_request.py create mode 100644 huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/update_device_authorizer_response.py create mode 100644 huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/update_device_policy.py create mode 100644 huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/update_device_policy_request.py create mode 100644 huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/update_device_policy_response.py create mode 100644 huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/update_provisioning_template.py create mode 100644 huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/update_provisioning_template_request.py create mode 100644 huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/update_provisioning_template_response.py diff --git a/CHANGELOG.md b/CHANGELOG.md index 8db5ab48f6..c0911b12a3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,362 @@ +# 3.1.102 2024-06-20 + +### HuaweiCloud SDK BSS + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ShowRefundOrderDetails** + - changes of response param + - `* refund_infos.amount: double -> bigdecimal` + - **ListCustomerselfResourceRecords** + - changes of response param + - `* fee_records.spec_size: double -> bigdecimal` + - `* fee_records.usage: double -> bigdecimal` + - `* fee_records.free_resource_usage: double -> bigdecimal` + - `* fee_records.ri_usage: double -> bigdecimal` + - `* fee_records.unit_price: double -> bigdecimal` + - `* fee_records.official_amount: double -> bigdecimal` + - `* fee_records.discount_amount: double -> bigdecimal` + - `* fee_records.amount: double -> bigdecimal` + - `* fee_records.cash_amount: double -> bigdecimal` + - `* fee_records.credit_amount: double -> bigdecimal` + - `* fee_records.coupon_amount: double -> bigdecimal` + - `* fee_records.flexipurchase_coupon_amount: double -> bigdecimal` + - `* fee_records.stored_card_amount: double -> bigdecimal` + - `* fee_records.bonus_amount: double -> bigdecimal` + - `* fee_records.debt_amount: double -> bigdecimal` + - `* fee_records.adjustment_amount: double -> bigdecimal` + - **ShowMultiAccountTransferAmount** + - changes of response param + - `* amount_infos.avail_transfer_amount: double -> bigdecimal` + - `* amount_infos.amount: double -> bigdecimal` + - `* amount_infos.credit_amount: double -> bigdecimal` + - **ListEnterpriseMultiAccount** + - changes of response param + - `* amount_infos.avail_retrieve_amount: double -> bigdecimal` + - `* amount_infos.amount: double -> bigdecimal` + - `* amount_infos.credit_amount: double -> bigdecimal` + - **ListCustomerBillsFeeRecords** + - changes of response param + - `* records.official_amount: double -> bigdecimal` + - `* records.official_discount_amount: double -> bigdecimal` + - `* records.erase_amount: double -> bigdecimal` + - `* records.consume_amount: double -> bigdecimal` + - `* records.cash_amount: double -> bigdecimal` + - `* records.credit_amount: double -> bigdecimal` + - `* records.coupon_amount: double -> bigdecimal` + - `* records.flexipurchase_coupon_amount: double -> bigdecimal` + - `* records.stored_value_card_amount: double -> bigdecimal` + - `* records.bonus_amount: double -> bigdecimal` + - `* records.debt_amount: double -> bigdecimal` + - `* records.writeoff_amount: double -> bigdecimal` + - **ListRateOnPeriodDetail** + - changes of response param + - `* official_website_rating_result.official_website_amount: double -> bigdecimal` + - `* official_website_rating_result.product_rating_results.official_website_amount: double -> bigdecimal` + - `* optional_discount_rating_results.amount: double -> bigdecimal` + - `* optional_discount_rating_results.official_website_amount: double -> bigdecimal` + - `* optional_discount_rating_results.discount_amount: double -> bigdecimal` + - `* optional_discount_rating_results.product_rating_results.amount: double -> bigdecimal` + - `* optional_discount_rating_results.product_rating_results.official_website_amount: double -> bigdecimal` + - `* optional_discount_rating_results.product_rating_results.discount_amount: double -> bigdecimal` + - **ListOnDemandResourceRatings** + - changes of request param + - `* product_infos.usage_value: double -> bigdecimal` + - changes of response param + - `* product_rating_results.discount_rating_results.amount: double -> bigdecimal` + - **ListCustomerselfResourceRecordDetails** + - changes of response param + - `* monthly_records.consume_amount: double -> bigdecimal` + - `* monthly_records.cash_amount: double -> bigdecimal` + - `* monthly_records.credit_amount: double -> bigdecimal` + - `* monthly_records.coupon_amount: double -> bigdecimal` + - `* monthly_records.flexipurchase_coupon_amount: double -> bigdecimal` + - `* monthly_records.stored_card_amount: double -> bigdecimal` + - `* monthly_records.bonus_amount: double -> bigdecimal` + - `* monthly_records.debt_amount: double -> bigdecimal` + - `* monthly_records.adjustment_amount: double -> bigdecimal` + - `* monthly_records.official_amount: double -> bigdecimal` + - `* monthly_records.discount_amount: double -> bigdecimal` + - **ListOrderDiscounts** + - changes of response param + - `* discounts.orders.order_line_items.discount_amount: double -> bigdecimal` + - `* discounts.orders.order_line_items.discount_ratio: double -> bigdecimal` + +### HuaweiCloud SDK BSSINTL + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ShowSubCustomerBudget** + - changes of response param + - `* budget_amount: double -> bigdecimal` + - `* used_amount: double -> bigdecimal` + - **ListPostpaidBillSum** + - changes of response param + - `* initial_amount_due: double -> bigdecimal` + - `* consume_amount: double -> bigdecimal` + - `* refunds: double -> bigdecimal` + - `* adjustments: double -> bigdecimal` + - `* tax_amount: double -> bigdecimal` + - **ShowRefundOrderDetails** + - changes of response param + - `* refund_infos.amount: double -> bigdecimal` + - **ListCustomerselfResourceRecords** + - changes of response param + - `* fee_records.spec_size: double -> bigdecimal` + - `* fee_records.usage: double -> bigdecimal` + - `* fee_records.free_resource_usage: double -> bigdecimal` + - `* fee_records.ri_usage: double -> bigdecimal` + - `* fee_records.unit_price: double -> bigdecimal` + - `* fee_records.official_amount: double -> bigdecimal` + - `* fee_records.discount_amount: double -> bigdecimal` + - `* fee_records.amount: double -> bigdecimal` + - `* fee_records.cash_amount: double -> bigdecimal` + - `* fee_records.credit_amount: double -> bigdecimal` + - `* fee_records.coupon_amount: double -> bigdecimal` + - `* fee_records.flexipurchase_coupon_amount: double -> bigdecimal` + - `* fee_records.stored_card_amount: double -> bigdecimal` + - `* fee_records.bonus_amount: double -> bigdecimal` + - `* fee_records.debt_amount: double -> bigdecimal` + - `* fee_records.adjustment_amount: double -> bigdecimal` + - **ShowCustomerAccountBalances** + - changes of response param + - `* debt_amount: double -> bigdecimal` + - `* account_balances.amount: double -> bigdecimal` + - `* account_balances.designated_amount: double -> bigdecimal` + - `* account_balances.credit_amount: double -> bigdecimal` + - **ListRateOnPeriodDetail** + - changes of response param + - `* official_website_rating_result.official_website_amount: double -> bigdecimal` + - `* official_website_rating_result.product_rating_results.official_website_amount: double -> bigdecimal` + - `* optional_discount_rating_results.amount: double -> bigdecimal` + - `* optional_discount_rating_results.official_website_amount: double -> bigdecimal` + - `* optional_discount_rating_results.discount_amount: double -> bigdecimal` + - `* optional_discount_rating_results.product_rating_results.amount: double -> bigdecimal` + - `* optional_discount_rating_results.product_rating_results.official_website_amount: double -> bigdecimal` + - `* optional_discount_rating_results.product_rating_results.discount_amount: double -> bigdecimal` + - **ListOnDemandResourceRatings** + - changes of response param + - `* product_rating_results.discount_rating_results.amount: double -> bigdecimal` + - **ListMonthlyExpenditures** + - changes of response param + - `* total_amount: double -> bigdecimal` + - `* debt_amount: double -> bigdecimal` + - `* coupon_amount: double -> bigdecimal` + - `* cashcoupon_amount: double -> bigdecimal` + - `* storedcard_amount: double -> bigdecimal` + - `* debit_amount: double -> bigdecimal` + - `* credit_amount: double -> bigdecimal` + - `* bill_sums.consume_amount: double -> bigdecimal` + - `* bill_sums.debt: double -> bigdecimal` + - `* bill_sums.discount: double -> bigdecimal` + - `* bill_sums.account_details.deduct_amount: double -> bigdecimal` + - `* bill_sums.discount_detail_infos.discount_amount: double -> bigdecimal` + - **ListCustomerselfResourceRecordDetails** + - changes of response param + - `* monthly_records.consume_amount: double -> bigdecimal` + - `* monthly_records.cash_amount: double -> bigdecimal` + - `* monthly_records.credit_amount: double -> bigdecimal` + - `* monthly_records.coupon_amount: double -> bigdecimal` + - `* monthly_records.flexipurchase_coupon_amount: double -> bigdecimal` + - `* monthly_records.stored_card_amount: double -> bigdecimal` + - `* monthly_records.bonus_amount: double -> bigdecimal` + - `* monthly_records.debt_amount: double -> bigdecimal` + - `* monthly_records.adjustment_amount: double -> bigdecimal` + - `* monthly_records.official_amount: double -> bigdecimal` + - `* monthly_records.discount_amount: double -> bigdecimal` + - **ListInvoices** + - changes of response param + - `* invoices.invoiceAmount: double -> bigdecimal` + - `* invoices.taxList.taxAmount: double -> bigdecimal` + - **ListOrderDiscounts** + - changes of response param + - `* discounts.orders.order_line_items.discount_amount: double -> bigdecimal` + - `* discounts.orders.order_line_items.discount_ratio: double -> bigdecimal` + +### HuaweiCloud SDK CodeArtsPipeline + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **UploadPluginIcon** + - changes of request param + - `* plugin_name: optional -> required` + - **UploadPublisherIcon** + - changes of request param + - `* publisher_en_name: optional -> required` + - **DeletePluginDraft** + - changes of request param + - `* plugin_name: optional -> required` + - `* version: optional -> required` + - **DeletePublisher** + - changes of request param + - `* publisher_unique_id: optional -> required` + - **DeleteBasicPlugin** + - changes of request param + - `+ type` + - `+ version` + - `* plugin_name: optional -> required` + - **UploadBasicPlugin** + - changes of request param + - `* plugin_name: optional -> required` + - `* business_type: optional -> required` + - **ListBasePlugins** + - changes of request param + - `* attribution: optional -> required` + - `* offset: optional -> required` + - `* limit: optional -> required` + - **ListPluginVersionNumber** + - changes of request param + - `* plugin_name: optional -> required` + - `* offset: optional -> required` + - `* limit: optional -> required` + - **ListPublisher** + - changes of request param + - `* offset: optional -> required` + - `* limit: optional -> required` + - **ListPlugins** + - changes of request param + - `* offset: optional -> required` + - `* limit: optional -> required` + - **ListPLuginVersion** + - changes of request param + - `* plugin_name: optional -> required` + - `* offset: optional -> required` + - `* limit: optional -> required` + - **ShowPluginVersion** + - changes of request param + - `* plugin_name: optional -> required` + - **ShowBasicPlugin** + - changes of request param + - `* plugin_name: optional -> required` + - `* version: optional -> required` + - **CreatePipelineNew** + - changes of request param + - `+ concurrency_control` + - **UpdatePipelineInfo** + - changes of request param + - `+ concurrency_control` + +### HuaweiCloud SDK CSS + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ShowVpcepConnection** + - changes of response param + - `+ vpcServiceName` + - `+ permissions` + - **ListClustersDetails** + - changes of request param + - `+ datastoreType` + +### HuaweiCloud SDK DAS + +- _Features_ + - Support the API `ParseSqlLimitRules` +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK DataArtsStudio + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ListFactoryReleasePackages** + - changes of response param + - `* data.apply_timestamp: string -> int64` + - **ShowFactoryPackageDetail** + - changes of response param + - `+ task_details.task_id` + - `+ task_details.start_job_status` + +### HuaweiCloud SDK DWS + +- _Features_ + - Support the APIs `ChangeSecurityGroup`, `ShowClusterFlavor` +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK IoTDA + +- _Features_ + - Support the following APIs: + - `ListProvisioningTemplates` + - `CreateProvisioningTemplate` + - `ShowProvisioningTemplate` + - `UpdateProvisioningTemplate` + - `DeleteProvisioningTemplate` + - `ListDeviceAuthorizers` + - `CreateDeviceAuthorizer` + - `ShowDeviceAuthorizer` + - `UpdateDeviceAuthorizer` + - `DeleteDeviceAuthorizer` + - `ListDevicePolicies` + - `CreateDevicePolicy` + - `ShowDevicePolicy` + - `UpdateDevicePolicy` + - `DeleteDevicePolicy` + - `BindDevicePolicy` + - `UnbindDevicePolicy` + - `ShowTargetsInDevicePolicy` +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK Kafka + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ShowConnectorTask** + - changes of response param + - `- sink_task.connector_class` + - `- sink_task.storage_class` + - `- sink_task.format_class` + - **CreateConnectorTask** + - changes of response param + - `- sink_task.connector_class` + - `- sink_task.storage_class` + - `- sink_task.format_class` + - **ListConnectorTasks** + - changes of response param + - `- tasks.sink_task.connector_class` + - `- tasks.sink_task.storage_class` + - `- tasks.sink_task.format_class` + +### HuaweiCloud SDK Moderation + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **RunCreateAudioStreamModerationJob** + - changes of request param + - `+ data.language` + - **RunCreateAudioModerationJob** + - changes of request param + - `+ data.language` + # 3.1.101 2024-06-14 ### HuaweiCloud SDK DLI diff --git a/CHANGELOG_CN.md b/CHANGELOG_CN.md index 0a692cafa6..bf6518c051 100644 --- a/CHANGELOG_CN.md +++ b/CHANGELOG_CN.md @@ -1,3 +1,362 @@ +# 3.1.102 2024-06-20 + +### HuaweiCloud SDK BSS + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ShowRefundOrderDetails** + - 响应参数变更 + - `* refund_infos.amount: double -> bigdecimal` + - **ListCustomerselfResourceRecords** + - 响应参数变更 + - `* fee_records.spec_size: double -> bigdecimal` + - `* fee_records.usage: double -> bigdecimal` + - `* fee_records.free_resource_usage: double -> bigdecimal` + - `* fee_records.ri_usage: double -> bigdecimal` + - `* fee_records.unit_price: double -> bigdecimal` + - `* fee_records.official_amount: double -> bigdecimal` + - `* fee_records.discount_amount: double -> bigdecimal` + - `* fee_records.amount: double -> bigdecimal` + - `* fee_records.cash_amount: double -> bigdecimal` + - `* fee_records.credit_amount: double -> bigdecimal` + - `* fee_records.coupon_amount: double -> bigdecimal` + - `* fee_records.flexipurchase_coupon_amount: double -> bigdecimal` + - `* fee_records.stored_card_amount: double -> bigdecimal` + - `* fee_records.bonus_amount: double -> bigdecimal` + - `* fee_records.debt_amount: double -> bigdecimal` + - `* fee_records.adjustment_amount: double -> bigdecimal` + - **ShowMultiAccountTransferAmount** + - 响应参数变更 + - `* amount_infos.avail_transfer_amount: double -> bigdecimal` + - `* amount_infos.amount: double -> bigdecimal` + - `* amount_infos.credit_amount: double -> bigdecimal` + - **ListEnterpriseMultiAccount** + - 响应参数变更 + - `* amount_infos.avail_retrieve_amount: double -> bigdecimal` + - `* amount_infos.amount: double -> bigdecimal` + - `* amount_infos.credit_amount: double -> bigdecimal` + - **ListCustomerBillsFeeRecords** + - 响应参数变更 + - `* records.official_amount: double -> bigdecimal` + - `* records.official_discount_amount: double -> bigdecimal` + - `* records.erase_amount: double -> bigdecimal` + - `* records.consume_amount: double -> bigdecimal` + - `* records.cash_amount: double -> bigdecimal` + - `* records.credit_amount: double -> bigdecimal` + - `* records.coupon_amount: double -> bigdecimal` + - `* records.flexipurchase_coupon_amount: double -> bigdecimal` + - `* records.stored_value_card_amount: double -> bigdecimal` + - `* records.bonus_amount: double -> bigdecimal` + - `* records.debt_amount: double -> bigdecimal` + - `* records.writeoff_amount: double -> bigdecimal` + - **ListRateOnPeriodDetail** + - 响应参数变更 + - `* official_website_rating_result.official_website_amount: double -> bigdecimal` + - `* official_website_rating_result.product_rating_results.official_website_amount: double -> bigdecimal` + - `* optional_discount_rating_results.amount: double -> bigdecimal` + - `* optional_discount_rating_results.official_website_amount: double -> bigdecimal` + - `* optional_discount_rating_results.discount_amount: double -> bigdecimal` + - `* optional_discount_rating_results.product_rating_results.amount: double -> bigdecimal` + - `* optional_discount_rating_results.product_rating_results.official_website_amount: double -> bigdecimal` + - `* optional_discount_rating_results.product_rating_results.discount_amount: double -> bigdecimal` + - **ListOnDemandResourceRatings** + - 请求参数变更 + - `* product_infos.usage_value: double -> bigdecimal` + - 响应参数变更 + - `* product_rating_results.discount_rating_results.amount: double -> bigdecimal` + - **ListCustomerselfResourceRecordDetails** + - 响应参数变更 + - `* monthly_records.consume_amount: double -> bigdecimal` + - `* monthly_records.cash_amount: double -> bigdecimal` + - `* monthly_records.credit_amount: double -> bigdecimal` + - `* monthly_records.coupon_amount: double -> bigdecimal` + - `* monthly_records.flexipurchase_coupon_amount: double -> bigdecimal` + - `* monthly_records.stored_card_amount: double -> bigdecimal` + - `* monthly_records.bonus_amount: double -> bigdecimal` + - `* monthly_records.debt_amount: double -> bigdecimal` + - `* monthly_records.adjustment_amount: double -> bigdecimal` + - `* monthly_records.official_amount: double -> bigdecimal` + - `* monthly_records.discount_amount: double -> bigdecimal` + - **ListOrderDiscounts** + - 响应参数变更 + - `* discounts.orders.order_line_items.discount_amount: double -> bigdecimal` + - `* discounts.orders.order_line_items.discount_ratio: double -> bigdecimal` + +### HuaweiCloud SDK BSSINTL + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ShowSubCustomerBudget** + - 响应参数变更 + - `* budget_amount: double -> bigdecimal` + - `* used_amount: double -> bigdecimal` + - **ListPostpaidBillSum** + - 响应参数变更 + - `* initial_amount_due: double -> bigdecimal` + - `* consume_amount: double -> bigdecimal` + - `* refunds: double -> bigdecimal` + - `* adjustments: double -> bigdecimal` + - `* tax_amount: double -> bigdecimal` + - **ShowRefundOrderDetails** + - 响应参数变更 + - `* refund_infos.amount: double -> bigdecimal` + - **ListCustomerselfResourceRecords** + - 响应参数变更 + - `* fee_records.spec_size: double -> bigdecimal` + - `* fee_records.usage: double -> bigdecimal` + - `* fee_records.free_resource_usage: double -> bigdecimal` + - `* fee_records.ri_usage: double -> bigdecimal` + - `* fee_records.unit_price: double -> bigdecimal` + - `* fee_records.official_amount: double -> bigdecimal` + - `* fee_records.discount_amount: double -> bigdecimal` + - `* fee_records.amount: double -> bigdecimal` + - `* fee_records.cash_amount: double -> bigdecimal` + - `* fee_records.credit_amount: double -> bigdecimal` + - `* fee_records.coupon_amount: double -> bigdecimal` + - `* fee_records.flexipurchase_coupon_amount: double -> bigdecimal` + - `* fee_records.stored_card_amount: double -> bigdecimal` + - `* fee_records.bonus_amount: double -> bigdecimal` + - `* fee_records.debt_amount: double -> bigdecimal` + - `* fee_records.adjustment_amount: double -> bigdecimal` + - **ShowCustomerAccountBalances** + - 响应参数变更 + - `* debt_amount: double -> bigdecimal` + - `* account_balances.amount: double -> bigdecimal` + - `* account_balances.designated_amount: double -> bigdecimal` + - `* account_balances.credit_amount: double -> bigdecimal` + - **ListRateOnPeriodDetail** + - 响应参数变更 + - `* official_website_rating_result.official_website_amount: double -> bigdecimal` + - `* official_website_rating_result.product_rating_results.official_website_amount: double -> bigdecimal` + - `* optional_discount_rating_results.amount: double -> bigdecimal` + - `* optional_discount_rating_results.official_website_amount: double -> bigdecimal` + - `* optional_discount_rating_results.discount_amount: double -> bigdecimal` + - `* optional_discount_rating_results.product_rating_results.amount: double -> bigdecimal` + - `* optional_discount_rating_results.product_rating_results.official_website_amount: double -> bigdecimal` + - `* optional_discount_rating_results.product_rating_results.discount_amount: double -> bigdecimal` + - **ListOnDemandResourceRatings** + - 响应参数变更 + - `* product_rating_results.discount_rating_results.amount: double -> bigdecimal` + - **ListMonthlyExpenditures** + - 响应参数变更 + - `* total_amount: double -> bigdecimal` + - `* debt_amount: double -> bigdecimal` + - `* coupon_amount: double -> bigdecimal` + - `* cashcoupon_amount: double -> bigdecimal` + - `* storedcard_amount: double -> bigdecimal` + - `* debit_amount: double -> bigdecimal` + - `* credit_amount: double -> bigdecimal` + - `* bill_sums.consume_amount: double -> bigdecimal` + - `* bill_sums.debt: double -> bigdecimal` + - `* bill_sums.discount: double -> bigdecimal` + - `* bill_sums.account_details.deduct_amount: double -> bigdecimal` + - `* bill_sums.discount_detail_infos.discount_amount: double -> bigdecimal` + - **ListCustomerselfResourceRecordDetails** + - 响应参数变更 + - `* monthly_records.consume_amount: double -> bigdecimal` + - `* monthly_records.cash_amount: double -> bigdecimal` + - `* monthly_records.credit_amount: double -> bigdecimal` + - `* monthly_records.coupon_amount: double -> bigdecimal` + - `* monthly_records.flexipurchase_coupon_amount: double -> bigdecimal` + - `* monthly_records.stored_card_amount: double -> bigdecimal` + - `* monthly_records.bonus_amount: double -> bigdecimal` + - `* monthly_records.debt_amount: double -> bigdecimal` + - `* monthly_records.adjustment_amount: double -> bigdecimal` + - `* monthly_records.official_amount: double -> bigdecimal` + - `* monthly_records.discount_amount: double -> bigdecimal` + - **ListInvoices** + - 响应参数变更 + - `* invoices.invoiceAmount: double -> bigdecimal` + - `* invoices.taxList.taxAmount: double -> bigdecimal` + - **ListOrderDiscounts** + - 响应参数变更 + - `* discounts.orders.order_line_items.discount_amount: double -> bigdecimal` + - `* discounts.orders.order_line_items.discount_ratio: double -> bigdecimal` + +### HuaweiCloud SDK CodeArtsPipeline + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **UploadPluginIcon** + - 请求参数变更 + - `* plugin_name: optional -> required` + - **UploadPublisherIcon** + - 请求参数变更 + - `* publisher_en_name: optional -> required` + - **DeletePluginDraft** + - 请求参数变更 + - `* plugin_name: optional -> required` + - `* version: optional -> required` + - **DeletePublisher** + - 请求参数变更 + - `* publisher_unique_id: optional -> required` + - **DeleteBasicPlugin** + - 请求参数变更 + - `+ type` + - `+ version` + - `* plugin_name: optional -> required` + - **UploadBasicPlugin** + - 请求参数变更 + - `* plugin_name: optional -> required` + - `* business_type: optional -> required` + - **ListBasePlugins** + - 请求参数变更 + - `* attribution: optional -> required` + - `* offset: optional -> required` + - `* limit: optional -> required` + - **ListPluginVersionNumber** + - 请求参数变更 + - `* plugin_name: optional -> required` + - `* offset: optional -> required` + - `* limit: optional -> required` + - **ListPublisher** + - 请求参数变更 + - `* offset: optional -> required` + - `* limit: optional -> required` + - **ListPlugins** + - 请求参数变更 + - `* offset: optional -> required` + - `* limit: optional -> required` + - **ListPLuginVersion** + - 请求参数变更 + - `* plugin_name: optional -> required` + - `* offset: optional -> required` + - `* limit: optional -> required` + - **ShowPluginVersion** + - 请求参数变更 + - `* plugin_name: optional -> required` + - **ShowBasicPlugin** + - 请求参数变更 + - `* plugin_name: optional -> required` + - `* version: optional -> required` + - **CreatePipelineNew** + - 请求参数变更 + - `+ concurrency_control` + - **UpdatePipelineInfo** + - 请求参数变更 + - `+ concurrency_control` + +### HuaweiCloud SDK CSS + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ShowVpcepConnection** + - 响应参数变更 + - `+ vpcServiceName` + - `+ permissions` + - **ListClustersDetails** + - 请求参数变更 + - `+ datastoreType` + +### HuaweiCloud SDK DAS + +- _新增特性_ + - 支持接口`ParseSqlLimitRules` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK DataArtsStudio + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ListFactoryReleasePackages** + - 响应参数变更 + - `* data.apply_timestamp: string -> int64` + - **ShowFactoryPackageDetail** + - 响应参数变更 + - `+ task_details.task_id` + - `+ task_details.start_job_status` + +### HuaweiCloud SDK DWS + +- _新增特性_ + - 支持接口`ChangeSecurityGroup`、`ShowClusterFlavor` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK IoTDA + +- _新增特性_ + - 支持以下接口: + - `ListProvisioningTemplates` + - `CreateProvisioningTemplate` + - `ShowProvisioningTemplate` + - `UpdateProvisioningTemplate` + - `DeleteProvisioningTemplate` + - `ListDeviceAuthorizers` + - `CreateDeviceAuthorizer` + - `ShowDeviceAuthorizer` + - `UpdateDeviceAuthorizer` + - `DeleteDeviceAuthorizer` + - `ListDevicePolicies` + - `CreateDevicePolicy` + - `ShowDevicePolicy` + - `UpdateDevicePolicy` + - `DeleteDevicePolicy` + - `BindDevicePolicy` + - `UnbindDevicePolicy` + - `ShowTargetsInDevicePolicy` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK Kafka + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ShowConnectorTask** + - 响应参数变更 + - `- sink_task.connector_class` + - `- sink_task.storage_class` + - `- sink_task.format_class` + - **CreateConnectorTask** + - 响应参数变更 + - `- sink_task.connector_class` + - `- sink_task.storage_class` + - `- sink_task.format_class` + - **ListConnectorTasks** + - 响应参数变更 + - `- tasks.sink_task.connector_class` + - `- tasks.sink_task.storage_class` + - `- tasks.sink_task.format_class` + +### HuaweiCloud SDK Moderation + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **RunCreateAudioStreamModerationJob** + - 请求参数变更 + - `+ data.language` + - **RunCreateAudioModerationJob** + - 请求参数变更 + - `+ data.language` + # 3.1.101 2024-06-14 ### HuaweiCloud SDK DLI diff --git a/VERSION b/VERSION index 80ed89d1cc..6b0555c8c7 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -3.1.101 +3.1.102 diff --git a/huaweicloud-sdk-aad/requirements.txt b/huaweicloud-sdk-aad/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-aad/requirements.txt +++ b/huaweicloud-sdk-aad/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-aad/setup.py b/huaweicloud-sdk-aad/setup.py index 0965b52bd9..3395b203b7 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-all/requirements.txt b/huaweicloud-sdk-all/requirements.txt index 28fad7d4a6..25b8ed7f10 100644 --- a/huaweicloud-sdk-all/requirements.txt +++ b/huaweicloud-sdk-all/requirements.txt @@ -1,163 +1,163 @@ -huaweicloudsdkcore == 3.1.101 -huaweicloudsdkaad == 3.1.101 -huaweicloudsdkantiddos == 3.1.101 -huaweicloudsdkaom == 3.1.101 -huaweicloudsdkaos == 3.1.101 -huaweicloudsdkapig == 3.1.101 -huaweicloudsdkapm == 3.1.101 -huaweicloudsdkas == 3.1.101 -huaweicloudsdkasm == 3.1.101 -huaweicloudsdkbcs == 3.1.101 -huaweicloudsdkbms == 3.1.101 -huaweicloudsdkbss == 3.1.101 -huaweicloudsdkbssintl == 3.1.101 -huaweicloudsdkcae == 3.1.101 -huaweicloudsdkcampusgo == 3.1.101 -huaweicloudsdkcbh == 3.1.101 -huaweicloudsdkcbr == 3.1.101 -huaweicloudsdkcbs == 3.1.101 -huaweicloudsdkcc == 3.1.101 -huaweicloudsdkcce == 3.1.101 -huaweicloudsdkccm == 3.1.101 -huaweicloudsdkcdm == 3.1.101 -huaweicloudsdkcdn == 3.1.101 -huaweicloudsdkces == 3.1.101 -huaweicloudsdkcfw == 3.1.101 -huaweicloudsdkcgs == 3.1.101 -huaweicloudsdkclassroom == 3.1.101 -huaweicloudsdkcloudide == 3.1.101 -huaweicloudsdkcloudpond == 3.1.101 -huaweicloudsdkcloudrtc == 3.1.101 -huaweicloudsdkcloudtable == 3.1.101 -huaweicloudsdkcloudtest == 3.1.101 -huaweicloudsdkcodeartsartifact == 3.1.101 -huaweicloudsdkcodeartsbuild == 3.1.101 -huaweicloudsdkcodeartscheck == 3.1.101 -huaweicloudsdkcodeartsdeploy == 3.1.101 -huaweicloudsdkcodeartsinspector == 3.1.101 -huaweicloudsdkcodeartspipeline == 3.1.101 -huaweicloudsdkcodecraft == 3.1.101 -huaweicloudsdkcodehub == 3.1.101 -huaweicloudsdkconfig == 3.1.101 -huaweicloudsdkcph == 3.1.101 -huaweicloudsdkcpts == 3.1.101 -huaweicloudsdkcse == 3.1.101 -huaweicloudsdkcsms == 3.1.101 -huaweicloudsdkcss == 3.1.101 -huaweicloudsdkcts == 3.1.101 -huaweicloudsdkdas == 3.1.101 -huaweicloudsdkdataartsstudio == 3.1.101 -huaweicloudsdkdbss == 3.1.101 -huaweicloudsdkdc == 3.1.101 -huaweicloudsdkdcs == 3.1.101 -huaweicloudsdkddm == 3.1.101 -huaweicloudsdkdds == 3.1.101 -huaweicloudsdkdeh == 3.1.101 -huaweicloudsdkdevsecurity == 3.1.101 -huaweicloudsdkdevstar == 3.1.101 -huaweicloudsdkdgc == 3.1.101 -huaweicloudsdkdis == 3.1.101 -huaweicloudsdkdlf == 3.1.101 -huaweicloudsdkdli == 3.1.101 -huaweicloudsdkdns == 3.1.101 -huaweicloudsdkdris == 3.1.101 -huaweicloudsdkdrs == 3.1.101 -huaweicloudsdkdsc == 3.1.101 -huaweicloudsdkdwr == 3.1.101 -huaweicloudsdkdws == 3.1.101 -huaweicloudsdkec == 3.1.101 -huaweicloudsdkecs == 3.1.101 -huaweicloudsdkedgesec == 3.1.101 -huaweicloudsdkeg == 3.1.101 -huaweicloudsdkeihealth == 3.1.101 -huaweicloudsdkeip == 3.1.101 -huaweicloudsdkelb == 3.1.101 -huaweicloudsdkeps == 3.1.101 -huaweicloudsdker == 3.1.101 -huaweicloudsdkevs == 3.1.101 -huaweicloudsdkfrs == 3.1.101 -huaweicloudsdkfunctiongraph == 3.1.101 -huaweicloudsdkga == 3.1.101 -huaweicloudsdkgaussdb == 3.1.101 -huaweicloudsdkgaussdbfornosql == 3.1.101 -huaweicloudsdkgaussdbforopengauss == 3.1.101 -huaweicloudsdkgeip == 3.1.101 -huaweicloudsdkges == 3.1.101 -huaweicloudsdkgsl == 3.1.101 -huaweicloudsdkhilens == 3.1.101 -huaweicloudsdkhss == 3.1.101 -huaweicloudsdkiam == 3.1.101 -huaweicloudsdkiamaccessanalyzer == 3.1.101 -huaweicloudsdkidentitycenter == 3.1.101 -huaweicloudsdkidentitycenterstore == 3.1.101 -huaweicloudsdkidme == 3.1.101 -huaweicloudsdkidmeclassicapi == 3.1.101 -huaweicloudsdkiec == 3.1.101 -huaweicloudsdkief == 3.1.101 -huaweicloudsdkimage == 3.1.101 -huaweicloudsdkimagesearch == 3.1.101 -huaweicloudsdkims == 3.1.101 -huaweicloudsdkiotanalytics == 3.1.101 -huaweicloudsdkiotda == 3.1.101 -huaweicloudsdkiotedge == 3.1.101 -huaweicloudsdkivs == 3.1.101 -huaweicloudsdkkafka == 3.1.101 -huaweicloudsdkkms == 3.1.101 -huaweicloudsdkkoomessage == 3.1.101 -huaweicloudsdkkps == 3.1.101 -huaweicloudsdklakeformation == 3.1.101 -huaweicloudsdklive == 3.1.101 -huaweicloudsdklts == 3.1.101 -huaweicloudsdkmapds == 3.1.101 -huaweicloudsdkmas == 3.1.101 -huaweicloudsdkmeeting == 3.1.101 -huaweicloudsdkmetastudio == 3.1.101 -huaweicloudsdkmoderation == 3.1.101 -huaweicloudsdkmpc == 3.1.101 -huaweicloudsdkmrs == 3.1.101 -huaweicloudsdkmsgsms == 3.1.101 -huaweicloudsdkmssi == 3.1.101 -huaweicloudsdknat == 3.1.101 -huaweicloudsdknlp == 3.1.101 -huaweicloudsdkobs == 3.1.101 -huaweicloudsdkocr == 3.1.101 -huaweicloudsdkoctopus == 3.1.101 -huaweicloudsdkoms == 3.1.101 -huaweicloudsdkoptverse == 3.1.101 -huaweicloudsdkorganizations == 3.1.101 -huaweicloudsdkorgid == 3.1.101 -huaweicloudsdkoroas == 3.1.101 -huaweicloudsdkosm == 3.1.101 -huaweicloudsdkpangulargemodels == 3.1.101 -huaweicloudsdkprojectman == 3.1.101 -huaweicloudsdkrabbitmq == 3.1.101 -huaweicloudsdkram == 3.1.101 -huaweicloudsdkrds == 3.1.101 -huaweicloudsdkres == 3.1.101 -huaweicloudsdkrgc == 3.1.101 -huaweicloudsdkrms == 3.1.101 -huaweicloudsdkrocketmq == 3.1.101 -huaweicloudsdkroma == 3.1.101 -huaweicloudsdksa == 3.1.101 -huaweicloudsdkscm == 3.1.101 -huaweicloudsdksdrs == 3.1.101 -huaweicloudsdksecmaster == 3.1.101 -huaweicloudsdkservicestage == 3.1.101 -huaweicloudsdksfsturbo == 3.1.101 -huaweicloudsdksis == 3.1.101 -huaweicloudsdksmn == 3.1.101 -huaweicloudsdksms == 3.1.101 -huaweicloudsdksts == 3.1.101 -huaweicloudsdkswr == 3.1.101 -huaweicloudsdktics == 3.1.101 -huaweicloudsdktms == 3.1.101 -huaweicloudsdkugo == 3.1.101 -huaweicloudsdkvas == 3.1.101 -huaweicloudsdkvcm == 3.1.101 -huaweicloudsdkvod == 3.1.101 -huaweicloudsdkvpc == 3.1.101 -huaweicloudsdkvpcep == 3.1.101 -huaweicloudsdkvpn == 3.1.101 -huaweicloudsdkwaf == 3.1.101 -huaweicloudsdkworkspace == 3.1.101 -huaweicloudsdkworkspaceapp == 3.1.101 +huaweicloudsdkcore == 3.1.102 +huaweicloudsdkaad == 3.1.102 +huaweicloudsdkantiddos == 3.1.102 +huaweicloudsdkaom == 3.1.102 +huaweicloudsdkaos == 3.1.102 +huaweicloudsdkapig == 3.1.102 +huaweicloudsdkapm == 3.1.102 +huaweicloudsdkas == 3.1.102 +huaweicloudsdkasm == 3.1.102 +huaweicloudsdkbcs == 3.1.102 +huaweicloudsdkbms == 3.1.102 +huaweicloudsdkbss == 3.1.102 +huaweicloudsdkbssintl == 3.1.102 +huaweicloudsdkcae == 3.1.102 +huaweicloudsdkcampusgo == 3.1.102 +huaweicloudsdkcbh == 3.1.102 +huaweicloudsdkcbr == 3.1.102 +huaweicloudsdkcbs == 3.1.102 +huaweicloudsdkcc == 3.1.102 +huaweicloudsdkcce == 3.1.102 +huaweicloudsdkccm == 3.1.102 +huaweicloudsdkcdm == 3.1.102 +huaweicloudsdkcdn == 3.1.102 +huaweicloudsdkces == 3.1.102 +huaweicloudsdkcfw == 3.1.102 +huaweicloudsdkcgs == 3.1.102 +huaweicloudsdkclassroom == 3.1.102 +huaweicloudsdkcloudide == 3.1.102 +huaweicloudsdkcloudpond == 3.1.102 +huaweicloudsdkcloudrtc == 3.1.102 +huaweicloudsdkcloudtable == 3.1.102 +huaweicloudsdkcloudtest == 3.1.102 +huaweicloudsdkcodeartsartifact == 3.1.102 +huaweicloudsdkcodeartsbuild == 3.1.102 +huaweicloudsdkcodeartscheck == 3.1.102 +huaweicloudsdkcodeartsdeploy == 3.1.102 +huaweicloudsdkcodeartsinspector == 3.1.102 +huaweicloudsdkcodeartspipeline == 3.1.102 +huaweicloudsdkcodecraft == 3.1.102 +huaweicloudsdkcodehub == 3.1.102 +huaweicloudsdkconfig == 3.1.102 +huaweicloudsdkcph == 3.1.102 +huaweicloudsdkcpts == 3.1.102 +huaweicloudsdkcse == 3.1.102 +huaweicloudsdkcsms == 3.1.102 +huaweicloudsdkcss == 3.1.102 +huaweicloudsdkcts == 3.1.102 +huaweicloudsdkdas == 3.1.102 +huaweicloudsdkdataartsstudio == 3.1.102 +huaweicloudsdkdbss == 3.1.102 +huaweicloudsdkdc == 3.1.102 +huaweicloudsdkdcs == 3.1.102 +huaweicloudsdkddm == 3.1.102 +huaweicloudsdkdds == 3.1.102 +huaweicloudsdkdeh == 3.1.102 +huaweicloudsdkdevsecurity == 3.1.102 +huaweicloudsdkdevstar == 3.1.102 +huaweicloudsdkdgc == 3.1.102 +huaweicloudsdkdis == 3.1.102 +huaweicloudsdkdlf == 3.1.102 +huaweicloudsdkdli == 3.1.102 +huaweicloudsdkdns == 3.1.102 +huaweicloudsdkdris == 3.1.102 +huaweicloudsdkdrs == 3.1.102 +huaweicloudsdkdsc == 3.1.102 +huaweicloudsdkdwr == 3.1.102 +huaweicloudsdkdws == 3.1.102 +huaweicloudsdkec == 3.1.102 +huaweicloudsdkecs == 3.1.102 +huaweicloudsdkedgesec == 3.1.102 +huaweicloudsdkeg == 3.1.102 +huaweicloudsdkeihealth == 3.1.102 +huaweicloudsdkeip == 3.1.102 +huaweicloudsdkelb == 3.1.102 +huaweicloudsdkeps == 3.1.102 +huaweicloudsdker == 3.1.102 +huaweicloudsdkevs == 3.1.102 +huaweicloudsdkfrs == 3.1.102 +huaweicloudsdkfunctiongraph == 3.1.102 +huaweicloudsdkga == 3.1.102 +huaweicloudsdkgaussdb == 3.1.102 +huaweicloudsdkgaussdbfornosql == 3.1.102 +huaweicloudsdkgaussdbforopengauss == 3.1.102 +huaweicloudsdkgeip == 3.1.102 +huaweicloudsdkges == 3.1.102 +huaweicloudsdkgsl == 3.1.102 +huaweicloudsdkhilens == 3.1.102 +huaweicloudsdkhss == 3.1.102 +huaweicloudsdkiam == 3.1.102 +huaweicloudsdkiamaccessanalyzer == 3.1.102 +huaweicloudsdkidentitycenter == 3.1.102 +huaweicloudsdkidentitycenterstore == 3.1.102 +huaweicloudsdkidme == 3.1.102 +huaweicloudsdkidmeclassicapi == 3.1.102 +huaweicloudsdkiec == 3.1.102 +huaweicloudsdkief == 3.1.102 +huaweicloudsdkimage == 3.1.102 +huaweicloudsdkimagesearch == 3.1.102 +huaweicloudsdkims == 3.1.102 +huaweicloudsdkiotanalytics == 3.1.102 +huaweicloudsdkiotda == 3.1.102 +huaweicloudsdkiotedge == 3.1.102 +huaweicloudsdkivs == 3.1.102 +huaweicloudsdkkafka == 3.1.102 +huaweicloudsdkkms == 3.1.102 +huaweicloudsdkkoomessage == 3.1.102 +huaweicloudsdkkps == 3.1.102 +huaweicloudsdklakeformation == 3.1.102 +huaweicloudsdklive == 3.1.102 +huaweicloudsdklts == 3.1.102 +huaweicloudsdkmapds == 3.1.102 +huaweicloudsdkmas == 3.1.102 +huaweicloudsdkmeeting == 3.1.102 +huaweicloudsdkmetastudio == 3.1.102 +huaweicloudsdkmoderation == 3.1.102 +huaweicloudsdkmpc == 3.1.102 +huaweicloudsdkmrs == 3.1.102 +huaweicloudsdkmsgsms == 3.1.102 +huaweicloudsdkmssi == 3.1.102 +huaweicloudsdknat == 3.1.102 +huaweicloudsdknlp == 3.1.102 +huaweicloudsdkobs == 3.1.102 +huaweicloudsdkocr == 3.1.102 +huaweicloudsdkoctopus == 3.1.102 +huaweicloudsdkoms == 3.1.102 +huaweicloudsdkoptverse == 3.1.102 +huaweicloudsdkorganizations == 3.1.102 +huaweicloudsdkorgid == 3.1.102 +huaweicloudsdkoroas == 3.1.102 +huaweicloudsdkosm == 3.1.102 +huaweicloudsdkpangulargemodels == 3.1.102 +huaweicloudsdkprojectman == 3.1.102 +huaweicloudsdkrabbitmq == 3.1.102 +huaweicloudsdkram == 3.1.102 +huaweicloudsdkrds == 3.1.102 +huaweicloudsdkres == 3.1.102 +huaweicloudsdkrgc == 3.1.102 +huaweicloudsdkrms == 3.1.102 +huaweicloudsdkrocketmq == 3.1.102 +huaweicloudsdkroma == 3.1.102 +huaweicloudsdksa == 3.1.102 +huaweicloudsdkscm == 3.1.102 +huaweicloudsdksdrs == 3.1.102 +huaweicloudsdksecmaster == 3.1.102 +huaweicloudsdkservicestage == 3.1.102 +huaweicloudsdksfsturbo == 3.1.102 +huaweicloudsdksis == 3.1.102 +huaweicloudsdksmn == 3.1.102 +huaweicloudsdksms == 3.1.102 +huaweicloudsdksts == 3.1.102 +huaweicloudsdkswr == 3.1.102 +huaweicloudsdktics == 3.1.102 +huaweicloudsdktms == 3.1.102 +huaweicloudsdkugo == 3.1.102 +huaweicloudsdkvas == 3.1.102 +huaweicloudsdkvcm == 3.1.102 +huaweicloudsdkvod == 3.1.102 +huaweicloudsdkvpc == 3.1.102 +huaweicloudsdkvpcep == 3.1.102 +huaweicloudsdkvpn == 3.1.102 +huaweicloudsdkwaf == 3.1.102 +huaweicloudsdkworkspace == 3.1.102 +huaweicloudsdkworkspaceapp == 3.1.102 diff --git a/huaweicloud-sdk-all/setup.py b/huaweicloud-sdk-all/setup.py index aca0397b8b..350e078428 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -34,169 +34,169 @@ LONG_DESCRIPTION = f.read() INSTALL_REQUIRES = [ - 'huaweicloudsdkcore==3.1.101', - 'huaweicloudsdkaad==3.1.101', - 'huaweicloudsdkantiddos==3.1.101', - 'huaweicloudsdkaom==3.1.101', - 'huaweicloudsdkaos==3.1.101', - 'huaweicloudsdkapig==3.1.101', - 'huaweicloudsdkapm==3.1.101', - 'huaweicloudsdkas==3.1.101', - 'huaweicloudsdkasm==3.1.101', - 'huaweicloudsdkbcs==3.1.101', - 'huaweicloudsdkbms==3.1.101', - 'huaweicloudsdkbss==3.1.101', - 'huaweicloudsdkbssintl==3.1.101', - 'huaweicloudsdkcae==3.1.101', - 'huaweicloudsdkcampusgo==3.1.101', - 'huaweicloudsdkcbh==3.1.101', - 'huaweicloudsdkcbr==3.1.101', - 'huaweicloudsdkcbs==3.1.101', - 'huaweicloudsdkcc==3.1.101', - 'huaweicloudsdkcce==3.1.101', - 'huaweicloudsdkccm==3.1.101', - 'huaweicloudsdkcdm==3.1.101', - 'huaweicloudsdkcdn==3.1.101', - 'huaweicloudsdkces==3.1.101', - 'huaweicloudsdkcfw==3.1.101', - 'huaweicloudsdkcgs==3.1.101', - 'huaweicloudsdkclassroom==3.1.101', - 'huaweicloudsdkcloudide==3.1.101', - 'huaweicloudsdkcloudpond==3.1.101', - 'huaweicloudsdkcloudrtc==3.1.101', - 'huaweicloudsdkcloudtable==3.1.101', - 'huaweicloudsdkcloudtest==3.1.101', - 'huaweicloudsdkcodeartsartifact==3.1.101', - 'huaweicloudsdkcodeartsbuild==3.1.101', - 'huaweicloudsdkcodeartscheck==3.1.101', - 'huaweicloudsdkcodeartsdeploy==3.1.101', - 'huaweicloudsdkcodeartsinspector==3.1.101', - 'huaweicloudsdkcodeartspipeline==3.1.101', - 'huaweicloudsdkcodecraft==3.1.101', - 'huaweicloudsdkcodehub==3.1.101', - 'huaweicloudsdkconfig==3.1.101', - 'huaweicloudsdkcph==3.1.101', - 'huaweicloudsdkcpts==3.1.101', - 'huaweicloudsdkcse==3.1.101', - 'huaweicloudsdkcsms==3.1.101', - 'huaweicloudsdkcss==3.1.101', - 'huaweicloudsdkcts==3.1.101', - 'huaweicloudsdkdas==3.1.101', - 'huaweicloudsdkdataartsstudio==3.1.101', - 'huaweicloudsdkdbss==3.1.101', - 'huaweicloudsdkdc==3.1.101', - 'huaweicloudsdkdcs==3.1.101', - 'huaweicloudsdkddm==3.1.101', - 'huaweicloudsdkdds==3.1.101', - 'huaweicloudsdkdeh==3.1.101', - 'huaweicloudsdkdevsecurity==3.1.101', - 'huaweicloudsdkdevstar==3.1.101', - 'huaweicloudsdkdgc==3.1.101', - 'huaweicloudsdkdis==3.1.101', - 'huaweicloudsdkdlf==3.1.101', - 'huaweicloudsdkdli==3.1.101', - 'huaweicloudsdkdns==3.1.101', - 'huaweicloudsdkdris==3.1.101', - 'huaweicloudsdkdrs==3.1.101', - 'huaweicloudsdkdsc==3.1.101', - 'huaweicloudsdkdwr==3.1.101', - 'huaweicloudsdkdws==3.1.101', - 'huaweicloudsdkec==3.1.101', - 'huaweicloudsdkecs==3.1.101', - 'huaweicloudsdkedgesec==3.1.101', - 'huaweicloudsdkeg==3.1.101', - 'huaweicloudsdkeihealth==3.1.101', - 'huaweicloudsdkeip==3.1.101', - 'huaweicloudsdkelb==3.1.101', - 'huaweicloudsdkeps==3.1.101', - 'huaweicloudsdker==3.1.101', - 'huaweicloudsdkevs==3.1.101', - 'huaweicloudsdkfrs==3.1.101', - 'huaweicloudsdkfunctiongraph==3.1.101', - 'huaweicloudsdkga==3.1.101', - 'huaweicloudsdkgaussdb==3.1.101', - 'huaweicloudsdkgaussdbfornosql==3.1.101', - 'huaweicloudsdkgaussdbforopengauss==3.1.101', - 'huaweicloudsdkgeip==3.1.101', - 'huaweicloudsdkges==3.1.101', - 'huaweicloudsdkgsl==3.1.101', - 'huaweicloudsdkhilens==3.1.101', - 'huaweicloudsdkhss==3.1.101', - 'huaweicloudsdkiam==3.1.101', - 'huaweicloudsdkiamaccessanalyzer==3.1.101', - 'huaweicloudsdkidentitycenter==3.1.101', - 'huaweicloudsdkidentitycenterstore==3.1.101', - 'huaweicloudsdkidme==3.1.101', - 'huaweicloudsdkidmeclassicapi==3.1.101', - 'huaweicloudsdkiec==3.1.101', - 'huaweicloudsdkief==3.1.101', - 'huaweicloudsdkimage==3.1.101', - 'huaweicloudsdkimagesearch==3.1.101', - 'huaweicloudsdkims==3.1.101', - 'huaweicloudsdkiotanalytics==3.1.101', - 'huaweicloudsdkiotda==3.1.101', - 'huaweicloudsdkiotedge==3.1.101', - 'huaweicloudsdkivs==3.1.101', - 'huaweicloudsdkkafka==3.1.101', - 'huaweicloudsdkkms==3.1.101', - 'huaweicloudsdkkoomessage==3.1.101', - 'huaweicloudsdkkps==3.1.101', - 'huaweicloudsdklakeformation==3.1.101', - 'huaweicloudsdklive==3.1.101', - 'huaweicloudsdklts==3.1.101', - 'huaweicloudsdkmapds==3.1.101', - 'huaweicloudsdkmas==3.1.101', - 'huaweicloudsdkmeeting==3.1.101', - 'huaweicloudsdkmetastudio==3.1.101', - 'huaweicloudsdkmoderation==3.1.101', - 'huaweicloudsdkmpc==3.1.101', - 'huaweicloudsdkmrs==3.1.101', - 'huaweicloudsdkmsgsms==3.1.101', - 'huaweicloudsdkmssi==3.1.101', - 'huaweicloudsdknat==3.1.101', - 'huaweicloudsdknlp==3.1.101', - 'huaweicloudsdkobs==3.1.101', - 'huaweicloudsdkocr==3.1.101', - 'huaweicloudsdkoctopus==3.1.101', - 'huaweicloudsdkoms==3.1.101', - 'huaweicloudsdkoptverse==3.1.101', - 'huaweicloudsdkorganizations==3.1.101', - 'huaweicloudsdkorgid==3.1.101', - 'huaweicloudsdkoroas==3.1.101', - 'huaweicloudsdkosm==3.1.101', - 'huaweicloudsdkpangulargemodels==3.1.101', - 'huaweicloudsdkprojectman==3.1.101', - 'huaweicloudsdkrabbitmq==3.1.101', - 'huaweicloudsdkram==3.1.101', - 'huaweicloudsdkrds==3.1.101', - 'huaweicloudsdkres==3.1.101', - 'huaweicloudsdkrgc==3.1.101', - 'huaweicloudsdkrms==3.1.101', - 'huaweicloudsdkrocketmq==3.1.101', - 'huaweicloudsdkroma==3.1.101', - 'huaweicloudsdksa==3.1.101', - 'huaweicloudsdkscm==3.1.101', - 'huaweicloudsdksdrs==3.1.101', - 'huaweicloudsdksecmaster==3.1.101', - 'huaweicloudsdkservicestage==3.1.101', - 'huaweicloudsdksfsturbo==3.1.101', - 'huaweicloudsdksis==3.1.101', - 'huaweicloudsdksmn==3.1.101', - 'huaweicloudsdksms==3.1.101', - 'huaweicloudsdksts==3.1.101', - 'huaweicloudsdkswr==3.1.101', - 'huaweicloudsdktics==3.1.101', - 'huaweicloudsdktms==3.1.101', - 'huaweicloudsdkugo==3.1.101', - 'huaweicloudsdkvas==3.1.101', - 'huaweicloudsdkvcm==3.1.101', - 'huaweicloudsdkvod==3.1.101', - 'huaweicloudsdkvpc==3.1.101', - 'huaweicloudsdkvpcep==3.1.101', - 'huaweicloudsdkvpn==3.1.101', - 'huaweicloudsdkwaf==3.1.101', - 'huaweicloudsdkworkspace==3.1.101', - 'huaweicloudsdkworkspaceapp==3.1.101', + 'huaweicloudsdkcore==3.1.102', + 'huaweicloudsdkaad==3.1.102', + 'huaweicloudsdkantiddos==3.1.102', + 'huaweicloudsdkaom==3.1.102', + 'huaweicloudsdkaos==3.1.102', + 'huaweicloudsdkapig==3.1.102', + 'huaweicloudsdkapm==3.1.102', + 'huaweicloudsdkas==3.1.102', + 'huaweicloudsdkasm==3.1.102', + 'huaweicloudsdkbcs==3.1.102', + 'huaweicloudsdkbms==3.1.102', + 'huaweicloudsdkbss==3.1.102', + 'huaweicloudsdkbssintl==3.1.102', + 'huaweicloudsdkcae==3.1.102', + 'huaweicloudsdkcampusgo==3.1.102', + 'huaweicloudsdkcbh==3.1.102', + 'huaweicloudsdkcbr==3.1.102', + 'huaweicloudsdkcbs==3.1.102', + 'huaweicloudsdkcc==3.1.102', + 'huaweicloudsdkcce==3.1.102', + 'huaweicloudsdkccm==3.1.102', + 'huaweicloudsdkcdm==3.1.102', + 'huaweicloudsdkcdn==3.1.102', + 'huaweicloudsdkces==3.1.102', + 'huaweicloudsdkcfw==3.1.102', + 'huaweicloudsdkcgs==3.1.102', + 'huaweicloudsdkclassroom==3.1.102', + 'huaweicloudsdkcloudide==3.1.102', + 'huaweicloudsdkcloudpond==3.1.102', + 'huaweicloudsdkcloudrtc==3.1.102', + 'huaweicloudsdkcloudtable==3.1.102', + 'huaweicloudsdkcloudtest==3.1.102', + 'huaweicloudsdkcodeartsartifact==3.1.102', + 'huaweicloudsdkcodeartsbuild==3.1.102', + 'huaweicloudsdkcodeartscheck==3.1.102', + 'huaweicloudsdkcodeartsdeploy==3.1.102', + 'huaweicloudsdkcodeartsinspector==3.1.102', + 'huaweicloudsdkcodeartspipeline==3.1.102', + 'huaweicloudsdkcodecraft==3.1.102', + 'huaweicloudsdkcodehub==3.1.102', + 'huaweicloudsdkconfig==3.1.102', + 'huaweicloudsdkcph==3.1.102', + 'huaweicloudsdkcpts==3.1.102', + 'huaweicloudsdkcse==3.1.102', + 'huaweicloudsdkcsms==3.1.102', + 'huaweicloudsdkcss==3.1.102', + 'huaweicloudsdkcts==3.1.102', + 'huaweicloudsdkdas==3.1.102', + 'huaweicloudsdkdataartsstudio==3.1.102', + 'huaweicloudsdkdbss==3.1.102', + 'huaweicloudsdkdc==3.1.102', + 'huaweicloudsdkdcs==3.1.102', + 'huaweicloudsdkddm==3.1.102', + 'huaweicloudsdkdds==3.1.102', + 'huaweicloudsdkdeh==3.1.102', + 'huaweicloudsdkdevsecurity==3.1.102', + 'huaweicloudsdkdevstar==3.1.102', + 'huaweicloudsdkdgc==3.1.102', + 'huaweicloudsdkdis==3.1.102', + 'huaweicloudsdkdlf==3.1.102', + 'huaweicloudsdkdli==3.1.102', + 'huaweicloudsdkdns==3.1.102', + 'huaweicloudsdkdris==3.1.102', + 'huaweicloudsdkdrs==3.1.102', + 'huaweicloudsdkdsc==3.1.102', + 'huaweicloudsdkdwr==3.1.102', + 'huaweicloudsdkdws==3.1.102', + 'huaweicloudsdkec==3.1.102', + 'huaweicloudsdkecs==3.1.102', + 'huaweicloudsdkedgesec==3.1.102', + 'huaweicloudsdkeg==3.1.102', + 'huaweicloudsdkeihealth==3.1.102', + 'huaweicloudsdkeip==3.1.102', + 'huaweicloudsdkelb==3.1.102', + 'huaweicloudsdkeps==3.1.102', + 'huaweicloudsdker==3.1.102', + 'huaweicloudsdkevs==3.1.102', + 'huaweicloudsdkfrs==3.1.102', + 'huaweicloudsdkfunctiongraph==3.1.102', + 'huaweicloudsdkga==3.1.102', + 'huaweicloudsdkgaussdb==3.1.102', + 'huaweicloudsdkgaussdbfornosql==3.1.102', + 'huaweicloudsdkgaussdbforopengauss==3.1.102', + 'huaweicloudsdkgeip==3.1.102', + 'huaweicloudsdkges==3.1.102', + 'huaweicloudsdkgsl==3.1.102', + 'huaweicloudsdkhilens==3.1.102', + 'huaweicloudsdkhss==3.1.102', + 'huaweicloudsdkiam==3.1.102', + 'huaweicloudsdkiamaccessanalyzer==3.1.102', + 'huaweicloudsdkidentitycenter==3.1.102', + 'huaweicloudsdkidentitycenterstore==3.1.102', + 'huaweicloudsdkidme==3.1.102', + 'huaweicloudsdkidmeclassicapi==3.1.102', + 'huaweicloudsdkiec==3.1.102', + 'huaweicloudsdkief==3.1.102', + 'huaweicloudsdkimage==3.1.102', + 'huaweicloudsdkimagesearch==3.1.102', + 'huaweicloudsdkims==3.1.102', + 'huaweicloudsdkiotanalytics==3.1.102', + 'huaweicloudsdkiotda==3.1.102', + 'huaweicloudsdkiotedge==3.1.102', + 'huaweicloudsdkivs==3.1.102', + 'huaweicloudsdkkafka==3.1.102', + 'huaweicloudsdkkms==3.1.102', + 'huaweicloudsdkkoomessage==3.1.102', + 'huaweicloudsdkkps==3.1.102', + 'huaweicloudsdklakeformation==3.1.102', + 'huaweicloudsdklive==3.1.102', + 'huaweicloudsdklts==3.1.102', + 'huaweicloudsdkmapds==3.1.102', + 'huaweicloudsdkmas==3.1.102', + 'huaweicloudsdkmeeting==3.1.102', + 'huaweicloudsdkmetastudio==3.1.102', + 'huaweicloudsdkmoderation==3.1.102', + 'huaweicloudsdkmpc==3.1.102', + 'huaweicloudsdkmrs==3.1.102', + 'huaweicloudsdkmsgsms==3.1.102', + 'huaweicloudsdkmssi==3.1.102', + 'huaweicloudsdknat==3.1.102', + 'huaweicloudsdknlp==3.1.102', + 'huaweicloudsdkobs==3.1.102', + 'huaweicloudsdkocr==3.1.102', + 'huaweicloudsdkoctopus==3.1.102', + 'huaweicloudsdkoms==3.1.102', + 'huaweicloudsdkoptverse==3.1.102', + 'huaweicloudsdkorganizations==3.1.102', + 'huaweicloudsdkorgid==3.1.102', + 'huaweicloudsdkoroas==3.1.102', + 'huaweicloudsdkosm==3.1.102', + 'huaweicloudsdkpangulargemodels==3.1.102', + 'huaweicloudsdkprojectman==3.1.102', + 'huaweicloudsdkrabbitmq==3.1.102', + 'huaweicloudsdkram==3.1.102', + 'huaweicloudsdkrds==3.1.102', + 'huaweicloudsdkres==3.1.102', + 'huaweicloudsdkrgc==3.1.102', + 'huaweicloudsdkrms==3.1.102', + 'huaweicloudsdkrocketmq==3.1.102', + 'huaweicloudsdkroma==3.1.102', + 'huaweicloudsdksa==3.1.102', + 'huaweicloudsdkscm==3.1.102', + 'huaweicloudsdksdrs==3.1.102', + 'huaweicloudsdksecmaster==3.1.102', + 'huaweicloudsdkservicestage==3.1.102', + 'huaweicloudsdksfsturbo==3.1.102', + 'huaweicloudsdksis==3.1.102', + 'huaweicloudsdksmn==3.1.102', + 'huaweicloudsdksms==3.1.102', + 'huaweicloudsdksts==3.1.102', + 'huaweicloudsdkswr==3.1.102', + 'huaweicloudsdktics==3.1.102', + 'huaweicloudsdktms==3.1.102', + 'huaweicloudsdkugo==3.1.102', + 'huaweicloudsdkvas==3.1.102', + 'huaweicloudsdkvcm==3.1.102', + 'huaweicloudsdkvod==3.1.102', + 'huaweicloudsdkvpc==3.1.102', + 'huaweicloudsdkvpcep==3.1.102', + 'huaweicloudsdkvpn==3.1.102', + 'huaweicloudsdkwaf==3.1.102', + 'huaweicloudsdkworkspace==3.1.102', + 'huaweicloudsdkworkspaceapp==3.1.102', ] OPTIONS = { diff --git a/huaweicloud-sdk-antiddos/requirements.txt b/huaweicloud-sdk-antiddos/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-antiddos/requirements.txt +++ b/huaweicloud-sdk-antiddos/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-antiddos/setup.py b/huaweicloud-sdk-antiddos/setup.py index 06fd02d37e..60afe9acc0 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-aom/requirements.txt b/huaweicloud-sdk-aom/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-aom/requirements.txt +++ b/huaweicloud-sdk-aom/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-aom/setup.py b/huaweicloud-sdk-aom/setup.py index 7ea115fff8..aec58a1f5e 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-aos/requirements.txt b/huaweicloud-sdk-aos/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-aos/requirements.txt +++ b/huaweicloud-sdk-aos/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-aos/setup.py b/huaweicloud-sdk-aos/setup.py index ed50edf1ba..fabd0bcc3a 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-apig/requirements.txt b/huaweicloud-sdk-apig/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-apig/requirements.txt +++ b/huaweicloud-sdk-apig/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-apig/setup.py b/huaweicloud-sdk-apig/setup.py index 6f2f155605..423d32577f 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-apm/requirements.txt b/huaweicloud-sdk-apm/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-apm/requirements.txt +++ b/huaweicloud-sdk-apm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-apm/setup.py b/huaweicloud-sdk-apm/setup.py index 4698194f84..1bb8720d0f 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-as/requirements.txt b/huaweicloud-sdk-as/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-as/requirements.txt +++ b/huaweicloud-sdk-as/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-as/setup.py b/huaweicloud-sdk-as/setup.py index 737ba89376..b57179302d 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-asm/requirements.txt b/huaweicloud-sdk-asm/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-asm/requirements.txt +++ b/huaweicloud-sdk-asm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-asm/setup.py b/huaweicloud-sdk-asm/setup.py index b339afeccf..d28bbe72bb 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-bcs/requirements.txt b/huaweicloud-sdk-bcs/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-bcs/requirements.txt +++ b/huaweicloud-sdk-bcs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-bcs/setup.py b/huaweicloud-sdk-bcs/setup.py index 676a4fcfea..fa66de36b6 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-bms/requirements.txt b/huaweicloud-sdk-bms/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-bms/requirements.txt +++ b/huaweicloud-sdk-bms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-bms/setup.py b/huaweicloud-sdk-bms/setup.py index 896764ea35..4b9177921b 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/bss_async_client.py b/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/bss_async_client.py index 9f68a80222..31cd7da1cd 100644 --- a/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/bss_async_client.py +++ b/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/bss_async_client.py @@ -3199,71 +3199,6 @@ def _list_on_demand_resource_ratings_http_info(self, request): return http_info - def list_order_discounts_async(self, request): - """查询订单可用折扣 - - 客户在伙伴销售平台支付待支付订单时,查询可使用的折扣信息。 - - Please refer to HUAWEI cloud API Explorer for details. - - - :param request: Request instance for ListOrderDiscounts - :type request: :class:`huaweicloudsdkbss.v2.ListOrderDiscountsRequest` - :rtype: :class:`huaweicloudsdkbss.v2.ListOrderDiscountsResponse` - """ - http_info = self._list_order_discounts_http_info(request) - return self._call_api(**http_info) - - def list_order_discounts_async_invoker(self, request): - http_info = self._list_order_discounts_http_info(request) - return AsyncInvoker(self, http_info) - - def _list_order_discounts_http_info(self, request): - http_info = { - "method": "GET", - "resource_path": "/v2/orders/customer-orders/order-discounts", - "request_type": request.__class__.__name__, - "response_type": "ListOrderDiscountsResponse" - } - - 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 'order_id' in local_var_params: - query_params.append(('order_id', local_var_params['order_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 list_partner_adjust_records_async(self, request): """查询调账记录 @@ -5275,80 +5210,6 @@ def _update_indirect_partner_account_http_info(self, request): return http_info - def update_period_to_on_demand_async(self, request): - """设置或取消包年/包月资源到期转按需 - - 客户可以设置包年/包月资源到期后转为按需资源计费。包年/包月计费模式到期后,按需的计费模式即生效。 - - 客户在费用中心设置包年包月资源到期转按需请参见[这里](https://support.huaweicloud.com/usermanual-billing/renewals_topic_50000003.html)。 - - >![](public_sys-resources/icon-note.gif) **说明:** - >- 客户需要成功支付包年/包月资源订单后,才能设置资源的到期转按需。 - >- 目前解决方案组合产品、按需套餐包不支持到期转按需。 - >- 在调用本接口前,您可以调用“[查询客户包年/包月资源列表](https://support.huaweicloud.com/api-oce/api_order_00021.html)”接口获取资源ID、资源过期时间以及资源过期后的扣费策略等信息。 - >- 设置包年/包月资源到期转按需后,包年/包月资源到期后将自动变成按需计费。 - >- 取消包年/包月资源到期转按需的前提是已经调用“[设置或取消包年/包月资源到期转按需](https://support.huaweicloud.com/api-oce/api_order_00024.html)”接口设置包年/包月资源的到期转按需或在调用“[续订包年/包月资源](https://support.huaweicloud.com/api-oce/api_order_00018.html)”接口时设置到期策略为到期转按需。 - - Please refer to HUAWEI cloud API Explorer for details. - - - :param request: Request instance for UpdatePeriodToOnDemand - :type request: :class:`huaweicloudsdkbss.v2.UpdatePeriodToOnDemandRequest` - :rtype: :class:`huaweicloudsdkbss.v2.UpdatePeriodToOnDemandResponse` - """ - http_info = self._update_period_to_on_demand_http_info(request) - return self._call_api(**http_info) - - def update_period_to_on_demand_async_invoker(self, request): - http_info = self._update_period_to_on_demand_http_info(request) - return AsyncInvoker(self, http_info) - - def _update_period_to_on_demand_http_info(self, request): - http_info = { - "method": "POST", - "resource_path": "/v2/orders/subscriptions/resources/to-on-demand", - "request_type": request.__class__.__name__, - "response_type": "UpdatePeriodToOnDemandResponse" - } - - local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} - - cname = None - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = {} - - body = None - if 'body' in local_var_params: - body = local_var_params['body'] - if isinstance(request, SdkStreamRequest): - body = request.get_file_stream() - - response_headers = [] - - header_params['Content-Type'] = http_utils.select_header_content_type( - ['application/json']) - - auth_settings = [] - - http_info["cname"] = cname - http_info["collection_formats"] = collection_formats - http_info["path_params"] = path_params - http_info["query_params"] = query_params - http_info["header_params"] = header_params - http_info["post_params"] = form_params - http_info["body"] = body - http_info["response_headers"] = response_headers - - return http_info - def update_sub_enterprise_amount_async(self, request): """企业主账号向企业子账号拨款 @@ -5866,6 +5727,71 @@ def _list_order_coupons_by_order_id_http_info(self, request): return http_info + def list_order_discounts_async(self, request): + """查询订单可用折扣 + + 客户在伙伴销售平台支付待支付订单时,查询可使用的折扣信息。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListOrderDiscounts + :type request: :class:`huaweicloudsdkbss.v2.ListOrderDiscountsRequest` + :rtype: :class:`huaweicloudsdkbss.v2.ListOrderDiscountsResponse` + """ + http_info = self._list_order_discounts_http_info(request) + return self._call_api(**http_info) + + def list_order_discounts_async_invoker(self, request): + http_info = self._list_order_discounts_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_order_discounts_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v2/orders/customer-orders/order-discounts", + "request_type": request.__class__.__name__, + "response_type": "ListOrderDiscountsResponse" + } + + 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 'order_id' in local_var_params: + query_params.append(('order_id', local_var_params['order_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 list_pay_per_use_customer_resources_async(self, request): """查询客户包年/包月资源列表 @@ -6227,6 +6153,80 @@ def _show_refund_order_details_http_info(self, request): return http_info + def update_period_to_on_demand_async(self, request): + """设置或取消包年/包月资源到期转按需 + + 客户可以设置包年/包月资源到期后转为按需资源计费。包年/包月计费模式到期后,按需的计费模式即生效。 + + 客户在费用中心设置包年包月资源到期转按需请参见[这里](https://support.huaweicloud.com/usermanual-billing/renewals_topic_50000003.html)。 + + >![](public_sys-resources/icon-note.gif) **说明:** + >- 客户需要成功支付包年/包月资源订单后,才能设置资源的到期转按需。 + >- 目前解决方案组合产品、按需套餐包不支持到期转按需。 + >- 在调用本接口前,您可以调用“[查询客户包年/包月资源列表](https://support.huaweicloud.com/api-oce/api_order_00021.html)”接口获取资源ID、资源过期时间以及资源过期后的扣费策略等信息。 + >- 设置包年/包月资源到期转按需后,包年/包月资源到期后将自动变成按需计费。 + >- 取消包年/包月资源到期转按需的前提是已经调用“[设置或取消包年/包月资源到期转按需](https://support.huaweicloud.com/api-oce/api_order_00024.html)”接口设置包年/包月资源的到期转按需或在调用“[续订包年/包月资源](https://support.huaweicloud.com/api-oce/api_order_00018.html)”接口时设置到期策略为到期转按需。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for UpdatePeriodToOnDemand + :type request: :class:`huaweicloudsdkbss.v2.UpdatePeriodToOnDemandRequest` + :rtype: :class:`huaweicloudsdkbss.v2.UpdatePeriodToOnDemandResponse` + """ + http_info = self._update_period_to_on_demand_http_info(request) + return self._call_api(**http_info) + + def update_period_to_on_demand_async_invoker(self, request): + http_info = self._update_period_to_on_demand_http_info(request) + return AsyncInvoker(self, http_info) + + def _update_period_to_on_demand_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v2/orders/subscriptions/resources/to-on-demand", + "request_type": request.__class__.__name__, + "response_type": "UpdatePeriodToOnDemandResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def _call_api(self, **kwargs): try: kwargs["async_request"] = True diff --git a/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/bss_client.py b/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/bss_client.py index 299c5a3f54..60c694f878 100644 --- a/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/bss_client.py +++ b/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/bss_client.py @@ -3199,71 +3199,6 @@ def _list_on_demand_resource_ratings_http_info(cls, request): return http_info - def list_order_discounts(self, request): - """查询订单可用折扣 - - 客户在伙伴销售平台支付待支付订单时,查询可使用的折扣信息。 - - Please refer to HUAWEI cloud API Explorer for details. - - :param request: Request instance for ListOrderDiscounts - :type request: :class:`huaweicloudsdkbss.v2.ListOrderDiscountsRequest` - :rtype: :class:`huaweicloudsdkbss.v2.ListOrderDiscountsResponse` - """ - http_info = self._list_order_discounts_http_info(request) - return self._call_api(**http_info) - - def list_order_discounts_invoker(self, request): - http_info = self._list_order_discounts_http_info(request) - return SyncInvoker(self, http_info) - - @classmethod - def _list_order_discounts_http_info(cls, request): - http_info = { - "method": "GET", - "resource_path": "/v2/orders/customer-orders/order-discounts", - "request_type": request.__class__.__name__, - "response_type": "ListOrderDiscountsResponse" - } - - 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 'order_id' in local_var_params: - query_params.append(('order_id', local_var_params['order_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 list_partner_adjust_records(self, request): """查询调账记录 @@ -5275,80 +5210,6 @@ def _update_indirect_partner_account_http_info(cls, request): return http_info - def update_period_to_on_demand(self, request): - """设置或取消包年/包月资源到期转按需 - - 客户可以设置包年/包月资源到期后转为按需资源计费。包年/包月计费模式到期后,按需的计费模式即生效。 - - 客户在费用中心设置包年包月资源到期转按需请参见[这里](https://support.huaweicloud.com/usermanual-billing/renewals_topic_50000003.html)。 - - >![](public_sys-resources/icon-note.gif) **说明:** - >- 客户需要成功支付包年/包月资源订单后,才能设置资源的到期转按需。 - >- 目前解决方案组合产品、按需套餐包不支持到期转按需。 - >- 在调用本接口前,您可以调用“[查询客户包年/包月资源列表](https://support.huaweicloud.com/api-oce/api_order_00021.html)”接口获取资源ID、资源过期时间以及资源过期后的扣费策略等信息。 - >- 设置包年/包月资源到期转按需后,包年/包月资源到期后将自动变成按需计费。 - >- 取消包年/包月资源到期转按需的前提是已经调用“[设置或取消包年/包月资源到期转按需](https://support.huaweicloud.com/api-oce/api_order_00024.html)”接口设置包年/包月资源的到期转按需或在调用“[续订包年/包月资源](https://support.huaweicloud.com/api-oce/api_order_00018.html)”接口时设置到期策略为到期转按需。 - - Please refer to HUAWEI cloud API Explorer for details. - - :param request: Request instance for UpdatePeriodToOnDemand - :type request: :class:`huaweicloudsdkbss.v2.UpdatePeriodToOnDemandRequest` - :rtype: :class:`huaweicloudsdkbss.v2.UpdatePeriodToOnDemandResponse` - """ - http_info = self._update_period_to_on_demand_http_info(request) - return self._call_api(**http_info) - - def update_period_to_on_demand_invoker(self, request): - http_info = self._update_period_to_on_demand_http_info(request) - return SyncInvoker(self, http_info) - - @classmethod - def _update_period_to_on_demand_http_info(cls, request): - http_info = { - "method": "POST", - "resource_path": "/v2/orders/subscriptions/resources/to-on-demand", - "request_type": request.__class__.__name__, - "response_type": "UpdatePeriodToOnDemandResponse" - } - - local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} - - cname = None - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = {} - - body = None - if 'body' in local_var_params: - body = local_var_params['body'] - if isinstance(request, SdkStreamRequest): - body = request.get_file_stream() - - response_headers = [] - - header_params['Content-Type'] = http_utils.select_header_content_type( - ['application/json']) - - auth_settings = [] - - http_info["cname"] = cname - http_info["collection_formats"] = collection_formats - http_info["path_params"] = path_params - http_info["query_params"] = query_params - http_info["header_params"] = header_params - http_info["post_params"] = form_params - http_info["body"] = body - http_info["response_headers"] = response_headers - - return http_info - def update_sub_enterprise_amount(self, request): """企业主账号向企业子账号拨款 @@ -5866,6 +5727,71 @@ def _list_order_coupons_by_order_id_http_info(cls, request): return http_info + def list_order_discounts(self, request): + """查询订单可用折扣 + + 客户在伙伴销售平台支付待支付订单时,查询可使用的折扣信息。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListOrderDiscounts + :type request: :class:`huaweicloudsdkbss.v2.ListOrderDiscountsRequest` + :rtype: :class:`huaweicloudsdkbss.v2.ListOrderDiscountsResponse` + """ + http_info = self._list_order_discounts_http_info(request) + return self._call_api(**http_info) + + def list_order_discounts_invoker(self, request): + http_info = self._list_order_discounts_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_order_discounts_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v2/orders/customer-orders/order-discounts", + "request_type": request.__class__.__name__, + "response_type": "ListOrderDiscountsResponse" + } + + 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 'order_id' in local_var_params: + query_params.append(('order_id', local_var_params['order_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 list_pay_per_use_customer_resources(self, request): """查询客户包年/包月资源列表 @@ -6227,6 +6153,80 @@ def _show_refund_order_details_http_info(cls, request): return http_info + def update_period_to_on_demand(self, request): + """设置或取消包年/包月资源到期转按需 + + 客户可以设置包年/包月资源到期后转为按需资源计费。包年/包月计费模式到期后,按需的计费模式即生效。 + + 客户在费用中心设置包年包月资源到期转按需请参见[这里](https://support.huaweicloud.com/usermanual-billing/renewals_topic_50000003.html)。 + + >![](public_sys-resources/icon-note.gif) **说明:** + >- 客户需要成功支付包年/包月资源订单后,才能设置资源的到期转按需。 + >- 目前解决方案组合产品、按需套餐包不支持到期转按需。 + >- 在调用本接口前,您可以调用“[查询客户包年/包月资源列表](https://support.huaweicloud.com/api-oce/api_order_00021.html)”接口获取资源ID、资源过期时间以及资源过期后的扣费策略等信息。 + >- 设置包年/包月资源到期转按需后,包年/包月资源到期后将自动变成按需计费。 + >- 取消包年/包月资源到期转按需的前提是已经调用“[设置或取消包年/包月资源到期转按需](https://support.huaweicloud.com/api-oce/api_order_00024.html)”接口设置包年/包月资源的到期转按需或在调用“[续订包年/包月资源](https://support.huaweicloud.com/api-oce/api_order_00018.html)”接口时设置到期策略为到期转按需。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for UpdatePeriodToOnDemand + :type request: :class:`huaweicloudsdkbss.v2.UpdatePeriodToOnDemandRequest` + :rtype: :class:`huaweicloudsdkbss.v2.UpdatePeriodToOnDemandResponse` + """ + http_info = self._update_period_to_on_demand_http_info(request) + return self._call_api(**http_info) + + def update_period_to_on_demand_invoker(self, request): + http_info = self._update_period_to_on_demand_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _update_period_to_on_demand_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v2/orders/subscriptions/resources/to-on-demand", + "request_type": request.__class__.__name__, + "response_type": "UpdatePeriodToOnDemandResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def _call_api(self, **kwargs): try: return self.do_http_request(**kwargs) diff --git a/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/demand_discount_rating_result.py b/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/demand_discount_rating_result.py index afcfde1774..e9dea85189 100644 --- a/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/demand_discount_rating_result.py +++ b/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/demand_discount_rating_result.py @@ -19,7 +19,7 @@ class DemandDiscountRatingResult: openapi_types = { 'discount_id': 'str', 'discount_type': 'int', - 'amount': 'float', + 'amount': 'decimal.Decimal', 'measure_id': 'int', 'discount_name': 'str' } @@ -42,7 +42,7 @@ def __init__(self, discount_id=None, discount_type=None, amount=None, measure_id :param discount_type: 折扣优惠类型。 合同商务折扣:605:华为云BE场景下的合同商务折扣606:分销商BE场景下的合同商务折扣 伙伴授予折扣:607:合作伙伴授予折扣-折扣率 :type discount_type: int :param amount: 折扣的金额。 - :type amount: float + :type amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` :param measure_id: 度量单位标识。 1:元 :type measure_id: int :param discount_name: 折扣名称。 @@ -120,7 +120,7 @@ def amount(self): 折扣的金额。 :return: The amount of this DemandDiscountRatingResult. - :rtype: float + :rtype: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ return self._amount @@ -131,7 +131,7 @@ def amount(self, amount): 折扣的金额。 :param amount: The amount of this DemandDiscountRatingResult. - :type amount: float + :type amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ self._amount = amount diff --git a/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/demand_product_info.py b/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/demand_product_info.py index 7f962060d8..e122dd7d19 100644 --- a/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/demand_product_info.py +++ b/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/demand_product_info.py @@ -26,7 +26,7 @@ class DemandProductInfo: 'resource_size': 'int', 'size_measure_id': 'int', 'usage_factor': 'str', - 'usage_value': 'float', + 'usage_value': 'decimal.Decimal', 'usage_measure_id': 'int', 'subscription_num': 'int' } @@ -70,7 +70,7 @@ def __init__(self, id=None, cloud_service_type=None, resource_type=None, resourc :param usage_factor: 使用量因子编码,大小写不敏感,取值和话单中的使用量因子一致,云服务和使用量因子对应关系举例如下: 云服务器:Duration云硬盘:Duration弹性IP:Duration带宽:Duration或upflow市场镜像:Duration 您可以调用查询使用量类型列表接口获取响应参数表3中参数code的取值,即每种云服务对应的计费因子。 :type usage_factor: str :param usage_value: 使用量值。 例如按小时询价,使用量值为1,使用量单位为小时。 - :type usage_value: float + :type usage_value: :class:`huaweicloudsdkbss.v2.decimal.Decimal` :param usage_measure_id: 使用量度量单位, 例如按小时询价,使用量值为1,使用量单位为小时。 :type usage_measure_id: int :param subscription_num: 订购数量。 @@ -314,7 +314,7 @@ def usage_value(self): 使用量值。 例如按小时询价,使用量值为1,使用量单位为小时。 :return: The usage_value of this DemandProductInfo. - :rtype: float + :rtype: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ return self._usage_value @@ -325,7 +325,7 @@ def usage_value(self, usage_value): 使用量值。 例如按小时询价,使用量值为1,使用量单位为小时。 :param usage_value: The usage_value of this DemandProductInfo. - :type usage_value: float + :type usage_value: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ self._usage_value = usage_value diff --git a/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/monthly_bill_record.py b/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/monthly_bill_record.py index 3f2e8b651b..0604495fbb 100644 --- a/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/monthly_bill_record.py +++ b/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/monthly_bill_record.py @@ -33,18 +33,18 @@ class MonthlyBillRecord: 'trade_id': 'str', 'bill_type': 'int', 'status': 'int', - 'official_amount': 'float', - 'official_discount_amount': 'float', - 'erase_amount': 'float', - 'consume_amount': 'float', - 'cash_amount': 'float', - 'credit_amount': 'float', - 'coupon_amount': 'float', - 'flexipurchase_coupon_amount': 'float', - 'stored_value_card_amount': 'float', - 'bonus_amount': 'float', - 'debt_amount': 'float', - 'writeoff_amount': 'float', + 'official_amount': 'decimal.Decimal', + 'official_discount_amount': 'decimal.Decimal', + 'erase_amount': 'decimal.Decimal', + 'consume_amount': 'decimal.Decimal', + 'cash_amount': 'decimal.Decimal', + 'credit_amount': 'decimal.Decimal', + 'coupon_amount': 'decimal.Decimal', + 'flexipurchase_coupon_amount': 'decimal.Decimal', + 'stored_value_card_amount': 'decimal.Decimal', + 'bonus_amount': 'decimal.Decimal', + 'debt_amount': 'decimal.Decimal', + 'writeoff_amount': 'decimal.Decimal', 'region_name': 'str' } @@ -118,29 +118,29 @@ def __init__(self, bill_cycle=None, customer_id=None, service_type_code=None, re :param status: 支付状态。 1:已支付2:未结清3:未结算 :type status: int :param official_amount: 官网价。单位:元。 说明: official_amount = official_discount_amount + erase_amount + consume_amount - :type official_amount: float + :type official_amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` :param official_discount_amount: 折扣金额。单位:元。 - :type official_discount_amount: float + :type official_discount_amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` :param erase_amount: 抹零金额。单位:元。 - :type erase_amount: float + :type erase_amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` :param consume_amount: 应付金额,包括现金券和储值卡和代金券金额。单位:元。 说明: consume_amount的值等于cash_amount,credit_amount,coupon_amount,flexipurchase_coupon_amount,stored_value_card_amount,bonus_amount,debt_amount,writeoff_amount的总和。 - :type consume_amount: float + :type consume_amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` :param cash_amount: 现金支付金额。单位:元. - :type cash_amount: float + :type cash_amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` :param credit_amount: 信用额度支付金额。单位:元。 - :type credit_amount: float + :type credit_amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` :param coupon_amount: 代金券支付金额。单位:元。 - :type coupon_amount: float + :type coupon_amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` :param flexipurchase_coupon_amount: 现金券支付金额。单位:元。 - :type flexipurchase_coupon_amount: float + :type flexipurchase_coupon_amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` :param stored_value_card_amount: 储值卡支付金额。单位:元。 - :type stored_value_card_amount: float + :type stored_value_card_amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` :param bonus_amount: 奖励金支付金额(奖励金已经下线,目前用于现网客户未使用完的奖励金)。单位:元。 - :type bonus_amount: float + :type bonus_amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` :param debt_amount: 欠费金额。单位:元。 说明: 对于月结客户,欠费金额即页面上的月度结算金额。 - :type debt_amount: float + :type debt_amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` :param writeoff_amount: 欠费核销金额。单位:元。 - :type writeoff_amount: float + :type writeoff_amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` :param region_name: 云服务区名称,例如:“华北-北京一”。具体请参见地区和终端节点对应云服务的“区域名称”列的值。 :type region_name: str """ @@ -596,7 +596,7 @@ def official_amount(self): 官网价。单位:元。 说明: official_amount = official_discount_amount + erase_amount + consume_amount :return: The official_amount of this MonthlyBillRecord. - :rtype: float + :rtype: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ return self._official_amount @@ -607,7 +607,7 @@ def official_amount(self, official_amount): 官网价。单位:元。 说明: official_amount = official_discount_amount + erase_amount + consume_amount :param official_amount: The official_amount of this MonthlyBillRecord. - :type official_amount: float + :type official_amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ self._official_amount = official_amount @@ -618,7 +618,7 @@ def official_discount_amount(self): 折扣金额。单位:元。 :return: The official_discount_amount of this MonthlyBillRecord. - :rtype: float + :rtype: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ return self._official_discount_amount @@ -629,7 +629,7 @@ def official_discount_amount(self, official_discount_amount): 折扣金额。单位:元。 :param official_discount_amount: The official_discount_amount of this MonthlyBillRecord. - :type official_discount_amount: float + :type official_discount_amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ self._official_discount_amount = official_discount_amount @@ -640,7 +640,7 @@ def erase_amount(self): 抹零金额。单位:元。 :return: The erase_amount of this MonthlyBillRecord. - :rtype: float + :rtype: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ return self._erase_amount @@ -651,7 +651,7 @@ def erase_amount(self, erase_amount): 抹零金额。单位:元。 :param erase_amount: The erase_amount of this MonthlyBillRecord. - :type erase_amount: float + :type erase_amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ self._erase_amount = erase_amount @@ -662,7 +662,7 @@ def consume_amount(self): 应付金额,包括现金券和储值卡和代金券金额。单位:元。 说明: consume_amount的值等于cash_amount,credit_amount,coupon_amount,flexipurchase_coupon_amount,stored_value_card_amount,bonus_amount,debt_amount,writeoff_amount的总和。 :return: The consume_amount of this MonthlyBillRecord. - :rtype: float + :rtype: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ return self._consume_amount @@ -673,7 +673,7 @@ def consume_amount(self, consume_amount): 应付金额,包括现金券和储值卡和代金券金额。单位:元。 说明: consume_amount的值等于cash_amount,credit_amount,coupon_amount,flexipurchase_coupon_amount,stored_value_card_amount,bonus_amount,debt_amount,writeoff_amount的总和。 :param consume_amount: The consume_amount of this MonthlyBillRecord. - :type consume_amount: float + :type consume_amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ self._consume_amount = consume_amount @@ -684,7 +684,7 @@ def cash_amount(self): 现金支付金额。单位:元. :return: The cash_amount of this MonthlyBillRecord. - :rtype: float + :rtype: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ return self._cash_amount @@ -695,7 +695,7 @@ def cash_amount(self, cash_amount): 现金支付金额。单位:元. :param cash_amount: The cash_amount of this MonthlyBillRecord. - :type cash_amount: float + :type cash_amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ self._cash_amount = cash_amount @@ -706,7 +706,7 @@ def credit_amount(self): 信用额度支付金额。单位:元。 :return: The credit_amount of this MonthlyBillRecord. - :rtype: float + :rtype: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ return self._credit_amount @@ -717,7 +717,7 @@ def credit_amount(self, credit_amount): 信用额度支付金额。单位:元。 :param credit_amount: The credit_amount of this MonthlyBillRecord. - :type credit_amount: float + :type credit_amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ self._credit_amount = credit_amount @@ -728,7 +728,7 @@ def coupon_amount(self): 代金券支付金额。单位:元。 :return: The coupon_amount of this MonthlyBillRecord. - :rtype: float + :rtype: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ return self._coupon_amount @@ -739,7 +739,7 @@ def coupon_amount(self, coupon_amount): 代金券支付金额。单位:元。 :param coupon_amount: The coupon_amount of this MonthlyBillRecord. - :type coupon_amount: float + :type coupon_amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ self._coupon_amount = coupon_amount @@ -750,7 +750,7 @@ def flexipurchase_coupon_amount(self): 现金券支付金额。单位:元。 :return: The flexipurchase_coupon_amount of this MonthlyBillRecord. - :rtype: float + :rtype: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ return self._flexipurchase_coupon_amount @@ -761,7 +761,7 @@ def flexipurchase_coupon_amount(self, flexipurchase_coupon_amount): 现金券支付金额。单位:元。 :param flexipurchase_coupon_amount: The flexipurchase_coupon_amount of this MonthlyBillRecord. - :type flexipurchase_coupon_amount: float + :type flexipurchase_coupon_amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ self._flexipurchase_coupon_amount = flexipurchase_coupon_amount @@ -772,7 +772,7 @@ def stored_value_card_amount(self): 储值卡支付金额。单位:元。 :return: The stored_value_card_amount of this MonthlyBillRecord. - :rtype: float + :rtype: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ return self._stored_value_card_amount @@ -783,7 +783,7 @@ def stored_value_card_amount(self, stored_value_card_amount): 储值卡支付金额。单位:元。 :param stored_value_card_amount: The stored_value_card_amount of this MonthlyBillRecord. - :type stored_value_card_amount: float + :type stored_value_card_amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ self._stored_value_card_amount = stored_value_card_amount @@ -794,7 +794,7 @@ def bonus_amount(self): 奖励金支付金额(奖励金已经下线,目前用于现网客户未使用完的奖励金)。单位:元。 :return: The bonus_amount of this MonthlyBillRecord. - :rtype: float + :rtype: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ return self._bonus_amount @@ -805,7 +805,7 @@ def bonus_amount(self, bonus_amount): 奖励金支付金额(奖励金已经下线,目前用于现网客户未使用完的奖励金)。单位:元。 :param bonus_amount: The bonus_amount of this MonthlyBillRecord. - :type bonus_amount: float + :type bonus_amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ self._bonus_amount = bonus_amount @@ -816,7 +816,7 @@ def debt_amount(self): 欠费金额。单位:元。 说明: 对于月结客户,欠费金额即页面上的月度结算金额。 :return: The debt_amount of this MonthlyBillRecord. - :rtype: float + :rtype: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ return self._debt_amount @@ -827,7 +827,7 @@ def debt_amount(self, debt_amount): 欠费金额。单位:元。 说明: 对于月结客户,欠费金额即页面上的月度结算金额。 :param debt_amount: The debt_amount of this MonthlyBillRecord. - :type debt_amount: float + :type debt_amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ self._debt_amount = debt_amount @@ -838,7 +838,7 @@ def writeoff_amount(self): 欠费核销金额。单位:元。 :return: The writeoff_amount of this MonthlyBillRecord. - :rtype: float + :rtype: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ return self._writeoff_amount @@ -849,7 +849,7 @@ def writeoff_amount(self, writeoff_amount): 欠费核销金额。单位:元。 :param writeoff_amount: The writeoff_amount of this MonthlyBillRecord. - :type writeoff_amount: float + :type writeoff_amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ self._writeoff_amount = writeoff_amount diff --git a/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/monthly_bill_res.py b/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/monthly_bill_res.py index 090163a9bc..014e030936 100644 --- a/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/monthly_bill_res.py +++ b/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/monthly_bill_res.py @@ -34,17 +34,17 @@ class MonthlyBillRes: 'enterprise_project_id': 'str', 'enterprise_project_name': 'str', 'charge_mode': 'int', - 'consume_amount': 'float', - 'cash_amount': 'float', - 'credit_amount': 'float', - 'coupon_amount': 'float', - 'flexipurchase_coupon_amount': 'float', - 'stored_card_amount': 'float', - 'bonus_amount': 'float', - 'debt_amount': 'float', - 'adjustment_amount': 'float', - 'official_amount': 'float', - 'discount_amount': 'float', + 'consume_amount': 'decimal.Decimal', + 'cash_amount': 'decimal.Decimal', + 'credit_amount': 'decimal.Decimal', + 'coupon_amount': 'decimal.Decimal', + 'flexipurchase_coupon_amount': 'decimal.Decimal', + 'stored_card_amount': 'decimal.Decimal', + 'bonus_amount': 'decimal.Decimal', + 'debt_amount': 'decimal.Decimal', + 'adjustment_amount': 'decimal.Decimal', + 'official_amount': 'decimal.Decimal', + 'discount_amount': 'decimal.Decimal', 'measure_id': 'int', 'period_type': 'int', 'root_resource_id': 'str', @@ -148,27 +148,27 @@ def __init__(self, cycle=None, bill_date=None, bill_type=None, customer_id=None, :param charge_mode: 计费模式。 1 : 包年/包月3:按需10:预留实例11:节省计划 :type charge_mode: int :param consume_amount: 客户购买云服务类型的消费金额,包含代金券、现金券,精确到小数点后2位。 说明: consume_amount的值等于cash_amount,credit_amount,coupon_amount,flexipurchase_coupon_amount,stored_card_amount,bonus_amount,debt_amount,adjustment_amount的总和。 - :type consume_amount: float + :type consume_amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` :param cash_amount: 现金支付金额。 - :type cash_amount: float + :type cash_amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` :param credit_amount: 信用额度支付金额。 - :type credit_amount: float + :type credit_amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` :param coupon_amount: 代金券支付金额。 - :type coupon_amount: float + :type coupon_amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` :param flexipurchase_coupon_amount: 现金券支付金额。 - :type flexipurchase_coupon_amount: float + :type flexipurchase_coupon_amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` :param stored_card_amount: 储值卡支付金额。 - :type stored_card_amount: float + :type stored_card_amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` :param bonus_amount: 奖励金支付金额(用于现网客户未使用完的奖励金)。 - :type bonus_amount: float + :type bonus_amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` :param debt_amount: 欠费金额。 - :type debt_amount: float + :type debt_amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` :param adjustment_amount: 欠费核销金额。 - :type adjustment_amount: float + :type adjustment_amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` :param official_amount: 官网价。 - :type official_amount: float + :type official_amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` :param discount_amount: 对应官网价折扣金额。 - :type discount_amount: float + :type discount_amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` :param measure_id: 金额单位。 1:元 :type measure_id: int :param period_type: 周期类型: 19:年20:月24:天25:小时5:一次性 @@ -716,7 +716,7 @@ def consume_amount(self): 客户购买云服务类型的消费金额,包含代金券、现金券,精确到小数点后2位。 说明: consume_amount的值等于cash_amount,credit_amount,coupon_amount,flexipurchase_coupon_amount,stored_card_amount,bonus_amount,debt_amount,adjustment_amount的总和。 :return: The consume_amount of this MonthlyBillRes. - :rtype: float + :rtype: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ return self._consume_amount @@ -727,7 +727,7 @@ def consume_amount(self, consume_amount): 客户购买云服务类型的消费金额,包含代金券、现金券,精确到小数点后2位。 说明: consume_amount的值等于cash_amount,credit_amount,coupon_amount,flexipurchase_coupon_amount,stored_card_amount,bonus_amount,debt_amount,adjustment_amount的总和。 :param consume_amount: The consume_amount of this MonthlyBillRes. - :type consume_amount: float + :type consume_amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ self._consume_amount = consume_amount @@ -738,7 +738,7 @@ def cash_amount(self): 现金支付金额。 :return: The cash_amount of this MonthlyBillRes. - :rtype: float + :rtype: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ return self._cash_amount @@ -749,7 +749,7 @@ def cash_amount(self, cash_amount): 现金支付金额。 :param cash_amount: The cash_amount of this MonthlyBillRes. - :type cash_amount: float + :type cash_amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ self._cash_amount = cash_amount @@ -760,7 +760,7 @@ def credit_amount(self): 信用额度支付金额。 :return: The credit_amount of this MonthlyBillRes. - :rtype: float + :rtype: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ return self._credit_amount @@ -771,7 +771,7 @@ def credit_amount(self, credit_amount): 信用额度支付金额。 :param credit_amount: The credit_amount of this MonthlyBillRes. - :type credit_amount: float + :type credit_amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ self._credit_amount = credit_amount @@ -782,7 +782,7 @@ def coupon_amount(self): 代金券支付金额。 :return: The coupon_amount of this MonthlyBillRes. - :rtype: float + :rtype: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ return self._coupon_amount @@ -793,7 +793,7 @@ def coupon_amount(self, coupon_amount): 代金券支付金额。 :param coupon_amount: The coupon_amount of this MonthlyBillRes. - :type coupon_amount: float + :type coupon_amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ self._coupon_amount = coupon_amount @@ -804,7 +804,7 @@ def flexipurchase_coupon_amount(self): 现金券支付金额。 :return: The flexipurchase_coupon_amount of this MonthlyBillRes. - :rtype: float + :rtype: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ return self._flexipurchase_coupon_amount @@ -815,7 +815,7 @@ def flexipurchase_coupon_amount(self, flexipurchase_coupon_amount): 现金券支付金额。 :param flexipurchase_coupon_amount: The flexipurchase_coupon_amount of this MonthlyBillRes. - :type flexipurchase_coupon_amount: float + :type flexipurchase_coupon_amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ self._flexipurchase_coupon_amount = flexipurchase_coupon_amount @@ -826,7 +826,7 @@ def stored_card_amount(self): 储值卡支付金额。 :return: The stored_card_amount of this MonthlyBillRes. - :rtype: float + :rtype: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ return self._stored_card_amount @@ -837,7 +837,7 @@ def stored_card_amount(self, stored_card_amount): 储值卡支付金额。 :param stored_card_amount: The stored_card_amount of this MonthlyBillRes. - :type stored_card_amount: float + :type stored_card_amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ self._stored_card_amount = stored_card_amount @@ -848,7 +848,7 @@ def bonus_amount(self): 奖励金支付金额(用于现网客户未使用完的奖励金)。 :return: The bonus_amount of this MonthlyBillRes. - :rtype: float + :rtype: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ return self._bonus_amount @@ -859,7 +859,7 @@ def bonus_amount(self, bonus_amount): 奖励金支付金额(用于现网客户未使用完的奖励金)。 :param bonus_amount: The bonus_amount of this MonthlyBillRes. - :type bonus_amount: float + :type bonus_amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ self._bonus_amount = bonus_amount @@ -870,7 +870,7 @@ def debt_amount(self): 欠费金额。 :return: The debt_amount of this MonthlyBillRes. - :rtype: float + :rtype: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ return self._debt_amount @@ -881,7 +881,7 @@ def debt_amount(self, debt_amount): 欠费金额。 :param debt_amount: The debt_amount of this MonthlyBillRes. - :type debt_amount: float + :type debt_amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ self._debt_amount = debt_amount @@ -892,7 +892,7 @@ def adjustment_amount(self): 欠费核销金额。 :return: The adjustment_amount of this MonthlyBillRes. - :rtype: float + :rtype: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ return self._adjustment_amount @@ -903,7 +903,7 @@ def adjustment_amount(self, adjustment_amount): 欠费核销金额。 :param adjustment_amount: The adjustment_amount of this MonthlyBillRes. - :type adjustment_amount: float + :type adjustment_amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ self._adjustment_amount = adjustment_amount @@ -914,7 +914,7 @@ def official_amount(self): 官网价。 :return: The official_amount of this MonthlyBillRes. - :rtype: float + :rtype: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ return self._official_amount @@ -925,7 +925,7 @@ def official_amount(self, official_amount): 官网价。 :param official_amount: The official_amount of this MonthlyBillRes. - :type official_amount: float + :type official_amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ self._official_amount = official_amount @@ -936,7 +936,7 @@ def discount_amount(self): 对应官网价折扣金额。 :return: The discount_amount of this MonthlyBillRes. - :rtype: float + :rtype: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ return self._discount_amount @@ -947,7 +947,7 @@ def discount_amount(self, discount_amount): 对应官网价折扣金额。 :param discount_amount: The discount_amount of this MonthlyBillRes. - :type discount_amount: float + :type discount_amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ self._discount_amount = discount_amount diff --git a/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/official_website_rating_result.py b/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/official_website_rating_result.py index c65951e91f..3dc5bfa1fd 100644 --- a/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/official_website_rating_result.py +++ b/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/official_website_rating_result.py @@ -17,7 +17,7 @@ class OfficialWebsiteRatingResult: sensitive_list = [] openapi_types = { - 'official_website_amount': 'float', + 'official_website_amount': 'decimal.Decimal', 'installment_official_website_amount': 'str', 'installment_period_type': 'int', 'measure_id': 'int', @@ -38,7 +38,7 @@ def __init__(self, official_website_amount=None, installment_official_website_am The model defined in huaweicloud sdk :param official_website_amount: 包年/包月产品的官网价。 - :type official_website_amount: float + :type official_website_amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` :param installment_official_website_amount: 分期金额的官网价。 说明: 暂只支持IES产品。 :type installment_official_website_amount: str :param installment_period_type: 分期付款的周期类型。 2:月 说明: 暂只支持IES产品。 @@ -76,7 +76,7 @@ def official_website_amount(self): 包年/包月产品的官网价。 :return: The official_website_amount of this OfficialWebsiteRatingResult. - :rtype: float + :rtype: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ return self._official_website_amount @@ -87,7 +87,7 @@ def official_website_amount(self, official_website_amount): 包年/包月产品的官网价。 :param official_website_amount: The official_website_amount of this OfficialWebsiteRatingResult. - :type official_website_amount: float + :type official_website_amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ self._official_website_amount = official_website_amount diff --git a/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/optional_discount_rating_result.py b/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/optional_discount_rating_result.py index 11c913f29a..1d2110d74c 100644 --- a/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/optional_discount_rating_result.py +++ b/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/optional_discount_rating_result.py @@ -18,9 +18,9 @@ class OptionalDiscountRatingResult: openapi_types = { 'discount_id': 'str', - 'amount': 'float', - 'official_website_amount': 'float', - 'discount_amount': 'float', + 'amount': 'decimal.Decimal', + 'official_website_amount': 'decimal.Decimal', + 'discount_amount': 'decimal.Decimal', 'measure_id': 'int', 'discount_type': 'int', 'discount_name': 'str', @@ -56,11 +56,11 @@ def __init__(self, discount_id=None, amount=None, official_website_amount=None, :param discount_id: 折扣优惠ID。 :type discount_id: str :param amount: 总额,即最终优惠后的金额。 amount= official_website_amount - discountAmount。 - :type amount: float + :type amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` :param official_website_amount: 包年/包月产品的官网价。 - :type official_website_amount: float + :type official_website_amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` :param discount_amount: 可选折扣优惠额,如商务折扣、伙伴折扣、促销折扣和折扣券选用时的优惠额。 - :type discount_amount: float + :type discount_amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` :param measure_id: 价格度量单位标识。 1:元 :type measure_id: int :param discount_type: 折扣优惠类型。 合同商务折扣:605:华为云BE场景下的合同商务折扣606:分销商BE场景下的合同商务折扣 伙伴授予折扣:607:合作伙伴授予折扣-折扣率 @@ -154,7 +154,7 @@ def amount(self): 总额,即最终优惠后的金额。 amount= official_website_amount - discountAmount。 :return: The amount of this OptionalDiscountRatingResult. - :rtype: float + :rtype: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ return self._amount @@ -165,7 +165,7 @@ def amount(self, amount): 总额,即最终优惠后的金额。 amount= official_website_amount - discountAmount。 :param amount: The amount of this OptionalDiscountRatingResult. - :type amount: float + :type amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ self._amount = amount @@ -176,7 +176,7 @@ def official_website_amount(self): 包年/包月产品的官网价。 :return: The official_website_amount of this OptionalDiscountRatingResult. - :rtype: float + :rtype: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ return self._official_website_amount @@ -187,7 +187,7 @@ def official_website_amount(self, official_website_amount): 包年/包月产品的官网价。 :param official_website_amount: The official_website_amount of this OptionalDiscountRatingResult. - :type official_website_amount: float + :type official_website_amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ self._official_website_amount = official_website_amount @@ -198,7 +198,7 @@ def discount_amount(self): 可选折扣优惠额,如商务折扣、伙伴折扣、促销折扣和折扣券选用时的优惠额。 :return: The discount_amount of this OptionalDiscountRatingResult. - :rtype: float + :rtype: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ return self._discount_amount @@ -209,7 +209,7 @@ def discount_amount(self, discount_amount): 可选折扣优惠额,如商务折扣、伙伴折扣、促销折扣和折扣券选用时的优惠额。 :param discount_amount: The discount_amount of this OptionalDiscountRatingResult. - :type discount_amount: float + :type discount_amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ self._discount_amount = discount_amount diff --git a/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/order_line_item_v3.py b/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/order_line_item_v3.py index 3e99ace951..1d3929c323 100644 --- a/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/order_line_item_v3.py +++ b/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/order_line_item_v3.py @@ -19,8 +19,8 @@ class OrderLineItemV3: openapi_types = { 'order_line_item_ids': 'list[str]', 'discount_mode': 'int', - 'discount_amount': 'float', - 'discount_ratio': 'float' + 'discount_amount': 'decimal.Decimal', + 'discount_ratio': 'decimal.Decimal' } attribute_map = { @@ -40,9 +40,9 @@ def __init__(self, order_line_item_ids=None, discount_mode=None, discount_amount :param discount_mode: 订单可用折扣的模式 。 0:折扣1:一口价2:满减 :type discount_mode: int :param discount_amount: 订单可用的折扣金额(即减免金额)。 - :type discount_amount: float + :type discount_amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` :param discount_ratio: 订单可用的折扣比例。 - :type discount_ratio: float + :type discount_ratio: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ @@ -109,7 +109,7 @@ def discount_amount(self): 订单可用的折扣金额(即减免金额)。 :return: The discount_amount of this OrderLineItemV3. - :rtype: float + :rtype: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ return self._discount_amount @@ -120,7 +120,7 @@ def discount_amount(self, discount_amount): 订单可用的折扣金额(即减免金额)。 :param discount_amount: The discount_amount of this OrderLineItemV3. - :type discount_amount: float + :type discount_amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ self._discount_amount = discount_amount @@ -131,7 +131,7 @@ def discount_ratio(self): 订单可用的折扣比例。 :return: The discount_ratio of this OrderLineItemV3. - :rtype: float + :rtype: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ return self._discount_ratio @@ -142,7 +142,7 @@ def discount_ratio(self, discount_ratio): 订单可用的折扣比例。 :param discount_ratio: The discount_ratio of this OrderLineItemV3. - :type discount_ratio: float + :type discount_ratio: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ self._discount_ratio = discount_ratio diff --git a/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/order_refund_info_v2.py b/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/order_refund_info_v2.py index 9c9c2cd88e..19113553d6 100644 --- a/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/order_refund_info_v2.py +++ b/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/order_refund_info_v2.py @@ -18,7 +18,7 @@ class OrderRefundInfoV2: openapi_types = { 'id': 'str', - 'amount': 'float', + 'amount': 'decimal.Decimal', 'measure_id': 'str', 'customer_id': 'str', 'resource_type_code': 'str', @@ -50,7 +50,7 @@ def __init__(self, id=None, amount=None, measure_id=None, customer_id=None, reso :param id: 该记录的ID。 :type id: str :param amount: 金额。 金额为负数,表示退订金额。金额为正数,表示已消费金额或收取的退订手续费。 - :type amount: float + :type amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` :param measure_id: 金额的度量单位。 1:元 :type measure_id: str :param customer_id: 客户账号ID。 @@ -126,7 +126,7 @@ def amount(self): 金额。 金额为负数,表示退订金额。金额为正数,表示已消费金额或收取的退订手续费。 :return: The amount of this OrderRefundInfoV2. - :rtype: float + :rtype: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ return self._amount @@ -137,7 +137,7 @@ def amount(self, amount): 金额。 金额为负数,表示退订金额。金额为正数,表示已消费金额或收取的退订手续费。 :param amount: The amount of this OrderRefundInfoV2. - :type amount: float + :type amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ self._amount = amount diff --git a/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/period_product_official_rating_result.py b/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/period_product_official_rating_result.py index a6dbcb019d..bbcc5d447d 100644 --- a/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/period_product_official_rating_result.py +++ b/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/period_product_official_rating_result.py @@ -19,7 +19,7 @@ class PeriodProductOfficialRatingResult: openapi_types = { 'id': 'str', 'product_id': 'str', - 'official_website_amount': 'float', + 'official_website_amount': 'decimal.Decimal', 'measure_id': 'int', 'installment_official_website_amount': 'str', 'installment_period_type': 'int' @@ -44,7 +44,7 @@ def __init__(self, id=None, product_id=None, official_website_amount=None, measu :param product_id: 包年/包月产品的ID。 :type product_id: str :param official_website_amount: 包年/包月产品的官网价。 - :type official_website_amount: float + :type official_website_amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` :param measure_id: 价格度量单位标识。 1:元 :type measure_id: int :param installment_official_website_amount: 分期金额的官网价。 说明: 暂只支持IES产品。 @@ -127,7 +127,7 @@ def official_website_amount(self): 包年/包月产品的官网价。 :return: The official_website_amount of this PeriodProductOfficialRatingResult. - :rtype: float + :rtype: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ return self._official_website_amount @@ -138,7 +138,7 @@ def official_website_amount(self, official_website_amount): 包年/包月产品的官网价。 :param official_website_amount: The official_website_amount of this PeriodProductOfficialRatingResult. - :type official_website_amount: float + :type official_website_amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ self._official_website_amount = official_website_amount diff --git a/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/period_product_rating_result.py b/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/period_product_rating_result.py index de90a182f9..353beaddad 100644 --- a/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/period_product_rating_result.py +++ b/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/period_product_rating_result.py @@ -19,9 +19,9 @@ class PeriodProductRatingResult: openapi_types = { 'id': 'str', 'product_id': 'str', - 'amount': 'float', - 'official_website_amount': 'float', - 'discount_amount': 'float', + 'amount': 'decimal.Decimal', + 'official_website_amount': 'decimal.Decimal', + 'discount_amount': 'decimal.Decimal', 'measure_id': 'int', 'installment_official_website_amount': 'str', 'installment_official_discount_amount': 'str', @@ -52,11 +52,11 @@ def __init__(self, id=None, product_id=None, amount=None, official_website_amoun :param product_id: 包年/包月产品的ID。 :type product_id: str :param amount: 总额,即最终优惠后的金额。 amount= official_website_amount - discountAmount。 - :type amount: float + :type amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` :param official_website_amount: 包年/包月产品的官网价。 - :type official_website_amount: float + :type official_website_amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` :param discount_amount: 可选折扣优惠额,如商务折扣、伙伴折扣、促销折扣和折扣券选用时的优惠额。 - :type discount_amount: float + :type discount_amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` :param measure_id: 价格度量单位标识。 1:元 :type measure_id: int :param installment_official_website_amount: 分期金额的官网价。 说明: 暂只支持IES产品。 @@ -155,7 +155,7 @@ def amount(self): 总额,即最终优惠后的金额。 amount= official_website_amount - discountAmount。 :return: The amount of this PeriodProductRatingResult. - :rtype: float + :rtype: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ return self._amount @@ -166,7 +166,7 @@ def amount(self, amount): 总额,即最终优惠后的金额。 amount= official_website_amount - discountAmount。 :param amount: The amount of this PeriodProductRatingResult. - :type amount: float + :type amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ self._amount = amount @@ -177,7 +177,7 @@ def official_website_amount(self): 包年/包月产品的官网价。 :return: The official_website_amount of this PeriodProductRatingResult. - :rtype: float + :rtype: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ return self._official_website_amount @@ -188,7 +188,7 @@ def official_website_amount(self, official_website_amount): 包年/包月产品的官网价。 :param official_website_amount: The official_website_amount of this PeriodProductRatingResult. - :type official_website_amount: float + :type official_website_amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ self._official_website_amount = official_website_amount @@ -199,7 +199,7 @@ def discount_amount(self): 可选折扣优惠额,如商务折扣、伙伴折扣、促销折扣和折扣券选用时的优惠额。 :return: The discount_amount of this PeriodProductRatingResult. - :rtype: float + :rtype: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ return self._discount_amount @@ -210,7 +210,7 @@ def discount_amount(self, discount_amount): 可选折扣优惠额,如商务折扣、伙伴折扣、促销折扣和折扣券选用时的优惠额。 :param discount_amount: The discount_amount of this PeriodProductRatingResult. - :type discount_amount: float + :type discount_amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ self._discount_amount = discount_amount diff --git a/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/query_indirect_partners_req.py b/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/query_indirect_partners_req.py index c31b75be4f..82e1848078 100644 --- a/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/query_indirect_partners_req.py +++ b/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/query_indirect_partners_req.py @@ -49,7 +49,7 @@ def __init__(self, account_name=None, associated_on_begin=None, associated_on_en :type offset: int :param limit: 每次查询的数量限制。默认值为10。 :type limit: int - :param indirect_partner_id: 云经销商ID。获取方法请参见[查询精英服务商列表](https://support.huaweicloud.com/api-bpconsole/espp_00003.html)。 如果需要查询具体某个云经销商伙伴,必须携带该字段。除此之外,此参数不做处理。 + :param indirect_partner_id: 云经销商ID。获取方法请参见[查询云经销商列表](https://support.huaweicloud.com/api-bpconsole/espp_00003.html)。 如果需要查询具体某个云经销商伙伴,必须携带该字段。除此之外,此参数不做处理。 :type indirect_partner_id: str """ @@ -190,7 +190,7 @@ def limit(self, limit): def indirect_partner_id(self): """Gets the indirect_partner_id of this QueryIndirectPartnersReq. - 云经销商ID。获取方法请参见[查询精英服务商列表](https://support.huaweicloud.com/api-bpconsole/espp_00003.html)。 如果需要查询具体某个云经销商伙伴,必须携带该字段。除此之外,此参数不做处理。 + 云经销商ID。获取方法请参见[查询云经销商列表](https://support.huaweicloud.com/api-bpconsole/espp_00003.html)。 如果需要查询具体某个云经销商伙伴,必须携带该字段。除此之外,此参数不做处理。 :return: The indirect_partner_id of this QueryIndirectPartnersReq. :rtype: str @@ -201,7 +201,7 @@ def indirect_partner_id(self): def indirect_partner_id(self, indirect_partner_id): """Sets the indirect_partner_id of this QueryIndirectPartnersReq. - 云经销商ID。获取方法请参见[查询精英服务商列表](https://support.huaweicloud.com/api-bpconsole/espp_00003.html)。 如果需要查询具体某个云经销商伙伴,必须携带该字段。除此之外,此参数不做处理。 + 云经销商ID。获取方法请参见[查询云经销商列表](https://support.huaweicloud.com/api-bpconsole/espp_00003.html)。 如果需要查询具体某个云经销商伙伴,必须携带该字段。除此之外,此参数不做处理。 :param indirect_partner_id: The indirect_partner_id of this QueryIndirectPartnersReq. :type indirect_partner_id: str diff --git a/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/res_fee_record_v2.py b/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/res_fee_record_v2.py index 10d283fed4..8c84123594 100644 --- a/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/res_fee_record_v2.py +++ b/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/res_fee_record_v2.py @@ -35,7 +35,7 @@ class ResFeeRecordV2: 'product_name': 'str', 'product_spec_desc': 'str', 'sku_code': 'str', - 'spec_size': 'float', + 'spec_size': 'decimal.Decimal', 'spec_size_measure_id': 'int', 'trade_id': 'str', 'id': 'str', @@ -46,25 +46,25 @@ class ResFeeRecordV2: 'order_id': 'str', 'period_type': 'str', 'usage_type': 'str', - 'usage': 'float', + 'usage': 'decimal.Decimal', 'usage_measure_id': 'int', - 'free_resource_usage': 'float', + 'free_resource_usage': 'decimal.Decimal', 'free_resource_measure_id': 'int', - 'ri_usage': 'float', + 'ri_usage': 'decimal.Decimal', 'ri_usage_measure_id': 'int', - 'unit_price': 'float', + 'unit_price': 'decimal.Decimal', 'unit': 'str', - 'official_amount': 'float', - 'discount_amount': 'float', - 'amount': 'float', - 'cash_amount': 'float', - 'credit_amount': 'float', - 'coupon_amount': 'float', - 'flexipurchase_coupon_amount': 'float', - 'stored_card_amount': 'float', - 'bonus_amount': 'float', - 'debt_amount': 'float', - 'adjustment_amount': 'float', + 'official_amount': 'decimal.Decimal', + 'discount_amount': 'decimal.Decimal', + 'amount': 'decimal.Decimal', + 'cash_amount': 'decimal.Decimal', + 'credit_amount': 'decimal.Decimal', + 'coupon_amount': 'decimal.Decimal', + 'flexipurchase_coupon_amount': 'decimal.Decimal', + 'stored_card_amount': 'decimal.Decimal', + 'bonus_amount': 'decimal.Decimal', + 'debt_amount': 'decimal.Decimal', + 'adjustment_amount': 'decimal.Decimal', 'measure_id': 'int', 'formula': 'str', 'sub_service_type_code': 'str', @@ -176,7 +176,7 @@ def __init__(self, bill_date=None, bill_type=None, customer_id=None, region=None :param sku_code: SKU编码,在账单中唯一标识一个资源的规格。 :type sku_code: str :param spec_size: 产品的实例大小,仅线性产品有效。 说明: 线性产品是指订购时需要指定大小的产品。例如硬盘在订购时需选择10G、20G等不同大小规格。 - :type spec_size: float + :type spec_size: :class:`huaweicloudsdkbss.v2.decimal.Decimal` :param spec_size_measure_id: 产品实例大小的单位,仅线性产品有该字段。 您可以调用查询度量单位列表接口获取。 :type spec_size_measure_id: int :param trade_id: 订单ID或交易ID,扣费维度的唯一标识。 @@ -198,43 +198,43 @@ def __init__(self, bill_date=None, bill_type=None, customer_id=None, region=None :param usage_type: 资源使用量的类型,您可以调用查询使用量类型列表接口获取。 :type usage_type: str :param usage: 资源的使用量。 说明: 查询包周期资源,不返回资源的使用量。 - :type usage: float + :type usage: :class:`huaweicloudsdkbss.v2.decimal.Decimal` :param usage_measure_id: 资源使用量的度量单位,您可以调用查询度量单位列表接口获取。 说明: 查询包周期资源,不返回资源使用量的度量单位。 :type usage_measure_id: int :param free_resource_usage: 套餐内使用量。 - :type free_resource_usage: float + :type free_resource_usage: :class:`huaweicloudsdkbss.v2.decimal.Decimal` :param free_resource_measure_id: 套餐内使用量的度量单位,您可以调用查询度量单位列表接口获取。 :type free_resource_measure_id: int :param ri_usage: 预留实例使用量。 - :type ri_usage: float + :type ri_usage: :class:`huaweicloudsdkbss.v2.decimal.Decimal` :param ri_usage_measure_id: 预留实例使用量单位。 :type ri_usage_measure_id: int :param unit_price: 产品的单价。 按需产品的单价,只有简单定价,不分档的场景会返回。 包周期产品的单价,只有包周期的如下场景会返回:包周期订购/续订/降配/升配/扩容简单定价,不分档 预留实例的单价,只有如下场景下会返回:订购/续订/降配/升配/扩容/按时计费简单定价,不分档 说明: 当statistic_type入参为1,按账期,查询包周期产品时,不返回单价。 - :type unit_price: float + :type unit_price: :class:`huaweicloudsdkbss.v2.decimal.Decimal` :param unit: 产品的单价单位。 线性产品的单价单位为“元/{线性单位}/月”或“元/{线性单位}/小时”等。非线性产品的单价单位为“元/月”或“元/小时”等。 说明: “线性单位”为线性产品(即订购时需要指定大小的产品)的大小的单位,比如硬盘的线性单位为GB,带宽的线性单位为Mbps。当statistic_type入参为1,按账期,查询包周期产品时,不返回单价单位。 :type unit: str :param official_amount: 官网价,华为云商品在官网上未叠加应用商务折扣、促销折扣等优惠的销售价格。 - :type official_amount: float + :type official_amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` :param discount_amount: 优惠金额,用户使用云服务享受折扣优惠如商务折扣、伙伴授予折扣以及促销优惠等减免的金额。 - :type discount_amount: float + :type discount_amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` :param amount: 应付金额,用户使用云服务享受折扣优惠后需要支付的费用金额,包括现金券和储值卡和代金券金额,精确到小数点后2位。 说明: amount的值等于cash_amount,credit_amount,coupon_amount,flexipurchase_coupon_amount,stored_card_amount,bonus_amount,debt_amount,adjustment_amount的总和。 - :type amount: float + :type amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` :param cash_amount: 现金支付金额。 - :type cash_amount: float + :type cash_amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` :param credit_amount: 信用额度支付金额。 - :type credit_amount: float + :type credit_amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` :param coupon_amount: 代金券支付金额。 - :type coupon_amount: float + :type coupon_amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` :param flexipurchase_coupon_amount: 现金券支付金额。 - :type flexipurchase_coupon_amount: float + :type flexipurchase_coupon_amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` :param stored_card_amount: 储值卡支付金额。 - :type stored_card_amount: float + :type stored_card_amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` :param bonus_amount: 奖励金支付金额(用于现网客户未使用完的奖励金)。 - :type bonus_amount: float + :type bonus_amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` :param debt_amount: 欠费金额。 - :type debt_amount: float + :type debt_amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` :param adjustment_amount: 欠费核销金额。 - :type adjustment_amount: float + :type adjustment_amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` :param measure_id: 金额单位。 1:元 :type measure_id: int :param formula: 实付金额计算公式。当前只包含如下场景: 按需非线性定价{使用量}【使用量】/{单位转化率}【单位转换】*{单价}【单价】-{优惠金额}【优惠金额】-{抹零金额}【抹零金额】-{代金券抵扣}【代金券抵扣】 按需线性定价{使用量}【使用量】/{单位转化率}【单位转换】*{线性大小}【规格】*{单价}【单价】-{优惠金额}【优惠金额】-{抹零金额}【抹零金额】-{代金券抵扣}【代金券抵扣】 包年包月新购和续订非线性定价{周期数}【周期数】/{周期转化率}【周期转换】*{单价}【单价】-{优惠金额}【优惠金额】-{代金券抵扣}【代金券抵扣】 包年包月新购和续订线性定价{周期数}【周期数】/{周期转化率}【周期转换】*{线性大小}【规格】*{单价}【单价】-{优惠金额}【优惠金额】-{代金券抵扣}【代金券抵扣】 包年包月(一次性)新购和续订非线性定价{单价}【单价】-{优惠金额}【优惠金额】-{代金券抵扣}【代金券抵扣】 包年包月(一次性)新购和续订线性定价{线性大小}【规格】*{单价}【单价】-{优惠金额}【优惠金额】-{代金券抵扣}【代金券抵扣】 说明: 实付金额计算公式得到的金额值等于amount - coupon_amount的差值。按账期类型查询时不返回计算公式。 @@ -829,7 +829,7 @@ def spec_size(self): 产品的实例大小,仅线性产品有效。 说明: 线性产品是指订购时需要指定大小的产品。例如硬盘在订购时需选择10G、20G等不同大小规格。 :return: The spec_size of this ResFeeRecordV2. - :rtype: float + :rtype: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ return self._spec_size @@ -840,7 +840,7 @@ def spec_size(self, spec_size): 产品的实例大小,仅线性产品有效。 说明: 线性产品是指订购时需要指定大小的产品。例如硬盘在订购时需选择10G、20G等不同大小规格。 :param spec_size: The spec_size of this ResFeeRecordV2. - :type spec_size: float + :type spec_size: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ self._spec_size = spec_size @@ -1071,7 +1071,7 @@ def usage(self): 资源的使用量。 说明: 查询包周期资源,不返回资源的使用量。 :return: The usage of this ResFeeRecordV2. - :rtype: float + :rtype: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ return self._usage @@ -1082,7 +1082,7 @@ def usage(self, usage): 资源的使用量。 说明: 查询包周期资源,不返回资源的使用量。 :param usage: The usage of this ResFeeRecordV2. - :type usage: float + :type usage: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ self._usage = usage @@ -1115,7 +1115,7 @@ def free_resource_usage(self): 套餐内使用量。 :return: The free_resource_usage of this ResFeeRecordV2. - :rtype: float + :rtype: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ return self._free_resource_usage @@ -1126,7 +1126,7 @@ def free_resource_usage(self, free_resource_usage): 套餐内使用量。 :param free_resource_usage: The free_resource_usage of this ResFeeRecordV2. - :type free_resource_usage: float + :type free_resource_usage: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ self._free_resource_usage = free_resource_usage @@ -1159,7 +1159,7 @@ def ri_usage(self): 预留实例使用量。 :return: The ri_usage of this ResFeeRecordV2. - :rtype: float + :rtype: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ return self._ri_usage @@ -1170,7 +1170,7 @@ def ri_usage(self, ri_usage): 预留实例使用量。 :param ri_usage: The ri_usage of this ResFeeRecordV2. - :type ri_usage: float + :type ri_usage: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ self._ri_usage = ri_usage @@ -1203,7 +1203,7 @@ def unit_price(self): 产品的单价。 按需产品的单价,只有简单定价,不分档的场景会返回。 包周期产品的单价,只有包周期的如下场景会返回:包周期订购/续订/降配/升配/扩容简单定价,不分档 预留实例的单价,只有如下场景下会返回:订购/续订/降配/升配/扩容/按时计费简单定价,不分档 说明: 当statistic_type入参为1,按账期,查询包周期产品时,不返回单价。 :return: The unit_price of this ResFeeRecordV2. - :rtype: float + :rtype: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ return self._unit_price @@ -1214,7 +1214,7 @@ def unit_price(self, unit_price): 产品的单价。 按需产品的单价,只有简单定价,不分档的场景会返回。 包周期产品的单价,只有包周期的如下场景会返回:包周期订购/续订/降配/升配/扩容简单定价,不分档 预留实例的单价,只有如下场景下会返回:订购/续订/降配/升配/扩容/按时计费简单定价,不分档 说明: 当statistic_type入参为1,按账期,查询包周期产品时,不返回单价。 :param unit_price: The unit_price of this ResFeeRecordV2. - :type unit_price: float + :type unit_price: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ self._unit_price = unit_price @@ -1247,7 +1247,7 @@ def official_amount(self): 官网价,华为云商品在官网上未叠加应用商务折扣、促销折扣等优惠的销售价格。 :return: The official_amount of this ResFeeRecordV2. - :rtype: float + :rtype: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ return self._official_amount @@ -1258,7 +1258,7 @@ def official_amount(self, official_amount): 官网价,华为云商品在官网上未叠加应用商务折扣、促销折扣等优惠的销售价格。 :param official_amount: The official_amount of this ResFeeRecordV2. - :type official_amount: float + :type official_amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ self._official_amount = official_amount @@ -1269,7 +1269,7 @@ def discount_amount(self): 优惠金额,用户使用云服务享受折扣优惠如商务折扣、伙伴授予折扣以及促销优惠等减免的金额。 :return: The discount_amount of this ResFeeRecordV2. - :rtype: float + :rtype: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ return self._discount_amount @@ -1280,7 +1280,7 @@ def discount_amount(self, discount_amount): 优惠金额,用户使用云服务享受折扣优惠如商务折扣、伙伴授予折扣以及促销优惠等减免的金额。 :param discount_amount: The discount_amount of this ResFeeRecordV2. - :type discount_amount: float + :type discount_amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ self._discount_amount = discount_amount @@ -1291,7 +1291,7 @@ def amount(self): 应付金额,用户使用云服务享受折扣优惠后需要支付的费用金额,包括现金券和储值卡和代金券金额,精确到小数点后2位。 说明: amount的值等于cash_amount,credit_amount,coupon_amount,flexipurchase_coupon_amount,stored_card_amount,bonus_amount,debt_amount,adjustment_amount的总和。 :return: The amount of this ResFeeRecordV2. - :rtype: float + :rtype: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ return self._amount @@ -1302,7 +1302,7 @@ def amount(self, amount): 应付金额,用户使用云服务享受折扣优惠后需要支付的费用金额,包括现金券和储值卡和代金券金额,精确到小数点后2位。 说明: amount的值等于cash_amount,credit_amount,coupon_amount,flexipurchase_coupon_amount,stored_card_amount,bonus_amount,debt_amount,adjustment_amount的总和。 :param amount: The amount of this ResFeeRecordV2. - :type amount: float + :type amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ self._amount = amount @@ -1313,7 +1313,7 @@ def cash_amount(self): 现金支付金额。 :return: The cash_amount of this ResFeeRecordV2. - :rtype: float + :rtype: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ return self._cash_amount @@ -1324,7 +1324,7 @@ def cash_amount(self, cash_amount): 现金支付金额。 :param cash_amount: The cash_amount of this ResFeeRecordV2. - :type cash_amount: float + :type cash_amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ self._cash_amount = cash_amount @@ -1335,7 +1335,7 @@ def credit_amount(self): 信用额度支付金额。 :return: The credit_amount of this ResFeeRecordV2. - :rtype: float + :rtype: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ return self._credit_amount @@ -1346,7 +1346,7 @@ def credit_amount(self, credit_amount): 信用额度支付金额。 :param credit_amount: The credit_amount of this ResFeeRecordV2. - :type credit_amount: float + :type credit_amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ self._credit_amount = credit_amount @@ -1357,7 +1357,7 @@ def coupon_amount(self): 代金券支付金额。 :return: The coupon_amount of this ResFeeRecordV2. - :rtype: float + :rtype: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ return self._coupon_amount @@ -1368,7 +1368,7 @@ def coupon_amount(self, coupon_amount): 代金券支付金额。 :param coupon_amount: The coupon_amount of this ResFeeRecordV2. - :type coupon_amount: float + :type coupon_amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ self._coupon_amount = coupon_amount @@ -1379,7 +1379,7 @@ def flexipurchase_coupon_amount(self): 现金券支付金额。 :return: The flexipurchase_coupon_amount of this ResFeeRecordV2. - :rtype: float + :rtype: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ return self._flexipurchase_coupon_amount @@ -1390,7 +1390,7 @@ def flexipurchase_coupon_amount(self, flexipurchase_coupon_amount): 现金券支付金额。 :param flexipurchase_coupon_amount: The flexipurchase_coupon_amount of this ResFeeRecordV2. - :type flexipurchase_coupon_amount: float + :type flexipurchase_coupon_amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ self._flexipurchase_coupon_amount = flexipurchase_coupon_amount @@ -1401,7 +1401,7 @@ def stored_card_amount(self): 储值卡支付金额。 :return: The stored_card_amount of this ResFeeRecordV2. - :rtype: float + :rtype: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ return self._stored_card_amount @@ -1412,7 +1412,7 @@ def stored_card_amount(self, stored_card_amount): 储值卡支付金额。 :param stored_card_amount: The stored_card_amount of this ResFeeRecordV2. - :type stored_card_amount: float + :type stored_card_amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ self._stored_card_amount = stored_card_amount @@ -1423,7 +1423,7 @@ def bonus_amount(self): 奖励金支付金额(用于现网客户未使用完的奖励金)。 :return: The bonus_amount of this ResFeeRecordV2. - :rtype: float + :rtype: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ return self._bonus_amount @@ -1434,7 +1434,7 @@ def bonus_amount(self, bonus_amount): 奖励金支付金额(用于现网客户未使用完的奖励金)。 :param bonus_amount: The bonus_amount of this ResFeeRecordV2. - :type bonus_amount: float + :type bonus_amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ self._bonus_amount = bonus_amount @@ -1445,7 +1445,7 @@ def debt_amount(self): 欠费金额。 :return: The debt_amount of this ResFeeRecordV2. - :rtype: float + :rtype: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ return self._debt_amount @@ -1456,7 +1456,7 @@ def debt_amount(self, debt_amount): 欠费金额。 :param debt_amount: The debt_amount of this ResFeeRecordV2. - :type debt_amount: float + :type debt_amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ self._debt_amount = debt_amount @@ -1467,7 +1467,7 @@ def adjustment_amount(self): 欠费核销金额。 :return: The adjustment_amount of this ResFeeRecordV2. - :rtype: float + :rtype: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ return self._adjustment_amount @@ -1478,7 +1478,7 @@ def adjustment_amount(self, adjustment_amount): 欠费核销金额。 :param adjustment_amount: The adjustment_amount of this ResFeeRecordV2. - :type adjustment_amount: float + :type adjustment_amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ self._adjustment_amount = adjustment_amount diff --git a/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/retrieve_amount_info_v2.py b/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/retrieve_amount_info_v2.py index ca1d49c444..5cce97d76a 100644 --- a/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/retrieve_amount_info_v2.py +++ b/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/retrieve_amount_info_v2.py @@ -17,11 +17,11 @@ class RetrieveAmountInfoV2: sensitive_list = [] openapi_types = { - 'avail_retrieve_amount': 'float', + 'avail_retrieve_amount': 'decimal.Decimal', 'measure_id': 'int', 'currency': 'str', - 'amount': 'float', - 'credit_amount': 'float', + 'amount': 'decimal.Decimal', + 'credit_amount': 'decimal.Decimal', 'expire_time': 'str' } @@ -40,15 +40,15 @@ def __init__(self, avail_retrieve_amount=None, measure_id=None, currency=None, a The model defined in huaweicloud sdk :param avail_retrieve_amount: 可回收的金额。 - :type avail_retrieve_amount: float + :type avail_retrieve_amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` :param measure_id: 金额单位。 1:元 :type measure_id: int :param currency: 币种。 CNY:人民币 :type currency: str :param amount: 账户余额(仅balance_type=信用账户时这个字段才有值)。 - :type amount: float + :type amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` :param credit_amount: 信用额度(仅balance_type=信用账户时这个字段才有值)。 - :type credit_amount: float + :type credit_amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` :param expire_time: 信用额度过期时间。 UTC时间,格式为:2016-03-28T14:45:38Z。 如果查询信用账户可回收余额的查询结果没有失效时间,表示永久有效。 :type expire_time: str """ @@ -83,7 +83,7 @@ def avail_retrieve_amount(self): 可回收的金额。 :return: The avail_retrieve_amount of this RetrieveAmountInfoV2. - :rtype: float + :rtype: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ return self._avail_retrieve_amount @@ -94,7 +94,7 @@ def avail_retrieve_amount(self, avail_retrieve_amount): 可回收的金额。 :param avail_retrieve_amount: The avail_retrieve_amount of this RetrieveAmountInfoV2. - :type avail_retrieve_amount: float + :type avail_retrieve_amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ self._avail_retrieve_amount = avail_retrieve_amount @@ -149,7 +149,7 @@ def amount(self): 账户余额(仅balance_type=信用账户时这个字段才有值)。 :return: The amount of this RetrieveAmountInfoV2. - :rtype: float + :rtype: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ return self._amount @@ -160,7 +160,7 @@ def amount(self, amount): 账户余额(仅balance_type=信用账户时这个字段才有值)。 :param amount: The amount of this RetrieveAmountInfoV2. - :type amount: float + :type amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ self._amount = amount @@ -171,7 +171,7 @@ def credit_amount(self): 信用额度(仅balance_type=信用账户时这个字段才有值)。 :return: The credit_amount of this RetrieveAmountInfoV2. - :rtype: float + :rtype: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ return self._credit_amount @@ -182,7 +182,7 @@ def credit_amount(self, credit_amount): 信用额度(仅balance_type=信用账户时这个字段才有值)。 :param credit_amount: The credit_amount of this RetrieveAmountInfoV2. - :type credit_amount: float + :type credit_amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ self._credit_amount = credit_amount diff --git a/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/transfer_amount_info_v2.py b/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/transfer_amount_info_v2.py index 26351dd5bb..25eb2f3a7c 100644 --- a/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/transfer_amount_info_v2.py +++ b/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/transfer_amount_info_v2.py @@ -17,11 +17,11 @@ class TransferAmountInfoV2: sensitive_list = [] openapi_types = { - 'avail_transfer_amount': 'float', + 'avail_transfer_amount': 'decimal.Decimal', 'measure_id': 'int', 'currency': 'str', - 'amount': 'float', - 'credit_amount': 'float', + 'amount': 'decimal.Decimal', + 'credit_amount': 'decimal.Decimal', 'expire_time': 'str' } @@ -40,15 +40,15 @@ def __init__(self, avail_transfer_amount=None, measure_id=None, currency=None, a The model defined in huaweicloud sdk :param avail_transfer_amount: 可拨款的金额。 - :type avail_transfer_amount: float + :type avail_transfer_amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` :param measure_id: 金额单位。 1:元 :type measure_id: int :param currency: 币种。 CNY:人民币 :type currency: str :param amount: 账户余额(仅balance_type=信用账户时才有这个字段)。 - :type amount: float + :type amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` :param credit_amount: 信用额度(仅balance_type=信用账户时才有这个字段)。 - :type credit_amount: float + :type credit_amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` :param expire_time: 信用额度过期时间。 UTC时间,格式为:2016-03-28T14:45:38Z。 (仅balance_type=信用账户时才有这个字段)。 如果查询信用账户可拨款余额的查询结果没有失效时间,表示永久有效。 :type expire_time: str """ @@ -83,7 +83,7 @@ def avail_transfer_amount(self): 可拨款的金额。 :return: The avail_transfer_amount of this TransferAmountInfoV2. - :rtype: float + :rtype: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ return self._avail_transfer_amount @@ -94,7 +94,7 @@ def avail_transfer_amount(self, avail_transfer_amount): 可拨款的金额。 :param avail_transfer_amount: The avail_transfer_amount of this TransferAmountInfoV2. - :type avail_transfer_amount: float + :type avail_transfer_amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ self._avail_transfer_amount = avail_transfer_amount @@ -149,7 +149,7 @@ def amount(self): 账户余额(仅balance_type=信用账户时才有这个字段)。 :return: The amount of this TransferAmountInfoV2. - :rtype: float + :rtype: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ return self._amount @@ -160,7 +160,7 @@ def amount(self, amount): 账户余额(仅balance_type=信用账户时才有这个字段)。 :param amount: The amount of this TransferAmountInfoV2. - :type amount: float + :type amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ self._amount = amount @@ -171,7 +171,7 @@ def credit_amount(self): 信用额度(仅balance_type=信用账户时才有这个字段)。 :return: The credit_amount of this TransferAmountInfoV2. - :rtype: float + :rtype: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ return self._credit_amount @@ -182,7 +182,7 @@ def credit_amount(self, credit_amount): 信用额度(仅balance_type=信用账户时才有这个字段)。 :param credit_amount: The credit_amount of this TransferAmountInfoV2. - :type credit_amount: float + :type credit_amount: :class:`huaweicloudsdkbss.v2.decimal.Decimal` """ self._credit_amount = credit_amount diff --git a/huaweicloud-sdk-bss/requirements.txt b/huaweicloud-sdk-bss/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-bss/requirements.txt +++ b/huaweicloud-sdk-bss/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-bss/setup.py b/huaweicloud-sdk-bss/setup.py index a1ed2a0ddd..746bf56785 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/bssintl_async_client.py b/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/bssintl_async_client.py index 8db86879b7..49ac283031 100644 --- a/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/bssintl_async_client.py +++ b/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/bssintl_async_client.py @@ -839,7 +839,7 @@ def _create_personal_realname_auth_http_info(self, request): def create_sub_customer_async(self, request): """创建客户 - 功能描述:在伙伴销售平台创建客户时同步创建华为云账号,并将客户在伙伴销售平台上的账号与华为云账号进行映射。同时,创建的华为云账号与伙伴账号关联绑定。华为云伙伴能力中心(一级经销商)可以注册精英服务商伙伴(二级经销商)的子客户。注册完成后,子客户可以自动和精英服务商伙伴绑定。 + 功能描述:在伙伴销售平台创建客户时同步创建华为云账号,并将客户在伙伴销售平台上的账号与华为云账号进行映射。同时,创建的华为云账号与伙伴账号关联绑定。华为云伙伴能力中心(一级经销商)可以注册云经销商伙伴(二级经销商)的子客户。注册完成后,子客户可以自动和云经销商伙伴绑定。 Please refer to HUAWEI cloud API Explorer for details. @@ -1538,71 +1538,6 @@ def _list_on_demand_resource_ratings_http_info(self, request): return http_info - def list_order_discounts_async(self, request): - """查询订单可用折扣 - - 功能描述:功能介绍客户在伙伴销售平台支付待支付订单时,查询可使用的折扣。只返回商务合同折扣和伙伴授权折扣客户在客户自建平台查看订单可用的优惠券列表。 - - Please refer to HUAWEI cloud API Explorer for details. - - - :param request: Request instance for ListOrderDiscounts - :type request: :class:`huaweicloudsdkbssintl.v2.ListOrderDiscountsRequest` - :rtype: :class:`huaweicloudsdkbssintl.v2.ListOrderDiscountsResponse` - """ - http_info = self._list_order_discounts_http_info(request) - return self._call_api(**http_info) - - def list_order_discounts_async_invoker(self, request): - http_info = self._list_order_discounts_http_info(request) - return AsyncInvoker(self, http_info) - - def _list_order_discounts_http_info(self, request): - http_info = { - "method": "GET", - "resource_path": "/v2/orders/customer-orders/order-discounts", - "request_type": request.__class__.__name__, - "response_type": "ListOrderDiscountsResponse" - } - - 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 'order_id' in local_var_params: - query_params.append(('order_id', local_var_params['order_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 list_postpaid_bill_sum_async(self, request): """查询伙伴月度消费账单 @@ -2478,71 +2413,6 @@ def _unfreeze_sub_customers_http_info(self, request): return http_info - def update_period_to_on_demand_async(self, request): - """设置或者取消包年/包月资源到期转按需 - - 功能描述:客户可以设置包年/包月资源到期后转为按需资源计费。包年/包月计费模式到期后,按需的计费模式即生效 - - Please refer to HUAWEI cloud API Explorer for details. - - - :param request: Request instance for UpdatePeriodToOnDemand - :type request: :class:`huaweicloudsdkbssintl.v2.UpdatePeriodToOnDemandRequest` - :rtype: :class:`huaweicloudsdkbssintl.v2.UpdatePeriodToOnDemandResponse` - """ - http_info = self._update_period_to_on_demand_http_info(request) - return self._call_api(**http_info) - - def update_period_to_on_demand_async_invoker(self, request): - http_info = self._update_period_to_on_demand_http_info(request) - return AsyncInvoker(self, http_info) - - def _update_period_to_on_demand_http_info(self, request): - http_info = { - "method": "POST", - "resource_path": "/v2/orders/subscriptions/resources/to-on-demand", - "request_type": request.__class__.__name__, - "response_type": "UpdatePeriodToOnDemandResponse" - } - - local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} - - cname = None - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = {} - - body = None - if 'body' in local_var_params: - body = local_var_params['body'] - if isinstance(request, SdkStreamRequest): - body = request.get_file_stream() - - response_headers = [] - - header_params['Content-Type'] = http_utils.select_header_content_type( - ['application/json']) - - auth_settings = [] - - http_info["cname"] = cname - http_info["collection_formats"] = collection_formats - http_info["path_params"] = path_params - http_info["query_params"] = query_params - http_info["header_params"] = header_params - http_info["post_params"] = form_params - http_info["body"] = body - http_info["response_headers"] = response_headers - - return http_info - def update_sub_customer_budget_async(self, request): """设置客户预算 @@ -2959,6 +2829,71 @@ def _list_customer_orders_http_info(self, request): return http_info + def list_order_discounts_async(self, request): + """查询订单可用折扣 + + 功能描述:功能介绍客户在伙伴销售平台支付待支付订单时,查询可使用的折扣。只返回商务合同折扣和伙伴授权折扣客户在客户自建平台查看订单可用的优惠券列表。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListOrderDiscounts + :type request: :class:`huaweicloudsdkbssintl.v2.ListOrderDiscountsRequest` + :rtype: :class:`huaweicloudsdkbssintl.v2.ListOrderDiscountsResponse` + """ + http_info = self._list_order_discounts_http_info(request) + return self._call_api(**http_info) + + def list_order_discounts_async_invoker(self, request): + http_info = self._list_order_discounts_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_order_discounts_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v2/orders/customer-orders/order-discounts", + "request_type": request.__class__.__name__, + "response_type": "ListOrderDiscountsResponse" + } + + 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 'order_id' in local_var_params: + query_params.append(('order_id', local_var_params['order_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 list_pay_per_use_customer_resources_async(self, request): """查询客户包年/包月资源列表 @@ -3292,6 +3227,71 @@ def _show_refund_order_details_http_info(self, request): return http_info + def update_period_to_on_demand_async(self, request): + """设置或者取消包年/包月资源到期转按需 + + 功能描述:客户可以设置包年/包月资源到期后转为按需资源计费。包年/包月计费模式到期后,按需的计费模式即生效 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for UpdatePeriodToOnDemand + :type request: :class:`huaweicloudsdkbssintl.v2.UpdatePeriodToOnDemandRequest` + :rtype: :class:`huaweicloudsdkbssintl.v2.UpdatePeriodToOnDemandResponse` + """ + http_info = self._update_period_to_on_demand_http_info(request) + return self._call_api(**http_info) + + def update_period_to_on_demand_async_invoker(self, request): + http_info = self._update_period_to_on_demand_http_info(request) + return AsyncInvoker(self, http_info) + + def _update_period_to_on_demand_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v2/orders/subscriptions/resources/to-on-demand", + "request_type": request.__class__.__name__, + "response_type": "UpdatePeriodToOnDemandResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def _call_api(self, **kwargs): try: kwargs["async_request"] = True diff --git a/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/bssintl_client.py b/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/bssintl_client.py index 9b90e86966..3c3f308e1d 100644 --- a/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/bssintl_client.py +++ b/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/bssintl_client.py @@ -839,7 +839,7 @@ def _create_personal_realname_auth_http_info(cls, request): def create_sub_customer(self, request): """创建客户 - 功能描述:在伙伴销售平台创建客户时同步创建华为云账号,并将客户在伙伴销售平台上的账号与华为云账号进行映射。同时,创建的华为云账号与伙伴账号关联绑定。华为云伙伴能力中心(一级经销商)可以注册精英服务商伙伴(二级经销商)的子客户。注册完成后,子客户可以自动和精英服务商伙伴绑定。 + 功能描述:在伙伴销售平台创建客户时同步创建华为云账号,并将客户在伙伴销售平台上的账号与华为云账号进行映射。同时,创建的华为云账号与伙伴账号关联绑定。华为云伙伴能力中心(一级经销商)可以注册云经销商伙伴(二级经销商)的子客户。注册完成后,子客户可以自动和云经销商伙伴绑定。 Please refer to HUAWEI cloud API Explorer for details. @@ -1538,71 +1538,6 @@ def _list_on_demand_resource_ratings_http_info(cls, request): return http_info - def list_order_discounts(self, request): - """查询订单可用折扣 - - 功能描述:功能介绍客户在伙伴销售平台支付待支付订单时,查询可使用的折扣。只返回商务合同折扣和伙伴授权折扣客户在客户自建平台查看订单可用的优惠券列表。 - - Please refer to HUAWEI cloud API Explorer for details. - - :param request: Request instance for ListOrderDiscounts - :type request: :class:`huaweicloudsdkbssintl.v2.ListOrderDiscountsRequest` - :rtype: :class:`huaweicloudsdkbssintl.v2.ListOrderDiscountsResponse` - """ - http_info = self._list_order_discounts_http_info(request) - return self._call_api(**http_info) - - def list_order_discounts_invoker(self, request): - http_info = self._list_order_discounts_http_info(request) - return SyncInvoker(self, http_info) - - @classmethod - def _list_order_discounts_http_info(cls, request): - http_info = { - "method": "GET", - "resource_path": "/v2/orders/customer-orders/order-discounts", - "request_type": request.__class__.__name__, - "response_type": "ListOrderDiscountsResponse" - } - - 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 'order_id' in local_var_params: - query_params.append(('order_id', local_var_params['order_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 list_postpaid_bill_sum(self, request): """查询伙伴月度消费账单 @@ -2478,71 +2413,6 @@ def _unfreeze_sub_customers_http_info(cls, request): return http_info - def update_period_to_on_demand(self, request): - """设置或者取消包年/包月资源到期转按需 - - 功能描述:客户可以设置包年/包月资源到期后转为按需资源计费。包年/包月计费模式到期后,按需的计费模式即生效 - - Please refer to HUAWEI cloud API Explorer for details. - - :param request: Request instance for UpdatePeriodToOnDemand - :type request: :class:`huaweicloudsdkbssintl.v2.UpdatePeriodToOnDemandRequest` - :rtype: :class:`huaweicloudsdkbssintl.v2.UpdatePeriodToOnDemandResponse` - """ - http_info = self._update_period_to_on_demand_http_info(request) - return self._call_api(**http_info) - - def update_period_to_on_demand_invoker(self, request): - http_info = self._update_period_to_on_demand_http_info(request) - return SyncInvoker(self, http_info) - - @classmethod - def _update_period_to_on_demand_http_info(cls, request): - http_info = { - "method": "POST", - "resource_path": "/v2/orders/subscriptions/resources/to-on-demand", - "request_type": request.__class__.__name__, - "response_type": "UpdatePeriodToOnDemandResponse" - } - - local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} - - cname = None - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = {} - - body = None - if 'body' in local_var_params: - body = local_var_params['body'] - if isinstance(request, SdkStreamRequest): - body = request.get_file_stream() - - response_headers = [] - - header_params['Content-Type'] = http_utils.select_header_content_type( - ['application/json']) - - auth_settings = [] - - http_info["cname"] = cname - http_info["collection_formats"] = collection_formats - http_info["path_params"] = path_params - http_info["query_params"] = query_params - http_info["header_params"] = header_params - http_info["post_params"] = form_params - http_info["body"] = body - http_info["response_headers"] = response_headers - - return http_info - def update_sub_customer_budget(self, request): """设置客户预算 @@ -2959,6 +2829,71 @@ def _list_customer_orders_http_info(cls, request): return http_info + def list_order_discounts(self, request): + """查询订单可用折扣 + + 功能描述:功能介绍客户在伙伴销售平台支付待支付订单时,查询可使用的折扣。只返回商务合同折扣和伙伴授权折扣客户在客户自建平台查看订单可用的优惠券列表。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListOrderDiscounts + :type request: :class:`huaweicloudsdkbssintl.v2.ListOrderDiscountsRequest` + :rtype: :class:`huaweicloudsdkbssintl.v2.ListOrderDiscountsResponse` + """ + http_info = self._list_order_discounts_http_info(request) + return self._call_api(**http_info) + + def list_order_discounts_invoker(self, request): + http_info = self._list_order_discounts_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_order_discounts_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v2/orders/customer-orders/order-discounts", + "request_type": request.__class__.__name__, + "response_type": "ListOrderDiscountsResponse" + } + + 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 'order_id' in local_var_params: + query_params.append(('order_id', local_var_params['order_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 list_pay_per_use_customer_resources(self, request): """查询客户包年/包月资源列表 @@ -3292,6 +3227,71 @@ def _show_refund_order_details_http_info(cls, request): return http_info + def update_period_to_on_demand(self, request): + """设置或者取消包年/包月资源到期转按需 + + 功能描述:客户可以设置包年/包月资源到期后转为按需资源计费。包年/包月计费模式到期后,按需的计费模式即生效 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for UpdatePeriodToOnDemand + :type request: :class:`huaweicloudsdkbssintl.v2.UpdatePeriodToOnDemandRequest` + :rtype: :class:`huaweicloudsdkbssintl.v2.UpdatePeriodToOnDemandResponse` + """ + http_info = self._update_period_to_on_demand_http_info(request) + return self._call_api(**http_info) + + def update_period_to_on_demand_invoker(self, request): + http_info = self._update_period_to_on_demand_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _update_period_to_on_demand_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v2/orders/subscriptions/resources/to-on-demand", + "request_type": request.__class__.__name__, + "response_type": "UpdatePeriodToOnDemandResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def _call_api(self, **kwargs): try: return self.do_http_request(**kwargs) diff --git a/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/account_balance_v3.py b/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/account_balance_v3.py index bef63dbb8b..67c8403fe4 100644 --- a/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/account_balance_v3.py +++ b/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/account_balance_v3.py @@ -19,10 +19,10 @@ class AccountBalanceV3: openapi_types = { 'account_id': 'str', 'account_type': 'int', - 'amount': 'float', + 'amount': 'decimal.Decimal', 'currency': 'str', - 'designated_amount': 'float', - 'credit_amount': 'float', + 'designated_amount': 'decimal.Decimal', + 'credit_amount': 'decimal.Decimal', 'measure_id': 'int' } @@ -46,13 +46,13 @@ def __init__(self, account_id=None, account_type=None, amount=None, currency=Non :param account_type: 账户类型。 1:余额2:信用5:奖励金7:保证金 :type account_type: int :param amount: 账户余额。 - :type amount: float + :type amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` :param currency: 币种。 USD:美元。 :type currency: str :param designated_amount: 专款专用余额。 - :type designated_amount: float + :type designated_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` :param credit_amount: 总信用额度,仅信用账户存在该字段。 - :type credit_amount: float + :type credit_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` :param measure_id: 度量单位。 1:元 :type measure_id: int """ @@ -129,7 +129,7 @@ def amount(self): 账户余额。 :return: The amount of this AccountBalanceV3. - :rtype: float + :rtype: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ return self._amount @@ -140,7 +140,7 @@ def amount(self, amount): 账户余额。 :param amount: The amount of this AccountBalanceV3. - :type amount: float + :type amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ self._amount = amount @@ -173,7 +173,7 @@ def designated_amount(self): 专款专用余额。 :return: The designated_amount of this AccountBalanceV3. - :rtype: float + :rtype: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ return self._designated_amount @@ -184,7 +184,7 @@ def designated_amount(self, designated_amount): 专款专用余额。 :param designated_amount: The designated_amount of this AccountBalanceV3. - :type designated_amount: float + :type designated_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ self._designated_amount = designated_amount @@ -195,7 +195,7 @@ def credit_amount(self): 总信用额度,仅信用账户存在该字段。 :return: The credit_amount of this AccountBalanceV3. - :rtype: float + :rtype: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ return self._credit_amount @@ -206,7 +206,7 @@ def credit_amount(self, credit_amount): 总信用额度,仅信用账户存在该字段。 :param credit_amount: The credit_amount of this AccountBalanceV3. - :type credit_amount: float + :type credit_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ self._credit_amount = credit_amount diff --git a/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/balance_type_pay.py b/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/balance_type_pay.py index cc3338f459..2c2800417b 100644 --- a/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/balance_type_pay.py +++ b/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/balance_type_pay.py @@ -18,7 +18,7 @@ class BalanceTypePay: openapi_types = { 'balance_type_id': 'str', - 'deduct_amount': 'float' + 'deduct_amount': 'decimal.Decimal' } attribute_map = { @@ -34,7 +34,7 @@ def __init__(self, balance_type_id=None, deduct_amount=None): :param balance_type_id: 账户类型。 BALANCE_TYPE_DEBIT:现金账户BALANCE_TYPE_CREDIT:信用账户BALANCE_TYPE_BONUS:奖励账户(该账户已下线)BALANCE_TYPE_COUPON:代金券账户BALANCE_TYPE_DEBIT_RATE:折扣账户 :type balance_type_id: str :param deduct_amount: 支出金额。 单位:分 - :type deduct_amount: float + :type deduct_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ @@ -77,7 +77,7 @@ def deduct_amount(self): 支出金额。 单位:分 :return: The deduct_amount of this BalanceTypePay. - :rtype: float + :rtype: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ return self._deduct_amount @@ -88,7 +88,7 @@ def deduct_amount(self, deduct_amount): 支出金额。 单位:分 :param deduct_amount: The deduct_amount of this BalanceTypePay. - :type deduct_amount: float + :type deduct_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ self._deduct_amount = deduct_amount diff --git a/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/bill_sum_record_info.py b/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/bill_sum_record_info.py index 1db2a8aff7..f61e0ac954 100644 --- a/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/bill_sum_record_info.py +++ b/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/bill_sum_record_info.py @@ -23,9 +23,9 @@ class BillSumRecordInfo: 'cloud_service_type_code': 'str', 'consume_time': 'str', 'pay_method': 'str', - 'consume_amount': 'float', - 'debt': 'float', - 'discount': 'float', + 'consume_amount': 'decimal.Decimal', + 'debt': 'decimal.Decimal', + 'discount': 'decimal.Decimal', 'measure_id': 'int', 'bill_type': 'int', 'account_details': 'list[BalanceTypePay]', @@ -68,11 +68,11 @@ def __init__(self, customer_id=None, resource_type_code=None, region_code=None, :param pay_method: 消费类型。 当请求消息中不传递“cloud_service_type_code”参数时,如果此值返回“0”表示此服务类型下所有的资源类型都是包年/包月计费模式,如果此值返回空字符串表示此服务类型下有资源类型为按需计费模式。当请求消息中传递“cloud_service_type_code”参数时,如果此值返回“0”表示此资源类型是包年/包月计费模式,如果此值返回“1”表示此资源类型为按需计费模式。 :type pay_method: str :param consume_amount: 消费的金额,即从客户账户实际扣除的金额。包含代金券支付的金额。 - :type consume_amount: float + :type consume_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` :param debt: 欠费金额,即从客户账户扣费的时候,客户账户金额不足,欠费的金额。 - :type debt: float + :type debt: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` :param discount: 折扣金额。 - :type discount: float + :type discount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` :param measure_id: 金额单位。 1:元3:分 默认值为3。 :type measure_id: int :param bill_type: 账单类型。 0:消费1:退订 @@ -271,7 +271,7 @@ def consume_amount(self): 消费的金额,即从客户账户实际扣除的金额。包含代金券支付的金额。 :return: The consume_amount of this BillSumRecordInfo. - :rtype: float + :rtype: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ return self._consume_amount @@ -282,7 +282,7 @@ def consume_amount(self, consume_amount): 消费的金额,即从客户账户实际扣除的金额。包含代金券支付的金额。 :param consume_amount: The consume_amount of this BillSumRecordInfo. - :type consume_amount: float + :type consume_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ self._consume_amount = consume_amount @@ -293,7 +293,7 @@ def debt(self): 欠费金额,即从客户账户扣费的时候,客户账户金额不足,欠费的金额。 :return: The debt of this BillSumRecordInfo. - :rtype: float + :rtype: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ return self._debt @@ -304,7 +304,7 @@ def debt(self, debt): 欠费金额,即从客户账户扣费的时候,客户账户金额不足,欠费的金额。 :param debt: The debt of this BillSumRecordInfo. - :type debt: float + :type debt: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ self._debt = debt @@ -315,7 +315,7 @@ def discount(self): 折扣金额。 :return: The discount of this BillSumRecordInfo. - :rtype: float + :rtype: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ return self._discount @@ -326,7 +326,7 @@ def discount(self, discount): 折扣金额。 :param discount: The discount of this BillSumRecordInfo. - :type discount: float + :type discount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ self._discount = discount diff --git a/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/demand_discount_rating_result.py b/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/demand_discount_rating_result.py index afcfde1774..aeada6c277 100644 --- a/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/demand_discount_rating_result.py +++ b/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/demand_discount_rating_result.py @@ -19,7 +19,7 @@ class DemandDiscountRatingResult: openapi_types = { 'discount_id': 'str', 'discount_type': 'int', - 'amount': 'float', + 'amount': 'decimal.Decimal', 'measure_id': 'int', 'discount_name': 'str' } @@ -42,7 +42,7 @@ def __init__(self, discount_id=None, discount_type=None, amount=None, measure_id :param discount_type: 折扣优惠类型。 合同商务折扣:605:华为云BE场景下的合同商务折扣606:分销商BE场景下的合同商务折扣 伙伴授予折扣:607:合作伙伴授予折扣-折扣率 :type discount_type: int :param amount: 折扣的金额。 - :type amount: float + :type amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` :param measure_id: 度量单位标识。 1:元 :type measure_id: int :param discount_name: 折扣名称。 @@ -120,7 +120,7 @@ def amount(self): 折扣的金额。 :return: The amount of this DemandDiscountRatingResult. - :rtype: float + :rtype: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ return self._amount @@ -131,7 +131,7 @@ def amount(self, amount): 折扣的金额。 :param amount: The amount of this DemandDiscountRatingResult. - :type amount: float + :type amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ self._amount = amount diff --git a/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/discount_detail_info.py b/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/discount_detail_info.py index 7703669453..8c13d4c0a8 100644 --- a/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/discount_detail_info.py +++ b/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/discount_detail_info.py @@ -18,7 +18,7 @@ class DiscountDetailInfo: openapi_types = { 'promotion_type': 'str', - 'discount_amount': 'float', + 'discount_amount': 'decimal.Decimal', 'promotion_id': 'str', 'measure_id': 'int' } @@ -38,7 +38,7 @@ def __init__(self, promotion_type=None, discount_amount=None, promotion_id=None, :param promotion_type: 折扣类型。 500:代理订购指定折扣 501:代理订购指定减免 502:代理订购指定一口价 600:合同折扣返利 (商履折扣) 601:渠道框架合同折扣 602:专款专用合同折扣(特殊商务合同折扣) 603:线下直签合同折扣 604:电销授权合同折扣 605:商务合同折扣 606:渠道商务合同折扣 607:合作伙伴授权折扣 608:严选商品折扣 610:免单金额 700:促销折扣 (促销,只有包年/包月场景) 800:赠送奖励金 :type promotion_type: str :param discount_amount: 折扣金额。 - :type discount_amount: float + :type discount_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` :param promotion_id: 折扣类型对应的标识,可为合同ID或商务ID。 :type promotion_id: str :param measure_id: 金额单位,1:元 3:分,默认3 @@ -91,7 +91,7 @@ def discount_amount(self): 折扣金额。 :return: The discount_amount of this DiscountDetailInfo. - :rtype: float + :rtype: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ return self._discount_amount @@ -102,7 +102,7 @@ def discount_amount(self, discount_amount): 折扣金额。 :param discount_amount: The discount_amount of this DiscountDetailInfo. - :type discount_amount: float + :type discount_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ self._discount_amount = discount_amount diff --git a/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/invoice_request_info_intl.py b/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/invoice_request_info_intl.py index dc761b70f5..5803b407fd 100644 --- a/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/invoice_request_info_intl.py +++ b/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/invoice_request_info_intl.py @@ -23,7 +23,7 @@ class InvoiceRequestInfoIntl: 'channel_type': 'int', 'invoice_type': 'int', 'invoice_title': 'str', - 'invoice_amount': 'float', + 'invoice_amount': 'decimal.Decimal', 'invoice_method': 'int', 'invoice_class': 'int', 'invoice_state': 'int', @@ -84,7 +84,7 @@ def __init__(self, request_id=None, cancel_reason=None, title_type=None, channel :param invoice_title: 发票抬头。 :type invoice_title: str :param invoice_amount: 已开票金额(美元) 。 - :type invoice_amount: float + :type invoice_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` :param invoice_method: 开票方式。 0:账期1:到账2:订单 :type invoice_method: int :param invoice_class: 发票类别。 0:税票1:商票 @@ -327,7 +327,7 @@ def invoice_amount(self): 已开票金额(美元) 。 :return: The invoice_amount of this InvoiceRequestInfoIntl. - :rtype: float + :rtype: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ return self._invoice_amount @@ -338,7 +338,7 @@ def invoice_amount(self, invoice_amount): 已开票金额(美元) 。 :param invoice_amount: The invoice_amount of this InvoiceRequestInfoIntl. - :type invoice_amount: float + :type invoice_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ self._invoice_amount = invoice_amount diff --git a/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/list_monthly_expenditures_response.py b/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/list_monthly_expenditures_response.py index a6b50a8b59..ec853b80fb 100644 --- a/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/list_monthly_expenditures_response.py +++ b/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/list_monthly_expenditures_response.py @@ -22,13 +22,13 @@ class ListMonthlyExpendituresResponse(SdkResponse): 'error_msg': 'str', 'currency': 'str', 'total_count': 'int', - 'total_amount': 'float', - 'debt_amount': 'float', - 'coupon_amount': 'float', - 'cashcoupon_amount': 'float', - 'storedcard_amount': 'float', - 'debit_amount': 'float', - 'credit_amount': 'float', + 'total_amount': 'decimal.Decimal', + 'debt_amount': 'decimal.Decimal', + 'coupon_amount': 'decimal.Decimal', + 'cashcoupon_amount': 'decimal.Decimal', + 'storedcard_amount': 'decimal.Decimal', + 'debit_amount': 'decimal.Decimal', + 'credit_amount': 'decimal.Decimal', 'measure_id': 'int', 'bill_sums': 'list[BillSumRecordInfo]' } @@ -63,19 +63,19 @@ def __init__(self, error_code=None, error_msg=None, currency=None, total_count=N :param total_count: 总条数 :type total_count: int :param total_amount: 总金额(包含退订)。 - :type total_amount: float + :type total_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` :param debt_amount: 总欠费金额。 - :type debt_amount: float + :type debt_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` :param coupon_amount: 代金券金额。 - :type coupon_amount: float + :type coupon_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` :param cashcoupon_amount: 现金券金额,预留。 - :type cashcoupon_amount: float + :type cashcoupon_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` :param storedcard_amount: 储值卡金额,预留。 - :type storedcard_amount: float + :type storedcard_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` :param debit_amount: 现金账户金额。 - :type debit_amount: float + :type debit_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` :param credit_amount: 信用账户金额。 - :type credit_amount: float + :type credit_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` :param measure_id: 金额单位。 1:元3:分 默认值为3。 :type measure_id: int :param bill_sums: 账单记录,具体参考表3。 @@ -221,7 +221,7 @@ def total_amount(self): 总金额(包含退订)。 :return: The total_amount of this ListMonthlyExpendituresResponse. - :rtype: float + :rtype: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ return self._total_amount @@ -232,7 +232,7 @@ def total_amount(self, total_amount): 总金额(包含退订)。 :param total_amount: The total_amount of this ListMonthlyExpendituresResponse. - :type total_amount: float + :type total_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ self._total_amount = total_amount @@ -243,7 +243,7 @@ def debt_amount(self): 总欠费金额。 :return: The debt_amount of this ListMonthlyExpendituresResponse. - :rtype: float + :rtype: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ return self._debt_amount @@ -254,7 +254,7 @@ def debt_amount(self, debt_amount): 总欠费金额。 :param debt_amount: The debt_amount of this ListMonthlyExpendituresResponse. - :type debt_amount: float + :type debt_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ self._debt_amount = debt_amount @@ -265,7 +265,7 @@ def coupon_amount(self): 代金券金额。 :return: The coupon_amount of this ListMonthlyExpendituresResponse. - :rtype: float + :rtype: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ return self._coupon_amount @@ -276,7 +276,7 @@ def coupon_amount(self, coupon_amount): 代金券金额。 :param coupon_amount: The coupon_amount of this ListMonthlyExpendituresResponse. - :type coupon_amount: float + :type coupon_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ self._coupon_amount = coupon_amount @@ -287,7 +287,7 @@ def cashcoupon_amount(self): 现金券金额,预留。 :return: The cashcoupon_amount of this ListMonthlyExpendituresResponse. - :rtype: float + :rtype: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ return self._cashcoupon_amount @@ -298,7 +298,7 @@ def cashcoupon_amount(self, cashcoupon_amount): 现金券金额,预留。 :param cashcoupon_amount: The cashcoupon_amount of this ListMonthlyExpendituresResponse. - :type cashcoupon_amount: float + :type cashcoupon_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ self._cashcoupon_amount = cashcoupon_amount @@ -309,7 +309,7 @@ def storedcard_amount(self): 储值卡金额,预留。 :return: The storedcard_amount of this ListMonthlyExpendituresResponse. - :rtype: float + :rtype: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ return self._storedcard_amount @@ -320,7 +320,7 @@ def storedcard_amount(self, storedcard_amount): 储值卡金额,预留。 :param storedcard_amount: The storedcard_amount of this ListMonthlyExpendituresResponse. - :type storedcard_amount: float + :type storedcard_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ self._storedcard_amount = storedcard_amount @@ -331,7 +331,7 @@ def debit_amount(self): 现金账户金额。 :return: The debit_amount of this ListMonthlyExpendituresResponse. - :rtype: float + :rtype: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ return self._debit_amount @@ -342,7 +342,7 @@ def debit_amount(self, debit_amount): 现金账户金额。 :param debit_amount: The debit_amount of this ListMonthlyExpendituresResponse. - :type debit_amount: float + :type debit_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ self._debit_amount = debit_amount @@ -353,7 +353,7 @@ def credit_amount(self): 信用账户金额。 :return: The credit_amount of this ListMonthlyExpendituresResponse. - :rtype: float + :rtype: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ return self._credit_amount @@ -364,7 +364,7 @@ def credit_amount(self, credit_amount): 信用账户金额。 :param credit_amount: The credit_amount of this ListMonthlyExpendituresResponse. - :type credit_amount: float + :type credit_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ self._credit_amount = credit_amount diff --git a/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/list_postpaid_bill_sum_response.py b/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/list_postpaid_bill_sum_response.py index f4ac57fb85..6e26f431ea 100644 --- a/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/list_postpaid_bill_sum_response.py +++ b/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/list_postpaid_bill_sum_response.py @@ -19,11 +19,11 @@ class ListPostpaidBillSumResponse(SdkResponse): openapi_types = { 'bill_cycle': 'str', - 'initial_amount_due': 'float', - 'consume_amount': 'float', - 'refunds': 'float', - 'adjustments': 'float', - 'tax_amount': 'float', + 'initial_amount_due': 'decimal.Decimal', + 'consume_amount': 'decimal.Decimal', + 'refunds': 'decimal.Decimal', + 'adjustments': 'decimal.Decimal', + 'tax_amount': 'decimal.Decimal', 'currency': 'str' } @@ -45,15 +45,15 @@ def __init__(self, bill_cycle=None, initial_amount_due=None, consume_amount=None :param bill_cycle: 账单所归属的月份。只有成功才返回这个参数。 格式:YYYY-MM :type bill_cycle: str :param initial_amount_due: 账单中的应还金额(含税)。 应还金额(包含销项税)=消费金额+退款金额+调账金额 - :type initial_amount_due: float + :type initial_amount_due: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` :param consume_amount: 账单中的消费金额。 - :type consume_amount: float + :type consume_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` :param refunds: 账单中的退款金额。 - :type refunds: float + :type refunds: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` :param adjustments: 账单中的调账金额,即伙伴在账期内的调账信息如:欠款核销金额等。 - :type adjustments: float + :type adjustments: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` :param tax_amount: 账单中的销项税金额,销项税不计入应还金额。 - :type tax_amount: float + :type tax_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` :param currency: 只有成功才返回这个参数。 美金:USD :type currency: str """ @@ -113,7 +113,7 @@ def initial_amount_due(self): 账单中的应还金额(含税)。 应还金额(包含销项税)=消费金额+退款金额+调账金额 :return: The initial_amount_due of this ListPostpaidBillSumResponse. - :rtype: float + :rtype: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ return self._initial_amount_due @@ -124,7 +124,7 @@ def initial_amount_due(self, initial_amount_due): 账单中的应还金额(含税)。 应还金额(包含销项税)=消费金额+退款金额+调账金额 :param initial_amount_due: The initial_amount_due of this ListPostpaidBillSumResponse. - :type initial_amount_due: float + :type initial_amount_due: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ self._initial_amount_due = initial_amount_due @@ -135,7 +135,7 @@ def consume_amount(self): 账单中的消费金额。 :return: The consume_amount of this ListPostpaidBillSumResponse. - :rtype: float + :rtype: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ return self._consume_amount @@ -146,7 +146,7 @@ def consume_amount(self, consume_amount): 账单中的消费金额。 :param consume_amount: The consume_amount of this ListPostpaidBillSumResponse. - :type consume_amount: float + :type consume_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ self._consume_amount = consume_amount @@ -157,7 +157,7 @@ def refunds(self): 账单中的退款金额。 :return: The refunds of this ListPostpaidBillSumResponse. - :rtype: float + :rtype: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ return self._refunds @@ -168,7 +168,7 @@ def refunds(self, refunds): 账单中的退款金额。 :param refunds: The refunds of this ListPostpaidBillSumResponse. - :type refunds: float + :type refunds: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ self._refunds = refunds @@ -179,7 +179,7 @@ def adjustments(self): 账单中的调账金额,即伙伴在账期内的调账信息如:欠款核销金额等。 :return: The adjustments of this ListPostpaidBillSumResponse. - :rtype: float + :rtype: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ return self._adjustments @@ -190,7 +190,7 @@ def adjustments(self, adjustments): 账单中的调账金额,即伙伴在账期内的调账信息如:欠款核销金额等。 :param adjustments: The adjustments of this ListPostpaidBillSumResponse. - :type adjustments: float + :type adjustments: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ self._adjustments = adjustments @@ -201,7 +201,7 @@ def tax_amount(self): 账单中的销项税金额,销项税不计入应还金额。 :return: The tax_amount of this ListPostpaidBillSumResponse. - :rtype: float + :rtype: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ return self._tax_amount @@ -212,7 +212,7 @@ def tax_amount(self, tax_amount): 账单中的销项税金额,销项税不计入应还金额。 :param tax_amount: The tax_amount of this ListPostpaidBillSumResponse. - :type tax_amount: float + :type tax_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ self._tax_amount = tax_amount diff --git a/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/monthly_bill_res.py b/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/monthly_bill_res.py index ea449e1034..38b076d800 100644 --- a/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/monthly_bill_res.py +++ b/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/monthly_bill_res.py @@ -34,17 +34,17 @@ class MonthlyBillRes: 'enterprise_project_id': 'str', 'enterprise_project_name': 'str', 'charge_mode': 'int', - 'consume_amount': 'float', - 'cash_amount': 'float', - 'credit_amount': 'float', - 'coupon_amount': 'float', - 'flexipurchase_coupon_amount': 'float', - 'stored_card_amount': 'float', - 'bonus_amount': 'float', - 'debt_amount': 'float', - 'adjustment_amount': 'float', - 'official_amount': 'float', - 'discount_amount': 'float', + 'consume_amount': 'decimal.Decimal', + 'cash_amount': 'decimal.Decimal', + 'credit_amount': 'decimal.Decimal', + 'coupon_amount': 'decimal.Decimal', + 'flexipurchase_coupon_amount': 'decimal.Decimal', + 'stored_card_amount': 'decimal.Decimal', + 'bonus_amount': 'decimal.Decimal', + 'debt_amount': 'decimal.Decimal', + 'adjustment_amount': 'decimal.Decimal', + 'official_amount': 'decimal.Decimal', + 'discount_amount': 'decimal.Decimal', 'measure_id': 'int', 'period_type': 'int', 'root_resource_id': 'str', @@ -148,27 +148,27 @@ def __init__(self, cycle=None, bill_date=None, bill_type=None, customer_id=None, :param charge_mode: 计费模式。 1 : 包年/包月3:按需10:预留实例11:节省计划。 :type charge_mode: int :param consume_amount: 客户购买云服务类型的消费金额,包含代金券、现金券,精确到小数点后8位。 说明: consume_amount的值等于cash_amount,credit_amount,coupon_amount,flexipurchase_coupon_amount,stored_card_amount,bonus_amount,debt_amount,adjustment_amount的总和。 - :type consume_amount: float + :type consume_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` :param cash_amount: 现金支付金额。 - :type cash_amount: float + :type cash_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` :param credit_amount: 信用额度支付金额。 - :type credit_amount: float + :type credit_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` :param coupon_amount: 代金券支付金额。 - :type coupon_amount: float + :type coupon_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` :param flexipurchase_coupon_amount: 现金券支付金额。 - :type flexipurchase_coupon_amount: float + :type flexipurchase_coupon_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` :param stored_card_amount: 储值卡支付金额。 - :type stored_card_amount: float + :type stored_card_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` :param bonus_amount: 奖励金支付金额(用于现网客户未使用完的奖励金)。 - :type bonus_amount: float + :type bonus_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` :param debt_amount: 欠费金额。 - :type debt_amount: float + :type debt_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` :param adjustment_amount: 欠费核销金额。 - :type adjustment_amount: float + :type adjustment_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` :param official_amount: 官网价。 - :type official_amount: float + :type official_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` :param discount_amount: 对应官网价折扣金额。 - :type discount_amount: float + :type discount_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` :param measure_id: 金额单位。 1:元 :type measure_id: int :param period_type: 周期类型: 19:年20:月24:天25:小时5:一次性 @@ -716,7 +716,7 @@ def consume_amount(self): 客户购买云服务类型的消费金额,包含代金券、现金券,精确到小数点后8位。 说明: consume_amount的值等于cash_amount,credit_amount,coupon_amount,flexipurchase_coupon_amount,stored_card_amount,bonus_amount,debt_amount,adjustment_amount的总和。 :return: The consume_amount of this MonthlyBillRes. - :rtype: float + :rtype: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ return self._consume_amount @@ -727,7 +727,7 @@ def consume_amount(self, consume_amount): 客户购买云服务类型的消费金额,包含代金券、现金券,精确到小数点后8位。 说明: consume_amount的值等于cash_amount,credit_amount,coupon_amount,flexipurchase_coupon_amount,stored_card_amount,bonus_amount,debt_amount,adjustment_amount的总和。 :param consume_amount: The consume_amount of this MonthlyBillRes. - :type consume_amount: float + :type consume_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ self._consume_amount = consume_amount @@ -738,7 +738,7 @@ def cash_amount(self): 现金支付金额。 :return: The cash_amount of this MonthlyBillRes. - :rtype: float + :rtype: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ return self._cash_amount @@ -749,7 +749,7 @@ def cash_amount(self, cash_amount): 现金支付金额。 :param cash_amount: The cash_amount of this MonthlyBillRes. - :type cash_amount: float + :type cash_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ self._cash_amount = cash_amount @@ -760,7 +760,7 @@ def credit_amount(self): 信用额度支付金额。 :return: The credit_amount of this MonthlyBillRes. - :rtype: float + :rtype: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ return self._credit_amount @@ -771,7 +771,7 @@ def credit_amount(self, credit_amount): 信用额度支付金额。 :param credit_amount: The credit_amount of this MonthlyBillRes. - :type credit_amount: float + :type credit_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ self._credit_amount = credit_amount @@ -782,7 +782,7 @@ def coupon_amount(self): 代金券支付金额。 :return: The coupon_amount of this MonthlyBillRes. - :rtype: float + :rtype: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ return self._coupon_amount @@ -793,7 +793,7 @@ def coupon_amount(self, coupon_amount): 代金券支付金额。 :param coupon_amount: The coupon_amount of this MonthlyBillRes. - :type coupon_amount: float + :type coupon_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ self._coupon_amount = coupon_amount @@ -804,7 +804,7 @@ def flexipurchase_coupon_amount(self): 现金券支付金额。 :return: The flexipurchase_coupon_amount of this MonthlyBillRes. - :rtype: float + :rtype: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ return self._flexipurchase_coupon_amount @@ -815,7 +815,7 @@ def flexipurchase_coupon_amount(self, flexipurchase_coupon_amount): 现金券支付金额。 :param flexipurchase_coupon_amount: The flexipurchase_coupon_amount of this MonthlyBillRes. - :type flexipurchase_coupon_amount: float + :type flexipurchase_coupon_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ self._flexipurchase_coupon_amount = flexipurchase_coupon_amount @@ -826,7 +826,7 @@ def stored_card_amount(self): 储值卡支付金额。 :return: The stored_card_amount of this MonthlyBillRes. - :rtype: float + :rtype: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ return self._stored_card_amount @@ -837,7 +837,7 @@ def stored_card_amount(self, stored_card_amount): 储值卡支付金额。 :param stored_card_amount: The stored_card_amount of this MonthlyBillRes. - :type stored_card_amount: float + :type stored_card_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ self._stored_card_amount = stored_card_amount @@ -848,7 +848,7 @@ def bonus_amount(self): 奖励金支付金额(用于现网客户未使用完的奖励金)。 :return: The bonus_amount of this MonthlyBillRes. - :rtype: float + :rtype: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ return self._bonus_amount @@ -859,7 +859,7 @@ def bonus_amount(self, bonus_amount): 奖励金支付金额(用于现网客户未使用完的奖励金)。 :param bonus_amount: The bonus_amount of this MonthlyBillRes. - :type bonus_amount: float + :type bonus_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ self._bonus_amount = bonus_amount @@ -870,7 +870,7 @@ def debt_amount(self): 欠费金额。 :return: The debt_amount of this MonthlyBillRes. - :rtype: float + :rtype: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ return self._debt_amount @@ -881,7 +881,7 @@ def debt_amount(self, debt_amount): 欠费金额。 :param debt_amount: The debt_amount of this MonthlyBillRes. - :type debt_amount: float + :type debt_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ self._debt_amount = debt_amount @@ -892,7 +892,7 @@ def adjustment_amount(self): 欠费核销金额。 :return: The adjustment_amount of this MonthlyBillRes. - :rtype: float + :rtype: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ return self._adjustment_amount @@ -903,7 +903,7 @@ def adjustment_amount(self, adjustment_amount): 欠费核销金额。 :param adjustment_amount: The adjustment_amount of this MonthlyBillRes. - :type adjustment_amount: float + :type adjustment_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ self._adjustment_amount = adjustment_amount @@ -914,7 +914,7 @@ def official_amount(self): 官网价。 :return: The official_amount of this MonthlyBillRes. - :rtype: float + :rtype: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ return self._official_amount @@ -925,7 +925,7 @@ def official_amount(self, official_amount): 官网价。 :param official_amount: The official_amount of this MonthlyBillRes. - :type official_amount: float + :type official_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ self._official_amount = official_amount @@ -936,7 +936,7 @@ def discount_amount(self): 对应官网价折扣金额。 :return: The discount_amount of this MonthlyBillRes. - :rtype: float + :rtype: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ return self._discount_amount @@ -947,7 +947,7 @@ def discount_amount(self, discount_amount): 对应官网价折扣金额。 :param discount_amount: The discount_amount of this MonthlyBillRes. - :type discount_amount: float + :type discount_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ self._discount_amount = discount_amount diff --git a/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/official_website_rating_result.py b/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/official_website_rating_result.py index 552cf39511..9d3fe2d6ed 100644 --- a/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/official_website_rating_result.py +++ b/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/official_website_rating_result.py @@ -17,7 +17,7 @@ class OfficialWebsiteRatingResult: sensitive_list = [] openapi_types = { - 'official_website_amount': 'float', + 'official_website_amount': 'decimal.Decimal', 'measure_id': 'int', 'product_rating_results': 'list[PeriodProductOfficialRatingResult]' } @@ -34,7 +34,7 @@ def __init__(self, official_website_amount=None, measure_id=None, product_rating The model defined in huaweicloud sdk :param official_website_amount: 包年/包月产品的官网价。 - :type official_website_amount: float + :type official_website_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` :param measure_id: 价格度量单位标识。 1:元 :type measure_id: int :param product_rating_results: 产品询价结果,具体参见表5。 @@ -62,7 +62,7 @@ def official_website_amount(self): 包年/包月产品的官网价。 :return: The official_website_amount of this OfficialWebsiteRatingResult. - :rtype: float + :rtype: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ return self._official_website_amount @@ -73,7 +73,7 @@ def official_website_amount(self, official_website_amount): 包年/包月产品的官网价。 :param official_website_amount: The official_website_amount of this OfficialWebsiteRatingResult. - :type official_website_amount: float + :type official_website_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ self._official_website_amount = official_website_amount diff --git a/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/optional_discount_rating_result.py b/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/optional_discount_rating_result.py index 4ed0f4b24d..769bc00ef3 100644 --- a/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/optional_discount_rating_result.py +++ b/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/optional_discount_rating_result.py @@ -18,9 +18,9 @@ class OptionalDiscountRatingResult: openapi_types = { 'discount_id': 'str', - 'amount': 'float', - 'official_website_amount': 'float', - 'discount_amount': 'float', + 'amount': 'decimal.Decimal', + 'official_website_amount': 'decimal.Decimal', + 'discount_amount': 'decimal.Decimal', 'measure_id': 'int', 'discount_type': 'int', 'discount_name': 'str', @@ -48,11 +48,11 @@ def __init__(self, discount_id=None, amount=None, official_website_amount=None, :param discount_id: 折扣优惠ID。 :type discount_id: str :param amount: 总额,即最终优惠后的金额。 amount= official_website_amount - discountAmount。 - :type amount: float + :type amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` :param official_website_amount: 包年/包月产品的官网价。 - :type official_website_amount: float + :type official_website_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` :param discount_amount: 可选折扣优惠额,如商务折扣、伙伴折扣、促销折扣和折扣券选用时的优惠额。 - :type discount_amount: float + :type discount_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` :param measure_id: 价格度量单位标识。 1:元 :type measure_id: int :param discount_type: 折扣优惠类型。 合同商务折扣:605:华为云BE场景下的合同商务折扣606:分销商BE场景下的合同商务折扣 伙伴授予折扣:607:合作伙伴授予折扣-折扣率 @@ -126,7 +126,7 @@ def amount(self): 总额,即最终优惠后的金额。 amount= official_website_amount - discountAmount。 :return: The amount of this OptionalDiscountRatingResult. - :rtype: float + :rtype: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ return self._amount @@ -137,7 +137,7 @@ def amount(self, amount): 总额,即最终优惠后的金额。 amount= official_website_amount - discountAmount。 :param amount: The amount of this OptionalDiscountRatingResult. - :type amount: float + :type amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ self._amount = amount @@ -148,7 +148,7 @@ def official_website_amount(self): 包年/包月产品的官网价。 :return: The official_website_amount of this OptionalDiscountRatingResult. - :rtype: float + :rtype: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ return self._official_website_amount @@ -159,7 +159,7 @@ def official_website_amount(self, official_website_amount): 包年/包月产品的官网价。 :param official_website_amount: The official_website_amount of this OptionalDiscountRatingResult. - :type official_website_amount: float + :type official_website_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ self._official_website_amount = official_website_amount @@ -170,7 +170,7 @@ def discount_amount(self): 可选折扣优惠额,如商务折扣、伙伴折扣、促销折扣和折扣券选用时的优惠额。 :return: The discount_amount of this OptionalDiscountRatingResult. - :rtype: float + :rtype: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ return self._discount_amount @@ -181,7 +181,7 @@ def discount_amount(self, discount_amount): 可选折扣优惠额,如商务折扣、伙伴折扣、促销折扣和折扣券选用时的优惠额。 :param discount_amount: The discount_amount of this OptionalDiscountRatingResult. - :type discount_amount: float + :type discount_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ self._discount_amount = discount_amount diff --git a/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/order_line_item_v3.py b/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/order_line_item_v3.py index 3e99ace951..2ee97ecb17 100644 --- a/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/order_line_item_v3.py +++ b/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/order_line_item_v3.py @@ -19,8 +19,8 @@ class OrderLineItemV3: openapi_types = { 'order_line_item_ids': 'list[str]', 'discount_mode': 'int', - 'discount_amount': 'float', - 'discount_ratio': 'float' + 'discount_amount': 'decimal.Decimal', + 'discount_ratio': 'decimal.Decimal' } attribute_map = { @@ -40,9 +40,9 @@ def __init__(self, order_line_item_ids=None, discount_mode=None, discount_amount :param discount_mode: 订单可用折扣的模式 。 0:折扣1:一口价2:满减 :type discount_mode: int :param discount_amount: 订单可用的折扣金额(即减免金额)。 - :type discount_amount: float + :type discount_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` :param discount_ratio: 订单可用的折扣比例。 - :type discount_ratio: float + :type discount_ratio: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ @@ -109,7 +109,7 @@ def discount_amount(self): 订单可用的折扣金额(即减免金额)。 :return: The discount_amount of this OrderLineItemV3. - :rtype: float + :rtype: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ return self._discount_amount @@ -120,7 +120,7 @@ def discount_amount(self, discount_amount): 订单可用的折扣金额(即减免金额)。 :param discount_amount: The discount_amount of this OrderLineItemV3. - :type discount_amount: float + :type discount_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ self._discount_amount = discount_amount @@ -131,7 +131,7 @@ def discount_ratio(self): 订单可用的折扣比例。 :return: The discount_ratio of this OrderLineItemV3. - :rtype: float + :rtype: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ return self._discount_ratio @@ -142,7 +142,7 @@ def discount_ratio(self, discount_ratio): 订单可用的折扣比例。 :param discount_ratio: The discount_ratio of this OrderLineItemV3. - :type discount_ratio: float + :type discount_ratio: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ self._discount_ratio = discount_ratio diff --git a/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/order_refund_info_v2.py b/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/order_refund_info_v2.py index 096ca3d79e..267128e2ab 100644 --- a/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/order_refund_info_v2.py +++ b/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/order_refund_info_v2.py @@ -18,7 +18,7 @@ class OrderRefundInfoV2: openapi_types = { 'id': 'str', - 'amount': 'float', + 'amount': 'decimal.Decimal', 'measure_id': 'str', 'customer_id': 'str', 'resource_type_code': 'str', @@ -50,7 +50,7 @@ def __init__(self, id=None, amount=None, measure_id=None, customer_id=None, reso :param id: 该记录的ID。 :type id: str :param amount: 金额。 金额为负数,表示退订金额。金额为正数,表示已消费金额或收取的退订手续费。 - :type amount: float + :type amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` :param measure_id: 金额的度量单位。 1:元 :type measure_id: str :param customer_id: 客户账号ID。 @@ -126,7 +126,7 @@ def amount(self): 金额。 金额为负数,表示退订金额。金额为正数,表示已消费金额或收取的退订手续费。 :return: The amount of this OrderRefundInfoV2. - :rtype: float + :rtype: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ return self._amount @@ -137,7 +137,7 @@ def amount(self, amount): 金额。 金额为负数,表示退订金额。金额为正数,表示已消费金额或收取的退订手续费。 :param amount: The amount of this OrderRefundInfoV2. - :type amount: float + :type amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ self._amount = amount diff --git a/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/period_product_official_rating_result.py b/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/period_product_official_rating_result.py index e61ad25dc0..0434449279 100644 --- a/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/period_product_official_rating_result.py +++ b/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/period_product_official_rating_result.py @@ -19,7 +19,7 @@ class PeriodProductOfficialRatingResult: openapi_types = { 'id': 'str', 'product_id': 'str', - 'official_website_amount': 'float', + 'official_website_amount': 'decimal.Decimal', 'measure_id': 'int' } @@ -40,7 +40,7 @@ def __init__(self, id=None, product_id=None, official_website_amount=None, measu :param product_id: 包年/包月产品的ID。 :type product_id: str :param official_website_amount: 包年/包月产品的官网价。 - :type official_website_amount: float + :type official_website_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` :param measure_id: 价格度量单位标识。 1:元 :type measure_id: int """ @@ -113,7 +113,7 @@ def official_website_amount(self): 包年/包月产品的官网价。 :return: The official_website_amount of this PeriodProductOfficialRatingResult. - :rtype: float + :rtype: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ return self._official_website_amount @@ -124,7 +124,7 @@ def official_website_amount(self, official_website_amount): 包年/包月产品的官网价。 :param official_website_amount: The official_website_amount of this PeriodProductOfficialRatingResult. - :type official_website_amount: float + :type official_website_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ self._official_website_amount = official_website_amount diff --git a/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/period_product_rating_result.py b/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/period_product_rating_result.py index 76b9211812..3c1a883046 100644 --- a/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/period_product_rating_result.py +++ b/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/period_product_rating_result.py @@ -19,9 +19,9 @@ class PeriodProductRatingResult: openapi_types = { 'id': 'str', 'product_id': 'str', - 'amount': 'float', - 'official_website_amount': 'float', - 'discount_amount': 'float', + 'amount': 'decimal.Decimal', + 'official_website_amount': 'decimal.Decimal', + 'discount_amount': 'decimal.Decimal', 'measure_id': 'int', 'limit': 'int' } @@ -46,11 +46,11 @@ def __init__(self, id=None, product_id=None, amount=None, official_website_amoun :param product_id: 包年/包月产品的ID。 :type product_id: str :param amount: 总额,即最终优惠后的金额。 amount= official_website_amount - discountAmount。 - :type amount: float + :type amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` :param official_website_amount: 包年/包月产品的官网价。 - :type official_website_amount: float + :type official_website_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` :param discount_amount: 可选折扣优惠额,如商务折扣、伙伴折扣、促销折扣和折扣券选用时的优惠额。 - :type discount_amount: float + :type discount_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` :param measure_id: 价格度量单位标识。 1:元 :type measure_id: int :param limit: |参数名称:每页数量| |参数的约束及描述:该参数非必填,且只允许1-100数字,默认10,最多100| @@ -134,7 +134,7 @@ def amount(self): 总额,即最终优惠后的金额。 amount= official_website_amount - discountAmount。 :return: The amount of this PeriodProductRatingResult. - :rtype: float + :rtype: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ return self._amount @@ -145,7 +145,7 @@ def amount(self, amount): 总额,即最终优惠后的金额。 amount= official_website_amount - discountAmount。 :param amount: The amount of this PeriodProductRatingResult. - :type amount: float + :type amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ self._amount = amount @@ -156,7 +156,7 @@ def official_website_amount(self): 包年/包月产品的官网价。 :return: The official_website_amount of this PeriodProductRatingResult. - :rtype: float + :rtype: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ return self._official_website_amount @@ -167,7 +167,7 @@ def official_website_amount(self, official_website_amount): 包年/包月产品的官网价。 :param official_website_amount: The official_website_amount of this PeriodProductRatingResult. - :type official_website_amount: float + :type official_website_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ self._official_website_amount = official_website_amount @@ -178,7 +178,7 @@ def discount_amount(self): 可选折扣优惠额,如商务折扣、伙伴折扣、促销折扣和折扣券选用时的优惠额。 :return: The discount_amount of this PeriodProductRatingResult. - :rtype: float + :rtype: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ return self._discount_amount @@ -189,7 +189,7 @@ def discount_amount(self, discount_amount): 可选折扣优惠额,如商务折扣、伙伴折扣、促销折扣和折扣券选用时的优惠额。 :param discount_amount: The discount_amount of this PeriodProductRatingResult. - :type discount_amount: float + :type discount_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ self._discount_amount = discount_amount diff --git a/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/renew_inquiry_result_info.py b/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/renew_inquiry_result_info.py index 11d88cace4..53ef318108 100644 --- a/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/renew_inquiry_result_info.py +++ b/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/renew_inquiry_result_info.py @@ -31,7 +31,7 @@ def __init__(self, resource_id=None, amount=None): The model defined in huaweicloud sdk - :param resource_id: |参数名称:资源ID。| |参数约束及描述:资源ID。| + :param resource_id: |参数名称:资源ID。| |参数约束及描述:资源ID。请求携带“include_relative_resources”字段,会返回关联资源的主资源ID和续订金额| :type resource_id: str :param amount: |参数名称:主资源(包含从资源)续订金额。单位为元| |参数约束及描述:主资源(包含从资源)续订金额。单位为元| :type amount: str @@ -52,7 +52,7 @@ def __init__(self, resource_id=None, amount=None): def resource_id(self): """Gets the resource_id of this RenewInquiryResultInfo. - |参数名称:资源ID。| |参数约束及描述:资源ID。| + |参数名称:资源ID。| |参数约束及描述:资源ID。请求携带“include_relative_resources”字段,会返回关联资源的主资源ID和续订金额| :return: The resource_id of this RenewInquiryResultInfo. :rtype: str @@ -63,7 +63,7 @@ def resource_id(self): def resource_id(self, resource_id): """Sets the resource_id of this RenewInquiryResultInfo. - |参数名称:资源ID。| |参数约束及描述:资源ID。| + |参数名称:资源ID。| |参数约束及描述:资源ID。请求携带“include_relative_resources”字段,会返回关联资源的主资源ID和续订金额| :param resource_id: The resource_id of this RenewInquiryResultInfo. :type resource_id: str diff --git a/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/res_fee_record_v2.py b/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/res_fee_record_v2.py index 103b5bfdca..4accef92cc 100644 --- a/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/res_fee_record_v2.py +++ b/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/res_fee_record_v2.py @@ -35,7 +35,7 @@ class ResFeeRecordV2: 'product_name': 'str', 'product_spec_desc': 'str', 'sku_code': 'str', - 'spec_size': 'float', + 'spec_size': 'decimal.Decimal', 'spec_size_measure_id': 'int', 'trade_id': 'str', 'id': 'str', @@ -46,25 +46,25 @@ class ResFeeRecordV2: 'order_id': 'str', 'period_type': 'str', 'usage_type': 'str', - 'usage': 'float', + 'usage': 'decimal.Decimal', 'usage_measure_id': 'int', - 'free_resource_usage': 'float', + 'free_resource_usage': 'decimal.Decimal', 'free_resource_measure_id': 'int', - 'ri_usage': 'float', + 'ri_usage': 'decimal.Decimal', 'ri_usage_measure_id': 'int', - 'unit_price': 'float', + 'unit_price': 'decimal.Decimal', 'unit': 'str', - 'official_amount': 'float', - 'discount_amount': 'float', - 'amount': 'float', - 'cash_amount': 'float', - 'credit_amount': 'float', - 'coupon_amount': 'float', - 'flexipurchase_coupon_amount': 'float', - 'stored_card_amount': 'float', - 'bonus_amount': 'float', - 'debt_amount': 'float', - 'adjustment_amount': 'float', + 'official_amount': 'decimal.Decimal', + 'discount_amount': 'decimal.Decimal', + 'amount': 'decimal.Decimal', + 'cash_amount': 'decimal.Decimal', + 'credit_amount': 'decimal.Decimal', + 'coupon_amount': 'decimal.Decimal', + 'flexipurchase_coupon_amount': 'decimal.Decimal', + 'stored_card_amount': 'decimal.Decimal', + 'bonus_amount': 'decimal.Decimal', + 'debt_amount': 'decimal.Decimal', + 'adjustment_amount': 'decimal.Decimal', 'measure_id': 'int', 'formula': 'str', 'sub_service_type_code': 'str', @@ -176,7 +176,7 @@ def __init__(self, bill_date=None, bill_type=None, customer_id=None, region=None :param sku_code: SKU编码,在账单中唯一标识一个资源的规格。 :type sku_code: str :param spec_size: 产品的实例大小,仅线性产品有效。 说明: 线性产品是指订购时需要指定大小的产品。例如硬盘在订购时需选择10G、20G等不同大小规格。 - :type spec_size: float + :type spec_size: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` :param spec_size_measure_id: 产品实例大小的单位,仅线性产品有该字段。 您可以调用查询度量单位列表接口获取。 :type spec_size_measure_id: int :param trade_id: 订单ID或交易ID,扣费维度的唯一标识。 @@ -198,43 +198,43 @@ def __init__(self, bill_date=None, bill_type=None, customer_id=None, region=None :param usage_type: 资源使用量的类型,您可以调用查询使用量类型列表接口获取。 :type usage_type: str :param usage: 资源的使用量。 - :type usage: float + :type usage: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` :param usage_measure_id: 资源使用量的度量单位,您可以调用查询度量单位列表接口获取。 :type usage_measure_id: int :param free_resource_usage: 套餐内使用量。 - :type free_resource_usage: float + :type free_resource_usage: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` :param free_resource_measure_id: 套餐内使用量的度量单位,您可以调用查询度量单位列表接口获取。 :type free_resource_measure_id: int :param ri_usage: 预留实例使用量。 - :type ri_usage: float + :type ri_usage: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` :param ri_usage_measure_id: 预留实例使用量单位。 :type ri_usage_measure_id: int :param unit_price: 产品的单价。 按需产品的单价,只有简单定价,不分档的场景会返回。 包周期产品的单价,只有包周期的如下场景会返回:包周期订购/续订/降配/升配/扩容简单定价,不分档 预留实例的单价,只有如下场景下会返回:订购/续订/降配/升配/扩容/按时计费简单定价,不分档 - :type unit_price: float + :type unit_price: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` :param unit: 产品的单价单位。 线性产品的单价单位为“元/{线性单位}/月”或“元/{线性单位}/小时”等。非线性产品的单价单位为“元/月”或“元/小时”等。 说明: “线性单位”为线性产品(即订购时需要指定大小的产品)的大小的单位,比如硬盘的线性单位为GB,带宽的线性单位为Mbps。 :type unit: str :param official_amount: 官网价,华为云商品在官网上未叠加应用商务折扣、促销折扣等优惠的销售价格。 - :type official_amount: float + :type official_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` :param discount_amount: 优惠金额,用户使用云服务享受折扣优惠如商务折扣、伙伴授予折扣以及促销优惠等减免的金额。 - :type discount_amount: float + :type discount_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` :param amount: 应付金额,用户使用云服务享受折扣优惠后需要支付的费用金额,包括代金券金额,精确到小数点后8位。 说明: amount的值等于cash_amount,credit_amount,coupon_amount,flexipurchase_coupon_amount,stored_card_amount,bonus_amount,debt_amount,adjustment_amount的总和。 - :type amount: float + :type amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` :param cash_amount: 现金支付金额。 - :type cash_amount: float + :type cash_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` :param credit_amount: 信用额度支付金额。 - :type credit_amount: float + :type credit_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` :param coupon_amount: 代金券支付金额。 - :type coupon_amount: float + :type coupon_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` :param flexipurchase_coupon_amount: 现金券支付金额。 - :type flexipurchase_coupon_amount: float + :type flexipurchase_coupon_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` :param stored_card_amount: 储值卡支付金额。 - :type stored_card_amount: float + :type stored_card_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` :param bonus_amount: 奖励金支付金额(用于现网客户未使用完的奖励金)。 - :type bonus_amount: float + :type bonus_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` :param debt_amount: 欠费金额。 - :type debt_amount: float + :type debt_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` :param adjustment_amount: 欠费核销金额。 - :type adjustment_amount: float + :type adjustment_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` :param measure_id: 金额单位。 1:元 :type measure_id: int :param formula: 实付金额计算公式。当前只包含如下场景: 按需简单定价 按需线性定价 包年包月新购和续费的简单定价 包年包月新购和续费的线性定价 说明: 实付金额计算公式得到的金额值等于amount - coupon_amount的差值。 @@ -829,7 +829,7 @@ def spec_size(self): 产品的实例大小,仅线性产品有效。 说明: 线性产品是指订购时需要指定大小的产品。例如硬盘在订购时需选择10G、20G等不同大小规格。 :return: The spec_size of this ResFeeRecordV2. - :rtype: float + :rtype: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ return self._spec_size @@ -840,7 +840,7 @@ def spec_size(self, spec_size): 产品的实例大小,仅线性产品有效。 说明: 线性产品是指订购时需要指定大小的产品。例如硬盘在订购时需选择10G、20G等不同大小规格。 :param spec_size: The spec_size of this ResFeeRecordV2. - :type spec_size: float + :type spec_size: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ self._spec_size = spec_size @@ -1071,7 +1071,7 @@ def usage(self): 资源的使用量。 :return: The usage of this ResFeeRecordV2. - :rtype: float + :rtype: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ return self._usage @@ -1082,7 +1082,7 @@ def usage(self, usage): 资源的使用量。 :param usage: The usage of this ResFeeRecordV2. - :type usage: float + :type usage: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ self._usage = usage @@ -1115,7 +1115,7 @@ def free_resource_usage(self): 套餐内使用量。 :return: The free_resource_usage of this ResFeeRecordV2. - :rtype: float + :rtype: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ return self._free_resource_usage @@ -1126,7 +1126,7 @@ def free_resource_usage(self, free_resource_usage): 套餐内使用量。 :param free_resource_usage: The free_resource_usage of this ResFeeRecordV2. - :type free_resource_usage: float + :type free_resource_usage: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ self._free_resource_usage = free_resource_usage @@ -1159,7 +1159,7 @@ def ri_usage(self): 预留实例使用量。 :return: The ri_usage of this ResFeeRecordV2. - :rtype: float + :rtype: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ return self._ri_usage @@ -1170,7 +1170,7 @@ def ri_usage(self, ri_usage): 预留实例使用量。 :param ri_usage: The ri_usage of this ResFeeRecordV2. - :type ri_usage: float + :type ri_usage: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ self._ri_usage = ri_usage @@ -1203,7 +1203,7 @@ def unit_price(self): 产品的单价。 按需产品的单价,只有简单定价,不分档的场景会返回。 包周期产品的单价,只有包周期的如下场景会返回:包周期订购/续订/降配/升配/扩容简单定价,不分档 预留实例的单价,只有如下场景下会返回:订购/续订/降配/升配/扩容/按时计费简单定价,不分档 :return: The unit_price of this ResFeeRecordV2. - :rtype: float + :rtype: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ return self._unit_price @@ -1214,7 +1214,7 @@ def unit_price(self, unit_price): 产品的单价。 按需产品的单价,只有简单定价,不分档的场景会返回。 包周期产品的单价,只有包周期的如下场景会返回:包周期订购/续订/降配/升配/扩容简单定价,不分档 预留实例的单价,只有如下场景下会返回:订购/续订/降配/升配/扩容/按时计费简单定价,不分档 :param unit_price: The unit_price of this ResFeeRecordV2. - :type unit_price: float + :type unit_price: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ self._unit_price = unit_price @@ -1247,7 +1247,7 @@ def official_amount(self): 官网价,华为云商品在官网上未叠加应用商务折扣、促销折扣等优惠的销售价格。 :return: The official_amount of this ResFeeRecordV2. - :rtype: float + :rtype: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ return self._official_amount @@ -1258,7 +1258,7 @@ def official_amount(self, official_amount): 官网价,华为云商品在官网上未叠加应用商务折扣、促销折扣等优惠的销售价格。 :param official_amount: The official_amount of this ResFeeRecordV2. - :type official_amount: float + :type official_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ self._official_amount = official_amount @@ -1269,7 +1269,7 @@ def discount_amount(self): 优惠金额,用户使用云服务享受折扣优惠如商务折扣、伙伴授予折扣以及促销优惠等减免的金额。 :return: The discount_amount of this ResFeeRecordV2. - :rtype: float + :rtype: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ return self._discount_amount @@ -1280,7 +1280,7 @@ def discount_amount(self, discount_amount): 优惠金额,用户使用云服务享受折扣优惠如商务折扣、伙伴授予折扣以及促销优惠等减免的金额。 :param discount_amount: The discount_amount of this ResFeeRecordV2. - :type discount_amount: float + :type discount_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ self._discount_amount = discount_amount @@ -1291,7 +1291,7 @@ def amount(self): 应付金额,用户使用云服务享受折扣优惠后需要支付的费用金额,包括代金券金额,精确到小数点后8位。 说明: amount的值等于cash_amount,credit_amount,coupon_amount,flexipurchase_coupon_amount,stored_card_amount,bonus_amount,debt_amount,adjustment_amount的总和。 :return: The amount of this ResFeeRecordV2. - :rtype: float + :rtype: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ return self._amount @@ -1302,7 +1302,7 @@ def amount(self, amount): 应付金额,用户使用云服务享受折扣优惠后需要支付的费用金额,包括代金券金额,精确到小数点后8位。 说明: amount的值等于cash_amount,credit_amount,coupon_amount,flexipurchase_coupon_amount,stored_card_amount,bonus_amount,debt_amount,adjustment_amount的总和。 :param amount: The amount of this ResFeeRecordV2. - :type amount: float + :type amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ self._amount = amount @@ -1313,7 +1313,7 @@ def cash_amount(self): 现金支付金额。 :return: The cash_amount of this ResFeeRecordV2. - :rtype: float + :rtype: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ return self._cash_amount @@ -1324,7 +1324,7 @@ def cash_amount(self, cash_amount): 现金支付金额。 :param cash_amount: The cash_amount of this ResFeeRecordV2. - :type cash_amount: float + :type cash_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ self._cash_amount = cash_amount @@ -1335,7 +1335,7 @@ def credit_amount(self): 信用额度支付金额。 :return: The credit_amount of this ResFeeRecordV2. - :rtype: float + :rtype: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ return self._credit_amount @@ -1346,7 +1346,7 @@ def credit_amount(self, credit_amount): 信用额度支付金额。 :param credit_amount: The credit_amount of this ResFeeRecordV2. - :type credit_amount: float + :type credit_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ self._credit_amount = credit_amount @@ -1357,7 +1357,7 @@ def coupon_amount(self): 代金券支付金额。 :return: The coupon_amount of this ResFeeRecordV2. - :rtype: float + :rtype: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ return self._coupon_amount @@ -1368,7 +1368,7 @@ def coupon_amount(self, coupon_amount): 代金券支付金额。 :param coupon_amount: The coupon_amount of this ResFeeRecordV2. - :type coupon_amount: float + :type coupon_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ self._coupon_amount = coupon_amount @@ -1379,7 +1379,7 @@ def flexipurchase_coupon_amount(self): 现金券支付金额。 :return: The flexipurchase_coupon_amount of this ResFeeRecordV2. - :rtype: float + :rtype: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ return self._flexipurchase_coupon_amount @@ -1390,7 +1390,7 @@ def flexipurchase_coupon_amount(self, flexipurchase_coupon_amount): 现金券支付金额。 :param flexipurchase_coupon_amount: The flexipurchase_coupon_amount of this ResFeeRecordV2. - :type flexipurchase_coupon_amount: float + :type flexipurchase_coupon_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ self._flexipurchase_coupon_amount = flexipurchase_coupon_amount @@ -1401,7 +1401,7 @@ def stored_card_amount(self): 储值卡支付金额。 :return: The stored_card_amount of this ResFeeRecordV2. - :rtype: float + :rtype: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ return self._stored_card_amount @@ -1412,7 +1412,7 @@ def stored_card_amount(self, stored_card_amount): 储值卡支付金额。 :param stored_card_amount: The stored_card_amount of this ResFeeRecordV2. - :type stored_card_amount: float + :type stored_card_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ self._stored_card_amount = stored_card_amount @@ -1423,7 +1423,7 @@ def bonus_amount(self): 奖励金支付金额(用于现网客户未使用完的奖励金)。 :return: The bonus_amount of this ResFeeRecordV2. - :rtype: float + :rtype: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ return self._bonus_amount @@ -1434,7 +1434,7 @@ def bonus_amount(self, bonus_amount): 奖励金支付金额(用于现网客户未使用完的奖励金)。 :param bonus_amount: The bonus_amount of this ResFeeRecordV2. - :type bonus_amount: float + :type bonus_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ self._bonus_amount = bonus_amount @@ -1445,7 +1445,7 @@ def debt_amount(self): 欠费金额。 :return: The debt_amount of this ResFeeRecordV2. - :rtype: float + :rtype: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ return self._debt_amount @@ -1456,7 +1456,7 @@ def debt_amount(self, debt_amount): 欠费金额。 :param debt_amount: The debt_amount of this ResFeeRecordV2. - :type debt_amount: float + :type debt_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ self._debt_amount = debt_amount @@ -1467,7 +1467,7 @@ def adjustment_amount(self): 欠费核销金额。 :return: The adjustment_amount of this ResFeeRecordV2. - :rtype: float + :rtype: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ return self._adjustment_amount @@ -1478,7 +1478,7 @@ def adjustment_amount(self, adjustment_amount): 欠费核销金额。 :param adjustment_amount: The adjustment_amount of this ResFeeRecordV2. - :type adjustment_amount: float + :type adjustment_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ self._adjustment_amount = adjustment_amount diff --git a/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/show_customer_account_balances_response.py b/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/show_customer_account_balances_response.py index a403ba2f60..f4101cce73 100644 --- a/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/show_customer_account_balances_response.py +++ b/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/show_customer_account_balances_response.py @@ -19,7 +19,7 @@ class ShowCustomerAccountBalancesResponse(SdkResponse): openapi_types = { 'account_balances': 'list[AccountBalanceV3]', - 'debt_amount': 'float', + 'debt_amount': 'decimal.Decimal', 'measure_id': 'int', 'currency': 'str' } @@ -39,7 +39,7 @@ def __init__(self, account_balances=None, debt_amount=None, measure_id=None, cur :param account_balances: 账户余额列表。 具体请参见表1。 :type account_balances: list[:class:`huaweicloudsdkbssintl.v2.AccountBalanceV3`] :param debt_amount: 欠款总金额。 - :type debt_amount: float + :type debt_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` :param measure_id: 度量单位。 1:元 :type measure_id: int :param currency: 币种。 USD:美元。 @@ -92,7 +92,7 @@ def debt_amount(self): 欠款总金额。 :return: The debt_amount of this ShowCustomerAccountBalancesResponse. - :rtype: float + :rtype: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ return self._debt_amount @@ -103,7 +103,7 @@ def debt_amount(self, debt_amount): 欠款总金额。 :param debt_amount: The debt_amount of this ShowCustomerAccountBalancesResponse. - :type debt_amount: float + :type debt_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ self._debt_amount = debt_amount diff --git a/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/show_sub_customer_budget_response.py b/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/show_sub_customer_budget_response.py index 4ca2845633..4c2f47e0ee 100644 --- a/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/show_sub_customer_budget_response.py +++ b/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/show_sub_customer_budget_response.py @@ -18,8 +18,8 @@ class ShowSubCustomerBudgetResponse(SdkResponse): sensitive_list = [] openapi_types = { - 'budget_amount': 'float', - 'used_amount': 'float', + 'budget_amount': 'decimal.Decimal', + 'used_amount': 'decimal.Decimal', 'measure_id': 'int', 'currency': 'str', 'budget_type': 'str' @@ -39,9 +39,9 @@ def __init__(self, budget_amount=None, used_amount=None, measure_id=None, curren The model defined in huaweicloud sdk :param budget_amount: 初始预算金额。 - :type budget_amount: float + :type budget_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` :param used_amount: 已经使用的预算。该预算存在一定的时延和误差。 - :type used_amount: float + :type used_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` :param measure_id: 金额单位。 1:元 :type measure_id: int :param currency: 币种。 USD:美金 @@ -77,7 +77,7 @@ def budget_amount(self): 初始预算金额。 :return: The budget_amount of this ShowSubCustomerBudgetResponse. - :rtype: float + :rtype: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ return self._budget_amount @@ -88,7 +88,7 @@ def budget_amount(self, budget_amount): 初始预算金额。 :param budget_amount: The budget_amount of this ShowSubCustomerBudgetResponse. - :type budget_amount: float + :type budget_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ self._budget_amount = budget_amount @@ -99,7 +99,7 @@ def used_amount(self): 已经使用的预算。该预算存在一定的时延和误差。 :return: The used_amount of this ShowSubCustomerBudgetResponse. - :rtype: float + :rtype: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ return self._used_amount @@ -110,7 +110,7 @@ def used_amount(self, used_amount): 已经使用的预算。该预算存在一定的时延和误差。 :param used_amount: The used_amount of this ShowSubCustomerBudgetResponse. - :type used_amount: float + :type used_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ self._used_amount = used_amount diff --git a/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/tax_info.py b/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/tax_info.py index 0005957c19..81f9f8d94c 100644 --- a/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/tax_info.py +++ b/huaweicloud-sdk-bssintl/huaweicloudsdkbssintl/v2/model/tax_info.py @@ -20,7 +20,7 @@ class TaxInfo: 'tax_class': 'str', 'tax_rate': 'str', 'sub_tax_class': 'str', - 'tax_amount': 'float' + 'tax_amount': 'decimal.Decimal' } attribute_map = { @@ -42,7 +42,7 @@ def __init__(self, tax_class=None, tax_rate=None, sub_tax_class=None, tax_amount :param sub_tax_class: 税种子类。 PISCOFINSCGSTSGSTIGSTISSWHTVAT :type sub_tax_class: str :param tax_amount: 税金金额。 单位:美元 - :type tax_amount: float + :type tax_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ @@ -135,7 +135,7 @@ def tax_amount(self): 税金金额。 单位:美元 :return: The tax_amount of this TaxInfo. - :rtype: float + :rtype: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ return self._tax_amount @@ -146,7 +146,7 @@ def tax_amount(self, tax_amount): 税金金额。 单位:美元 :param tax_amount: The tax_amount of this TaxInfo. - :type tax_amount: float + :type tax_amount: :class:`huaweicloudsdkbssintl.v2.decimal.Decimal` """ self._tax_amount = tax_amount diff --git a/huaweicloud-sdk-bssintl/requirements.txt b/huaweicloud-sdk-bssintl/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-bssintl/requirements.txt +++ b/huaweicloud-sdk-bssintl/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-bssintl/setup.py b/huaweicloud-sdk-bssintl/setup.py index b4c07f0a92..95d45739e4 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cae/requirements.txt b/huaweicloud-sdk-cae/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-cae/requirements.txt +++ b/huaweicloud-sdk-cae/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-cae/setup.py b/huaweicloud-sdk-cae/setup.py index f2ca96d9de..cae5da2114 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-campusgo/requirements.txt b/huaweicloud-sdk-campusgo/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-campusgo/requirements.txt +++ b/huaweicloud-sdk-campusgo/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-campusgo/setup.py b/huaweicloud-sdk-campusgo/setup.py index b778ba3295..f22d8c895c 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cbh/huaweicloudsdkcbh/v1/region/cbh_region.py b/huaweicloud-sdk-cbh/huaweicloudsdkcbh/v1/region/cbh_region.py index c4d0a44999..19b9a6e020 100644 --- a/huaweicloud-sdk-cbh/huaweicloudsdkcbh/v1/region/cbh_region.py +++ b/huaweicloud-sdk-cbh/huaweicloudsdkcbh/v1/region/cbh_region.py @@ -26,6 +26,10 @@ class CbhRegion: "https://cbh.la-north-2.myhuaweicloud.com") AP_SOUTHEAST_4 = Region("ap-southeast-4", "https://cbh.ap-southeast-4.myhuaweicloud.com") + RU_MOSCOW_1 = Region("ru-moscow-1", + "https://cbh.ru-moscow-1.myhuaweicloud.com") + MY_KUALALUMPUR_1 = Region("my-kualalumpur-1", + "https://cbh.my-kualalumpur-1.myhuaweicloud.com") static_fields = { "cn-north-4": CN_NORTH_4, @@ -38,6 +42,8 @@ class CbhRegion: "la-south-2": LA_SOUTH_2, "la-north-2": LA_NORTH_2, "ap-southeast-4": AP_SOUTHEAST_4, + "ru-moscow-1": RU_MOSCOW_1, + "my-kualalumpur-1": MY_KUALALUMPUR_1, } @classmethod diff --git a/huaweicloud-sdk-cbh/huaweicloudsdkcbh/v2/region/cbh_region.py b/huaweicloud-sdk-cbh/huaweicloudsdkcbh/v2/region/cbh_region.py index c4d0a44999..19b9a6e020 100644 --- a/huaweicloud-sdk-cbh/huaweicloudsdkcbh/v2/region/cbh_region.py +++ b/huaweicloud-sdk-cbh/huaweicloudsdkcbh/v2/region/cbh_region.py @@ -26,6 +26,10 @@ class CbhRegion: "https://cbh.la-north-2.myhuaweicloud.com") AP_SOUTHEAST_4 = Region("ap-southeast-4", "https://cbh.ap-southeast-4.myhuaweicloud.com") + RU_MOSCOW_1 = Region("ru-moscow-1", + "https://cbh.ru-moscow-1.myhuaweicloud.com") + MY_KUALALUMPUR_1 = Region("my-kualalumpur-1", + "https://cbh.my-kualalumpur-1.myhuaweicloud.com") static_fields = { "cn-north-4": CN_NORTH_4, @@ -38,6 +42,8 @@ class CbhRegion: "la-south-2": LA_SOUTH_2, "la-north-2": LA_NORTH_2, "ap-southeast-4": AP_SOUTHEAST_4, + "ru-moscow-1": RU_MOSCOW_1, + "my-kualalumpur-1": MY_KUALALUMPUR_1, } @classmethod diff --git a/huaweicloud-sdk-cbh/requirements.txt b/huaweicloud-sdk-cbh/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-cbh/requirements.txt +++ b/huaweicloud-sdk-cbh/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-cbh/setup.py b/huaweicloud-sdk-cbh/setup.py index f0536640f7..2e37510b8d 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cbr/requirements.txt b/huaweicloud-sdk-cbr/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-cbr/requirements.txt +++ b/huaweicloud-sdk-cbr/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-cbr/setup.py b/huaweicloud-sdk-cbr/setup.py index 6b7278d676..81c423207f 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cbs/requirements.txt b/huaweicloud-sdk-cbs/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-cbs/requirements.txt +++ b/huaweicloud-sdk-cbs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-cbs/setup.py b/huaweicloud-sdk-cbs/setup.py index dbeb6a1070..9fe7a99fb5 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cc/requirements.txt b/huaweicloud-sdk-cc/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-cc/requirements.txt +++ b/huaweicloud-sdk-cc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-cc/setup.py b/huaweicloud-sdk-cc/setup.py index b6dc881228..c27488409d 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cce/requirements.txt b/huaweicloud-sdk-cce/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-cce/requirements.txt +++ b/huaweicloud-sdk-cce/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-cce/setup.py b/huaweicloud-sdk-cce/setup.py index 8f1acb71d7..dd97eb9da8 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ccm/huaweicloudsdkccm/v1/region/ccm_region.py b/huaweicloud-sdk-ccm/huaweicloudsdkccm/v1/region/ccm_region.py index 69903498a9..f2a029b2c8 100644 --- a/huaweicloud-sdk-ccm/huaweicloudsdkccm/v1/region/ccm_region.py +++ b/huaweicloud-sdk-ccm/huaweicloudsdkccm/v1/region/ccm_region.py @@ -12,11 +12,14 @@ class CcmRegion: "https://ccm.ap-southeast-3.myhuaweicloud.com") EU_WEST_101 = Region("eu-west-101", "https://ccm.eu-west-101.myhuaweicloud.com") + RU_MOSCOW_1 = Region("ru-moscow-1", + "https://ccm.ru-moscow-1.myhuaweicloud.com") static_fields = { "cn-north-4": CN_NORTH_4, "ap-southeast-3": AP_SOUTHEAST_3, "eu-west-101": EU_WEST_101, + "ru-moscow-1": RU_MOSCOW_1, } @classmethod diff --git a/huaweicloud-sdk-ccm/requirements.txt b/huaweicloud-sdk-ccm/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-ccm/requirements.txt +++ b/huaweicloud-sdk-ccm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-ccm/setup.py b/huaweicloud-sdk-ccm/setup.py index 1659a7c469..dba40772f6 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cdm/requirements.txt b/huaweicloud-sdk-cdm/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-cdm/requirements.txt +++ b/huaweicloud-sdk-cdm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-cdm/setup.py b/huaweicloud-sdk-cdm/setup.py index e2eb53698d..a62b67dfb8 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cdn/requirements.txt b/huaweicloud-sdk-cdn/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-cdn/requirements.txt +++ b/huaweicloud-sdk-cdn/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-cdn/setup.py b/huaweicloud-sdk-cdn/setup.py index d6dbcc6db8..abb530c417 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ces/requirements.txt b/huaweicloud-sdk-ces/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-ces/requirements.txt +++ b/huaweicloud-sdk-ces/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-ces/setup.py b/huaweicloud-sdk-ces/setup.py index 95345e9161..e5e3296abe 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cfw/requirements.txt b/huaweicloud-sdk-cfw/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-cfw/requirements.txt +++ b/huaweicloud-sdk-cfw/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-cfw/setup.py b/huaweicloud-sdk-cfw/setup.py index 685e22a972..51675a60b8 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cgs/requirements.txt b/huaweicloud-sdk-cgs/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-cgs/requirements.txt +++ b/huaweicloud-sdk-cgs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-cgs/setup.py b/huaweicloud-sdk-cgs/setup.py index 77a7b3b50f..e7f4083826 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-classroom/requirements.txt b/huaweicloud-sdk-classroom/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-classroom/requirements.txt +++ b/huaweicloud-sdk-classroom/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-classroom/setup.py b/huaweicloud-sdk-classroom/setup.py index 0c529dd9ee..572089625d 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cloudide/requirements.txt b/huaweicloud-sdk-cloudide/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-cloudide/requirements.txt +++ b/huaweicloud-sdk-cloudide/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-cloudide/setup.py b/huaweicloud-sdk-cloudide/setup.py index 175cf2d5ed..d915612636 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cloudpond/requirements.txt b/huaweicloud-sdk-cloudpond/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-cloudpond/requirements.txt +++ b/huaweicloud-sdk-cloudpond/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-cloudpond/setup.py b/huaweicloud-sdk-cloudpond/setup.py index 6e2e22cbcc..15c7d29abc 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cloudrtc/requirements.txt b/huaweicloud-sdk-cloudrtc/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-cloudrtc/requirements.txt +++ b/huaweicloud-sdk-cloudrtc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-cloudrtc/setup.py b/huaweicloud-sdk-cloudrtc/setup.py index bef2d9a693..103cbb7569 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cloudtable/requirements.txt b/huaweicloud-sdk-cloudtable/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-cloudtable/requirements.txt +++ b/huaweicloud-sdk-cloudtable/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-cloudtable/setup.py b/huaweicloud-sdk-cloudtable/setup.py index c05b773cda..f1a80cffa1 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cloudtest/requirements.txt b/huaweicloud-sdk-cloudtest/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-cloudtest/requirements.txt +++ b/huaweicloud-sdk-cloudtest/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-cloudtest/setup.py b/huaweicloud-sdk-cloudtest/setup.py index c93505bee2..3bfad11cbf 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-codeartsartifact/requirements.txt b/huaweicloud-sdk-codeartsartifact/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-codeartsartifact/requirements.txt +++ b/huaweicloud-sdk-codeartsartifact/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-codeartsartifact/setup.py b/huaweicloud-sdk-codeartsartifact/setup.py index 8158369d9a..0b4edc1035 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-codeartsbuild/requirements.txt b/huaweicloud-sdk-codeartsbuild/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-codeartsbuild/requirements.txt +++ b/huaweicloud-sdk-codeartsbuild/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-codeartsbuild/setup.py b/huaweicloud-sdk-codeartsbuild/setup.py index 9cce3c3907..e0e8ba84f2 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-codeartscheck/requirements.txt b/huaweicloud-sdk-codeartscheck/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-codeartscheck/requirements.txt +++ b/huaweicloud-sdk-codeartscheck/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-codeartscheck/setup.py b/huaweicloud-sdk-codeartscheck/setup.py index 6de094e844..d43f46670b 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-codeartsdeploy/requirements.txt b/huaweicloud-sdk-codeartsdeploy/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-codeartsdeploy/requirements.txt +++ b/huaweicloud-sdk-codeartsdeploy/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-codeartsdeploy/setup.py b/huaweicloud-sdk-codeartsdeploy/setup.py index 966aeb4ebe..90608ce111 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-codeartsinspector/requirements.txt b/huaweicloud-sdk-codeartsinspector/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-codeartsinspector/requirements.txt +++ b/huaweicloud-sdk-codeartsinspector/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-codeartsinspector/setup.py b/huaweicloud-sdk-codeartsinspector/setup.py index 8d4404f4f1..1fb3656480 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/__init__.py b/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/__init__.py index a868775d89..9b8789bc7c 100644 --- a/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/__init__.py +++ b/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/__init__.py @@ -130,6 +130,7 @@ from huaweicloudsdkcodeartspipeline.v2.model.pipeline_build_result import PipelineBuildResult from huaweicloudsdkcodeartspipeline.v2.model.pipeline_by_template_dto import PipelineByTemplateDTO from huaweicloudsdkcodeartspipeline.v2.model.pipeline_by_template_dto_variables import PipelineByTemplateDTOVariables +from huaweicloudsdkcodeartspipeline.v2.model.pipeline_concurrency_mgmt import PipelineConcurrencyMgmt from huaweicloudsdkcodeartspipeline.v2.model.pipeline_dto import PipelineDTO from huaweicloudsdkcodeartspipeline.v2.model.pipeline_execute_states import PipelineExecuteStates from huaweicloudsdkcodeartspipeline.v2.model.pipeline_group_bind_dto import PipelineGroupBindDTO diff --git a/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/codeartspipeline_async_client.py b/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/codeartspipeline_async_client.py index 26ed12febc..54cf9ce654 100644 --- a/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/codeartspipeline_async_client.py +++ b/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/codeartspipeline_async_client.py @@ -738,6 +738,10 @@ def _delete_basic_plugin_http_info(self, request): query_params = [] if 'plugin_name' in local_var_params: query_params.append(('plugin_name', local_var_params['plugin_name'])) + if 'type' in local_var_params: + query_params.append(('type', local_var_params['type'])) + if 'version' in local_var_params: + query_params.append(('version', local_var_params['version'])) header_params = {} diff --git a/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/codeartspipeline_client.py b/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/codeartspipeline_client.py index 834c2374d0..c52ff1ec44 100644 --- a/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/codeartspipeline_client.py +++ b/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/codeartspipeline_client.py @@ -738,6 +738,10 @@ def _delete_basic_plugin_http_info(cls, request): query_params = [] if 'plugin_name' in local_var_params: query_params.append(('plugin_name', local_var_params['plugin_name'])) + if 'type' in local_var_params: + query_params.append(('type', local_var_params['type'])) + if 'version' in local_var_params: + query_params.append(('version', local_var_params['version'])) header_params = {} diff --git a/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/__init__.py b/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/__init__.py index 24435da448..45a91d5bbb 100644 --- a/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/__init__.py +++ b/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/__init__.py @@ -128,6 +128,7 @@ from huaweicloudsdkcodeartspipeline.v2.model.pipeline_build_result import PipelineBuildResult from huaweicloudsdkcodeartspipeline.v2.model.pipeline_by_template_dto import PipelineByTemplateDTO from huaweicloudsdkcodeartspipeline.v2.model.pipeline_by_template_dto_variables import PipelineByTemplateDTOVariables +from huaweicloudsdkcodeartspipeline.v2.model.pipeline_concurrency_mgmt import PipelineConcurrencyMgmt from huaweicloudsdkcodeartspipeline.v2.model.pipeline_dto import PipelineDTO from huaweicloudsdkcodeartspipeline.v2.model.pipeline_execute_states import PipelineExecuteStates from huaweicloudsdkcodeartspipeline.v2.model.pipeline_group_bind_dto import PipelineGroupBindDTO diff --git a/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/agent_plugin_info_query_dto.py b/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/agent_plugin_info_query_dto.py index 5b512283d3..0ab317ded8 100644 --- a/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/agent_plugin_info_query_dto.py +++ b/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/agent_plugin_info_query_dto.py @@ -37,15 +37,15 @@ def __init__(self, plugin_name=None, regex_name=None, maintainer=None, business_ The model defined in huaweicloud sdk - :param plugin_name: + :param plugin_name: 可选的查询条件-插件名 :type plugin_name: str - :param regex_name: + :param regex_name: 可选的查询条件-匹配名称 :type regex_name: str - :param maintainer: + :param maintainer: 维护者 :type maintainer: str - :param business_type: + :param business_type: 业务类型,[Build,Gate,Deploy,Test,Normal] :type business_type: list[str] - :param plugin_attribution: + :param plugin_attribution: 插件属性,official/custom :type plugin_attribution: str """ @@ -73,6 +73,8 @@ def __init__(self, plugin_name=None, regex_name=None, maintainer=None, business_ def plugin_name(self): """Gets the plugin_name of this AgentPluginInfoQueryDTO. + 可选的查询条件-插件名 + :return: The plugin_name of this AgentPluginInfoQueryDTO. :rtype: str """ @@ -82,6 +84,8 @@ def plugin_name(self): def plugin_name(self, plugin_name): """Sets the plugin_name of this AgentPluginInfoQueryDTO. + 可选的查询条件-插件名 + :param plugin_name: The plugin_name of this AgentPluginInfoQueryDTO. :type plugin_name: str """ @@ -91,6 +95,8 @@ def plugin_name(self, plugin_name): def regex_name(self): """Gets the regex_name of this AgentPluginInfoQueryDTO. + 可选的查询条件-匹配名称 + :return: The regex_name of this AgentPluginInfoQueryDTO. :rtype: str """ @@ -100,6 +106,8 @@ def regex_name(self): def regex_name(self, regex_name): """Sets the regex_name of this AgentPluginInfoQueryDTO. + 可选的查询条件-匹配名称 + :param regex_name: The regex_name of this AgentPluginInfoQueryDTO. :type regex_name: str """ @@ -109,6 +117,8 @@ def regex_name(self, regex_name): def maintainer(self): """Gets the maintainer of this AgentPluginInfoQueryDTO. + 维护者 + :return: The maintainer of this AgentPluginInfoQueryDTO. :rtype: str """ @@ -118,6 +128,8 @@ def maintainer(self): def maintainer(self, maintainer): """Sets the maintainer of this AgentPluginInfoQueryDTO. + 维护者 + :param maintainer: The maintainer of this AgentPluginInfoQueryDTO. :type maintainer: str """ @@ -127,6 +139,8 @@ def maintainer(self, maintainer): def business_type(self): """Gets the business_type of this AgentPluginInfoQueryDTO. + 业务类型,[Build,Gate,Deploy,Test,Normal] + :return: The business_type of this AgentPluginInfoQueryDTO. :rtype: list[str] """ @@ -136,6 +150,8 @@ def business_type(self): def business_type(self, business_type): """Sets the business_type of this AgentPluginInfoQueryDTO. + 业务类型,[Build,Gate,Deploy,Test,Normal] + :param business_type: The business_type of this AgentPluginInfoQueryDTO. :type business_type: list[str] """ @@ -145,6 +161,8 @@ def business_type(self, business_type): def plugin_attribution(self): """Gets the plugin_attribution of this AgentPluginInfoQueryDTO. + 插件属性,official/custom + :return: The plugin_attribution of this AgentPluginInfoQueryDTO. :rtype: str """ @@ -154,6 +172,8 @@ def plugin_attribution(self): def plugin_attribution(self, plugin_attribution): """Sets the plugin_attribution of this AgentPluginInfoQueryDTO. + 插件属性,official/custom + :param plugin_attribution: The plugin_attribution of this AgentPluginInfoQueryDTO. :type plugin_attribution: str """ diff --git a/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/business_type_plugins_query_dto.py b/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/business_type_plugins_query_dto.py index a1e8deaac8..60c1abcf07 100644 --- a/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/business_type_plugins_query_dto.py +++ b/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/business_type_plugins_query_dto.py @@ -37,7 +37,7 @@ def __init__(self, use_condition=None, input_repo_type=None, input_source_type=N The model defined in huaweicloud sdk - :param use_condition: 用于区分插件为流水线可使用/模板可使用 + :param use_condition: 用于区分插件为流水线可使用/模板可使用, 可选pipeline/template :type use_condition: str :param input_repo_type: 用于区分源的代码仓类型codehub/gitlab/github等 :type input_repo_type: str @@ -73,7 +73,7 @@ def __init__(self, use_condition=None, input_repo_type=None, input_source_type=N def use_condition(self): """Gets the use_condition of this BusinessTypePluginsQueryDTO. - 用于区分插件为流水线可使用/模板可使用 + 用于区分插件为流水线可使用/模板可使用, 可选pipeline/template :return: The use_condition of this BusinessTypePluginsQueryDTO. :rtype: str @@ -84,7 +84,7 @@ def use_condition(self): def use_condition(self, use_condition): """Sets the use_condition of this BusinessTypePluginsQueryDTO. - 用于区分插件为流水线可使用/模板可使用 + 用于区分插件为流水线可使用/模板可使用, 可选pipeline/template :param use_condition: The use_condition of this BusinessTypePluginsQueryDTO. :type use_condition: str diff --git a/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/delete_basic_plugin_request.py b/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/delete_basic_plugin_request.py index d11e09418d..3b5a977887 100644 --- a/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/delete_basic_plugin_request.py +++ b/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/delete_basic_plugin_request.py @@ -18,34 +18,46 @@ class DeleteBasicPluginRequest: openapi_types = { 'domain_id': 'str', - 'plugin_name': 'str' + 'plugin_name': 'str', + 'type': 'str', + 'version': 'str' } attribute_map = { 'domain_id': 'domain_id', - 'plugin_name': 'plugin_name' + 'plugin_name': 'plugin_name', + 'type': 'type', + 'version': 'version' } - def __init__(self, domain_id=None, plugin_name=None): + def __init__(self, domain_id=None, plugin_name=None, type=None, version=None): """DeleteBasicPluginRequest The model defined in huaweicloud sdk :param domain_id: 租户ID :type domain_id: str - :param plugin_name: 是否调用成功 + :param plugin_name: 需要删除的插件名 :type plugin_name: str + :param type: 删除类型,all 代表删除整个插件,single代表删除单个插件版本 + :type type: str + :param version: 需要删除的插件版本 + :type version: str """ self._domain_id = None self._plugin_name = None + self._type = None + self._version = None self.discriminator = None self.domain_id = domain_id - if plugin_name is not None: - self.plugin_name = plugin_name + self.plugin_name = plugin_name + self.type = type + if version is not None: + self.version = version @property def domain_id(self): @@ -73,7 +85,7 @@ def domain_id(self, domain_id): def plugin_name(self): """Gets the plugin_name of this DeleteBasicPluginRequest. - 是否调用成功 + 需要删除的插件名 :return: The plugin_name of this DeleteBasicPluginRequest. :rtype: str @@ -84,13 +96,57 @@ def plugin_name(self): def plugin_name(self, plugin_name): """Sets the plugin_name of this DeleteBasicPluginRequest. - 是否调用成功 + 需要删除的插件名 :param plugin_name: The plugin_name of this DeleteBasicPluginRequest. :type plugin_name: str """ self._plugin_name = plugin_name + @property + def type(self): + """Gets the type of this DeleteBasicPluginRequest. + + 删除类型,all 代表删除整个插件,single代表删除单个插件版本 + + :return: The type of this DeleteBasicPluginRequest. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this DeleteBasicPluginRequest. + + 删除类型,all 代表删除整个插件,single代表删除单个插件版本 + + :param type: The type of this DeleteBasicPluginRequest. + :type type: str + """ + self._type = type + + @property + def version(self): + """Gets the version of this DeleteBasicPluginRequest. + + 需要删除的插件版本 + + :return: The version of this DeleteBasicPluginRequest. + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this DeleteBasicPluginRequest. + + 需要删除的插件版本 + + :param version: The version of this DeleteBasicPluginRequest. + :type version: str + """ + self._version = version + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/delete_plugin_draft_request.py b/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/delete_plugin_draft_request.py index 53952d09e1..6959799fea 100644 --- a/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/delete_plugin_draft_request.py +++ b/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/delete_plugin_draft_request.py @@ -49,10 +49,8 @@ def __init__(self, domain_id=None, plugin_name=None, version=None): self.discriminator = None self.domain_id = domain_id - if plugin_name is not None: - self.plugin_name = plugin_name - if version is not None: - self.version = version + self.plugin_name = plugin_name + self.version = version @property def domain_id(self): diff --git a/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/delete_publisher_request.py b/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/delete_publisher_request.py index f4e04b5a22..40992aec7d 100644 --- a/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/delete_publisher_request.py +++ b/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/delete_publisher_request.py @@ -44,8 +44,7 @@ def __init__(self, domain_id=None, publisher_unique_id=None): self.discriminator = None self.domain_id = domain_id - if publisher_unique_id is not None: - self.publisher_unique_id = publisher_unique_id + self.publisher_unique_id = publisher_unique_id @property def domain_id(self): diff --git a/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/list_base_plugins_request.py b/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/list_base_plugins_request.py index 260800488d..5519d4855d 100644 --- a/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/list_base_plugins_request.py +++ b/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/list_base_plugins_request.py @@ -37,7 +37,7 @@ def __init__(self, domain_id=None, attribution=None, offset=None, limit=None): :param domain_id: 租户ID :type domain_id: str - :param attribution: 属性 + :param attribution: 插件属性,可选official、published :type attribution: str :param offset: 偏移 :type offset: str @@ -54,12 +54,9 @@ def __init__(self, domain_id=None, attribution=None, offset=None, limit=None): self.discriminator = None self.domain_id = domain_id - if attribution is not None: - self.attribution = attribution - if offset is not None: - self.offset = offset - if limit is not None: - self.limit = limit + self.attribution = attribution + self.offset = offset + self.limit = limit @property def domain_id(self): @@ -87,7 +84,7 @@ def domain_id(self, domain_id): def attribution(self): """Gets the attribution of this ListBasePluginsRequest. - 属性 + 插件属性,可选official、published :return: The attribution of this ListBasePluginsRequest. :rtype: str @@ -98,7 +95,7 @@ def attribution(self): def attribution(self, attribution): """Sets the attribution of this ListBasePluginsRequest. - 属性 + 插件属性,可选official、published :param attribution: The attribution of this ListBasePluginsRequest. :type attribution: str diff --git a/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/list_p_lugin_version_request.py b/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/list_p_lugin_version_request.py index 19259aff40..dd4327aaf3 100644 --- a/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/list_p_lugin_version_request.py +++ b/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/list_p_lugin_version_request.py @@ -54,12 +54,9 @@ def __init__(self, domain_id=None, plugin_name=None, offset=None, limit=None): self.discriminator = None self.domain_id = domain_id - if plugin_name is not None: - self.plugin_name = plugin_name - if offset is not None: - self.offset = offset - if limit is not None: - self.limit = limit + self.plugin_name = plugin_name + self.offset = offset + self.limit = limit @property def domain_id(self): diff --git a/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/list_pipeline_templates_query.py b/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/list_pipeline_templates_query.py index 8f5bcb8a0a..449600d38c 100644 --- a/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/list_pipeline_templates_query.py +++ b/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/list_pipeline_templates_query.py @@ -49,7 +49,7 @@ def __init__(self, language=None, is_system=None, name=None, offset=None, limit= :type name: str :param offset: 偏移量,表示从此偏移量开始查询,offset大于等于0,默认为0 :type offset: int - :param limit: 每次查询的条目数量 + :param limit: 每次查询的条目数量,默认为10。 :type limit: int :param sort_key: 用于排序的字段,非必选。取值为:name,create_time :type sort_key: str @@ -175,7 +175,7 @@ def offset(self, offset): def limit(self): """Gets the limit of this ListPipelineTemplatesQuery. - 每次查询的条目数量 + 每次查询的条目数量,默认为10。 :return: The limit of this ListPipelineTemplatesQuery. :rtype: int @@ -186,7 +186,7 @@ def limit(self): def limit(self, limit): """Sets the limit of this ListPipelineTemplatesQuery. - 每次查询的条目数量 + 每次查询的条目数量,默认为10。 :param limit: The limit of this ListPipelineTemplatesQuery. :type limit: int diff --git a/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/list_plugin_version_number_request.py b/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/list_plugin_version_number_request.py index b207861788..065c473ee5 100644 --- a/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/list_plugin_version_number_request.py +++ b/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/list_plugin_version_number_request.py @@ -54,12 +54,9 @@ def __init__(self, domain_id=None, plugin_name=None, offset=None, limit=None): self.discriminator = None self.domain_id = domain_id - if plugin_name is not None: - self.plugin_name = plugin_name - if offset is not None: - self.offset = offset - if limit is not None: - self.limit = limit + self.plugin_name = plugin_name + self.offset = offset + self.limit = limit @property def domain_id(self): diff --git a/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/list_plugins_request.py b/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/list_plugins_request.py index 31ee436693..e2c0aacf07 100644 --- a/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/list_plugins_request.py +++ b/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/list_plugins_request.py @@ -54,10 +54,8 @@ def __init__(self, domain_id=None, offset=None, limit=None, body=None): self.discriminator = None self.domain_id = domain_id - if offset is not None: - self.offset = offset - if limit is not None: - self.limit = limit + self.offset = offset + self.limit = limit if body is not None: self.body = body diff --git a/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/list_publisher_request.py b/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/list_publisher_request.py index 0c86451db6..94e22d5800 100644 --- a/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/list_publisher_request.py +++ b/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/list_publisher_request.py @@ -54,10 +54,8 @@ def __init__(self, domain_id=None, offset=None, limit=None, name=None): self.discriminator = None self.domain_id = domain_id - if offset is not None: - self.offset = offset - if limit is not None: - self.limit = limit + self.offset = offset + self.limit = limit if name is not None: self.name = name diff --git a/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/pipeline_concurrency_mgmt.py b/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/pipeline_concurrency_mgmt.py new file mode 100644 index 0000000000..4b7ce82a9a --- /dev/null +++ b/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/pipeline_concurrency_mgmt.py @@ -0,0 +1,260 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class PipelineConcurrencyMgmt: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'pipeline_id': 'str', + 'concurrency_number': 'int', + 'exceed_action': 'str', + 'create_time': 'int', + 'update_time': 'int', + 'enable': 'bool' + } + + attribute_map = { + 'pipeline_id': 'pipeline_id', + 'concurrency_number': 'concurrency_number', + 'exceed_action': 'exceed_action', + 'create_time': 'create_time', + 'update_time': 'update_time', + 'enable': 'enable' + } + + def __init__(self, pipeline_id=None, concurrency_number=None, exceed_action=None, create_time=None, update_time=None, enable=None): + """PipelineConcurrencyMgmt + + The model defined in huaweicloud sdk + + :param pipeline_id: 流水线id + :type pipeline_id: str + :param concurrency_number: 并行数量 + :type concurrency_number: int + :param exceed_action: 超出情况下策略 + :type exceed_action: str + :param create_time: 创建时间 + :type create_time: int + :param update_time: 更新时间 + :type update_time: int + :param enable: 是否有效 + :type enable: bool + """ + + + + self._pipeline_id = None + self._concurrency_number = None + self._exceed_action = None + self._create_time = None + self._update_time = None + self._enable = None + self.discriminator = None + + if pipeline_id is not None: + self.pipeline_id = pipeline_id + if concurrency_number is not None: + self.concurrency_number = concurrency_number + if exceed_action is not None: + self.exceed_action = exceed_action + if create_time is not None: + self.create_time = create_time + if update_time is not None: + self.update_time = update_time + if enable is not None: + self.enable = enable + + @property + def pipeline_id(self): + """Gets the pipeline_id of this PipelineConcurrencyMgmt. + + 流水线id + + :return: The pipeline_id of this PipelineConcurrencyMgmt. + :rtype: str + """ + return self._pipeline_id + + @pipeline_id.setter + def pipeline_id(self, pipeline_id): + """Sets the pipeline_id of this PipelineConcurrencyMgmt. + + 流水线id + + :param pipeline_id: The pipeline_id of this PipelineConcurrencyMgmt. + :type pipeline_id: str + """ + self._pipeline_id = pipeline_id + + @property + def concurrency_number(self): + """Gets the concurrency_number of this PipelineConcurrencyMgmt. + + 并行数量 + + :return: The concurrency_number of this PipelineConcurrencyMgmt. + :rtype: int + """ + return self._concurrency_number + + @concurrency_number.setter + def concurrency_number(self, concurrency_number): + """Sets the concurrency_number of this PipelineConcurrencyMgmt. + + 并行数量 + + :param concurrency_number: The concurrency_number of this PipelineConcurrencyMgmt. + :type concurrency_number: int + """ + self._concurrency_number = concurrency_number + + @property + def exceed_action(self): + """Gets the exceed_action of this PipelineConcurrencyMgmt. + + 超出情况下策略 + + :return: The exceed_action of this PipelineConcurrencyMgmt. + :rtype: str + """ + return self._exceed_action + + @exceed_action.setter + def exceed_action(self, exceed_action): + """Sets the exceed_action of this PipelineConcurrencyMgmt. + + 超出情况下策略 + + :param exceed_action: The exceed_action of this PipelineConcurrencyMgmt. + :type exceed_action: str + """ + self._exceed_action = exceed_action + + @property + def create_time(self): + """Gets the create_time of this PipelineConcurrencyMgmt. + + 创建时间 + + :return: The create_time of this PipelineConcurrencyMgmt. + :rtype: int + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this PipelineConcurrencyMgmt. + + 创建时间 + + :param create_time: The create_time of this PipelineConcurrencyMgmt. + :type create_time: int + """ + self._create_time = create_time + + @property + def update_time(self): + """Gets the update_time of this PipelineConcurrencyMgmt. + + 更新时间 + + :return: The update_time of this PipelineConcurrencyMgmt. + :rtype: int + """ + return self._update_time + + @update_time.setter + def update_time(self, update_time): + """Sets the update_time of this PipelineConcurrencyMgmt. + + 更新时间 + + :param update_time: The update_time of this PipelineConcurrencyMgmt. + :type update_time: int + """ + self._update_time = update_time + + @property + def enable(self): + """Gets the enable of this PipelineConcurrencyMgmt. + + 是否有效 + + :return: The enable of this PipelineConcurrencyMgmt. + :rtype: bool + """ + return self._enable + + @enable.setter + def enable(self, enable): + """Sets the enable of this PipelineConcurrencyMgmt. + + 是否有效 + + :param enable: The enable of this PipelineConcurrencyMgmt. + :type enable: bool + """ + self._enable = enable + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PipelineConcurrencyMgmt): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/pipeline_dto.py b/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/pipeline_dto.py index 80555a53de..79bf544fbc 100644 --- a/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/pipeline_dto.py +++ b/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/pipeline_dto.py @@ -28,7 +28,8 @@ class PipelineDTO: 'definition': 'str', 'project_name': 'str', 'group_id': 'str', - 'id': 'str' + 'id': 'str', + 'concurrency_control': 'PipelineConcurrencyMgmt' } attribute_map = { @@ -43,10 +44,11 @@ class PipelineDTO: 'definition': 'definition', 'project_name': 'project_name', 'group_id': 'group_id', - 'id': 'id' + 'id': 'id', + 'concurrency_control': 'concurrency_control' } - def __init__(self, name=None, description=None, is_publish=None, sources=None, variables=None, schedules=None, triggers=None, manifest_version=None, definition=None, project_name=None, group_id=None, id=None): + def __init__(self, name=None, description=None, is_publish=None, sources=None, variables=None, schedules=None, triggers=None, manifest_version=None, definition=None, project_name=None, group_id=None, id=None, concurrency_control=None): """PipelineDTO The model defined in huaweicloud sdk @@ -75,6 +77,8 @@ def __init__(self, name=None, description=None, is_publish=None, sources=None, v :type group_id: str :param id: 若为复制场景,则为原流水线ID :type id: str + :param concurrency_control: + :type concurrency_control: :class:`huaweicloudsdkcodeartspipeline.v2.PipelineConcurrencyMgmt` """ @@ -91,14 +95,13 @@ def __init__(self, name=None, description=None, is_publish=None, sources=None, v self._project_name = None self._group_id = None self._id = None + self._concurrency_control = None self.discriminator = None - if name is not None: - self.name = name + self.name = name if description is not None: self.description = description - if is_publish is not None: - self.is_publish = is_publish + self.is_publish = is_publish if sources is not None: self.sources = sources if variables is not None: @@ -109,14 +112,15 @@ def __init__(self, name=None, description=None, is_publish=None, sources=None, v self.triggers = triggers if manifest_version is not None: self.manifest_version = manifest_version - if definition is not None: - self.definition = definition + self.definition = definition if project_name is not None: self.project_name = project_name if group_id is not None: self.group_id = group_id if id is not None: self.id = id + if concurrency_control is not None: + self.concurrency_control = concurrency_control @property def name(self): @@ -382,6 +386,24 @@ def id(self, id): """ self._id = id + @property + def concurrency_control(self): + """Gets the concurrency_control of this PipelineDTO. + + :return: The concurrency_control of this PipelineDTO. + :rtype: :class:`huaweicloudsdkcodeartspipeline.v2.PipelineConcurrencyMgmt` + """ + return self._concurrency_control + + @concurrency_control.setter + def concurrency_control(self, concurrency_control): + """Sets the concurrency_control of this PipelineDTO. + + :param concurrency_control: The concurrency_control of this PipelineDTO. + :type concurrency_control: :class:`huaweicloudsdkcodeartspipeline.v2.PipelineConcurrencyMgmt` + """ + self._concurrency_control = concurrency_control + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/plugin_basic_dto.py b/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/plugin_basic_dto.py index 8c394a2c8e..e06c0f4473 100644 --- a/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/plugin_basic_dto.py +++ b/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/plugin_basic_dto.py @@ -99,14 +99,10 @@ def __init__(self, unique_id=None, icon_url=None, runtime_attribution=None, plug self.icon_url = icon_url if runtime_attribution is not None: self.runtime_attribution = runtime_attribution - if plugin_name is not None: - self.plugin_name = plugin_name - if display_name is not None: - self.display_name = display_name - if business_type is not None: - self.business_type = business_type - if business_type_display_name is not None: - self.business_type_display_name = business_type_display_name + self.plugin_name = plugin_name + self.display_name = display_name + self.business_type = business_type + self.business_type_display_name = business_type_display_name if description is not None: self.description = description if is_private is not None: diff --git a/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/plugin_dto.py b/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/plugin_dto.py index f270008311..53c46d8da7 100644 --- a/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/plugin_dto.py +++ b/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/plugin_dto.py @@ -112,30 +112,22 @@ def __init__(self, unique_id=None, icon_url=None, runtime_attribution=None, plug self.unique_id = unique_id if icon_url is not None: self.icon_url = icon_url - if runtime_attribution is not None: - self.runtime_attribution = runtime_attribution - if plugin_name is not None: - self.plugin_name = plugin_name - if display_name is not None: - self.display_name = display_name - if business_type is not None: - self.business_type = business_type - if business_type_display_name is not None: - self.business_type_display_name = business_type_display_name - if description is not None: - self.description = description + self.runtime_attribution = runtime_attribution + self.plugin_name = plugin_name + self.display_name = display_name + self.business_type = business_type + self.business_type_display_name = business_type_display_name + self.description = description if is_private is not None: self.is_private = is_private if region is not None: self.region = region if maintainers is not None: self.maintainers = maintainers - if version is not None: - self.version = version + self.version = version if version_description is not None: self.version_description = version_description - if execution_info is not None: - self.execution_info = execution_info + self.execution_info = execution_info if input_info is not None: self.input_info = input_info diff --git a/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/plugin_part_query_dto.py b/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/plugin_part_query_dto.py index 3bc26aa67e..32cf121288 100644 --- a/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/plugin_part_query_dto.py +++ b/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/plugin_part_query_dto.py @@ -43,9 +43,9 @@ def __init__(self, plugin_name=None, display_name=None, version=None, plugin_att :type display_name: str :param version: 版本号 :type version: str - :param plugin_attribution: 插件属性 + :param plugin_attribution: 插件属性,custom/official :type plugin_attribution: str - :param version_attribution: 版本属性 + :param version_attribution: 版本属性,draft/formal :type version_attribution: str """ @@ -58,14 +58,10 @@ def __init__(self, plugin_name=None, display_name=None, version=None, plugin_att self._version_attribution = None self.discriminator = None - if plugin_name is not None: - self.plugin_name = plugin_name - if display_name is not None: - self.display_name = display_name - if version is not None: - self.version = version - if plugin_attribution is not None: - self.plugin_attribution = plugin_attribution + self.plugin_name = plugin_name + self.display_name = display_name + self.version = version + self.plugin_attribution = plugin_attribution if version_attribution is not None: self.version_attribution = version_attribution @@ -139,7 +135,7 @@ def version(self, version): def plugin_attribution(self): """Gets the plugin_attribution of this PluginPartQueryDTO. - 插件属性 + 插件属性,custom/official :return: The plugin_attribution of this PluginPartQueryDTO. :rtype: str @@ -150,7 +146,7 @@ def plugin_attribution(self): def plugin_attribution(self, plugin_attribution): """Sets the plugin_attribution of this PluginPartQueryDTO. - 插件属性 + 插件属性,custom/official :param plugin_attribution: The plugin_attribution of this PluginPartQueryDTO. :type plugin_attribution: str @@ -161,7 +157,7 @@ def plugin_attribution(self, plugin_attribution): def version_attribution(self): """Gets the version_attribution of this PluginPartQueryDTO. - 版本属性 + 版本属性,draft/formal :return: The version_attribution of this PluginPartQueryDTO. :rtype: str @@ -172,7 +168,7 @@ def version_attribution(self): def version_attribution(self, version_attribution): """Sets the version_attribution of this PluginPartQueryDTO. - 版本属性 + 版本属性,draft/formal :param version_attribution: The version_attribution of this PluginPartQueryDTO. :type version_attribution: str diff --git a/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/publish_plugin_dto.py b/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/publish_plugin_dto.py index 139efd3e84..4a5896531d 100644 --- a/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/publish_plugin_dto.py +++ b/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/publish_plugin_dto.py @@ -48,12 +48,9 @@ def __init__(self, plugin_name=None, version=None, publisher_unique_id=None): self._publisher_unique_id = None self.discriminator = None - if plugin_name is not None: - self.plugin_name = plugin_name - if version is not None: - self.version = version - if publisher_unique_id is not None: - self.publisher_unique_id = publisher_unique_id + self.plugin_name = plugin_name + self.version = version + self.publisher_unique_id = publisher_unique_id @property def plugin_name(self): diff --git a/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/publisher_request.py b/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/publisher_request.py index 77e50914f7..afd3fbf08b 100644 --- a/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/publisher_request.py +++ b/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/publisher_request.py @@ -78,8 +78,7 @@ def __init__(self, name=None, user_id=None, description=None, logo_url=None, web self._publisher_unique_id = None self.discriminator = None - if name is not None: - self.name = name + self.name = name if user_id is not None: self.user_id = user_id if description is not None: @@ -88,12 +87,10 @@ def __init__(self, name=None, user_id=None, description=None, logo_url=None, web self.logo_url = logo_url if website is not None: self.website = website - if support_url is not None: - self.support_url = support_url + self.support_url = support_url if source_url is not None: self.source_url = source_url - if en_name is not None: - self.en_name = en_name + self.en_name = en_name if publisher_unique_id is not None: self.publisher_unique_id = publisher_unique_id diff --git a/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/show_basic_plugin_request.py b/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/show_basic_plugin_request.py index 38a3c2a36e..98e57d6674 100644 --- a/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/show_basic_plugin_request.py +++ b/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/show_basic_plugin_request.py @@ -49,10 +49,8 @@ def __init__(self, domain_id=None, plugin_name=None, version=None): self.discriminator = None self.domain_id = domain_id - if plugin_name is not None: - self.plugin_name = plugin_name - if version is not None: - self.version = version + self.plugin_name = plugin_name + self.version = version @property def domain_id(self): diff --git a/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/show_pipeline_log_response.py b/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/show_pipeline_log_response.py index eafc950bad..e1972fc332 100644 --- a/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/show_pipeline_log_response.py +++ b/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/show_pipeline_log_response.py @@ -42,9 +42,9 @@ def __init__(self, has_more=None, end_offset=None, start_offset=None, log=None, :param has_more: 是否有更多日志 :type has_more: bool - :param end_offset: 查询日志结束偏移 + :param end_offset: 查询日志结束偏移。填入请求体end_offset字段,用于查询下一页日志。 :type end_offset: str - :param start_offset: 查询日志起始偏移 + :param start_offset: 查询日志起始偏移。填入请求体start_offset字段,用于查询下一页日志。 :type start_offset: str :param log: 日志内容 :type log: str @@ -103,7 +103,7 @@ def has_more(self, has_more): def end_offset(self): """Gets the end_offset of this ShowPipelineLogResponse. - 查询日志结束偏移 + 查询日志结束偏移。填入请求体end_offset字段,用于查询下一页日志。 :return: The end_offset of this ShowPipelineLogResponse. :rtype: str @@ -114,7 +114,7 @@ def end_offset(self): def end_offset(self, end_offset): """Sets the end_offset of this ShowPipelineLogResponse. - 查询日志结束偏移 + 查询日志结束偏移。填入请求体end_offset字段,用于查询下一页日志。 :param end_offset: The end_offset of this ShowPipelineLogResponse. :type end_offset: str @@ -125,7 +125,7 @@ def end_offset(self, end_offset): def start_offset(self): """Gets the start_offset of this ShowPipelineLogResponse. - 查询日志起始偏移 + 查询日志起始偏移。填入请求体start_offset字段,用于查询下一页日志。 :return: The start_offset of this ShowPipelineLogResponse. :rtype: str @@ -136,7 +136,7 @@ def start_offset(self): def start_offset(self, start_offset): """Sets the start_offset of this ShowPipelineLogResponse. - 查询日志起始偏移 + 查询日志起始偏移。填入请求体start_offset字段,用于查询下一页日志。 :param start_offset: The start_offset of this ShowPipelineLogResponse. :type start_offset: str diff --git a/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/show_plugin_version_request.py b/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/show_plugin_version_request.py index a016fed7c2..1273b66a96 100644 --- a/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/show_plugin_version_request.py +++ b/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/show_plugin_version_request.py @@ -49,8 +49,7 @@ def __init__(self, domain_id=None, plugin_name=None, version=None): self.discriminator = None self.domain_id = domain_id - if plugin_name is not None: - self.plugin_name = plugin_name + self.plugin_name = plugin_name if version is not None: self.version = version diff --git a/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/update_rule_set_req.py b/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/update_rule_set_req.py index c46b165c8a..37cf5e5da0 100644 --- a/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/update_rule_set_req.py +++ b/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/update_rule_set_req.py @@ -43,8 +43,7 @@ def __init__(self, name=None, rules=None): self._rules = None self.discriminator = None - if name is not None: - self.name = name + self.name = name if rules is not None: self.rules = rules diff --git a/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/upload_basic_plugin_request.py b/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/upload_basic_plugin_request.py index c007d73755..fce61f8efa 100644 --- a/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/upload_basic_plugin_request.py +++ b/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/upload_basic_plugin_request.py @@ -54,10 +54,8 @@ def __init__(self, domain_id=None, plugin_name=None, business_type=None, body=No self.discriminator = None self.domain_id = domain_id - if plugin_name is not None: - self.plugin_name = plugin_name - if business_type is not None: - self.business_type = business_type + self.plugin_name = plugin_name + self.business_type = business_type if body is not None: self.body = body diff --git a/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/upload_plugin_icon_request.py b/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/upload_plugin_icon_request.py index 05d5e1f5f1..80df82aed9 100644 --- a/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/upload_plugin_icon_request.py +++ b/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/upload_plugin_icon_request.py @@ -49,8 +49,7 @@ def __init__(self, domain_id=None, plugin_name=None, body=None): self.discriminator = None self.domain_id = domain_id - if plugin_name is not None: - self.plugin_name = plugin_name + self.plugin_name = plugin_name if body is not None: self.body = body diff --git a/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/upload_publisher_icon_request.py b/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/upload_publisher_icon_request.py index 4ee73a08a0..cba4ed4f15 100644 --- a/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/upload_publisher_icon_request.py +++ b/huaweicloud-sdk-codeartspipeline/huaweicloudsdkcodeartspipeline/v2/model/upload_publisher_icon_request.py @@ -49,8 +49,7 @@ def __init__(self, domain_id=None, publisher_en_name=None, body=None): self.discriminator = None self.domain_id = domain_id - if publisher_en_name is not None: - self.publisher_en_name = publisher_en_name + self.publisher_en_name = publisher_en_name if body is not None: self.body = body diff --git a/huaweicloud-sdk-codeartspipeline/requirements.txt b/huaweicloud-sdk-codeartspipeline/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-codeartspipeline/requirements.txt +++ b/huaweicloud-sdk-codeartspipeline/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-codeartspipeline/setup.py b/huaweicloud-sdk-codeartspipeline/setup.py index 9f4fdfd80f..de86ebdcf2 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-codecraft/requirements.txt b/huaweicloud-sdk-codecraft/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-codecraft/requirements.txt +++ b/huaweicloud-sdk-codecraft/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-codecraft/setup.py b/huaweicloud-sdk-codecraft/setup.py index 744d815c01..efe2c2a6c2 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-codehub/requirements.txt b/huaweicloud-sdk-codehub/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-codehub/requirements.txt +++ b/huaweicloud-sdk-codehub/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-codehub/setup.py b/huaweicloud-sdk-codehub/setup.py index 8e6fe54846..454c0b9aea 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-config/requirements.txt b/huaweicloud-sdk-config/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-config/requirements.txt +++ b/huaweicloud-sdk-config/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-config/setup.py b/huaweicloud-sdk-config/setup.py index 0f76ce010e..a06120df9d 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-core/setup.py b/huaweicloud-sdk-core/setup.py index 4ba4b38c4c..380a1c18eb 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" diff --git a/huaweicloud-sdk-cph/huaweicloudsdkcph/v1/model/show_cloud_phone_server_detail_response_body_metadata.py b/huaweicloud-sdk-cph/huaweicloudsdkcph/v1/model/show_cloud_phone_server_detail_response_body_metadata.py index 381fc56875..3f10b0eabd 100644 --- a/huaweicloud-sdk-cph/huaweicloudsdkcph/v1/model/show_cloud_phone_server_detail_response_body_metadata.py +++ b/huaweicloud-sdk-cph/huaweicloudsdkcph/v1/model/show_cloud_phone_server_detail_response_body_metadata.py @@ -31,9 +31,9 @@ def __init__(self, product_id=None, order_id=None): The model defined in huaweicloud sdk - :param product_id: 订单ID,不超过64个字节。 + :param product_id: 产品ID,不超过64个字节。 :type product_id: str - :param order_id: 产品ID,不超过64个字节。 + :param order_id: 订单ID,不超过64个字节。 :type order_id: str """ @@ -52,7 +52,7 @@ def __init__(self, product_id=None, order_id=None): def product_id(self): """Gets the product_id of this ShowCloudPhoneServerDetailResponseBodyMetadata. - 订单ID,不超过64个字节。 + 产品ID,不超过64个字节。 :return: The product_id of this ShowCloudPhoneServerDetailResponseBodyMetadata. :rtype: str @@ -63,7 +63,7 @@ def product_id(self): def product_id(self, product_id): """Sets the product_id of this ShowCloudPhoneServerDetailResponseBodyMetadata. - 订单ID,不超过64个字节。 + 产品ID,不超过64个字节。 :param product_id: The product_id of this ShowCloudPhoneServerDetailResponseBodyMetadata. :type product_id: str @@ -74,7 +74,7 @@ def product_id(self, product_id): def order_id(self): """Gets the order_id of this ShowCloudPhoneServerDetailResponseBodyMetadata. - 产品ID,不超过64个字节。 + 订单ID,不超过64个字节。 :return: The order_id of this ShowCloudPhoneServerDetailResponseBodyMetadata. :rtype: str @@ -85,7 +85,7 @@ def order_id(self): def order_id(self, order_id): """Sets the order_id of this ShowCloudPhoneServerDetailResponseBodyMetadata. - 产品ID,不超过64个字节。 + 订单ID,不超过64个字节。 :param order_id: The order_id of this ShowCloudPhoneServerDetailResponseBodyMetadata. :type order_id: str diff --git a/huaweicloud-sdk-cph/requirements.txt b/huaweicloud-sdk-cph/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-cph/requirements.txt +++ b/huaweicloud-sdk-cph/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-cph/setup.py b/huaweicloud-sdk-cph/setup.py index acf6e37e54..2fdb5497c4 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cpts/requirements.txt b/huaweicloud-sdk-cpts/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-cpts/requirements.txt +++ b/huaweicloud-sdk-cpts/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-cpts/setup.py b/huaweicloud-sdk-cpts/setup.py index 819cd9d971..03c1498e45 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cse/requirements.txt b/huaweicloud-sdk-cse/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-cse/requirements.txt +++ b/huaweicloud-sdk-cse/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-cse/setup.py b/huaweicloud-sdk-cse/setup.py index 889b5265e3..a39229f2f8 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-csms/requirements.txt b/huaweicloud-sdk-csms/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-csms/requirements.txt +++ b/huaweicloud-sdk-csms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-csms/setup.py b/huaweicloud-sdk-csms/setup.py index 053bf28405..fdedda3825 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/__init__.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/__init__.py index 516a5ce9a6..0d1322fc6a 100644 --- a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/__init__.py +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/__init__.py @@ -165,6 +165,7 @@ from huaweicloudsdkcss.v1.model.log_list import LogList from huaweicloudsdkcss.v1.model.pay_info_body import PayInfoBody from huaweicloudsdkcss.v1.model.period_req import PeriodReq +from huaweicloudsdkcss.v1.model.permission_info import PermissionInfo from huaweicloudsdkcss.v1.model.pipelines import Pipelines from huaweicloudsdkcss.v1.model.public_kibana_resp_body import PublicKibanaRespBody from huaweicloudsdkcss.v1.model.reset_password_req import ResetPasswordReq diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/css_async_client.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/css_async_client.py index c486e3d93a..d1c73f6c11 100644 --- a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/css_async_client.py +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/css_async_client.py @@ -1410,6 +1410,8 @@ def _list_clusters_details_http_info(self, request): query_params.append(('start', local_var_params['start'])) if 'limit' in local_var_params: query_params.append(('limit', local_var_params['limit'])) + if 'datastore_type' in local_var_params: + query_params.append(('datastoreType', local_var_params['datastore_type'])) header_params = {} diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/css_client.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/css_client.py index e6adc2b3e2..ac6ea3bf55 100644 --- a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/css_client.py +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/css_client.py @@ -1410,6 +1410,8 @@ def _list_clusters_details_http_info(cls, request): query_params.append(('start', local_var_params['start'])) if 'limit' in local_var_params: query_params.append(('limit', local_var_params['limit'])) + if 'datastore_type' in local_var_params: + query_params.append(('datastoreType', local_var_params['datastore_type'])) header_params = {} diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/__init__.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/__init__.py index 292b95fc8b..3e42646b49 100644 --- a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/__init__.py +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/__init__.py @@ -163,6 +163,7 @@ from huaweicloudsdkcss.v1.model.log_list import LogList from huaweicloudsdkcss.v1.model.pay_info_body import PayInfoBody from huaweicloudsdkcss.v1.model.period_req import PeriodReq +from huaweicloudsdkcss.v1.model.permission_info import PermissionInfo from huaweicloudsdkcss.v1.model.pipelines import Pipelines from huaweicloudsdkcss.v1.model.public_kibana_resp_body import PublicKibanaRespBody from huaweicloudsdkcss.v1.model.reset_password_req import ResetPasswordReq diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_clusters_details_request.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_clusters_details_request.py index 0b51213f6e..2e6a80b8f4 100644 --- a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_clusters_details_request.py +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/list_clusters_details_request.py @@ -18,15 +18,17 @@ class ListClustersDetailsRequest: openapi_types = { 'start': 'int', - 'limit': 'int' + 'limit': 'int', + 'datastore_type': 'str' } attribute_map = { 'start': 'start', - 'limit': 'limit' + 'limit': 'limit', + 'datastore_type': 'datastoreType' } - def __init__(self, start=None, limit=None): + def __init__(self, start=None, limit=None, datastore_type=None): """ListClustersDetailsRequest The model defined in huaweicloud sdk @@ -35,18 +37,23 @@ def __init__(self, start=None, limit=None): :type start: int :param limit: 指定查询个数,默认值为10,即一次查询10个集群信息。 :type limit: int + :param datastore_type: 指定查询的集群引擎类型。 + :type datastore_type: str """ self._start = None self._limit = None + self._datastore_type = None self.discriminator = None if start is not None: self.start = start if limit is not None: self.limit = limit + if datastore_type is not None: + self.datastore_type = datastore_type @property def start(self): @@ -92,6 +99,28 @@ def limit(self, limit): """ self._limit = limit + @property + def datastore_type(self): + """Gets the datastore_type of this ListClustersDetailsRequest. + + 指定查询的集群引擎类型。 + + :return: The datastore_type of this ListClustersDetailsRequest. + :rtype: str + """ + return self._datastore_type + + @datastore_type.setter + def datastore_type(self, datastore_type): + """Sets the datastore_type of this ListClustersDetailsRequest. + + 指定查询的集群引擎类型。 + + :param datastore_type: The datastore_type of this ListClustersDetailsRequest. + :type datastore_type: str + """ + self._datastore_type = datastore_type + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/permission_info.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/permission_info.py new file mode 100644 index 0000000000..62da0360fb --- /dev/null +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/permission_info.py @@ -0,0 +1,202 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class PermissionInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'permission': 'str', + 'permission_type': 'str', + 'created_at': 'str' + } + + attribute_map = { + 'id': 'id', + 'permission': 'permission', + 'permission_type': 'permission_type', + 'created_at': 'created_at' + } + + def __init__(self, id=None, permission=None, permission_type=None, created_at=None): + """PermissionInfo + + The model defined in huaweicloud sdk + + :param id: permission的ID。 + :type id: str + :param permission: permission详情。 + :type permission: str + :param permission_type: 终端节点服务白名单类型。 + :type permission_type: str + :param created_at: 白名单的添加时间。 + :type created_at: str + """ + + + + self._id = None + self._permission = None + self._permission_type = None + self._created_at = None + self.discriminator = None + + if id is not None: + self.id = id + if permission is not None: + self.permission = permission + if permission_type is not None: + self.permission_type = permission_type + if created_at is not None: + self.created_at = created_at + + @property + def id(self): + """Gets the id of this PermissionInfo. + + permission的ID。 + + :return: The id of this PermissionInfo. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this PermissionInfo. + + permission的ID。 + + :param id: The id of this PermissionInfo. + :type id: str + """ + self._id = id + + @property + def permission(self): + """Gets the permission of this PermissionInfo. + + permission详情。 + + :return: The permission of this PermissionInfo. + :rtype: str + """ + return self._permission + + @permission.setter + def permission(self, permission): + """Sets the permission of this PermissionInfo. + + permission详情。 + + :param permission: The permission of this PermissionInfo. + :type permission: str + """ + self._permission = permission + + @property + def permission_type(self): + """Gets the permission_type of this PermissionInfo. + + 终端节点服务白名单类型。 + + :return: The permission_type of this PermissionInfo. + :rtype: str + """ + return self._permission_type + + @permission_type.setter + def permission_type(self, permission_type): + """Sets the permission_type of this PermissionInfo. + + 终端节点服务白名单类型。 + + :param permission_type: The permission_type of this PermissionInfo. + :type permission_type: str + """ + self._permission_type = permission_type + + @property + def created_at(self): + """Gets the created_at of this PermissionInfo. + + 白名单的添加时间。 + + :return: The created_at of this PermissionInfo. + :rtype: str + """ + return self._created_at + + @created_at.setter + def created_at(self, created_at): + """Sets the created_at of this PermissionInfo. + + 白名单的添加时间。 + + :param created_at: The created_at of this PermissionInfo. + :type created_at: str + """ + self._created_at = created_at + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PermissionInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/show_vpcep_connection_response.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/show_vpcep_connection_response.py index bc4c38db55..9e36239603 100644 --- a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/show_vpcep_connection_response.py +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/show_vpcep_connection_response.py @@ -20,16 +20,20 @@ class ShowVpcepConnectionResponse(SdkResponse): openapi_types = { 'connections': 'list[Connections]', 'vpcep_update_switch': 'bool', - 'total_count': 'int' + 'total_count': 'int', + 'vpc_service_name': 'str', + 'permissions': 'list[PermissionInfo]' } attribute_map = { 'connections': 'connections', 'vpcep_update_switch': 'vpcepUpdateSwitch', - 'total_count': 'total_count' + 'total_count': 'total_count', + 'vpc_service_name': 'vpcServiceName', + 'permissions': 'permissions' } - def __init__(self, connections=None, vpcep_update_switch=None, total_count=None): + def __init__(self, connections=None, vpcep_update_switch=None, total_count=None, vpc_service_name=None, permissions=None): """ShowVpcepConnectionResponse The model defined in huaweicloud sdk @@ -40,6 +44,10 @@ def __init__(self, connections=None, vpcep_update_switch=None, total_count=None) :type vpcep_update_switch: bool :param total_count: 终端节点数量。 :type total_count: int + :param vpc_service_name: 终端节点服务名称。 + :type vpc_service_name: str + :param permissions: + :type permissions: list[:class:`huaweicloudsdkcss.v1.PermissionInfo`] """ super(ShowVpcepConnectionResponse, self).__init__() @@ -47,6 +55,8 @@ def __init__(self, connections=None, vpcep_update_switch=None, total_count=None) self._connections = None self._vpcep_update_switch = None self._total_count = None + self._vpc_service_name = None + self._permissions = None self.discriminator = None if connections is not None: @@ -55,6 +65,10 @@ def __init__(self, connections=None, vpcep_update_switch=None, total_count=None) self.vpcep_update_switch = vpcep_update_switch if total_count is not None: self.total_count = total_count + if vpc_service_name is not None: + self.vpc_service_name = vpc_service_name + if permissions is not None: + self.permissions = permissions @property def connections(self): @@ -118,6 +132,46 @@ def total_count(self, total_count): """ self._total_count = total_count + @property + def vpc_service_name(self): + """Gets the vpc_service_name of this ShowVpcepConnectionResponse. + + 终端节点服务名称。 + + :return: The vpc_service_name of this ShowVpcepConnectionResponse. + :rtype: str + """ + return self._vpc_service_name + + @vpc_service_name.setter + def vpc_service_name(self, vpc_service_name): + """Sets the vpc_service_name of this ShowVpcepConnectionResponse. + + 终端节点服务名称。 + + :param vpc_service_name: The vpc_service_name of this ShowVpcepConnectionResponse. + :type vpc_service_name: str + """ + self._vpc_service_name = vpc_service_name + + @property + def permissions(self): + """Gets the permissions of this ShowVpcepConnectionResponse. + + :return: The permissions of this ShowVpcepConnectionResponse. + :rtype: list[:class:`huaweicloudsdkcss.v1.PermissionInfo`] + """ + return self._permissions + + @permissions.setter + def permissions(self, permissions): + """Sets the permissions of this ShowVpcepConnectionResponse. + + :param permissions: The permissions of this ShowVpcepConnectionResponse. + :type permissions: list[:class:`huaweicloudsdkcss.v1.PermissionInfo`] + """ + self._permissions = permissions + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/region/css_region.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/region/css_region.py index d8d207fb09..5f026f7572 100644 --- a/huaweicloud-sdk-css/huaweicloudsdkcss/v1/region/css_region.py +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v1/region/css_region.py @@ -54,6 +54,8 @@ class CssRegion: "https://css.my-kualalumpur-1.myhuaweicloud.com") EU_WEST_101 = Region("eu-west-101", "https://css.eu-west-101.myhuaweicloud.com") + AF_NORTH_1 = Region("af-north-1", + "https://css.af-north-1.myhuaweicloud.com") static_fields = { "cn-south-1": CN_SOUTH_1, @@ -80,6 +82,7 @@ class CssRegion: "cn-east-5": CN_EAST_5, "my-kualalumpur-1": MY_KUALALUMPUR_1, "eu-west-101": EU_WEST_101, + "af-north-1": AF_NORTH_1, } @classmethod diff --git a/huaweicloud-sdk-css/huaweicloudsdkcss/v2/region/css_region.py b/huaweicloud-sdk-css/huaweicloudsdkcss/v2/region/css_region.py index d8d207fb09..5f026f7572 100644 --- a/huaweicloud-sdk-css/huaweicloudsdkcss/v2/region/css_region.py +++ b/huaweicloud-sdk-css/huaweicloudsdkcss/v2/region/css_region.py @@ -54,6 +54,8 @@ class CssRegion: "https://css.my-kualalumpur-1.myhuaweicloud.com") EU_WEST_101 = Region("eu-west-101", "https://css.eu-west-101.myhuaweicloud.com") + AF_NORTH_1 = Region("af-north-1", + "https://css.af-north-1.myhuaweicloud.com") static_fields = { "cn-south-1": CN_SOUTH_1, @@ -80,6 +82,7 @@ class CssRegion: "cn-east-5": CN_EAST_5, "my-kualalumpur-1": MY_KUALALUMPUR_1, "eu-west-101": EU_WEST_101, + "af-north-1": AF_NORTH_1, } @classmethod diff --git a/huaweicloud-sdk-css/requirements.txt b/huaweicloud-sdk-css/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-css/requirements.txt +++ b/huaweicloud-sdk-css/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-css/setup.py b/huaweicloud-sdk-css/setup.py index b9abbc0eb6..2c5e5003cd 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cts/requirements.txt b/huaweicloud-sdk-cts/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-cts/requirements.txt +++ b/huaweicloud-sdk-cts/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-cts/setup.py b/huaweicloud-sdk-cts/setup.py index 30e9575ca1..8af30c5d91 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-das/huaweicloudsdkdas/v3/__init__.py b/huaweicloud-sdk-das/huaweicloudsdkdas/v3/__init__.py index 4aa3d0a4c4..19cc93c471 100644 --- a/huaweicloud-sdk-das/huaweicloudsdkdas/v3/__init__.py +++ b/huaweicloud-sdk-das/huaweicloudsdkdas/v3/__init__.py @@ -76,6 +76,9 @@ from huaweicloudsdkdas.v3.model.list_sql_limit_rules_request import ListSqlLimitRulesRequest from huaweicloudsdkdas.v3.model.list_sql_limit_rules_response import ListSqlLimitRulesResponse from huaweicloudsdkdas.v3.model.metadata_lock import MetadataLock +from huaweicloudsdkdas.v3.model.parse_sql_limit_rules_req import ParseSqlLimitRulesReq +from huaweicloudsdkdas.v3.model.parse_sql_limit_rules_request import ParseSqlLimitRulesRequest +from huaweicloudsdkdas.v3.model.parse_sql_limit_rules_response import ParseSqlLimitRulesResponse from huaweicloudsdkdas.v3.model.process import Process from huaweicloudsdkdas.v3.model.query_sql_plan_body import QuerySqlPlanBody from huaweicloudsdkdas.v3.model.register_db_user_request import RegisterDbUserRequest diff --git a/huaweicloud-sdk-das/huaweicloudsdkdas/v3/das_async_client.py b/huaweicloud-sdk-das/huaweicloudsdkdas/v3/das_async_client.py index 7f68fb0a86..3eafe45ab0 100644 --- a/huaweicloud-sdk-das/huaweicloudsdkdas/v3/das_async_client.py +++ b/huaweicloud-sdk-das/huaweicloudsdkdas/v3/das_async_client.py @@ -1778,6 +1778,75 @@ def _list_sql_limit_rules_http_info(self, request): return http_info + def parse_sql_limit_rules_async(self, request): + """根据原始SQL生成SQL限流关键字 + + 根据原始SQL生成SQL限流关键字,目前支持MySQL、MariaDB、GaussDB(for MySQL)三种引擎。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ParseSqlLimitRules + :type request: :class:`huaweicloudsdkdas.v3.ParseSqlLimitRulesRequest` + :rtype: :class:`huaweicloudsdkdas.v3.ParseSqlLimitRulesResponse` + """ + http_info = self._parse_sql_limit_rules_http_info(request) + return self._call_api(**http_info) + + def parse_sql_limit_rules_async_invoker(self, request): + http_info = self._parse_sql_limit_rules_http_info(request) + return AsyncInvoker(self, http_info) + + def _parse_sql_limit_rules_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v3/{project_id}/instances/{instance_id}/sql-limit/parse", + "request_type": request.__class__.__name__, + "response_type": "ParseSqlLimitRulesResponse" + } + + 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 = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def register_db_user_async(self, request): """注册数据库用户 diff --git a/huaweicloud-sdk-das/huaweicloudsdkdas/v3/das_client.py b/huaweicloud-sdk-das/huaweicloudsdkdas/v3/das_client.py index 7c289b6f6f..160bce4940 100644 --- a/huaweicloud-sdk-das/huaweicloudsdkdas/v3/das_client.py +++ b/huaweicloud-sdk-das/huaweicloudsdkdas/v3/das_client.py @@ -1778,6 +1778,75 @@ def _list_sql_limit_rules_http_info(cls, request): return http_info + def parse_sql_limit_rules(self, request): + """根据原始SQL生成SQL限流关键字 + + 根据原始SQL生成SQL限流关键字,目前支持MySQL、MariaDB、GaussDB(for MySQL)三种引擎。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ParseSqlLimitRules + :type request: :class:`huaweicloudsdkdas.v3.ParseSqlLimitRulesRequest` + :rtype: :class:`huaweicloudsdkdas.v3.ParseSqlLimitRulesResponse` + """ + http_info = self._parse_sql_limit_rules_http_info(request) + return self._call_api(**http_info) + + def parse_sql_limit_rules_invoker(self, request): + http_info = self._parse_sql_limit_rules_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _parse_sql_limit_rules_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v3/{project_id}/instances/{instance_id}/sql-limit/parse", + "request_type": request.__class__.__name__, + "response_type": "ParseSqlLimitRulesResponse" + } + + 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 = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def register_db_user(self, request): """注册数据库用户 diff --git a/huaweicloud-sdk-das/huaweicloudsdkdas/v3/model/__init__.py b/huaweicloud-sdk-das/huaweicloudsdkdas/v3/model/__init__.py index c02bd1a94c..5b6086542f 100644 --- a/huaweicloud-sdk-das/huaweicloudsdkdas/v3/model/__init__.py +++ b/huaweicloud-sdk-das/huaweicloudsdkdas/v3/model/__init__.py @@ -74,6 +74,9 @@ from huaweicloudsdkdas.v3.model.list_sql_limit_rules_request import ListSqlLimitRulesRequest from huaweicloudsdkdas.v3.model.list_sql_limit_rules_response import ListSqlLimitRulesResponse from huaweicloudsdkdas.v3.model.metadata_lock import MetadataLock +from huaweicloudsdkdas.v3.model.parse_sql_limit_rules_req import ParseSqlLimitRulesReq +from huaweicloudsdkdas.v3.model.parse_sql_limit_rules_request import ParseSqlLimitRulesRequest +from huaweicloudsdkdas.v3.model.parse_sql_limit_rules_response import ParseSqlLimitRulesResponse from huaweicloudsdkdas.v3.model.process import Process from huaweicloudsdkdas.v3.model.query_sql_plan_body import QuerySqlPlanBody from huaweicloudsdkdas.v3.model.register_db_user_request import RegisterDbUserRequest diff --git a/huaweicloud-sdk-das/huaweicloudsdkdas/v3/model/parse_sql_limit_rules_req.py b/huaweicloud-sdk-das/huaweicloudsdkdas/v3/model/parse_sql_limit_rules_req.py new file mode 100644 index 0000000000..232b03efd6 --- /dev/null +++ b/huaweicloud-sdk-das/huaweicloudsdkdas/v3/model/parse_sql_limit_rules_req.py @@ -0,0 +1,198 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ParseSqlLimitRulesReq: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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_type': 'str', + 'original_sql': 'str', + 'use_template': 'bool', + 'keep_operators': 'bool' + } + + attribute_map = { + 'datastore_type': 'datastore_type', + 'original_sql': 'original_sql', + 'use_template': 'use_template', + 'keep_operators': 'keep_operators' + } + + def __init__(self, datastore_type=None, original_sql=None, use_template=None, keep_operators=None): + """ParseSqlLimitRulesReq + + The model defined in huaweicloud sdk + + :param datastore_type: 数据库类型,目前支持MySQL、MariaDB、GaussDB(for MySQL)三种引擎。 + :type datastore_type: str + :param original_sql: 原始SQL语句 + :type original_sql: str + :param use_template: 是否校验SQL语句 + :type use_template: bool + :param keep_operators: 是否保留操作符 + :type keep_operators: bool + """ + + + + self._datastore_type = None + self._original_sql = None + self._use_template = None + self._keep_operators = None + self.discriminator = None + + self.datastore_type = datastore_type + self.original_sql = original_sql + self.use_template = use_template + self.keep_operators = keep_operators + + @property + def datastore_type(self): + """Gets the datastore_type of this ParseSqlLimitRulesReq. + + 数据库类型,目前支持MySQL、MariaDB、GaussDB(for MySQL)三种引擎。 + + :return: The datastore_type of this ParseSqlLimitRulesReq. + :rtype: str + """ + return self._datastore_type + + @datastore_type.setter + def datastore_type(self, datastore_type): + """Sets the datastore_type of this ParseSqlLimitRulesReq. + + 数据库类型,目前支持MySQL、MariaDB、GaussDB(for MySQL)三种引擎。 + + :param datastore_type: The datastore_type of this ParseSqlLimitRulesReq. + :type datastore_type: str + """ + self._datastore_type = datastore_type + + @property + def original_sql(self): + """Gets the original_sql of this ParseSqlLimitRulesReq. + + 原始SQL语句 + + :return: The original_sql of this ParseSqlLimitRulesReq. + :rtype: str + """ + return self._original_sql + + @original_sql.setter + def original_sql(self, original_sql): + """Sets the original_sql of this ParseSqlLimitRulesReq. + + 原始SQL语句 + + :param original_sql: The original_sql of this ParseSqlLimitRulesReq. + :type original_sql: str + """ + self._original_sql = original_sql + + @property + def use_template(self): + """Gets the use_template of this ParseSqlLimitRulesReq. + + 是否校验SQL语句 + + :return: The use_template of this ParseSqlLimitRulesReq. + :rtype: bool + """ + return self._use_template + + @use_template.setter + def use_template(self, use_template): + """Sets the use_template of this ParseSqlLimitRulesReq. + + 是否校验SQL语句 + + :param use_template: The use_template of this ParseSqlLimitRulesReq. + :type use_template: bool + """ + self._use_template = use_template + + @property + def keep_operators(self): + """Gets the keep_operators of this ParseSqlLimitRulesReq. + + 是否保留操作符 + + :return: The keep_operators of this ParseSqlLimitRulesReq. + :rtype: bool + """ + return self._keep_operators + + @keep_operators.setter + def keep_operators(self, keep_operators): + """Sets the keep_operators of this ParseSqlLimitRulesReq. + + 是否保留操作符 + + :param keep_operators: The keep_operators of this ParseSqlLimitRulesReq. + :type keep_operators: bool + """ + self._keep_operators = keep_operators + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ParseSqlLimitRulesReq): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-das/huaweicloudsdkdas/v3/model/parse_sql_limit_rules_request.py b/huaweicloud-sdk-das/huaweicloudsdkdas/v3/model/parse_sql_limit_rules_request.py new file mode 100644 index 0000000000..6523934887 --- /dev/null +++ b/huaweicloud-sdk-das/huaweicloudsdkdas/v3/model/parse_sql_limit_rules_request.py @@ -0,0 +1,168 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ParseSqlLimitRulesRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'x_language': 'str', + 'body': 'ParseSqlLimitRulesReq' + } + + attribute_map = { + 'instance_id': 'instance_id', + 'x_language': 'X-Language', + 'body': 'body' + } + + def __init__(self, instance_id=None, x_language=None, body=None): + """ParseSqlLimitRulesRequest + + The model defined in huaweicloud sdk + + :param instance_id: 实例ID + :type instance_id: str + :param x_language: 语言 + :type x_language: str + :param body: Body of the ParseSqlLimitRulesRequest + :type body: :class:`huaweicloudsdkdas.v3.ParseSqlLimitRulesReq` + """ + + + + self._instance_id = None + self._x_language = None + self._body = None + self.discriminator = None + + self.instance_id = instance_id + if x_language is not None: + self.x_language = x_language + if body is not None: + self.body = body + + @property + def instance_id(self): + """Gets the instance_id of this ParseSqlLimitRulesRequest. + + 实例ID + + :return: The instance_id of this ParseSqlLimitRulesRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this ParseSqlLimitRulesRequest. + + 实例ID + + :param instance_id: The instance_id of this ParseSqlLimitRulesRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def x_language(self): + """Gets the x_language of this ParseSqlLimitRulesRequest. + + 语言 + + :return: The x_language of this ParseSqlLimitRulesRequest. + :rtype: str + """ + return self._x_language + + @x_language.setter + def x_language(self, x_language): + """Sets the x_language of this ParseSqlLimitRulesRequest. + + 语言 + + :param x_language: The x_language of this ParseSqlLimitRulesRequest. + :type x_language: str + """ + self._x_language = x_language + + @property + def body(self): + """Gets the body of this ParseSqlLimitRulesRequest. + + :return: The body of this ParseSqlLimitRulesRequest. + :rtype: :class:`huaweicloudsdkdas.v3.ParseSqlLimitRulesReq` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this ParseSqlLimitRulesRequest. + + :param body: The body of this ParseSqlLimitRulesRequest. + :type body: :class:`huaweicloudsdkdas.v3.ParseSqlLimitRulesReq` + """ + 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, ParseSqlLimitRulesRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-das/huaweicloudsdkdas/v3/model/parse_sql_limit_rules_response.py b/huaweicloud-sdk-das/huaweicloudsdkdas/v3/model/parse_sql_limit_rules_response.py new file mode 100644 index 0000000000..fb5f63f624 --- /dev/null +++ b/huaweicloud-sdk-das/huaweicloudsdkdas/v3/model/parse_sql_limit_rules_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 ParseSqlLimitRulesResponse(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 = { + 'rule': 'str' + } + + attribute_map = { + 'rule': 'rule' + } + + def __init__(self, rule=None): + """ParseSqlLimitRulesResponse + + The model defined in huaweicloud sdk + + :param rule: SQL限流关键字 + :type rule: str + """ + + super(ParseSqlLimitRulesResponse, self).__init__() + + self._rule = None + self.discriminator = None + + if rule is not None: + self.rule = rule + + @property + def rule(self): + """Gets the rule of this ParseSqlLimitRulesResponse. + + SQL限流关键字 + + :return: The rule of this ParseSqlLimitRulesResponse. + :rtype: str + """ + return self._rule + + @rule.setter + def rule(self, rule): + """Sets the rule of this ParseSqlLimitRulesResponse. + + SQL限流关键字 + + :param rule: The rule of this ParseSqlLimitRulesResponse. + :type rule: str + """ + self._rule = rule + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ParseSqlLimitRulesResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-das/huaweicloudsdkdas/v3/region/das_region.py b/huaweicloud-sdk-das/huaweicloudsdkdas/v3/region/das_region.py index 6179d61a0c..1678516ca9 100644 --- a/huaweicloud-sdk-das/huaweicloudsdkdas/v3/region/das_region.py +++ b/huaweicloud-sdk-das/huaweicloudsdkdas/v3/region/das_region.py @@ -22,6 +22,26 @@ class DasRegion: "https://das.cn-southwest-2.myhuaweicloud.com") TR_WEST_1 = Region("tr-west-1", "https://das.tr-west-1.myhuaweicloud.com") + AP_SOUTHEAST_4 = Region("ap-southeast-4", + "https://das.ap-southeast-4.myhuaweicloud.com") + ME_EAST_1 = Region("me-east-1", + "https://das.me-east-1.myhuaweicloud.com") + NA_MEXICO_1 = Region("na-mexico-1", + "https://das.la-south-2.myhuaweicloud.com") + CN_NORTH_9 = Region("cn-north-9", + "https://das.cn-north-9.myhuaweicloud.com") + CN_SOUTH_4 = Region("cn-south-4", + "https://das.cn-south-4.myhuaweicloud.com") + CN_EAST_5 = Region("cn-east-5", + "https://das.cn-east-5.myhuaweicloud.com") + SA_BRAZIL_1 = Region("sa-brazil-1", + "https://das.sa-brazil-1.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://das.ap-southeast-3.myhuaweicloud.com") + AF_SOUTH_1 = Region("af-south-1", + "https://das.af-south-1.myhuaweicloud.com") + AP_SOUTHEAST_1 = Region("ap-southeast-1", + "https://das.ap-southeast-1.myhuaweicloud.com") static_fields = { "cn-south-1": CN_SOUTH_1, @@ -32,6 +52,16 @@ class DasRegion: "cn-east-2": CN_EAST_2, "cn-southwest-2": CN_SOUTHWEST_2, "tr-west-1": TR_WEST_1, + "ap-southeast-4": AP_SOUTHEAST_4, + "me-east-1": ME_EAST_1, + "na-mexico-1": NA_MEXICO_1, + "cn-north-9": CN_NORTH_9, + "cn-south-4": CN_SOUTH_4, + "cn-east-5": CN_EAST_5, + "sa-brazil-1": SA_BRAZIL_1, + "ap-southeast-3": AP_SOUTHEAST_3, + "af-south-1": AF_SOUTH_1, + "ap-southeast-1": AP_SOUTHEAST_1, } @classmethod diff --git a/huaweicloud-sdk-das/requirements.txt b/huaweicloud-sdk-das/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-das/requirements.txt +++ b/huaweicloud-sdk-das/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-das/setup.py b/huaweicloud-sdk-das/setup.py index db63d8c0bc..65a0d7adb9 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/list_release_packages_resp_data.py b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/list_release_packages_resp_data.py index 80e448a6fa..0882a3846d 100644 --- a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/list_release_packages_resp_data.py +++ b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/list_release_packages_resp_data.py @@ -17,7 +17,7 @@ class ListReleasePackagesRespData: sensitive_list = [] openapi_types = { - 'apply_timestamp': 'str', + 'apply_timestamp': 'int', 'apply_user_id': 'str', 'apply_user_name': 'str', 'delete_flag': 'int', @@ -54,7 +54,7 @@ def __init__(self, apply_timestamp=None, apply_user_id=None, apply_user_name=Non The model defined in huaweicloud sdk :param apply_timestamp: 申请时间,13位时间戳 - :type apply_timestamp: str + :type apply_timestamp: int :param apply_user_id: 申请人id :type apply_user_id: str :param apply_user_name: 申请人名称 @@ -131,7 +131,7 @@ def apply_timestamp(self): 申请时间,13位时间戳 :return: The apply_timestamp of this ListReleasePackagesRespData. - :rtype: str + :rtype: int """ return self._apply_timestamp @@ -142,7 +142,7 @@ def apply_timestamp(self, apply_timestamp): 申请时间,13位时间戳 :param apply_timestamp: The apply_timestamp of this ListReleasePackagesRespData. - :type apply_timestamp: str + :type apply_timestamp: int """ self._apply_timestamp = apply_timestamp diff --git a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/show_package_detail_resp_task_details.py b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/show_package_detail_resp_task_details.py index 0594258ccd..e470e10eee 100644 --- a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/show_package_detail_resp_task_details.py +++ b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/show_package_detail_resp_task_details.py @@ -23,6 +23,8 @@ class ShowPackageDetailRespTaskDetails: 'pending_item_id': 'str', 'pending_version': 'int', 'script_id': 'str', + 'task_id': 'str', + 'start_job_status': 'int', 'submit_timestamp': 'int', 'submit_user_id': 'str', 'submit_user_name': 'str', @@ -37,6 +39,8 @@ class ShowPackageDetailRespTaskDetails: 'pending_item_id': 'pending_item_id', 'pending_version': 'pending_version', 'script_id': 'script_id', + 'task_id': 'task_id', + 'start_job_status': 'start_job_status', 'submit_timestamp': 'submit_timestamp', 'submit_user_id': 'submit_user_id', 'submit_user_name': 'submit_user_name', @@ -44,7 +48,7 @@ class ShowPackageDetailRespTaskDetails: 'update_type': 'update_type' } - def __init__(self, deploy_status=None, deployed_version=None, item_name=None, pending_item_id=None, pending_version=None, script_id=None, submit_timestamp=None, submit_user_id=None, submit_user_name=None, task_type=None, update_type=None): + def __init__(self, deploy_status=None, deployed_version=None, item_name=None, pending_item_id=None, pending_version=None, script_id=None, task_id=None, start_job_status=None, submit_timestamp=None, submit_user_id=None, submit_user_name=None, task_type=None, update_type=None): """ShowPackageDetailRespTaskDetails The model defined in huaweicloud sdk @@ -61,6 +65,10 @@ def __init__(self, deploy_status=None, deployed_version=None, item_name=None, pe :type pending_version: int :param script_id: 具体脚本ID :type script_id: str + :param task_id: 作业ID + :type task_id: str + :param start_job_status: 作业启动状态,2:成功,3:失败 + :type start_job_status: int :param submit_timestamp: 提交时间戳,13位时间戳 :type submit_timestamp: int :param submit_user_id: 提交人id @@ -81,6 +89,8 @@ def __init__(self, deploy_status=None, deployed_version=None, item_name=None, pe self._pending_item_id = None self._pending_version = None self._script_id = None + self._task_id = None + self._start_job_status = None self._submit_timestamp = None self._submit_user_id = None self._submit_user_name = None @@ -100,6 +110,10 @@ def __init__(self, deploy_status=None, deployed_version=None, item_name=None, pe self.pending_version = pending_version if script_id is not None: self.script_id = script_id + if task_id is not None: + self.task_id = task_id + if start_job_status is not None: + self.start_job_status = start_job_status if submit_timestamp is not None: self.submit_timestamp = submit_timestamp if submit_user_id is not None: @@ -243,6 +257,50 @@ def script_id(self, script_id): """ self._script_id = script_id + @property + def task_id(self): + """Gets the task_id of this ShowPackageDetailRespTaskDetails. + + 作业ID + + :return: The task_id of this ShowPackageDetailRespTaskDetails. + :rtype: str + """ + return self._task_id + + @task_id.setter + def task_id(self, task_id): + """Sets the task_id of this ShowPackageDetailRespTaskDetails. + + 作业ID + + :param task_id: The task_id of this ShowPackageDetailRespTaskDetails. + :type task_id: str + """ + self._task_id = task_id + + @property + def start_job_status(self): + """Gets the start_job_status of this ShowPackageDetailRespTaskDetails. + + 作业启动状态,2:成功,3:失败 + + :return: The start_job_status of this ShowPackageDetailRespTaskDetails. + :rtype: int + """ + return self._start_job_status + + @start_job_status.setter + def start_job_status(self, start_job_status): + """Sets the start_job_status of this ShowPackageDetailRespTaskDetails. + + 作业启动状态,2:成功,3:失败 + + :param start_job_status: The start_job_status of this ShowPackageDetailRespTaskDetails. + :type start_job_status: int + """ + self._start_job_status = start_job_status + @property def submit_timestamp(self): """Gets the submit_timestamp of this ShowPackageDetailRespTaskDetails. diff --git a/huaweicloud-sdk-dataartsstudio/requirements.txt b/huaweicloud-sdk-dataartsstudio/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-dataartsstudio/requirements.txt +++ b/huaweicloud-sdk-dataartsstudio/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-dataartsstudio/setup.py b/huaweicloud-sdk-dataartsstudio/setup.py index 2a7db0c3e2..7e36a5c1b6 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dbss/requirements.txt b/huaweicloud-sdk-dbss/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-dbss/requirements.txt +++ b/huaweicloud-sdk-dbss/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-dbss/setup.py b/huaweicloud-sdk-dbss/setup.py index 880e99b185..f6d56e1edf 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dc/requirements.txt b/huaweicloud-sdk-dc/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-dc/requirements.txt +++ b/huaweicloud-sdk-dc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-dc/setup.py b/huaweicloud-sdk-dc/setup.py index ea970bfacb..e4574bf34a 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dcs/requirements.txt b/huaweicloud-sdk-dcs/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-dcs/requirements.txt +++ b/huaweicloud-sdk-dcs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-dcs/setup.py b/huaweicloud-sdk-dcs/setup.py index 68bc956823..9bf90f3571 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ddm/requirements.txt b/huaweicloud-sdk-ddm/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-ddm/requirements.txt +++ b/huaweicloud-sdk-ddm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-ddm/setup.py b/huaweicloud-sdk-ddm/setup.py index 5e3a0f39cb..41a88781d3 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/region/dds_region.py b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/region/dds_region.py index 32e91bc8cd..6c62288e9f 100644 --- a/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/region/dds_region.py +++ b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/region/dds_region.py @@ -53,7 +53,9 @@ class DdsRegion: EU_WEST_0 = Region("eu-west-0", "https://dds.eu-west-0.myhuaweicloud.com") MY_KUALALUMPUR_1 = Region("my-kualalumpur-1", - "https://dd.my-kualalumpur-1.myhuaweicloud.com") + "https://dds.my-kualalumpur-1.myhuaweicloud.com") + RU_MOSCOW_1 = Region("ru-moscow-1", + "https://dds.ru-moscow-1.myhuaweicloud.com") static_fields = { "eu-west-101": EU_WEST_101, @@ -80,6 +82,7 @@ class DdsRegion: "ap-southeast-4": AP_SOUTHEAST_4, "eu-west-0": EU_WEST_0, "my-kualalumpur-1": MY_KUALALUMPUR_1, + "ru-moscow-1": RU_MOSCOW_1, } @classmethod diff --git a/huaweicloud-sdk-dds/requirements.txt b/huaweicloud-sdk-dds/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-dds/requirements.txt +++ b/huaweicloud-sdk-dds/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-dds/setup.py b/huaweicloud-sdk-dds/setup.py index 7333355bab..ee806372c0 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-deh/requirements.txt b/huaweicloud-sdk-deh/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-deh/requirements.txt +++ b/huaweicloud-sdk-deh/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-deh/setup.py b/huaweicloud-sdk-deh/setup.py index 7827b89fb6..a46f578cc8 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-devsecurity/requirements.txt b/huaweicloud-sdk-devsecurity/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-devsecurity/requirements.txt +++ b/huaweicloud-sdk-devsecurity/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-devsecurity/setup.py b/huaweicloud-sdk-devsecurity/setup.py index c0667199cf..8291c3792e 100644 --- a/huaweicloud-sdk-devsecurity/setup.py +++ b/huaweicloud-sdk-devsecurity/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "huaweicloudsdkdevsecurity" -VERSION = "3.1.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-devstar/requirements.txt b/huaweicloud-sdk-devstar/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-devstar/requirements.txt +++ b/huaweicloud-sdk-devstar/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-devstar/setup.py b/huaweicloud-sdk-devstar/setup.py index 093bcbd4f0..135795dd07 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dgc/requirements.txt b/huaweicloud-sdk-dgc/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-dgc/requirements.txt +++ b/huaweicloud-sdk-dgc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-dgc/setup.py b/huaweicloud-sdk-dgc/setup.py index 7dca878213..231b35efa5 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dis/requirements.txt b/huaweicloud-sdk-dis/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-dis/requirements.txt +++ b/huaweicloud-sdk-dis/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-dis/setup.py b/huaweicloud-sdk-dis/setup.py index 52a70df965..7958faf294 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dlf/requirements.txt b/huaweicloud-sdk-dlf/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-dlf/requirements.txt +++ b/huaweicloud-sdk-dlf/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-dlf/setup.py b/huaweicloud-sdk-dlf/setup.py index 3d11c972c0..b7ff908f72 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dli/huaweicloudsdkdli/v1/model/create_flink_sql_job_request_body.py b/huaweicloud-sdk-dli/huaweicloudsdkdli/v1/model/create_flink_sql_job_request_body.py index ce94541d31..10ab1ac552 100644 --- a/huaweicloud-sdk-dli/huaweicloudsdkdli/v1/model/create_flink_sql_job_request_body.py +++ b/huaweicloud-sdk-dli/huaweicloudsdkdli/v1/model/create_flink_sql_job_request_body.py @@ -115,7 +115,7 @@ def __init__(self, name=None, desc=None, template_id=None, queue_name=None, sql_ :type restart_when_exception: bool :param idle_state_retention: 空闲状态过期周期,单位为秒,默认值为3600。 :type idle_state_retention: int - :param job_type: 作业类型:flink_sql_job和flink_sql_edge_job。 run_mode为edge_node时,作业类型须为flink_sql_edge_job。 run_mode为shared_cluster跟exclusive_cluster时,作业类型须为flink_sql_job。 默认值:flink_sql_job。 + :param job_type: 作业类型:flink_sql_job、flink_opensource_sql_job。 默认值:“flink_opensource_sql_job”。 “run_mode”为“exclusive_cluster”时,作业类型须为“flink_sql_job”或“flink_opensource_sql_job”。 “run_mode””为“shared_cluster”时作业类型必须为”flink_sql_job“。 :type job_type: str :param edge_group_ids: 边缘计算组ID列表。 :type edge_group_ids: list[str] @@ -585,7 +585,7 @@ def idle_state_retention(self, idle_state_retention): def job_type(self): """Gets the job_type of this CreateFlinkSqlJobRequestBody. - 作业类型:flink_sql_job和flink_sql_edge_job。 run_mode为edge_node时,作业类型须为flink_sql_edge_job。 run_mode为shared_cluster跟exclusive_cluster时,作业类型须为flink_sql_job。 默认值:flink_sql_job。 + 作业类型:flink_sql_job、flink_opensource_sql_job。 默认值:“flink_opensource_sql_job”。 “run_mode”为“exclusive_cluster”时,作业类型须为“flink_sql_job”或“flink_opensource_sql_job”。 “run_mode””为“shared_cluster”时作业类型必须为”flink_sql_job“。 :return: The job_type of this CreateFlinkSqlJobRequestBody. :rtype: str @@ -596,7 +596,7 @@ def job_type(self): def job_type(self, job_type): """Sets the job_type of this CreateFlinkSqlJobRequestBody. - 作业类型:flink_sql_job和flink_sql_edge_job。 run_mode为edge_node时,作业类型须为flink_sql_edge_job。 run_mode为shared_cluster跟exclusive_cluster时,作业类型须为flink_sql_job。 默认值:flink_sql_job。 + 作业类型:flink_sql_job、flink_opensource_sql_job。 默认值:“flink_opensource_sql_job”。 “run_mode”为“exclusive_cluster”时,作业类型须为“flink_sql_job”或“flink_opensource_sql_job”。 “run_mode””为“shared_cluster”时作业类型必须为”flink_sql_job“。 :param job_type: The job_type of this CreateFlinkSqlJobRequestBody. :type job_type: str diff --git a/huaweicloud-sdk-dli/requirements.txt b/huaweicloud-sdk-dli/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-dli/requirements.txt +++ b/huaweicloud-sdk-dli/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-dli/setup.py b/huaweicloud-sdk-dli/setup.py index 1f5d4826be..822b96e2a6 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dns/requirements.txt b/huaweicloud-sdk-dns/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-dns/requirements.txt +++ b/huaweicloud-sdk-dns/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-dns/setup.py b/huaweicloud-sdk-dns/setup.py index ade6db08c4..fda2ede1fb 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dris/requirements.txt b/huaweicloud-sdk-dris/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-dris/requirements.txt +++ b/huaweicloud-sdk-dris/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-dris/setup.py b/huaweicloud-sdk-dris/setup.py index f33e05640f..86f4ea7589 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-drs/requirements.txt b/huaweicloud-sdk-drs/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-drs/requirements.txt +++ b/huaweicloud-sdk-drs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-drs/setup.py b/huaweicloud-sdk-drs/setup.py index 7750bd61e2..5c4922c35c 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dsc/requirements.txt b/huaweicloud-sdk-dsc/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-dsc/requirements.txt +++ b/huaweicloud-sdk-dsc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-dsc/setup.py b/huaweicloud-sdk-dsc/setup.py index 3dba6eec81..c43796d2eb 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dwr/requirements.txt b/huaweicloud-sdk-dwr/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-dwr/requirements.txt +++ b/huaweicloud-sdk-dwr/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-dwr/setup.py b/huaweicloud-sdk-dwr/setup.py index 65a73d47bb..32f59d56bc 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/__init__.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/__init__.py index 6e00939122..a671dc5c2e 100644 --- a/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/__init__.py +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/__init__.py @@ -45,6 +45,9 @@ from huaweicloudsdkdws.v2.model.batch_delete_resource_tags import BatchDeleteResourceTags from huaweicloudsdkdws.v2.model.cancel_readonly_cluster_request import CancelReadonlyClusterRequest from huaweicloudsdkdws.v2.model.cancel_readonly_cluster_response import CancelReadonlyClusterResponse +from huaweicloudsdkdws.v2.model.change_security_group_request import ChangeSecurityGroupRequest +from huaweicloudsdkdws.v2.model.change_security_group_request_body import ChangeSecurityGroupRequestBody +from huaweicloudsdkdws.v2.model.change_security_group_response import ChangeSecurityGroupResponse from huaweicloudsdkdws.v2.model.check_cluster_request import CheckClusterRequest from huaweicloudsdkdws.v2.model.check_cluster_response import CheckClusterResponse from huaweicloudsdkdws.v2.model.check_disaster_name_request import CheckDisasterNameRequest @@ -61,6 +64,7 @@ from huaweicloudsdkdws.v2.model.cluster_detail import ClusterDetail from huaweicloudsdkdws.v2.model.cluster_disaster_recovery import ClusterDisasterRecovery from huaweicloudsdkdws.v2.model.cluster_elb_info import ClusterElbInfo +from huaweicloudsdkdws.v2.model.cluster_flavor_detail_info import ClusterFlavorDetailInfo from huaweicloudsdkdws.v2.model.cluster_flavor_resp import ClusterFlavorResp from huaweicloudsdkdws.v2.model.cluster_info import ClusterInfo from huaweicloudsdkdws.v2.model.cluster_metric import ClusterMetric @@ -196,6 +200,8 @@ from huaweicloudsdkdws.v2.model.ext_data_source_req import ExtDataSourceReq from huaweicloudsdkdws.v2.model.failed_reason import FailedReason from huaweicloudsdkdws.v2.model.fine_grained_snapshot_detail import FineGrainedSnapshotDetail +from huaweicloudsdkdws.v2.model.flavor_attribute_info import FlavorAttributeInfo +from huaweicloudsdkdws.v2.model.flavor_volume_node_info import FlavorVolumeNodeInfo from huaweicloudsdkdws.v2.model.grant import Grant from huaweicloudsdkdws.v2.model.host_overview_response import HostOverviewResponse from huaweicloudsdkdws.v2.model.indicator_info import IndicatorInfo @@ -399,6 +405,8 @@ from huaweicloudsdkdws.v2.model.scale_out import ScaleOut from huaweicloudsdkdws.v2.model.schedule_conf import ScheduleConf from huaweicloudsdkdws.v2.model.schema_info import SchemaInfo +from huaweicloudsdkdws.v2.model.show_cluster_flavor_request import ShowClusterFlavorRequest +from huaweicloudsdkdws.v2.model.show_cluster_flavor_response import ShowClusterFlavorResponse from huaweicloudsdkdws.v2.model.show_cluster_redistribution_request import ShowClusterRedistributionRequest from huaweicloudsdkdws.v2.model.show_cluster_redistribution_response import ShowClusterRedistributionResponse from huaweicloudsdkdws.v2.model.show_database_authority_request import ShowDatabaseAuthorityRequest diff --git a/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/dws_async_client.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/dws_async_client.py index 82316f20e0..9f98ccb886 100644 --- a/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/dws_async_client.py +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/dws_async_client.py @@ -776,6 +776,73 @@ def _cancel_readonly_cluster_http_info(self, request): return http_info + def change_security_group_async(self, request): + """修改集群安全组 + + 该接口用于修改集群安全组 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ChangeSecurityGroup + :type request: :class:`huaweicloudsdkdws.v2.ChangeSecurityGroupRequest` + :rtype: :class:`huaweicloudsdkdws.v2.ChangeSecurityGroupResponse` + """ + http_info = self._change_security_group_http_info(request) + return self._call_api(**http_info) + + def change_security_group_async_invoker(self, request): + http_info = self._change_security_group_http_info(request) + return AsyncInvoker(self, http_info) + + def _change_security_group_http_info(self, request): + http_info = { + "method": "PUT", + "resource_path": "/v1/{project_id}/clusters/{cluster_id}/security-group", + "request_type": request.__class__.__name__, + "response_type": "ChangeSecurityGroupResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json;charset=UTF-8']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def check_cluster_async(self, request): """创建集群前检查 @@ -8303,6 +8370,73 @@ def _save_cluster_description_info_http_info(self, request): return http_info + def show_cluster_flavor_async(self, request): + """查询集群规格详情 + + 查询集群使用的规格详情 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowClusterFlavor + :type request: :class:`huaweicloudsdkdws.v2.ShowClusterFlavorRequest` + :rtype: :class:`huaweicloudsdkdws.v2.ShowClusterFlavorResponse` + """ + http_info = self._show_cluster_flavor_http_info(request) + return self._call_api(**http_info) + + def show_cluster_flavor_async_invoker(self, request): + http_info = self._show_cluster_flavor_http_info(request) + return AsyncInvoker(self, http_info) + + def _show_cluster_flavor_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v2/{project_id}/clusters/{cluster_id}/flavor", + "request_type": request.__class__.__name__, + "response_type": "ShowClusterFlavorResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + if 'namespace' in local_var_params: + query_params.append(('namespace', local_var_params['namespace'])) + + 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_redistribution_async(self, request): """查询重分布详情 diff --git a/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/dws_client.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/dws_client.py index 9d32f0b6fc..349cad81e2 100644 --- a/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/dws_client.py +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/dws_client.py @@ -776,6 +776,73 @@ def _cancel_readonly_cluster_http_info(cls, request): return http_info + def change_security_group(self, request): + """修改集群安全组 + + 该接口用于修改集群安全组 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ChangeSecurityGroup + :type request: :class:`huaweicloudsdkdws.v2.ChangeSecurityGroupRequest` + :rtype: :class:`huaweicloudsdkdws.v2.ChangeSecurityGroupResponse` + """ + http_info = self._change_security_group_http_info(request) + return self._call_api(**http_info) + + def change_security_group_invoker(self, request): + http_info = self._change_security_group_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _change_security_group_http_info(cls, request): + http_info = { + "method": "PUT", + "resource_path": "/v1/{project_id}/clusters/{cluster_id}/security-group", + "request_type": request.__class__.__name__, + "response_type": "ChangeSecurityGroupResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json;charset=UTF-8']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def check_cluster(self, request): """创建集群前检查 @@ -8303,6 +8370,73 @@ def _save_cluster_description_info_http_info(cls, request): return http_info + def show_cluster_flavor(self, request): + """查询集群规格详情 + + 查询集群使用的规格详情 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowClusterFlavor + :type request: :class:`huaweicloudsdkdws.v2.ShowClusterFlavorRequest` + :rtype: :class:`huaweicloudsdkdws.v2.ShowClusterFlavorResponse` + """ + http_info = self._show_cluster_flavor_http_info(request) + return self._call_api(**http_info) + + def show_cluster_flavor_invoker(self, request): + http_info = self._show_cluster_flavor_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _show_cluster_flavor_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v2/{project_id}/clusters/{cluster_id}/flavor", + "request_type": request.__class__.__name__, + "response_type": "ShowClusterFlavorResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] + + query_params = [] + if 'namespace' in local_var_params: + query_params.append(('namespace', local_var_params['namespace'])) + + 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_redistribution(self, request): """查询重分布详情 diff --git a/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/__init__.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/__init__.py index fe9c3bf279..41d8d9a948 100644 --- a/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/__init__.py +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/__init__.py @@ -43,6 +43,9 @@ from huaweicloudsdkdws.v2.model.batch_delete_resource_tags import BatchDeleteResourceTags from huaweicloudsdkdws.v2.model.cancel_readonly_cluster_request import CancelReadonlyClusterRequest from huaweicloudsdkdws.v2.model.cancel_readonly_cluster_response import CancelReadonlyClusterResponse +from huaweicloudsdkdws.v2.model.change_security_group_request import ChangeSecurityGroupRequest +from huaweicloudsdkdws.v2.model.change_security_group_request_body import ChangeSecurityGroupRequestBody +from huaweicloudsdkdws.v2.model.change_security_group_response import ChangeSecurityGroupResponse from huaweicloudsdkdws.v2.model.check_cluster_request import CheckClusterRequest from huaweicloudsdkdws.v2.model.check_cluster_response import CheckClusterResponse from huaweicloudsdkdws.v2.model.check_disaster_name_request import CheckDisasterNameRequest @@ -59,6 +62,7 @@ from huaweicloudsdkdws.v2.model.cluster_detail import ClusterDetail from huaweicloudsdkdws.v2.model.cluster_disaster_recovery import ClusterDisasterRecovery from huaweicloudsdkdws.v2.model.cluster_elb_info import ClusterElbInfo +from huaweicloudsdkdws.v2.model.cluster_flavor_detail_info import ClusterFlavorDetailInfo from huaweicloudsdkdws.v2.model.cluster_flavor_resp import ClusterFlavorResp from huaweicloudsdkdws.v2.model.cluster_info import ClusterInfo from huaweicloudsdkdws.v2.model.cluster_metric import ClusterMetric @@ -194,6 +198,8 @@ from huaweicloudsdkdws.v2.model.ext_data_source_req import ExtDataSourceReq from huaweicloudsdkdws.v2.model.failed_reason import FailedReason from huaweicloudsdkdws.v2.model.fine_grained_snapshot_detail import FineGrainedSnapshotDetail +from huaweicloudsdkdws.v2.model.flavor_attribute_info import FlavorAttributeInfo +from huaweicloudsdkdws.v2.model.flavor_volume_node_info import FlavorVolumeNodeInfo from huaweicloudsdkdws.v2.model.grant import Grant from huaweicloudsdkdws.v2.model.host_overview_response import HostOverviewResponse from huaweicloudsdkdws.v2.model.indicator_info import IndicatorInfo @@ -397,6 +403,8 @@ from huaweicloudsdkdws.v2.model.scale_out import ScaleOut from huaweicloudsdkdws.v2.model.schedule_conf import ScheduleConf from huaweicloudsdkdws.v2.model.schema_info import SchemaInfo +from huaweicloudsdkdws.v2.model.show_cluster_flavor_request import ShowClusterFlavorRequest +from huaweicloudsdkdws.v2.model.show_cluster_flavor_response import ShowClusterFlavorResponse from huaweicloudsdkdws.v2.model.show_cluster_redistribution_request import ShowClusterRedistributionRequest from huaweicloudsdkdws.v2.model.show_cluster_redistribution_response import ShowClusterRedistributionResponse from huaweicloudsdkdws.v2.model.show_database_authority_request import ShowDatabaseAuthorityRequest diff --git a/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/change_security_group_request.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/change_security_group_request.py new file mode 100644 index 0000000000..059420dd3f --- /dev/null +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/change_security_group_request.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ChangeSecurityGroupRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'cluster_id': 'str', + 'body': 'ChangeSecurityGroupRequestBody' + } + + attribute_map = { + 'cluster_id': 'cluster_id', + 'body': 'body' + } + + def __init__(self, cluster_id=None, body=None): + """ChangeSecurityGroupRequest + + The model defined in huaweicloud sdk + + :param cluster_id: 集群ID + :type cluster_id: str + :param body: Body of the ChangeSecurityGroupRequest + :type body: :class:`huaweicloudsdkdws.v2.ChangeSecurityGroupRequestBody` + """ + + + + self._cluster_id = None + self._body = None + self.discriminator = None + + self.cluster_id = cluster_id + if body is not None: + self.body = body + + @property + def cluster_id(self): + """Gets the cluster_id of this ChangeSecurityGroupRequest. + + 集群ID + + :return: The cluster_id of this ChangeSecurityGroupRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this ChangeSecurityGroupRequest. + + 集群ID + + :param cluster_id: The cluster_id of this ChangeSecurityGroupRequest. + :type cluster_id: str + """ + self._cluster_id = cluster_id + + @property + def body(self): + """Gets the body of this ChangeSecurityGroupRequest. + + :return: The body of this ChangeSecurityGroupRequest. + :rtype: :class:`huaweicloudsdkdws.v2.ChangeSecurityGroupRequestBody` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this ChangeSecurityGroupRequest. + + :param body: The body of this ChangeSecurityGroupRequest. + :type body: :class:`huaweicloudsdkdws.v2.ChangeSecurityGroupRequestBody` + """ + 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, ChangeSecurityGroupRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/change_security_group_request_body.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/change_security_group_request_body.py new file mode 100644 index 0000000000..991d3f7f6e --- /dev/null +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/change_security_group_request_body.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ChangeSecurityGroupRequestBody: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'security_groups': 'list[str]' + } + + attribute_map = { + 'security_groups': 'security_groups' + } + + def __init__(self, security_groups=None): + """ChangeSecurityGroupRequestBody + + The model defined in huaweicloud sdk + + :param security_groups: 安全组ID数组 + :type security_groups: list[str] + """ + + + + self._security_groups = None + self.discriminator = None + + self.security_groups = security_groups + + @property + def security_groups(self): + """Gets the security_groups of this ChangeSecurityGroupRequestBody. + + 安全组ID数组 + + :return: The security_groups of this ChangeSecurityGroupRequestBody. + :rtype: list[str] + """ + return self._security_groups + + @security_groups.setter + def security_groups(self, security_groups): + """Sets the security_groups of this ChangeSecurityGroupRequestBody. + + 安全组ID数组 + + :param security_groups: The security_groups of this ChangeSecurityGroupRequestBody. + :type security_groups: list[str] + """ + self._security_groups = security_groups + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ChangeSecurityGroupRequestBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/change_security_group_response.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/change_security_group_response.py new file mode 100644 index 0000000000..ab04a6789e --- /dev/null +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/change_security_group_response.py @@ -0,0 +1,85 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ChangeSecurityGroupResponse(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): + """ChangeSecurityGroupResponse + + The model defined in huaweicloud sdk + + """ + + super(ChangeSecurityGroupResponse, 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, ChangeSecurityGroupResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/cluster_flavor_detail_info.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/cluster_flavor_detail_info.py new file mode 100644 index 0000000000..a132fac224 --- /dev/null +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/cluster_flavor_detail_info.py @@ -0,0 +1,334 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ClusterFlavorDetailInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'spec_name': 'str', + 'current_node': 'int', + 'min_node': 'int', + 'max_node': 'int', + 'classify': 'str', + 'datastore_version': 'str', + 'attribute': 'list[FlavorAttributeInfo]', + 'volume_node': 'FlavorVolumeNodeInfo' + } + + attribute_map = { + 'id': 'id', + 'spec_name': 'spec_name', + 'current_node': 'current_node', + 'min_node': 'min_node', + 'max_node': 'max_node', + 'classify': 'classify', + 'datastore_version': 'datastore_version', + 'attribute': 'attribute', + 'volume_node': 'volume_node' + } + + def __init__(self, id=None, spec_name=None, current_node=None, min_node=None, max_node=None, classify=None, datastore_version=None, attribute=None, volume_node=None): + """ClusterFlavorDetailInfo + + The model defined in huaweicloud sdk + + :param id: 规格ID + :type id: str + :param spec_name: 规格编码 + :type spec_name: str + :param current_node: 当前节点数量 + :type current_node: int + :param min_node: 最小节点阈值 + :type min_node: int + :param max_node: 最大节点阈值 + :type max_node: int + :param classify: 规格类型 + :type classify: str + :param datastore_version: 数据仓库版本 + :type datastore_version: str + :param attribute: 扩展信息 + :type attribute: list[:class:`huaweicloudsdkdws.v2.FlavorAttributeInfo`] + :param volume_node: + :type volume_node: :class:`huaweicloudsdkdws.v2.FlavorVolumeNodeInfo` + """ + + + + self._id = None + self._spec_name = None + self._current_node = None + self._min_node = None + self._max_node = None + self._classify = None + self._datastore_version = None + self._attribute = None + self._volume_node = None + self.discriminator = None + + self.id = id + self.spec_name = spec_name + self.current_node = current_node + self.min_node = min_node + self.max_node = max_node + self.classify = classify + self.datastore_version = datastore_version + self.attribute = attribute + self.volume_node = volume_node + + @property + def id(self): + """Gets the id of this ClusterFlavorDetailInfo. + + 规格ID + + :return: The id of this ClusterFlavorDetailInfo. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this ClusterFlavorDetailInfo. + + 规格ID + + :param id: The id of this ClusterFlavorDetailInfo. + :type id: str + """ + self._id = id + + @property + def spec_name(self): + """Gets the spec_name of this ClusterFlavorDetailInfo. + + 规格编码 + + :return: The spec_name of this ClusterFlavorDetailInfo. + :rtype: str + """ + return self._spec_name + + @spec_name.setter + def spec_name(self, spec_name): + """Sets the spec_name of this ClusterFlavorDetailInfo. + + 规格编码 + + :param spec_name: The spec_name of this ClusterFlavorDetailInfo. + :type spec_name: str + """ + self._spec_name = spec_name + + @property + def current_node(self): + """Gets the current_node of this ClusterFlavorDetailInfo. + + 当前节点数量 + + :return: The current_node of this ClusterFlavorDetailInfo. + :rtype: int + """ + return self._current_node + + @current_node.setter + def current_node(self, current_node): + """Sets the current_node of this ClusterFlavorDetailInfo. + + 当前节点数量 + + :param current_node: The current_node of this ClusterFlavorDetailInfo. + :type current_node: int + """ + self._current_node = current_node + + @property + def min_node(self): + """Gets the min_node of this ClusterFlavorDetailInfo. + + 最小节点阈值 + + :return: The min_node of this ClusterFlavorDetailInfo. + :rtype: int + """ + return self._min_node + + @min_node.setter + def min_node(self, min_node): + """Sets the min_node of this ClusterFlavorDetailInfo. + + 最小节点阈值 + + :param min_node: The min_node of this ClusterFlavorDetailInfo. + :type min_node: int + """ + self._min_node = min_node + + @property + def max_node(self): + """Gets the max_node of this ClusterFlavorDetailInfo. + + 最大节点阈值 + + :return: The max_node of this ClusterFlavorDetailInfo. + :rtype: int + """ + return self._max_node + + @max_node.setter + def max_node(self, max_node): + """Sets the max_node of this ClusterFlavorDetailInfo. + + 最大节点阈值 + + :param max_node: The max_node of this ClusterFlavorDetailInfo. + :type max_node: int + """ + self._max_node = max_node + + @property + def classify(self): + """Gets the classify of this ClusterFlavorDetailInfo. + + 规格类型 + + :return: The classify of this ClusterFlavorDetailInfo. + :rtype: str + """ + return self._classify + + @classify.setter + def classify(self, classify): + """Sets the classify of this ClusterFlavorDetailInfo. + + 规格类型 + + :param classify: The classify of this ClusterFlavorDetailInfo. + :type classify: str + """ + self._classify = classify + + @property + def datastore_version(self): + """Gets the datastore_version of this ClusterFlavorDetailInfo. + + 数据仓库版本 + + :return: The datastore_version of this ClusterFlavorDetailInfo. + :rtype: str + """ + return self._datastore_version + + @datastore_version.setter + def datastore_version(self, datastore_version): + """Sets the datastore_version of this ClusterFlavorDetailInfo. + + 数据仓库版本 + + :param datastore_version: The datastore_version of this ClusterFlavorDetailInfo. + :type datastore_version: str + """ + self._datastore_version = datastore_version + + @property + def attribute(self): + """Gets the attribute of this ClusterFlavorDetailInfo. + + 扩展信息 + + :return: The attribute of this ClusterFlavorDetailInfo. + :rtype: list[:class:`huaweicloudsdkdws.v2.FlavorAttributeInfo`] + """ + return self._attribute + + @attribute.setter + def attribute(self, attribute): + """Sets the attribute of this ClusterFlavorDetailInfo. + + 扩展信息 + + :param attribute: The attribute of this ClusterFlavorDetailInfo. + :type attribute: list[:class:`huaweicloudsdkdws.v2.FlavorAttributeInfo`] + """ + self._attribute = attribute + + @property + def volume_node(self): + """Gets the volume_node of this ClusterFlavorDetailInfo. + + :return: The volume_node of this ClusterFlavorDetailInfo. + :rtype: :class:`huaweicloudsdkdws.v2.FlavorVolumeNodeInfo` + """ + return self._volume_node + + @volume_node.setter + def volume_node(self, volume_node): + """Sets the volume_node of this ClusterFlavorDetailInfo. + + :param volume_node: The volume_node of this ClusterFlavorDetailInfo. + :type volume_node: :class:`huaweicloudsdkdws.v2.FlavorVolumeNodeInfo` + """ + self._volume_node = volume_node + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ClusterFlavorDetailInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/flavor_attribute_info.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/flavor_attribute_info.py new file mode 100644 index 0000000000..5729aa7e78 --- /dev/null +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/flavor_attribute_info.py @@ -0,0 +1,142 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class FlavorAttributeInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'value': 'str' + } + + attribute_map = { + 'code': 'code', + 'value': 'value' + } + + def __init__(self, code=None, value=None): + """FlavorAttributeInfo + + The model defined in huaweicloud sdk + + :param code: 属性编码 + :type code: str + :param value: 属性值 + :type value: str + """ + + + + self._code = None + self._value = None + self.discriminator = None + + self.code = code + self.value = value + + @property + def code(self): + """Gets the code of this FlavorAttributeInfo. + + 属性编码 + + :return: The code of this FlavorAttributeInfo. + :rtype: str + """ + return self._code + + @code.setter + def code(self, code): + """Sets the code of this FlavorAttributeInfo. + + 属性编码 + + :param code: The code of this FlavorAttributeInfo. + :type code: str + """ + self._code = code + + @property + def value(self): + """Gets the value of this FlavorAttributeInfo. + + 属性值 + + :return: The value of this FlavorAttributeInfo. + :rtype: str + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this FlavorAttributeInfo. + + 属性值 + + :param value: The value of this FlavorAttributeInfo. + :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, FlavorAttributeInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/flavor_volume_node_info.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/flavor_volume_node_info.py new file mode 100644 index 0000000000..a9e656508d --- /dev/null +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/flavor_volume_node_info.py @@ -0,0 +1,198 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class FlavorVolumeNodeInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'volume_type': 'str', + 'volume_num': 'int', + 'capacity': 'int', + 'volume_size': 'int' + } + + attribute_map = { + 'volume_type': 'volume_type', + 'volume_num': 'volume_num', + 'capacity': 'capacity', + 'volume_size': 'volume_size' + } + + def __init__(self, volume_type=None, volume_num=None, capacity=None, volume_size=None): + """FlavorVolumeNodeInfo + + The model defined in huaweicloud sdk + + :param volume_type: 节点使用存储类型 + :type volume_type: str + :param volume_num: 节点使用的磁盘数量 + :type volume_num: int + :param capacity: 节点去除副本后的有效容量 + :type capacity: int + :param volume_size: 节点存的单盘容量 + :type volume_size: int + """ + + + + self._volume_type = None + self._volume_num = None + self._capacity = None + self._volume_size = None + self.discriminator = None + + self.volume_type = volume_type + self.volume_num = volume_num + self.capacity = capacity + self.volume_size = volume_size + + @property + def volume_type(self): + """Gets the volume_type of this FlavorVolumeNodeInfo. + + 节点使用存储类型 + + :return: The volume_type of this FlavorVolumeNodeInfo. + :rtype: str + """ + return self._volume_type + + @volume_type.setter + def volume_type(self, volume_type): + """Sets the volume_type of this FlavorVolumeNodeInfo. + + 节点使用存储类型 + + :param volume_type: The volume_type of this FlavorVolumeNodeInfo. + :type volume_type: str + """ + self._volume_type = volume_type + + @property + def volume_num(self): + """Gets the volume_num of this FlavorVolumeNodeInfo. + + 节点使用的磁盘数量 + + :return: The volume_num of this FlavorVolumeNodeInfo. + :rtype: int + """ + return self._volume_num + + @volume_num.setter + def volume_num(self, volume_num): + """Sets the volume_num of this FlavorVolumeNodeInfo. + + 节点使用的磁盘数量 + + :param volume_num: The volume_num of this FlavorVolumeNodeInfo. + :type volume_num: int + """ + self._volume_num = volume_num + + @property + def capacity(self): + """Gets the capacity of this FlavorVolumeNodeInfo. + + 节点去除副本后的有效容量 + + :return: The capacity of this FlavorVolumeNodeInfo. + :rtype: int + """ + return self._capacity + + @capacity.setter + def capacity(self, capacity): + """Sets the capacity of this FlavorVolumeNodeInfo. + + 节点去除副本后的有效容量 + + :param capacity: The capacity of this FlavorVolumeNodeInfo. + :type capacity: int + """ + self._capacity = capacity + + @property + def volume_size(self): + """Gets the volume_size of this FlavorVolumeNodeInfo. + + 节点存的单盘容量 + + :return: The volume_size of this FlavorVolumeNodeInfo. + :rtype: int + """ + return self._volume_size + + @volume_size.setter + def volume_size(self, volume_size): + """Sets the volume_size of this FlavorVolumeNodeInfo. + + 节点存的单盘容量 + + :param volume_size: The volume_size of this FlavorVolumeNodeInfo. + :type volume_size: int + """ + self._volume_size = volume_size + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, FlavorVolumeNodeInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/show_cluster_flavor_request.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/show_cluster_flavor_request.py new file mode 100644 index 0000000000..bd12ee5764 --- /dev/null +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/show_cluster_flavor_request.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowClusterFlavorRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'namespace': 'str' + } + + attribute_map = { + 'cluster_id': 'cluster_id', + 'namespace': 'namespace' + } + + def __init__(self, cluster_id=None, namespace=None): + """ShowClusterFlavorRequest + + The model defined in huaweicloud sdk + + :param cluster_id: 集群ID + :type cluster_id: str + :param namespace: 命名空间 + :type namespace: str + """ + + + + self._cluster_id = None + self._namespace = None + self.discriminator = None + + self.cluster_id = cluster_id + if namespace is not None: + self.namespace = namespace + + @property + def cluster_id(self): + """Gets the cluster_id of this ShowClusterFlavorRequest. + + 集群ID + + :return: The cluster_id of this ShowClusterFlavorRequest. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this ShowClusterFlavorRequest. + + 集群ID + + :param cluster_id: The cluster_id of this ShowClusterFlavorRequest. + :type cluster_id: str + """ + self._cluster_id = cluster_id + + @property + def namespace(self): + """Gets the namespace of this ShowClusterFlavorRequest. + + 命名空间 + + :return: The namespace of this ShowClusterFlavorRequest. + :rtype: str + """ + return self._namespace + + @namespace.setter + def namespace(self, namespace): + """Sets the namespace of this ShowClusterFlavorRequest. + + 命名空间 + + :param namespace: The namespace of this ShowClusterFlavorRequest. + :type namespace: str + """ + self._namespace = namespace + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowClusterFlavorRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/show_cluster_flavor_response.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/show_cluster_flavor_response.py new file mode 100644 index 0000000000..871303fa45 --- /dev/null +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/show_cluster_flavor_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 ShowClusterFlavorResponse(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 = { + 'flavor': 'ClusterFlavorDetailInfo' + } + + attribute_map = { + 'flavor': 'flavor' + } + + def __init__(self, flavor=None): + """ShowClusterFlavorResponse + + The model defined in huaweicloud sdk + + :param flavor: + :type flavor: :class:`huaweicloudsdkdws.v2.ClusterFlavorDetailInfo` + """ + + super(ShowClusterFlavorResponse, self).__init__() + + self._flavor = None + self.discriminator = None + + if flavor is not None: + self.flavor = flavor + + @property + def flavor(self): + """Gets the flavor of this ShowClusterFlavorResponse. + + :return: The flavor of this ShowClusterFlavorResponse. + :rtype: :class:`huaweicloudsdkdws.v2.ClusterFlavorDetailInfo` + """ + return self._flavor + + @flavor.setter + def flavor(self, flavor): + """Sets the flavor of this ShowClusterFlavorResponse. + + :param flavor: The flavor of this ShowClusterFlavorResponse. + :type flavor: :class:`huaweicloudsdkdws.v2.ClusterFlavorDetailInfo` + """ + 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, ShowClusterFlavorResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/region/dws_region.py b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/region/dws_region.py index 43134321d0..b291026b01 100644 --- a/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/region/dws_region.py +++ b/huaweicloud-sdk-dws/huaweicloudsdkdws/v2/region/dws_region.py @@ -46,6 +46,8 @@ class DwsRegion: "https://dws.ap-southeast-4.myhuaweicloud.cn") CN_EAST_5 = Region("cn-east-5", "https://dws.cn-east-5.myhuaweicloud.com") + AF_NORTH_1 = Region("af-north-1", + "https://dws.af-north-1.myhuaweicloud.com") static_fields = { "eu-west-101": EU_WEST_101, @@ -68,6 +70,7 @@ class DwsRegion: "tr-west-1": TR_WEST_1, "ap-southeast-4": AP_SOUTHEAST_4, "cn-east-5": CN_EAST_5, + "af-north-1": AF_NORTH_1, } @classmethod diff --git a/huaweicloud-sdk-dws/requirements.txt b/huaweicloud-sdk-dws/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-dws/requirements.txt +++ b/huaweicloud-sdk-dws/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-dws/setup.py b/huaweicloud-sdk-dws/setup.py index 165039fc63..ea5824c4ad 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ec/requirements.txt b/huaweicloud-sdk-ec/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-ec/requirements.txt +++ b/huaweicloud-sdk-ec/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-ec/setup.py b/huaweicloud-sdk-ec/setup.py index 909ac004ae..922773e693 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ecs/requirements.txt b/huaweicloud-sdk-ecs/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-ecs/requirements.txt +++ b/huaweicloud-sdk-ecs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-ecs/setup.py b/huaweicloud-sdk-ecs/setup.py index 77cf56efa2..df82aa1c26 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-edgesec/requirements.txt b/huaweicloud-sdk-edgesec/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-edgesec/requirements.txt +++ b/huaweicloud-sdk-edgesec/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-edgesec/setup.py b/huaweicloud-sdk-edgesec/setup.py index f50a12eb75..0a127678d9 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-eg/requirements.txt b/huaweicloud-sdk-eg/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-eg/requirements.txt +++ b/huaweicloud-sdk-eg/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-eg/setup.py b/huaweicloud-sdk-eg/setup.py index 407fb14459..9ac74c2073 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-eihealth/requirements.txt b/huaweicloud-sdk-eihealth/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-eihealth/requirements.txt +++ b/huaweicloud-sdk-eihealth/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-eihealth/setup.py b/huaweicloud-sdk-eihealth/setup.py index 4bacaa15c1..dd883dd9fe 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-eip/requirements.txt b/huaweicloud-sdk-eip/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-eip/requirements.txt +++ b/huaweicloud-sdk-eip/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-eip/setup.py b/huaweicloud-sdk-eip/setup.py index d38e889a97..4ca0883860 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-elb/requirements.txt b/huaweicloud-sdk-elb/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-elb/requirements.txt +++ b/huaweicloud-sdk-elb/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-elb/setup.py b/huaweicloud-sdk-elb/setup.py index 979bc826d6..5a70c19edb 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-eps/requirements.txt b/huaweicloud-sdk-eps/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-eps/requirements.txt +++ b/huaweicloud-sdk-eps/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-eps/setup.py b/huaweicloud-sdk-eps/setup.py index 5a0a3866c8..2c8e558854 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-er/requirements.txt b/huaweicloud-sdk-er/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-er/requirements.txt +++ b/huaweicloud-sdk-er/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-er/setup.py b/huaweicloud-sdk-er/setup.py index 3d8a774049..3fb6b71365 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-evs/requirements.txt b/huaweicloud-sdk-evs/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-evs/requirements.txt +++ b/huaweicloud-sdk-evs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-evs/setup.py b/huaweicloud-sdk-evs/setup.py index 7c55df9a86..6a559404f5 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-frs/requirements.txt b/huaweicloud-sdk-frs/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-frs/requirements.txt +++ b/huaweicloud-sdk-frs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-frs/setup.py b/huaweicloud-sdk-frs/setup.py index f99c1dea3f..f5c467cc67 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-functiongraph/requirements.txt b/huaweicloud-sdk-functiongraph/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-functiongraph/requirements.txt +++ b/huaweicloud-sdk-functiongraph/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-functiongraph/setup.py b/huaweicloud-sdk-functiongraph/setup.py index 00c175d3ce..c4f961d4ba 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ga/requirements.txt b/huaweicloud-sdk-ga/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-ga/requirements.txt +++ b/huaweicloud-sdk-ga/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-ga/setup.py b/huaweicloud-sdk-ga/setup.py index b56827be74..8cbfffbf4c 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-gaussdb/requirements.txt b/huaweicloud-sdk-gaussdb/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-gaussdb/requirements.txt +++ b/huaweicloud-sdk-gaussdb/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-gaussdb/setup.py b/huaweicloud-sdk-gaussdb/setup.py index 14a40b28f2..a58a5877a8 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-gaussdbfornosql/requirements.txt b/huaweicloud-sdk-gaussdbfornosql/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-gaussdbfornosql/requirements.txt +++ b/huaweicloud-sdk-gaussdbfornosql/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-gaussdbfornosql/setup.py b/huaweicloud-sdk-gaussdbfornosql/setup.py index 04cbcac242..be5ba383e1 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-gaussdbforopengauss/requirements.txt b/huaweicloud-sdk-gaussdbforopengauss/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-gaussdbforopengauss/requirements.txt +++ b/huaweicloud-sdk-gaussdbforopengauss/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-gaussdbforopengauss/setup.py b/huaweicloud-sdk-gaussdbforopengauss/setup.py index d5184119f3..6e85a23ad5 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-geip/requirements.txt b/huaweicloud-sdk-geip/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-geip/requirements.txt +++ b/huaweicloud-sdk-geip/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-geip/setup.py b/huaweicloud-sdk-geip/setup.py index e71f87111b..3b2b6bc3b7 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ges/requirements.txt b/huaweicloud-sdk-ges/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-ges/requirements.txt +++ b/huaweicloud-sdk-ges/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-ges/setup.py b/huaweicloud-sdk-ges/setup.py index 0eb32647c7..ce8b9e0813 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-gsl/requirements.txt b/huaweicloud-sdk-gsl/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-gsl/requirements.txt +++ b/huaweicloud-sdk-gsl/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-gsl/setup.py b/huaweicloud-sdk-gsl/setup.py index a7c390af28..77a434e4ba 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-hilens/requirements.txt b/huaweicloud-sdk-hilens/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-hilens/requirements.txt +++ b/huaweicloud-sdk-hilens/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-hilens/setup.py b/huaweicloud-sdk-hilens/setup.py index 7838f4757e..feb88fe0b5 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-hss/requirements.txt b/huaweicloud-sdk-hss/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-hss/requirements.txt +++ b/huaweicloud-sdk-hss/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-hss/setup.py b/huaweicloud-sdk-hss/setup.py index c274b27414..087a5a0236 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-iam/requirements.txt b/huaweicloud-sdk-iam/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-iam/requirements.txt +++ b/huaweicloud-sdk-iam/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-iam/setup.py b/huaweicloud-sdk-iam/setup.py index 733e679d17..82f6dad5c3 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-iamaccessanalyzer/requirements.txt b/huaweicloud-sdk-iamaccessanalyzer/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-iamaccessanalyzer/requirements.txt +++ b/huaweicloud-sdk-iamaccessanalyzer/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-iamaccessanalyzer/setup.py b/huaweicloud-sdk-iamaccessanalyzer/setup.py index c2f867b52a..e8fdcaf91f 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-identitycenter/requirements.txt b/huaweicloud-sdk-identitycenter/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-identitycenter/requirements.txt +++ b/huaweicloud-sdk-identitycenter/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-identitycenter/setup.py b/huaweicloud-sdk-identitycenter/setup.py index f25913b1d9..21b0485753 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-identitycenterstore/requirements.txt b/huaweicloud-sdk-identitycenterstore/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-identitycenterstore/requirements.txt +++ b/huaweicloud-sdk-identitycenterstore/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-identitycenterstore/setup.py b/huaweicloud-sdk-identitycenterstore/setup.py index 466e0b98d8..a3859ac77a 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-idme/requirements.txt b/huaweicloud-sdk-idme/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-idme/requirements.txt +++ b/huaweicloud-sdk-idme/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-idme/setup.py b/huaweicloud-sdk-idme/setup.py index 277628d9ed..4254b5e6d5 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-idmeclassicapi/requirements.txt b/huaweicloud-sdk-idmeclassicapi/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-idmeclassicapi/requirements.txt +++ b/huaweicloud-sdk-idmeclassicapi/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-idmeclassicapi/setup.py b/huaweicloud-sdk-idmeclassicapi/setup.py index 6db3deac48..8c325e2dba 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-iec/requirements.txt b/huaweicloud-sdk-iec/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-iec/requirements.txt +++ b/huaweicloud-sdk-iec/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-iec/setup.py b/huaweicloud-sdk-iec/setup.py index e78ee64f6e..8359b077e1 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ief/requirements.txt b/huaweicloud-sdk-ief/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-ief/requirements.txt +++ b/huaweicloud-sdk-ief/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-ief/setup.py b/huaweicloud-sdk-ief/setup.py index c56b70950a..e890fdd356 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-image/requirements.txt b/huaweicloud-sdk-image/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-image/requirements.txt +++ b/huaweicloud-sdk-image/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-image/setup.py b/huaweicloud-sdk-image/setup.py index ac948b8a3f..0aa73c96d5 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-imagesearch/requirements.txt b/huaweicloud-sdk-imagesearch/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-imagesearch/requirements.txt +++ b/huaweicloud-sdk-imagesearch/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-imagesearch/setup.py b/huaweicloud-sdk-imagesearch/setup.py index 2db707f9d9..6df2830155 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ims/requirements.txt b/huaweicloud-sdk-ims/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-ims/requirements.txt +++ b/huaweicloud-sdk-ims/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-ims/setup.py b/huaweicloud-sdk-ims/setup.py index 062dc76810..b3b452ac7f 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-iotanalytics/requirements.txt b/huaweicloud-sdk-iotanalytics/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-iotanalytics/requirements.txt +++ b/huaweicloud-sdk-iotanalytics/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-iotanalytics/setup.py b/huaweicloud-sdk-iotanalytics/setup.py index 2a6c307b9a..640c8f4994 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/__init__.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/__init__.py index 2083a9ba6b..1298318dd1 100644 --- a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/__init__.py +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/__init__.py @@ -45,6 +45,9 @@ from huaweicloudsdkiotda.v5.model.batch_target_result import BatchTargetResult from huaweicloudsdkiotda.v5.model.batch_targets import BatchTargets from huaweicloudsdkiotda.v5.model.batch_task_file import BatchTaskFile +from huaweicloudsdkiotda.v5.model.bind_device_policy import BindDevicePolicy +from huaweicloudsdkiotda.v5.model.bind_device_policy_request import BindDevicePolicyRequest +from huaweicloudsdkiotda.v5.model.bind_device_policy_response import BindDevicePolicyResponse from huaweicloudsdkiotda.v5.model.bind_tags_dto import BindTagsDTO from huaweicloudsdkiotda.v5.model.bridge_auth_info import BridgeAuthInfo from huaweicloudsdkiotda.v5.model.bridge_response import BridgeResponse @@ -73,6 +76,12 @@ from huaweicloudsdkiotda.v5.model.create_certificate_dto import CreateCertificateDTO from huaweicloudsdkiotda.v5.model.create_command_request import CreateCommandRequest from huaweicloudsdkiotda.v5.model.create_command_response import CreateCommandResponse +from huaweicloudsdkiotda.v5.model.create_device_authorizer import CreateDeviceAuthorizer +from huaweicloudsdkiotda.v5.model.create_device_authorizer_request import CreateDeviceAuthorizerRequest +from huaweicloudsdkiotda.v5.model.create_device_authorizer_response import CreateDeviceAuthorizerResponse +from huaweicloudsdkiotda.v5.model.create_device_policy import CreateDevicePolicy +from huaweicloudsdkiotda.v5.model.create_device_policy_request import CreateDevicePolicyRequest +from huaweicloudsdkiotda.v5.model.create_device_policy_response import CreateDevicePolicyResponse from huaweicloudsdkiotda.v5.model.create_device_proxy_request import CreateDeviceProxyRequest from huaweicloudsdkiotda.v5.model.create_device_proxy_response import CreateDeviceProxyResponse from huaweicloudsdkiotda.v5.model.create_message_request import CreateMessageRequest @@ -84,6 +93,9 @@ from huaweicloudsdkiotda.v5.model.create_ota_package_response import CreateOtaPackageResponse from huaweicloudsdkiotda.v5.model.create_product_request import CreateProductRequest from huaweicloudsdkiotda.v5.model.create_product_response import CreateProductResponse +from huaweicloudsdkiotda.v5.model.create_provisioning_template import CreateProvisioningTemplate +from huaweicloudsdkiotda.v5.model.create_provisioning_template_request import CreateProvisioningTemplateRequest +from huaweicloudsdkiotda.v5.model.create_provisioning_template_response import CreateProvisioningTemplateResponse from huaweicloudsdkiotda.v5.model.create_routing_backlog_policy_request import CreateRoutingBacklogPolicyRequest from huaweicloudsdkiotda.v5.model.create_routing_backlog_policy_response import CreateRoutingBacklogPolicyResponse from huaweicloudsdkiotda.v5.model.create_routing_flow_control_policy_request import CreateRoutingFlowControlPolicyRequest @@ -105,8 +117,12 @@ from huaweicloudsdkiotda.v5.model.delete_bridge_response import DeleteBridgeResponse from huaweicloudsdkiotda.v5.model.delete_certificate_request import DeleteCertificateRequest from huaweicloudsdkiotda.v5.model.delete_certificate_response import DeleteCertificateResponse +from huaweicloudsdkiotda.v5.model.delete_device_authorizer_request import DeleteDeviceAuthorizerRequest +from huaweicloudsdkiotda.v5.model.delete_device_authorizer_response import DeleteDeviceAuthorizerResponse from huaweicloudsdkiotda.v5.model.delete_device_group_request import DeleteDeviceGroupRequest from huaweicloudsdkiotda.v5.model.delete_device_group_response import DeleteDeviceGroupResponse +from huaweicloudsdkiotda.v5.model.delete_device_policy_request import DeleteDevicePolicyRequest +from huaweicloudsdkiotda.v5.model.delete_device_policy_response import DeleteDevicePolicyResponse from huaweicloudsdkiotda.v5.model.delete_device_proxy_request import DeleteDeviceProxyRequest from huaweicloudsdkiotda.v5.model.delete_device_proxy_response import DeleteDeviceProxyResponse from huaweicloudsdkiotda.v5.model.delete_device_request import DeleteDeviceRequest @@ -117,6 +133,8 @@ from huaweicloudsdkiotda.v5.model.delete_ota_package_response import DeleteOtaPackageResponse from huaweicloudsdkiotda.v5.model.delete_product_request import DeleteProductRequest from huaweicloudsdkiotda.v5.model.delete_product_response import DeleteProductResponse +from huaweicloudsdkiotda.v5.model.delete_provisioning_template_request import DeleteProvisioningTemplateRequest +from huaweicloudsdkiotda.v5.model.delete_provisioning_template_response import DeleteProvisioningTemplateResponse from huaweicloudsdkiotda.v5.model.delete_queue_request import DeleteQueueRequest from huaweicloudsdkiotda.v5.model.delete_queue_response import DeleteQueueResponse from huaweicloudsdkiotda.v5.model.delete_routing_backlog_policy_request import DeleteRoutingBacklogPolicyRequest @@ -129,6 +147,7 @@ from huaweicloudsdkiotda.v5.model.delete_rule_action_response import DeleteRuleActionResponse from huaweicloudsdkiotda.v5.model.delete_rule_request import DeleteRuleRequest from huaweicloudsdkiotda.v5.model.delete_rule_response import DeleteRuleResponse +from huaweicloudsdkiotda.v5.model.device_authorizer_simple import DeviceAuthorizerSimple from huaweicloudsdkiotda.v5.model.device_broadcast_request import DeviceBroadcastRequest from huaweicloudsdkiotda.v5.model.device_command_request import DeviceCommandRequest from huaweicloudsdkiotda.v5.model.device_data_condition import DeviceDataCondition @@ -136,7 +155,9 @@ from huaweicloudsdkiotda.v5.model.device_linkage_status_condition import DeviceLinkageStatusCondition from huaweicloudsdkiotda.v5.model.device_message import DeviceMessage from huaweicloudsdkiotda.v5.model.device_message_request import DeviceMessageRequest +from huaweicloudsdkiotda.v5.model.device_policy_bind_or_unbind_failure_detail import DevicePolicyBindOrUnbindFailureDetail from huaweicloudsdkiotda.v5.model.device_properties_request import DevicePropertiesRequest +from huaweicloudsdkiotda.v5.model.device_resource import DeviceResource from huaweicloudsdkiotda.v5.model.device_shadow_data import DeviceShadowData from huaweicloudsdkiotda.v5.model.device_shadow_properties import DeviceShadowProperties from huaweicloudsdkiotda.v5.model.device_side import DeviceSide @@ -163,6 +184,8 @@ from huaweicloudsdkiotda.v5.model.list_bridges_response import ListBridgesResponse from huaweicloudsdkiotda.v5.model.list_certificates_request import ListCertificatesRequest from huaweicloudsdkiotda.v5.model.list_certificates_response import ListCertificatesResponse +from huaweicloudsdkiotda.v5.model.list_device_authorizers_request import ListDeviceAuthorizersRequest +from huaweicloudsdkiotda.v5.model.list_device_authorizers_response import ListDeviceAuthorizersResponse from huaweicloudsdkiotda.v5.model.list_device_group_summary import ListDeviceGroupSummary from huaweicloudsdkiotda.v5.model.list_device_groups_by_device_request import ListDeviceGroupsByDeviceRequest from huaweicloudsdkiotda.v5.model.list_device_groups_by_device_response import ListDeviceGroupsByDeviceResponse @@ -170,6 +193,9 @@ from huaweicloudsdkiotda.v5.model.list_device_groups_response import ListDeviceGroupsResponse from huaweicloudsdkiotda.v5.model.list_device_messages_request import ListDeviceMessagesRequest from huaweicloudsdkiotda.v5.model.list_device_messages_response import ListDeviceMessagesResponse +from huaweicloudsdkiotda.v5.model.list_device_policies_request import ListDevicePoliciesRequest +from huaweicloudsdkiotda.v5.model.list_device_policies_response import ListDevicePoliciesResponse +from huaweicloudsdkiotda.v5.model.list_device_policy_base import ListDevicePolicyBase from huaweicloudsdkiotda.v5.model.list_device_proxies_request import ListDeviceProxiesRequest from huaweicloudsdkiotda.v5.model.list_device_proxies_response import ListDeviceProxiesResponse from huaweicloudsdkiotda.v5.model.list_device_tunnels_request import ListDeviceTunnelsRequest @@ -182,6 +208,8 @@ from huaweicloudsdkiotda.v5.model.list_products_response import ListProductsResponse from huaweicloudsdkiotda.v5.model.list_properties_request import ListPropertiesRequest from huaweicloudsdkiotda.v5.model.list_properties_response import ListPropertiesResponse +from huaweicloudsdkiotda.v5.model.list_provisioning_templates_request import ListProvisioningTemplatesRequest +from huaweicloudsdkiotda.v5.model.list_provisioning_templates_response import ListProvisioningTemplatesResponse from huaweicloudsdkiotda.v5.model.list_resources_by_tags_request import ListResourcesByTagsRequest from huaweicloudsdkiotda.v5.model.list_resources_by_tags_response import ListResourcesByTagsResponse from huaweicloudsdkiotda.v5.model.list_routing_backlog_policy_request import ListRoutingBacklogPolicyRequest @@ -203,9 +231,14 @@ from huaweicloudsdkiotda.v5.model.ota_package_info import OtaPackageInfo from huaweicloudsdkiotda.v5.model.page import Page from huaweicloudsdkiotda.v5.model.page_info import PageInfo +from huaweicloudsdkiotda.v5.model.parameter_ref import ParameterRef +from huaweicloudsdkiotda.v5.model.policy_resource import PolicyResource +from huaweicloudsdkiotda.v5.model.policy_target_base import PolicyTargetBase from huaweicloudsdkiotda.v5.model.product_summary import ProductSummary from huaweicloudsdkiotda.v5.model.properties_dto import PropertiesDTO from huaweicloudsdkiotda.v5.model.property_filter import PropertyFilter +from huaweicloudsdkiotda.v5.model.provisioning_template_body import ProvisioningTemplateBody +from huaweicloudsdkiotda.v5.model.provisioning_template_simple import ProvisioningTemplateSimple from huaweicloudsdkiotda.v5.model.query_device_proxy_simplify import QueryDeviceProxySimplify from huaweicloudsdkiotda.v5.model.query_device_simplify import QueryDeviceSimplify from huaweicloudsdkiotda.v5.model.query_queue_base import QueryQueueBase @@ -250,10 +283,14 @@ from huaweicloudsdkiotda.v5.model.show_async_device_command_response import ShowAsyncDeviceCommandResponse from huaweicloudsdkiotda.v5.model.show_batch_task_request import ShowBatchTaskRequest from huaweicloudsdkiotda.v5.model.show_batch_task_response import ShowBatchTaskResponse +from huaweicloudsdkiotda.v5.model.show_device_authorizer_request import ShowDeviceAuthorizerRequest +from huaweicloudsdkiotda.v5.model.show_device_authorizer_response import ShowDeviceAuthorizerResponse from huaweicloudsdkiotda.v5.model.show_device_group_request import ShowDeviceGroupRequest from huaweicloudsdkiotda.v5.model.show_device_group_response import ShowDeviceGroupResponse from huaweicloudsdkiotda.v5.model.show_device_message_request import ShowDeviceMessageRequest from huaweicloudsdkiotda.v5.model.show_device_message_response import ShowDeviceMessageResponse +from huaweicloudsdkiotda.v5.model.show_device_policy_request import ShowDevicePolicyRequest +from huaweicloudsdkiotda.v5.model.show_device_policy_response import ShowDevicePolicyResponse from huaweicloudsdkiotda.v5.model.show_device_proxy_request import ShowDeviceProxyRequest from huaweicloudsdkiotda.v5.model.show_device_proxy_response import ShowDeviceProxyResponse from huaweicloudsdkiotda.v5.model.show_device_request import ShowDeviceRequest @@ -268,6 +305,8 @@ from huaweicloudsdkiotda.v5.model.show_ota_package_response import ShowOtaPackageResponse from huaweicloudsdkiotda.v5.model.show_product_request import ShowProductRequest from huaweicloudsdkiotda.v5.model.show_product_response import ShowProductResponse +from huaweicloudsdkiotda.v5.model.show_provisioning_template_request import ShowProvisioningTemplateRequest +from huaweicloudsdkiotda.v5.model.show_provisioning_template_response import ShowProvisioningTemplateResponse from huaweicloudsdkiotda.v5.model.show_queue_request import ShowQueueRequest from huaweicloudsdkiotda.v5.model.show_queue_response import ShowQueueResponse from huaweicloudsdkiotda.v5.model.show_routing_backlog_policy_request import ShowRoutingBacklogPolicyRequest @@ -280,20 +319,29 @@ from huaweicloudsdkiotda.v5.model.show_rule_action_response import ShowRuleActionResponse from huaweicloudsdkiotda.v5.model.show_rule_request import ShowRuleRequest from huaweicloudsdkiotda.v5.model.show_rule_response import ShowRuleResponse +from huaweicloudsdkiotda.v5.model.show_targets_in_device_policy_request import ShowTargetsInDevicePolicyRequest +from huaweicloudsdkiotda.v5.model.show_targets_in_device_policy_request_body import ShowTargetsInDevicePolicyRequestBody +from huaweicloudsdkiotda.v5.model.show_targets_in_device_policy_response import ShowTargetsInDevicePolicyResponse from huaweicloudsdkiotda.v5.model.simple_timer_type import SimpleTimerType from huaweicloudsdkiotda.v5.model.simplify_device import SimplifyDevice +from huaweicloudsdkiotda.v5.model.statement import Statement from huaweicloudsdkiotda.v5.model.stop_batch_task_request import StopBatchTaskRequest from huaweicloudsdkiotda.v5.model.stop_batch_task_response import StopBatchTaskResponse from huaweicloudsdkiotda.v5.model.strategy import Strategy from huaweicloudsdkiotda.v5.model.tag_device_request import TagDeviceRequest from huaweicloudsdkiotda.v5.model.tag_device_response import TagDeviceResponse +from huaweicloudsdkiotda.v5.model.tag_ref import TagRef from huaweicloudsdkiotda.v5.model.tag_v5_dto import TagV5DTO from huaweicloudsdkiotda.v5.model.task import Task from huaweicloudsdkiotda.v5.model.task_detail import TaskDetail from huaweicloudsdkiotda.v5.model.task_policy import TaskPolicy from huaweicloudsdkiotda.v5.model.task_progress import TaskProgress +from huaweicloudsdkiotda.v5.model.template_resource import TemplateResource from huaweicloudsdkiotda.v5.model.time_range import TimeRange from huaweicloudsdkiotda.v5.model.tunnel_info import TunnelInfo +from huaweicloudsdkiotda.v5.model.un_bind_device_policy import UnBindDevicePolicy +from huaweicloudsdkiotda.v5.model.unbind_device_policy_request import UnbindDevicePolicyRequest +from huaweicloudsdkiotda.v5.model.unbind_device_policy_response import UnbindDevicePolicyResponse from huaweicloudsdkiotda.v5.model.unbind_tags_dto import UnbindTagsDTO from huaweicloudsdkiotda.v5.model.unfreeze_device_request import UnfreezeDeviceRequest from huaweicloudsdkiotda.v5.model.unfreeze_device_response import UnfreezeDeviceResponse @@ -310,9 +358,15 @@ from huaweicloudsdkiotda.v5.model.update_desired import UpdateDesired from huaweicloudsdkiotda.v5.model.update_desireds import UpdateDesireds from huaweicloudsdkiotda.v5.model.update_device import UpdateDevice +from huaweicloudsdkiotda.v5.model.update_device_authorizer import UpdateDeviceAuthorizer +from huaweicloudsdkiotda.v5.model.update_device_authorizer_request import UpdateDeviceAuthorizerRequest +from huaweicloudsdkiotda.v5.model.update_device_authorizer_response import UpdateDeviceAuthorizerResponse from huaweicloudsdkiotda.v5.model.update_device_group_dto import UpdateDeviceGroupDTO from huaweicloudsdkiotda.v5.model.update_device_group_request import UpdateDeviceGroupRequest from huaweicloudsdkiotda.v5.model.update_device_group_response import UpdateDeviceGroupResponse +from huaweicloudsdkiotda.v5.model.update_device_policy import UpdateDevicePolicy +from huaweicloudsdkiotda.v5.model.update_device_policy_request import UpdateDevicePolicyRequest +from huaweicloudsdkiotda.v5.model.update_device_policy_response import UpdateDevicePolicyResponse from huaweicloudsdkiotda.v5.model.update_device_proxy import UpdateDeviceProxy from huaweicloudsdkiotda.v5.model.update_device_proxy_request import UpdateDeviceProxyRequest from huaweicloudsdkiotda.v5.model.update_device_proxy_response import UpdateDeviceProxyResponse @@ -326,6 +380,9 @@ from huaweicloudsdkiotda.v5.model.update_product_response import UpdateProductResponse from huaweicloudsdkiotda.v5.model.update_properties_request import UpdatePropertiesRequest from huaweicloudsdkiotda.v5.model.update_properties_response import UpdatePropertiesResponse +from huaweicloudsdkiotda.v5.model.update_provisioning_template import UpdateProvisioningTemplate +from huaweicloudsdkiotda.v5.model.update_provisioning_template_request import UpdateProvisioningTemplateRequest +from huaweicloudsdkiotda.v5.model.update_provisioning_template_response import UpdateProvisioningTemplateResponse from huaweicloudsdkiotda.v5.model.update_routing_backlog_policy_request import UpdateRoutingBacklogPolicyRequest from huaweicloudsdkiotda.v5.model.update_routing_backlog_policy_response import UpdateRoutingBacklogPolicyResponse from huaweicloudsdkiotda.v5.model.update_routing_flow_control_policy_request import UpdateRoutingFlowControlPolicyRequest diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/iotda_async_client.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/iotda_async_client.py index e318ac118b..0be1cba46e 100644 --- a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/iotda_async_client.py +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/iotda_async_client.py @@ -2611,31 +2611,33 @@ def _create_command_http_info(self, request): return http_info - def add_device_group_async(self, request): - """添加设备组 + def create_device_authorizer_async(self, request): + """创建自定义鉴权 - 应用服务器可调用此接口新建设备组,一个华为云账号下最多可有1,000个设备组,包括父设备组和子设备组。设备组的最大层级关系不超过5层,即群组形成的关系树最大深度不超过5。 + 应用服务器可调用此接口在物联网平台创建一个自定义鉴权。自定义鉴权是指用户可以通过函数服务自定义实现鉴权逻辑,以对接入平台的设备进行身份认证。 + - 单个实例最大可配置10个自定义鉴权 + - 仅标准版实例、企业版实例支持该接口调用,基础版不支持。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for AddDeviceGroup - :type request: :class:`huaweicloudsdkiotda.v5.AddDeviceGroupRequest` - :rtype: :class:`huaweicloudsdkiotda.v5.AddDeviceGroupResponse` + :param request: Request instance for CreateDeviceAuthorizer + :type request: :class:`huaweicloudsdkiotda.v5.CreateDeviceAuthorizerRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.CreateDeviceAuthorizerResponse` """ - http_info = self._add_device_group_http_info(request) + http_info = self._create_device_authorizer_http_info(request) return self._call_api(**http_info) - def add_device_group_async_invoker(self, request): - http_info = self._add_device_group_http_info(request) + def create_device_authorizer_async_invoker(self, request): + http_info = self._create_device_authorizer_http_info(request) return AsyncInvoker(self, http_info) - def _add_device_group_http_info(self, request): + def _create_device_authorizer_http_info(self, request): http_info = { "method": "POST", - "resource_path": "/v5/iot/{project_id}/device-group", + "resource_path": "/v5/iot/{project_id}/device-authorizers", "request_type": request.__class__.__name__, - "response_type": "AddDeviceGroupResponse" + "response_type": "CreateDeviceAuthorizerResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -2678,31 +2680,31 @@ def _add_device_group_http_info(self, request): return http_info - def create_or_delete_device_in_group_async(self, request): - """管理设备组中的设备 + def delete_device_authorizer_async(self, request): + """删除自定义鉴权 - 应用服务器可调用此接口管理设备组中的设备。单个设备组内最多添加20,000个设备,一个设备最多可以被添加到10个设备组中。 + 应用服务器可调用此接口在物联网平台上删除指定自定义鉴权。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for CreateOrDeleteDeviceInGroup - :type request: :class:`huaweicloudsdkiotda.v5.CreateOrDeleteDeviceInGroupRequest` - :rtype: :class:`huaweicloudsdkiotda.v5.CreateOrDeleteDeviceInGroupResponse` + :param request: Request instance for DeleteDeviceAuthorizer + :type request: :class:`huaweicloudsdkiotda.v5.DeleteDeviceAuthorizerRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.DeleteDeviceAuthorizerResponse` """ - http_info = self._create_or_delete_device_in_group_http_info(request) + http_info = self._delete_device_authorizer_http_info(request) return self._call_api(**http_info) - def create_or_delete_device_in_group_async_invoker(self, request): - http_info = self._create_or_delete_device_in_group_http_info(request) + def delete_device_authorizer_async_invoker(self, request): + http_info = self._delete_device_authorizer_http_info(request) return AsyncInvoker(self, http_info) - def _create_or_delete_device_in_group_http_info(self, request): + def _delete_device_authorizer_http_info(self, request): http_info = { - "method": "POST", - "resource_path": "/v5/iot/{project_id}/device-group/{group_id}/action", + "method": "DELETE", + "resource_path": "/v5/iot/{project_id}/device-authorizers/{authorizer_id}", "request_type": request.__class__.__name__, - "response_type": "CreateOrDeleteDeviceInGroupResponse" + "response_type": "DeleteDeviceAuthorizerResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -2712,14 +2714,10 @@ def _create_or_delete_device_in_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 'authorizer_id' in local_var_params: + path_params['authorizer_id'] = local_var_params['authorizer_id'] query_params = [] - if 'action_id' in local_var_params: - query_params.append(('action_id', local_var_params['action_id'])) - if 'device_id' in local_var_params: - query_params.append(('device_id', local_var_params['device_id'])) header_params = {} if 'instance_id' in local_var_params: @@ -2749,31 +2747,31 @@ def _create_or_delete_device_in_group_http_info(self, request): return http_info - def delete_device_group_async(self, request): - """删除设备组 + def list_device_authorizers_async(self, request): + """查询自定义鉴权列表 - 应用服务器可调用此接口删除指定设备组,如果该设备组存在子设备组或者该设备组中存在设备,必须先删除子设备组并将设备从该设备组移除,才能删除该设备组。 + 应用服务器可调用此接口在物联网平台查询自定义鉴权列表。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for DeleteDeviceGroup - :type request: :class:`huaweicloudsdkiotda.v5.DeleteDeviceGroupRequest` - :rtype: :class:`huaweicloudsdkiotda.v5.DeleteDeviceGroupResponse` + :param request: Request instance for ListDeviceAuthorizers + :type request: :class:`huaweicloudsdkiotda.v5.ListDeviceAuthorizersRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.ListDeviceAuthorizersResponse` """ - http_info = self._delete_device_group_http_info(request) + http_info = self._list_device_authorizers_http_info(request) return self._call_api(**http_info) - def delete_device_group_async_invoker(self, request): - http_info = self._delete_device_group_http_info(request) + def list_device_authorizers_async_invoker(self, request): + http_info = self._list_device_authorizers_http_info(request) return AsyncInvoker(self, http_info) - def _delete_device_group_http_info(self, request): + def _list_device_authorizers_http_info(self, request): http_info = { - "method": "DELETE", - "resource_path": "/v5/iot/{project_id}/device-group/{group_id}", + "method": "GET", + "resource_path": "/v5/iot/{project_id}/device-authorizers", "request_type": request.__class__.__name__, - "response_type": "DeleteDeviceGroupResponse" + "response_type": "ListDeviceAuthorizersResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -2783,10 +2781,16 @@ def _delete_device_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'] query_params = [] + if 'authorizer_name' in local_var_params: + query_params.append(('authorizer_name', local_var_params['authorizer_name'])) + 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 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) header_params = {} if 'instance_id' in local_var_params: @@ -2816,31 +2820,31 @@ def _delete_device_group_http_info(self, request): return http_info - def list_device_groups_async(self, request): - """查询设备组列表 + def show_device_authorizer_async(self, request): + """查询自定义鉴权详情 - 应用服务器可调用此接口查询物联网平台中的设备组信息列表。 + 应用服务器可调用此接口在物联网平台查询指定自定义鉴权ID的详细信息。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListDeviceGroups - :type request: :class:`huaweicloudsdkiotda.v5.ListDeviceGroupsRequest` - :rtype: :class:`huaweicloudsdkiotda.v5.ListDeviceGroupsResponse` + :param request: Request instance for ShowDeviceAuthorizer + :type request: :class:`huaweicloudsdkiotda.v5.ShowDeviceAuthorizerRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.ShowDeviceAuthorizerResponse` """ - http_info = self._list_device_groups_http_info(request) + http_info = self._show_device_authorizer_http_info(request) return self._call_api(**http_info) - def list_device_groups_async_invoker(self, request): - http_info = self._list_device_groups_http_info(request) + def show_device_authorizer_async_invoker(self, request): + http_info = self._show_device_authorizer_http_info(request) return AsyncInvoker(self, http_info) - def _list_device_groups_http_info(self, request): + def _show_device_authorizer_http_info(self, request): http_info = { "method": "GET", - "resource_path": "/v5/iot/{project_id}/device-group", + "resource_path": "/v5/iot/{project_id}/device-authorizers/{authorizer_id}", "request_type": request.__class__.__name__, - "response_type": "ListDeviceGroupsResponse" + "response_type": "ShowDeviceAuthorizerResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -2850,22 +2854,10 @@ def _list_device_groups_http_info(self, request): collection_formats = {} path_params = {} + if 'authorizer_id' in local_var_params: + path_params['authorizer_id'] = local_var_params['authorizer_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'])) - if 'offset' in local_var_params: - query_params.append(('offset', local_var_params['offset'])) - if 'last_modified_time' in local_var_params: - query_params.append(('last_modified_time', local_var_params['last_modified_time'])) - if 'app_id' in local_var_params: - query_params.append(('app_id', local_var_params['app_id'])) - if 'group_type' in local_var_params: - query_params.append(('group_type', local_var_params['group_type'])) - if 'name' in local_var_params: - query_params.append(('name', local_var_params['name'])) header_params = {} if 'instance_id' in local_var_params: @@ -2895,31 +2887,31 @@ def _list_device_groups_http_info(self, request): return http_info - def show_device_group_async(self, request): - """查询设备组 + def update_device_authorizer_async(self, request): + """更新指定id的自定义鉴权 - 应用服务器可调用此接口查询指定设备组详情。 + 应用服务器可调用此接口在物联网平台更新指定id的自定义鉴权。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowDeviceGroup - :type request: :class:`huaweicloudsdkiotda.v5.ShowDeviceGroupRequest` - :rtype: :class:`huaweicloudsdkiotda.v5.ShowDeviceGroupResponse` + :param request: Request instance for UpdateDeviceAuthorizer + :type request: :class:`huaweicloudsdkiotda.v5.UpdateDeviceAuthorizerRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.UpdateDeviceAuthorizerResponse` """ - http_info = self._show_device_group_http_info(request) + http_info = self._update_device_authorizer_http_info(request) return self._call_api(**http_info) - def show_device_group_async_invoker(self, request): - http_info = self._show_device_group_http_info(request) + def update_device_authorizer_async_invoker(self, request): + http_info = self._update_device_authorizer_http_info(request) return AsyncInvoker(self, http_info) - def _show_device_group_http_info(self, request): + def _update_device_authorizer_http_info(self, request): http_info = { - "method": "GET", - "resource_path": "/v5/iot/{project_id}/device-group/{group_id}", + "method": "PUT", + "resource_path": "/v5/iot/{project_id}/device-authorizers/{authorizer_id}", "request_type": request.__class__.__name__, - "response_type": "ShowDeviceGroupResponse" + "response_type": "UpdateDeviceAuthorizerResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -2929,8 +2921,8 @@ def _show_device_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 'authorizer_id' in local_var_params: + path_params['authorizer_id'] = local_var_params['authorizer_id'] query_params = [] @@ -2941,6 +2933,8 @@ def _show_device_group_http_info(self, request): form_params = {} body = None + if 'body' in local_var_params: + body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -2962,31 +2956,31 @@ def _show_device_group_http_info(self, request): return http_info - def show_devices_in_group_async(self, request): - """查询设备组设备列表 + def add_device_group_async(self, request): + """添加设备组 - 应用服务器可调用此接口查询指定设备组下的设备列表。 + 应用服务器可调用此接口新建设备组,一个华为云账号下最多可有1,000个设备组,包括父设备组和子设备组。设备组的最大层级关系不超过5层,即群组形成的关系树最大深度不超过5。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowDevicesInGroup - :type request: :class:`huaweicloudsdkiotda.v5.ShowDevicesInGroupRequest` - :rtype: :class:`huaweicloudsdkiotda.v5.ShowDevicesInGroupResponse` + :param request: Request instance for AddDeviceGroup + :type request: :class:`huaweicloudsdkiotda.v5.AddDeviceGroupRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.AddDeviceGroupResponse` """ - http_info = self._show_devices_in_group_http_info(request) + http_info = self._add_device_group_http_info(request) return self._call_api(**http_info) - def show_devices_in_group_async_invoker(self, request): - http_info = self._show_devices_in_group_http_info(request) + def add_device_group_async_invoker(self, request): + http_info = self._add_device_group_http_info(request) return AsyncInvoker(self, http_info) - def _show_devices_in_group_http_info(self, request): + def _add_device_group_http_info(self, request): http_info = { - "method": "GET", - "resource_path": "/v5/iot/{project_id}/device-group/{group_id}/devices", + "method": "POST", + "resource_path": "/v5/iot/{project_id}/device-group", "request_type": request.__class__.__name__, - "response_type": "ShowDevicesInGroupResponse" + "response_type": "AddDeviceGroupResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -2996,16 +2990,8 @@ def _show_devices_in_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'] 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 'offset' in local_var_params: - query_params.append(('offset', local_var_params['offset'])) header_params = {} if 'instance_id' in local_var_params: @@ -3014,6 +3000,8 @@ def _show_devices_in_group_http_info(self, request): form_params = {} body = None + if 'body' in local_var_params: + body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -3035,31 +3023,31 @@ def _show_devices_in_group_http_info(self, request): return http_info - def update_device_group_async(self, request): - """修改设备组 + def create_or_delete_device_in_group_async(self, request): + """管理设备组中的设备 - 应用服务器可调用此接口修改物联网平台中指定设备组。 + 应用服务器可调用此接口管理设备组中的设备。单个设备组内最多添加20,000个设备,一个设备最多可以被添加到10个设备组中。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for UpdateDeviceGroup - :type request: :class:`huaweicloudsdkiotda.v5.UpdateDeviceGroupRequest` - :rtype: :class:`huaweicloudsdkiotda.v5.UpdateDeviceGroupResponse` + :param request: Request instance for CreateOrDeleteDeviceInGroup + :type request: :class:`huaweicloudsdkiotda.v5.CreateOrDeleteDeviceInGroupRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.CreateOrDeleteDeviceInGroupResponse` """ - http_info = self._update_device_group_http_info(request) + http_info = self._create_or_delete_device_in_group_http_info(request) return self._call_api(**http_info) - def update_device_group_async_invoker(self, request): - http_info = self._update_device_group_http_info(request) + def create_or_delete_device_in_group_async_invoker(self, request): + http_info = self._create_or_delete_device_in_group_http_info(request) return AsyncInvoker(self, http_info) - def _update_device_group_http_info(self, request): + def _create_or_delete_device_in_group_http_info(self, request): http_info = { - "method": "PUT", - "resource_path": "/v5/iot/{project_id}/device-group/{group_id}", + "method": "POST", + "resource_path": "/v5/iot/{project_id}/device-group/{group_id}/action", "request_type": request.__class__.__name__, - "response_type": "UpdateDeviceGroupResponse" + "response_type": "CreateOrDeleteDeviceInGroupResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -3073,6 +3061,10 @@ def _update_device_group_http_info(self, request): path_params['group_id'] = local_var_params['group_id'] query_params = [] + if 'action_id' in local_var_params: + query_params.append(('action_id', local_var_params['action_id'])) + if 'device_id' in local_var_params: + query_params.append(('device_id', local_var_params['device_id'])) header_params = {} if 'instance_id' in local_var_params: @@ -3081,8 +3073,6 @@ def _update_device_group_http_info(self, request): form_params = {} body = None - if 'body' in local_var_params: - body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -3104,36 +3094,31 @@ def _update_device_group_http_info(self, request): return http_info - def add_device_async(self, request): - """创建设备 + def delete_device_group_async(self, request): + """删除设备组 - 应用服务器可调用此接口在物联网平台创建一个设备,仅在创建后设备才可以接入物联网平台。 - - - 该接口支持使用gateway_id参数指定在父设备下创建一个子设备,并且支持多级子设备,当前最大支持二级子设备。 - - 该接口同时还支持对设备进行初始配置,接口会读取创建设备请求参数product_id对应的产品详情,如果产品的属性有定义默认值,则会将该属性默认值写入该设备的设备影子中。 - - 用户还可以使用创建设备请求参数shadow字段为设备指定初始配置,指定后将会根据service_id和desired设置的属性值与产品中对应属性的默认值比对,如果不同,则将以shadow字段中设置的属性值为准写入到设备影子中。 - - 该接口仅支持创建单个设备,如需批量注册设备,请参见 [[创建批量任务](https://support.huaweicloud.com/api-iothub/iot_06_v5_0045.html)](tag:hws)[[创建批量任务](https://support.huaweicloud.com/intl/zh-cn/api-iothub/iot_06_v5_0045.html)](tag:hws_hk)。 + 应用服务器可调用此接口删除指定设备组,如果该设备组存在子设备组或者该设备组中存在设备,必须先删除子设备组并将设备从该设备组移除,才能删除该设备组。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for AddDevice - :type request: :class:`huaweicloudsdkiotda.v5.AddDeviceRequest` - :rtype: :class:`huaweicloudsdkiotda.v5.AddDeviceResponse` + :param request: Request instance for DeleteDeviceGroup + :type request: :class:`huaweicloudsdkiotda.v5.DeleteDeviceGroupRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.DeleteDeviceGroupResponse` """ - http_info = self._add_device_http_info(request) + http_info = self._delete_device_group_http_info(request) return self._call_api(**http_info) - def add_device_async_invoker(self, request): - http_info = self._add_device_http_info(request) + def delete_device_group_async_invoker(self, request): + http_info = self._delete_device_group_http_info(request) return AsyncInvoker(self, http_info) - def _add_device_http_info(self, request): + def _delete_device_group_http_info(self, request): http_info = { - "method": "POST", - "resource_path": "/v5/iot/{project_id}/devices", + "method": "DELETE", + "resource_path": "/v5/iot/{project_id}/device-group/{group_id}", "request_type": request.__class__.__name__, - "response_type": "AddDeviceResponse" + "response_type": "DeleteDeviceGroupResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -3143,6 +3128,8 @@ def _add_device_http_info(self, request): collection_formats = {} path_params = {} + if 'group_id' in local_var_params: + path_params['group_id'] = local_var_params['group_id'] query_params = [] @@ -3153,8 +3140,6 @@ def _add_device_http_info(self, request): form_params = {} body = None - if 'body' in local_var_params: - body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -3176,31 +3161,31 @@ def _add_device_http_info(self, request): return http_info - def delete_device_async(self, request): - """删除设备 + def list_device_groups_async(self, request): + """查询设备组列表 - 应用服务器可调用此接口在物联网平台上删除指定设备。若设备下连接了非直连设备,则必须把设备下的非直连设备都删除后,才能删除该设备。该接口仅支持删除单个设备,如需批量删除设备,请参见 [[创建批量任务](https://support.huaweicloud.com/api-iothub/iot_06_v5_0045.html)](tag:hws)[[创建批量任务](https://support.huaweicloud.com/intl/zh-cn/api-iothub/iot_06_v5_0045.html)](tag:hws_hk)。 + 应用服务器可调用此接口查询物联网平台中的设备组信息列表。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for DeleteDevice - :type request: :class:`huaweicloudsdkiotda.v5.DeleteDeviceRequest` - :rtype: :class:`huaweicloudsdkiotda.v5.DeleteDeviceResponse` + :param request: Request instance for ListDeviceGroups + :type request: :class:`huaweicloudsdkiotda.v5.ListDeviceGroupsRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.ListDeviceGroupsResponse` """ - http_info = self._delete_device_http_info(request) + http_info = self._list_device_groups_http_info(request) return self._call_api(**http_info) - def delete_device_async_invoker(self, request): - http_info = self._delete_device_http_info(request) + def list_device_groups_async_invoker(self, request): + http_info = self._list_device_groups_http_info(request) return AsyncInvoker(self, http_info) - def _delete_device_http_info(self, request): + def _list_device_groups_http_info(self, request): http_info = { - "method": "DELETE", - "resource_path": "/v5/iot/{project_id}/devices/{device_id}", + "method": "GET", + "resource_path": "/v5/iot/{project_id}/device-group", "request_type": request.__class__.__name__, - "response_type": "DeleteDeviceResponse" + "response_type": "ListDeviceGroupsResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -3210,10 +3195,22 @@ def _delete_device_http_info(self, request): collection_formats = {} path_params = {} - if 'device_id' in local_var_params: - path_params['device_id'] = local_var_params['device_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'])) + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'last_modified_time' in local_var_params: + query_params.append(('last_modified_time', local_var_params['last_modified_time'])) + if 'app_id' in local_var_params: + query_params.append(('app_id', local_var_params['app_id'])) + if 'group_type' in local_var_params: + query_params.append(('group_type', local_var_params['group_type'])) + if 'name' in local_var_params: + query_params.append(('name', local_var_params['name'])) header_params = {} if 'instance_id' in local_var_params: @@ -3243,31 +3240,31 @@ def _delete_device_http_info(self, request): return http_info - def freeze_device_async(self, request): - """冻结设备 + def show_device_group_async(self, request): + """查询设备组 - 应用服务器可调用此接口冻结设备,设备冻结后不能再连接上线,可以通过解冻设备接口解除设备冻结。注意,当前仅支持冻结与平台直连的设备。该接口仅支持冻结单个设备,如需批量冻结设备,请参见 [[创建批量任务](https://support.huaweicloud.com/api-iothub/iot_06_v5_0045.html)](tag:hws)[[创建批量任务](https://support.huaweicloud.com/intl/zh-cn/api-iothub/iot_06_v5_0045.html)](tag:hws_hk)。 + 应用服务器可调用此接口查询指定设备组详情。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for FreezeDevice - :type request: :class:`huaweicloudsdkiotda.v5.FreezeDeviceRequest` - :rtype: :class:`huaweicloudsdkiotda.v5.FreezeDeviceResponse` + :param request: Request instance for ShowDeviceGroup + :type request: :class:`huaweicloudsdkiotda.v5.ShowDeviceGroupRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.ShowDeviceGroupResponse` """ - http_info = self._freeze_device_http_info(request) + http_info = self._show_device_group_http_info(request) return self._call_api(**http_info) - def freeze_device_async_invoker(self, request): - http_info = self._freeze_device_http_info(request) + def show_device_group_async_invoker(self, request): + http_info = self._show_device_group_http_info(request) return AsyncInvoker(self, http_info) - def _freeze_device_http_info(self, request): + def _show_device_group_http_info(self, request): http_info = { - "method": "POST", - "resource_path": "/v5/iot/{project_id}/devices/{device_id}/freeze", + "method": "GET", + "resource_path": "/v5/iot/{project_id}/device-group/{group_id}", "request_type": request.__class__.__name__, - "response_type": "FreezeDeviceResponse" + "response_type": "ShowDeviceGroupResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -3277,8 +3274,8 @@ def _freeze_device_http_info(self, request): collection_formats = {} path_params = {} - if 'device_id' in local_var_params: - path_params['device_id'] = local_var_params['device_id'] + if 'group_id' in local_var_params: + path_params['group_id'] = local_var_params['group_id'] query_params = [] @@ -3310,31 +3307,31 @@ def _freeze_device_http_info(self, request): return http_info - def list_device_groups_by_device_async(self, request): - """查询指定设备加入的设备组列表 + def show_devices_in_group_async(self, request): + """查询设备组设备列表 - 应用服务器可调用此接口查询物联网平台中的某个设备加入的设备组信息列表。仅标准版实例、企业版实例支持该接口调用,基础版不支持。 + 应用服务器可调用此接口查询指定设备组下的设备列表。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListDeviceGroupsByDevice - :type request: :class:`huaweicloudsdkiotda.v5.ListDeviceGroupsByDeviceRequest` - :rtype: :class:`huaweicloudsdkiotda.v5.ListDeviceGroupsByDeviceResponse` + :param request: Request instance for ShowDevicesInGroup + :type request: :class:`huaweicloudsdkiotda.v5.ShowDevicesInGroupRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.ShowDevicesInGroupResponse` """ - http_info = self._list_device_groups_by_device_http_info(request) + http_info = self._show_devices_in_group_http_info(request) return self._call_api(**http_info) - def list_device_groups_by_device_async_invoker(self, request): - http_info = self._list_device_groups_by_device_http_info(request) + def show_devices_in_group_async_invoker(self, request): + http_info = self._show_devices_in_group_http_info(request) return AsyncInvoker(self, http_info) - def _list_device_groups_by_device_http_info(self, request): + def _show_devices_in_group_http_info(self, request): http_info = { - "method": "POST", - "resource_path": "/v5/iot/{project_id}/devices/{device_id}/list-device-group", + "method": "GET", + "resource_path": "/v5/iot/{project_id}/device-group/{group_id}/devices", "request_type": request.__class__.__name__, - "response_type": "ListDeviceGroupsByDeviceResponse" + "response_type": "ShowDevicesInGroupResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -3344,10 +3341,16 @@ def _list_device_groups_by_device_http_info(self, request): collection_formats = {} path_params = {} - if 'device_id' in local_var_params: - path_params['device_id'] = local_var_params['device_id'] + if 'group_id' in local_var_params: + path_params['group_id'] = local_var_params['group_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'])) + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) header_params = {} if 'instance_id' in local_var_params: @@ -3377,31 +3380,31 @@ def _list_device_groups_by_device_http_info(self, request): return http_info - def list_devices_async(self, request): - """查询设备列表 + def update_device_group_async(self, request): + """修改设备组 - 应用服务器可调用此接口查询物联网平台中的设备信息列表。 + 应用服务器可调用此接口修改物联网平台中指定设备组。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListDevices - :type request: :class:`huaweicloudsdkiotda.v5.ListDevicesRequest` - :rtype: :class:`huaweicloudsdkiotda.v5.ListDevicesResponse` + :param request: Request instance for UpdateDeviceGroup + :type request: :class:`huaweicloudsdkiotda.v5.UpdateDeviceGroupRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.UpdateDeviceGroupResponse` """ - http_info = self._list_devices_http_info(request) + http_info = self._update_device_group_http_info(request) return self._call_api(**http_info) - def list_devices_async_invoker(self, request): - http_info = self._list_devices_http_info(request) + def update_device_group_async_invoker(self, request): + http_info = self._update_device_group_http_info(request) return AsyncInvoker(self, http_info) - def _list_devices_http_info(self, request): + def _update_device_group_http_info(self, request): http_info = { - "method": "GET", - "resource_path": "/v5/iot/{project_id}/devices", + "method": "PUT", + "resource_path": "/v5/iot/{project_id}/device-group/{group_id}", "request_type": request.__class__.__name__, - "response_type": "ListDevicesResponse" + "response_type": "UpdateDeviceGroupResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -3411,30 +3414,10 @@ def _list_devices_http_info(self, request): collection_formats = {} path_params = {} + if 'group_id' in local_var_params: + path_params['group_id'] = local_var_params['group_id'] query_params = [] - if 'product_id' in local_var_params: - query_params.append(('product_id', local_var_params['product_id'])) - if 'gateway_id' in local_var_params: - query_params.append(('gateway_id', local_var_params['gateway_id'])) - if 'is_cascade_query' in local_var_params: - query_params.append(('is_cascade_query', local_var_params['is_cascade_query'])) - if 'node_id' in local_var_params: - query_params.append(('node_id', local_var_params['node_id'])) - if 'device_name' in local_var_params: - query_params.append(('device_name', local_var_params['device_name'])) - 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 'offset' in local_var_params: - query_params.append(('offset', local_var_params['offset'])) - 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 'app_id' in local_var_params: - query_params.append(('app_id', local_var_params['app_id'])) header_params = {} if 'instance_id' in local_var_params: @@ -3443,6 +3426,8 @@ def _list_devices_http_info(self, request): form_params = {} body = None + if 'body' in local_var_params: + body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -3464,31 +3449,36 @@ def _list_devices_http_info(self, request): return http_info - def reset_device_secret_async(self, request): - """重置设备密钥 + def add_device_async(self, request): + """创建设备 - 应用服务器可调用此接口重置设备密钥,携带指定密钥时平台将设备密钥重置为指定的密钥,不携带密钥时平台将自动生成一个新的随机密钥返回。 + 应用服务器可调用此接口在物联网平台创建一个设备,仅在创建后设备才可以接入物联网平台。 + + - 该接口支持使用gateway_id参数指定在父设备下创建一个子设备,并且支持多级子设备,当前最大支持二级子设备。 + - 该接口同时还支持对设备进行初始配置,接口会读取创建设备请求参数product_id对应的产品详情,如果产品的属性有定义默认值,则会将该属性默认值写入该设备的设备影子中。 + - 用户还可以使用创建设备请求参数shadow字段为设备指定初始配置,指定后将会根据service_id和desired设置的属性值与产品中对应属性的默认值比对,如果不同,则将以shadow字段中设置的属性值为准写入到设备影子中。 + - 该接口仅支持创建单个设备,如需批量注册设备,请参见 [[创建批量任务](https://support.huaweicloud.com/api-iothub/iot_06_v5_0045.html)](tag:hws)[[创建批量任务](https://support.huaweicloud.com/intl/zh-cn/api-iothub/iot_06_v5_0045.html)](tag:hws_hk)。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ResetDeviceSecret - :type request: :class:`huaweicloudsdkiotda.v5.ResetDeviceSecretRequest` - :rtype: :class:`huaweicloudsdkiotda.v5.ResetDeviceSecretResponse` + :param request: Request instance for AddDevice + :type request: :class:`huaweicloudsdkiotda.v5.AddDeviceRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.AddDeviceResponse` """ - http_info = self._reset_device_secret_http_info(request) + http_info = self._add_device_http_info(request) return self._call_api(**http_info) - def reset_device_secret_async_invoker(self, request): - http_info = self._reset_device_secret_http_info(request) + def add_device_async_invoker(self, request): + http_info = self._add_device_http_info(request) return AsyncInvoker(self, http_info) - def _reset_device_secret_http_info(self, request): + def _add_device_http_info(self, request): http_info = { "method": "POST", - "resource_path": "/v5/iot/{project_id}/devices/{device_id}/action", + "resource_path": "/v5/iot/{project_id}/devices", "request_type": request.__class__.__name__, - "response_type": "ResetDeviceSecretResponse" + "response_type": "AddDeviceResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -3498,12 +3488,8 @@ def _reset_device_secret_http_info(self, request): collection_formats = {} path_params = {} - if 'device_id' in local_var_params: - path_params['device_id'] = local_var_params['device_id'] query_params = [] - if 'action_id' in local_var_params: - query_params.append(('action_id', local_var_params['action_id'])) header_params = {} if 'instance_id' in local_var_params: @@ -3535,31 +3521,31 @@ def _reset_device_secret_http_info(self, request): return http_info - def reset_fingerprint_async(self, request): - """重置设备指纹 + def delete_device_async(self, request): + """删除设备 - 应用服务器可调用此接口重置设备指纹。携带指定设备指纹时将之重置为指定值;不携带时将之置空,后续设备第一次接入时,该设备指纹的值将设置为第一次接入时的证书指纹。 + 应用服务器可调用此接口在物联网平台上删除指定设备。若设备下连接了非直连设备,则必须把设备下的非直连设备都删除后,才能删除该设备。该接口仅支持删除单个设备,如需批量删除设备,请参见 [[创建批量任务](https://support.huaweicloud.com/api-iothub/iot_06_v5_0045.html)](tag:hws)[[创建批量任务](https://support.huaweicloud.com/intl/zh-cn/api-iothub/iot_06_v5_0045.html)](tag:hws_hk)。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ResetFingerprint - :type request: :class:`huaweicloudsdkiotda.v5.ResetFingerprintRequest` - :rtype: :class:`huaweicloudsdkiotda.v5.ResetFingerprintResponse` + :param request: Request instance for DeleteDevice + :type request: :class:`huaweicloudsdkiotda.v5.DeleteDeviceRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.DeleteDeviceResponse` """ - http_info = self._reset_fingerprint_http_info(request) + http_info = self._delete_device_http_info(request) return self._call_api(**http_info) - def reset_fingerprint_async_invoker(self, request): - http_info = self._reset_fingerprint_http_info(request) + def delete_device_async_invoker(self, request): + http_info = self._delete_device_http_info(request) return AsyncInvoker(self, http_info) - def _reset_fingerprint_http_info(self, request): + def _delete_device_http_info(self, request): http_info = { - "method": "POST", - "resource_path": "/v5/iot/{project_id}/devices/{device_id}/reset-fingerprint", + "method": "DELETE", + "resource_path": "/v5/iot/{project_id}/devices/{device_id}", "request_type": request.__class__.__name__, - "response_type": "ResetFingerprintResponse" + "response_type": "DeleteDeviceResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -3581,8 +3567,6 @@ def _reset_fingerprint_http_info(self, request): form_params = {} body = None - if 'body' in local_var_params: - body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -3604,29 +3588,390 @@ def _reset_fingerprint_http_info(self, request): return http_info - def search_devices_async(self, request): - """灵活搜索设备列表 + def freeze_device_async(self, request): + """冻结设备 - #### 接口说明 - - 应用服务器使用SQL语句调用该接口,灵活的搜索所需要的设备资源列表 - - #### 限制 - - - 仅**标准版实例、企业版实例**支持该接口调用,基础版不支持。 - - 单账号调用该接口的 TPS 限制最大为1/S(每秒1次请求数) - - #### 类SQL语法使用说明 - - 类SQL语句有select、from、where(可选)、order by(可选)、limit子句(可选)组成,长度限制为400个字符。子句里的内容大小写敏感,SQL语句的关键字大小写不敏感。 - - 示例: - - ``` - select * from device where device_id = 'as********' limit 0,5 - ``` + 应用服务器可调用此接口冻结设备,设备冻结后不能再连接上线,可以通过解冻设备接口解除设备冻结。注意,当前仅支持冻结与平台直连的设备。该接口仅支持冻结单个设备,如需批量冻结设备,请参见 [[创建批量任务](https://support.huaweicloud.com/api-iothub/iot_06_v5_0045.html)](tag:hws)[[创建批量任务](https://support.huaweicloud.com/intl/zh-cn/api-iothub/iot_06_v5_0045.html)](tag:hws_hk)。 - ##### SELECT子句 + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for FreezeDevice + :type request: :class:`huaweicloudsdkiotda.v5.FreezeDeviceRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.FreezeDeviceResponse` + """ + http_info = self._freeze_device_http_info(request) + return self._call_api(**http_info) + + def freeze_device_async_invoker(self, request): + http_info = self._freeze_device_http_info(request) + return AsyncInvoker(self, http_info) + + def _freeze_device_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v5/iot/{project_id}/devices/{device_id}/freeze", + "request_type": request.__class__.__name__, + "response_type": "FreezeDeviceResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'device_id' in local_var_params: + path_params['device_id'] = local_var_params['device_id'] + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def list_device_groups_by_device_async(self, request): + """查询指定设备加入的设备组列表 + + 应用服务器可调用此接口查询物联网平台中的某个设备加入的设备组信息列表。仅标准版实例、企业版实例支持该接口调用,基础版不支持。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListDeviceGroupsByDevice + :type request: :class:`huaweicloudsdkiotda.v5.ListDeviceGroupsByDeviceRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.ListDeviceGroupsByDeviceResponse` + """ + http_info = self._list_device_groups_by_device_http_info(request) + return self._call_api(**http_info) + + def list_device_groups_by_device_async_invoker(self, request): + http_info = self._list_device_groups_by_device_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_device_groups_by_device_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v5/iot/{project_id}/devices/{device_id}/list-device-group", + "request_type": request.__class__.__name__, + "response_type": "ListDeviceGroupsByDeviceResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'device_id' in local_var_params: + path_params['device_id'] = local_var_params['device_id'] + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def list_devices_async(self, request): + """查询设备列表 + + 应用服务器可调用此接口查询物联网平台中的设备信息列表。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListDevices + :type request: :class:`huaweicloudsdkiotda.v5.ListDevicesRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.ListDevicesResponse` + """ + http_info = self._list_devices_http_info(request) + return self._call_api(**http_info) + + def list_devices_async_invoker(self, request): + http_info = self._list_devices_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_devices_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v5/iot/{project_id}/devices", + "request_type": request.__class__.__name__, + "response_type": "ListDevicesResponse" + } + + 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 'product_id' in local_var_params: + query_params.append(('product_id', local_var_params['product_id'])) + if 'gateway_id' in local_var_params: + query_params.append(('gateway_id', local_var_params['gateway_id'])) + if 'is_cascade_query' in local_var_params: + query_params.append(('is_cascade_query', local_var_params['is_cascade_query'])) + if 'node_id' in local_var_params: + query_params.append(('node_id', local_var_params['node_id'])) + if 'device_name' in local_var_params: + query_params.append(('device_name', local_var_params['device_name'])) + 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 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + 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 'app_id' in local_var_params: + query_params.append(('app_id', local_var_params['app_id'])) + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def reset_device_secret_async(self, request): + """重置设备密钥 + + 应用服务器可调用此接口重置设备密钥,携带指定密钥时平台将设备密钥重置为指定的密钥,不携带密钥时平台将自动生成一个新的随机密钥返回。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ResetDeviceSecret + :type request: :class:`huaweicloudsdkiotda.v5.ResetDeviceSecretRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.ResetDeviceSecretResponse` + """ + http_info = self._reset_device_secret_http_info(request) + return self._call_api(**http_info) + + def reset_device_secret_async_invoker(self, request): + http_info = self._reset_device_secret_http_info(request) + return AsyncInvoker(self, http_info) + + def _reset_device_secret_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v5/iot/{project_id}/devices/{device_id}/action", + "request_type": request.__class__.__name__, + "response_type": "ResetDeviceSecretResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'device_id' in local_var_params: + path_params['device_id'] = local_var_params['device_id'] + + query_params = [] + if 'action_id' in local_var_params: + query_params.append(('action_id', local_var_params['action_id'])) + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def reset_fingerprint_async(self, request): + """重置设备指纹 + + 应用服务器可调用此接口重置设备指纹。携带指定设备指纹时将之重置为指定值;不携带时将之置空,后续设备第一次接入时,该设备指纹的值将设置为第一次接入时的证书指纹。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ResetFingerprint + :type request: :class:`huaweicloudsdkiotda.v5.ResetFingerprintRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.ResetFingerprintResponse` + """ + http_info = self._reset_fingerprint_http_info(request) + return self._call_api(**http_info) + + def reset_fingerprint_async_invoker(self, request): + http_info = self._reset_fingerprint_http_info(request) + return AsyncInvoker(self, http_info) + + def _reset_fingerprint_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v5/iot/{project_id}/devices/{device_id}/reset-fingerprint", + "request_type": request.__class__.__name__, + "response_type": "ResetFingerprintResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'device_id' in local_var_params: + path_params['device_id'] = local_var_params['device_id'] + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def search_devices_async(self, request): + """灵活搜索设备列表 + + #### 接口说明 + + 应用服务器使用SQL语句调用该接口,灵活的搜索所需要的设备资源列表 + + #### 限制 + + - 仅**标准版实例、企业版实例**支持该接口调用,基础版不支持。 + - 单账号调用该接口的 TPS 限制最大为1/S(每秒1次请求数) + + #### 类SQL语法使用说明 + + 类SQL语句有select、from、where(可选)、order by(可选)、limit子句(可选)组成,长度限制为400个字符。子句里的内容大小写敏感,SQL语句的关键字大小写不敏感。 + + 示例: + + ``` + select * from device where device_id = 'as********' limit 0,5 + ``` + + ##### SELECT子句 ``` select [field]/[count(*)/count(1)] from device @@ -3652,97 +3997,871 @@ def search_devices_async(self, request): 最多支持5个condition,不支持嵌套;支持的检索字段请参见下面的**搜索条件字段说明**和**支持的运算符**章节 - 连接词支持AND、OR,优先级参考标准SQL语法,默认AND优先级高于OR。 + 连接词支持AND、OR,优先级参考标准SQL语法,默认AND优先级高于OR。 + + ##### LIMIT子句(可选) + + ``` + limit [offset,] rows + ``` + + offset标识搜索的偏移量,rows标识返回搜索结果的最大行数,例如: + + - limit n ;示例(select * from device limit 10) + + 最大返回n条结果数据 + + - limit m,n; 示例(select * from device limit 20,10) + 搜索偏移量为m,最大返回n条结果数据 + + ###### 限制 + + offset 最大 500, rows最大50,如果不填写limit子句,默认为limit 10 + + ##### ORDER BY子句(可选) + + 用于实现自定义排序,当前支持自定义排序的字段为:\"marker\"。 + + ``` + order by marker [asc]/[desc] + ``` + + 子句不填写时默认逻辑为随机排序 + + #### 搜索条件字段说明 + + | 字段名 | 类型 | 说明 | 取值范围 | + | :---------- | :----- | :--------------- | :----------------------------------------------------------- | + | app_id | string | 资源空间ID | 长度不超过36,只允许字母、数字、下划线(_)、连接符(-)的组合。 | + | device_id | string | 设备ID | 长度不超过128,只允许字母、数字、下划线(_)、连接符(-)的组合。 | + | gateway_id | string | 网关ID | 长度不超过128,只允许字母、数字、下划线(_)、连接符(-)的组合。 | + | product_id | string | 设备关联的产品ID | 长度不超过36,只允许字母、数字、下划线(_)、连接符(-)的组合。 | + | device_name | string | 设备名称 | 长度不超过256,只允许中文、字母、数字、以及_?'#().,&%@!-等字符的组合符。 | + | node_id | string | 设备标识码 | 长度不超过64,只允许字母、数字、下划线(_)、连接符(-)的组合 | + | status | string | 设备的状态 | ONLINE(在线)、OFFLINE(离线)、ABNORMAL(异常)、INACTIVE(未激活)、FROZEN(冻结) | + | node_type | string | 设备节点类型 | GATEWAY(直连设备或网关)、ENDPOINT(非直连设备) | + | tag_key | string | 标签键 | 长度不超过64,只允许中文、字母、数字、以及_.-等字符的组合。 | + | tag_value | string | 标签值 | 长度不超过128,只允许中文、字母、数字、以及_.-等字符的组合。 | + | sw_version | string | 软件版本 | 长度不超过64,只允许字母、数字、下划线(_)、连接符(-)、英文点(.)的组合。 | + | fw_version | string | 固件版本 | 长度不超过64,只允许字母、数字、下划线(_)、连接符(-)、英文点(.)的组合。 | + | group_id | string | 群组Id | 长度不超过36,十六进制字符串和连接符(-)的组合 | + | create_time | string | 设备注册时间 | 格式:yyyy-MM-dd'T'HH:mm:ss.SSS'Z',如:2015-06-06T12:10:10.000Z | + | marker | string | 结果记录ID | 长度为24的十六进制字符串,如ffffffffffffffffffffffff | + + #### 支持的运算符 + + | 运算符 | 支持的字段 | + | ------- | ---------------------------------------- | + | = | 所有 | + | != | 所有 | + | > | create_time、marker | + | < | create_time、marker | + | like | device_name、node_id、tag_key、tag_value | + | in | 除tag_key、tag_value以外字段 | + | not in | 除tag_key、tag_value以外字段 | - ##### LIMIT子句(可选) + #### SQL 限制 - ``` - limit [offset,] rows - ``` + - like: 只支持前缀匹配,不支持后缀匹配或者通配符匹配。前缀匹配不得少于4个字符,且不能包含任何特殊字符(只允许中文、字母、数字、下划线(_)、连接符(-)). 前缀后必须跟上\"%\"结尾。 + - 不支持除了count(*)/count(1)以外的其他任何函数。 + - 不支持其他SQL用法,如嵌套SQL、union、join、别名(Alias)等用法 + - SQL长度限制为400个字符,单个请求条件最大支持5个。 + - 不支持\"null\"和空字符串等条件值匹配 - offset标识搜索的偏移量,rows标识返回搜索结果的最大行数,例如: + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for SearchDevices + :type request: :class:`huaweicloudsdkiotda.v5.SearchDevicesRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.SearchDevicesResponse` + """ + http_info = self._search_devices_http_info(request) + return self._call_api(**http_info) + + def search_devices_async_invoker(self, request): + http_info = self._search_devices_http_info(request) + return AsyncInvoker(self, http_info) + + def _search_devices_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v5/iot/{project_id}/search/query-devices", + "request_type": request.__class__.__name__, + "response_type": "SearchDevicesResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def show_device_async(self, request): + """查询设备 + + 应用服务器可调用此接口查询物联网平台中指定设备的详细信息。 - - limit n ;示例(select * from device limit 10) + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowDevice + :type request: :class:`huaweicloudsdkiotda.v5.ShowDeviceRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.ShowDeviceResponse` + """ + http_info = self._show_device_http_info(request) + return self._call_api(**http_info) + + def show_device_async_invoker(self, request): + http_info = self._show_device_http_info(request) + return AsyncInvoker(self, http_info) + + def _show_device_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v5/iot/{project_id}/devices/{device_id}", + "request_type": request.__class__.__name__, + "response_type": "ShowDeviceResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'device_id' in local_var_params: + path_params['device_id'] = local_var_params['device_id'] + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def unfreeze_device_async(self, request): + """解冻设备 + + 应用服务器可调用此接口解冻设备,解除冻结后,设备可以连接上线。该接口仅支持解冻单个设备,如需批量解冻设备,请参见 [[创建批量任务](https://support.huaweicloud.com/api-iothub/iot_06_v5_0045.html)](tag:hws)[[创建批量任务](https://support.huaweicloud.com/intl/zh-cn/api-iothub/iot_06_v5_0045.html)](tag:hws_hk)。 - 最大返回n条结果数据 - - - limit m,n; 示例(select * from device limit 20,10) - 搜索偏移量为m,最大返回n条结果数据 + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for UnfreezeDevice + :type request: :class:`huaweicloudsdkiotda.v5.UnfreezeDeviceRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.UnfreezeDeviceResponse` + """ + http_info = self._unfreeze_device_http_info(request) + return self._call_api(**http_info) + + def unfreeze_device_async_invoker(self, request): + http_info = self._unfreeze_device_http_info(request) + return AsyncInvoker(self, http_info) + + def _unfreeze_device_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v5/iot/{project_id}/devices/{device_id}/unfreeze", + "request_type": request.__class__.__name__, + "response_type": "UnfreezeDeviceResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'device_id' in local_var_params: + path_params['device_id'] = local_var_params['device_id'] + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def update_device_async(self, request): + """修改设备 + + 应用服务器可调用此接口修改物联网平台中指定设备的基本信息。 - ###### 限制 + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for UpdateDevice + :type request: :class:`huaweicloudsdkiotda.v5.UpdateDeviceRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.UpdateDeviceResponse` + """ + http_info = self._update_device_http_info(request) + return self._call_api(**http_info) + + def update_device_async_invoker(self, request): + http_info = self._update_device_http_info(request) + return AsyncInvoker(self, http_info) + + def _update_device_http_info(self, request): + http_info = { + "method": "PUT", + "resource_path": "/v5/iot/{project_id}/devices/{device_id}", + "request_type": request.__class__.__name__, + "response_type": "UpdateDeviceResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'device_id' in local_var_params: + path_params['device_id'] = local_var_params['device_id'] + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def create_device_proxy_async(self, request): + """创建设备代理 + + 应用服务器可调用此接口在物联网平台创建一个动态设备代理规则,用于子设备自主选择网关设备上线和上报消息,即代理组下的任意网关下的子设备均可以通过代理组里其他设备上线([[网关更新子设备状态](https://support.huaweicloud.com/api-iothub/iot_06_v5_3022.html)](tag:hws) [[网关更新子设备状态](https://support.huaweicloud.com/intl/zh-cn/api-iothub/iot_06_v5_3022.html)](tag:hws_hk))然后进行数据上报([[网关批量设备属性上报](https://support.huaweicloud.com/api-iothub/iot_06_v5_3006.html)](tag:hws) [[网关更新子设备状态](https://support.huaweicloud.com/intl/zh-cn/api-iothub/iot_06_v5_3006.html)](tag:hws_hk))。 + - 单实例最多可以配置10个设备代理 + - 单账号调用该接口的 TPS 限制最大为1/S(每秒1次请求数) - offset 最大 500, rows最大50,如果不填写limit子句,默认为limit 10 + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreateDeviceProxy + :type request: :class:`huaweicloudsdkiotda.v5.CreateDeviceProxyRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.CreateDeviceProxyResponse` + """ + http_info = self._create_device_proxy_http_info(request) + return self._call_api(**http_info) + + def create_device_proxy_async_invoker(self, request): + http_info = self._create_device_proxy_http_info(request) + return AsyncInvoker(self, http_info) + + def _create_device_proxy_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v5/iot/{project_id}/device-proxies", + "request_type": request.__class__.__name__, + "response_type": "CreateDeviceProxyResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def delete_device_proxy_async(self, request): + """删除设备代理 + + 应用服务器可调用此接口在物联网平台上删除指定设备代理。 - ##### ORDER BY子句(可选) + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for DeleteDeviceProxy + :type request: :class:`huaweicloudsdkiotda.v5.DeleteDeviceProxyRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.DeleteDeviceProxyResponse` + """ + http_info = self._delete_device_proxy_http_info(request) + return self._call_api(**http_info) + + def delete_device_proxy_async_invoker(self, request): + http_info = self._delete_device_proxy_http_info(request) + return AsyncInvoker(self, http_info) + + def _delete_device_proxy_http_info(self, request): + http_info = { + "method": "DELETE", + "resource_path": "/v5/iot/{project_id}/device-proxies/{proxy_id}", + "request_type": request.__class__.__name__, + "response_type": "DeleteDeviceProxyResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'proxy_id' in local_var_params: + path_params['proxy_id'] = local_var_params['proxy_id'] + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def list_device_proxies_async(self, request): + """查询设备代理列表 + + 应用服务器可调用此接口查询物联网平台中的设备代理列表。 - 用于实现自定义排序,当前支持自定义排序的字段为:\"marker\"。 + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListDeviceProxies + :type request: :class:`huaweicloudsdkiotda.v5.ListDeviceProxiesRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.ListDeviceProxiesResponse` + """ + http_info = self._list_device_proxies_http_info(request) + return self._call_api(**http_info) + + def list_device_proxies_async_invoker(self, request): + http_info = self._list_device_proxies_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_device_proxies_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v5/iot/{project_id}/device-proxies", + "request_type": request.__class__.__name__, + "response_type": "ListDeviceProxiesResponse" + } + + 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 'app_id' in local_var_params: + query_params.append(('app_id', local_var_params['app_id'])) + if 'proxy_name' in local_var_params: + query_params.append(('proxy_name', local_var_params['proxy_name'])) + 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 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def show_device_proxy_async(self, request): + """查询设备代理详情 + + 应用服务器可调用此接口查询物联网平台中指定设备代理的详细信息。 - ``` - order by marker [asc]/[desc] - ``` + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowDeviceProxy + :type request: :class:`huaweicloudsdkiotda.v5.ShowDeviceProxyRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.ShowDeviceProxyResponse` + """ + http_info = self._show_device_proxy_http_info(request) + return self._call_api(**http_info) + + def show_device_proxy_async_invoker(self, request): + http_info = self._show_device_proxy_http_info(request) + return AsyncInvoker(self, http_info) + + def _show_device_proxy_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v5/iot/{project_id}/device-proxies/{proxy_id}", + "request_type": request.__class__.__name__, + "response_type": "ShowDeviceProxyResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'proxy_id' in local_var_params: + path_params['proxy_id'] = local_var_params['proxy_id'] + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def update_device_proxy_async(self, request): + """修改设备代理 + + 应用服务器可调用此接口修改物联网平台中指定设备代理的基本信息。 - 子句不填写时默认逻辑为随机排序 + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for UpdateDeviceProxy + :type request: :class:`huaweicloudsdkiotda.v5.UpdateDeviceProxyRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.UpdateDeviceProxyResponse` + """ + http_info = self._update_device_proxy_http_info(request) + return self._call_api(**http_info) + + def update_device_proxy_async_invoker(self, request): + http_info = self._update_device_proxy_http_info(request) + return AsyncInvoker(self, http_info) + + def _update_device_proxy_http_info(self, request): + http_info = { + "method": "PUT", + "resource_path": "/v5/iot/{project_id}/device-proxies/{proxy_id}", + "request_type": request.__class__.__name__, + "response_type": "UpdateDeviceProxyResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'proxy_id' in local_var_params: + path_params['proxy_id'] = local_var_params['proxy_id'] + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def show_device_shadow_async(self, request): + """查询设备影子数据 + + 应用服务器可调用此接口查询指定设备的设备影子信息,包括对设备的期望属性信息(desired区)和设备最新上报的属性信息(reported区)。 - #### 搜索条件字段说明 + 设备影子介绍: + 设备影子是一个用于存储和检索设备当前状态信息的JSON文档。 + - 每个设备有且只有一个设备影子,由设备ID唯一标识 + - 设备影子用于存储设备上报的(状态)属性和应用程序期望的设备(状态)属性 + - 无论该设备是否在线,都可以通过该影子获取和设置设备的属性 + - 设备上线或者设备上报属性时,如果desired区和reported区存在差异,则将差异部分下发给设备,配置的预期属性需在产品模型中定义且method具有可写属性“W”才可下发 - | 字段名 | 类型 | 说明 | 取值范围 | - | :---------- | :----- | :--------------- | :----------------------------------------------------------- | - | app_id | string | 资源空间ID | 长度不超过36,只允许字母、数字、下划线(_)、连接符(-)的组合。 | - | device_id | string | 设备ID | 长度不超过128,只允许字母、数字、下划线(_)、连接符(-)的组合。 | - | gateway_id | string | 网关ID | 长度不超过128,只允许字母、数字、下划线(_)、连接符(-)的组合。 | - | product_id | string | 设备关联的产品ID | 长度不超过36,只允许字母、数字、下划线(_)、连接符(-)的组合。 | - | device_name | string | 设备名称 | 长度不超过256,只允许中文、字母、数字、以及_?'#().,&%@!-等字符的组合符。 | - | node_id | string | 设备标识码 | 长度不超过64,只允许字母、数字、下划线(_)、连接符(-)的组合 | - | status | string | 设备的状态 | ONLINE(在线)、OFFLINE(离线)、ABNORMAL(异常)、INACTIVE(未激活)、FROZEN(冻结) | - | node_type | string | 设备节点类型 | GATEWAY(直连设备或网关)、ENDPOINT(非直连设备) | - | tag_key | string | 标签键 | 长度不超过64,只允许中文、字母、数字、以及_.-等字符的组合。 | - | tag_value | string | 标签值 | 长度不超过128,只允许中文、字母、数字、以及_.-等字符的组合。 | - | sw_version | string | 软件版本 | 长度不超过64,只允许字母、数字、下划线(_)、连接符(-)、英文点(.)的组合。 | - | fw_version | string | 固件版本 | 长度不超过64,只允许字母、数字、下划线(_)、连接符(-)、英文点(.)的组合。 | - | group_id | string | 群组Id | 长度不超过36,十六进制字符串和连接符(-)的组合 | - | create_time | string | 设备注册时间 | 格式:yyyy-MM-dd'T'HH:mm:ss.SSS'Z',如:2015-06-06T12:10:10.000Z | - | marker | string | 结果记录ID | 长度为24的十六进制字符串,如ffffffffffffffffffffffff | + 限制: + 设备影子JSON文档中的key不允许特殊字符:点(.)、dollar符号($)、空char(十六进制的ASCII码为00)。如果包含了以上特殊字符则无法正常刷新影子文档。 - #### 支持的运算符 + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowDeviceShadow + :type request: :class:`huaweicloudsdkiotda.v5.ShowDeviceShadowRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.ShowDeviceShadowResponse` + """ + http_info = self._show_device_shadow_http_info(request) + return self._call_api(**http_info) + + def show_device_shadow_async_invoker(self, request): + http_info = self._show_device_shadow_http_info(request) + return AsyncInvoker(self, http_info) + + def _show_device_shadow_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v5/iot/{project_id}/devices/{device_id}/shadow", + "request_type": request.__class__.__name__, + "response_type": "ShowDeviceShadowResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'device_id' in local_var_params: + path_params['device_id'] = local_var_params['device_id'] + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def update_device_shadow_desired_data_async(self, request): + """配置设备影子预期数据 + + 应用服务器可调用此接口配置设备影子的预期属性(desired区),当设备上线或者设备上报属性时把属性下发给设备。 - | 运算符 | 支持的字段 | - | ------- | ---------------------------------------- | - | = | 所有 | - | != | 所有 | - | > | create_time、marker | - | < | create_time、marker | - | like | device_name、node_id、tag_key、tag_value | - | in | 除tag_key、tag_value以外字段 | - | not in | 除tag_key、tag_value以外字段 | + 设备影子介绍: + 设备影子是一个用于存储和检索设备当前状态信息的JSON文档。 + - 每个设备有且只有一个设备影子,由设备ID唯一标识 + - 设备影子用于存储设备上报的(状态)属性和应用程序期望的设备(状态)属性 + - 无论该设备是否在线,都可以通过该影子获取和设置设备的属性 + - 设备上线或者设备上报属性时,如果desired区和reported区存在差异,则将差异部分下发给设备,配置的预期属性需在产品模型中定义且method具有可写属性“W”才可下发 + - 该接口仅支持配置单个设备的设备影子的预期数据,如需多个设备的设备影子配置,请参见 [[创建批量任务](https://support.huaweicloud.com/api-iothub/iot_06_v5_0045.html)](tag:hws)[[创建批量任务](https://support.huaweicloud.com/intl/zh-cn/api-iothub/iot_06_v5_0045.html)](tag:hws_hk)。 - #### SQL 限制 + 限制: + 设备影子JSON文档中的key不允许特殊字符:点(.)、dollar符号($)、空char(十六进制的ASCII码为00)。如果包含了以上特殊字符则无法正常刷新影子文档。 - - like: 只支持前缀匹配,不支持后缀匹配或者通配符匹配。前缀匹配不得少于4个字符,且不能包含任何特殊字符(只允许中文、字母、数字、下划线(_)、连接符(-)). 前缀后必须跟上\"%\"结尾。 - - 不支持除了count(*)/count(1)以外的其他任何函数。 - - 不支持其他SQL用法,如嵌套SQL、union、join、别名(Alias)等用法 - - SQL长度限制为400个字符,单个请求条件最大支持5个。 - - 不支持\"null\"和空字符串等条件值匹配 + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for UpdateDeviceShadowDesiredData + :type request: :class:`huaweicloudsdkiotda.v5.UpdateDeviceShadowDesiredDataRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.UpdateDeviceShadowDesiredDataResponse` + """ + http_info = self._update_device_shadow_desired_data_http_info(request) + return self._call_api(**http_info) + + def update_device_shadow_desired_data_async_invoker(self, request): + http_info = self._update_device_shadow_desired_data_http_info(request) + return AsyncInvoker(self, http_info) + + def _update_device_shadow_desired_data_http_info(self, request): + http_info = { + "method": "PUT", + "resource_path": "/v5/iot/{project_id}/devices/{device_id}/shadow", + "request_type": request.__class__.__name__, + "response_type": "UpdateDeviceShadowDesiredDataResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'device_id' in local_var_params: + path_params['device_id'] = local_var_params['device_id'] + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def create_routing_flow_control_policy_async(self, request): + """新建数据流转流控策略 + + 应用服务器可调用此接口在物联网平台创建数据流转流控策略。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for SearchDevices - :type request: :class:`huaweicloudsdkiotda.v5.SearchDevicesRequest` - :rtype: :class:`huaweicloudsdkiotda.v5.SearchDevicesResponse` + :param request: Request instance for CreateRoutingFlowControlPolicy + :type request: :class:`huaweicloudsdkiotda.v5.CreateRoutingFlowControlPolicyRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.CreateRoutingFlowControlPolicyResponse` """ - http_info = self._search_devices_http_info(request) + http_info = self._create_routing_flow_control_policy_http_info(request) return self._call_api(**http_info) - def search_devices_async_invoker(self, request): - http_info = self._search_devices_http_info(request) + def create_routing_flow_control_policy_async_invoker(self, request): + http_info = self._create_routing_flow_control_policy_http_info(request) return AsyncInvoker(self, http_info) - def _search_devices_http_info(self, request): + def _create_routing_flow_control_policy_http_info(self, request): http_info = { "method": "POST", - "resource_path": "/v5/iot/{project_id}/search/query-devices", + "resource_path": "/v5/iot/{project_id}/routing-rule/flowcontrol-policy", "request_type": request.__class__.__name__, - "response_type": "SearchDevicesResponse" + "response_type": "CreateRoutingFlowControlPolicyResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -3769,6 +4888,73 @@ def _search_devices_http_info(self, request): 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_routing_flow_control_policy_async(self, request): + """删除数据流转流控策略 + + 应用服务器可调用此接口在物联网平台删除指定数据流转流控策略。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for DeleteRoutingFlowControlPolicy + :type request: :class:`huaweicloudsdkiotda.v5.DeleteRoutingFlowControlPolicyRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.DeleteRoutingFlowControlPolicyResponse` + """ + http_info = self._delete_routing_flow_control_policy_http_info(request) + return self._call_api(**http_info) + + def delete_routing_flow_control_policy_async_invoker(self, request): + http_info = self._delete_routing_flow_control_policy_http_info(request) + return AsyncInvoker(self, http_info) + + def _delete_routing_flow_control_policy_http_info(self, request): + http_info = { + "method": "DELETE", + "resource_path": "/v5/iot/{project_id}/routing-rule/flowcontrol-policy/{policy_id}", + "request_type": request.__class__.__name__, + "response_type": "DeleteRoutingFlowControlPolicyResponse" + } + + 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_id' in local_var_params: + path_params['policy_id'] = local_var_params['policy_id'] + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) @@ -3785,31 +4971,31 @@ def _search_devices_http_info(self, request): return http_info - def show_device_async(self, request): - """查询设备 + def list_routing_flow_control_policy_async(self, request): + """查询数据流转流控策略列表 - 应用服务器可调用此接口查询物联网平台中指定设备的详细信息。 + 应用服务器可调用此接口查询在物联网平台设置的数据流转流控策略列表。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowDevice - :type request: :class:`huaweicloudsdkiotda.v5.ShowDeviceRequest` - :rtype: :class:`huaweicloudsdkiotda.v5.ShowDeviceResponse` + :param request: Request instance for ListRoutingFlowControlPolicy + :type request: :class:`huaweicloudsdkiotda.v5.ListRoutingFlowControlPolicyRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.ListRoutingFlowControlPolicyResponse` """ - http_info = self._show_device_http_info(request) + http_info = self._list_routing_flow_control_policy_http_info(request) return self._call_api(**http_info) - def show_device_async_invoker(self, request): - http_info = self._show_device_http_info(request) + def list_routing_flow_control_policy_async_invoker(self, request): + http_info = self._list_routing_flow_control_policy_http_info(request) return AsyncInvoker(self, http_info) - def _show_device_http_info(self, request): + def _list_routing_flow_control_policy_http_info(self, request): http_info = { "method": "GET", - "resource_path": "/v5/iot/{project_id}/devices/{device_id}", + "resource_path": "/v5/iot/{project_id}/routing-rule/flowcontrol-policy", "request_type": request.__class__.__name__, - "response_type": "ShowDeviceResponse" + "response_type": "ListRoutingFlowControlPolicyResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -3819,10 +5005,20 @@ def _show_device_http_info(self, request): collection_formats = {} path_params = {} - if 'device_id' in local_var_params: - path_params['device_id'] = local_var_params['device_id'] query_params = [] + if 'scope' in local_var_params: + query_params.append(('scope', local_var_params['scope'])) + if 'scope_value' in local_var_params: + query_params.append(('scope_value', local_var_params['scope_value'])) + if 'policy_name' in local_var_params: + query_params.append(('policy_name', local_var_params['policy_name'])) + 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 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) header_params = {} if 'instance_id' in local_var_params: @@ -3852,31 +5048,98 @@ def _show_device_http_info(self, request): return http_info - def unfreeze_device_async(self, request): - """解冻设备 + def show_routing_flow_control_policy_async(self, request): + """查询数据流转流控策略 - 应用服务器可调用此接口解冻设备,解除冻结后,设备可以连接上线。该接口仅支持解冻单个设备,如需批量解冻设备,请参见 [[创建批量任务](https://support.huaweicloud.com/api-iothub/iot_06_v5_0045.html)](tag:hws)[[创建批量任务](https://support.huaweicloud.com/intl/zh-cn/api-iothub/iot_06_v5_0045.html)](tag:hws_hk)。 + 应用服务器可调用此接口在物联网平台查询指定数据流转流控策略。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowRoutingFlowControlPolicy + :type request: :class:`huaweicloudsdkiotda.v5.ShowRoutingFlowControlPolicyRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.ShowRoutingFlowControlPolicyResponse` + """ + http_info = self._show_routing_flow_control_policy_http_info(request) + return self._call_api(**http_info) + + def show_routing_flow_control_policy_async_invoker(self, request): + http_info = self._show_routing_flow_control_policy_http_info(request) + return AsyncInvoker(self, http_info) + + def _show_routing_flow_control_policy_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v5/iot/{project_id}/routing-rule/flowcontrol-policy/{policy_id}", + "request_type": request.__class__.__name__, + "response_type": "ShowRoutingFlowControlPolicyResponse" + } + + 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_id' in local_var_params: + path_params['policy_id'] = local_var_params['policy_id'] + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def update_routing_flow_control_policy_async(self, request): + """修改数据流转流控策略 + + 应用服务器可调用此接口在物联网平台修改指定数据流转流控策略。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for UnfreezeDevice - :type request: :class:`huaweicloudsdkiotda.v5.UnfreezeDeviceRequest` - :rtype: :class:`huaweicloudsdkiotda.v5.UnfreezeDeviceResponse` + :param request: Request instance for UpdateRoutingFlowControlPolicy + :type request: :class:`huaweicloudsdkiotda.v5.UpdateRoutingFlowControlPolicyRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.UpdateRoutingFlowControlPolicyResponse` """ - http_info = self._unfreeze_device_http_info(request) + http_info = self._update_routing_flow_control_policy_http_info(request) return self._call_api(**http_info) - def unfreeze_device_async_invoker(self, request): - http_info = self._unfreeze_device_http_info(request) + def update_routing_flow_control_policy_async_invoker(self, request): + http_info = self._update_routing_flow_control_policy_http_info(request) return AsyncInvoker(self, http_info) - def _unfreeze_device_http_info(self, request): + def _update_routing_flow_control_policy_http_info(self, request): http_info = { - "method": "POST", - "resource_path": "/v5/iot/{project_id}/devices/{device_id}/unfreeze", + "method": "PUT", + "resource_path": "/v5/iot/{project_id}/routing-rule/flowcontrol-policy/{policy_id}", "request_type": request.__class__.__name__, - "response_type": "UnfreezeDeviceResponse" + "response_type": "UpdateRoutingFlowControlPolicyResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -3886,8 +5149,8 @@ def _unfreeze_device_http_info(self, request): collection_formats = {} path_params = {} - if 'device_id' in local_var_params: - path_params['device_id'] = local_var_params['device_id'] + if 'policy_id' in local_var_params: + path_params['policy_id'] = local_var_params['policy_id'] query_params = [] @@ -3898,13 +5161,15 @@ def _unfreeze_device_http_info(self, request): form_params = {} body = None + if 'body' in local_var_params: + body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() response_headers = [] header_params['Content-Type'] = http_utils.select_header_content_type( - ['application/json']) + ['application/json;charset=UTF-8']) auth_settings = [] @@ -3919,31 +5184,34 @@ def _unfreeze_device_http_info(self, request): return http_info - def update_device_async(self, request): - """修改设备 + def create_message_async(self, request): + """下发设备消息 - 应用服务器可调用此接口修改物联网平台中指定设备的基本信息。 + 物联网平台可向设备下发消息,应用服务器可调用此接口向指定设备下发消息,以实现对设备的控制。应用将消息下发给平台后,平台返回应用响应结果,平台再将消息发送给设备。平台返回应用响应结果不一定是设备接收结果,建议用户应用通过订阅[[设备消息状态变更通知](https://support.huaweicloud.com/api-iothub/iot_06_v5_01203.html)](tag:hws)[[设备消息状态变更通知](https://support.huaweicloud.com/intl/zh-cn/api-iothub/iot_06_v5_01203.html)](tag:hws_hk),订阅后平台会将设备接收结果推送给订阅的应用。 + 注意: + - 此接口适用于MQTT设备消息下发,暂不支持其他协议接入的设备消息下发。 + - 此接口仅支持单个设备消息下发,如需多个设备消息下发,请参见 [[创建批量任务](https://support.huaweicloud.com/api-iothub/iot_06_v5_0045.html)](tag:hws)[[创建批量任务](https://support.huaweicloud.com/intl/zh-cn/api-iothub/iot_06_v5_0045.html)](tag:hws_hk)。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for UpdateDevice - :type request: :class:`huaweicloudsdkiotda.v5.UpdateDeviceRequest` - :rtype: :class:`huaweicloudsdkiotda.v5.UpdateDeviceResponse` + :param request: Request instance for CreateMessage + :type request: :class:`huaweicloudsdkiotda.v5.CreateMessageRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.CreateMessageResponse` """ - http_info = self._update_device_http_info(request) + http_info = self._create_message_http_info(request) return self._call_api(**http_info) - def update_device_async_invoker(self, request): - http_info = self._update_device_http_info(request) + def create_message_async_invoker(self, request): + http_info = self._create_message_http_info(request) return AsyncInvoker(self, http_info) - def _update_device_http_info(self, request): + def _create_message_http_info(self, request): http_info = { - "method": "PUT", - "resource_path": "/v5/iot/{project_id}/devices/{device_id}", + "method": "POST", + "resource_path": "/v5/iot/{project_id}/devices/{device_id}/messages", "request_type": request.__class__.__name__, - "response_type": "UpdateDeviceResponse" + "response_type": "CreateMessageResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -3988,33 +5256,31 @@ def _update_device_http_info(self, request): return http_info - def create_device_proxy_async(self, request): - """创建设备代理 + def list_device_messages_async(self, request): + """查询设备消息 - 应用服务器可调用此接口在物联网平台创建一个动态设备代理规则,用于子设备自主选择网关设备上线和上报消息,即代理组下的任意网关下的子设备均可以通过代理组里其他设备上线([[网关更新子设备状态](https://support.huaweicloud.com/api-iothub/iot_06_v5_3022.html)](tag:hws) [[网关更新子设备状态](https://support.huaweicloud.com/intl/zh-cn/api-iothub/iot_06_v5_3022.html)](tag:hws_hk))然后进行数据上报([[网关批量设备属性上报](https://support.huaweicloud.com/api-iothub/iot_06_v5_3006.html)](tag:hws) [[网关更新子设备状态](https://support.huaweicloud.com/intl/zh-cn/api-iothub/iot_06_v5_3006.html)](tag:hws_hk))。 - - 单实例最多可以配置10个设备代理 - - 单账号调用该接口的 TPS 限制最大为1/S(每秒1次请求数) + 应用服务器可调用此接口查询平台下发给设备的消息,平台为每个设备默认最多保存20条消息,超过20条后, 后续的消息会替换下发最早的消息。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for CreateDeviceProxy - :type request: :class:`huaweicloudsdkiotda.v5.CreateDeviceProxyRequest` - :rtype: :class:`huaweicloudsdkiotda.v5.CreateDeviceProxyResponse` + :param request: Request instance for ListDeviceMessages + :type request: :class:`huaweicloudsdkiotda.v5.ListDeviceMessagesRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.ListDeviceMessagesResponse` """ - http_info = self._create_device_proxy_http_info(request) + http_info = self._list_device_messages_http_info(request) return self._call_api(**http_info) - def create_device_proxy_async_invoker(self, request): - http_info = self._create_device_proxy_http_info(request) + def list_device_messages_async_invoker(self, request): + http_info = self._list_device_messages_http_info(request) return AsyncInvoker(self, http_info) - def _create_device_proxy_http_info(self, request): + def _list_device_messages_http_info(self, request): http_info = { - "method": "POST", - "resource_path": "/v5/iot/{project_id}/device-proxies", + "method": "GET", + "resource_path": "/v5/iot/{project_id}/devices/{device_id}/messages", "request_type": request.__class__.__name__, - "response_type": "CreateDeviceProxyResponse" + "response_type": "ListDeviceMessagesResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -4024,6 +5290,8 @@ def _create_device_proxy_http_info(self, request): collection_formats = {} path_params = {} + if 'device_id' in local_var_params: + path_params['device_id'] = local_var_params['device_id'] query_params = [] @@ -4034,8 +5302,6 @@ def _create_device_proxy_http_info(self, request): form_params = {} body = None - if 'body' in local_var_params: - body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -4057,31 +5323,31 @@ def _create_device_proxy_http_info(self, request): return http_info - def delete_device_proxy_async(self, request): - """删除设备代理 + def show_device_message_async(self, request): + """查询指定消息id的消息 - 应用服务器可调用此接口在物联网平台上删除指定设备代理。 + 应用服务器可调用此接口查询平台下发给设备的指定消息id的消息。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for DeleteDeviceProxy - :type request: :class:`huaweicloudsdkiotda.v5.DeleteDeviceProxyRequest` - :rtype: :class:`huaweicloudsdkiotda.v5.DeleteDeviceProxyResponse` + :param request: Request instance for ShowDeviceMessage + :type request: :class:`huaweicloudsdkiotda.v5.ShowDeviceMessageRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.ShowDeviceMessageResponse` """ - http_info = self._delete_device_proxy_http_info(request) + http_info = self._show_device_message_http_info(request) return self._call_api(**http_info) - def delete_device_proxy_async_invoker(self, request): - http_info = self._delete_device_proxy_http_info(request) + def show_device_message_async_invoker(self, request): + http_info = self._show_device_message_http_info(request) return AsyncInvoker(self, http_info) - def _delete_device_proxy_http_info(self, request): + def _show_device_message_http_info(self, request): http_info = { - "method": "DELETE", - "resource_path": "/v5/iot/{project_id}/device-proxies/{proxy_id}", + "method": "GET", + "resource_path": "/v5/iot/{project_id}/devices/{device_id}/messages/{message_id}", "request_type": request.__class__.__name__, - "response_type": "DeleteDeviceProxyResponse" + "response_type": "ShowDeviceMessageResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -4091,8 +5357,10 @@ def _delete_device_proxy_http_info(self, request): collection_formats = {} path_params = {} - if 'proxy_id' in local_var_params: - path_params['proxy_id'] = local_var_params['proxy_id'] + if 'device_id' in local_var_params: + path_params['device_id'] = local_var_params['device_id'] + if 'message_id' in local_var_params: + path_params['message_id'] = local_var_params['message_id'] query_params = [] @@ -4124,31 +5392,32 @@ def _delete_device_proxy_http_info(self, request): return http_info - def list_device_proxies_async(self, request): - """查询设备代理列表 + def create_ota_package_async(self, request): + """创建OTA升级包 - 应用服务器可调用此接口查询物联网平台中的设备代理列表。 + 用户可调用此接口创建升级包关联OBS对象 + 使用前提:使用该API需要您授权设备接入服务(IoTDA)的实例访问对象存储服务(OBS)以及 密钥管理服务(KMS Administrator)的权限。在“[[统一身份认证服务(IAM)](https://console.huaweicloud.com/iam)](tag:hws)[[统一身份认证服务(IAM)](https://console-intl.huaweicloud.com/iam)](tag:hws_hk) - 委托”中将委托名称为iotda_admin_trust的委托授权KMS Administrator和OBS OperateAccess Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListDeviceProxies - :type request: :class:`huaweicloudsdkiotda.v5.ListDeviceProxiesRequest` - :rtype: :class:`huaweicloudsdkiotda.v5.ListDeviceProxiesResponse` + :param request: Request instance for CreateOtaPackage + :type request: :class:`huaweicloudsdkiotda.v5.CreateOtaPackageRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.CreateOtaPackageResponse` """ - http_info = self._list_device_proxies_http_info(request) + http_info = self._create_ota_package_http_info(request) return self._call_api(**http_info) - def list_device_proxies_async_invoker(self, request): - http_info = self._list_device_proxies_http_info(request) + def create_ota_package_async_invoker(self, request): + http_info = self._create_ota_package_http_info(request) return AsyncInvoker(self, http_info) - def _list_device_proxies_http_info(self, request): + def _create_ota_package_http_info(self, request): http_info = { - "method": "GET", - "resource_path": "/v5/iot/{project_id}/device-proxies", + "method": "POST", + "resource_path": "/v5/iot/{project_id}/ota-upgrades/packages", "request_type": request.__class__.__name__, - "response_type": "ListDeviceProxiesResponse" + "response_type": "CreateOtaPackageResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -4160,16 +5429,6 @@ def _list_device_proxies_http_info(self, request): path_params = {} query_params = [] - if 'app_id' in local_var_params: - query_params.append(('app_id', local_var_params['app_id'])) - if 'proxy_name' in local_var_params: - query_params.append(('proxy_name', local_var_params['proxy_name'])) - 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 'offset' in local_var_params: - query_params.append(('offset', local_var_params['offset'])) header_params = {} if 'instance_id' in local_var_params: @@ -4178,6 +5437,8 @@ def _list_device_proxies_http_info(self, request): form_params = {} body = None + if 'body' in local_var_params: + body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -4199,31 +5460,32 @@ def _list_device_proxies_http_info(self, request): return http_info - def show_device_proxy_async(self, request): - """查询设备代理详情 + def delete_ota_package_async(self, request): + """删除OTA升级包 - 应用服务器可调用此接口查询物联网平台中指定设备代理的详细信息。 + 用户可调用此接口删除关联OBS对象的升级包信息,不会删除OBS上对象 + 使用前提:使用该API需要您授权设备接入服务(IoTDA)的实例访问对象存储服务(OBS)以及 密钥管理服务(KMS Administrator)的权限。在“[[统一身份认证服务(IAM)](https://console.huaweicloud.com/iam)](tag:hws)[[统一身份认证服务(IAM)](https://console-intl.huaweicloud.com/iam)](tag:hws_hk) - 委托”中将委托名称为iotda_admin_trust的委托授权KMS Administrator和OBS OperateAccess Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowDeviceProxy - :type request: :class:`huaweicloudsdkiotda.v5.ShowDeviceProxyRequest` - :rtype: :class:`huaweicloudsdkiotda.v5.ShowDeviceProxyResponse` + :param request: Request instance for DeleteOtaPackage + :type request: :class:`huaweicloudsdkiotda.v5.DeleteOtaPackageRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.DeleteOtaPackageResponse` """ - http_info = self._show_device_proxy_http_info(request) + http_info = self._delete_ota_package_http_info(request) return self._call_api(**http_info) - def show_device_proxy_async_invoker(self, request): - http_info = self._show_device_proxy_http_info(request) + def delete_ota_package_async_invoker(self, request): + http_info = self._delete_ota_package_http_info(request) return AsyncInvoker(self, http_info) - def _show_device_proxy_http_info(self, request): + def _delete_ota_package_http_info(self, request): http_info = { - "method": "GET", - "resource_path": "/v5/iot/{project_id}/device-proxies/{proxy_id}", + "method": "DELETE", + "resource_path": "/v5/iot/{project_id}/ota-upgrades/packages/{package_id}", "request_type": request.__class__.__name__, - "response_type": "ShowDeviceProxyResponse" + "response_type": "DeleteOtaPackageResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -4233,8 +5495,8 @@ def _show_device_proxy_http_info(self, request): collection_formats = {} path_params = {} - if 'proxy_id' in local_var_params: - path_params['proxy_id'] = local_var_params['proxy_id'] + if 'package_id' in local_var_params: + path_params['package_id'] = local_var_params['package_id'] query_params = [] @@ -4266,31 +5528,32 @@ def _show_device_proxy_http_info(self, request): return http_info - def update_device_proxy_async(self, request): - """修改设备代理 + def list_ota_package_info_async(self, request): + """查询OTA升级包列表 - 应用服务器可调用此接口修改物联网平台中指定设备代理的基本信息。 + 用户可调用此接口查询关联OBS对象的升级包列表 + 使用前提:使用该API需要您授权设备接入服务(IoTDA)的实例访问对象存储服务(OBS)以及 密钥管理服务(KMS Administrator)的权限。在“[[统一身份认证服务(IAM)](https://console.huaweicloud.com/iam)](tag:hws)[[统一身份认证服务(IAM)](https://console-intl.huaweicloud.com/iam)](tag:hws_hk) - 委托”中将委托名称为iotda_admin_trust的委托授权KMS Administrator和OBS OperateAccess Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for UpdateDeviceProxy - :type request: :class:`huaweicloudsdkiotda.v5.UpdateDeviceProxyRequest` - :rtype: :class:`huaweicloudsdkiotda.v5.UpdateDeviceProxyResponse` + :param request: Request instance for ListOtaPackageInfo + :type request: :class:`huaweicloudsdkiotda.v5.ListOtaPackageInfoRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.ListOtaPackageInfoResponse` """ - http_info = self._update_device_proxy_http_info(request) + http_info = self._list_ota_package_info_http_info(request) return self._call_api(**http_info) - def update_device_proxy_async_invoker(self, request): - http_info = self._update_device_proxy_http_info(request) + def list_ota_package_info_async_invoker(self, request): + http_info = self._list_ota_package_info_http_info(request) return AsyncInvoker(self, http_info) - def _update_device_proxy_http_info(self, request): + def _list_ota_package_info_http_info(self, request): http_info = { - "method": "PUT", - "resource_path": "/v5/iot/{project_id}/device-proxies/{proxy_id}", + "method": "GET", + "resource_path": "/v5/iot/{project_id}/ota-upgrades/packages", "request_type": request.__class__.__name__, - "response_type": "UpdateDeviceProxyResponse" + "response_type": "ListOtaPackageInfoResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -4300,10 +5563,22 @@ def _update_device_proxy_http_info(self, request): collection_formats = {} path_params = {} - if 'proxy_id' in local_var_params: - path_params['proxy_id'] = local_var_params['proxy_id'] query_params = [] + if 'app_id' in local_var_params: + query_params.append(('app_id', local_var_params['app_id'])) + if 'package_type' in local_var_params: + query_params.append(('package_type', local_var_params['package_type'])) + if 'product_id' in local_var_params: + query_params.append(('product_id', local_var_params['product_id'])) + if 'version' in local_var_params: + query_params.append(('version', local_var_params['version'])) + 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 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) header_params = {} if 'instance_id' in local_var_params: @@ -4312,8 +5587,6 @@ def _update_device_proxy_http_info(self, request): form_params = {} body = None - if 'body' in local_var_params: - body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -4335,41 +5608,32 @@ def _update_device_proxy_http_info(self, request): return http_info - def show_device_shadow_async(self, request): - """查询设备影子数据 + def show_ota_package_async(self, request): + """获取OTA升级包详情 - 应用服务器可调用此接口查询指定设备的设备影子信息,包括对设备的期望属性信息(desired区)和设备最新上报的属性信息(reported区)。 - - 设备影子介绍: - 设备影子是一个用于存储和检索设备当前状态信息的JSON文档。 - - 每个设备有且只有一个设备影子,由设备ID唯一标识 - - 设备影子用于存储设备上报的(状态)属性和应用程序期望的设备(状态)属性 - - 无论该设备是否在线,都可以通过该影子获取和设置设备的属性 - - 设备上线或者设备上报属性时,如果desired区和reported区存在差异,则将差异部分下发给设备,配置的预期属性需在产品模型中定义且method具有可写属性“W”才可下发 - - 限制: - 设备影子JSON文档中的key不允许特殊字符:点(.)、dollar符号($)、空char(十六进制的ASCII码为00)。如果包含了以上特殊字符则无法正常刷新影子文档。 + 用户可调用此接口查询关联OBS对象的升级包详情 + 使用前提:使用该API需要您授权设备接入服务(IoTDA)的实例访问对象存储服务(OBS)以及 密钥管理服务(KMS Administrator)的权限。在“[[统一身份认证服务(IAM)](https://console.huaweicloud.com/iam)](tag:hws)[[统一身份认证服务(IAM)](https://console-intl.huaweicloud.com/iam)](tag:hws_hk) - 委托”中将委托名称为iotda_admin_trust的委托授权KMS Administrator和OBS OperateAccess Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowDeviceShadow - :type request: :class:`huaweicloudsdkiotda.v5.ShowDeviceShadowRequest` - :rtype: :class:`huaweicloudsdkiotda.v5.ShowDeviceShadowResponse` + :param request: Request instance for ShowOtaPackage + :type request: :class:`huaweicloudsdkiotda.v5.ShowOtaPackageRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.ShowOtaPackageResponse` """ - http_info = self._show_device_shadow_http_info(request) + http_info = self._show_ota_package_http_info(request) return self._call_api(**http_info) - def show_device_shadow_async_invoker(self, request): - http_info = self._show_device_shadow_http_info(request) + def show_ota_package_async_invoker(self, request): + http_info = self._show_ota_package_http_info(request) return AsyncInvoker(self, http_info) - def _show_device_shadow_http_info(self, request): + def _show_ota_package_http_info(self, request): http_info = { "method": "GET", - "resource_path": "/v5/iot/{project_id}/devices/{device_id}/shadow", + "resource_path": "/v5/iot/{project_id}/ota-upgrades/packages/{package_id}", "request_type": request.__class__.__name__, - "response_type": "ShowDeviceShadowResponse" + "response_type": "ShowOtaPackageResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -4379,8 +5643,8 @@ def _show_device_shadow_http_info(self, request): collection_formats = {} path_params = {} - if 'device_id' in local_var_params: - path_params['device_id'] = local_var_params['device_id'] + if 'package_id' in local_var_params: + path_params['package_id'] = local_var_params['package_id'] query_params = [] @@ -4412,42 +5676,31 @@ def _show_device_shadow_http_info(self, request): return http_info - def update_device_shadow_desired_data_async(self, request): - """配置设备影子预期数据 + def bind_device_policy_async(self, request): + """绑定设备策略 - 应用服务器可调用此接口配置设备影子的预期属性(desired区),当设备上线或者设备上报属性时把属性下发给设备。 - - 设备影子介绍: - 设备影子是一个用于存储和检索设备当前状态信息的JSON文档。 - - 每个设备有且只有一个设备影子,由设备ID唯一标识 - - 设备影子用于存储设备上报的(状态)属性和应用程序期望的设备(状态)属性 - - 无论该设备是否在线,都可以通过该影子获取和设置设备的属性 - - 设备上线或者设备上报属性时,如果desired区和reported区存在差异,则将差异部分下发给设备,配置的预期属性需在产品模型中定义且method具有可写属性“W”才可下发 - - 该接口仅支持配置单个设备的设备影子的预期数据,如需多个设备的设备影子配置,请参见 [[创建批量任务](https://support.huaweicloud.com/api-iothub/iot_06_v5_0045.html)](tag:hws)[[创建批量任务](https://support.huaweicloud.com/intl/zh-cn/api-iothub/iot_06_v5_0045.html)](tag:hws_hk)。 - - 限制: - 设备影子JSON文档中的key不允许特殊字符:点(.)、dollar符号($)、空char(十六进制的ASCII码为00)。如果包含了以上特殊字符则无法正常刷新影子文档。 + 应用服务器可调用此接口在物联网平台上为批量设备绑定目标策略,目前支持绑定目标类型为:设备、产品,当目标类型为产品时,该产品下所有设备都会生效。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for UpdateDeviceShadowDesiredData - :type request: :class:`huaweicloudsdkiotda.v5.UpdateDeviceShadowDesiredDataRequest` - :rtype: :class:`huaweicloudsdkiotda.v5.UpdateDeviceShadowDesiredDataResponse` + :param request: Request instance for BindDevicePolicy + :type request: :class:`huaweicloudsdkiotda.v5.BindDevicePolicyRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.BindDevicePolicyResponse` """ - http_info = self._update_device_shadow_desired_data_http_info(request) + http_info = self._bind_device_policy_http_info(request) return self._call_api(**http_info) - def update_device_shadow_desired_data_async_invoker(self, request): - http_info = self._update_device_shadow_desired_data_http_info(request) + def bind_device_policy_async_invoker(self, request): + http_info = self._bind_device_policy_http_info(request) return AsyncInvoker(self, http_info) - def _update_device_shadow_desired_data_http_info(self, request): + def _bind_device_policy_http_info(self, request): http_info = { - "method": "PUT", - "resource_path": "/v5/iot/{project_id}/devices/{device_id}/shadow", + "method": "POST", + "resource_path": "/v5/iot/{project_id}/device-policies/{policy_id}/bind", "request_type": request.__class__.__name__, - "response_type": "UpdateDeviceShadowDesiredDataResponse" + "response_type": "BindDevicePolicyResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -4457,8 +5710,8 @@ def _update_device_shadow_desired_data_http_info(self, request): collection_formats = {} path_params = {} - if 'device_id' in local_var_params: - path_params['device_id'] = local_var_params['device_id'] + if 'policy_id' in local_var_params: + path_params['policy_id'] = local_var_params['policy_id'] query_params = [] @@ -4492,31 +5745,33 @@ def _update_device_shadow_desired_data_http_info(self, request): return http_info - def create_routing_flow_control_policy_async(self, request): - """新建数据流转流控策略 + def create_device_policy_async(self, request): + """创建设备策略 - 应用服务器可调用此接口在物联网平台创建数据流转流控策略。 + 应用服务器可调用此接口在物联网平台创建一个策略,该策略需要绑定到设备和产品下才能生效。 + - 一个实例最多能创建50个设备策略。 + - 仅**标准版实例、企业版实例**支持该接口调用,基础版不支持。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for CreateRoutingFlowControlPolicy - :type request: :class:`huaweicloudsdkiotda.v5.CreateRoutingFlowControlPolicyRequest` - :rtype: :class:`huaweicloudsdkiotda.v5.CreateRoutingFlowControlPolicyResponse` + :param request: Request instance for CreateDevicePolicy + :type request: :class:`huaweicloudsdkiotda.v5.CreateDevicePolicyRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.CreateDevicePolicyResponse` """ - http_info = self._create_routing_flow_control_policy_http_info(request) + http_info = self._create_device_policy_http_info(request) return self._call_api(**http_info) - def create_routing_flow_control_policy_async_invoker(self, request): - http_info = self._create_routing_flow_control_policy_http_info(request) + def create_device_policy_async_invoker(self, request): + http_info = self._create_device_policy_http_info(request) return AsyncInvoker(self, http_info) - def _create_routing_flow_control_policy_http_info(self, request): + def _create_device_policy_http_info(self, request): http_info = { "method": "POST", - "resource_path": "/v5/iot/{project_id}/routing-rule/flowcontrol-policy", + "resource_path": "/v5/iot/{project_id}/device-policies", "request_type": request.__class__.__name__, - "response_type": "CreateRoutingFlowControlPolicyResponse" + "response_type": "CreateDevicePolicyResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -4544,7 +5799,7 @@ def _create_routing_flow_control_policy_http_info(self, request): response_headers = [] header_params['Content-Type'] = http_utils.select_header_content_type( - ['application/json;charset=UTF-8']) + ['application/json']) auth_settings = [] @@ -4559,31 +5814,31 @@ def _create_routing_flow_control_policy_http_info(self, request): return http_info - def delete_routing_flow_control_policy_async(self, request): - """删除数据流转流控策略 + def delete_device_policy_async(self, request): + """删除设备策略 - 应用服务器可调用此接口在物联网平台删除指定数据流转流控策略。 + 应用服务器可调用此接口在物联网平台上删除指定策略,注意:删除策略同时会解绑该策略下所有绑定对象。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for DeleteRoutingFlowControlPolicy - :type request: :class:`huaweicloudsdkiotda.v5.DeleteRoutingFlowControlPolicyRequest` - :rtype: :class:`huaweicloudsdkiotda.v5.DeleteRoutingFlowControlPolicyResponse` + :param request: Request instance for DeleteDevicePolicy + :type request: :class:`huaweicloudsdkiotda.v5.DeleteDevicePolicyRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.DeleteDevicePolicyResponse` """ - http_info = self._delete_routing_flow_control_policy_http_info(request) + http_info = self._delete_device_policy_http_info(request) return self._call_api(**http_info) - def delete_routing_flow_control_policy_async_invoker(self, request): - http_info = self._delete_routing_flow_control_policy_http_info(request) + def delete_device_policy_async_invoker(self, request): + http_info = self._delete_device_policy_http_info(request) return AsyncInvoker(self, http_info) - def _delete_routing_flow_control_policy_http_info(self, request): + def _delete_device_policy_http_info(self, request): http_info = { "method": "DELETE", - "resource_path": "/v5/iot/{project_id}/routing-rule/flowcontrol-policy/{policy_id}", + "resource_path": "/v5/iot/{project_id}/device-policies/{policy_id}", "request_type": request.__class__.__name__, - "response_type": "DeleteRoutingFlowControlPolicyResponse" + "response_type": "DeleteDevicePolicyResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -4626,31 +5881,31 @@ def _delete_routing_flow_control_policy_http_info(self, request): return http_info - def list_routing_flow_control_policy_async(self, request): - """查询数据流转流控策略列表 + def list_device_policies_async(self, request): + """查询设备策略列表 - 应用服务器可调用此接口查询在物联网平台设置的数据流转流控策略列表。 + 应用服务器可调用此接口在物联网平台查询策略列表。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListRoutingFlowControlPolicy - :type request: :class:`huaweicloudsdkiotda.v5.ListRoutingFlowControlPolicyRequest` - :rtype: :class:`huaweicloudsdkiotda.v5.ListRoutingFlowControlPolicyResponse` + :param request: Request instance for ListDevicePolicies + :type request: :class:`huaweicloudsdkiotda.v5.ListDevicePoliciesRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.ListDevicePoliciesResponse` """ - http_info = self._list_routing_flow_control_policy_http_info(request) + http_info = self._list_device_policies_http_info(request) return self._call_api(**http_info) - def list_routing_flow_control_policy_async_invoker(self, request): - http_info = self._list_routing_flow_control_policy_http_info(request) + def list_device_policies_async_invoker(self, request): + http_info = self._list_device_policies_http_info(request) return AsyncInvoker(self, http_info) - def _list_routing_flow_control_policy_http_info(self, request): + def _list_device_policies_http_info(self, request): http_info = { "method": "GET", - "resource_path": "/v5/iot/{project_id}/routing-rule/flowcontrol-policy", + "resource_path": "/v5/iot/{project_id}/device-policies", "request_type": request.__class__.__name__, - "response_type": "ListRoutingFlowControlPolicyResponse" + "response_type": "ListDevicePoliciesResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -4662,10 +5917,8 @@ def _list_routing_flow_control_policy_http_info(self, request): path_params = {} query_params = [] - if 'scope' in local_var_params: - query_params.append(('scope', local_var_params['scope'])) - if 'scope_value' in local_var_params: - query_params.append(('scope_value', local_var_params['scope_value'])) + if 'app_id' in local_var_params: + query_params.append(('app_id', local_var_params['app_id'])) if 'policy_name' in local_var_params: query_params.append(('policy_name', local_var_params['policy_name'])) if 'limit' in local_var_params: @@ -4703,31 +5956,31 @@ def _list_routing_flow_control_policy_http_info(self, request): return http_info - def show_routing_flow_control_policy_async(self, request): - """查询数据流转流控策略 + def show_device_policy_async(self, request): + """查询设备策略详情 - 应用服务器可调用此接口在物联网平台查询指定数据流转流控策略。 + 应用服务器可调用此接口在物联网平台查询指定策略ID的详细信息。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowRoutingFlowControlPolicy - :type request: :class:`huaweicloudsdkiotda.v5.ShowRoutingFlowControlPolicyRequest` - :rtype: :class:`huaweicloudsdkiotda.v5.ShowRoutingFlowControlPolicyResponse` + :param request: Request instance for ShowDevicePolicy + :type request: :class:`huaweicloudsdkiotda.v5.ShowDevicePolicyRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.ShowDevicePolicyResponse` """ - http_info = self._show_routing_flow_control_policy_http_info(request) + http_info = self._show_device_policy_http_info(request) return self._call_api(**http_info) - def show_routing_flow_control_policy_async_invoker(self, request): - http_info = self._show_routing_flow_control_policy_http_info(request) + def show_device_policy_async_invoker(self, request): + http_info = self._show_device_policy_http_info(request) return AsyncInvoker(self, http_info) - def _show_routing_flow_control_policy_http_info(self, request): + def _show_device_policy_http_info(self, request): http_info = { "method": "GET", - "resource_path": "/v5/iot/{project_id}/routing-rule/flowcontrol-policy/{policy_id}", + "resource_path": "/v5/iot/{project_id}/device-policies/{policy_id}", "request_type": request.__class__.__name__, - "response_type": "ShowRoutingFlowControlPolicyResponse" + "response_type": "ShowDevicePolicyResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -4770,31 +6023,31 @@ def _show_routing_flow_control_policy_http_info(self, request): return http_info - def update_routing_flow_control_policy_async(self, request): - """修改数据流转流控策略 + def show_targets_in_device_policy_async(self, request): + """查询设备策略绑定的目标列表 - 应用服务器可调用此接口在物联网平台修改指定数据流转流控策略。 + 应用服务器可调用此接口在物联网平台上查询指定策略ID下绑定的目标列表。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for UpdateRoutingFlowControlPolicy - :type request: :class:`huaweicloudsdkiotda.v5.UpdateRoutingFlowControlPolicyRequest` - :rtype: :class:`huaweicloudsdkiotda.v5.UpdateRoutingFlowControlPolicyResponse` + :param request: Request instance for ShowTargetsInDevicePolicy + :type request: :class:`huaweicloudsdkiotda.v5.ShowTargetsInDevicePolicyRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.ShowTargetsInDevicePolicyResponse` """ - http_info = self._update_routing_flow_control_policy_http_info(request) + http_info = self._show_targets_in_device_policy_http_info(request) return self._call_api(**http_info) - def update_routing_flow_control_policy_async_invoker(self, request): - http_info = self._update_routing_flow_control_policy_http_info(request) + def show_targets_in_device_policy_async_invoker(self, request): + http_info = self._show_targets_in_device_policy_http_info(request) return AsyncInvoker(self, http_info) - def _update_routing_flow_control_policy_http_info(self, request): + def _show_targets_in_device_policy_http_info(self, request): http_info = { - "method": "PUT", - "resource_path": "/v5/iot/{project_id}/routing-rule/flowcontrol-policy/{policy_id}", + "method": "POST", + "resource_path": "/v5/iot/{project_id}/device-policies/{policy_id}/list-targets", "request_type": request.__class__.__name__, - "response_type": "UpdateRoutingFlowControlPolicyResponse" + "response_type": "ShowTargetsInDevicePolicyResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -4824,7 +6077,7 @@ def _update_routing_flow_control_policy_http_info(self, request): response_headers = [] header_params['Content-Type'] = http_utils.select_header_content_type( - ['application/json;charset=UTF-8']) + ['application/json']) auth_settings = [] @@ -4839,34 +6092,31 @@ def _update_routing_flow_control_policy_http_info(self, request): return http_info - def create_message_async(self, request): - """下发设备消息 + def unbind_device_policy_async(self, request): + """解绑设备策略 - 物联网平台可向设备下发消息,应用服务器可调用此接口向指定设备下发消息,以实现对设备的控制。应用将消息下发给平台后,平台返回应用响应结果,平台再将消息发送给设备。平台返回应用响应结果不一定是设备接收结果,建议用户应用通过订阅[[设备消息状态变更通知](https://support.huaweicloud.com/api-iothub/iot_06_v5_01203.html)](tag:hws)[[设备消息状态变更通知](https://support.huaweicloud.com/intl/zh-cn/api-iothub/iot_06_v5_01203.html)](tag:hws_hk),订阅后平台会将设备接收结果推送给订阅的应用。 - 注意: - - 此接口适用于MQTT设备消息下发,暂不支持其他协议接入的设备消息下发。 - - 此接口仅支持单个设备消息下发,如需多个设备消息下发,请参见 [[创建批量任务](https://support.huaweicloud.com/api-iothub/iot_06_v5_0045.html)](tag:hws)[[创建批量任务](https://support.huaweicloud.com/intl/zh-cn/api-iothub/iot_06_v5_0045.html)](tag:hws_hk)。 + 应用服务器可调用此接口在物联网平台上解除指定策略下绑定的目标对象。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for CreateMessage - :type request: :class:`huaweicloudsdkiotda.v5.CreateMessageRequest` - :rtype: :class:`huaweicloudsdkiotda.v5.CreateMessageResponse` + :param request: Request instance for UnbindDevicePolicy + :type request: :class:`huaweicloudsdkiotda.v5.UnbindDevicePolicyRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.UnbindDevicePolicyResponse` """ - http_info = self._create_message_http_info(request) + http_info = self._unbind_device_policy_http_info(request) return self._call_api(**http_info) - def create_message_async_invoker(self, request): - http_info = self._create_message_http_info(request) + def unbind_device_policy_async_invoker(self, request): + http_info = self._unbind_device_policy_http_info(request) return AsyncInvoker(self, http_info) - def _create_message_http_info(self, request): + def _unbind_device_policy_http_info(self, request): http_info = { "method": "POST", - "resource_path": "/v5/iot/{project_id}/devices/{device_id}/messages", + "resource_path": "/v5/iot/{project_id}/device-policies/{policy_id}/unbind", "request_type": request.__class__.__name__, - "response_type": "CreateMessageResponse" + "response_type": "UnbindDevicePolicyResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -4876,8 +6126,8 @@ def _create_message_http_info(self, request): collection_formats = {} path_params = {} - if 'device_id' in local_var_params: - path_params['device_id'] = local_var_params['device_id'] + if 'policy_id' in local_var_params: + path_params['policy_id'] = local_var_params['policy_id'] query_params = [] @@ -4911,31 +6161,31 @@ def _create_message_http_info(self, request): return http_info - def list_device_messages_async(self, request): - """查询设备消息 + def update_device_policy_async(self, request): + """更新设备策略信息 - 应用服务器可调用此接口查询平台下发给设备的消息,平台为每个设备默认最多保存20条消息,超过20条后, 后续的消息会替换下发最早的消息。 + 应用服务器可调用此接口在物联网平台更新策略。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListDeviceMessages - :type request: :class:`huaweicloudsdkiotda.v5.ListDeviceMessagesRequest` - :rtype: :class:`huaweicloudsdkiotda.v5.ListDeviceMessagesResponse` + :param request: Request instance for UpdateDevicePolicy + :type request: :class:`huaweicloudsdkiotda.v5.UpdateDevicePolicyRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.UpdateDevicePolicyResponse` """ - http_info = self._list_device_messages_http_info(request) + http_info = self._update_device_policy_http_info(request) return self._call_api(**http_info) - def list_device_messages_async_invoker(self, request): - http_info = self._list_device_messages_http_info(request) + def update_device_policy_async_invoker(self, request): + http_info = self._update_device_policy_http_info(request) return AsyncInvoker(self, http_info) - def _list_device_messages_http_info(self, request): + def _update_device_policy_http_info(self, request): http_info = { - "method": "GET", - "resource_path": "/v5/iot/{project_id}/devices/{device_id}/messages", + "method": "PUT", + "resource_path": "/v5/iot/{project_id}/device-policies/{policy_id}", "request_type": request.__class__.__name__, - "response_type": "ListDeviceMessagesResponse" + "response_type": "UpdateDevicePolicyResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -4945,8 +6195,8 @@ def _list_device_messages_http_info(self, request): collection_formats = {} path_params = {} - if 'device_id' in local_var_params: - path_params['device_id'] = local_var_params['device_id'] + if 'policy_id' in local_var_params: + path_params['policy_id'] = local_var_params['policy_id'] query_params = [] @@ -4957,6 +6207,8 @@ def _list_device_messages_http_info(self, request): form_params = {} body = None + if 'body' in local_var_params: + body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -4978,31 +6230,31 @@ def _list_device_messages_http_info(self, request): return http_info - def show_device_message_async(self, request): - """查询指定消息id的消息 + def create_product_async(self, request): + """创建产品 - 应用服务器可调用此接口查询平台下发给设备的指定消息id的消息。 + 应用服务器可调用此接口创建产品。此接口仅创建了产品,没有创建和安装插件,如果需要对数据进行编解码,还需要在平台开发和安装插件。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowDeviceMessage - :type request: :class:`huaweicloudsdkiotda.v5.ShowDeviceMessageRequest` - :rtype: :class:`huaweicloudsdkiotda.v5.ShowDeviceMessageResponse` + :param request: Request instance for CreateProduct + :type request: :class:`huaweicloudsdkiotda.v5.CreateProductRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.CreateProductResponse` """ - http_info = self._show_device_message_http_info(request) + http_info = self._create_product_http_info(request) return self._call_api(**http_info) - def show_device_message_async_invoker(self, request): - http_info = self._show_device_message_http_info(request) + def create_product_async_invoker(self, request): + http_info = self._create_product_http_info(request) return AsyncInvoker(self, http_info) - def _show_device_message_http_info(self, request): + def _create_product_http_info(self, request): http_info = { - "method": "GET", - "resource_path": "/v5/iot/{project_id}/devices/{device_id}/messages/{message_id}", + "method": "POST", + "resource_path": "/v5/iot/{project_id}/products", "request_type": request.__class__.__name__, - "response_type": "ShowDeviceMessageResponse" + "response_type": "CreateProductResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -5012,10 +6264,6 @@ def _show_device_message_http_info(self, request): collection_formats = {} path_params = {} - if 'device_id' in local_var_params: - path_params['device_id'] = local_var_params['device_id'] - if 'message_id' in local_var_params: - path_params['message_id'] = local_var_params['message_id'] query_params = [] @@ -5026,13 +6274,15 @@ def _show_device_message_http_info(self, request): form_params = {} body = None + if 'body' in local_var_params: + body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() response_headers = [] header_params['Content-Type'] = http_utils.select_header_content_type( - ['application/json']) + ['application/json;charset=UTF-8']) auth_settings = [] @@ -5047,32 +6297,31 @@ def _show_device_message_http_info(self, request): return http_info - def create_ota_package_async(self, request): - """创建OTA升级包 + def delete_product_async(self, request): + """删除产品 - 用户可调用此接口创建升级包关联OBS对象 - 使用前提:使用该API需要您授权设备接入服务(IoTDA)的实例访问对象存储服务(OBS)以及 密钥管理服务(KMS Administrator)的权限。在“[[统一身份认证服务(IAM)](https://console.huaweicloud.com/iam)](tag:hws)[[统一身份认证服务(IAM)](https://console-intl.huaweicloud.com/iam)](tag:hws_hk) - 委托”中将委托名称为iotda_admin_trust的委托授权KMS Administrator和OBS OperateAccess + 应用服务器可调用此接口删除已导入物联网平台的指定产品模型。此接口仅删除了产品,未删除关联的插件,在产品下存在设备时,该产品不允许删除。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for CreateOtaPackage - :type request: :class:`huaweicloudsdkiotda.v5.CreateOtaPackageRequest` - :rtype: :class:`huaweicloudsdkiotda.v5.CreateOtaPackageResponse` + :param request: Request instance for DeleteProduct + :type request: :class:`huaweicloudsdkiotda.v5.DeleteProductRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.DeleteProductResponse` """ - http_info = self._create_ota_package_http_info(request) + http_info = self._delete_product_http_info(request) return self._call_api(**http_info) - def create_ota_package_async_invoker(self, request): - http_info = self._create_ota_package_http_info(request) + def delete_product_async_invoker(self, request): + http_info = self._delete_product_http_info(request) return AsyncInvoker(self, http_info) - def _create_ota_package_http_info(self, request): + def _delete_product_http_info(self, request): http_info = { - "method": "POST", - "resource_path": "/v5/iot/{project_id}/ota-upgrades/packages", + "method": "DELETE", + "resource_path": "/v5/iot/{project_id}/products/{product_id}", "request_type": request.__class__.__name__, - "response_type": "CreateOtaPackageResponse" + "response_type": "DeleteProductResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -5082,8 +6331,12 @@ def _create_ota_package_http_info(self, request): collection_formats = {} path_params = {} + if 'product_id' in local_var_params: + path_params['product_id'] = local_var_params['product_id'] query_params = [] + if 'app_id' in local_var_params: + query_params.append(('app_id', local_var_params['app_id'])) header_params = {} if 'instance_id' in local_var_params: @@ -5092,8 +6345,6 @@ def _create_ota_package_http_info(self, request): form_params = {} body = None - if 'body' in local_var_params: - body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -5115,32 +6366,31 @@ def _create_ota_package_http_info(self, request): return http_info - def delete_ota_package_async(self, request): - """删除OTA升级包 + def list_products_async(self, request): + """查询产品列表 - 用户可调用此接口删除关联OBS对象的升级包信息,不会删除OBS上对象 - 使用前提:使用该API需要您授权设备接入服务(IoTDA)的实例访问对象存储服务(OBS)以及 密钥管理服务(KMS Administrator)的权限。在“[[统一身份认证服务(IAM)](https://console.huaweicloud.com/iam)](tag:hws)[[统一身份认证服务(IAM)](https://console-intl.huaweicloud.com/iam)](tag:hws_hk) - 委托”中将委托名称为iotda_admin_trust的委托授权KMS Administrator和OBS OperateAccess + 应用服务器可调用此接口查询已导入物联网平台的产品模型信息列表,了解产品模型的概要信息。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for DeleteOtaPackage - :type request: :class:`huaweicloudsdkiotda.v5.DeleteOtaPackageRequest` - :rtype: :class:`huaweicloudsdkiotda.v5.DeleteOtaPackageResponse` + :param request: Request instance for ListProducts + :type request: :class:`huaweicloudsdkiotda.v5.ListProductsRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.ListProductsResponse` """ - http_info = self._delete_ota_package_http_info(request) + http_info = self._list_products_http_info(request) return self._call_api(**http_info) - def delete_ota_package_async_invoker(self, request): - http_info = self._delete_ota_package_http_info(request) + def list_products_async_invoker(self, request): + http_info = self._list_products_http_info(request) return AsyncInvoker(self, http_info) - def _delete_ota_package_http_info(self, request): + def _list_products_http_info(self, request): http_info = { - "method": "DELETE", - "resource_path": "/v5/iot/{project_id}/ota-upgrades/packages/{package_id}", + "method": "GET", + "resource_path": "/v5/iot/{project_id}/products", "request_type": request.__class__.__name__, - "response_type": "DeleteOtaPackageResponse" + "response_type": "ListProductsResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -5150,10 +6400,18 @@ def _delete_ota_package_http_info(self, request): collection_formats = {} path_params = {} - if 'package_id' in local_var_params: - path_params['package_id'] = local_var_params['package_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'])) + if 'app_id' in local_var_params: + query_params.append(('app_id', local_var_params['app_id'])) + if 'product_name' in local_var_params: + query_params.append(('product_name', local_var_params['product_name'])) + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) header_params = {} if 'instance_id' in local_var_params: @@ -5183,32 +6441,31 @@ def _delete_ota_package_http_info(self, request): return http_info - def list_ota_package_info_async(self, request): - """查询OTA升级包列表 + def show_product_async(self, request): + """查询产品 - 用户可调用此接口查询关联OBS对象的升级包列表 - 使用前提:使用该API需要您授权设备接入服务(IoTDA)的实例访问对象存储服务(OBS)以及 密钥管理服务(KMS Administrator)的权限。在“[[统一身份认证服务(IAM)](https://console.huaweicloud.com/iam)](tag:hws)[[统一身份认证服务(IAM)](https://console-intl.huaweicloud.com/iam)](tag:hws_hk) - 委托”中将委托名称为iotda_admin_trust的委托授权KMS Administrator和OBS OperateAccess + 应用服务器可调用此接口查询已导入物联网平台的指定产品模型详细信息,包括产品模型的服务、属性、命令等。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListOtaPackageInfo - :type request: :class:`huaweicloudsdkiotda.v5.ListOtaPackageInfoRequest` - :rtype: :class:`huaweicloudsdkiotda.v5.ListOtaPackageInfoResponse` + :param request: Request instance for ShowProduct + :type request: :class:`huaweicloudsdkiotda.v5.ShowProductRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.ShowProductResponse` """ - http_info = self._list_ota_package_info_http_info(request) + http_info = self._show_product_http_info(request) return self._call_api(**http_info) - def list_ota_package_info_async_invoker(self, request): - http_info = self._list_ota_package_info_http_info(request) + def show_product_async_invoker(self, request): + http_info = self._show_product_http_info(request) return AsyncInvoker(self, http_info) - def _list_ota_package_info_http_info(self, request): + def _show_product_http_info(self, request): http_info = { "method": "GET", - "resource_path": "/v5/iot/{project_id}/ota-upgrades/packages", + "resource_path": "/v5/iot/{project_id}/products/{product_id}", "request_type": request.__class__.__name__, - "response_type": "ListOtaPackageInfoResponse" + "response_type": "ShowProductResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -5218,22 +6475,12 @@ def _list_ota_package_info_http_info(self, request): collection_formats = {} path_params = {} + if 'product_id' in local_var_params: + path_params['product_id'] = local_var_params['product_id'] query_params = [] if 'app_id' in local_var_params: query_params.append(('app_id', local_var_params['app_id'])) - if 'package_type' in local_var_params: - query_params.append(('package_type', local_var_params['package_type'])) - if 'product_id' in local_var_params: - query_params.append(('product_id', local_var_params['product_id'])) - if 'version' in local_var_params: - query_params.append(('version', local_var_params['version'])) - 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 'offset' in local_var_params: - query_params.append(('offset', local_var_params['offset'])) header_params = {} if 'instance_id' in local_var_params: @@ -5263,32 +6510,31 @@ def _list_ota_package_info_http_info(self, request): return http_info - def show_ota_package_async(self, request): - """获取OTA升级包详情 + def update_product_async(self, request): + """修改产品 - 用户可调用此接口查询关联OBS对象的升级包详情 - 使用前提:使用该API需要您授权设备接入服务(IoTDA)的实例访问对象存储服务(OBS)以及 密钥管理服务(KMS Administrator)的权限。在“[[统一身份认证服务(IAM)](https://console.huaweicloud.com/iam)](tag:hws)[[统一身份认证服务(IAM)](https://console-intl.huaweicloud.com/iam)](tag:hws_hk) - 委托”中将委托名称为iotda_admin_trust的委托授权KMS Administrator和OBS OperateAccess + 应用服务器可调用此接口修改已导入物联网平台的指定产品模型,包括产品模型的服务、属性、命令等。此接口仅修改了产品,未修改和安装插件,如果修改了产品中的service定义,且在平台中有对应的插件,请修改并重新安装插件。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowOtaPackage - :type request: :class:`huaweicloudsdkiotda.v5.ShowOtaPackageRequest` - :rtype: :class:`huaweicloudsdkiotda.v5.ShowOtaPackageResponse` + :param request: Request instance for UpdateProduct + :type request: :class:`huaweicloudsdkiotda.v5.UpdateProductRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.UpdateProductResponse` """ - http_info = self._show_ota_package_http_info(request) + http_info = self._update_product_http_info(request) return self._call_api(**http_info) - def show_ota_package_async_invoker(self, request): - http_info = self._show_ota_package_http_info(request) + def update_product_async_invoker(self, request): + http_info = self._update_product_http_info(request) return AsyncInvoker(self, http_info) - def _show_ota_package_http_info(self, request): + def _update_product_http_info(self, request): http_info = { - "method": "GET", - "resource_path": "/v5/iot/{project_id}/ota-upgrades/packages/{package_id}", + "method": "PUT", + "resource_path": "/v5/iot/{project_id}/products/{product_id}", "request_type": request.__class__.__name__, - "response_type": "ShowOtaPackageResponse" + "response_type": "UpdateProductResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -5298,8 +6544,8 @@ def _show_ota_package_http_info(self, request): collection_formats = {} path_params = {} - if 'package_id' in local_var_params: - path_params['package_id'] = local_var_params['package_id'] + if 'product_id' in local_var_params: + path_params['product_id'] = local_var_params['product_id'] query_params = [] @@ -5310,13 +6556,15 @@ def _show_ota_package_http_info(self, request): form_params = {} body = None + if 'body' in local_var_params: + body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() response_headers = [] header_params['Content-Type'] = http_utils.select_header_content_type( - ['application/json']) + ['application/json;charset=UTF-8']) auth_settings = [] @@ -5331,31 +6579,32 @@ def _show_ota_package_http_info(self, request): return http_info - def create_product_async(self, request): - """创建产品 + def list_properties_async(self, request): + """查询设备属性 - 应用服务器可调用此接口创建产品。此接口仅创建了产品,没有创建和安装插件,如果需要对数据进行编解码,还需要在平台开发和安装插件。 + 设备的产品模型中定义了物联网平台可向设备下发的属性,应用服务器可调用此接口向设备发送指令用以查询设备的实时属性, 并由设备将属性查询的结果同步返回给应用服务器。 + 注意:此接口适用于MQTT设备,暂不支持NB-IoT设备。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for CreateProduct - :type request: :class:`huaweicloudsdkiotda.v5.CreateProductRequest` - :rtype: :class:`huaweicloudsdkiotda.v5.CreateProductResponse` + :param request: Request instance for ListProperties + :type request: :class:`huaweicloudsdkiotda.v5.ListPropertiesRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.ListPropertiesResponse` """ - http_info = self._create_product_http_info(request) + http_info = self._list_properties_http_info(request) return self._call_api(**http_info) - def create_product_async_invoker(self, request): - http_info = self._create_product_http_info(request) + def list_properties_async_invoker(self, request): + http_info = self._list_properties_http_info(request) return AsyncInvoker(self, http_info) - def _create_product_http_info(self, request): + def _list_properties_http_info(self, request): http_info = { - "method": "POST", - "resource_path": "/v5/iot/{project_id}/products", + "method": "GET", + "resource_path": "/v5/iot/{project_id}/devices/{device_id}/properties", "request_type": request.__class__.__name__, - "response_type": "CreateProductResponse" + "response_type": "ListPropertiesResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -5365,8 +6614,12 @@ def _create_product_http_info(self, request): collection_formats = {} path_params = {} + if 'device_id' in local_var_params: + path_params['device_id'] = local_var_params['device_id'] query_params = [] + if 'service_id' in local_var_params: + query_params.append(('service_id', local_var_params['service_id'])) header_params = {} if 'instance_id' in local_var_params: @@ -5375,15 +6628,13 @@ def _create_product_http_info(self, request): form_params = {} body = None - if 'body' in local_var_params: - body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() response_headers = [] header_params['Content-Type'] = http_utils.select_header_content_type( - ['application/json;charset=UTF-8']) + ['application/json']) auth_settings = [] @@ -5398,31 +6649,32 @@ def _create_product_http_info(self, request): return http_info - def delete_product_async(self, request): - """删除产品 + def update_properties_async(self, request): + """修改设备属性 - 应用服务器可调用此接口删除已导入物联网平台的指定产品模型。此接口仅删除了产品,未删除关联的插件,在产品下存在设备时,该产品不允许删除。 + 设备的产品模型中定义了物联网平台可向设备下发的属性,应用服务器可调用此接口向指定设备下发属性。平台负责将属性以同步方式发送给设备,并将设备执行属性结果同步返回。 + 注意:此接口适用于MQTT设备,暂不支持NB-IoT设备。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for DeleteProduct - :type request: :class:`huaweicloudsdkiotda.v5.DeleteProductRequest` - :rtype: :class:`huaweicloudsdkiotda.v5.DeleteProductResponse` + :param request: Request instance for UpdateProperties + :type request: :class:`huaweicloudsdkiotda.v5.UpdatePropertiesRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.UpdatePropertiesResponse` """ - http_info = self._delete_product_http_info(request) + http_info = self._update_properties_http_info(request) return self._call_api(**http_info) - def delete_product_async_invoker(self, request): - http_info = self._delete_product_http_info(request) + def update_properties_async_invoker(self, request): + http_info = self._update_properties_http_info(request) return AsyncInvoker(self, http_info) - def _delete_product_http_info(self, request): + def _update_properties_http_info(self, request): http_info = { - "method": "DELETE", - "resource_path": "/v5/iot/{project_id}/products/{product_id}", + "method": "PUT", + "resource_path": "/v5/iot/{project_id}/devices/{device_id}/properties", "request_type": request.__class__.__name__, - "response_type": "DeleteProductResponse" + "response_type": "UpdatePropertiesResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -5432,12 +6684,10 @@ def _delete_product_http_info(self, request): collection_formats = {} path_params = {} - if 'product_id' in local_var_params: - path_params['product_id'] = local_var_params['product_id'] + if 'device_id' in local_var_params: + path_params['device_id'] = local_var_params['device_id'] query_params = [] - if 'app_id' in local_var_params: - query_params.append(('app_id', local_var_params['app_id'])) header_params = {} if 'instance_id' in local_var_params: @@ -5446,6 +6696,8 @@ def _delete_product_http_info(self, request): form_params = {} body = None + if 'body' in local_var_params: + body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -5467,31 +6719,34 @@ def _delete_product_http_info(self, request): return http_info - def list_products_async(self, request): - """查询产品列表 + def create_provisioning_template_async(self, request): + """创建预调配模板 - 应用服务器可调用此接口查询已导入物联网平台的产品模型信息列表,了解产品模型的概要信息。 + 应用服务器可调用此接口在物联网平台创建一个预调配模板。用户的设备未在平台注册时,可以通过预调配模板在设备首次接入物联网平台时将设备信息自动注册到物联网平台。 + - 该预调配模板至少需要绑定到一个设备CA证书下才能生效。 + - 一个实例最多可有10个预调配模板。 + - 仅标准版实例、企业版实例支持该接口调用,基础版不支持。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListProducts - :type request: :class:`huaweicloudsdkiotda.v5.ListProductsRequest` - :rtype: :class:`huaweicloudsdkiotda.v5.ListProductsResponse` + :param request: Request instance for CreateProvisioningTemplate + :type request: :class:`huaweicloudsdkiotda.v5.CreateProvisioningTemplateRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.CreateProvisioningTemplateResponse` """ - http_info = self._list_products_http_info(request) + http_info = self._create_provisioning_template_http_info(request) return self._call_api(**http_info) - def list_products_async_invoker(self, request): - http_info = self._list_products_http_info(request) + def create_provisioning_template_async_invoker(self, request): + http_info = self._create_provisioning_template_http_info(request) return AsyncInvoker(self, http_info) - def _list_products_http_info(self, request): + def _create_provisioning_template_http_info(self, request): http_info = { - "method": "GET", - "resource_path": "/v5/iot/{project_id}/products", + "method": "POST", + "resource_path": "/v5/iot/{project_id}/provisioning-templates", "request_type": request.__class__.__name__, - "response_type": "ListProductsResponse" + "response_type": "CreateProvisioningTemplateResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -5503,16 +6758,6 @@ def _list_products_http_info(self, request): 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 'app_id' in local_var_params: - query_params.append(('app_id', local_var_params['app_id'])) - if 'product_name' in local_var_params: - query_params.append(('product_name', local_var_params['product_name'])) - if 'offset' in local_var_params: - query_params.append(('offset', local_var_params['offset'])) header_params = {} if 'instance_id' in local_var_params: @@ -5521,6 +6766,8 @@ def _list_products_http_info(self, request): form_params = {} body = None + if 'body' in local_var_params: + body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -5542,31 +6789,31 @@ def _list_products_http_info(self, request): return http_info - def show_product_async(self, request): - """查询产品 + def delete_provisioning_template_async(self, request): + """删除预调配模板 - 应用服务器可调用此接口查询已导入物联网平台的指定产品模型详细信息,包括产品模型的服务、属性、命令等。 + 应用服务器可调用此接口在物联网平台上删除指定预调配模板。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowProduct - :type request: :class:`huaweicloudsdkiotda.v5.ShowProductRequest` - :rtype: :class:`huaweicloudsdkiotda.v5.ShowProductResponse` + :param request: Request instance for DeleteProvisioningTemplate + :type request: :class:`huaweicloudsdkiotda.v5.DeleteProvisioningTemplateRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.DeleteProvisioningTemplateResponse` """ - http_info = self._show_product_http_info(request) + http_info = self._delete_provisioning_template_http_info(request) return self._call_api(**http_info) - def show_product_async_invoker(self, request): - http_info = self._show_product_http_info(request) + def delete_provisioning_template_async_invoker(self, request): + http_info = self._delete_provisioning_template_http_info(request) return AsyncInvoker(self, http_info) - def _show_product_http_info(self, request): + def _delete_provisioning_template_http_info(self, request): http_info = { - "method": "GET", - "resource_path": "/v5/iot/{project_id}/products/{product_id}", + "method": "DELETE", + "resource_path": "/v5/iot/{project_id}/provisioning-templates/{template_id}", "request_type": request.__class__.__name__, - "response_type": "ShowProductResponse" + "response_type": "DeleteProvisioningTemplateResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -5576,12 +6823,10 @@ def _show_product_http_info(self, request): collection_formats = {} path_params = {} - if 'product_id' in local_var_params: - path_params['product_id'] = local_var_params['product_id'] + if 'template_id' in local_var_params: + path_params['template_id'] = local_var_params['template_id'] query_params = [] - if 'app_id' in local_var_params: - query_params.append(('app_id', local_var_params['app_id'])) header_params = {} if 'instance_id' in local_var_params: @@ -5611,31 +6856,31 @@ def _show_product_http_info(self, request): return http_info - def update_product_async(self, request): - """修改产品 + def list_provisioning_templates_async(self, request): + """查询预调配模板列表 - 应用服务器可调用此接口修改已导入物联网平台的指定产品模型,包括产品模型的服务、属性、命令等。此接口仅修改了产品,未修改和安装插件,如果修改了产品中的service定义,且在平台中有对应的插件,请修改并重新安装插件。 + 应用服务器可调用此接口在物联网平台查询预调配模板列表。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for UpdateProduct - :type request: :class:`huaweicloudsdkiotda.v5.UpdateProductRequest` - :rtype: :class:`huaweicloudsdkiotda.v5.UpdateProductResponse` + :param request: Request instance for ListProvisioningTemplates + :type request: :class:`huaweicloudsdkiotda.v5.ListProvisioningTemplatesRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.ListProvisioningTemplatesResponse` """ - http_info = self._update_product_http_info(request) + http_info = self._list_provisioning_templates_http_info(request) return self._call_api(**http_info) - def update_product_async_invoker(self, request): - http_info = self._update_product_http_info(request) + def list_provisioning_templates_async_invoker(self, request): + http_info = self._list_provisioning_templates_http_info(request) return AsyncInvoker(self, http_info) - def _update_product_http_info(self, request): + def _list_provisioning_templates_http_info(self, request): http_info = { - "method": "PUT", - "resource_path": "/v5/iot/{project_id}/products/{product_id}", + "method": "GET", + "resource_path": "/v5/iot/{project_id}/provisioning-templates", "request_type": request.__class__.__name__, - "response_type": "UpdateProductResponse" + "response_type": "ListProvisioningTemplatesResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -5645,10 +6890,16 @@ def _update_product_http_info(self, request): collection_formats = {} path_params = {} - if 'product_id' in local_var_params: - path_params['product_id'] = local_var_params['product_id'] query_params = [] + if 'template_name' in local_var_params: + query_params.append(('template_name', local_var_params['template_name'])) + 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 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) header_params = {} if 'instance_id' in local_var_params: @@ -5657,15 +6908,13 @@ def _update_product_http_info(self, request): form_params = {} body = None - if 'body' in local_var_params: - body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() response_headers = [] header_params['Content-Type'] = http_utils.select_header_content_type( - ['application/json;charset=UTF-8']) + ['application/json']) auth_settings = [] @@ -5680,32 +6929,31 @@ def _update_product_http_info(self, request): return http_info - def list_properties_async(self, request): - """查询设备属性 + def show_provisioning_template_async(self, request): + """查询预调配模板详情 - 设备的产品模型中定义了物联网平台可向设备下发的属性,应用服务器可调用此接口向设备发送指令用以查询设备的实时属性, 并由设备将属性查询的结果同步返回给应用服务器。 - 注意:此接口适用于MQTT设备,暂不支持NB-IoT设备。 + 应用服务器可调用此接口在物联网平台查询指定预调配模板ID的详细信息。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListProperties - :type request: :class:`huaweicloudsdkiotda.v5.ListPropertiesRequest` - :rtype: :class:`huaweicloudsdkiotda.v5.ListPropertiesResponse` + :param request: Request instance for ShowProvisioningTemplate + :type request: :class:`huaweicloudsdkiotda.v5.ShowProvisioningTemplateRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.ShowProvisioningTemplateResponse` """ - http_info = self._list_properties_http_info(request) + http_info = self._show_provisioning_template_http_info(request) return self._call_api(**http_info) - def list_properties_async_invoker(self, request): - http_info = self._list_properties_http_info(request) + def show_provisioning_template_async_invoker(self, request): + http_info = self._show_provisioning_template_http_info(request) return AsyncInvoker(self, http_info) - def _list_properties_http_info(self, request): + def _show_provisioning_template_http_info(self, request): http_info = { "method": "GET", - "resource_path": "/v5/iot/{project_id}/devices/{device_id}/properties", + "resource_path": "/v5/iot/{project_id}/provisioning-templates/{template_id}", "request_type": request.__class__.__name__, - "response_type": "ListPropertiesResponse" + "response_type": "ShowProvisioningTemplateResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -5715,12 +6963,10 @@ def _list_properties_http_info(self, request): collection_formats = {} path_params = {} - if 'device_id' in local_var_params: - path_params['device_id'] = local_var_params['device_id'] + if 'template_id' in local_var_params: + path_params['template_id'] = local_var_params['template_id'] query_params = [] - if 'service_id' in local_var_params: - query_params.append(('service_id', local_var_params['service_id'])) header_params = {} if 'instance_id' in local_var_params: @@ -5750,32 +6996,31 @@ def _list_properties_http_info(self, request): return http_info - def update_properties_async(self, request): - """修改设备属性 + def update_provisioning_template_async(self, request): + """更新指定id的预调配模板信息 - 设备的产品模型中定义了物联网平台可向设备下发的属性,应用服务器可调用此接口向指定设备下发属性。平台负责将属性以同步方式发送给设备,并将设备执行属性结果同步返回。 - 注意:此接口适用于MQTT设备,暂不支持NB-IoT设备。 + 应用服务器可调用此接口在物联网平台更新指定id的预调配模板。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for UpdateProperties - :type request: :class:`huaweicloudsdkiotda.v5.UpdatePropertiesRequest` - :rtype: :class:`huaweicloudsdkiotda.v5.UpdatePropertiesResponse` + :param request: Request instance for UpdateProvisioningTemplate + :type request: :class:`huaweicloudsdkiotda.v5.UpdateProvisioningTemplateRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.UpdateProvisioningTemplateResponse` """ - http_info = self._update_properties_http_info(request) + http_info = self._update_provisioning_template_http_info(request) return self._call_api(**http_info) - def update_properties_async_invoker(self, request): - http_info = self._update_properties_http_info(request) + def update_provisioning_template_async_invoker(self, request): + http_info = self._update_provisioning_template_http_info(request) return AsyncInvoker(self, http_info) - def _update_properties_http_info(self, request): + def _update_provisioning_template_http_info(self, request): http_info = { "method": "PUT", - "resource_path": "/v5/iot/{project_id}/devices/{device_id}/properties", + "resource_path": "/v5/iot/{project_id}/provisioning-templates/{template_id}", "request_type": request.__class__.__name__, - "response_type": "UpdatePropertiesResponse" + "response_type": "UpdateProvisioningTemplateResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -5785,8 +7030,8 @@ def _update_properties_http_info(self, request): collection_formats = {} path_params = {} - if 'device_id' in local_var_params: - path_params['device_id'] = local_var_params['device_id'] + if 'template_id' in local_var_params: + path_params['template_id'] = local_var_params['template_id'] query_params = [] diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/iotda_client.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/iotda_client.py index 2a6c50a42f..c9ae3fff90 100644 --- a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/iotda_client.py +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/iotda_client.py @@ -2611,31 +2611,33 @@ def _create_command_http_info(cls, request): return http_info - def add_device_group(self, request): - """添加设备组 + def create_device_authorizer(self, request): + """创建自定义鉴权 - 应用服务器可调用此接口新建设备组,一个华为云账号下最多可有1,000个设备组,包括父设备组和子设备组。设备组的最大层级关系不超过5层,即群组形成的关系树最大深度不超过5。 + 应用服务器可调用此接口在物联网平台创建一个自定义鉴权。自定义鉴权是指用户可以通过函数服务自定义实现鉴权逻辑,以对接入平台的设备进行身份认证。 + - 单个实例最大可配置10个自定义鉴权 + - 仅标准版实例、企业版实例支持该接口调用,基础版不支持。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for AddDeviceGroup - :type request: :class:`huaweicloudsdkiotda.v5.AddDeviceGroupRequest` - :rtype: :class:`huaweicloudsdkiotda.v5.AddDeviceGroupResponse` + :param request: Request instance for CreateDeviceAuthorizer + :type request: :class:`huaweicloudsdkiotda.v5.CreateDeviceAuthorizerRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.CreateDeviceAuthorizerResponse` """ - http_info = self._add_device_group_http_info(request) + http_info = self._create_device_authorizer_http_info(request) return self._call_api(**http_info) - def add_device_group_invoker(self, request): - http_info = self._add_device_group_http_info(request) + def create_device_authorizer_invoker(self, request): + http_info = self._create_device_authorizer_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _add_device_group_http_info(cls, request): + def _create_device_authorizer_http_info(cls, request): http_info = { "method": "POST", - "resource_path": "/v5/iot/{project_id}/device-group", + "resource_path": "/v5/iot/{project_id}/device-authorizers", "request_type": request.__class__.__name__, - "response_type": "AddDeviceGroupResponse" + "response_type": "CreateDeviceAuthorizerResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -2678,31 +2680,31 @@ def _add_device_group_http_info(cls, request): return http_info - def create_or_delete_device_in_group(self, request): - """管理设备组中的设备 + def delete_device_authorizer(self, request): + """删除自定义鉴权 - 应用服务器可调用此接口管理设备组中的设备。单个设备组内最多添加20,000个设备,一个设备最多可以被添加到10个设备组中。 + 应用服务器可调用此接口在物联网平台上删除指定自定义鉴权。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for CreateOrDeleteDeviceInGroup - :type request: :class:`huaweicloudsdkiotda.v5.CreateOrDeleteDeviceInGroupRequest` - :rtype: :class:`huaweicloudsdkiotda.v5.CreateOrDeleteDeviceInGroupResponse` + :param request: Request instance for DeleteDeviceAuthorizer + :type request: :class:`huaweicloudsdkiotda.v5.DeleteDeviceAuthorizerRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.DeleteDeviceAuthorizerResponse` """ - http_info = self._create_or_delete_device_in_group_http_info(request) + http_info = self._delete_device_authorizer_http_info(request) return self._call_api(**http_info) - def create_or_delete_device_in_group_invoker(self, request): - http_info = self._create_or_delete_device_in_group_http_info(request) + def delete_device_authorizer_invoker(self, request): + http_info = self._delete_device_authorizer_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _create_or_delete_device_in_group_http_info(cls, request): + def _delete_device_authorizer_http_info(cls, request): http_info = { - "method": "POST", - "resource_path": "/v5/iot/{project_id}/device-group/{group_id}/action", + "method": "DELETE", + "resource_path": "/v5/iot/{project_id}/device-authorizers/{authorizer_id}", "request_type": request.__class__.__name__, - "response_type": "CreateOrDeleteDeviceInGroupResponse" + "response_type": "DeleteDeviceAuthorizerResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -2712,14 +2714,10 @@ def _create_or_delete_device_in_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 'authorizer_id' in local_var_params: + path_params['authorizer_id'] = local_var_params['authorizer_id'] query_params = [] - if 'action_id' in local_var_params: - query_params.append(('action_id', local_var_params['action_id'])) - if 'device_id' in local_var_params: - query_params.append(('device_id', local_var_params['device_id'])) header_params = {} if 'instance_id' in local_var_params: @@ -2749,31 +2747,31 @@ def _create_or_delete_device_in_group_http_info(cls, request): return http_info - def delete_device_group(self, request): - """删除设备组 + def list_device_authorizers(self, request): + """查询自定义鉴权列表 - 应用服务器可调用此接口删除指定设备组,如果该设备组存在子设备组或者该设备组中存在设备,必须先删除子设备组并将设备从该设备组移除,才能删除该设备组。 + 应用服务器可调用此接口在物联网平台查询自定义鉴权列表。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for DeleteDeviceGroup - :type request: :class:`huaweicloudsdkiotda.v5.DeleteDeviceGroupRequest` - :rtype: :class:`huaweicloudsdkiotda.v5.DeleteDeviceGroupResponse` + :param request: Request instance for ListDeviceAuthorizers + :type request: :class:`huaweicloudsdkiotda.v5.ListDeviceAuthorizersRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.ListDeviceAuthorizersResponse` """ - http_info = self._delete_device_group_http_info(request) + http_info = self._list_device_authorizers_http_info(request) return self._call_api(**http_info) - def delete_device_group_invoker(self, request): - http_info = self._delete_device_group_http_info(request) + def list_device_authorizers_invoker(self, request): + http_info = self._list_device_authorizers_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _delete_device_group_http_info(cls, request): + def _list_device_authorizers_http_info(cls, request): http_info = { - "method": "DELETE", - "resource_path": "/v5/iot/{project_id}/device-group/{group_id}", + "method": "GET", + "resource_path": "/v5/iot/{project_id}/device-authorizers", "request_type": request.__class__.__name__, - "response_type": "DeleteDeviceGroupResponse" + "response_type": "ListDeviceAuthorizersResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -2783,10 +2781,16 @@ def _delete_device_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'] query_params = [] + if 'authorizer_name' in local_var_params: + query_params.append(('authorizer_name', local_var_params['authorizer_name'])) + 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 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) header_params = {} if 'instance_id' in local_var_params: @@ -2816,31 +2820,31 @@ def _delete_device_group_http_info(cls, request): return http_info - def list_device_groups(self, request): - """查询设备组列表 + def show_device_authorizer(self, request): + """查询自定义鉴权详情 - 应用服务器可调用此接口查询物联网平台中的设备组信息列表。 + 应用服务器可调用此接口在物联网平台查询指定自定义鉴权ID的详细信息。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListDeviceGroups - :type request: :class:`huaweicloudsdkiotda.v5.ListDeviceGroupsRequest` - :rtype: :class:`huaweicloudsdkiotda.v5.ListDeviceGroupsResponse` + :param request: Request instance for ShowDeviceAuthorizer + :type request: :class:`huaweicloudsdkiotda.v5.ShowDeviceAuthorizerRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.ShowDeviceAuthorizerResponse` """ - http_info = self._list_device_groups_http_info(request) + http_info = self._show_device_authorizer_http_info(request) return self._call_api(**http_info) - def list_device_groups_invoker(self, request): - http_info = self._list_device_groups_http_info(request) + def show_device_authorizer_invoker(self, request): + http_info = self._show_device_authorizer_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _list_device_groups_http_info(cls, request): + def _show_device_authorizer_http_info(cls, request): http_info = { "method": "GET", - "resource_path": "/v5/iot/{project_id}/device-group", + "resource_path": "/v5/iot/{project_id}/device-authorizers/{authorizer_id}", "request_type": request.__class__.__name__, - "response_type": "ListDeviceGroupsResponse" + "response_type": "ShowDeviceAuthorizerResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -2850,22 +2854,10 @@ def _list_device_groups_http_info(cls, request): collection_formats = {} path_params = {} + if 'authorizer_id' in local_var_params: + path_params['authorizer_id'] = local_var_params['authorizer_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'])) - if 'offset' in local_var_params: - query_params.append(('offset', local_var_params['offset'])) - if 'last_modified_time' in local_var_params: - query_params.append(('last_modified_time', local_var_params['last_modified_time'])) - if 'app_id' in local_var_params: - query_params.append(('app_id', local_var_params['app_id'])) - if 'group_type' in local_var_params: - query_params.append(('group_type', local_var_params['group_type'])) - if 'name' in local_var_params: - query_params.append(('name', local_var_params['name'])) header_params = {} if 'instance_id' in local_var_params: @@ -2895,31 +2887,31 @@ def _list_device_groups_http_info(cls, request): return http_info - def show_device_group(self, request): - """查询设备组 + def update_device_authorizer(self, request): + """更新指定id的自定义鉴权 - 应用服务器可调用此接口查询指定设备组详情。 + 应用服务器可调用此接口在物联网平台更新指定id的自定义鉴权。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowDeviceGroup - :type request: :class:`huaweicloudsdkiotda.v5.ShowDeviceGroupRequest` - :rtype: :class:`huaweicloudsdkiotda.v5.ShowDeviceGroupResponse` + :param request: Request instance for UpdateDeviceAuthorizer + :type request: :class:`huaweicloudsdkiotda.v5.UpdateDeviceAuthorizerRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.UpdateDeviceAuthorizerResponse` """ - http_info = self._show_device_group_http_info(request) + http_info = self._update_device_authorizer_http_info(request) return self._call_api(**http_info) - def show_device_group_invoker(self, request): - http_info = self._show_device_group_http_info(request) + def update_device_authorizer_invoker(self, request): + http_info = self._update_device_authorizer_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _show_device_group_http_info(cls, request): + def _update_device_authorizer_http_info(cls, request): http_info = { - "method": "GET", - "resource_path": "/v5/iot/{project_id}/device-group/{group_id}", + "method": "PUT", + "resource_path": "/v5/iot/{project_id}/device-authorizers/{authorizer_id}", "request_type": request.__class__.__name__, - "response_type": "ShowDeviceGroupResponse" + "response_type": "UpdateDeviceAuthorizerResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -2929,8 +2921,8 @@ def _show_device_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 'authorizer_id' in local_var_params: + path_params['authorizer_id'] = local_var_params['authorizer_id'] query_params = [] @@ -2941,6 +2933,8 @@ def _show_device_group_http_info(cls, request): form_params = {} body = None + if 'body' in local_var_params: + body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -2962,31 +2956,31 @@ def _show_device_group_http_info(cls, request): return http_info - def show_devices_in_group(self, request): - """查询设备组设备列表 + def add_device_group(self, request): + """添加设备组 - 应用服务器可调用此接口查询指定设备组下的设备列表。 + 应用服务器可调用此接口新建设备组,一个华为云账号下最多可有1,000个设备组,包括父设备组和子设备组。设备组的最大层级关系不超过5层,即群组形成的关系树最大深度不超过5。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowDevicesInGroup - :type request: :class:`huaweicloudsdkiotda.v5.ShowDevicesInGroupRequest` - :rtype: :class:`huaweicloudsdkiotda.v5.ShowDevicesInGroupResponse` + :param request: Request instance for AddDeviceGroup + :type request: :class:`huaweicloudsdkiotda.v5.AddDeviceGroupRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.AddDeviceGroupResponse` """ - http_info = self._show_devices_in_group_http_info(request) + http_info = self._add_device_group_http_info(request) return self._call_api(**http_info) - def show_devices_in_group_invoker(self, request): - http_info = self._show_devices_in_group_http_info(request) + def add_device_group_invoker(self, request): + http_info = self._add_device_group_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _show_devices_in_group_http_info(cls, request): + def _add_device_group_http_info(cls, request): http_info = { - "method": "GET", - "resource_path": "/v5/iot/{project_id}/device-group/{group_id}/devices", + "method": "POST", + "resource_path": "/v5/iot/{project_id}/device-group", "request_type": request.__class__.__name__, - "response_type": "ShowDevicesInGroupResponse" + "response_type": "AddDeviceGroupResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -2996,16 +2990,8 @@ def _show_devices_in_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'] 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 'offset' in local_var_params: - query_params.append(('offset', local_var_params['offset'])) header_params = {} if 'instance_id' in local_var_params: @@ -3014,6 +3000,8 @@ def _show_devices_in_group_http_info(cls, request): form_params = {} body = None + if 'body' in local_var_params: + body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -3035,31 +3023,31 @@ def _show_devices_in_group_http_info(cls, request): return http_info - def update_device_group(self, request): - """修改设备组 + def create_or_delete_device_in_group(self, request): + """管理设备组中的设备 - 应用服务器可调用此接口修改物联网平台中指定设备组。 + 应用服务器可调用此接口管理设备组中的设备。单个设备组内最多添加20,000个设备,一个设备最多可以被添加到10个设备组中。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for UpdateDeviceGroup - :type request: :class:`huaweicloudsdkiotda.v5.UpdateDeviceGroupRequest` - :rtype: :class:`huaweicloudsdkiotda.v5.UpdateDeviceGroupResponse` + :param request: Request instance for CreateOrDeleteDeviceInGroup + :type request: :class:`huaweicloudsdkiotda.v5.CreateOrDeleteDeviceInGroupRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.CreateOrDeleteDeviceInGroupResponse` """ - http_info = self._update_device_group_http_info(request) + http_info = self._create_or_delete_device_in_group_http_info(request) return self._call_api(**http_info) - def update_device_group_invoker(self, request): - http_info = self._update_device_group_http_info(request) + def create_or_delete_device_in_group_invoker(self, request): + http_info = self._create_or_delete_device_in_group_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _update_device_group_http_info(cls, request): + def _create_or_delete_device_in_group_http_info(cls, request): http_info = { - "method": "PUT", - "resource_path": "/v5/iot/{project_id}/device-group/{group_id}", + "method": "POST", + "resource_path": "/v5/iot/{project_id}/device-group/{group_id}/action", "request_type": request.__class__.__name__, - "response_type": "UpdateDeviceGroupResponse" + "response_type": "CreateOrDeleteDeviceInGroupResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -3073,6 +3061,10 @@ def _update_device_group_http_info(cls, request): path_params['group_id'] = local_var_params['group_id'] query_params = [] + if 'action_id' in local_var_params: + query_params.append(('action_id', local_var_params['action_id'])) + if 'device_id' in local_var_params: + query_params.append(('device_id', local_var_params['device_id'])) header_params = {} if 'instance_id' in local_var_params: @@ -3081,8 +3073,6 @@ def _update_device_group_http_info(cls, request): form_params = {} body = None - if 'body' in local_var_params: - body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -3104,36 +3094,31 @@ def _update_device_group_http_info(cls, request): return http_info - def add_device(self, request): - """创建设备 + def delete_device_group(self, request): + """删除设备组 - 应用服务器可调用此接口在物联网平台创建一个设备,仅在创建后设备才可以接入物联网平台。 - - - 该接口支持使用gateway_id参数指定在父设备下创建一个子设备,并且支持多级子设备,当前最大支持二级子设备。 - - 该接口同时还支持对设备进行初始配置,接口会读取创建设备请求参数product_id对应的产品详情,如果产品的属性有定义默认值,则会将该属性默认值写入该设备的设备影子中。 - - 用户还可以使用创建设备请求参数shadow字段为设备指定初始配置,指定后将会根据service_id和desired设置的属性值与产品中对应属性的默认值比对,如果不同,则将以shadow字段中设置的属性值为准写入到设备影子中。 - - 该接口仅支持创建单个设备,如需批量注册设备,请参见 [[创建批量任务](https://support.huaweicloud.com/api-iothub/iot_06_v5_0045.html)](tag:hws)[[创建批量任务](https://support.huaweicloud.com/intl/zh-cn/api-iothub/iot_06_v5_0045.html)](tag:hws_hk)。 + 应用服务器可调用此接口删除指定设备组,如果该设备组存在子设备组或者该设备组中存在设备,必须先删除子设备组并将设备从该设备组移除,才能删除该设备组。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for AddDevice - :type request: :class:`huaweicloudsdkiotda.v5.AddDeviceRequest` - :rtype: :class:`huaweicloudsdkiotda.v5.AddDeviceResponse` + :param request: Request instance for DeleteDeviceGroup + :type request: :class:`huaweicloudsdkiotda.v5.DeleteDeviceGroupRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.DeleteDeviceGroupResponse` """ - http_info = self._add_device_http_info(request) + http_info = self._delete_device_group_http_info(request) return self._call_api(**http_info) - def add_device_invoker(self, request): - http_info = self._add_device_http_info(request) + def delete_device_group_invoker(self, request): + http_info = self._delete_device_group_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _add_device_http_info(cls, request): + def _delete_device_group_http_info(cls, request): http_info = { - "method": "POST", - "resource_path": "/v5/iot/{project_id}/devices", + "method": "DELETE", + "resource_path": "/v5/iot/{project_id}/device-group/{group_id}", "request_type": request.__class__.__name__, - "response_type": "AddDeviceResponse" + "response_type": "DeleteDeviceGroupResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -3143,6 +3128,8 @@ def _add_device_http_info(cls, request): collection_formats = {} path_params = {} + if 'group_id' in local_var_params: + path_params['group_id'] = local_var_params['group_id'] query_params = [] @@ -3153,8 +3140,6 @@ def _add_device_http_info(cls, request): form_params = {} body = None - if 'body' in local_var_params: - body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -3176,31 +3161,31 @@ def _add_device_http_info(cls, request): return http_info - def delete_device(self, request): - """删除设备 + def list_device_groups(self, request): + """查询设备组列表 - 应用服务器可调用此接口在物联网平台上删除指定设备。若设备下连接了非直连设备,则必须把设备下的非直连设备都删除后,才能删除该设备。该接口仅支持删除单个设备,如需批量删除设备,请参见 [[创建批量任务](https://support.huaweicloud.com/api-iothub/iot_06_v5_0045.html)](tag:hws)[[创建批量任务](https://support.huaweicloud.com/intl/zh-cn/api-iothub/iot_06_v5_0045.html)](tag:hws_hk)。 + 应用服务器可调用此接口查询物联网平台中的设备组信息列表。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for DeleteDevice - :type request: :class:`huaweicloudsdkiotda.v5.DeleteDeviceRequest` - :rtype: :class:`huaweicloudsdkiotda.v5.DeleteDeviceResponse` + :param request: Request instance for ListDeviceGroups + :type request: :class:`huaweicloudsdkiotda.v5.ListDeviceGroupsRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.ListDeviceGroupsResponse` """ - http_info = self._delete_device_http_info(request) + http_info = self._list_device_groups_http_info(request) return self._call_api(**http_info) - def delete_device_invoker(self, request): - http_info = self._delete_device_http_info(request) + def list_device_groups_invoker(self, request): + http_info = self._list_device_groups_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _delete_device_http_info(cls, request): + def _list_device_groups_http_info(cls, request): http_info = { - "method": "DELETE", - "resource_path": "/v5/iot/{project_id}/devices/{device_id}", + "method": "GET", + "resource_path": "/v5/iot/{project_id}/device-group", "request_type": request.__class__.__name__, - "response_type": "DeleteDeviceResponse" + "response_type": "ListDeviceGroupsResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -3210,10 +3195,22 @@ def _delete_device_http_info(cls, request): collection_formats = {} path_params = {} - if 'device_id' in local_var_params: - path_params['device_id'] = local_var_params['device_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'])) + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'last_modified_time' in local_var_params: + query_params.append(('last_modified_time', local_var_params['last_modified_time'])) + if 'app_id' in local_var_params: + query_params.append(('app_id', local_var_params['app_id'])) + if 'group_type' in local_var_params: + query_params.append(('group_type', local_var_params['group_type'])) + if 'name' in local_var_params: + query_params.append(('name', local_var_params['name'])) header_params = {} if 'instance_id' in local_var_params: @@ -3243,31 +3240,31 @@ def _delete_device_http_info(cls, request): return http_info - def freeze_device(self, request): - """冻结设备 + def show_device_group(self, request): + """查询设备组 - 应用服务器可调用此接口冻结设备,设备冻结后不能再连接上线,可以通过解冻设备接口解除设备冻结。注意,当前仅支持冻结与平台直连的设备。该接口仅支持冻结单个设备,如需批量冻结设备,请参见 [[创建批量任务](https://support.huaweicloud.com/api-iothub/iot_06_v5_0045.html)](tag:hws)[[创建批量任务](https://support.huaweicloud.com/intl/zh-cn/api-iothub/iot_06_v5_0045.html)](tag:hws_hk)。 + 应用服务器可调用此接口查询指定设备组详情。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for FreezeDevice - :type request: :class:`huaweicloudsdkiotda.v5.FreezeDeviceRequest` - :rtype: :class:`huaweicloudsdkiotda.v5.FreezeDeviceResponse` + :param request: Request instance for ShowDeviceGroup + :type request: :class:`huaweicloudsdkiotda.v5.ShowDeviceGroupRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.ShowDeviceGroupResponse` """ - http_info = self._freeze_device_http_info(request) + http_info = self._show_device_group_http_info(request) return self._call_api(**http_info) - def freeze_device_invoker(self, request): - http_info = self._freeze_device_http_info(request) + def show_device_group_invoker(self, request): + http_info = self._show_device_group_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _freeze_device_http_info(cls, request): + def _show_device_group_http_info(cls, request): http_info = { - "method": "POST", - "resource_path": "/v5/iot/{project_id}/devices/{device_id}/freeze", + "method": "GET", + "resource_path": "/v5/iot/{project_id}/device-group/{group_id}", "request_type": request.__class__.__name__, - "response_type": "FreezeDeviceResponse" + "response_type": "ShowDeviceGroupResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -3277,8 +3274,8 @@ def _freeze_device_http_info(cls, request): collection_formats = {} path_params = {} - if 'device_id' in local_var_params: - path_params['device_id'] = local_var_params['device_id'] + if 'group_id' in local_var_params: + path_params['group_id'] = local_var_params['group_id'] query_params = [] @@ -3310,31 +3307,31 @@ def _freeze_device_http_info(cls, request): return http_info - def list_device_groups_by_device(self, request): - """查询指定设备加入的设备组列表 + def show_devices_in_group(self, request): + """查询设备组设备列表 - 应用服务器可调用此接口查询物联网平台中的某个设备加入的设备组信息列表。仅标准版实例、企业版实例支持该接口调用,基础版不支持。 + 应用服务器可调用此接口查询指定设备组下的设备列表。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListDeviceGroupsByDevice - :type request: :class:`huaweicloudsdkiotda.v5.ListDeviceGroupsByDeviceRequest` - :rtype: :class:`huaweicloudsdkiotda.v5.ListDeviceGroupsByDeviceResponse` + :param request: Request instance for ShowDevicesInGroup + :type request: :class:`huaweicloudsdkiotda.v5.ShowDevicesInGroupRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.ShowDevicesInGroupResponse` """ - http_info = self._list_device_groups_by_device_http_info(request) + http_info = self._show_devices_in_group_http_info(request) return self._call_api(**http_info) - def list_device_groups_by_device_invoker(self, request): - http_info = self._list_device_groups_by_device_http_info(request) + def show_devices_in_group_invoker(self, request): + http_info = self._show_devices_in_group_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _list_device_groups_by_device_http_info(cls, request): + def _show_devices_in_group_http_info(cls, request): http_info = { - "method": "POST", - "resource_path": "/v5/iot/{project_id}/devices/{device_id}/list-device-group", + "method": "GET", + "resource_path": "/v5/iot/{project_id}/device-group/{group_id}/devices", "request_type": request.__class__.__name__, - "response_type": "ListDeviceGroupsByDeviceResponse" + "response_type": "ShowDevicesInGroupResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -3344,10 +3341,16 @@ def _list_device_groups_by_device_http_info(cls, request): collection_formats = {} path_params = {} - if 'device_id' in local_var_params: - path_params['device_id'] = local_var_params['device_id'] + if 'group_id' in local_var_params: + path_params['group_id'] = local_var_params['group_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'])) + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) header_params = {} if 'instance_id' in local_var_params: @@ -3377,31 +3380,31 @@ def _list_device_groups_by_device_http_info(cls, request): return http_info - def list_devices(self, request): - """查询设备列表 + def update_device_group(self, request): + """修改设备组 - 应用服务器可调用此接口查询物联网平台中的设备信息列表。 + 应用服务器可调用此接口修改物联网平台中指定设备组。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListDevices - :type request: :class:`huaweicloudsdkiotda.v5.ListDevicesRequest` - :rtype: :class:`huaweicloudsdkiotda.v5.ListDevicesResponse` + :param request: Request instance for UpdateDeviceGroup + :type request: :class:`huaweicloudsdkiotda.v5.UpdateDeviceGroupRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.UpdateDeviceGroupResponse` """ - http_info = self._list_devices_http_info(request) + http_info = self._update_device_group_http_info(request) return self._call_api(**http_info) - def list_devices_invoker(self, request): - http_info = self._list_devices_http_info(request) + def update_device_group_invoker(self, request): + http_info = self._update_device_group_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _list_devices_http_info(cls, request): + def _update_device_group_http_info(cls, request): http_info = { - "method": "GET", - "resource_path": "/v5/iot/{project_id}/devices", + "method": "PUT", + "resource_path": "/v5/iot/{project_id}/device-group/{group_id}", "request_type": request.__class__.__name__, - "response_type": "ListDevicesResponse" + "response_type": "UpdateDeviceGroupResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -3411,30 +3414,10 @@ def _list_devices_http_info(cls, request): collection_formats = {} path_params = {} + if 'group_id' in local_var_params: + path_params['group_id'] = local_var_params['group_id'] query_params = [] - if 'product_id' in local_var_params: - query_params.append(('product_id', local_var_params['product_id'])) - if 'gateway_id' in local_var_params: - query_params.append(('gateway_id', local_var_params['gateway_id'])) - if 'is_cascade_query' in local_var_params: - query_params.append(('is_cascade_query', local_var_params['is_cascade_query'])) - if 'node_id' in local_var_params: - query_params.append(('node_id', local_var_params['node_id'])) - if 'device_name' in local_var_params: - query_params.append(('device_name', local_var_params['device_name'])) - 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 'offset' in local_var_params: - query_params.append(('offset', local_var_params['offset'])) - 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 'app_id' in local_var_params: - query_params.append(('app_id', local_var_params['app_id'])) header_params = {} if 'instance_id' in local_var_params: @@ -3443,6 +3426,8 @@ def _list_devices_http_info(cls, request): form_params = {} body = None + if 'body' in local_var_params: + body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -3464,31 +3449,36 @@ def _list_devices_http_info(cls, request): return http_info - def reset_device_secret(self, request): - """重置设备密钥 + def add_device(self, request): + """创建设备 - 应用服务器可调用此接口重置设备密钥,携带指定密钥时平台将设备密钥重置为指定的密钥,不携带密钥时平台将自动生成一个新的随机密钥返回。 + 应用服务器可调用此接口在物联网平台创建一个设备,仅在创建后设备才可以接入物联网平台。 + + - 该接口支持使用gateway_id参数指定在父设备下创建一个子设备,并且支持多级子设备,当前最大支持二级子设备。 + - 该接口同时还支持对设备进行初始配置,接口会读取创建设备请求参数product_id对应的产品详情,如果产品的属性有定义默认值,则会将该属性默认值写入该设备的设备影子中。 + - 用户还可以使用创建设备请求参数shadow字段为设备指定初始配置,指定后将会根据service_id和desired设置的属性值与产品中对应属性的默认值比对,如果不同,则将以shadow字段中设置的属性值为准写入到设备影子中。 + - 该接口仅支持创建单个设备,如需批量注册设备,请参见 [[创建批量任务](https://support.huaweicloud.com/api-iothub/iot_06_v5_0045.html)](tag:hws)[[创建批量任务](https://support.huaweicloud.com/intl/zh-cn/api-iothub/iot_06_v5_0045.html)](tag:hws_hk)。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ResetDeviceSecret - :type request: :class:`huaweicloudsdkiotda.v5.ResetDeviceSecretRequest` - :rtype: :class:`huaweicloudsdkiotda.v5.ResetDeviceSecretResponse` + :param request: Request instance for AddDevice + :type request: :class:`huaweicloudsdkiotda.v5.AddDeviceRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.AddDeviceResponse` """ - http_info = self._reset_device_secret_http_info(request) + http_info = self._add_device_http_info(request) return self._call_api(**http_info) - def reset_device_secret_invoker(self, request): - http_info = self._reset_device_secret_http_info(request) + def add_device_invoker(self, request): + http_info = self._add_device_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _reset_device_secret_http_info(cls, request): + def _add_device_http_info(cls, request): http_info = { "method": "POST", - "resource_path": "/v5/iot/{project_id}/devices/{device_id}/action", + "resource_path": "/v5/iot/{project_id}/devices", "request_type": request.__class__.__name__, - "response_type": "ResetDeviceSecretResponse" + "response_type": "AddDeviceResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -3498,12 +3488,8 @@ def _reset_device_secret_http_info(cls, request): collection_formats = {} path_params = {} - if 'device_id' in local_var_params: - path_params['device_id'] = local_var_params['device_id'] query_params = [] - if 'action_id' in local_var_params: - query_params.append(('action_id', local_var_params['action_id'])) header_params = {} if 'instance_id' in local_var_params: @@ -3535,31 +3521,31 @@ def _reset_device_secret_http_info(cls, request): return http_info - def reset_fingerprint(self, request): - """重置设备指纹 + def delete_device(self, request): + """删除设备 - 应用服务器可调用此接口重置设备指纹。携带指定设备指纹时将之重置为指定值;不携带时将之置空,后续设备第一次接入时,该设备指纹的值将设置为第一次接入时的证书指纹。 + 应用服务器可调用此接口在物联网平台上删除指定设备。若设备下连接了非直连设备,则必须把设备下的非直连设备都删除后,才能删除该设备。该接口仅支持删除单个设备,如需批量删除设备,请参见 [[创建批量任务](https://support.huaweicloud.com/api-iothub/iot_06_v5_0045.html)](tag:hws)[[创建批量任务](https://support.huaweicloud.com/intl/zh-cn/api-iothub/iot_06_v5_0045.html)](tag:hws_hk)。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ResetFingerprint - :type request: :class:`huaweicloudsdkiotda.v5.ResetFingerprintRequest` - :rtype: :class:`huaweicloudsdkiotda.v5.ResetFingerprintResponse` + :param request: Request instance for DeleteDevice + :type request: :class:`huaweicloudsdkiotda.v5.DeleteDeviceRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.DeleteDeviceResponse` """ - http_info = self._reset_fingerprint_http_info(request) + http_info = self._delete_device_http_info(request) return self._call_api(**http_info) - def reset_fingerprint_invoker(self, request): - http_info = self._reset_fingerprint_http_info(request) + def delete_device_invoker(self, request): + http_info = self._delete_device_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _reset_fingerprint_http_info(cls, request): + def _delete_device_http_info(cls, request): http_info = { - "method": "POST", - "resource_path": "/v5/iot/{project_id}/devices/{device_id}/reset-fingerprint", + "method": "DELETE", + "resource_path": "/v5/iot/{project_id}/devices/{device_id}", "request_type": request.__class__.__name__, - "response_type": "ResetFingerprintResponse" + "response_type": "DeleteDeviceResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -3581,8 +3567,6 @@ def _reset_fingerprint_http_info(cls, request): form_params = {} body = None - if 'body' in local_var_params: - body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -3604,29 +3588,390 @@ def _reset_fingerprint_http_info(cls, request): return http_info - def search_devices(self, request): - """灵活搜索设备列表 + def freeze_device(self, request): + """冻结设备 - #### 接口说明 - - 应用服务器使用SQL语句调用该接口,灵活的搜索所需要的设备资源列表 - - #### 限制 - - - 仅**标准版实例、企业版实例**支持该接口调用,基础版不支持。 - - 单账号调用该接口的 TPS 限制最大为1/S(每秒1次请求数) - - #### 类SQL语法使用说明 - - 类SQL语句有select、from、where(可选)、order by(可选)、limit子句(可选)组成,长度限制为400个字符。子句里的内容大小写敏感,SQL语句的关键字大小写不敏感。 - - 示例: - - ``` - select * from device where device_id = 'as********' limit 0,5 - ``` + 应用服务器可调用此接口冻结设备,设备冻结后不能再连接上线,可以通过解冻设备接口解除设备冻结。注意,当前仅支持冻结与平台直连的设备。该接口仅支持冻结单个设备,如需批量冻结设备,请参见 [[创建批量任务](https://support.huaweicloud.com/api-iothub/iot_06_v5_0045.html)](tag:hws)[[创建批量任务](https://support.huaweicloud.com/intl/zh-cn/api-iothub/iot_06_v5_0045.html)](tag:hws_hk)。 - ##### SELECT子句 + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for FreezeDevice + :type request: :class:`huaweicloudsdkiotda.v5.FreezeDeviceRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.FreezeDeviceResponse` + """ + http_info = self._freeze_device_http_info(request) + return self._call_api(**http_info) + + def freeze_device_invoker(self, request): + http_info = self._freeze_device_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _freeze_device_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v5/iot/{project_id}/devices/{device_id}/freeze", + "request_type": request.__class__.__name__, + "response_type": "FreezeDeviceResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'device_id' in local_var_params: + path_params['device_id'] = local_var_params['device_id'] + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def list_device_groups_by_device(self, request): + """查询指定设备加入的设备组列表 + + 应用服务器可调用此接口查询物联网平台中的某个设备加入的设备组信息列表。仅标准版实例、企业版实例支持该接口调用,基础版不支持。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListDeviceGroupsByDevice + :type request: :class:`huaweicloudsdkiotda.v5.ListDeviceGroupsByDeviceRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.ListDeviceGroupsByDeviceResponse` + """ + http_info = self._list_device_groups_by_device_http_info(request) + return self._call_api(**http_info) + + def list_device_groups_by_device_invoker(self, request): + http_info = self._list_device_groups_by_device_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_device_groups_by_device_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v5/iot/{project_id}/devices/{device_id}/list-device-group", + "request_type": request.__class__.__name__, + "response_type": "ListDeviceGroupsByDeviceResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'device_id' in local_var_params: + path_params['device_id'] = local_var_params['device_id'] + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def list_devices(self, request): + """查询设备列表 + + 应用服务器可调用此接口查询物联网平台中的设备信息列表。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListDevices + :type request: :class:`huaweicloudsdkiotda.v5.ListDevicesRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.ListDevicesResponse` + """ + http_info = self._list_devices_http_info(request) + return self._call_api(**http_info) + + def list_devices_invoker(self, request): + http_info = self._list_devices_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_devices_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v5/iot/{project_id}/devices", + "request_type": request.__class__.__name__, + "response_type": "ListDevicesResponse" + } + + 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 'product_id' in local_var_params: + query_params.append(('product_id', local_var_params['product_id'])) + if 'gateway_id' in local_var_params: + query_params.append(('gateway_id', local_var_params['gateway_id'])) + if 'is_cascade_query' in local_var_params: + query_params.append(('is_cascade_query', local_var_params['is_cascade_query'])) + if 'node_id' in local_var_params: + query_params.append(('node_id', local_var_params['node_id'])) + if 'device_name' in local_var_params: + query_params.append(('device_name', local_var_params['device_name'])) + 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 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + 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 'app_id' in local_var_params: + query_params.append(('app_id', local_var_params['app_id'])) + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def reset_device_secret(self, request): + """重置设备密钥 + + 应用服务器可调用此接口重置设备密钥,携带指定密钥时平台将设备密钥重置为指定的密钥,不携带密钥时平台将自动生成一个新的随机密钥返回。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ResetDeviceSecret + :type request: :class:`huaweicloudsdkiotda.v5.ResetDeviceSecretRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.ResetDeviceSecretResponse` + """ + http_info = self._reset_device_secret_http_info(request) + return self._call_api(**http_info) + + def reset_device_secret_invoker(self, request): + http_info = self._reset_device_secret_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _reset_device_secret_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v5/iot/{project_id}/devices/{device_id}/action", + "request_type": request.__class__.__name__, + "response_type": "ResetDeviceSecretResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'device_id' in local_var_params: + path_params['device_id'] = local_var_params['device_id'] + + query_params = [] + if 'action_id' in local_var_params: + query_params.append(('action_id', local_var_params['action_id'])) + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def reset_fingerprint(self, request): + """重置设备指纹 + + 应用服务器可调用此接口重置设备指纹。携带指定设备指纹时将之重置为指定值;不携带时将之置空,后续设备第一次接入时,该设备指纹的值将设置为第一次接入时的证书指纹。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ResetFingerprint + :type request: :class:`huaweicloudsdkiotda.v5.ResetFingerprintRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.ResetFingerprintResponse` + """ + http_info = self._reset_fingerprint_http_info(request) + return self._call_api(**http_info) + + def reset_fingerprint_invoker(self, request): + http_info = self._reset_fingerprint_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _reset_fingerprint_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v5/iot/{project_id}/devices/{device_id}/reset-fingerprint", + "request_type": request.__class__.__name__, + "response_type": "ResetFingerprintResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'device_id' in local_var_params: + path_params['device_id'] = local_var_params['device_id'] + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def search_devices(self, request): + """灵活搜索设备列表 + + #### 接口说明 + + 应用服务器使用SQL语句调用该接口,灵活的搜索所需要的设备资源列表 + + #### 限制 + + - 仅**标准版实例、企业版实例**支持该接口调用,基础版不支持。 + - 单账号调用该接口的 TPS 限制最大为1/S(每秒1次请求数) + + #### 类SQL语法使用说明 + + 类SQL语句有select、from、where(可选)、order by(可选)、limit子句(可选)组成,长度限制为400个字符。子句里的内容大小写敏感,SQL语句的关键字大小写不敏感。 + + 示例: + + ``` + select * from device where device_id = 'as********' limit 0,5 + ``` + + ##### SELECT子句 ``` select [field]/[count(*)/count(1)] from device @@ -3652,97 +3997,871 @@ def search_devices(self, request): 最多支持5个condition,不支持嵌套;支持的检索字段请参见下面的**搜索条件字段说明**和**支持的运算符**章节 - 连接词支持AND、OR,优先级参考标准SQL语法,默认AND优先级高于OR。 + 连接词支持AND、OR,优先级参考标准SQL语法,默认AND优先级高于OR。 + + ##### LIMIT子句(可选) + + ``` + limit [offset,] rows + ``` + + offset标识搜索的偏移量,rows标识返回搜索结果的最大行数,例如: + + - limit n ;示例(select * from device limit 10) + + 最大返回n条结果数据 + + - limit m,n; 示例(select * from device limit 20,10) + 搜索偏移量为m,最大返回n条结果数据 + + ###### 限制 + + offset 最大 500, rows最大50,如果不填写limit子句,默认为limit 10 + + ##### ORDER BY子句(可选) + + 用于实现自定义排序,当前支持自定义排序的字段为:\"marker\"。 + + ``` + order by marker [asc]/[desc] + ``` + + 子句不填写时默认逻辑为随机排序 + + #### 搜索条件字段说明 + + | 字段名 | 类型 | 说明 | 取值范围 | + | :---------- | :----- | :--------------- | :----------------------------------------------------------- | + | app_id | string | 资源空间ID | 长度不超过36,只允许字母、数字、下划线(_)、连接符(-)的组合。 | + | device_id | string | 设备ID | 长度不超过128,只允许字母、数字、下划线(_)、连接符(-)的组合。 | + | gateway_id | string | 网关ID | 长度不超过128,只允许字母、数字、下划线(_)、连接符(-)的组合。 | + | product_id | string | 设备关联的产品ID | 长度不超过36,只允许字母、数字、下划线(_)、连接符(-)的组合。 | + | device_name | string | 设备名称 | 长度不超过256,只允许中文、字母、数字、以及_?'#().,&%@!-等字符的组合符。 | + | node_id | string | 设备标识码 | 长度不超过64,只允许字母、数字、下划线(_)、连接符(-)的组合 | + | status | string | 设备的状态 | ONLINE(在线)、OFFLINE(离线)、ABNORMAL(异常)、INACTIVE(未激活)、FROZEN(冻结) | + | node_type | string | 设备节点类型 | GATEWAY(直连设备或网关)、ENDPOINT(非直连设备) | + | tag_key | string | 标签键 | 长度不超过64,只允许中文、字母、数字、以及_.-等字符的组合。 | + | tag_value | string | 标签值 | 长度不超过128,只允许中文、字母、数字、以及_.-等字符的组合。 | + | sw_version | string | 软件版本 | 长度不超过64,只允许字母、数字、下划线(_)、连接符(-)、英文点(.)的组合。 | + | fw_version | string | 固件版本 | 长度不超过64,只允许字母、数字、下划线(_)、连接符(-)、英文点(.)的组合。 | + | group_id | string | 群组Id | 长度不超过36,十六进制字符串和连接符(-)的组合 | + | create_time | string | 设备注册时间 | 格式:yyyy-MM-dd'T'HH:mm:ss.SSS'Z',如:2015-06-06T12:10:10.000Z | + | marker | string | 结果记录ID | 长度为24的十六进制字符串,如ffffffffffffffffffffffff | + + #### 支持的运算符 + + | 运算符 | 支持的字段 | + | ------- | ---------------------------------------- | + | = | 所有 | + | != | 所有 | + | > | create_time、marker | + | < | create_time、marker | + | like | device_name、node_id、tag_key、tag_value | + | in | 除tag_key、tag_value以外字段 | + | not in | 除tag_key、tag_value以外字段 | - ##### LIMIT子句(可选) + #### SQL 限制 - ``` - limit [offset,] rows - ``` + - like: 只支持前缀匹配,不支持后缀匹配或者通配符匹配。前缀匹配不得少于4个字符,且不能包含任何特殊字符(只允许中文、字母、数字、下划线(_)、连接符(-)). 前缀后必须跟上\"%\"结尾。 + - 不支持除了count(*)/count(1)以外的其他任何函数。 + - 不支持其他SQL用法,如嵌套SQL、union、join、别名(Alias)等用法 + - SQL长度限制为400个字符,单个请求条件最大支持5个。 + - 不支持\"null\"和空字符串等条件值匹配 - offset标识搜索的偏移量,rows标识返回搜索结果的最大行数,例如: + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for SearchDevices + :type request: :class:`huaweicloudsdkiotda.v5.SearchDevicesRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.SearchDevicesResponse` + """ + http_info = self._search_devices_http_info(request) + return self._call_api(**http_info) + + def search_devices_invoker(self, request): + http_info = self._search_devices_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _search_devices_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v5/iot/{project_id}/search/query-devices", + "request_type": request.__class__.__name__, + "response_type": "SearchDevicesResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def show_device(self, request): + """查询设备 + + 应用服务器可调用此接口查询物联网平台中指定设备的详细信息。 - - limit n ;示例(select * from device limit 10) + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowDevice + :type request: :class:`huaweicloudsdkiotda.v5.ShowDeviceRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.ShowDeviceResponse` + """ + http_info = self._show_device_http_info(request) + return self._call_api(**http_info) + + def show_device_invoker(self, request): + http_info = self._show_device_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _show_device_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v5/iot/{project_id}/devices/{device_id}", + "request_type": request.__class__.__name__, + "response_type": "ShowDeviceResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'device_id' in local_var_params: + path_params['device_id'] = local_var_params['device_id'] + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def unfreeze_device(self, request): + """解冻设备 + + 应用服务器可调用此接口解冻设备,解除冻结后,设备可以连接上线。该接口仅支持解冻单个设备,如需批量解冻设备,请参见 [[创建批量任务](https://support.huaweicloud.com/api-iothub/iot_06_v5_0045.html)](tag:hws)[[创建批量任务](https://support.huaweicloud.com/intl/zh-cn/api-iothub/iot_06_v5_0045.html)](tag:hws_hk)。 - 最大返回n条结果数据 - - - limit m,n; 示例(select * from device limit 20,10) - 搜索偏移量为m,最大返回n条结果数据 + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for UnfreezeDevice + :type request: :class:`huaweicloudsdkiotda.v5.UnfreezeDeviceRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.UnfreezeDeviceResponse` + """ + http_info = self._unfreeze_device_http_info(request) + return self._call_api(**http_info) + + def unfreeze_device_invoker(self, request): + http_info = self._unfreeze_device_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _unfreeze_device_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v5/iot/{project_id}/devices/{device_id}/unfreeze", + "request_type": request.__class__.__name__, + "response_type": "UnfreezeDeviceResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'device_id' in local_var_params: + path_params['device_id'] = local_var_params['device_id'] + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def update_device(self, request): + """修改设备 + + 应用服务器可调用此接口修改物联网平台中指定设备的基本信息。 - ###### 限制 + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for UpdateDevice + :type request: :class:`huaweicloudsdkiotda.v5.UpdateDeviceRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.UpdateDeviceResponse` + """ + http_info = self._update_device_http_info(request) + return self._call_api(**http_info) + + def update_device_invoker(self, request): + http_info = self._update_device_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _update_device_http_info(cls, request): + http_info = { + "method": "PUT", + "resource_path": "/v5/iot/{project_id}/devices/{device_id}", + "request_type": request.__class__.__name__, + "response_type": "UpdateDeviceResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'device_id' in local_var_params: + path_params['device_id'] = local_var_params['device_id'] + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def create_device_proxy(self, request): + """创建设备代理 + + 应用服务器可调用此接口在物联网平台创建一个动态设备代理规则,用于子设备自主选择网关设备上线和上报消息,即代理组下的任意网关下的子设备均可以通过代理组里其他设备上线([[网关更新子设备状态](https://support.huaweicloud.com/api-iothub/iot_06_v5_3022.html)](tag:hws) [[网关更新子设备状态](https://support.huaweicloud.com/intl/zh-cn/api-iothub/iot_06_v5_3022.html)](tag:hws_hk))然后进行数据上报([[网关批量设备属性上报](https://support.huaweicloud.com/api-iothub/iot_06_v5_3006.html)](tag:hws) [[网关更新子设备状态](https://support.huaweicloud.com/intl/zh-cn/api-iothub/iot_06_v5_3006.html)](tag:hws_hk))。 + - 单实例最多可以配置10个设备代理 + - 单账号调用该接口的 TPS 限制最大为1/S(每秒1次请求数) - offset 最大 500, rows最大50,如果不填写limit子句,默认为limit 10 + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreateDeviceProxy + :type request: :class:`huaweicloudsdkiotda.v5.CreateDeviceProxyRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.CreateDeviceProxyResponse` + """ + http_info = self._create_device_proxy_http_info(request) + return self._call_api(**http_info) + + def create_device_proxy_invoker(self, request): + http_info = self._create_device_proxy_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _create_device_proxy_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v5/iot/{project_id}/device-proxies", + "request_type": request.__class__.__name__, + "response_type": "CreateDeviceProxyResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def delete_device_proxy(self, request): + """删除设备代理 + + 应用服务器可调用此接口在物联网平台上删除指定设备代理。 - ##### ORDER BY子句(可选) + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for DeleteDeviceProxy + :type request: :class:`huaweicloudsdkiotda.v5.DeleteDeviceProxyRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.DeleteDeviceProxyResponse` + """ + http_info = self._delete_device_proxy_http_info(request) + return self._call_api(**http_info) + + def delete_device_proxy_invoker(self, request): + http_info = self._delete_device_proxy_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _delete_device_proxy_http_info(cls, request): + http_info = { + "method": "DELETE", + "resource_path": "/v5/iot/{project_id}/device-proxies/{proxy_id}", + "request_type": request.__class__.__name__, + "response_type": "DeleteDeviceProxyResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'proxy_id' in local_var_params: + path_params['proxy_id'] = local_var_params['proxy_id'] + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def list_device_proxies(self, request): + """查询设备代理列表 + + 应用服务器可调用此接口查询物联网平台中的设备代理列表。 - 用于实现自定义排序,当前支持自定义排序的字段为:\"marker\"。 + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListDeviceProxies + :type request: :class:`huaweicloudsdkiotda.v5.ListDeviceProxiesRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.ListDeviceProxiesResponse` + """ + http_info = self._list_device_proxies_http_info(request) + return self._call_api(**http_info) + + def list_device_proxies_invoker(self, request): + http_info = self._list_device_proxies_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_device_proxies_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v5/iot/{project_id}/device-proxies", + "request_type": request.__class__.__name__, + "response_type": "ListDeviceProxiesResponse" + } + + 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 'app_id' in local_var_params: + query_params.append(('app_id', local_var_params['app_id'])) + if 'proxy_name' in local_var_params: + query_params.append(('proxy_name', local_var_params['proxy_name'])) + 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 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def show_device_proxy(self, request): + """查询设备代理详情 + + 应用服务器可调用此接口查询物联网平台中指定设备代理的详细信息。 - ``` - order by marker [asc]/[desc] - ``` + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowDeviceProxy + :type request: :class:`huaweicloudsdkiotda.v5.ShowDeviceProxyRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.ShowDeviceProxyResponse` + """ + http_info = self._show_device_proxy_http_info(request) + return self._call_api(**http_info) + + def show_device_proxy_invoker(self, request): + http_info = self._show_device_proxy_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _show_device_proxy_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v5/iot/{project_id}/device-proxies/{proxy_id}", + "request_type": request.__class__.__name__, + "response_type": "ShowDeviceProxyResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'proxy_id' in local_var_params: + path_params['proxy_id'] = local_var_params['proxy_id'] + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def update_device_proxy(self, request): + """修改设备代理 + + 应用服务器可调用此接口修改物联网平台中指定设备代理的基本信息。 - 子句不填写时默认逻辑为随机排序 + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for UpdateDeviceProxy + :type request: :class:`huaweicloudsdkiotda.v5.UpdateDeviceProxyRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.UpdateDeviceProxyResponse` + """ + http_info = self._update_device_proxy_http_info(request) + return self._call_api(**http_info) + + def update_device_proxy_invoker(self, request): + http_info = self._update_device_proxy_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _update_device_proxy_http_info(cls, request): + http_info = { + "method": "PUT", + "resource_path": "/v5/iot/{project_id}/device-proxies/{proxy_id}", + "request_type": request.__class__.__name__, + "response_type": "UpdateDeviceProxyResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'proxy_id' in local_var_params: + path_params['proxy_id'] = local_var_params['proxy_id'] + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def show_device_shadow(self, request): + """查询设备影子数据 + + 应用服务器可调用此接口查询指定设备的设备影子信息,包括对设备的期望属性信息(desired区)和设备最新上报的属性信息(reported区)。 - #### 搜索条件字段说明 + 设备影子介绍: + 设备影子是一个用于存储和检索设备当前状态信息的JSON文档。 + - 每个设备有且只有一个设备影子,由设备ID唯一标识 + - 设备影子用于存储设备上报的(状态)属性和应用程序期望的设备(状态)属性 + - 无论该设备是否在线,都可以通过该影子获取和设置设备的属性 + - 设备上线或者设备上报属性时,如果desired区和reported区存在差异,则将差异部分下发给设备,配置的预期属性需在产品模型中定义且method具有可写属性“W”才可下发 - | 字段名 | 类型 | 说明 | 取值范围 | - | :---------- | :----- | :--------------- | :----------------------------------------------------------- | - | app_id | string | 资源空间ID | 长度不超过36,只允许字母、数字、下划线(_)、连接符(-)的组合。 | - | device_id | string | 设备ID | 长度不超过128,只允许字母、数字、下划线(_)、连接符(-)的组合。 | - | gateway_id | string | 网关ID | 长度不超过128,只允许字母、数字、下划线(_)、连接符(-)的组合。 | - | product_id | string | 设备关联的产品ID | 长度不超过36,只允许字母、数字、下划线(_)、连接符(-)的组合。 | - | device_name | string | 设备名称 | 长度不超过256,只允许中文、字母、数字、以及_?'#().,&%@!-等字符的组合符。 | - | node_id | string | 设备标识码 | 长度不超过64,只允许字母、数字、下划线(_)、连接符(-)的组合 | - | status | string | 设备的状态 | ONLINE(在线)、OFFLINE(离线)、ABNORMAL(异常)、INACTIVE(未激活)、FROZEN(冻结) | - | node_type | string | 设备节点类型 | GATEWAY(直连设备或网关)、ENDPOINT(非直连设备) | - | tag_key | string | 标签键 | 长度不超过64,只允许中文、字母、数字、以及_.-等字符的组合。 | - | tag_value | string | 标签值 | 长度不超过128,只允许中文、字母、数字、以及_.-等字符的组合。 | - | sw_version | string | 软件版本 | 长度不超过64,只允许字母、数字、下划线(_)、连接符(-)、英文点(.)的组合。 | - | fw_version | string | 固件版本 | 长度不超过64,只允许字母、数字、下划线(_)、连接符(-)、英文点(.)的组合。 | - | group_id | string | 群组Id | 长度不超过36,十六进制字符串和连接符(-)的组合 | - | create_time | string | 设备注册时间 | 格式:yyyy-MM-dd'T'HH:mm:ss.SSS'Z',如:2015-06-06T12:10:10.000Z | - | marker | string | 结果记录ID | 长度为24的十六进制字符串,如ffffffffffffffffffffffff | + 限制: + 设备影子JSON文档中的key不允许特殊字符:点(.)、dollar符号($)、空char(十六进制的ASCII码为00)。如果包含了以上特殊字符则无法正常刷新影子文档。 - #### 支持的运算符 + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowDeviceShadow + :type request: :class:`huaweicloudsdkiotda.v5.ShowDeviceShadowRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.ShowDeviceShadowResponse` + """ + http_info = self._show_device_shadow_http_info(request) + return self._call_api(**http_info) + + def show_device_shadow_invoker(self, request): + http_info = self._show_device_shadow_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _show_device_shadow_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v5/iot/{project_id}/devices/{device_id}/shadow", + "request_type": request.__class__.__name__, + "response_type": "ShowDeviceShadowResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'device_id' in local_var_params: + path_params['device_id'] = local_var_params['device_id'] + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def update_device_shadow_desired_data(self, request): + """配置设备影子预期数据 + + 应用服务器可调用此接口配置设备影子的预期属性(desired区),当设备上线或者设备上报属性时把属性下发给设备。 - | 运算符 | 支持的字段 | - | ------- | ---------------------------------------- | - | = | 所有 | - | != | 所有 | - | > | create_time、marker | - | < | create_time、marker | - | like | device_name、node_id、tag_key、tag_value | - | in | 除tag_key、tag_value以外字段 | - | not in | 除tag_key、tag_value以外字段 | + 设备影子介绍: + 设备影子是一个用于存储和检索设备当前状态信息的JSON文档。 + - 每个设备有且只有一个设备影子,由设备ID唯一标识 + - 设备影子用于存储设备上报的(状态)属性和应用程序期望的设备(状态)属性 + - 无论该设备是否在线,都可以通过该影子获取和设置设备的属性 + - 设备上线或者设备上报属性时,如果desired区和reported区存在差异,则将差异部分下发给设备,配置的预期属性需在产品模型中定义且method具有可写属性“W”才可下发 + - 该接口仅支持配置单个设备的设备影子的预期数据,如需多个设备的设备影子配置,请参见 [[创建批量任务](https://support.huaweicloud.com/api-iothub/iot_06_v5_0045.html)](tag:hws)[[创建批量任务](https://support.huaweicloud.com/intl/zh-cn/api-iothub/iot_06_v5_0045.html)](tag:hws_hk)。 - #### SQL 限制 + 限制: + 设备影子JSON文档中的key不允许特殊字符:点(.)、dollar符号($)、空char(十六进制的ASCII码为00)。如果包含了以上特殊字符则无法正常刷新影子文档。 - - like: 只支持前缀匹配,不支持后缀匹配或者通配符匹配。前缀匹配不得少于4个字符,且不能包含任何特殊字符(只允许中文、字母、数字、下划线(_)、连接符(-)). 前缀后必须跟上\"%\"结尾。 - - 不支持除了count(*)/count(1)以外的其他任何函数。 - - 不支持其他SQL用法,如嵌套SQL、union、join、别名(Alias)等用法 - - SQL长度限制为400个字符,单个请求条件最大支持5个。 - - 不支持\"null\"和空字符串等条件值匹配 + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for UpdateDeviceShadowDesiredData + :type request: :class:`huaweicloudsdkiotda.v5.UpdateDeviceShadowDesiredDataRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.UpdateDeviceShadowDesiredDataResponse` + """ + http_info = self._update_device_shadow_desired_data_http_info(request) + return self._call_api(**http_info) + + def update_device_shadow_desired_data_invoker(self, request): + http_info = self._update_device_shadow_desired_data_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _update_device_shadow_desired_data_http_info(cls, request): + http_info = { + "method": "PUT", + "resource_path": "/v5/iot/{project_id}/devices/{device_id}/shadow", + "request_type": request.__class__.__name__, + "response_type": "UpdateDeviceShadowDesiredDataResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'device_id' in local_var_params: + path_params['device_id'] = local_var_params['device_id'] + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def create_routing_flow_control_policy(self, request): + """新建数据流转流控策略 + + 应用服务器可调用此接口在物联网平台创建数据流转流控策略。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for SearchDevices - :type request: :class:`huaweicloudsdkiotda.v5.SearchDevicesRequest` - :rtype: :class:`huaweicloudsdkiotda.v5.SearchDevicesResponse` + :param request: Request instance for CreateRoutingFlowControlPolicy + :type request: :class:`huaweicloudsdkiotda.v5.CreateRoutingFlowControlPolicyRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.CreateRoutingFlowControlPolicyResponse` """ - http_info = self._search_devices_http_info(request) + http_info = self._create_routing_flow_control_policy_http_info(request) return self._call_api(**http_info) - def search_devices_invoker(self, request): - http_info = self._search_devices_http_info(request) + def create_routing_flow_control_policy_invoker(self, request): + http_info = self._create_routing_flow_control_policy_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _search_devices_http_info(cls, request): + def _create_routing_flow_control_policy_http_info(cls, request): http_info = { "method": "POST", - "resource_path": "/v5/iot/{project_id}/search/query-devices", + "resource_path": "/v5/iot/{project_id}/routing-rule/flowcontrol-policy", "request_type": request.__class__.__name__, - "response_type": "SearchDevicesResponse" + "response_type": "CreateRoutingFlowControlPolicyResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -3769,6 +4888,73 @@ def _search_devices_http_info(cls, request): 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_routing_flow_control_policy(self, request): + """删除数据流转流控策略 + + 应用服务器可调用此接口在物联网平台删除指定数据流转流控策略。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for DeleteRoutingFlowControlPolicy + :type request: :class:`huaweicloudsdkiotda.v5.DeleteRoutingFlowControlPolicyRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.DeleteRoutingFlowControlPolicyResponse` + """ + http_info = self._delete_routing_flow_control_policy_http_info(request) + return self._call_api(**http_info) + + def delete_routing_flow_control_policy_invoker(self, request): + http_info = self._delete_routing_flow_control_policy_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _delete_routing_flow_control_policy_http_info(cls, request): + http_info = { + "method": "DELETE", + "resource_path": "/v5/iot/{project_id}/routing-rule/flowcontrol-policy/{policy_id}", + "request_type": request.__class__.__name__, + "response_type": "DeleteRoutingFlowControlPolicyResponse" + } + + 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_id' in local_var_params: + path_params['policy_id'] = local_var_params['policy_id'] + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + header_params['Content-Type'] = http_utils.select_header_content_type( ['application/json']) @@ -3785,31 +4971,31 @@ def _search_devices_http_info(cls, request): return http_info - def show_device(self, request): - """查询设备 + def list_routing_flow_control_policy(self, request): + """查询数据流转流控策略列表 - 应用服务器可调用此接口查询物联网平台中指定设备的详细信息。 + 应用服务器可调用此接口查询在物联网平台设置的数据流转流控策略列表。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowDevice - :type request: :class:`huaweicloudsdkiotda.v5.ShowDeviceRequest` - :rtype: :class:`huaweicloudsdkiotda.v5.ShowDeviceResponse` + :param request: Request instance for ListRoutingFlowControlPolicy + :type request: :class:`huaweicloudsdkiotda.v5.ListRoutingFlowControlPolicyRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.ListRoutingFlowControlPolicyResponse` """ - http_info = self._show_device_http_info(request) + http_info = self._list_routing_flow_control_policy_http_info(request) return self._call_api(**http_info) - def show_device_invoker(self, request): - http_info = self._show_device_http_info(request) + def list_routing_flow_control_policy_invoker(self, request): + http_info = self._list_routing_flow_control_policy_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _show_device_http_info(cls, request): + def _list_routing_flow_control_policy_http_info(cls, request): http_info = { "method": "GET", - "resource_path": "/v5/iot/{project_id}/devices/{device_id}", + "resource_path": "/v5/iot/{project_id}/routing-rule/flowcontrol-policy", "request_type": request.__class__.__name__, - "response_type": "ShowDeviceResponse" + "response_type": "ListRoutingFlowControlPolicyResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -3819,10 +5005,20 @@ def _show_device_http_info(cls, request): collection_formats = {} path_params = {} - if 'device_id' in local_var_params: - path_params['device_id'] = local_var_params['device_id'] query_params = [] + if 'scope' in local_var_params: + query_params.append(('scope', local_var_params['scope'])) + if 'scope_value' in local_var_params: + query_params.append(('scope_value', local_var_params['scope_value'])) + if 'policy_name' in local_var_params: + query_params.append(('policy_name', local_var_params['policy_name'])) + 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 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) header_params = {} if 'instance_id' in local_var_params: @@ -3852,31 +5048,98 @@ def _show_device_http_info(cls, request): return http_info - def unfreeze_device(self, request): - """解冻设备 + def show_routing_flow_control_policy(self, request): + """查询数据流转流控策略 - 应用服务器可调用此接口解冻设备,解除冻结后,设备可以连接上线。该接口仅支持解冻单个设备,如需批量解冻设备,请参见 [[创建批量任务](https://support.huaweicloud.com/api-iothub/iot_06_v5_0045.html)](tag:hws)[[创建批量任务](https://support.huaweicloud.com/intl/zh-cn/api-iothub/iot_06_v5_0045.html)](tag:hws_hk)。 + 应用服务器可调用此接口在物联网平台查询指定数据流转流控策略。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowRoutingFlowControlPolicy + :type request: :class:`huaweicloudsdkiotda.v5.ShowRoutingFlowControlPolicyRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.ShowRoutingFlowControlPolicyResponse` + """ + http_info = self._show_routing_flow_control_policy_http_info(request) + return self._call_api(**http_info) + + def show_routing_flow_control_policy_invoker(self, request): + http_info = self._show_routing_flow_control_policy_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _show_routing_flow_control_policy_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v5/iot/{project_id}/routing-rule/flowcontrol-policy/{policy_id}", + "request_type": request.__class__.__name__, + "response_type": "ShowRoutingFlowControlPolicyResponse" + } + + 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_id' in local_var_params: + path_params['policy_id'] = local_var_params['policy_id'] + + query_params = [] + + header_params = {} + if 'instance_id' in local_var_params: + header_params['Instance-Id'] = local_var_params['instance_id'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def update_routing_flow_control_policy(self, request): + """修改数据流转流控策略 + + 应用服务器可调用此接口在物联网平台修改指定数据流转流控策略。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for UnfreezeDevice - :type request: :class:`huaweicloudsdkiotda.v5.UnfreezeDeviceRequest` - :rtype: :class:`huaweicloudsdkiotda.v5.UnfreezeDeviceResponse` + :param request: Request instance for UpdateRoutingFlowControlPolicy + :type request: :class:`huaweicloudsdkiotda.v5.UpdateRoutingFlowControlPolicyRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.UpdateRoutingFlowControlPolicyResponse` """ - http_info = self._unfreeze_device_http_info(request) + http_info = self._update_routing_flow_control_policy_http_info(request) return self._call_api(**http_info) - def unfreeze_device_invoker(self, request): - http_info = self._unfreeze_device_http_info(request) + def update_routing_flow_control_policy_invoker(self, request): + http_info = self._update_routing_flow_control_policy_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _unfreeze_device_http_info(cls, request): + def _update_routing_flow_control_policy_http_info(cls, request): http_info = { - "method": "POST", - "resource_path": "/v5/iot/{project_id}/devices/{device_id}/unfreeze", + "method": "PUT", + "resource_path": "/v5/iot/{project_id}/routing-rule/flowcontrol-policy/{policy_id}", "request_type": request.__class__.__name__, - "response_type": "UnfreezeDeviceResponse" + "response_type": "UpdateRoutingFlowControlPolicyResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -3886,8 +5149,8 @@ def _unfreeze_device_http_info(cls, request): collection_formats = {} path_params = {} - if 'device_id' in local_var_params: - path_params['device_id'] = local_var_params['device_id'] + if 'policy_id' in local_var_params: + path_params['policy_id'] = local_var_params['policy_id'] query_params = [] @@ -3898,13 +5161,15 @@ def _unfreeze_device_http_info(cls, request): form_params = {} body = None + if 'body' in local_var_params: + body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() response_headers = [] header_params['Content-Type'] = http_utils.select_header_content_type( - ['application/json']) + ['application/json;charset=UTF-8']) auth_settings = [] @@ -3919,31 +5184,34 @@ def _unfreeze_device_http_info(cls, request): return http_info - def update_device(self, request): - """修改设备 + def create_message(self, request): + """下发设备消息 - 应用服务器可调用此接口修改物联网平台中指定设备的基本信息。 + 物联网平台可向设备下发消息,应用服务器可调用此接口向指定设备下发消息,以实现对设备的控制。应用将消息下发给平台后,平台返回应用响应结果,平台再将消息发送给设备。平台返回应用响应结果不一定是设备接收结果,建议用户应用通过订阅[[设备消息状态变更通知](https://support.huaweicloud.com/api-iothub/iot_06_v5_01203.html)](tag:hws)[[设备消息状态变更通知](https://support.huaweicloud.com/intl/zh-cn/api-iothub/iot_06_v5_01203.html)](tag:hws_hk),订阅后平台会将设备接收结果推送给订阅的应用。 + 注意: + - 此接口适用于MQTT设备消息下发,暂不支持其他协议接入的设备消息下发。 + - 此接口仅支持单个设备消息下发,如需多个设备消息下发,请参见 [[创建批量任务](https://support.huaweicloud.com/api-iothub/iot_06_v5_0045.html)](tag:hws)[[创建批量任务](https://support.huaweicloud.com/intl/zh-cn/api-iothub/iot_06_v5_0045.html)](tag:hws_hk)。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for UpdateDevice - :type request: :class:`huaweicloudsdkiotda.v5.UpdateDeviceRequest` - :rtype: :class:`huaweicloudsdkiotda.v5.UpdateDeviceResponse` + :param request: Request instance for CreateMessage + :type request: :class:`huaweicloudsdkiotda.v5.CreateMessageRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.CreateMessageResponse` """ - http_info = self._update_device_http_info(request) + http_info = self._create_message_http_info(request) return self._call_api(**http_info) - def update_device_invoker(self, request): - http_info = self._update_device_http_info(request) + def create_message_invoker(self, request): + http_info = self._create_message_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _update_device_http_info(cls, request): + def _create_message_http_info(cls, request): http_info = { - "method": "PUT", - "resource_path": "/v5/iot/{project_id}/devices/{device_id}", + "method": "POST", + "resource_path": "/v5/iot/{project_id}/devices/{device_id}/messages", "request_type": request.__class__.__name__, - "response_type": "UpdateDeviceResponse" + "response_type": "CreateMessageResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -3988,33 +5256,31 @@ def _update_device_http_info(cls, request): return http_info - def create_device_proxy(self, request): - """创建设备代理 + def list_device_messages(self, request): + """查询设备消息 - 应用服务器可调用此接口在物联网平台创建一个动态设备代理规则,用于子设备自主选择网关设备上线和上报消息,即代理组下的任意网关下的子设备均可以通过代理组里其他设备上线([[网关更新子设备状态](https://support.huaweicloud.com/api-iothub/iot_06_v5_3022.html)](tag:hws) [[网关更新子设备状态](https://support.huaweicloud.com/intl/zh-cn/api-iothub/iot_06_v5_3022.html)](tag:hws_hk))然后进行数据上报([[网关批量设备属性上报](https://support.huaweicloud.com/api-iothub/iot_06_v5_3006.html)](tag:hws) [[网关更新子设备状态](https://support.huaweicloud.com/intl/zh-cn/api-iothub/iot_06_v5_3006.html)](tag:hws_hk))。 - - 单实例最多可以配置10个设备代理 - - 单账号调用该接口的 TPS 限制最大为1/S(每秒1次请求数) + 应用服务器可调用此接口查询平台下发给设备的消息,平台为每个设备默认最多保存20条消息,超过20条后, 后续的消息会替换下发最早的消息。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for CreateDeviceProxy - :type request: :class:`huaweicloudsdkiotda.v5.CreateDeviceProxyRequest` - :rtype: :class:`huaweicloudsdkiotda.v5.CreateDeviceProxyResponse` + :param request: Request instance for ListDeviceMessages + :type request: :class:`huaweicloudsdkiotda.v5.ListDeviceMessagesRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.ListDeviceMessagesResponse` """ - http_info = self._create_device_proxy_http_info(request) + http_info = self._list_device_messages_http_info(request) return self._call_api(**http_info) - def create_device_proxy_invoker(self, request): - http_info = self._create_device_proxy_http_info(request) + def list_device_messages_invoker(self, request): + http_info = self._list_device_messages_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _create_device_proxy_http_info(cls, request): + def _list_device_messages_http_info(cls, request): http_info = { - "method": "POST", - "resource_path": "/v5/iot/{project_id}/device-proxies", + "method": "GET", + "resource_path": "/v5/iot/{project_id}/devices/{device_id}/messages", "request_type": request.__class__.__name__, - "response_type": "CreateDeviceProxyResponse" + "response_type": "ListDeviceMessagesResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -4024,6 +5290,8 @@ def _create_device_proxy_http_info(cls, request): collection_formats = {} path_params = {} + if 'device_id' in local_var_params: + path_params['device_id'] = local_var_params['device_id'] query_params = [] @@ -4034,8 +5302,6 @@ def _create_device_proxy_http_info(cls, request): form_params = {} body = None - if 'body' in local_var_params: - body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -4057,31 +5323,31 @@ def _create_device_proxy_http_info(cls, request): return http_info - def delete_device_proxy(self, request): - """删除设备代理 + def show_device_message(self, request): + """查询指定消息id的消息 - 应用服务器可调用此接口在物联网平台上删除指定设备代理。 + 应用服务器可调用此接口查询平台下发给设备的指定消息id的消息。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for DeleteDeviceProxy - :type request: :class:`huaweicloudsdkiotda.v5.DeleteDeviceProxyRequest` - :rtype: :class:`huaweicloudsdkiotda.v5.DeleteDeviceProxyResponse` + :param request: Request instance for ShowDeviceMessage + :type request: :class:`huaweicloudsdkiotda.v5.ShowDeviceMessageRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.ShowDeviceMessageResponse` """ - http_info = self._delete_device_proxy_http_info(request) + http_info = self._show_device_message_http_info(request) return self._call_api(**http_info) - def delete_device_proxy_invoker(self, request): - http_info = self._delete_device_proxy_http_info(request) + def show_device_message_invoker(self, request): + http_info = self._show_device_message_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _delete_device_proxy_http_info(cls, request): + def _show_device_message_http_info(cls, request): http_info = { - "method": "DELETE", - "resource_path": "/v5/iot/{project_id}/device-proxies/{proxy_id}", + "method": "GET", + "resource_path": "/v5/iot/{project_id}/devices/{device_id}/messages/{message_id}", "request_type": request.__class__.__name__, - "response_type": "DeleteDeviceProxyResponse" + "response_type": "ShowDeviceMessageResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -4091,8 +5357,10 @@ def _delete_device_proxy_http_info(cls, request): collection_formats = {} path_params = {} - if 'proxy_id' in local_var_params: - path_params['proxy_id'] = local_var_params['proxy_id'] + if 'device_id' in local_var_params: + path_params['device_id'] = local_var_params['device_id'] + if 'message_id' in local_var_params: + path_params['message_id'] = local_var_params['message_id'] query_params = [] @@ -4124,31 +5392,32 @@ def _delete_device_proxy_http_info(cls, request): return http_info - def list_device_proxies(self, request): - """查询设备代理列表 + def create_ota_package(self, request): + """创建OTA升级包 - 应用服务器可调用此接口查询物联网平台中的设备代理列表。 + 用户可调用此接口创建升级包关联OBS对象 + 使用前提:使用该API需要您授权设备接入服务(IoTDA)的实例访问对象存储服务(OBS)以及 密钥管理服务(KMS Administrator)的权限。在“[[统一身份认证服务(IAM)](https://console.huaweicloud.com/iam)](tag:hws)[[统一身份认证服务(IAM)](https://console-intl.huaweicloud.com/iam)](tag:hws_hk) - 委托”中将委托名称为iotda_admin_trust的委托授权KMS Administrator和OBS OperateAccess Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListDeviceProxies - :type request: :class:`huaweicloudsdkiotda.v5.ListDeviceProxiesRequest` - :rtype: :class:`huaweicloudsdkiotda.v5.ListDeviceProxiesResponse` + :param request: Request instance for CreateOtaPackage + :type request: :class:`huaweicloudsdkiotda.v5.CreateOtaPackageRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.CreateOtaPackageResponse` """ - http_info = self._list_device_proxies_http_info(request) + http_info = self._create_ota_package_http_info(request) return self._call_api(**http_info) - def list_device_proxies_invoker(self, request): - http_info = self._list_device_proxies_http_info(request) + def create_ota_package_invoker(self, request): + http_info = self._create_ota_package_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _list_device_proxies_http_info(cls, request): + def _create_ota_package_http_info(cls, request): http_info = { - "method": "GET", - "resource_path": "/v5/iot/{project_id}/device-proxies", + "method": "POST", + "resource_path": "/v5/iot/{project_id}/ota-upgrades/packages", "request_type": request.__class__.__name__, - "response_type": "ListDeviceProxiesResponse" + "response_type": "CreateOtaPackageResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -4160,16 +5429,6 @@ def _list_device_proxies_http_info(cls, request): path_params = {} query_params = [] - if 'app_id' in local_var_params: - query_params.append(('app_id', local_var_params['app_id'])) - if 'proxy_name' in local_var_params: - query_params.append(('proxy_name', local_var_params['proxy_name'])) - 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 'offset' in local_var_params: - query_params.append(('offset', local_var_params['offset'])) header_params = {} if 'instance_id' in local_var_params: @@ -4178,6 +5437,8 @@ def _list_device_proxies_http_info(cls, request): form_params = {} body = None + if 'body' in local_var_params: + body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -4199,31 +5460,32 @@ def _list_device_proxies_http_info(cls, request): return http_info - def show_device_proxy(self, request): - """查询设备代理详情 + def delete_ota_package(self, request): + """删除OTA升级包 - 应用服务器可调用此接口查询物联网平台中指定设备代理的详细信息。 + 用户可调用此接口删除关联OBS对象的升级包信息,不会删除OBS上对象 + 使用前提:使用该API需要您授权设备接入服务(IoTDA)的实例访问对象存储服务(OBS)以及 密钥管理服务(KMS Administrator)的权限。在“[[统一身份认证服务(IAM)](https://console.huaweicloud.com/iam)](tag:hws)[[统一身份认证服务(IAM)](https://console-intl.huaweicloud.com/iam)](tag:hws_hk) - 委托”中将委托名称为iotda_admin_trust的委托授权KMS Administrator和OBS OperateAccess Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowDeviceProxy - :type request: :class:`huaweicloudsdkiotda.v5.ShowDeviceProxyRequest` - :rtype: :class:`huaweicloudsdkiotda.v5.ShowDeviceProxyResponse` + :param request: Request instance for DeleteOtaPackage + :type request: :class:`huaweicloudsdkiotda.v5.DeleteOtaPackageRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.DeleteOtaPackageResponse` """ - http_info = self._show_device_proxy_http_info(request) + http_info = self._delete_ota_package_http_info(request) return self._call_api(**http_info) - def show_device_proxy_invoker(self, request): - http_info = self._show_device_proxy_http_info(request) + def delete_ota_package_invoker(self, request): + http_info = self._delete_ota_package_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _show_device_proxy_http_info(cls, request): + def _delete_ota_package_http_info(cls, request): http_info = { - "method": "GET", - "resource_path": "/v5/iot/{project_id}/device-proxies/{proxy_id}", + "method": "DELETE", + "resource_path": "/v5/iot/{project_id}/ota-upgrades/packages/{package_id}", "request_type": request.__class__.__name__, - "response_type": "ShowDeviceProxyResponse" + "response_type": "DeleteOtaPackageResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -4233,8 +5495,8 @@ def _show_device_proxy_http_info(cls, request): collection_formats = {} path_params = {} - if 'proxy_id' in local_var_params: - path_params['proxy_id'] = local_var_params['proxy_id'] + if 'package_id' in local_var_params: + path_params['package_id'] = local_var_params['package_id'] query_params = [] @@ -4266,31 +5528,32 @@ def _show_device_proxy_http_info(cls, request): return http_info - def update_device_proxy(self, request): - """修改设备代理 + def list_ota_package_info(self, request): + """查询OTA升级包列表 - 应用服务器可调用此接口修改物联网平台中指定设备代理的基本信息。 + 用户可调用此接口查询关联OBS对象的升级包列表 + 使用前提:使用该API需要您授权设备接入服务(IoTDA)的实例访问对象存储服务(OBS)以及 密钥管理服务(KMS Administrator)的权限。在“[[统一身份认证服务(IAM)](https://console.huaweicloud.com/iam)](tag:hws)[[统一身份认证服务(IAM)](https://console-intl.huaweicloud.com/iam)](tag:hws_hk) - 委托”中将委托名称为iotda_admin_trust的委托授权KMS Administrator和OBS OperateAccess Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for UpdateDeviceProxy - :type request: :class:`huaweicloudsdkiotda.v5.UpdateDeviceProxyRequest` - :rtype: :class:`huaweicloudsdkiotda.v5.UpdateDeviceProxyResponse` + :param request: Request instance for ListOtaPackageInfo + :type request: :class:`huaweicloudsdkiotda.v5.ListOtaPackageInfoRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.ListOtaPackageInfoResponse` """ - http_info = self._update_device_proxy_http_info(request) + http_info = self._list_ota_package_info_http_info(request) return self._call_api(**http_info) - def update_device_proxy_invoker(self, request): - http_info = self._update_device_proxy_http_info(request) + def list_ota_package_info_invoker(self, request): + http_info = self._list_ota_package_info_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _update_device_proxy_http_info(cls, request): + def _list_ota_package_info_http_info(cls, request): http_info = { - "method": "PUT", - "resource_path": "/v5/iot/{project_id}/device-proxies/{proxy_id}", + "method": "GET", + "resource_path": "/v5/iot/{project_id}/ota-upgrades/packages", "request_type": request.__class__.__name__, - "response_type": "UpdateDeviceProxyResponse" + "response_type": "ListOtaPackageInfoResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -4300,10 +5563,22 @@ def _update_device_proxy_http_info(cls, request): collection_formats = {} path_params = {} - if 'proxy_id' in local_var_params: - path_params['proxy_id'] = local_var_params['proxy_id'] query_params = [] + if 'app_id' in local_var_params: + query_params.append(('app_id', local_var_params['app_id'])) + if 'package_type' in local_var_params: + query_params.append(('package_type', local_var_params['package_type'])) + if 'product_id' in local_var_params: + query_params.append(('product_id', local_var_params['product_id'])) + if 'version' in local_var_params: + query_params.append(('version', local_var_params['version'])) + 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 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) header_params = {} if 'instance_id' in local_var_params: @@ -4312,8 +5587,6 @@ def _update_device_proxy_http_info(cls, request): form_params = {} body = None - if 'body' in local_var_params: - body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -4335,41 +5608,32 @@ def _update_device_proxy_http_info(cls, request): return http_info - def show_device_shadow(self, request): - """查询设备影子数据 + def show_ota_package(self, request): + """获取OTA升级包详情 - 应用服务器可调用此接口查询指定设备的设备影子信息,包括对设备的期望属性信息(desired区)和设备最新上报的属性信息(reported区)。 - - 设备影子介绍: - 设备影子是一个用于存储和检索设备当前状态信息的JSON文档。 - - 每个设备有且只有一个设备影子,由设备ID唯一标识 - - 设备影子用于存储设备上报的(状态)属性和应用程序期望的设备(状态)属性 - - 无论该设备是否在线,都可以通过该影子获取和设置设备的属性 - - 设备上线或者设备上报属性时,如果desired区和reported区存在差异,则将差异部分下发给设备,配置的预期属性需在产品模型中定义且method具有可写属性“W”才可下发 - - 限制: - 设备影子JSON文档中的key不允许特殊字符:点(.)、dollar符号($)、空char(十六进制的ASCII码为00)。如果包含了以上特殊字符则无法正常刷新影子文档。 + 用户可调用此接口查询关联OBS对象的升级包详情 + 使用前提:使用该API需要您授权设备接入服务(IoTDA)的实例访问对象存储服务(OBS)以及 密钥管理服务(KMS Administrator)的权限。在“[[统一身份认证服务(IAM)](https://console.huaweicloud.com/iam)](tag:hws)[[统一身份认证服务(IAM)](https://console-intl.huaweicloud.com/iam)](tag:hws_hk) - 委托”中将委托名称为iotda_admin_trust的委托授权KMS Administrator和OBS OperateAccess Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowDeviceShadow - :type request: :class:`huaweicloudsdkiotda.v5.ShowDeviceShadowRequest` - :rtype: :class:`huaweicloudsdkiotda.v5.ShowDeviceShadowResponse` + :param request: Request instance for ShowOtaPackage + :type request: :class:`huaweicloudsdkiotda.v5.ShowOtaPackageRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.ShowOtaPackageResponse` """ - http_info = self._show_device_shadow_http_info(request) + http_info = self._show_ota_package_http_info(request) return self._call_api(**http_info) - def show_device_shadow_invoker(self, request): - http_info = self._show_device_shadow_http_info(request) + def show_ota_package_invoker(self, request): + http_info = self._show_ota_package_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _show_device_shadow_http_info(cls, request): + def _show_ota_package_http_info(cls, request): http_info = { "method": "GET", - "resource_path": "/v5/iot/{project_id}/devices/{device_id}/shadow", + "resource_path": "/v5/iot/{project_id}/ota-upgrades/packages/{package_id}", "request_type": request.__class__.__name__, - "response_type": "ShowDeviceShadowResponse" + "response_type": "ShowOtaPackageResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -4379,8 +5643,8 @@ def _show_device_shadow_http_info(cls, request): collection_formats = {} path_params = {} - if 'device_id' in local_var_params: - path_params['device_id'] = local_var_params['device_id'] + if 'package_id' in local_var_params: + path_params['package_id'] = local_var_params['package_id'] query_params = [] @@ -4412,42 +5676,31 @@ def _show_device_shadow_http_info(cls, request): return http_info - def update_device_shadow_desired_data(self, request): - """配置设备影子预期数据 + def bind_device_policy(self, request): + """绑定设备策略 - 应用服务器可调用此接口配置设备影子的预期属性(desired区),当设备上线或者设备上报属性时把属性下发给设备。 - - 设备影子介绍: - 设备影子是一个用于存储和检索设备当前状态信息的JSON文档。 - - 每个设备有且只有一个设备影子,由设备ID唯一标识 - - 设备影子用于存储设备上报的(状态)属性和应用程序期望的设备(状态)属性 - - 无论该设备是否在线,都可以通过该影子获取和设置设备的属性 - - 设备上线或者设备上报属性时,如果desired区和reported区存在差异,则将差异部分下发给设备,配置的预期属性需在产品模型中定义且method具有可写属性“W”才可下发 - - 该接口仅支持配置单个设备的设备影子的预期数据,如需多个设备的设备影子配置,请参见 [[创建批量任务](https://support.huaweicloud.com/api-iothub/iot_06_v5_0045.html)](tag:hws)[[创建批量任务](https://support.huaweicloud.com/intl/zh-cn/api-iothub/iot_06_v5_0045.html)](tag:hws_hk)。 - - 限制: - 设备影子JSON文档中的key不允许特殊字符:点(.)、dollar符号($)、空char(十六进制的ASCII码为00)。如果包含了以上特殊字符则无法正常刷新影子文档。 + 应用服务器可调用此接口在物联网平台上为批量设备绑定目标策略,目前支持绑定目标类型为:设备、产品,当目标类型为产品时,该产品下所有设备都会生效。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for UpdateDeviceShadowDesiredData - :type request: :class:`huaweicloudsdkiotda.v5.UpdateDeviceShadowDesiredDataRequest` - :rtype: :class:`huaweicloudsdkiotda.v5.UpdateDeviceShadowDesiredDataResponse` + :param request: Request instance for BindDevicePolicy + :type request: :class:`huaweicloudsdkiotda.v5.BindDevicePolicyRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.BindDevicePolicyResponse` """ - http_info = self._update_device_shadow_desired_data_http_info(request) + http_info = self._bind_device_policy_http_info(request) return self._call_api(**http_info) - def update_device_shadow_desired_data_invoker(self, request): - http_info = self._update_device_shadow_desired_data_http_info(request) + def bind_device_policy_invoker(self, request): + http_info = self._bind_device_policy_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _update_device_shadow_desired_data_http_info(cls, request): + def _bind_device_policy_http_info(cls, request): http_info = { - "method": "PUT", - "resource_path": "/v5/iot/{project_id}/devices/{device_id}/shadow", + "method": "POST", + "resource_path": "/v5/iot/{project_id}/device-policies/{policy_id}/bind", "request_type": request.__class__.__name__, - "response_type": "UpdateDeviceShadowDesiredDataResponse" + "response_type": "BindDevicePolicyResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -4457,8 +5710,8 @@ def _update_device_shadow_desired_data_http_info(cls, request): collection_formats = {} path_params = {} - if 'device_id' in local_var_params: - path_params['device_id'] = local_var_params['device_id'] + if 'policy_id' in local_var_params: + path_params['policy_id'] = local_var_params['policy_id'] query_params = [] @@ -4492,31 +5745,33 @@ def _update_device_shadow_desired_data_http_info(cls, request): return http_info - def create_routing_flow_control_policy(self, request): - """新建数据流转流控策略 + def create_device_policy(self, request): + """创建设备策略 - 应用服务器可调用此接口在物联网平台创建数据流转流控策略。 + 应用服务器可调用此接口在物联网平台创建一个策略,该策略需要绑定到设备和产品下才能生效。 + - 一个实例最多能创建50个设备策略。 + - 仅**标准版实例、企业版实例**支持该接口调用,基础版不支持。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for CreateRoutingFlowControlPolicy - :type request: :class:`huaweicloudsdkiotda.v5.CreateRoutingFlowControlPolicyRequest` - :rtype: :class:`huaweicloudsdkiotda.v5.CreateRoutingFlowControlPolicyResponse` + :param request: Request instance for CreateDevicePolicy + :type request: :class:`huaweicloudsdkiotda.v5.CreateDevicePolicyRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.CreateDevicePolicyResponse` """ - http_info = self._create_routing_flow_control_policy_http_info(request) + http_info = self._create_device_policy_http_info(request) return self._call_api(**http_info) - def create_routing_flow_control_policy_invoker(self, request): - http_info = self._create_routing_flow_control_policy_http_info(request) + def create_device_policy_invoker(self, request): + http_info = self._create_device_policy_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _create_routing_flow_control_policy_http_info(cls, request): + def _create_device_policy_http_info(cls, request): http_info = { "method": "POST", - "resource_path": "/v5/iot/{project_id}/routing-rule/flowcontrol-policy", + "resource_path": "/v5/iot/{project_id}/device-policies", "request_type": request.__class__.__name__, - "response_type": "CreateRoutingFlowControlPolicyResponse" + "response_type": "CreateDevicePolicyResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -4544,7 +5799,7 @@ def _create_routing_flow_control_policy_http_info(cls, request): response_headers = [] header_params['Content-Type'] = http_utils.select_header_content_type( - ['application/json;charset=UTF-8']) + ['application/json']) auth_settings = [] @@ -4559,31 +5814,31 @@ def _create_routing_flow_control_policy_http_info(cls, request): return http_info - def delete_routing_flow_control_policy(self, request): - """删除数据流转流控策略 + def delete_device_policy(self, request): + """删除设备策略 - 应用服务器可调用此接口在物联网平台删除指定数据流转流控策略。 + 应用服务器可调用此接口在物联网平台上删除指定策略,注意:删除策略同时会解绑该策略下所有绑定对象。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for DeleteRoutingFlowControlPolicy - :type request: :class:`huaweicloudsdkiotda.v5.DeleteRoutingFlowControlPolicyRequest` - :rtype: :class:`huaweicloudsdkiotda.v5.DeleteRoutingFlowControlPolicyResponse` + :param request: Request instance for DeleteDevicePolicy + :type request: :class:`huaweicloudsdkiotda.v5.DeleteDevicePolicyRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.DeleteDevicePolicyResponse` """ - http_info = self._delete_routing_flow_control_policy_http_info(request) + http_info = self._delete_device_policy_http_info(request) return self._call_api(**http_info) - def delete_routing_flow_control_policy_invoker(self, request): - http_info = self._delete_routing_flow_control_policy_http_info(request) + def delete_device_policy_invoker(self, request): + http_info = self._delete_device_policy_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _delete_routing_flow_control_policy_http_info(cls, request): + def _delete_device_policy_http_info(cls, request): http_info = { "method": "DELETE", - "resource_path": "/v5/iot/{project_id}/routing-rule/flowcontrol-policy/{policy_id}", + "resource_path": "/v5/iot/{project_id}/device-policies/{policy_id}", "request_type": request.__class__.__name__, - "response_type": "DeleteRoutingFlowControlPolicyResponse" + "response_type": "DeleteDevicePolicyResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -4626,31 +5881,31 @@ def _delete_routing_flow_control_policy_http_info(cls, request): return http_info - def list_routing_flow_control_policy(self, request): - """查询数据流转流控策略列表 + def list_device_policies(self, request): + """查询设备策略列表 - 应用服务器可调用此接口查询在物联网平台设置的数据流转流控策略列表。 + 应用服务器可调用此接口在物联网平台查询策略列表。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListRoutingFlowControlPolicy - :type request: :class:`huaweicloudsdkiotda.v5.ListRoutingFlowControlPolicyRequest` - :rtype: :class:`huaweicloudsdkiotda.v5.ListRoutingFlowControlPolicyResponse` + :param request: Request instance for ListDevicePolicies + :type request: :class:`huaweicloudsdkiotda.v5.ListDevicePoliciesRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.ListDevicePoliciesResponse` """ - http_info = self._list_routing_flow_control_policy_http_info(request) + http_info = self._list_device_policies_http_info(request) return self._call_api(**http_info) - def list_routing_flow_control_policy_invoker(self, request): - http_info = self._list_routing_flow_control_policy_http_info(request) + def list_device_policies_invoker(self, request): + http_info = self._list_device_policies_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _list_routing_flow_control_policy_http_info(cls, request): + def _list_device_policies_http_info(cls, request): http_info = { "method": "GET", - "resource_path": "/v5/iot/{project_id}/routing-rule/flowcontrol-policy", + "resource_path": "/v5/iot/{project_id}/device-policies", "request_type": request.__class__.__name__, - "response_type": "ListRoutingFlowControlPolicyResponse" + "response_type": "ListDevicePoliciesResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -4662,10 +5917,8 @@ def _list_routing_flow_control_policy_http_info(cls, request): path_params = {} query_params = [] - if 'scope' in local_var_params: - query_params.append(('scope', local_var_params['scope'])) - if 'scope_value' in local_var_params: - query_params.append(('scope_value', local_var_params['scope_value'])) + if 'app_id' in local_var_params: + query_params.append(('app_id', local_var_params['app_id'])) if 'policy_name' in local_var_params: query_params.append(('policy_name', local_var_params['policy_name'])) if 'limit' in local_var_params: @@ -4703,31 +5956,31 @@ def _list_routing_flow_control_policy_http_info(cls, request): return http_info - def show_routing_flow_control_policy(self, request): - """查询数据流转流控策略 + def show_device_policy(self, request): + """查询设备策略详情 - 应用服务器可调用此接口在物联网平台查询指定数据流转流控策略。 + 应用服务器可调用此接口在物联网平台查询指定策略ID的详细信息。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowRoutingFlowControlPolicy - :type request: :class:`huaweicloudsdkiotda.v5.ShowRoutingFlowControlPolicyRequest` - :rtype: :class:`huaweicloudsdkiotda.v5.ShowRoutingFlowControlPolicyResponse` + :param request: Request instance for ShowDevicePolicy + :type request: :class:`huaweicloudsdkiotda.v5.ShowDevicePolicyRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.ShowDevicePolicyResponse` """ - http_info = self._show_routing_flow_control_policy_http_info(request) + http_info = self._show_device_policy_http_info(request) return self._call_api(**http_info) - def show_routing_flow_control_policy_invoker(self, request): - http_info = self._show_routing_flow_control_policy_http_info(request) + def show_device_policy_invoker(self, request): + http_info = self._show_device_policy_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _show_routing_flow_control_policy_http_info(cls, request): + def _show_device_policy_http_info(cls, request): http_info = { "method": "GET", - "resource_path": "/v5/iot/{project_id}/routing-rule/flowcontrol-policy/{policy_id}", + "resource_path": "/v5/iot/{project_id}/device-policies/{policy_id}", "request_type": request.__class__.__name__, - "response_type": "ShowRoutingFlowControlPolicyResponse" + "response_type": "ShowDevicePolicyResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -4770,31 +6023,31 @@ def _show_routing_flow_control_policy_http_info(cls, request): return http_info - def update_routing_flow_control_policy(self, request): - """修改数据流转流控策略 + def show_targets_in_device_policy(self, request): + """查询设备策略绑定的目标列表 - 应用服务器可调用此接口在物联网平台修改指定数据流转流控策略。 + 应用服务器可调用此接口在物联网平台上查询指定策略ID下绑定的目标列表。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for UpdateRoutingFlowControlPolicy - :type request: :class:`huaweicloudsdkiotda.v5.UpdateRoutingFlowControlPolicyRequest` - :rtype: :class:`huaweicloudsdkiotda.v5.UpdateRoutingFlowControlPolicyResponse` + :param request: Request instance for ShowTargetsInDevicePolicy + :type request: :class:`huaweicloudsdkiotda.v5.ShowTargetsInDevicePolicyRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.ShowTargetsInDevicePolicyResponse` """ - http_info = self._update_routing_flow_control_policy_http_info(request) + http_info = self._show_targets_in_device_policy_http_info(request) return self._call_api(**http_info) - def update_routing_flow_control_policy_invoker(self, request): - http_info = self._update_routing_flow_control_policy_http_info(request) + def show_targets_in_device_policy_invoker(self, request): + http_info = self._show_targets_in_device_policy_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _update_routing_flow_control_policy_http_info(cls, request): + def _show_targets_in_device_policy_http_info(cls, request): http_info = { - "method": "PUT", - "resource_path": "/v5/iot/{project_id}/routing-rule/flowcontrol-policy/{policy_id}", + "method": "POST", + "resource_path": "/v5/iot/{project_id}/device-policies/{policy_id}/list-targets", "request_type": request.__class__.__name__, - "response_type": "UpdateRoutingFlowControlPolicyResponse" + "response_type": "ShowTargetsInDevicePolicyResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -4824,7 +6077,7 @@ def _update_routing_flow_control_policy_http_info(cls, request): response_headers = [] header_params['Content-Type'] = http_utils.select_header_content_type( - ['application/json;charset=UTF-8']) + ['application/json']) auth_settings = [] @@ -4839,34 +6092,31 @@ def _update_routing_flow_control_policy_http_info(cls, request): return http_info - def create_message(self, request): - """下发设备消息 + def unbind_device_policy(self, request): + """解绑设备策略 - 物联网平台可向设备下发消息,应用服务器可调用此接口向指定设备下发消息,以实现对设备的控制。应用将消息下发给平台后,平台返回应用响应结果,平台再将消息发送给设备。平台返回应用响应结果不一定是设备接收结果,建议用户应用通过订阅[[设备消息状态变更通知](https://support.huaweicloud.com/api-iothub/iot_06_v5_01203.html)](tag:hws)[[设备消息状态变更通知](https://support.huaweicloud.com/intl/zh-cn/api-iothub/iot_06_v5_01203.html)](tag:hws_hk),订阅后平台会将设备接收结果推送给订阅的应用。 - 注意: - - 此接口适用于MQTT设备消息下发,暂不支持其他协议接入的设备消息下发。 - - 此接口仅支持单个设备消息下发,如需多个设备消息下发,请参见 [[创建批量任务](https://support.huaweicloud.com/api-iothub/iot_06_v5_0045.html)](tag:hws)[[创建批量任务](https://support.huaweicloud.com/intl/zh-cn/api-iothub/iot_06_v5_0045.html)](tag:hws_hk)。 + 应用服务器可调用此接口在物联网平台上解除指定策略下绑定的目标对象。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for CreateMessage - :type request: :class:`huaweicloudsdkiotda.v5.CreateMessageRequest` - :rtype: :class:`huaweicloudsdkiotda.v5.CreateMessageResponse` + :param request: Request instance for UnbindDevicePolicy + :type request: :class:`huaweicloudsdkiotda.v5.UnbindDevicePolicyRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.UnbindDevicePolicyResponse` """ - http_info = self._create_message_http_info(request) + http_info = self._unbind_device_policy_http_info(request) return self._call_api(**http_info) - def create_message_invoker(self, request): - http_info = self._create_message_http_info(request) + def unbind_device_policy_invoker(self, request): + http_info = self._unbind_device_policy_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _create_message_http_info(cls, request): + def _unbind_device_policy_http_info(cls, request): http_info = { "method": "POST", - "resource_path": "/v5/iot/{project_id}/devices/{device_id}/messages", + "resource_path": "/v5/iot/{project_id}/device-policies/{policy_id}/unbind", "request_type": request.__class__.__name__, - "response_type": "CreateMessageResponse" + "response_type": "UnbindDevicePolicyResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -4876,8 +6126,8 @@ def _create_message_http_info(cls, request): collection_formats = {} path_params = {} - if 'device_id' in local_var_params: - path_params['device_id'] = local_var_params['device_id'] + if 'policy_id' in local_var_params: + path_params['policy_id'] = local_var_params['policy_id'] query_params = [] @@ -4911,31 +6161,31 @@ def _create_message_http_info(cls, request): return http_info - def list_device_messages(self, request): - """查询设备消息 + def update_device_policy(self, request): + """更新设备策略信息 - 应用服务器可调用此接口查询平台下发给设备的消息,平台为每个设备默认最多保存20条消息,超过20条后, 后续的消息会替换下发最早的消息。 + 应用服务器可调用此接口在物联网平台更新策略。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListDeviceMessages - :type request: :class:`huaweicloudsdkiotda.v5.ListDeviceMessagesRequest` - :rtype: :class:`huaweicloudsdkiotda.v5.ListDeviceMessagesResponse` + :param request: Request instance for UpdateDevicePolicy + :type request: :class:`huaweicloudsdkiotda.v5.UpdateDevicePolicyRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.UpdateDevicePolicyResponse` """ - http_info = self._list_device_messages_http_info(request) + http_info = self._update_device_policy_http_info(request) return self._call_api(**http_info) - def list_device_messages_invoker(self, request): - http_info = self._list_device_messages_http_info(request) + def update_device_policy_invoker(self, request): + http_info = self._update_device_policy_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _list_device_messages_http_info(cls, request): + def _update_device_policy_http_info(cls, request): http_info = { - "method": "GET", - "resource_path": "/v5/iot/{project_id}/devices/{device_id}/messages", + "method": "PUT", + "resource_path": "/v5/iot/{project_id}/device-policies/{policy_id}", "request_type": request.__class__.__name__, - "response_type": "ListDeviceMessagesResponse" + "response_type": "UpdateDevicePolicyResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -4945,8 +6195,8 @@ def _list_device_messages_http_info(cls, request): collection_formats = {} path_params = {} - if 'device_id' in local_var_params: - path_params['device_id'] = local_var_params['device_id'] + if 'policy_id' in local_var_params: + path_params['policy_id'] = local_var_params['policy_id'] query_params = [] @@ -4957,6 +6207,8 @@ def _list_device_messages_http_info(cls, request): form_params = {} body = None + if 'body' in local_var_params: + body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -4978,31 +6230,31 @@ def _list_device_messages_http_info(cls, request): return http_info - def show_device_message(self, request): - """查询指定消息id的消息 + def create_product(self, request): + """创建产品 - 应用服务器可调用此接口查询平台下发给设备的指定消息id的消息。 + 应用服务器可调用此接口创建产品。此接口仅创建了产品,没有创建和安装插件,如果需要对数据进行编解码,还需要在平台开发和安装插件。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowDeviceMessage - :type request: :class:`huaweicloudsdkiotda.v5.ShowDeviceMessageRequest` - :rtype: :class:`huaweicloudsdkiotda.v5.ShowDeviceMessageResponse` + :param request: Request instance for CreateProduct + :type request: :class:`huaweicloudsdkiotda.v5.CreateProductRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.CreateProductResponse` """ - http_info = self._show_device_message_http_info(request) + http_info = self._create_product_http_info(request) return self._call_api(**http_info) - def show_device_message_invoker(self, request): - http_info = self._show_device_message_http_info(request) + def create_product_invoker(self, request): + http_info = self._create_product_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _show_device_message_http_info(cls, request): + def _create_product_http_info(cls, request): http_info = { - "method": "GET", - "resource_path": "/v5/iot/{project_id}/devices/{device_id}/messages/{message_id}", + "method": "POST", + "resource_path": "/v5/iot/{project_id}/products", "request_type": request.__class__.__name__, - "response_type": "ShowDeviceMessageResponse" + "response_type": "CreateProductResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -5012,10 +6264,6 @@ def _show_device_message_http_info(cls, request): collection_formats = {} path_params = {} - if 'device_id' in local_var_params: - path_params['device_id'] = local_var_params['device_id'] - if 'message_id' in local_var_params: - path_params['message_id'] = local_var_params['message_id'] query_params = [] @@ -5026,13 +6274,15 @@ def _show_device_message_http_info(cls, request): form_params = {} body = None + if 'body' in local_var_params: + body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() response_headers = [] header_params['Content-Type'] = http_utils.select_header_content_type( - ['application/json']) + ['application/json;charset=UTF-8']) auth_settings = [] @@ -5047,32 +6297,31 @@ def _show_device_message_http_info(cls, request): return http_info - def create_ota_package(self, request): - """创建OTA升级包 + def delete_product(self, request): + """删除产品 - 用户可调用此接口创建升级包关联OBS对象 - 使用前提:使用该API需要您授权设备接入服务(IoTDA)的实例访问对象存储服务(OBS)以及 密钥管理服务(KMS Administrator)的权限。在“[[统一身份认证服务(IAM)](https://console.huaweicloud.com/iam)](tag:hws)[[统一身份认证服务(IAM)](https://console-intl.huaweicloud.com/iam)](tag:hws_hk) - 委托”中将委托名称为iotda_admin_trust的委托授权KMS Administrator和OBS OperateAccess + 应用服务器可调用此接口删除已导入物联网平台的指定产品模型。此接口仅删除了产品,未删除关联的插件,在产品下存在设备时,该产品不允许删除。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for CreateOtaPackage - :type request: :class:`huaweicloudsdkiotda.v5.CreateOtaPackageRequest` - :rtype: :class:`huaweicloudsdkiotda.v5.CreateOtaPackageResponse` + :param request: Request instance for DeleteProduct + :type request: :class:`huaweicloudsdkiotda.v5.DeleteProductRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.DeleteProductResponse` """ - http_info = self._create_ota_package_http_info(request) + http_info = self._delete_product_http_info(request) return self._call_api(**http_info) - def create_ota_package_invoker(self, request): - http_info = self._create_ota_package_http_info(request) + def delete_product_invoker(self, request): + http_info = self._delete_product_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _create_ota_package_http_info(cls, request): + def _delete_product_http_info(cls, request): http_info = { - "method": "POST", - "resource_path": "/v5/iot/{project_id}/ota-upgrades/packages", + "method": "DELETE", + "resource_path": "/v5/iot/{project_id}/products/{product_id}", "request_type": request.__class__.__name__, - "response_type": "CreateOtaPackageResponse" + "response_type": "DeleteProductResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -5082,8 +6331,12 @@ def _create_ota_package_http_info(cls, request): collection_formats = {} path_params = {} + if 'product_id' in local_var_params: + path_params['product_id'] = local_var_params['product_id'] query_params = [] + if 'app_id' in local_var_params: + query_params.append(('app_id', local_var_params['app_id'])) header_params = {} if 'instance_id' in local_var_params: @@ -5092,8 +6345,6 @@ def _create_ota_package_http_info(cls, request): form_params = {} body = None - if 'body' in local_var_params: - body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -5115,32 +6366,31 @@ def _create_ota_package_http_info(cls, request): return http_info - def delete_ota_package(self, request): - """删除OTA升级包 + def list_products(self, request): + """查询产品列表 - 用户可调用此接口删除关联OBS对象的升级包信息,不会删除OBS上对象 - 使用前提:使用该API需要您授权设备接入服务(IoTDA)的实例访问对象存储服务(OBS)以及 密钥管理服务(KMS Administrator)的权限。在“[[统一身份认证服务(IAM)](https://console.huaweicloud.com/iam)](tag:hws)[[统一身份认证服务(IAM)](https://console-intl.huaweicloud.com/iam)](tag:hws_hk) - 委托”中将委托名称为iotda_admin_trust的委托授权KMS Administrator和OBS OperateAccess + 应用服务器可调用此接口查询已导入物联网平台的产品模型信息列表,了解产品模型的概要信息。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for DeleteOtaPackage - :type request: :class:`huaweicloudsdkiotda.v5.DeleteOtaPackageRequest` - :rtype: :class:`huaweicloudsdkiotda.v5.DeleteOtaPackageResponse` + :param request: Request instance for ListProducts + :type request: :class:`huaweicloudsdkiotda.v5.ListProductsRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.ListProductsResponse` """ - http_info = self._delete_ota_package_http_info(request) + http_info = self._list_products_http_info(request) return self._call_api(**http_info) - def delete_ota_package_invoker(self, request): - http_info = self._delete_ota_package_http_info(request) + def list_products_invoker(self, request): + http_info = self._list_products_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _delete_ota_package_http_info(cls, request): + def _list_products_http_info(cls, request): http_info = { - "method": "DELETE", - "resource_path": "/v5/iot/{project_id}/ota-upgrades/packages/{package_id}", + "method": "GET", + "resource_path": "/v5/iot/{project_id}/products", "request_type": request.__class__.__name__, - "response_type": "DeleteOtaPackageResponse" + "response_type": "ListProductsResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -5150,10 +6400,18 @@ def _delete_ota_package_http_info(cls, request): collection_formats = {} path_params = {} - if 'package_id' in local_var_params: - path_params['package_id'] = local_var_params['package_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'])) + if 'app_id' in local_var_params: + query_params.append(('app_id', local_var_params['app_id'])) + if 'product_name' in local_var_params: + query_params.append(('product_name', local_var_params['product_name'])) + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) header_params = {} if 'instance_id' in local_var_params: @@ -5183,32 +6441,31 @@ def _delete_ota_package_http_info(cls, request): return http_info - def list_ota_package_info(self, request): - """查询OTA升级包列表 + def show_product(self, request): + """查询产品 - 用户可调用此接口查询关联OBS对象的升级包列表 - 使用前提:使用该API需要您授权设备接入服务(IoTDA)的实例访问对象存储服务(OBS)以及 密钥管理服务(KMS Administrator)的权限。在“[[统一身份认证服务(IAM)](https://console.huaweicloud.com/iam)](tag:hws)[[统一身份认证服务(IAM)](https://console-intl.huaweicloud.com/iam)](tag:hws_hk) - 委托”中将委托名称为iotda_admin_trust的委托授权KMS Administrator和OBS OperateAccess + 应用服务器可调用此接口查询已导入物联网平台的指定产品模型详细信息,包括产品模型的服务、属性、命令等。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListOtaPackageInfo - :type request: :class:`huaweicloudsdkiotda.v5.ListOtaPackageInfoRequest` - :rtype: :class:`huaweicloudsdkiotda.v5.ListOtaPackageInfoResponse` + :param request: Request instance for ShowProduct + :type request: :class:`huaweicloudsdkiotda.v5.ShowProductRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.ShowProductResponse` """ - http_info = self._list_ota_package_info_http_info(request) + http_info = self._show_product_http_info(request) return self._call_api(**http_info) - def list_ota_package_info_invoker(self, request): - http_info = self._list_ota_package_info_http_info(request) + def show_product_invoker(self, request): + http_info = self._show_product_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _list_ota_package_info_http_info(cls, request): + def _show_product_http_info(cls, request): http_info = { "method": "GET", - "resource_path": "/v5/iot/{project_id}/ota-upgrades/packages", + "resource_path": "/v5/iot/{project_id}/products/{product_id}", "request_type": request.__class__.__name__, - "response_type": "ListOtaPackageInfoResponse" + "response_type": "ShowProductResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -5218,22 +6475,12 @@ def _list_ota_package_info_http_info(cls, request): collection_formats = {} path_params = {} + if 'product_id' in local_var_params: + path_params['product_id'] = local_var_params['product_id'] query_params = [] if 'app_id' in local_var_params: query_params.append(('app_id', local_var_params['app_id'])) - if 'package_type' in local_var_params: - query_params.append(('package_type', local_var_params['package_type'])) - if 'product_id' in local_var_params: - query_params.append(('product_id', local_var_params['product_id'])) - if 'version' in local_var_params: - query_params.append(('version', local_var_params['version'])) - 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 'offset' in local_var_params: - query_params.append(('offset', local_var_params['offset'])) header_params = {} if 'instance_id' in local_var_params: @@ -5263,32 +6510,31 @@ def _list_ota_package_info_http_info(cls, request): return http_info - def show_ota_package(self, request): - """获取OTA升级包详情 + def update_product(self, request): + """修改产品 - 用户可调用此接口查询关联OBS对象的升级包详情 - 使用前提:使用该API需要您授权设备接入服务(IoTDA)的实例访问对象存储服务(OBS)以及 密钥管理服务(KMS Administrator)的权限。在“[[统一身份认证服务(IAM)](https://console.huaweicloud.com/iam)](tag:hws)[[统一身份认证服务(IAM)](https://console-intl.huaweicloud.com/iam)](tag:hws_hk) - 委托”中将委托名称为iotda_admin_trust的委托授权KMS Administrator和OBS OperateAccess + 应用服务器可调用此接口修改已导入物联网平台的指定产品模型,包括产品模型的服务、属性、命令等。此接口仅修改了产品,未修改和安装插件,如果修改了产品中的service定义,且在平台中有对应的插件,请修改并重新安装插件。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowOtaPackage - :type request: :class:`huaweicloudsdkiotda.v5.ShowOtaPackageRequest` - :rtype: :class:`huaweicloudsdkiotda.v5.ShowOtaPackageResponse` + :param request: Request instance for UpdateProduct + :type request: :class:`huaweicloudsdkiotda.v5.UpdateProductRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.UpdateProductResponse` """ - http_info = self._show_ota_package_http_info(request) + http_info = self._update_product_http_info(request) return self._call_api(**http_info) - def show_ota_package_invoker(self, request): - http_info = self._show_ota_package_http_info(request) + def update_product_invoker(self, request): + http_info = self._update_product_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _show_ota_package_http_info(cls, request): + def _update_product_http_info(cls, request): http_info = { - "method": "GET", - "resource_path": "/v5/iot/{project_id}/ota-upgrades/packages/{package_id}", + "method": "PUT", + "resource_path": "/v5/iot/{project_id}/products/{product_id}", "request_type": request.__class__.__name__, - "response_type": "ShowOtaPackageResponse" + "response_type": "UpdateProductResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -5298,8 +6544,8 @@ def _show_ota_package_http_info(cls, request): collection_formats = {} path_params = {} - if 'package_id' in local_var_params: - path_params['package_id'] = local_var_params['package_id'] + if 'product_id' in local_var_params: + path_params['product_id'] = local_var_params['product_id'] query_params = [] @@ -5310,13 +6556,15 @@ def _show_ota_package_http_info(cls, request): form_params = {} body = None + if 'body' in local_var_params: + body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() response_headers = [] header_params['Content-Type'] = http_utils.select_header_content_type( - ['application/json']) + ['application/json;charset=UTF-8']) auth_settings = [] @@ -5331,31 +6579,32 @@ def _show_ota_package_http_info(cls, request): return http_info - def create_product(self, request): - """创建产品 + def list_properties(self, request): + """查询设备属性 - 应用服务器可调用此接口创建产品。此接口仅创建了产品,没有创建和安装插件,如果需要对数据进行编解码,还需要在平台开发和安装插件。 + 设备的产品模型中定义了物联网平台可向设备下发的属性,应用服务器可调用此接口向设备发送指令用以查询设备的实时属性, 并由设备将属性查询的结果同步返回给应用服务器。 + 注意:此接口适用于MQTT设备,暂不支持NB-IoT设备。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for CreateProduct - :type request: :class:`huaweicloudsdkiotda.v5.CreateProductRequest` - :rtype: :class:`huaweicloudsdkiotda.v5.CreateProductResponse` + :param request: Request instance for ListProperties + :type request: :class:`huaweicloudsdkiotda.v5.ListPropertiesRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.ListPropertiesResponse` """ - http_info = self._create_product_http_info(request) + http_info = self._list_properties_http_info(request) return self._call_api(**http_info) - def create_product_invoker(self, request): - http_info = self._create_product_http_info(request) + def list_properties_invoker(self, request): + http_info = self._list_properties_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _create_product_http_info(cls, request): + def _list_properties_http_info(cls, request): http_info = { - "method": "POST", - "resource_path": "/v5/iot/{project_id}/products", + "method": "GET", + "resource_path": "/v5/iot/{project_id}/devices/{device_id}/properties", "request_type": request.__class__.__name__, - "response_type": "CreateProductResponse" + "response_type": "ListPropertiesResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -5365,8 +6614,12 @@ def _create_product_http_info(cls, request): collection_formats = {} path_params = {} + if 'device_id' in local_var_params: + path_params['device_id'] = local_var_params['device_id'] query_params = [] + if 'service_id' in local_var_params: + query_params.append(('service_id', local_var_params['service_id'])) header_params = {} if 'instance_id' in local_var_params: @@ -5375,15 +6628,13 @@ def _create_product_http_info(cls, request): form_params = {} body = None - if 'body' in local_var_params: - body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() response_headers = [] header_params['Content-Type'] = http_utils.select_header_content_type( - ['application/json;charset=UTF-8']) + ['application/json']) auth_settings = [] @@ -5398,31 +6649,32 @@ def _create_product_http_info(cls, request): return http_info - def delete_product(self, request): - """删除产品 + def update_properties(self, request): + """修改设备属性 - 应用服务器可调用此接口删除已导入物联网平台的指定产品模型。此接口仅删除了产品,未删除关联的插件,在产品下存在设备时,该产品不允许删除。 + 设备的产品模型中定义了物联网平台可向设备下发的属性,应用服务器可调用此接口向指定设备下发属性。平台负责将属性以同步方式发送给设备,并将设备执行属性结果同步返回。 + 注意:此接口适用于MQTT设备,暂不支持NB-IoT设备。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for DeleteProduct - :type request: :class:`huaweicloudsdkiotda.v5.DeleteProductRequest` - :rtype: :class:`huaweicloudsdkiotda.v5.DeleteProductResponse` + :param request: Request instance for UpdateProperties + :type request: :class:`huaweicloudsdkiotda.v5.UpdatePropertiesRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.UpdatePropertiesResponse` """ - http_info = self._delete_product_http_info(request) + http_info = self._update_properties_http_info(request) return self._call_api(**http_info) - def delete_product_invoker(self, request): - http_info = self._delete_product_http_info(request) + def update_properties_invoker(self, request): + http_info = self._update_properties_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _delete_product_http_info(cls, request): + def _update_properties_http_info(cls, request): http_info = { - "method": "DELETE", - "resource_path": "/v5/iot/{project_id}/products/{product_id}", + "method": "PUT", + "resource_path": "/v5/iot/{project_id}/devices/{device_id}/properties", "request_type": request.__class__.__name__, - "response_type": "DeleteProductResponse" + "response_type": "UpdatePropertiesResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -5432,12 +6684,10 @@ def _delete_product_http_info(cls, request): collection_formats = {} path_params = {} - if 'product_id' in local_var_params: - path_params['product_id'] = local_var_params['product_id'] + if 'device_id' in local_var_params: + path_params['device_id'] = local_var_params['device_id'] query_params = [] - if 'app_id' in local_var_params: - query_params.append(('app_id', local_var_params['app_id'])) header_params = {} if 'instance_id' in local_var_params: @@ -5446,6 +6696,8 @@ def _delete_product_http_info(cls, request): form_params = {} body = None + if 'body' in local_var_params: + body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -5467,31 +6719,34 @@ def _delete_product_http_info(cls, request): return http_info - def list_products(self, request): - """查询产品列表 + def create_provisioning_template(self, request): + """创建预调配模板 - 应用服务器可调用此接口查询已导入物联网平台的产品模型信息列表,了解产品模型的概要信息。 + 应用服务器可调用此接口在物联网平台创建一个预调配模板。用户的设备未在平台注册时,可以通过预调配模板在设备首次接入物联网平台时将设备信息自动注册到物联网平台。 + - 该预调配模板至少需要绑定到一个设备CA证书下才能生效。 + - 一个实例最多可有10个预调配模板。 + - 仅标准版实例、企业版实例支持该接口调用,基础版不支持。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListProducts - :type request: :class:`huaweicloudsdkiotda.v5.ListProductsRequest` - :rtype: :class:`huaweicloudsdkiotda.v5.ListProductsResponse` + :param request: Request instance for CreateProvisioningTemplate + :type request: :class:`huaweicloudsdkiotda.v5.CreateProvisioningTemplateRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.CreateProvisioningTemplateResponse` """ - http_info = self._list_products_http_info(request) + http_info = self._create_provisioning_template_http_info(request) return self._call_api(**http_info) - def list_products_invoker(self, request): - http_info = self._list_products_http_info(request) + def create_provisioning_template_invoker(self, request): + http_info = self._create_provisioning_template_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _list_products_http_info(cls, request): + def _create_provisioning_template_http_info(cls, request): http_info = { - "method": "GET", - "resource_path": "/v5/iot/{project_id}/products", + "method": "POST", + "resource_path": "/v5/iot/{project_id}/provisioning-templates", "request_type": request.__class__.__name__, - "response_type": "ListProductsResponse" + "response_type": "CreateProvisioningTemplateResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -5503,16 +6758,6 @@ def _list_products_http_info(cls, request): 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 'app_id' in local_var_params: - query_params.append(('app_id', local_var_params['app_id'])) - if 'product_name' in local_var_params: - query_params.append(('product_name', local_var_params['product_name'])) - if 'offset' in local_var_params: - query_params.append(('offset', local_var_params['offset'])) header_params = {} if 'instance_id' in local_var_params: @@ -5521,6 +6766,8 @@ def _list_products_http_info(cls, request): form_params = {} body = None + if 'body' in local_var_params: + body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() @@ -5542,31 +6789,31 @@ def _list_products_http_info(cls, request): return http_info - def show_product(self, request): - """查询产品 + def delete_provisioning_template(self, request): + """删除预调配模板 - 应用服务器可调用此接口查询已导入物联网平台的指定产品模型详细信息,包括产品模型的服务、属性、命令等。 + 应用服务器可调用此接口在物联网平台上删除指定预调配模板。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ShowProduct - :type request: :class:`huaweicloudsdkiotda.v5.ShowProductRequest` - :rtype: :class:`huaweicloudsdkiotda.v5.ShowProductResponse` + :param request: Request instance for DeleteProvisioningTemplate + :type request: :class:`huaweicloudsdkiotda.v5.DeleteProvisioningTemplateRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.DeleteProvisioningTemplateResponse` """ - http_info = self._show_product_http_info(request) + http_info = self._delete_provisioning_template_http_info(request) return self._call_api(**http_info) - def show_product_invoker(self, request): - http_info = self._show_product_http_info(request) + def delete_provisioning_template_invoker(self, request): + http_info = self._delete_provisioning_template_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _show_product_http_info(cls, request): + def _delete_provisioning_template_http_info(cls, request): http_info = { - "method": "GET", - "resource_path": "/v5/iot/{project_id}/products/{product_id}", + "method": "DELETE", + "resource_path": "/v5/iot/{project_id}/provisioning-templates/{template_id}", "request_type": request.__class__.__name__, - "response_type": "ShowProductResponse" + "response_type": "DeleteProvisioningTemplateResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -5576,12 +6823,10 @@ def _show_product_http_info(cls, request): collection_formats = {} path_params = {} - if 'product_id' in local_var_params: - path_params['product_id'] = local_var_params['product_id'] + if 'template_id' in local_var_params: + path_params['template_id'] = local_var_params['template_id'] query_params = [] - if 'app_id' in local_var_params: - query_params.append(('app_id', local_var_params['app_id'])) header_params = {} if 'instance_id' in local_var_params: @@ -5611,31 +6856,31 @@ def _show_product_http_info(cls, request): return http_info - def update_product(self, request): - """修改产品 + def list_provisioning_templates(self, request): + """查询预调配模板列表 - 应用服务器可调用此接口修改已导入物联网平台的指定产品模型,包括产品模型的服务、属性、命令等。此接口仅修改了产品,未修改和安装插件,如果修改了产品中的service定义,且在平台中有对应的插件,请修改并重新安装插件。 + 应用服务器可调用此接口在物联网平台查询预调配模板列表。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for UpdateProduct - :type request: :class:`huaweicloudsdkiotda.v5.UpdateProductRequest` - :rtype: :class:`huaweicloudsdkiotda.v5.UpdateProductResponse` + :param request: Request instance for ListProvisioningTemplates + :type request: :class:`huaweicloudsdkiotda.v5.ListProvisioningTemplatesRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.ListProvisioningTemplatesResponse` """ - http_info = self._update_product_http_info(request) + http_info = self._list_provisioning_templates_http_info(request) return self._call_api(**http_info) - def update_product_invoker(self, request): - http_info = self._update_product_http_info(request) + def list_provisioning_templates_invoker(self, request): + http_info = self._list_provisioning_templates_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _update_product_http_info(cls, request): + def _list_provisioning_templates_http_info(cls, request): http_info = { - "method": "PUT", - "resource_path": "/v5/iot/{project_id}/products/{product_id}", + "method": "GET", + "resource_path": "/v5/iot/{project_id}/provisioning-templates", "request_type": request.__class__.__name__, - "response_type": "UpdateProductResponse" + "response_type": "ListProvisioningTemplatesResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -5645,10 +6890,16 @@ def _update_product_http_info(cls, request): collection_formats = {} path_params = {} - if 'product_id' in local_var_params: - path_params['product_id'] = local_var_params['product_id'] query_params = [] + if 'template_name' in local_var_params: + query_params.append(('template_name', local_var_params['template_name'])) + 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 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) header_params = {} if 'instance_id' in local_var_params: @@ -5657,15 +6908,13 @@ def _update_product_http_info(cls, request): form_params = {} body = None - if 'body' in local_var_params: - body = local_var_params['body'] if isinstance(request, SdkStreamRequest): body = request.get_file_stream() response_headers = [] header_params['Content-Type'] = http_utils.select_header_content_type( - ['application/json;charset=UTF-8']) + ['application/json']) auth_settings = [] @@ -5680,32 +6929,31 @@ def _update_product_http_info(cls, request): return http_info - def list_properties(self, request): - """查询设备属性 + def show_provisioning_template(self, request): + """查询预调配模板详情 - 设备的产品模型中定义了物联网平台可向设备下发的属性,应用服务器可调用此接口向设备发送指令用以查询设备的实时属性, 并由设备将属性查询的结果同步返回给应用服务器。 - 注意:此接口适用于MQTT设备,暂不支持NB-IoT设备。 + 应用服务器可调用此接口在物联网平台查询指定预调配模板ID的详细信息。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for ListProperties - :type request: :class:`huaweicloudsdkiotda.v5.ListPropertiesRequest` - :rtype: :class:`huaweicloudsdkiotda.v5.ListPropertiesResponse` + :param request: Request instance for ShowProvisioningTemplate + :type request: :class:`huaweicloudsdkiotda.v5.ShowProvisioningTemplateRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.ShowProvisioningTemplateResponse` """ - http_info = self._list_properties_http_info(request) + http_info = self._show_provisioning_template_http_info(request) return self._call_api(**http_info) - def list_properties_invoker(self, request): - http_info = self._list_properties_http_info(request) + def show_provisioning_template_invoker(self, request): + http_info = self._show_provisioning_template_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _list_properties_http_info(cls, request): + def _show_provisioning_template_http_info(cls, request): http_info = { "method": "GET", - "resource_path": "/v5/iot/{project_id}/devices/{device_id}/properties", + "resource_path": "/v5/iot/{project_id}/provisioning-templates/{template_id}", "request_type": request.__class__.__name__, - "response_type": "ListPropertiesResponse" + "response_type": "ShowProvisioningTemplateResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -5715,12 +6963,10 @@ def _list_properties_http_info(cls, request): collection_formats = {} path_params = {} - if 'device_id' in local_var_params: - path_params['device_id'] = local_var_params['device_id'] + if 'template_id' in local_var_params: + path_params['template_id'] = local_var_params['template_id'] query_params = [] - if 'service_id' in local_var_params: - query_params.append(('service_id', local_var_params['service_id'])) header_params = {} if 'instance_id' in local_var_params: @@ -5750,32 +6996,31 @@ def _list_properties_http_info(cls, request): return http_info - def update_properties(self, request): - """修改设备属性 + def update_provisioning_template(self, request): + """更新指定id的预调配模板信息 - 设备的产品模型中定义了物联网平台可向设备下发的属性,应用服务器可调用此接口向指定设备下发属性。平台负责将属性以同步方式发送给设备,并将设备执行属性结果同步返回。 - 注意:此接口适用于MQTT设备,暂不支持NB-IoT设备。 + 应用服务器可调用此接口在物联网平台更新指定id的预调配模板。 Please refer to HUAWEI cloud API Explorer for details. - :param request: Request instance for UpdateProperties - :type request: :class:`huaweicloudsdkiotda.v5.UpdatePropertiesRequest` - :rtype: :class:`huaweicloudsdkiotda.v5.UpdatePropertiesResponse` + :param request: Request instance for UpdateProvisioningTemplate + :type request: :class:`huaweicloudsdkiotda.v5.UpdateProvisioningTemplateRequest` + :rtype: :class:`huaweicloudsdkiotda.v5.UpdateProvisioningTemplateResponse` """ - http_info = self._update_properties_http_info(request) + http_info = self._update_provisioning_template_http_info(request) return self._call_api(**http_info) - def update_properties_invoker(self, request): - http_info = self._update_properties_http_info(request) + def update_provisioning_template_invoker(self, request): + http_info = self._update_provisioning_template_http_info(request) return SyncInvoker(self, http_info) @classmethod - def _update_properties_http_info(cls, request): + def _update_provisioning_template_http_info(cls, request): http_info = { "method": "PUT", - "resource_path": "/v5/iot/{project_id}/devices/{device_id}/properties", + "resource_path": "/v5/iot/{project_id}/provisioning-templates/{template_id}", "request_type": request.__class__.__name__, - "response_type": "UpdatePropertiesResponse" + "response_type": "UpdateProvisioningTemplateResponse" } local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} @@ -5785,8 +7030,8 @@ def _update_properties_http_info(cls, request): collection_formats = {} path_params = {} - if 'device_id' in local_var_params: - path_params['device_id'] = local_var_params['device_id'] + if 'template_id' in local_var_params: + path_params['template_id'] = local_var_params['template_id'] query_params = [] diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/__init__.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/__init__.py index 047a2e5e2f..0bf0916537 100644 --- a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/__init__.py +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/__init__.py @@ -43,6 +43,9 @@ from huaweicloudsdkiotda.v5.model.batch_target_result import BatchTargetResult from huaweicloudsdkiotda.v5.model.batch_targets import BatchTargets from huaweicloudsdkiotda.v5.model.batch_task_file import BatchTaskFile +from huaweicloudsdkiotda.v5.model.bind_device_policy import BindDevicePolicy +from huaweicloudsdkiotda.v5.model.bind_device_policy_request import BindDevicePolicyRequest +from huaweicloudsdkiotda.v5.model.bind_device_policy_response import BindDevicePolicyResponse from huaweicloudsdkiotda.v5.model.bind_tags_dto import BindTagsDTO from huaweicloudsdkiotda.v5.model.bridge_auth_info import BridgeAuthInfo from huaweicloudsdkiotda.v5.model.bridge_response import BridgeResponse @@ -71,6 +74,12 @@ from huaweicloudsdkiotda.v5.model.create_certificate_dto import CreateCertificateDTO from huaweicloudsdkiotda.v5.model.create_command_request import CreateCommandRequest from huaweicloudsdkiotda.v5.model.create_command_response import CreateCommandResponse +from huaweicloudsdkiotda.v5.model.create_device_authorizer import CreateDeviceAuthorizer +from huaweicloudsdkiotda.v5.model.create_device_authorizer_request import CreateDeviceAuthorizerRequest +from huaweicloudsdkiotda.v5.model.create_device_authorizer_response import CreateDeviceAuthorizerResponse +from huaweicloudsdkiotda.v5.model.create_device_policy import CreateDevicePolicy +from huaweicloudsdkiotda.v5.model.create_device_policy_request import CreateDevicePolicyRequest +from huaweicloudsdkiotda.v5.model.create_device_policy_response import CreateDevicePolicyResponse from huaweicloudsdkiotda.v5.model.create_device_proxy_request import CreateDeviceProxyRequest from huaweicloudsdkiotda.v5.model.create_device_proxy_response import CreateDeviceProxyResponse from huaweicloudsdkiotda.v5.model.create_message_request import CreateMessageRequest @@ -82,6 +91,9 @@ from huaweicloudsdkiotda.v5.model.create_ota_package_response import CreateOtaPackageResponse from huaweicloudsdkiotda.v5.model.create_product_request import CreateProductRequest from huaweicloudsdkiotda.v5.model.create_product_response import CreateProductResponse +from huaweicloudsdkiotda.v5.model.create_provisioning_template import CreateProvisioningTemplate +from huaweicloudsdkiotda.v5.model.create_provisioning_template_request import CreateProvisioningTemplateRequest +from huaweicloudsdkiotda.v5.model.create_provisioning_template_response import CreateProvisioningTemplateResponse from huaweicloudsdkiotda.v5.model.create_routing_backlog_policy_request import CreateRoutingBacklogPolicyRequest from huaweicloudsdkiotda.v5.model.create_routing_backlog_policy_response import CreateRoutingBacklogPolicyResponse from huaweicloudsdkiotda.v5.model.create_routing_flow_control_policy_request import CreateRoutingFlowControlPolicyRequest @@ -103,8 +115,12 @@ from huaweicloudsdkiotda.v5.model.delete_bridge_response import DeleteBridgeResponse from huaweicloudsdkiotda.v5.model.delete_certificate_request import DeleteCertificateRequest from huaweicloudsdkiotda.v5.model.delete_certificate_response import DeleteCertificateResponse +from huaweicloudsdkiotda.v5.model.delete_device_authorizer_request import DeleteDeviceAuthorizerRequest +from huaweicloudsdkiotda.v5.model.delete_device_authorizer_response import DeleteDeviceAuthorizerResponse from huaweicloudsdkiotda.v5.model.delete_device_group_request import DeleteDeviceGroupRequest from huaweicloudsdkiotda.v5.model.delete_device_group_response import DeleteDeviceGroupResponse +from huaweicloudsdkiotda.v5.model.delete_device_policy_request import DeleteDevicePolicyRequest +from huaweicloudsdkiotda.v5.model.delete_device_policy_response import DeleteDevicePolicyResponse from huaweicloudsdkiotda.v5.model.delete_device_proxy_request import DeleteDeviceProxyRequest from huaweicloudsdkiotda.v5.model.delete_device_proxy_response import DeleteDeviceProxyResponse from huaweicloudsdkiotda.v5.model.delete_device_request import DeleteDeviceRequest @@ -115,6 +131,8 @@ from huaweicloudsdkiotda.v5.model.delete_ota_package_response import DeleteOtaPackageResponse from huaweicloudsdkiotda.v5.model.delete_product_request import DeleteProductRequest from huaweicloudsdkiotda.v5.model.delete_product_response import DeleteProductResponse +from huaweicloudsdkiotda.v5.model.delete_provisioning_template_request import DeleteProvisioningTemplateRequest +from huaweicloudsdkiotda.v5.model.delete_provisioning_template_response import DeleteProvisioningTemplateResponse from huaweicloudsdkiotda.v5.model.delete_queue_request import DeleteQueueRequest from huaweicloudsdkiotda.v5.model.delete_queue_response import DeleteQueueResponse from huaweicloudsdkiotda.v5.model.delete_routing_backlog_policy_request import DeleteRoutingBacklogPolicyRequest @@ -127,6 +145,7 @@ from huaweicloudsdkiotda.v5.model.delete_rule_action_response import DeleteRuleActionResponse from huaweicloudsdkiotda.v5.model.delete_rule_request import DeleteRuleRequest from huaweicloudsdkiotda.v5.model.delete_rule_response import DeleteRuleResponse +from huaweicloudsdkiotda.v5.model.device_authorizer_simple import DeviceAuthorizerSimple from huaweicloudsdkiotda.v5.model.device_broadcast_request import DeviceBroadcastRequest from huaweicloudsdkiotda.v5.model.device_command_request import DeviceCommandRequest from huaweicloudsdkiotda.v5.model.device_data_condition import DeviceDataCondition @@ -134,7 +153,9 @@ from huaweicloudsdkiotda.v5.model.device_linkage_status_condition import DeviceLinkageStatusCondition from huaweicloudsdkiotda.v5.model.device_message import DeviceMessage from huaweicloudsdkiotda.v5.model.device_message_request import DeviceMessageRequest +from huaweicloudsdkiotda.v5.model.device_policy_bind_or_unbind_failure_detail import DevicePolicyBindOrUnbindFailureDetail from huaweicloudsdkiotda.v5.model.device_properties_request import DevicePropertiesRequest +from huaweicloudsdkiotda.v5.model.device_resource import DeviceResource from huaweicloudsdkiotda.v5.model.device_shadow_data import DeviceShadowData from huaweicloudsdkiotda.v5.model.device_shadow_properties import DeviceShadowProperties from huaweicloudsdkiotda.v5.model.device_side import DeviceSide @@ -161,6 +182,8 @@ from huaweicloudsdkiotda.v5.model.list_bridges_response import ListBridgesResponse from huaweicloudsdkiotda.v5.model.list_certificates_request import ListCertificatesRequest from huaweicloudsdkiotda.v5.model.list_certificates_response import ListCertificatesResponse +from huaweicloudsdkiotda.v5.model.list_device_authorizers_request import ListDeviceAuthorizersRequest +from huaweicloudsdkiotda.v5.model.list_device_authorizers_response import ListDeviceAuthorizersResponse from huaweicloudsdkiotda.v5.model.list_device_group_summary import ListDeviceGroupSummary from huaweicloudsdkiotda.v5.model.list_device_groups_by_device_request import ListDeviceGroupsByDeviceRequest from huaweicloudsdkiotda.v5.model.list_device_groups_by_device_response import ListDeviceGroupsByDeviceResponse @@ -168,6 +191,9 @@ from huaweicloudsdkiotda.v5.model.list_device_groups_response import ListDeviceGroupsResponse from huaweicloudsdkiotda.v5.model.list_device_messages_request import ListDeviceMessagesRequest from huaweicloudsdkiotda.v5.model.list_device_messages_response import ListDeviceMessagesResponse +from huaweicloudsdkiotda.v5.model.list_device_policies_request import ListDevicePoliciesRequest +from huaweicloudsdkiotda.v5.model.list_device_policies_response import ListDevicePoliciesResponse +from huaweicloudsdkiotda.v5.model.list_device_policy_base import ListDevicePolicyBase from huaweicloudsdkiotda.v5.model.list_device_proxies_request import ListDeviceProxiesRequest from huaweicloudsdkiotda.v5.model.list_device_proxies_response import ListDeviceProxiesResponse from huaweicloudsdkiotda.v5.model.list_device_tunnels_request import ListDeviceTunnelsRequest @@ -180,6 +206,8 @@ from huaweicloudsdkiotda.v5.model.list_products_response import ListProductsResponse from huaweicloudsdkiotda.v5.model.list_properties_request import ListPropertiesRequest from huaweicloudsdkiotda.v5.model.list_properties_response import ListPropertiesResponse +from huaweicloudsdkiotda.v5.model.list_provisioning_templates_request import ListProvisioningTemplatesRequest +from huaweicloudsdkiotda.v5.model.list_provisioning_templates_response import ListProvisioningTemplatesResponse from huaweicloudsdkiotda.v5.model.list_resources_by_tags_request import ListResourcesByTagsRequest from huaweicloudsdkiotda.v5.model.list_resources_by_tags_response import ListResourcesByTagsResponse from huaweicloudsdkiotda.v5.model.list_routing_backlog_policy_request import ListRoutingBacklogPolicyRequest @@ -201,9 +229,14 @@ from huaweicloudsdkiotda.v5.model.ota_package_info import OtaPackageInfo from huaweicloudsdkiotda.v5.model.page import Page from huaweicloudsdkiotda.v5.model.page_info import PageInfo +from huaweicloudsdkiotda.v5.model.parameter_ref import ParameterRef +from huaweicloudsdkiotda.v5.model.policy_resource import PolicyResource +from huaweicloudsdkiotda.v5.model.policy_target_base import PolicyTargetBase from huaweicloudsdkiotda.v5.model.product_summary import ProductSummary from huaweicloudsdkiotda.v5.model.properties_dto import PropertiesDTO from huaweicloudsdkiotda.v5.model.property_filter import PropertyFilter +from huaweicloudsdkiotda.v5.model.provisioning_template_body import ProvisioningTemplateBody +from huaweicloudsdkiotda.v5.model.provisioning_template_simple import ProvisioningTemplateSimple from huaweicloudsdkiotda.v5.model.query_device_proxy_simplify import QueryDeviceProxySimplify from huaweicloudsdkiotda.v5.model.query_device_simplify import QueryDeviceSimplify from huaweicloudsdkiotda.v5.model.query_queue_base import QueryQueueBase @@ -248,10 +281,14 @@ from huaweicloudsdkiotda.v5.model.show_async_device_command_response import ShowAsyncDeviceCommandResponse from huaweicloudsdkiotda.v5.model.show_batch_task_request import ShowBatchTaskRequest from huaweicloudsdkiotda.v5.model.show_batch_task_response import ShowBatchTaskResponse +from huaweicloudsdkiotda.v5.model.show_device_authorizer_request import ShowDeviceAuthorizerRequest +from huaweicloudsdkiotda.v5.model.show_device_authorizer_response import ShowDeviceAuthorizerResponse from huaweicloudsdkiotda.v5.model.show_device_group_request import ShowDeviceGroupRequest from huaweicloudsdkiotda.v5.model.show_device_group_response import ShowDeviceGroupResponse from huaweicloudsdkiotda.v5.model.show_device_message_request import ShowDeviceMessageRequest from huaweicloudsdkiotda.v5.model.show_device_message_response import ShowDeviceMessageResponse +from huaweicloudsdkiotda.v5.model.show_device_policy_request import ShowDevicePolicyRequest +from huaweicloudsdkiotda.v5.model.show_device_policy_response import ShowDevicePolicyResponse from huaweicloudsdkiotda.v5.model.show_device_proxy_request import ShowDeviceProxyRequest from huaweicloudsdkiotda.v5.model.show_device_proxy_response import ShowDeviceProxyResponse from huaweicloudsdkiotda.v5.model.show_device_request import ShowDeviceRequest @@ -266,6 +303,8 @@ from huaweicloudsdkiotda.v5.model.show_ota_package_response import ShowOtaPackageResponse from huaweicloudsdkiotda.v5.model.show_product_request import ShowProductRequest from huaweicloudsdkiotda.v5.model.show_product_response import ShowProductResponse +from huaweicloudsdkiotda.v5.model.show_provisioning_template_request import ShowProvisioningTemplateRequest +from huaweicloudsdkiotda.v5.model.show_provisioning_template_response import ShowProvisioningTemplateResponse from huaweicloudsdkiotda.v5.model.show_queue_request import ShowQueueRequest from huaweicloudsdkiotda.v5.model.show_queue_response import ShowQueueResponse from huaweicloudsdkiotda.v5.model.show_routing_backlog_policy_request import ShowRoutingBacklogPolicyRequest @@ -278,20 +317,29 @@ from huaweicloudsdkiotda.v5.model.show_rule_action_response import ShowRuleActionResponse from huaweicloudsdkiotda.v5.model.show_rule_request import ShowRuleRequest from huaweicloudsdkiotda.v5.model.show_rule_response import ShowRuleResponse +from huaweicloudsdkiotda.v5.model.show_targets_in_device_policy_request import ShowTargetsInDevicePolicyRequest +from huaweicloudsdkiotda.v5.model.show_targets_in_device_policy_request_body import ShowTargetsInDevicePolicyRequestBody +from huaweicloudsdkiotda.v5.model.show_targets_in_device_policy_response import ShowTargetsInDevicePolicyResponse from huaweicloudsdkiotda.v5.model.simple_timer_type import SimpleTimerType from huaweicloudsdkiotda.v5.model.simplify_device import SimplifyDevice +from huaweicloudsdkiotda.v5.model.statement import Statement from huaweicloudsdkiotda.v5.model.stop_batch_task_request import StopBatchTaskRequest from huaweicloudsdkiotda.v5.model.stop_batch_task_response import StopBatchTaskResponse from huaweicloudsdkiotda.v5.model.strategy import Strategy from huaweicloudsdkiotda.v5.model.tag_device_request import TagDeviceRequest from huaweicloudsdkiotda.v5.model.tag_device_response import TagDeviceResponse +from huaweicloudsdkiotda.v5.model.tag_ref import TagRef from huaweicloudsdkiotda.v5.model.tag_v5_dto import TagV5DTO from huaweicloudsdkiotda.v5.model.task import Task from huaweicloudsdkiotda.v5.model.task_detail import TaskDetail from huaweicloudsdkiotda.v5.model.task_policy import TaskPolicy from huaweicloudsdkiotda.v5.model.task_progress import TaskProgress +from huaweicloudsdkiotda.v5.model.template_resource import TemplateResource from huaweicloudsdkiotda.v5.model.time_range import TimeRange from huaweicloudsdkiotda.v5.model.tunnel_info import TunnelInfo +from huaweicloudsdkiotda.v5.model.un_bind_device_policy import UnBindDevicePolicy +from huaweicloudsdkiotda.v5.model.unbind_device_policy_request import UnbindDevicePolicyRequest +from huaweicloudsdkiotda.v5.model.unbind_device_policy_response import UnbindDevicePolicyResponse from huaweicloudsdkiotda.v5.model.unbind_tags_dto import UnbindTagsDTO from huaweicloudsdkiotda.v5.model.unfreeze_device_request import UnfreezeDeviceRequest from huaweicloudsdkiotda.v5.model.unfreeze_device_response import UnfreezeDeviceResponse @@ -308,9 +356,15 @@ from huaweicloudsdkiotda.v5.model.update_desired import UpdateDesired from huaweicloudsdkiotda.v5.model.update_desireds import UpdateDesireds from huaweicloudsdkiotda.v5.model.update_device import UpdateDevice +from huaweicloudsdkiotda.v5.model.update_device_authorizer import UpdateDeviceAuthorizer +from huaweicloudsdkiotda.v5.model.update_device_authorizer_request import UpdateDeviceAuthorizerRequest +from huaweicloudsdkiotda.v5.model.update_device_authorizer_response import UpdateDeviceAuthorizerResponse from huaweicloudsdkiotda.v5.model.update_device_group_dto import UpdateDeviceGroupDTO from huaweicloudsdkiotda.v5.model.update_device_group_request import UpdateDeviceGroupRequest from huaweicloudsdkiotda.v5.model.update_device_group_response import UpdateDeviceGroupResponse +from huaweicloudsdkiotda.v5.model.update_device_policy import UpdateDevicePolicy +from huaweicloudsdkiotda.v5.model.update_device_policy_request import UpdateDevicePolicyRequest +from huaweicloudsdkiotda.v5.model.update_device_policy_response import UpdateDevicePolicyResponse from huaweicloudsdkiotda.v5.model.update_device_proxy import UpdateDeviceProxy from huaweicloudsdkiotda.v5.model.update_device_proxy_request import UpdateDeviceProxyRequest from huaweicloudsdkiotda.v5.model.update_device_proxy_response import UpdateDeviceProxyResponse @@ -324,6 +378,9 @@ from huaweicloudsdkiotda.v5.model.update_product_response import UpdateProductResponse from huaweicloudsdkiotda.v5.model.update_properties_request import UpdatePropertiesRequest from huaweicloudsdkiotda.v5.model.update_properties_response import UpdatePropertiesResponse +from huaweicloudsdkiotda.v5.model.update_provisioning_template import UpdateProvisioningTemplate +from huaweicloudsdkiotda.v5.model.update_provisioning_template_request import UpdateProvisioningTemplateRequest +from huaweicloudsdkiotda.v5.model.update_provisioning_template_response import UpdateProvisioningTemplateResponse from huaweicloudsdkiotda.v5.model.update_routing_backlog_policy_request import UpdateRoutingBacklogPolicyRequest from huaweicloudsdkiotda.v5.model.update_routing_backlog_policy_response import UpdateRoutingBacklogPolicyResponse from huaweicloudsdkiotda.v5.model.update_routing_flow_control_policy_request import UpdateRoutingFlowControlPolicyRequest diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/bind_device_policy.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/bind_device_policy.py new file mode 100644 index 0000000000..3d80d0c222 --- /dev/null +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/bind_device_policy.py @@ -0,0 +1,142 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class BindDevicePolicy: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'target_type': 'str', + 'target_ids': 'list[str]' + } + + attribute_map = { + 'target_type': 'target_type', + 'target_ids': 'target_ids' + } + + def __init__(self, target_type=None, target_ids=None): + """BindDevicePolicy + + The model defined in huaweicloud sdk + + :param target_type: **参数说明**:策略绑定的目标类型。 **取值范围**:device|product|app,device表示设备,product表示产品,app表示整个资源空间。 + :type target_type: str + :param target_ids: 策略绑定的目标ID列表 + :type target_ids: list[str] + """ + + + + self._target_type = None + self._target_ids = None + self.discriminator = None + + self.target_type = target_type + self.target_ids = target_ids + + @property + def target_type(self): + """Gets the target_type of this BindDevicePolicy. + + **参数说明**:策略绑定的目标类型。 **取值范围**:device|product|app,device表示设备,product表示产品,app表示整个资源空间。 + + :return: The target_type of this BindDevicePolicy. + :rtype: str + """ + return self._target_type + + @target_type.setter + def target_type(self, target_type): + """Sets the target_type of this BindDevicePolicy. + + **参数说明**:策略绑定的目标类型。 **取值范围**:device|product|app,device表示设备,product表示产品,app表示整个资源空间。 + + :param target_type: The target_type of this BindDevicePolicy. + :type target_type: str + """ + self._target_type = target_type + + @property + def target_ids(self): + """Gets the target_ids of this BindDevicePolicy. + + 策略绑定的目标ID列表 + + :return: The target_ids of this BindDevicePolicy. + :rtype: list[str] + """ + return self._target_ids + + @target_ids.setter + def target_ids(self, target_ids): + """Sets the target_ids of this BindDevicePolicy. + + 策略绑定的目标ID列表 + + :param target_ids: The target_ids of this BindDevicePolicy. + :type target_ids: list[str] + """ + self._target_ids = target_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, BindDevicePolicy): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/bind_device_policy_request.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/bind_device_policy_request.py new file mode 100644 index 0000000000..8d68dfdd44 --- /dev/null +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/bind_device_policy_request.py @@ -0,0 +1,168 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class BindDevicePolicyRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'policy_id': 'str', + 'body': 'BindDevicePolicy' + } + + attribute_map = { + 'instance_id': 'Instance-Id', + 'policy_id': 'policy_id', + 'body': 'body' + } + + def __init__(self, instance_id=None, policy_id=None, body=None): + """BindDevicePolicyRequest + + The model defined in huaweicloud sdk + + :param instance_id: **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0079.html#section1)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0079.html#section1)](tag:hws_hk)。 + :type instance_id: str + :param policy_id: 策略ID + :type policy_id: str + :param body: Body of the BindDevicePolicyRequest + :type body: :class:`huaweicloudsdkiotda.v5.BindDevicePolicy` + """ + + + + self._instance_id = None + self._policy_id = None + self._body = None + self.discriminator = None + + if instance_id is not None: + self.instance_id = instance_id + self.policy_id = policy_id + if body is not None: + self.body = body + + @property + def instance_id(self): + """Gets the instance_id of this BindDevicePolicyRequest. + + **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0079.html#section1)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0079.html#section1)](tag:hws_hk)。 + + :return: The instance_id of this BindDevicePolicyRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this BindDevicePolicyRequest. + + **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0079.html#section1)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0079.html#section1)](tag:hws_hk)。 + + :param instance_id: The instance_id of this BindDevicePolicyRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def policy_id(self): + """Gets the policy_id of this BindDevicePolicyRequest. + + 策略ID + + :return: The policy_id of this BindDevicePolicyRequest. + :rtype: str + """ + return self._policy_id + + @policy_id.setter + def policy_id(self, policy_id): + """Sets the policy_id of this BindDevicePolicyRequest. + + 策略ID + + :param policy_id: The policy_id of this BindDevicePolicyRequest. + :type policy_id: str + """ + self._policy_id = policy_id + + @property + def body(self): + """Gets the body of this BindDevicePolicyRequest. + + :return: The body of this BindDevicePolicyRequest. + :rtype: :class:`huaweicloudsdkiotda.v5.BindDevicePolicy` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this BindDevicePolicyRequest. + + :param body: The body of this BindDevicePolicyRequest. + :type body: :class:`huaweicloudsdkiotda.v5.BindDevicePolicy` + """ + 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, BindDevicePolicyRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/bind_device_policy_response.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/bind_device_policy_response.py new file mode 100644 index 0000000000..49137764af --- /dev/null +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/bind_device_policy_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 BindDevicePolicyResponse(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 = { + 'policy_id': 'str', + 'target_type': 'str', + 'success_targets': 'list[str]', + 'failure_targets': 'list[DevicePolicyBindOrUnbindFailureDetail]' + } + + attribute_map = { + 'policy_id': 'policy_id', + 'target_type': 'target_type', + 'success_targets': 'success_targets', + 'failure_targets': 'failure_targets' + } + + def __init__(self, policy_id=None, target_type=None, success_targets=None, failure_targets=None): + """BindDevicePolicyResponse + + The model defined in huaweicloud sdk + + :param policy_id: 策略ID。 + :type policy_id: str + :param target_type: **参数说明**:策略的目标类型。 **取值范围**:device|product|app,device表示设备,product表示产品,app表示整个资源空间。 + :type target_type: str + :param success_targets: 成功的目标id列表。 + :type success_targets: list[str] + :param failure_targets: 失败的目标id列表 + :type failure_targets: list[:class:`huaweicloudsdkiotda.v5.DevicePolicyBindOrUnbindFailureDetail`] + """ + + super(BindDevicePolicyResponse, self).__init__() + + self._policy_id = None + self._target_type = None + self._success_targets = None + self._failure_targets = None + self.discriminator = None + + if policy_id is not None: + self.policy_id = policy_id + if target_type is not None: + self.target_type = target_type + if success_targets is not None: + self.success_targets = success_targets + if failure_targets is not None: + self.failure_targets = failure_targets + + @property + def policy_id(self): + """Gets the policy_id of this BindDevicePolicyResponse. + + 策略ID。 + + :return: The policy_id of this BindDevicePolicyResponse. + :rtype: str + """ + return self._policy_id + + @policy_id.setter + def policy_id(self, policy_id): + """Sets the policy_id of this BindDevicePolicyResponse. + + 策略ID。 + + :param policy_id: The policy_id of this BindDevicePolicyResponse. + :type policy_id: str + """ + self._policy_id = policy_id + + @property + def target_type(self): + """Gets the target_type of this BindDevicePolicyResponse. + + **参数说明**:策略的目标类型。 **取值范围**:device|product|app,device表示设备,product表示产品,app表示整个资源空间。 + + :return: The target_type of this BindDevicePolicyResponse. + :rtype: str + """ + return self._target_type + + @target_type.setter + def target_type(self, target_type): + """Sets the target_type of this BindDevicePolicyResponse. + + **参数说明**:策略的目标类型。 **取值范围**:device|product|app,device表示设备,product表示产品,app表示整个资源空间。 + + :param target_type: The target_type of this BindDevicePolicyResponse. + :type target_type: str + """ + self._target_type = target_type + + @property + def success_targets(self): + """Gets the success_targets of this BindDevicePolicyResponse. + + 成功的目标id列表。 + + :return: The success_targets of this BindDevicePolicyResponse. + :rtype: list[str] + """ + return self._success_targets + + @success_targets.setter + def success_targets(self, success_targets): + """Sets the success_targets of this BindDevicePolicyResponse. + + 成功的目标id列表。 + + :param success_targets: The success_targets of this BindDevicePolicyResponse. + :type success_targets: list[str] + """ + self._success_targets = success_targets + + @property + def failure_targets(self): + """Gets the failure_targets of this BindDevicePolicyResponse. + + 失败的目标id列表 + + :return: The failure_targets of this BindDevicePolicyResponse. + :rtype: list[:class:`huaweicloudsdkiotda.v5.DevicePolicyBindOrUnbindFailureDetail`] + """ + return self._failure_targets + + @failure_targets.setter + def failure_targets(self, failure_targets): + """Sets the failure_targets of this BindDevicePolicyResponse. + + 失败的目标id列表 + + :param failure_targets: The failure_targets of this BindDevicePolicyResponse. + :type failure_targets: list[:class:`huaweicloudsdkiotda.v5.DevicePolicyBindOrUnbindFailureDetail`] + """ + self._failure_targets = failure_targets + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BindDevicePolicyResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/create_device_authorizer.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/create_device_authorizer.py new file mode 100644 index 0000000000..ba8a88e90e --- /dev/null +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/create_device_authorizer.py @@ -0,0 +1,316 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateDeviceAuthorizer: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'authorizer_name': 'str', + 'func_urn': 'str', + 'signing_enable': 'bool', + 'signing_token': 'str', + 'signing_public_key': 'str', + 'default_authorizer': 'bool', + 'status': 'str', + 'cache_enable': 'bool' + } + + attribute_map = { + 'authorizer_name': 'authorizer_name', + 'func_urn': 'func_urn', + 'signing_enable': 'signing_enable', + 'signing_token': 'signing_token', + 'signing_public_key': 'signing_public_key', + 'default_authorizer': 'default_authorizer', + 'status': 'status', + 'cache_enable': 'cache_enable' + } + + def __init__(self, authorizer_name=None, func_urn=None, signing_enable=None, signing_token=None, signing_public_key=None, default_authorizer=None, status=None, cache_enable=None): + """CreateDeviceAuthorizer + + The model defined in huaweicloud sdk + + :param authorizer_name: **参数说明**:自定义鉴权器名称,同一租户下的自定义鉴权器名称不能重复。 **取值范围**:长度不超过128,只允许字母、数字、下划线(_)、连接符(-)的组合。 + :type authorizer_name: str + :param func_urn: **参数说明**:函数的URN(Uniform Resource Name),唯一标识函数,即自定义鉴权器对应的处理函数地址。 + :type func_urn: str + :param signing_enable: **参数说明**:是否启动签名校验,启动签名校验后不满足签名要求的鉴权信息将被拒绝,以减少无效的函数调用。推荐用户进行安全的签名校验,默认开启, 开启时signing_token与signing_public_key必填。 + :type signing_enable: bool + :param signing_token: **参数说明**:签名校验的Key值,开启签名校验时使用。 **取值范围**:长度不超过128,只允许字母、数字、下划线(_)、连接符(-)的组合。 + :type signing_token: str + :param signing_public_key: **参数说明**:签名校验的公钥,开启签名校验时使用。用于认证设备携带的签名信息是否正确。 + :type signing_public_key: str + :param default_authorizer: **参数说明**:当前自定义鉴权是否为默认的鉴权方式,默认为false,当设置为true时,用户所有支持SNI的设备,如果在鉴权时不指定使用特定的设备鉴权,将统一使用当前鉴权器策略进行鉴权。 + :type default_authorizer: bool + :param status: **参数说明**:是否激活该鉴权方式 - ACTIVE:该鉴权为激活状态。 - INACTIVE:该鉴权为停用状态。 + :type status: str + :param cache_enable: **参数说明**:是否开启缓存,默认为false,设备为true时,当设备入参(username,clientId,password,以及证书信息,函数urn)不变时,当缓存结果存在时,将直接使用缓存结果,建议在调试时设置为false,生产时设置为true,避免频繁调用函数。 + :type cache_enable: bool + """ + + + + self._authorizer_name = None + self._func_urn = None + self._signing_enable = None + self._signing_token = None + self._signing_public_key = None + self._default_authorizer = None + self._status = None + self._cache_enable = None + self.discriminator = None + + self.authorizer_name = authorizer_name + self.func_urn = func_urn + if signing_enable is not None: + self.signing_enable = signing_enable + if signing_token is not None: + self.signing_token = signing_token + if signing_public_key is not None: + self.signing_public_key = signing_public_key + if default_authorizer is not None: + self.default_authorizer = default_authorizer + if status is not None: + self.status = status + if cache_enable is not None: + self.cache_enable = cache_enable + + @property + def authorizer_name(self): + """Gets the authorizer_name of this CreateDeviceAuthorizer. + + **参数说明**:自定义鉴权器名称,同一租户下的自定义鉴权器名称不能重复。 **取值范围**:长度不超过128,只允许字母、数字、下划线(_)、连接符(-)的组合。 + + :return: The authorizer_name of this CreateDeviceAuthorizer. + :rtype: str + """ + return self._authorizer_name + + @authorizer_name.setter + def authorizer_name(self, authorizer_name): + """Sets the authorizer_name of this CreateDeviceAuthorizer. + + **参数说明**:自定义鉴权器名称,同一租户下的自定义鉴权器名称不能重复。 **取值范围**:长度不超过128,只允许字母、数字、下划线(_)、连接符(-)的组合。 + + :param authorizer_name: The authorizer_name of this CreateDeviceAuthorizer. + :type authorizer_name: str + """ + self._authorizer_name = authorizer_name + + @property + def func_urn(self): + """Gets the func_urn of this CreateDeviceAuthorizer. + + **参数说明**:函数的URN(Uniform Resource Name),唯一标识函数,即自定义鉴权器对应的处理函数地址。 + + :return: The func_urn of this CreateDeviceAuthorizer. + :rtype: str + """ + return self._func_urn + + @func_urn.setter + def func_urn(self, func_urn): + """Sets the func_urn of this CreateDeviceAuthorizer. + + **参数说明**:函数的URN(Uniform Resource Name),唯一标识函数,即自定义鉴权器对应的处理函数地址。 + + :param func_urn: The func_urn of this CreateDeviceAuthorizer. + :type func_urn: str + """ + self._func_urn = func_urn + + @property + def signing_enable(self): + """Gets the signing_enable of this CreateDeviceAuthorizer. + + **参数说明**:是否启动签名校验,启动签名校验后不满足签名要求的鉴权信息将被拒绝,以减少无效的函数调用。推荐用户进行安全的签名校验,默认开启, 开启时signing_token与signing_public_key必填。 + + :return: The signing_enable of this CreateDeviceAuthorizer. + :rtype: bool + """ + return self._signing_enable + + @signing_enable.setter + def signing_enable(self, signing_enable): + """Sets the signing_enable of this CreateDeviceAuthorizer. + + **参数说明**:是否启动签名校验,启动签名校验后不满足签名要求的鉴权信息将被拒绝,以减少无效的函数调用。推荐用户进行安全的签名校验,默认开启, 开启时signing_token与signing_public_key必填。 + + :param signing_enable: The signing_enable of this CreateDeviceAuthorizer. + :type signing_enable: bool + """ + self._signing_enable = signing_enable + + @property + def signing_token(self): + """Gets the signing_token of this CreateDeviceAuthorizer. + + **参数说明**:签名校验的Key值,开启签名校验时使用。 **取值范围**:长度不超过128,只允许字母、数字、下划线(_)、连接符(-)的组合。 + + :return: The signing_token of this CreateDeviceAuthorizer. + :rtype: str + """ + return self._signing_token + + @signing_token.setter + def signing_token(self, signing_token): + """Sets the signing_token of this CreateDeviceAuthorizer. + + **参数说明**:签名校验的Key值,开启签名校验时使用。 **取值范围**:长度不超过128,只允许字母、数字、下划线(_)、连接符(-)的组合。 + + :param signing_token: The signing_token of this CreateDeviceAuthorizer. + :type signing_token: str + """ + self._signing_token = signing_token + + @property + def signing_public_key(self): + """Gets the signing_public_key of this CreateDeviceAuthorizer. + + **参数说明**:签名校验的公钥,开启签名校验时使用。用于认证设备携带的签名信息是否正确。 + + :return: The signing_public_key of this CreateDeviceAuthorizer. + :rtype: str + """ + return self._signing_public_key + + @signing_public_key.setter + def signing_public_key(self, signing_public_key): + """Sets the signing_public_key of this CreateDeviceAuthorizer. + + **参数说明**:签名校验的公钥,开启签名校验时使用。用于认证设备携带的签名信息是否正确。 + + :param signing_public_key: The signing_public_key of this CreateDeviceAuthorizer. + :type signing_public_key: str + """ + self._signing_public_key = signing_public_key + + @property + def default_authorizer(self): + """Gets the default_authorizer of this CreateDeviceAuthorizer. + + **参数说明**:当前自定义鉴权是否为默认的鉴权方式,默认为false,当设置为true时,用户所有支持SNI的设备,如果在鉴权时不指定使用特定的设备鉴权,将统一使用当前鉴权器策略进行鉴权。 + + :return: The default_authorizer of this CreateDeviceAuthorizer. + :rtype: bool + """ + return self._default_authorizer + + @default_authorizer.setter + def default_authorizer(self, default_authorizer): + """Sets the default_authorizer of this CreateDeviceAuthorizer. + + **参数说明**:当前自定义鉴权是否为默认的鉴权方式,默认为false,当设置为true时,用户所有支持SNI的设备,如果在鉴权时不指定使用特定的设备鉴权,将统一使用当前鉴权器策略进行鉴权。 + + :param default_authorizer: The default_authorizer of this CreateDeviceAuthorizer. + :type default_authorizer: bool + """ + self._default_authorizer = default_authorizer + + @property + def status(self): + """Gets the status of this CreateDeviceAuthorizer. + + **参数说明**:是否激活该鉴权方式 - ACTIVE:该鉴权为激活状态。 - INACTIVE:该鉴权为停用状态。 + + :return: The status of this CreateDeviceAuthorizer. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this CreateDeviceAuthorizer. + + **参数说明**:是否激活该鉴权方式 - ACTIVE:该鉴权为激活状态。 - INACTIVE:该鉴权为停用状态。 + + :param status: The status of this CreateDeviceAuthorizer. + :type status: str + """ + self._status = status + + @property + def cache_enable(self): + """Gets the cache_enable of this CreateDeviceAuthorizer. + + **参数说明**:是否开启缓存,默认为false,设备为true时,当设备入参(username,clientId,password,以及证书信息,函数urn)不变时,当缓存结果存在时,将直接使用缓存结果,建议在调试时设置为false,生产时设置为true,避免频繁调用函数。 + + :return: The cache_enable of this CreateDeviceAuthorizer. + :rtype: bool + """ + return self._cache_enable + + @cache_enable.setter + def cache_enable(self, cache_enable): + """Sets the cache_enable of this CreateDeviceAuthorizer. + + **参数说明**:是否开启缓存,默认为false,设备为true时,当设备入参(username,clientId,password,以及证书信息,函数urn)不变时,当缓存结果存在时,将直接使用缓存结果,建议在调试时设置为false,生产时设置为true,避免频繁调用函数。 + + :param cache_enable: The cache_enable of this CreateDeviceAuthorizer. + :type cache_enable: bool + """ + self._cache_enable = cache_enable + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateDeviceAuthorizer): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/create_device_authorizer_request.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/create_device_authorizer_request.py new file mode 100644 index 0000000000..7cc370541b --- /dev/null +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/create_device_authorizer_request.py @@ -0,0 +1,140 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateDeviceAuthorizerRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'body': 'CreateDeviceAuthorizer' + } + + attribute_map = { + 'instance_id': 'Instance-Id', + 'body': 'body' + } + + def __init__(self, instance_id=None, body=None): + """CreateDeviceAuthorizerRequest + + The model defined in huaweicloud sdk + + :param instance_id: **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0079.html#section1)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0079.html#section1)](tag:hws_hk)。 + :type instance_id: str + :param body: Body of the CreateDeviceAuthorizerRequest + :type body: :class:`huaweicloudsdkiotda.v5.CreateDeviceAuthorizer` + """ + + + + self._instance_id = None + self._body = None + self.discriminator = None + + if instance_id is not None: + self.instance_id = instance_id + if body is not None: + self.body = body + + @property + def instance_id(self): + """Gets the instance_id of this CreateDeviceAuthorizerRequest. + + **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0079.html#section1)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0079.html#section1)](tag:hws_hk)。 + + :return: The instance_id of this CreateDeviceAuthorizerRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this CreateDeviceAuthorizerRequest. + + **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0079.html#section1)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0079.html#section1)](tag:hws_hk)。 + + :param instance_id: The instance_id of this CreateDeviceAuthorizerRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def body(self): + """Gets the body of this CreateDeviceAuthorizerRequest. + + :return: The body of this CreateDeviceAuthorizerRequest. + :rtype: :class:`huaweicloudsdkiotda.v5.CreateDeviceAuthorizer` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateDeviceAuthorizerRequest. + + :param body: The body of this CreateDeviceAuthorizerRequest. + :type body: :class:`huaweicloudsdkiotda.v5.CreateDeviceAuthorizer` + """ + 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, CreateDeviceAuthorizerRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/create_device_authorizer_response.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/create_device_authorizer_response.py new file mode 100644 index 0000000000..cb1d5d1154 --- /dev/null +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/create_device_authorizer_response.py @@ -0,0 +1,435 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateDeviceAuthorizerResponse(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 = { + 'authorizer_id': 'str', + 'authorizer_name': 'str', + 'func_name': 'str', + 'func_urn': 'str', + 'signing_enable': 'bool', + 'signing_token': 'str', + 'signing_public_key': 'str', + 'default_authorizer': 'bool', + 'status': 'str', + 'cache_enable': 'bool', + 'create_time': 'str', + 'update_time': 'str' + } + + attribute_map = { + 'authorizer_id': 'authorizer_id', + 'authorizer_name': 'authorizer_name', + 'func_name': 'func_name', + 'func_urn': 'func_urn', + 'signing_enable': 'signing_enable', + 'signing_token': 'signing_token', + 'signing_public_key': 'signing_public_key', + 'default_authorizer': 'default_authorizer', + 'status': 'status', + 'cache_enable': 'cache_enable', + 'create_time': 'create_time', + 'update_time': 'update_time' + } + + def __init__(self, authorizer_id=None, authorizer_name=None, func_name=None, func_urn=None, signing_enable=None, signing_token=None, signing_public_key=None, default_authorizer=None, status=None, cache_enable=None, create_time=None, update_time=None): + """CreateDeviceAuthorizerResponse + + The model defined in huaweicloud sdk + + :param authorizer_id: **参数说明**:自定义鉴权ID。 + :type authorizer_id: str + :param authorizer_name: **参数说明**:自定义鉴权器名称,同一租户下的自定义鉴权器名称不能重复。 **取值范围**:长度不超过128,只允许字母、数字、下划线(_)、连接符(-)的组合。 + :type authorizer_name: str + :param func_name: **参数说明**:函数名称。 + :type func_name: str + :param func_urn: **参数说明**:函数的URN(Uniform Resource Name),唯一标识函数,即自定义鉴权器对应的处理函数地址。 + :type func_urn: str + :param signing_enable: **参数说明**:是否启动签名校验,启动签名校验后不满足签名要求的鉴权信息将被拒绝,以减少无效的函数调用。推荐用户进行安全的签名校验,默认开启。 + :type signing_enable: bool + :param signing_token: **参数说明**:签名校验的Key值,开启签名校验时使用。 **取值范围**:长度不超过128,只允许字母、数字、下划线(_)、连接符(-)的组合。 + :type signing_token: str + :param signing_public_key: **参数说明**:签名校验的公钥,开启签名校验时使用。用于认证设备携带的签名信息是否正确。 + :type signing_public_key: str + :param default_authorizer: **参数说明**:是否为默认的鉴权方式,默认为false。 + :type default_authorizer: bool + :param status: **参数说明**:是否激活该鉴权方式 - ACTIVE:该鉴权为激活状态。 - INACTIVE:该鉴权为停用状态。 + :type status: str + :param cache_enable: **参数说明**:是否开启缓存,默认为false,设备为true时,当设备入参(username,clientId,password,以及证书信息,函数urn)不变时,当缓存结果存在时,将直接使用缓存结果,建议在调试时设置为false,生产时设置为true,避免频繁调用函数。 + :type cache_enable: bool + :param create_time: 在物联网平台进行自定义鉴权相关操作的时间。格式:yyyyMMdd'T'HHmmss'Z',如:20151212T121212Z。 + :type create_time: str + :param update_time: 在物联网平台更新自定义鉴权相关操作的时间。格式:yyyyMMdd'T'HHmmss'Z',如:20151212T121212Z。 + :type update_time: str + """ + + super(CreateDeviceAuthorizerResponse, self).__init__() + + self._authorizer_id = None + self._authorizer_name = None + self._func_name = None + self._func_urn = None + self._signing_enable = None + self._signing_token = None + self._signing_public_key = None + self._default_authorizer = None + self._status = None + self._cache_enable = None + self._create_time = None + self._update_time = None + self.discriminator = None + + if authorizer_id is not None: + self.authorizer_id = authorizer_id + if authorizer_name is not None: + self.authorizer_name = authorizer_name + if func_name is not None: + self.func_name = func_name + if func_urn is not None: + self.func_urn = func_urn + if signing_enable is not None: + self.signing_enable = signing_enable + if signing_token is not None: + self.signing_token = signing_token + if signing_public_key is not None: + self.signing_public_key = signing_public_key + if default_authorizer is not None: + self.default_authorizer = default_authorizer + if status is not None: + self.status = status + if cache_enable is not None: + self.cache_enable = cache_enable + if create_time is not None: + self.create_time = create_time + if update_time is not None: + self.update_time = update_time + + @property + def authorizer_id(self): + """Gets the authorizer_id of this CreateDeviceAuthorizerResponse. + + **参数说明**:自定义鉴权ID。 + + :return: The authorizer_id of this CreateDeviceAuthorizerResponse. + :rtype: str + """ + return self._authorizer_id + + @authorizer_id.setter + def authorizer_id(self, authorizer_id): + """Sets the authorizer_id of this CreateDeviceAuthorizerResponse. + + **参数说明**:自定义鉴权ID。 + + :param authorizer_id: The authorizer_id of this CreateDeviceAuthorizerResponse. + :type authorizer_id: str + """ + self._authorizer_id = authorizer_id + + @property + def authorizer_name(self): + """Gets the authorizer_name of this CreateDeviceAuthorizerResponse. + + **参数说明**:自定义鉴权器名称,同一租户下的自定义鉴权器名称不能重复。 **取值范围**:长度不超过128,只允许字母、数字、下划线(_)、连接符(-)的组合。 + + :return: The authorizer_name of this CreateDeviceAuthorizerResponse. + :rtype: str + """ + return self._authorizer_name + + @authorizer_name.setter + def authorizer_name(self, authorizer_name): + """Sets the authorizer_name of this CreateDeviceAuthorizerResponse. + + **参数说明**:自定义鉴权器名称,同一租户下的自定义鉴权器名称不能重复。 **取值范围**:长度不超过128,只允许字母、数字、下划线(_)、连接符(-)的组合。 + + :param authorizer_name: The authorizer_name of this CreateDeviceAuthorizerResponse. + :type authorizer_name: str + """ + self._authorizer_name = authorizer_name + + @property + def func_name(self): + """Gets the func_name of this CreateDeviceAuthorizerResponse. + + **参数说明**:函数名称。 + + :return: The func_name of this CreateDeviceAuthorizerResponse. + :rtype: str + """ + return self._func_name + + @func_name.setter + def func_name(self, func_name): + """Sets the func_name of this CreateDeviceAuthorizerResponse. + + **参数说明**:函数名称。 + + :param func_name: The func_name of this CreateDeviceAuthorizerResponse. + :type func_name: str + """ + self._func_name = func_name + + @property + def func_urn(self): + """Gets the func_urn of this CreateDeviceAuthorizerResponse. + + **参数说明**:函数的URN(Uniform Resource Name),唯一标识函数,即自定义鉴权器对应的处理函数地址。 + + :return: The func_urn of this CreateDeviceAuthorizerResponse. + :rtype: str + """ + return self._func_urn + + @func_urn.setter + def func_urn(self, func_urn): + """Sets the func_urn of this CreateDeviceAuthorizerResponse. + + **参数说明**:函数的URN(Uniform Resource Name),唯一标识函数,即自定义鉴权器对应的处理函数地址。 + + :param func_urn: The func_urn of this CreateDeviceAuthorizerResponse. + :type func_urn: str + """ + self._func_urn = func_urn + + @property + def signing_enable(self): + """Gets the signing_enable of this CreateDeviceAuthorizerResponse. + + **参数说明**:是否启动签名校验,启动签名校验后不满足签名要求的鉴权信息将被拒绝,以减少无效的函数调用。推荐用户进行安全的签名校验,默认开启。 + + :return: The signing_enable of this CreateDeviceAuthorizerResponse. + :rtype: bool + """ + return self._signing_enable + + @signing_enable.setter + def signing_enable(self, signing_enable): + """Sets the signing_enable of this CreateDeviceAuthorizerResponse. + + **参数说明**:是否启动签名校验,启动签名校验后不满足签名要求的鉴权信息将被拒绝,以减少无效的函数调用。推荐用户进行安全的签名校验,默认开启。 + + :param signing_enable: The signing_enable of this CreateDeviceAuthorizerResponse. + :type signing_enable: bool + """ + self._signing_enable = signing_enable + + @property + def signing_token(self): + """Gets the signing_token of this CreateDeviceAuthorizerResponse. + + **参数说明**:签名校验的Key值,开启签名校验时使用。 **取值范围**:长度不超过128,只允许字母、数字、下划线(_)、连接符(-)的组合。 + + :return: The signing_token of this CreateDeviceAuthorizerResponse. + :rtype: str + """ + return self._signing_token + + @signing_token.setter + def signing_token(self, signing_token): + """Sets the signing_token of this CreateDeviceAuthorizerResponse. + + **参数说明**:签名校验的Key值,开启签名校验时使用。 **取值范围**:长度不超过128,只允许字母、数字、下划线(_)、连接符(-)的组合。 + + :param signing_token: The signing_token of this CreateDeviceAuthorizerResponse. + :type signing_token: str + """ + self._signing_token = signing_token + + @property + def signing_public_key(self): + """Gets the signing_public_key of this CreateDeviceAuthorizerResponse. + + **参数说明**:签名校验的公钥,开启签名校验时使用。用于认证设备携带的签名信息是否正确。 + + :return: The signing_public_key of this CreateDeviceAuthorizerResponse. + :rtype: str + """ + return self._signing_public_key + + @signing_public_key.setter + def signing_public_key(self, signing_public_key): + """Sets the signing_public_key of this CreateDeviceAuthorizerResponse. + + **参数说明**:签名校验的公钥,开启签名校验时使用。用于认证设备携带的签名信息是否正确。 + + :param signing_public_key: The signing_public_key of this CreateDeviceAuthorizerResponse. + :type signing_public_key: str + """ + self._signing_public_key = signing_public_key + + @property + def default_authorizer(self): + """Gets the default_authorizer of this CreateDeviceAuthorizerResponse. + + **参数说明**:是否为默认的鉴权方式,默认为false。 + + :return: The default_authorizer of this CreateDeviceAuthorizerResponse. + :rtype: bool + """ + return self._default_authorizer + + @default_authorizer.setter + def default_authorizer(self, default_authorizer): + """Sets the default_authorizer of this CreateDeviceAuthorizerResponse. + + **参数说明**:是否为默认的鉴权方式,默认为false。 + + :param default_authorizer: The default_authorizer of this CreateDeviceAuthorizerResponse. + :type default_authorizer: bool + """ + self._default_authorizer = default_authorizer + + @property + def status(self): + """Gets the status of this CreateDeviceAuthorizerResponse. + + **参数说明**:是否激活该鉴权方式 - ACTIVE:该鉴权为激活状态。 - INACTIVE:该鉴权为停用状态。 + + :return: The status of this CreateDeviceAuthorizerResponse. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this CreateDeviceAuthorizerResponse. + + **参数说明**:是否激活该鉴权方式 - ACTIVE:该鉴权为激活状态。 - INACTIVE:该鉴权为停用状态。 + + :param status: The status of this CreateDeviceAuthorizerResponse. + :type status: str + """ + self._status = status + + @property + def cache_enable(self): + """Gets the cache_enable of this CreateDeviceAuthorizerResponse. + + **参数说明**:是否开启缓存,默认为false,设备为true时,当设备入参(username,clientId,password,以及证书信息,函数urn)不变时,当缓存结果存在时,将直接使用缓存结果,建议在调试时设置为false,生产时设置为true,避免频繁调用函数。 + + :return: The cache_enable of this CreateDeviceAuthorizerResponse. + :rtype: bool + """ + return self._cache_enable + + @cache_enable.setter + def cache_enable(self, cache_enable): + """Sets the cache_enable of this CreateDeviceAuthorizerResponse. + + **参数说明**:是否开启缓存,默认为false,设备为true时,当设备入参(username,clientId,password,以及证书信息,函数urn)不变时,当缓存结果存在时,将直接使用缓存结果,建议在调试时设置为false,生产时设置为true,避免频繁调用函数。 + + :param cache_enable: The cache_enable of this CreateDeviceAuthorizerResponse. + :type cache_enable: bool + """ + self._cache_enable = cache_enable + + @property + def create_time(self): + """Gets the create_time of this CreateDeviceAuthorizerResponse. + + 在物联网平台进行自定义鉴权相关操作的时间。格式:yyyyMMdd'T'HHmmss'Z',如:20151212T121212Z。 + + :return: The create_time of this CreateDeviceAuthorizerResponse. + :rtype: str + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this CreateDeviceAuthorizerResponse. + + 在物联网平台进行自定义鉴权相关操作的时间。格式:yyyyMMdd'T'HHmmss'Z',如:20151212T121212Z。 + + :param create_time: The create_time of this CreateDeviceAuthorizerResponse. + :type create_time: str + """ + self._create_time = create_time + + @property + def update_time(self): + """Gets the update_time of this CreateDeviceAuthorizerResponse. + + 在物联网平台更新自定义鉴权相关操作的时间。格式:yyyyMMdd'T'HHmmss'Z',如:20151212T121212Z。 + + :return: The update_time of this CreateDeviceAuthorizerResponse. + :rtype: str + """ + return self._update_time + + @update_time.setter + def update_time(self, update_time): + """Sets the update_time of this CreateDeviceAuthorizerResponse. + + 在物联网平台更新自定义鉴权相关操作的时间。格式:yyyyMMdd'T'HHmmss'Z',如:20151212T121212Z。 + + :param update_time: The update_time of this CreateDeviceAuthorizerResponse. + :type update_time: str + """ + self._update_time = update_time + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateDeviceAuthorizerResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/create_device_policy.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/create_device_policy.py new file mode 100644 index 0000000000..f32be91aa1 --- /dev/null +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/create_device_policy.py @@ -0,0 +1,171 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateDevicePolicy: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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_name': 'str', + 'app_id': 'str', + 'statement': 'list[Statement]' + } + + attribute_map = { + 'policy_name': 'policy_name', + 'app_id': 'app_id', + 'statement': 'statement' + } + + def __init__(self, policy_name=None, app_id=None, statement=None): + """CreateDevicePolicy + + The model defined in huaweicloud sdk + + :param policy_name: **参数说明**:策略名称。 **取值范围**:长度不超过128,只允许字母、数字、下划线(_)、连接符(-)的组合。 + :type policy_name: str + :param app_id: **参数说明**:资源空间ID。此参数为非必选参数,存在多资源空间的用户需要使用该接口时,建议携带该参数指定创建的设备归属到哪个资源空间下,否则创建的设备将会归属到[[默认资源空间](https://support.huaweicloud.com/usermanual-iothub/iot_01_0006.html#section0)](tag:hws)[[默认资源空间](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0006.html#section0)](tag:hws_hk)下。 **取值范围**:长度不超过36,只允许字母、数字、下划线(_)、连接符(-)的组合。 + :type app_id: str + :param statement: **参数说明**:策略文档。 + :type statement: list[:class:`huaweicloudsdkiotda.v5.Statement`] + """ + + + + self._policy_name = None + self._app_id = None + self._statement = None + self.discriminator = None + + self.policy_name = policy_name + if app_id is not None: + self.app_id = app_id + self.statement = statement + + @property + def policy_name(self): + """Gets the policy_name of this CreateDevicePolicy. + + **参数说明**:策略名称。 **取值范围**:长度不超过128,只允许字母、数字、下划线(_)、连接符(-)的组合。 + + :return: The policy_name of this CreateDevicePolicy. + :rtype: str + """ + return self._policy_name + + @policy_name.setter + def policy_name(self, policy_name): + """Sets the policy_name of this CreateDevicePolicy. + + **参数说明**:策略名称。 **取值范围**:长度不超过128,只允许字母、数字、下划线(_)、连接符(-)的组合。 + + :param policy_name: The policy_name of this CreateDevicePolicy. + :type policy_name: str + """ + self._policy_name = policy_name + + @property + def app_id(self): + """Gets the app_id of this CreateDevicePolicy. + + **参数说明**:资源空间ID。此参数为非必选参数,存在多资源空间的用户需要使用该接口时,建议携带该参数指定创建的设备归属到哪个资源空间下,否则创建的设备将会归属到[[默认资源空间](https://support.huaweicloud.com/usermanual-iothub/iot_01_0006.html#section0)](tag:hws)[[默认资源空间](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0006.html#section0)](tag:hws_hk)下。 **取值范围**:长度不超过36,只允许字母、数字、下划线(_)、连接符(-)的组合。 + + :return: The app_id of this CreateDevicePolicy. + :rtype: str + """ + return self._app_id + + @app_id.setter + def app_id(self, app_id): + """Sets the app_id of this CreateDevicePolicy. + + **参数说明**:资源空间ID。此参数为非必选参数,存在多资源空间的用户需要使用该接口时,建议携带该参数指定创建的设备归属到哪个资源空间下,否则创建的设备将会归属到[[默认资源空间](https://support.huaweicloud.com/usermanual-iothub/iot_01_0006.html#section0)](tag:hws)[[默认资源空间](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0006.html#section0)](tag:hws_hk)下。 **取值范围**:长度不超过36,只允许字母、数字、下划线(_)、连接符(-)的组合。 + + :param app_id: The app_id of this CreateDevicePolicy. + :type app_id: str + """ + self._app_id = app_id + + @property + def statement(self): + """Gets the statement of this CreateDevicePolicy. + + **参数说明**:策略文档。 + + :return: The statement of this CreateDevicePolicy. + :rtype: list[:class:`huaweicloudsdkiotda.v5.Statement`] + """ + return self._statement + + @statement.setter + def statement(self, statement): + """Sets the statement of this CreateDevicePolicy. + + **参数说明**:策略文档。 + + :param statement: The statement of this CreateDevicePolicy. + :type statement: list[:class:`huaweicloudsdkiotda.v5.Statement`] + """ + self._statement = statement + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateDevicePolicy): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/create_device_policy_request.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/create_device_policy_request.py new file mode 100644 index 0000000000..03c7eb4526 --- /dev/null +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/create_device_policy_request.py @@ -0,0 +1,140 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateDevicePolicyRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'body': 'CreateDevicePolicy' + } + + attribute_map = { + 'instance_id': 'Instance-Id', + 'body': 'body' + } + + def __init__(self, instance_id=None, body=None): + """CreateDevicePolicyRequest + + The model defined in huaweicloud sdk + + :param instance_id: **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0079.html#section1)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0079.html#section1)](tag:hws_hk)。 + :type instance_id: str + :param body: Body of the CreateDevicePolicyRequest + :type body: :class:`huaweicloudsdkiotda.v5.CreateDevicePolicy` + """ + + + + self._instance_id = None + self._body = None + self.discriminator = None + + if instance_id is not None: + self.instance_id = instance_id + if body is not None: + self.body = body + + @property + def instance_id(self): + """Gets the instance_id of this CreateDevicePolicyRequest. + + **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0079.html#section1)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0079.html#section1)](tag:hws_hk)。 + + :return: The instance_id of this CreateDevicePolicyRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this CreateDevicePolicyRequest. + + **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0079.html#section1)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0079.html#section1)](tag:hws_hk)。 + + :param instance_id: The instance_id of this CreateDevicePolicyRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def body(self): + """Gets the body of this CreateDevicePolicyRequest. + + :return: The body of this CreateDevicePolicyRequest. + :rtype: :class:`huaweicloudsdkiotda.v5.CreateDevicePolicy` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateDevicePolicyRequest. + + :param body: The body of this CreateDevicePolicyRequest. + :type body: :class:`huaweicloudsdkiotda.v5.CreateDevicePolicy` + """ + 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, CreateDevicePolicyRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/create_device_policy_response.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/create_device_policy_response.py new file mode 100644 index 0000000000..62c2d6cabf --- /dev/null +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/create_device_policy_response.py @@ -0,0 +1,261 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateDevicePolicyResponse(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 = { + 'app_id': 'str', + 'policy_id': 'str', + 'policy_name': 'str', + 'statement': 'list[Statement]', + 'create_time': 'str', + 'update_time': 'str' + } + + attribute_map = { + 'app_id': 'app_id', + 'policy_id': 'policy_id', + 'policy_name': 'policy_name', + 'statement': 'statement', + 'create_time': 'create_time', + 'update_time': 'update_time' + } + + def __init__(self, app_id=None, policy_id=None, policy_name=None, statement=None, create_time=None, update_time=None): + """CreateDevicePolicyResponse + + The model defined in huaweicloud sdk + + :param app_id: **参数说明**:资源空间ID。 + :type app_id: str + :param policy_id: 策略ID。 + :type policy_id: str + :param policy_name: 策略名称。 + :type policy_name: str + :param statement: 策略文档。 + :type statement: list[:class:`huaweicloudsdkiotda.v5.Statement`] + :param create_time: 在物联网平台创建策略的时间。格式:yyyyMMdd'T'HHmmss'Z',如20151212T121212Z。 + :type create_time: str + :param update_time: 在物联网平台更新策略的时间。格式:yyyyMMdd'T'HHmmss'Z',如20151212T121212Z。 + :type update_time: str + """ + + super(CreateDevicePolicyResponse, self).__init__() + + self._app_id = None + self._policy_id = None + self._policy_name = None + self._statement = None + self._create_time = None + self._update_time = None + self.discriminator = None + + if app_id is not None: + self.app_id = app_id + if policy_id is not None: + self.policy_id = policy_id + if policy_name is not None: + self.policy_name = policy_name + if statement is not None: + self.statement = statement + if create_time is not None: + self.create_time = create_time + if update_time is not None: + self.update_time = update_time + + @property + def app_id(self): + """Gets the app_id of this CreateDevicePolicyResponse. + + **参数说明**:资源空间ID。 + + :return: The app_id of this CreateDevicePolicyResponse. + :rtype: str + """ + return self._app_id + + @app_id.setter + def app_id(self, app_id): + """Sets the app_id of this CreateDevicePolicyResponse. + + **参数说明**:资源空间ID。 + + :param app_id: The app_id of this CreateDevicePolicyResponse. + :type app_id: str + """ + self._app_id = app_id + + @property + def policy_id(self): + """Gets the policy_id of this CreateDevicePolicyResponse. + + 策略ID。 + + :return: The policy_id of this CreateDevicePolicyResponse. + :rtype: str + """ + return self._policy_id + + @policy_id.setter + def policy_id(self, policy_id): + """Sets the policy_id of this CreateDevicePolicyResponse. + + 策略ID。 + + :param policy_id: The policy_id of this CreateDevicePolicyResponse. + :type policy_id: str + """ + self._policy_id = policy_id + + @property + def policy_name(self): + """Gets the policy_name of this CreateDevicePolicyResponse. + + 策略名称。 + + :return: The policy_name of this CreateDevicePolicyResponse. + :rtype: str + """ + return self._policy_name + + @policy_name.setter + def policy_name(self, policy_name): + """Sets the policy_name of this CreateDevicePolicyResponse. + + 策略名称。 + + :param policy_name: The policy_name of this CreateDevicePolicyResponse. + :type policy_name: str + """ + self._policy_name = policy_name + + @property + def statement(self): + """Gets the statement of this CreateDevicePolicyResponse. + + 策略文档。 + + :return: The statement of this CreateDevicePolicyResponse. + :rtype: list[:class:`huaweicloudsdkiotda.v5.Statement`] + """ + return self._statement + + @statement.setter + def statement(self, statement): + """Sets the statement of this CreateDevicePolicyResponse. + + 策略文档。 + + :param statement: The statement of this CreateDevicePolicyResponse. + :type statement: list[:class:`huaweicloudsdkiotda.v5.Statement`] + """ + self._statement = statement + + @property + def create_time(self): + """Gets the create_time of this CreateDevicePolicyResponse. + + 在物联网平台创建策略的时间。格式:yyyyMMdd'T'HHmmss'Z',如20151212T121212Z。 + + :return: The create_time of this CreateDevicePolicyResponse. + :rtype: str + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this CreateDevicePolicyResponse. + + 在物联网平台创建策略的时间。格式:yyyyMMdd'T'HHmmss'Z',如20151212T121212Z。 + + :param create_time: The create_time of this CreateDevicePolicyResponse. + :type create_time: str + """ + self._create_time = create_time + + @property + def update_time(self): + """Gets the update_time of this CreateDevicePolicyResponse. + + 在物联网平台更新策略的时间。格式:yyyyMMdd'T'HHmmss'Z',如20151212T121212Z。 + + :return: The update_time of this CreateDevicePolicyResponse. + :rtype: str + """ + return self._update_time + + @update_time.setter + def update_time(self, update_time): + """Sets the update_time of this CreateDevicePolicyResponse. + + 在物联网平台更新策略的时间。格式:yyyyMMdd'T'HHmmss'Z',如20151212T121212Z。 + + :param update_time: The update_time of this CreateDevicePolicyResponse. + :type update_time: str + """ + self._update_time = update_time + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateDevicePolicyResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/create_provisioning_template.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/create_provisioning_template.py new file mode 100644 index 0000000000..a285a6494a --- /dev/null +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/create_provisioning_template.py @@ -0,0 +1,167 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateProvisioningTemplate: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'template_name': 'str', + 'description': 'str', + 'template_body': 'ProvisioningTemplateBody' + } + + attribute_map = { + 'template_name': 'template_name', + 'description': 'description', + 'template_body': 'template_body' + } + + def __init__(self, template_name=None, description=None, template_body=None): + """CreateProvisioningTemplate + + The model defined in huaweicloud sdk + + :param template_name: **参数说明**:预调配模板名称。 **取值范围**:长度不超过128,只允许中文、字母、数字、下划线(_)、连接符(-)的组合。 + :type template_name: str + :param description: **参数说明**:预调配模板的描述信息。 **取值范围**:长度不超过2048,只允许中文、字母、数字、以及_?'#().,&%@!-等字符的组合 + :type description: str + :param template_body: + :type template_body: :class:`huaweicloudsdkiotda.v5.ProvisioningTemplateBody` + """ + + + + self._template_name = None + self._description = None + self._template_body = None + self.discriminator = None + + self.template_name = template_name + if description is not None: + self.description = description + self.template_body = template_body + + @property + def template_name(self): + """Gets the template_name of this CreateProvisioningTemplate. + + **参数说明**:预调配模板名称。 **取值范围**:长度不超过128,只允许中文、字母、数字、下划线(_)、连接符(-)的组合。 + + :return: The template_name of this CreateProvisioningTemplate. + :rtype: str + """ + return self._template_name + + @template_name.setter + def template_name(self, template_name): + """Sets the template_name of this CreateProvisioningTemplate. + + **参数说明**:预调配模板名称。 **取值范围**:长度不超过128,只允许中文、字母、数字、下划线(_)、连接符(-)的组合。 + + :param template_name: The template_name of this CreateProvisioningTemplate. + :type template_name: str + """ + self._template_name = template_name + + @property + def description(self): + """Gets the description of this CreateProvisioningTemplate. + + **参数说明**:预调配模板的描述信息。 **取值范围**:长度不超过2048,只允许中文、字母、数字、以及_?'#().,&%@!-等字符的组合 + + :return: The description of this CreateProvisioningTemplate. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this CreateProvisioningTemplate. + + **参数说明**:预调配模板的描述信息。 **取值范围**:长度不超过2048,只允许中文、字母、数字、以及_?'#().,&%@!-等字符的组合 + + :param description: The description of this CreateProvisioningTemplate. + :type description: str + """ + self._description = description + + @property + def template_body(self): + """Gets the template_body of this CreateProvisioningTemplate. + + :return: The template_body of this CreateProvisioningTemplate. + :rtype: :class:`huaweicloudsdkiotda.v5.ProvisioningTemplateBody` + """ + return self._template_body + + @template_body.setter + def template_body(self, template_body): + """Sets the template_body of this CreateProvisioningTemplate. + + :param template_body: The template_body of this CreateProvisioningTemplate. + :type template_body: :class:`huaweicloudsdkiotda.v5.ProvisioningTemplateBody` + """ + self._template_body = template_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, CreateProvisioningTemplate): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/create_provisioning_template_request.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/create_provisioning_template_request.py new file mode 100644 index 0000000000..48ad539e22 --- /dev/null +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/create_provisioning_template_request.py @@ -0,0 +1,140 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateProvisioningTemplateRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'body': 'CreateProvisioningTemplate' + } + + attribute_map = { + 'instance_id': 'Instance-Id', + 'body': 'body' + } + + def __init__(self, instance_id=None, body=None): + """CreateProvisioningTemplateRequest + + The model defined in huaweicloud sdk + + :param instance_id: **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0079.html#section1)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0079.html#section1)](tag:hws_hk)。 + :type instance_id: str + :param body: Body of the CreateProvisioningTemplateRequest + :type body: :class:`huaweicloudsdkiotda.v5.CreateProvisioningTemplate` + """ + + + + self._instance_id = None + self._body = None + self.discriminator = None + + if instance_id is not None: + self.instance_id = instance_id + if body is not None: + self.body = body + + @property + def instance_id(self): + """Gets the instance_id of this CreateProvisioningTemplateRequest. + + **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0079.html#section1)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0079.html#section1)](tag:hws_hk)。 + + :return: The instance_id of this CreateProvisioningTemplateRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this CreateProvisioningTemplateRequest. + + **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0079.html#section1)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0079.html#section1)](tag:hws_hk)。 + + :param instance_id: The instance_id of this CreateProvisioningTemplateRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def body(self): + """Gets the body of this CreateProvisioningTemplateRequest. + + :return: The body of this CreateProvisioningTemplateRequest. + :rtype: :class:`huaweicloudsdkiotda.v5.CreateProvisioningTemplate` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateProvisioningTemplateRequest. + + :param body: The body of this CreateProvisioningTemplateRequest. + :type body: :class:`huaweicloudsdkiotda.v5.CreateProvisioningTemplate` + """ + 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, CreateProvisioningTemplateRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/create_provisioning_template_response.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/create_provisioning_template_response.py new file mode 100644 index 0000000000..7217e01137 --- /dev/null +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/create_provisioning_template_response.py @@ -0,0 +1,257 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateProvisioningTemplateResponse(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 = { + 'template_id': 'str', + 'template_name': 'str', + 'description': 'str', + 'template_body': 'ProvisioningTemplateBody', + 'create_time': 'str', + 'update_time': 'str' + } + + attribute_map = { + 'template_id': 'template_id', + 'template_name': 'template_name', + 'description': 'description', + 'template_body': 'template_body', + 'create_time': 'create_time', + 'update_time': 'update_time' + } + + def __init__(self, template_id=None, template_name=None, description=None, template_body=None, create_time=None, update_time=None): + """CreateProvisioningTemplateResponse + + The model defined in huaweicloud sdk + + :param template_id: **参数说明**:预调配模板ID。 + :type template_id: str + :param template_name: **参数说明**:预调配模板名称。 **取值范围**:长度不超过128,只允许中文、字母、数字、下划线(_)、连接符(-)的组合。 + :type template_name: str + :param description: **参数说明**:预调配模板的描述信息。 **取值范围**:长度不超过2048,只允许中文、字母、数字、以及_?'#().,&%@!-等字符的组合 + :type description: str + :param template_body: + :type template_body: :class:`huaweicloudsdkiotda.v5.ProvisioningTemplateBody` + :param create_time: 在物联网平台创建预调配模板的时间。格式:yyyyMMdd'T'HHmmss'Z',如20151212T121212Z。 + :type create_time: str + :param update_time: 在物联网平台更新预调配模板的时间。格式:yyyyMMdd'T'HHmmss'Z',如20151212T121212Z。 + :type update_time: str + """ + + super(CreateProvisioningTemplateResponse, self).__init__() + + self._template_id = None + self._template_name = None + self._description = None + self._template_body = None + self._create_time = None + self._update_time = None + self.discriminator = None + + if template_id is not None: + self.template_id = template_id + if template_name is not None: + self.template_name = template_name + if description is not None: + self.description = description + if template_body is not None: + self.template_body = template_body + if create_time is not None: + self.create_time = create_time + if update_time is not None: + self.update_time = update_time + + @property + def template_id(self): + """Gets the template_id of this CreateProvisioningTemplateResponse. + + **参数说明**:预调配模板ID。 + + :return: The template_id of this CreateProvisioningTemplateResponse. + :rtype: str + """ + return self._template_id + + @template_id.setter + def template_id(self, template_id): + """Sets the template_id of this CreateProvisioningTemplateResponse. + + **参数说明**:预调配模板ID。 + + :param template_id: The template_id of this CreateProvisioningTemplateResponse. + :type template_id: str + """ + self._template_id = template_id + + @property + def template_name(self): + """Gets the template_name of this CreateProvisioningTemplateResponse. + + **参数说明**:预调配模板名称。 **取值范围**:长度不超过128,只允许中文、字母、数字、下划线(_)、连接符(-)的组合。 + + :return: The template_name of this CreateProvisioningTemplateResponse. + :rtype: str + """ + return self._template_name + + @template_name.setter + def template_name(self, template_name): + """Sets the template_name of this CreateProvisioningTemplateResponse. + + **参数说明**:预调配模板名称。 **取值范围**:长度不超过128,只允许中文、字母、数字、下划线(_)、连接符(-)的组合。 + + :param template_name: The template_name of this CreateProvisioningTemplateResponse. + :type template_name: str + """ + self._template_name = template_name + + @property + def description(self): + """Gets the description of this CreateProvisioningTemplateResponse. + + **参数说明**:预调配模板的描述信息。 **取值范围**:长度不超过2048,只允许中文、字母、数字、以及_?'#().,&%@!-等字符的组合 + + :return: The description of this CreateProvisioningTemplateResponse. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this CreateProvisioningTemplateResponse. + + **参数说明**:预调配模板的描述信息。 **取值范围**:长度不超过2048,只允许中文、字母、数字、以及_?'#().,&%@!-等字符的组合 + + :param description: The description of this CreateProvisioningTemplateResponse. + :type description: str + """ + self._description = description + + @property + def template_body(self): + """Gets the template_body of this CreateProvisioningTemplateResponse. + + :return: The template_body of this CreateProvisioningTemplateResponse. + :rtype: :class:`huaweicloudsdkiotda.v5.ProvisioningTemplateBody` + """ + return self._template_body + + @template_body.setter + def template_body(self, template_body): + """Sets the template_body of this CreateProvisioningTemplateResponse. + + :param template_body: The template_body of this CreateProvisioningTemplateResponse. + :type template_body: :class:`huaweicloudsdkiotda.v5.ProvisioningTemplateBody` + """ + self._template_body = template_body + + @property + def create_time(self): + """Gets the create_time of this CreateProvisioningTemplateResponse. + + 在物联网平台创建预调配模板的时间。格式:yyyyMMdd'T'HHmmss'Z',如20151212T121212Z。 + + :return: The create_time of this CreateProvisioningTemplateResponse. + :rtype: str + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this CreateProvisioningTemplateResponse. + + 在物联网平台创建预调配模板的时间。格式:yyyyMMdd'T'HHmmss'Z',如20151212T121212Z。 + + :param create_time: The create_time of this CreateProvisioningTemplateResponse. + :type create_time: str + """ + self._create_time = create_time + + @property + def update_time(self): + """Gets the update_time of this CreateProvisioningTemplateResponse. + + 在物联网平台更新预调配模板的时间。格式:yyyyMMdd'T'HHmmss'Z',如20151212T121212Z。 + + :return: The update_time of this CreateProvisioningTemplateResponse. + :rtype: str + """ + return self._update_time + + @update_time.setter + def update_time(self, update_time): + """Sets the update_time of this CreateProvisioningTemplateResponse. + + 在物联网平台更新预调配模板的时间。格式:yyyyMMdd'T'HHmmss'Z',如20151212T121212Z。 + + :param update_time: The update_time of this CreateProvisioningTemplateResponse. + :type update_time: str + """ + self._update_time = update_time + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateProvisioningTemplateResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/delete_device_authorizer_request.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/delete_device_authorizer_request.py new file mode 100644 index 0000000000..de6e9783b2 --- /dev/null +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/delete_device_authorizer_request.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteDeviceAuthorizerRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'authorizer_id': 'str' + } + + attribute_map = { + 'instance_id': 'Instance-Id', + 'authorizer_id': 'authorizer_id' + } + + def __init__(self, instance_id=None, authorizer_id=None): + """DeleteDeviceAuthorizerRequest + + The model defined in huaweicloud sdk + + :param instance_id: **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0079.html#section1)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0079.html#section1)](tag:hws_hk)。 + :type instance_id: str + :param authorizer_id: 自定义鉴权ID + :type authorizer_id: str + """ + + + + self._instance_id = None + self._authorizer_id = None + self.discriminator = None + + if instance_id is not None: + self.instance_id = instance_id + self.authorizer_id = authorizer_id + + @property + def instance_id(self): + """Gets the instance_id of this DeleteDeviceAuthorizerRequest. + + **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0079.html#section1)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0079.html#section1)](tag:hws_hk)。 + + :return: The instance_id of this DeleteDeviceAuthorizerRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this DeleteDeviceAuthorizerRequest. + + **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0079.html#section1)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0079.html#section1)](tag:hws_hk)。 + + :param instance_id: The instance_id of this DeleteDeviceAuthorizerRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def authorizer_id(self): + """Gets the authorizer_id of this DeleteDeviceAuthorizerRequest. + + 自定义鉴权ID + + :return: The authorizer_id of this DeleteDeviceAuthorizerRequest. + :rtype: str + """ + return self._authorizer_id + + @authorizer_id.setter + def authorizer_id(self, authorizer_id): + """Sets the authorizer_id of this DeleteDeviceAuthorizerRequest. + + 自定义鉴权ID + + :param authorizer_id: The authorizer_id of this DeleteDeviceAuthorizerRequest. + :type authorizer_id: str + """ + self._authorizer_id = authorizer_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, DeleteDeviceAuthorizerRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/delete_device_authorizer_response.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/delete_device_authorizer_response.py new file mode 100644 index 0000000000..84af42a4c6 --- /dev/null +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/delete_device_authorizer_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 DeleteDeviceAuthorizerResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'body': 'str' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """DeleteDeviceAuthorizerResponse + + The model defined in huaweicloud sdk + + :param body: + :type body: str + """ + + super(DeleteDeviceAuthorizerResponse, self).__init__() + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this DeleteDeviceAuthorizerResponse. + + :return: The body of this DeleteDeviceAuthorizerResponse. + :rtype: str + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this DeleteDeviceAuthorizerResponse. + + :param body: The body of this DeleteDeviceAuthorizerResponse. + :type body: str + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteDeviceAuthorizerResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/delete_device_policy_request.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/delete_device_policy_request.py new file mode 100644 index 0000000000..1c0c5deb18 --- /dev/null +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/delete_device_policy_request.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteDevicePolicyRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'policy_id': 'str' + } + + attribute_map = { + 'instance_id': 'Instance-Id', + 'policy_id': 'policy_id' + } + + def __init__(self, instance_id=None, policy_id=None): + """DeleteDevicePolicyRequest + + The model defined in huaweicloud sdk + + :param instance_id: **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0079.html#section1)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0079.html#section1)](tag:hws_hk)。 + :type instance_id: str + :param policy_id: 策略ID。**取值范围**:仅允许A-F,a-f和数字的组合,长度为24。 + :type policy_id: str + """ + + + + self._instance_id = None + self._policy_id = None + self.discriminator = None + + if instance_id is not None: + self.instance_id = instance_id + self.policy_id = policy_id + + @property + def instance_id(self): + """Gets the instance_id of this DeleteDevicePolicyRequest. + + **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0079.html#section1)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0079.html#section1)](tag:hws_hk)。 + + :return: The instance_id of this DeleteDevicePolicyRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this DeleteDevicePolicyRequest. + + **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0079.html#section1)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0079.html#section1)](tag:hws_hk)。 + + :param instance_id: The instance_id of this DeleteDevicePolicyRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def policy_id(self): + """Gets the policy_id of this DeleteDevicePolicyRequest. + + 策略ID。**取值范围**:仅允许A-F,a-f和数字的组合,长度为24。 + + :return: The policy_id of this DeleteDevicePolicyRequest. + :rtype: str + """ + return self._policy_id + + @policy_id.setter + def policy_id(self, policy_id): + """Sets the policy_id of this DeleteDevicePolicyRequest. + + 策略ID。**取值范围**:仅允许A-F,a-f和数字的组合,长度为24。 + + :param policy_id: The policy_id of this DeleteDevicePolicyRequest. + :type policy_id: str + """ + self._policy_id = policy_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, DeleteDevicePolicyRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/delete_device_policy_response.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/delete_device_policy_response.py new file mode 100644 index 0000000000..900d4c6160 --- /dev/null +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/delete_device_policy_response.py @@ -0,0 +1,112 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteDevicePolicyResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'body': 'str' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """DeleteDevicePolicyResponse + + The model defined in huaweicloud sdk + + :param body: + :type body: str + """ + + super(DeleteDevicePolicyResponse, self).__init__() + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this DeleteDevicePolicyResponse. + + :return: The body of this DeleteDevicePolicyResponse. + :rtype: str + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this DeleteDevicePolicyResponse. + + :param body: The body of this DeleteDevicePolicyResponse. + :type body: str + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteDevicePolicyResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/delete_provisioning_template_request.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/delete_provisioning_template_request.py new file mode 100644 index 0000000000..95b1fe0fe9 --- /dev/null +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/delete_provisioning_template_request.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteProvisioningTemplateRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'template_id': 'str' + } + + attribute_map = { + 'instance_id': 'Instance-Id', + 'template_id': 'template_id' + } + + def __init__(self, instance_id=None, template_id=None): + """DeleteProvisioningTemplateRequest + + The model defined in huaweicloud sdk + + :param instance_id: **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0079.html#section1)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0079.html#section1)](tag:hws_hk)。 + :type instance_id: str + :param template_id: 预调配模板ID + :type template_id: str + """ + + + + self._instance_id = None + self._template_id = None + self.discriminator = None + + if instance_id is not None: + self.instance_id = instance_id + self.template_id = template_id + + @property + def instance_id(self): + """Gets the instance_id of this DeleteProvisioningTemplateRequest. + + **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0079.html#section1)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0079.html#section1)](tag:hws_hk)。 + + :return: The instance_id of this DeleteProvisioningTemplateRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this DeleteProvisioningTemplateRequest. + + **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0079.html#section1)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0079.html#section1)](tag:hws_hk)。 + + :param instance_id: The instance_id of this DeleteProvisioningTemplateRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def template_id(self): + """Gets the template_id of this DeleteProvisioningTemplateRequest. + + 预调配模板ID + + :return: The template_id of this DeleteProvisioningTemplateRequest. + :rtype: str + """ + return self._template_id + + @template_id.setter + def template_id(self, template_id): + """Sets the template_id of this DeleteProvisioningTemplateRequest. + + 预调配模板ID + + :param template_id: The template_id of this DeleteProvisioningTemplateRequest. + :type template_id: str + """ + self._template_id = template_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, DeleteProvisioningTemplateRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/delete_provisioning_template_response.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/delete_provisioning_template_response.py new file mode 100644 index 0000000000..355923fee3 --- /dev/null +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/delete_provisioning_template_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 DeleteProvisioningTemplateResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'body': 'str' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """DeleteProvisioningTemplateResponse + + The model defined in huaweicloud sdk + + :param body: + :type body: str + """ + + super(DeleteProvisioningTemplateResponse, self).__init__() + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this DeleteProvisioningTemplateResponse. + + :return: The body of this DeleteProvisioningTemplateResponse. + :rtype: str + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this DeleteProvisioningTemplateResponse. + + :param body: The body of this DeleteProvisioningTemplateResponse. + :type body: str + """ + self._body = body + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteProvisioningTemplateResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/device_authorizer_simple.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/device_authorizer_simple.py new file mode 100644 index 0000000000..54e15178a8 --- /dev/null +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/device_authorizer_simple.py @@ -0,0 +1,376 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeviceAuthorizerSimple: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'authorizer_id': 'str', + 'authorizer_name': 'str', + 'func_name': 'str', + 'func_urn': 'str', + 'signing_enable': 'bool', + 'default_authorizer': 'bool', + 'status': 'str', + 'cache_enable': 'bool', + 'create_time': 'str', + 'update_time': 'str' + } + + attribute_map = { + 'authorizer_id': 'authorizer_id', + 'authorizer_name': 'authorizer_name', + 'func_name': 'func_name', + 'func_urn': 'func_urn', + 'signing_enable': 'signing_enable', + 'default_authorizer': 'default_authorizer', + 'status': 'status', + 'cache_enable': 'cache_enable', + 'create_time': 'create_time', + 'update_time': 'update_time' + } + + def __init__(self, authorizer_id=None, authorizer_name=None, func_name=None, func_urn=None, signing_enable=None, default_authorizer=None, status=None, cache_enable=None, create_time=None, update_time=None): + """DeviceAuthorizerSimple + + The model defined in huaweicloud sdk + + :param authorizer_id: **参数说明**:自定义鉴权ID。 + :type authorizer_id: str + :param authorizer_name: **参数说明**:自定义鉴权器名称,同一租户下的自定义鉴权器名称不能重复。 **取值范围**:长度不超过128,只允许字母、数字、下划线(_)、连接符(-)的组合。 + :type authorizer_name: str + :param func_name: **参数说明**:自定义鉴权器对应的函数名称。 + :type func_name: str + :param func_urn: **参数说明**:函数的URN(Uniform Resource Name),唯一标识函数,即自定义鉴权器对应的处理函数地址。 + :type func_urn: str + :param signing_enable: **参数说明**:是否启动签名校验,启动签名校验后不满足签名要求的鉴权信息将被拒绝,以减少无效的函数调用。推荐用户进行安全的签名校验,默认开启。 + :type signing_enable: bool + :param default_authorizer: **参数说明**:当前自定义鉴权是否为默认的鉴权方式,默认为false,当设置为true时,用户所有支持SNI的设备,如果在鉴权时不指定使用特定的设备鉴权,将统一使用当前鉴权器策略进行鉴权。 + :type default_authorizer: bool + :param status: **参数说明**:是否激活该鉴权方式 - ACTIVE:该鉴权为激活状态。 - INACTIVE:该鉴权为停用状态。 + :type status: str + :param cache_enable: **参数说明**:是否开启缓存,默认为false,设备为true时,当设备入参(username,clientId,password,以及证书信息,函数urn)不变时,当缓存结果存在时,将直接使用缓存结果,建议在调试时设置为false,生产时设置为true,避免频繁调用函数。 + :type cache_enable: bool + :param create_time: 在物联网平台查询自定义鉴权的时间。格式:yyyyMMdd'T'HHmmss'Z',如:20151212T121212Z。 + :type create_time: str + :param update_time: 在物联网平台更新查询自定义鉴权的时间。格式:yyyyMMdd'T'HHmmss'Z',如:20151212T121212Z。 + :type update_time: str + """ + + + + self._authorizer_id = None + self._authorizer_name = None + self._func_name = None + self._func_urn = None + self._signing_enable = None + self._default_authorizer = None + self._status = None + self._cache_enable = None + self._create_time = None + self._update_time = None + self.discriminator = None + + if authorizer_id is not None: + self.authorizer_id = authorizer_id + if authorizer_name is not None: + self.authorizer_name = authorizer_name + if func_name is not None: + self.func_name = func_name + if func_urn is not None: + self.func_urn = func_urn + if signing_enable is not None: + self.signing_enable = signing_enable + if default_authorizer is not None: + self.default_authorizer = default_authorizer + if status is not None: + self.status = status + if cache_enable is not None: + self.cache_enable = cache_enable + if create_time is not None: + self.create_time = create_time + if update_time is not None: + self.update_time = update_time + + @property + def authorizer_id(self): + """Gets the authorizer_id of this DeviceAuthorizerSimple. + + **参数说明**:自定义鉴权ID。 + + :return: The authorizer_id of this DeviceAuthorizerSimple. + :rtype: str + """ + return self._authorizer_id + + @authorizer_id.setter + def authorizer_id(self, authorizer_id): + """Sets the authorizer_id of this DeviceAuthorizerSimple. + + **参数说明**:自定义鉴权ID。 + + :param authorizer_id: The authorizer_id of this DeviceAuthorizerSimple. + :type authorizer_id: str + """ + self._authorizer_id = authorizer_id + + @property + def authorizer_name(self): + """Gets the authorizer_name of this DeviceAuthorizerSimple. + + **参数说明**:自定义鉴权器名称,同一租户下的自定义鉴权器名称不能重复。 **取值范围**:长度不超过128,只允许字母、数字、下划线(_)、连接符(-)的组合。 + + :return: The authorizer_name of this DeviceAuthorizerSimple. + :rtype: str + """ + return self._authorizer_name + + @authorizer_name.setter + def authorizer_name(self, authorizer_name): + """Sets the authorizer_name of this DeviceAuthorizerSimple. + + **参数说明**:自定义鉴权器名称,同一租户下的自定义鉴权器名称不能重复。 **取值范围**:长度不超过128,只允许字母、数字、下划线(_)、连接符(-)的组合。 + + :param authorizer_name: The authorizer_name of this DeviceAuthorizerSimple. + :type authorizer_name: str + """ + self._authorizer_name = authorizer_name + + @property + def func_name(self): + """Gets the func_name of this DeviceAuthorizerSimple. + + **参数说明**:自定义鉴权器对应的函数名称。 + + :return: The func_name of this DeviceAuthorizerSimple. + :rtype: str + """ + return self._func_name + + @func_name.setter + def func_name(self, func_name): + """Sets the func_name of this DeviceAuthorizerSimple. + + **参数说明**:自定义鉴权器对应的函数名称。 + + :param func_name: The func_name of this DeviceAuthorizerSimple. + :type func_name: str + """ + self._func_name = func_name + + @property + def func_urn(self): + """Gets the func_urn of this DeviceAuthorizerSimple. + + **参数说明**:函数的URN(Uniform Resource Name),唯一标识函数,即自定义鉴权器对应的处理函数地址。 + + :return: The func_urn of this DeviceAuthorizerSimple. + :rtype: str + """ + return self._func_urn + + @func_urn.setter + def func_urn(self, func_urn): + """Sets the func_urn of this DeviceAuthorizerSimple. + + **参数说明**:函数的URN(Uniform Resource Name),唯一标识函数,即自定义鉴权器对应的处理函数地址。 + + :param func_urn: The func_urn of this DeviceAuthorizerSimple. + :type func_urn: str + """ + self._func_urn = func_urn + + @property + def signing_enable(self): + """Gets the signing_enable of this DeviceAuthorizerSimple. + + **参数说明**:是否启动签名校验,启动签名校验后不满足签名要求的鉴权信息将被拒绝,以减少无效的函数调用。推荐用户进行安全的签名校验,默认开启。 + + :return: The signing_enable of this DeviceAuthorizerSimple. + :rtype: bool + """ + return self._signing_enable + + @signing_enable.setter + def signing_enable(self, signing_enable): + """Sets the signing_enable of this DeviceAuthorizerSimple. + + **参数说明**:是否启动签名校验,启动签名校验后不满足签名要求的鉴权信息将被拒绝,以减少无效的函数调用。推荐用户进行安全的签名校验,默认开启。 + + :param signing_enable: The signing_enable of this DeviceAuthorizerSimple. + :type signing_enable: bool + """ + self._signing_enable = signing_enable + + @property + def default_authorizer(self): + """Gets the default_authorizer of this DeviceAuthorizerSimple. + + **参数说明**:当前自定义鉴权是否为默认的鉴权方式,默认为false,当设置为true时,用户所有支持SNI的设备,如果在鉴权时不指定使用特定的设备鉴权,将统一使用当前鉴权器策略进行鉴权。 + + :return: The default_authorizer of this DeviceAuthorizerSimple. + :rtype: bool + """ + return self._default_authorizer + + @default_authorizer.setter + def default_authorizer(self, default_authorizer): + """Sets the default_authorizer of this DeviceAuthorizerSimple. + + **参数说明**:当前自定义鉴权是否为默认的鉴权方式,默认为false,当设置为true时,用户所有支持SNI的设备,如果在鉴权时不指定使用特定的设备鉴权,将统一使用当前鉴权器策略进行鉴权。 + + :param default_authorizer: The default_authorizer of this DeviceAuthorizerSimple. + :type default_authorizer: bool + """ + self._default_authorizer = default_authorizer + + @property + def status(self): + """Gets the status of this DeviceAuthorizerSimple. + + **参数说明**:是否激活该鉴权方式 - ACTIVE:该鉴权为激活状态。 - INACTIVE:该鉴权为停用状态。 + + :return: The status of this DeviceAuthorizerSimple. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this DeviceAuthorizerSimple. + + **参数说明**:是否激活该鉴权方式 - ACTIVE:该鉴权为激活状态。 - INACTIVE:该鉴权为停用状态。 + + :param status: The status of this DeviceAuthorizerSimple. + :type status: str + """ + self._status = status + + @property + def cache_enable(self): + """Gets the cache_enable of this DeviceAuthorizerSimple. + + **参数说明**:是否开启缓存,默认为false,设备为true时,当设备入参(username,clientId,password,以及证书信息,函数urn)不变时,当缓存结果存在时,将直接使用缓存结果,建议在调试时设置为false,生产时设置为true,避免频繁调用函数。 + + :return: The cache_enable of this DeviceAuthorizerSimple. + :rtype: bool + """ + return self._cache_enable + + @cache_enable.setter + def cache_enable(self, cache_enable): + """Sets the cache_enable of this DeviceAuthorizerSimple. + + **参数说明**:是否开启缓存,默认为false,设备为true时,当设备入参(username,clientId,password,以及证书信息,函数urn)不变时,当缓存结果存在时,将直接使用缓存结果,建议在调试时设置为false,生产时设置为true,避免频繁调用函数。 + + :param cache_enable: The cache_enable of this DeviceAuthorizerSimple. + :type cache_enable: bool + """ + self._cache_enable = cache_enable + + @property + def create_time(self): + """Gets the create_time of this DeviceAuthorizerSimple. + + 在物联网平台查询自定义鉴权的时间。格式:yyyyMMdd'T'HHmmss'Z',如:20151212T121212Z。 + + :return: The create_time of this DeviceAuthorizerSimple. + :rtype: str + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this DeviceAuthorizerSimple. + + 在物联网平台查询自定义鉴权的时间。格式:yyyyMMdd'T'HHmmss'Z',如:20151212T121212Z。 + + :param create_time: The create_time of this DeviceAuthorizerSimple. + :type create_time: str + """ + self._create_time = create_time + + @property + def update_time(self): + """Gets the update_time of this DeviceAuthorizerSimple. + + 在物联网平台更新查询自定义鉴权的时间。格式:yyyyMMdd'T'HHmmss'Z',如:20151212T121212Z。 + + :return: The update_time of this DeviceAuthorizerSimple. + :rtype: str + """ + return self._update_time + + @update_time.setter + def update_time(self, update_time): + """Sets the update_time of this DeviceAuthorizerSimple. + + 在物联网平台更新查询自定义鉴权的时间。格式:yyyyMMdd'T'HHmmss'Z',如:20151212T121212Z。 + + :param update_time: The update_time of this DeviceAuthorizerSimple. + :type update_time: str + """ + self._update_time = update_time + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeviceAuthorizerSimple): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/device_policy_bind_or_unbind_failure_detail.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/device_policy_bind_or_unbind_failure_detail.py new file mode 100644 index 0000000000..cb3dd59fa2 --- /dev/null +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/device_policy_bind_or_unbind_failure_detail.py @@ -0,0 +1,173 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DevicePolicyBindOrUnbindFailureDetail: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'target_id': 'str', + 'error_code': 'str', + 'error_msg': 'str' + } + + attribute_map = { + 'target_id': 'target_id', + 'error_code': 'error_code', + 'error_msg': 'error_msg' + } + + def __init__(self, target_id=None, error_code=None, error_msg=None): + """DevicePolicyBindOrUnbindFailureDetail + + The model defined in huaweicloud sdk + + :param target_id: 失败的目标id。 + :type target_id: str + :param error_code: 错误码。 + :type error_code: str + :param error_msg: 错误详情。 + :type error_msg: str + """ + + + + self._target_id = None + self._error_code = None + self._error_msg = None + self.discriminator = None + + if target_id is not None: + self.target_id = target_id + if error_code is not None: + self.error_code = error_code + if error_msg is not None: + self.error_msg = error_msg + + @property + def target_id(self): + """Gets the target_id of this DevicePolicyBindOrUnbindFailureDetail. + + 失败的目标id。 + + :return: The target_id of this DevicePolicyBindOrUnbindFailureDetail. + :rtype: str + """ + return self._target_id + + @target_id.setter + def target_id(self, target_id): + """Sets the target_id of this DevicePolicyBindOrUnbindFailureDetail. + + 失败的目标id。 + + :param target_id: The target_id of this DevicePolicyBindOrUnbindFailureDetail. + :type target_id: str + """ + self._target_id = target_id + + @property + def error_code(self): + """Gets the error_code of this DevicePolicyBindOrUnbindFailureDetail. + + 错误码。 + + :return: The error_code of this DevicePolicyBindOrUnbindFailureDetail. + :rtype: str + """ + return self._error_code + + @error_code.setter + def error_code(self, error_code): + """Sets the error_code of this DevicePolicyBindOrUnbindFailureDetail. + + 错误码。 + + :param error_code: The error_code of this DevicePolicyBindOrUnbindFailureDetail. + :type error_code: str + """ + self._error_code = error_code + + @property + def error_msg(self): + """Gets the error_msg of this DevicePolicyBindOrUnbindFailureDetail. + + 错误详情。 + + :return: The error_msg of this DevicePolicyBindOrUnbindFailureDetail. + :rtype: str + """ + return self._error_msg + + @error_msg.setter + def error_msg(self, error_msg): + """Sets the error_msg of this DevicePolicyBindOrUnbindFailureDetail. + + 错误详情。 + + :param error_msg: The error_msg of this DevicePolicyBindOrUnbindFailureDetail. + :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, DevicePolicyBindOrUnbindFailureDetail): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/device_resource.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/device_resource.py new file mode 100644 index 0000000000..9de17c3b04 --- /dev/null +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/device_resource.py @@ -0,0 +1,192 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeviceResource: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'device_name': 'ParameterRef', + 'node_id': 'ParameterRef', + 'product_id': 'object', + 'tags': 'list[TagRef]' + } + + attribute_map = { + 'device_name': 'device_name', + 'node_id': 'node_id', + 'product_id': 'product_id', + 'tags': 'tags' + } + + def __init__(self, device_name=None, node_id=None, product_id=None, tags=None): + """DeviceResource + + The model defined in huaweicloud sdk + + :param device_name: + :type device_name: :class:`huaweicloudsdkiotda.v5.ParameterRef` + :param node_id: + :type node_id: :class:`huaweicloudsdkiotda.v5.ParameterRef` + :param product_id: **参数说明**:设备所属的产品id,可以是一个明确的静态字符串id,也可以是动态的模板参数引用 - 明确的静态字符串:\"642bf260f2f9030e44210d8d\"。**取值范围**:长度不超过36,只允许字母、数字、下划线(_)、连接符(-)的组合。\" - 参数引用: {\"ref\" : \"iotda::certificate::country\"} + :type product_id: object + :param tags: **参数说明**:设备绑定的标签列表 + :type tags: list[:class:`huaweicloudsdkiotda.v5.TagRef`] + """ + + + + self._device_name = None + self._node_id = None + self._product_id = None + self._tags = None + self.discriminator = None + + if device_name is not None: + self.device_name = device_name + self.node_id = node_id + self.product_id = product_id + if tags is not None: + self.tags = tags + + @property + def device_name(self): + """Gets the device_name of this DeviceResource. + + :return: The device_name of this DeviceResource. + :rtype: :class:`huaweicloudsdkiotda.v5.ParameterRef` + """ + return self._device_name + + @device_name.setter + def device_name(self, device_name): + """Sets the device_name of this DeviceResource. + + :param device_name: The device_name of this DeviceResource. + :type device_name: :class:`huaweicloudsdkiotda.v5.ParameterRef` + """ + self._device_name = device_name + + @property + def node_id(self): + """Gets the node_id of this DeviceResource. + + :return: The node_id of this DeviceResource. + :rtype: :class:`huaweicloudsdkiotda.v5.ParameterRef` + """ + return self._node_id + + @node_id.setter + def node_id(self, node_id): + """Sets the node_id of this DeviceResource. + + :param node_id: The node_id of this DeviceResource. + :type node_id: :class:`huaweicloudsdkiotda.v5.ParameterRef` + """ + self._node_id = node_id + + @property + def product_id(self): + """Gets the product_id of this DeviceResource. + + **参数说明**:设备所属的产品id,可以是一个明确的静态字符串id,也可以是动态的模板参数引用 - 明确的静态字符串:\"642bf260f2f9030e44210d8d\"。**取值范围**:长度不超过36,只允许字母、数字、下划线(_)、连接符(-)的组合。\" - 参数引用: {\"ref\" : \"iotda::certificate::country\"} + + :return: The product_id of this DeviceResource. + :rtype: object + """ + return self._product_id + + @product_id.setter + def product_id(self, product_id): + """Sets the product_id of this DeviceResource. + + **参数说明**:设备所属的产品id,可以是一个明确的静态字符串id,也可以是动态的模板参数引用 - 明确的静态字符串:\"642bf260f2f9030e44210d8d\"。**取值范围**:长度不超过36,只允许字母、数字、下划线(_)、连接符(-)的组合。\" - 参数引用: {\"ref\" : \"iotda::certificate::country\"} + + :param product_id: The product_id of this DeviceResource. + :type product_id: object + """ + self._product_id = product_id + + @property + def tags(self): + """Gets the tags of this DeviceResource. + + **参数说明**:设备绑定的标签列表 + + :return: The tags of this DeviceResource. + :rtype: list[:class:`huaweicloudsdkiotda.v5.TagRef`] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """Sets the tags of this DeviceResource. + + **参数说明**:设备绑定的标签列表 + + :param tags: The tags of this DeviceResource. + :type tags: list[:class:`huaweicloudsdkiotda.v5.TagRef`] + """ + 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, DeviceResource): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/list_device_authorizers_request.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/list_device_authorizers_request.py new file mode 100644 index 0000000000..df3eedaa4b --- /dev/null +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/list_device_authorizers_request.py @@ -0,0 +1,231 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListDeviceAuthorizersRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'authorizer_name': 'str', + 'limit': 'int', + 'marker': 'str', + 'offset': 'int' + } + + attribute_map = { + 'instance_id': 'Instance-Id', + 'authorizer_name': 'authorizer_name', + 'limit': 'limit', + 'marker': 'marker', + 'offset': 'offset' + } + + def __init__(self, instance_id=None, authorizer_name=None, limit=None, marker=None, offset=None): + """ListDeviceAuthorizersRequest + + The model defined in huaweicloud sdk + + :param instance_id: **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0079.html#section1)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0079.html#section1)](tag:hws_hk)。 + :type instance_id: str + :param authorizer_name: **参数说明**:自定义鉴权名称,同一租户下的自定义鉴权器名称不能重复。 **取值范围**:长度不超过128,只允许字母、数字、下划线(_)、连接符(-)的组合。 + :type authorizer_name: str + :param limit: **参数说明**:分页查询时每页显示的记录数。 **取值范围**:1-50的整数,默认值为10。 + :type limit: int + :param marker: **参数说明**:上一次分页查询结果中最后一条记录的ID,在上一次分页查询时由物联网平台返回获得。分页查询时物联网平台是按marker也就是记录ID降序查询的,越新的数据记录ID也会越大。若填写marker,则本次只查询记录ID小于marker的数据记录。若不填写,则从记录ID最大也就是最新的一条数据开始查询。如果需要依次查询所有数据,则每次查询时必须填写上一次查询响应中的marker值。 **取值范围**:长度为24的十六进制字符串,默认值为ffffffffffffffffffffffff。 + :type marker: str + :param offset: **参数说明**:表示从marker后偏移offset条记录开始查询。默认为0,取值范围为0-500的整数。当offset为0时,表示从marker后第一条记录开始输出。限制offset最大值是出于API性能考虑,您可以搭配marker使用该参数实现翻页,例如每页50条记录,1-11页内都可以直接使用offset跳转到指定页,但到11页后,由于offset限制为500,您需要使用第11页返回的marker作为下次查询的marker,以实现翻页到12-22页。 **取值范围**:0-500的整数,默认为0。 + :type offset: int + """ + + + + self._instance_id = None + self._authorizer_name = None + self._limit = None + self._marker = None + self._offset = None + self.discriminator = None + + if instance_id is not None: + self.instance_id = instance_id + if authorizer_name is not None: + self.authorizer_name = authorizer_name + if limit is not None: + self.limit = limit + if marker is not None: + self.marker = marker + if offset is not None: + self.offset = offset + + @property + def instance_id(self): + """Gets the instance_id of this ListDeviceAuthorizersRequest. + + **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0079.html#section1)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0079.html#section1)](tag:hws_hk)。 + + :return: The instance_id of this ListDeviceAuthorizersRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this ListDeviceAuthorizersRequest. + + **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0079.html#section1)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0079.html#section1)](tag:hws_hk)。 + + :param instance_id: The instance_id of this ListDeviceAuthorizersRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def authorizer_name(self): + """Gets the authorizer_name of this ListDeviceAuthorizersRequest. + + **参数说明**:自定义鉴权名称,同一租户下的自定义鉴权器名称不能重复。 **取值范围**:长度不超过128,只允许字母、数字、下划线(_)、连接符(-)的组合。 + + :return: The authorizer_name of this ListDeviceAuthorizersRequest. + :rtype: str + """ + return self._authorizer_name + + @authorizer_name.setter + def authorizer_name(self, authorizer_name): + """Sets the authorizer_name of this ListDeviceAuthorizersRequest. + + **参数说明**:自定义鉴权名称,同一租户下的自定义鉴权器名称不能重复。 **取值范围**:长度不超过128,只允许字母、数字、下划线(_)、连接符(-)的组合。 + + :param authorizer_name: The authorizer_name of this ListDeviceAuthorizersRequest. + :type authorizer_name: str + """ + self._authorizer_name = authorizer_name + + @property + def limit(self): + """Gets the limit of this ListDeviceAuthorizersRequest. + + **参数说明**:分页查询时每页显示的记录数。 **取值范围**:1-50的整数,默认值为10。 + + :return: The limit of this ListDeviceAuthorizersRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ListDeviceAuthorizersRequest. + + **参数说明**:分页查询时每页显示的记录数。 **取值范围**:1-50的整数,默认值为10。 + + :param limit: The limit of this ListDeviceAuthorizersRequest. + :type limit: int + """ + self._limit = limit + + @property + def marker(self): + """Gets the marker of this ListDeviceAuthorizersRequest. + + **参数说明**:上一次分页查询结果中最后一条记录的ID,在上一次分页查询时由物联网平台返回获得。分页查询时物联网平台是按marker也就是记录ID降序查询的,越新的数据记录ID也会越大。若填写marker,则本次只查询记录ID小于marker的数据记录。若不填写,则从记录ID最大也就是最新的一条数据开始查询。如果需要依次查询所有数据,则每次查询时必须填写上一次查询响应中的marker值。 **取值范围**:长度为24的十六进制字符串,默认值为ffffffffffffffffffffffff。 + + :return: The marker of this ListDeviceAuthorizersRequest. + :rtype: str + """ + return self._marker + + @marker.setter + def marker(self, marker): + """Sets the marker of this ListDeviceAuthorizersRequest. + + **参数说明**:上一次分页查询结果中最后一条记录的ID,在上一次分页查询时由物联网平台返回获得。分页查询时物联网平台是按marker也就是记录ID降序查询的,越新的数据记录ID也会越大。若填写marker,则本次只查询记录ID小于marker的数据记录。若不填写,则从记录ID最大也就是最新的一条数据开始查询。如果需要依次查询所有数据,则每次查询时必须填写上一次查询响应中的marker值。 **取值范围**:长度为24的十六进制字符串,默认值为ffffffffffffffffffffffff。 + + :param marker: The marker of this ListDeviceAuthorizersRequest. + :type marker: str + """ + self._marker = marker + + @property + def offset(self): + """Gets the offset of this ListDeviceAuthorizersRequest. + + **参数说明**:表示从marker后偏移offset条记录开始查询。默认为0,取值范围为0-500的整数。当offset为0时,表示从marker后第一条记录开始输出。限制offset最大值是出于API性能考虑,您可以搭配marker使用该参数实现翻页,例如每页50条记录,1-11页内都可以直接使用offset跳转到指定页,但到11页后,由于offset限制为500,您需要使用第11页返回的marker作为下次查询的marker,以实现翻页到12-22页。 **取值范围**:0-500的整数,默认为0。 + + :return: The offset of this ListDeviceAuthorizersRequest. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this ListDeviceAuthorizersRequest. + + **参数说明**:表示从marker后偏移offset条记录开始查询。默认为0,取值范围为0-500的整数。当offset为0时,表示从marker后第一条记录开始输出。限制offset最大值是出于API性能考虑,您可以搭配marker使用该参数实现翻页,例如每页50条记录,1-11页内都可以直接使用offset跳转到指定页,但到11页后,由于offset限制为500,您需要使用第11页返回的marker作为下次查询的marker,以实现翻页到12-22页。 **取值范围**:0-500的整数,默认为0。 + + :param offset: The offset of this ListDeviceAuthorizersRequest. + :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, ListDeviceAuthorizersRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/list_device_authorizers_response.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/list_device_authorizers_response.py new file mode 100644 index 0000000000..ac829f365f --- /dev/null +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/list_device_authorizers_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 ListDeviceAuthorizersResponse(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 = { + 'authorizers': 'list[DeviceAuthorizerSimple]', + 'page': 'Page' + } + + attribute_map = { + 'authorizers': 'authorizers', + 'page': 'page' + } + + def __init__(self, authorizers=None, page=None): + """ListDeviceAuthorizersResponse + + The model defined in huaweicloud sdk + + :param authorizers: **参数说明**:自定义鉴权列表。 + :type authorizers: list[:class:`huaweicloudsdkiotda.v5.DeviceAuthorizerSimple`] + :param page: + :type page: :class:`huaweicloudsdkiotda.v5.Page` + """ + + super(ListDeviceAuthorizersResponse, self).__init__() + + self._authorizers = None + self._page = None + self.discriminator = None + + if authorizers is not None: + self.authorizers = authorizers + if page is not None: + self.page = page + + @property + def authorizers(self): + """Gets the authorizers of this ListDeviceAuthorizersResponse. + + **参数说明**:自定义鉴权列表。 + + :return: The authorizers of this ListDeviceAuthorizersResponse. + :rtype: list[:class:`huaweicloudsdkiotda.v5.DeviceAuthorizerSimple`] + """ + return self._authorizers + + @authorizers.setter + def authorizers(self, authorizers): + """Sets the authorizers of this ListDeviceAuthorizersResponse. + + **参数说明**:自定义鉴权列表。 + + :param authorizers: The authorizers of this ListDeviceAuthorizersResponse. + :type authorizers: list[:class:`huaweicloudsdkiotda.v5.DeviceAuthorizerSimple`] + """ + self._authorizers = authorizers + + @property + def page(self): + """Gets the page of this ListDeviceAuthorizersResponse. + + :return: The page of this ListDeviceAuthorizersResponse. + :rtype: :class:`huaweicloudsdkiotda.v5.Page` + """ + return self._page + + @page.setter + def page(self, page): + """Sets the page of this ListDeviceAuthorizersResponse. + + :param page: The page of this ListDeviceAuthorizersResponse. + :type page: :class:`huaweicloudsdkiotda.v5.Page` + """ + self._page = page + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListDeviceAuthorizersResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/list_device_policies_request.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/list_device_policies_request.py new file mode 100644 index 0000000000..c1aca1add3 --- /dev/null +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/list_device_policies_request.py @@ -0,0 +1,260 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListDevicePoliciesRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'app_id': 'str', + 'policy_name': 'str', + 'limit': 'int', + 'marker': 'str', + 'offset': 'int' + } + + attribute_map = { + 'instance_id': 'Instance-Id', + 'app_id': 'app_id', + 'policy_name': 'policy_name', + 'limit': 'limit', + 'marker': 'marker', + 'offset': 'offset' + } + + def __init__(self, instance_id=None, app_id=None, policy_name=None, limit=None, marker=None, offset=None): + """ListDevicePoliciesRequest + + The model defined in huaweicloud sdk + + :param instance_id: **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0079.html#section1)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0079.html#section1)](tag:hws_hk)。 + :type instance_id: str + :param app_id: **参数说明**:资源空间ID。此参数为非必选参数,存在多资源空间的用户需要使用该接口时,可以携带该参数查询指定资源空间下的设备策略,不携带该参数则会查询该用户下所有设备策略。 **取值范围**:长度不超过36,只允许字母、数字、下划线(_)、连接符(-)的组合。 + :type app_id: str + :param policy_name: **参数说明**:策略名称。 **取值范围**:长度不超过256,只允许中文、字母、数字、以及_?'#().,&%@!-等字符的组合。 + :type policy_name: str + :param limit: **参数说明**:分页查询时每页显示的记录数。 **取值范围**:1-50的整数,默认值为10。 + :type limit: int + :param marker: **参数说明**:上一次分页查询结果中最后一条记录的ID,在上一次分页查询时由物联网平台返回获得。分页查询时物联网平台是按marker也就是记录ID降序查询的,越新的数据记录ID也会越大。若填写marker,则本次只查询记录ID小于marker的数据记录。若不填写,则从记录ID最大也就是最新的一条数据开始查询。如果需要依次查询所有数据,则每次查询时必须填写上一次查询响应中的marker值。 **取值范围**:长度为24的十六进制字符串,默认值为ffffffffffffffffffffffff。 + :type marker: str + :param offset: **参数说明**:表示从marker后偏移offset条记录开始查询。默认为0,取值范围为0-500的整数。当offset为0时,表示从marker后第一条记录开始输出。限制offset最大值是出于API性能考虑,您可以搭配marker使用该参数实现翻页,例如每页50条记录,1-11页内都可以直接使用offset跳转到指定页,但到11页后,由于offset限制为500,您需要使用第11页返回的marker作为下次查询的marker,以实现翻页到12-22页。 **取值范围**:0-500的整数,默认为0。 + :type offset: int + """ + + + + self._instance_id = None + self._app_id = None + self._policy_name = None + self._limit = None + self._marker = None + self._offset = None + self.discriminator = None + + if instance_id is not None: + self.instance_id = instance_id + if app_id is not None: + self.app_id = app_id + if policy_name is not None: + self.policy_name = policy_name + if limit is not None: + self.limit = limit + if marker is not None: + self.marker = marker + if offset is not None: + self.offset = offset + + @property + def instance_id(self): + """Gets the instance_id of this ListDevicePoliciesRequest. + + **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0079.html#section1)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0079.html#section1)](tag:hws_hk)。 + + :return: The instance_id of this ListDevicePoliciesRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this ListDevicePoliciesRequest. + + **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0079.html#section1)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0079.html#section1)](tag:hws_hk)。 + + :param instance_id: The instance_id of this ListDevicePoliciesRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def app_id(self): + """Gets the app_id of this ListDevicePoliciesRequest. + + **参数说明**:资源空间ID。此参数为非必选参数,存在多资源空间的用户需要使用该接口时,可以携带该参数查询指定资源空间下的设备策略,不携带该参数则会查询该用户下所有设备策略。 **取值范围**:长度不超过36,只允许字母、数字、下划线(_)、连接符(-)的组合。 + + :return: The app_id of this ListDevicePoliciesRequest. + :rtype: str + """ + return self._app_id + + @app_id.setter + def app_id(self, app_id): + """Sets the app_id of this ListDevicePoliciesRequest. + + **参数说明**:资源空间ID。此参数为非必选参数,存在多资源空间的用户需要使用该接口时,可以携带该参数查询指定资源空间下的设备策略,不携带该参数则会查询该用户下所有设备策略。 **取值范围**:长度不超过36,只允许字母、数字、下划线(_)、连接符(-)的组合。 + + :param app_id: The app_id of this ListDevicePoliciesRequest. + :type app_id: str + """ + self._app_id = app_id + + @property + def policy_name(self): + """Gets the policy_name of this ListDevicePoliciesRequest. + + **参数说明**:策略名称。 **取值范围**:长度不超过256,只允许中文、字母、数字、以及_?'#().,&%@!-等字符的组合。 + + :return: The policy_name of this ListDevicePoliciesRequest. + :rtype: str + """ + return self._policy_name + + @policy_name.setter + def policy_name(self, policy_name): + """Sets the policy_name of this ListDevicePoliciesRequest. + + **参数说明**:策略名称。 **取值范围**:长度不超过256,只允许中文、字母、数字、以及_?'#().,&%@!-等字符的组合。 + + :param policy_name: The policy_name of this ListDevicePoliciesRequest. + :type policy_name: str + """ + self._policy_name = policy_name + + @property + def limit(self): + """Gets the limit of this ListDevicePoliciesRequest. + + **参数说明**:分页查询时每页显示的记录数。 **取值范围**:1-50的整数,默认值为10。 + + :return: The limit of this ListDevicePoliciesRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ListDevicePoliciesRequest. + + **参数说明**:分页查询时每页显示的记录数。 **取值范围**:1-50的整数,默认值为10。 + + :param limit: The limit of this ListDevicePoliciesRequest. + :type limit: int + """ + self._limit = limit + + @property + def marker(self): + """Gets the marker of this ListDevicePoliciesRequest. + + **参数说明**:上一次分页查询结果中最后一条记录的ID,在上一次分页查询时由物联网平台返回获得。分页查询时物联网平台是按marker也就是记录ID降序查询的,越新的数据记录ID也会越大。若填写marker,则本次只查询记录ID小于marker的数据记录。若不填写,则从记录ID最大也就是最新的一条数据开始查询。如果需要依次查询所有数据,则每次查询时必须填写上一次查询响应中的marker值。 **取值范围**:长度为24的十六进制字符串,默认值为ffffffffffffffffffffffff。 + + :return: The marker of this ListDevicePoliciesRequest. + :rtype: str + """ + return self._marker + + @marker.setter + def marker(self, marker): + """Sets the marker of this ListDevicePoliciesRequest. + + **参数说明**:上一次分页查询结果中最后一条记录的ID,在上一次分页查询时由物联网平台返回获得。分页查询时物联网平台是按marker也就是记录ID降序查询的,越新的数据记录ID也会越大。若填写marker,则本次只查询记录ID小于marker的数据记录。若不填写,则从记录ID最大也就是最新的一条数据开始查询。如果需要依次查询所有数据,则每次查询时必须填写上一次查询响应中的marker值。 **取值范围**:长度为24的十六进制字符串,默认值为ffffffffffffffffffffffff。 + + :param marker: The marker of this ListDevicePoliciesRequest. + :type marker: str + """ + self._marker = marker + + @property + def offset(self): + """Gets the offset of this ListDevicePoliciesRequest. + + **参数说明**:表示从marker后偏移offset条记录开始查询。默认为0,取值范围为0-500的整数。当offset为0时,表示从marker后第一条记录开始输出。限制offset最大值是出于API性能考虑,您可以搭配marker使用该参数实现翻页,例如每页50条记录,1-11页内都可以直接使用offset跳转到指定页,但到11页后,由于offset限制为500,您需要使用第11页返回的marker作为下次查询的marker,以实现翻页到12-22页。 **取值范围**:0-500的整数,默认为0。 + + :return: The offset of this ListDevicePoliciesRequest. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this ListDevicePoliciesRequest. + + **参数说明**:表示从marker后偏移offset条记录开始查询。默认为0,取值范围为0-500的整数。当offset为0时,表示从marker后第一条记录开始输出。限制offset最大值是出于API性能考虑,您可以搭配marker使用该参数实现翻页,例如每页50条记录,1-11页内都可以直接使用offset跳转到指定页,但到11页后,由于offset限制为500,您需要使用第11页返回的marker作为下次查询的marker,以实现翻页到12-22页。 **取值范围**:0-500的整数,默认为0。 + + :param offset: The offset of this ListDevicePoliciesRequest. + :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, ListDevicePoliciesRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/list_device_policies_response.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/list_device_policies_response.py new file mode 100644 index 0000000000..dcde425d9d --- /dev/null +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/list_device_policies_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 ListDevicePoliciesResponse(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 = { + 'policies': 'list[ListDevicePolicyBase]', + 'page': 'Page' + } + + attribute_map = { + 'policies': 'policies', + 'page': 'page' + } + + def __init__(self, policies=None, page=None): + """ListDevicePoliciesResponse + + The model defined in huaweicloud sdk + + :param policies: 策略信息列表。 + :type policies: list[:class:`huaweicloudsdkiotda.v5.ListDevicePolicyBase`] + :param page: + :type page: :class:`huaweicloudsdkiotda.v5.Page` + """ + + super(ListDevicePoliciesResponse, self).__init__() + + self._policies = None + self._page = None + self.discriminator = None + + if policies is not None: + self.policies = policies + if page is not None: + self.page = page + + @property + def policies(self): + """Gets the policies of this ListDevicePoliciesResponse. + + 策略信息列表。 + + :return: The policies of this ListDevicePoliciesResponse. + :rtype: list[:class:`huaweicloudsdkiotda.v5.ListDevicePolicyBase`] + """ + return self._policies + + @policies.setter + def policies(self, policies): + """Sets the policies of this ListDevicePoliciesResponse. + + 策略信息列表。 + + :param policies: The policies of this ListDevicePoliciesResponse. + :type policies: list[:class:`huaweicloudsdkiotda.v5.ListDevicePolicyBase`] + """ + self._policies = policies + + @property + def page(self): + """Gets the page of this ListDevicePoliciesResponse. + + :return: The page of this ListDevicePoliciesResponse. + :rtype: :class:`huaweicloudsdkiotda.v5.Page` + """ + return self._page + + @page.setter + def page(self, page): + """Sets the page of this ListDevicePoliciesResponse. + + :param page: The page of this ListDevicePoliciesResponse. + :type page: :class:`huaweicloudsdkiotda.v5.Page` + """ + self._page = page + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListDevicePoliciesResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/list_device_policy_base.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/list_device_policy_base.py new file mode 100644 index 0000000000..3a1a345d2b --- /dev/null +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/list_device_policy_base.py @@ -0,0 +1,231 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListDevicePolicyBase: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'app_id': 'str', + 'policy_id': 'str', + 'policy_name': 'str', + 'create_time': 'str', + 'update_time': 'str' + } + + attribute_map = { + 'app_id': 'app_id', + 'policy_id': 'policy_id', + 'policy_name': 'policy_name', + 'create_time': 'create_time', + 'update_time': 'update_time' + } + + def __init__(self, app_id=None, policy_id=None, policy_name=None, create_time=None, update_time=None): + """ListDevicePolicyBase + + The model defined in huaweicloud sdk + + :param app_id: **参数说明**:资源空间ID。 + :type app_id: str + :param policy_id: 策略ID。 + :type policy_id: str + :param policy_name: 策略名称。 + :type policy_name: str + :param create_time: 在物联网平台创建策略的时间。格式:yyyyMMdd'T'HHmmss'Z',如20151212T121212Z。 + :type create_time: str + :param update_time: 在物联网平台更新策略的时间。格式:yyyyMMdd'T'HHmmss'Z',如20151212T121212Z。 + :type update_time: str + """ + + + + self._app_id = None + self._policy_id = None + self._policy_name = None + self._create_time = None + self._update_time = None + self.discriminator = None + + if app_id is not None: + self.app_id = app_id + if policy_id is not None: + self.policy_id = policy_id + if policy_name is not None: + self.policy_name = policy_name + if create_time is not None: + self.create_time = create_time + if update_time is not None: + self.update_time = update_time + + @property + def app_id(self): + """Gets the app_id of this ListDevicePolicyBase. + + **参数说明**:资源空间ID。 + + :return: The app_id of this ListDevicePolicyBase. + :rtype: str + """ + return self._app_id + + @app_id.setter + def app_id(self, app_id): + """Sets the app_id of this ListDevicePolicyBase. + + **参数说明**:资源空间ID。 + + :param app_id: The app_id of this ListDevicePolicyBase. + :type app_id: str + """ + self._app_id = app_id + + @property + def policy_id(self): + """Gets the policy_id of this ListDevicePolicyBase. + + 策略ID。 + + :return: The policy_id of this ListDevicePolicyBase. + :rtype: str + """ + return self._policy_id + + @policy_id.setter + def policy_id(self, policy_id): + """Sets the policy_id of this ListDevicePolicyBase. + + 策略ID。 + + :param policy_id: The policy_id of this ListDevicePolicyBase. + :type policy_id: str + """ + self._policy_id = policy_id + + @property + def policy_name(self): + """Gets the policy_name of this ListDevicePolicyBase. + + 策略名称。 + + :return: The policy_name of this ListDevicePolicyBase. + :rtype: str + """ + return self._policy_name + + @policy_name.setter + def policy_name(self, policy_name): + """Sets the policy_name of this ListDevicePolicyBase. + + 策略名称。 + + :param policy_name: The policy_name of this ListDevicePolicyBase. + :type policy_name: str + """ + self._policy_name = policy_name + + @property + def create_time(self): + """Gets the create_time of this ListDevicePolicyBase. + + 在物联网平台创建策略的时间。格式:yyyyMMdd'T'HHmmss'Z',如20151212T121212Z。 + + :return: The create_time of this ListDevicePolicyBase. + :rtype: str + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this ListDevicePolicyBase. + + 在物联网平台创建策略的时间。格式:yyyyMMdd'T'HHmmss'Z',如20151212T121212Z。 + + :param create_time: The create_time of this ListDevicePolicyBase. + :type create_time: str + """ + self._create_time = create_time + + @property + def update_time(self): + """Gets the update_time of this ListDevicePolicyBase. + + 在物联网平台更新策略的时间。格式:yyyyMMdd'T'HHmmss'Z',如20151212T121212Z。 + + :return: The update_time of this ListDevicePolicyBase. + :rtype: str + """ + return self._update_time + + @update_time.setter + def update_time(self, update_time): + """Sets the update_time of this ListDevicePolicyBase. + + 在物联网平台更新策略的时间。格式:yyyyMMdd'T'HHmmss'Z',如20151212T121212Z。 + + :param update_time: The update_time of this ListDevicePolicyBase. + :type update_time: str + """ + self._update_time = update_time + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListDevicePolicyBase): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/list_provisioning_templates_request.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/list_provisioning_templates_request.py new file mode 100644 index 0000000000..95e3ead3af --- /dev/null +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/list_provisioning_templates_request.py @@ -0,0 +1,231 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListProvisioningTemplatesRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'template_name': 'str', + 'limit': 'int', + 'marker': 'str', + 'offset': 'int' + } + + attribute_map = { + 'instance_id': 'Instance-Id', + 'template_name': 'template_name', + 'limit': 'limit', + 'marker': 'marker', + 'offset': 'offset' + } + + def __init__(self, instance_id=None, template_name=None, limit=None, marker=None, offset=None): + """ListProvisioningTemplatesRequest + + The model defined in huaweicloud sdk + + :param instance_id: **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0079.html#section1)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0079.html#section1)](tag:hws_hk)。 + :type instance_id: str + :param template_name: **参数说明**:预调配模板名称。 **取值范围**:长度不超过128,只允许中文、字母、数字、下划线(_)、连接符(-)的组合。 + :type template_name: str + :param limit: **参数说明**:分页查询时每页显示的记录数。 **取值范围**:1-50的整数,默认值为10。 + :type limit: int + :param marker: **参数说明**:上一次分页查询结果中最后一条记录的ID,在上一次分页查询时由物联网平台返回获得。分页查询时物联网平台是按marker也就是记录ID降序查询的,越新的数据记录ID也会越大。若填写marker,则本次只查询记录ID小于marker的数据记录。若不填写,则从记录ID最大也就是最新的一条数据开始查询。如果需要依次查询所有数据,则每次查询时必须填写上一次查询响应中的marker值。 **取值范围**:长度为24的十六进制字符串,默认值为ffffffffffffffffffffffff。 + :type marker: str + :param offset: **参数说明**:表示从marker后偏移offset条记录开始查询。默认为0,取值范围为0-500的整数。当offset为0时,表示从marker后第一条记录开始输出。限制offset最大值是出于API性能考虑,您可以搭配marker使用该参数实现翻页,例如每页50条记录,1-11页内都可以直接使用offset跳转到指定页,但到11页后,由于offset限制为500,您需要使用第11页返回的marker作为下次查询的marker,以实现翻页到12-22页。 **取值范围**:0-500的整数,默认为0。 + :type offset: int + """ + + + + self._instance_id = None + self._template_name = None + self._limit = None + self._marker = None + self._offset = None + self.discriminator = None + + if instance_id is not None: + self.instance_id = instance_id + if template_name is not None: + self.template_name = template_name + if limit is not None: + self.limit = limit + if marker is not None: + self.marker = marker + if offset is not None: + self.offset = offset + + @property + def instance_id(self): + """Gets the instance_id of this ListProvisioningTemplatesRequest. + + **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0079.html#section1)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0079.html#section1)](tag:hws_hk)。 + + :return: The instance_id of this ListProvisioningTemplatesRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this ListProvisioningTemplatesRequest. + + **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0079.html#section1)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0079.html#section1)](tag:hws_hk)。 + + :param instance_id: The instance_id of this ListProvisioningTemplatesRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def template_name(self): + """Gets the template_name of this ListProvisioningTemplatesRequest. + + **参数说明**:预调配模板名称。 **取值范围**:长度不超过128,只允许中文、字母、数字、下划线(_)、连接符(-)的组合。 + + :return: The template_name of this ListProvisioningTemplatesRequest. + :rtype: str + """ + return self._template_name + + @template_name.setter + def template_name(self, template_name): + """Sets the template_name of this ListProvisioningTemplatesRequest. + + **参数说明**:预调配模板名称。 **取值范围**:长度不超过128,只允许中文、字母、数字、下划线(_)、连接符(-)的组合。 + + :param template_name: The template_name of this ListProvisioningTemplatesRequest. + :type template_name: str + """ + self._template_name = template_name + + @property + def limit(self): + """Gets the limit of this ListProvisioningTemplatesRequest. + + **参数说明**:分页查询时每页显示的记录数。 **取值范围**:1-50的整数,默认值为10。 + + :return: The limit of this ListProvisioningTemplatesRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ListProvisioningTemplatesRequest. + + **参数说明**:分页查询时每页显示的记录数。 **取值范围**:1-50的整数,默认值为10。 + + :param limit: The limit of this ListProvisioningTemplatesRequest. + :type limit: int + """ + self._limit = limit + + @property + def marker(self): + """Gets the marker of this ListProvisioningTemplatesRequest. + + **参数说明**:上一次分页查询结果中最后一条记录的ID,在上一次分页查询时由物联网平台返回获得。分页查询时物联网平台是按marker也就是记录ID降序查询的,越新的数据记录ID也会越大。若填写marker,则本次只查询记录ID小于marker的数据记录。若不填写,则从记录ID最大也就是最新的一条数据开始查询。如果需要依次查询所有数据,则每次查询时必须填写上一次查询响应中的marker值。 **取值范围**:长度为24的十六进制字符串,默认值为ffffffffffffffffffffffff。 + + :return: The marker of this ListProvisioningTemplatesRequest. + :rtype: str + """ + return self._marker + + @marker.setter + def marker(self, marker): + """Sets the marker of this ListProvisioningTemplatesRequest. + + **参数说明**:上一次分页查询结果中最后一条记录的ID,在上一次分页查询时由物联网平台返回获得。分页查询时物联网平台是按marker也就是记录ID降序查询的,越新的数据记录ID也会越大。若填写marker,则本次只查询记录ID小于marker的数据记录。若不填写,则从记录ID最大也就是最新的一条数据开始查询。如果需要依次查询所有数据,则每次查询时必须填写上一次查询响应中的marker值。 **取值范围**:长度为24的十六进制字符串,默认值为ffffffffffffffffffffffff。 + + :param marker: The marker of this ListProvisioningTemplatesRequest. + :type marker: str + """ + self._marker = marker + + @property + def offset(self): + """Gets the offset of this ListProvisioningTemplatesRequest. + + **参数说明**:表示从marker后偏移offset条记录开始查询。默认为0,取值范围为0-500的整数。当offset为0时,表示从marker后第一条记录开始输出。限制offset最大值是出于API性能考虑,您可以搭配marker使用该参数实现翻页,例如每页50条记录,1-11页内都可以直接使用offset跳转到指定页,但到11页后,由于offset限制为500,您需要使用第11页返回的marker作为下次查询的marker,以实现翻页到12-22页。 **取值范围**:0-500的整数,默认为0。 + + :return: The offset of this ListProvisioningTemplatesRequest. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this ListProvisioningTemplatesRequest. + + **参数说明**:表示从marker后偏移offset条记录开始查询。默认为0,取值范围为0-500的整数。当offset为0时,表示从marker后第一条记录开始输出。限制offset最大值是出于API性能考虑,您可以搭配marker使用该参数实现翻页,例如每页50条记录,1-11页内都可以直接使用offset跳转到指定页,但到11页后,由于offset限制为500,您需要使用第11页返回的marker作为下次查询的marker,以实现翻页到12-22页。 **取值范围**:0-500的整数,默认为0。 + + :param offset: The offset of this ListProvisioningTemplatesRequest. + :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, ListProvisioningTemplatesRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/list_provisioning_templates_response.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/list_provisioning_templates_response.py new file mode 100644 index 0000000000..e51b05579e --- /dev/null +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/list_provisioning_templates_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 ListProvisioningTemplatesResponse(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 = { + 'templates': 'list[ProvisioningTemplateSimple]', + 'page': 'Page' + } + + attribute_map = { + 'templates': 'templates', + 'page': 'page' + } + + def __init__(self, templates=None, page=None): + """ListProvisioningTemplatesResponse + + The model defined in huaweicloud sdk + + :param templates: **参数说明**:预调配模板详情。 + :type templates: list[:class:`huaweicloudsdkiotda.v5.ProvisioningTemplateSimple`] + :param page: + :type page: :class:`huaweicloudsdkiotda.v5.Page` + """ + + super(ListProvisioningTemplatesResponse, self).__init__() + + self._templates = None + self._page = None + self.discriminator = None + + if templates is not None: + self.templates = templates + if page is not None: + self.page = page + + @property + def templates(self): + """Gets the templates of this ListProvisioningTemplatesResponse. + + **参数说明**:预调配模板详情。 + + :return: The templates of this ListProvisioningTemplatesResponse. + :rtype: list[:class:`huaweicloudsdkiotda.v5.ProvisioningTemplateSimple`] + """ + return self._templates + + @templates.setter + def templates(self, templates): + """Sets the templates of this ListProvisioningTemplatesResponse. + + **参数说明**:预调配模板详情。 + + :param templates: The templates of this ListProvisioningTemplatesResponse. + :type templates: list[:class:`huaweicloudsdkiotda.v5.ProvisioningTemplateSimple`] + """ + self._templates = templates + + @property + def page(self): + """Gets the page of this ListProvisioningTemplatesResponse. + + :return: The page of this ListProvisioningTemplatesResponse. + :rtype: :class:`huaweicloudsdkiotda.v5.Page` + """ + return self._page + + @page.setter + def page(self, page): + """Sets the page of this ListProvisioningTemplatesResponse. + + :param page: The page of this ListProvisioningTemplatesResponse. + :type page: :class:`huaweicloudsdkiotda.v5.Page` + """ + self._page = page + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListProvisioningTemplatesResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/parameter_ref.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/parameter_ref.py new file mode 100644 index 0000000000..e7db36528c --- /dev/null +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/parameter_ref.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ParameterRef: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'ref': 'str' + } + + attribute_map = { + 'ref': 'ref' + } + + def __init__(self, ref=None): + """ParameterRef + + The model defined in huaweicloud sdk + + :param ref: 参数引用名称 + :type ref: str + """ + + + + self._ref = None + self.discriminator = None + + self.ref = ref + + @property + def ref(self): + """Gets the ref of this ParameterRef. + + 参数引用名称 + + :return: The ref of this ParameterRef. + :rtype: str + """ + return self._ref + + @ref.setter + def ref(self, ref): + """Sets the ref of this ParameterRef. + + 参数引用名称 + + :param ref: The ref of this ParameterRef. + :type ref: str + """ + self._ref = ref + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ParameterRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/policy_resource.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/policy_resource.py new file mode 100644 index 0000000000..8d00a11d03 --- /dev/null +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/policy_resource.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class PolicyResource: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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_ids': 'list[str]' + } + + attribute_map = { + 'policy_ids': 'policy_ids' + } + + def __init__(self, policy_ids=None): + """PolicyResource + + The model defined in huaweicloud sdk + + :param policy_ids: **参数说明**:设备需要绑定的策略id列表 + :type policy_ids: list[str] + """ + + + + self._policy_ids = None + self.discriminator = None + + if policy_ids is not None: + self.policy_ids = policy_ids + + @property + def policy_ids(self): + """Gets the policy_ids of this PolicyResource. + + **参数说明**:设备需要绑定的策略id列表 + + :return: The policy_ids of this PolicyResource. + :rtype: list[str] + """ + return self._policy_ids + + @policy_ids.setter + def policy_ids(self, policy_ids): + """Sets the policy_ids of this PolicyResource. + + **参数说明**:设备需要绑定的策略id列表 + + :param policy_ids: The policy_ids of this PolicyResource. + :type policy_ids: list[str] + """ + self._policy_ids = policy_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, PolicyResource): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/policy_target_base.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/policy_target_base.py new file mode 100644 index 0000000000..4e4d20c70f --- /dev/null +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/policy_target_base.py @@ -0,0 +1,142 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class PolicyTargetBase: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'target_type': 'str', + 'target_id': 'str' + } + + attribute_map = { + 'target_type': 'target_type', + 'target_id': 'target_id' + } + + def __init__(self, target_type=None, target_id=None): + """PolicyTargetBase + + The model defined in huaweicloud sdk + + :param target_type: **参数说明**:策略绑定的目标类型。 **取值范围**:device|product|app,device表示设备,product表示产品,app表示整个资源空间。 + :type target_type: str + :param target_id: 策略绑定的目标ID + :type target_id: str + """ + + + + self._target_type = None + self._target_id = None + self.discriminator = None + + self.target_type = target_type + self.target_id = target_id + + @property + def target_type(self): + """Gets the target_type of this PolicyTargetBase. + + **参数说明**:策略绑定的目标类型。 **取值范围**:device|product|app,device表示设备,product表示产品,app表示整个资源空间。 + + :return: The target_type of this PolicyTargetBase. + :rtype: str + """ + return self._target_type + + @target_type.setter + def target_type(self, target_type): + """Sets the target_type of this PolicyTargetBase. + + **参数说明**:策略绑定的目标类型。 **取值范围**:device|product|app,device表示设备,product表示产品,app表示整个资源空间。 + + :param target_type: The target_type of this PolicyTargetBase. + :type target_type: str + """ + self._target_type = target_type + + @property + def target_id(self): + """Gets the target_id of this PolicyTargetBase. + + 策略绑定的目标ID + + :return: The target_id of this PolicyTargetBase. + :rtype: str + """ + return self._target_id + + @target_id.setter + def target_id(self, target_id): + """Sets the target_id of this PolicyTargetBase. + + 策略绑定的目标ID + + :param target_id: The target_id of this PolicyTargetBase. + :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, PolicyTargetBase): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/provisioning_template_body.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/provisioning_template_body.py new file mode 100644 index 0000000000..5a9abd15f1 --- /dev/null +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/provisioning_template_body.py @@ -0,0 +1,138 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ProvisioningTemplateBody: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'parameters': 'object', + 'resources': 'TemplateResource' + } + + attribute_map = { + 'parameters': 'parameters', + 'resources': 'resources' + } + + def __init__(self, parameters=None, resources=None): + """ProvisioningTemplateBody + + The model defined in huaweicloud sdk + + :param parameters: **参数说明**:预调配模板参数, ,配置格式为{\"parameter\":{\"type\":\"String\"}} ,其中parameter目前支持从预调配设备的证书的使用者字段提取内容,证书必须包含模板中定义的所有参数值,华为云IoT平台定义了可在预调配模板中声明和引用的如下参数: - iotda::certificate::country (国家/地区,C ) - iotda::certificate::organization (组织,O) - iotda::certificate::organizational_unit (组织单位,OU) - iotda::certificate::distinguished_name_qualifier (可辨别名称限定符,dnQualifier) - iotda::certificate::state_name (省市,ST) - iotda::certificate::common_name (公用名,CN) - iotda::certificate::serial_number (序列号,serialNumber) type描述parameter的类型,目前仅支持string。 配置样例: '{\"iotda::certificate::country\":{\"type\":\"String\"}, \"iotda::certificate::organization\":{\"type\":\"String\"}, \"iotda::certificate::organizational_unit\":{\"type\":\"String\"}, \"iotda::certificate::distinguished_name_qualifier\":{\"type\":\"String\"}, \"iotda::certificate::state_name\":{\"type\":\"String\"}, \"iotda::certificate::common_name\":{\"type\":\"String\"}, \"iotda::certificate::serial_number\":{\"type\":\"String\"}}' + :type parameters: object + :param resources: + :type resources: :class:`huaweicloudsdkiotda.v5.TemplateResource` + """ + + + + self._parameters = None + self._resources = None + self.discriminator = None + + self.parameters = parameters + self.resources = resources + + @property + def parameters(self): + """Gets the parameters of this ProvisioningTemplateBody. + + **参数说明**:预调配模板参数, ,配置格式为{\"parameter\":{\"type\":\"String\"}} ,其中parameter目前支持从预调配设备的证书的使用者字段提取内容,证书必须包含模板中定义的所有参数值,华为云IoT平台定义了可在预调配模板中声明和引用的如下参数: - iotda::certificate::country (国家/地区,C ) - iotda::certificate::organization (组织,O) - iotda::certificate::organizational_unit (组织单位,OU) - iotda::certificate::distinguished_name_qualifier (可辨别名称限定符,dnQualifier) - iotda::certificate::state_name (省市,ST) - iotda::certificate::common_name (公用名,CN) - iotda::certificate::serial_number (序列号,serialNumber) type描述parameter的类型,目前仅支持string。 配置样例: '{\"iotda::certificate::country\":{\"type\":\"String\"}, \"iotda::certificate::organization\":{\"type\":\"String\"}, \"iotda::certificate::organizational_unit\":{\"type\":\"String\"}, \"iotda::certificate::distinguished_name_qualifier\":{\"type\":\"String\"}, \"iotda::certificate::state_name\":{\"type\":\"String\"}, \"iotda::certificate::common_name\":{\"type\":\"String\"}, \"iotda::certificate::serial_number\":{\"type\":\"String\"}}' + + :return: The parameters of this ProvisioningTemplateBody. + :rtype: object + """ + return self._parameters + + @parameters.setter + def parameters(self, parameters): + """Sets the parameters of this ProvisioningTemplateBody. + + **参数说明**:预调配模板参数, ,配置格式为{\"parameter\":{\"type\":\"String\"}} ,其中parameter目前支持从预调配设备的证书的使用者字段提取内容,证书必须包含模板中定义的所有参数值,华为云IoT平台定义了可在预调配模板中声明和引用的如下参数: - iotda::certificate::country (国家/地区,C ) - iotda::certificate::organization (组织,O) - iotda::certificate::organizational_unit (组织单位,OU) - iotda::certificate::distinguished_name_qualifier (可辨别名称限定符,dnQualifier) - iotda::certificate::state_name (省市,ST) - iotda::certificate::common_name (公用名,CN) - iotda::certificate::serial_number (序列号,serialNumber) type描述parameter的类型,目前仅支持string。 配置样例: '{\"iotda::certificate::country\":{\"type\":\"String\"}, \"iotda::certificate::organization\":{\"type\":\"String\"}, \"iotda::certificate::organizational_unit\":{\"type\":\"String\"}, \"iotda::certificate::distinguished_name_qualifier\":{\"type\":\"String\"}, \"iotda::certificate::state_name\":{\"type\":\"String\"}, \"iotda::certificate::common_name\":{\"type\":\"String\"}, \"iotda::certificate::serial_number\":{\"type\":\"String\"}}' + + :param parameters: The parameters of this ProvisioningTemplateBody. + :type parameters: object + """ + self._parameters = parameters + + @property + def resources(self): + """Gets the resources of this ProvisioningTemplateBody. + + :return: The resources of this ProvisioningTemplateBody. + :rtype: :class:`huaweicloudsdkiotda.v5.TemplateResource` + """ + return self._resources + + @resources.setter + def resources(self, resources): + """Sets the resources of this ProvisioningTemplateBody. + + :param resources: The resources of this ProvisioningTemplateBody. + :type resources: :class:`huaweicloudsdkiotda.v5.TemplateResource` + """ + 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, ProvisioningTemplateBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/provisioning_template_simple.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/provisioning_template_simple.py new file mode 100644 index 0000000000..5363b479e3 --- /dev/null +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/provisioning_template_simple.py @@ -0,0 +1,231 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ProvisioningTemplateSimple: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'template_id': 'str', + 'template_name': 'str', + 'description': 'str', + 'create_time': 'str', + 'update_time': 'str' + } + + attribute_map = { + 'template_id': 'template_id', + 'template_name': 'template_name', + 'description': 'description', + 'create_time': 'create_time', + 'update_time': 'update_time' + } + + def __init__(self, template_id=None, template_name=None, description=None, create_time=None, update_time=None): + """ProvisioningTemplateSimple + + The model defined in huaweicloud sdk + + :param template_id: **参数说明**:预调配模板ID。 + :type template_id: str + :param template_name: **参数说明**:预调配模板名称。 **取值范围**:长度不超过128,只允许中文、字母、数字、下划线(_)、连接符(-)的组合。 + :type template_name: str + :param description: **参数说明**:预调配模板的描述信息。 **取值范围**:长度不超过2048,只允许中文、字母、数字、以及_?'#().,&%@!-等字符的组合 + :type description: str + :param create_time: 在物联网平台创建预调配模板的时间。格式:yyyyMMdd'T'HHmmss'Z',如20151212T121212Z。 + :type create_time: str + :param update_time: 在物联网平台更新预调配模板的时间。格式:yyyyMMdd'T'HHmmss'Z',如20151212T121212Z。 + :type update_time: str + """ + + + + self._template_id = None + self._template_name = None + self._description = None + self._create_time = None + self._update_time = None + self.discriminator = None + + if template_id is not None: + self.template_id = template_id + if template_name is not None: + self.template_name = template_name + if description is not None: + self.description = description + if create_time is not None: + self.create_time = create_time + if update_time is not None: + self.update_time = update_time + + @property + def template_id(self): + """Gets the template_id of this ProvisioningTemplateSimple. + + **参数说明**:预调配模板ID。 + + :return: The template_id of this ProvisioningTemplateSimple. + :rtype: str + """ + return self._template_id + + @template_id.setter + def template_id(self, template_id): + """Sets the template_id of this ProvisioningTemplateSimple. + + **参数说明**:预调配模板ID。 + + :param template_id: The template_id of this ProvisioningTemplateSimple. + :type template_id: str + """ + self._template_id = template_id + + @property + def template_name(self): + """Gets the template_name of this ProvisioningTemplateSimple. + + **参数说明**:预调配模板名称。 **取值范围**:长度不超过128,只允许中文、字母、数字、下划线(_)、连接符(-)的组合。 + + :return: The template_name of this ProvisioningTemplateSimple. + :rtype: str + """ + return self._template_name + + @template_name.setter + def template_name(self, template_name): + """Sets the template_name of this ProvisioningTemplateSimple. + + **参数说明**:预调配模板名称。 **取值范围**:长度不超过128,只允许中文、字母、数字、下划线(_)、连接符(-)的组合。 + + :param template_name: The template_name of this ProvisioningTemplateSimple. + :type template_name: str + """ + self._template_name = template_name + + @property + def description(self): + """Gets the description of this ProvisioningTemplateSimple. + + **参数说明**:预调配模板的描述信息。 **取值范围**:长度不超过2048,只允许中文、字母、数字、以及_?'#().,&%@!-等字符的组合 + + :return: The description of this ProvisioningTemplateSimple. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this ProvisioningTemplateSimple. + + **参数说明**:预调配模板的描述信息。 **取值范围**:长度不超过2048,只允许中文、字母、数字、以及_?'#().,&%@!-等字符的组合 + + :param description: The description of this ProvisioningTemplateSimple. + :type description: str + """ + self._description = description + + @property + def create_time(self): + """Gets the create_time of this ProvisioningTemplateSimple. + + 在物联网平台创建预调配模板的时间。格式:yyyyMMdd'T'HHmmss'Z',如20151212T121212Z。 + + :return: The create_time of this ProvisioningTemplateSimple. + :rtype: str + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this ProvisioningTemplateSimple. + + 在物联网平台创建预调配模板的时间。格式:yyyyMMdd'T'HHmmss'Z',如20151212T121212Z。 + + :param create_time: The create_time of this ProvisioningTemplateSimple. + :type create_time: str + """ + self._create_time = create_time + + @property + def update_time(self): + """Gets the update_time of this ProvisioningTemplateSimple. + + 在物联网平台更新预调配模板的时间。格式:yyyyMMdd'T'HHmmss'Z',如20151212T121212Z。 + + :return: The update_time of this ProvisioningTemplateSimple. + :rtype: str + """ + return self._update_time + + @update_time.setter + def update_time(self, update_time): + """Sets the update_time of this ProvisioningTemplateSimple. + + 在物联网平台更新预调配模板的时间。格式:yyyyMMdd'T'HHmmss'Z',如20151212T121212Z。 + + :param update_time: The update_time of this ProvisioningTemplateSimple. + :type update_time: str + """ + self._update_time = update_time + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ProvisioningTemplateSimple): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/show_device_authorizer_request.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/show_device_authorizer_request.py new file mode 100644 index 0000000000..ee11c1942f --- /dev/null +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/show_device_authorizer_request.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowDeviceAuthorizerRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'authorizer_id': 'str' + } + + attribute_map = { + 'instance_id': 'Instance-Id', + 'authorizer_id': 'authorizer_id' + } + + def __init__(self, instance_id=None, authorizer_id=None): + """ShowDeviceAuthorizerRequest + + The model defined in huaweicloud sdk + + :param instance_id: **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0079.html#section1)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0079.html#section1)](tag:hws_hk)。 + :type instance_id: str + :param authorizer_id: 自定义鉴权ID + :type authorizer_id: str + """ + + + + self._instance_id = None + self._authorizer_id = None + self.discriminator = None + + if instance_id is not None: + self.instance_id = instance_id + self.authorizer_id = authorizer_id + + @property + def instance_id(self): + """Gets the instance_id of this ShowDeviceAuthorizerRequest. + + **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0079.html#section1)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0079.html#section1)](tag:hws_hk)。 + + :return: The instance_id of this ShowDeviceAuthorizerRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this ShowDeviceAuthorizerRequest. + + **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0079.html#section1)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0079.html#section1)](tag:hws_hk)。 + + :param instance_id: The instance_id of this ShowDeviceAuthorizerRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def authorizer_id(self): + """Gets the authorizer_id of this ShowDeviceAuthorizerRequest. + + 自定义鉴权ID + + :return: The authorizer_id of this ShowDeviceAuthorizerRequest. + :rtype: str + """ + return self._authorizer_id + + @authorizer_id.setter + def authorizer_id(self, authorizer_id): + """Sets the authorizer_id of this ShowDeviceAuthorizerRequest. + + 自定义鉴权ID + + :param authorizer_id: The authorizer_id of this ShowDeviceAuthorizerRequest. + :type authorizer_id: str + """ + self._authorizer_id = authorizer_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, ShowDeviceAuthorizerRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/show_device_authorizer_response.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/show_device_authorizer_response.py new file mode 100644 index 0000000000..f8519a995e --- /dev/null +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/show_device_authorizer_response.py @@ -0,0 +1,435 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowDeviceAuthorizerResponse(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 = { + 'authorizer_id': 'str', + 'authorizer_name': 'str', + 'func_name': 'str', + 'func_urn': 'str', + 'signing_enable': 'bool', + 'signing_token': 'str', + 'signing_public_key': 'str', + 'default_authorizer': 'bool', + 'status': 'str', + 'cache_enable': 'bool', + 'create_time': 'str', + 'update_time': 'str' + } + + attribute_map = { + 'authorizer_id': 'authorizer_id', + 'authorizer_name': 'authorizer_name', + 'func_name': 'func_name', + 'func_urn': 'func_urn', + 'signing_enable': 'signing_enable', + 'signing_token': 'signing_token', + 'signing_public_key': 'signing_public_key', + 'default_authorizer': 'default_authorizer', + 'status': 'status', + 'cache_enable': 'cache_enable', + 'create_time': 'create_time', + 'update_time': 'update_time' + } + + def __init__(self, authorizer_id=None, authorizer_name=None, func_name=None, func_urn=None, signing_enable=None, signing_token=None, signing_public_key=None, default_authorizer=None, status=None, cache_enable=None, create_time=None, update_time=None): + """ShowDeviceAuthorizerResponse + + The model defined in huaweicloud sdk + + :param authorizer_id: **参数说明**:自定义鉴权ID。 + :type authorizer_id: str + :param authorizer_name: **参数说明**:自定义鉴权器名称,同一租户下的自定义鉴权器名称不能重复。 **取值范围**:长度不超过128,只允许字母、数字、下划线(_)、连接符(-)的组合。 + :type authorizer_name: str + :param func_name: **参数说明**:函数名称。 + :type func_name: str + :param func_urn: **参数说明**:函数的URN(Uniform Resource Name),唯一标识函数,即自定义鉴权器对应的处理函数地址。 + :type func_urn: str + :param signing_enable: **参数说明**:是否启动签名校验,启动签名校验后不满足签名要求的鉴权信息将被拒绝,以减少无效的函数调用。推荐用户进行安全的签名校验,默认开启。 + :type signing_enable: bool + :param signing_token: **参数说明**:签名校验的Key值,开启签名校验时使用。 **取值范围**:长度不超过128,只允许字母、数字、下划线(_)、连接符(-)的组合。 + :type signing_token: str + :param signing_public_key: **参数说明**:签名校验的公钥,开启签名校验时使用。用于认证设备携带的签名信息是否正确。 + :type signing_public_key: str + :param default_authorizer: **参数说明**:是否为默认的鉴权方式,默认为false。 + :type default_authorizer: bool + :param status: **参数说明**:是否激活该鉴权方式 - ACTIVE:该鉴权为激活状态。 - INACTIVE:该鉴权为停用状态。 + :type status: str + :param cache_enable: **参数说明**:是否开启缓存,默认为false,设备为true时,当设备入参(username,clientId,password,以及证书信息,函数urn)不变时,当缓存结果存在时,将直接使用缓存结果,建议在调试时设置为false,生产时设置为true,避免频繁调用函数。 + :type cache_enable: bool + :param create_time: 在物联网平台进行自定义鉴权相关操作的时间。格式:yyyyMMdd'T'HHmmss'Z',如:20151212T121212Z。 + :type create_time: str + :param update_time: 在物联网平台更新自定义鉴权相关操作的时间。格式:yyyyMMdd'T'HHmmss'Z',如:20151212T121212Z。 + :type update_time: str + """ + + super(ShowDeviceAuthorizerResponse, self).__init__() + + self._authorizer_id = None + self._authorizer_name = None + self._func_name = None + self._func_urn = None + self._signing_enable = None + self._signing_token = None + self._signing_public_key = None + self._default_authorizer = None + self._status = None + self._cache_enable = None + self._create_time = None + self._update_time = None + self.discriminator = None + + if authorizer_id is not None: + self.authorizer_id = authorizer_id + if authorizer_name is not None: + self.authorizer_name = authorizer_name + if func_name is not None: + self.func_name = func_name + if func_urn is not None: + self.func_urn = func_urn + if signing_enable is not None: + self.signing_enable = signing_enable + if signing_token is not None: + self.signing_token = signing_token + if signing_public_key is not None: + self.signing_public_key = signing_public_key + if default_authorizer is not None: + self.default_authorizer = default_authorizer + if status is not None: + self.status = status + if cache_enable is not None: + self.cache_enable = cache_enable + if create_time is not None: + self.create_time = create_time + if update_time is not None: + self.update_time = update_time + + @property + def authorizer_id(self): + """Gets the authorizer_id of this ShowDeviceAuthorizerResponse. + + **参数说明**:自定义鉴权ID。 + + :return: The authorizer_id of this ShowDeviceAuthorizerResponse. + :rtype: str + """ + return self._authorizer_id + + @authorizer_id.setter + def authorizer_id(self, authorizer_id): + """Sets the authorizer_id of this ShowDeviceAuthorizerResponse. + + **参数说明**:自定义鉴权ID。 + + :param authorizer_id: The authorizer_id of this ShowDeviceAuthorizerResponse. + :type authorizer_id: str + """ + self._authorizer_id = authorizer_id + + @property + def authorizer_name(self): + """Gets the authorizer_name of this ShowDeviceAuthorizerResponse. + + **参数说明**:自定义鉴权器名称,同一租户下的自定义鉴权器名称不能重复。 **取值范围**:长度不超过128,只允许字母、数字、下划线(_)、连接符(-)的组合。 + + :return: The authorizer_name of this ShowDeviceAuthorizerResponse. + :rtype: str + """ + return self._authorizer_name + + @authorizer_name.setter + def authorizer_name(self, authorizer_name): + """Sets the authorizer_name of this ShowDeviceAuthorizerResponse. + + **参数说明**:自定义鉴权器名称,同一租户下的自定义鉴权器名称不能重复。 **取值范围**:长度不超过128,只允许字母、数字、下划线(_)、连接符(-)的组合。 + + :param authorizer_name: The authorizer_name of this ShowDeviceAuthorizerResponse. + :type authorizer_name: str + """ + self._authorizer_name = authorizer_name + + @property + def func_name(self): + """Gets the func_name of this ShowDeviceAuthorizerResponse. + + **参数说明**:函数名称。 + + :return: The func_name of this ShowDeviceAuthorizerResponse. + :rtype: str + """ + return self._func_name + + @func_name.setter + def func_name(self, func_name): + """Sets the func_name of this ShowDeviceAuthorizerResponse. + + **参数说明**:函数名称。 + + :param func_name: The func_name of this ShowDeviceAuthorizerResponse. + :type func_name: str + """ + self._func_name = func_name + + @property + def func_urn(self): + """Gets the func_urn of this ShowDeviceAuthorizerResponse. + + **参数说明**:函数的URN(Uniform Resource Name),唯一标识函数,即自定义鉴权器对应的处理函数地址。 + + :return: The func_urn of this ShowDeviceAuthorizerResponse. + :rtype: str + """ + return self._func_urn + + @func_urn.setter + def func_urn(self, func_urn): + """Sets the func_urn of this ShowDeviceAuthorizerResponse. + + **参数说明**:函数的URN(Uniform Resource Name),唯一标识函数,即自定义鉴权器对应的处理函数地址。 + + :param func_urn: The func_urn of this ShowDeviceAuthorizerResponse. + :type func_urn: str + """ + self._func_urn = func_urn + + @property + def signing_enable(self): + """Gets the signing_enable of this ShowDeviceAuthorizerResponse. + + **参数说明**:是否启动签名校验,启动签名校验后不满足签名要求的鉴权信息将被拒绝,以减少无效的函数调用。推荐用户进行安全的签名校验,默认开启。 + + :return: The signing_enable of this ShowDeviceAuthorizerResponse. + :rtype: bool + """ + return self._signing_enable + + @signing_enable.setter + def signing_enable(self, signing_enable): + """Sets the signing_enable of this ShowDeviceAuthorizerResponse. + + **参数说明**:是否启动签名校验,启动签名校验后不满足签名要求的鉴权信息将被拒绝,以减少无效的函数调用。推荐用户进行安全的签名校验,默认开启。 + + :param signing_enable: The signing_enable of this ShowDeviceAuthorizerResponse. + :type signing_enable: bool + """ + self._signing_enable = signing_enable + + @property + def signing_token(self): + """Gets the signing_token of this ShowDeviceAuthorizerResponse. + + **参数说明**:签名校验的Key值,开启签名校验时使用。 **取值范围**:长度不超过128,只允许字母、数字、下划线(_)、连接符(-)的组合。 + + :return: The signing_token of this ShowDeviceAuthorizerResponse. + :rtype: str + """ + return self._signing_token + + @signing_token.setter + def signing_token(self, signing_token): + """Sets the signing_token of this ShowDeviceAuthorizerResponse. + + **参数说明**:签名校验的Key值,开启签名校验时使用。 **取值范围**:长度不超过128,只允许字母、数字、下划线(_)、连接符(-)的组合。 + + :param signing_token: The signing_token of this ShowDeviceAuthorizerResponse. + :type signing_token: str + """ + self._signing_token = signing_token + + @property + def signing_public_key(self): + """Gets the signing_public_key of this ShowDeviceAuthorizerResponse. + + **参数说明**:签名校验的公钥,开启签名校验时使用。用于认证设备携带的签名信息是否正确。 + + :return: The signing_public_key of this ShowDeviceAuthorizerResponse. + :rtype: str + """ + return self._signing_public_key + + @signing_public_key.setter + def signing_public_key(self, signing_public_key): + """Sets the signing_public_key of this ShowDeviceAuthorizerResponse. + + **参数说明**:签名校验的公钥,开启签名校验时使用。用于认证设备携带的签名信息是否正确。 + + :param signing_public_key: The signing_public_key of this ShowDeviceAuthorizerResponse. + :type signing_public_key: str + """ + self._signing_public_key = signing_public_key + + @property + def default_authorizer(self): + """Gets the default_authorizer of this ShowDeviceAuthorizerResponse. + + **参数说明**:是否为默认的鉴权方式,默认为false。 + + :return: The default_authorizer of this ShowDeviceAuthorizerResponse. + :rtype: bool + """ + return self._default_authorizer + + @default_authorizer.setter + def default_authorizer(self, default_authorizer): + """Sets the default_authorizer of this ShowDeviceAuthorizerResponse. + + **参数说明**:是否为默认的鉴权方式,默认为false。 + + :param default_authorizer: The default_authorizer of this ShowDeviceAuthorizerResponse. + :type default_authorizer: bool + """ + self._default_authorizer = default_authorizer + + @property + def status(self): + """Gets the status of this ShowDeviceAuthorizerResponse. + + **参数说明**:是否激活该鉴权方式 - ACTIVE:该鉴权为激活状态。 - INACTIVE:该鉴权为停用状态。 + + :return: The status of this ShowDeviceAuthorizerResponse. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ShowDeviceAuthorizerResponse. + + **参数说明**:是否激活该鉴权方式 - ACTIVE:该鉴权为激活状态。 - INACTIVE:该鉴权为停用状态。 + + :param status: The status of this ShowDeviceAuthorizerResponse. + :type status: str + """ + self._status = status + + @property + def cache_enable(self): + """Gets the cache_enable of this ShowDeviceAuthorizerResponse. + + **参数说明**:是否开启缓存,默认为false,设备为true时,当设备入参(username,clientId,password,以及证书信息,函数urn)不变时,当缓存结果存在时,将直接使用缓存结果,建议在调试时设置为false,生产时设置为true,避免频繁调用函数。 + + :return: The cache_enable of this ShowDeviceAuthorizerResponse. + :rtype: bool + """ + return self._cache_enable + + @cache_enable.setter + def cache_enable(self, cache_enable): + """Sets the cache_enable of this ShowDeviceAuthorizerResponse. + + **参数说明**:是否开启缓存,默认为false,设备为true时,当设备入参(username,clientId,password,以及证书信息,函数urn)不变时,当缓存结果存在时,将直接使用缓存结果,建议在调试时设置为false,生产时设置为true,避免频繁调用函数。 + + :param cache_enable: The cache_enable of this ShowDeviceAuthorizerResponse. + :type cache_enable: bool + """ + self._cache_enable = cache_enable + + @property + def create_time(self): + """Gets the create_time of this ShowDeviceAuthorizerResponse. + + 在物联网平台进行自定义鉴权相关操作的时间。格式:yyyyMMdd'T'HHmmss'Z',如:20151212T121212Z。 + + :return: The create_time of this ShowDeviceAuthorizerResponse. + :rtype: str + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this ShowDeviceAuthorizerResponse. + + 在物联网平台进行自定义鉴权相关操作的时间。格式:yyyyMMdd'T'HHmmss'Z',如:20151212T121212Z。 + + :param create_time: The create_time of this ShowDeviceAuthorizerResponse. + :type create_time: str + """ + self._create_time = create_time + + @property + def update_time(self): + """Gets the update_time of this ShowDeviceAuthorizerResponse. + + 在物联网平台更新自定义鉴权相关操作的时间。格式:yyyyMMdd'T'HHmmss'Z',如:20151212T121212Z。 + + :return: The update_time of this ShowDeviceAuthorizerResponse. + :rtype: str + """ + return self._update_time + + @update_time.setter + def update_time(self, update_time): + """Sets the update_time of this ShowDeviceAuthorizerResponse. + + 在物联网平台更新自定义鉴权相关操作的时间。格式:yyyyMMdd'T'HHmmss'Z',如:20151212T121212Z。 + + :param update_time: The update_time of this ShowDeviceAuthorizerResponse. + :type update_time: str + """ + self._update_time = update_time + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowDeviceAuthorizerResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/show_device_policy_request.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/show_device_policy_request.py new file mode 100644 index 0000000000..f800350a7d --- /dev/null +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/show_device_policy_request.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowDevicePolicyRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'policy_id': 'str' + } + + attribute_map = { + 'instance_id': 'Instance-Id', + 'policy_id': 'policy_id' + } + + def __init__(self, instance_id=None, policy_id=None): + """ShowDevicePolicyRequest + + The model defined in huaweicloud sdk + + :param instance_id: **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0079.html#section1)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0079.html#section1)](tag:hws_hk)。 + :type instance_id: str + :param policy_id: 策略ID + :type policy_id: str + """ + + + + self._instance_id = None + self._policy_id = None + self.discriminator = None + + if instance_id is not None: + self.instance_id = instance_id + self.policy_id = policy_id + + @property + def instance_id(self): + """Gets the instance_id of this ShowDevicePolicyRequest. + + **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0079.html#section1)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0079.html#section1)](tag:hws_hk)。 + + :return: The instance_id of this ShowDevicePolicyRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this ShowDevicePolicyRequest. + + **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0079.html#section1)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0079.html#section1)](tag:hws_hk)。 + + :param instance_id: The instance_id of this ShowDevicePolicyRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def policy_id(self): + """Gets the policy_id of this ShowDevicePolicyRequest. + + 策略ID + + :return: The policy_id of this ShowDevicePolicyRequest. + :rtype: str + """ + return self._policy_id + + @policy_id.setter + def policy_id(self, policy_id): + """Sets the policy_id of this ShowDevicePolicyRequest. + + 策略ID + + :param policy_id: The policy_id of this ShowDevicePolicyRequest. + :type policy_id: str + """ + self._policy_id = policy_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, ShowDevicePolicyRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/show_device_policy_response.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/show_device_policy_response.py new file mode 100644 index 0000000000..e7fc70d1e1 --- /dev/null +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/show_device_policy_response.py @@ -0,0 +1,261 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowDevicePolicyResponse(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 = { + 'app_id': 'str', + 'policy_id': 'str', + 'policy_name': 'str', + 'statement': 'list[Statement]', + 'create_time': 'str', + 'update_time': 'str' + } + + attribute_map = { + 'app_id': 'app_id', + 'policy_id': 'policy_id', + 'policy_name': 'policy_name', + 'statement': 'statement', + 'create_time': 'create_time', + 'update_time': 'update_time' + } + + def __init__(self, app_id=None, policy_id=None, policy_name=None, statement=None, create_time=None, update_time=None): + """ShowDevicePolicyResponse + + The model defined in huaweicloud sdk + + :param app_id: **参数说明**:资源空间ID。 + :type app_id: str + :param policy_id: 策略ID。 + :type policy_id: str + :param policy_name: 策略名称。 + :type policy_name: str + :param statement: 策略文档。 + :type statement: list[:class:`huaweicloudsdkiotda.v5.Statement`] + :param create_time: 在物联网平台创建策略的时间。格式:yyyyMMdd'T'HHmmss'Z',如20151212T121212Z。 + :type create_time: str + :param update_time: 在物联网平台更新策略的时间。格式:yyyyMMdd'T'HHmmss'Z',如20151212T121212Z。 + :type update_time: str + """ + + super(ShowDevicePolicyResponse, self).__init__() + + self._app_id = None + self._policy_id = None + self._policy_name = None + self._statement = None + self._create_time = None + self._update_time = None + self.discriminator = None + + if app_id is not None: + self.app_id = app_id + if policy_id is not None: + self.policy_id = policy_id + if policy_name is not None: + self.policy_name = policy_name + if statement is not None: + self.statement = statement + if create_time is not None: + self.create_time = create_time + if update_time is not None: + self.update_time = update_time + + @property + def app_id(self): + """Gets the app_id of this ShowDevicePolicyResponse. + + **参数说明**:资源空间ID。 + + :return: The app_id of this ShowDevicePolicyResponse. + :rtype: str + """ + return self._app_id + + @app_id.setter + def app_id(self, app_id): + """Sets the app_id of this ShowDevicePolicyResponse. + + **参数说明**:资源空间ID。 + + :param app_id: The app_id of this ShowDevicePolicyResponse. + :type app_id: str + """ + self._app_id = app_id + + @property + def policy_id(self): + """Gets the policy_id of this ShowDevicePolicyResponse. + + 策略ID。 + + :return: The policy_id of this ShowDevicePolicyResponse. + :rtype: str + """ + return self._policy_id + + @policy_id.setter + def policy_id(self, policy_id): + """Sets the policy_id of this ShowDevicePolicyResponse. + + 策略ID。 + + :param policy_id: The policy_id of this ShowDevicePolicyResponse. + :type policy_id: str + """ + self._policy_id = policy_id + + @property + def policy_name(self): + """Gets the policy_name of this ShowDevicePolicyResponse. + + 策略名称。 + + :return: The policy_name of this ShowDevicePolicyResponse. + :rtype: str + """ + return self._policy_name + + @policy_name.setter + def policy_name(self, policy_name): + """Sets the policy_name of this ShowDevicePolicyResponse. + + 策略名称。 + + :param policy_name: The policy_name of this ShowDevicePolicyResponse. + :type policy_name: str + """ + self._policy_name = policy_name + + @property + def statement(self): + """Gets the statement of this ShowDevicePolicyResponse. + + 策略文档。 + + :return: The statement of this ShowDevicePolicyResponse. + :rtype: list[:class:`huaweicloudsdkiotda.v5.Statement`] + """ + return self._statement + + @statement.setter + def statement(self, statement): + """Sets the statement of this ShowDevicePolicyResponse. + + 策略文档。 + + :param statement: The statement of this ShowDevicePolicyResponse. + :type statement: list[:class:`huaweicloudsdkiotda.v5.Statement`] + """ + self._statement = statement + + @property + def create_time(self): + """Gets the create_time of this ShowDevicePolicyResponse. + + 在物联网平台创建策略的时间。格式:yyyyMMdd'T'HHmmss'Z',如20151212T121212Z。 + + :return: The create_time of this ShowDevicePolicyResponse. + :rtype: str + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this ShowDevicePolicyResponse. + + 在物联网平台创建策略的时间。格式:yyyyMMdd'T'HHmmss'Z',如20151212T121212Z。 + + :param create_time: The create_time of this ShowDevicePolicyResponse. + :type create_time: str + """ + self._create_time = create_time + + @property + def update_time(self): + """Gets the update_time of this ShowDevicePolicyResponse. + + 在物联网平台更新策略的时间。格式:yyyyMMdd'T'HHmmss'Z',如20151212T121212Z。 + + :return: The update_time of this ShowDevicePolicyResponse. + :rtype: str + """ + return self._update_time + + @update_time.setter + def update_time(self, update_time): + """Sets the update_time of this ShowDevicePolicyResponse. + + 在物联网平台更新策略的时间。格式:yyyyMMdd'T'HHmmss'Z',如20151212T121212Z。 + + :param update_time: The update_time of this ShowDevicePolicyResponse. + :type update_time: str + """ + self._update_time = update_time + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowDevicePolicyResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/show_provisioning_template_request.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/show_provisioning_template_request.py new file mode 100644 index 0000000000..2715e25187 --- /dev/null +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/show_provisioning_template_request.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowProvisioningTemplateRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'template_id': 'str' + } + + attribute_map = { + 'instance_id': 'Instance-Id', + 'template_id': 'template_id' + } + + def __init__(self, instance_id=None, template_id=None): + """ShowProvisioningTemplateRequest + + The model defined in huaweicloud sdk + + :param instance_id: **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0079.html#section1)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0079.html#section1)](tag:hws_hk)。 + :type instance_id: str + :param template_id: 预调配模板ID + :type template_id: str + """ + + + + self._instance_id = None + self._template_id = None + self.discriminator = None + + if instance_id is not None: + self.instance_id = instance_id + self.template_id = template_id + + @property + def instance_id(self): + """Gets the instance_id of this ShowProvisioningTemplateRequest. + + **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0079.html#section1)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0079.html#section1)](tag:hws_hk)。 + + :return: The instance_id of this ShowProvisioningTemplateRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this ShowProvisioningTemplateRequest. + + **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0079.html#section1)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0079.html#section1)](tag:hws_hk)。 + + :param instance_id: The instance_id of this ShowProvisioningTemplateRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def template_id(self): + """Gets the template_id of this ShowProvisioningTemplateRequest. + + 预调配模板ID + + :return: The template_id of this ShowProvisioningTemplateRequest. + :rtype: str + """ + return self._template_id + + @template_id.setter + def template_id(self, template_id): + """Sets the template_id of this ShowProvisioningTemplateRequest. + + 预调配模板ID + + :param template_id: The template_id of this ShowProvisioningTemplateRequest. + :type template_id: str + """ + self._template_id = template_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, ShowProvisioningTemplateRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/show_provisioning_template_response.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/show_provisioning_template_response.py new file mode 100644 index 0000000000..802b279fc8 --- /dev/null +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/show_provisioning_template_response.py @@ -0,0 +1,257 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowProvisioningTemplateResponse(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 = { + 'template_id': 'str', + 'template_name': 'str', + 'description': 'str', + 'template_body': 'ProvisioningTemplateBody', + 'create_time': 'str', + 'update_time': 'str' + } + + attribute_map = { + 'template_id': 'template_id', + 'template_name': 'template_name', + 'description': 'description', + 'template_body': 'template_body', + 'create_time': 'create_time', + 'update_time': 'update_time' + } + + def __init__(self, template_id=None, template_name=None, description=None, template_body=None, create_time=None, update_time=None): + """ShowProvisioningTemplateResponse + + The model defined in huaweicloud sdk + + :param template_id: **参数说明**:预调配模板ID。 + :type template_id: str + :param template_name: **参数说明**:预调配模板名称。 **取值范围**:长度不超过128,只允许中文、字母、数字、下划线(_)、连接符(-)的组合。 + :type template_name: str + :param description: **参数说明**:预调配模板的描述信息。 **取值范围**:长度不超过2048,只允许中文、字母、数字、以及_?'#().,&%@!-等字符的组合 + :type description: str + :param template_body: + :type template_body: :class:`huaweicloudsdkiotda.v5.ProvisioningTemplateBody` + :param create_time: 在物联网平台创建预调配模板的时间。格式:yyyyMMdd'T'HHmmss'Z',如20151212T121212Z。 + :type create_time: str + :param update_time: 在物联网平台更新预调配模板的时间。格式:yyyyMMdd'T'HHmmss'Z',如20151212T121212Z。 + :type update_time: str + """ + + super(ShowProvisioningTemplateResponse, self).__init__() + + self._template_id = None + self._template_name = None + self._description = None + self._template_body = None + self._create_time = None + self._update_time = None + self.discriminator = None + + if template_id is not None: + self.template_id = template_id + if template_name is not None: + self.template_name = template_name + if description is not None: + self.description = description + if template_body is not None: + self.template_body = template_body + if create_time is not None: + self.create_time = create_time + if update_time is not None: + self.update_time = update_time + + @property + def template_id(self): + """Gets the template_id of this ShowProvisioningTemplateResponse. + + **参数说明**:预调配模板ID。 + + :return: The template_id of this ShowProvisioningTemplateResponse. + :rtype: str + """ + return self._template_id + + @template_id.setter + def template_id(self, template_id): + """Sets the template_id of this ShowProvisioningTemplateResponse. + + **参数说明**:预调配模板ID。 + + :param template_id: The template_id of this ShowProvisioningTemplateResponse. + :type template_id: str + """ + self._template_id = template_id + + @property + def template_name(self): + """Gets the template_name of this ShowProvisioningTemplateResponse. + + **参数说明**:预调配模板名称。 **取值范围**:长度不超过128,只允许中文、字母、数字、下划线(_)、连接符(-)的组合。 + + :return: The template_name of this ShowProvisioningTemplateResponse. + :rtype: str + """ + return self._template_name + + @template_name.setter + def template_name(self, template_name): + """Sets the template_name of this ShowProvisioningTemplateResponse. + + **参数说明**:预调配模板名称。 **取值范围**:长度不超过128,只允许中文、字母、数字、下划线(_)、连接符(-)的组合。 + + :param template_name: The template_name of this ShowProvisioningTemplateResponse. + :type template_name: str + """ + self._template_name = template_name + + @property + def description(self): + """Gets the description of this ShowProvisioningTemplateResponse. + + **参数说明**:预调配模板的描述信息。 **取值范围**:长度不超过2048,只允许中文、字母、数字、以及_?'#().,&%@!-等字符的组合 + + :return: The description of this ShowProvisioningTemplateResponse. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this ShowProvisioningTemplateResponse. + + **参数说明**:预调配模板的描述信息。 **取值范围**:长度不超过2048,只允许中文、字母、数字、以及_?'#().,&%@!-等字符的组合 + + :param description: The description of this ShowProvisioningTemplateResponse. + :type description: str + """ + self._description = description + + @property + def template_body(self): + """Gets the template_body of this ShowProvisioningTemplateResponse. + + :return: The template_body of this ShowProvisioningTemplateResponse. + :rtype: :class:`huaweicloudsdkiotda.v5.ProvisioningTemplateBody` + """ + return self._template_body + + @template_body.setter + def template_body(self, template_body): + """Sets the template_body of this ShowProvisioningTemplateResponse. + + :param template_body: The template_body of this ShowProvisioningTemplateResponse. + :type template_body: :class:`huaweicloudsdkiotda.v5.ProvisioningTemplateBody` + """ + self._template_body = template_body + + @property + def create_time(self): + """Gets the create_time of this ShowProvisioningTemplateResponse. + + 在物联网平台创建预调配模板的时间。格式:yyyyMMdd'T'HHmmss'Z',如20151212T121212Z。 + + :return: The create_time of this ShowProvisioningTemplateResponse. + :rtype: str + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this ShowProvisioningTemplateResponse. + + 在物联网平台创建预调配模板的时间。格式:yyyyMMdd'T'HHmmss'Z',如20151212T121212Z。 + + :param create_time: The create_time of this ShowProvisioningTemplateResponse. + :type create_time: str + """ + self._create_time = create_time + + @property + def update_time(self): + """Gets the update_time of this ShowProvisioningTemplateResponse. + + 在物联网平台更新预调配模板的时间。格式:yyyyMMdd'T'HHmmss'Z',如20151212T121212Z。 + + :return: The update_time of this ShowProvisioningTemplateResponse. + :rtype: str + """ + return self._update_time + + @update_time.setter + def update_time(self, update_time): + """Sets the update_time of this ShowProvisioningTemplateResponse. + + 在物联网平台更新预调配模板的时间。格式:yyyyMMdd'T'HHmmss'Z',如20151212T121212Z。 + + :param update_time: The update_time of this ShowProvisioningTemplateResponse. + :type update_time: str + """ + self._update_time = update_time + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowProvisioningTemplateResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/show_targets_in_device_policy_request.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/show_targets_in_device_policy_request.py new file mode 100644 index 0000000000..dcc1a2c2bc --- /dev/null +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/show_targets_in_device_policy_request.py @@ -0,0 +1,168 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowTargetsInDevicePolicyRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'policy_id': 'str', + 'body': 'ShowTargetsInDevicePolicyRequestBody' + } + + attribute_map = { + 'instance_id': 'Instance-Id', + 'policy_id': 'policy_id', + 'body': 'body' + } + + def __init__(self, instance_id=None, policy_id=None, body=None): + """ShowTargetsInDevicePolicyRequest + + The model defined in huaweicloud sdk + + :param instance_id: **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0079.html#section1)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0079.html#section1)](tag:hws_hk)。 + :type instance_id: str + :param policy_id: 策略ID + :type policy_id: str + :param body: Body of the ShowTargetsInDevicePolicyRequest + :type body: :class:`huaweicloudsdkiotda.v5.ShowTargetsInDevicePolicyRequestBody` + """ + + + + self._instance_id = None + self._policy_id = None + self._body = None + self.discriminator = None + + if instance_id is not None: + self.instance_id = instance_id + self.policy_id = policy_id + if body is not None: + self.body = body + + @property + def instance_id(self): + """Gets the instance_id of this ShowTargetsInDevicePolicyRequest. + + **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0079.html#section1)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0079.html#section1)](tag:hws_hk)。 + + :return: The instance_id of this ShowTargetsInDevicePolicyRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this ShowTargetsInDevicePolicyRequest. + + **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0079.html#section1)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0079.html#section1)](tag:hws_hk)。 + + :param instance_id: The instance_id of this ShowTargetsInDevicePolicyRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def policy_id(self): + """Gets the policy_id of this ShowTargetsInDevicePolicyRequest. + + 策略ID + + :return: The policy_id of this ShowTargetsInDevicePolicyRequest. + :rtype: str + """ + return self._policy_id + + @policy_id.setter + def policy_id(self, policy_id): + """Sets the policy_id of this ShowTargetsInDevicePolicyRequest. + + 策略ID + + :param policy_id: The policy_id of this ShowTargetsInDevicePolicyRequest. + :type policy_id: str + """ + self._policy_id = policy_id + + @property + def body(self): + """Gets the body of this ShowTargetsInDevicePolicyRequest. + + :return: The body of this ShowTargetsInDevicePolicyRequest. + :rtype: :class:`huaweicloudsdkiotda.v5.ShowTargetsInDevicePolicyRequestBody` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this ShowTargetsInDevicePolicyRequest. + + :param body: The body of this ShowTargetsInDevicePolicyRequest. + :type body: :class:`huaweicloudsdkiotda.v5.ShowTargetsInDevicePolicyRequestBody` + """ + 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, ShowTargetsInDevicePolicyRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/show_targets_in_device_policy_request_body.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/show_targets_in_device_policy_request_body.py new file mode 100644 index 0000000000..8163220d18 --- /dev/null +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/show_targets_in_device_policy_request_body.py @@ -0,0 +1,202 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowTargetsInDevicePolicyRequestBody: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'target_type': 'str', + 'limit': 'int', + 'marker': 'str', + 'offset': 'int' + } + + attribute_map = { + 'target_type': 'target_type', + 'limit': 'limit', + 'marker': 'marker', + 'offset': 'offset' + } + + def __init__(self, target_type=None, limit=None, marker=None, offset=None): + """ShowTargetsInDevicePolicyRequestBody + + The model defined in huaweicloud sdk + + :param target_type: **参数说明**:策略绑定的目标类型。 **取值范围**:device|product|app,device表示设备,product表示产品,app表示整个资源空间。 + :type target_type: str + :param limit: **参数说明**:分页查询时每页显示的记录数。 **取值范围**:1-50的整数,默认值为10。 + :type limit: int + :param marker: **参数说明**:上一次分页查询结果中最后一条记录的ID,在上一次分页查询时由物联网平台返回获得。分页查询时物联网平台是按marker也就是记录ID降序查询的,越新的数据记录ID也会越大。若填写marker,则本次只查询记录ID小于marker的数据记录。若不填写,则从记录ID最大也就是最新的一条数据开始查询。如果需要依次查询所有数据,则每次查询时必须填写上一次查询响应中的marker值。 **取值范围**:长度为24的十六进制字符串,默认值为ffffffffffffffffffffffff。 + :type marker: str + :param offset: **参数说明**:表示从marker后偏移offset条记录开始查询。默认为0,取值范围为0-500的整数。当offset为0时,表示从marker后第一条记录开始输出。限制offset最大值是出于API性能考虑,您可以搭配marker使用该参数实现翻页,例如每页50条记录,1-11页内都可以直接使用offset跳转到指定页,但到11页后,由于offset限制为500,您需要使用第11页返回的marker作为下次查询的marker,以实现翻页到12-22页。 **取值范围**:0-500的整数,默认为0。 + :type offset: int + """ + + + + self._target_type = None + self._limit = None + self._marker = None + self._offset = None + self.discriminator = None + + if target_type is not None: + self.target_type = target_type + if limit is not None: + self.limit = limit + if marker is not None: + self.marker = marker + if offset is not None: + self.offset = offset + + @property + def target_type(self): + """Gets the target_type of this ShowTargetsInDevicePolicyRequestBody. + + **参数说明**:策略绑定的目标类型。 **取值范围**:device|product|app,device表示设备,product表示产品,app表示整个资源空间。 + + :return: The target_type of this ShowTargetsInDevicePolicyRequestBody. + :rtype: str + """ + return self._target_type + + @target_type.setter + def target_type(self, target_type): + """Sets the target_type of this ShowTargetsInDevicePolicyRequestBody. + + **参数说明**:策略绑定的目标类型。 **取值范围**:device|product|app,device表示设备,product表示产品,app表示整个资源空间。 + + :param target_type: The target_type of this ShowTargetsInDevicePolicyRequestBody. + :type target_type: str + """ + self._target_type = target_type + + @property + def limit(self): + """Gets the limit of this ShowTargetsInDevicePolicyRequestBody. + + **参数说明**:分页查询时每页显示的记录数。 **取值范围**:1-50的整数,默认值为10。 + + :return: The limit of this ShowTargetsInDevicePolicyRequestBody. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ShowTargetsInDevicePolicyRequestBody. + + **参数说明**:分页查询时每页显示的记录数。 **取值范围**:1-50的整数,默认值为10。 + + :param limit: The limit of this ShowTargetsInDevicePolicyRequestBody. + :type limit: int + """ + self._limit = limit + + @property + def marker(self): + """Gets the marker of this ShowTargetsInDevicePolicyRequestBody. + + **参数说明**:上一次分页查询结果中最后一条记录的ID,在上一次分页查询时由物联网平台返回获得。分页查询时物联网平台是按marker也就是记录ID降序查询的,越新的数据记录ID也会越大。若填写marker,则本次只查询记录ID小于marker的数据记录。若不填写,则从记录ID最大也就是最新的一条数据开始查询。如果需要依次查询所有数据,则每次查询时必须填写上一次查询响应中的marker值。 **取值范围**:长度为24的十六进制字符串,默认值为ffffffffffffffffffffffff。 + + :return: The marker of this ShowTargetsInDevicePolicyRequestBody. + :rtype: str + """ + return self._marker + + @marker.setter + def marker(self, marker): + """Sets the marker of this ShowTargetsInDevicePolicyRequestBody. + + **参数说明**:上一次分页查询结果中最后一条记录的ID,在上一次分页查询时由物联网平台返回获得。分页查询时物联网平台是按marker也就是记录ID降序查询的,越新的数据记录ID也会越大。若填写marker,则本次只查询记录ID小于marker的数据记录。若不填写,则从记录ID最大也就是最新的一条数据开始查询。如果需要依次查询所有数据,则每次查询时必须填写上一次查询响应中的marker值。 **取值范围**:长度为24的十六进制字符串,默认值为ffffffffffffffffffffffff。 + + :param marker: The marker of this ShowTargetsInDevicePolicyRequestBody. + :type marker: str + """ + self._marker = marker + + @property + def offset(self): + """Gets the offset of this ShowTargetsInDevicePolicyRequestBody. + + **参数说明**:表示从marker后偏移offset条记录开始查询。默认为0,取值范围为0-500的整数。当offset为0时,表示从marker后第一条记录开始输出。限制offset最大值是出于API性能考虑,您可以搭配marker使用该参数实现翻页,例如每页50条记录,1-11页内都可以直接使用offset跳转到指定页,但到11页后,由于offset限制为500,您需要使用第11页返回的marker作为下次查询的marker,以实现翻页到12-22页。 **取值范围**:0-500的整数,默认为0。 + + :return: The offset of this ShowTargetsInDevicePolicyRequestBody. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this ShowTargetsInDevicePolicyRequestBody. + + **参数说明**:表示从marker后偏移offset条记录开始查询。默认为0,取值范围为0-500的整数。当offset为0时,表示从marker后第一条记录开始输出。限制offset最大值是出于API性能考虑,您可以搭配marker使用该参数实现翻页,例如每页50条记录,1-11页内都可以直接使用offset跳转到指定页,但到11页后,由于offset限制为500,您需要使用第11页返回的marker作为下次查询的marker,以实现翻页到12-22页。 **取值范围**:0-500的整数,默认为0。 + + :param offset: The offset of this ShowTargetsInDevicePolicyRequestBody. + :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, ShowTargetsInDevicePolicyRequestBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/show_targets_in_device_policy_response.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/show_targets_in_device_policy_response.py new file mode 100644 index 0000000000..cbc364fa07 --- /dev/null +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/show_targets_in_device_policy_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 ShowTargetsInDevicePolicyResponse(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 = { + 'targets': 'list[PolicyTargetBase]', + 'page': 'Page' + } + + attribute_map = { + 'targets': 'targets', + 'page': 'page' + } + + def __init__(self, targets=None, page=None): + """ShowTargetsInDevicePolicyResponse + + The model defined in huaweicloud sdk + + :param targets: 策略绑定信息列表。 + :type targets: list[:class:`huaweicloudsdkiotda.v5.PolicyTargetBase`] + :param page: + :type page: :class:`huaweicloudsdkiotda.v5.Page` + """ + + super(ShowTargetsInDevicePolicyResponse, self).__init__() + + self._targets = None + self._page = None + self.discriminator = None + + if targets is not None: + self.targets = targets + if page is not None: + self.page = page + + @property + def targets(self): + """Gets the targets of this ShowTargetsInDevicePolicyResponse. + + 策略绑定信息列表。 + + :return: The targets of this ShowTargetsInDevicePolicyResponse. + :rtype: list[:class:`huaweicloudsdkiotda.v5.PolicyTargetBase`] + """ + return self._targets + + @targets.setter + def targets(self, targets): + """Sets the targets of this ShowTargetsInDevicePolicyResponse. + + 策略绑定信息列表。 + + :param targets: The targets of this ShowTargetsInDevicePolicyResponse. + :type targets: list[:class:`huaweicloudsdkiotda.v5.PolicyTargetBase`] + """ + self._targets = targets + + @property + def page(self): + """Gets the page of this ShowTargetsInDevicePolicyResponse. + + :return: The page of this ShowTargetsInDevicePolicyResponse. + :rtype: :class:`huaweicloudsdkiotda.v5.Page` + """ + return self._page + + @page.setter + def page(self, page): + """Sets the page of this ShowTargetsInDevicePolicyResponse. + + :param page: The page of this ShowTargetsInDevicePolicyResponse. + :type page: :class:`huaweicloudsdkiotda.v5.Page` + """ + self._page = page + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowTargetsInDevicePolicyResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/statement.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/statement.py new file mode 100644 index 0000000000..c9fc7e0b7f --- /dev/null +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/statement.py @@ -0,0 +1,170 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class Statement: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'effect': 'str', + 'actions': 'list[str]', + 'resources': 'list[str]' + } + + attribute_map = { + 'effect': 'effect', + 'actions': 'actions', + 'resources': 'resources' + } + + def __init__(self, effect=None, actions=None, resources=None): + """Statement + + The model defined in huaweicloud sdk + + :param effect: 指定是允许还是拒绝该操作。既有允许(ALLOW)又有拒绝(DENY)的授权语句时,遵循拒绝(DENY)优先的原则。 - ALLOW:允许。 - DENY:拒绝。 + :type effect: str + :param actions: 用于指定策略允许或拒绝的操作。格式为:服务名:资源:操作。当前支持的操作类型如下: - iotda:devices:publish:设备使用MQTT协议发布消息。 - iotda:devices:subscribe:设备使用MQTT协议订阅消息。 + :type actions: list[str] + :param resources: 用于指定允许或拒绝对其执行操作的资源。格式为:资源类型:资源名称。如设备订阅的资源为:topic:/v1/${devices.deviceId}/test/hello。 **取值范围**:资源列表长度最小为1,最大为10,列表中的资源取值范围:仅支持字母,数字,以及/{}$=+#?*:._-组合。 + :type resources: list[str] + """ + + + + self._effect = None + self._actions = None + self._resources = None + self.discriminator = None + + self.effect = effect + self.actions = actions + self.resources = resources + + @property + def effect(self): + """Gets the effect of this Statement. + + 指定是允许还是拒绝该操作。既有允许(ALLOW)又有拒绝(DENY)的授权语句时,遵循拒绝(DENY)优先的原则。 - ALLOW:允许。 - DENY:拒绝。 + + :return: The effect of this Statement. + :rtype: str + """ + return self._effect + + @effect.setter + def effect(self, effect): + """Sets the effect of this Statement. + + 指定是允许还是拒绝该操作。既有允许(ALLOW)又有拒绝(DENY)的授权语句时,遵循拒绝(DENY)优先的原则。 - ALLOW:允许。 - DENY:拒绝。 + + :param effect: The effect of this Statement. + :type effect: str + """ + self._effect = effect + + @property + def actions(self): + """Gets the actions of this Statement. + + 用于指定策略允许或拒绝的操作。格式为:服务名:资源:操作。当前支持的操作类型如下: - iotda:devices:publish:设备使用MQTT协议发布消息。 - iotda:devices:subscribe:设备使用MQTT协议订阅消息。 + + :return: The actions of this Statement. + :rtype: list[str] + """ + return self._actions + + @actions.setter + def actions(self, actions): + """Sets the actions of this Statement. + + 用于指定策略允许或拒绝的操作。格式为:服务名:资源:操作。当前支持的操作类型如下: - iotda:devices:publish:设备使用MQTT协议发布消息。 - iotda:devices:subscribe:设备使用MQTT协议订阅消息。 + + :param actions: The actions of this Statement. + :type actions: list[str] + """ + self._actions = actions + + @property + def resources(self): + """Gets the resources of this Statement. + + 用于指定允许或拒绝对其执行操作的资源。格式为:资源类型:资源名称。如设备订阅的资源为:topic:/v1/${devices.deviceId}/test/hello。 **取值范围**:资源列表长度最小为1,最大为10,列表中的资源取值范围:仅支持字母,数字,以及/{}$=+#?*:._-组合。 + + :return: The resources of this Statement. + :rtype: list[str] + """ + return self._resources + + @resources.setter + def resources(self, resources): + """Sets the resources of this Statement. + + 用于指定允许或拒绝对其执行操作的资源。格式为:资源类型:资源名称。如设备订阅的资源为:topic:/v1/${devices.deviceId}/test/hello。 **取值范围**:资源列表长度最小为1,最大为10,列表中的资源取值范围:仅支持字母,数字,以及/{}$=+#?*:._-组合。 + + :param resources: The resources of this Statement. + :type resources: list[str] + """ + 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, Statement): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/tag_ref.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/tag_ref.py new file mode 100644 index 0000000000..446277cc8f --- /dev/null +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/tag_ref.py @@ -0,0 +1,144 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class TagRef: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'tag_key': 'object', + 'tag_value': 'object' + } + + attribute_map = { + 'tag_key': 'tag_key', + 'tag_value': 'tag_value' + } + + def __init__(self, tag_key=None, tag_value=None): + """TagRef + + The model defined in huaweicloud sdk + + :param tag_key: **参数说明**:标签键名称,可以是一个明确的静态字符串,也可以是动态的模板参数引用 - 明确的静态字符串:\"myTagKey\"。**取值范围**:长度不超过64,只允许中文、字母、数字、以及_.-等字符的组合 - 参数引用: {\"ref\" : \"iotda::certificate::country\"} + :type tag_key: object + :param tag_value: **参数说明**:标签值,可以是一个明确的静态字符串,也可以是动态的模板参数引用 - 明确的静态字符串:\"myTagValue\"。**取值范围**:长度不超过128,只允许中文、字母、数字、以及_.-等字符的组合。 - 参数引用: {\"ref\" : \"iotda::certificate::country\"} + :type tag_value: object + """ + + + + self._tag_key = None + self._tag_value = None + self.discriminator = None + + if tag_key is not None: + self.tag_key = tag_key + if tag_value is not None: + self.tag_value = tag_value + + @property + def tag_key(self): + """Gets the tag_key of this TagRef. + + **参数说明**:标签键名称,可以是一个明确的静态字符串,也可以是动态的模板参数引用 - 明确的静态字符串:\"myTagKey\"。**取值范围**:长度不超过64,只允许中文、字母、数字、以及_.-等字符的组合 - 参数引用: {\"ref\" : \"iotda::certificate::country\"} + + :return: The tag_key of this TagRef. + :rtype: object + """ + return self._tag_key + + @tag_key.setter + def tag_key(self, tag_key): + """Sets the tag_key of this TagRef. + + **参数说明**:标签键名称,可以是一个明确的静态字符串,也可以是动态的模板参数引用 - 明确的静态字符串:\"myTagKey\"。**取值范围**:长度不超过64,只允许中文、字母、数字、以及_.-等字符的组合 - 参数引用: {\"ref\" : \"iotda::certificate::country\"} + + :param tag_key: The tag_key of this TagRef. + :type tag_key: object + """ + self._tag_key = tag_key + + @property + def tag_value(self): + """Gets the tag_value of this TagRef. + + **参数说明**:标签值,可以是一个明确的静态字符串,也可以是动态的模板参数引用 - 明确的静态字符串:\"myTagValue\"。**取值范围**:长度不超过128,只允许中文、字母、数字、以及_.-等字符的组合。 - 参数引用: {\"ref\" : \"iotda::certificate::country\"} + + :return: The tag_value of this TagRef. + :rtype: object + """ + return self._tag_value + + @tag_value.setter + def tag_value(self, tag_value): + """Sets the tag_value of this TagRef. + + **参数说明**:标签值,可以是一个明确的静态字符串,也可以是动态的模板参数引用 - 明确的静态字符串:\"myTagValue\"。**取值范围**:长度不超过128,只允许中文、字母、数字、以及_.-等字符的组合。 - 参数引用: {\"ref\" : \"iotda::certificate::country\"} + + :param tag_value: The tag_value of this TagRef. + :type tag_value: object + """ + self._tag_value = tag_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, TagRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/template_resource.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/template_resource.py new file mode 100644 index 0000000000..50e47bded3 --- /dev/null +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/template_resource.py @@ -0,0 +1,135 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class TemplateResource: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'device': 'DeviceResource', + 'policy': 'PolicyResource' + } + + attribute_map = { + 'device': 'device', + 'policy': 'policy' + } + + def __init__(self, device=None, policy=None): + """TemplateResource + + The model defined in huaweicloud sdk + + :param device: + :type device: :class:`huaweicloudsdkiotda.v5.DeviceResource` + :param policy: + :type policy: :class:`huaweicloudsdkiotda.v5.PolicyResource` + """ + + + + self._device = None + self._policy = None + self.discriminator = None + + self.device = device + if policy is not None: + self.policy = policy + + @property + def device(self): + """Gets the device of this TemplateResource. + + :return: The device of this TemplateResource. + :rtype: :class:`huaweicloudsdkiotda.v5.DeviceResource` + """ + return self._device + + @device.setter + def device(self, device): + """Sets the device of this TemplateResource. + + :param device: The device of this TemplateResource. + :type device: :class:`huaweicloudsdkiotda.v5.DeviceResource` + """ + self._device = device + + @property + def policy(self): + """Gets the policy of this TemplateResource. + + :return: The policy of this TemplateResource. + :rtype: :class:`huaweicloudsdkiotda.v5.PolicyResource` + """ + return self._policy + + @policy.setter + def policy(self, policy): + """Sets the policy of this TemplateResource. + + :param policy: The policy of this TemplateResource. + :type policy: :class:`huaweicloudsdkiotda.v5.PolicyResource` + """ + self._policy = policy + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, TemplateResource): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/un_bind_device_policy.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/un_bind_device_policy.py new file mode 100644 index 0000000000..a881caffc6 --- /dev/null +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/un_bind_device_policy.py @@ -0,0 +1,142 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UnBindDevicePolicy: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'target_type': 'str', + 'target_ids': 'list[str]' + } + + attribute_map = { + 'target_type': 'target_type', + 'target_ids': 'target_ids' + } + + def __init__(self, target_type=None, target_ids=None): + """UnBindDevicePolicy + + The model defined in huaweicloud sdk + + :param target_type: **参数说明**:解除策略绑定的目标类型。 **取值范围**:device|product|app,device表示设备,product表示产品,app表示整个资源空间。 + :type target_type: str + :param target_ids: 策略解绑的目标ID列表 + :type target_ids: list[str] + """ + + + + self._target_type = None + self._target_ids = None + self.discriminator = None + + self.target_type = target_type + self.target_ids = target_ids + + @property + def target_type(self): + """Gets the target_type of this UnBindDevicePolicy. + + **参数说明**:解除策略绑定的目标类型。 **取值范围**:device|product|app,device表示设备,product表示产品,app表示整个资源空间。 + + :return: The target_type of this UnBindDevicePolicy. + :rtype: str + """ + return self._target_type + + @target_type.setter + def target_type(self, target_type): + """Sets the target_type of this UnBindDevicePolicy. + + **参数说明**:解除策略绑定的目标类型。 **取值范围**:device|product|app,device表示设备,product表示产品,app表示整个资源空间。 + + :param target_type: The target_type of this UnBindDevicePolicy. + :type target_type: str + """ + self._target_type = target_type + + @property + def target_ids(self): + """Gets the target_ids of this UnBindDevicePolicy. + + 策略解绑的目标ID列表 + + :return: The target_ids of this UnBindDevicePolicy. + :rtype: list[str] + """ + return self._target_ids + + @target_ids.setter + def target_ids(self, target_ids): + """Sets the target_ids of this UnBindDevicePolicy. + + 策略解绑的目标ID列表 + + :param target_ids: The target_ids of this UnBindDevicePolicy. + :type target_ids: list[str] + """ + self._target_ids = target_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, UnBindDevicePolicy): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/unbind_device_policy_request.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/unbind_device_policy_request.py new file mode 100644 index 0000000000..3c6d63f626 --- /dev/null +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/unbind_device_policy_request.py @@ -0,0 +1,168 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UnbindDevicePolicyRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'policy_id': 'str', + 'body': 'UnBindDevicePolicy' + } + + attribute_map = { + 'instance_id': 'Instance-Id', + 'policy_id': 'policy_id', + 'body': 'body' + } + + def __init__(self, instance_id=None, policy_id=None, body=None): + """UnbindDevicePolicyRequest + + The model defined in huaweicloud sdk + + :param instance_id: **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0079.html#section1)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0079.html#section1)](tag:hws_hk)。 + :type instance_id: str + :param policy_id: 策略ID + :type policy_id: str + :param body: Body of the UnbindDevicePolicyRequest + :type body: :class:`huaweicloudsdkiotda.v5.UnBindDevicePolicy` + """ + + + + self._instance_id = None + self._policy_id = None + self._body = None + self.discriminator = None + + if instance_id is not None: + self.instance_id = instance_id + self.policy_id = policy_id + if body is not None: + self.body = body + + @property + def instance_id(self): + """Gets the instance_id of this UnbindDevicePolicyRequest. + + **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0079.html#section1)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0079.html#section1)](tag:hws_hk)。 + + :return: The instance_id of this UnbindDevicePolicyRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this UnbindDevicePolicyRequest. + + **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0079.html#section1)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0079.html#section1)](tag:hws_hk)。 + + :param instance_id: The instance_id of this UnbindDevicePolicyRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def policy_id(self): + """Gets the policy_id of this UnbindDevicePolicyRequest. + + 策略ID + + :return: The policy_id of this UnbindDevicePolicyRequest. + :rtype: str + """ + return self._policy_id + + @policy_id.setter + def policy_id(self, policy_id): + """Sets the policy_id of this UnbindDevicePolicyRequest. + + 策略ID + + :param policy_id: The policy_id of this UnbindDevicePolicyRequest. + :type policy_id: str + """ + self._policy_id = policy_id + + @property + def body(self): + """Gets the body of this UnbindDevicePolicyRequest. + + :return: The body of this UnbindDevicePolicyRequest. + :rtype: :class:`huaweicloudsdkiotda.v5.UnBindDevicePolicy` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UnbindDevicePolicyRequest. + + :param body: The body of this UnbindDevicePolicyRequest. + :type body: :class:`huaweicloudsdkiotda.v5.UnBindDevicePolicy` + """ + 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, UnbindDevicePolicyRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/unbind_device_policy_response.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/unbind_device_policy_response.py new file mode 100644 index 0000000000..d191fe75ac --- /dev/null +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/unbind_device_policy_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 UnbindDevicePolicyResponse(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 = { + 'policy_id': 'str', + 'target_type': 'str', + 'success_targets': 'list[str]', + 'failure_targets': 'list[DevicePolicyBindOrUnbindFailureDetail]' + } + + attribute_map = { + 'policy_id': 'policy_id', + 'target_type': 'target_type', + 'success_targets': 'success_targets', + 'failure_targets': 'failure_targets' + } + + def __init__(self, policy_id=None, target_type=None, success_targets=None, failure_targets=None): + """UnbindDevicePolicyResponse + + The model defined in huaweicloud sdk + + :param policy_id: 策略ID。 + :type policy_id: str + :param target_type: **参数说明**:策略的目标类型。 **取值范围**:device|product|app,device表示设备,product表示产品,app表示整个资源空间。 + :type target_type: str + :param success_targets: 成功的目标id列表。 + :type success_targets: list[str] + :param failure_targets: 失败的目标id列表 + :type failure_targets: list[:class:`huaweicloudsdkiotda.v5.DevicePolicyBindOrUnbindFailureDetail`] + """ + + super(UnbindDevicePolicyResponse, self).__init__() + + self._policy_id = None + self._target_type = None + self._success_targets = None + self._failure_targets = None + self.discriminator = None + + if policy_id is not None: + self.policy_id = policy_id + if target_type is not None: + self.target_type = target_type + if success_targets is not None: + self.success_targets = success_targets + if failure_targets is not None: + self.failure_targets = failure_targets + + @property + def policy_id(self): + """Gets the policy_id of this UnbindDevicePolicyResponse. + + 策略ID。 + + :return: The policy_id of this UnbindDevicePolicyResponse. + :rtype: str + """ + return self._policy_id + + @policy_id.setter + def policy_id(self, policy_id): + """Sets the policy_id of this UnbindDevicePolicyResponse. + + 策略ID。 + + :param policy_id: The policy_id of this UnbindDevicePolicyResponse. + :type policy_id: str + """ + self._policy_id = policy_id + + @property + def target_type(self): + """Gets the target_type of this UnbindDevicePolicyResponse. + + **参数说明**:策略的目标类型。 **取值范围**:device|product|app,device表示设备,product表示产品,app表示整个资源空间。 + + :return: The target_type of this UnbindDevicePolicyResponse. + :rtype: str + """ + return self._target_type + + @target_type.setter + def target_type(self, target_type): + """Sets the target_type of this UnbindDevicePolicyResponse. + + **参数说明**:策略的目标类型。 **取值范围**:device|product|app,device表示设备,product表示产品,app表示整个资源空间。 + + :param target_type: The target_type of this UnbindDevicePolicyResponse. + :type target_type: str + """ + self._target_type = target_type + + @property + def success_targets(self): + """Gets the success_targets of this UnbindDevicePolicyResponse. + + 成功的目标id列表。 + + :return: The success_targets of this UnbindDevicePolicyResponse. + :rtype: list[str] + """ + return self._success_targets + + @success_targets.setter + def success_targets(self, success_targets): + """Sets the success_targets of this UnbindDevicePolicyResponse. + + 成功的目标id列表。 + + :param success_targets: The success_targets of this UnbindDevicePolicyResponse. + :type success_targets: list[str] + """ + self._success_targets = success_targets + + @property + def failure_targets(self): + """Gets the failure_targets of this UnbindDevicePolicyResponse. + + 失败的目标id列表 + + :return: The failure_targets of this UnbindDevicePolicyResponse. + :rtype: list[:class:`huaweicloudsdkiotda.v5.DevicePolicyBindOrUnbindFailureDetail`] + """ + return self._failure_targets + + @failure_targets.setter + def failure_targets(self, failure_targets): + """Sets the failure_targets of this UnbindDevicePolicyResponse. + + 失败的目标id列表 + + :param failure_targets: The failure_targets of this UnbindDevicePolicyResponse. + :type failure_targets: list[:class:`huaweicloudsdkiotda.v5.DevicePolicyBindOrUnbindFailureDetail`] + """ + self._failure_targets = failure_targets + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UnbindDevicePolicyResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/update_device_authorizer.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/update_device_authorizer.py new file mode 100644 index 0000000000..909874f6c3 --- /dev/null +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/update_device_authorizer.py @@ -0,0 +1,318 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateDeviceAuthorizer: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'authorizer_name': 'str', + 'func_urn': 'str', + 'signing_enable': 'bool', + 'signing_token': 'str', + 'signing_public_key': 'str', + 'default_authorizer': 'bool', + 'status': 'str', + 'cache_enable': 'bool' + } + + attribute_map = { + 'authorizer_name': 'authorizer_name', + 'func_urn': 'func_urn', + 'signing_enable': 'signing_enable', + 'signing_token': 'signing_token', + 'signing_public_key': 'signing_public_key', + 'default_authorizer': 'default_authorizer', + 'status': 'status', + 'cache_enable': 'cache_enable' + } + + def __init__(self, authorizer_name=None, func_urn=None, signing_enable=None, signing_token=None, signing_public_key=None, default_authorizer=None, status=None, cache_enable=None): + """UpdateDeviceAuthorizer + + The model defined in huaweicloud sdk + + :param authorizer_name: **参数说明**:自定义鉴权器名称,同一租户下的自定义鉴权器名称不能重复。 **取值范围**:长度不超过128,只允许字母、数字、下划线(_)、连接符(-)的组合。 + :type authorizer_name: str + :param func_urn: **参数说明**:函数的URN(Uniform Resource Name),唯一标识函数,即自定义鉴权器对应的处理函数地址。 + :type func_urn: str + :param signing_enable: **参数说明**:是否启动签名校验,启动签名校验后不满足签名要求的鉴权信息将被拒绝,以减少无效的函数调用。推荐用户进行安全的签名校验,默认开启,开启时signing_token与signing_public_key必填。 + :type signing_enable: bool + :param signing_token: **参数说明**:签名校验的Key值,开启签名校验时使用。 **取值范围**:长度不超过128,只允许字母、数字、下划线(_)、连接符(-)的组合。 + :type signing_token: str + :param signing_public_key: **参数说明**:签名校验的公钥,开启签名校验时使用。用于认证设备携带的签名信息是否正确。 + :type signing_public_key: str + :param default_authorizer: **参数说明**:当前自定义鉴权是否为默认的鉴权方式,默认为false,当设置为true时,用户所有支持SNI的设备,如果在鉴权时不指定使用特定的设备鉴权,将统一使用当前鉴权器策略进行鉴权。 + :type default_authorizer: bool + :param status: **参数说明**:是否激活该鉴权方式,默认为激活。 - ACTIVE:该鉴权为激活状态。 - INACTIVE:该鉴权为停用状态。 + :type status: str + :param cache_enable: **参数说明**:是否开启缓存,默认为false,设备为true时,当设备入参(username,clientId,password,以及证书信息,函数urn)不变时,当缓存结果存在时,将直接使用缓存结果,建议在调试时设置为false,生产时设置为true,避免频繁调用函数。 + :type cache_enable: bool + """ + + + + self._authorizer_name = None + self._func_urn = None + self._signing_enable = None + self._signing_token = None + self._signing_public_key = None + self._default_authorizer = None + self._status = None + self._cache_enable = None + self.discriminator = None + + if authorizer_name is not None: + self.authorizer_name = authorizer_name + if func_urn is not None: + self.func_urn = func_urn + if signing_enable is not None: + self.signing_enable = signing_enable + if signing_token is not None: + self.signing_token = signing_token + if signing_public_key is not None: + self.signing_public_key = signing_public_key + if default_authorizer is not None: + self.default_authorizer = default_authorizer + if status is not None: + self.status = status + if cache_enable is not None: + self.cache_enable = cache_enable + + @property + def authorizer_name(self): + """Gets the authorizer_name of this UpdateDeviceAuthorizer. + + **参数说明**:自定义鉴权器名称,同一租户下的自定义鉴权器名称不能重复。 **取值范围**:长度不超过128,只允许字母、数字、下划线(_)、连接符(-)的组合。 + + :return: The authorizer_name of this UpdateDeviceAuthorizer. + :rtype: str + """ + return self._authorizer_name + + @authorizer_name.setter + def authorizer_name(self, authorizer_name): + """Sets the authorizer_name of this UpdateDeviceAuthorizer. + + **参数说明**:自定义鉴权器名称,同一租户下的自定义鉴权器名称不能重复。 **取值范围**:长度不超过128,只允许字母、数字、下划线(_)、连接符(-)的组合。 + + :param authorizer_name: The authorizer_name of this UpdateDeviceAuthorizer. + :type authorizer_name: str + """ + self._authorizer_name = authorizer_name + + @property + def func_urn(self): + """Gets the func_urn of this UpdateDeviceAuthorizer. + + **参数说明**:函数的URN(Uniform Resource Name),唯一标识函数,即自定义鉴权器对应的处理函数地址。 + + :return: The func_urn of this UpdateDeviceAuthorizer. + :rtype: str + """ + return self._func_urn + + @func_urn.setter + def func_urn(self, func_urn): + """Sets the func_urn of this UpdateDeviceAuthorizer. + + **参数说明**:函数的URN(Uniform Resource Name),唯一标识函数,即自定义鉴权器对应的处理函数地址。 + + :param func_urn: The func_urn of this UpdateDeviceAuthorizer. + :type func_urn: str + """ + self._func_urn = func_urn + + @property + def signing_enable(self): + """Gets the signing_enable of this UpdateDeviceAuthorizer. + + **参数说明**:是否启动签名校验,启动签名校验后不满足签名要求的鉴权信息将被拒绝,以减少无效的函数调用。推荐用户进行安全的签名校验,默认开启,开启时signing_token与signing_public_key必填。 + + :return: The signing_enable of this UpdateDeviceAuthorizer. + :rtype: bool + """ + return self._signing_enable + + @signing_enable.setter + def signing_enable(self, signing_enable): + """Sets the signing_enable of this UpdateDeviceAuthorizer. + + **参数说明**:是否启动签名校验,启动签名校验后不满足签名要求的鉴权信息将被拒绝,以减少无效的函数调用。推荐用户进行安全的签名校验,默认开启,开启时signing_token与signing_public_key必填。 + + :param signing_enable: The signing_enable of this UpdateDeviceAuthorizer. + :type signing_enable: bool + """ + self._signing_enable = signing_enable + + @property + def signing_token(self): + """Gets the signing_token of this UpdateDeviceAuthorizer. + + **参数说明**:签名校验的Key值,开启签名校验时使用。 **取值范围**:长度不超过128,只允许字母、数字、下划线(_)、连接符(-)的组合。 + + :return: The signing_token of this UpdateDeviceAuthorizer. + :rtype: str + """ + return self._signing_token + + @signing_token.setter + def signing_token(self, signing_token): + """Sets the signing_token of this UpdateDeviceAuthorizer. + + **参数说明**:签名校验的Key值,开启签名校验时使用。 **取值范围**:长度不超过128,只允许字母、数字、下划线(_)、连接符(-)的组合。 + + :param signing_token: The signing_token of this UpdateDeviceAuthorizer. + :type signing_token: str + """ + self._signing_token = signing_token + + @property + def signing_public_key(self): + """Gets the signing_public_key of this UpdateDeviceAuthorizer. + + **参数说明**:签名校验的公钥,开启签名校验时使用。用于认证设备携带的签名信息是否正确。 + + :return: The signing_public_key of this UpdateDeviceAuthorizer. + :rtype: str + """ + return self._signing_public_key + + @signing_public_key.setter + def signing_public_key(self, signing_public_key): + """Sets the signing_public_key of this UpdateDeviceAuthorizer. + + **参数说明**:签名校验的公钥,开启签名校验时使用。用于认证设备携带的签名信息是否正确。 + + :param signing_public_key: The signing_public_key of this UpdateDeviceAuthorizer. + :type signing_public_key: str + """ + self._signing_public_key = signing_public_key + + @property + def default_authorizer(self): + """Gets the default_authorizer of this UpdateDeviceAuthorizer. + + **参数说明**:当前自定义鉴权是否为默认的鉴权方式,默认为false,当设置为true时,用户所有支持SNI的设备,如果在鉴权时不指定使用特定的设备鉴权,将统一使用当前鉴权器策略进行鉴权。 + + :return: The default_authorizer of this UpdateDeviceAuthorizer. + :rtype: bool + """ + return self._default_authorizer + + @default_authorizer.setter + def default_authorizer(self, default_authorizer): + """Sets the default_authorizer of this UpdateDeviceAuthorizer. + + **参数说明**:当前自定义鉴权是否为默认的鉴权方式,默认为false,当设置为true时,用户所有支持SNI的设备,如果在鉴权时不指定使用特定的设备鉴权,将统一使用当前鉴权器策略进行鉴权。 + + :param default_authorizer: The default_authorizer of this UpdateDeviceAuthorizer. + :type default_authorizer: bool + """ + self._default_authorizer = default_authorizer + + @property + def status(self): + """Gets the status of this UpdateDeviceAuthorizer. + + **参数说明**:是否激活该鉴权方式,默认为激活。 - ACTIVE:该鉴权为激活状态。 - INACTIVE:该鉴权为停用状态。 + + :return: The status of this UpdateDeviceAuthorizer. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this UpdateDeviceAuthorizer. + + **参数说明**:是否激活该鉴权方式,默认为激活。 - ACTIVE:该鉴权为激活状态。 - INACTIVE:该鉴权为停用状态。 + + :param status: The status of this UpdateDeviceAuthorizer. + :type status: str + """ + self._status = status + + @property + def cache_enable(self): + """Gets the cache_enable of this UpdateDeviceAuthorizer. + + **参数说明**:是否开启缓存,默认为false,设备为true时,当设备入参(username,clientId,password,以及证书信息,函数urn)不变时,当缓存结果存在时,将直接使用缓存结果,建议在调试时设置为false,生产时设置为true,避免频繁调用函数。 + + :return: The cache_enable of this UpdateDeviceAuthorizer. + :rtype: bool + """ + return self._cache_enable + + @cache_enable.setter + def cache_enable(self, cache_enable): + """Sets the cache_enable of this UpdateDeviceAuthorizer. + + **参数说明**:是否开启缓存,默认为false,设备为true时,当设备入参(username,clientId,password,以及证书信息,函数urn)不变时,当缓存结果存在时,将直接使用缓存结果,建议在调试时设置为false,生产时设置为true,避免频繁调用函数。 + + :param cache_enable: The cache_enable of this UpdateDeviceAuthorizer. + :type cache_enable: bool + """ + self._cache_enable = cache_enable + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateDeviceAuthorizer): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/update_device_authorizer_request.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/update_device_authorizer_request.py new file mode 100644 index 0000000000..ea905456b3 --- /dev/null +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/update_device_authorizer_request.py @@ -0,0 +1,168 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateDeviceAuthorizerRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'authorizer_id': 'str', + 'body': 'UpdateDeviceAuthorizer' + } + + attribute_map = { + 'instance_id': 'Instance-Id', + 'authorizer_id': 'authorizer_id', + 'body': 'body' + } + + def __init__(self, instance_id=None, authorizer_id=None, body=None): + """UpdateDeviceAuthorizerRequest + + The model defined in huaweicloud sdk + + :param instance_id: **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0079.html#section1)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0079.html#section1)](tag:hws_hk)。 + :type instance_id: str + :param authorizer_id: 自定义鉴权ID + :type authorizer_id: str + :param body: Body of the UpdateDeviceAuthorizerRequest + :type body: :class:`huaweicloudsdkiotda.v5.UpdateDeviceAuthorizer` + """ + + + + self._instance_id = None + self._authorizer_id = None + self._body = None + self.discriminator = None + + if instance_id is not None: + self.instance_id = instance_id + self.authorizer_id = authorizer_id + if body is not None: + self.body = body + + @property + def instance_id(self): + """Gets the instance_id of this UpdateDeviceAuthorizerRequest. + + **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0079.html#section1)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0079.html#section1)](tag:hws_hk)。 + + :return: The instance_id of this UpdateDeviceAuthorizerRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this UpdateDeviceAuthorizerRequest. + + **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0079.html#section1)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0079.html#section1)](tag:hws_hk)。 + + :param instance_id: The instance_id of this UpdateDeviceAuthorizerRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def authorizer_id(self): + """Gets the authorizer_id of this UpdateDeviceAuthorizerRequest. + + 自定义鉴权ID + + :return: The authorizer_id of this UpdateDeviceAuthorizerRequest. + :rtype: str + """ + return self._authorizer_id + + @authorizer_id.setter + def authorizer_id(self, authorizer_id): + """Sets the authorizer_id of this UpdateDeviceAuthorizerRequest. + + 自定义鉴权ID + + :param authorizer_id: The authorizer_id of this UpdateDeviceAuthorizerRequest. + :type authorizer_id: str + """ + self._authorizer_id = authorizer_id + + @property + def body(self): + """Gets the body of this UpdateDeviceAuthorizerRequest. + + :return: The body of this UpdateDeviceAuthorizerRequest. + :rtype: :class:`huaweicloudsdkiotda.v5.UpdateDeviceAuthorizer` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdateDeviceAuthorizerRequest. + + :param body: The body of this UpdateDeviceAuthorizerRequest. + :type body: :class:`huaweicloudsdkiotda.v5.UpdateDeviceAuthorizer` + """ + 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, UpdateDeviceAuthorizerRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/update_device_authorizer_response.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/update_device_authorizer_response.py new file mode 100644 index 0000000000..af8728b584 --- /dev/null +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/update_device_authorizer_response.py @@ -0,0 +1,435 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateDeviceAuthorizerResponse(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 = { + 'authorizer_id': 'str', + 'authorizer_name': 'str', + 'func_name': 'str', + 'func_urn': 'str', + 'signing_enable': 'bool', + 'signing_token': 'str', + 'signing_public_key': 'str', + 'default_authorizer': 'bool', + 'status': 'str', + 'cache_enable': 'bool', + 'create_time': 'str', + 'update_time': 'str' + } + + attribute_map = { + 'authorizer_id': 'authorizer_id', + 'authorizer_name': 'authorizer_name', + 'func_name': 'func_name', + 'func_urn': 'func_urn', + 'signing_enable': 'signing_enable', + 'signing_token': 'signing_token', + 'signing_public_key': 'signing_public_key', + 'default_authorizer': 'default_authorizer', + 'status': 'status', + 'cache_enable': 'cache_enable', + 'create_time': 'create_time', + 'update_time': 'update_time' + } + + def __init__(self, authorizer_id=None, authorizer_name=None, func_name=None, func_urn=None, signing_enable=None, signing_token=None, signing_public_key=None, default_authorizer=None, status=None, cache_enable=None, create_time=None, update_time=None): + """UpdateDeviceAuthorizerResponse + + The model defined in huaweicloud sdk + + :param authorizer_id: **参数说明**:自定义鉴权ID。 + :type authorizer_id: str + :param authorizer_name: **参数说明**:自定义鉴权器名称,同一租户下的自定义鉴权器名称不能重复。 **取值范围**:长度不超过128,只允许字母、数字、下划线(_)、连接符(-)的组合。 + :type authorizer_name: str + :param func_name: **参数说明**:函数名称。 + :type func_name: str + :param func_urn: **参数说明**:函数的URN(Uniform Resource Name),唯一标识函数,即自定义鉴权器对应的处理函数地址。 + :type func_urn: str + :param signing_enable: **参数说明**:是否启动签名校验,启动签名校验后不满足签名要求的鉴权信息将被拒绝,以减少无效的函数调用。推荐用户进行安全的签名校验,默认开启。 + :type signing_enable: bool + :param signing_token: **参数说明**:签名校验的Key值,开启签名校验时使用。 **取值范围**:长度不超过128,只允许字母、数字、下划线(_)、连接符(-)的组合。 + :type signing_token: str + :param signing_public_key: **参数说明**:签名校验的公钥,开启签名校验时使用。用于认证设备携带的签名信息是否正确。 + :type signing_public_key: str + :param default_authorizer: **参数说明**:是否为默认的鉴权方式,默认为false。 + :type default_authorizer: bool + :param status: **参数说明**:是否激活该鉴权方式 - ACTIVE:该鉴权为激活状态。 - INACTIVE:该鉴权为停用状态。 + :type status: str + :param cache_enable: **参数说明**:是否开启缓存,默认为false,设备为true时,当设备入参(username,clientId,password,以及证书信息,函数urn)不变时,当缓存结果存在时,将直接使用缓存结果,建议在调试时设置为false,生产时设置为true,避免频繁调用函数。 + :type cache_enable: bool + :param create_time: 在物联网平台进行自定义鉴权相关操作的时间。格式:yyyyMMdd'T'HHmmss'Z',如:20151212T121212Z。 + :type create_time: str + :param update_time: 在物联网平台更新自定义鉴权相关操作的时间。格式:yyyyMMdd'T'HHmmss'Z',如:20151212T121212Z。 + :type update_time: str + """ + + super(UpdateDeviceAuthorizerResponse, self).__init__() + + self._authorizer_id = None + self._authorizer_name = None + self._func_name = None + self._func_urn = None + self._signing_enable = None + self._signing_token = None + self._signing_public_key = None + self._default_authorizer = None + self._status = None + self._cache_enable = None + self._create_time = None + self._update_time = None + self.discriminator = None + + if authorizer_id is not None: + self.authorizer_id = authorizer_id + if authorizer_name is not None: + self.authorizer_name = authorizer_name + if func_name is not None: + self.func_name = func_name + if func_urn is not None: + self.func_urn = func_urn + if signing_enable is not None: + self.signing_enable = signing_enable + if signing_token is not None: + self.signing_token = signing_token + if signing_public_key is not None: + self.signing_public_key = signing_public_key + if default_authorizer is not None: + self.default_authorizer = default_authorizer + if status is not None: + self.status = status + if cache_enable is not None: + self.cache_enable = cache_enable + if create_time is not None: + self.create_time = create_time + if update_time is not None: + self.update_time = update_time + + @property + def authorizer_id(self): + """Gets the authorizer_id of this UpdateDeviceAuthorizerResponse. + + **参数说明**:自定义鉴权ID。 + + :return: The authorizer_id of this UpdateDeviceAuthorizerResponse. + :rtype: str + """ + return self._authorizer_id + + @authorizer_id.setter + def authorizer_id(self, authorizer_id): + """Sets the authorizer_id of this UpdateDeviceAuthorizerResponse. + + **参数说明**:自定义鉴权ID。 + + :param authorizer_id: The authorizer_id of this UpdateDeviceAuthorizerResponse. + :type authorizer_id: str + """ + self._authorizer_id = authorizer_id + + @property + def authorizer_name(self): + """Gets the authorizer_name of this UpdateDeviceAuthorizerResponse. + + **参数说明**:自定义鉴权器名称,同一租户下的自定义鉴权器名称不能重复。 **取值范围**:长度不超过128,只允许字母、数字、下划线(_)、连接符(-)的组合。 + + :return: The authorizer_name of this UpdateDeviceAuthorizerResponse. + :rtype: str + """ + return self._authorizer_name + + @authorizer_name.setter + def authorizer_name(self, authorizer_name): + """Sets the authorizer_name of this UpdateDeviceAuthorizerResponse. + + **参数说明**:自定义鉴权器名称,同一租户下的自定义鉴权器名称不能重复。 **取值范围**:长度不超过128,只允许字母、数字、下划线(_)、连接符(-)的组合。 + + :param authorizer_name: The authorizer_name of this UpdateDeviceAuthorizerResponse. + :type authorizer_name: str + """ + self._authorizer_name = authorizer_name + + @property + def func_name(self): + """Gets the func_name of this UpdateDeviceAuthorizerResponse. + + **参数说明**:函数名称。 + + :return: The func_name of this UpdateDeviceAuthorizerResponse. + :rtype: str + """ + return self._func_name + + @func_name.setter + def func_name(self, func_name): + """Sets the func_name of this UpdateDeviceAuthorizerResponse. + + **参数说明**:函数名称。 + + :param func_name: The func_name of this UpdateDeviceAuthorizerResponse. + :type func_name: str + """ + self._func_name = func_name + + @property + def func_urn(self): + """Gets the func_urn of this UpdateDeviceAuthorizerResponse. + + **参数说明**:函数的URN(Uniform Resource Name),唯一标识函数,即自定义鉴权器对应的处理函数地址。 + + :return: The func_urn of this UpdateDeviceAuthorizerResponse. + :rtype: str + """ + return self._func_urn + + @func_urn.setter + def func_urn(self, func_urn): + """Sets the func_urn of this UpdateDeviceAuthorizerResponse. + + **参数说明**:函数的URN(Uniform Resource Name),唯一标识函数,即自定义鉴权器对应的处理函数地址。 + + :param func_urn: The func_urn of this UpdateDeviceAuthorizerResponse. + :type func_urn: str + """ + self._func_urn = func_urn + + @property + def signing_enable(self): + """Gets the signing_enable of this UpdateDeviceAuthorizerResponse. + + **参数说明**:是否启动签名校验,启动签名校验后不满足签名要求的鉴权信息将被拒绝,以减少无效的函数调用。推荐用户进行安全的签名校验,默认开启。 + + :return: The signing_enable of this UpdateDeviceAuthorizerResponse. + :rtype: bool + """ + return self._signing_enable + + @signing_enable.setter + def signing_enable(self, signing_enable): + """Sets the signing_enable of this UpdateDeviceAuthorizerResponse. + + **参数说明**:是否启动签名校验,启动签名校验后不满足签名要求的鉴权信息将被拒绝,以减少无效的函数调用。推荐用户进行安全的签名校验,默认开启。 + + :param signing_enable: The signing_enable of this UpdateDeviceAuthorizerResponse. + :type signing_enable: bool + """ + self._signing_enable = signing_enable + + @property + def signing_token(self): + """Gets the signing_token of this UpdateDeviceAuthorizerResponse. + + **参数说明**:签名校验的Key值,开启签名校验时使用。 **取值范围**:长度不超过128,只允许字母、数字、下划线(_)、连接符(-)的组合。 + + :return: The signing_token of this UpdateDeviceAuthorizerResponse. + :rtype: str + """ + return self._signing_token + + @signing_token.setter + def signing_token(self, signing_token): + """Sets the signing_token of this UpdateDeviceAuthorizerResponse. + + **参数说明**:签名校验的Key值,开启签名校验时使用。 **取值范围**:长度不超过128,只允许字母、数字、下划线(_)、连接符(-)的组合。 + + :param signing_token: The signing_token of this UpdateDeviceAuthorizerResponse. + :type signing_token: str + """ + self._signing_token = signing_token + + @property + def signing_public_key(self): + """Gets the signing_public_key of this UpdateDeviceAuthorizerResponse. + + **参数说明**:签名校验的公钥,开启签名校验时使用。用于认证设备携带的签名信息是否正确。 + + :return: The signing_public_key of this UpdateDeviceAuthorizerResponse. + :rtype: str + """ + return self._signing_public_key + + @signing_public_key.setter + def signing_public_key(self, signing_public_key): + """Sets the signing_public_key of this UpdateDeviceAuthorizerResponse. + + **参数说明**:签名校验的公钥,开启签名校验时使用。用于认证设备携带的签名信息是否正确。 + + :param signing_public_key: The signing_public_key of this UpdateDeviceAuthorizerResponse. + :type signing_public_key: str + """ + self._signing_public_key = signing_public_key + + @property + def default_authorizer(self): + """Gets the default_authorizer of this UpdateDeviceAuthorizerResponse. + + **参数说明**:是否为默认的鉴权方式,默认为false。 + + :return: The default_authorizer of this UpdateDeviceAuthorizerResponse. + :rtype: bool + """ + return self._default_authorizer + + @default_authorizer.setter + def default_authorizer(self, default_authorizer): + """Sets the default_authorizer of this UpdateDeviceAuthorizerResponse. + + **参数说明**:是否为默认的鉴权方式,默认为false。 + + :param default_authorizer: The default_authorizer of this UpdateDeviceAuthorizerResponse. + :type default_authorizer: bool + """ + self._default_authorizer = default_authorizer + + @property + def status(self): + """Gets the status of this UpdateDeviceAuthorizerResponse. + + **参数说明**:是否激活该鉴权方式 - ACTIVE:该鉴权为激活状态。 - INACTIVE:该鉴权为停用状态。 + + :return: The status of this UpdateDeviceAuthorizerResponse. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this UpdateDeviceAuthorizerResponse. + + **参数说明**:是否激活该鉴权方式 - ACTIVE:该鉴权为激活状态。 - INACTIVE:该鉴权为停用状态。 + + :param status: The status of this UpdateDeviceAuthorizerResponse. + :type status: str + """ + self._status = status + + @property + def cache_enable(self): + """Gets the cache_enable of this UpdateDeviceAuthorizerResponse. + + **参数说明**:是否开启缓存,默认为false,设备为true时,当设备入参(username,clientId,password,以及证书信息,函数urn)不变时,当缓存结果存在时,将直接使用缓存结果,建议在调试时设置为false,生产时设置为true,避免频繁调用函数。 + + :return: The cache_enable of this UpdateDeviceAuthorizerResponse. + :rtype: bool + """ + return self._cache_enable + + @cache_enable.setter + def cache_enable(self, cache_enable): + """Sets the cache_enable of this UpdateDeviceAuthorizerResponse. + + **参数说明**:是否开启缓存,默认为false,设备为true时,当设备入参(username,clientId,password,以及证书信息,函数urn)不变时,当缓存结果存在时,将直接使用缓存结果,建议在调试时设置为false,生产时设置为true,避免频繁调用函数。 + + :param cache_enable: The cache_enable of this UpdateDeviceAuthorizerResponse. + :type cache_enable: bool + """ + self._cache_enable = cache_enable + + @property + def create_time(self): + """Gets the create_time of this UpdateDeviceAuthorizerResponse. + + 在物联网平台进行自定义鉴权相关操作的时间。格式:yyyyMMdd'T'HHmmss'Z',如:20151212T121212Z。 + + :return: The create_time of this UpdateDeviceAuthorizerResponse. + :rtype: str + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this UpdateDeviceAuthorizerResponse. + + 在物联网平台进行自定义鉴权相关操作的时间。格式:yyyyMMdd'T'HHmmss'Z',如:20151212T121212Z。 + + :param create_time: The create_time of this UpdateDeviceAuthorizerResponse. + :type create_time: str + """ + self._create_time = create_time + + @property + def update_time(self): + """Gets the update_time of this UpdateDeviceAuthorizerResponse. + + 在物联网平台更新自定义鉴权相关操作的时间。格式:yyyyMMdd'T'HHmmss'Z',如:20151212T121212Z。 + + :return: The update_time of this UpdateDeviceAuthorizerResponse. + :rtype: str + """ + return self._update_time + + @update_time.setter + def update_time(self, update_time): + """Sets the update_time of this UpdateDeviceAuthorizerResponse. + + 在物联网平台更新自定义鉴权相关操作的时间。格式:yyyyMMdd'T'HHmmss'Z',如:20151212T121212Z。 + + :param update_time: The update_time of this UpdateDeviceAuthorizerResponse. + :type update_time: str + """ + self._update_time = update_time + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateDeviceAuthorizerResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/update_device_policy.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/update_device_policy.py new file mode 100644 index 0000000000..b37d92f55e --- /dev/null +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/update_device_policy.py @@ -0,0 +1,144 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateDevicePolicy: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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_name': 'str', + 'statement': 'list[Statement]' + } + + attribute_map = { + 'policy_name': 'policy_name', + 'statement': 'statement' + } + + def __init__(self, policy_name=None, statement=None): + """UpdateDevicePolicy + + The model defined in huaweicloud sdk + + :param policy_name: **参数说明**:策略名称。 **取值范围**:长度不超过128,只允许字母、数字、下划线(_)、连接符(-)的组合。 + :type policy_name: str + :param statement: **参数说明**:策略文档。 + :type statement: list[:class:`huaweicloudsdkiotda.v5.Statement`] + """ + + + + self._policy_name = None + self._statement = None + self.discriminator = None + + if policy_name is not None: + self.policy_name = policy_name + if statement is not None: + self.statement = statement + + @property + def policy_name(self): + """Gets the policy_name of this UpdateDevicePolicy. + + **参数说明**:策略名称。 **取值范围**:长度不超过128,只允许字母、数字、下划线(_)、连接符(-)的组合。 + + :return: The policy_name of this UpdateDevicePolicy. + :rtype: str + """ + return self._policy_name + + @policy_name.setter + def policy_name(self, policy_name): + """Sets the policy_name of this UpdateDevicePolicy. + + **参数说明**:策略名称。 **取值范围**:长度不超过128,只允许字母、数字、下划线(_)、连接符(-)的组合。 + + :param policy_name: The policy_name of this UpdateDevicePolicy. + :type policy_name: str + """ + self._policy_name = policy_name + + @property + def statement(self): + """Gets the statement of this UpdateDevicePolicy. + + **参数说明**:策略文档。 + + :return: The statement of this UpdateDevicePolicy. + :rtype: list[:class:`huaweicloudsdkiotda.v5.Statement`] + """ + return self._statement + + @statement.setter + def statement(self, statement): + """Sets the statement of this UpdateDevicePolicy. + + **参数说明**:策略文档。 + + :param statement: The statement of this UpdateDevicePolicy. + :type statement: list[:class:`huaweicloudsdkiotda.v5.Statement`] + """ + self._statement = statement + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateDevicePolicy): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/update_device_policy_request.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/update_device_policy_request.py new file mode 100644 index 0000000000..68494e8f68 --- /dev/null +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/update_device_policy_request.py @@ -0,0 +1,168 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateDevicePolicyRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'policy_id': 'str', + 'body': 'UpdateDevicePolicy' + } + + attribute_map = { + 'instance_id': 'Instance-Id', + 'policy_id': 'policy_id', + 'body': 'body' + } + + def __init__(self, instance_id=None, policy_id=None, body=None): + """UpdateDevicePolicyRequest + + The model defined in huaweicloud sdk + + :param instance_id: **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0079.html#section1)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0079.html#section1)](tag:hws_hk)。 + :type instance_id: str + :param policy_id: 策略ID + :type policy_id: str + :param body: Body of the UpdateDevicePolicyRequest + :type body: :class:`huaweicloudsdkiotda.v5.UpdateDevicePolicy` + """ + + + + self._instance_id = None + self._policy_id = None + self._body = None + self.discriminator = None + + if instance_id is not None: + self.instance_id = instance_id + self.policy_id = policy_id + if body is not None: + self.body = body + + @property + def instance_id(self): + """Gets the instance_id of this UpdateDevicePolicyRequest. + + **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0079.html#section1)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0079.html#section1)](tag:hws_hk)。 + + :return: The instance_id of this UpdateDevicePolicyRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this UpdateDevicePolicyRequest. + + **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0079.html#section1)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0079.html#section1)](tag:hws_hk)。 + + :param instance_id: The instance_id of this UpdateDevicePolicyRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def policy_id(self): + """Gets the policy_id of this UpdateDevicePolicyRequest. + + 策略ID + + :return: The policy_id of this UpdateDevicePolicyRequest. + :rtype: str + """ + return self._policy_id + + @policy_id.setter + def policy_id(self, policy_id): + """Sets the policy_id of this UpdateDevicePolicyRequest. + + 策略ID + + :param policy_id: The policy_id of this UpdateDevicePolicyRequest. + :type policy_id: str + """ + self._policy_id = policy_id + + @property + def body(self): + """Gets the body of this UpdateDevicePolicyRequest. + + :return: The body of this UpdateDevicePolicyRequest. + :rtype: :class:`huaweicloudsdkiotda.v5.UpdateDevicePolicy` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdateDevicePolicyRequest. + + :param body: The body of this UpdateDevicePolicyRequest. + :type body: :class:`huaweicloudsdkiotda.v5.UpdateDevicePolicy` + """ + 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, UpdateDevicePolicyRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/update_device_policy_response.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/update_device_policy_response.py new file mode 100644 index 0000000000..d02bbdcbf3 --- /dev/null +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/update_device_policy_response.py @@ -0,0 +1,261 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateDevicePolicyResponse(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 = { + 'app_id': 'str', + 'policy_id': 'str', + 'policy_name': 'str', + 'statement': 'list[Statement]', + 'create_time': 'str', + 'update_time': 'str' + } + + attribute_map = { + 'app_id': 'app_id', + 'policy_id': 'policy_id', + 'policy_name': 'policy_name', + 'statement': 'statement', + 'create_time': 'create_time', + 'update_time': 'update_time' + } + + def __init__(self, app_id=None, policy_id=None, policy_name=None, statement=None, create_time=None, update_time=None): + """UpdateDevicePolicyResponse + + The model defined in huaweicloud sdk + + :param app_id: **参数说明**:资源空间ID。 + :type app_id: str + :param policy_id: 策略ID。 + :type policy_id: str + :param policy_name: 策略名称。 + :type policy_name: str + :param statement: 策略文档。 + :type statement: list[:class:`huaweicloudsdkiotda.v5.Statement`] + :param create_time: 在物联网平台创建策略的时间。格式:yyyyMMdd'T'HHmmss'Z',如20151212T121212Z。 + :type create_time: str + :param update_time: 在物联网平台更新策略的时间。格式:yyyyMMdd'T'HHmmss'Z',如20151212T121212Z。 + :type update_time: str + """ + + super(UpdateDevicePolicyResponse, self).__init__() + + self._app_id = None + self._policy_id = None + self._policy_name = None + self._statement = None + self._create_time = None + self._update_time = None + self.discriminator = None + + if app_id is not None: + self.app_id = app_id + if policy_id is not None: + self.policy_id = policy_id + if policy_name is not None: + self.policy_name = policy_name + if statement is not None: + self.statement = statement + if create_time is not None: + self.create_time = create_time + if update_time is not None: + self.update_time = update_time + + @property + def app_id(self): + """Gets the app_id of this UpdateDevicePolicyResponse. + + **参数说明**:资源空间ID。 + + :return: The app_id of this UpdateDevicePolicyResponse. + :rtype: str + """ + return self._app_id + + @app_id.setter + def app_id(self, app_id): + """Sets the app_id of this UpdateDevicePolicyResponse. + + **参数说明**:资源空间ID。 + + :param app_id: The app_id of this UpdateDevicePolicyResponse. + :type app_id: str + """ + self._app_id = app_id + + @property + def policy_id(self): + """Gets the policy_id of this UpdateDevicePolicyResponse. + + 策略ID。 + + :return: The policy_id of this UpdateDevicePolicyResponse. + :rtype: str + """ + return self._policy_id + + @policy_id.setter + def policy_id(self, policy_id): + """Sets the policy_id of this UpdateDevicePolicyResponse. + + 策略ID。 + + :param policy_id: The policy_id of this UpdateDevicePolicyResponse. + :type policy_id: str + """ + self._policy_id = policy_id + + @property + def policy_name(self): + """Gets the policy_name of this UpdateDevicePolicyResponse. + + 策略名称。 + + :return: The policy_name of this UpdateDevicePolicyResponse. + :rtype: str + """ + return self._policy_name + + @policy_name.setter + def policy_name(self, policy_name): + """Sets the policy_name of this UpdateDevicePolicyResponse. + + 策略名称。 + + :param policy_name: The policy_name of this UpdateDevicePolicyResponse. + :type policy_name: str + """ + self._policy_name = policy_name + + @property + def statement(self): + """Gets the statement of this UpdateDevicePolicyResponse. + + 策略文档。 + + :return: The statement of this UpdateDevicePolicyResponse. + :rtype: list[:class:`huaweicloudsdkiotda.v5.Statement`] + """ + return self._statement + + @statement.setter + def statement(self, statement): + """Sets the statement of this UpdateDevicePolicyResponse. + + 策略文档。 + + :param statement: The statement of this UpdateDevicePolicyResponse. + :type statement: list[:class:`huaweicloudsdkiotda.v5.Statement`] + """ + self._statement = statement + + @property + def create_time(self): + """Gets the create_time of this UpdateDevicePolicyResponse. + + 在物联网平台创建策略的时间。格式:yyyyMMdd'T'HHmmss'Z',如20151212T121212Z。 + + :return: The create_time of this UpdateDevicePolicyResponse. + :rtype: str + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this UpdateDevicePolicyResponse. + + 在物联网平台创建策略的时间。格式:yyyyMMdd'T'HHmmss'Z',如20151212T121212Z。 + + :param create_time: The create_time of this UpdateDevicePolicyResponse. + :type create_time: str + """ + self._create_time = create_time + + @property + def update_time(self): + """Gets the update_time of this UpdateDevicePolicyResponse. + + 在物联网平台更新策略的时间。格式:yyyyMMdd'T'HHmmss'Z',如20151212T121212Z。 + + :return: The update_time of this UpdateDevicePolicyResponse. + :rtype: str + """ + return self._update_time + + @update_time.setter + def update_time(self, update_time): + """Sets the update_time of this UpdateDevicePolicyResponse. + + 在物联网平台更新策略的时间。格式:yyyyMMdd'T'HHmmss'Z',如20151212T121212Z。 + + :param update_time: The update_time of this UpdateDevicePolicyResponse. + :type update_time: str + """ + self._update_time = update_time + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateDevicePolicyResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/update_provisioning_template.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/update_provisioning_template.py new file mode 100644 index 0000000000..577c84e959 --- /dev/null +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/update_provisioning_template.py @@ -0,0 +1,140 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateProvisioningTemplate: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'template_body': 'ProvisioningTemplateBody' + } + + attribute_map = { + 'description': 'description', + 'template_body': 'template_body' + } + + def __init__(self, description=None, template_body=None): + """UpdateProvisioningTemplate + + The model defined in huaweicloud sdk + + :param description: **参数说明**:预调配模板的描述信息。 **取值范围**:长度不超过2048,只允许中文、字母、数字、以及_?'#().,&%@!-等字符的组合 + :type description: str + :param template_body: + :type template_body: :class:`huaweicloudsdkiotda.v5.ProvisioningTemplateBody` + """ + + + + self._description = None + self._template_body = None + self.discriminator = None + + if description is not None: + self.description = description + if template_body is not None: + self.template_body = template_body + + @property + def description(self): + """Gets the description of this UpdateProvisioningTemplate. + + **参数说明**:预调配模板的描述信息。 **取值范围**:长度不超过2048,只允许中文、字母、数字、以及_?'#().,&%@!-等字符的组合 + + :return: The description of this UpdateProvisioningTemplate. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this UpdateProvisioningTemplate. + + **参数说明**:预调配模板的描述信息。 **取值范围**:长度不超过2048,只允许中文、字母、数字、以及_?'#().,&%@!-等字符的组合 + + :param description: The description of this UpdateProvisioningTemplate. + :type description: str + """ + self._description = description + + @property + def template_body(self): + """Gets the template_body of this UpdateProvisioningTemplate. + + :return: The template_body of this UpdateProvisioningTemplate. + :rtype: :class:`huaweicloudsdkiotda.v5.ProvisioningTemplateBody` + """ + return self._template_body + + @template_body.setter + def template_body(self, template_body): + """Sets the template_body of this UpdateProvisioningTemplate. + + :param template_body: The template_body of this UpdateProvisioningTemplate. + :type template_body: :class:`huaweicloudsdkiotda.v5.ProvisioningTemplateBody` + """ + self._template_body = template_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, UpdateProvisioningTemplate): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/update_provisioning_template_request.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/update_provisioning_template_request.py new file mode 100644 index 0000000000..e38c63edf4 --- /dev/null +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/update_provisioning_template_request.py @@ -0,0 +1,168 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateProvisioningTemplateRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'template_id': 'str', + 'body': 'UpdateProvisioningTemplate' + } + + attribute_map = { + 'instance_id': 'Instance-Id', + 'template_id': 'template_id', + 'body': 'body' + } + + def __init__(self, instance_id=None, template_id=None, body=None): + """UpdateProvisioningTemplateRequest + + The model defined in huaweicloud sdk + + :param instance_id: **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0079.html#section1)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0079.html#section1)](tag:hws_hk)。 + :type instance_id: str + :param template_id: 预调配模板ID + :type template_id: str + :param body: Body of the UpdateProvisioningTemplateRequest + :type body: :class:`huaweicloudsdkiotda.v5.UpdateProvisioningTemplate` + """ + + + + self._instance_id = None + self._template_id = None + self._body = None + self.discriminator = None + + if instance_id is not None: + self.instance_id = instance_id + self.template_id = template_id + if body is not None: + self.body = body + + @property + def instance_id(self): + """Gets the instance_id of this UpdateProvisioningTemplateRequest. + + **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0079.html#section1)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0079.html#section1)](tag:hws_hk)。 + + :return: The instance_id of this UpdateProvisioningTemplateRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this UpdateProvisioningTemplateRequest. + + **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0079.html#section1)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0079.html#section1)](tag:hws_hk)。 + + :param instance_id: The instance_id of this UpdateProvisioningTemplateRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def template_id(self): + """Gets the template_id of this UpdateProvisioningTemplateRequest. + + 预调配模板ID + + :return: The template_id of this UpdateProvisioningTemplateRequest. + :rtype: str + """ + return self._template_id + + @template_id.setter + def template_id(self, template_id): + """Sets the template_id of this UpdateProvisioningTemplateRequest. + + 预调配模板ID + + :param template_id: The template_id of this UpdateProvisioningTemplateRequest. + :type template_id: str + """ + self._template_id = template_id + + @property + def body(self): + """Gets the body of this UpdateProvisioningTemplateRequest. + + :return: The body of this UpdateProvisioningTemplateRequest. + :rtype: :class:`huaweicloudsdkiotda.v5.UpdateProvisioningTemplate` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdateProvisioningTemplateRequest. + + :param body: The body of this UpdateProvisioningTemplateRequest. + :type body: :class:`huaweicloudsdkiotda.v5.UpdateProvisioningTemplate` + """ + 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, UpdateProvisioningTemplateRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/update_provisioning_template_response.py b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/update_provisioning_template_response.py new file mode 100644 index 0000000000..323246dc41 --- /dev/null +++ b/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/update_provisioning_template_response.py @@ -0,0 +1,257 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateProvisioningTemplateResponse(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 = { + 'template_id': 'str', + 'template_name': 'str', + 'description': 'str', + 'template_body': 'ProvisioningTemplateBody', + 'create_time': 'str', + 'update_time': 'str' + } + + attribute_map = { + 'template_id': 'template_id', + 'template_name': 'template_name', + 'description': 'description', + 'template_body': 'template_body', + 'create_time': 'create_time', + 'update_time': 'update_time' + } + + def __init__(self, template_id=None, template_name=None, description=None, template_body=None, create_time=None, update_time=None): + """UpdateProvisioningTemplateResponse + + The model defined in huaweicloud sdk + + :param template_id: **参数说明**:预调配模板ID。 + :type template_id: str + :param template_name: **参数说明**:预调配模板名称。 **取值范围**:长度不超过128,只允许中文、字母、数字、下划线(_)、连接符(-)的组合。 + :type template_name: str + :param description: **参数说明**:预调配模板的描述信息。 **取值范围**:长度不超过2048,只允许中文、字母、数字、以及_?'#().,&%@!-等字符的组合 + :type description: str + :param template_body: + :type template_body: :class:`huaweicloudsdkiotda.v5.ProvisioningTemplateBody` + :param create_time: 在物联网平台创建预调配模板的时间。格式:yyyyMMdd'T'HHmmss'Z',如20151212T121212Z。 + :type create_time: str + :param update_time: 在物联网平台更新预调配模板的时间。格式:yyyyMMdd'T'HHmmss'Z',如20151212T121212Z。 + :type update_time: str + """ + + super(UpdateProvisioningTemplateResponse, self).__init__() + + self._template_id = None + self._template_name = None + self._description = None + self._template_body = None + self._create_time = None + self._update_time = None + self.discriminator = None + + if template_id is not None: + self.template_id = template_id + if template_name is not None: + self.template_name = template_name + if description is not None: + self.description = description + if template_body is not None: + self.template_body = template_body + if create_time is not None: + self.create_time = create_time + if update_time is not None: + self.update_time = update_time + + @property + def template_id(self): + """Gets the template_id of this UpdateProvisioningTemplateResponse. + + **参数说明**:预调配模板ID。 + + :return: The template_id of this UpdateProvisioningTemplateResponse. + :rtype: str + """ + return self._template_id + + @template_id.setter + def template_id(self, template_id): + """Sets the template_id of this UpdateProvisioningTemplateResponse. + + **参数说明**:预调配模板ID。 + + :param template_id: The template_id of this UpdateProvisioningTemplateResponse. + :type template_id: str + """ + self._template_id = template_id + + @property + def template_name(self): + """Gets the template_name of this UpdateProvisioningTemplateResponse. + + **参数说明**:预调配模板名称。 **取值范围**:长度不超过128,只允许中文、字母、数字、下划线(_)、连接符(-)的组合。 + + :return: The template_name of this UpdateProvisioningTemplateResponse. + :rtype: str + """ + return self._template_name + + @template_name.setter + def template_name(self, template_name): + """Sets the template_name of this UpdateProvisioningTemplateResponse. + + **参数说明**:预调配模板名称。 **取值范围**:长度不超过128,只允许中文、字母、数字、下划线(_)、连接符(-)的组合。 + + :param template_name: The template_name of this UpdateProvisioningTemplateResponse. + :type template_name: str + """ + self._template_name = template_name + + @property + def description(self): + """Gets the description of this UpdateProvisioningTemplateResponse. + + **参数说明**:预调配模板的描述信息。 **取值范围**:长度不超过2048,只允许中文、字母、数字、以及_?'#().,&%@!-等字符的组合 + + :return: The description of this UpdateProvisioningTemplateResponse. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this UpdateProvisioningTemplateResponse. + + **参数说明**:预调配模板的描述信息。 **取值范围**:长度不超过2048,只允许中文、字母、数字、以及_?'#().,&%@!-等字符的组合 + + :param description: The description of this UpdateProvisioningTemplateResponse. + :type description: str + """ + self._description = description + + @property + def template_body(self): + """Gets the template_body of this UpdateProvisioningTemplateResponse. + + :return: The template_body of this UpdateProvisioningTemplateResponse. + :rtype: :class:`huaweicloudsdkiotda.v5.ProvisioningTemplateBody` + """ + return self._template_body + + @template_body.setter + def template_body(self, template_body): + """Sets the template_body of this UpdateProvisioningTemplateResponse. + + :param template_body: The template_body of this UpdateProvisioningTemplateResponse. + :type template_body: :class:`huaweicloudsdkiotda.v5.ProvisioningTemplateBody` + """ + self._template_body = template_body + + @property + def create_time(self): + """Gets the create_time of this UpdateProvisioningTemplateResponse. + + 在物联网平台创建预调配模板的时间。格式:yyyyMMdd'T'HHmmss'Z',如20151212T121212Z。 + + :return: The create_time of this UpdateProvisioningTemplateResponse. + :rtype: str + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this UpdateProvisioningTemplateResponse. + + 在物联网平台创建预调配模板的时间。格式:yyyyMMdd'T'HHmmss'Z',如20151212T121212Z。 + + :param create_time: The create_time of this UpdateProvisioningTemplateResponse. + :type create_time: str + """ + self._create_time = create_time + + @property + def update_time(self): + """Gets the update_time of this UpdateProvisioningTemplateResponse. + + 在物联网平台更新预调配模板的时间。格式:yyyyMMdd'T'HHmmss'Z',如20151212T121212Z。 + + :return: The update_time of this UpdateProvisioningTemplateResponse. + :rtype: str + """ + return self._update_time + + @update_time.setter + def update_time(self, update_time): + """Sets the update_time of this UpdateProvisioningTemplateResponse. + + 在物联网平台更新预调配模板的时间。格式:yyyyMMdd'T'HHmmss'Z',如20151212T121212Z。 + + :param update_time: The update_time of this UpdateProvisioningTemplateResponse. + :type update_time: str + """ + self._update_time = update_time + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateProvisioningTemplateResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-iotda/requirements.txt b/huaweicloud-sdk-iotda/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-iotda/requirements.txt +++ b/huaweicloud-sdk-iotda/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-iotda/setup.py b/huaweicloud-sdk-iotda/setup.py index eaf31734e9..5ccacc302d 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-iotedge/requirements.txt b/huaweicloud-sdk-iotedge/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-iotedge/requirements.txt +++ b/huaweicloud-sdk-iotedge/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-iotedge/setup.py b/huaweicloud-sdk-iotedge/setup.py index 41f173e817..9a0f3613bb 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ivs/requirements.txt b/huaweicloud-sdk-ivs/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-ivs/requirements.txt +++ b/huaweicloud-sdk-ivs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-ivs/setup.py b/huaweicloud-sdk-ivs/setup.py index 010875ca1a..7c5025d83b 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/batch_delete_message_diagnosis_reports_req.py b/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/batch_delete_message_diagnosis_reports_req.py index c333268b4e..842fac7511 100644 --- a/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/batch_delete_message_diagnosis_reports_req.py +++ b/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/batch_delete_message_diagnosis_reports_req.py @@ -29,7 +29,7 @@ def __init__(self, report_id_list=None): The model defined in huaweicloud sdk - :param report_id_list: 待删除report id 列表 + :param report_id_list: 待删除report id列表 :type report_id_list: list[str] """ @@ -44,7 +44,7 @@ def __init__(self, report_id_list=None): def report_id_list(self): """Gets the report_id_list of this BatchDeleteMessageDiagnosisReportsReq. - 待删除report id 列表 + 待删除report id列表 :return: The report_id_list of this BatchDeleteMessageDiagnosisReportsReq. :rtype: list[str] @@ -55,7 +55,7 @@ def report_id_list(self): def report_id_list(self, report_id_list): """Sets the report_id_list of this BatchDeleteMessageDiagnosisReportsReq. - 待删除report id 列表 + 待删除report id列表 :param report_id_list: The report_id_list of this BatchDeleteMessageDiagnosisReportsReq. :type report_id_list: list[str] diff --git a/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/batch_delete_message_diagnosis_resp_results.py b/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/batch_delete_message_diagnosis_resp_results.py index 5dc4a78660..73f8bdf325 100644 --- a/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/batch_delete_message_diagnosis_resp_results.py +++ b/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/batch_delete_message_diagnosis_resp_results.py @@ -33,7 +33,7 @@ def __init__(self, result=None, id=None): :param result: 报告删除结果 :type result: bool - :param id: 报告id + :param id: 报告ID :type id: str """ @@ -72,7 +72,7 @@ def result(self, result): def id(self): """Gets the id of this BatchDeleteMessageDiagnosisRespResults. - 报告id + 报告ID :return: The id of this BatchDeleteMessageDiagnosisRespResults. :rtype: str @@ -83,7 +83,7 @@ def id(self): def id(self, id): """Sets the id of this BatchDeleteMessageDiagnosisRespResults. - 报告id + 报告ID :param id: The id of this BatchDeleteMessageDiagnosisRespResults. :type id: str diff --git a/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/create_instance_by_engine_req.py b/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/create_instance_by_engine_req.py index 4468427ef2..f9b1a0caf3 100644 --- a/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/create_instance_by_engine_req.py +++ b/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/create_instance_by_engine_req.py @@ -105,7 +105,7 @@ def __init__(self, name=None, description=None, engine=None, engine_version=None :type engine_version: str :param broker_num: 代理个数。 :type broker_num: int - :param storage_space: 消息存储空间,单位GB。 [- Kafka实例规格为c6.2u4g.cluster时,存储空间取值范围300GB ~ 300000GB。 - Kafka实例规格为c6.4u8g.cluster时,存储空间取值范围300GB ~ 600000GB。 - Kafka实例规格为c6.8u16g.cluster时,存储空间取值范围300GB ~ [1500000](tag:hws,hws_hk,ocb,hws_ocb,ctc,dt)[900000](tag:g42,tm,hk_g42,hk_tm,hws_eu)GB。 - Kafka实例规格为c6.12u24g.cluster时,存储空间取值范围300GB ~ [1500000](tag:hws,hws_hk,ocb,hws_ocb,ctc,dt)[900000](tag:g42,tm,hk_g42,hk_tm,hws_eu)GB。 - Kafka实例规格为c6.16u32g.cluster时,存储空间取值范围300GB ~ [1500000](tag:hws,hws_hk,ocb,hws_ocb,ctc,dt)[900000](tag:g42,tm,hk_g42,hk_tm,hws_eu)GB。](tag:hws,hws_eu,hws_hk,ocb,hws_ocb,ctc,g42,hk_g42,tm,hk_tm,dt) [- Kafka实例规格为kafka.2u8g.single时,存储空间取值范围100GB~10000GB。 - Kafka实例规格为kafka.4u16g.cluster时,存储空间取值范围300GB~600000GB。 - Kafka实例规格为kafka.8u32g.cluster时,存储空间取值范围300GB~1500000GB。 - Kafka实例规格为kafka.16u64g.cluster时,存储空间取值范围300GB~1500000GB。 - Kafka实例规格为kafka.32u128g.cluster时,存储空间取值范围300GB~1500000GB。](tag:hcs) + :param storage_space: 消息存储空间,单位GB。 [- Kafka实例规格为c6.2u4g.cluster时,存储空间取值范围300GB ~ 300000GB。 - Kafka实例规格为c6.4u8g.cluster时,存储空间取值范围300GB ~ 600000GB。 - Kafka实例规格为c6.8u16g.cluster时,存储空间取值范围300GB ~ 1500000GB。 - Kafka实例规格为c6.12u24g.cluster时,存储空间取值范围300GB ~ 1500000GB。 - Kafka实例规格为c6.16u32g.cluster时,存储空间取值范围300GB ~ 1500000GB。](tag:hws,hws_eu,hws_hk,ocb,hws_ocb,ctc,g42,hk_g42,tm,hk_tm,dt) [- Kafka实例规格为kafka.2u8g.single时,存储空间取值范围100GB~10000GB。 - Kafka实例规格为kafka.4u16g.cluster时,存储空间取值范围300GB~600000GB。 - Kafka实例规格为kafka.8u32g.cluster时,存储空间取值范围300GB~1500000GB。 - Kafka实例规格为kafka.16u64g.cluster时,存储空间取值范围300GB~1500000GB。 - Kafka实例规格为kafka.32u128g.cluster时,存储空间取值范围300GB~1500000GB。](tag:hcs) :type storage_space: int :param access_user: 当ssl_enable为true时,该参数必选,ssl_enable为false时,该参数无效。 认证用户名,只能由英文字母开头且由英文字母、数字、中划线、下划线组成,长度为4~64的字符。 :type access_user: str @@ -375,7 +375,7 @@ def broker_num(self, broker_num): def storage_space(self): """Gets the storage_space of this CreateInstanceByEngineReq. - 消息存储空间,单位GB。 [- Kafka实例规格为c6.2u4g.cluster时,存储空间取值范围300GB ~ 300000GB。 - Kafka实例规格为c6.4u8g.cluster时,存储空间取值范围300GB ~ 600000GB。 - Kafka实例规格为c6.8u16g.cluster时,存储空间取值范围300GB ~ [1500000](tag:hws,hws_hk,ocb,hws_ocb,ctc,dt)[900000](tag:g42,tm,hk_g42,hk_tm,hws_eu)GB。 - Kafka实例规格为c6.12u24g.cluster时,存储空间取值范围300GB ~ [1500000](tag:hws,hws_hk,ocb,hws_ocb,ctc,dt)[900000](tag:g42,tm,hk_g42,hk_tm,hws_eu)GB。 - Kafka实例规格为c6.16u32g.cluster时,存储空间取值范围300GB ~ [1500000](tag:hws,hws_hk,ocb,hws_ocb,ctc,dt)[900000](tag:g42,tm,hk_g42,hk_tm,hws_eu)GB。](tag:hws,hws_eu,hws_hk,ocb,hws_ocb,ctc,g42,hk_g42,tm,hk_tm,dt) [- Kafka实例规格为kafka.2u8g.single时,存储空间取值范围100GB~10000GB。 - Kafka实例规格为kafka.4u16g.cluster时,存储空间取值范围300GB~600000GB。 - Kafka实例规格为kafka.8u32g.cluster时,存储空间取值范围300GB~1500000GB。 - Kafka实例规格为kafka.16u64g.cluster时,存储空间取值范围300GB~1500000GB。 - Kafka实例规格为kafka.32u128g.cluster时,存储空间取值范围300GB~1500000GB。](tag:hcs) + 消息存储空间,单位GB。 [- Kafka实例规格为c6.2u4g.cluster时,存储空间取值范围300GB ~ 300000GB。 - Kafka实例规格为c6.4u8g.cluster时,存储空间取值范围300GB ~ 600000GB。 - Kafka实例规格为c6.8u16g.cluster时,存储空间取值范围300GB ~ 1500000GB。 - Kafka实例规格为c6.12u24g.cluster时,存储空间取值范围300GB ~ 1500000GB。 - Kafka实例规格为c6.16u32g.cluster时,存储空间取值范围300GB ~ 1500000GB。](tag:hws,hws_eu,hws_hk,ocb,hws_ocb,ctc,g42,hk_g42,tm,hk_tm,dt) [- Kafka实例规格为kafka.2u8g.single时,存储空间取值范围100GB~10000GB。 - Kafka实例规格为kafka.4u16g.cluster时,存储空间取值范围300GB~600000GB。 - Kafka实例规格为kafka.8u32g.cluster时,存储空间取值范围300GB~1500000GB。 - Kafka实例规格为kafka.16u64g.cluster时,存储空间取值范围300GB~1500000GB。 - Kafka实例规格为kafka.32u128g.cluster时,存储空间取值范围300GB~1500000GB。](tag:hcs) :return: The storage_space of this CreateInstanceByEngineReq. :rtype: int @@ -386,7 +386,7 @@ def storage_space(self): def storage_space(self, storage_space): """Sets the storage_space of this CreateInstanceByEngineReq. - 消息存储空间,单位GB。 [- Kafka实例规格为c6.2u4g.cluster时,存储空间取值范围300GB ~ 300000GB。 - Kafka实例规格为c6.4u8g.cluster时,存储空间取值范围300GB ~ 600000GB。 - Kafka实例规格为c6.8u16g.cluster时,存储空间取值范围300GB ~ [1500000](tag:hws,hws_hk,ocb,hws_ocb,ctc,dt)[900000](tag:g42,tm,hk_g42,hk_tm,hws_eu)GB。 - Kafka实例规格为c6.12u24g.cluster时,存储空间取值范围300GB ~ [1500000](tag:hws,hws_hk,ocb,hws_ocb,ctc,dt)[900000](tag:g42,tm,hk_g42,hk_tm,hws_eu)GB。 - Kafka实例规格为c6.16u32g.cluster时,存储空间取值范围300GB ~ [1500000](tag:hws,hws_hk,ocb,hws_ocb,ctc,dt)[900000](tag:g42,tm,hk_g42,hk_tm,hws_eu)GB。](tag:hws,hws_eu,hws_hk,ocb,hws_ocb,ctc,g42,hk_g42,tm,hk_tm,dt) [- Kafka实例规格为kafka.2u8g.single时,存储空间取值范围100GB~10000GB。 - Kafka实例规格为kafka.4u16g.cluster时,存储空间取值范围300GB~600000GB。 - Kafka实例规格为kafka.8u32g.cluster时,存储空间取值范围300GB~1500000GB。 - Kafka实例规格为kafka.16u64g.cluster时,存储空间取值范围300GB~1500000GB。 - Kafka实例规格为kafka.32u128g.cluster时,存储空间取值范围300GB~1500000GB。](tag:hcs) + 消息存储空间,单位GB。 [- Kafka实例规格为c6.2u4g.cluster时,存储空间取值范围300GB ~ 300000GB。 - Kafka实例规格为c6.4u8g.cluster时,存储空间取值范围300GB ~ 600000GB。 - Kafka实例规格为c6.8u16g.cluster时,存储空间取值范围300GB ~ 1500000GB。 - Kafka实例规格为c6.12u24g.cluster时,存储空间取值范围300GB ~ 1500000GB。 - Kafka实例规格为c6.16u32g.cluster时,存储空间取值范围300GB ~ 1500000GB。](tag:hws,hws_eu,hws_hk,ocb,hws_ocb,ctc,g42,hk_g42,tm,hk_tm,dt) [- Kafka实例规格为kafka.2u8g.single时,存储空间取值范围100GB~10000GB。 - Kafka实例规格为kafka.4u16g.cluster时,存储空间取值范围300GB~600000GB。 - Kafka实例规格为kafka.8u32g.cluster时,存储空间取值范围300GB~1500000GB。 - Kafka实例规格为kafka.16u64g.cluster时,存储空间取值范围300GB~1500000GB。 - Kafka实例规格为kafka.32u128g.cluster时,存储空间取值范围300GB~1500000GB。](tag:hcs) :param storage_space: The storage_space of this CreateInstanceByEngineReq. :type storage_space: int diff --git a/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/create_instance_topic_req.py b/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/create_instance_topic_req.py index 43fb12ecc5..3805cd0480 100644 --- a/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/create_instance_topic_req.py +++ b/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/create_instance_topic_req.py @@ -49,11 +49,11 @@ def __init__(self, id=None, replication=None, sync_message_flush=None, partition :type replication: int :param sync_message_flush: 是否使用同步落盘。默认值为false。同步落盘会导致性能降低。 :type sync_message_flush: bool - :param partition: topic分区数,设置消费的并发数。 取值范围:[1-100](tag:hws,hws_hk,dt,hws_ocb,ocb,ctc,sbc,hk_sbc,g42,tm,hk_g42,hk_tm)[1-20](tag:cmcc)。 + :param partition: topic分区数,设置消费的并发数。 取值范围:[1-200](tag:hws,hws_hk,dt,hcs,sbc,hk_sbc,g42,hk_g42,ctc,tm,hk_tm)[1-100](tag:cmcc,hws_ocb,ocb)。 :type partition: int :param sync_replication: 是否开启同步复制,开启后,客户端生产消息时相应的也要设置acks=-1,否则不生效,默认关闭。 :type sync_replication: bool - :param retention_time: 消息老化时间。默认值为72。 取值范围[1~168](tag:hws,hws_hk,ctc,sbc,hk_sbc,hws_eu,g42,tm,hk_g42,hk_tm)[1-720](tag:ocb,dt,hws_ocb),单位小时。 + :param retention_time: 消息老化时间。默认值为72。 取值范围[1~168](tag:cmcc)[1-720](tag:ocb,dt,hws_ocb,hws,hws_hk,ctc,sbc,hk_sbc,hws_eu,g42,tm,hk_g42,hk_tm,hcs),单位小时。 :type retention_time: int :param topic_other_configs: topic配置 :type topic_other_configs: list[:class:`huaweicloudsdkkafka.v2.CreateInstanceTopicReqTopicOtherConfigs`] @@ -159,7 +159,7 @@ def sync_message_flush(self, sync_message_flush): def partition(self): """Gets the partition of this CreateInstanceTopicReq. - topic分区数,设置消费的并发数。 取值范围:[1-100](tag:hws,hws_hk,dt,hws_ocb,ocb,ctc,sbc,hk_sbc,g42,tm,hk_g42,hk_tm)[1-20](tag:cmcc)。 + topic分区数,设置消费的并发数。 取值范围:[1-200](tag:hws,hws_hk,dt,hcs,sbc,hk_sbc,g42,hk_g42,ctc,tm,hk_tm)[1-100](tag:cmcc,hws_ocb,ocb)。 :return: The partition of this CreateInstanceTopicReq. :rtype: int @@ -170,7 +170,7 @@ def partition(self): def partition(self, partition): """Sets the partition of this CreateInstanceTopicReq. - topic分区数,设置消费的并发数。 取值范围:[1-100](tag:hws,hws_hk,dt,hws_ocb,ocb,ctc,sbc,hk_sbc,g42,tm,hk_g42,hk_tm)[1-20](tag:cmcc)。 + topic分区数,设置消费的并发数。 取值范围:[1-200](tag:hws,hws_hk,dt,hcs,sbc,hk_sbc,g42,hk_g42,ctc,tm,hk_tm)[1-100](tag:cmcc,hws_ocb,ocb)。 :param partition: The partition of this CreateInstanceTopicReq. :type partition: int @@ -203,7 +203,7 @@ def sync_replication(self, sync_replication): def retention_time(self): """Gets the retention_time of this CreateInstanceTopicReq. - 消息老化时间。默认值为72。 取值范围[1~168](tag:hws,hws_hk,ctc,sbc,hk_sbc,hws_eu,g42,tm,hk_g42,hk_tm)[1-720](tag:ocb,dt,hws_ocb),单位小时。 + 消息老化时间。默认值为72。 取值范围[1~168](tag:cmcc)[1-720](tag:ocb,dt,hws_ocb,hws,hws_hk,ctc,sbc,hk_sbc,hws_eu,g42,tm,hk_g42,hk_tm,hcs),单位小时。 :return: The retention_time of this CreateInstanceTopicReq. :rtype: int @@ -214,7 +214,7 @@ def retention_time(self): def retention_time(self, retention_time): """Sets the retention_time of this CreateInstanceTopicReq. - 消息老化时间。默认值为72。 取值范围[1~168](tag:hws,hws_hk,ctc,sbc,hk_sbc,hws_eu,g42,tm,hk_g42,hk_tm)[1-720](tag:ocb,dt,hws_ocb),单位小时。 + 消息老化时间。默认值为72。 取值范围[1~168](tag:cmcc)[1-720](tag:ocb,dt,hws_ocb,hws,hws_hk,ctc,sbc,hk_sbc,hws_eu,g42,tm,hk_g42,hk_tm,hcs),单位小时。 :param retention_time: The retention_time of this CreateInstanceTopicReq. :type retention_time: int diff --git a/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/create_message_diagnosis_task_response.py b/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/create_message_diagnosis_task_response.py index 5ad3aaf075..3047de6c75 100644 --- a/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/create_message_diagnosis_task_response.py +++ b/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/create_message_diagnosis_task_response.py @@ -30,7 +30,7 @@ def __init__(self, report_id=None): The model defined in huaweicloud sdk - :param report_id: 诊断报告id。 + :param report_id: 诊断报告ID。 :type report_id: str """ @@ -46,7 +46,7 @@ def __init__(self, report_id=None): def report_id(self): """Gets the report_id of this CreateMessageDiagnosisTaskResponse. - 诊断报告id。 + 诊断报告ID。 :return: The report_id of this CreateMessageDiagnosisTaskResponse. :rtype: str @@ -57,7 +57,7 @@ def report_id(self): def report_id(self, report_id): """Sets the report_id of this CreateMessageDiagnosisTaskResponse. - 诊断报告id。 + 诊断报告ID。 :param report_id: The report_id of this CreateMessageDiagnosisTaskResponse. :type report_id: str diff --git a/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/create_post_paid_instance_req.py b/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/create_post_paid_instance_req.py index a453b34313..742e228810 100644 --- a/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/create_post_paid_instance_req.py +++ b/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/create_post_paid_instance_req.py @@ -103,7 +103,7 @@ def __init__(self, name=None, description=None, engine=None, engine_version=None :type engine_version: str :param specification: [新规格实例:Kafka实例业务TPS规格,取值范围: - c6.2u4g.cluster - c6.4u8g.cluster - c6.8u16g.cluster - c6.12u24g.cluster - c6.16u32g.cluster 老规格实例:](tag:hws,hws_hk) Kafka实例的基准带宽,表示单位时间内传送的最大数据量,单位MB。取值范围: - 100MB - 300MB - 600MB - 1200MB 注:此参数无需设置,其取值实际是由产品ID(product_id)决定。 :type specification: str - :param broker_num: 代理个数。 [取值范围: - 老规格实例此参数无需设置 - 新规格必须设置,取值范围:3 ~ 30。](tag:hws,hws_hk,g42,tm,hk_g42,hk_tm,ctc,dt,ocb,hws_ocb) [此参数无需设置](tag:sbc,hk_sbc,cmcc) + :param broker_num: 代理个数。 [取值范围: - 老规格实例此参数无需设置 - 新规格必须设置,取值范围:3 ~ 50。](tag:hws,hws_hk,g42,tm,hk_g42,hk_tm,ctc,dt,ocb,hws_ocb,sbc,hk_sbc) [此参数无需设置](tag:cmcc) :type broker_num: int :param storage_space: 消息存储空间,单位GB。 - Kafka实例规格为100MB时,存储空间取值范围600GB ~ 90000GB。 - Kafka实例规格为300MB时,存储空间取值范围1200GB ~ 90000GB。 - Kafka实例规格为600MB时,存储空间取值范围2400GB ~ 90000GB。 - Kafka实例规格为1200MB,存储空间取值范围4800GB ~ 90000GB [- Kafka实例规格为c6.2u4g.cluster时,存储空间取值范围300GB ~ 300000GB。 - Kafka实例规格为c6.4u8g.cluster时,存储空间取值范围300GB ~ 600000GB。 - Kafka实例规格为c6.8u16g.cluster时,存储空间取值范围300GB ~ 900000GB。 - Kafka实例规格为c6.12u24g.cluster时,存储空间取值范围300GB ~ 900000GB。 - Kafka实例规格为c6.16u32g.cluster时,存储空间取值范围300GB ~ 900000GB。](tag:hc,hk) :type storage_space: int @@ -369,7 +369,7 @@ def specification(self, specification): def broker_num(self): """Gets the broker_num of this CreatePostPaidInstanceReq. - 代理个数。 [取值范围: - 老规格实例此参数无需设置 - 新规格必须设置,取值范围:3 ~ 30。](tag:hws,hws_hk,g42,tm,hk_g42,hk_tm,ctc,dt,ocb,hws_ocb) [此参数无需设置](tag:sbc,hk_sbc,cmcc) + 代理个数。 [取值范围: - 老规格实例此参数无需设置 - 新规格必须设置,取值范围:3 ~ 50。](tag:hws,hws_hk,g42,tm,hk_g42,hk_tm,ctc,dt,ocb,hws_ocb,sbc,hk_sbc) [此参数无需设置](tag:cmcc) :return: The broker_num of this CreatePostPaidInstanceReq. :rtype: int @@ -380,7 +380,7 @@ def broker_num(self): def broker_num(self, broker_num): """Sets the broker_num of this CreatePostPaidInstanceReq. - 代理个数。 [取值范围: - 老规格实例此参数无需设置 - 新规格必须设置,取值范围:3 ~ 30。](tag:hws,hws_hk,g42,tm,hk_g42,hk_tm,ctc,dt,ocb,hws_ocb) [此参数无需设置](tag:sbc,hk_sbc,cmcc) + 代理个数。 [取值范围: - 老规格实例此参数无需设置 - 新规格必须设置,取值范围:3 ~ 50。](tag:hws,hws_hk,g42,tm,hk_g42,hk_tm,ctc,dt,ocb,hws_ocb,sbc,hk_sbc) [此参数无需设置](tag:cmcc) :param broker_num: The broker_num of this CreatePostPaidInstanceReq. :type broker_num: int diff --git a/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/kafka_message_diagnosis_report_info_entity.py b/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/kafka_message_diagnosis_report_info_entity.py index 181794c338..94e16d9206 100644 --- a/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/kafka_message_diagnosis_report_info_entity.py +++ b/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/kafka_message_diagnosis_report_info_entity.py @@ -43,7 +43,7 @@ def __init__(self, report_id=None, status=None, begin_time=None, end_time=None, :param report_id: 诊断报告ID :type report_id: str - :param status: 消息积压诊断任务状态。 - diagnosing:诊断中; - failed:诊断失败; - deleted:手动删除; - finished:诊断完成; - normal:诊断结果正常; - abnormal:诊断结果异常 + :param status: 消息积压诊断任务状态。 - diagnosing:诊断中 - failed:诊断失败 - deleted:手动删除 - finished:诊断完成 - normal:诊断结果正常 - abnormal:诊断结果异常 :type status: str :param begin_time: 诊断任务开始时间 :type begin_time: str @@ -103,7 +103,7 @@ def report_id(self, report_id): def status(self): """Gets the status of this KafkaMessageDiagnosisReportInfoEntity. - 消息积压诊断任务状态。 - diagnosing:诊断中; - failed:诊断失败; - deleted:手动删除; - finished:诊断完成; - normal:诊断结果正常; - abnormal:诊断结果异常 + 消息积压诊断任务状态。 - diagnosing:诊断中 - failed:诊断失败 - deleted:手动删除 - finished:诊断完成 - normal:诊断结果正常 - abnormal:诊断结果异常 :return: The status of this KafkaMessageDiagnosisReportInfoEntity. :rtype: str @@ -114,7 +114,7 @@ def status(self): def status(self, status): """Sets the status of this KafkaMessageDiagnosisReportInfoEntity. - 消息积压诊断任务状态。 - diagnosing:诊断中; - failed:诊断失败; - deleted:手动删除; - finished:诊断完成; - normal:诊断结果正常; - abnormal:诊断结果异常 + 消息积压诊断任务状态。 - diagnosing:诊断中 - failed:诊断失败 - deleted:手动删除 - finished:诊断完成 - normal:诊断结果正常 - abnormal:诊断结果异常 :param status: The status of this KafkaMessageDiagnosisReportInfoEntity. :type status: str diff --git a/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/list_engine_products_entity.py b/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/list_engine_products_entity.py index e88ff44134..d84c8175b9 100644 --- a/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/list_engine_products_entity.py +++ b/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/list_engine_products_entity.py @@ -55,7 +55,7 @@ def __init__(self, type=None, product_id=None, ecs_flavor_id=None, billing_code= :type billing_code: str :param arch_types: CPU架构。 :type arch_types: list[str] - :param charging_mode: [计费模式。monthly:包年/包月类型。hourly:按需类型。](tag:hws,hws_hk,ctc,sbc,hk_sbc,cmcc,hws_eu)[暂未使用。](tag:hws_ocb,ocb,hcs)[计费模式。hourly:按需类型。](tag:dt,g42,tm,hk_g42,hk_tm) + :param charging_mode: [计费模式。monthly:包年/包月类型。hourly:按需类型。](tag:hws,hws_hk,ctc,cmcc)[暂未使用。](tag:hws_ocb,ocb,hcs)[计费模式。hourly:按需类型。](tag:dt,g42,tm,hk_g42,hk_tm,sbc,hk_sbc,hws_eu) :type charging_mode: list[str] :param ios: 支持的磁盘IO类型列表。 :type ios: list[:class:`huaweicloudsdkkafka.v2.ListEngineIosEntity`] @@ -211,7 +211,7 @@ def arch_types(self, arch_types): def charging_mode(self): """Gets the charging_mode of this ListEngineProductsEntity. - [计费模式。monthly:包年/包月类型。hourly:按需类型。](tag:hws,hws_hk,ctc,sbc,hk_sbc,cmcc,hws_eu)[暂未使用。](tag:hws_ocb,ocb,hcs)[计费模式。hourly:按需类型。](tag:dt,g42,tm,hk_g42,hk_tm) + [计费模式。monthly:包年/包月类型。hourly:按需类型。](tag:hws,hws_hk,ctc,cmcc)[暂未使用。](tag:hws_ocb,ocb,hcs)[计费模式。hourly:按需类型。](tag:dt,g42,tm,hk_g42,hk_tm,sbc,hk_sbc,hws_eu) :return: The charging_mode of this ListEngineProductsEntity. :rtype: list[str] @@ -222,7 +222,7 @@ def charging_mode(self): def charging_mode(self, charging_mode): """Sets the charging_mode of this ListEngineProductsEntity. - [计费模式。monthly:包年/包月类型。hourly:按需类型。](tag:hws,hws_hk,ctc,sbc,hk_sbc,cmcc,hws_eu)[暂未使用。](tag:hws_ocb,ocb,hcs)[计费模式。hourly:按需类型。](tag:dt,g42,tm,hk_g42,hk_tm) + [计费模式。monthly:包年/包月类型。hourly:按需类型。](tag:hws,hws_hk,ctc,cmcc)[暂未使用。](tag:hws_ocb,ocb,hcs)[计费模式。hourly:按需类型。](tag:dt,g42,tm,hk_g42,hk_tm,sbc,hk_sbc,hws_eu) :param charging_mode: The charging_mode of this ListEngineProductsEntity. :type charging_mode: list[str] diff --git a/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/show_diagnosis_pre_check_response.py b/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/show_diagnosis_pre_check_response.py index e8762015de..3b48d59ca4 100644 --- a/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/show_diagnosis_pre_check_response.py +++ b/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/show_diagnosis_pre_check_response.py @@ -30,7 +30,7 @@ def __init__(self, body=None): The model defined in huaweicloud sdk - :param body: kafka消息积压诊断预检查返回对象 + :param body: Kafka消息积压诊断预检查返回对象 :type body: list[:class:`huaweicloudsdkkafka.v2.KafkaDiagnosisCheckEntity`] """ @@ -46,7 +46,7 @@ def __init__(self, body=None): def body(self): """Gets the body of this ShowDiagnosisPreCheckResponse. - kafka消息积压诊断预检查返回对象 + Kafka消息积压诊断预检查返回对象 :return: The body of this ShowDiagnosisPreCheckResponse. :rtype: list[:class:`huaweicloudsdkkafka.v2.KafkaDiagnosisCheckEntity`] @@ -57,7 +57,7 @@ def body(self): def body(self, body): """Sets the body of this ShowDiagnosisPreCheckResponse. - kafka消息积压诊断预检查返回对象 + Kafka消息积压诊断预检查返回对象 :param body: The body of this ShowDiagnosisPreCheckResponse. :type body: list[:class:`huaweicloudsdkkafka.v2.KafkaDiagnosisCheckEntity`] diff --git a/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/show_instance_resp.py b/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/show_instance_resp.py index 57182766d6..28de454e0e 100644 --- a/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/show_instance_resp.py +++ b/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/show_instance_resp.py @@ -221,7 +221,7 @@ def __init__(self, name=None, engine=None, engine_version=None, description=None :type instance_id: str :param resource_spec_code: 资源规格标识。 [- dms.instance.kafka.cluster.c3.mini:Kafka实例的基准带宽为100MByte/秒。 - dms.instance.kafka.cluster.c3.small.2:Kafka实例的基准带宽为300MByte/秒。 - dms.instance.kafka.cluster.c3.middle.2:Kafka实例的基准带宽为600MByte/秒。 - dms.instance.kafka.cluster.c3.high.2:Kafka实例的基准带宽为1200MByte/秒。](tag:hws,hws_eu,hws_hk,ocb,hws_ocb,ctc,g42,hk_g42,tm,hk_tm,dt) :type resource_spec_code: str - :param charging_mode: [付费模式,1表示按需计费,0表示包年/包月计费。](tag:hws,hws_hk,ctc,sbc,hk_sbc,cmcc,hws_eu)[付费模式,暂未使用。](tag:hws_ocb,ocb) [付费模式,1表示按需计费。](tag:dt,g42,tm,hk_g42,hk_tm,hcs) + :param charging_mode: [付费模式,1表示按需计费,0表示包年/包月计费。](tag:hws,hws_hk,ctc,cmcc)[付费模式,暂未使用。](tag:hws_ocb,ocb) [付费模式,1表示按需计费。](tag:dt,g42,tm,hk_g42,hk_tm,hcs,sbc,hk_sbc,hws_eu) :type charging_mode: int :param vpc_id: VPC ID。 :type vpc_id: str @@ -912,7 +912,7 @@ def resource_spec_code(self, resource_spec_code): def charging_mode(self): """Gets the charging_mode of this ShowInstanceResp. - [付费模式,1表示按需计费,0表示包年/包月计费。](tag:hws,hws_hk,ctc,sbc,hk_sbc,cmcc,hws_eu)[付费模式,暂未使用。](tag:hws_ocb,ocb) [付费模式,1表示按需计费。](tag:dt,g42,tm,hk_g42,hk_tm,hcs) + [付费模式,1表示按需计费,0表示包年/包月计费。](tag:hws,hws_hk,ctc,cmcc)[付费模式,暂未使用。](tag:hws_ocb,ocb) [付费模式,1表示按需计费。](tag:dt,g42,tm,hk_g42,hk_tm,hcs,sbc,hk_sbc,hws_eu) :return: The charging_mode of this ShowInstanceResp. :rtype: int @@ -923,7 +923,7 @@ def charging_mode(self): def charging_mode(self, charging_mode): """Sets the charging_mode of this ShowInstanceResp. - [付费模式,1表示按需计费,0表示包年/包月计费。](tag:hws,hws_hk,ctc,sbc,hk_sbc,cmcc,hws_eu)[付费模式,暂未使用。](tag:hws_ocb,ocb) [付费模式,1表示按需计费。](tag:dt,g42,tm,hk_g42,hk_tm,hcs) + [付费模式,1表示按需计费,0表示包年/包月计费。](tag:hws,hws_hk,ctc,cmcc)[付费模式,暂未使用。](tag:hws_ocb,ocb) [付费模式,1表示按需计费。](tag:dt,g42,tm,hk_g42,hk_tm,hcs,sbc,hk_sbc,hws_eu) :param charging_mode: The charging_mode of this ShowInstanceResp. :type charging_mode: int diff --git a/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/show_instance_response.py b/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/show_instance_response.py index 4007c35028..0f7b277926 100644 --- a/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/show_instance_response.py +++ b/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/show_instance_response.py @@ -222,7 +222,7 @@ def __init__(self, name=None, engine=None, engine_version=None, description=None :type instance_id: str :param resource_spec_code: 资源规格标识。 [- dms.instance.kafka.cluster.c3.mini:Kafka实例的基准带宽为100MByte/秒。 - dms.instance.kafka.cluster.c3.small.2:Kafka实例的基准带宽为300MByte/秒。 - dms.instance.kafka.cluster.c3.middle.2:Kafka实例的基准带宽为600MByte/秒。 - dms.instance.kafka.cluster.c3.high.2:Kafka实例的基准带宽为1200MByte/秒。](tag:hws,hws_eu,hws_hk,ocb,hws_ocb,ctc,g42,hk_g42,tm,hk_tm,dt) :type resource_spec_code: str - :param charging_mode: [付费模式,1表示按需计费,0表示包年/包月计费。](tag:hws,hws_hk,ctc,sbc,hk_sbc,cmcc,hws_eu)[付费模式,暂未使用。](tag:hws_ocb,ocb) [付费模式,1表示按需计费。](tag:dt,g42,tm,hk_g42,hk_tm,hcs) + :param charging_mode: [付费模式,1表示按需计费,0表示包年/包月计费。](tag:hws,hws_hk,ctc,cmcc)[付费模式,暂未使用。](tag:hws_ocb,ocb) [付费模式,1表示按需计费。](tag:dt,g42,tm,hk_g42,hk_tm,hcs,sbc,hk_sbc,hws_eu) :type charging_mode: int :param vpc_id: VPC ID。 :type vpc_id: str @@ -913,7 +913,7 @@ def resource_spec_code(self, resource_spec_code): def charging_mode(self): """Gets the charging_mode of this ShowInstanceResponse. - [付费模式,1表示按需计费,0表示包年/包月计费。](tag:hws,hws_hk,ctc,sbc,hk_sbc,cmcc,hws_eu)[付费模式,暂未使用。](tag:hws_ocb,ocb) [付费模式,1表示按需计费。](tag:dt,g42,tm,hk_g42,hk_tm,hcs) + [付费模式,1表示按需计费,0表示包年/包月计费。](tag:hws,hws_hk,ctc,cmcc)[付费模式,暂未使用。](tag:hws_ocb,ocb) [付费模式,1表示按需计费。](tag:dt,g42,tm,hk_g42,hk_tm,hcs,sbc,hk_sbc,hws_eu) :return: The charging_mode of this ShowInstanceResponse. :rtype: int @@ -924,7 +924,7 @@ def charging_mode(self): def charging_mode(self, charging_mode): """Sets the charging_mode of this ShowInstanceResponse. - [付费模式,1表示按需计费,0表示包年/包月计费。](tag:hws,hws_hk,ctc,sbc,hk_sbc,cmcc,hws_eu)[付费模式,暂未使用。](tag:hws_ocb,ocb) [付费模式,1表示按需计费。](tag:dt,g42,tm,hk_g42,hk_tm,hcs) + [付费模式,1表示按需计费,0表示包年/包月计费。](tag:hws,hws_hk,ctc,cmcc)[付费模式,暂未使用。](tag:hws_ocb,ocb) [付费模式,1表示按需计费。](tag:dt,g42,tm,hk_g42,hk_tm,hcs,sbc,hk_sbc,hws_eu) :param charging_mode: The charging_mode of this ShowInstanceResponse. :type charging_mode: int diff --git a/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/smart_connect_task_resp_sink_config.py b/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/smart_connect_task_resp_sink_config.py index a127e67c5f..cb0cc5d630 100644 --- a/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/smart_connect_task_resp_sink_config.py +++ b/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/smart_connect_task_resp_sink_config.py @@ -32,9 +32,6 @@ class SmartConnectTaskRespSinkConfig: 'obs_part_size': 'int', 'flush_size': 'int', 'timezone': 'str', - 'connector_class': 'str', - 'storage_class': 'str', - 'format_class': 'str', 'schema_generator_class': 'str', 'partitioner_class': 'str', 'value_converter': 'str', @@ -58,9 +55,6 @@ class SmartConnectTaskRespSinkConfig: 'obs_part_size': 'obs_part_size', 'flush_size': 'flush_size', 'timezone': 'timezone', - 'connector_class': 'connector_class', - 'storage_class': 'storage_class', - 'format_class': 'format_class', 'schema_generator_class': 'schema_generator_class', 'partitioner_class': 'partitioner_class', 'value_converter': 'value_converter', @@ -68,7 +62,7 @@ class SmartConnectTaskRespSinkConfig: 'kv_delimiter': 'kv_delimiter' } - def __init__(self, redis_address=None, redis_type=None, dcs_instance_id=None, target_db=None, consumer_strategy=None, destination_file_type=None, deliver_time_interval=None, obs_bucket_name=None, obs_path=None, partition_format=None, record_delimiter=None, store_keys=None, obs_part_size=None, flush_size=None, timezone=None, connector_class=None, storage_class=None, format_class=None, schema_generator_class=None, partitioner_class=None, value_converter=None, key_converter=None, kv_delimiter=None): + def __init__(self, redis_address=None, redis_type=None, dcs_instance_id=None, target_db=None, consumer_strategy=None, destination_file_type=None, deliver_time_interval=None, obs_bucket_name=None, obs_path=None, partition_format=None, record_delimiter=None, store_keys=None, obs_part_size=None, flush_size=None, timezone=None, schema_generator_class=None, partitioner_class=None, value_converter=None, key_converter=None, kv_delimiter=None): """SmartConnectTaskRespSinkConfig The model defined in huaweicloud sdk @@ -103,12 +97,6 @@ def __init__(self, redis_address=None, redis_type=None, dcs_instance_id=None, ta :type flush_size: int :param timezone: 时区。(仅目标端类型为OBS时会显示) :type timezone: str - :param connector_class: connector类,默认为\"com.huawei.dms.connector.obs.OBSSinkConnector\"。(仅目标端类型为OBS时会显示) - :type connector_class: str - :param storage_class: storage类,默认为com.huawei.dms.connector.obs.storage.OBSStorage\"。(仅目标端类型为OBS时会显示) - :type storage_class: str - :param format_class: format类,默认为\"com.huawei.dms.connector.obs.format.bytearray.ByteArrayFormat\"。(仅目标端类型为OBS时会显示) - :type format_class: str :param schema_generator_class: schema_generator类,默认为\"io.confluent.connect.storage.hive.schema.DefaultSchemaGenerator\"。(仅目标端类型为OBS时会显示) :type schema_generator_class: str :param partitioner_class: partitioner类,默认\"io.confluent.connect.storage.partitioner.TimeBasedPartitioner\"。(仅目标端类型为OBS时会显示) @@ -138,9 +126,6 @@ def __init__(self, redis_address=None, redis_type=None, dcs_instance_id=None, ta self._obs_part_size = None self._flush_size = None self._timezone = None - self._connector_class = None - self._storage_class = None - self._format_class = None self._schema_generator_class = None self._partitioner_class = None self._value_converter = None @@ -178,12 +163,6 @@ def __init__(self, redis_address=None, redis_type=None, dcs_instance_id=None, ta self.flush_size = flush_size if timezone is not None: self.timezone = timezone - if connector_class is not None: - self.connector_class = connector_class - if storage_class is not None: - self.storage_class = storage_class - if format_class is not None: - self.format_class = format_class if schema_generator_class is not None: self.schema_generator_class = schema_generator_class if partitioner_class is not None: @@ -525,72 +504,6 @@ def timezone(self, timezone): """ self._timezone = timezone - @property - def connector_class(self): - """Gets the connector_class of this SmartConnectTaskRespSinkConfig. - - connector类,默认为\"com.huawei.dms.connector.obs.OBSSinkConnector\"。(仅目标端类型为OBS时会显示) - - :return: The connector_class of this SmartConnectTaskRespSinkConfig. - :rtype: str - """ - return self._connector_class - - @connector_class.setter - def connector_class(self, connector_class): - """Sets the connector_class of this SmartConnectTaskRespSinkConfig. - - connector类,默认为\"com.huawei.dms.connector.obs.OBSSinkConnector\"。(仅目标端类型为OBS时会显示) - - :param connector_class: The connector_class of this SmartConnectTaskRespSinkConfig. - :type connector_class: str - """ - self._connector_class = connector_class - - @property - def storage_class(self): - """Gets the storage_class of this SmartConnectTaskRespSinkConfig. - - storage类,默认为com.huawei.dms.connector.obs.storage.OBSStorage\"。(仅目标端类型为OBS时会显示) - - :return: The storage_class of this SmartConnectTaskRespSinkConfig. - :rtype: str - """ - return self._storage_class - - @storage_class.setter - def storage_class(self, storage_class): - """Sets the storage_class of this SmartConnectTaskRespSinkConfig. - - storage类,默认为com.huawei.dms.connector.obs.storage.OBSStorage\"。(仅目标端类型为OBS时会显示) - - :param storage_class: The storage_class of this SmartConnectTaskRespSinkConfig. - :type storage_class: str - """ - self._storage_class = storage_class - - @property - def format_class(self): - """Gets the format_class of this SmartConnectTaskRespSinkConfig. - - format类,默认为\"com.huawei.dms.connector.obs.format.bytearray.ByteArrayFormat\"。(仅目标端类型为OBS时会显示) - - :return: The format_class of this SmartConnectTaskRespSinkConfig. - :rtype: str - """ - return self._format_class - - @format_class.setter - def format_class(self, format_class): - """Sets the format_class of this SmartConnectTaskRespSinkConfig. - - format类,默认为\"com.huawei.dms.connector.obs.format.bytearray.ByteArrayFormat\"。(仅目标端类型为OBS时会显示) - - :param format_class: The format_class of this SmartConnectTaskRespSinkConfig. - :type format_class: str - """ - self._format_class = format_class - @property def schema_generator_class(self): """Gets the schema_generator_class of this SmartConnectTaskRespSinkConfig. diff --git a/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/tag_entity.py b/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/tag_entity.py index 693e8e005c..47d4111830 100644 --- a/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/tag_entity.py +++ b/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/tag_entity.py @@ -31,9 +31,9 @@ def __init__(self, key=None, value=None): The model defined in huaweicloud sdk - :param key: 标签键。 - 不能为空。 - 对于同一个实例,Key值唯一。 [- 长度不超过36个字符。](tag:cmcc,hk_tm,hws_eu,hws_ocb,ocb,tm) [- 长度为1~128个字符(中文也可以输入128个字符)。](tag:hws,hws_hk,ctc,hk_sbc,sbc,dt,g42,hk_g42) [- 不能包含“=”,“*”,“<”,“>”,“\\”,“,”,“|”,“/”](tag:cmcc,hk_tm,hws_eu,hws_ocb,ocb,tm) [- 由任意语种字母、数字、空格和字符组成,字符仅支持_ . : = + - @](tag:hws,hws_hk,ctc,hk_sbc,sbc,dt,g42,hk_g42) - 首尾字符不能为空格。 + :param key: 标签键。 - 不能为空。 - 对于同一个实例,Key值唯一。 [- 长度不超过36个字符。](tag:cmcc,hws_ocb,ocb) [- 长度为1~128个字符(中文也可以输入128个字符)。](tag:hws,hws_hk,ctc,hk_sbc,sbc,dt,g42,hk_g42,hk_tm,hws_eu,tm) [- 不能包含“=”,“*”,“<”,“>”,“\\”,“,”,“|”,“/”](tag:cmcc,hws_ocb,ocb) [- 由任意语种字母、数字、空格和字符组成,字符仅支持_ . : = + - @](tag:hws,hws_hk,ctc,hk_sbc,sbc,dt,g42,hk_g42,hk_tm,hws_eu,tm) - 首尾字符不能为空格。 :type key: str - :param value: 标签值。 [- 不能为空。](tag:cmcc,hk_tm,hws_eu,hws_ocb,ocb,tm) [- 长度不超过43个字符。](tag:cmcc,hk_tm,hws_eu,hws_ocb,ocb,tm) [- 长度为0~255个字符(中文也可以输入255个字符)。](tag:hws,hws_hk,ctc,hk_sbc,sbc,dt,g42,hk_g42) [- 不能包含“=”,“*”,“<”,“>”,“\\”,“,”,“|”,“/”](tag:cmcc,hk_tm,hws_eu,hws_ocb,ocb,tm) [- 由任意语种字母、数字、空格和字符组成,字符仅支持_ . : = + - @](tag:hws,hws_hk,ctc,hk_sbc,sbc,dt,g42,hk_g42) - 首尾字符不能为空格。 + :param value: 标签值。 [- 不能为空。](tag:cmcc,hws_ocb,ocb) [- 长度不超过43个字符。](tag:cmcc,hws_ocb,ocb) [- 长度为0~255个字符(中文也可以输入255个字符)。](tag:hws,hws_hk,ctc,hk_sbc,sbc,dt,g42,hk_g42,hk_tm,hws_eu,tm) [- 不能包含“=”,“*”,“<”,“>”,“\\”,“,”,“|”,“/”](tag:cmcc,hws_ocb,ocb) [- 由任意语种字母、数字、空格和字符组成,字符仅支持_ . : = + - @](tag:hws,hws_hk,ctc,hk_sbc,sbc,dt,g42,hk_g42,hk_tm,hws_eu,tm) - 首尾字符不能为空格。 :type value: str """ @@ -52,7 +52,7 @@ def __init__(self, key=None, value=None): def key(self): """Gets the key of this TagEntity. - 标签键。 - 不能为空。 - 对于同一个实例,Key值唯一。 [- 长度不超过36个字符。](tag:cmcc,hk_tm,hws_eu,hws_ocb,ocb,tm) [- 长度为1~128个字符(中文也可以输入128个字符)。](tag:hws,hws_hk,ctc,hk_sbc,sbc,dt,g42,hk_g42) [- 不能包含“=”,“*”,“<”,“>”,“\\”,“,”,“|”,“/”](tag:cmcc,hk_tm,hws_eu,hws_ocb,ocb,tm) [- 由任意语种字母、数字、空格和字符组成,字符仅支持_ . : = + - @](tag:hws,hws_hk,ctc,hk_sbc,sbc,dt,g42,hk_g42) - 首尾字符不能为空格。 + 标签键。 - 不能为空。 - 对于同一个实例,Key值唯一。 [- 长度不超过36个字符。](tag:cmcc,hws_ocb,ocb) [- 长度为1~128个字符(中文也可以输入128个字符)。](tag:hws,hws_hk,ctc,hk_sbc,sbc,dt,g42,hk_g42,hk_tm,hws_eu,tm) [- 不能包含“=”,“*”,“<”,“>”,“\\”,“,”,“|”,“/”](tag:cmcc,hws_ocb,ocb) [- 由任意语种字母、数字、空格和字符组成,字符仅支持_ . : = + - @](tag:hws,hws_hk,ctc,hk_sbc,sbc,dt,g42,hk_g42,hk_tm,hws_eu,tm) - 首尾字符不能为空格。 :return: The key of this TagEntity. :rtype: str @@ -63,7 +63,7 @@ def key(self): def key(self, key): """Sets the key of this TagEntity. - 标签键。 - 不能为空。 - 对于同一个实例,Key值唯一。 [- 长度不超过36个字符。](tag:cmcc,hk_tm,hws_eu,hws_ocb,ocb,tm) [- 长度为1~128个字符(中文也可以输入128个字符)。](tag:hws,hws_hk,ctc,hk_sbc,sbc,dt,g42,hk_g42) [- 不能包含“=”,“*”,“<”,“>”,“\\”,“,”,“|”,“/”](tag:cmcc,hk_tm,hws_eu,hws_ocb,ocb,tm) [- 由任意语种字母、数字、空格和字符组成,字符仅支持_ . : = + - @](tag:hws,hws_hk,ctc,hk_sbc,sbc,dt,g42,hk_g42) - 首尾字符不能为空格。 + 标签键。 - 不能为空。 - 对于同一个实例,Key值唯一。 [- 长度不超过36个字符。](tag:cmcc,hws_ocb,ocb) [- 长度为1~128个字符(中文也可以输入128个字符)。](tag:hws,hws_hk,ctc,hk_sbc,sbc,dt,g42,hk_g42,hk_tm,hws_eu,tm) [- 不能包含“=”,“*”,“<”,“>”,“\\”,“,”,“|”,“/”](tag:cmcc,hws_ocb,ocb) [- 由任意语种字母、数字、空格和字符组成,字符仅支持_ . : = + - @](tag:hws,hws_hk,ctc,hk_sbc,sbc,dt,g42,hk_g42,hk_tm,hws_eu,tm) - 首尾字符不能为空格。 :param key: The key of this TagEntity. :type key: str @@ -74,7 +74,7 @@ def key(self, key): def value(self): """Gets the value of this TagEntity. - 标签值。 [- 不能为空。](tag:cmcc,hk_tm,hws_eu,hws_ocb,ocb,tm) [- 长度不超过43个字符。](tag:cmcc,hk_tm,hws_eu,hws_ocb,ocb,tm) [- 长度为0~255个字符(中文也可以输入255个字符)。](tag:hws,hws_hk,ctc,hk_sbc,sbc,dt,g42,hk_g42) [- 不能包含“=”,“*”,“<”,“>”,“\\”,“,”,“|”,“/”](tag:cmcc,hk_tm,hws_eu,hws_ocb,ocb,tm) [- 由任意语种字母、数字、空格和字符组成,字符仅支持_ . : = + - @](tag:hws,hws_hk,ctc,hk_sbc,sbc,dt,g42,hk_g42) - 首尾字符不能为空格。 + 标签值。 [- 不能为空。](tag:cmcc,hws_ocb,ocb) [- 长度不超过43个字符。](tag:cmcc,hws_ocb,ocb) [- 长度为0~255个字符(中文也可以输入255个字符)。](tag:hws,hws_hk,ctc,hk_sbc,sbc,dt,g42,hk_g42,hk_tm,hws_eu,tm) [- 不能包含“=”,“*”,“<”,“>”,“\\”,“,”,“|”,“/”](tag:cmcc,hws_ocb,ocb) [- 由任意语种字母、数字、空格和字符组成,字符仅支持_ . : = + - @](tag:hws,hws_hk,ctc,hk_sbc,sbc,dt,g42,hk_g42,hk_tm,hws_eu,tm) - 首尾字符不能为空格。 :return: The value of this TagEntity. :rtype: str @@ -85,7 +85,7 @@ def value(self): def value(self, value): """Sets the value of this TagEntity. - 标签值。 [- 不能为空。](tag:cmcc,hk_tm,hws_eu,hws_ocb,ocb,tm) [- 长度不超过43个字符。](tag:cmcc,hk_tm,hws_eu,hws_ocb,ocb,tm) [- 长度为0~255个字符(中文也可以输入255个字符)。](tag:hws,hws_hk,ctc,hk_sbc,sbc,dt,g42,hk_g42) [- 不能包含“=”,“*”,“<”,“>”,“\\”,“,”,“|”,“/”](tag:cmcc,hk_tm,hws_eu,hws_ocb,ocb,tm) [- 由任意语种字母、数字、空格和字符组成,字符仅支持_ . : = + - @](tag:hws,hws_hk,ctc,hk_sbc,sbc,dt,g42,hk_g42) - 首尾字符不能为空格。 + 标签值。 [- 不能为空。](tag:cmcc,hws_ocb,ocb) [- 长度不超过43个字符。](tag:cmcc,hws_ocb,ocb) [- 长度为0~255个字符(中文也可以输入255个字符)。](tag:hws,hws_hk,ctc,hk_sbc,sbc,dt,g42,hk_g42,hk_tm,hws_eu,tm) [- 不能包含“=”,“*”,“<”,“>”,“\\”,“,”,“|”,“/”](tag:cmcc,hws_ocb,ocb) [- 由任意语种字母、数字、空格和字符组成,字符仅支持_ . : = + - @](tag:hws,hws_hk,ctc,hk_sbc,sbc,dt,g42,hk_g42,hk_tm,hws_eu,tm) - 首尾字符不能为空格。 :param value: The value of this TagEntity. :type value: str diff --git a/huaweicloud-sdk-kafka/requirements.txt b/huaweicloud-sdk-kafka/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-kafka/requirements.txt +++ b/huaweicloud-sdk-kafka/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-kafka/setup.py b/huaweicloud-sdk-kafka/setup.py index c8dea7977d..40e2fde6bf 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-kms/requirements.txt b/huaweicloud-sdk-kms/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-kms/requirements.txt +++ b/huaweicloud-sdk-kms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-kms/setup.py b/huaweicloud-sdk-kms/setup.py index 31c0007a52..bc72ffdf5f 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-koomessage/requirements.txt b/huaweicloud-sdk-koomessage/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-koomessage/requirements.txt +++ b/huaweicloud-sdk-koomessage/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-koomessage/setup.py b/huaweicloud-sdk-koomessage/setup.py index b6230661d3..9411851398 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-kps/requirements.txt b/huaweicloud-sdk-kps/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-kps/requirements.txt +++ b/huaweicloud-sdk-kps/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-kps/setup.py b/huaweicloud-sdk-kps/setup.py index 16c90f704c..4dbfdb4051 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-lakeformation/requirements.txt b/huaweicloud-sdk-lakeformation/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-lakeformation/requirements.txt +++ b/huaweicloud-sdk-lakeformation/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-lakeformation/setup.py b/huaweicloud-sdk-lakeformation/setup.py index 83d27f8a8e..926d02921e 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-live/requirements.txt b/huaweicloud-sdk-live/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-live/requirements.txt +++ b/huaweicloud-sdk-live/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-live/setup.py b/huaweicloud-sdk-live/setup.py index e8fc422a84..9b17fde464 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-lts/requirements.txt b/huaweicloud-sdk-lts/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-lts/requirements.txt +++ b/huaweicloud-sdk-lts/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-lts/setup.py b/huaweicloud-sdk-lts/setup.py index 58f7430547..e573efe189 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-mapds/requirements.txt b/huaweicloud-sdk-mapds/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-mapds/requirements.txt +++ b/huaweicloud-sdk-mapds/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-mapds/setup.py b/huaweicloud-sdk-mapds/setup.py index 8ce8328899..07e445ef55 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-mas/requirements.txt b/huaweicloud-sdk-mas/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-mas/requirements.txt +++ b/huaweicloud-sdk-mas/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-mas/setup.py b/huaweicloud-sdk-mas/setup.py index 06820360e9..78edf6bc07 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-meeting/requirements.txt b/huaweicloud-sdk-meeting/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-meeting/requirements.txt +++ b/huaweicloud-sdk-meeting/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-meeting/setup.py b/huaweicloud-sdk-meeting/setup.py index 9decc07aee..e795a910aa 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-metastudio/requirements.txt b/huaweicloud-sdk-metastudio/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-metastudio/requirements.txt +++ b/huaweicloud-sdk-metastudio/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-metastudio/setup.py b/huaweicloud-sdk-metastudio/setup.py index e297bb52aa..b5f5af5356 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v3/model/audio_input_body.py b/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v3/model/audio_input_body.py index b72fc5a6f9..f0e105ed64 100644 --- a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v3/model/audio_input_body.py +++ b/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v3/model/audio_input_body.py @@ -17,28 +17,35 @@ class AudioInputBody: sensitive_list = [] openapi_types = { - 'url': 'str' + 'url': 'str', + 'language': 'str' } attribute_map = { - 'url': 'url' + 'url': 'url', + 'language': 'language' } - def __init__(self, url=None): + def __init__(self, url=None, language=None): """AudioInputBody The model defined in huaweicloud sdk :param url: 音频url地址。 :type url: str + :param language: 支持的语言,默认为zh,zh:中文 + :type language: str """ self._url = None + self._language = None self.discriminator = None self.url = url + if language is not None: + self.language = language @property def url(self): @@ -62,6 +69,28 @@ def url(self, url): """ self._url = url + @property + def language(self): + """Gets the language of this AudioInputBody. + + 支持的语言,默认为zh,zh:中文 + + :return: The language of this AudioInputBody. + :rtype: str + """ + return self._language + + @language.setter + def language(self, language): + """Sets the language of this AudioInputBody. + + 支持的语言,默认为zh,zh:中文 + + :param language: The language of this AudioInputBody. + :type language: str + """ + self._language = language + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v3/model/audio_stream_create_request_data.py b/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v3/model/audio_stream_create_request_data.py index 6852c6d428..0aaabe9e67 100644 --- a/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v3/model/audio_stream_create_request_data.py +++ b/huaweicloud-sdk-moderation/huaweicloudsdkmoderation/v3/model/audio_stream_create_request_data.py @@ -17,28 +17,35 @@ class AudioStreamCreateRequestData: sensitive_list = [] openapi_types = { - 'url': 'str' + 'url': 'str', + 'language': 'str' } attribute_map = { - 'url': 'url' + 'url': 'url', + 'language': 'language' } - def __init__(self, url=None): + def __init__(self, url=None, language=None): """AudioStreamCreateRequestData The model defined in huaweicloud sdk :param url: 音频流url地址,支持rtmp、rtmps、hls、http、https等主流协议。 :type url: str + :param language: 指定音频流中语种类型 zh: 中文,默认值为zh + :type language: str """ self._url = None + self._language = None self.discriminator = None self.url = url + if language is not None: + self.language = language @property def url(self): @@ -62,6 +69,28 @@ def url(self, url): """ self._url = url + @property + def language(self): + """Gets the language of this AudioStreamCreateRequestData. + + 指定音频流中语种类型 zh: 中文,默认值为zh + + :return: The language of this AudioStreamCreateRequestData. + :rtype: str + """ + return self._language + + @language.setter + def language(self, language): + """Sets the language of this AudioStreamCreateRequestData. + + 指定音频流中语种类型 zh: 中文,默认值为zh + + :param language: The language of this AudioStreamCreateRequestData. + :type language: str + """ + self._language = language + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-moderation/requirements.txt b/huaweicloud-sdk-moderation/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-moderation/requirements.txt +++ b/huaweicloud-sdk-moderation/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-moderation/setup.py b/huaweicloud-sdk-moderation/setup.py index 460a4c2981..ea71ad2e1e 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-mpc/requirements.txt b/huaweicloud-sdk-mpc/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-mpc/requirements.txt +++ b/huaweicloud-sdk-mpc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-mpc/setup.py b/huaweicloud-sdk-mpc/setup.py index 81d478f121..137760deec 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-mrs/requirements.txt b/huaweicloud-sdk-mrs/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-mrs/requirements.txt +++ b/huaweicloud-sdk-mrs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-mrs/setup.py b/huaweicloud-sdk-mrs/setup.py index c5b665af7b..5593e41ee4 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-msgsms/requirements.txt b/huaweicloud-sdk-msgsms/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-msgsms/requirements.txt +++ b/huaweicloud-sdk-msgsms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-msgsms/setup.py b/huaweicloud-sdk-msgsms/setup.py index a7a29443af..efcb15f539 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-mssi/requirements.txt b/huaweicloud-sdk-mssi/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-mssi/requirements.txt +++ b/huaweicloud-sdk-mssi/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-mssi/setup.py b/huaweicloud-sdk-mssi/setup.py index 5c3adea102..437403d02f 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-nat/requirements.txt b/huaweicloud-sdk-nat/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-nat/requirements.txt +++ b/huaweicloud-sdk-nat/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-nat/setup.py b/huaweicloud-sdk-nat/setup.py index d23c9acfff..8201acab47 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-nlp/requirements.txt b/huaweicloud-sdk-nlp/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-nlp/requirements.txt +++ b/huaweicloud-sdk-nlp/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-nlp/setup.py b/huaweicloud-sdk-nlp/setup.py index babb751233..a80586ba68 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-obs/requirements.txt b/huaweicloud-sdk-obs/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-obs/requirements.txt +++ b/huaweicloud-sdk-obs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-obs/setup.py b/huaweicloud-sdk-obs/setup.py index aaa77c8236..1b987ea863 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ocr/requirements.txt b/huaweicloud-sdk-ocr/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-ocr/requirements.txt +++ b/huaweicloud-sdk-ocr/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-ocr/setup.py b/huaweicloud-sdk-ocr/setup.py index 212c2e6449..286f15dc68 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-octopus/requirements.txt b/huaweicloud-sdk-octopus/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-octopus/requirements.txt +++ b/huaweicloud-sdk-octopus/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-octopus/setup.py b/huaweicloud-sdk-octopus/setup.py index 698390e693..a84046765a 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-oms/requirements.txt b/huaweicloud-sdk-oms/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-oms/requirements.txt +++ b/huaweicloud-sdk-oms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-oms/setup.py b/huaweicloud-sdk-oms/setup.py index fc19dc4338..8e4b76c348 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-optverse/requirements.txt b/huaweicloud-sdk-optverse/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-optverse/requirements.txt +++ b/huaweicloud-sdk-optverse/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-optverse/setup.py b/huaweicloud-sdk-optverse/setup.py index e582d26262..2b5bdfbc39 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-organizations/requirements.txt b/huaweicloud-sdk-organizations/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-organizations/requirements.txt +++ b/huaweicloud-sdk-organizations/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-organizations/setup.py b/huaweicloud-sdk-organizations/setup.py index 772c4a10f3..3f88e2239d 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-orgid/requirements.txt b/huaweicloud-sdk-orgid/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-orgid/requirements.txt +++ b/huaweicloud-sdk-orgid/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-orgid/setup.py b/huaweicloud-sdk-orgid/setup.py index 8c1f1c5923..979734300a 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-oroas/requirements.txt b/huaweicloud-sdk-oroas/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-oroas/requirements.txt +++ b/huaweicloud-sdk-oroas/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-oroas/setup.py b/huaweicloud-sdk-oroas/setup.py index 3b9aebd63c..70c0edc96e 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-osm/requirements.txt b/huaweicloud-sdk-osm/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-osm/requirements.txt +++ b/huaweicloud-sdk-osm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-osm/setup.py b/huaweicloud-sdk-osm/setup.py index 034ede7208..fc2d80db21 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-pangulargemodels/requirements.txt b/huaweicloud-sdk-pangulargemodels/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-pangulargemodels/requirements.txt +++ b/huaweicloud-sdk-pangulargemodels/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-pangulargemodels/setup.py b/huaweicloud-sdk-pangulargemodels/setup.py index 84ab2919c4..76a89d6849 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-projectman/requirements.txt b/huaweicloud-sdk-projectman/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-projectman/requirements.txt +++ b/huaweicloud-sdk-projectman/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-projectman/setup.py b/huaweicloud-sdk-projectman/setup.py index 029694f0d1..86e0b4e381 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-rabbitmq/requirements.txt b/huaweicloud-sdk-rabbitmq/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-rabbitmq/requirements.txt +++ b/huaweicloud-sdk-rabbitmq/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-rabbitmq/setup.py b/huaweicloud-sdk-rabbitmq/setup.py index aa022f0b52..a06cbd7ec1 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ram/requirements.txt b/huaweicloud-sdk-ram/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-ram/requirements.txt +++ b/huaweicloud-sdk-ram/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-ram/setup.py b/huaweicloud-sdk-ram/setup.py index 449c94c92b..1bf43a964c 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-rds/requirements.txt b/huaweicloud-sdk-rds/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-rds/requirements.txt +++ b/huaweicloud-sdk-rds/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-rds/setup.py b/huaweicloud-sdk-rds/setup.py index 3058d846c1..4cb717d8a4 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-res/requirements.txt b/huaweicloud-sdk-res/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-res/requirements.txt +++ b/huaweicloud-sdk-res/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-res/setup.py b/huaweicloud-sdk-res/setup.py index 52b4f6d8d2..4db520c717 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-rgc/requirements.txt b/huaweicloud-sdk-rgc/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-rgc/requirements.txt +++ b/huaweicloud-sdk-rgc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-rgc/setup.py b/huaweicloud-sdk-rgc/setup.py index 8b98498c13..58e8242a6e 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-rms/requirements.txt b/huaweicloud-sdk-rms/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-rms/requirements.txt +++ b/huaweicloud-sdk-rms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-rms/setup.py b/huaweicloud-sdk-rms/setup.py index f2ecb70737..e667f0b8d6 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-rocketmq/requirements.txt b/huaweicloud-sdk-rocketmq/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-rocketmq/requirements.txt +++ b/huaweicloud-sdk-rocketmq/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-rocketmq/setup.py b/huaweicloud-sdk-rocketmq/setup.py index c040078073..f78934797d 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-roma/requirements.txt b/huaweicloud-sdk-roma/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-roma/requirements.txt +++ b/huaweicloud-sdk-roma/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-roma/setup.py b/huaweicloud-sdk-roma/setup.py index ecd9c6cc0e..f7a4f24214 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-sa/requirements.txt b/huaweicloud-sdk-sa/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-sa/requirements.txt +++ b/huaweicloud-sdk-sa/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-sa/setup.py b/huaweicloud-sdk-sa/setup.py index f33a47ef12..aa75a210b9 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-scm/requirements.txt b/huaweicloud-sdk-scm/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-scm/requirements.txt +++ b/huaweicloud-sdk-scm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-scm/setup.py b/huaweicloud-sdk-scm/setup.py index 5122cbcbf8..c5bbc3d127 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-sdrs/requirements.txt b/huaweicloud-sdk-sdrs/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-sdrs/requirements.txt +++ b/huaweicloud-sdk-sdrs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-sdrs/setup.py b/huaweicloud-sdk-sdrs/setup.py index e9c20cd1c2..5bfd1ccbba 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-secmaster/requirements.txt b/huaweicloud-sdk-secmaster/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-secmaster/requirements.txt +++ b/huaweicloud-sdk-secmaster/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-secmaster/setup.py b/huaweicloud-sdk-secmaster/setup.py index 0c1c59595b..3bfbb2f350 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-servicestage/requirements.txt b/huaweicloud-sdk-servicestage/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-servicestage/requirements.txt +++ b/huaweicloud-sdk-servicestage/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-servicestage/setup.py b/huaweicloud-sdk-servicestage/setup.py index 02a0c3bd9d..e11920159e 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-sfsturbo/requirements.txt b/huaweicloud-sdk-sfsturbo/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-sfsturbo/requirements.txt +++ b/huaweicloud-sdk-sfsturbo/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-sfsturbo/setup.py b/huaweicloud-sdk-sfsturbo/setup.py index fce208b855..bd62102914 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-sis/requirements.txt b/huaweicloud-sdk-sis/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-sis/requirements.txt +++ b/huaweicloud-sdk-sis/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-sis/setup.py b/huaweicloud-sdk-sis/setup.py index 1842429a3f..5081d438ba 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-smn/requirements.txt b/huaweicloud-sdk-smn/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-smn/requirements.txt +++ b/huaweicloud-sdk-smn/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-smn/setup.py b/huaweicloud-sdk-smn/setup.py index 34a54d5946..a14a924649 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-sms/requirements.txt b/huaweicloud-sdk-sms/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-sms/requirements.txt +++ b/huaweicloud-sdk-sms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-sms/setup.py b/huaweicloud-sdk-sms/setup.py index 7b16cbc3b0..bb1e03ef64 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-sts/requirements.txt b/huaweicloud-sdk-sts/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-sts/requirements.txt +++ b/huaweicloud-sdk-sts/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-sts/setup.py b/huaweicloud-sdk-sts/setup.py index b80acc2ab5..77a22814ae 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-swr/requirements.txt b/huaweicloud-sdk-swr/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-swr/requirements.txt +++ b/huaweicloud-sdk-swr/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-swr/setup.py b/huaweicloud-sdk-swr/setup.py index a9a3dabbf7..7e032c0e14 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-tics/requirements.txt b/huaweicloud-sdk-tics/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-tics/requirements.txt +++ b/huaweicloud-sdk-tics/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-tics/setup.py b/huaweicloud-sdk-tics/setup.py index 8f17db7228..8f89b15ad7 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-tms/requirements.txt b/huaweicloud-sdk-tms/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-tms/requirements.txt +++ b/huaweicloud-sdk-tms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-tms/setup.py b/huaweicloud-sdk-tms/setup.py index f175b3f0b2..dfd79a8ea2 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ugo/requirements.txt b/huaweicloud-sdk-ugo/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-ugo/requirements.txt +++ b/huaweicloud-sdk-ugo/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-ugo/setup.py b/huaweicloud-sdk-ugo/setup.py index d4a809bd53..6620e3ec2e 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-vas/requirements.txt b/huaweicloud-sdk-vas/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-vas/requirements.txt +++ b/huaweicloud-sdk-vas/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-vas/setup.py b/huaweicloud-sdk-vas/setup.py index e6d3e998e4..9efa5c351c 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-vcm/requirements.txt b/huaweicloud-sdk-vcm/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-vcm/requirements.txt +++ b/huaweicloud-sdk-vcm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-vcm/setup.py b/huaweicloud-sdk-vcm/setup.py index cc700a5550..3a61b3a17d 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-vod/requirements.txt b/huaweicloud-sdk-vod/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-vod/requirements.txt +++ b/huaweicloud-sdk-vod/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-vod/setup.py b/huaweicloud-sdk-vod/setup.py index 2206c7d4ae..ff9f4cb8c3 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-vpc/requirements.txt b/huaweicloud-sdk-vpc/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-vpc/requirements.txt +++ b/huaweicloud-sdk-vpc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-vpc/setup.py b/huaweicloud-sdk-vpc/setup.py index 9ebdaaf482..da509ed7f5 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-vpcep/requirements.txt b/huaweicloud-sdk-vpcep/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-vpcep/requirements.txt +++ b/huaweicloud-sdk-vpcep/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-vpcep/setup.py b/huaweicloud-sdk-vpcep/setup.py index fd419be14e..edcef03d0b 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/region/vpn_region.py b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/region/vpn_region.py index 94795bfa13..3520705b85 100644 --- a/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/region/vpn_region.py +++ b/huaweicloud-sdk-vpn/huaweicloudsdkvpn/v5/region/vpn_region.py @@ -48,6 +48,8 @@ class VpnRegion: "https://vpn.cn-east-5.myhuaweicloud.com") AF_SOUTH_1 = Region("af-south-1", "https://vpn.af-south-1.myhuaweicloud.com") + RU_MOSCOW_1 = Region("ru-moscow-1", + "https://vpn.ru-moscow-1.myhuaweicloud.com") static_fields = { "cn-north-4": CN_NORTH_4, @@ -71,6 +73,7 @@ class VpnRegion: "me-east-1": ME_EAST_1, "cn-east-5": CN_EAST_5, "af-south-1": AF_SOUTH_1, + "ru-moscow-1": RU_MOSCOW_1, } @classmethod diff --git a/huaweicloud-sdk-vpn/requirements.txt b/huaweicloud-sdk-vpn/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-vpn/requirements.txt +++ b/huaweicloud-sdk-vpn/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-vpn/setup.py b/huaweicloud-sdk-vpn/setup.py index 036e736e1e..a59ed21b14 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-waf/requirements.txt b/huaweicloud-sdk-waf/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-waf/requirements.txt +++ b/huaweicloud-sdk-waf/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-waf/setup.py b/huaweicloud-sdk-waf/setup.py index a65548a24a..7861d3f18f 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-workspace/requirements.txt b/huaweicloud-sdk-workspace/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-workspace/requirements.txt +++ b/huaweicloud-sdk-workspace/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-workspace/setup.py b/huaweicloud-sdk-workspace/setup.py index 6bc4100f51..783661a85e 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-workspaceapp/requirements.txt b/huaweicloud-sdk-workspaceapp/requirements.txt index f3cc979f18..3920a13aae 100644 --- a/huaweicloud-sdk-workspaceapp/requirements.txt +++ b/huaweicloud-sdk-workspaceapp/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.101 \ No newline at end of file +huaweicloudsdkcore >= 3.1.102 \ No newline at end of file diff --git a/huaweicloud-sdk-workspaceapp/setup.py b/huaweicloud-sdk-workspaceapp/setup.py index 362017341e..6b59d9f261 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.101" +VERSION = "3.1.102" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.101"] +REQUIRES = ["huaweicloudsdkcore>=3.1.102"] OPTIONS = { 'bdist_wheel': {