tencentcloud-sdk-python-controlcenter 3.0.1334__tar.gz → 3.0.1336__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.
- {tencentcloud-sdk-python-controlcenter-3.0.1334 → tencentcloud-sdk-python-controlcenter-3.0.1336}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-controlcenter-3.0.1334 → tencentcloud-sdk-python-controlcenter-3.0.1336}/setup.py +1 -1
- {tencentcloud-sdk-python-controlcenter-3.0.1334 → tencentcloud-sdk-python-controlcenter-3.0.1336}/tencentcloud/__init__.py +1 -1
- tencentcloud-sdk-python-controlcenter-3.0.1336/tencentcloud/controlcenter/v20230110/controlcenter_client.py +141 -0
- {tencentcloud-sdk-python-controlcenter-3.0.1334 → tencentcloud-sdk-python-controlcenter-3.0.1336}/tencentcloud/controlcenter/v20230110/errorcodes.py +9 -0
- tencentcloud-sdk-python-controlcenter-3.0.1336/tencentcloud/controlcenter/v20230110/models.py +1101 -0
- {tencentcloud-sdk-python-controlcenter-3.0.1334 → tencentcloud-sdk-python-controlcenter-3.0.1336}/tencentcloud_sdk_python_controlcenter.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-controlcenter-3.0.1336/tencentcloud_sdk_python_controlcenter.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-controlcenter-3.0.1334/tencentcloud/controlcenter/v20230110/controlcenter_client.py +0 -49
- tencentcloud-sdk-python-controlcenter-3.0.1334/tencentcloud/controlcenter/v20230110/models.py +0 -153
- tencentcloud-sdk-python-controlcenter-3.0.1334/tencentcloud_sdk_python_controlcenter.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-controlcenter-3.0.1334 → tencentcloud-sdk-python-controlcenter-3.0.1336}/README.rst +0 -0
- {tencentcloud-sdk-python-controlcenter-3.0.1334 → tencentcloud-sdk-python-controlcenter-3.0.1336}/setup.cfg +0 -0
- {tencentcloud-sdk-python-controlcenter-3.0.1334 → tencentcloud-sdk-python-controlcenter-3.0.1336}/tencentcloud/controlcenter/__init__.py +0 -0
- {tencentcloud-sdk-python-controlcenter-3.0.1334 → tencentcloud-sdk-python-controlcenter-3.0.1336}/tencentcloud/controlcenter/v20230110/__init__.py +0 -0
- {tencentcloud-sdk-python-controlcenter-3.0.1334 → tencentcloud-sdk-python-controlcenter-3.0.1336}/tencentcloud_sdk_python_controlcenter.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-controlcenter-3.0.1334 → tencentcloud-sdk-python-controlcenter-3.0.1336}/tencentcloud_sdk_python_controlcenter.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-controlcenter-3.0.1334 → tencentcloud-sdk-python-controlcenter-3.0.1336}/tencentcloud_sdk_python_controlcenter.egg-info/top_level.txt +0 -0
|
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
|
|
|
8
8
|
|
|
9
9
|
setup(
|
|
10
10
|
name='tencentcloud-sdk-python-controlcenter',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common==3.0.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common==3.0.1336"],
|
|
12
12
|
version=tencentcloud.__version__,
|
|
13
13
|
description='Tencent Cloud Controlcenter SDK for Python',
|
|
14
14
|
long_description=open('README.rst').read(),
|
|
@@ -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.controlcenter.v20230110 import models
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class ControlcenterClient(AbstractClient):
|
|
24
|
+
_apiVersion = '2023-01-10'
|
|
25
|
+
_endpoint = 'controlcenter.tencentcloudapi.com'
|
|
26
|
+
_service = 'controlcenter'
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
def BatchApplyAccountBaselines(self, request):
|
|
30
|
+
"""批量对存量账号应用基线
|
|
31
|
+
|
|
32
|
+
:param request: Request instance for BatchApplyAccountBaselines.
|
|
33
|
+
:type request: :class:`tencentcloud.controlcenter.v20230110.models.BatchApplyAccountBaselinesRequest`
|
|
34
|
+
:rtype: :class:`tencentcloud.controlcenter.v20230110.models.BatchApplyAccountBaselinesResponse`
|
|
35
|
+
|
|
36
|
+
"""
|
|
37
|
+
try:
|
|
38
|
+
params = request._serialize()
|
|
39
|
+
headers = request.headers
|
|
40
|
+
body = self.call("BatchApplyAccountBaselines", params, headers=headers)
|
|
41
|
+
response = json.loads(body)
|
|
42
|
+
model = models.BatchApplyAccountBaselinesResponse()
|
|
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 GetAccountFactoryBaseline(self, request):
|
|
53
|
+
"""获取用户基线配置数据
|
|
54
|
+
|
|
55
|
+
:param request: Request instance for GetAccountFactoryBaseline.
|
|
56
|
+
:type request: :class:`tencentcloud.controlcenter.v20230110.models.GetAccountFactoryBaselineRequest`
|
|
57
|
+
:rtype: :class:`tencentcloud.controlcenter.v20230110.models.GetAccountFactoryBaselineResponse`
|
|
58
|
+
|
|
59
|
+
"""
|
|
60
|
+
try:
|
|
61
|
+
params = request._serialize()
|
|
62
|
+
headers = request.headers
|
|
63
|
+
body = self.call("GetAccountFactoryBaseline", params, headers=headers)
|
|
64
|
+
response = json.loads(body)
|
|
65
|
+
model = models.GetAccountFactoryBaselineResponse()
|
|
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 ListAccountFactoryBaselineItems(self, request):
|
|
76
|
+
"""获取账号工厂系统基线项
|
|
77
|
+
|
|
78
|
+
:param request: Request instance for ListAccountFactoryBaselineItems.
|
|
79
|
+
:type request: :class:`tencentcloud.controlcenter.v20230110.models.ListAccountFactoryBaselineItemsRequest`
|
|
80
|
+
:rtype: :class:`tencentcloud.controlcenter.v20230110.models.ListAccountFactoryBaselineItemsResponse`
|
|
81
|
+
|
|
82
|
+
"""
|
|
83
|
+
try:
|
|
84
|
+
params = request._serialize()
|
|
85
|
+
headers = request.headers
|
|
86
|
+
body = self.call("ListAccountFactoryBaselineItems", params, headers=headers)
|
|
87
|
+
response = json.loads(body)
|
|
88
|
+
model = models.ListAccountFactoryBaselineItemsResponse()
|
|
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 ListDeployStepTasks(self, request):
|
|
99
|
+
"""获取某个基线项历史应用信息
|
|
100
|
+
|
|
101
|
+
:param request: Request instance for ListDeployStepTasks.
|
|
102
|
+
:type request: :class:`tencentcloud.controlcenter.v20230110.models.ListDeployStepTasksRequest`
|
|
103
|
+
:rtype: :class:`tencentcloud.controlcenter.v20230110.models.ListDeployStepTasksResponse`
|
|
104
|
+
|
|
105
|
+
"""
|
|
106
|
+
try:
|
|
107
|
+
params = request._serialize()
|
|
108
|
+
headers = request.headers
|
|
109
|
+
body = self.call("ListDeployStepTasks", params, headers=headers)
|
|
110
|
+
response = json.loads(body)
|
|
111
|
+
model = models.ListDeployStepTasksResponse()
|
|
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 UpdateAccountFactoryBaseline(self, request):
|
|
122
|
+
"""更新用户当前基线项配置,基线配置会覆盖更新为当前配置。新增基线项时需要将新增的基线配置加到现有配置,删除基线项时需要将删除的基线配置从现有配置移除,然后保存最新基线配置。
|
|
123
|
+
|
|
124
|
+
:param request: Request instance for UpdateAccountFactoryBaseline.
|
|
125
|
+
:type request: :class:`tencentcloud.controlcenter.v20230110.models.UpdateAccountFactoryBaselineRequest`
|
|
126
|
+
:rtype: :class:`tencentcloud.controlcenter.v20230110.models.UpdateAccountFactoryBaselineResponse`
|
|
127
|
+
|
|
128
|
+
"""
|
|
129
|
+
try:
|
|
130
|
+
params = request._serialize()
|
|
131
|
+
headers = request.headers
|
|
132
|
+
body = self.call("UpdateAccountFactoryBaseline", params, headers=headers)
|
|
133
|
+
response = json.loads(body)
|
|
134
|
+
model = models.UpdateAccountFactoryBaselineResponse()
|
|
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))
|
|
@@ -17,6 +17,9 @@
|
|
|
17
17
|
# 账号工厂必选基线项未配置
|
|
18
18
|
FAILEDOPERATION_AFREQUIREDITEMNOTSELECT = 'FailedOperation.AFRequiredItemNotSelect'
|
|
19
19
|
|
|
20
|
+
# 账号工厂基线项的依赖项未配置
|
|
21
|
+
FAILEDOPERATION_ACCOUNTFACTORYDEPENDONITEMNOTCONFIG = 'FailedOperation.AccountFactoryDependOnItemNotConfig'
|
|
22
|
+
|
|
20
23
|
# 账号工厂批量应用基线的账号数量超过限制
|
|
21
24
|
FAILEDOPERATION_ACCOUNTFACTORYMEMBERUINNUMEXCEED = 'FailedOperation.AccountFactoryMemberUinNumExceed'
|
|
22
25
|
|
|
@@ -35,6 +38,12 @@ FAILEDOPERATION_DEPENDONITEMNOTDEPLOY = 'FailedOperation.DependOnItemNotDeploy'
|
|
|
35
38
|
# 远程调用失败
|
|
36
39
|
FAILEDOPERATION_REMOTECALLERROR = 'FailedOperation.RemoteCallError'
|
|
37
40
|
|
|
41
|
+
# 基线项预设标签数量超过最大数量
|
|
42
|
+
INVALIDPARAMETER_ACCOUNTFACTORYTAGEXCEEDMAXNUM = 'InvalidParameter.AccountFactoryTagExceedMaxNum'
|
|
43
|
+
|
|
44
|
+
# 入参校验错误
|
|
45
|
+
INVALIDPARAMETER_PARAMERROR = 'InvalidParameter.ParamError'
|
|
46
|
+
|
|
38
47
|
# 用户基线配置数据不存在
|
|
39
48
|
RESOURCENOTFOUND_ACCOUNTFACTORYBASELINENOTEXIST = 'ResourceNotFound.AccountFactoryBaselineNotExist'
|
|
40
49
|
|