bce-python-sdk 0.9.21__tar.gz → 0.9.22__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.21 → bce_python_sdk-0.9.22}/PKG-INFO +1 -1
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/__init__.py +1 -1
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/bce_client_configuration.py +2 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/http/bce_http_client.py +22 -1
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/http/http_headers.py +2 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/bos/bos_client.py +101 -8
- bce_python_sdk-0.9.22/baidubce/services/bos/common.py +8 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/bce_python_sdk.egg-info/PKG-INFO +1 -1
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/bce_python_sdk.egg-info/SOURCES.txt +1 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/README.txt +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/auth/__init__.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/auth/bce_credentials.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/auth/bce_v1_signer.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/bce_base_client.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/bce_response.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/compat.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/exception.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/http/__init__.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/http/handler.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/http/http_content_types.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/http/http_methods.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/protocol.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/region.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/retry/__init__.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/retry/retry_policy.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/__init__.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/autoscaling/__init__.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/autoscaling/as_client.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/autoscaling/as_handler.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/autoscaling/as_model.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/bbc/__init__.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/bbc/bbc_client.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/bbc/bbc_model.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/bcc/__init__.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/bcc/bcc_client.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/bcc/bcc_model.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/bcc/fpga_card_type.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/bcc/gpu_card_type.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/bcm/__init__.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/bcm/bcm_client.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/bcm/bcm_handler.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/bcm/bcm_model.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/bes/__init__.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/bes/bes_client.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/bes/bes_model.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/blb/__init__.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/blb/app_blb_client.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/blb/blb_client.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/blb/user_service_client.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/bmr/__init__.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/bmr/bmr_client.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/bos/__init__.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/bos/bos_handler.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/bos/canned_acl.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/bos/storage_class.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/bts/__init__.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/bts/bts_client.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/bts/model.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/bts/util.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/ca/__init__.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/ca/ca_client.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/ca/ca_handler.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/ca/ca_model.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/cdn/__init__.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/cdn/cdn_client.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/cdn/cdn_stats_param.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/cert/__init__.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/cert/cert_client.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/cert/cert_model.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/cfc/__init__.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/cfc/cfc_client.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/cfc/cfc_handler.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/cfc/models.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/csn/__init__.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/csn/csn_api.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/csn/csn_client.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/csn/csn_model.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/ddc/__init__.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/ddc/ddc_client.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/dns/__init__.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/dns/api/__init__.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/dns/api/dns_api.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/dns/dns_client.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/dumap/__init__.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/dumap/dumap_client.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/eip/__init__.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/eip/eip_bp_client.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/eip/eip_client.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/eip/eip_group_client.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/eip/eip_group_model.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/eip/eip_tp_client.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/eip/model.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/endpoint/__init__.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/endpoint/endpoint_client.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/endpoint/model.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/eni/__init__.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/eni/eni_client.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/eni/eni_model.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/esg/__init__.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/esg/esg_client.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/esg/esg_model.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/et/__init__.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/et/et_client.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/et/model.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/etGateway/__init__.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/etGateway/et_gateway_client.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/havip/havip_client.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/iam/__init__.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/iam/iam_client.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/infinite/__init__.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/infinite/infinite_client.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/ipv6gateway/__init__.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/ipv6gateway/ipv6gateway_client.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/ipv6gateway/ipv6gateway_model.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/kms/__init__.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/kms/keyspec_class.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/kms/kms_client.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/kms/origin_class.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/kms/protectedby_class.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/kms/publickeyencoding_class.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/lbdc/__init__.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/lbdc/lbdc_client.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/lbdc/model.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/localdns/__init__.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/localdns/api/__init__.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/localdns/api/ld_api.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/localdns/ld_client.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/media/__init__.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/media/media_client.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/media/media_handler.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/mms/__init__.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/mms/mms_client.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/mvs/__init__.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/mvs/mvs_client.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/oos/__init__.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/oos/oos_client.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/oos/oos_model.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/probe/__init__.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/probe/probe_client.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/rds/__init__.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/rds/rds_client.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/rds/rds_model.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/route/__init__.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/route/route_client.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/route/route_model.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/scs/__init__.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/scs/model.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/scs/scs_client.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/sms/__init__.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/sms/model.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/sms/sms_client.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/sts/__init__.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/sts/sts_client.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/subnet/__init__.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/subnet/subnet_client.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/tsdb/__init__.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/tsdb/tsdb_admin_client.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/tsdb/tsdb_client.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/tsdb/tsdb_handler.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/vca/__init__.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/vca/vca_client.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/vcr/__init__.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/vcr/vcr_client.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/vpc/__init__.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/vpc/acl_client.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/vpc/nat_client.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/vpc/nat_model.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/vpc/peerconn_client.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/vpc/peerconn_model.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/vpc/vpc_client.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/vpn/__init__.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/vpn/vpn_client.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/vpn/vpn_model.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/utils.py +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/bce_python_sdk.egg-info/dependency_links.txt +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/bce_python_sdk.egg-info/requires.txt +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/bce_python_sdk.egg-info/top_level.txt +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/setup.cfg +0 -0
- {bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/setup.py +0 -0
|
@@ -41,6 +41,7 @@ class BceClientConfiguration(object):
|
|
|
41
41
|
proxy_host=None,
|
|
42
42
|
proxy_port=None,
|
|
43
43
|
path_style_enable=False,
|
|
44
|
+
auto_follow_redirect=False,
|
|
44
45
|
):
|
|
45
46
|
self.credentials = credentials
|
|
46
47
|
self.endpoint = compat.convert_to_bytes(endpoint) if endpoint is not None else endpoint
|
|
@@ -59,6 +60,7 @@ class BceClientConfiguration(object):
|
|
|
59
60
|
self.cname_enabled = cname_enabled
|
|
60
61
|
self.path_style_enable = path_style_enable
|
|
61
62
|
self.backup_endpoint = compat.convert_to_bytes(backup_endpoint) if backup_endpoint is not None else backup_endpoint
|
|
63
|
+
self.auto_follow_redirect = auto_follow_redirect
|
|
62
64
|
|
|
63
65
|
def merge_non_none_values(self, other):
|
|
64
66
|
"""
|
|
@@ -29,6 +29,10 @@ from baidubce.exception import BceHttpClientError
|
|
|
29
29
|
from baidubce.exception import BceServerError
|
|
30
30
|
from baidubce.exception import BceClientError
|
|
31
31
|
from baidubce.http import http_headers
|
|
32
|
+
try:
|
|
33
|
+
from urllib.parse import urlparse
|
|
34
|
+
except ImportError:
|
|
35
|
+
from urlparse import urlparse
|
|
32
36
|
|
|
33
37
|
_logger = logging.getLogger(__name__)
|
|
34
38
|
|
|
@@ -226,7 +230,24 @@ def send_request(
|
|
|
226
230
|
'request return: status=%d, headers=%s' % (http_response.status, headers_list))
|
|
227
231
|
response = BceResponse()
|
|
228
232
|
response.set_metadata_from_headers(dict(headers_list))
|
|
229
|
-
|
|
233
|
+
if config.auto_follow_redirect:
|
|
234
|
+
if http_method == b'GET' and 300 <= http_response.status < 400:
|
|
235
|
+
headers_map = {k: v for k, v in headers_list}
|
|
236
|
+
if 'location' in headers_map:
|
|
237
|
+
location = headers_map.get('location')
|
|
238
|
+
_logger.debug('request auto follow redirect location is %s', location)
|
|
239
|
+
parsed_url = urlparse(location)
|
|
240
|
+
if protocol.name == baidubce.protocol.HTTP.name:
|
|
241
|
+
redirect_conn = http.client.HTTPConnection(parsed_url.netloc,
|
|
242
|
+
timeout=config.connection_timeout_in_mills / 1000)
|
|
243
|
+
elif protocol.name == baidubce.protocol.HTTPS.name:
|
|
244
|
+
redirect_conn = http.client.HTTPSConnection(parsed_url.netloc,
|
|
245
|
+
timeout=config.connection_timeout_in_mills / 1000)
|
|
246
|
+
else:
|
|
247
|
+
raise ValueError('Invalid protocol: %s, either HTTP or HTTPS is expected.' % protocol)
|
|
248
|
+
redirect_conn.request("GET", parsed_url.path + "?" + parsed_url.query,
|
|
249
|
+
skip_host=True, skip_accept_encoding=True)
|
|
250
|
+
http_response = redirect_conn.getresponse()
|
|
230
251
|
for handler_function in response_handler_functions:
|
|
231
252
|
if handler_function(http_response, response):
|
|
232
253
|
break
|
|
@@ -953,7 +953,7 @@ class BosClient(BceBaseClient):
|
|
|
953
953
|
return True
|
|
954
954
|
|
|
955
955
|
@required(bucket_name=(bytes, str), key=(bytes, str))
|
|
956
|
-
def get_object(self, bucket_name, key, range=None, traffic_limit=None, config=None):
|
|
956
|
+
def get_object(self, bucket_name, key, range=None, traffic_limit=None, version_id=None, config=None):
|
|
957
957
|
"""
|
|
958
958
|
|
|
959
959
|
:param bucket_name:
|
|
@@ -962,6 +962,10 @@ class BosClient(BceBaseClient):
|
|
|
962
962
|
:param config:
|
|
963
963
|
:return:
|
|
964
964
|
"""
|
|
965
|
+
query_params = {}
|
|
966
|
+
if version_id is not None:
|
|
967
|
+
version_id = compat.convert_to_bytes(version_id)
|
|
968
|
+
query_params={b'versionId': version_id}
|
|
965
969
|
key = compat.convert_to_bytes(key)
|
|
966
970
|
if len(key) == 0 or key.startswith(b"/"):
|
|
967
971
|
raise BceClientError("Key can not be empty or start with '/' .")
|
|
@@ -975,6 +979,7 @@ class BosClient(BceBaseClient):
|
|
|
975
979
|
bucket_name,
|
|
976
980
|
key,
|
|
977
981
|
headers=range_header,
|
|
982
|
+
params=query_params,
|
|
978
983
|
config=config,
|
|
979
984
|
body_parser=BosClient._parse_bos_object)
|
|
980
985
|
# restore object
|
|
@@ -1027,7 +1032,7 @@ class BosClient(BceBaseClient):
|
|
|
1027
1032
|
return True
|
|
1028
1033
|
|
|
1029
1034
|
@required(bucket_name=(bytes, str), key=(bytes, str))
|
|
1030
|
-
def get_object_as_string(self, bucket_name, key, range=None, config=None):
|
|
1035
|
+
def get_object_as_string(self, bucket_name, key, range=None, version_id=None, config=None):
|
|
1031
1036
|
"""
|
|
1032
1037
|
|
|
1033
1038
|
:param bucket_name:
|
|
@@ -1037,14 +1042,14 @@ class BosClient(BceBaseClient):
|
|
|
1037
1042
|
:return:
|
|
1038
1043
|
"""
|
|
1039
1044
|
key = compat.convert_to_bytes(key)
|
|
1040
|
-
response = self.get_object(bucket_name, key, range=range, config=config)
|
|
1045
|
+
response = self.get_object(bucket_name, key, range=range, version_id = version_id, config=config)
|
|
1041
1046
|
s = response.data.read()
|
|
1042
1047
|
response.data.close()
|
|
1043
1048
|
return s
|
|
1044
1049
|
|
|
1045
1050
|
@required(bucket_name=(bytes, str), key=(bytes, str), file_name=(bytes, str))
|
|
1046
1051
|
def get_object_to_file(self, bucket_name, key, file_name, range=None, config=None,
|
|
1047
|
-
progress_callback=None, traffic_limit=None):
|
|
1052
|
+
progress_callback=None, traffic_limit=None, version_id=None):
|
|
1048
1053
|
"""
|
|
1049
1054
|
Get Content of Object and Put Content to File
|
|
1050
1055
|
|
|
@@ -1062,6 +1067,10 @@ class BosClient(BceBaseClient):
|
|
|
1062
1067
|
:return:
|
|
1063
1068
|
**HTTP Response**
|
|
1064
1069
|
"""
|
|
1070
|
+
query_params = {}
|
|
1071
|
+
if version_id is not None:
|
|
1072
|
+
version_id = compat.convert_to_bytes(version_id)
|
|
1073
|
+
query_params={b'versionId': version_id}
|
|
1065
1074
|
key = compat.convert_to_bytes(key)
|
|
1066
1075
|
if len(key) == 0 or key.startswith(b"/"):
|
|
1067
1076
|
raise BceClientError("Key can not be empty or start with '/' .")
|
|
@@ -1077,6 +1086,7 @@ class BosClient(BceBaseClient):
|
|
|
1077
1086
|
bucket_name,
|
|
1078
1087
|
key,
|
|
1079
1088
|
headers=range_header,
|
|
1089
|
+
params=query_params,
|
|
1080
1090
|
config=config,
|
|
1081
1091
|
body_parser=lambda http_response, response: BosClient._save_body_to_file(
|
|
1082
1092
|
http_response,
|
|
@@ -1087,7 +1097,7 @@ class BosClient(BceBaseClient):
|
|
|
1087
1097
|
|
|
1088
1098
|
|
|
1089
1099
|
@required(bucket_name=(bytes, str), key=(bytes, str))
|
|
1090
|
-
def get_object_meta_data(self, bucket_name, key, config=None):
|
|
1100
|
+
def get_object_meta_data(self, bucket_name, key, version_id=None, config=None):
|
|
1091
1101
|
"""
|
|
1092
1102
|
Get head of object
|
|
1093
1103
|
|
|
@@ -1099,8 +1109,13 @@ class BosClient(BceBaseClient):
|
|
|
1099
1109
|
:return:
|
|
1100
1110
|
**_GetObjectMetaDataResponse Class**
|
|
1101
1111
|
"""
|
|
1112
|
+
query_params = {}
|
|
1113
|
+
if version_id is not None:
|
|
1114
|
+
version_id = compat.convert_to_bytes(version_id)
|
|
1115
|
+
query_params={b'versionId': version_id}
|
|
1102
1116
|
key = compat.convert_to_bytes(key)
|
|
1103
|
-
return self._send_request(http_methods.HEAD, bucket_name, key,
|
|
1117
|
+
return self._send_request(http_methods.HEAD, bucket_name, key,
|
|
1118
|
+
params=query_params, config=config)
|
|
1104
1119
|
|
|
1105
1120
|
@required(bucket_name=(bytes, str),
|
|
1106
1121
|
key=(bytes, str),
|
|
@@ -1477,7 +1492,7 @@ class BosClient(BceBaseClient):
|
|
|
1477
1492
|
body_parser=bos_handler.parse_copy_object_response)
|
|
1478
1493
|
|
|
1479
1494
|
@required(bucket_name=(bytes, str), key=(bytes, str))
|
|
1480
|
-
def delete_object(self, bucket_name, key, config=None):
|
|
1495
|
+
def delete_object(self, bucket_name, key, version_id=None, config=None):
|
|
1481
1496
|
"""
|
|
1482
1497
|
Delete Object
|
|
1483
1498
|
|
|
@@ -1489,8 +1504,13 @@ class BosClient(BceBaseClient):
|
|
|
1489
1504
|
:return:
|
|
1490
1505
|
**HttpResponse Class**
|
|
1491
1506
|
"""
|
|
1507
|
+
query_params = {}
|
|
1508
|
+
if version_id is not None:
|
|
1509
|
+
version_id = compat.convert_to_bytes(version_id)
|
|
1510
|
+
query_params={b'versionId': version_id}
|
|
1492
1511
|
key = compat.convert_to_bytes(key)
|
|
1493
|
-
return self._send_request(http_methods.DELETE, bucket_name, key,
|
|
1512
|
+
return self._send_request(http_methods.DELETE, bucket_name, key,
|
|
1513
|
+
params=query_params, config=config)
|
|
1494
1514
|
|
|
1495
1515
|
@required(bucket_name=(bytes, str), key_list=list)
|
|
1496
1516
|
def delete_multiple_objects(self, bucket_name, key_list, config=None):
|
|
@@ -2509,6 +2529,79 @@ class BosClient(BceBaseClient):
|
|
|
2509
2529
|
key=key,
|
|
2510
2530
|
params={b'tagging': b''},
|
|
2511
2531
|
config=config,)
|
|
2532
|
+
|
|
2533
|
+
def put_bucket_versioning(self, bucket_name, status, config=None):
|
|
2534
|
+
"""
|
|
2535
|
+
put bucket versioning
|
|
2536
|
+
|
|
2537
|
+
:type bucket_name: string
|
|
2538
|
+
:param bucket_name: bucket name
|
|
2539
|
+
|
|
2540
|
+
:type status: string
|
|
2541
|
+
:param key: version status:disable/enabled/suspended
|
|
2542
|
+
|
|
2543
|
+
:return:
|
|
2544
|
+
"""
|
|
2545
|
+
return self._send_request(
|
|
2546
|
+
http_methods.PUT,
|
|
2547
|
+
bucket_name=bucket_name,
|
|
2548
|
+
body=json.dumps({'status': status}, default=BosClient._dump_acl_object),
|
|
2549
|
+
params={b'versioning': b''},
|
|
2550
|
+
config=config,)
|
|
2551
|
+
|
|
2552
|
+
def get_bucket_versioning(self, bucket_name, config=None):
|
|
2553
|
+
"""
|
|
2554
|
+
get bucket versioning
|
|
2555
|
+
|
|
2556
|
+
:type bucket_name: string
|
|
2557
|
+
:param bucket_name: bucket name
|
|
2558
|
+
|
|
2559
|
+
:return:
|
|
2560
|
+
"""
|
|
2561
|
+
return self._send_request(
|
|
2562
|
+
http_methods.GET,
|
|
2563
|
+
bucket_name=bucket_name,
|
|
2564
|
+
params={b'versioning': b''},
|
|
2565
|
+
config=config,)
|
|
2566
|
+
|
|
2567
|
+
@required(bucket_name=(bytes, str))
|
|
2568
|
+
def list_objects_versions(self, bucket_name,
|
|
2569
|
+
max_keys=1000, prefix=None, marker=None, version_marker=None,
|
|
2570
|
+
delimiter=None, config=None):
|
|
2571
|
+
"""
|
|
2572
|
+
Get Object Information of bucket
|
|
2573
|
+
|
|
2574
|
+
:type bucket: string
|
|
2575
|
+
:param bucket: None
|
|
2576
|
+
|
|
2577
|
+
:type delimiter: string
|
|
2578
|
+
:param delimiter: None
|
|
2579
|
+
|
|
2580
|
+
:type marker: string
|
|
2581
|
+
:param marker: None
|
|
2582
|
+
|
|
2583
|
+
:type max_keys: int
|
|
2584
|
+
:param max_keys: value <= 1000
|
|
2585
|
+
|
|
2586
|
+
:type prefix: string
|
|
2587
|
+
:param prefix: None
|
|
2588
|
+
|
|
2589
|
+
:return:
|
|
2590
|
+
**_ListObjectsResponse Class**
|
|
2591
|
+
"""
|
|
2592
|
+
params = {b'versions': b''}
|
|
2593
|
+
if max_keys is not None:
|
|
2594
|
+
params[b'maxKeys'] = max_keys
|
|
2595
|
+
if prefix is not None:
|
|
2596
|
+
params[b'prefix'] = prefix
|
|
2597
|
+
if marker is not None:
|
|
2598
|
+
params[b'marker'] = marker
|
|
2599
|
+
if delimiter is not None:
|
|
2600
|
+
params[b'delimiter'] = delimiter
|
|
2601
|
+
if version_marker is not None:
|
|
2602
|
+
params[b'versionIdMarker'] = version_marker
|
|
2603
|
+
|
|
2604
|
+
return self._send_request(http_methods.GET, bucket_name, params=params, config=config)
|
|
2512
2605
|
|
|
2513
2606
|
|
|
2514
2607
|
|
|
@@ -50,6 +50,7 @@ baidubce/services/bos/__init__.py
|
|
|
50
50
|
baidubce/services/bos/bos_client.py
|
|
51
51
|
baidubce/services/bos/bos_handler.py
|
|
52
52
|
baidubce/services/bos/canned_acl.py
|
|
53
|
+
baidubce/services/bos/common.py
|
|
53
54
|
baidubce/services/bos/storage_class.py
|
|
54
55
|
baidubce/services/bts/__init__.py
|
|
55
56
|
baidubce/services/bts/bts_client.py
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/blb/user_service_client.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/endpoint/endpoint_client.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/etGateway/et_gateway_client.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/infinite/infinite_client.py
RENAMED
|
File without changes
|
|
File without changes
|
{bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/ipv6gateway/ipv6gateway_client.py
RENAMED
|
File without changes
|
{bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/ipv6gateway/ipv6gateway_model.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/baidubce/services/kms/publickeyencoding_class.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{bce_python_sdk-0.9.21 → bce_python_sdk-0.9.22}/bce_python_sdk.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|