baiducloud-python-sdk-blb 0.0.6__py3-none-any.whl → 0.0.7__py3-none-any.whl

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.
@@ -2,4 +2,4 @@
2
2
  This module defines some common string constants.
3
3
  """
4
4
 
5
- SDK_VERSION = b'0.0.6'
5
+ SDK_VERSION = b'0.0.7'
@@ -1124,8 +1124,13 @@ class BlbClient(BceBaseClient):
1124
1124
  """
1125
1125
  path = utils.append_uri(BlbClient.VERSION_V1, BlbClient.CONSTANT_BLB, request.blb_id)
1126
1126
  headers = None
1127
+ params = {}
1128
+ if request.client_token is not None:
1129
+ params['clientToken'] = request.client_token
1127
1130
  merged_config = self._create_request_with_host(request, config)
1128
- return self._send_request(http_methods.PUT, path=path, body=request.to_json_string(), config=merged_config)
1131
+ return self._send_request(
1132
+ http_methods.PUT, path=path, body=request.to_json_string(), params=params, config=merged_config
1133
+ )
1129
1134
 
1130
1135
  def update_blb_acl(self, request, config=None):
1131
1136
  """
@@ -12,13 +12,16 @@ class UpdateBlbRequest(AbstractModel):
12
12
  This class encapsulates all parameters for the API request.
13
13
  """
14
14
 
15
- def __init__(self, blb_id, name=None, desc=None, allow_delete=None, allocate_ipv6=None):
15
+ def __init__(self, blb_id, client_token=None, name=None, desc=None, allow_delete=None, allocate_ipv6=None):
16
16
  """
17
17
  Initialize UpdateBlbRequest request entity.
18
18
 
19
19
  :param blb_id: blb_id parameter
20
20
  :type blb_id: str (required)
21
21
 
22
+ :param client_token: client_token parameter
23
+ :type client_token: str (optional)
24
+
22
25
  :param name: name parameter
23
26
  :type name: str (optional)
24
27
 
@@ -33,6 +36,7 @@ class UpdateBlbRequest(AbstractModel):
33
36
  """
34
37
  super().__init__()
35
38
  self.blb_id = blb_id
39
+ self.client_token = client_token
36
40
  self.name = name
37
41
  self.desc = desc
38
42
  self.allow_delete = allow_delete
@@ -79,6 +83,8 @@ class UpdateBlbRequest(AbstractModel):
79
83
  m = m or dict()
80
84
  if m.get('blbId') is not None:
81
85
  self.blb_id = m.get('blbId')
86
+ if m.get('clientToken') is not None:
87
+ self.client_token = m.get('clientToken')
82
88
  if m.get('name') is not None:
83
89
  self.name = m.get('name')
84
90
  if m.get('desc') is not None:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: baiducloud-python-sdk-blb
3
- Version: 0.0.6
3
+ Version: 0.0.7
4
4
  Summary: Baidu Cloud blbApi SDK Library for Python
5
5
  Home-page: https://github.com/baidubce/baiducloud-python-sdk
6
6
  Author: Baidu Cloud SDK
@@ -1,6 +1,6 @@
1
- baiducloud_python_sdk_blb/__init__.py,sha256=TTqkijdCYR_07B4Y9ReM3_CvbGgGlcGJJA1O6J1vt7Q,82
1
+ baiducloud_python_sdk_blb/__init__.py,sha256=T_zOJSCeNS_phab4pAhxqi18CGqf5qIXA-Z8z5bXVdE,82
2
2
  baiducloud_python_sdk_blb/api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
- baiducloud_python_sdk_blb/api/blb_client.py,sha256=zUCSFHx1QxkB1xLPm-0QfECaXX0DARyw7jdtIfFC_Cs,52195
3
+ baiducloud_python_sdk_blb/api/blb_client.py,sha256=dOSgI-gcnhKyc1WVC2hlwuOKkA7BSdsb5Ta1rKjW1QI,52354
4
4
  baiducloud_python_sdk_blb/models/__init__.py,sha256=Ud49f2iFkm-41uYvT5yUo-2j_D0RjUg6z6SvTVtTa2o,5096
5
5
  baiducloud_python_sdk_blb/models/additional_attributes_model.py,sha256=TvQOdcaAZ4qvuwlPNTM709LyATM_wLRjUmemVPKi4U8,1620
6
6
  baiducloud_python_sdk_blb/models/additional_cert_domain.py,sha256=NoAqOTeGX22w9AeeufzlAPHNImb01rX11KqYzF39XfA,1855
@@ -81,9 +81,9 @@ baiducloud_python_sdk_blb/models/update_app_blb_tcp_listener_request.py,sha256=z
81
81
  baiducloud_python_sdk_blb/models/update_app_blb_udp_listener_request.py,sha256=1uzkbxIVQ7PuxbzGTSwTnEeTMNto_TYn7uc2o67MA4k,3299
82
82
  baiducloud_python_sdk_blb/models/update_blb_acl_request.py,sha256=CVORzXIzOp-3qVvRWeyalniCk--U8Y2L3bf431_8-BQ,2186
83
83
  baiducloud_python_sdk_blb/models/update_blb_modify_protection_request.py,sha256=HVmDaIv_uc2cRusXJNMF35fP3PQ53TBIsfcGpT81Qlw,2850
84
- baiducloud_python_sdk_blb/models/update_blb_request.py,sha256=RvZV21feMGiFwF7B9TyKUafi8y7cdkw8i-qFemqZTsE,2986
85
- baiducloud_python_sdk_blb-0.0.6.dist-info/LICENSE,sha256=vWvFalMLAgEWwNa8irw-tSDlh7k7bl4APjMGE_lGiws,10372
86
- baiducloud_python_sdk_blb-0.0.6.dist-info/METADATA,sha256=Ed_oiZjsgnvQBeHX5y0rcCCmQ-_yB7qM-YSv0GLULus,2646
87
- baiducloud_python_sdk_blb-0.0.6.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
88
- baiducloud_python_sdk_blb-0.0.6.dist-info/top_level.txt,sha256=ZlB732HUS6bxVFuK5XEUT3IyjpdYL3hdXgiNKwOKz8U,26
89
- baiducloud_python_sdk_blb-0.0.6.dist-info/RECORD,,
84
+ baiducloud_python_sdk_blb/models/update_blb_request.py,sha256=D_WXFQLujR2QrxcKbzZn1xNSkCiCwU41KmaFCxOkuNI,3240
85
+ baiducloud_python_sdk_blb-0.0.7.dist-info/LICENSE,sha256=vWvFalMLAgEWwNa8irw-tSDlh7k7bl4APjMGE_lGiws,10372
86
+ baiducloud_python_sdk_blb-0.0.7.dist-info/METADATA,sha256=HoKKvZq50wGcaGB9S_QfpMCvZCtRBg_m7oY5PPqXD1c,2646
87
+ baiducloud_python_sdk_blb-0.0.7.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
88
+ baiducloud_python_sdk_blb-0.0.7.dist-info/top_level.txt,sha256=ZlB732HUS6bxVFuK5XEUT3IyjpdYL3hdXgiNKwOKz8U,26
89
+ baiducloud_python_sdk_blb-0.0.7.dist-info/RECORD,,