tencentcloud-sdk-python-dbbrain 3.0.931__tar.gz → 3.0.937__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-dbbrain-3.0.931 → tencentcloud-sdk-python-dbbrain-3.0.937}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-dbbrain-3.0.931 → tencentcloud-sdk-python-dbbrain-3.0.937}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-dbbrain-3.0.931 → tencentcloud-sdk-python-dbbrain-3.0.937}/tencentcloud/dbbrain/v20210527/dbbrain_client.py +92 -0
- {tencentcloud-sdk-python-dbbrain-3.0.931 → tencentcloud-sdk-python-dbbrain-3.0.937}/tencentcloud/dbbrain/v20210527/models.py +819 -30
- {tencentcloud-sdk-python-dbbrain-3.0.931 → tencentcloud-sdk-python-dbbrain-3.0.937}/tencentcloud_sdk_python_dbbrain.egg-info/PKG-INFO +1 -1
- {tencentcloud-sdk-python-dbbrain-3.0.931 → tencentcloud-sdk-python-dbbrain-3.0.937}/README.rst +0 -0
- {tencentcloud-sdk-python-dbbrain-3.0.931 → tencentcloud-sdk-python-dbbrain-3.0.937}/setup.cfg +0 -0
- {tencentcloud-sdk-python-dbbrain-3.0.931 → tencentcloud-sdk-python-dbbrain-3.0.937}/setup.py +0 -0
- {tencentcloud-sdk-python-dbbrain-3.0.931 → tencentcloud-sdk-python-dbbrain-3.0.937}/tencentcloud/dbbrain/__init__.py +0 -0
- {tencentcloud-sdk-python-dbbrain-3.0.931 → tencentcloud-sdk-python-dbbrain-3.0.937}/tencentcloud/dbbrain/v20191016/__init__.py +0 -0
- {tencentcloud-sdk-python-dbbrain-3.0.931 → tencentcloud-sdk-python-dbbrain-3.0.937}/tencentcloud/dbbrain/v20191016/dbbrain_client.py +0 -0
- {tencentcloud-sdk-python-dbbrain-3.0.931 → tencentcloud-sdk-python-dbbrain-3.0.937}/tencentcloud/dbbrain/v20191016/errorcodes.py +0 -0
- {tencentcloud-sdk-python-dbbrain-3.0.931 → tencentcloud-sdk-python-dbbrain-3.0.937}/tencentcloud/dbbrain/v20191016/models.py +0 -0
- {tencentcloud-sdk-python-dbbrain-3.0.931 → tencentcloud-sdk-python-dbbrain-3.0.937}/tencentcloud/dbbrain/v20210527/__init__.py +0 -0
- {tencentcloud-sdk-python-dbbrain-3.0.931 → tencentcloud-sdk-python-dbbrain-3.0.937}/tencentcloud/dbbrain/v20210527/errorcodes.py +0 -0
- {tencentcloud-sdk-python-dbbrain-3.0.931 → tencentcloud-sdk-python-dbbrain-3.0.937}/tencentcloud_sdk_python_dbbrain.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-dbbrain-3.0.931 → tencentcloud-sdk-python-dbbrain-3.0.937}/tencentcloud_sdk_python_dbbrain.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-dbbrain-3.0.931 → tencentcloud-sdk-python-dbbrain-3.0.937}/tencentcloud_sdk_python_dbbrain.egg-info/top_level.txt +0 -0
|
@@ -72,6 +72,29 @@ class DbbrainClient(AbstractClient):
|
|
|
72
72
|
raise TencentCloudSDKException(e.message, e.message)
|
|
73
73
|
|
|
74
74
|
|
|
75
|
+
def CloseAuditService(self, request):
|
|
76
|
+
"""不用审计日志时,关闭数据库审计
|
|
77
|
+
|
|
78
|
+
:param request: Request instance for CloseAuditService.
|
|
79
|
+
:type request: :class:`tencentcloud.dbbrain.v20210527.models.CloseAuditServiceRequest`
|
|
80
|
+
:rtype: :class:`tencentcloud.dbbrain.v20210527.models.CloseAuditServiceResponse`
|
|
81
|
+
|
|
82
|
+
"""
|
|
83
|
+
try:
|
|
84
|
+
params = request._serialize()
|
|
85
|
+
headers = request.headers
|
|
86
|
+
body = self.call("CloseAuditService", params, headers=headers)
|
|
87
|
+
response = json.loads(body)
|
|
88
|
+
model = models.CloseAuditServiceResponse()
|
|
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(e.message, e.message)
|
|
96
|
+
|
|
97
|
+
|
|
75
98
|
def CreateAuditLogFile(self, request):
|
|
76
99
|
"""用于创建云数据库实例的审计日志文件,最多下载600w审计日志。
|
|
77
100
|
|
|
@@ -440,6 +463,29 @@ class DbbrainClient(AbstractClient):
|
|
|
440
463
|
raise TencentCloudSDKException(e.message, e.message)
|
|
441
464
|
|
|
442
465
|
|
|
466
|
+
def DescribeAuditInstanceList(self, request):
|
|
467
|
+
"""查询实例列表
|
|
468
|
+
|
|
469
|
+
:param request: Request instance for DescribeAuditInstanceList.
|
|
470
|
+
:type request: :class:`tencentcloud.dbbrain.v20210527.models.DescribeAuditInstanceListRequest`
|
|
471
|
+
:rtype: :class:`tencentcloud.dbbrain.v20210527.models.DescribeAuditInstanceListResponse`
|
|
472
|
+
|
|
473
|
+
"""
|
|
474
|
+
try:
|
|
475
|
+
params = request._serialize()
|
|
476
|
+
headers = request.headers
|
|
477
|
+
body = self.call("DescribeAuditInstanceList", params, headers=headers)
|
|
478
|
+
response = json.loads(body)
|
|
479
|
+
model = models.DescribeAuditInstanceListResponse()
|
|
480
|
+
model._deserialize(response["Response"])
|
|
481
|
+
return model
|
|
482
|
+
except Exception as e:
|
|
483
|
+
if isinstance(e, TencentCloudSDKException):
|
|
484
|
+
raise
|
|
485
|
+
else:
|
|
486
|
+
raise TencentCloudSDKException(e.message, e.message)
|
|
487
|
+
|
|
488
|
+
|
|
443
489
|
def DescribeAuditLogFiles(self, request):
|
|
444
490
|
"""用于创建云数据库实例的审计日志文件
|
|
445
491
|
|
|
@@ -1107,6 +1153,29 @@ class DbbrainClient(AbstractClient):
|
|
|
1107
1153
|
raise TencentCloudSDKException(e.message, e.message)
|
|
1108
1154
|
|
|
1109
1155
|
|
|
1156
|
+
def ModifyAuditService(self, request):
|
|
1157
|
+
"""修改审计配置相关信息,如高频存储时长等
|
|
1158
|
+
|
|
1159
|
+
:param request: Request instance for ModifyAuditService.
|
|
1160
|
+
:type request: :class:`tencentcloud.dbbrain.v20210527.models.ModifyAuditServiceRequest`
|
|
1161
|
+
:rtype: :class:`tencentcloud.dbbrain.v20210527.models.ModifyAuditServiceResponse`
|
|
1162
|
+
|
|
1163
|
+
"""
|
|
1164
|
+
try:
|
|
1165
|
+
params = request._serialize()
|
|
1166
|
+
headers = request.headers
|
|
1167
|
+
body = self.call("ModifyAuditService", params, headers=headers)
|
|
1168
|
+
response = json.loads(body)
|
|
1169
|
+
model = models.ModifyAuditServiceResponse()
|
|
1170
|
+
model._deserialize(response["Response"])
|
|
1171
|
+
return model
|
|
1172
|
+
except Exception as e:
|
|
1173
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1174
|
+
raise
|
|
1175
|
+
else:
|
|
1176
|
+
raise TencentCloudSDKException(e.message, e.message)
|
|
1177
|
+
|
|
1178
|
+
|
|
1110
1179
|
def ModifyDiagDBInstanceConf(self, request):
|
|
1111
1180
|
"""修改实例巡检开关。
|
|
1112
1181
|
|
|
@@ -1153,6 +1222,29 @@ class DbbrainClient(AbstractClient):
|
|
|
1153
1222
|
raise TencentCloudSDKException(e.message, e.message)
|
|
1154
1223
|
|
|
1155
1224
|
|
|
1225
|
+
def OpenAuditService(self, request):
|
|
1226
|
+
"""开启数据库审计服务
|
|
1227
|
+
|
|
1228
|
+
:param request: Request instance for OpenAuditService.
|
|
1229
|
+
:type request: :class:`tencentcloud.dbbrain.v20210527.models.OpenAuditServiceRequest`
|
|
1230
|
+
:rtype: :class:`tencentcloud.dbbrain.v20210527.models.OpenAuditServiceResponse`
|
|
1231
|
+
|
|
1232
|
+
"""
|
|
1233
|
+
try:
|
|
1234
|
+
params = request._serialize()
|
|
1235
|
+
headers = request.headers
|
|
1236
|
+
body = self.call("OpenAuditService", params, headers=headers)
|
|
1237
|
+
response = json.loads(body)
|
|
1238
|
+
model = models.OpenAuditServiceResponse()
|
|
1239
|
+
model._deserialize(response["Response"])
|
|
1240
|
+
return model
|
|
1241
|
+
except Exception as e:
|
|
1242
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1243
|
+
raise
|
|
1244
|
+
else:
|
|
1245
|
+
raise TencentCloudSDKException(e.message, e.message)
|
|
1246
|
+
|
|
1247
|
+
|
|
1156
1248
|
def VerifyUserAccount(self, request):
|
|
1157
1249
|
"""验证用户数据库账号权限,获取会话token。
|
|
1158
1250
|
|
|
@@ -112,6 +112,312 @@ class AddUserContactResponse(AbstractModel):
|
|
|
112
112
|
self._RequestId = params.get("RequestId")
|
|
113
113
|
|
|
114
114
|
|
|
115
|
+
class AuditInstance(AbstractModel):
|
|
116
|
+
"""实例详细信息
|
|
117
|
+
|
|
118
|
+
"""
|
|
119
|
+
|
|
120
|
+
def __init__(self):
|
|
121
|
+
r"""
|
|
122
|
+
:param _AuditStatus: 审计状态,已开通审计为:YES,未开通审计为:ON。
|
|
123
|
+
:type AuditStatus: str
|
|
124
|
+
:param _BillingAmount: 审计日志大小,为兼容老版本用。
|
|
125
|
+
:type BillingAmount: int
|
|
126
|
+
:param _BillingConfirmed: 计费确认状态,0-未确认;1-已确认。
|
|
127
|
+
:type BillingConfirmed: int
|
|
128
|
+
:param _ColdLogExpireDay: 低频存储时长。
|
|
129
|
+
:type ColdLogExpireDay: int
|
|
130
|
+
:param _ColdLogSize: 低频日志存储量单位MB。
|
|
131
|
+
:type ColdLogSize: int
|
|
132
|
+
:param _HotLogExpireDay: 高频日志存储天数。
|
|
133
|
+
:type HotLogExpireDay: int
|
|
134
|
+
:param _HotLogSize: 高频日志存储量,单位MB。
|
|
135
|
+
:type HotLogSize: int
|
|
136
|
+
:param _InstanceId: 实例Id。
|
|
137
|
+
:type InstanceId: str
|
|
138
|
+
:param _LogExpireDay: 日志保存总天数,为高频存储时长+低频存储时长。
|
|
139
|
+
:type LogExpireDay: int
|
|
140
|
+
:param _CreateTime: 实例创建时间。
|
|
141
|
+
:type CreateTime: str
|
|
142
|
+
:param _InstanceInfo: 实例详细信息。
|
|
143
|
+
:type InstanceInfo: :class:`tencentcloud.dbbrain.v20210527.models.AuditInstanceInfo`
|
|
144
|
+
"""
|
|
145
|
+
self._AuditStatus = None
|
|
146
|
+
self._BillingAmount = None
|
|
147
|
+
self._BillingConfirmed = None
|
|
148
|
+
self._ColdLogExpireDay = None
|
|
149
|
+
self._ColdLogSize = None
|
|
150
|
+
self._HotLogExpireDay = None
|
|
151
|
+
self._HotLogSize = None
|
|
152
|
+
self._InstanceId = None
|
|
153
|
+
self._LogExpireDay = None
|
|
154
|
+
self._CreateTime = None
|
|
155
|
+
self._InstanceInfo = None
|
|
156
|
+
|
|
157
|
+
@property
|
|
158
|
+
def AuditStatus(self):
|
|
159
|
+
return self._AuditStatus
|
|
160
|
+
|
|
161
|
+
@AuditStatus.setter
|
|
162
|
+
def AuditStatus(self, AuditStatus):
|
|
163
|
+
self._AuditStatus = AuditStatus
|
|
164
|
+
|
|
165
|
+
@property
|
|
166
|
+
def BillingAmount(self):
|
|
167
|
+
return self._BillingAmount
|
|
168
|
+
|
|
169
|
+
@BillingAmount.setter
|
|
170
|
+
def BillingAmount(self, BillingAmount):
|
|
171
|
+
self._BillingAmount = BillingAmount
|
|
172
|
+
|
|
173
|
+
@property
|
|
174
|
+
def BillingConfirmed(self):
|
|
175
|
+
return self._BillingConfirmed
|
|
176
|
+
|
|
177
|
+
@BillingConfirmed.setter
|
|
178
|
+
def BillingConfirmed(self, BillingConfirmed):
|
|
179
|
+
self._BillingConfirmed = BillingConfirmed
|
|
180
|
+
|
|
181
|
+
@property
|
|
182
|
+
def ColdLogExpireDay(self):
|
|
183
|
+
return self._ColdLogExpireDay
|
|
184
|
+
|
|
185
|
+
@ColdLogExpireDay.setter
|
|
186
|
+
def ColdLogExpireDay(self, ColdLogExpireDay):
|
|
187
|
+
self._ColdLogExpireDay = ColdLogExpireDay
|
|
188
|
+
|
|
189
|
+
@property
|
|
190
|
+
def ColdLogSize(self):
|
|
191
|
+
return self._ColdLogSize
|
|
192
|
+
|
|
193
|
+
@ColdLogSize.setter
|
|
194
|
+
def ColdLogSize(self, ColdLogSize):
|
|
195
|
+
self._ColdLogSize = ColdLogSize
|
|
196
|
+
|
|
197
|
+
@property
|
|
198
|
+
def HotLogExpireDay(self):
|
|
199
|
+
return self._HotLogExpireDay
|
|
200
|
+
|
|
201
|
+
@HotLogExpireDay.setter
|
|
202
|
+
def HotLogExpireDay(self, HotLogExpireDay):
|
|
203
|
+
self._HotLogExpireDay = HotLogExpireDay
|
|
204
|
+
|
|
205
|
+
@property
|
|
206
|
+
def HotLogSize(self):
|
|
207
|
+
return self._HotLogSize
|
|
208
|
+
|
|
209
|
+
@HotLogSize.setter
|
|
210
|
+
def HotLogSize(self, HotLogSize):
|
|
211
|
+
self._HotLogSize = HotLogSize
|
|
212
|
+
|
|
213
|
+
@property
|
|
214
|
+
def InstanceId(self):
|
|
215
|
+
return self._InstanceId
|
|
216
|
+
|
|
217
|
+
@InstanceId.setter
|
|
218
|
+
def InstanceId(self, InstanceId):
|
|
219
|
+
self._InstanceId = InstanceId
|
|
220
|
+
|
|
221
|
+
@property
|
|
222
|
+
def LogExpireDay(self):
|
|
223
|
+
return self._LogExpireDay
|
|
224
|
+
|
|
225
|
+
@LogExpireDay.setter
|
|
226
|
+
def LogExpireDay(self, LogExpireDay):
|
|
227
|
+
self._LogExpireDay = LogExpireDay
|
|
228
|
+
|
|
229
|
+
@property
|
|
230
|
+
def CreateTime(self):
|
|
231
|
+
return self._CreateTime
|
|
232
|
+
|
|
233
|
+
@CreateTime.setter
|
|
234
|
+
def CreateTime(self, CreateTime):
|
|
235
|
+
self._CreateTime = CreateTime
|
|
236
|
+
|
|
237
|
+
@property
|
|
238
|
+
def InstanceInfo(self):
|
|
239
|
+
return self._InstanceInfo
|
|
240
|
+
|
|
241
|
+
@InstanceInfo.setter
|
|
242
|
+
def InstanceInfo(self, InstanceInfo):
|
|
243
|
+
self._InstanceInfo = InstanceInfo
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
def _deserialize(self, params):
|
|
247
|
+
self._AuditStatus = params.get("AuditStatus")
|
|
248
|
+
self._BillingAmount = params.get("BillingAmount")
|
|
249
|
+
self._BillingConfirmed = params.get("BillingConfirmed")
|
|
250
|
+
self._ColdLogExpireDay = params.get("ColdLogExpireDay")
|
|
251
|
+
self._ColdLogSize = params.get("ColdLogSize")
|
|
252
|
+
self._HotLogExpireDay = params.get("HotLogExpireDay")
|
|
253
|
+
self._HotLogSize = params.get("HotLogSize")
|
|
254
|
+
self._InstanceId = params.get("InstanceId")
|
|
255
|
+
self._LogExpireDay = params.get("LogExpireDay")
|
|
256
|
+
self._CreateTime = params.get("CreateTime")
|
|
257
|
+
if params.get("InstanceInfo") is not None:
|
|
258
|
+
self._InstanceInfo = AuditInstanceInfo()
|
|
259
|
+
self._InstanceInfo._deserialize(params.get("InstanceInfo"))
|
|
260
|
+
memeber_set = set(params.keys())
|
|
261
|
+
for name, value in vars(self).items():
|
|
262
|
+
property_name = name[1:]
|
|
263
|
+
if property_name in memeber_set:
|
|
264
|
+
memeber_set.remove(property_name)
|
|
265
|
+
if len(memeber_set) > 0:
|
|
266
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
class AuditInstanceFilter(AbstractModel):
|
|
271
|
+
"""实例列表查询条件
|
|
272
|
+
|
|
273
|
+
"""
|
|
274
|
+
|
|
275
|
+
def __init__(self):
|
|
276
|
+
r"""
|
|
277
|
+
:param _Name: 搜索条件名称
|
|
278
|
+
:type Name: str
|
|
279
|
+
:param _Values: 要搜索的条件的值
|
|
280
|
+
:type Values: list of str
|
|
281
|
+
"""
|
|
282
|
+
self._Name = None
|
|
283
|
+
self._Values = None
|
|
284
|
+
|
|
285
|
+
@property
|
|
286
|
+
def Name(self):
|
|
287
|
+
return self._Name
|
|
288
|
+
|
|
289
|
+
@Name.setter
|
|
290
|
+
def Name(self, Name):
|
|
291
|
+
self._Name = Name
|
|
292
|
+
|
|
293
|
+
@property
|
|
294
|
+
def Values(self):
|
|
295
|
+
return self._Values
|
|
296
|
+
|
|
297
|
+
@Values.setter
|
|
298
|
+
def Values(self, Values):
|
|
299
|
+
self._Values = Values
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
def _deserialize(self, params):
|
|
303
|
+
self._Name = params.get("Name")
|
|
304
|
+
self._Values = params.get("Values")
|
|
305
|
+
memeber_set = set(params.keys())
|
|
306
|
+
for name, value in vars(self).items():
|
|
307
|
+
property_name = name[1:]
|
|
308
|
+
if property_name in memeber_set:
|
|
309
|
+
memeber_set.remove(property_name)
|
|
310
|
+
if len(memeber_set) > 0:
|
|
311
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+
|
|
315
|
+
class AuditInstanceInfo(AbstractModel):
|
|
316
|
+
"""实例详情
|
|
317
|
+
|
|
318
|
+
"""
|
|
319
|
+
|
|
320
|
+
def __init__(self):
|
|
321
|
+
r"""
|
|
322
|
+
:param _AppId: appId。
|
|
323
|
+
:type AppId: int
|
|
324
|
+
:param _AuditStatus: 审计状态,0-未开通审计;1-已开通审计。
|
|
325
|
+
:type AuditStatus: int
|
|
326
|
+
:param _InstanceId: 实例Id。
|
|
327
|
+
:type InstanceId: str
|
|
328
|
+
:param _InstanceName: 实例名称。
|
|
329
|
+
:type InstanceName: str
|
|
330
|
+
:param _ProjectId: 项目Id。
|
|
331
|
+
:type ProjectId: int
|
|
332
|
+
:param _Region: 实例所在地域。
|
|
333
|
+
:type Region: str
|
|
334
|
+
:param _ResourceTags: 资源Tags。
|
|
335
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
336
|
+
:type ResourceTags: list of str
|
|
337
|
+
"""
|
|
338
|
+
self._AppId = None
|
|
339
|
+
self._AuditStatus = None
|
|
340
|
+
self._InstanceId = None
|
|
341
|
+
self._InstanceName = None
|
|
342
|
+
self._ProjectId = None
|
|
343
|
+
self._Region = None
|
|
344
|
+
self._ResourceTags = None
|
|
345
|
+
|
|
346
|
+
@property
|
|
347
|
+
def AppId(self):
|
|
348
|
+
return self._AppId
|
|
349
|
+
|
|
350
|
+
@AppId.setter
|
|
351
|
+
def AppId(self, AppId):
|
|
352
|
+
self._AppId = AppId
|
|
353
|
+
|
|
354
|
+
@property
|
|
355
|
+
def AuditStatus(self):
|
|
356
|
+
return self._AuditStatus
|
|
357
|
+
|
|
358
|
+
@AuditStatus.setter
|
|
359
|
+
def AuditStatus(self, AuditStatus):
|
|
360
|
+
self._AuditStatus = AuditStatus
|
|
361
|
+
|
|
362
|
+
@property
|
|
363
|
+
def InstanceId(self):
|
|
364
|
+
return self._InstanceId
|
|
365
|
+
|
|
366
|
+
@InstanceId.setter
|
|
367
|
+
def InstanceId(self, InstanceId):
|
|
368
|
+
self._InstanceId = InstanceId
|
|
369
|
+
|
|
370
|
+
@property
|
|
371
|
+
def InstanceName(self):
|
|
372
|
+
return self._InstanceName
|
|
373
|
+
|
|
374
|
+
@InstanceName.setter
|
|
375
|
+
def InstanceName(self, InstanceName):
|
|
376
|
+
self._InstanceName = InstanceName
|
|
377
|
+
|
|
378
|
+
@property
|
|
379
|
+
def ProjectId(self):
|
|
380
|
+
return self._ProjectId
|
|
381
|
+
|
|
382
|
+
@ProjectId.setter
|
|
383
|
+
def ProjectId(self, ProjectId):
|
|
384
|
+
self._ProjectId = ProjectId
|
|
385
|
+
|
|
386
|
+
@property
|
|
387
|
+
def Region(self):
|
|
388
|
+
return self._Region
|
|
389
|
+
|
|
390
|
+
@Region.setter
|
|
391
|
+
def Region(self, Region):
|
|
392
|
+
self._Region = Region
|
|
393
|
+
|
|
394
|
+
@property
|
|
395
|
+
def ResourceTags(self):
|
|
396
|
+
return self._ResourceTags
|
|
397
|
+
|
|
398
|
+
@ResourceTags.setter
|
|
399
|
+
def ResourceTags(self, ResourceTags):
|
|
400
|
+
self._ResourceTags = ResourceTags
|
|
401
|
+
|
|
402
|
+
|
|
403
|
+
def _deserialize(self, params):
|
|
404
|
+
self._AppId = params.get("AppId")
|
|
405
|
+
self._AuditStatus = params.get("AuditStatus")
|
|
406
|
+
self._InstanceId = params.get("InstanceId")
|
|
407
|
+
self._InstanceName = params.get("InstanceName")
|
|
408
|
+
self._ProjectId = params.get("ProjectId")
|
|
409
|
+
self._Region = params.get("Region")
|
|
410
|
+
self._ResourceTags = params.get("ResourceTags")
|
|
411
|
+
memeber_set = set(params.keys())
|
|
412
|
+
for name, value in vars(self).items():
|
|
413
|
+
property_name = name[1:]
|
|
414
|
+
if property_name in memeber_set:
|
|
415
|
+
memeber_set.remove(property_name)
|
|
416
|
+
if len(memeber_set) > 0:
|
|
417
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
418
|
+
|
|
419
|
+
|
|
420
|
+
|
|
115
421
|
class AuditLogFile(AbstractModel):
|
|
116
422
|
"""审计日志文件
|
|
117
423
|
|
|
@@ -422,6 +728,100 @@ class CancelKillTaskResponse(AbstractModel):
|
|
|
422
728
|
self._RequestId = params.get("RequestId")
|
|
423
729
|
|
|
424
730
|
|
|
731
|
+
class CloseAuditServiceRequest(AbstractModel):
|
|
732
|
+
"""CloseAuditService请求参数结构体
|
|
733
|
+
|
|
734
|
+
"""
|
|
735
|
+
|
|
736
|
+
def __init__(self):
|
|
737
|
+
r"""
|
|
738
|
+
:param _Product: 服务产品类型,支持值包括: "dcdb" - 云数据库 Tdsql, "mariadb" - 云数据库 MariaDB。
|
|
739
|
+
:type Product: str
|
|
740
|
+
:param _NodeRequestType: 与Product保持一致。如:"dcdb" ,"mariadb"。
|
|
741
|
+
:type NodeRequestType: str
|
|
742
|
+
:param _InstanceId: 实例Id。
|
|
743
|
+
:type InstanceId: str
|
|
744
|
+
"""
|
|
745
|
+
self._Product = None
|
|
746
|
+
self._NodeRequestType = None
|
|
747
|
+
self._InstanceId = None
|
|
748
|
+
|
|
749
|
+
@property
|
|
750
|
+
def Product(self):
|
|
751
|
+
return self._Product
|
|
752
|
+
|
|
753
|
+
@Product.setter
|
|
754
|
+
def Product(self, Product):
|
|
755
|
+
self._Product = Product
|
|
756
|
+
|
|
757
|
+
@property
|
|
758
|
+
def NodeRequestType(self):
|
|
759
|
+
return self._NodeRequestType
|
|
760
|
+
|
|
761
|
+
@NodeRequestType.setter
|
|
762
|
+
def NodeRequestType(self, NodeRequestType):
|
|
763
|
+
self._NodeRequestType = NodeRequestType
|
|
764
|
+
|
|
765
|
+
@property
|
|
766
|
+
def InstanceId(self):
|
|
767
|
+
return self._InstanceId
|
|
768
|
+
|
|
769
|
+
@InstanceId.setter
|
|
770
|
+
def InstanceId(self, InstanceId):
|
|
771
|
+
self._InstanceId = InstanceId
|
|
772
|
+
|
|
773
|
+
|
|
774
|
+
def _deserialize(self, params):
|
|
775
|
+
self._Product = params.get("Product")
|
|
776
|
+
self._NodeRequestType = params.get("NodeRequestType")
|
|
777
|
+
self._InstanceId = params.get("InstanceId")
|
|
778
|
+
memeber_set = set(params.keys())
|
|
779
|
+
for name, value in vars(self).items():
|
|
780
|
+
property_name = name[1:]
|
|
781
|
+
if property_name in memeber_set:
|
|
782
|
+
memeber_set.remove(property_name)
|
|
783
|
+
if len(memeber_set) > 0:
|
|
784
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
785
|
+
|
|
786
|
+
|
|
787
|
+
|
|
788
|
+
class CloseAuditServiceResponse(AbstractModel):
|
|
789
|
+
"""CloseAuditService返回参数结构体
|
|
790
|
+
|
|
791
|
+
"""
|
|
792
|
+
|
|
793
|
+
def __init__(self):
|
|
794
|
+
r"""
|
|
795
|
+
:param _TaskId: 0-关闭审计成功,非0关闭审计失败。
|
|
796
|
+
:type TaskId: int
|
|
797
|
+
:param _RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
798
|
+
:type RequestId: str
|
|
799
|
+
"""
|
|
800
|
+
self._TaskId = None
|
|
801
|
+
self._RequestId = None
|
|
802
|
+
|
|
803
|
+
@property
|
|
804
|
+
def TaskId(self):
|
|
805
|
+
return self._TaskId
|
|
806
|
+
|
|
807
|
+
@TaskId.setter
|
|
808
|
+
def TaskId(self, TaskId):
|
|
809
|
+
self._TaskId = TaskId
|
|
810
|
+
|
|
811
|
+
@property
|
|
812
|
+
def RequestId(self):
|
|
813
|
+
return self._RequestId
|
|
814
|
+
|
|
815
|
+
@RequestId.setter
|
|
816
|
+
def RequestId(self, RequestId):
|
|
817
|
+
self._RequestId = RequestId
|
|
818
|
+
|
|
819
|
+
|
|
820
|
+
def _deserialize(self, params):
|
|
821
|
+
self._TaskId = params.get("TaskId")
|
|
822
|
+
self._RequestId = params.get("RequestId")
|
|
823
|
+
|
|
824
|
+
|
|
425
825
|
class ContactItem(AbstractModel):
|
|
426
826
|
"""联系人contact描述。
|
|
427
827
|
|
|
@@ -2163,24 +2563,136 @@ class DescribeAllUserContactResponse(AbstractModel):
|
|
|
2163
2563
|
for item in params.get("Contacts"):
|
|
2164
2564
|
obj = ContactItem()
|
|
2165
2565
|
obj._deserialize(item)
|
|
2166
|
-
self._Contacts.append(obj)
|
|
2566
|
+
self._Contacts.append(obj)
|
|
2567
|
+
self._RequestId = params.get("RequestId")
|
|
2568
|
+
|
|
2569
|
+
|
|
2570
|
+
class DescribeAllUserGroupRequest(AbstractModel):
|
|
2571
|
+
"""DescribeAllUserGroup请求参数结构体
|
|
2572
|
+
|
|
2573
|
+
"""
|
|
2574
|
+
|
|
2575
|
+
def __init__(self):
|
|
2576
|
+
r"""
|
|
2577
|
+
:param _Product: 服务产品类型,固定值:mysql。
|
|
2578
|
+
:type Product: str
|
|
2579
|
+
:param _Names: 联系组名称数组,支持模糊搜索。
|
|
2580
|
+
:type Names: list of str
|
|
2581
|
+
"""
|
|
2582
|
+
self._Product = None
|
|
2583
|
+
self._Names = None
|
|
2584
|
+
|
|
2585
|
+
@property
|
|
2586
|
+
def Product(self):
|
|
2587
|
+
return self._Product
|
|
2588
|
+
|
|
2589
|
+
@Product.setter
|
|
2590
|
+
def Product(self, Product):
|
|
2591
|
+
self._Product = Product
|
|
2592
|
+
|
|
2593
|
+
@property
|
|
2594
|
+
def Names(self):
|
|
2595
|
+
return self._Names
|
|
2596
|
+
|
|
2597
|
+
@Names.setter
|
|
2598
|
+
def Names(self, Names):
|
|
2599
|
+
self._Names = Names
|
|
2600
|
+
|
|
2601
|
+
|
|
2602
|
+
def _deserialize(self, params):
|
|
2603
|
+
self._Product = params.get("Product")
|
|
2604
|
+
self._Names = params.get("Names")
|
|
2605
|
+
memeber_set = set(params.keys())
|
|
2606
|
+
for name, value in vars(self).items():
|
|
2607
|
+
property_name = name[1:]
|
|
2608
|
+
if property_name in memeber_set:
|
|
2609
|
+
memeber_set.remove(property_name)
|
|
2610
|
+
if len(memeber_set) > 0:
|
|
2611
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
2612
|
+
|
|
2613
|
+
|
|
2614
|
+
|
|
2615
|
+
class DescribeAllUserGroupResponse(AbstractModel):
|
|
2616
|
+
"""DescribeAllUserGroup返回参数结构体
|
|
2617
|
+
|
|
2618
|
+
"""
|
|
2619
|
+
|
|
2620
|
+
def __init__(self):
|
|
2621
|
+
r"""
|
|
2622
|
+
:param _TotalCount: 组总数。
|
|
2623
|
+
:type TotalCount: int
|
|
2624
|
+
:param _Groups: 组信息。
|
|
2625
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2626
|
+
:type Groups: list of GroupItem
|
|
2627
|
+
:param _RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
2628
|
+
:type RequestId: str
|
|
2629
|
+
"""
|
|
2630
|
+
self._TotalCount = None
|
|
2631
|
+
self._Groups = None
|
|
2632
|
+
self._RequestId = None
|
|
2633
|
+
|
|
2634
|
+
@property
|
|
2635
|
+
def TotalCount(self):
|
|
2636
|
+
return self._TotalCount
|
|
2637
|
+
|
|
2638
|
+
@TotalCount.setter
|
|
2639
|
+
def TotalCount(self, TotalCount):
|
|
2640
|
+
self._TotalCount = TotalCount
|
|
2641
|
+
|
|
2642
|
+
@property
|
|
2643
|
+
def Groups(self):
|
|
2644
|
+
return self._Groups
|
|
2645
|
+
|
|
2646
|
+
@Groups.setter
|
|
2647
|
+
def Groups(self, Groups):
|
|
2648
|
+
self._Groups = Groups
|
|
2649
|
+
|
|
2650
|
+
@property
|
|
2651
|
+
def RequestId(self):
|
|
2652
|
+
return self._RequestId
|
|
2653
|
+
|
|
2654
|
+
@RequestId.setter
|
|
2655
|
+
def RequestId(self, RequestId):
|
|
2656
|
+
self._RequestId = RequestId
|
|
2657
|
+
|
|
2658
|
+
|
|
2659
|
+
def _deserialize(self, params):
|
|
2660
|
+
self._TotalCount = params.get("TotalCount")
|
|
2661
|
+
if params.get("Groups") is not None:
|
|
2662
|
+
self._Groups = []
|
|
2663
|
+
for item in params.get("Groups"):
|
|
2664
|
+
obj = GroupItem()
|
|
2665
|
+
obj._deserialize(item)
|
|
2666
|
+
self._Groups.append(obj)
|
|
2167
2667
|
self._RequestId = params.get("RequestId")
|
|
2168
2668
|
|
|
2169
2669
|
|
|
2170
|
-
class
|
|
2171
|
-
"""
|
|
2670
|
+
class DescribeAuditInstanceListRequest(AbstractModel):
|
|
2671
|
+
"""DescribeAuditInstanceList请求参数结构体
|
|
2172
2672
|
|
|
2173
2673
|
"""
|
|
2174
2674
|
|
|
2175
2675
|
def __init__(self):
|
|
2176
2676
|
r"""
|
|
2177
|
-
:param _Product:
|
|
2677
|
+
:param _Product: 服务产品类型,支持值包括: "dcdb" - 云数据库 Tdsql, "mariadb" - 云数据库 MariaDB。
|
|
2178
2678
|
:type Product: str
|
|
2179
|
-
:param
|
|
2180
|
-
:type
|
|
2679
|
+
:param _NodeRequestType: 与Product保持一致。如:"dcdb" ,"mariadb"。
|
|
2680
|
+
:type NodeRequestType: str
|
|
2681
|
+
:param _AuditSwitch: 审计状态标识,0-未开通审计;1-已开通审计,默认为0。
|
|
2682
|
+
:type AuditSwitch: int
|
|
2683
|
+
:param _Offset: 偏移量,默认为0。
|
|
2684
|
+
:type Offset: int
|
|
2685
|
+
:param _Limit: 查询数目,默认为20,最大为100。
|
|
2686
|
+
:type Limit: int
|
|
2687
|
+
:param _Filters: 查询实例的搜索条件。
|
|
2688
|
+
:type Filters: list of AuditInstanceFilter
|
|
2181
2689
|
"""
|
|
2182
2690
|
self._Product = None
|
|
2183
|
-
self.
|
|
2691
|
+
self._NodeRequestType = None
|
|
2692
|
+
self._AuditSwitch = None
|
|
2693
|
+
self._Offset = None
|
|
2694
|
+
self._Limit = None
|
|
2695
|
+
self._Filters = None
|
|
2184
2696
|
|
|
2185
2697
|
@property
|
|
2186
2698
|
def Product(self):
|
|
@@ -2191,17 +2703,58 @@ class DescribeAllUserGroupRequest(AbstractModel):
|
|
|
2191
2703
|
self._Product = Product
|
|
2192
2704
|
|
|
2193
2705
|
@property
|
|
2194
|
-
def
|
|
2195
|
-
return self.
|
|
2706
|
+
def NodeRequestType(self):
|
|
2707
|
+
return self._NodeRequestType
|
|
2196
2708
|
|
|
2197
|
-
@
|
|
2198
|
-
def
|
|
2199
|
-
self.
|
|
2709
|
+
@NodeRequestType.setter
|
|
2710
|
+
def NodeRequestType(self, NodeRequestType):
|
|
2711
|
+
self._NodeRequestType = NodeRequestType
|
|
2712
|
+
|
|
2713
|
+
@property
|
|
2714
|
+
def AuditSwitch(self):
|
|
2715
|
+
return self._AuditSwitch
|
|
2716
|
+
|
|
2717
|
+
@AuditSwitch.setter
|
|
2718
|
+
def AuditSwitch(self, AuditSwitch):
|
|
2719
|
+
self._AuditSwitch = AuditSwitch
|
|
2720
|
+
|
|
2721
|
+
@property
|
|
2722
|
+
def Offset(self):
|
|
2723
|
+
return self._Offset
|
|
2724
|
+
|
|
2725
|
+
@Offset.setter
|
|
2726
|
+
def Offset(self, Offset):
|
|
2727
|
+
self._Offset = Offset
|
|
2728
|
+
|
|
2729
|
+
@property
|
|
2730
|
+
def Limit(self):
|
|
2731
|
+
return self._Limit
|
|
2732
|
+
|
|
2733
|
+
@Limit.setter
|
|
2734
|
+
def Limit(self, Limit):
|
|
2735
|
+
self._Limit = Limit
|
|
2736
|
+
|
|
2737
|
+
@property
|
|
2738
|
+
def Filters(self):
|
|
2739
|
+
return self._Filters
|
|
2740
|
+
|
|
2741
|
+
@Filters.setter
|
|
2742
|
+
def Filters(self, Filters):
|
|
2743
|
+
self._Filters = Filters
|
|
2200
2744
|
|
|
2201
2745
|
|
|
2202
2746
|
def _deserialize(self, params):
|
|
2203
2747
|
self._Product = params.get("Product")
|
|
2204
|
-
self.
|
|
2748
|
+
self._NodeRequestType = params.get("NodeRequestType")
|
|
2749
|
+
self._AuditSwitch = params.get("AuditSwitch")
|
|
2750
|
+
self._Offset = params.get("Offset")
|
|
2751
|
+
self._Limit = params.get("Limit")
|
|
2752
|
+
if params.get("Filters") is not None:
|
|
2753
|
+
self._Filters = []
|
|
2754
|
+
for item in params.get("Filters"):
|
|
2755
|
+
obj = AuditInstanceFilter()
|
|
2756
|
+
obj._deserialize(item)
|
|
2757
|
+
self._Filters.append(obj)
|
|
2205
2758
|
memeber_set = set(params.keys())
|
|
2206
2759
|
for name, value in vars(self).items():
|
|
2207
2760
|
property_name = name[1:]
|
|
@@ -2212,23 +2765,23 @@ class DescribeAllUserGroupRequest(AbstractModel):
|
|
|
2212
2765
|
|
|
2213
2766
|
|
|
2214
2767
|
|
|
2215
|
-
class
|
|
2216
|
-
"""
|
|
2768
|
+
class DescribeAuditInstanceListResponse(AbstractModel):
|
|
2769
|
+
"""DescribeAuditInstanceList返回参数结构体
|
|
2217
2770
|
|
|
2218
2771
|
"""
|
|
2219
2772
|
|
|
2220
2773
|
def __init__(self):
|
|
2221
2774
|
r"""
|
|
2222
|
-
:param _TotalCount:
|
|
2223
|
-
:type TotalCount: int
|
|
2224
|
-
:param _Groups: 组信息。
|
|
2775
|
+
:param _TotalCount: 符合条件的实例个数。
|
|
2225
2776
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
2226
|
-
:type
|
|
2777
|
+
:type TotalCount: int
|
|
2778
|
+
:param _Items: 实例详情。
|
|
2779
|
+
:type Items: list of AuditInstance
|
|
2227
2780
|
:param _RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
2228
2781
|
:type RequestId: str
|
|
2229
2782
|
"""
|
|
2230
2783
|
self._TotalCount = None
|
|
2231
|
-
self.
|
|
2784
|
+
self._Items = None
|
|
2232
2785
|
self._RequestId = None
|
|
2233
2786
|
|
|
2234
2787
|
@property
|
|
@@ -2240,12 +2793,12 @@ class DescribeAllUserGroupResponse(AbstractModel):
|
|
|
2240
2793
|
self._TotalCount = TotalCount
|
|
2241
2794
|
|
|
2242
2795
|
@property
|
|
2243
|
-
def
|
|
2244
|
-
return self.
|
|
2796
|
+
def Items(self):
|
|
2797
|
+
return self._Items
|
|
2245
2798
|
|
|
2246
|
-
@
|
|
2247
|
-
def
|
|
2248
|
-
self.
|
|
2799
|
+
@Items.setter
|
|
2800
|
+
def Items(self, Items):
|
|
2801
|
+
self._Items = Items
|
|
2249
2802
|
|
|
2250
2803
|
@property
|
|
2251
2804
|
def RequestId(self):
|
|
@@ -2258,12 +2811,12 @@ class DescribeAllUserGroupResponse(AbstractModel):
|
|
|
2258
2811
|
|
|
2259
2812
|
def _deserialize(self, params):
|
|
2260
2813
|
self._TotalCount = params.get("TotalCount")
|
|
2261
|
-
if params.get("
|
|
2262
|
-
self.
|
|
2263
|
-
for item in params.get("
|
|
2264
|
-
obj =
|
|
2814
|
+
if params.get("Items") is not None:
|
|
2815
|
+
self._Items = []
|
|
2816
|
+
for item in params.get("Items"):
|
|
2817
|
+
obj = AuditInstance()
|
|
2265
2818
|
obj._deserialize(item)
|
|
2266
|
-
self.
|
|
2819
|
+
self._Items.append(obj)
|
|
2267
2820
|
self._RequestId = params.get("RequestId")
|
|
2268
2821
|
|
|
2269
2822
|
|
|
@@ -7875,6 +8428,124 @@ class MailConfiguration(AbstractModel):
|
|
|
7875
8428
|
|
|
7876
8429
|
|
|
7877
8430
|
|
|
8431
|
+
class ModifyAuditServiceRequest(AbstractModel):
|
|
8432
|
+
"""ModifyAuditService请求参数结构体
|
|
8433
|
+
|
|
8434
|
+
"""
|
|
8435
|
+
|
|
8436
|
+
def __init__(self):
|
|
8437
|
+
r"""
|
|
8438
|
+
:param _Product: 服务产品类型,支持值包括: "dcdb" - 云数据库 Tdsql, "mariadb" - 云数据库 MariaDB。
|
|
8439
|
+
:type Product: str
|
|
8440
|
+
:param _NodeRequestType: 与Product保持一致。如:"dcdb" ,"mariadb"。
|
|
8441
|
+
:type NodeRequestType: str
|
|
8442
|
+
:param _InstanceId: 实例ID。
|
|
8443
|
+
:type InstanceId: str
|
|
8444
|
+
:param _LogExpireDay: 日志保存总时长,只能是7,30,90,180,365,1095,1825。
|
|
8445
|
+
:type LogExpireDay: int
|
|
8446
|
+
:param _HotLogExpireDay: 高频日志保存时长,只能是7,30,90,180,365,1095,1825。
|
|
8447
|
+
:type HotLogExpireDay: int
|
|
8448
|
+
"""
|
|
8449
|
+
self._Product = None
|
|
8450
|
+
self._NodeRequestType = None
|
|
8451
|
+
self._InstanceId = None
|
|
8452
|
+
self._LogExpireDay = None
|
|
8453
|
+
self._HotLogExpireDay = None
|
|
8454
|
+
|
|
8455
|
+
@property
|
|
8456
|
+
def Product(self):
|
|
8457
|
+
return self._Product
|
|
8458
|
+
|
|
8459
|
+
@Product.setter
|
|
8460
|
+
def Product(self, Product):
|
|
8461
|
+
self._Product = Product
|
|
8462
|
+
|
|
8463
|
+
@property
|
|
8464
|
+
def NodeRequestType(self):
|
|
8465
|
+
return self._NodeRequestType
|
|
8466
|
+
|
|
8467
|
+
@NodeRequestType.setter
|
|
8468
|
+
def NodeRequestType(self, NodeRequestType):
|
|
8469
|
+
self._NodeRequestType = NodeRequestType
|
|
8470
|
+
|
|
8471
|
+
@property
|
|
8472
|
+
def InstanceId(self):
|
|
8473
|
+
return self._InstanceId
|
|
8474
|
+
|
|
8475
|
+
@InstanceId.setter
|
|
8476
|
+
def InstanceId(self, InstanceId):
|
|
8477
|
+
self._InstanceId = InstanceId
|
|
8478
|
+
|
|
8479
|
+
@property
|
|
8480
|
+
def LogExpireDay(self):
|
|
8481
|
+
return self._LogExpireDay
|
|
8482
|
+
|
|
8483
|
+
@LogExpireDay.setter
|
|
8484
|
+
def LogExpireDay(self, LogExpireDay):
|
|
8485
|
+
self._LogExpireDay = LogExpireDay
|
|
8486
|
+
|
|
8487
|
+
@property
|
|
8488
|
+
def HotLogExpireDay(self):
|
|
8489
|
+
return self._HotLogExpireDay
|
|
8490
|
+
|
|
8491
|
+
@HotLogExpireDay.setter
|
|
8492
|
+
def HotLogExpireDay(self, HotLogExpireDay):
|
|
8493
|
+
self._HotLogExpireDay = HotLogExpireDay
|
|
8494
|
+
|
|
8495
|
+
|
|
8496
|
+
def _deserialize(self, params):
|
|
8497
|
+
self._Product = params.get("Product")
|
|
8498
|
+
self._NodeRequestType = params.get("NodeRequestType")
|
|
8499
|
+
self._InstanceId = params.get("InstanceId")
|
|
8500
|
+
self._LogExpireDay = params.get("LogExpireDay")
|
|
8501
|
+
self._HotLogExpireDay = params.get("HotLogExpireDay")
|
|
8502
|
+
memeber_set = set(params.keys())
|
|
8503
|
+
for name, value in vars(self).items():
|
|
8504
|
+
property_name = name[1:]
|
|
8505
|
+
if property_name in memeber_set:
|
|
8506
|
+
memeber_set.remove(property_name)
|
|
8507
|
+
if len(memeber_set) > 0:
|
|
8508
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
8509
|
+
|
|
8510
|
+
|
|
8511
|
+
|
|
8512
|
+
class ModifyAuditServiceResponse(AbstractModel):
|
|
8513
|
+
"""ModifyAuditService返回参数结构体
|
|
8514
|
+
|
|
8515
|
+
"""
|
|
8516
|
+
|
|
8517
|
+
def __init__(self):
|
|
8518
|
+
r"""
|
|
8519
|
+
:param _Success: 审计配置修改结果,0-修改成功,非0-修改失败。
|
|
8520
|
+
:type Success: int
|
|
8521
|
+
:param _RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
8522
|
+
:type RequestId: str
|
|
8523
|
+
"""
|
|
8524
|
+
self._Success = None
|
|
8525
|
+
self._RequestId = None
|
|
8526
|
+
|
|
8527
|
+
@property
|
|
8528
|
+
def Success(self):
|
|
8529
|
+
return self._Success
|
|
8530
|
+
|
|
8531
|
+
@Success.setter
|
|
8532
|
+
def Success(self, Success):
|
|
8533
|
+
self._Success = Success
|
|
8534
|
+
|
|
8535
|
+
@property
|
|
8536
|
+
def RequestId(self):
|
|
8537
|
+
return self._RequestId
|
|
8538
|
+
|
|
8539
|
+
@RequestId.setter
|
|
8540
|
+
def RequestId(self, RequestId):
|
|
8541
|
+
self._RequestId = RequestId
|
|
8542
|
+
|
|
8543
|
+
|
|
8544
|
+
def _deserialize(self, params):
|
|
8545
|
+
self._Success = params.get("Success")
|
|
8546
|
+
self._RequestId = params.get("RequestId")
|
|
8547
|
+
|
|
8548
|
+
|
|
7878
8549
|
class ModifyDiagDBInstanceConfRequest(AbstractModel):
|
|
7879
8550
|
"""ModifyDiagDBInstanceConf请求参数结构体
|
|
7880
8551
|
|
|
@@ -8410,6 +9081,124 @@ class MySqlProcess(AbstractModel):
|
|
|
8410
9081
|
|
|
8411
9082
|
|
|
8412
9083
|
|
|
9084
|
+
class OpenAuditServiceRequest(AbstractModel):
|
|
9085
|
+
"""OpenAuditService请求参数结构体
|
|
9086
|
+
|
|
9087
|
+
"""
|
|
9088
|
+
|
|
9089
|
+
def __init__(self):
|
|
9090
|
+
r"""
|
|
9091
|
+
:param _Product: 服务产品类型,支持值包括: "dcdb" - 云数据库 Tdsql, "mariadb" - 云数据库 MariaDB。
|
|
9092
|
+
:type Product: str
|
|
9093
|
+
:param _NodeRequestType: 与Product保持一致。如:"dcdb" ,"mariadb"。
|
|
9094
|
+
:type NodeRequestType: str
|
|
9095
|
+
:param _InstanceId: 实例ID。
|
|
9096
|
+
:type InstanceId: str
|
|
9097
|
+
:param _LogExpireDay: 日志保存总时长,只能是7,30,90,180,365,1095,1825。
|
|
9098
|
+
:type LogExpireDay: int
|
|
9099
|
+
:param _HotLogExpireDay: 高频日志保存时长,只能是7,30,90,180,365,1095,1825。
|
|
9100
|
+
:type HotLogExpireDay: int
|
|
9101
|
+
"""
|
|
9102
|
+
self._Product = None
|
|
9103
|
+
self._NodeRequestType = None
|
|
9104
|
+
self._InstanceId = None
|
|
9105
|
+
self._LogExpireDay = None
|
|
9106
|
+
self._HotLogExpireDay = None
|
|
9107
|
+
|
|
9108
|
+
@property
|
|
9109
|
+
def Product(self):
|
|
9110
|
+
return self._Product
|
|
9111
|
+
|
|
9112
|
+
@Product.setter
|
|
9113
|
+
def Product(self, Product):
|
|
9114
|
+
self._Product = Product
|
|
9115
|
+
|
|
9116
|
+
@property
|
|
9117
|
+
def NodeRequestType(self):
|
|
9118
|
+
return self._NodeRequestType
|
|
9119
|
+
|
|
9120
|
+
@NodeRequestType.setter
|
|
9121
|
+
def NodeRequestType(self, NodeRequestType):
|
|
9122
|
+
self._NodeRequestType = NodeRequestType
|
|
9123
|
+
|
|
9124
|
+
@property
|
|
9125
|
+
def InstanceId(self):
|
|
9126
|
+
return self._InstanceId
|
|
9127
|
+
|
|
9128
|
+
@InstanceId.setter
|
|
9129
|
+
def InstanceId(self, InstanceId):
|
|
9130
|
+
self._InstanceId = InstanceId
|
|
9131
|
+
|
|
9132
|
+
@property
|
|
9133
|
+
def LogExpireDay(self):
|
|
9134
|
+
return self._LogExpireDay
|
|
9135
|
+
|
|
9136
|
+
@LogExpireDay.setter
|
|
9137
|
+
def LogExpireDay(self, LogExpireDay):
|
|
9138
|
+
self._LogExpireDay = LogExpireDay
|
|
9139
|
+
|
|
9140
|
+
@property
|
|
9141
|
+
def HotLogExpireDay(self):
|
|
9142
|
+
return self._HotLogExpireDay
|
|
9143
|
+
|
|
9144
|
+
@HotLogExpireDay.setter
|
|
9145
|
+
def HotLogExpireDay(self, HotLogExpireDay):
|
|
9146
|
+
self._HotLogExpireDay = HotLogExpireDay
|
|
9147
|
+
|
|
9148
|
+
|
|
9149
|
+
def _deserialize(self, params):
|
|
9150
|
+
self._Product = params.get("Product")
|
|
9151
|
+
self._NodeRequestType = params.get("NodeRequestType")
|
|
9152
|
+
self._InstanceId = params.get("InstanceId")
|
|
9153
|
+
self._LogExpireDay = params.get("LogExpireDay")
|
|
9154
|
+
self._HotLogExpireDay = params.get("HotLogExpireDay")
|
|
9155
|
+
memeber_set = set(params.keys())
|
|
9156
|
+
for name, value in vars(self).items():
|
|
9157
|
+
property_name = name[1:]
|
|
9158
|
+
if property_name in memeber_set:
|
|
9159
|
+
memeber_set.remove(property_name)
|
|
9160
|
+
if len(memeber_set) > 0:
|
|
9161
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
9162
|
+
|
|
9163
|
+
|
|
9164
|
+
|
|
9165
|
+
class OpenAuditServiceResponse(AbstractModel):
|
|
9166
|
+
"""OpenAuditService返回参数结构体
|
|
9167
|
+
|
|
9168
|
+
"""
|
|
9169
|
+
|
|
9170
|
+
def __init__(self):
|
|
9171
|
+
r"""
|
|
9172
|
+
:param _TaskId: taskId 为0表示开通审计成功,否则开通失败
|
|
9173
|
+
:type TaskId: int
|
|
9174
|
+
:param _RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
9175
|
+
:type RequestId: str
|
|
9176
|
+
"""
|
|
9177
|
+
self._TaskId = None
|
|
9178
|
+
self._RequestId = None
|
|
9179
|
+
|
|
9180
|
+
@property
|
|
9181
|
+
def TaskId(self):
|
|
9182
|
+
return self._TaskId
|
|
9183
|
+
|
|
9184
|
+
@TaskId.setter
|
|
9185
|
+
def TaskId(self, TaskId):
|
|
9186
|
+
self._TaskId = TaskId
|
|
9187
|
+
|
|
9188
|
+
@property
|
|
9189
|
+
def RequestId(self):
|
|
9190
|
+
return self._RequestId
|
|
9191
|
+
|
|
9192
|
+
@RequestId.setter
|
|
9193
|
+
def RequestId(self, RequestId):
|
|
9194
|
+
self._RequestId = RequestId
|
|
9195
|
+
|
|
9196
|
+
|
|
9197
|
+
def _deserialize(self, params):
|
|
9198
|
+
self._TaskId = params.get("TaskId")
|
|
9199
|
+
self._RequestId = params.get("RequestId")
|
|
9200
|
+
|
|
9201
|
+
|
|
8413
9202
|
class ProcessStatistic(AbstractModel):
|
|
8414
9203
|
"""实时会话统计详情。
|
|
8415
9204
|
|
{tencentcloud-sdk-python-dbbrain-3.0.931 → tencentcloud-sdk-python-dbbrain-3.0.937}/README.rst
RENAMED
|
File without changes
|
{tencentcloud-sdk-python-dbbrain-3.0.931 → tencentcloud-sdk-python-dbbrain-3.0.937}/setup.cfg
RENAMED
|
File without changes
|
{tencentcloud-sdk-python-dbbrain-3.0.931 → tencentcloud-sdk-python-dbbrain-3.0.937}/setup.py
RENAMED
|
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
|