bce-python-sdk 0.9.71__tar.gz → 0.9.72__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (212) hide show
  1. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/PKG-INFO +1 -1
  2. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/__init__.py +1 -1
  3. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/bce_client_configuration.py +4 -0
  4. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/http/http_headers.py +2 -0
  5. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/bcc/bcc_client.py +45 -2
  6. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/bos/bos_client.py +33 -7
  7. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/bos/bos_handler.py +4 -0
  8. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/bos/common.py +2 -0
  9. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/et/et_client.py +36 -21
  10. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/bce_python_sdk.egg-info/PKG-INFO +1 -1
  11. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/README.txt +0 -0
  12. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/auth/__init__.py +0 -0
  13. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/auth/bce_credentials.py +0 -0
  14. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/auth/bce_v1_signer.py +0 -0
  15. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/bce_base_client.py +0 -0
  16. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/bce_response.py +0 -0
  17. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/compat.py +0 -0
  18. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/exception.py +0 -0
  19. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/http/__init__.py +0 -0
  20. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/http/bce_http_client.py +0 -0
  21. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/http/handler.py +0 -0
  22. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/http/http_content_types.py +0 -0
  23. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/http/http_methods.py +0 -0
  24. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/protocol.py +0 -0
  25. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/region.py +0 -0
  26. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/retry/__init__.py +0 -0
  27. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/retry/retry_policy.py +0 -0
  28. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/__init__.py +0 -0
  29. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/aihc/__init__.py +0 -0
  30. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/aihc/aihc_client.py +0 -0
  31. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/aihc/aihc_handler.py +0 -0
  32. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/aihc/aihc_model.py +0 -0
  33. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/aihc/base/__init__.py +0 -0
  34. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/aihc/base/aihc_base_client.py +0 -0
  35. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/aihc/base/aihc_common.py +0 -0
  36. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/aihc/modules/__init__.py +0 -0
  37. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/aihc/modules/dataset/__init__.py +0 -0
  38. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/aihc/modules/dataset/dataset_client.py +0 -0
  39. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/aihc/modules/dataset/dataset_model.py +0 -0
  40. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/aihc/modules/dev_instance/__init__.py +0 -0
  41. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/aihc/modules/dev_instance/dev_instance_client.py +0 -0
  42. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/aihc/modules/job/__init__.py +0 -0
  43. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/aihc/modules/job/job_client.py +0 -0
  44. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/aihc/modules/job/job_model.py +0 -0
  45. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/aihc/modules/model/__init__.py +0 -0
  46. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/aihc/modules/model/model_client.py +0 -0
  47. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/aihc/modules/model/model_model.py +0 -0
  48. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/aihc/modules/resource_pool/__init__.py +0 -0
  49. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/aihc/modules/resource_pool/resource_pool_client.py +0 -0
  50. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/aihc/modules/service/__init__.py +0 -0
  51. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/aihc/modules/service/service_client.py +0 -0
  52. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/aihc/modules/service/service_model.py +0 -0
  53. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/autoscaling/__init__.py +0 -0
  54. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/autoscaling/as_client.py +0 -0
  55. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/autoscaling/as_handler.py +0 -0
  56. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/autoscaling/as_model.py +0 -0
  57. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/bbc/__init__.py +0 -0
  58. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/bbc/bbc_client.py +0 -0
  59. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/bbc/bbc_model.py +0 -0
  60. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/bcc/__init__.py +0 -0
  61. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/bcc/bcc_model.py +0 -0
  62. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/bcc/fpga_card_type.py +0 -0
  63. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/bcc/gpu_card_type.py +0 -0
  64. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/bcm/__init__.py +0 -0
  65. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/bcm/bcm_client.py +0 -0
  66. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/bcm/bcm_handler.py +0 -0
  67. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/bcm/bcm_model.py +0 -0
  68. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/bes/__init__.py +0 -0
  69. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/bes/bes_client.py +0 -0
  70. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/bes/bes_model.py +0 -0
  71. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/blb/__init__.py +0 -0
  72. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/blb/app_blb_client.py +0 -0
  73. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/blb/blb_client.py +0 -0
  74. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/blb/user_service_client.py +0 -0
  75. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/bls/__init__.py +0 -0
  76. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/bls/bls_client.py +0 -0
  77. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/bls/bls_handler.py +0 -0
  78. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/bls/bls_model.py +0 -0
  79. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/bmr/__init__.py +0 -0
  80. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/bmr/bmr_client.py +0 -0
  81. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/bos/__init__.py +0 -0
  82. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/bos/canned_acl.py +0 -0
  83. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/bos/storage_class.py +0 -0
  84. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/bts/__init__.py +0 -0
  85. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/bts/bts_client.py +0 -0
  86. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/bts/model.py +0 -0
  87. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/bts/util.py +0 -0
  88. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/ca/__init__.py +0 -0
  89. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/ca/ca_client.py +0 -0
  90. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/ca/ca_handler.py +0 -0
  91. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/ca/ca_model.py +0 -0
  92. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/cdn/__init__.py +0 -0
  93. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/cdn/cdn_client.py +0 -0
  94. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/cdn/cdn_stats_param.py +0 -0
  95. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/cert/__init__.py +0 -0
  96. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/cert/cert_client.py +0 -0
  97. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/cert/cert_model.py +0 -0
  98. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/cfc/__init__.py +0 -0
  99. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/cfc/cfc_client.py +0 -0
  100. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/cfc/cfc_handler.py +0 -0
  101. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/cfc/models.py +0 -0
  102. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/cloudflow/__init__.py +0 -0
  103. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/cloudflow/cloudflow_client.py +0 -0
  104. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/cloudflow/cloudflow_model.py +0 -0
  105. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/csn/__init__.py +0 -0
  106. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/csn/csn_api.py +0 -0
  107. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/csn/csn_client.py +0 -0
  108. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/csn/csn_model.py +0 -0
  109. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/ddc/__init__.py +0 -0
  110. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/ddc/ddc_client.py +0 -0
  111. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/dns/__init__.py +0 -0
  112. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/dns/api/__init__.py +0 -0
  113. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/dns/api/dns_api.py +0 -0
  114. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/dns/dns_client.py +0 -0
  115. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/dumap/__init__.py +0 -0
  116. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/dumap/dumap_client.py +0 -0
  117. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/eip/__init__.py +0 -0
  118. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/eip/eip_bp_client.py +0 -0
  119. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/eip/eip_client.py +0 -0
  120. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/eip/eip_group_client.py +0 -0
  121. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/eip/eip_group_model.py +0 -0
  122. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/eip/eip_tp_client.py +0 -0
  123. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/eip/model.py +0 -0
  124. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/endpoint/__init__.py +0 -0
  125. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/endpoint/endpoint_client.py +0 -0
  126. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/endpoint/model.py +0 -0
  127. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/eni/__init__.py +0 -0
  128. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/eni/eni_client.py +0 -0
  129. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/eni/eni_model.py +0 -0
  130. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/esg/__init__.py +0 -0
  131. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/esg/esg_client.py +0 -0
  132. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/esg/esg_model.py +0 -0
  133. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/et/__init__.py +0 -0
  134. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/et/model.py +0 -0
  135. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/etGateway/__init__.py +0 -0
  136. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/etGateway/et_gateway_client.py +0 -0
  137. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/havip/havip_client.py +0 -0
  138. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/iam/__init__.py +0 -0
  139. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/iam/iam_client.py +0 -0
  140. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/infinite/__init__.py +0 -0
  141. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/infinite/infinite_client.py +0 -0
  142. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/ipv6gateway/__init__.py +0 -0
  143. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/ipv6gateway/ipv6gateway_client.py +0 -0
  144. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/ipv6gateway/ipv6gateway_model.py +0 -0
  145. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/kms/__init__.py +0 -0
  146. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/kms/keyspec_class.py +0 -0
  147. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/kms/kms_client.py +0 -0
  148. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/kms/origin_class.py +0 -0
  149. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/kms/protectedby_class.py +0 -0
  150. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/kms/publickeyencoding_class.py +0 -0
  151. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/lbdc/__init__.py +0 -0
  152. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/lbdc/lbdc_client.py +0 -0
  153. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/lbdc/model.py +0 -0
  154. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/localdns/__init__.py +0 -0
  155. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/localdns/api/__init__.py +0 -0
  156. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/localdns/api/ld_api.py +0 -0
  157. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/localdns/ld_client.py +0 -0
  158. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/media/__init__.py +0 -0
  159. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/media/media_client.py +0 -0
  160. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/media/media_handler.py +0 -0
  161. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/mms/__init__.py +0 -0
  162. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/mms/mms_client.py +0 -0
  163. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/mvs/__init__.py +0 -0
  164. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/mvs/mvs_client.py +0 -0
  165. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/oos/__init__.py +0 -0
  166. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/oos/oos_client.py +0 -0
  167. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/oos/oos_model.py +0 -0
  168. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/probe/__init__.py +0 -0
  169. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/probe/probe_client.py +0 -0
  170. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/rds/__init__.py +0 -0
  171. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/rds/rds_client.py +0 -0
  172. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/rds/rds_model.py +0 -0
  173. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/route/__init__.py +0 -0
  174. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/route/route_client.py +0 -0
  175. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/route/route_model.py +0 -0
  176. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/scs/__init__.py +0 -0
  177. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/scs/model.py +0 -0
  178. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/scs/scs_client.py +0 -0
  179. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/sms/__init__.py +0 -0
  180. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/sms/model.py +0 -0
  181. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/sms/sms_client.py +0 -0
  182. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/sts/__init__.py +0 -0
  183. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/sts/sts_client.py +0 -0
  184. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/subnet/__init__.py +0 -0
  185. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/subnet/subnet_client.py +0 -0
  186. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/tsdb/__init__.py +0 -0
  187. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/tsdb/tsdb_admin_client.py +0 -0
  188. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/tsdb/tsdb_client.py +0 -0
  189. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/tsdb/tsdb_handler.py +0 -0
  190. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/vca/__init__.py +0 -0
  191. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/vca/vca_client.py +0 -0
  192. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/vcr/__init__.py +0 -0
  193. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/vcr/vcr_client.py +0 -0
  194. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/vpc/__init__.py +0 -0
  195. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/vpc/acl_client.py +0 -0
  196. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/vpc/nat_client.py +0 -0
  197. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/vpc/nat_model.py +0 -0
  198. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/vpc/peerconn_client.py +0 -0
  199. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/vpc/peerconn_model.py +0 -0
  200. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/vpc/template_client.py +0 -0
  201. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/vpc/template_model.py +0 -0
  202. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/vpc/vpc_client.py +0 -0
  203. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/vpn/__init__.py +0 -0
  204. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/vpn/vpn_client.py +0 -0
  205. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/services/vpn/vpn_model.py +0 -0
  206. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/baidubce/utils.py +0 -0
  207. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/bce_python_sdk.egg-info/SOURCES.txt +0 -0
  208. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/bce_python_sdk.egg-info/dependency_links.txt +0 -0
  209. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/bce_python_sdk.egg-info/requires.txt +0 -0
  210. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/bce_python_sdk.egg-info/top_level.txt +0 -0
  211. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/setup.cfg +0 -0
  212. {bce_python_sdk-0.9.71 → bce_python_sdk-0.9.72}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bce-python-sdk
3
- Version: 0.9.71
3
+ Version: 0.9.72
4
4
  Summary: BCE SDK for python
5
5
  Home-page: http://bce.baidu.com
6
6
  Author:
@@ -18,7 +18,7 @@ from builtins import bytes
18
18
  from . import protocol
19
19
 
20
20
 
21
- SDK_VERSION = b'0.9.71'
21
+ SDK_VERSION = b'0.9.72'
22
22
  DEFAULT_SERVICE_DOMAIN = b'bcebos.com'
23
23
  URL_PREFIX = b'/v1'
24
24
  DEFAULT_ENCODING = 'UTF-8'
@@ -43,6 +43,7 @@ class BceClientConfiguration(object):
43
43
  path_style_enable=False,
44
44
  auto_follow_redirect=False,
45
45
  under_line_headers=True,
46
+ request_payer=False,
46
47
  ):
47
48
  self.credentials = credentials
48
49
  self.endpoint = compat.convert_to_bytes(endpoint) if endpoint is not None else endpoint
@@ -63,6 +64,9 @@ class BceClientConfiguration(object):
63
64
  self.backup_endpoint = compat.convert_to_bytes(backup_endpoint) if backup_endpoint is not None else backup_endpoint
64
65
  self.auto_follow_redirect = auto_follow_redirect
65
66
  self.under_line_headers = under_line_headers
67
+ if request_payer is not None and not isinstance(request_payer, bool):
68
+ raise TypeError(b'request_payer must be a bool value')
69
+ self.request_payer = request_payer
66
70
 
67
71
  def merge_non_none_values(self, other):
68
72
  """
@@ -126,6 +126,8 @@ BOS_TAG_LIST = b"x-bce-tag-list"
126
126
 
127
127
  BOS_PROCESS = b"x-bce-process"
128
128
 
129
+ BOS_REQUEST_PAYER = b"x-bce-request-payer"
130
+
129
131
  BOS_BASE_ALLOW_HEADERS = set([BOS_TRAFFIC_LIMIT, BOS_VERSIONING, BOS_TAGGING, BOS_PROCESS, BOS_OBJECT_EXPIRES])
130
132
 
131
133
  BOS_IF_MATCH = b"If-Match"
@@ -1093,6 +1093,7 @@ class BccClient(bce_base_client.BceBaseClient):
1093
1093
 
1094
1094
  def list_instances(self, marker=None, max_keys=None, internal_ip=None, dedicated_host_id=None,
1095
1095
  zone_name=None, instance_ids=None, instance_names=None, cds_ids=None, ehc_cluster_id=None,
1096
+ show_rdma_topo=None,
1096
1097
  deployset_ids=None, security_group_ids=None, payment_timing=None, status=None, tags=None,
1097
1098
  vpc_id=None, private_ips=None, ipv6_addresses=None, auto_renew=None, fuzzy_instance_name=None,
1098
1099
  config=None):
@@ -1139,6 +1140,10 @@ class BccClient(bce_base_client.BceBaseClient):
1139
1140
  get instance list filtered by id of ehc cluster
1140
1141
  :type ehc_cluster_id: string
1141
1142
 
1143
+ :param show_rdma_topo:
1144
+ filter instance list with rdma topology info
1145
+ :type show_rdma_topo: boolean
1146
+
1142
1147
  :param deployset_ids:
1143
1148
  filter instance list with multiple deployset ids join by ','
1144
1149
  :type deployset_ids: string
@@ -1205,6 +1210,8 @@ class BccClient(bce_base_client.BceBaseClient):
1205
1210
  params['cdsIds'] = cds_ids
1206
1211
  if ehc_cluster_id is not None:
1207
1212
  params['ehcClusterId'] = ehc_cluster_id
1213
+ if show_rdma_topo is not None:
1214
+ params['showRdmaTopo'] = show_rdma_topo
1208
1215
  if deployset_ids is not None:
1209
1216
  params['deploySetIds'] = deployset_ids
1210
1217
  if security_group_ids is not None:
@@ -2059,7 +2066,7 @@ class BccClient(bce_base_client.BceBaseClient):
2059
2066
  description=None, renew_time_unit=None, renew_time=None,
2060
2067
  cluster_id=None, relation_tag=False,
2061
2068
  tags=None, auto_snapshot_policy=None,
2062
- client_token=None, config=None, charge_type=None):
2069
+ client_token=None, config=None, charge_type=None, enable_delete_protection=None):
2063
2070
  """
2064
2071
  Create a volume with the specified options.
2065
2072
  You can use this method to create a new empty volume by specified options
@@ -2145,6 +2152,10 @@ class BccClient(bce_base_client.BceBaseClient):
2145
2152
  If the instance is post paid, create a post paid CDS
2146
2153
  :type charge_type: menu{'Prepaid', 'Postpaid'}
2147
2154
 
2155
+ :param enable_delete_protection:
2156
+ The optional parameter to specify whether to enable delete protection.
2157
+ :type enable_delete_protection: boolean
2158
+
2148
2159
  :return:
2149
2160
  :rtype baidubce.bce_response.BceResponse
2150
2161
  """
@@ -2189,6 +2200,8 @@ class BccClient(bce_base_client.BceBaseClient):
2189
2200
  body['instanceId'] = instance_id
2190
2201
  if charge_type is not None:
2191
2202
  body['chargeType'] = charge_type
2203
+ if enable_delete_protection is not None:
2204
+ body['enableDeleteProtection'] = enable_delete_protection
2192
2205
  return self._send_request(http_methods.POST, path, json.dumps(body),
2193
2206
  params=params, config=config)
2194
2207
 
@@ -4151,7 +4164,7 @@ class BccClient(bce_base_client.BceBaseClient):
4151
4164
  hosteye_type=None, res_group_id=None, enable_ht=None, data_partition_type=None,
4152
4165
  root_partition_type=None, file_systems=None, disable_root_disk_serial=None,
4153
4166
  internal_ips=None, network_purchase_type=None, is_keep_image_login=None,
4154
- reserved_instance=None, is_eip_auto_related_delete=None):
4167
+ reserved_instance=None, is_eip_auto_related_delete=None, enable_delete_protection=None):
4155
4168
  """
4156
4169
  Create a bcc Instance with the specified options.
4157
4170
  You must fill the field of clientToken,which is especially for keeping idempotent.
@@ -4419,6 +4432,10 @@ class BccClient(bce_base_client.BceBaseClient):
4419
4432
  The default value is False.
4420
4433
  :type is_eip_auto_related_delete: boolean
4421
4434
 
4435
+ :param enable_delete_protection:
4436
+ The optional parameter to specify whether to enable delete protection.
4437
+ :type enable_delete_protection: boolean
4438
+
4422
4439
  :return:
4423
4440
  :rtype baidubce.bce_response.BceResponse
4424
4441
  """
@@ -4546,6 +4563,8 @@ class BccClient(bce_base_client.BceBaseClient):
4546
4563
  body['keepImageLogin'] = is_keep_image_login
4547
4564
  if reserved_instance is not None:
4548
4565
  body['reservedInstance'] = reserved_instance
4566
+ if enable_delete_protection is not None:
4567
+ body['enableDeleteProtection'] = enable_delete_protection
4549
4568
  return self._send_request(http_methods.POST, path, json.dumps(body),
4550
4569
  params=params, config=config)
4551
4570
 
@@ -7235,6 +7254,30 @@ class BccClient(bce_base_client.BceBaseClient):
7235
7254
  return self._send_request(http_methods.POST, path, json.dumps(body),
7236
7255
  params=params, config=config)
7237
7256
 
7257
+ def modify_volume_delete_protection(self, volume_ids, enable_delete_protection, client_token=None, config=None):
7258
+ """
7259
+ modify_volume_delete_protection
7260
+
7261
+ :param volume_ids:
7262
+ A list of volume ids.
7263
+ :type volume_ids: list<bcc_model.VolumeIdModel>
7264
+
7265
+ :param enable_delete_protection:
7266
+ enable_delete_protection
7267
+ :type enable_delete_protection: bool
7268
+ """
7269
+ path = b'/volume/modifyDeleteProtection'
7270
+ params = {}
7271
+ if client_token is None:
7272
+ params['clientToken'] = generate_client_token()
7273
+ else:
7274
+ params['clientToken'] = client_token
7275
+ body = {
7276
+ 'volumeIds': volume_ids,
7277
+ 'enableDeleteProtection': enable_delete_protection
7278
+ }
7279
+ return self._send_request(http_methods.POST, path, json.dumps(body), params=params, config=config)
7280
+
7238
7281
  def create_snapshot_share(self, snapshot_id, account_ids, client_token=None, config=None):
7239
7282
  """
7240
7283
  Create a share link for the specified snapshot.
@@ -17,6 +17,7 @@ This module provides a client class for BOS.
17
17
  import io
18
18
  import copy
19
19
  import http.client
20
+ import math
20
21
  import os
21
22
  import json
22
23
  import logging
@@ -45,6 +46,7 @@ from baidubce.http import http_headers
45
46
  from baidubce.http import http_methods
46
47
  from baidubce.services import bos
47
48
  from baidubce.services.bos import bos_handler
49
+ from baidubce.services.bos import common
48
50
  from baidubce.services.bos import storage_class
49
51
  from baidubce.utils import required
50
52
  from baidubce import compat
@@ -732,8 +734,10 @@ class BosClient(BceBaseClient):
732
734
  raise ValueError('generate url the key param error!')
733
735
 
734
736
  config = self._merge_config(config, bucket_name)
735
- headers = headers or {}
736
- params = params or {}
737
+ headers = dict(headers) if headers else {}
738
+ params = dict(params) if params else {}
739
+ params.pop(http_headers.AUTHORIZATION.lower(), None)
740
+ params.pop(http_headers.AUTHORIZATION, None)
737
741
 
738
742
  # specified protocol in endpoint > protocal > default protocol in config
739
743
  if protocol is not None:
@@ -755,6 +759,9 @@ class BosClient(BceBaseClient):
755
759
  full_host += b':' + compat.convert_to_bytes(endpoint_port)
756
760
  headers[http_headers.HOST] = full_host
757
761
 
762
+ if config.request_payer is True:
763
+ params[http_headers.BOS_REQUEST_PAYER] = common.REQUEST_PAYER_REQUESTER
764
+
758
765
  path = self._get_path(config, bucket_name, key)
759
766
  if httpmethod != http_methods.GET and httpmethod != http_methods.HEAD:
760
767
  headers_to_sign = set([b'host'])
@@ -1623,6 +1630,7 @@ class BosClient(BceBaseClient):
1623
1630
  """
1624
1631
  source_key = compat.convert_to_bytes(source_key)
1625
1632
  target_key = compat.convert_to_bytes(target_key)
1633
+ bos_handler.validate_object_key(source_key)
1626
1634
  headers = self._prepare_object_headers(
1627
1635
  content_type=content_type,
1628
1636
  user_metadata=user_metadata,
@@ -1942,6 +1950,7 @@ class BosClient(BceBaseClient):
1942
1950
  """
1943
1951
  source_key = compat.convert_to_bytes(source_key)
1944
1952
  target_key = compat.convert_to_bytes(target_key)
1953
+ bos_handler.validate_object_key(source_key)
1945
1954
  headers = self._prepare_object_headers(
1946
1955
  content_type=content_type,
1947
1956
  user_metadata=user_metadata,
@@ -2219,7 +2228,7 @@ class BosClient(BceBaseClient):
2219
2228
  raise e
2220
2229
 
2221
2230
  @required(bucket_name=(bytes, str), key=(bytes, str), file_name=(bytes, str))
2222
- def put_super_object_from_file(self, bucket_name, key, file_name, chunk_size=5,
2231
+ def put_super_object_from_file(self, bucket_name, key, file_name, chunk_size=None,
2223
2232
  thread_num=None,
2224
2233
  uploadTaskHandle=None,
2225
2234
  content_type=None,
@@ -2236,15 +2245,26 @@ class BosClient(BceBaseClient):
2236
2245
  """
2237
2246
  Multipart Upload file to bos
2238
2247
 
2239
- param chunk_size: part size , default part size is 5MB
2248
+ param chunk_size: part size in MB, default will be auto-calculated based on file size.
2249
+ Minimum is 5MB, maximum is 5120MB (5GB). Maximum 10000 parts allowed.
2250
+ Maximum file size supported is 48.8TB.
2240
2251
  """
2241
- # check params
2242
- if chunk_size > 5 * 1024 or chunk_size <= 0:
2243
- raise BceClientError("chunk size is valid, it should be more than 0 and not nore than 5120!")
2244
2252
  left_size = os.path.getsize(file_name)
2245
2253
  # if file size more than 48.8TB, reject
2246
2254
  if left_size > 50000 * 1024 * 1024 * 1024:
2247
2255
  raise BceClientError("File size must not be more than 48.8TB!")
2256
+
2257
+ if chunk_size is None:
2258
+ # auto-calculate chunk_size based on file size
2259
+ # minimum chunk_size is 5MB, maximum parts is 10000
2260
+ chunk_size = 5
2261
+ min_chunk_size_mb = math.ceil(left_size / (10000 * 1024 * 1024))
2262
+ if min_chunk_size_mb > chunk_size:
2263
+ chunk_size = min_chunk_size_mb
2264
+
2265
+ # check params
2266
+ if chunk_size > 5 * 1024 or chunk_size <= 0:
2267
+ raise BceClientError("chunk size is invalid, it should be more than 0 and not more than 5120!")
2248
2268
  if thread_num is None or thread_num <= 1:
2249
2269
  thread_num = multiprocessing.cpu_count()
2250
2270
  part_size = chunk_size * 1024 * 1024
@@ -3342,6 +3362,8 @@ class BosClient(BceBaseClient):
3342
3362
  body=None, headers=None, params=None,
3343
3363
  config=None, body_parser=None):
3344
3364
  bos_handler.validate_bucket_name(bucket_name)
3365
+ if key is not None:
3366
+ bos_handler.validate_object_key(key)
3345
3367
  config = self._merge_config(config, bucket_name)
3346
3368
 
3347
3369
  path = BosClient._get_path(config, bucket_name, key)
@@ -3352,6 +3374,10 @@ class BosClient(BceBaseClient):
3352
3374
  headers = headers or {}
3353
3375
  headers[http_headers.STS_SECURITY_TOKEN] = config.security_token
3354
3376
 
3377
+ if config.request_payer is True:
3378
+ headers = headers or {}
3379
+ headers[http_headers.BOS_REQUEST_PAYER] = common.REQUEST_PAYER_REQUESTER
3380
+
3355
3381
  last_exception = None
3356
3382
  e = None
3357
3383
  # record the initial position of fp body before any request attempt,
@@ -99,6 +99,10 @@ def validate_object_key(key):
99
99
  raise ValueError("Invalid object key: key is not valid UTF-8: %s" % e)
100
100
  if not key:
101
101
  raise ValueError("Invalid object key: key must not be empty")
102
+
103
+ if key == '/' or key == 'v1' or key == 'v1/' or key == 'V1' or key == 'V1/':
104
+ raise ValueError("Invalid object key: key must not be '/' or 'v1' or 'v1/' or 'V1' or 'V1/'")
105
+
102
106
  for segment in key.split('/'):
103
107
  if segment == '..':
104
108
  raise ValueError(
@@ -6,3 +6,5 @@ This module defines string constants for BOS
6
6
  ENABLED = "enabled"
7
7
  SUSPENDED = "suspended"
8
8
  DISABLED = "disabled"
9
+
10
+ REQUEST_PAYER_REQUESTER = b"requester"
@@ -86,16 +86,14 @@ class EtClient(bce_base_client.BceBaseClient):
86
86
  http_method, path, body, headers, params)
87
87
 
88
88
  def create_et_dcphy(self, name, isp, intf_type, ap_type, ap_addr, user_name, user_phone, user_email,
89
- user_idc, client_token=None, description=None, billing=None, tags=None, config=None):
89
+ user_idc, client_token=None, description=None, billing=None, tags=None,
90
+ link_delay=None, config=None):
90
91
  """
91
92
  Create new ET
92
93
 
93
94
  :param name: the name of ET
94
95
  :type name: string
95
96
 
96
- :param description: description of ET
97
- :type description: string
98
-
99
97
  :param isp: the type of isp
100
98
  :type isp: string
101
99
 
@@ -120,12 +118,18 @@ class EtClient(bce_base_client.BceBaseClient):
120
118
  :param user_idc: Idc of user
121
119
  :type user_idc: string
122
120
 
121
+ :param description: description of ET
122
+ :type description: string
123
+
123
124
  :param billing: billing information, currently only supports prepaid
124
125
  :type billing: dict
125
126
 
126
127
  :param tags: list of tag key-value pairs to be created
127
128
  :type tags: list<dict>
128
129
 
130
+ :param link_delay: port link down delay time in milliseconds
131
+ :type link_delay: int
132
+
129
133
  :param client_token:
130
134
  If the clientToken is not specified by the user, a random String
131
135
  generated by default algorithm will be used.
@@ -164,16 +168,26 @@ class EtClient(bce_base_client.BceBaseClient):
164
168
  if tags is not None:
165
169
  body['tags'] = tags
166
170
 
171
+ if link_delay is not None:
172
+ body['linkDelay'] = link_delay
173
+
167
174
  return self._send_request(http_methods.POST, path, body=json.dumps(body), params=params, config=config)
168
175
 
169
176
  def update_et_dcphy(self, et_id, name=None, description=None, user_name=None,
170
- user_phone=None, user_email=None, client_token=None, config=None):
177
+ user_phone=None, user_email=None, link_delay=None,
178
+ client_token=None, config=None):
171
179
  """
172
180
  Update existed Et
173
181
 
174
182
  :param et_id: ET ID
175
183
  :type et_id: string
176
184
 
185
+ :param name: the name of ET
186
+ :type name: string
187
+
188
+ :param description: description of ET
189
+ :type description: string
190
+
177
191
  :param user_name: the name of user
178
192
  :type user_name: string
179
193
 
@@ -183,11 +197,8 @@ class EtClient(bce_base_client.BceBaseClient):
183
197
  :param user_email: email of user
184
198
  :type user_email: string
185
199
 
186
- :param user_idc: Idc of user
187
- :type user_idc: string
188
-
189
- :param description: description of ET
190
- :type description: string
200
+ :param link_delay: port link down delay time in milliseconds
201
+ :type link_delay: int
191
202
 
192
203
  :param client_token:
193
204
  If the clientToken is not specified by the user, a random String
@@ -199,23 +210,27 @@ class EtClient(bce_base_client.BceBaseClient):
199
210
  """
200
211
  path = utils.append_uri(self.prefix, self.et, et_id)
201
212
  params = {}
213
+ if client_token is None:
214
+ params[b'clientToken'] = generate_client_token()
215
+ else:
216
+ params[b'clientToken'] = client_token
217
+
218
+ body = {}
202
219
  if name is not None:
203
- params[b'name'] = name
220
+ body['name'] = name
204
221
  if description is not None:
205
- params[b'description'] = description
222
+ body['description'] = description
206
223
  if user_name is not None:
207
- params[b'userName'] = user_name
224
+ body['userName'] = user_name
208
225
  if user_phone is not None:
209
- params[b'userPhone'] = user_phone
226
+ body['userPhone'] = user_phone
210
227
  if user_email is not None:
211
- params[b'userEmail'] = user_email
212
-
213
- if client_token is None:
214
- params[b'clientToken'] = generate_client_token()
215
- else:
216
- params[b'clientToken'] = client_token
228
+ body['userEmail'] = user_email
229
+ if link_delay is not None:
230
+ body['linkDelay'] = link_delay
217
231
 
218
- return self._send_request(http_methods.PUT, path, params=params, config=config)
232
+ return self._send_request(http_methods.PUT, path, body=json.dumps(body),
233
+ params=params, config=config)
219
234
 
220
235
  def list_et_dcphy(self, status=None, marker=None, max_keys=1000, config=None):
221
236
  """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bce-python-sdk
3
- Version: 0.9.71
3
+ Version: 0.9.72
4
4
  Summary: BCE SDK for python
5
5
  Home-page: http://bce.baidu.com
6
6
  Author: