tencentcloud-sdk-python 3.1.110__py2.py3-none-any.whl → 3.1.111__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 (28) hide show
  1. tencentcloud/__init__.py +1 -1
  2. tencentcloud/ags/v20250920/models.py +4 -4
  3. tencentcloud/cfw/v20190904/models.py +46 -48
  4. tencentcloud/cls/v20201016/cls_client.py +48 -0
  5. tencentcloud/cls/v20201016/cls_client_async.py +38 -0
  6. tencentcloud/cls/v20201016/models.py +83 -0
  7. tencentcloud/cwp/v20180228/models.py +337 -246
  8. tencentcloud/cynosdb/v20190107/models.py +25 -10
  9. tencentcloud/ess/v20201111/ess_client.py +22 -5
  10. tencentcloud/ess/v20201111/ess_client_async.py +22 -5
  11. tencentcloud/ess/v20201111/models.py +24 -50
  12. tencentcloud/essbasic/v20210526/models.py +22 -38
  13. tencentcloud/mna/v20210119/models.py +10 -10
  14. tencentcloud/ocr/v20181119/errorcodes.py +0 -3
  15. tencentcloud/ocr/v20181119/models.py +0 -276
  16. tencentcloud/ocr/v20181119/ocr_client.py +0 -25
  17. tencentcloud/ocr/v20181119/ocr_client_async.py +0 -20
  18. tencentcloud/tcb/v20180608/models.py +31 -16
  19. tencentcloud/teo/v20220901/errorcodes.py +6 -0
  20. tencentcloud/tokenhub/v20260322/models.py +34 -0
  21. tencentcloud/tokenhub/v20260322/tokenhub_client.py +25 -0
  22. tencentcloud/tokenhub/v20260322/tokenhub_client_async.py +20 -0
  23. tencentcloud/vod/v20180717/models.py +32 -2
  24. {tencentcloud_sdk_python-3.1.110.dist-info → tencentcloud_sdk_python-3.1.111.dist-info}/METADATA +1 -1
  25. {tencentcloud_sdk_python-3.1.110.dist-info → tencentcloud_sdk_python-3.1.111.dist-info}/RECORD +28 -28
  26. {tencentcloud_sdk_python-3.1.110.dist-info → tencentcloud_sdk_python-3.1.111.dist-info}/LICENSE +0 -0
  27. {tencentcloud_sdk_python-3.1.110.dist-info → tencentcloud_sdk_python-3.1.111.dist-info}/WHEEL +0 -0
  28. {tencentcloud_sdk_python-3.1.110.dist-info → tencentcloud_sdk_python-3.1.111.dist-info}/top_level.txt +0 -0
tencentcloud/__init__.py CHANGED
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.1.110'
17
+ __version__ = '3.1.111'
@@ -2750,9 +2750,9 @@ class ResourceConfiguration(AbstractModel):
2750
2750
 
2751
2751
  def __init__(self):
2752
2752
  r"""
2753
- :param _CPU: cpu 资源量
2753
+ :param _CPU: <p>cpu 资源量</p>
2754
2754
  :type CPU: str
2755
- :param _Memory: 内存资源量
2755
+ :param _Memory: <p>内存资源量</p>
2756
2756
  :type Memory: str
2757
2757
  """
2758
2758
  self._CPU = None
@@ -2760,7 +2760,7 @@ class ResourceConfiguration(AbstractModel):
2760
2760
 
2761
2761
  @property
2762
2762
  def CPU(self):
2763
- r"""cpu 资源量
2763
+ r"""<p>cpu 资源量</p>
2764
2764
  :rtype: str
2765
2765
  """
2766
2766
  return self._CPU
@@ -2771,7 +2771,7 @@ class ResourceConfiguration(AbstractModel):
2771
2771
 
2772
2772
  @property
2773
2773
  def Memory(self):
2774
- r"""内存资源量
2774
+ r"""<p>内存资源量</p>
2775
2775
  :rtype: str
2776
2776
  """
2777
2777
  return self._Memory
@@ -2155,22 +2155,21 @@ class CfwInsStatus(AbstractModel):
2155
2155
 
2156
2156
  def __init__(self):
2157
2157
  r"""
2158
- :param _CfwInsId: 防火墙实例id
2158
+ :param _CfwInsId: <p>防火墙实例id</p>
2159
2159
  :type CfwInsId: str
2160
- :param _FwType: 防火墙类型,nat:nat防火墙;ew:vpc间防火墙
2160
+ :param _FwType: <p>防火墙类型,nat:nat防火墙;ew:vpc间防火墙</p>
2161
2161
  :type FwType: str
2162
- :param _Region: 实例所属地域
2162
+ :param _Region: <p>实例所属地域</p>
2163
2163
  :type Region: str
2164
- :param _Status: 实例运行状态,Running:正常运行;BypassAutoFix:bypass修复;Updating:升级中;Expand:扩容中;BypassManual:手动触发bypass中;BypassAuto:自动触发bypass
2164
+ :param _Status: <p>实例运行状态,Running:正常运行;BypassAutoFix:bypass修复;Updating:升级中;Expand:扩容中;BypassManual:手动触发bypass中;BypassAuto:自动触发bypass中;BypassTcDrop:丢包触发bypass中</p><p>枚举值:</p><ul><li>Running: 正常运行</li><li>BypassAutoFix: 自动bypass已修复</li><li>Updating: 实例升级中</li><li>Expand: 实例扩容中</li><li>BypassManual: 手动触发bypass中</li><li>BypassAuto: 自动触发bypass中</li><li>BypassTcDrop: 丢包触发bypass中</li></ul>
2165
2165
  :type Status: str
2166
- :param _EventTime: 事件时间
2166
+ :param _EventTime: <p>事件时间</p>
2167
2167
  :type EventTime: str
2168
- :param _RecoverTime: 恢复时间
2168
+ :param _RecoverTime: <p>恢复时间</p>
2169
2169
  :type RecoverTime: str
2170
- :param _CfwInsName: 实例名称
2170
+ :param _CfwInsName: <p>实例名称</p>
2171
2171
  :type CfwInsName: str
2172
- :param _TrafficMode: Normal: 正常模式
2173
- OnlyRoute: 透明模式
2172
+ :param _TrafficMode: <p>Normal: 正常模式<br>OnlyRoute: 透明模式</p>
2174
2173
  :type TrafficMode: str
2175
2174
  """
2176
2175
  self._CfwInsId = None
@@ -2184,7 +2183,7 @@ OnlyRoute: 透明模式
2184
2183
 
2185
2184
  @property
2186
2185
  def CfwInsId(self):
2187
- r"""防火墙实例id
2186
+ r"""<p>防火墙实例id</p>
2188
2187
  :rtype: str
2189
2188
  """
2190
2189
  return self._CfwInsId
@@ -2195,7 +2194,7 @@ OnlyRoute: 透明模式
2195
2194
 
2196
2195
  @property
2197
2196
  def FwType(self):
2198
- r"""防火墙类型,nat:nat防火墙;ew:vpc间防火墙
2197
+ r"""<p>防火墙类型,nat:nat防火墙;ew:vpc间防火墙</p>
2199
2198
  :rtype: str
2200
2199
  """
2201
2200
  return self._FwType
@@ -2206,7 +2205,7 @@ OnlyRoute: 透明模式
2206
2205
 
2207
2206
  @property
2208
2207
  def Region(self):
2209
- r"""实例所属地域
2208
+ r"""<p>实例所属地域</p>
2210
2209
  :rtype: str
2211
2210
  """
2212
2211
  return self._Region
@@ -2217,7 +2216,7 @@ OnlyRoute: 透明模式
2217
2216
 
2218
2217
  @property
2219
2218
  def Status(self):
2220
- r"""实例运行状态,Running:正常运行;BypassAutoFix:bypass修复;Updating:升级中;Expand:扩容中;BypassManual:手动触发bypass中;BypassAuto:自动触发bypass
2219
+ r"""<p>实例运行状态,Running:正常运行;BypassAutoFix:bypass修复;Updating:升级中;Expand:扩容中;BypassManual:手动触发bypass中;BypassAuto:自动触发bypass中;BypassTcDrop:丢包触发bypass中</p><p>枚举值:</p><ul><li>Running: 正常运行</li><li>BypassAutoFix: 自动bypass已修复</li><li>Updating: 实例升级中</li><li>Expand: 实例扩容中</li><li>BypassManual: 手动触发bypass中</li><li>BypassAuto: 自动触发bypass中</li><li>BypassTcDrop: 丢包触发bypass中</li></ul>
2221
2220
  :rtype: str
2222
2221
  """
2223
2222
  return self._Status
@@ -2228,7 +2227,7 @@ OnlyRoute: 透明模式
2228
2227
 
2229
2228
  @property
2230
2229
  def EventTime(self):
2231
- r"""事件时间
2230
+ r"""<p>事件时间</p>
2232
2231
  :rtype: str
2233
2232
  """
2234
2233
  return self._EventTime
@@ -2239,7 +2238,7 @@ OnlyRoute: 透明模式
2239
2238
 
2240
2239
  @property
2241
2240
  def RecoverTime(self):
2242
- r"""恢复时间
2241
+ r"""<p>恢复时间</p>
2243
2242
  :rtype: str
2244
2243
  """
2245
2244
  return self._RecoverTime
@@ -2250,7 +2249,7 @@ OnlyRoute: 透明模式
2250
2249
 
2251
2250
  @property
2252
2251
  def CfwInsName(self):
2253
- r"""实例名称
2252
+ r"""<p>实例名称</p>
2254
2253
  :rtype: str
2255
2254
  """
2256
2255
  return self._CfwInsName
@@ -2261,8 +2260,7 @@ OnlyRoute: 透明模式
2261
2260
 
2262
2261
  @property
2263
2262
  def TrafficMode(self):
2264
- r"""Normal: 正常模式
2265
- OnlyRoute: 透明模式
2263
+ r"""<p>Normal: 正常模式<br>OnlyRoute: 透明模式</p>
2266
2264
  :rtype: str
2267
2265
  """
2268
2266
  return self._TrafficMode
@@ -5014,35 +5012,35 @@ class CreateNatRuleItem(AbstractModel):
5014
5012
 
5015
5013
  def __init__(self):
5016
5014
  r"""
5017
- :param _SourceContent: 访问源示例: net:IP/CIDR(192.168.0.2)
5015
+ :param _SourceContent: <p>访问源示例: net:IP/CIDR(192.168.0.2)</p>
5018
5016
  :type SourceContent: str
5019
- :param _SourceType: 访问源类型:入向规则时类型可以为 ip,net,template,location;出向规则时可以为 ip,net,template,instance,group,tag
5017
+ :param _SourceType: <p>访问源类型:入向规则时类型可以为 ip,net,template,location;出向规则时可以为 ip,net,template,instance,group,tag</p>
5020
5018
  :type SourceType: str
5021
- :param _TargetContent: 访问目的示例: net:IP/CIDR(192.168.0.2) domain:域名规则,例如*.qq.com
5019
+ :param _TargetContent: <p>访问目的示例: net:IP/CIDR(192.168.0.2) domain:域名规则,例如*.qq.com</p>
5022
5020
  :type TargetContent: str
5023
- :param _TargetType: 访问目的类型:入向规则时类型可以为ip,net,template,instance,group,tag;出向规则时可以为 ip,net,domain,template,location
5021
+ :param _TargetType: <p>访问目的类型:入向规则时类型可以为ip,net,template,instance,group,tag;出向规则时可以为 ip,net,domain,template,location</p>
5024
5022
  :type TargetType: str
5025
- :param _Protocol: 协议,可选的值: TCP UDP ICMP ANY HTTP HTTPS HTTP/HTTPS SMTP SMTPS SMTP/SMTPS FTP DNS
5023
+ :param _Protocol: <p>协议,可选的值: TCP UDP ICMP ANY HTTP HTTPS HTTP/HTTPS SMTP SMTPS SMTP/SMTPS FTP DNS</p>
5026
5024
  :type Protocol: str
5027
- :param _RuleAction: 访问控制策略中设置的流量通过云防火墙的方式。取值: accept:放行 drop:拒绝 log:观察
5025
+ :param _RuleAction: <p>访问控制策略中设置的流量通过云防火墙的方式。取值: accept:放行 drop:拒绝 log:观察</p>
5028
5026
  :type RuleAction: str
5029
- :param _Port: 访问控制策略的端口。取值: -1/-1:全部端口 80:80端口
5027
+ :param _Port: <p>访问控制策略的端口。取值: -1/-1:全部端口 80:80端口</p>
5030
5028
  :type Port: str
5031
- :param _Direction: 规则方向:1,入站;0,出站
5029
+ :param _Direction: <p>规则方向:1,入站;0,出站</p>
5032
5030
  :type Direction: int
5033
- :param _OrderIndex: 规则序号
5031
+ :param _OrderIndex: <p>规则序号</p>
5034
5032
  :type OrderIndex: int
5035
- :param _Enable: 规则状态,true表示启用,false表示禁用
5033
+ :param _Enable: <p>规则状态,true表示启用,false表示禁用</p>
5036
5034
  :type Enable: str
5037
- :param _Uuid: 规则对应的唯一id,创建规则时无需填写
5035
+ :param _Uuid: <p>规则对应的唯一id,创建规则AddNatAcRule时无需填写;修改规则ModifyNatAcRule时必须填写</p><p>创建规则AddNatAcRule时无需填写;修改规则ModifyNatAcRule时必须填写</p>
5038
5036
  :type Uuid: int
5039
- :param _Description: 描述
5037
+ :param _Description: <p>描述</p>
5040
5038
  :type Description: str
5041
- :param _ParamTemplateId: 端口协议组ID
5039
+ :param _ParamTemplateId: <p>端口协议组ID</p>
5042
5040
  :type ParamTemplateId: str
5043
- :param _InternalUuid: 内部id
5041
+ :param _InternalUuid: <p>内部id</p>
5044
5042
  :type InternalUuid: int
5045
- :param _Scope: 规则生效的范围:ALL,全局生效;ap-guangzhou,生效的地域;cfwnat-xxx,生效基于实例维度
5043
+ :param _Scope: <p>规则生效的范围:ALL,全局生效;ap-guangzhou,生效的地域;cfwnat-xxx,生效基于实例维度</p>
5046
5044
  :type Scope: str
5047
5045
  """
5048
5046
  self._SourceContent = None
@@ -5063,7 +5061,7 @@ class CreateNatRuleItem(AbstractModel):
5063
5061
 
5064
5062
  @property
5065
5063
  def SourceContent(self):
5066
- r"""访问源示例: net:IP/CIDR(192.168.0.2)
5064
+ r"""<p>访问源示例: net:IP/CIDR(192.168.0.2)</p>
5067
5065
  :rtype: str
5068
5066
  """
5069
5067
  return self._SourceContent
@@ -5074,7 +5072,7 @@ class CreateNatRuleItem(AbstractModel):
5074
5072
 
5075
5073
  @property
5076
5074
  def SourceType(self):
5077
- r"""访问源类型:入向规则时类型可以为 ip,net,template,location;出向规则时可以为 ip,net,template,instance,group,tag
5075
+ r"""<p>访问源类型:入向规则时类型可以为 ip,net,template,location;出向规则时可以为 ip,net,template,instance,group,tag</p>
5078
5076
  :rtype: str
5079
5077
  """
5080
5078
  return self._SourceType
@@ -5085,7 +5083,7 @@ class CreateNatRuleItem(AbstractModel):
5085
5083
 
5086
5084
  @property
5087
5085
  def TargetContent(self):
5088
- r"""访问目的示例: net:IP/CIDR(192.168.0.2) domain:域名规则,例如*.qq.com
5086
+ r"""<p>访问目的示例: net:IP/CIDR(192.168.0.2) domain:域名规则,例如*.qq.com</p>
5089
5087
  :rtype: str
5090
5088
  """
5091
5089
  return self._TargetContent
@@ -5096,7 +5094,7 @@ class CreateNatRuleItem(AbstractModel):
5096
5094
 
5097
5095
  @property
5098
5096
  def TargetType(self):
5099
- r"""访问目的类型:入向规则时类型可以为ip,net,template,instance,group,tag;出向规则时可以为 ip,net,domain,template,location
5097
+ r"""<p>访问目的类型:入向规则时类型可以为ip,net,template,instance,group,tag;出向规则时可以为 ip,net,domain,template,location</p>
5100
5098
  :rtype: str
5101
5099
  """
5102
5100
  return self._TargetType
@@ -5107,7 +5105,7 @@ class CreateNatRuleItem(AbstractModel):
5107
5105
 
5108
5106
  @property
5109
5107
  def Protocol(self):
5110
- r"""协议,可选的值: TCP UDP ICMP ANY HTTP HTTPS HTTP/HTTPS SMTP SMTPS SMTP/SMTPS FTP DNS
5108
+ r"""<p>协议,可选的值: TCP UDP ICMP ANY HTTP HTTPS HTTP/HTTPS SMTP SMTPS SMTP/SMTPS FTP DNS</p>
5111
5109
  :rtype: str
5112
5110
  """
5113
5111
  return self._Protocol
@@ -5118,7 +5116,7 @@ class CreateNatRuleItem(AbstractModel):
5118
5116
 
5119
5117
  @property
5120
5118
  def RuleAction(self):
5121
- r"""访问控制策略中设置的流量通过云防火墙的方式。取值: accept:放行 drop:拒绝 log:观察
5119
+ r"""<p>访问控制策略中设置的流量通过云防火墙的方式。取值: accept:放行 drop:拒绝 log:观察</p>
5122
5120
  :rtype: str
5123
5121
  """
5124
5122
  return self._RuleAction
@@ -5129,7 +5127,7 @@ class CreateNatRuleItem(AbstractModel):
5129
5127
 
5130
5128
  @property
5131
5129
  def Port(self):
5132
- r"""访问控制策略的端口。取值: -1/-1:全部端口 80:80端口
5130
+ r"""<p>访问控制策略的端口。取值: -1/-1:全部端口 80:80端口</p>
5133
5131
  :rtype: str
5134
5132
  """
5135
5133
  return self._Port
@@ -5140,7 +5138,7 @@ class CreateNatRuleItem(AbstractModel):
5140
5138
 
5141
5139
  @property
5142
5140
  def Direction(self):
5143
- r"""规则方向:1,入站;0,出站
5141
+ r"""<p>规则方向:1,入站;0,出站</p>
5144
5142
  :rtype: int
5145
5143
  """
5146
5144
  return self._Direction
@@ -5151,7 +5149,7 @@ class CreateNatRuleItem(AbstractModel):
5151
5149
 
5152
5150
  @property
5153
5151
  def OrderIndex(self):
5154
- r"""规则序号
5152
+ r"""<p>规则序号</p>
5155
5153
  :rtype: int
5156
5154
  """
5157
5155
  return self._OrderIndex
@@ -5162,7 +5160,7 @@ class CreateNatRuleItem(AbstractModel):
5162
5160
 
5163
5161
  @property
5164
5162
  def Enable(self):
5165
- r"""规则状态,true表示启用,false表示禁用
5163
+ r"""<p>规则状态,true表示启用,false表示禁用</p>
5166
5164
  :rtype: str
5167
5165
  """
5168
5166
  return self._Enable
@@ -5173,7 +5171,7 @@ class CreateNatRuleItem(AbstractModel):
5173
5171
 
5174
5172
  @property
5175
5173
  def Uuid(self):
5176
- r"""规则对应的唯一id,创建规则时无需填写
5174
+ r"""<p>规则对应的唯一id,创建规则AddNatAcRule时无需填写;修改规则ModifyNatAcRule时必须填写</p><p>创建规则AddNatAcRule时无需填写;修改规则ModifyNatAcRule时必须填写</p>
5177
5175
  :rtype: int
5178
5176
  """
5179
5177
  return self._Uuid
@@ -5184,7 +5182,7 @@ class CreateNatRuleItem(AbstractModel):
5184
5182
 
5185
5183
  @property
5186
5184
  def Description(self):
5187
- r"""描述
5185
+ r"""<p>描述</p>
5188
5186
  :rtype: str
5189
5187
  """
5190
5188
  return self._Description
@@ -5195,7 +5193,7 @@ class CreateNatRuleItem(AbstractModel):
5195
5193
 
5196
5194
  @property
5197
5195
  def ParamTemplateId(self):
5198
- r"""端口协议组ID
5196
+ r"""<p>端口协议组ID</p>
5199
5197
  :rtype: str
5200
5198
  """
5201
5199
  return self._ParamTemplateId
@@ -5206,7 +5204,7 @@ class CreateNatRuleItem(AbstractModel):
5206
5204
 
5207
5205
  @property
5208
5206
  def InternalUuid(self):
5209
- r"""内部id
5207
+ r"""<p>内部id</p>
5210
5208
  :rtype: int
5211
5209
  """
5212
5210
  return self._InternalUuid
@@ -5217,7 +5215,7 @@ class CreateNatRuleItem(AbstractModel):
5217
5215
 
5218
5216
  @property
5219
5217
  def Scope(self):
5220
- r"""规则生效的范围:ALL,全局生效;ap-guangzhou,生效的地域;cfwnat-xxx,生效基于实例维度
5218
+ r"""<p>规则生效的范围:ALL,全局生效;ap-guangzhou,生效的地域;cfwnat-xxx,生效基于实例维度</p>
5221
5219
  :rtype: str
5222
5220
  """
5223
5221
  return self._Scope
@@ -3280,6 +3280,30 @@ class ClsClient(AbstractClient):
3280
3280
  raise TencentCloudSDKException(type(e).__name__, str(e))
3281
3281
 
3282
3282
 
3283
+ def GetClsService(self, request):
3284
+ r"""查询日志服务是否开通
3285
+ API 中 Region 填写任意一个地域均可,建议使用广州(ap-guangzhou)
3286
+
3287
+ :param request: Request instance for GetClsService.
3288
+ :type request: :class:`tencentcloud.cls.v20201016.models.GetClsServiceRequest`
3289
+ :rtype: :class:`tencentcloud.cls.v20201016.models.GetClsServiceResponse`
3290
+
3291
+ """
3292
+ try:
3293
+ params = request._serialize()
3294
+ headers = request.headers
3295
+ body = self.call("GetClsService", params, headers=headers)
3296
+ response = json.loads(body)
3297
+ model = models.GetClsServiceResponse()
3298
+ model._deserialize(response["Response"])
3299
+ return model
3300
+ except Exception as e:
3301
+ if isinstance(e, TencentCloudSDKException):
3302
+ raise
3303
+ else:
3304
+ raise TencentCloudSDKException(type(e).__name__, str(e))
3305
+
3306
+
3283
3307
  def GetMetricLabelValues(self, request):
3284
3308
  r"""获取时序label values列表
3285
3309
 
@@ -4155,6 +4179,30 @@ class ClsClient(AbstractClient):
4155
4179
  raise TencentCloudSDKException(type(e).__name__, str(e))
4156
4180
 
4157
4181
 
4182
+ def OpenClsService(self, request):
4183
+ r"""开通日志服务
4184
+ API 中 Region 填写任意一个地域均可开通所有地域的 CLS,建议使用广州(ap-guangzhou)
4185
+
4186
+ :param request: Request instance for OpenClsService.
4187
+ :type request: :class:`tencentcloud.cls.v20201016.models.OpenClsServiceRequest`
4188
+ :rtype: :class:`tencentcloud.cls.v20201016.models.OpenClsServiceResponse`
4189
+
4190
+ """
4191
+ try:
4192
+ params = request._serialize()
4193
+ headers = request.headers
4194
+ body = self.call("OpenClsService", params, headers=headers)
4195
+ response = json.loads(body)
4196
+ model = models.OpenClsServiceResponse()
4197
+ model._deserialize(response["Response"])
4198
+ return model
4199
+ except Exception as e:
4200
+ if isinstance(e, TencentCloudSDKException):
4201
+ raise
4202
+ else:
4203
+ raise TencentCloudSDKException(type(e).__name__, str(e))
4204
+
4205
+
4158
4206
  def OpenKafkaConsumer(self, request):
4159
4207
  r"""打开Kafka协议消费功能
4160
4208
 
@@ -2579,6 +2579,25 @@ class ClsClient(AbstractClient):
2579
2579
 
2580
2580
  return await self.call_and_deserialize(**kwargs)
2581
2581
 
2582
+ async def GetClsService(
2583
+ self,
2584
+ request: models.GetClsServiceRequest,
2585
+ opts: Dict = None,
2586
+ ) -> models.GetClsServiceResponse:
2587
+ """
2588
+ 查询日志服务是否开通
2589
+ API 中 Region 填写任意一个地域均可,建议使用广州(ap-guangzhou)
2590
+ """
2591
+
2592
+ kwargs = {}
2593
+ kwargs["action"] = "GetClsService"
2594
+ kwargs["params"] = request._serialize()
2595
+ kwargs["resp_cls"] = models.GetClsServiceResponse
2596
+ kwargs["headers"] = request.headers
2597
+ kwargs["opts"] = opts or {}
2598
+
2599
+ return await self.call_and_deserialize(**kwargs)
2600
+
2582
2601
  async def GetMetricLabelValues(
2583
2602
  self,
2584
2603
  request: models.GetMetricLabelValuesRequest,
@@ -3264,6 +3283,25 @@ class ClsClient(AbstractClient):
3264
3283
 
3265
3284
  return await self.call_and_deserialize(**kwargs)
3266
3285
 
3286
+ async def OpenClsService(
3287
+ self,
3288
+ request: models.OpenClsServiceRequest,
3289
+ opts: Dict = None,
3290
+ ) -> models.OpenClsServiceResponse:
3291
+ """
3292
+ 开通日志服务
3293
+ API 中 Region 填写任意一个地域均可开通所有地域的 CLS,建议使用广州(ap-guangzhou)
3294
+ """
3295
+
3296
+ kwargs = {}
3297
+ kwargs["action"] = "OpenClsService"
3298
+ kwargs["params"] = request._serialize()
3299
+ kwargs["resp_cls"] = models.OpenClsServiceResponse
3300
+ kwargs["headers"] = request.headers
3301
+ kwargs["opts"] = opts or {}
3302
+
3303
+ return await self.call_and_deserialize(**kwargs)
3304
+
3267
3305
  async def OpenKafkaConsumer(
3268
3306
  self,
3269
3307
  request: models.OpenKafkaConsumerRequest,
@@ -31496,6 +31496,55 @@ class GetAlarmLogResponse(AbstractModel):
31496
31496
  self._RequestId = params.get("RequestId")
31497
31497
 
31498
31498
 
31499
+ class GetClsServiceRequest(AbstractModel):
31500
+ r"""GetClsService请求参数结构体
31501
+
31502
+ """
31503
+
31504
+
31505
+ class GetClsServiceResponse(AbstractModel):
31506
+ r"""GetClsService返回参数结构体
31507
+
31508
+ """
31509
+
31510
+ def __init__(self):
31511
+ r"""
31512
+ :param _Status: 账户服务开通状态,0:服务已开通,1:服务未开通
31513
+ :type Status: int
31514
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
31515
+ :type RequestId: str
31516
+ """
31517
+ self._Status = None
31518
+ self._RequestId = None
31519
+
31520
+ @property
31521
+ def Status(self):
31522
+ r"""账户服务开通状态,0:服务已开通,1:服务未开通
31523
+ :rtype: int
31524
+ """
31525
+ return self._Status
31526
+
31527
+ @Status.setter
31528
+ def Status(self, Status):
31529
+ self._Status = Status
31530
+
31531
+ @property
31532
+ def RequestId(self):
31533
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
31534
+ :rtype: str
31535
+ """
31536
+ return self._RequestId
31537
+
31538
+ @RequestId.setter
31539
+ def RequestId(self, RequestId):
31540
+ self._RequestId = RequestId
31541
+
31542
+
31543
+ def _deserialize(self, params):
31544
+ self._Status = params.get("Status")
31545
+ self._RequestId = params.get("RequestId")
31546
+
31547
+
31499
31548
  class GetMetricLabelValuesRequest(AbstractModel):
31500
31549
  r"""GetMetricLabelValues请求参数结构体
31501
31550
 
@@ -44792,6 +44841,40 @@ class OpenClawServiceResponse(AbstractModel):
44792
44841
  self._RequestId = params.get("RequestId")
44793
44842
 
44794
44843
 
44844
+ class OpenClsServiceRequest(AbstractModel):
44845
+ r"""OpenClsService请求参数结构体
44846
+
44847
+ """
44848
+
44849
+
44850
+ class OpenClsServiceResponse(AbstractModel):
44851
+ r"""OpenClsService返回参数结构体
44852
+
44853
+ """
44854
+
44855
+ def __init__(self):
44856
+ r"""
44857
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
44858
+ :type RequestId: str
44859
+ """
44860
+ self._RequestId = None
44861
+
44862
+ @property
44863
+ def RequestId(self):
44864
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
44865
+ :rtype: str
44866
+ """
44867
+ return self._RequestId
44868
+
44869
+ @RequestId.setter
44870
+ def RequestId(self, RequestId):
44871
+ self._RequestId = RequestId
44872
+
44873
+
44874
+ def _deserialize(self, params):
44875
+ self._RequestId = params.get("RequestId")
44876
+
44877
+
44795
44878
  class OpenKafkaConsumerRequest(AbstractModel):
44796
44879
  r"""OpenKafkaConsumer请求参数结构体
44797
44880