bce-python-sdk 0.9.23__tar.gz → 0.9.29__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.
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/PKG-INFO +7 -2
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/__init__.py +1 -1
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/http/bce_http_client.py +1 -1
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/http/http_headers.py +3 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/bcc/bcc_client.py +123 -7
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/bcc/bcc_model.py +4 -1
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/blb/app_blb_client.py +12 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/blb/blb_client.py +14 -2
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/bts/bts_client.py +6 -4
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/csn/csn_api.py +8 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/csn/csn_client.py +55 -2
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/csn/csn_model.py +7 -1
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/eni/eni_client.py +7 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/et/et_client.py +86 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/localdns/api/ld_api.py +2 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/localdns/ld_client.py +11 -1
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/route/route_client.py +5 -6
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/subnet/subnet_client.py +16 -2
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/vpc/peerconn_client.py +61 -2
- bce_python_sdk-0.9.29/baidubce/services/vpc/template_client.py +640 -0
- bce_python_sdk-0.9.29/baidubce/services/vpc/template_model.py +36 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/vpc/vpc_client.py +61 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/vpn/vpn_client.py +84 -4
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/vpn/vpn_model.py +1 -1
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/bce_python_sdk.egg-info/PKG-INFO +7 -2
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/bce_python_sdk.egg-info/SOURCES.txt +2 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/README.txt +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/auth/__init__.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/auth/bce_credentials.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/auth/bce_v1_signer.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/bce_base_client.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/bce_client_configuration.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/bce_response.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/compat.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/exception.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/http/__init__.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/http/handler.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/http/http_content_types.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/http/http_methods.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/protocol.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/region.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/retry/__init__.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/retry/retry_policy.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/__init__.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/autoscaling/__init__.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/autoscaling/as_client.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/autoscaling/as_handler.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/autoscaling/as_model.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/bbc/__init__.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/bbc/bbc_client.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/bbc/bbc_model.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/bcc/__init__.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/bcc/fpga_card_type.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/bcc/gpu_card_type.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/bcm/__init__.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/bcm/bcm_client.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/bcm/bcm_handler.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/bcm/bcm_model.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/bes/__init__.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/bes/bes_client.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/bes/bes_model.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/blb/__init__.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/blb/user_service_client.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/bmr/__init__.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/bmr/bmr_client.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/bos/__init__.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/bos/bos_client.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/bos/bos_handler.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/bos/canned_acl.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/bos/common.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/bos/storage_class.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/bts/__init__.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/bts/model.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/bts/util.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/ca/__init__.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/ca/ca_client.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/ca/ca_handler.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/ca/ca_model.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/cdn/__init__.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/cdn/cdn_client.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/cdn/cdn_stats_param.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/cert/__init__.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/cert/cert_client.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/cert/cert_model.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/cfc/__init__.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/cfc/cfc_client.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/cfc/cfc_handler.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/cfc/models.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/csn/__init__.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/ddc/__init__.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/ddc/ddc_client.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/dns/__init__.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/dns/api/__init__.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/dns/api/dns_api.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/dns/dns_client.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/dumap/__init__.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/dumap/dumap_client.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/eip/__init__.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/eip/eip_bp_client.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/eip/eip_client.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/eip/eip_group_client.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/eip/eip_group_model.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/eip/eip_tp_client.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/eip/model.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/endpoint/__init__.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/endpoint/endpoint_client.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/endpoint/model.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/eni/__init__.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/eni/eni_model.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/esg/__init__.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/esg/esg_client.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/esg/esg_model.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/et/__init__.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/et/model.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/etGateway/__init__.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/etGateway/et_gateway_client.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/havip/havip_client.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/iam/__init__.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/iam/iam_client.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/infinite/__init__.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/infinite/infinite_client.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/ipv6gateway/__init__.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/ipv6gateway/ipv6gateway_client.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/ipv6gateway/ipv6gateway_model.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/kms/__init__.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/kms/keyspec_class.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/kms/kms_client.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/kms/origin_class.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/kms/protectedby_class.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/kms/publickeyencoding_class.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/lbdc/__init__.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/lbdc/lbdc_client.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/lbdc/model.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/localdns/__init__.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/localdns/api/__init__.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/media/__init__.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/media/media_client.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/media/media_handler.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/mms/__init__.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/mms/mms_client.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/mvs/__init__.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/mvs/mvs_client.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/oos/__init__.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/oos/oos_client.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/oos/oos_model.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/probe/__init__.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/probe/probe_client.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/rds/__init__.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/rds/rds_client.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/rds/rds_model.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/route/__init__.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/route/route_model.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/scs/__init__.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/scs/model.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/scs/scs_client.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/sms/__init__.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/sms/model.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/sms/sms_client.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/sts/__init__.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/sts/sts_client.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/subnet/__init__.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/tsdb/__init__.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/tsdb/tsdb_admin_client.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/tsdb/tsdb_client.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/tsdb/tsdb_handler.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/vca/__init__.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/vca/vca_client.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/vcr/__init__.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/vcr/vcr_client.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/vpc/__init__.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/vpc/acl_client.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/vpc/nat_client.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/vpc/nat_model.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/vpc/peerconn_model.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/services/vpn/__init__.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/baidubce/utils.py +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/bce_python_sdk.egg-info/dependency_links.txt +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/bce_python_sdk.egg-info/requires.txt +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/bce_python_sdk.egg-info/top_level.txt +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/setup.cfg +0 -0
- {bce_python_sdk-0.9.23 → bce_python_sdk-0.9.29}/setup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: bce-python-sdk
|
|
3
|
-
Version: 0.9.
|
|
3
|
+
Version: 0.9.29
|
|
4
4
|
Summary: BCE SDK for python
|
|
5
5
|
Home-page: http://bce.baidu.com
|
|
6
6
|
Author:
|
|
@@ -10,3 +10,8 @@ Requires-Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, <4
|
|
|
10
10
|
Requires-Dist: pycryptodome>=3.8.0
|
|
11
11
|
Requires-Dist: future>=0.6.0
|
|
12
12
|
Requires-Dist: six>=1.4.0
|
|
13
|
+
Dynamic: home-page
|
|
14
|
+
Dynamic: license
|
|
15
|
+
Dynamic: requires-dist
|
|
16
|
+
Dynamic: requires-python
|
|
17
|
+
Dynamic: summary
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
# License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
|
|
10
10
|
# either express or implied. See the License for the specific language governing permissions
|
|
11
11
|
# and limitations under the License.
|
|
12
|
-
|
|
12
|
+
# -*- coding: utf-8 -*-
|
|
13
13
|
"""
|
|
14
14
|
This module provide http request function for bce services.
|
|
15
15
|
"""
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
1
2
|
# Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved
|
|
2
3
|
#
|
|
3
4
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
|
|
@@ -91,7 +92,7 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
91
92
|
security_group_ids=None, enterprise_security_group_ids=None, ehc_cluster_id=None,
|
|
92
93
|
kunlunCard=None, isomerismCard=None, file_systems=None, user_data=None, is_open_hosteye=False,
|
|
93
94
|
deletion_protection=None, res_group_id=None,
|
|
94
|
-
client_token=None, config=None, card_count=1, isomerism_card=None):
|
|
95
|
+
client_token=None, config=None, card_count=1, isomerism_card=None, is_keep_image_login=None):
|
|
95
96
|
"""
|
|
96
97
|
Create a bcc Instance with the specified options.
|
|
97
98
|
You must fill the field of clientToken,which is especially for keeping idempotent.
|
|
@@ -436,6 +437,8 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
436
437
|
if isomerism_card is not None:
|
|
437
438
|
body['isomerismCard'] = isomerism_card
|
|
438
439
|
body['cardCount'] = card_count if card_count > 1 else 1
|
|
440
|
+
if is_keep_image_login is not None:
|
|
441
|
+
body['keepImageLogin'] = is_keep_image_login
|
|
439
442
|
if auto_renew_time != 0:
|
|
440
443
|
body['autoRenewTime'] = auto_renew_time
|
|
441
444
|
if auto_renew_time_unit is None:
|
|
@@ -700,7 +703,8 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
700
703
|
spec_id=None, relation_tag=False, is_open_ipv6=False, deletion_protection=None,
|
|
701
704
|
enterprise_security_group_id=None, security_group_ids=None, res_group_id=None,
|
|
702
705
|
enterprise_security_group_ids=None, isomerismCard=None, file_systems=None,
|
|
703
|
-
card_count=1, isomerism_card=None, is_eip_auto_related_delete=False
|
|
706
|
+
card_count=1, isomerism_card=None, is_eip_auto_related_delete=False
|
|
707
|
+
, is_keep_image_login=None):
|
|
704
708
|
"""
|
|
705
709
|
Create a bcc Instance with the specified options.
|
|
706
710
|
You must fill the field of clientToken,which is especially for keeping idempotent.
|
|
@@ -1069,6 +1073,8 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
1069
1073
|
body['userData'] = user_data
|
|
1070
1074
|
if res_group_id is not None:
|
|
1071
1075
|
body['resGroupId'] = res_group_id
|
|
1076
|
+
if is_keep_image_login is not None:
|
|
1077
|
+
body['keepImageLogin'] = is_keep_image_login
|
|
1072
1078
|
body['isEipAutoRelatedDelete'] = is_eip_auto_related_delete
|
|
1073
1079
|
|
|
1074
1080
|
return self._send_request(http_methods.POST, path, json.dumps(body),
|
|
@@ -1077,7 +1083,8 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
1077
1083
|
def list_instances(self, marker=None, max_keys=None, internal_ip=None, dedicated_host_id=None,
|
|
1078
1084
|
zone_name=None, instance_ids=None, instance_names=None, cds_ids=None, ehc_cluster_id=None,
|
|
1079
1085
|
deployset_ids=None, security_group_ids=None, payment_timing=None, status=None, tags=None,
|
|
1080
|
-
vpc_id=None, private_ips=None, ipv6_addresses=None, auto_renew=None,
|
|
1086
|
+
vpc_id=None, private_ips=None, ipv6_addresses=None, auto_renew=None, fuzzy_instance_name=None,
|
|
1087
|
+
config=None):
|
|
1081
1088
|
"""
|
|
1082
1089
|
Return a list of instances owned by the authenticated user.
|
|
1083
1090
|
|
|
@@ -1159,6 +1166,10 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
1159
1166
|
:param auto_renew:
|
|
1160
1167
|
:type auto_renew: boolean
|
|
1161
1168
|
|
|
1169
|
+
:param fuzzy_instance_name:
|
|
1170
|
+
filter instance list with fuzzy instance name
|
|
1171
|
+
:type fuzzy_instance_name: string
|
|
1172
|
+
|
|
1162
1173
|
:return:
|
|
1163
1174
|
:rtype baidubce.bce_response.BceResponse
|
|
1164
1175
|
"""
|
|
@@ -1201,6 +1212,8 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
1201
1212
|
params['ipv6Addresses'] = ipv6_addresses
|
|
1202
1213
|
if auto_renew is not None:
|
|
1203
1214
|
params['autoRenew'] = auto_renew
|
|
1215
|
+
if fuzzy_instance_name is not None:
|
|
1216
|
+
params['fuzzyInstanceName'] = fuzzy_instance_name
|
|
1204
1217
|
return self._send_request(http_methods.GET, path, params=params, config=config)
|
|
1205
1218
|
|
|
1206
1219
|
@required(instance_id=(bytes, str)) # ***Unicode***
|
|
@@ -1568,6 +1581,7 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
1568
1581
|
memory_capacity_in_gb=int)
|
|
1569
1582
|
def resize_instance(self, instance_id, cpu_count, memory_capacity_in_gb,
|
|
1570
1583
|
live_resize=None, gpu_card_count=None, ephemeral_disk_in_gb=None,
|
|
1584
|
+
enable_jumbo_frame=None,
|
|
1571
1585
|
client_token=None, config=None):
|
|
1572
1586
|
"""
|
|
1573
1587
|
Resizing the instance owned by the user.
|
|
@@ -1589,6 +1603,18 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
1589
1603
|
The parameter of specified the capacity of memory in GB to resize the instance.
|
|
1590
1604
|
:type memory_capacity_in_gb: int
|
|
1591
1605
|
|
|
1606
|
+
:param enable_jumbo_frame:
|
|
1607
|
+
The parameter of specified the instance enable/disable jumbo frame.
|
|
1608
|
+
True means enable jumbo frame, false means disable jumbo frame.
|
|
1609
|
+
enable_jumbo_frame default None which means:
|
|
1610
|
+
When you change to the spec which doesn't support jumbo frame, the jumbo frame will be disabled.
|
|
1611
|
+
When the original instance don't support jumbo frame and you change to the spec which support jumbo frame,
|
|
1612
|
+
the jumbo frame will be disabled.
|
|
1613
|
+
When the original spec of the instance support jumbo frame , then you change to the spec which support jumbo
|
|
1614
|
+
frame, if the original instance enable jumbo frame, the jumbo frame will be enabled, if the original instance
|
|
1615
|
+
disable jumbo frame, the jumbo frame will be disabled.
|
|
1616
|
+
:type enable_jumbo_frame: bool
|
|
1617
|
+
|
|
1592
1618
|
:param client_token:
|
|
1593
1619
|
An ASCII string whose length is less than 64.
|
|
1594
1620
|
The request will be idempotent if client token is provided.
|
|
@@ -1622,6 +1648,8 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
1622
1648
|
body['gpuCardCount'] = gpu_card_count
|
|
1623
1649
|
if ephemeral_disk_in_gb is not None:
|
|
1624
1650
|
body['ephemeralDiskInGb'] = ephemeral_disk_in_gb
|
|
1651
|
+
if enable_jumbo_frame is not None:
|
|
1652
|
+
body['enableJumboFrame'] = enable_jumbo_frame
|
|
1625
1653
|
params = None
|
|
1626
1654
|
if client_token is None:
|
|
1627
1655
|
params = {
|
|
@@ -3338,6 +3366,22 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
3338
3366
|
path = b'/securityGroup/rule/%s' % security_group_rule_id
|
|
3339
3367
|
return self._send_request(http_methods.DELETE, path, params=None, config=config)
|
|
3340
3368
|
|
|
3369
|
+
@required(security_group_id=(bytes, str)) # ***Unicode***
|
|
3370
|
+
def get_security_group_detail(self, security_group_id, config=None):
|
|
3371
|
+
"""
|
|
3372
|
+
get a security group detail from the specified security group
|
|
3373
|
+
:param security_group_id:
|
|
3374
|
+
The id of security_group that will be deleted.
|
|
3375
|
+
:type security_group_id: string
|
|
3376
|
+
:param config:
|
|
3377
|
+
:type config: baidubce.BceClientConfiguration
|
|
3378
|
+
:return:
|
|
3379
|
+
:rtype baidubce.bce_response.BceResponse
|
|
3380
|
+
"""
|
|
3381
|
+
security_group_id = compat.convert_to_bytes(security_group_id)
|
|
3382
|
+
path = b'/securityGroup/%s' % security_group_id
|
|
3383
|
+
return self._send_request(http_methods.GET, path, params=None, config=config)
|
|
3384
|
+
|
|
3341
3385
|
def list_zones(self, config=None):
|
|
3342
3386
|
"""
|
|
3343
3387
|
Get zone detail list within current region
|
|
@@ -3906,6 +3950,7 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
3906
3950
|
is_open_ipv6=None, tags=None, key_pair_id=None, auto_renew_time_unit=None,
|
|
3907
3951
|
auto_renew_time=0, cds_auto_renew=None, asp_id=None, bid_model=None, bid_price=None,
|
|
3908
3952
|
dedicate_host_id=None, deploy_id=None, deploy_id_list=None, enable_jumbo_frame=None,
|
|
3953
|
+
cpu_thread_config=None, numa_config=None,
|
|
3909
3954
|
client_token=None, config=None):
|
|
3910
3955
|
"""
|
|
3911
3956
|
Create a bcc Instance with the specified options.
|
|
@@ -4109,6 +4154,14 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
4109
4154
|
True indicates enabled, false indicates disabled,
|
|
4110
4155
|
:type enable_jumbo_frame: bool
|
|
4111
4156
|
|
|
4157
|
+
:param cpu_thread_config:
|
|
4158
|
+
Manage hyper - threading, which is the same on both Intel and AMD platforms.
|
|
4159
|
+
:type cpu_thread_config: string
|
|
4160
|
+
|
|
4161
|
+
:param numa_config:
|
|
4162
|
+
Manage NPS on AMD platforms. Manage NUMA on Intel platforms.
|
|
4163
|
+
:type numa_config: string
|
|
4164
|
+
|
|
4112
4165
|
:return:
|
|
4113
4166
|
:rtype baidubce.bce_response.BceResponse
|
|
4114
4167
|
"""
|
|
@@ -4196,6 +4249,10 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
4196
4249
|
body['tags'] = tag_list
|
|
4197
4250
|
if enable_jumbo_frame is not None:
|
|
4198
4251
|
body['enableJumboFrame'] = enable_jumbo_frame
|
|
4252
|
+
if cpu_thread_config is not None:
|
|
4253
|
+
body['cpuThreadConfig'] = cpu_thread_config
|
|
4254
|
+
if numa_config is not None:
|
|
4255
|
+
body['numaConfig'] = numa_config
|
|
4199
4256
|
body['cdsAutoRenew'] = cds_auto_renew
|
|
4200
4257
|
|
|
4201
4258
|
return self._send_request(http_methods.POST, path, json.dumps(body),
|
|
@@ -4332,7 +4389,6 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
4332
4389
|
params['clientToken'] = generate_client_token()
|
|
4333
4390
|
else:
|
|
4334
4391
|
params['clientToken'] = client_token
|
|
4335
|
-
instance_id = compat.convert_to_bytes(instance_id)
|
|
4336
4392
|
path = b'/instance/delete'
|
|
4337
4393
|
body = {}
|
|
4338
4394
|
body['instanceId'] = instance_id
|
|
@@ -5376,7 +5432,7 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
5376
5432
|
|
|
5377
5433
|
return self._send_request(http_methods.GET, path, params=params, config=config)
|
|
5378
5434
|
|
|
5379
|
-
def resize_instance_by_spec(self, instance_id, spec, client_token=None, config=None):
|
|
5435
|
+
def resize_instance_by_spec(self, instance_id, spec, enable_jumbo_frame=None, client_token=None, config=None):
|
|
5380
5436
|
"""
|
|
5381
5437
|
Resize instance by spec.
|
|
5382
5438
|
|
|
@@ -5388,6 +5444,18 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
5388
5444
|
The name of spec.
|
|
5389
5445
|
:type spec: string
|
|
5390
5446
|
|
|
5447
|
+
:param enable_jumbo_frame:
|
|
5448
|
+
The parameter of specified the instance enable/disable jumbo frame.
|
|
5449
|
+
True means enable jumbo frame, false means disable jumbo frame.
|
|
5450
|
+
enable_jumbo_frame default None which means:
|
|
5451
|
+
When you change to the spec which doesn't support jumbo frame, the jumbo frame will be disabled.
|
|
5452
|
+
When the original instance don't support jumbo frame and you change to the spec which support jumbo frame,
|
|
5453
|
+
the jumbo frame will be disabled.
|
|
5454
|
+
When the original spec of the instance support jumbo frame , then you change to the spec which support jumbo
|
|
5455
|
+
frame, if the original instance enable jumbo frame, the jumbo frame will be enabled, if the original instance
|
|
5456
|
+
disable jumbo frame, the jumbo frame will be disabled.
|
|
5457
|
+
:type enable_jumbo_frame: bool
|
|
5458
|
+
|
|
5391
5459
|
:return:
|
|
5392
5460
|
:rtype baidubce.bce_response.BceResponse
|
|
5393
5461
|
"""
|
|
@@ -5403,6 +5471,8 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
5403
5471
|
body = {
|
|
5404
5472
|
"spec": spec
|
|
5405
5473
|
}
|
|
5474
|
+
if enable_jumbo_frame is not None:
|
|
5475
|
+
body['enableJumboFrame'] = enable_jumbo_frame
|
|
5406
5476
|
|
|
5407
5477
|
return self._send_request(http_methods.PUT, path, body=json.dumps(body), params=params, config=config)
|
|
5408
5478
|
|
|
@@ -5448,7 +5518,8 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
5448
5518
|
body['keypairId'] = keypair_id
|
|
5449
5519
|
return self._send_request(http_methods.PUT, path, body=json.dumps(body), params=params, config=config)
|
|
5450
5520
|
|
|
5451
|
-
def change_to_prepaid(self, instance_id, duration, relation_cds
|
|
5521
|
+
def change_to_prepaid(self, instance_id, duration, relation_cds, auto_renew, auto_renew_period=None,
|
|
5522
|
+
client_token=None, config=None):
|
|
5452
5523
|
"""
|
|
5453
5524
|
Change instance pay timing to prepaid.
|
|
5454
5525
|
|
|
@@ -5464,6 +5535,17 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
5464
5535
|
Set whether to chagne the associated data disk. True - change; False - no change. Default is False.
|
|
5465
5536
|
:type relation_cds: bool
|
|
5466
5537
|
|
|
5538
|
+
:param auto_renew:
|
|
5539
|
+
Whether to enable automatic renewal, defaults to False.
|
|
5540
|
+
:type auto_renew: bool
|
|
5541
|
+
|
|
5542
|
+
|
|
5543
|
+
:param auto_renew_period:
|
|
5544
|
+
Duration of each automatic renewal(Unit: months).
|
|
5545
|
+
Value range: 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36. If not specified, the default is 1.
|
|
5546
|
+
This parameter is effective only when auto_renew is set to true.
|
|
5547
|
+
:type auto_renew_period: int
|
|
5548
|
+
|
|
5467
5549
|
:return:
|
|
5468
5550
|
:rtype baidubce.bce_response.BceResponse
|
|
5469
5551
|
"""
|
|
@@ -5479,6 +5561,9 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
5479
5561
|
body = {
|
|
5480
5562
|
"duration": duration
|
|
5481
5563
|
}
|
|
5564
|
+
if auto_renew is not None:
|
|
5565
|
+
body['autoRenew'] = auto_renew
|
|
5566
|
+
body['autoRenewPeriod'] = auto_renew_period
|
|
5482
5567
|
if relation_cds is not None:
|
|
5483
5568
|
body['relationCds'] = relation_cds
|
|
5484
5569
|
return self._send_request(http_methods.POST, path, body=json.dumps(body), params=params, config=config)
|
|
@@ -5852,7 +5937,7 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
5852
5937
|
return self._send_request(http_methods.POST, path, body=json.dumps(body), params=params, config=config)
|
|
5853
5938
|
|
|
5854
5939
|
def batch_resize_instance(self, instance_ids, spec, subnet_id=None, logical_zone=None, internal_ip_v4=None,
|
|
5855
|
-
client_token=None, config=None):
|
|
5940
|
+
enable_jumbo_frame=None, client_token=None, config=None):
|
|
5856
5941
|
"""
|
|
5857
5942
|
batch resize instance
|
|
5858
5943
|
|
|
@@ -5876,6 +5961,18 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
5876
5961
|
internal ip for ipv4
|
|
5877
5962
|
:type internal_ip_v4: string
|
|
5878
5963
|
|
|
5964
|
+
:param enable_jumbo_frame:
|
|
5965
|
+
The parameter of specified the instance enable/disable jumbo frame.
|
|
5966
|
+
True means enable jumbo frame, false means disable jumbo frame.
|
|
5967
|
+
enable_jumbo_frame default None which means:
|
|
5968
|
+
When you change to the spec which doesn't support jumbo frame, the jumbo frame will be disabled.
|
|
5969
|
+
When the original instance don't support jumbo frame and you change to the spec which support jumbo frame,
|
|
5970
|
+
the jumbo frame will be disabled.
|
|
5971
|
+
When the original spec of the instance support jumbo frame , then you change to the spec which support jumbo
|
|
5972
|
+
frame, if the original instance enable jumbo frame, the jumbo frame will be enabled, if the original instance
|
|
5973
|
+
disable jumbo frame, the jumbo frame will be disabled.
|
|
5974
|
+
:type enable_jumbo_frame: bool
|
|
5975
|
+
|
|
5879
5976
|
:return:
|
|
5880
5977
|
:rtype baidubce.bce_response.BceResponse
|
|
5881
5978
|
"""
|
|
@@ -5897,6 +5994,9 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
5897
5994
|
body['logicalZone'] = logical_zone
|
|
5898
5995
|
if internal_ip_v4 is not None:
|
|
5899
5996
|
body['internalIpV4'] = internal_ip_v4
|
|
5997
|
+
if enable_jumbo_frame is not None:
|
|
5998
|
+
body['enableJumboFrame'] = enable_jumbo_frame
|
|
5999
|
+
|
|
5900
6000
|
return self._send_request(http_methods.PUT, path, body=json.dumps(body), params=params, config=config)
|
|
5901
6001
|
|
|
5902
6002
|
def list_available_resize_specs(self, instance_ids, spec=None, spec_id=None, logical_zone=None,
|
|
@@ -6757,6 +6857,22 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
6757
6857
|
|
|
6758
6858
|
return self._send_request(http_methods.PUT, path, body=json.dumps(body), params=params, config=config)
|
|
6759
6859
|
|
|
6860
|
+
def get_instance_user_data(self, instance_id, client_token=None, config=None):
|
|
6861
|
+
"""
|
|
6862
|
+
get_instance_user_data
|
|
6863
|
+
"""
|
|
6864
|
+
path = b'/instance/attribute/getUserdata'
|
|
6865
|
+
params = {}
|
|
6866
|
+
if client_token is None:
|
|
6867
|
+
params['clientToken'] = generate_client_token()
|
|
6868
|
+
else:
|
|
6869
|
+
params['clientToken'] = client_token
|
|
6870
|
+
body = {
|
|
6871
|
+
"instanceId": instance_id
|
|
6872
|
+
}
|
|
6873
|
+
return self._send_request(http_methods.POST, path, json.dumps(body),
|
|
6874
|
+
params=params, config=config)
|
|
6875
|
+
|
|
6760
6876
|
|
|
6761
6877
|
def generate_client_token_by_uuid():
|
|
6762
6878
|
"""
|
|
@@ -140,12 +140,15 @@ class PayTimingChangeReqModel(object):
|
|
|
140
140
|
This class define detail of change pay timing.
|
|
141
141
|
"""
|
|
142
142
|
|
|
143
|
-
def __init__(self, instanceId, relationCds=False, cdsList=None, duration=None, autoPay=True
|
|
143
|
+
def __init__(self, instanceId, relationCds=False, cdsList=None, duration=None, autoPay=True,
|
|
144
|
+
autoRenew=None, autoRenewPeriod=None):
|
|
144
145
|
self.instanceId = instanceId
|
|
145
146
|
self.relationCds = relationCds
|
|
146
147
|
self.cdsList = cdsList
|
|
147
148
|
self.duration = duration
|
|
148
149
|
self.autoPay = autoPay
|
|
150
|
+
self.autoRenew = autoRenew
|
|
151
|
+
self.autoRenewPeriod = autoRenewPeriod
|
|
149
152
|
|
|
150
153
|
|
|
151
154
|
class DestRegionInfoModel(object):
|
|
@@ -515,6 +515,7 @@ class AppBlbClient(bce_base_client.BceBaseClient):
|
|
|
515
515
|
ie6_compatible=None, encryption_type=None,
|
|
516
516
|
encryption_protocols=None,
|
|
517
517
|
dual_auth=None, client_certIds=None,
|
|
518
|
+
additional_cert_domains=None,
|
|
518
519
|
client_token=None, config=None):
|
|
519
520
|
"""
|
|
520
521
|
Create a app https listener rule with the specified options.
|
|
@@ -592,6 +593,9 @@ class AppBlbClient(bce_base_client.BceBaseClient):
|
|
|
592
593
|
If the clientToken is not specified by the user,
|
|
593
594
|
a random String generated by default algorithm will be used.
|
|
594
595
|
:type client_token: string
|
|
596
|
+
:param additional_cert_domains:
|
|
597
|
+
Additional domain,each element is an object that contains two attributes, namely "cert_id" and "host"
|
|
598
|
+
:type additional_cert_domains: list
|
|
595
599
|
:param config:
|
|
596
600
|
:type config: baidubce.BceClientConfiguration
|
|
597
601
|
:return
|
|
@@ -631,6 +635,8 @@ class AppBlbClient(bce_base_client.BceBaseClient):
|
|
|
631
635
|
body['dualAuth'] = dual_auth
|
|
632
636
|
if client_certIds is not None:
|
|
633
637
|
body['clientCertIds'] = client_certIds
|
|
638
|
+
if additional_cert_domains is not None:
|
|
639
|
+
body['additionalCertDomains'] = additional_cert_domains
|
|
634
640
|
return self._send_request(http_methods.POST, path,
|
|
635
641
|
body=json.dumps(body),
|
|
636
642
|
params=params, config=config)
|
|
@@ -946,6 +952,7 @@ class AppBlbClient(bce_base_client.BceBaseClient):
|
|
|
946
952
|
encryption_protocols=None,
|
|
947
953
|
dual_auth=None,
|
|
948
954
|
client_certIds=None,
|
|
955
|
+
additional_cert_domains=None,
|
|
949
956
|
client_token=None,
|
|
950
957
|
config=None):
|
|
951
958
|
"""
|
|
@@ -1020,6 +1027,9 @@ class AppBlbClient(bce_base_client.BceBaseClient):
|
|
|
1020
1027
|
:param client_certIds:
|
|
1021
1028
|
When dualAuth is true, the loaded client certificate chain
|
|
1022
1029
|
:type client_certIds: list
|
|
1030
|
+
:param additional_cert_domains:
|
|
1031
|
+
Additional domain name,each element is an object that contains two attributes, namely "cert_id" and "host"
|
|
1032
|
+
:type additional_cert_domains: list
|
|
1023
1033
|
:param client_token:
|
|
1024
1034
|
If the clientToken is not specified by the user,
|
|
1025
1035
|
a random String generated by default algorithm will be used.
|
|
@@ -1065,6 +1075,8 @@ class AppBlbClient(bce_base_client.BceBaseClient):
|
|
|
1065
1075
|
body['dualAuth'] = dual_auth
|
|
1066
1076
|
if client_certIds is not None:
|
|
1067
1077
|
body['clientCertIds'] = client_certIds
|
|
1078
|
+
if additional_cert_domains is not None:
|
|
1079
|
+
body['additionalCertDomains'] = additional_cert_domains
|
|
1068
1080
|
return self._send_request(http_methods.PUT, path,
|
|
1069
1081
|
body=json.dumps(body), params=params,
|
|
1070
1082
|
config=config)
|
|
@@ -829,6 +829,7 @@ class BlbClient(bce_base_client.BceBaseClient):
|
|
|
829
829
|
server_timeout=None, ie6_compatible=None,
|
|
830
830
|
encryption_type=None, encryption_protocols=None,
|
|
831
831
|
dual_auth=None, client_certIds=None,
|
|
832
|
+
additional_cert_domains=None,
|
|
832
833
|
client_token=None, config=None):
|
|
833
834
|
"""
|
|
834
835
|
Create a https listener rule with the specified options
|
|
@@ -943,6 +944,9 @@ class BlbClient(bce_base_client.BceBaseClient):
|
|
|
943
944
|
:param client_certIds:
|
|
944
945
|
When dualAuth is true, the loaded client certificate chain
|
|
945
946
|
:type client_certIds: list
|
|
947
|
+
:param additional_cert_domains:
|
|
948
|
+
Additional domain name,each element is an object that contains two attributes, namely "certId" and "host"
|
|
949
|
+
:type additional_cert_domains: list
|
|
946
950
|
:param client_token:
|
|
947
951
|
If the clientToken is not specified by the user,
|
|
948
952
|
a random String generated by default algorithm will be used.
|
|
@@ -1006,6 +1010,8 @@ class BlbClient(bce_base_client.BceBaseClient):
|
|
|
1006
1010
|
body['dualAuth'] = dual_auth
|
|
1007
1011
|
if client_certIds is not None:
|
|
1008
1012
|
body['clientCertIds'] = client_certIds
|
|
1013
|
+
if additional_cert_domains is not None:
|
|
1014
|
+
body['additionalCertDomains'] = additional_cert_domains
|
|
1009
1015
|
return self._send_request(http_methods.POST, path,
|
|
1010
1016
|
body=json.dumps(body),
|
|
1011
1017
|
params=params, config=config)
|
|
@@ -1771,8 +1777,8 @@ class BlbClient(bce_base_client.BceBaseClient):
|
|
|
1771
1777
|
unhealth_threshold=None, health_threshold=None,
|
|
1772
1778
|
health_check_normal_status=None,
|
|
1773
1779
|
server_timeout=None,
|
|
1774
|
-
cert_ids=None,
|
|
1775
|
-
config=None):
|
|
1780
|
+
cert_ids=None, additional_cert_domains=None,
|
|
1781
|
+
ie6_compatible=None, config=None):
|
|
1776
1782
|
"""
|
|
1777
1783
|
update a https listener rule with the specified options.
|
|
1778
1784
|
:param blb_id:
|
|
@@ -1860,6 +1866,9 @@ class BlbClient(bce_base_client.BceBaseClient):
|
|
|
1860
1866
|
The SSL certificate to be loaded by the listener.
|
|
1861
1867
|
Currently HTTPS listeners can only bind one SSL certificate.
|
|
1862
1868
|
:type cert_ids:List<String>
|
|
1869
|
+
:param: additional_cert_domains:
|
|
1870
|
+
Additional domain name,each element is an object that contains two attributes, namely "cert_id" and "host"
|
|
1871
|
+
:type additional_cert_domains: list
|
|
1863
1872
|
:param ie6_compatible:
|
|
1864
1873
|
Is it compatible with IE6 HTTPS request
|
|
1865
1874
|
(the protocol format is earlier SSL3.0, the security is poor)
|
|
@@ -1913,6 +1922,8 @@ class BlbClient(bce_base_client.BceBaseClient):
|
|
|
1913
1922
|
body['serverTimeout'] = server_timeout
|
|
1914
1923
|
if cert_ids is not None:
|
|
1915
1924
|
body['certIds'] = cert_ids
|
|
1925
|
+
if additional_cert_domains is not None:
|
|
1926
|
+
body['additionalCertDomains'] = additional_cert_domains
|
|
1916
1927
|
if ie6_compatible is not None:
|
|
1917
1928
|
body['ie6Compatible'] = ie6_compatible
|
|
1918
1929
|
return self._send_request(http_methods.PUT, path,
|
|
@@ -2550,6 +2561,7 @@ class BlbClient(bce_base_client.BceBaseClient):
|
|
|
2550
2561
|
return self._send_request(http_methods.GET, path, params=params,
|
|
2551
2562
|
config=config)
|
|
2552
2563
|
|
|
2564
|
+
|
|
2553
2565
|
def generate_client_token_by_uuid():
|
|
2554
2566
|
"""
|
|
2555
2567
|
The default method to generate the random string for client_token
|
|
@@ -427,9 +427,10 @@ class BtsClient(BceBaseClient):
|
|
|
427
427
|
|
|
428
428
|
body = json.dumps(get_row_data)
|
|
429
429
|
path = bts.URL_PREFIX + b"/" + instance_name + b"/table/" + table_name + b"/row"
|
|
430
|
-
response = self._send_request(http_methods.
|
|
430
|
+
response = self._send_request(http_methods.POST, path=path, config=config,
|
|
431
431
|
body=body,
|
|
432
|
-
headers={http_headers.CONTENT_TYPE: http_content_types.JSON
|
|
432
|
+
headers={http_headers.CONTENT_TYPE: http_content_types.JSON,
|
|
433
|
+
http_headers.BTS_METHOD_HEADER: http_methods.GET})
|
|
433
434
|
try:
|
|
434
435
|
if response.result is not None:
|
|
435
436
|
response.result[0].rowkey = _decode(str(response.result[0].rowkey))
|
|
@@ -483,9 +484,10 @@ class BtsClient(BceBaseClient):
|
|
|
483
484
|
|
|
484
485
|
body = json.dumps(batch_get_row_data)
|
|
485
486
|
path = bts.URL_PREFIX + b"/" + instance_name + b"/table/" + table_name + b"/rows"
|
|
486
|
-
response = self._send_request(http_methods.
|
|
487
|
+
response = self._send_request(http_methods.POST, path=path, config=config,
|
|
487
488
|
body=body,
|
|
488
|
-
headers={http_headers.CONTENT_TYPE: http_content_types.JSON
|
|
489
|
+
headers={http_headers.CONTENT_TYPE: http_content_types.JSON,
|
|
490
|
+
http_headers.BTS_METHOD_HEADER: http_methods.GET})
|
|
489
491
|
|
|
490
492
|
try:
|
|
491
493
|
if response.result is not None:
|
|
@@ -165,6 +165,14 @@ csn_apis = {
|
|
|
165
165
|
"headers": {
|
|
166
166
|
}
|
|
167
167
|
},
|
|
168
|
+
"get_csn_bp_price": {
|
|
169
|
+
"method": http_methods.POST,
|
|
170
|
+
"path": "/v1/csn/bp/price",
|
|
171
|
+
"queries":{
|
|
172
|
+
},
|
|
173
|
+
"headers":{
|
|
174
|
+
}
|
|
175
|
+
},
|
|
168
176
|
"list_association": {
|
|
169
177
|
"method": http_methods.GET,
|
|
170
178
|
"path": "/v1/csn/routeTable/[csnRtId]/association",
|
|
@@ -146,7 +146,7 @@ class CsnClient(bce_base_client.BceBaseClient):
|
|
|
146
146
|
return self._send_request(api_config["method"], quote(api_config["path"]).encode("utf8"), api_config["headers"],
|
|
147
147
|
api_config["queries"], json.dumps(body))
|
|
148
148
|
|
|
149
|
-
def create_csn(self, name, description=None, client_token=None):
|
|
149
|
+
def create_csn(self, name, description=None, tags=None, client_token=None):
|
|
150
150
|
"""
|
|
151
151
|
创建云智能网。
|
|
152
152
|
|
|
@@ -158,6 +158,10 @@ class CsnClient(bce_base_client.BceBaseClient):
|
|
|
158
158
|
:desc 云智能网的描述
|
|
159
159
|
:type description: str
|
|
160
160
|
|
|
161
|
+
:param tags:
|
|
162
|
+
:desc 云智能网的标签列表
|
|
163
|
+
:type tags: list[Tag]
|
|
164
|
+
|
|
161
165
|
:param client_token:
|
|
162
166
|
:desc 幂等性Token,是一个长度不超过64位的ASCII字符串,详见ClientToken幂等性
|
|
163
167
|
:type client_token: str
|
|
@@ -172,11 +176,14 @@ class CsnClient(bce_base_client.BceBaseClient):
|
|
|
172
176
|
'name': name,
|
|
173
177
|
'description': description,
|
|
174
178
|
}
|
|
179
|
+
if tags is not None:
|
|
180
|
+
tag_list = [tag.__dict__ for tag in tags]
|
|
181
|
+
body['tags'] = tag_list
|
|
175
182
|
return self._send_request(api_config["method"], quote(api_config["path"]).encode("utf8"), api_config["headers"],
|
|
176
183
|
api_config["queries"], json.dumps(body))
|
|
177
184
|
|
|
178
185
|
def create_csn_bp(self, name, bandwidth, geographic_a, geographic_b, billing,
|
|
179
|
-
interwork_type=None, client_token=None):
|
|
186
|
+
interwork_type=None, tags=None, client_token=None):
|
|
180
187
|
"""
|
|
181
188
|
创建云智能网共享带宽包。
|
|
182
189
|
|
|
@@ -204,6 +211,10 @@ class CsnClient(bce_base_client.BceBaseClient):
|
|
|
204
211
|
:desc 带宽包的计费信息
|
|
205
212
|
:type billing: Billing
|
|
206
213
|
|
|
214
|
+
:param tags:
|
|
215
|
+
:desc 带宽包的标签列表
|
|
216
|
+
:type tags: list[Tag]
|
|
217
|
+
|
|
207
218
|
:param client_token:
|
|
208
219
|
:desc 幂等性Token,是一个长度不超过64位的ASCII字符串
|
|
209
220
|
:type client_token: str
|
|
@@ -222,6 +233,9 @@ class CsnClient(bce_base_client.BceBaseClient):
|
|
|
222
233
|
'geographicB': geographic_b,
|
|
223
234
|
'billing': billing.__dict__,
|
|
224
235
|
}
|
|
236
|
+
if tags is not None:
|
|
237
|
+
tag_list = [tag.__dict__ for tag in tags]
|
|
238
|
+
body['tags'] = tag_list
|
|
225
239
|
|
|
226
240
|
return self._send_request(api_config["method"], quote(api_config["path"]).encode("utf8"), api_config["headers"],
|
|
227
241
|
api_config["queries"], json.dumps(body))
|
|
@@ -582,6 +596,45 @@ class CsnClient(bce_base_client.BceBaseClient):
|
|
|
582
596
|
|
|
583
597
|
return self._send_request(api_config["method"], quote(api_config["path"]).encode("utf8"), api_config["headers"],
|
|
584
598
|
api_config["queries"])
|
|
599
|
+
|
|
600
|
+
def get_csn_bp_price(self, name, geographic_a, geographic_b, billing, bandwidth=None):
|
|
601
|
+
"""
|
|
602
|
+
带宽包询价。
|
|
603
|
+
|
|
604
|
+
:param name:
|
|
605
|
+
:desc 带宽包名称
|
|
606
|
+
:type name: str
|
|
607
|
+
|
|
608
|
+
:param geographic_a:
|
|
609
|
+
:desc 网络实例所属的区域。取值 [ China | Asia-Pacific ],分别表示中国大陆、亚太区域
|
|
610
|
+
:type geographic_a: str
|
|
611
|
+
|
|
612
|
+
:param geographic_b:
|
|
613
|
+
:desc 另一个网络实例所属的区域。取值 [ China | Asia-Pacific ],分别表示中国大陆、亚太区域
|
|
614
|
+
:type geographic_b: str
|
|
615
|
+
|
|
616
|
+
:param billing:
|
|
617
|
+
:desc 计费信息
|
|
618
|
+
:type billing: Billing
|
|
619
|
+
|
|
620
|
+
:param bandwidth:
|
|
621
|
+
:desc 带宽包的带宽值,单位:Mbps,后付费按流量不需要该值
|
|
622
|
+
:type bandwidth: int
|
|
623
|
+
|
|
624
|
+
:return:
|
|
625
|
+
:rtype baidubce.bce_response.BceResponse
|
|
626
|
+
"""
|
|
627
|
+
api_config = self._get_config(csn_apis, "get_csn_bp_price")
|
|
628
|
+
body = {
|
|
629
|
+
'name': name,
|
|
630
|
+
'geographicA': geographic_a,
|
|
631
|
+
'geographicB': geographic_b,
|
|
632
|
+
'billing': billing.__dict__,
|
|
633
|
+
}
|
|
634
|
+
if bandwidth is not None:
|
|
635
|
+
body['bandwidth'] = bandwidth
|
|
636
|
+
return self._send_request(api_config["method"], quote(api_config["path"]).encode("utf8"), api_config["headers"],
|
|
637
|
+
api_config["queries"], json.dumps(body))
|
|
585
638
|
|
|
586
639
|
def list_association(self, csn_rt_id=None):
|
|
587
640
|
"""
|
|
@@ -19,7 +19,7 @@ class Billing(object):
|
|
|
19
19
|
billing information
|
|
20
20
|
"""
|
|
21
21
|
|
|
22
|
-
def __init__(self, payment_timing=None, reservation_length=None, reservation_time_unit=None):
|
|
22
|
+
def __init__(self, payment_timing=None, reservation_length=None, reservation_time_unit=None, billing_method=None):
|
|
23
23
|
"""
|
|
24
24
|
:type payment_timing: string
|
|
25
25
|
:param payment_timing: The pay time of the payment
|
|
@@ -29,8 +29,14 @@ class Billing(object):
|
|
|
29
29
|
|
|
30
30
|
:type reservation_time_unit: string
|
|
31
31
|
:param reservation_time_unit: time unit of purchasing, default 'month'
|
|
32
|
+
|
|
33
|
+
:type billing_method: string
|
|
34
|
+
:param billing_method: The billing method of the payment, include ByTraffic, ByBandwidth,
|
|
35
|
+
PeakBandwidth_Percent_95, Enhanced_Percent_95
|
|
32
36
|
"""
|
|
33
37
|
self.paymentTiming = payment_timing
|
|
38
|
+
if billing_method:
|
|
39
|
+
self.billingMethod = billing_method
|
|
34
40
|
self.reservation = {
|
|
35
41
|
"reservationLength": reservation_length,
|
|
36
42
|
"reservationTimeUnit": reservation_time_unit
|