bce-python-sdk 0.9.14__tar.gz → 0.9.19__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.14 → bce_python_sdk-0.9.19}/PKG-INFO +1 -1
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/__init__.py +1 -1
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/bcc/bcc_client.py +368 -13
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/bcc/bcc_model.py +12 -0
- bce_python_sdk-0.9.19/baidubce/services/ca/ca_client.py +326 -0
- bce_python_sdk-0.9.19/baidubce/services/ca/ca_handler.py +84 -0
- bce_python_sdk-0.9.19/baidubce/services/ca/ca_model.py +129 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/sms/sms_client.py +14 -4
- bce_python_sdk-0.9.19/baidubce/services/vpn/__init__.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/bce_python_sdk.egg-info/PKG-INFO +1 -1
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/bce_python_sdk.egg-info/SOURCES.txt +4 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/setup.py +2 -1
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/README.txt +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/auth/__init__.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/auth/bce_credentials.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/auth/bce_v1_signer.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/bce_base_client.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/bce_client_configuration.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/bce_response.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/compat.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/exception.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/http/__init__.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/http/bce_http_client.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/http/handler.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/http/http_content_types.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/http/http_headers.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/http/http_methods.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/protocol.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/region.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/retry/__init__.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/retry/retry_policy.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/__init__.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/autoscaling/__init__.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/autoscaling/as_client.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/autoscaling/as_handler.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/autoscaling/as_model.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/bbc/__init__.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/bbc/bbc_client.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/bbc/bbc_model.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/bcc/__init__.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/bcc/fpga_card_type.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/bcc/gpu_card_type.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/bcm/__init__.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/bcm/bcm_client.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/bcm/bcm_handler.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/bcm/bcm_model.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/bes/__init__.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/bes/bes_client.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/bes/bes_model.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/blb/__init__.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/blb/app_blb_client.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/blb/blb_client.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/blb/user_service_client.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/bmr/__init__.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/bmr/bmr_client.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/bos/__init__.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/bos/bos_client.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/bos/bos_handler.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/bos/canned_acl.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/bos/storage_class.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/bts/__init__.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/bts/bts_client.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/bts/model.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/bts/util.py +0 -0
- {bce_python_sdk-0.9.14/baidubce/services/cdn → bce_python_sdk-0.9.19/baidubce/services/ca}/__init__.py +0 -0
- {bce_python_sdk-0.9.14/baidubce/services/cert → bce_python_sdk-0.9.19/baidubce/services/cdn}/__init__.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/cdn/cdn_client.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/cdn/cdn_stats_param.py +0 -0
- {bce_python_sdk-0.9.14/baidubce/services/cfc → bce_python_sdk-0.9.19/baidubce/services/cert}/__init__.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/cert/cert_client.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/cert/cert_model.py +0 -0
- {bce_python_sdk-0.9.14/baidubce/services/csn → bce_python_sdk-0.9.19/baidubce/services/cfc}/__init__.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/cfc/cfc_client.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/cfc/cfc_handler.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/cfc/models.py +0 -0
- {bce_python_sdk-0.9.14/baidubce/services/ddc → bce_python_sdk-0.9.19/baidubce/services/csn}/__init__.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/csn/csn_api.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/csn/csn_client.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/csn/csn_model.py +0 -0
- {bce_python_sdk-0.9.14/baidubce/services/dns → bce_python_sdk-0.9.19/baidubce/services/ddc}/__init__.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/ddc/ddc_client.py +0 -0
- {bce_python_sdk-0.9.14/baidubce/services/dns/api → bce_python_sdk-0.9.19/baidubce/services/dns}/__init__.py +0 -0
- {bce_python_sdk-0.9.14/baidubce/services/dumap → bce_python_sdk-0.9.19/baidubce/services/dns/api}/__init__.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/dns/api/dns_api.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/dns/dns_client.py +0 -0
- {bce_python_sdk-0.9.14/baidubce/services/eip → bce_python_sdk-0.9.19/baidubce/services/dumap}/__init__.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/dumap/dumap_client.py +0 -0
- {bce_python_sdk-0.9.14/baidubce/services/endpoint → bce_python_sdk-0.9.19/baidubce/services/eip}/__init__.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/eip/eip_bp_client.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/eip/eip_client.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/eip/eip_group_client.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/eip/eip_group_model.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/eip/eip_tp_client.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/eip/model.py +0 -0
- {bce_python_sdk-0.9.14/baidubce/services/eni → bce_python_sdk-0.9.19/baidubce/services/endpoint}/__init__.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/endpoint/endpoint_client.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/endpoint/model.py +0 -0
- {bce_python_sdk-0.9.14/baidubce/services/esg → bce_python_sdk-0.9.19/baidubce/services/eni}/__init__.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/eni/eni_client.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/eni/eni_model.py +0 -0
- {bce_python_sdk-0.9.14/baidubce/services/et → bce_python_sdk-0.9.19/baidubce/services/esg}/__init__.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/esg/esg_client.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/esg/esg_model.py +0 -0
- {bce_python_sdk-0.9.14/baidubce/services/etGateway → bce_python_sdk-0.9.19/baidubce/services/et}/__init__.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/et/et_client.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/et/model.py +0 -0
- {bce_python_sdk-0.9.14/baidubce/services/ipv6gateway → bce_python_sdk-0.9.19/baidubce/services/etGateway}/__init__.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/etGateway/et_gateway_client.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/havip/havip_client.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/iam/__init__.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/iam/iam_client.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/infinite/__init__.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/infinite/infinite_client.py +0 -0
- {bce_python_sdk-0.9.14/baidubce/services/kms → bce_python_sdk-0.9.19/baidubce/services/ipv6gateway}/__init__.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/ipv6gateway/ipv6gateway_client.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/ipv6gateway/ipv6gateway_model.py +0 -0
- {bce_python_sdk-0.9.14/baidubce/services/lbdc → bce_python_sdk-0.9.19/baidubce/services/kms}/__init__.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/kms/keyspec_class.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/kms/kms_client.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/kms/origin_class.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/kms/protectedby_class.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/kms/publickeyencoding_class.py +0 -0
- {bce_python_sdk-0.9.14/baidubce/services/localdns → bce_python_sdk-0.9.19/baidubce/services/lbdc}/__init__.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/lbdc/lbdc_client.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/lbdc/model.py +0 -0
- {bce_python_sdk-0.9.14/baidubce/services/localdns/api → bce_python_sdk-0.9.19/baidubce/services/localdns}/__init__.py +0 -0
- {bce_python_sdk-0.9.14/baidubce/services/media → bce_python_sdk-0.9.19/baidubce/services/localdns/api}/__init__.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/localdns/api/ld_api.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/localdns/ld_client.py +0 -0
- {bce_python_sdk-0.9.14/baidubce/services/oos → bce_python_sdk-0.9.19/baidubce/services/media}/__init__.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/media/media_client.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/media/media_handler.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/mms/__init__.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/mms/mms_client.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/mvs/__init__.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/mvs/mvs_client.py +0 -0
- {bce_python_sdk-0.9.14/baidubce/services/probe → bce_python_sdk-0.9.19/baidubce/services/oos}/__init__.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/oos/oos_client.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/oos/oos_model.py +0 -0
- {bce_python_sdk-0.9.14/baidubce/services/route → bce_python_sdk-0.9.19/baidubce/services/probe}/__init__.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/probe/probe_client.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/rds/__init__.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/rds/rds_backup_manager.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/rds/rds_database_manager.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/rds/rds_hot_active_instance_group_manager.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/rds/rds_http.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/rds/rds_instance_manager.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/rds/rds_log_manager.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/rds/rds_parameter_manager.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/rds/rds_readonly_group_manager.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/rds/rds_recycler_manager.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/rds/rds_security_manager.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/rds/rds_task_manager.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/rds/rds_users_manager.py +0 -0
- {bce_python_sdk-0.9.14/baidubce/services/subnet → bce_python_sdk-0.9.19/baidubce/services/route}/__init__.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/route/route_client.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/route/route_model.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/scs/__init__.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/scs/model.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/scs/scs_client.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/sms/__init__.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/sms/model.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/sts/__init__.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/sts/sts_client.py +0 -0
- {bce_python_sdk-0.9.14/baidubce/services/tsdb → bce_python_sdk-0.9.19/baidubce/services/subnet}/__init__.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/subnet/subnet_client.py +0 -0
- {bce_python_sdk-0.9.14/baidubce/services/vca → bce_python_sdk-0.9.19/baidubce/services/tsdb}/__init__.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/tsdb/tsdb_admin_client.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/tsdb/tsdb_client.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/tsdb/tsdb_handler.py +0 -0
- {bce_python_sdk-0.9.14/baidubce/services/vcr → bce_python_sdk-0.9.19/baidubce/services/vca}/__init__.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/vca/vca_client.py +0 -0
- {bce_python_sdk-0.9.14/baidubce/services/vpc → bce_python_sdk-0.9.19/baidubce/services/vcr}/__init__.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/vcr/vcr_client.py +0 -0
- {bce_python_sdk-0.9.14/baidubce/services/vpn → bce_python_sdk-0.9.19/baidubce/services/vpc}/__init__.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/vpc/acl_client.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/vpc/nat_client.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/vpc/nat_model.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/vpc/peerconn_client.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/vpc/peerconn_model.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/vpc/vpc_client.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/vpn/vpn_client.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/services/vpn/vpn_model.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/baidubce/utils.py +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/bce_python_sdk.egg-info/dependency_links.txt +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/bce_python_sdk.egg-info/requires.txt +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/bce_python_sdk.egg-info/top_level.txt +0 -0
- {bce_python_sdk-0.9.14 → bce_python_sdk-0.9.19}/setup.cfg +0 -0
|
@@ -88,7 +88,7 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
88
88
|
zone_name=None, subnet_id=None, security_group_id=None, gpuCard=None, fpgaCard=None,
|
|
89
89
|
spec=None, eip_name=None, hostname=None, auto_seq_suffix=False, is_open_hostname_domain=False,
|
|
90
90
|
relation_tag=None, is_open_ipv6=None, enterprise_security_group_id=None,
|
|
91
|
-
security_group_ids=None, enterprise_security_group_ids=None,
|
|
91
|
+
security_group_ids=None, enterprise_security_group_ids=None, ehc_cluster_id=None,
|
|
92
92
|
kunlunCard=None, isomerismCard=None, file_systems=None, user_data=None, is_open_hosteye=False,
|
|
93
93
|
deletion_protection=None, res_group_id=None,
|
|
94
94
|
client_token=None, config=None, card_count=1, isomerism_card=None):
|
|
@@ -315,6 +315,10 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
315
315
|
enterprise_security_group_ids
|
|
316
316
|
:type enterprise_security_group_ids: list<string>
|
|
317
317
|
|
|
318
|
+
:param ehc_cluster_id:
|
|
319
|
+
The id of ehcCluster.
|
|
320
|
+
:type ehc_cluster_id: string
|
|
321
|
+
|
|
318
322
|
:param kunlunCard:
|
|
319
323
|
This parameter is obsolete. Use parameter isomerism_card instead.
|
|
320
324
|
:type kunlunCard: string
|
|
@@ -418,6 +422,8 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
418
422
|
body['securityGroupIds'] = security_group_ids
|
|
419
423
|
if enterprise_security_group_ids is not None:
|
|
420
424
|
body['enterpriseSecurityGroupIds'] = enterprise_security_group_ids
|
|
425
|
+
if ehc_cluster_id is not None:
|
|
426
|
+
body['ehcClusterId'] = ehc_cluster_id
|
|
421
427
|
if gpuCard is not None:
|
|
422
428
|
body['gpuCard'] = gpuCard
|
|
423
429
|
body['cardCount'] = card_count if card_count > 1 else 1
|
|
@@ -1063,13 +1069,13 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
1063
1069
|
body['userData'] = user_data
|
|
1064
1070
|
if res_group_id is not None:
|
|
1065
1071
|
body['resGroupId'] = res_group_id
|
|
1066
|
-
body['isEipAutoRelatedDelete'] = is_eip_auto_related_delete
|
|
1072
|
+
body['isEipAutoRelatedDelete'] = is_eip_auto_related_delete
|
|
1067
1073
|
|
|
1068
1074
|
return self._send_request(http_methods.POST, path, json.dumps(body),
|
|
1069
1075
|
params=params, config=config)
|
|
1070
1076
|
|
|
1071
1077
|
def list_instances(self, marker=None, max_keys=None, internal_ip=None, dedicated_host_id=None,
|
|
1072
|
-
zone_name=None, instance_ids=None, instance_names=None, cds_ids=None,
|
|
1078
|
+
zone_name=None, instance_ids=None, instance_names=None, cds_ids=None, ehc_cluster_id=None,
|
|
1073
1079
|
deployset_ids=None, security_group_ids=None, payment_timing=None, status=None, tags=None,
|
|
1074
1080
|
vpc_id=None, private_ips=None, ipv6_addresses=None, auto_renew=None, config=None):
|
|
1075
1081
|
"""
|
|
@@ -1111,6 +1117,10 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
1111
1117
|
filter instance list with multiple cds ids join by ','
|
|
1112
1118
|
:type cds_ids: string
|
|
1113
1119
|
|
|
1120
|
+
:param ehc_cluster_id:
|
|
1121
|
+
get instance list filtered by id of ehc cluster
|
|
1122
|
+
:type ehc_cluster_id: string
|
|
1123
|
+
|
|
1114
1124
|
:param deployset_ids:
|
|
1115
1125
|
filter instance list with multiple deployset ids join by ','
|
|
1116
1126
|
:type deployset_ids: string
|
|
@@ -1171,6 +1181,8 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
1171
1181
|
params['instanceNames'] = instance_names
|
|
1172
1182
|
if cds_ids is not None:
|
|
1173
1183
|
params['cdsIds'] = cds_ids
|
|
1184
|
+
if ehc_cluster_id is not None:
|
|
1185
|
+
params['ehcClusterId'] = ehc_cluster_id
|
|
1174
1186
|
if deployset_ids is not None:
|
|
1175
1187
|
params['deploySetIds'] = deployset_ids
|
|
1176
1188
|
if security_group_ids is not None:
|
|
@@ -1306,13 +1318,28 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
1306
1318
|
params=params, config=config)
|
|
1307
1319
|
|
|
1308
1320
|
@required(instance_id=str)
|
|
1309
|
-
def batch_add_ip(self, instance_id, private_ips=None, secondary_private_ip_address_count=None,
|
|
1321
|
+
def batch_add_ip(self, instance_id, private_ips=None, secondary_private_ip_address_count=None,
|
|
1322
|
+
allocate_multi_ipv6_addr=None, config=None):
|
|
1310
1323
|
"""
|
|
1311
1324
|
batch_add_ip
|
|
1325
|
+
|
|
1312
1326
|
:param instance_id:
|
|
1327
|
+
The id of instance.
|
|
1328
|
+
:type instance_id: string
|
|
1329
|
+
|
|
1313
1330
|
:param private_ips:
|
|
1331
|
+
The IPV6/IPV4 address that needs to be added must exist with secondary_private_ip_address_count.
|
|
1332
|
+
:type private_ips: list
|
|
1333
|
+
|
|
1314
1334
|
:param secondary_private_ip_address_count:
|
|
1315
|
-
|
|
1335
|
+
The number of IPV6/IPV4 needs to be increased, and one with private_ips must exist.
|
|
1336
|
+
:type secondary_private_ip_address_count: list
|
|
1337
|
+
|
|
1338
|
+
:param allocate_multi_ipv6_addr:
|
|
1339
|
+
The parameter indicates whether to support multiple IPV6.
|
|
1340
|
+
It must be true to create IPV6.
|
|
1341
|
+
:type allocate_multi_ipv6_addr: bool
|
|
1342
|
+
|
|
1316
1343
|
:return:
|
|
1317
1344
|
:rtype baidubce.bce_response.BceResponse
|
|
1318
1345
|
"""
|
|
@@ -1324,6 +1351,8 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
1324
1351
|
body['privateIps'] = private_ips
|
|
1325
1352
|
if secondary_private_ip_address_count is not None:
|
|
1326
1353
|
body['secondaryPrivateIpAddressCount'] = secondary_private_ip_address_count
|
|
1354
|
+
if allocate_multi_ipv6_addr is not None:
|
|
1355
|
+
body['allocateMultiIpv6Addr'] = allocate_multi_ipv6_addr
|
|
1327
1356
|
params = {
|
|
1328
1357
|
|
|
1329
1358
|
}
|
|
@@ -1387,7 +1416,8 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
1387
1416
|
|
|
1388
1417
|
@required(instance_id=(bytes, str), # ***Unicode***
|
|
1389
1418
|
name=(bytes, str)) # ***Unicode***
|
|
1390
|
-
def modify_instance_attributes(self, instance_id, name=None, neteth_queuecount=None,
|
|
1419
|
+
def modify_instance_attributes(self, instance_id, name=None, neteth_queuecount=None,
|
|
1420
|
+
enable_jumbo_frame=None, config=None):
|
|
1391
1421
|
"""
|
|
1392
1422
|
Modifying the special attribute to new value of the instance.
|
|
1393
1423
|
You can reboot the instance only when the instance is Running or Stopped ,
|
|
@@ -1405,6 +1435,13 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
1405
1435
|
The new value for instance's neteth_queuecount.
|
|
1406
1436
|
:type neteth_queuecount: string
|
|
1407
1437
|
|
|
1438
|
+
:param enable_jumbo_frame:
|
|
1439
|
+
The parameter indicates whether the instance is enabled for JumboFrame.
|
|
1440
|
+
It can only be enabled when the flavor support JumboFrame.
|
|
1441
|
+
True indicates enabled, false indicates disabled,
|
|
1442
|
+
:type enable_jumbo_frame: bool
|
|
1443
|
+
|
|
1444
|
+
|
|
1408
1445
|
:return:
|
|
1409
1446
|
:rtype baidubce.bce_response.BceResponse
|
|
1410
1447
|
"""
|
|
@@ -1414,6 +1451,8 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
1414
1451
|
'name': name,
|
|
1415
1452
|
'netEthQueueCount': neteth_queuecount
|
|
1416
1453
|
}
|
|
1454
|
+
if enable_jumbo_frame is not None:
|
|
1455
|
+
body['enableJumboFrame'] = enable_jumbo_frame
|
|
1417
1456
|
params = {
|
|
1418
1457
|
'modifyAttribute': None
|
|
1419
1458
|
}
|
|
@@ -3863,10 +3902,10 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
3863
3902
|
auto_seq_suffix=None, is_open_hostname_domain=None, admin_pass=None, billing=None,
|
|
3864
3903
|
zone_name=None, subnet_id=None, security_group_id=None,
|
|
3865
3904
|
enterprise_security_group_id=None, security_group_ids=None,
|
|
3866
|
-
enterprise_security_group_ids=None, relation_tag=None,
|
|
3905
|
+
enterprise_security_group_ids=None, relation_tag=None, ehc_cluster_id=None,
|
|
3867
3906
|
is_open_ipv6=None, tags=None, key_pair_id=None, auto_renew_time_unit=None,
|
|
3868
3907
|
auto_renew_time=0, cds_auto_renew=None, asp_id=None, bid_model=None, bid_price=None,
|
|
3869
|
-
dedicate_host_id=None, deploy_id=None, deploy_id_list=None,
|
|
3908
|
+
dedicate_host_id=None, deploy_id=None, deploy_id_list=None, enable_jumbo_frame=None,
|
|
3870
3909
|
client_token=None, config=None):
|
|
3871
3910
|
"""
|
|
3872
3911
|
Create a bcc Instance with the specified options.
|
|
@@ -3975,6 +4014,10 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
3975
4014
|
The parameter to specify whether the instance related to existing tags
|
|
3976
4015
|
:type relation_tag: boolean
|
|
3977
4016
|
|
|
4017
|
+
:param ehc_cluster_id:
|
|
4018
|
+
The id of ehcCluster.
|
|
4019
|
+
:type ehc_cluster_id: string
|
|
4020
|
+
|
|
3978
4021
|
:param is_open_ipv6:
|
|
3979
4022
|
The parameter indicates whether the instance to be created is enabled for IPv6.
|
|
3980
4023
|
It can only be enabled when both the image and subnet support IPv6.
|
|
@@ -4060,6 +4103,12 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
4060
4103
|
The default value is false.
|
|
4061
4104
|
:type cds_auto_renew: boolean
|
|
4062
4105
|
|
|
4106
|
+
:param enable_jumbo_frame:
|
|
4107
|
+
The parameter indicates whether the instance is enabled for JumboFrame.
|
|
4108
|
+
It can only be enabled when the flavor support JumboFrame.
|
|
4109
|
+
True indicates enabled, false indicates disabled,
|
|
4110
|
+
:type enable_jumbo_frame: bool
|
|
4111
|
+
|
|
4063
4112
|
:return:
|
|
4064
4113
|
:rtype baidubce.bce_response.BceResponse
|
|
4065
4114
|
"""
|
|
@@ -4138,11 +4187,15 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
4138
4187
|
body['aspId'] = asp_id
|
|
4139
4188
|
if relation_tag is not None:
|
|
4140
4189
|
body['relationTag'] = relation_tag
|
|
4190
|
+
if ehc_cluster_id is not None:
|
|
4191
|
+
body['ehcClusterId'] = ehc_cluster_id
|
|
4141
4192
|
if is_open_ipv6 is not None:
|
|
4142
4193
|
body['isOpenIpv6'] = is_open_ipv6
|
|
4143
4194
|
if tags is not None:
|
|
4144
4195
|
tag_list = [tag.__dict__ for tag in tags]
|
|
4145
4196
|
body['tags'] = tag_list
|
|
4197
|
+
if enable_jumbo_frame is not None:
|
|
4198
|
+
body['enableJumboFrame'] = enable_jumbo_frame
|
|
4146
4199
|
body['cdsAutoRenew'] = cds_auto_renew
|
|
4147
4200
|
|
|
4148
4201
|
return self._send_request(http_methods.POST, path, json.dumps(body),
|
|
@@ -4688,7 +4741,7 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
4688
4741
|
return self._send_request(http_methods.PUT, path, json.dumps(body), params=params, config=config)
|
|
4689
4742
|
|
|
4690
4743
|
@required(instance_id=(bytes, str), is_eip_auto_related_delete=bool)
|
|
4691
|
-
def modify_related_delete_policy(self, instance_id, is_eip_auto_related_delete, client_token=None, config=None):
|
|
4744
|
+
def modify_related_delete_policy(self, instance_id, is_eip_auto_related_delete, client_token=None, config=None):
|
|
4692
4745
|
"""
|
|
4693
4746
|
Set bid instance eip_auto_related_delete.
|
|
4694
4747
|
|
|
@@ -5175,7 +5228,9 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
5175
5228
|
return self._send_request(http_methods.GET, path, prefix=b"/v1", params=params, config=config)
|
|
5176
5229
|
|
|
5177
5230
|
def instance_change_subnet(self, instance_id, subnet_id=None,
|
|
5178
|
-
internal_ip=None, reboot=None,
|
|
5231
|
+
internal_ip=None, reboot=None,
|
|
5232
|
+
security_group_ids=None, enterprise_security_group_ids=None,
|
|
5233
|
+
client_token=None, config=None):
|
|
5179
5234
|
"""
|
|
5180
5235
|
Change instance subnet by id.
|
|
5181
5236
|
|
|
@@ -5195,6 +5250,12 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
5195
5250
|
Reboot instance or not. Default value is False.
|
|
5196
5251
|
:type reboot: bool
|
|
5197
5252
|
|
|
5253
|
+
:param security_group_ids:
|
|
5254
|
+
:type security_group_ids: list<string>
|
|
5255
|
+
|
|
5256
|
+
:param enterprise_security_group_ids:
|
|
5257
|
+
:type enterprise_security_group_ids: list<string>
|
|
5258
|
+
|
|
5198
5259
|
:return:
|
|
5199
5260
|
:rtype baidubce.bce_response.BceResponse
|
|
5200
5261
|
"""
|
|
@@ -5215,6 +5276,12 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
5215
5276
|
if reboot is not None:
|
|
5216
5277
|
body['reboot'] = reboot
|
|
5217
5278
|
|
|
5279
|
+
if security_group_ids is not None:
|
|
5280
|
+
body['securityGroupIds'] = security_group_ids
|
|
5281
|
+
|
|
5282
|
+
if enterprise_security_group_ids is not None:
|
|
5283
|
+
body['enterpriseSecurityGroupIds'] = enterprise_security_group_ids
|
|
5284
|
+
|
|
5218
5285
|
return self._send_request(http_methods.PUT, path, body=json.dumps(body), params=params, config=config)
|
|
5219
5286
|
|
|
5220
5287
|
def instance_change_vpc(self, instance_id, subnet_id=None,
|
|
@@ -5489,7 +5556,7 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
5489
5556
|
return self._send_request(http_methods.POST, path, body=json.dumps(body), params=params, config=config)
|
|
5490
5557
|
|
|
5491
5558
|
def batch_create_auto_renew_rules(self, instance_id, renew_time_unit="month", renew_time=1,
|
|
5492
|
-
client_token=None, config=None):
|
|
5559
|
+
renew_cds=None, renew_eip=None, client_token=None, config=None):
|
|
5493
5560
|
"""
|
|
5494
5561
|
create auto renew rules for instance
|
|
5495
5562
|
|
|
@@ -5504,6 +5571,10 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
5504
5571
|
:param renew_time:
|
|
5505
5572
|
renew time of year, values: 1/2/3, default value: 1
|
|
5506
5573
|
:type renew_time: int
|
|
5574
|
+
:param renew_cds:
|
|
5575
|
+
renew cds, values: True/False, default value: True
|
|
5576
|
+
:param renew_eip:
|
|
5577
|
+
renew eip, values: True/False, default value: True
|
|
5507
5578
|
|
|
5508
5579
|
:return:
|
|
5509
5580
|
:rtype baidubce.bce_response.BceResponse
|
|
@@ -5519,16 +5590,25 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
5519
5590
|
"renewTimeUnit": renew_time_unit,
|
|
5520
5591
|
"renewTime": renew_time
|
|
5521
5592
|
}
|
|
5593
|
+
if renew_cds is not None:
|
|
5594
|
+
body["renewCds"] = renew_cds
|
|
5595
|
+
if renew_eip is not None:
|
|
5596
|
+
body["renewEip"] = renew_eip
|
|
5597
|
+
|
|
5522
5598
|
return self._send_request(http_methods.POST, path, body=json.dumps(body), params=params, config=config)
|
|
5523
5599
|
|
|
5524
|
-
def batch_delete_auto_renew_rules(self, instance_id,
|
|
5600
|
+
def batch_delete_auto_renew_rules(self, instance_id, renew_cds=None, renew_eip=None,
|
|
5601
|
+
client_token=None, config=None):
|
|
5525
5602
|
"""
|
|
5526
5603
|
delete auto renew rules for instance
|
|
5527
5604
|
|
|
5528
5605
|
:param instance_id:
|
|
5529
5606
|
Identify of the instance to auto renew
|
|
5530
5607
|
:type instance_id: string
|
|
5531
|
-
|
|
5608
|
+
:param renew_cds:
|
|
5609
|
+
renew cds, values: True/False, default value: True
|
|
5610
|
+
:param renew_eip:
|
|
5611
|
+
renew eip, values: True/False, default value: True
|
|
5532
5612
|
:return:
|
|
5533
5613
|
:rtype baidubce.bce_response.BceResponse
|
|
5534
5614
|
"""
|
|
@@ -5541,6 +5621,12 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
5541
5621
|
body = {
|
|
5542
5622
|
"instanceId": instance_id
|
|
5543
5623
|
}
|
|
5624
|
+
|
|
5625
|
+
if renew_cds is not None:
|
|
5626
|
+
body["renewCds"] = renew_cds
|
|
5627
|
+
if renew_eip is not None:
|
|
5628
|
+
body["renewEip"] = renew_eip
|
|
5629
|
+
|
|
5544
5630
|
return self._send_request(http_methods.POST, path, body=json.dumps(body), params=params, config=config)
|
|
5545
5631
|
|
|
5546
5632
|
def delete_recycled_instance(self, instance_id, client_token=None, config=None):
|
|
@@ -6364,6 +6450,128 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
6364
6450
|
}
|
|
6365
6451
|
return self._send_request(http_methods.POST, path, body=json.dumps(body), params=params, config=config)
|
|
6366
6452
|
|
|
6453
|
+
def create_ehc_cluster(self, name, zone_name, description=None, client_token=None, config=None):
|
|
6454
|
+
"""
|
|
6455
|
+
create ehc cluster
|
|
6456
|
+
|
|
6457
|
+
:param name:
|
|
6458
|
+
The name of the EHC cluster. This parameter is required.
|
|
6459
|
+
:type name: string
|
|
6460
|
+
|
|
6461
|
+
:param zone_name:
|
|
6462
|
+
The availability zone name where the EHC cluster will be created.
|
|
6463
|
+
:type zone_name: string
|
|
6464
|
+
|
|
6465
|
+
:param description:
|
|
6466
|
+
Optional. A brief description of the EHC cluster. Default is an empty string.
|
|
6467
|
+
:type description: string
|
|
6468
|
+
|
|
6469
|
+
:return:
|
|
6470
|
+
:rtype baidubce.bce_response.BceResponse
|
|
6471
|
+
"""
|
|
6472
|
+
path = b'/instance/ehc/cluster/create'
|
|
6473
|
+
params = {}
|
|
6474
|
+
if client_token is None:
|
|
6475
|
+
params['clientToken'] = generate_client_token()
|
|
6476
|
+
else:
|
|
6477
|
+
params['clientToken'] = client_token
|
|
6478
|
+
body = {
|
|
6479
|
+
'name': name,
|
|
6480
|
+
'zoneName': zone_name
|
|
6481
|
+
}
|
|
6482
|
+
if description is not None:
|
|
6483
|
+
body['description'] = description
|
|
6484
|
+
return self._send_request(http_methods.POST, path, body=json.dumps(body), params=params, config=config)
|
|
6485
|
+
|
|
6486
|
+
def modify_ehc_cluster(self, ehc_cluster_id, name=None, description=None, client_token=None, config=None):
|
|
6487
|
+
"""
|
|
6488
|
+
Modifies the name and description of an EHC cluster.
|
|
6489
|
+
|
|
6490
|
+
:param ehc_cluster_id:
|
|
6491
|
+
The ID of the EHC cluster to be modified. This parameter is required.
|
|
6492
|
+
:type ehc_cluster_id: string
|
|
6493
|
+
|
|
6494
|
+
:param name:
|
|
6495
|
+
Optional. The new name for the EHC cluster. If not specified, the name will not be changed.
|
|
6496
|
+
:type name: string
|
|
6497
|
+
|
|
6498
|
+
:param description:
|
|
6499
|
+
Optional. The new description for the EHC cluster. If not specified, the description will not be changed.
|
|
6500
|
+
:type description: string
|
|
6501
|
+
|
|
6502
|
+
:return:
|
|
6503
|
+
:rtype baidubce.bce_response.BceResponse
|
|
6504
|
+
"""
|
|
6505
|
+
path = b'/instance/ehc/cluster/modify'
|
|
6506
|
+
params = {}
|
|
6507
|
+
if client_token is None:
|
|
6508
|
+
params['clientToken'] = generate_client_token()
|
|
6509
|
+
else:
|
|
6510
|
+
params['clientToken'] = client_token
|
|
6511
|
+
body = {
|
|
6512
|
+
'ehcClusterId': ehc_cluster_id
|
|
6513
|
+
}
|
|
6514
|
+
if name is not None:
|
|
6515
|
+
body['name'] = name
|
|
6516
|
+
if description is not None:
|
|
6517
|
+
body['description'] = description
|
|
6518
|
+
|
|
6519
|
+
return self._send_request(http_methods.POST, path, body=json.dumps(body), params=params, config=config)
|
|
6520
|
+
|
|
6521
|
+
def get_ehc_cluster_list(self, ehc_cluster_id_list=None, name_list=None, zone_name=None, config=None):
|
|
6522
|
+
"""
|
|
6523
|
+
get ehc cluster list
|
|
6524
|
+
|
|
6525
|
+
:param ehc_cluster_id_list:
|
|
6526
|
+
Optional. List of EHC cluster IDs to filter the results. If not specified, retrieves all clusters.
|
|
6527
|
+
:type ehc_cluster_id_list: list<string>
|
|
6528
|
+
|
|
6529
|
+
:param name_list:
|
|
6530
|
+
Optional. List of EHC cluster names to filter the results. If not specified, retrieves all clusters.
|
|
6531
|
+
:type name_list: list<string>
|
|
6532
|
+
|
|
6533
|
+
:param zone_name:
|
|
6534
|
+
Optional. The name of the availability zone to filter the results.
|
|
6535
|
+
:type zone_name: string
|
|
6536
|
+
|
|
6537
|
+
:return:
|
|
6538
|
+
:rtype baidubce.bce_response.BceResponse
|
|
6539
|
+
"""
|
|
6540
|
+
path = b'/instance/ehc/cluster/list'
|
|
6541
|
+
params = {}
|
|
6542
|
+
body = {}
|
|
6543
|
+
if ehc_cluster_id_list is not None:
|
|
6544
|
+
body['ehcClusterIdList'] = ehc_cluster_id_list
|
|
6545
|
+
if name_list is not None:
|
|
6546
|
+
body['nameList'] = name_list
|
|
6547
|
+
if zone_name is not None:
|
|
6548
|
+
body['zoneName'] = zone_name
|
|
6549
|
+
|
|
6550
|
+
return self._send_request(http_methods.POST, path, body=json.dumps(body), params=params, config=config)
|
|
6551
|
+
|
|
6552
|
+
def delete_ehc_cluster(self, ehc_cluster_id_list, client_token=None, config=None):
|
|
6553
|
+
"""
|
|
6554
|
+
Modifies the name and description of an EHC cluster.
|
|
6555
|
+
|
|
6556
|
+
:param ehc_cluster_id_list:
|
|
6557
|
+
A list of IDs of the EHC clusters to be deleted. This parameter is required.
|
|
6558
|
+
:type ehc_cluster_id_list: string
|
|
6559
|
+
|
|
6560
|
+
:return:
|
|
6561
|
+
:rtype baidubce.bce_response.BceResponse
|
|
6562
|
+
"""
|
|
6563
|
+
path = b'/instance/ehc/cluster/delete'
|
|
6564
|
+
params = {}
|
|
6565
|
+
if client_token is None:
|
|
6566
|
+
params['clientToken'] = generate_client_token()
|
|
6567
|
+
else:
|
|
6568
|
+
params['clientToken'] = client_token
|
|
6569
|
+
body = {
|
|
6570
|
+
'ehcClusterIdList': ehc_cluster_id_list
|
|
6571
|
+
}
|
|
6572
|
+
|
|
6573
|
+
return self._send_request(http_methods.POST, path, body=json.dumps(body), params=params, config=config)
|
|
6574
|
+
|
|
6367
6575
|
def get_available_images_by_spec(self, marker=None, max_keys=None, spec=None, os_name=None, config=None):
|
|
6368
6576
|
"""
|
|
6369
6577
|
:param marker:
|
|
@@ -6402,6 +6610,153 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
6402
6610
|
|
|
6403
6611
|
return self._send_request(http_methods.GET, path, params=params, config=config)
|
|
6404
6612
|
|
|
6613
|
+
def create_reserved_instances(self, reserved_instance_name=None, scope=None, zone_name=None, spec=None,
|
|
6614
|
+
offering_type=None, instance_count=None, reserved_instance_count=None,
|
|
6615
|
+
reserved_instance_time=None, reserved_instance_time_unit=None,
|
|
6616
|
+
auto_renew_time_unit=None, auto_renew_time=None, auto_renew=None,
|
|
6617
|
+
effective_time=None, ehc_cluster_id=None, ticket_id=None,
|
|
6618
|
+
tags=None, client_token=None, config=None):
|
|
6619
|
+
|
|
6620
|
+
"""
|
|
6621
|
+
Create reserved instances.
|
|
6622
|
+
|
|
6623
|
+
:param reserved_instance_name:
|
|
6624
|
+
The name of the reserved instance.
|
|
6625
|
+
:type reserved_instance_name: string
|
|
6626
|
+
|
|
6627
|
+
:param scope:
|
|
6628
|
+
The scope.
|
|
6629
|
+
:type scope: string
|
|
6630
|
+
|
|
6631
|
+
:param zone_name:
|
|
6632
|
+
The name of the availability zone.
|
|
6633
|
+
:type zone_name: string
|
|
6634
|
+
|
|
6635
|
+
:param spec:
|
|
6636
|
+
The instance specification.
|
|
6637
|
+
:type spec: string
|
|
6638
|
+
|
|
6639
|
+
:param offering_type:
|
|
6640
|
+
The offering type.
|
|
6641
|
+
:type offering_type: string
|
|
6642
|
+
|
|
6643
|
+
:param instance_count:
|
|
6644
|
+
The number of instances.
|
|
6645
|
+
:type instance_count: int
|
|
6646
|
+
|
|
6647
|
+
:param reserved_instance_count:
|
|
6648
|
+
The number of reserved instances.
|
|
6649
|
+
:type reserved_instance_count: int
|
|
6650
|
+
|
|
6651
|
+
:param reserved_instance_time:
|
|
6652
|
+
The duration of the reserved instance.
|
|
6653
|
+
:type reserved_instance_time: int
|
|
6654
|
+
|
|
6655
|
+
:param reserved_instance_time_unit:
|
|
6656
|
+
The time unit of the reserved instance.
|
|
6657
|
+
:type reserved_instance_time_unit: string
|
|
6658
|
+
|
|
6659
|
+
:param auto_renew_time_unit:
|
|
6660
|
+
The time unit for automatic renewal.
|
|
6661
|
+
:type auto_renew_time_unit: string
|
|
6662
|
+
|
|
6663
|
+
:param auto_renew_time:
|
|
6664
|
+
The duration for automatic renewal.
|
|
6665
|
+
:type auto_renew_time: int
|
|
6666
|
+
|
|
6667
|
+
:param auto_renew:
|
|
6668
|
+
Whether to enable automatic renewal, defaults to False.
|
|
6669
|
+
:type auto_renew: bool
|
|
6670
|
+
|
|
6671
|
+
:param effective_time:
|
|
6672
|
+
The effective time.
|
|
6673
|
+
It is immediately effective by default.
|
|
6674
|
+
:type effective_time: string
|
|
6675
|
+
|
|
6676
|
+
:param ehc_cluster_id:
|
|
6677
|
+
The EHC cluster ID.
|
|
6678
|
+
:type ehc_cluster_id: string
|
|
6679
|
+
|
|
6680
|
+
:param ticket_id:
|
|
6681
|
+
The ticket ID.
|
|
6682
|
+
:type ticket_id: string
|
|
6683
|
+
|
|
6684
|
+
:param tags:
|
|
6685
|
+
The optional list of tag to be bonded.
|
|
6686
|
+
:type tags: list<bcc_model.TagModel>
|
|
6687
|
+
|
|
6688
|
+
:return:
|
|
6689
|
+
:rtype: baidubce.bce_response.BceResponse
|
|
6690
|
+
"""
|
|
6691
|
+
|
|
6692
|
+
path = b'/instance/reserved/create' # 请替换为实际的请求路径
|
|
6693
|
+
params = {}
|
|
6694
|
+
if client_token is not None:
|
|
6695
|
+
params['clientToken'] = client_token
|
|
6696
|
+
|
|
6697
|
+
body = {}
|
|
6698
|
+
|
|
6699
|
+
if reserved_instance_name is not None:
|
|
6700
|
+
body['reservedInstanceName'] = reserved_instance_name
|
|
6701
|
+
if scope is not None:
|
|
6702
|
+
body['scope'] = scope
|
|
6703
|
+
if zone_name is not None:
|
|
6704
|
+
body['zoneName'] = zone_name
|
|
6705
|
+
if spec is not None:
|
|
6706
|
+
body['spec'] = spec
|
|
6707
|
+
if offering_type is not None:
|
|
6708
|
+
body['offeringType'] = offering_type
|
|
6709
|
+
if instance_count is not None:
|
|
6710
|
+
body['instanceCount'] = instance_count
|
|
6711
|
+
if reserved_instance_count is not None:
|
|
6712
|
+
body['reservedInstanceCount'] = reserved_instance_count
|
|
6713
|
+
if reserved_instance_time is not None:
|
|
6714
|
+
body['reservedInstanceTime'] = reserved_instance_time
|
|
6715
|
+
if reserved_instance_time_unit is not None:
|
|
6716
|
+
body['reservedInstanceTimeUnit'] = reserved_instance_time_unit
|
|
6717
|
+
if auto_renew_time_unit is not None:
|
|
6718
|
+
body['autoRenewTimeUnit'] = auto_renew_time_unit
|
|
6719
|
+
if auto_renew_time is not None:
|
|
6720
|
+
body['autoRenewTime'] = auto_renew_time
|
|
6721
|
+
if auto_renew is not False:
|
|
6722
|
+
body['autoRenew'] = str(auto_renew).lower()
|
|
6723
|
+
if effective_time is not None:
|
|
6724
|
+
body['effectiveTime'] = effective_time
|
|
6725
|
+
if ehc_cluster_id is not None:
|
|
6726
|
+
body['ehcClusterId'] = ehc_cluster_id
|
|
6727
|
+
if ticket_id is not None:
|
|
6728
|
+
body['ticketId'] = ticket_id
|
|
6729
|
+
if tags is not None:
|
|
6730
|
+
tag_list = [tag.__dict__ for tag in tags]
|
|
6731
|
+
body['tags'] = tag_list
|
|
6732
|
+
|
|
6733
|
+
return self._send_request(http_methods.POST, path, body=json.dumps(body), params=params, config=config)
|
|
6734
|
+
|
|
6735
|
+
def modify_reserved_instances(self, reserved_instances=None, client_token=None, config=None):
|
|
6736
|
+
|
|
6737
|
+
"""
|
|
6738
|
+
Modify the information of reserved instances.
|
|
6739
|
+
|
|
6740
|
+
:param reserved_instances:
|
|
6741
|
+
A list of dictionaries containing the information of reserved instances to be updated.
|
|
6742
|
+
:type reserved_instances: list<bcc_model.ModifyReservedInstanceModel>
|
|
6743
|
+
|
|
6744
|
+
:return:
|
|
6745
|
+
:rtype: baidubce.bce_response.BceResponse
|
|
6746
|
+
"""
|
|
6747
|
+
path = b'/instance/reserved/modify'
|
|
6748
|
+
params = {}
|
|
6749
|
+
if client_token is not None:
|
|
6750
|
+
params['clientToken'] = client_token
|
|
6751
|
+
|
|
6752
|
+
body = {}
|
|
6753
|
+
|
|
6754
|
+
if reserved_instances is not None:
|
|
6755
|
+
reserved_instances_list = [reserved_instance.__dict__ for reserved_instance in reserved_instances]
|
|
6756
|
+
body['reservedInstances'] = reserved_instances_list
|
|
6757
|
+
|
|
6758
|
+
return self._send_request(http_methods.PUT, path, body=json.dumps(body), params=params, config=config)
|
|
6759
|
+
|
|
6405
6760
|
|
|
6406
6761
|
def generate_client_token_by_uuid():
|
|
6407
6762
|
"""
|
|
@@ -170,6 +170,18 @@ class AutoSnapshotPolicyModel(object):
|
|
|
170
170
|
self.retentionDays = retentionDays
|
|
171
171
|
|
|
172
172
|
|
|
173
|
+
class ModifyReservedInstanceModel(object):
|
|
174
|
+
"""
|
|
175
|
+
ModifyReservedInstanceModel
|
|
176
|
+
"""
|
|
177
|
+
|
|
178
|
+
def __init__(self, reservedInstanceId=None, zoneName=None, reservedInstanceName=None, ehcClusterId=None):
|
|
179
|
+
self.reservedInstanceId = reservedInstanceId
|
|
180
|
+
self.zoneName = zoneName
|
|
181
|
+
self.reservedInstanceName = reservedInstanceName
|
|
182
|
+
self.ehcClusterId = ehcClusterId
|
|
183
|
+
|
|
184
|
+
|
|
173
185
|
class FileSystemModel(object):
|
|
174
186
|
"""
|
|
175
187
|
This class define file system.
|