bce-python-sdk 0.9.67__tar.gz → 0.9.68__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.67 → bce_python_sdk-0.9.68}/PKG-INFO +1 -1
  2. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/__init__.py +1 -1
  3. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/bce_response.py +44 -0
  4. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/http/handler.py +1 -0
  5. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/bcc/bcc_client.py +40 -1
  6. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/endpoint/endpoint_client.py +25 -7
  7. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/etGateway/et_gateway_client.py +28 -6
  8. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/havip/havip_client.py +44 -47
  9. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/probe/probe_client.py +2 -2
  10. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/vpc/peerconn_client.py +46 -2
  11. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/vpc/template_client.py +10 -9
  12. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/bce_python_sdk.egg-info/PKG-INFO +1 -1
  13. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/README.txt +0 -0
  14. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/auth/__init__.py +0 -0
  15. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/auth/bce_credentials.py +0 -0
  16. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/auth/bce_v1_signer.py +0 -0
  17. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/bce_base_client.py +0 -0
  18. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/bce_client_configuration.py +0 -0
  19. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/compat.py +0 -0
  20. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/exception.py +0 -0
  21. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/http/__init__.py +0 -0
  22. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/http/bce_http_client.py +0 -0
  23. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/http/http_content_types.py +0 -0
  24. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/http/http_headers.py +0 -0
  25. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/http/http_methods.py +0 -0
  26. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/protocol.py +0 -0
  27. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/region.py +0 -0
  28. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/retry/__init__.py +0 -0
  29. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/retry/retry_policy.py +0 -0
  30. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/__init__.py +0 -0
  31. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/aihc/__init__.py +0 -0
  32. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/aihc/aihc_client.py +0 -0
  33. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/aihc/aihc_handler.py +0 -0
  34. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/aihc/aihc_model.py +0 -0
  35. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/aihc/base/__init__.py +0 -0
  36. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/aihc/base/aihc_base_client.py +0 -0
  37. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/aihc/base/aihc_common.py +0 -0
  38. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/aihc/modules/__init__.py +0 -0
  39. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/aihc/modules/dataset/__init__.py +0 -0
  40. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/aihc/modules/dataset/dataset_client.py +0 -0
  41. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/aihc/modules/dataset/dataset_model.py +0 -0
  42. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/aihc/modules/dev_instance/__init__.py +0 -0
  43. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/aihc/modules/dev_instance/dev_instance_client.py +0 -0
  44. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/aihc/modules/job/__init__.py +0 -0
  45. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/aihc/modules/job/job_client.py +0 -0
  46. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/aihc/modules/job/job_model.py +0 -0
  47. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/aihc/modules/model/__init__.py +0 -0
  48. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/aihc/modules/model/model_client.py +0 -0
  49. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/aihc/modules/model/model_model.py +0 -0
  50. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/aihc/modules/resource_pool/__init__.py +0 -0
  51. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/aihc/modules/resource_pool/resource_pool_client.py +0 -0
  52. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/aihc/modules/service/__init__.py +0 -0
  53. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/aihc/modules/service/service_client.py +0 -0
  54. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/aihc/modules/service/service_model.py +0 -0
  55. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/autoscaling/__init__.py +0 -0
  56. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/autoscaling/as_client.py +0 -0
  57. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/autoscaling/as_handler.py +0 -0
  58. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/autoscaling/as_model.py +0 -0
  59. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/bbc/__init__.py +0 -0
  60. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/bbc/bbc_client.py +0 -0
  61. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/bbc/bbc_model.py +0 -0
  62. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/bcc/__init__.py +0 -0
  63. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/bcc/bcc_model.py +0 -0
  64. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/bcc/fpga_card_type.py +0 -0
  65. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/bcc/gpu_card_type.py +0 -0
  66. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/bcm/__init__.py +0 -0
  67. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/bcm/bcm_client.py +0 -0
  68. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/bcm/bcm_handler.py +0 -0
  69. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/bcm/bcm_model.py +0 -0
  70. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/bes/__init__.py +0 -0
  71. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/bes/bes_client.py +0 -0
  72. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/bes/bes_model.py +0 -0
  73. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/blb/__init__.py +0 -0
  74. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/blb/app_blb_client.py +0 -0
  75. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/blb/blb_client.py +0 -0
  76. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/blb/user_service_client.py +0 -0
  77. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/bls/__init__.py +0 -0
  78. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/bls/bls_client.py +0 -0
  79. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/bls/bls_handler.py +0 -0
  80. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/bls/bls_model.py +0 -0
  81. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/bmr/__init__.py +0 -0
  82. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/bmr/bmr_client.py +0 -0
  83. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/bos/__init__.py +0 -0
  84. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/bos/bos_client.py +0 -0
  85. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/bos/bos_handler.py +0 -0
  86. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/bos/canned_acl.py +0 -0
  87. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/bos/common.py +0 -0
  88. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/bos/storage_class.py +0 -0
  89. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/bts/__init__.py +0 -0
  90. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/bts/bts_client.py +0 -0
  91. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/bts/model.py +0 -0
  92. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/bts/util.py +0 -0
  93. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/ca/__init__.py +0 -0
  94. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/ca/ca_client.py +0 -0
  95. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/ca/ca_handler.py +0 -0
  96. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/ca/ca_model.py +0 -0
  97. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/cdn/__init__.py +0 -0
  98. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/cdn/cdn_client.py +0 -0
  99. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/cdn/cdn_stats_param.py +0 -0
  100. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/cert/__init__.py +0 -0
  101. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/cert/cert_client.py +0 -0
  102. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/cert/cert_model.py +0 -0
  103. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/cfc/__init__.py +0 -0
  104. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/cfc/cfc_client.py +0 -0
  105. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/cfc/cfc_handler.py +0 -0
  106. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/cfc/models.py +0 -0
  107. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/cloudflow/__init__.py +0 -0
  108. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/cloudflow/cloudflow_client.py +0 -0
  109. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/cloudflow/cloudflow_model.py +0 -0
  110. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/csn/__init__.py +0 -0
  111. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/csn/csn_api.py +0 -0
  112. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/csn/csn_client.py +0 -0
  113. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/csn/csn_model.py +0 -0
  114. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/ddc/__init__.py +0 -0
  115. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/ddc/ddc_client.py +0 -0
  116. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/dns/__init__.py +0 -0
  117. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/dns/api/__init__.py +0 -0
  118. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/dns/api/dns_api.py +0 -0
  119. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/dns/dns_client.py +0 -0
  120. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/dumap/__init__.py +0 -0
  121. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/dumap/dumap_client.py +0 -0
  122. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/eip/__init__.py +0 -0
  123. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/eip/eip_bp_client.py +0 -0
  124. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/eip/eip_client.py +0 -0
  125. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/eip/eip_group_client.py +0 -0
  126. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/eip/eip_group_model.py +0 -0
  127. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/eip/eip_tp_client.py +0 -0
  128. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/eip/model.py +0 -0
  129. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/endpoint/__init__.py +0 -0
  130. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/endpoint/model.py +0 -0
  131. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/eni/__init__.py +0 -0
  132. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/eni/eni_client.py +0 -0
  133. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/eni/eni_model.py +0 -0
  134. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/esg/__init__.py +0 -0
  135. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/esg/esg_client.py +0 -0
  136. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/esg/esg_model.py +0 -0
  137. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/et/__init__.py +0 -0
  138. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/et/et_client.py +0 -0
  139. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/et/model.py +0 -0
  140. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/etGateway/__init__.py +0 -0
  141. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/iam/__init__.py +0 -0
  142. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/iam/iam_client.py +0 -0
  143. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/infinite/__init__.py +0 -0
  144. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/infinite/infinite_client.py +0 -0
  145. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/ipv6gateway/__init__.py +0 -0
  146. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/ipv6gateway/ipv6gateway_client.py +0 -0
  147. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/ipv6gateway/ipv6gateway_model.py +0 -0
  148. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/kms/__init__.py +0 -0
  149. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/kms/keyspec_class.py +0 -0
  150. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/kms/kms_client.py +0 -0
  151. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/kms/origin_class.py +0 -0
  152. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/kms/protectedby_class.py +0 -0
  153. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/kms/publickeyencoding_class.py +0 -0
  154. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/lbdc/__init__.py +0 -0
  155. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/lbdc/lbdc_client.py +0 -0
  156. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/lbdc/model.py +0 -0
  157. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/localdns/__init__.py +0 -0
  158. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/localdns/api/__init__.py +0 -0
  159. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/localdns/api/ld_api.py +0 -0
  160. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/localdns/ld_client.py +0 -0
  161. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/media/__init__.py +0 -0
  162. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/media/media_client.py +0 -0
  163. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/media/media_handler.py +0 -0
  164. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/mms/__init__.py +0 -0
  165. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/mms/mms_client.py +0 -0
  166. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/mvs/__init__.py +0 -0
  167. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/mvs/mvs_client.py +0 -0
  168. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/oos/__init__.py +0 -0
  169. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/oos/oos_client.py +0 -0
  170. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/oos/oos_model.py +0 -0
  171. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/probe/__init__.py +0 -0
  172. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/rds/__init__.py +0 -0
  173. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/rds/rds_client.py +0 -0
  174. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/rds/rds_model.py +0 -0
  175. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/route/__init__.py +0 -0
  176. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/route/route_client.py +0 -0
  177. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/route/route_model.py +0 -0
  178. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/scs/__init__.py +0 -0
  179. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/scs/model.py +0 -0
  180. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/scs/scs_client.py +0 -0
  181. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/sms/__init__.py +0 -0
  182. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/sms/model.py +0 -0
  183. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/sms/sms_client.py +0 -0
  184. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/sts/__init__.py +0 -0
  185. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/sts/sts_client.py +0 -0
  186. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/subnet/__init__.py +0 -0
  187. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/subnet/subnet_client.py +0 -0
  188. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/tsdb/__init__.py +0 -0
  189. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/tsdb/tsdb_admin_client.py +0 -0
  190. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/tsdb/tsdb_client.py +0 -0
  191. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/tsdb/tsdb_handler.py +0 -0
  192. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/vca/__init__.py +0 -0
  193. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/vca/vca_client.py +0 -0
  194. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/vcr/__init__.py +0 -0
  195. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/vcr/vcr_client.py +0 -0
  196. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/vpc/__init__.py +0 -0
  197. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/vpc/acl_client.py +0 -0
  198. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/vpc/nat_client.py +0 -0
  199. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/vpc/nat_model.py +0 -0
  200. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/vpc/peerconn_model.py +0 -0
  201. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/vpc/template_model.py +0 -0
  202. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/vpc/vpc_client.py +0 -0
  203. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/vpn/__init__.py +0 -0
  204. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/vpn/vpn_client.py +0 -0
  205. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/services/vpn/vpn_model.py +0 -0
  206. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/baidubce/utils.py +0 -0
  207. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/bce_python_sdk.egg-info/SOURCES.txt +0 -0
  208. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/bce_python_sdk.egg-info/dependency_links.txt +0 -0
  209. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/bce_python_sdk.egg-info/requires.txt +0 -0
  210. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/bce_python_sdk.egg-info/top_level.txt +0 -0
  211. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/setup.cfg +0 -0
  212. {bce_python_sdk-0.9.67 → bce_python_sdk-0.9.68}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bce-python-sdk
3
- Version: 0.9.67
3
+ Version: 0.9.68
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.67'
21
+ SDK_VERSION = b'0.9.68'
22
22
  DEFAULT_SERVICE_DOMAIN = b'bcebos.com'
23
23
  URL_PREFIX = b'/v1'
24
24
  DEFAULT_ENCODING = 'UTF-8'
@@ -13,6 +13,8 @@
13
13
  """
14
14
  This module provides a general response class for BCE services.
15
15
  """
16
+ import json
17
+
16
18
  from future.utils import iteritems
17
19
  from builtins import str
18
20
  from builtins import bytes
@@ -60,3 +62,45 @@ class BceResponse(object):
60
62
 
61
63
  def __repr__(self):
62
64
  return utils.print_object(self)
65
+
66
+ def to_map(self):
67
+ """
68
+
69
+ :return: dict
70
+ """
71
+ result = dict()
72
+ result['headers'] = self._to_dict(self.metadata)
73
+ result['statusCode'] = self.status_code
74
+ result['body'] = self.get_body_map()
75
+ return result
76
+
77
+ def get_body_map(self):
78
+ """
79
+ Deserialize self.raw_data JSON string into a Python object.
80
+ """
81
+ content = self.raw_data
82
+ if not content:
83
+ return {}
84
+ try:
85
+ if isinstance(content, dict):
86
+ return content
87
+ if isinstance(content, str):
88
+ content = content.strip()
89
+ return json.loads(content)
90
+ except (json.JSONDecodeError, TypeError):
91
+ return {"raw_content": content}
92
+
93
+ @staticmethod
94
+ def _to_dict(obj):
95
+ """
96
+ Recursively convert an object to a dictionary
97
+ """
98
+ if isinstance(obj, (list, tuple, set)):
99
+ return [BceResponse._to_dict(i) for i in obj]
100
+ elif isinstance(obj, dict):
101
+ return {k: BceResponse._to_dict(v) for k, v in obj.items()}
102
+ elif hasattr(obj, "__dict__"):
103
+ return {k: BceResponse._to_dict(v) for k, v in obj.__dict__.items() if not k.startswith('_')}
104
+ else:
105
+ # Return primitive types directly
106
+ return obj
@@ -41,6 +41,7 @@ def parse_json(http_response, response):
41
41
  body = compat.convert_to_string(body)
42
42
  response.__dict__.update(json.loads(body, object_hook=utils.dict_to_python_object).__dict__)
43
43
  response.__dict__["raw_data"] = body
44
+ response.__dict__["status_code"] = http_response.status
44
45
  http_response.close()
45
46
  return True
46
47
 
@@ -1341,6 +1341,39 @@ class BccClient(bce_base_client.BceBaseClient):
1341
1341
  return self._send_request(http_methods.PUT, path, json.dumps(body),
1342
1342
  params=params, config=config)
1343
1343
 
1344
+ @required(instance_ids=list)
1345
+ def batch_reboot_instance(self, instance_ids=None, force_stop=False, config=None):
1346
+ """
1347
+ Rebooting the instance owned by the user.
1348
+ You can reboot the instance only when the instance is Running,
1349
+ otherwise, it's will get 409 errorCode.
1350
+ This is an asynchronous interface,
1351
+ you can get the latest status by BccClient.get_instance.
1352
+
1353
+ :param instance_ids:
1354
+ The ids of instance.
1355
+ :type instance_ids: list
1356
+
1357
+ :param force_stop:
1358
+ The optional parameter to stop the instance forcibly.If true,
1359
+ it will stop the instance just like power off immediately
1360
+ and it may result in losing important data which have not been written to disk.
1361
+ :type force_stop: boolean
1362
+
1363
+ :return:
1364
+ :rtype baidubce.bce_response.BceResponse
1365
+ """
1366
+ path = b'/instance/batchAction'
1367
+ body = {
1368
+ 'instanceIds': instance_ids,
1369
+ 'forceStop': force_stop
1370
+ }
1371
+ params = {
1372
+ 'reboot': None
1373
+ }
1374
+ return self._send_request(http_methods.PUT, path, json.dumps(body),
1375
+ params=params, config=config)
1376
+
1344
1377
  @required(instance_id=str)
1345
1378
  def batch_add_ip(self, instance_id, private_ips=None, secondary_private_ip_address_count=None,
1346
1379
  allocate_multi_ipv6_addr=None, config=None):
@@ -5879,7 +5912,7 @@ class BccClient(bce_base_client.BceBaseClient):
5879
5912
  return self._send_request(http_methods.POST, path, body=json.dumps(body), params=params, config=config)
5880
5913
 
5881
5914
  def list_instance_no_charge(self, marker=None, max_keys=None, internal_ip=None, keypair_id=None,
5882
- zone_name=None, client_token=None, config=None):
5915
+ zone_name=None, instance_ids=None, client_token=None, config=None):
5883
5916
  """
5884
5917
  Return a list of no charge instances owned by the authenticated user.
5885
5918
 
@@ -5907,6 +5940,10 @@ class BccClient(bce_base_client.BceBaseClient):
5907
5940
  get instance list filtered by name of available zone
5908
5941
  :type zone_name: string
5909
5942
 
5943
+ :param instance_ids:
5944
+ The id of instance.
5945
+ :type instance_ids: string
5946
+
5910
5947
  :return:
5911
5948
  :rtype baidubce.bce_response.BceResponse
5912
5949
  """
@@ -5926,6 +5963,8 @@ class BccClient(bce_base_client.BceBaseClient):
5926
5963
  params['keypairId'] = keypair_id
5927
5964
  if zone_name is not None:
5928
5965
  params['zoneName'] = zone_name
5966
+ if instance_ids is not None:
5967
+ params['instanceIds'] = instance_ids
5929
5968
  return self._send_request(http_methods.GET, path, params=params, config=config)
5930
5969
 
5931
5970
  def cancel_bid_order(self, order_id, client_token=None, config=None):
@@ -103,7 +103,8 @@ class EndpointClient(BceBaseClient):
103
103
  path = EndpointClient.path + b'/publicService'
104
104
  return self._send_request(http_methods.GET, path, config=config)
105
105
 
106
- def create_endpoint(self, vpc_id, subnet_id, name, service, billing, description=None, ip_address=None,
106
+ def create_endpoint(self, vpc_id, subnet_id, name, service, billing, bandwidth,
107
+ description=None, ip_address=None, tags=None, resource_group_id=None,
107
108
  client_token=None, config=None):
108
109
  """
109
110
 
@@ -129,6 +130,10 @@ class EndpointClient(BceBaseClient):
129
130
  order_configuration
130
131
  :type billing:Billing
131
132
 
133
+ :param bandwidth:
134
+ The bandwidth of endpoint.
135
+ :type bandwidth: int
136
+
132
137
  :param ip_address:
133
138
  ip_address ipv4 address
134
139
  :type ip_address: str
@@ -137,6 +142,14 @@ class EndpointClient(BceBaseClient):
137
142
  description .
138
143
  :type description: string
139
144
 
145
+ :param tags:
146
+ The list of tags to be bound.
147
+ :type tags: list
148
+
149
+ :param resource_group_id:
150
+ The id of resource group.
151
+ :type resource_group_id: string
152
+
140
153
  :param client_token:
141
154
  An ASCII string whose length is less than 64.
142
155
  The request will be idempotent if clientToken is provided.
@@ -155,6 +168,7 @@ class EndpointClient(BceBaseClient):
155
168
  "subnetId": subnet_id,
156
169
  "name": name,
157
170
  "service": service,
171
+ "bandwidth": bandwidth,
158
172
  "billing": {
159
173
  "paymentTiming": billing.payment_timing
160
174
  }
@@ -163,6 +177,10 @@ class EndpointClient(BceBaseClient):
163
177
  body['description'] = description
164
178
  if ip_address is not None:
165
179
  body['ipAddress'] = ip_address
180
+ if tags is not None:
181
+ body['tags'] = tags
182
+ if resource_group_id is not None:
183
+ body['resourceGroupId'] = resource_group_id
166
184
  return self._send_request(http_methods.POST, EndpointClient.path, body=json.dumps(body), params=params,
167
185
  config=config)
168
186
 
@@ -197,7 +215,7 @@ class EndpointClient(BceBaseClient):
197
215
  return self._send_request(http_methods.DELETE, path, params=params, config=config)
198
216
 
199
217
  def list_endpoints(self, vpc_id, name=None, ip_address=None, status=None, subnet_id=None, service=None, marker=None,
200
- max_Keys=None, config=None):
218
+ max_keys=None, config=None):
201
219
  """
202
220
 
203
221
  return all endpoint about vpc
@@ -233,10 +251,10 @@ class EndpointClient(BceBaseClient):
233
251
  If the marker is not specified, the list result will listing from the first one.
234
252
  :type marker: string
235
253
 
236
- :param max_Keys:
254
+ :param max_keys:
237
255
  The optional parameter to specifies the max number of list result to return.
238
256
  The default value is 1000.
239
- :type max_Keys: int
257
+ :type max_keys: int
240
258
 
241
259
  :param config:
242
260
  :type config: baidubce.BceClientConfiguration
@@ -258,8 +276,8 @@ class EndpointClient(BceBaseClient):
258
276
 
259
277
  if marker is not None:
260
278
  params[b'marker'] = marker
261
- if max_Keys is not None:
262
- params[b'maxKeys'] = max_Keys
279
+ if max_keys is not None:
280
+ params[b'maxKeys'] = max_keys
263
281
 
264
282
  return self._send_request(http_methods.GET, EndpointClient.path, params=params, config=config)
265
283
 
@@ -410,7 +428,7 @@ class EndpointClient(BceBaseClient):
410
428
  }
411
429
 
412
430
  body = {
413
- b'enterpriseSecurityGroupIds': enterprise_sg_list
431
+ 'enterpriseSecurityGroupIds': enterprise_sg_list
414
432
  }
415
433
 
416
434
  return self._send_request(http_methods.PUT, path, body=json.dumps(body), params=params,
@@ -87,7 +87,8 @@ class EtGatewayClient(bce_base_client.BceBaseClient):
87
87
  vpc_id=(bytes, str),
88
88
  speed=(int, long))
89
89
  def create_et_gateway(self, name, vpc_id, speed, et_id=None, channel_id=None,
90
- local_cidrs=None, client_token=None, description=None, config=None):
90
+ local_cidrs=None, client_token=None, description=None,
91
+ tags=None, resource_group_id=None, config=None):
91
92
  """
92
93
  Create a ET Gateway.
93
94
 
@@ -124,6 +125,14 @@ class EtGatewayClient(bce_base_client.BceBaseClient):
124
125
  the description of ET Gateway
125
126
  :type description: string
126
127
 
128
+ :param tags:
129
+ the list of tag key-value pairs
130
+ :type tags: list
131
+
132
+ :param resource_group_id:
133
+ the id of resource group
134
+ :type resource_group_id: string
135
+
127
136
  :type config:
128
137
  baidubce.BceClientConfiguration
129
138
  :param config:
@@ -152,11 +161,16 @@ class EtGatewayClient(bce_base_client.BceBaseClient):
152
161
  body['localCidrs'] = local_cidrs
153
162
  if description is not None:
154
163
  body['description'] = description
164
+ if tags is not None:
165
+ body['tags'] = tags
166
+ if resource_group_id is not None:
167
+ body['resourceGroupId'] = resource_group_id
155
168
  return self._send_request(http_methods.POST, path, body=json.dumps(body), params=params, config=config)
156
169
 
157
170
  @required(et_gateway_id=(bytes, str))
158
171
  def update_et_gateway(self, et_gateway_id, name=None, description=None,
159
- speed=None, local_cidrs=None, client_token=None, config=None):
172
+ speed=None, local_cidrs=None, enable_ipv6=None,
173
+ ipv6_local_cidrs=None, client_token=None, config=None):
160
174
  """
161
175
  Update a ET Gateway.
162
176
  :param et_gateway_id:
@@ -179,14 +193,18 @@ class EtGatewayClient(bce_base_client.BceBaseClient):
179
193
  the list of CIDRs
180
194
  :type local_cidrs: list
181
195
 
196
+ :param enable_ipv6:
197
+ whether IPv6 is enabled, 1 for yes, 0 for no
198
+ :type enable_ipv6: int
199
+
200
+ :param ipv6_local_cidrs:
201
+ the list of IPv6 CIDRs
202
+ :type ipv6_local_cidrs: list
203
+
182
204
  :param client_token:
183
205
  If the clientToken is not specified by the user, a random String
184
206
  :type client_token: string
185
207
 
186
- :description:
187
- the description of ET Gateway
188
- :type description: string
189
-
190
208
  :return:
191
209
  :rtype baidubce.bce_response.BceResponse
192
210
 
@@ -207,6 +225,10 @@ class EtGatewayClient(bce_base_client.BceBaseClient):
207
225
  body['speed'] = speed
208
226
  if local_cidrs is not None:
209
227
  body['localCidrs'] = local_cidrs
228
+ if enable_ipv6 is not None:
229
+ body['enableIpv6'] = enable_ipv6
230
+ if ipv6_local_cidrs is not None:
231
+ body['ipv6LocalCidrs'] = ipv6_local_cidrs
210
232
  return self._send_request(http_methods.PUT,
211
233
  path, body=json.dumps(body),
212
234
  params=params, config=config)
@@ -70,8 +70,7 @@ class HavipClient(bce_base_client.BceBaseClient):
70
70
  private_ip_address=(bytes, str),
71
71
  description=(bytes, str))
72
72
  def create_havip(self, name, subnet_id, private_ip_address,
73
- description="", client_token=None, version=None,
74
- config=None):
73
+ description="", client_token=None, config=None):
75
74
  """
76
75
  Create a havip with the specified options.
77
76
 
@@ -120,8 +119,7 @@ class HavipClient(bce_base_client.BceBaseClient):
120
119
  return self._send_request(http_methods.POST, path, body=json.dumps(body), params=params,
121
120
  config=config)
122
121
 
123
- @required(vpc_id=(bytes, str))
124
- def get_havip_detail_list(self, vpc_id=None, config=None):
122
+ def get_havip_detail_list(self, vpc_id=None, marker=None, max_keys=None, config=None):
125
123
  """
126
124
  Get the detail information of havip list.
127
125
 
@@ -129,6 +127,14 @@ class HavipClient(bce_base_client.BceBaseClient):
129
127
  the vpc id to which the havip belongs
130
128
  :type vpc_id: string
131
129
 
130
+ :param marker:
131
+ 批量获取列表的查询的起始位置,是一个由系统生成的字符串
132
+ :type marker: string
133
+
134
+ :param max_keys:
135
+ 每页包含的最大数量,最大数量不超过1000,缺省值为1000
136
+ :type max_keys: int
137
+
132
138
  :param config:
133
139
  :type config: baidubce.BceClientConfiguration
134
140
 
@@ -139,6 +145,10 @@ class HavipClient(bce_base_client.BceBaseClient):
139
145
  params = {}
140
146
  if vpc_id is not None:
141
147
  params[b'vpcId'] = vpc_id
148
+ if marker is not None:
149
+ params[b'marker'] = marker
150
+ if max_keys is not None:
151
+ params[b'maxKeys'] = max_keys
142
152
 
143
153
  return self._send_request(http_methods.GET, path, params=params, config=config)
144
154
 
@@ -173,9 +183,8 @@ class HavipClient(bce_base_client.BceBaseClient):
173
183
  @required(name=(bytes, str),
174
184
  havip_id=(bytes, str),
175
185
  description=(bytes, str))
176
- def update_havip(self, name, havip_id, description="", version=None,
177
- client_token=None,
178
- config=None):
186
+ def update_havip(self, name, havip_id, description="",
187
+ client_token=None, config=None):
179
188
  """
180
189
  Update a havip with the specified options.
181
190
 
@@ -219,10 +228,9 @@ class HavipClient(bce_base_client.BceBaseClient):
219
228
  params[b'clientToken'] = generate_client_token()
220
229
  else:
221
230
  params[b'clientToken'] = client_token
222
-
231
+
223
232
  body = {
224
233
  'name': compat.convert_to_string(name),
225
- 'havip_id': compat.convert_to_string(havip_id),
226
234
  'description': compat.convert_to_string(description)
227
235
  }
228
236
 
@@ -248,25 +256,30 @@ class HavipClient(bce_base_client.BceBaseClient):
248
256
 
249
257
  return self._send_request(http_methods.GET, path, params=params, config=config)
250
258
 
251
- @required(instance_ids=[(bytes, str)],
259
+ @required(instance_ids=list,
252
260
  instance_type=(bytes, str),
253
261
  havip_id=(bytes, str))
254
- def havip_attach_instance(self, instance_ids, instance_type, havip_id, config=None, client_token=None):
262
+ def havip_attach_instance(self, instance_ids, instance_type, havip_id, client_token=None, config=None):
255
263
  """
256
- Get the detail information of havip list.
264
+ Attach instances to havip.
257
265
 
258
266
  :param instance_ids:
259
267
  the instance ids of havip binding
260
268
  :type instance_ids: list
261
-
269
+
262
270
  :param instance_type:
263
- Binding instance type
271
+ Binding instance type (SERVER or ENI)
264
272
  :type instance_type: string
265
273
 
266
274
  :param havip_id:
267
275
  The id of the specified havip.
268
276
  :type havip_id: string
269
277
 
278
+ :param client_token:
279
+ If the clientToken is not specified by the user, a random String
280
+ generated by default algorithm will be used.
281
+ :type client_token: string
282
+
270
283
  :param config:
271
284
  :type config: baidubce.BceClientConfiguration
272
285
 
@@ -284,14 +297,13 @@ class HavipClient(bce_base_client.BceBaseClient):
284
297
  params[b'clientToken'] = client_token
285
298
 
286
299
  body = {
287
- 'instanceIds': compat.convert_to_string(instance_ids),
288
- 'instanceType': compat.convert_to_string(instance_type),
289
- 'haVipId': compat.convert_to_string(havip_id),
300
+ 'instanceIds': instance_ids,
301
+ 'instanceType': compat.convert_to_string(instance_type)
290
302
  }
291
303
 
292
- return self._send_request(http_methods.GET, path, params=params, config=config)
304
+ return self._send_request(http_methods.PUT, path, body=json.dumps(body), params=params, config=config)
293
305
 
294
- @required(instance_ids=[(bytes, str)],
306
+ @required(instance_ids=list,
295
307
  instance_type=(bytes, str),
296
308
  havip_id=(bytes, str))
297
309
  def havip_detach_instance(self, instance_ids, instance_type, havip_id, client_token=None, config=None):
@@ -301,9 +313,9 @@ class HavipClient(bce_base_client.BceBaseClient):
301
313
  :param instance_ids:
302
314
  the instance ids of havip binding
303
315
  :type instance_ids: list
304
-
316
+
305
317
  :param instance_type:
306
- Binding instance type
318
+ Binding instance type (SERVER or ENI)
307
319
  :type instance_type: string
308
320
 
309
321
  :param havip_id:
@@ -329,19 +341,17 @@ class HavipClient(bce_base_client.BceBaseClient):
329
341
  params[b'clientToken'] = generate_client_token()
330
342
  else:
331
343
  params[b'clientToken'] = client_token
332
-
344
+
333
345
  body = {
334
- 'instance_ids': compat.convert_to_string(instance_ids),
335
- 'instance_type': compat.convert_to_string(instance_type),
336
- 'havip_id': compat.convert_to_string(havip_id)
346
+ 'instanceIds': instance_ids,
347
+ 'instanceType': compat.convert_to_string(instance_type)
337
348
  }
338
349
 
339
- return self._send_request(http_methods.DELETE, path, params=params, config=config)
350
+ return self._send_request(http_methods.PUT, path, body=json.dumps(body), params=params, config=config)
340
351
 
341
352
  @required(havip_id=(bytes, str),
342
353
  public_ip_address=(bytes, str))
343
- def havip_bind_public_ip(self, havip_id, public_ip_address, version=None,
344
- client_token=None, config=None):
354
+ def havip_bind_public_ip(self, havip_id, public_ip_address, client_token=None, config=None):
345
355
  """
346
356
  havip bind public_ip.
347
357
 
@@ -350,12 +360,8 @@ class HavipClient(bce_base_client.BceBaseClient):
350
360
  :type havip_id: string
351
361
 
352
362
  :param public_ip_address:
353
- The option param to describe public_ip.
354
- :type description: string
355
-
356
- :param version:
357
- API version.
358
- :type version: string
363
+ The public IP address to bind.
364
+ :type public_ip_address: string
359
365
 
360
366
  :param client_token:
361
367
  If the clientToken is not specified by the user, a random String
@@ -377,16 +383,15 @@ class HavipClient(bce_base_client.BceBaseClient):
377
383
  params[b'clientToken'] = generate_client_token()
378
384
  else:
379
385
  params[b'clientToken'] = client_token
380
-
386
+
381
387
  body = {
382
- 'haVipId': compat.convert_to_string(havip_id),
383
- 'publicIpAddress': compat.convert_to_string(public_ip_address),
388
+ 'publicIpAddress': compat.convert_to_string(public_ip_address)
384
389
  }
385
390
 
386
391
  return self._send_request(http_methods.PUT, path, body=json.dumps(body), params=params, config=config)
387
392
 
388
393
  @required(havip_id=(bytes, str))
389
- def havip_unbind_public_ip(self, havip_id, version=None, client_token=None, config=None):
394
+ def havip_unbind_public_ip(self, havip_id, client_token=None, config=None):
390
395
  """
391
396
  havip unbind public_ip.
392
397
 
@@ -394,10 +399,6 @@ class HavipClient(bce_base_client.BceBaseClient):
394
399
  The id of the specified havip.
395
400
  :type havip_id: string
396
401
 
397
- :param version:
398
- API version.
399
- :type version: string
400
-
401
402
  :param client_token:
402
403
  If the clientToken is not specified by the user, a random String
403
404
  generated by default algorithm will be used.
@@ -418,12 +419,8 @@ class HavipClient(bce_base_client.BceBaseClient):
418
419
  params[b'clientToken'] = generate_client_token()
419
420
  else:
420
421
  params[b'clientToken'] = client_token
421
-
422
- body = {
423
- 'havip_id': compat.convert_to_string(havip_id),
424
- }
425
422
 
426
- return self._send_request(http_methods.PUT, path, body=json.dumps(body), params=params, config=config)
423
+ return self._send_request(http_methods.PUT, path, params=params, config=config)
427
424
 
428
425
  def generate_client_token_by_uuid():
429
426
  """
@@ -78,8 +78,7 @@ class ProbeClient(bce_base_client.BceBaseClient):
78
78
  subnet_id=(bytes, str),
79
79
  protocol=(bytes, str),
80
80
  frequency=int,
81
- source_ips=list,
82
- source_ip_num=int)
81
+ dst_ip=(bytes, str))
83
82
  def create_probe(self, name, vpc_id, subnet_id, protocol,
84
83
  frequency, dst_ip, dst_port=None,
85
84
  source_ips=None, source_ip_num=None,
@@ -227,6 +226,7 @@ class ProbeClient(bce_base_client.BceBaseClient):
227
226
  path = utils.append_uri(self.version, b'probe', probe_id)
228
227
  return self._send_request(http_methods.GET, path, config=config)
229
228
 
229
+ @required(probe_id=(bytes, str))
230
230
  def update_probe(self, probe_id, name=None, description=None,
231
231
  dst_ip=None, dst_port=None, frequency=None,
232
232
  payload=None, client_token=None, config=None):
@@ -232,7 +232,7 @@ class PeerConnClient(bce_base_client.BceBaseClient):
232
232
  path, params=params, config=config)
233
233
 
234
234
  @required(peer_conn_id=(bytes, str))
235
- def get_peerconn(self, peer_conn_id, config=None):
235
+ def get_peerconn(self, peer_conn_id, role=None, config=None):
236
236
  """
237
237
  Get the detail information of specified peer connection.
238
238
 
@@ -240,6 +240,12 @@ class PeerConnClient(bce_base_client.BceBaseClient):
240
240
  The id of specified peer connection.
241
241
  :type peer_conn_id: string
242
242
 
243
+ :param role:
244
+ The role of peer connection to query.
245
+ 'initiator': for VPC where peer connection is initiated.
246
+ 'acceptor': for VPC where peer connection is accepted.
247
+ :type role: string
248
+
243
249
  :param config:
244
250
  :type config: baidubce.BceClientConfiguration
245
251
 
@@ -247,7 +253,10 @@ class PeerConnClient(bce_base_client.BceBaseClient):
247
253
  :rtype baidubce.bce_response.BceResponse
248
254
  """
249
255
  path = utils.append_uri(self._get_path(), peer_conn_id)
250
- return self._send_request(http_methods.GET, path, config=config)
256
+ params = None
257
+ if role is not None:
258
+ params = {b'role': role}
259
+ return self._send_request(http_methods.GET, path, params=params, config=config)
251
260
 
252
261
  @required(peer_conn_id=(bytes, str), local_if_id=(bytes, str))
253
262
  def update_peerconn(self, peer_conn_id, local_if_id, description=None,
@@ -593,6 +602,41 @@ class PeerConnClient(bce_base_client.BceBaseClient):
593
602
  return self._send_request(http_methods.PUT,
594
603
  path, body=json.dumps(body), params=params, config=config)
595
604
 
605
+ @required(peer_conn_id=(bytes, str))
606
+ def refund_peerconn(self, peer_conn_id, client_token=None, config=None):
607
+ """
608
+ Refund prepaid peer connection (unsubscribe).
609
+ Only prepaid peer connections can be refunded.
610
+ For peer connections between different accounts,
611
+ only the initiator can perform this operation.
612
+
613
+ :param peer_conn_id:
614
+ The id of specified peer connection.
615
+ :type peer_conn_id: string
616
+
617
+ :param client_token:
618
+ An ASCII string whose length is less than 64.
619
+ The request will be idempotent if clientToken is provided.
620
+ If the clientToken is not specified by user,
621
+ a random String generated by default algorithm will be used.
622
+ :type client_token: string
623
+
624
+ :param config:
625
+ :type config: baidubce.BceClientConfiguration
626
+
627
+ :return:
628
+ :rtype baidubce.bce_response.BceResponse
629
+ """
630
+ path = utils.append_uri(self._get_path(), peer_conn_id)
631
+ if client_token is None:
632
+ client_token = generate_client_token()
633
+ params = {
634
+ b'refund': None,
635
+ b'clientToken': client_token
636
+ }
637
+ return self._send_request(http_methods.PUT,
638
+ path, params=params, config=config)
639
+
596
640
  @staticmethod
597
641
  def _get_path(prefix=None):
598
642
  """