bce-python-sdk 0.9.29__tar.gz → 0.9.35__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.29 → bce_python_sdk-0.9.35}/PKG-INFO +2 -2
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/__init__.py +1 -1
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/bcc/bcc_client.py +192 -9
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/bcc/bcc_model.py +10 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/scs/model.py +1 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/vpc/nat_client.py +179 -5
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/bce_python_sdk.egg-info/PKG-INFO +2 -2
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/README.txt +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/auth/__init__.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/auth/bce_credentials.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/auth/bce_v1_signer.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/bce_base_client.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/bce_client_configuration.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/bce_response.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/compat.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/exception.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/http/__init__.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/http/bce_http_client.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/http/handler.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/http/http_content_types.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/http/http_headers.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/http/http_methods.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/protocol.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/region.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/retry/__init__.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/retry/retry_policy.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/__init__.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/autoscaling/__init__.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/autoscaling/as_client.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/autoscaling/as_handler.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/autoscaling/as_model.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/bbc/__init__.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/bbc/bbc_client.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/bbc/bbc_model.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/bcc/__init__.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/bcc/fpga_card_type.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/bcc/gpu_card_type.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/bcm/__init__.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/bcm/bcm_client.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/bcm/bcm_handler.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/bcm/bcm_model.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/bes/__init__.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/bes/bes_client.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/bes/bes_model.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/blb/__init__.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/blb/app_blb_client.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/blb/blb_client.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/blb/user_service_client.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/bmr/__init__.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/bmr/bmr_client.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/bos/__init__.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/bos/bos_client.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/bos/bos_handler.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/bos/canned_acl.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/bos/common.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/bos/storage_class.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/bts/__init__.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/bts/bts_client.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/bts/model.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/bts/util.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/ca/__init__.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/ca/ca_client.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/ca/ca_handler.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/ca/ca_model.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/cdn/__init__.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/cdn/cdn_client.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/cdn/cdn_stats_param.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/cert/__init__.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/cert/cert_client.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/cert/cert_model.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/cfc/__init__.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/cfc/cfc_client.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/cfc/cfc_handler.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/cfc/models.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/csn/__init__.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/csn/csn_api.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/csn/csn_client.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/csn/csn_model.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/ddc/__init__.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/ddc/ddc_client.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/dns/__init__.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/dns/api/__init__.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/dns/api/dns_api.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/dns/dns_client.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/dumap/__init__.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/dumap/dumap_client.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/eip/__init__.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/eip/eip_bp_client.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/eip/eip_client.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/eip/eip_group_client.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/eip/eip_group_model.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/eip/eip_tp_client.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/eip/model.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/endpoint/__init__.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/endpoint/endpoint_client.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/endpoint/model.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/eni/__init__.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/eni/eni_client.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/eni/eni_model.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/esg/__init__.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/esg/esg_client.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/esg/esg_model.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/et/__init__.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/et/et_client.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/et/model.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/etGateway/__init__.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/etGateway/et_gateway_client.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/havip/havip_client.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/iam/__init__.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/iam/iam_client.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/infinite/__init__.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/infinite/infinite_client.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/ipv6gateway/__init__.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/ipv6gateway/ipv6gateway_client.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/ipv6gateway/ipv6gateway_model.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/kms/__init__.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/kms/keyspec_class.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/kms/kms_client.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/kms/origin_class.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/kms/protectedby_class.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/kms/publickeyencoding_class.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/lbdc/__init__.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/lbdc/lbdc_client.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/lbdc/model.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/localdns/__init__.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/localdns/api/__init__.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/localdns/api/ld_api.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/localdns/ld_client.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/media/__init__.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/media/media_client.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/media/media_handler.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/mms/__init__.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/mms/mms_client.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/mvs/__init__.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/mvs/mvs_client.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/oos/__init__.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/oos/oos_client.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/oos/oos_model.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/probe/__init__.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/probe/probe_client.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/rds/__init__.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/rds/rds_client.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/rds/rds_model.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/route/__init__.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/route/route_client.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/route/route_model.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/scs/__init__.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/scs/scs_client.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/sms/__init__.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/sms/model.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/sms/sms_client.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/sts/__init__.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/sts/sts_client.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/subnet/__init__.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/subnet/subnet_client.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/tsdb/__init__.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/tsdb/tsdb_admin_client.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/tsdb/tsdb_client.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/tsdb/tsdb_handler.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/vca/__init__.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/vca/vca_client.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/vcr/__init__.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/vcr/vcr_client.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/vpc/__init__.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/vpc/acl_client.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/vpc/nat_model.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/vpc/peerconn_client.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/vpc/peerconn_model.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/vpc/template_client.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/vpc/template_model.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/vpc/vpc_client.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/vpn/__init__.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/vpn/vpn_client.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/services/vpn/vpn_model.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/baidubce/utils.py +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/bce_python_sdk.egg-info/SOURCES.txt +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/bce_python_sdk.egg-info/dependency_links.txt +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/bce_python_sdk.egg-info/requires.txt +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/bce_python_sdk.egg-info/top_level.txt +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/setup.cfg +0 -0
- {bce_python_sdk-0.9.29 → bce_python_sdk-0.9.35}/setup.py +0 -0
|
@@ -1873,7 +1873,8 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
1873
1873
|
billing=None,
|
|
1874
1874
|
related_renew_flag=None,
|
|
1875
1875
|
client_token=None,
|
|
1876
|
-
config=None
|
|
1876
|
+
config=None,
|
|
1877
|
+
cds_custom_period=None):
|
|
1877
1878
|
"""
|
|
1878
1879
|
PurchaseReserved the instance with fixed duration.
|
|
1879
1880
|
You can not purchaseReserved the instance which is resizing.
|
|
@@ -1892,6 +1893,10 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
1892
1893
|
Detailed information see: https://cloud.baidu.com/doc/BCC/s/6jwvyo0q2#relatedrenewflag
|
|
1893
1894
|
:type related_renew_flag: string
|
|
1894
1895
|
|
|
1896
|
+
:param cds_custom_period:
|
|
1897
|
+
Custom renew period for CDS.
|
|
1898
|
+
:type cds_custom_period: list
|
|
1899
|
+
|
|
1895
1900
|
:param client_token:
|
|
1896
1901
|
An ASCII string whose length is less than 64.
|
|
1897
1902
|
The request will be idempotent if client token is provided.
|
|
@@ -1908,8 +1913,12 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
1908
1913
|
path = b'/instance/%s' % instance_id
|
|
1909
1914
|
if billing is None:
|
|
1910
1915
|
billing = default_billing_to_purchase_reserved
|
|
1916
|
+
cds_custom_period_list = []
|
|
1917
|
+
if cds_custom_period is not None:
|
|
1918
|
+
cds_custom_period_list = [custom_period.__dict__ for custom_period in cds_custom_period]
|
|
1911
1919
|
body = {
|
|
1912
|
-
'billing': billing.__dict__
|
|
1920
|
+
'billing': billing.__dict__,
|
|
1921
|
+
"cdsCustomPeriod": cds_custom_period_list
|
|
1913
1922
|
}
|
|
1914
1923
|
params = None
|
|
1915
1924
|
if client_token is None:
|
|
@@ -2223,6 +2232,7 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
2223
2232
|
|
|
2224
2233
|
def list_volumes(self, instance_id=None, zone_name=None, marker=None, max_keys=None,
|
|
2225
2234
|
cluster_id=None,
|
|
2235
|
+
volume_ids=None,
|
|
2226
2236
|
config=None):
|
|
2227
2237
|
"""
|
|
2228
2238
|
Listing volumes owned by the authenticated user.
|
|
@@ -2251,6 +2261,9 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
2251
2261
|
:param cluster_id:
|
|
2252
2262
|
:type cluster_id: string
|
|
2253
2263
|
|
|
2264
|
+
:param volume_ids:
|
|
2265
|
+
:type volume_ids: string
|
|
2266
|
+
|
|
2254
2267
|
:return:
|
|
2255
2268
|
:rtype baidubce.bce_response.BceResponse
|
|
2256
2269
|
"""
|
|
@@ -2266,6 +2279,8 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
2266
2279
|
params['maxKeys'] = max_keys
|
|
2267
2280
|
if cluster_id is not None:
|
|
2268
2281
|
params['clusterId'] = cluster_id
|
|
2282
|
+
if volume_ids is not None:
|
|
2283
|
+
params['volumeIds'] = volume_ids
|
|
2269
2284
|
return self._send_request(http_methods.GET, path, params=params, config=config)
|
|
2270
2285
|
|
|
2271
2286
|
@required(volume_id=(bytes, str)) # ***Unicode***
|
|
@@ -2483,7 +2498,8 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
2483
2498
|
volume_id,
|
|
2484
2499
|
billing=None,
|
|
2485
2500
|
client_token=None,
|
|
2486
|
-
config=None
|
|
2501
|
+
config=None,
|
|
2502
|
+
instance_id=None):
|
|
2487
2503
|
"""
|
|
2488
2504
|
PurchaseReserved the instance with fixed duration.
|
|
2489
2505
|
You can not purchaseReserved the instance which is resizing.
|
|
@@ -2498,6 +2514,9 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
2498
2514
|
Billing information.
|
|
2499
2515
|
:type billing: bcc_model.Billing
|
|
2500
2516
|
|
|
2517
|
+
:param instance_id:
|
|
2518
|
+
The id of instance to align renew duarion.
|
|
2519
|
+
|
|
2501
2520
|
:param client_token:
|
|
2502
2521
|
An ASCII string whose length is less than 64.
|
|
2503
2522
|
The request will be idempotent if client token is provided.
|
|
@@ -2515,7 +2534,8 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
2515
2534
|
if billing is None:
|
|
2516
2535
|
billing = default_billing_to_purchase_reserved
|
|
2517
2536
|
body = {
|
|
2518
|
-
'billing': billing.__dict__
|
|
2537
|
+
'billing': billing.__dict__,
|
|
2538
|
+
'instanceId': instance_id
|
|
2519
2539
|
}
|
|
2520
2540
|
params = None
|
|
2521
2541
|
if client_token is None:
|
|
@@ -2603,7 +2623,8 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
2603
2623
|
encrypt_key=None,
|
|
2604
2624
|
relate_cds=False,
|
|
2605
2625
|
client_token=None,
|
|
2606
|
-
config=None
|
|
2626
|
+
config=None,
|
|
2627
|
+
detection=None):
|
|
2607
2628
|
"""
|
|
2608
2629
|
Creating a customized image which can be used for creating instance.
|
|
2609
2630
|
You can create an image from an instance with this method.
|
|
@@ -2658,6 +2679,8 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
2658
2679
|
body['encryptKey'] = encrypt_key
|
|
2659
2680
|
if relate_cds is not None:
|
|
2660
2681
|
body['relateCds'] = relate_cds
|
|
2682
|
+
if detection:
|
|
2683
|
+
body['detection'] = detection
|
|
2661
2684
|
return self._send_request(http_methods.POST, path, json.dumps(body),
|
|
2662
2685
|
params=params, config=config)
|
|
2663
2686
|
|
|
@@ -2668,7 +2691,8 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
2668
2691
|
snapshot_id,
|
|
2669
2692
|
encrypt_key=None,
|
|
2670
2693
|
client_token=None,
|
|
2671
|
-
config=None
|
|
2694
|
+
config=None,
|
|
2695
|
+
detection=None):
|
|
2672
2696
|
"""
|
|
2673
2697
|
Creating a customized image which can be used for creating instance.
|
|
2674
2698
|
You can create an image from an snapshot with tihs method.
|
|
@@ -2715,6 +2739,8 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
2715
2739
|
}
|
|
2716
2740
|
if encrypt_key is not None:
|
|
2717
2741
|
body['encryptKey'] = encrypt_key
|
|
2742
|
+
if detection:
|
|
2743
|
+
body['detection'] = detection
|
|
2718
2744
|
return self._send_request(http_methods.POST, path, json.dumps(body),
|
|
2719
2745
|
params=params, config=config)
|
|
2720
2746
|
|
|
@@ -3950,7 +3976,7 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
3950
3976
|
is_open_ipv6=None, tags=None, key_pair_id=None, auto_renew_time_unit=None,
|
|
3951
3977
|
auto_renew_time=0, cds_auto_renew=None, asp_id=None, bid_model=None, bid_price=None,
|
|
3952
3978
|
dedicate_host_id=None, deploy_id=None, deploy_id_list=None, enable_jumbo_frame=None,
|
|
3953
|
-
cpu_thread_config=None, numa_config=None,
|
|
3979
|
+
cpu_thread_config=None, numa_config=None, eni_ids=None,
|
|
3954
3980
|
client_token=None, config=None):
|
|
3955
3981
|
"""
|
|
3956
3982
|
Create a bcc Instance with the specified options.
|
|
@@ -4162,6 +4188,12 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
4162
4188
|
Manage NPS on AMD platforms. Manage NUMA on Intel platforms.
|
|
4163
4189
|
:type numa_config: string
|
|
4164
4190
|
|
|
4191
|
+
:param eni_ids:
|
|
4192
|
+
The optional list of eni short ids to attach.
|
|
4193
|
+
The number of eniIds must be an integer multiple of the number of instances.
|
|
4194
|
+
The enis must in the same vpc and available zone with instance.
|
|
4195
|
+
:type eni_ids: list<string>
|
|
4196
|
+
|
|
4165
4197
|
:return:
|
|
4166
4198
|
:rtype baidubce.bce_response.BceResponse
|
|
4167
4199
|
"""
|
|
@@ -4253,6 +4285,8 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
4253
4285
|
body['cpuThreadConfig'] = cpu_thread_config
|
|
4254
4286
|
if numa_config is not None:
|
|
4255
4287
|
body['numaConfig'] = numa_config
|
|
4288
|
+
if eni_ids is not None:
|
|
4289
|
+
body['eniIds'] = eni_ids
|
|
4256
4290
|
body['cdsAutoRenew'] = cds_auto_renew
|
|
4257
4291
|
|
|
4258
4292
|
return self._send_request(http_methods.POST, path, json.dumps(body),
|
|
@@ -6287,7 +6321,8 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
6287
6321
|
}
|
|
6288
6322
|
return self._send_request(http_methods.PUT, path, body=json.dumps(body), params=params, config=config)
|
|
6289
6323
|
|
|
6290
|
-
def import_custom_image(self, os_name, os_arch, os_type, os_version, name, bos_url, client_token=None, config=None
|
|
6324
|
+
def import_custom_image(self, os_name, os_arch, os_type, os_version, name, bos_url, client_token=None, config=None,
|
|
6325
|
+
detection=None, generation_type=None):
|
|
6291
6326
|
"""
|
|
6292
6327
|
import_custom_image
|
|
6293
6328
|
|
|
@@ -6332,6 +6367,10 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
6332
6367
|
'name': name,
|
|
6333
6368
|
'bosUrl': bos_url
|
|
6334
6369
|
}
|
|
6370
|
+
if detection:
|
|
6371
|
+
body['detection'] = detection
|
|
6372
|
+
if generation_type is not None:
|
|
6373
|
+
body['generationType'] = generation_type
|
|
6335
6374
|
return self._send_request(http_methods.POST, path, body=json.dumps(body), params=params, config=config)
|
|
6336
6375
|
|
|
6337
6376
|
def create_remote_copy_snapshot(self, snapshot_id, dest_region_infos, client_token=None, config=None):
|
|
@@ -6403,10 +6442,13 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
6403
6442
|
|
|
6404
6443
|
return self._send_request(http_methods.POST, path, body=json.dumps(body), params=params, config=config)
|
|
6405
6444
|
|
|
6406
|
-
def list_deploy_sets(self, client_token=None, config=None):
|
|
6445
|
+
def list_deploy_sets(self, client_token=None, config=None, deployment_set_ids=None):
|
|
6407
6446
|
"""
|
|
6408
6447
|
list_deploy_sets
|
|
6409
6448
|
|
|
6449
|
+
:param deployment_set_ids:
|
|
6450
|
+
:type deployment_set_ids: string
|
|
6451
|
+
|
|
6410
6452
|
:return:
|
|
6411
6453
|
:rtype baidubce.bce_response.BceResponse
|
|
6412
6454
|
"""
|
|
@@ -6416,6 +6458,8 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
6416
6458
|
params['clientToken'] = generate_client_token()
|
|
6417
6459
|
else:
|
|
6418
6460
|
params['clientToken'] = client_token
|
|
6461
|
+
if deployment_set_ids is not None:
|
|
6462
|
+
params['deploymentSetIds'] = deployment_set_ids
|
|
6419
6463
|
return self._send_request(http_methods.GET, path, params=params, config=config)
|
|
6420
6464
|
|
|
6421
6465
|
def delete_deploy_set(self, deploy_set_id, client_token=None, config=None):
|
|
@@ -6873,6 +6917,145 @@ class BccClient(bce_base_client.BceBaseClient):
|
|
|
6873
6917
|
return self._send_request(http_methods.POST, path, json.dumps(body),
|
|
6874
6918
|
params=params, config=config)
|
|
6875
6919
|
|
|
6920
|
+
def enter_rescue_mode(self, instance_id, force_stop, password, client_token=None, config=None):
|
|
6921
|
+
"""
|
|
6922
|
+
进入救援模式。
|
|
6923
|
+
|
|
6924
|
+
:param enter_rescue_mode_req:
|
|
6925
|
+
:desc
|
|
6926
|
+
:type enter_rescue_mode_req: json
|
|
6927
|
+
|
|
6928
|
+
:return:
|
|
6929
|
+
:rtype baidubce.bce_response.BceResponse
|
|
6930
|
+
"""
|
|
6931
|
+
path = b'/instance/rescue/mode/enter'
|
|
6932
|
+
|
|
6933
|
+
params = {}
|
|
6934
|
+
|
|
6935
|
+
if client_token is None:
|
|
6936
|
+
params['clientToken'] = generate_client_token()
|
|
6937
|
+
else:
|
|
6938
|
+
params['clientToken'] = client_token
|
|
6939
|
+
|
|
6940
|
+
body = {
|
|
6941
|
+
'instanceId': instance_id,
|
|
6942
|
+
'forceStop': force_stop,
|
|
6943
|
+
'password': password
|
|
6944
|
+
}
|
|
6945
|
+
return self._send_request(http_methods.PUT, path, json.dumps(body),
|
|
6946
|
+
params=params, config=config)
|
|
6947
|
+
|
|
6948
|
+
def exit_rescue_mode(self, instance_id, client_token=None, config=None):
|
|
6949
|
+
"""
|
|
6950
|
+
退出救援模式。
|
|
6951
|
+
|
|
6952
|
+
:param exit_rescue_mode_req:
|
|
6953
|
+
:desc
|
|
6954
|
+
:type exit_rescue_mode_req: json
|
|
6955
|
+
|
|
6956
|
+
:return:
|
|
6957
|
+
:rtype baidubce.bce_response.BceResponse
|
|
6958
|
+
"""
|
|
6959
|
+
path = b'/instance/rescue/mode/exit'
|
|
6960
|
+
|
|
6961
|
+
params = {}
|
|
6962
|
+
|
|
6963
|
+
if client_token is None:
|
|
6964
|
+
params['clientToken'] = generate_client_token()
|
|
6965
|
+
else:
|
|
6966
|
+
params['clientToken'] = client_token
|
|
6967
|
+
|
|
6968
|
+
body = {
|
|
6969
|
+
'instanceId': instance_id
|
|
6970
|
+
}
|
|
6971
|
+
return self._send_request(http_methods.PUT, path, json.dumps(body),
|
|
6972
|
+
params=params, config=config)
|
|
6973
|
+
|
|
6974
|
+
|
|
6975
|
+
def bind_sg(self, instance_ids, security_group_ids, security_group_type, client_token=None, config=None):
|
|
6976
|
+
"""
|
|
6977
|
+
绑定安全组。
|
|
6978
|
+
|
|
6979
|
+
:param bind_sg:
|
|
6980
|
+
:desc
|
|
6981
|
+
:type bind_sg: json
|
|
6982
|
+
:return:
|
|
6983
|
+
:rtype baidubce.bce_response.BceResponse
|
|
6984
|
+
"""
|
|
6985
|
+
path = b'/securitygroup/bind'
|
|
6986
|
+
|
|
6987
|
+
params = {}
|
|
6988
|
+
|
|
6989
|
+
if client_token is None:
|
|
6990
|
+
params['clientToken'] = generate_client_token()
|
|
6991
|
+
else:
|
|
6992
|
+
params['clientToken'] = client_token
|
|
6993
|
+
|
|
6994
|
+
body = {
|
|
6995
|
+
'instanceIds': instance_ids,
|
|
6996
|
+
'securityGroupIds': security_group_ids,
|
|
6997
|
+
'securityGroupType': security_group_type
|
|
6998
|
+
}
|
|
6999
|
+
return self._send_request(http_methods.PUT, path, json.dumps(body),
|
|
7000
|
+
params=params, config=config)
|
|
7001
|
+
|
|
7002
|
+
|
|
7003
|
+
def replace_sg(self, instance_ids, security_group_ids, security_group_type, client_token=None, config=None):
|
|
7004
|
+
"""
|
|
7005
|
+
替换安全组。
|
|
7006
|
+
|
|
7007
|
+
:param replace_sg:
|
|
7008
|
+
:desc
|
|
7009
|
+
:type replace_sg: json
|
|
7010
|
+
|
|
7011
|
+
:return:
|
|
7012
|
+
:rtype baidubce.bce_response.BceResponse
|
|
7013
|
+
"""
|
|
7014
|
+
path = b'/securitygroup/replace'
|
|
7015
|
+
|
|
7016
|
+
params = {}
|
|
7017
|
+
|
|
7018
|
+
if client_token is None:
|
|
7019
|
+
params['clientToken'] = generate_client_token()
|
|
7020
|
+
else:
|
|
7021
|
+
params['clientToken'] = client_token
|
|
7022
|
+
|
|
7023
|
+
body = {
|
|
7024
|
+
'instanceIds': instance_ids,
|
|
7025
|
+
'securityGroupIds': security_group_ids,
|
|
7026
|
+
'securityGroupType': security_group_type
|
|
7027
|
+
}
|
|
7028
|
+
return self._send_request(http_methods.PUT, path, json.dumps(body),
|
|
7029
|
+
params=params, config=config)
|
|
7030
|
+
|
|
7031
|
+
def unbind_sg(self, instance_ids, security_group_ids, security_group_type, client_token=None, config=None):
|
|
7032
|
+
"""
|
|
7033
|
+
解绑安全组。
|
|
7034
|
+
|
|
7035
|
+
:param unbind_sg:
|
|
7036
|
+
:desc
|
|
7037
|
+
:type unbind_sg: json
|
|
7038
|
+
|
|
7039
|
+
:return:
|
|
7040
|
+
:rtype baidubce.bce_response.BceResponse
|
|
7041
|
+
"""
|
|
7042
|
+
path = b'/securitygroup/unbind'
|
|
7043
|
+
|
|
7044
|
+
params = {}
|
|
7045
|
+
|
|
7046
|
+
if client_token is None:
|
|
7047
|
+
params['clientToken'] = generate_client_token()
|
|
7048
|
+
else:
|
|
7049
|
+
params['clientToken'] = client_token
|
|
7050
|
+
|
|
7051
|
+
body = {
|
|
7052
|
+
'instanceIds': instance_ids,
|
|
7053
|
+
'securityGroupIds': security_group_ids,
|
|
7054
|
+
'securityGroupType': security_group_type
|
|
7055
|
+
}
|
|
7056
|
+
return self._send_request(http_methods.PUT, path, json.dumps(body),
|
|
7057
|
+
params=params, config=config)
|
|
7058
|
+
|
|
6876
7059
|
|
|
6877
7060
|
def generate_client_token_by_uuid():
|
|
6878
7061
|
"""
|
|
@@ -185,6 +185,16 @@ class ModifyReservedInstanceModel(object):
|
|
|
185
185
|
self.ehcClusterId = ehcClusterId
|
|
186
186
|
|
|
187
187
|
|
|
188
|
+
class CdsCustomPeriod(object):
|
|
189
|
+
"""
|
|
190
|
+
This class define custom period.
|
|
191
|
+
"""
|
|
192
|
+
|
|
193
|
+
def __init__(self, period=None, volume_id=None):
|
|
194
|
+
self.period = period
|
|
195
|
+
self.volumeId = volume_id
|
|
196
|
+
|
|
197
|
+
|
|
188
198
|
class FileSystemModel(object):
|
|
189
199
|
"""
|
|
190
200
|
This class define file system.
|
|
@@ -64,6 +64,7 @@ class CreateInstanceResponse(BceResponse):
|
|
|
64
64
|
def __init__(self, bce_response):
|
|
65
65
|
super(CreateInstanceResponse, self).__init__()
|
|
66
66
|
self.instance_ids = bce_response.instance_ids
|
|
67
|
+
self.order_id = bce_response.order_id
|
|
67
68
|
|
|
68
69
|
|
|
69
70
|
class ListInstanceResponse(BceResponse):
|
|
@@ -81,10 +81,9 @@ class NatClient(bce_base_client.BceBaseClient):
|
|
|
81
81
|
http_method, path, body, headers, params)
|
|
82
82
|
|
|
83
83
|
@required(name=(bytes, str),
|
|
84
|
-
vpc_id=(bytes, str)
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
dnat_eips=None, client_token=None, config=None, cu_num=None):
|
|
84
|
+
vpc_id=(bytes, str))
|
|
85
|
+
def create_nat(self, name, vpc_id, spec=None, billing=None, eips=None, dnat_eips=None, bind_eips=None,
|
|
86
|
+
client_token=None, config=None, cu_num=None, tags=None, resource_group_id=None, delete_protect=None):
|
|
88
87
|
"""
|
|
89
88
|
Create a nat-gateway with the specified options.
|
|
90
89
|
A nat gateway can bind only one public EIP,
|
|
@@ -126,6 +125,23 @@ class NatClient(bce_base_client.BceBaseClient):
|
|
|
126
125
|
:param dnat_eips:
|
|
127
126
|
:type dnat_eips: list<String>
|
|
128
127
|
|
|
128
|
+
:param bind_eips:
|
|
129
|
+
A public EIP or one/more EIPs in shared-bandwidth group,
|
|
130
|
+
which will be bound with nat-gateway, only for enhance nat.
|
|
131
|
+
:type bind_eips: list<String>
|
|
132
|
+
|
|
133
|
+
:param tags:
|
|
134
|
+
The tags of nat-gateway that will be created.
|
|
135
|
+
:type tags: list<String>
|
|
136
|
+
|
|
137
|
+
:param resource_group_id:
|
|
138
|
+
The resource group id of nat-gateway that will be created.
|
|
139
|
+
:type resource_group_id: string
|
|
140
|
+
|
|
141
|
+
:param delete_protect:
|
|
142
|
+
The delete protect switch of nat-gateway that will be created.
|
|
143
|
+
:type delete_protect: bool
|
|
144
|
+
|
|
129
145
|
:param config:
|
|
130
146
|
:type config: baidubce.BceClientConfiguration
|
|
131
147
|
|
|
@@ -141,16 +157,24 @@ class NatClient(bce_base_client.BceBaseClient):
|
|
|
141
157
|
body = {
|
|
142
158
|
'name': compat.convert_to_string(name),
|
|
143
159
|
'vpcId': compat.convert_to_string(vpc_id),
|
|
144
|
-
'billing': billing.__dict__
|
|
160
|
+
'billing': billing.__dict__,
|
|
161
|
+
'deleteProtect': delete_protect
|
|
145
162
|
}
|
|
146
163
|
if eips is not None:
|
|
147
164
|
body['eips'] = eips
|
|
148
165
|
if dnat_eips is not None:
|
|
149
166
|
body['dnatEips'] = dnat_eips
|
|
167
|
+
if bind_eips is not None:
|
|
168
|
+
body['bindEips'] = bind_eips
|
|
150
169
|
if cu_num is not None:
|
|
151
170
|
body['cuNum'] = compat.convert_to_string(cu_num)
|
|
152
171
|
if spec is not None:
|
|
153
172
|
body['spec'] = compat.convert_to_string(spec)
|
|
173
|
+
if tags is not None:
|
|
174
|
+
tag_list = [tag.__dict__ for tag in tags]
|
|
175
|
+
body['tags'] = tag_list
|
|
176
|
+
if resource_group_id is not None:
|
|
177
|
+
body['resourceGroupId'] = resource_group_id
|
|
154
178
|
return self._send_request(http_methods.POST,
|
|
155
179
|
path, body=json.dumps(body),
|
|
156
180
|
params=params, config=config)
|
|
@@ -433,6 +457,75 @@ class NatClient(bce_base_client.BceBaseClient):
|
|
|
433
457
|
path, body=json.dumps(body),
|
|
434
458
|
params=params, config=config)
|
|
435
459
|
|
|
460
|
+
@required(nat_id=(bytes, str), cu_num=int)
|
|
461
|
+
def resize_nat(self, nat_id, cu_num, client_token=None, config=None):
|
|
462
|
+
"""
|
|
463
|
+
Resize a specified enhance nat-gateway.
|
|
464
|
+
|
|
465
|
+
:param nat_id:
|
|
466
|
+
The id of specified enhance nat-gateway.
|
|
467
|
+
:type nat_id: string
|
|
468
|
+
|
|
469
|
+
:param cu_num:
|
|
470
|
+
The number of CU.
|
|
471
|
+
:type cu_num: int
|
|
472
|
+
|
|
473
|
+
:param client_token:
|
|
474
|
+
An ASCII string whose length is less than 64.
|
|
475
|
+
The request will be idempotent if clientToken is provided.
|
|
476
|
+
If the clientToken is not specified by user,
|
|
477
|
+
a random String generated by default algorithm will be used.
|
|
478
|
+
:type client_token: string
|
|
479
|
+
|
|
480
|
+
:param config:
|
|
481
|
+
:type config: baidubce.BceClientConfiguration
|
|
482
|
+
|
|
483
|
+
:return:
|
|
484
|
+
:rtype baidubce.bce_response.BceResponse
|
|
485
|
+
"""
|
|
486
|
+
path = utils.append_uri(self.version, 'nat', nat_id)
|
|
487
|
+
if client_token is None:
|
|
488
|
+
client_token = generate_client_token()
|
|
489
|
+
params = {
|
|
490
|
+
b'resize': None,
|
|
491
|
+
b'clientToken': client_token
|
|
492
|
+
}
|
|
493
|
+
body = {
|
|
494
|
+
'cuNum': compat.convert_to_string(cu_num)
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
return self._send_request(http_methods.PUT,
|
|
498
|
+
path, body=json.dumps(body),
|
|
499
|
+
params=params, config=config)
|
|
500
|
+
|
|
501
|
+
@required(nat_id=(bytes, str), delete_protect=bool)
|
|
502
|
+
def update_delete_protect(self, nat_id, delete_protect, client_token=None, config=None):
|
|
503
|
+
"""
|
|
504
|
+
:param nat_id:
|
|
505
|
+
The id of specified nat-gateway.
|
|
506
|
+
:type nat_id: string
|
|
507
|
+
|
|
508
|
+
:param delete_protect:
|
|
509
|
+
Whether to enable deletion protection on the nat.
|
|
510
|
+
:type delete_protect: bool
|
|
511
|
+
|
|
512
|
+
:return:
|
|
513
|
+
:rtype baidubce.bce_response.BceResponse
|
|
514
|
+
"""
|
|
515
|
+
path = utils.append_uri(self.version, 'nat', nat_id, 'deleteProtect')
|
|
516
|
+
params = {}
|
|
517
|
+
if client_token is None:
|
|
518
|
+
params[b'clientToken'] = generate_client_token()
|
|
519
|
+
else:
|
|
520
|
+
params[b'clientToken'] = client_token
|
|
521
|
+
body = {
|
|
522
|
+
"deleteProtect": delete_protect
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
return self._send_request(http_methods.PUT,
|
|
526
|
+
path, body=json.dumps(body),
|
|
527
|
+
params=params, config=config)
|
|
528
|
+
|
|
436
529
|
@required(nat_id=(bytes, str), eips=list)
|
|
437
530
|
def bind_dnat_eip(self, nat_id, eips, client_token=None, config=None):
|
|
438
531
|
"""
|
|
@@ -517,6 +610,87 @@ class NatClient(bce_base_client.BceBaseClient):
|
|
|
517
610
|
path, body=json.dumps(body),
|
|
518
611
|
params=params, config=config)
|
|
519
612
|
|
|
613
|
+
@required(nat_id=(bytes, str), eips=list)
|
|
614
|
+
def enhance_nat_bind_eip(self, nat_id, bind_eips, client_token=None, config=None):
|
|
615
|
+
"""
|
|
616
|
+
Bind EIPs to a specified enhance nat gateway.
|
|
617
|
+
|
|
618
|
+
:param nat_id:
|
|
619
|
+
The id of specified enhance nat-gateway.
|
|
620
|
+
:type nat_id: string
|
|
621
|
+
|
|
622
|
+
:param bind_eips:
|
|
623
|
+
Public EIPs or one/more EIPs in shared-bandwidth group,
|
|
624
|
+
which will be bound with the nat-gateway.
|
|
625
|
+
:type bind_eips: list<String>
|
|
626
|
+
|
|
627
|
+
:param client_token:
|
|
628
|
+
An ASCII string whose length is less than 64.
|
|
629
|
+
The request will be idempotent if clientToken is provided.
|
|
630
|
+
If the clientToken is not specified by user,
|
|
631
|
+
a random String generated by default algorithm will be used.
|
|
632
|
+
:type client_token: string
|
|
633
|
+
|
|
634
|
+
:param config:
|
|
635
|
+
:type config: baidubce.BceClientConfiguration
|
|
636
|
+
|
|
637
|
+
:return:
|
|
638
|
+
:rtype baidubce.bce_response.BceResponse
|
|
639
|
+
"""
|
|
640
|
+
path = utils.append_uri(self.version, 'nat', nat_id)
|
|
641
|
+
if client_token is None:
|
|
642
|
+
client_token = generate_client_token()
|
|
643
|
+
params = {
|
|
644
|
+
b'bind': None,
|
|
645
|
+
b'clientToken': client_token
|
|
646
|
+
}
|
|
647
|
+
body = {
|
|
648
|
+
'bindEips': bind_eips
|
|
649
|
+
}
|
|
650
|
+
return self._send_request(http_methods.PUT,
|
|
651
|
+
path, body=json.dumps(body),
|
|
652
|
+
params=params, config=config)
|
|
653
|
+
|
|
654
|
+
@required(nat_id=(bytes, str), eips=list)
|
|
655
|
+
def enhance_nat_unbind_eip(self, nat_id, bind_eips, client_token=None, config=None):
|
|
656
|
+
"""
|
|
657
|
+
Unbind EIPs of a specified enhance nat gateway.
|
|
658
|
+
|
|
659
|
+
:param nat_id:
|
|
660
|
+
The id of specified nat-gateway.
|
|
661
|
+
:type nat_id: string
|
|
662
|
+
|
|
663
|
+
:param bind_eips:
|
|
664
|
+
EIP address list to be unbound
|
|
665
|
+
:type bind_eips: list<String>
|
|
666
|
+
|
|
667
|
+
:param client_token:
|
|
668
|
+
An ASCII string whose length is less than 64.
|
|
669
|
+
The request will be idempotent if clientToken is provided.
|
|
670
|
+
If the clientToken is not specified by user,
|
|
671
|
+
a random String generated by default algorithm will be used.
|
|
672
|
+
:type client_token: string
|
|
673
|
+
|
|
674
|
+
:param config:
|
|
675
|
+
:type config: baidubce.BceClientConfiguration
|
|
676
|
+
|
|
677
|
+
:return:
|
|
678
|
+
:rtype baidubce.bce_response.BceResponse
|
|
679
|
+
"""
|
|
680
|
+
path = utils.append_uri(self.version, 'nat', nat_id)
|
|
681
|
+
if client_token is None:
|
|
682
|
+
client_token = generate_client_token()
|
|
683
|
+
params = {
|
|
684
|
+
b'unbind': None,
|
|
685
|
+
b'clientToken': client_token
|
|
686
|
+
}
|
|
687
|
+
body = {
|
|
688
|
+
'bindEips': bind_eips
|
|
689
|
+
}
|
|
690
|
+
return self._send_request(http_methods.PUT,
|
|
691
|
+
path, body=json.dumps(body),
|
|
692
|
+
params=params, config=config)
|
|
693
|
+
|
|
520
694
|
@required(nat_id=(bytes, str),
|
|
521
695
|
rule_name=(bytes, str),
|
|
522
696
|
source_cidr=(bytes, str),
|
|
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
|