tencentcloud-sdk-python-bh 3.1.69__tar.gz → 3.1.92__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.
Files changed (17) hide show
  1. {tencentcloud_sdk_python_bh-3.1.69 → tencentcloud_sdk_python_bh-3.1.92}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_bh-3.1.69 → tencentcloud_sdk_python_bh-3.1.92}/setup.py +1 -1
  3. {tencentcloud_sdk_python_bh-3.1.69 → tencentcloud_sdk_python_bh-3.1.92}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_bh-3.1.69 → tencentcloud_sdk_python_bh-3.1.92}/tencentcloud/bh/v20230418/bh_client.py +23 -0
  5. {tencentcloud_sdk_python_bh-3.1.69 → tencentcloud_sdk_python_bh-3.1.92}/tencentcloud/bh/v20230418/bh_client_async.py +18 -0
  6. {tencentcloud_sdk_python_bh-3.1.69 → tencentcloud_sdk_python_bh-3.1.92}/tencentcloud/bh/v20230418/models.py +94 -0
  7. {tencentcloud_sdk_python_bh-3.1.69 → tencentcloud_sdk_python_bh-3.1.92}/tencentcloud_sdk_python_bh.egg-info/PKG-INFO +2 -2
  8. tencentcloud_sdk_python_bh-3.1.92/tencentcloud_sdk_python_bh.egg-info/requires.txt +1 -0
  9. tencentcloud_sdk_python_bh-3.1.69/tencentcloud_sdk_python_bh.egg-info/requires.txt +0 -1
  10. {tencentcloud_sdk_python_bh-3.1.69 → tencentcloud_sdk_python_bh-3.1.92}/README.rst +0 -0
  11. {tencentcloud_sdk_python_bh-3.1.69 → tencentcloud_sdk_python_bh-3.1.92}/setup.cfg +0 -0
  12. {tencentcloud_sdk_python_bh-3.1.69 → tencentcloud_sdk_python_bh-3.1.92}/tencentcloud/bh/__init__.py +0 -0
  13. {tencentcloud_sdk_python_bh-3.1.69 → tencentcloud_sdk_python_bh-3.1.92}/tencentcloud/bh/v20230418/__init__.py +0 -0
  14. {tencentcloud_sdk_python_bh-3.1.69 → tencentcloud_sdk_python_bh-3.1.92}/tencentcloud/bh/v20230418/errorcodes.py +0 -0
  15. {tencentcloud_sdk_python_bh-3.1.69 → tencentcloud_sdk_python_bh-3.1.92}/tencentcloud_sdk_python_bh.egg-info/SOURCES.txt +0 -0
  16. {tencentcloud_sdk_python_bh-3.1.69 → tencentcloud_sdk_python_bh-3.1.92}/tencentcloud_sdk_python_bh.egg-info/dependency_links.txt +0 -0
  17. {tencentcloud_sdk_python_bh-3.1.69 → tencentcloud_sdk_python_bh-3.1.92}/tencentcloud_sdk_python_bh.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-bh
3
- Version: 3.1.69
3
+ Version: 3.1.92
4
4
  Summary: Tencent Cloud Bh SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
15
15
  Classifier: Programming Language :: Python :: 3
16
16
  Classifier: Programming Language :: Python :: 3.6
17
17
  Classifier: Programming Language :: Python :: 3.7
18
- Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.69
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.92
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
8
8
 
9
9
  setup(
10
10
  name='tencentcloud-sdk-python-bh',
11
- install_requires=["tencentcloud-sdk-python-common>=3.1.69,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.92,<4.0.0"],
12
12
 
13
13
  version=tencentcloud.__version__,
14
14
  description='Tencent Cloud Bh SDK for Python',
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.1.69'
17
+ __version__ = '3.1.92'
@@ -95,6 +95,29 @@ class BhClient(AbstractClient):
95
95
  raise TencentCloudSDKException(type(e).__name__, str(e))
96
96
 
97
97
 
98
+ def BindDeviceAccountKubeconfig(self, request):
99
+ r"""绑定容器账号凭据
100
+
101
+ :param request: Request instance for BindDeviceAccountKubeconfig.
102
+ :type request: :class:`tencentcloud.bh.v20230418.models.BindDeviceAccountKubeconfigRequest`
103
+ :rtype: :class:`tencentcloud.bh.v20230418.models.BindDeviceAccountKubeconfigResponse`
104
+
105
+ """
106
+ try:
107
+ params = request._serialize()
108
+ headers = request.headers
109
+ body = self.call("BindDeviceAccountKubeconfig", params, headers=headers)
110
+ response = json.loads(body)
111
+ model = models.BindDeviceAccountKubeconfigResponse()
112
+ model._deserialize(response["Response"])
113
+ return model
114
+ except Exception as e:
115
+ if isinstance(e, TencentCloudSDKException):
116
+ raise
117
+ else:
118
+ raise TencentCloudSDKException(type(e).__name__, str(e))
119
+
120
+
98
121
  def BindDeviceAccountPassword(self, request):
99
122
  r"""绑定主机账号密码
100
123
 
@@ -79,6 +79,24 @@ class BhClient(AbstractClient):
79
79
 
80
80
  return await self.call_and_deserialize(**kwargs)
81
81
 
82
+ async def BindDeviceAccountKubeconfig(
83
+ self,
84
+ request: models.BindDeviceAccountKubeconfigRequest,
85
+ opts: Dict = None,
86
+ ) -> models.BindDeviceAccountKubeconfigResponse:
87
+ """
88
+ 绑定容器账号凭据
89
+ """
90
+
91
+ kwargs = {}
92
+ kwargs["action"] = "BindDeviceAccountKubeconfig"
93
+ kwargs["params"] = request._serialize()
94
+ kwargs["resp_cls"] = models.BindDeviceAccountKubeconfigResponse
95
+ kwargs["headers"] = request.headers
96
+ kwargs["opts"] = opts or {}
97
+
98
+ return await self.call_and_deserialize(**kwargs)
99
+
82
100
  async def BindDeviceAccountPassword(
83
101
  self,
84
102
  request: models.BindDeviceAccountPasswordRequest,
@@ -2004,6 +2004,100 @@ class AuthModeSetting(AbstractModel):
2004
2004
 
2005
2005
 
2006
2006
 
2007
+ class BindDeviceAccountKubeconfigRequest(AbstractModel):
2008
+ r"""BindDeviceAccountKubeconfig请求参数结构体
2009
+
2010
+ """
2011
+
2012
+ def __init__(self):
2013
+ r"""
2014
+ :param _Id: 容器账号Id
2015
+ :type Id: int
2016
+ :param _Kubeconfig: 容器账号凭据
2017
+ :type Kubeconfig: str
2018
+ :param _ManageDimension: 托管维度。1-集群
2019
+ :type ManageDimension: int
2020
+ """
2021
+ self._Id = None
2022
+ self._Kubeconfig = None
2023
+ self._ManageDimension = None
2024
+
2025
+ @property
2026
+ def Id(self):
2027
+ r"""容器账号Id
2028
+ :rtype: int
2029
+ """
2030
+ return self._Id
2031
+
2032
+ @Id.setter
2033
+ def Id(self, Id):
2034
+ self._Id = Id
2035
+
2036
+ @property
2037
+ def Kubeconfig(self):
2038
+ r"""容器账号凭据
2039
+ :rtype: str
2040
+ """
2041
+ return self._Kubeconfig
2042
+
2043
+ @Kubeconfig.setter
2044
+ def Kubeconfig(self, Kubeconfig):
2045
+ self._Kubeconfig = Kubeconfig
2046
+
2047
+ @property
2048
+ def ManageDimension(self):
2049
+ r"""托管维度。1-集群
2050
+ :rtype: int
2051
+ """
2052
+ return self._ManageDimension
2053
+
2054
+ @ManageDimension.setter
2055
+ def ManageDimension(self, ManageDimension):
2056
+ self._ManageDimension = ManageDimension
2057
+
2058
+
2059
+ def _deserialize(self, params):
2060
+ self._Id = params.get("Id")
2061
+ self._Kubeconfig = params.get("Kubeconfig")
2062
+ self._ManageDimension = params.get("ManageDimension")
2063
+ memeber_set = set(params.keys())
2064
+ for name, value in vars(self).items():
2065
+ property_name = name[1:]
2066
+ if property_name in memeber_set:
2067
+ memeber_set.remove(property_name)
2068
+ if len(memeber_set) > 0:
2069
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
2070
+
2071
+
2072
+
2073
+ class BindDeviceAccountKubeconfigResponse(AbstractModel):
2074
+ r"""BindDeviceAccountKubeconfig返回参数结构体
2075
+
2076
+ """
2077
+
2078
+ def __init__(self):
2079
+ r"""
2080
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2081
+ :type RequestId: str
2082
+ """
2083
+ self._RequestId = None
2084
+
2085
+ @property
2086
+ def RequestId(self):
2087
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2088
+ :rtype: str
2089
+ """
2090
+ return self._RequestId
2091
+
2092
+ @RequestId.setter
2093
+ def RequestId(self, RequestId):
2094
+ self._RequestId = RequestId
2095
+
2096
+
2097
+ def _deserialize(self, params):
2098
+ self._RequestId = params.get("RequestId")
2099
+
2100
+
2007
2101
  class BindDeviceAccountPasswordRequest(AbstractModel):
2008
2102
  r"""BindDeviceAccountPassword请求参数结构体
2009
2103
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-bh
3
- Version: 3.1.69
3
+ Version: 3.1.92
4
4
  Summary: Tencent Cloud Bh SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
15
15
  Classifier: Programming Language :: Python :: 3
16
16
  Classifier: Programming Language :: Python :: 3.6
17
17
  Classifier: Programming Language :: Python :: 3.7
18
- Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.69
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.92
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.1.92
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.1.69