tencentcloud-sdk-python-intl-en 3.0.1089__py2.py3-none-any.whl → 3.0.1091__py2.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.
Files changed (31) hide show
  1. tencentcloud/__init__.py +1 -1
  2. tencentcloud/ams/v20201229/models.py +2 -2
  3. tencentcloud/autoscaling/v20180419/autoscaling_client.py +2 -2
  4. tencentcloud/autoscaling/v20180419/models.py +350 -209
  5. tencentcloud/billing/v20180709/models.py +109 -74
  6. tencentcloud/ccc/v20200210/ccc_client.py +25 -0
  7. tencentcloud/ccc/v20200210/errorcodes.py +8 -8
  8. tencentcloud/ccc/v20200210/models.py +756 -0
  9. tencentcloud/config/__init__.py +0 -0
  10. tencentcloud/config/v20220802/__init__.py +0 -0
  11. tencentcloud/config/v20220802/config_client.py +141 -0
  12. tencentcloud/config/v20220802/errorcodes.py +27 -0
  13. tencentcloud/config/v20220802/models.py +2362 -0
  14. tencentcloud/domain/v20180808/models.py +2 -2
  15. tencentcloud/dts/v20211206/dts_client.py +575 -0
  16. tencentcloud/dts/v20211206/errorcodes.py +9 -0
  17. tencentcloud/dts/v20211206/models.py +8552 -3594
  18. tencentcloud/gaap/v20180529/models.py +2 -2
  19. tencentcloud/intlpartnersmgt/v20220928/models.py +2 -0
  20. tencentcloud/mdp/v20200527/models.py +119 -4
  21. tencentcloud/redis/v20180412/errorcodes.py +3 -0
  22. tencentcloud/redis/v20180412/models.py +3150 -701
  23. tencentcloud/redis/v20180412/redis_client.py +273 -43
  24. tencentcloud/ssl/v20191205/errorcodes.py +21 -0
  25. tencentcloud/ssl/v20191205/models.py +62 -62
  26. tencentcloud/tcr/v20190924/errorcodes.py +3 -0
  27. tencentcloud/teo/v20220901/models.py +8 -4
  28. {tencentcloud_sdk_python_intl_en-3.0.1089.dist-info → tencentcloud_sdk_python_intl_en-3.0.1091.dist-info}/METADATA +1 -1
  29. {tencentcloud_sdk_python_intl_en-3.0.1089.dist-info → tencentcloud_sdk_python_intl_en-3.0.1091.dist-info}/RECORD +31 -26
  30. {tencentcloud_sdk_python_intl_en-3.0.1089.dist-info → tencentcloud_sdk_python_intl_en-3.0.1091.dist-info}/WHEEL +0 -0
  31. {tencentcloud_sdk_python_intl_en-3.0.1089.dist-info → tencentcloud_sdk_python_intl_en-3.0.1091.dist-info}/top_level.txt +0 -0
File without changes
File without changes
@@ -0,0 +1,141 @@
1
+ # -*- coding: utf8 -*-
2
+ # Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. All Rights Reserved.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+
16
+ import json
17
+
18
+ from tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException
19
+ from tencentcloud.common.abstract_client import AbstractClient
20
+ from tencentcloud.config.v20220802 import models
21
+
22
+
23
+ class ConfigClient(AbstractClient):
24
+ _apiVersion = '2022-08-02'
25
+ _endpoint = 'config.tencentcloudapi.com'
26
+ _service = 'config'
27
+
28
+
29
+ def DescribeDiscoveredResource(self, request):
30
+ """Resource details.
31
+
32
+ :param request: Request instance for DescribeDiscoveredResource.
33
+ :type request: :class:`tencentcloud.config.v20220802.models.DescribeDiscoveredResourceRequest`
34
+ :rtype: :class:`tencentcloud.config.v20220802.models.DescribeDiscoveredResourceResponse`
35
+
36
+ """
37
+ try:
38
+ params = request._serialize()
39
+ headers = request.headers
40
+ body = self.call("DescribeDiscoveredResource", params, headers=headers)
41
+ response = json.loads(body)
42
+ model = models.DescribeDiscoveredResourceResponse()
43
+ model._deserialize(response["Response"])
44
+ return model
45
+ except Exception as e:
46
+ if isinstance(e, TencentCloudSDKException):
47
+ raise
48
+ else:
49
+ raise TencentCloudSDKException(type(e).__name__, str(e))
50
+
51
+
52
+ def ListAggregateConfigRules(self, request):
53
+ """This API is used to get the account group rule list.
54
+
55
+ :param request: Request instance for ListAggregateConfigRules.
56
+ :type request: :class:`tencentcloud.config.v20220802.models.ListAggregateConfigRulesRequest`
57
+ :rtype: :class:`tencentcloud.config.v20220802.models.ListAggregateConfigRulesResponse`
58
+
59
+ """
60
+ try:
61
+ params = request._serialize()
62
+ headers = request.headers
63
+ body = self.call("ListAggregateConfigRules", params, headers=headers)
64
+ response = json.loads(body)
65
+ model = models.ListAggregateConfigRulesResponse()
66
+ model._deserialize(response["Response"])
67
+ return model
68
+ except Exception as e:
69
+ if isinstance(e, TencentCloudSDKException):
70
+ raise
71
+ else:
72
+ raise TencentCloudSDKException(type(e).__name__, str(e))
73
+
74
+
75
+ def ListConfigRules(self, request):
76
+ """This API is used to get the rule list.
77
+
78
+ :param request: Request instance for ListConfigRules.
79
+ :type request: :class:`tencentcloud.config.v20220802.models.ListConfigRulesRequest`
80
+ :rtype: :class:`tencentcloud.config.v20220802.models.ListConfigRulesResponse`
81
+
82
+ """
83
+ try:
84
+ params = request._serialize()
85
+ headers = request.headers
86
+ body = self.call("ListConfigRules", params, headers=headers)
87
+ response = json.loads(body)
88
+ model = models.ListConfigRulesResponse()
89
+ model._deserialize(response["Response"])
90
+ return model
91
+ except Exception as e:
92
+ if isinstance(e, TencentCloudSDKException):
93
+ raise
94
+ else:
95
+ raise TencentCloudSDKException(type(e).__name__, str(e))
96
+
97
+
98
+ def ListDiscoveredResources(self, request):
99
+ """This API is used to get the resource list.
100
+
101
+ :param request: Request instance for ListDiscoveredResources.
102
+ :type request: :class:`tencentcloud.config.v20220802.models.ListDiscoveredResourcesRequest`
103
+ :rtype: :class:`tencentcloud.config.v20220802.models.ListDiscoveredResourcesResponse`
104
+
105
+ """
106
+ try:
107
+ params = request._serialize()
108
+ headers = request.headers
109
+ body = self.call("ListDiscoveredResources", params, headers=headers)
110
+ response = json.loads(body)
111
+ model = models.ListDiscoveredResourcesResponse()
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
+
121
+ def PutEvaluations(self, request):
122
+ """This API is used to report custom rule evaluation results.
123
+
124
+ :param request: Request instance for PutEvaluations.
125
+ :type request: :class:`tencentcloud.config.v20220802.models.PutEvaluationsRequest`
126
+ :rtype: :class:`tencentcloud.config.v20220802.models.PutEvaluationsResponse`
127
+
128
+ """
129
+ try:
130
+ params = request._serialize()
131
+ headers = request.headers
132
+ body = self.call("PutEvaluations", params, headers=headers)
133
+ response = json.loads(body)
134
+ model = models.PutEvaluationsResponse()
135
+ model._deserialize(response["Response"])
136
+ return model
137
+ except Exception as e:
138
+ if isinstance(e, TencentCloudSDKException):
139
+ raise
140
+ else:
141
+ raise TencentCloudSDKException(type(e).__name__, str(e))
@@ -0,0 +1,27 @@
1
+ # -*- coding: utf8 -*-
2
+ # Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. All Rights Reserved.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+
16
+
17
+ # Parameter error.
18
+ INVALIDPARAMETER = 'InvalidParameter'
19
+
20
+ # Account group does not exist.
21
+ RESOURCENOTFOUND_ACCOUNTGROUPISNOTEXIST = 'ResourceNotFound.AccountGroupIsNotExist'
22
+
23
+ # The resource does not exist.
24
+ RESOURCENOTFOUND_RESOURCENOTEXIST = 'ResourceNotFound.ResourceNotExist'
25
+
26
+ # The rule does not exist.
27
+ RESOURCENOTFOUND_RULEISNOTEXIST = 'ResourceNotFound.RuleIsNotExist'