bce-python-sdk 0.9.42__tar.gz → 0.9.46__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.42 → bce_python_sdk-0.9.46}/PKG-INFO +1 -1
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/__init__.py +1 -1
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/bce_client_configuration.py +2 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/bce_response.py +11 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/http/bce_http_client.py +4 -1
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/bcc/bcc_client.py +65 -3
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/bos/bos_client.py +5 -1
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/kms/kms_client.py +116 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/bce_python_sdk.egg-info/PKG-INFO +1 -1
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/README.txt +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/auth/__init__.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/auth/bce_credentials.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/auth/bce_v1_signer.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/bce_base_client.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/compat.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/exception.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/http/__init__.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/http/handler.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/http/http_content_types.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/http/http_headers.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/http/http_methods.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/protocol.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/region.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/retry/__init__.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/retry/retry_policy.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/__init__.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/autoscaling/__init__.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/autoscaling/as_client.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/autoscaling/as_handler.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/autoscaling/as_model.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/bbc/__init__.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/bbc/bbc_client.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/bbc/bbc_model.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/bcc/__init__.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/bcc/bcc_model.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/bcc/fpga_card_type.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/bcc/gpu_card_type.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/bcm/__init__.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/bcm/bcm_client.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/bcm/bcm_handler.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/bcm/bcm_model.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/bes/__init__.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/bes/bes_client.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/bes/bes_model.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/blb/__init__.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/blb/app_blb_client.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/blb/blb_client.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/blb/user_service_client.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/bls/__init__.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/bls/bls_client.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/bls/bls_handler.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/bls/bls_model.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/bmr/__init__.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/bmr/bmr_client.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/bos/__init__.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/bos/bos_handler.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/bos/canned_acl.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/bos/common.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/bos/storage_class.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/bts/__init__.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/bts/bts_client.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/bts/model.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/bts/util.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/ca/__init__.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/ca/ca_client.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/ca/ca_handler.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/ca/ca_model.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/cdn/__init__.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/cdn/cdn_client.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/cdn/cdn_stats_param.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/cert/__init__.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/cert/cert_client.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/cert/cert_model.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/cfc/__init__.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/cfc/cfc_client.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/cfc/cfc_handler.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/cfc/models.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/csn/__init__.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/csn/csn_api.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/csn/csn_client.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/csn/csn_model.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/ddc/__init__.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/ddc/ddc_client.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/dns/__init__.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/dns/api/__init__.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/dns/api/dns_api.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/dns/dns_client.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/dumap/__init__.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/dumap/dumap_client.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/eip/__init__.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/eip/eip_bp_client.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/eip/eip_client.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/eip/eip_group_client.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/eip/eip_group_model.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/eip/eip_tp_client.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/eip/model.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/endpoint/__init__.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/endpoint/endpoint_client.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/endpoint/model.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/eni/__init__.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/eni/eni_client.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/eni/eni_model.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/esg/__init__.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/esg/esg_client.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/esg/esg_model.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/et/__init__.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/et/et_client.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/et/model.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/etGateway/__init__.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/etGateway/et_gateway_client.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/havip/havip_client.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/iam/__init__.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/iam/iam_client.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/infinite/__init__.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/infinite/infinite_client.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/ipv6gateway/__init__.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/ipv6gateway/ipv6gateway_client.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/ipv6gateway/ipv6gateway_model.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/kms/__init__.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/kms/keyspec_class.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/kms/origin_class.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/kms/protectedby_class.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/kms/publickeyencoding_class.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/lbdc/__init__.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/lbdc/lbdc_client.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/lbdc/model.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/localdns/__init__.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/localdns/api/__init__.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/localdns/api/ld_api.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/localdns/ld_client.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/media/__init__.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/media/media_client.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/media/media_handler.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/mms/__init__.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/mms/mms_client.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/mvs/__init__.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/mvs/mvs_client.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/oos/__init__.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/oos/oos_client.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/oos/oos_model.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/probe/__init__.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/probe/probe_client.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/rds/__init__.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/rds/rds_client.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/rds/rds_model.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/route/__init__.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/route/route_client.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/route/route_model.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/scs/__init__.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/scs/model.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/scs/scs_client.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/sms/__init__.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/sms/model.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/sms/sms_client.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/sts/__init__.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/sts/sts_client.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/subnet/__init__.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/subnet/subnet_client.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/tsdb/__init__.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/tsdb/tsdb_admin_client.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/tsdb/tsdb_client.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/tsdb/tsdb_handler.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/vca/__init__.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/vca/vca_client.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/vcr/__init__.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/vcr/vcr_client.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/vpc/__init__.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/vpc/acl_client.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/vpc/nat_client.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/vpc/nat_model.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/vpc/peerconn_client.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/vpc/peerconn_model.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/vpc/template_client.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/vpc/template_model.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/vpc/vpc_client.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/vpn/__init__.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/vpn/vpn_client.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/vpn/vpn_model.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/utils.py +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/bce_python_sdk.egg-info/SOURCES.txt +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/bce_python_sdk.egg-info/dependency_links.txt +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/bce_python_sdk.egg-info/requires.txt +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/bce_python_sdk.egg-info/top_level.txt +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/setup.cfg +0 -0
- {bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/setup.py +0 -0
|
@@ -42,6 +42,7 @@ class BceClientConfiguration(object):
|
|
|
42
42
|
proxy_port=None,
|
|
43
43
|
path_style_enable=False,
|
|
44
44
|
auto_follow_redirect=False,
|
|
45
|
+
under_line_headers=True,
|
|
45
46
|
):
|
|
46
47
|
self.credentials = credentials
|
|
47
48
|
self.endpoint = compat.convert_to_bytes(endpoint) if endpoint is not None else endpoint
|
|
@@ -61,6 +62,7 @@ class BceClientConfiguration(object):
|
|
|
61
62
|
self.path_style_enable = path_style_enable
|
|
62
63
|
self.backup_endpoint = compat.convert_to_bytes(backup_endpoint) if backup_endpoint is not None else backup_endpoint
|
|
63
64
|
self.auto_follow_redirect = auto_follow_redirect
|
|
65
|
+
self.under_line_headers = under_line_headers
|
|
64
66
|
|
|
65
67
|
def merge_non_none_values(self, other):
|
|
66
68
|
"""
|
|
@@ -41,6 +41,17 @@ class BceResponse(object):
|
|
|
41
41
|
if k.lower() == compat.convert_to_string(http_headers.ETAG.lower()):
|
|
42
42
|
v = v.strip('"')
|
|
43
43
|
setattr(self.metadata, k, v)
|
|
44
|
+
|
|
45
|
+
def set_metadata_from_headers_no_underlined(self, headers):
|
|
46
|
+
"""
|
|
47
|
+
|
|
48
|
+
:param headers:
|
|
49
|
+
:return:
|
|
50
|
+
"""
|
|
51
|
+
for k, v in iteritems(headers):
|
|
52
|
+
if k.lower() == compat.convert_to_string(http_headers.ETAG.lower()):
|
|
53
|
+
v = v.strip('"')
|
|
54
|
+
setattr(self.metadata, k, v)
|
|
44
55
|
|
|
45
56
|
def __getattr__(self, item):
|
|
46
57
|
if item.startswith('__'):
|
|
@@ -229,7 +229,10 @@ def send_request(
|
|
|
229
229
|
_logger.debug(
|
|
230
230
|
'request return: status=%d, headers=%s' % (http_response.status, headers_list))
|
|
231
231
|
response = BceResponse()
|
|
232
|
-
|
|
232
|
+
if config.under_line_headers:
|
|
233
|
+
response.set_metadata_from_headers(dict(headers_list))
|
|
234
|
+
else:
|
|
235
|
+
response.set_metadata_from_headers_no_underlined(dict(headers_list))
|
|
233
236
|
if config.auto_follow_redirect:
|
|
234
237
|
if http_method == b'GET' and 300 <= http_response.status < 400:
|
|
235
238
|
headers_map = {k: v for k, v in headers_list}
|
|
@@ -25,6 +25,7 @@ import string
|
|
|
25
25
|
import uuid
|
|
26
26
|
|
|
27
27
|
from baidubce import bce_base_client
|
|
28
|
+
from baidubce import compat
|
|
28
29
|
from baidubce.auth import bce_v1_signer
|
|
29
30
|
from baidubce.http import bce_http_client
|
|
30
31
|
from baidubce.http import handler
|
|
@@ -32,7 +33,6 @@ from baidubce.http import http_methods
|
|
|
32
33
|
from baidubce.services.bcc import bcc_model
|
|
33
34
|
from baidubce.utils import aes128_encrypt_16char_key
|
|
34
35
|
from baidubce.utils import required
|
|
35
|
-
from baidubce import compat
|
|
36
36
|
|
|
37
37
|
_logger = logging.getLogger(__name__)
|
|
38
38
|
|
|
@@ -6988,7 +6988,6 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
6988
6988
|
return self._send_request(http_methods.PUT, path, json.dumps(body),
|
|
6989
6989
|
params=params, config=config)
|
|
6990
6990
|
|
|
6991
|
-
|
|
6992
6991
|
def bind_sg(self, instance_ids, security_group_ids, security_group_type, client_token=None, config=None):
|
|
6993
6992
|
"""
|
|
6994
6993
|
绑定安全组。
|
|
@@ -7016,7 +7015,6 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
7016
7015
|
return self._send_request(http_methods.PUT, path, json.dumps(body),
|
|
7017
7016
|
params=params, config=config)
|
|
7018
7017
|
|
|
7019
|
-
|
|
7020
7018
|
def replace_sg(self, instance_ids, security_group_ids, security_group_type, client_token=None, config=None):
|
|
7021
7019
|
"""
|
|
7022
7020
|
替换安全组。
|
|
@@ -7610,6 +7608,70 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
7610
7608
|
return self._send_action_request(http_methods.POST, path, json.dumps(body),
|
|
7611
7609
|
params=params, config=config)
|
|
7612
7610
|
|
|
7611
|
+
def get_task(self, task_ids, max_keys=100, config=None):
|
|
7612
|
+
"""
|
|
7613
|
+
get_task
|
|
7614
|
+
|
|
7615
|
+
:param task_ids:
|
|
7616
|
+
task_ids to be used to query the task
|
|
7617
|
+
:type task_ids: list of string
|
|
7618
|
+
|
|
7619
|
+
:param max_keys:
|
|
7620
|
+
The optional parameter to specifies the max number of list result to return.
|
|
7621
|
+
The default value is 100.
|
|
7622
|
+
:type max_keys: int
|
|
7623
|
+
|
|
7624
|
+
:return:
|
|
7625
|
+
:rtype baidubce.bce_response.BceResponse
|
|
7626
|
+
"""
|
|
7627
|
+
path = b'/task/detail'
|
|
7628
|
+
params = {}
|
|
7629
|
+
|
|
7630
|
+
body = {
|
|
7631
|
+
"taskIds": task_ids,
|
|
7632
|
+
"maxKeys": max_keys
|
|
7633
|
+
}
|
|
7634
|
+
return self._send_request(http_methods.POST, path, json.dumps(body),
|
|
7635
|
+
params=params, config=config)
|
|
7636
|
+
|
|
7637
|
+
def list_task(self, max_keys=10, task_ids=None, task_action=None, task_status=None, resource_ids=None,
|
|
7638
|
+
start_time=None, end_time=None, config=None):
|
|
7639
|
+
"""
|
|
7640
|
+
list_task
|
|
7641
|
+
|
|
7642
|
+
:param task_ids:
|
|
7643
|
+
task_ids to be used to query the task
|
|
7644
|
+
:param task_action:
|
|
7645
|
+
task_action to be used to query the task
|
|
7646
|
+
:param task_status:
|
|
7647
|
+
task_status to be used to query the task
|
|
7648
|
+
:param start_time:
|
|
7649
|
+
The format is yyyy-MM-dd'T'HH: mm: ss'Z ', if it is empty, query the operation log of the day
|
|
7650
|
+
:param end_time:
|
|
7651
|
+
The format is yyyy-MM-dd'T'HH: mm: ss'Z ', if it is empty, query the operation log of the day
|
|
7652
|
+
:param max_keys:
|
|
7653
|
+
The optional parameter to specifies the max number of list result to return.
|
|
7654
|
+
The default value is 10.
|
|
7655
|
+
:param config:
|
|
7656
|
+
:return:
|
|
7657
|
+
|
|
7658
|
+
"""
|
|
7659
|
+
path = b'/task/list'
|
|
7660
|
+
params = {}
|
|
7661
|
+
|
|
7662
|
+
body = {
|
|
7663
|
+
"taskIds": task_ids,
|
|
7664
|
+
"taskAction": task_action,
|
|
7665
|
+
"taskStatus": task_status,
|
|
7666
|
+
"startTime": start_time,
|
|
7667
|
+
"endTime": end_time,
|
|
7668
|
+
"resourceIds": resource_ids,
|
|
7669
|
+
"maxKeys": max_keys,
|
|
7670
|
+
}
|
|
7671
|
+
return self._send_request(http_methods.POST, path, json.dumps(body),
|
|
7672
|
+
params=params, config=config)
|
|
7673
|
+
|
|
7674
|
+
|
|
7613
7675
|
def generate_client_token_by_uuid():
|
|
7614
7676
|
"""
|
|
7615
7677
|
The default method to generate the random string for client_token
|
|
@@ -2650,9 +2650,11 @@ class BosClient(BceBaseClient):
|
|
|
2650
2650
|
|
|
2651
2651
|
if user_metadata is not None:
|
|
2652
2652
|
meta_size = 0
|
|
2653
|
+
meta_data_set = set()
|
|
2653
2654
|
if not isinstance(user_metadata, dict):
|
|
2654
2655
|
raise TypeError('user_metadata should be of type dict.')
|
|
2655
2656
|
for k, v in iteritems(user_metadata):
|
|
2657
|
+
meta_data_set.add(k.lower())
|
|
2656
2658
|
k = utils.convert_to_standard_string(k)
|
|
2657
2659
|
v = utils.convert_to_standard_string(v)
|
|
2658
2660
|
normalized_key = http_headers.BCE_USER_METADATA_PREFIX + k
|
|
@@ -2662,6 +2664,8 @@ class BosClient(BceBaseClient):
|
|
|
2662
2664
|
if meta_size > bos.MAX_USER_METADATA_SIZE:
|
|
2663
2665
|
raise ValueError(
|
|
2664
2666
|
'Metadata size should not be greater than %d.' % bos.MAX_USER_METADATA_SIZE)
|
|
2667
|
+
if len(meta_data_set) != len(user_metadata):
|
|
2668
|
+
raise ValueError('user_metadata has duplicate elements.')
|
|
2665
2669
|
|
|
2666
2670
|
if storage_class is not None:
|
|
2667
2671
|
headers[http_headers.BOS_STORAGE_CLASS] = storage_class
|
|
@@ -2835,7 +2839,7 @@ class BosClient(BceBaseClient):
|
|
|
2835
2839
|
if BosClient._need_retry_backup_endpoint(e.last_error):
|
|
2836
2840
|
_logger.debug(b'Retry for backup endpoint.')
|
|
2837
2841
|
path = BosClient._get_path(config, bucket_name, key, True)
|
|
2838
|
-
return bce_http_client.
|
|
2842
|
+
return bce_http_client.send_request_no_underlined(
|
|
2839
2843
|
config, bce_v1_signer.sign, [handler.parse_error, body_parser],
|
|
2840
2844
|
http_method, path, body, headers, params, True)
|
|
2841
2845
|
else:
|
|
@@ -20,6 +20,7 @@ import logging
|
|
|
20
20
|
import random
|
|
21
21
|
import string
|
|
22
22
|
import uuid
|
|
23
|
+
import binascii
|
|
23
24
|
|
|
24
25
|
from baidubce.bce_base_client import BceBaseClient
|
|
25
26
|
from baidubce.utils import required
|
|
@@ -163,6 +164,121 @@ class KmsClient(BceBaseClient):
|
|
|
163
164
|
return self._send_request(http_methods.POST, path, json.dumps(body),
|
|
164
165
|
params=params, config=config)
|
|
165
166
|
|
|
167
|
+
@required(keyId=(str, bytes), algorithm=(str, bytes), message=(str, bytes))
|
|
168
|
+
def sign(self, keyId, algorithm, message, keyVersion=None, messageType='RAW', config=None):
|
|
169
|
+
"""
|
|
170
|
+
Sign the message using asymmetric key
|
|
171
|
+
:type keyId: string
|
|
172
|
+
:param keyId: indicate which masterkey to use for signing
|
|
173
|
+
|
|
174
|
+
:type algorithm: string
|
|
175
|
+
:param algorithm: signing algorithm (RSA_PKCS1_SHA_256/SM2DSA)
|
|
176
|
+
|
|
177
|
+
:type message: string
|
|
178
|
+
:param message: message to sign (Base64 encoded)
|
|
179
|
+
|
|
180
|
+
:type keyVersion: string
|
|
181
|
+
:param keyVersion: key version (optional)
|
|
182
|
+
|
|
183
|
+
:type messageType: string
|
|
184
|
+
:param messageType: message type (RAW/DIGEST, default RAW)
|
|
185
|
+
:raises: ValueError if message length or format is invalid
|
|
186
|
+
"""
|
|
187
|
+
if messageType not in ('RAW', 'DIGEST'):
|
|
188
|
+
raise ValueError("messageType must be either 'RAW' or 'DIGEST'")
|
|
189
|
+
|
|
190
|
+
# Validate message length based on type
|
|
191
|
+
if messageType == 'RAW':
|
|
192
|
+
if len(message) > 4096:
|
|
193
|
+
raise ValueError("Base64 encoded RAW message length must be <= 4096 bytes")
|
|
194
|
+
elif messageType == 'DIGEST':
|
|
195
|
+
try:
|
|
196
|
+
decoded = base64.b64decode(message)
|
|
197
|
+
if len(decoded) != 32:
|
|
198
|
+
raise ValueError("Digest length must be 32 bytes after base64 decoding")
|
|
199
|
+
except (binascii.Error, TypeError):
|
|
200
|
+
raise ValueError("message must be base64 encoded")
|
|
201
|
+
path = b'/'
|
|
202
|
+
params = {}
|
|
203
|
+
params['action'] = b'Sign'
|
|
204
|
+
body = {
|
|
205
|
+
'keyId': keyId,
|
|
206
|
+
'algorithm': algorithm,
|
|
207
|
+
'message': message,
|
|
208
|
+
'messageType': messageType
|
|
209
|
+
}
|
|
210
|
+
if keyVersion:
|
|
211
|
+
body['keyVersion'] = keyVersion
|
|
212
|
+
|
|
213
|
+
return self._send_request(http_methods.POST, path, json.dumps(body),
|
|
214
|
+
params=params, config=config)
|
|
215
|
+
|
|
216
|
+
@required(keyId=(str, bytes), algorithm=(str, bytes), signature=(str, bytes), message=(str, bytes))
|
|
217
|
+
def verify(self, keyId, algorithm, signature, message, keyVersion=None, messageType='RAW', config=None):
|
|
218
|
+
"""
|
|
219
|
+
Verify the signature using asymmetric key
|
|
220
|
+
:type keyId: string
|
|
221
|
+
:param keyId: indicate which masterkey to use for verification
|
|
222
|
+
|
|
223
|
+
:type algorithm: string
|
|
224
|
+
:param algorithm: signing algorithm (RSA_PKCS1_SHA_256/SM2DSA)
|
|
225
|
+
|
|
226
|
+
:type signature: string
|
|
227
|
+
:param signature: signature to verify (Base64 encoded)
|
|
228
|
+
|
|
229
|
+
:type message: string
|
|
230
|
+
:param message: original message (Base64 encoded)
|
|
231
|
+
|
|
232
|
+
:type keyVersion: string
|
|
233
|
+
:param keyVersion: key version (optional)
|
|
234
|
+
|
|
235
|
+
:type messageType: string
|
|
236
|
+
:param messageType: message type (RAW/DIGEST, default RAW)
|
|
237
|
+
"""
|
|
238
|
+
# Validate message type
|
|
239
|
+
if messageType not in ('RAW', 'DIGEST'):
|
|
240
|
+
raise ValueError("messageType must be either 'RAW' or 'DIGEST'")
|
|
241
|
+
|
|
242
|
+
# Validate message length based on type
|
|
243
|
+
if messageType == 'RAW':
|
|
244
|
+
if len(message) > 4096:
|
|
245
|
+
raise ValueError("Base64 encoded RAW message length must be <= 4096 bytes")
|
|
246
|
+
elif messageType == 'DIGEST':
|
|
247
|
+
try:
|
|
248
|
+
decoded = base64.b64decode(message)
|
|
249
|
+
if len(decoded) != 32:
|
|
250
|
+
raise ValueError("Digest length must be 32 bytes after base64 decoding")
|
|
251
|
+
except (binascii.Error, TypeError):
|
|
252
|
+
raise ValueError("message must be base64 encoded")
|
|
253
|
+
|
|
254
|
+
# Validate signature length
|
|
255
|
+
try:
|
|
256
|
+
base64.b64decode(signature)
|
|
257
|
+
except (binascii.Error, TypeError):
|
|
258
|
+
raise ValueError("signature must be base64 encoded")
|
|
259
|
+
|
|
260
|
+
path = b'/'
|
|
261
|
+
params = {}
|
|
262
|
+
params['action'] = b'Verify'
|
|
263
|
+
body = {
|
|
264
|
+
'keyId': keyId,
|
|
265
|
+
'algorithm': algorithm,
|
|
266
|
+
'signature': signature,
|
|
267
|
+
'message': message,
|
|
268
|
+
'messageType': messageType
|
|
269
|
+
}
|
|
270
|
+
if keyVersion:
|
|
271
|
+
body['keyVersion'] = keyVersion
|
|
272
|
+
|
|
273
|
+
try:
|
|
274
|
+
base64.b64decode(message)
|
|
275
|
+
base64.b64decode(signature)
|
|
276
|
+
except (binascii.Error, TypeError):
|
|
277
|
+
raise ValueError("message and signature must be base64 encoded")
|
|
278
|
+
|
|
279
|
+
return self._send_request(http_methods.POST, path, json.dumps(body),
|
|
280
|
+
params=params, config=config)
|
|
281
|
+
|
|
166
282
|
@required(keyId=(str, bytes), keySpec=(str, bytes))
|
|
167
283
|
def generate_dataKey(self, keyId, keySpec, numberOfBytes=-1, config=None):
|
|
168
284
|
"""
|
|
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.42 → bce_python_sdk-0.9.46}/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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/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.42 → bce_python_sdk-0.9.46}/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.42 → bce_python_sdk-0.9.46}/baidubce/services/infinite/infinite_client.py
RENAMED
|
File without changes
|
|
File without changes
|
{bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/ipv6gateway/ipv6gateway_client.py
RENAMED
|
File without changes
|
{bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/baidubce/services/ipv6gateway/ipv6gateway_model.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{bce_python_sdk-0.9.42 → bce_python_sdk-0.9.46}/bce_python_sdk.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|