tencentcloud-sdk-python 3.0.1377__py2.py3-none-any.whl → 3.0.1378__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.
tencentcloud/__init__.py CHANGED
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.0.1377'
17
+ __version__ = '3.0.1378'
@@ -758,6 +758,10 @@ class ApmInstanceDetail(AbstractModel):
758
758
  :type IsRemoteCommandExecutionAnalysis: int
759
759
  :param _IsMemoryHijackingAnalysis: 是否开内存马执行检测(0=关, 1=开)
760
760
  :type IsMemoryHijackingAnalysis: int
761
+ :param _LogIndexType: CLS索引类型(0=全文索引,1=键值索引)
762
+ :type LogIndexType: int
763
+ :param _LogTraceIdKey: traceId的索引key: 当CLS索引类型为键值索引时生效
764
+ :type LogTraceIdKey: str
761
765
  """
762
766
  self._InstanceId = None
763
767
  self._Name = None
@@ -798,6 +802,8 @@ class ApmInstanceDetail(AbstractModel):
798
802
  self._StopReason = None
799
803
  self._IsRemoteCommandExecutionAnalysis = None
800
804
  self._IsMemoryHijackingAnalysis = None
805
+ self._LogIndexType = None
806
+ self._LogTraceIdKey = None
801
807
 
802
808
  @property
803
809
  def InstanceId(self):
@@ -1234,6 +1240,28 @@ class ApmInstanceDetail(AbstractModel):
1234
1240
  def IsMemoryHijackingAnalysis(self, IsMemoryHijackingAnalysis):
1235
1241
  self._IsMemoryHijackingAnalysis = IsMemoryHijackingAnalysis
1236
1242
 
1243
+ @property
1244
+ def LogIndexType(self):
1245
+ """CLS索引类型(0=全文索引,1=键值索引)
1246
+ :rtype: int
1247
+ """
1248
+ return self._LogIndexType
1249
+
1250
+ @LogIndexType.setter
1251
+ def LogIndexType(self, LogIndexType):
1252
+ self._LogIndexType = LogIndexType
1253
+
1254
+ @property
1255
+ def LogTraceIdKey(self):
1256
+ """traceId的索引key: 当CLS索引类型为键值索引时生效
1257
+ :rtype: str
1258
+ """
1259
+ return self._LogTraceIdKey
1260
+
1261
+ @LogTraceIdKey.setter
1262
+ def LogTraceIdKey(self, LogTraceIdKey):
1263
+ self._LogTraceIdKey = LogTraceIdKey
1264
+
1237
1265
 
1238
1266
  def _deserialize(self, params):
1239
1267
  self._InstanceId = params.get("InstanceId")
@@ -1280,6 +1308,8 @@ class ApmInstanceDetail(AbstractModel):
1280
1308
  self._StopReason = params.get("StopReason")
1281
1309
  self._IsRemoteCommandExecutionAnalysis = params.get("IsRemoteCommandExecutionAnalysis")
1282
1310
  self._IsMemoryHijackingAnalysis = params.get("IsMemoryHijackingAnalysis")
1311
+ self._LogIndexType = params.get("LogIndexType")
1312
+ self._LogTraceIdKey = params.get("LogTraceIdKey")
1283
1313
  memeber_set = set(params.keys())
1284
1314
  for name, value in vars(self).items():
1285
1315
  property_name = name[1:]
@@ -3731,9 +3761,9 @@ class ModifyApmInstanceRequest(AbstractModel):
3731
3761
  :type IsRemoteCommandExecutionAnalysis: int
3732
3762
  :param _IsMemoryHijackingAnalysis: 是否开启内存马检测
3733
3763
  :type IsMemoryHijackingAnalysis: int
3734
- :param _LogIndexType: 0=全文索引,1=键值索引
3764
+ :param _LogIndexType: CLS索引类型(0=全文索引,1=键值索引)
3735
3765
  :type LogIndexType: int
3736
- :param _LogTraceIdKey: traceId的索引key
3766
+ :param _LogTraceIdKey: traceId的索引key: 当CLS索引类型为键值索引时生效
3737
3767
  :type LogTraceIdKey: str
3738
3768
  """
3739
3769
  self._InstanceId = None
@@ -4053,7 +4083,7 @@ class ModifyApmInstanceRequest(AbstractModel):
4053
4083
 
4054
4084
  @property
4055
4085
  def LogIndexType(self):
4056
- """0=全文索引,1=键值索引
4086
+ """CLS索引类型(0=全文索引,1=键值索引)
4057
4087
  :rtype: int
4058
4088
  """
4059
4089
  return self._LogIndexType
@@ -4064,7 +4094,7 @@ class ModifyApmInstanceRequest(AbstractModel):
4064
4094
 
4065
4095
  @property
4066
4096
  def LogTraceIdKey(self):
4067
- """traceId的索引key
4097
+ """traceId的索引key: 当CLS索引类型为键值索引时生效
4068
4098
  :rtype: str
4069
4099
  """
4070
4100
  return self._LogTraceIdKey
@@ -4223,14 +4223,14 @@ class DeleteLifecycleHookRequest(AbstractModel):
4223
4223
 
4224
4224
  def __init__(self):
4225
4225
  r"""
4226
- :param _LifecycleHookId: 生命周期挂钩ID
4226
+ :param _LifecycleHookId: 生命周期挂钩ID。可以通过调用接口 [DescribeLifecycleHooks](https://cloud.tencent.com/document/api/377/34452) ,取返回信息中的 LifecycleHookId 获取生命周期挂钩ID。
4227
4227
  :type LifecycleHookId: str
4228
4228
  """
4229
4229
  self._LifecycleHookId = None
4230
4230
 
4231
4231
  @property
4232
4232
  def LifecycleHookId(self):
4233
- """生命周期挂钩ID
4233
+ """生命周期挂钩ID。可以通过调用接口 [DescribeLifecycleHooks](https://cloud.tencent.com/document/api/377/34452) ,取返回信息中的 LifecycleHookId 获取生命周期挂钩ID。
4234
4234
  :rtype: str
4235
4235
  """
4236
4236
  return self._LifecycleHookId
@@ -4848,8 +4848,11 @@ class DescribeAutoScalingGroupLastActivitiesRequest(AbstractModel):
4848
4848
  r"""
4849
4849
  :param _AutoScalingGroupIds: 伸缩组ID列表
4850
4850
  :type AutoScalingGroupIds: list of str
4851
+ :param _ExcludeCancelledActivity: 查询时排除取消类型活动。默认值为 false,表示不排除取消类型活动。
4852
+ :type ExcludeCancelledActivity: bool
4851
4853
  """
4852
4854
  self._AutoScalingGroupIds = None
4855
+ self._ExcludeCancelledActivity = None
4853
4856
 
4854
4857
  @property
4855
4858
  def AutoScalingGroupIds(self):
@@ -4862,9 +4865,21 @@ class DescribeAutoScalingGroupLastActivitiesRequest(AbstractModel):
4862
4865
  def AutoScalingGroupIds(self, AutoScalingGroupIds):
4863
4866
  self._AutoScalingGroupIds = AutoScalingGroupIds
4864
4867
 
4868
+ @property
4869
+ def ExcludeCancelledActivity(self):
4870
+ """查询时排除取消类型活动。默认值为 false,表示不排除取消类型活动。
4871
+ :rtype: bool
4872
+ """
4873
+ return self._ExcludeCancelledActivity
4874
+
4875
+ @ExcludeCancelledActivity.setter
4876
+ def ExcludeCancelledActivity(self, ExcludeCancelledActivity):
4877
+ self._ExcludeCancelledActivity = ExcludeCancelledActivity
4878
+
4865
4879
 
4866
4880
  def _deserialize(self, params):
4867
4881
  self._AutoScalingGroupIds = params.get("AutoScalingGroupIds")
4882
+ self._ExcludeCancelledActivity = params.get("ExcludeCancelledActivity")
4868
4883
  memeber_set = set(params.keys())
4869
4884
  for name, value in vars(self).items():
4870
4885
  property_name = name[1:]
@@ -9031,19 +9046,24 @@ class LifecycleHook(AbstractModel):
9031
9046
  :type LifecycleHookName: str
9032
9047
  :param _AutoScalingGroupId: 伸缩组ID
9033
9048
  :type AutoScalingGroupId: str
9034
- :param _DefaultResult: 生命周期挂钩默认结果
9049
+ :param _DefaultResult: 定义伸缩组在生命周期挂钩超时或 LifecycleCommand 执行失败时应采取的操作,取值范围如下:
9050
+ - CONTINUE: 默认值,表示继续执行扩缩容活动
9051
+ - ABANDON: 针对扩容挂钩,挂钩超时或 LifecycleCommand 执行失败的 CVM 实例会直接释放或移出;而针对缩容挂钩,会继续执行缩容活动
9035
9052
  :type DefaultResult: str
9036
- :param _HeartbeatTimeout: 生命周期挂钩等待超时时间
9053
+ :param _HeartbeatTimeout: 生命周期挂钩超时等待时间(以秒为单位),范围从 30 到 7200 秒。
9037
9054
  :type HeartbeatTimeout: int
9038
- :param _LifecycleTransition: 生命周期挂钩适用场景
9055
+ :param _LifecycleTransition: 生命周期挂钩场景,取值范围如下:
9056
+ - INSTANCE_LAUNCHING: 扩容生命周期挂钩
9057
+ - INSTANCE_TERMINATING: 缩容生命周期挂钩
9039
9058
  :type LifecycleTransition: str
9040
9059
  :param _NotificationMetadata: 通知目标的附加信息
9041
9060
  :type NotificationMetadata: str
9042
- :param _CreatedTime: 创建时间
9061
+ :param _CreatedTime: 创建时间,采用 UTC 标准计时
9043
9062
  :type CreatedTime: str
9044
9063
  :param _NotificationTarget: 通知目标
9045
9064
  :type NotificationTarget: :class:`tencentcloud.autoscaling.v20180419.models.NotificationTarget`
9046
- :param _LifecycleTransitionType: 生命周期挂钩适用场景
9065
+ :param _LifecycleTransitionType: 进行生命周期挂钩的场景类型,取值范围包括 NORMAL 和 EXTENSION,默认值为 NORMAL。
9066
+ 说明:设置为EXTENSION值,在AttachInstances、DetachInstances、RemoveInstances 接口时会触发生命周期挂钩操作,值为NORMAL则不会在这些接口中触发生命周期挂钩。
9047
9067
  :type LifecycleTransitionType: str
9048
9068
  :param _LifecycleCommand: 远程命令执行对象
9049
9069
  :type LifecycleCommand: :class:`tencentcloud.autoscaling.v20180419.models.LifecycleCommand`
@@ -9095,7 +9115,9 @@ class LifecycleHook(AbstractModel):
9095
9115
 
9096
9116
  @property
9097
9117
  def DefaultResult(self):
9098
- """生命周期挂钩默认结果
9118
+ """定义伸缩组在生命周期挂钩超时或 LifecycleCommand 执行失败时应采取的操作,取值范围如下:
9119
+ - CONTINUE: 默认值,表示继续执行扩缩容活动
9120
+ - ABANDON: 针对扩容挂钩,挂钩超时或 LifecycleCommand 执行失败的 CVM 实例会直接释放或移出;而针对缩容挂钩,会继续执行缩容活动
9099
9121
  :rtype: str
9100
9122
  """
9101
9123
  return self._DefaultResult
@@ -9106,7 +9128,7 @@ class LifecycleHook(AbstractModel):
9106
9128
 
9107
9129
  @property
9108
9130
  def HeartbeatTimeout(self):
9109
- """生命周期挂钩等待超时时间
9131
+ """生命周期挂钩超时等待时间(以秒为单位),范围从 30 到 7200 秒。
9110
9132
  :rtype: int
9111
9133
  """
9112
9134
  return self._HeartbeatTimeout
@@ -9117,7 +9139,9 @@ class LifecycleHook(AbstractModel):
9117
9139
 
9118
9140
  @property
9119
9141
  def LifecycleTransition(self):
9120
- """生命周期挂钩适用场景
9142
+ """生命周期挂钩场景,取值范围如下:
9143
+ - INSTANCE_LAUNCHING: 扩容生命周期挂钩
9144
+ - INSTANCE_TERMINATING: 缩容生命周期挂钩
9121
9145
  :rtype: str
9122
9146
  """
9123
9147
  return self._LifecycleTransition
@@ -9139,7 +9163,7 @@ class LifecycleHook(AbstractModel):
9139
9163
 
9140
9164
  @property
9141
9165
  def CreatedTime(self):
9142
- """创建时间
9166
+ """创建时间,采用 UTC 标准计时
9143
9167
  :rtype: str
9144
9168
  """
9145
9169
  return self._CreatedTime
@@ -9161,7 +9185,8 @@ class LifecycleHook(AbstractModel):
9161
9185
 
9162
9186
  @property
9163
9187
  def LifecycleTransitionType(self):
9164
- """生命周期挂钩适用场景
9188
+ """进行生命周期挂钩的场景类型,取值范围包括 NORMAL 和 EXTENSION,默认值为 NORMAL。
9189
+ 说明:设置为EXTENSION值,在AttachInstances、DetachInstances、RemoveInstances 接口时会触发生命周期挂钩操作,值为NORMAL则不会在这些接口中触发生命周期挂钩。
9165
9190
  :rtype: str
9166
9191
  """
9167
9192
  return self._LifecycleTransitionType
@@ -12731,9 +12756,11 @@ class ScaleInInstancesRequest(AbstractModel):
12731
12756
 
12732
12757
  def __init__(self):
12733
12758
  r"""
12734
- :param _AutoScalingGroupId: 伸缩组ID
12759
+ :param _AutoScalingGroupId: 伸缩组ID。可以通过如下方式获取可用的伸缩组ID:
12760
+ <li>通过登录 [控制台](https://console.cloud.tencent.com/autoscaling/group) 查询伸缩组ID。</li>
12761
+ <li>通过调用接口 [DescribeAutoScalingGroups](https://cloud.tencent.com/document/api/377/20438) ,取返回信息中的 AutoScalingGroupId 获取伸缩组ID。</li>
12735
12762
  :type AutoScalingGroupId: str
12736
- :param _ScaleInNumber: 希望缩容的实例数量。
12763
+ :param _ScaleInNumber: 希望缩容的实例数量。该参数的静态取值范围是 [1,2000],同时该参数不得大于期望数与最小值的差值。例如伸缩组期望数为 100,最小值为 20,此时可取值范围为 [1,80]。
12737
12764
  :type ScaleInNumber: int
12738
12765
  """
12739
12766
  self._AutoScalingGroupId = None
@@ -12741,7 +12768,9 @@ class ScaleInInstancesRequest(AbstractModel):
12741
12768
 
12742
12769
  @property
12743
12770
  def AutoScalingGroupId(self):
12744
- """伸缩组ID
12771
+ """伸缩组ID。可以通过如下方式获取可用的伸缩组ID:
12772
+ <li>通过登录 [控制台](https://console.cloud.tencent.com/autoscaling/group) 查询伸缩组ID。</li>
12773
+ <li>通过调用接口 [DescribeAutoScalingGroups](https://cloud.tencent.com/document/api/377/20438) ,取返回信息中的 AutoScalingGroupId 获取伸缩组ID。</li>
12745
12774
  :rtype: str
12746
12775
  """
12747
12776
  return self._AutoScalingGroupId
@@ -12752,7 +12781,7 @@ class ScaleInInstancesRequest(AbstractModel):
12752
12781
 
12753
12782
  @property
12754
12783
  def ScaleInNumber(self):
12755
- """希望缩容的实例数量。
12784
+ """希望缩容的实例数量。该参数的静态取值范围是 [1,2000],同时该参数不得大于期望数与最小值的差值。例如伸缩组期望数为 100,最小值为 20,此时可取值范围为 [1,80]。
12756
12785
  :rtype: int
12757
12786
  """
12758
12787
  return self._ScaleInNumber
@@ -26,6 +26,29 @@ class BillingClient(AbstractClient):
26
26
  _service = 'billing'
27
27
 
28
28
 
29
+ def CreateAllocationRule(self, request):
30
+ """创建公摊规则
31
+
32
+ :param request: Request instance for CreateAllocationRule.
33
+ :type request: :class:`tencentcloud.billing.v20180709.models.CreateAllocationRuleRequest`
34
+ :rtype: :class:`tencentcloud.billing.v20180709.models.CreateAllocationRuleResponse`
35
+
36
+ """
37
+ try:
38
+ params = request._serialize()
39
+ headers = request.headers
40
+ body = self.call("CreateAllocationRule", params, headers=headers)
41
+ response = json.loads(body)
42
+ model = models.CreateAllocationRuleResponse()
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
+
29
52
  def CreateAllocationTag(self, request):
30
53
  """批量设置分账标签
31
54
 
@@ -49,6 +72,75 @@ class BillingClient(AbstractClient):
49
72
  raise TencentCloudSDKException(type(e).__name__, str(e))
50
73
 
51
74
 
75
+ def CreateAllocationUnit(self, request):
76
+ """创建分账单元
77
+
78
+ :param request: Request instance for CreateAllocationUnit.
79
+ :type request: :class:`tencentcloud.billing.v20180709.models.CreateAllocationUnitRequest`
80
+ :rtype: :class:`tencentcloud.billing.v20180709.models.CreateAllocationUnitResponse`
81
+
82
+ """
83
+ try:
84
+ params = request._serialize()
85
+ headers = request.headers
86
+ body = self.call("CreateAllocationUnit", params, headers=headers)
87
+ response = json.loads(body)
88
+ model = models.CreateAllocationUnitResponse()
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 CreateGatherRule(self, request):
99
+ """创建归集规则
100
+
101
+ :param request: Request instance for CreateGatherRule.
102
+ :type request: :class:`tencentcloud.billing.v20180709.models.CreateGatherRuleRequest`
103
+ :rtype: :class:`tencentcloud.billing.v20180709.models.CreateGatherRuleResponse`
104
+
105
+ """
106
+ try:
107
+ params = request._serialize()
108
+ headers = request.headers
109
+ body = self.call("CreateGatherRule", params, headers=headers)
110
+ response = json.loads(body)
111
+ model = models.CreateGatherRuleResponse()
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 DeleteAllocationRule(self, request):
122
+ """公摊规则删除接口
123
+
124
+ :param request: Request instance for DeleteAllocationRule.
125
+ :type request: :class:`tencentcloud.billing.v20180709.models.DeleteAllocationRuleRequest`
126
+ :rtype: :class:`tencentcloud.billing.v20180709.models.DeleteAllocationRuleResponse`
127
+
128
+ """
129
+ try:
130
+ params = request._serialize()
131
+ headers = request.headers
132
+ body = self.call("DeleteAllocationRule", params, headers=headers)
133
+ response = json.loads(body)
134
+ model = models.DeleteAllocationRuleResponse()
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))
142
+
143
+
52
144
  def DeleteAllocationTag(self, request):
53
145
  """批量取消设置分账标签
54
146
 
@@ -72,6 +164,52 @@ class BillingClient(AbstractClient):
72
164
  raise TencentCloudSDKException(type(e).__name__, str(e))
73
165
 
74
166
 
167
+ def DeleteAllocationUnit(self, request):
168
+ """删除分账单元
169
+
170
+ :param request: Request instance for DeleteAllocationUnit.
171
+ :type request: :class:`tencentcloud.billing.v20180709.models.DeleteAllocationUnitRequest`
172
+ :rtype: :class:`tencentcloud.billing.v20180709.models.DeleteAllocationUnitResponse`
173
+
174
+ """
175
+ try:
176
+ params = request._serialize()
177
+ headers = request.headers
178
+ body = self.call("DeleteAllocationUnit", params, headers=headers)
179
+ response = json.loads(body)
180
+ model = models.DeleteAllocationUnitResponse()
181
+ model._deserialize(response["Response"])
182
+ return model
183
+ except Exception as e:
184
+ if isinstance(e, TencentCloudSDKException):
185
+ raise
186
+ else:
187
+ raise TencentCloudSDKException(type(e).__name__, str(e))
188
+
189
+
190
+ def DeleteGatherRule(self, request):
191
+ """删除归集规则
192
+
193
+ :param request: Request instance for DeleteGatherRule.
194
+ :type request: :class:`tencentcloud.billing.v20180709.models.DeleteGatherRuleRequest`
195
+ :rtype: :class:`tencentcloud.billing.v20180709.models.DeleteGatherRuleResponse`
196
+
197
+ """
198
+ try:
199
+ params = request._serialize()
200
+ headers = request.headers
201
+ body = self.call("DeleteGatherRule", params, headers=headers)
202
+ response = json.loads(body)
203
+ model = models.DeleteGatherRuleResponse()
204
+ model._deserialize(response["Response"])
205
+ return model
206
+ except Exception as e:
207
+ if isinstance(e, TencentCloudSDKException):
208
+ raise
209
+ else:
210
+ raise TencentCloudSDKException(type(e).__name__, str(e))
211
+
212
+
75
213
  def DescribeAccountBalance(self, request):
76
214
  """获取云账户余额信息。
77
215
 
@@ -210,6 +348,52 @@ class BillingClient(AbstractClient):
210
348
  raise TencentCloudSDKException(type(e).__name__, str(e))
211
349
 
212
350
 
351
+ def DescribeAllocationRuleDetail(self, request):
352
+ """查询公摊规则详情
353
+
354
+ :param request: Request instance for DescribeAllocationRuleDetail.
355
+ :type request: :class:`tencentcloud.billing.v20180709.models.DescribeAllocationRuleDetailRequest`
356
+ :rtype: :class:`tencentcloud.billing.v20180709.models.DescribeAllocationRuleDetailResponse`
357
+
358
+ """
359
+ try:
360
+ params = request._serialize()
361
+ headers = request.headers
362
+ body = self.call("DescribeAllocationRuleDetail", params, headers=headers)
363
+ response = json.loads(body)
364
+ model = models.DescribeAllocationRuleDetailResponse()
365
+ model._deserialize(response["Response"])
366
+ return model
367
+ except Exception as e:
368
+ if isinstance(e, TencentCloudSDKException):
369
+ raise
370
+ else:
371
+ raise TencentCloudSDKException(type(e).__name__, str(e))
372
+
373
+
374
+ def DescribeAllocationRuleSummary(self, request):
375
+ """查询所有公摊规则概览
376
+
377
+ :param request: Request instance for DescribeAllocationRuleSummary.
378
+ :type request: :class:`tencentcloud.billing.v20180709.models.DescribeAllocationRuleSummaryRequest`
379
+ :rtype: :class:`tencentcloud.billing.v20180709.models.DescribeAllocationRuleSummaryResponse`
380
+
381
+ """
382
+ try:
383
+ params = request._serialize()
384
+ headers = request.headers
385
+ body = self.call("DescribeAllocationRuleSummary", params, headers=headers)
386
+ response = json.loads(body)
387
+ model = models.DescribeAllocationRuleSummaryResponse()
388
+ model._deserialize(response["Response"])
389
+ return model
390
+ except Exception as e:
391
+ if isinstance(e, TencentCloudSDKException):
392
+ raise
393
+ else:
394
+ raise TencentCloudSDKException(type(e).__name__, str(e))
395
+
396
+
213
397
  def DescribeAllocationSummaryByBusiness(self, request):
214
398
  """查询分账账单按产品汇总
215
399
 
@@ -279,6 +463,29 @@ class BillingClient(AbstractClient):
279
463
  raise TencentCloudSDKException(type(e).__name__, str(e))
280
464
 
281
465
 
466
+ def DescribeAllocationTree(self, request):
467
+ """查询分账目录树
468
+
469
+ :param request: Request instance for DescribeAllocationTree.
470
+ :type request: :class:`tencentcloud.billing.v20180709.models.DescribeAllocationTreeRequest`
471
+ :rtype: :class:`tencentcloud.billing.v20180709.models.DescribeAllocationTreeResponse`
472
+
473
+ """
474
+ try:
475
+ params = request._serialize()
476
+ headers = request.headers
477
+ body = self.call("DescribeAllocationTree", params, headers=headers)
478
+ response = json.loads(body)
479
+ model = models.DescribeAllocationTreeResponse()
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(type(e).__name__, str(e))
487
+
488
+
282
489
  def DescribeAllocationTrendByMonth(self, request):
283
490
  """查询分账账单费用趋势
284
491
 
@@ -302,6 +509,29 @@ class BillingClient(AbstractClient):
302
509
  raise TencentCloudSDKException(type(e).__name__, str(e))
303
510
 
304
511
 
512
+ def DescribeAllocationUnitDetail(self, request):
513
+ """查询分账单元详情
514
+
515
+ :param request: Request instance for DescribeAllocationUnitDetail.
516
+ :type request: :class:`tencentcloud.billing.v20180709.models.DescribeAllocationUnitDetailRequest`
517
+ :rtype: :class:`tencentcloud.billing.v20180709.models.DescribeAllocationUnitDetailResponse`
518
+
519
+ """
520
+ try:
521
+ params = request._serialize()
522
+ headers = request.headers
523
+ body = self.call("DescribeAllocationUnitDetail", params, headers=headers)
524
+ response = json.loads(body)
525
+ model = models.DescribeAllocationUnitDetailResponse()
526
+ model._deserialize(response["Response"])
527
+ return model
528
+ except Exception as e:
529
+ if isinstance(e, TencentCloudSDKException):
530
+ raise
531
+ else:
532
+ raise TencentCloudSDKException(type(e).__name__, str(e))
533
+
534
+
305
535
  def DescribeBillAdjustInfo(self, request):
306
536
  """可以通过API获取当前UIN是否有调账,客户可以更快地主动地获取调账情况。
307
537
 
@@ -884,6 +1114,29 @@ class BillingClient(AbstractClient):
884
1114
  raise TencentCloudSDKException(type(e).__name__, str(e))
885
1115
 
886
1116
 
1117
+ def DescribeGatherRuleDetail(self, request):
1118
+ """查询归集规则详情
1119
+
1120
+ :param request: Request instance for DescribeGatherRuleDetail.
1121
+ :type request: :class:`tencentcloud.billing.v20180709.models.DescribeGatherRuleDetailRequest`
1122
+ :rtype: :class:`tencentcloud.billing.v20180709.models.DescribeGatherRuleDetailResponse`
1123
+
1124
+ """
1125
+ try:
1126
+ params = request._serialize()
1127
+ headers = request.headers
1128
+ body = self.call("DescribeGatherRuleDetail", params, headers=headers)
1129
+ response = json.loads(body)
1130
+ model = models.DescribeGatherRuleDetailResponse()
1131
+ model._deserialize(response["Response"])
1132
+ return model
1133
+ except Exception as e:
1134
+ if isinstance(e, TencentCloudSDKException):
1135
+ raise
1136
+ else:
1137
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1138
+
1139
+
887
1140
  def DescribeSavingPlanResourceInfo(self, request):
888
1141
  """查询节省计划详情
889
1142
 
@@ -976,6 +1229,75 @@ class BillingClient(AbstractClient):
976
1229
  raise TencentCloudSDKException(type(e).__name__, str(e))
977
1230
 
978
1231
 
1232
+ def ModifyAllocationRule(self, request):
1233
+ """编辑公摊规则
1234
+
1235
+ :param request: Request instance for ModifyAllocationRule.
1236
+ :type request: :class:`tencentcloud.billing.v20180709.models.ModifyAllocationRuleRequest`
1237
+ :rtype: :class:`tencentcloud.billing.v20180709.models.ModifyAllocationRuleResponse`
1238
+
1239
+ """
1240
+ try:
1241
+ params = request._serialize()
1242
+ headers = request.headers
1243
+ body = self.call("ModifyAllocationRule", params, headers=headers)
1244
+ response = json.loads(body)
1245
+ model = models.ModifyAllocationRuleResponse()
1246
+ model._deserialize(response["Response"])
1247
+ return model
1248
+ except Exception as e:
1249
+ if isinstance(e, TencentCloudSDKException):
1250
+ raise
1251
+ else:
1252
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1253
+
1254
+
1255
+ def ModifyAllocationUnit(self, request):
1256
+ """修改分账单元信息
1257
+
1258
+ :param request: Request instance for ModifyAllocationUnit.
1259
+ :type request: :class:`tencentcloud.billing.v20180709.models.ModifyAllocationUnitRequest`
1260
+ :rtype: :class:`tencentcloud.billing.v20180709.models.ModifyAllocationUnitResponse`
1261
+
1262
+ """
1263
+ try:
1264
+ params = request._serialize()
1265
+ headers = request.headers
1266
+ body = self.call("ModifyAllocationUnit", params, headers=headers)
1267
+ response = json.loads(body)
1268
+ model = models.ModifyAllocationUnitResponse()
1269
+ model._deserialize(response["Response"])
1270
+ return model
1271
+ except Exception as e:
1272
+ if isinstance(e, TencentCloudSDKException):
1273
+ raise
1274
+ else:
1275
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1276
+
1277
+
1278
+ def ModifyGatherRule(self, request):
1279
+ """编辑归集规则
1280
+
1281
+ :param request: Request instance for ModifyGatherRule.
1282
+ :type request: :class:`tencentcloud.billing.v20180709.models.ModifyGatherRuleRequest`
1283
+ :rtype: :class:`tencentcloud.billing.v20180709.models.ModifyGatherRuleResponse`
1284
+
1285
+ """
1286
+ try:
1287
+ params = request._serialize()
1288
+ headers = request.headers
1289
+ body = self.call("ModifyGatherRule", params, headers=headers)
1290
+ response = json.loads(body)
1291
+ model = models.ModifyGatherRuleResponse()
1292
+ model._deserialize(response["Response"])
1293
+ return model
1294
+ except Exception as e:
1295
+ if isinstance(e, TencentCloudSDKException):
1296
+ raise
1297
+ else:
1298
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1299
+
1300
+
979
1301
  def PayDeals(self, request):
980
1302
  """支付订单
981
1303
 
@@ -44,6 +44,9 @@ FAILEDOPERATION_NEEDPAYTOGETER = 'FailedOperation.NeedPayTogeter'
44
44
  # 套餐订单需一起购买。
45
45
  FAILEDOPERATION_NEEDPAYTOGETHER = 'FailedOperation.NeedPayTogether'
46
46
 
47
+ # 数量超过最大限制。
48
+ FAILEDOPERATION_NUMLIMITERROR = 'FailedOperation.NumLimitError'
49
+
47
50
  # 支付失败,请联系腾讯云工作人员处理。
48
51
  FAILEDOPERATION_PAYPRICEERROR = 'FailedOperation.PayPriceError'
49
52
 
@@ -65,6 +68,9 @@ FAILEDOPERATION_TAGKEYNOTEXIST = 'FailedOperation.TagKeyNotExist'
65
68
  # 内部错误。
66
69
  INTERNALERROR = 'InternalError'
67
70
 
71
+ # 数据库操作失败。
72
+ INTERNALERROR_DBOPERATERROR = 'InternalError.DbOperatError'
73
+
68
74
  # 网关错误。
69
75
  INTERNALERROR_GATEWAYERROR = 'InternalError.GatewayError'
70
76
 
@@ -89,6 +95,9 @@ INVALIDPARAMETERVALUE = 'InvalidParameterValue'
89
95
  # 缺少参数错误。
90
96
  MISSINGPARAMETER = 'MissingParameter'
91
97
 
98
+ # 操作被拒绝。
99
+ OPERATIONDENIED = 'OperationDenied'
100
+
92
101
  # 账号没有cam授权。
93
102
  UNAUTHORIZEDOPERATION_CAMNOAUTH = 'UnauthorizedOperation.CamNoAuth'
94
103