bce-python-sdk 0.9.5__tar.gz → 0.9.7__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.5 → bce_python_sdk-0.9.7}/PKG-INFO +1 -1
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/__init__.py +1 -1
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/bbc/bbc_client.py +42 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/bbc/bbc_model.py +14 -3
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/bcc/bcc_client.py +128 -6
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/bcm/bcm_client.py +269 -29
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/bce_python_sdk.egg-info/PKG-INFO +1 -1
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/README.txt +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/auth/__init__.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/auth/bce_credentials.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/auth/bce_v1_signer.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/bce_base_client.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/bce_client_configuration.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/bce_response.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/compat.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/exception.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/http/__init__.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/http/bce_http_client.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/http/handler.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/http/http_content_types.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/http/http_headers.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/http/http_methods.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/protocol.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/region.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/retry/__init__.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/retry/retry_policy.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/__init__.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/autoscaling/__init__.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/autoscaling/as_client.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/autoscaling/as_handler.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/autoscaling/as_model.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/bbc/__init__.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/bcc/__init__.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/bcc/bcc_model.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/bcc/fpga_card_type.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/bcc/gpu_card_type.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/bcm/__init__.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/bcm/bcm_handler.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/bcm/bcm_model.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/bes/__init__.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/bes/bes_client.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/bes/bes_model.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/blb/__init__.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/blb/app_blb_client.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/blb/blb_client.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/blb/user_service_client.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/bmr/__init__.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/bmr/bmr_client.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/bos/__init__.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/bos/bos_client.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/bos/bos_handler.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/bos/canned_acl.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/bos/storage_class.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/bts/__init__.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/bts/bts_client.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/bts/model.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/bts/util.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/cdn/__init__.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/cdn/cdn_client.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/cdn/cdn_stats_param.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/cert/__init__.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/cert/cert_client.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/cert/cert_model.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/cfc/__init__.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/cfc/cfc_client.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/cfc/cfc_handler.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/cfc/models.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/csn/__init__.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/csn/csn_api.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/csn/csn_client.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/csn/csn_model.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/ddc/__init__.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/ddc/ddc_client.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/dns/__init__.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/dns/api/__init__.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/dns/api/dns_api.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/dns/dns_client.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/dumap/__init__.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/dumap/dumap_client.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/eip/__init__.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/eip/eip_bp_client.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/eip/eip_client.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/eip/eip_group_client.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/eip/eip_group_model.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/eip/eip_tp_client.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/eip/model.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/endpoint/__init__.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/endpoint/endpoint_client.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/endpoint/model.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/eni/__init__.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/eni/eni_client.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/eni/eni_model.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/et/__init__.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/et/et_client.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/et/model.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/havip/havip_client.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/iam/__init__.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/iam/iam_client.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/infinite/__init__.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/infinite/infinite_client.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/ipv6gateway/__init__.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/ipv6gateway/ipv6gateway_client.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/ipv6gateway/ipv6gateway_model.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/kms/__init__.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/kms/keyspec_class.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/kms/kms_client.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/kms/origin_class.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/kms/protectedby_class.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/kms/publickeyencoding_class.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/lbdc/__init__.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/lbdc/lbdc_client.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/lbdc/model.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/localdns/__init__.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/localdns/api/__init__.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/localdns/api/ld_api.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/localdns/ld_client.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/media/__init__.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/media/media_client.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/media/media_handler.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/mms/__init__.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/mms/mms_client.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/mvs/__init__.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/mvs/mvs_client.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/oos/__init__.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/oos/oos_client.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/oos/oos_model.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/rds/__init__.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/rds/rds_backup_manager.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/rds/rds_database_manager.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/rds/rds_hot_active_instance_group_manager.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/rds/rds_http.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/rds/rds_instance_manager.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/rds/rds_log_manager.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/rds/rds_parameter_manager.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/rds/rds_readonly_group_manager.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/rds/rds_recycler_manager.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/rds/rds_security_manager.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/rds/rds_task_manager.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/rds/rds_users_manager.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/route/__init__.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/route/route_client.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/route/route_model.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/scs/__init__.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/scs/model.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/scs/scs_client.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/sms/__init__.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/sms/model.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/sms/sms_client.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/sts/__init__.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/sts/sts_client.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/subnet/__init__.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/subnet/subnet_client.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/tsdb/__init__.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/tsdb/tsdb_admin_client.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/tsdb/tsdb_client.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/tsdb/tsdb_handler.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/vca/__init__.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/vca/vca_client.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/vcr/__init__.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/vcr/vcr_client.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/vpc/__init__.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/vpc/acl_client.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/vpc/nat_client.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/vpc/nat_model.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/vpc/peerconn_client.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/vpc/peerconn_model.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/vpc/vpc_client.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/vpn/__init__.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/vpn/vpn_client.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/services/vpn/vpn_model.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/baidubce/utils.py +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/bce_python_sdk.egg-info/SOURCES.txt +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/bce_python_sdk.egg-info/dependency_links.txt +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/bce_python_sdk.egg-info/requires.txt +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/bce_python_sdk.egg-info/top_level.txt +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/setup.cfg +0 -0
- {bce-python-sdk-0.9.5 → bce_python_sdk-0.9.7}/setup.py +0 -0
|
@@ -41,6 +41,7 @@ class BbcClient(bce_base_client.BceBaseClient):
|
|
|
41
41
|
Bbc client sdk
|
|
42
42
|
"""
|
|
43
43
|
|
|
44
|
+
prefix_v2 = b'/v2'
|
|
44
45
|
def __init__(self, config=None):
|
|
45
46
|
bce_base_client.BceBaseClient.__init__(self, config)
|
|
46
47
|
|
|
@@ -685,6 +686,47 @@ class BbcClient(bce_base_client.BceBaseClient):
|
|
|
685
686
|
return self._send_request(http_methods.PUT, path, body=json.dumps(body),
|
|
686
687
|
params=params, config=config)
|
|
687
688
|
|
|
689
|
+
@required(reserved_instance_ids=list,
|
|
690
|
+
tags=list)
|
|
691
|
+
def bind_reserved_instance_to_tags(self, reserved_instance_ids, tags, config=None):
|
|
692
|
+
"""
|
|
693
|
+
:param reserved_instance_ids:
|
|
694
|
+
:param tags:
|
|
695
|
+
:param config:
|
|
696
|
+
:return:
|
|
697
|
+
"""
|
|
698
|
+
path = b'/bbc/reserved/tag'
|
|
699
|
+
tag_list = [tag.__dict__ for tag in tags]
|
|
700
|
+
body = {
|
|
701
|
+
'changeTags': tag_list,
|
|
702
|
+
'reservedInstanceIds': reserved_instance_ids
|
|
703
|
+
}
|
|
704
|
+
params = {
|
|
705
|
+
'bind': None
|
|
706
|
+
}
|
|
707
|
+
return self._send_request(http_methods.PUT, path, json.dumps(body),
|
|
708
|
+
params=params, config=config, api_version=self.prefix_v2)
|
|
709
|
+
|
|
710
|
+
@required(reserved_instance_ids=list,
|
|
711
|
+
tags=list)
|
|
712
|
+
def unbind_reserved_instance_from_tags(self, reserved_instance_ids, tags, config=None):
|
|
713
|
+
"""
|
|
714
|
+
:param reserved_instance_ids:
|
|
715
|
+
:param tags:
|
|
716
|
+
:param config:
|
|
717
|
+
:return:
|
|
718
|
+
"""
|
|
719
|
+
path = b'/bbc/reserved/tag'
|
|
720
|
+
tag_list = [tag.__dict__ for tag in tags]
|
|
721
|
+
body = {
|
|
722
|
+
'changeTags': tag_list,
|
|
723
|
+
'reservedInstanceIds': reserved_instance_ids
|
|
724
|
+
}
|
|
725
|
+
params = {
|
|
726
|
+
'unbind': None
|
|
727
|
+
}
|
|
728
|
+
return self._send_request(http_methods.PUT, path, json.dumps(body),
|
|
729
|
+
params=params, config=config, api_version=self.prefix_v2)
|
|
688
730
|
|
|
689
731
|
def list_flavors(self, config=None):
|
|
690
732
|
"""
|
|
@@ -32,10 +32,21 @@ class Billing(object):
|
|
|
32
32
|
param: reservationTimeUnit:
|
|
33
33
|
The time unit to specify the duration ,only "Month" can be used now.
|
|
34
34
|
"""
|
|
35
|
+
|
|
35
36
|
def __init__(self, paymentTiming=None, reservationLength=1, reservationTimeUnit='Month'):
|
|
36
37
|
if paymentTiming:
|
|
37
38
|
self.paymentTiming = paymentTiming
|
|
38
39
|
self.reservation = {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
'reservationLength': reservationLength,
|
|
41
|
+
'reservationTimeUnit': reservationTimeUnit
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
class TagModel(object):
|
|
46
|
+
"""
|
|
47
|
+
TAGModel
|
|
48
|
+
"""
|
|
49
|
+
|
|
50
|
+
def __init__(self, tagKey=None, tagValue=None):
|
|
51
|
+
self.tagKey = tagKey
|
|
52
|
+
self.tagValue = tagValue
|
|
@@ -50,6 +50,7 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
50
50
|
"""
|
|
51
51
|
|
|
52
52
|
prefix = b'/v2'
|
|
53
|
+
prefix_v3 = b'/v3'
|
|
53
54
|
|
|
54
55
|
def __init__(self, config=None):
|
|
55
56
|
bce_base_client.BceBaseClient.__init__(self, config)
|
|
@@ -1065,7 +1066,7 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
1065
1066
|
def list_instances(self, marker=None, max_keys=None, internal_ip=None, dedicated_host_id=None,
|
|
1066
1067
|
zone_name=None, instance_ids=None, instance_names=None, cds_ids=None,
|
|
1067
1068
|
deployset_ids=None, security_group_ids=None, payment_timing=None, status=None, tags=None,
|
|
1068
|
-
vpc_id=None, private_ips=None, auto_renew=None, config=None):
|
|
1069
|
+
vpc_id=None, private_ips=None, ipv6_addresses=None, auto_renew=None, config=None):
|
|
1069
1070
|
"""
|
|
1070
1071
|
Return a list of instances owned by the authenticated user.
|
|
1071
1072
|
|
|
@@ -1135,6 +1136,11 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
1135
1136
|
vpc_id
|
|
1136
1137
|
:type private_ips: string
|
|
1137
1138
|
|
|
1139
|
+
:param ipv6_addresses:
|
|
1140
|
+
filter instance list with multiple ipv6 private ips join by ',', the parameter should be used with
|
|
1141
|
+
vpc_id
|
|
1142
|
+
:type ipv6_addresses: string
|
|
1143
|
+
|
|
1138
1144
|
:param auto_renew:
|
|
1139
1145
|
:type auto_renew: boolean
|
|
1140
1146
|
|
|
@@ -1174,6 +1180,8 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
1174
1180
|
params['vpcId'] = vpc_id
|
|
1175
1181
|
if private_ips is not None:
|
|
1176
1182
|
params['privateIps'] = private_ips
|
|
1183
|
+
if ipv6_addresses is not None:
|
|
1184
|
+
params['ipv6Addresses'] = ipv6_addresses
|
|
1177
1185
|
if auto_renew is not None:
|
|
1178
1186
|
params['autoRenew'] = auto_renew
|
|
1179
1187
|
return self._send_request(http_methods.GET, path, params=params, config=config)
|
|
@@ -1640,6 +1648,94 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
1640
1648
|
return self._send_request(http_methods.PUT, path, json.dumps(body),
|
|
1641
1649
|
params=params, config=config)
|
|
1642
1650
|
|
|
1651
|
+
@required(reserved_instance_ids=list,
|
|
1652
|
+
tags=list)
|
|
1653
|
+
def bind_reserved_instance_to_tags(self, reserved_instance_ids, tags, config=None):
|
|
1654
|
+
"""
|
|
1655
|
+
:param reserved_instance_ids:
|
|
1656
|
+
:param tags:
|
|
1657
|
+
:param config:
|
|
1658
|
+
:return:
|
|
1659
|
+
"""
|
|
1660
|
+
path = b'/bcc/reserved/tag'
|
|
1661
|
+
tag_list = [tag.__dict__ for tag in tags]
|
|
1662
|
+
body = {
|
|
1663
|
+
'changeTags': tag_list,
|
|
1664
|
+
'reservedInstanceIds': reserved_instance_ids
|
|
1665
|
+
}
|
|
1666
|
+
params = {
|
|
1667
|
+
'bind': None
|
|
1668
|
+
}
|
|
1669
|
+
return self._send_request(http_methods.PUT, path, json.dumps(body),
|
|
1670
|
+
params=params, config=config)
|
|
1671
|
+
|
|
1672
|
+
@required(reserved_instance_ids=list,
|
|
1673
|
+
tags=list)
|
|
1674
|
+
def unbind_reserved_instance_from_tags(self, reserved_instance_ids, tags, config=None):
|
|
1675
|
+
"""
|
|
1676
|
+
:param reserved_instance_ids:
|
|
1677
|
+
:param tags:
|
|
1678
|
+
:param config:
|
|
1679
|
+
:return:
|
|
1680
|
+
"""
|
|
1681
|
+
path = b'/bcc/reserved/tag'
|
|
1682
|
+
tag_list = [tag.__dict__ for tag in tags]
|
|
1683
|
+
body = {
|
|
1684
|
+
'changeTags': tag_list,
|
|
1685
|
+
'reservedInstanceIds': reserved_instance_ids
|
|
1686
|
+
}
|
|
1687
|
+
params = {
|
|
1688
|
+
'unbind': None
|
|
1689
|
+
}
|
|
1690
|
+
return self._send_request(http_methods.PUT, path, json.dumps(body),
|
|
1691
|
+
params=params, config=config)
|
|
1692
|
+
|
|
1693
|
+
def bind_tags_batch_by_resource_type(self, resource_type, resource_ids, tags, is_relation_tag, config=None):
|
|
1694
|
+
"""
|
|
1695
|
+
:param resource_type:
|
|
1696
|
+
:param resource_ids:
|
|
1697
|
+
:param tags:
|
|
1698
|
+
:param is_relation_tag:
|
|
1699
|
+
:param config:
|
|
1700
|
+
:return:
|
|
1701
|
+
"""
|
|
1702
|
+
path = b'/bcc/tag'
|
|
1703
|
+
tag_list = [tag.__dict__ for tag in tags]
|
|
1704
|
+
body = {
|
|
1705
|
+
'resourceType': resource_type,
|
|
1706
|
+
'resourceIds': resource_ids,
|
|
1707
|
+
'tags': tag_list,
|
|
1708
|
+
'isRelationTag': is_relation_tag
|
|
1709
|
+
}
|
|
1710
|
+
params = {
|
|
1711
|
+
'action': 'AttachTags'
|
|
1712
|
+
}
|
|
1713
|
+
return self._send_request(http_methods.POST, path, json.dumps(body),
|
|
1714
|
+
params=params, config=config, prefix=self.prefix_v3)
|
|
1715
|
+
|
|
1716
|
+
def unbind_tags_batch_by_resource_type(self, resource_type, resource_ids, tags, is_relation_tag, config=None):
|
|
1717
|
+
"""
|
|
1718
|
+
:param resource_type:
|
|
1719
|
+
:param resource_ids:
|
|
1720
|
+
:param tags:
|
|
1721
|
+
:param is_relation_tag:
|
|
1722
|
+
:param config:
|
|
1723
|
+
:return:
|
|
1724
|
+
"""
|
|
1725
|
+
path = b'/bcc/tag'
|
|
1726
|
+
tag_list = [tag.__dict__ for tag in tags]
|
|
1727
|
+
body = {
|
|
1728
|
+
'resourceType': resource_type,
|
|
1729
|
+
'resourceIds': resource_ids,
|
|
1730
|
+
'tags': tag_list,
|
|
1731
|
+
'isRelationTag': is_relation_tag
|
|
1732
|
+
}
|
|
1733
|
+
params = {
|
|
1734
|
+
'action': 'DetachTags'
|
|
1735
|
+
}
|
|
1736
|
+
return self._send_request(http_methods.POST, path, json.dumps(body),
|
|
1737
|
+
params=params, config=config, prefix=self.prefix_v3)
|
|
1738
|
+
|
|
1643
1739
|
@required(instance_id=(bytes, str),
|
|
1644
1740
|
tags=list)
|
|
1645
1741
|
def bind_instance_to_tags(self, instance_id, tags, config=None):
|
|
@@ -1780,7 +1876,7 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
1780
1876
|
description=None, renew_time_unit=None, renew_time=None,
|
|
1781
1877
|
cluster_id=None, relation_tag=False,
|
|
1782
1878
|
tags=None, auto_snapshot_policy=None,
|
|
1783
|
-
client_token=None, config=None):
|
|
1879
|
+
client_token=None, config=None, charge_type=None):
|
|
1784
1880
|
"""
|
|
1785
1881
|
Create a volume with the specified options.
|
|
1786
1882
|
You can use this method to create a new empty volume by specified options
|
|
@@ -1795,7 +1891,7 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
1795
1891
|
:type cds_size_in_gb: int
|
|
1796
1892
|
|
|
1797
1893
|
:param billing:
|
|
1798
|
-
Billing information.
|
|
1894
|
+
Billing information.Deprecated
|
|
1799
1895
|
:type billing: bcc_model.Billing
|
|
1800
1896
|
|
|
1801
1897
|
:param purchase_count:
|
|
@@ -1855,6 +1951,17 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
1855
1951
|
The optional auto snapshot policy to be bonded.
|
|
1856
1952
|
:type auto_snapshot_policy: bcc_model.AutoSnapshotPolicyModel
|
|
1857
1953
|
|
|
1954
|
+
:param charge_type:
|
|
1955
|
+
The optional parameter to specify the payment for the volume.
|
|
1956
|
+
The billing type and payment method, including Prepaid and Postpaid,
|
|
1957
|
+
need to be specified only when the instanceId is not empty and the corresponding instance type is prepaid.
|
|
1958
|
+
If instanceId is empty:
|
|
1959
|
+
create a post payment type CDS;
|
|
1960
|
+
If the instanceId is not empty:
|
|
1961
|
+
If the instance is prepaid, a chargeType needs to be specified;
|
|
1962
|
+
If the instance is post paid, create a post paid CDS
|
|
1963
|
+
:type charge_type: menu{'Prepaid', 'Postpaid'}
|
|
1964
|
+
|
|
1858
1965
|
:return:
|
|
1859
1966
|
:rtype baidubce.bce_response.BceResponse
|
|
1860
1967
|
"""
|
|
@@ -1897,6 +2004,8 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
1897
2004
|
body['encryptKey'] = encrypt_key
|
|
1898
2005
|
if instance_id is not None:
|
|
1899
2006
|
body['instanceId'] = instance_id
|
|
2007
|
+
if charge_type is not None:
|
|
2008
|
+
body['chargeType'] = charge_type
|
|
1900
2009
|
return self._send_request(http_methods.POST, path, json.dumps(body),
|
|
1901
2010
|
params=params, config=config)
|
|
1902
2011
|
|
|
@@ -1907,7 +2016,7 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
1907
2016
|
description=None, renew_time_unit=None, renew_time=None,
|
|
1908
2017
|
cluster_id=None, relation_tag=False,
|
|
1909
2018
|
tags=None, auto_snapshot_policy=None,
|
|
1910
|
-
config=None):
|
|
2019
|
+
config=None, charge_type=None):
|
|
1911
2020
|
"""
|
|
1912
2021
|
Create a volume with the specified options.
|
|
1913
2022
|
You can use this method to create a new empty volume by specified options
|
|
@@ -1915,14 +2024,14 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
1915
2024
|
By using the cdsSizeInGB parameter you can create a newly empty volume.
|
|
1916
2025
|
By using snapshotId parameter to create a volume form specific snapshot.
|
|
1917
2026
|
|
|
1918
|
-
:param snapshot_id:
|
|
2027
|
+
:param snapshot_id:xx
|
|
1919
2028
|
The id of snapshot.
|
|
1920
2029
|
By specifying the snapshotId,
|
|
1921
2030
|
it will create volume from the specified snapshot and the parameter cdsSizeInGB will be ignored.
|
|
1922
2031
|
:type snapshot_id: string
|
|
1923
2032
|
|
|
1924
2033
|
:param billing:
|
|
1925
|
-
Billing information.
|
|
2034
|
+
Billing information.Deprecated
|
|
1926
2035
|
:type billing: bcc_model.Billing
|
|
1927
2036
|
|
|
1928
2037
|
:param purchase_count:
|
|
@@ -1982,6 +2091,17 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
1982
2091
|
https://bce.baidu.com/doc/BCC/API.html#.E5.B9.82.E7.AD.89.E6.80.A7
|
|
1983
2092
|
:type client_token: string
|
|
1984
2093
|
|
|
2094
|
+
:param charge_type:
|
|
2095
|
+
The optional parameter to specify the payment for the volume.
|
|
2096
|
+
The billing type and payment method, including Prepaid and Postpaid,
|
|
2097
|
+
need to be specified only when the instanceId is not empty and the corresponding instance type is prepaid.
|
|
2098
|
+
If instanceId is empty:
|
|
2099
|
+
create a post payment type CDS;
|
|
2100
|
+
If the instanceId is not empty:
|
|
2101
|
+
If the instance is prepaid, a chargeType needs to be specified;
|
|
2102
|
+
If the instance is post paid, create a post paid CDS
|
|
2103
|
+
:type charge_type: menu{'Prepaid', 'Postpaid'}
|
|
2104
|
+
|
|
1985
2105
|
:return:
|
|
1986
2106
|
:rtype baidubce.bce_response.BceResponse
|
|
1987
2107
|
"""
|
|
@@ -2024,6 +2144,8 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
2024
2144
|
body['encryptKey'] = encrypt_key
|
|
2025
2145
|
if instance_id is not None:
|
|
2026
2146
|
body['instanceId'] = instance_id
|
|
2147
|
+
if charge_type is not None:
|
|
2148
|
+
body['chargeType'] = charge_type
|
|
2027
2149
|
return self._send_request(http_methods.POST, path, json.dumps(body),
|
|
2028
2150
|
params=params, config=config)
|
|
2029
2151
|
|