tencentcloud-sdk-python 3.0.1233__py2.py3-none-any.whl → 3.0.1235__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.1233'
17
+ __version__ = '3.0.1235'
@@ -4459,8 +4459,11 @@ class CloseWanServiceRequest(AbstractModel):
4459
4459
  r"""
4460
4460
  :param _InstanceId: 实例 ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同,可使用 [查询实例列表](https://cloud.tencent.com/document/api/236/15872) 接口获取,其值为输出参数中字段 InstanceId 的值。
4461
4461
  :type InstanceId: str
4462
+ :param _OpResourceId: 变更集群版实例只读组时,InstanceId传实例id,需要额外指定该参数表示操作只读组。 如果操作读写节点则不需指定该参数。
4463
+ :type OpResourceId: str
4462
4464
  """
4463
4465
  self._InstanceId = None
4466
+ self._OpResourceId = None
4464
4467
 
4465
4468
  @property
4466
4469
  def InstanceId(self):
@@ -4470,9 +4473,18 @@ class CloseWanServiceRequest(AbstractModel):
4470
4473
  def InstanceId(self, InstanceId):
4471
4474
  self._InstanceId = InstanceId
4472
4475
 
4476
+ @property
4477
+ def OpResourceId(self):
4478
+ return self._OpResourceId
4479
+
4480
+ @OpResourceId.setter
4481
+ def OpResourceId(self, OpResourceId):
4482
+ self._OpResourceId = OpResourceId
4483
+
4473
4484
 
4474
4485
  def _deserialize(self, params):
4475
4486
  self._InstanceId = params.get("InstanceId")
4487
+ self._OpResourceId = params.get("OpResourceId")
4476
4488
  memeber_set = set(params.keys())
4477
4489
  for name, value in vars(self).items():
4478
4490
  property_name = name[1:]
@@ -23328,10 +23340,13 @@ class ModifyDBInstanceSecurityGroupsRequest(AbstractModel):
23328
23340
  :type SecurityGroupIds: list of str
23329
23341
  :param _ForReadonlyInstance: 当传入只读实例ID时,默认操作的是对应只读组的安全组。如果需要操作只读实例ID的安全组, 需要将该入参置为True
23330
23342
  :type ForReadonlyInstance: bool
23343
+ :param _OpResourceId: 变更集群版实例只读组时,InstanceId传实例id,需要额外指定该参数表示操作只读组。 如果操作读写节点则不需指定该参数。
23344
+ :type OpResourceId: str
23331
23345
  """
23332
23346
  self._InstanceId = None
23333
23347
  self._SecurityGroupIds = None
23334
23348
  self._ForReadonlyInstance = None
23349
+ self._OpResourceId = None
23335
23350
 
23336
23351
  @property
23337
23352
  def InstanceId(self):
@@ -23357,11 +23372,20 @@ class ModifyDBInstanceSecurityGroupsRequest(AbstractModel):
23357
23372
  def ForReadonlyInstance(self, ForReadonlyInstance):
23358
23373
  self._ForReadonlyInstance = ForReadonlyInstance
23359
23374
 
23375
+ @property
23376
+ def OpResourceId(self):
23377
+ return self._OpResourceId
23378
+
23379
+ @OpResourceId.setter
23380
+ def OpResourceId(self, OpResourceId):
23381
+ self._OpResourceId = OpResourceId
23382
+
23360
23383
 
23361
23384
  def _deserialize(self, params):
23362
23385
  self._InstanceId = params.get("InstanceId")
23363
23386
  self._SecurityGroupIds = params.get("SecurityGroupIds")
23364
23387
  self._ForReadonlyInstance = params.get("ForReadonlyInstance")
23388
+ self._OpResourceId = params.get("OpResourceId")
23365
23389
  memeber_set = set(params.keys())
23366
23390
  for name, value in vars(self).items():
23367
23391
  property_name = name[1:]
@@ -23416,6 +23440,8 @@ class ModifyDBInstanceVipVportRequest(AbstractModel):
23416
23440
  :type UniqSubnetId: str
23417
23441
  :param _ReleaseDuration: 进行基础网络转 VPC 网络和 VPC 网络下的子网变更时,原网络中旧IP的回收时间,单位为小时,取值范围为0-168,默认值为24小时。
23418
23442
  :type ReleaseDuration: int
23443
+ :param _OpResourceId: 变更集群版实例只读组时,InstanceId传实例id,需要额外指定该参数表示操作只读组。 如果操作读写节点则不需指定该参数。
23444
+ :type OpResourceId: str
23419
23445
  """
23420
23446
  self._InstanceId = None
23421
23447
  self._DstIp = None
@@ -23423,6 +23449,7 @@ class ModifyDBInstanceVipVportRequest(AbstractModel):
23423
23449
  self._UniqVpcId = None
23424
23450
  self._UniqSubnetId = None
23425
23451
  self._ReleaseDuration = None
23452
+ self._OpResourceId = None
23426
23453
 
23427
23454
  @property
23428
23455
  def InstanceId(self):
@@ -23472,6 +23499,14 @@ class ModifyDBInstanceVipVportRequest(AbstractModel):
23472
23499
  def ReleaseDuration(self, ReleaseDuration):
23473
23500
  self._ReleaseDuration = ReleaseDuration
23474
23501
 
23502
+ @property
23503
+ def OpResourceId(self):
23504
+ return self._OpResourceId
23505
+
23506
+ @OpResourceId.setter
23507
+ def OpResourceId(self, OpResourceId):
23508
+ self._OpResourceId = OpResourceId
23509
+
23475
23510
 
23476
23511
  def _deserialize(self, params):
23477
23512
  self._InstanceId = params.get("InstanceId")
@@ -23480,6 +23515,7 @@ class ModifyDBInstanceVipVportRequest(AbstractModel):
23480
23515
  self._UniqVpcId = params.get("UniqVpcId")
23481
23516
  self._UniqSubnetId = params.get("UniqSubnetId")
23482
23517
  self._ReleaseDuration = params.get("ReleaseDuration")
23518
+ self._OpResourceId = params.get("OpResourceId")
23483
23519
  memeber_set = set(params.keys())
23484
23520
  for name, value in vars(self).items():
23485
23521
  property_name = name[1:]
@@ -24921,8 +24957,11 @@ class OpenWanServiceRequest(AbstractModel):
24921
24957
  r"""
24922
24958
  :param _InstanceId: 实例 ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同,可使用 [查询实例列表](https://cloud.tencent.com/document/api/236/15872) 接口获取,其值为输出参数中字段 InstanceId 的值。
24923
24959
  :type InstanceId: str
24960
+ :param _OpResourceId: 变更集群版实例只读组时,InstanceId传实例id,需要额外指定该参数表示操作只读组。 如果操作读写节点则不需指定该参数。
24961
+ :type OpResourceId: str
24924
24962
  """
24925
24963
  self._InstanceId = None
24964
+ self._OpResourceId = None
24926
24965
 
24927
24966
  @property
24928
24967
  def InstanceId(self):
@@ -24932,9 +24971,18 @@ class OpenWanServiceRequest(AbstractModel):
24932
24971
  def InstanceId(self, InstanceId):
24933
24972
  self._InstanceId = InstanceId
24934
24973
 
24974
+ @property
24975
+ def OpResourceId(self):
24976
+ return self._OpResourceId
24977
+
24978
+ @OpResourceId.setter
24979
+ def OpResourceId(self, OpResourceId):
24980
+ self._OpResourceId = OpResourceId
24981
+
24935
24982
 
24936
24983
  def _deserialize(self, params):
24937
24984
  self._InstanceId = params.get("InstanceId")
24985
+ self._OpResourceId = params.get("OpResourceId")
24938
24986
  memeber_set = set(params.keys())
24939
24987
  for name, value in vars(self).items():
24940
24988
  property_name = name[1:]
@@ -29812,11 +29860,14 @@ class SwitchDBInstanceMasterSlaveRequest(AbstractModel):
29812
29860
  :type ForceSwitch: bool
29813
29861
  :param _WaitSwitch: 是否时间窗内切换。默认为 False,即不在时间窗内切换。注意,如果设置了 ForceSwitch 参数为 True,则该参数不生效。
29814
29862
  :type WaitSwitch: bool
29863
+ :param _DstNodeId: 集群版实例指定节点id发起主从切换。
29864
+ :type DstNodeId: str
29815
29865
  """
29816
29866
  self._InstanceId = None
29817
29867
  self._DstSlave = None
29818
29868
  self._ForceSwitch = None
29819
29869
  self._WaitSwitch = None
29870
+ self._DstNodeId = None
29820
29871
 
29821
29872
  @property
29822
29873
  def InstanceId(self):
@@ -29850,12 +29901,21 @@ class SwitchDBInstanceMasterSlaveRequest(AbstractModel):
29850
29901
  def WaitSwitch(self, WaitSwitch):
29851
29902
  self._WaitSwitch = WaitSwitch
29852
29903
 
29904
+ @property
29905
+ def DstNodeId(self):
29906
+ return self._DstNodeId
29907
+
29908
+ @DstNodeId.setter
29909
+ def DstNodeId(self, DstNodeId):
29910
+ self._DstNodeId = DstNodeId
29911
+
29853
29912
 
29854
29913
  def _deserialize(self, params):
29855
29914
  self._InstanceId = params.get("InstanceId")
29856
29915
  self._DstSlave = params.get("DstSlave")
29857
29916
  self._ForceSwitch = params.get("ForceSwitch")
29858
29917
  self._WaitSwitch = params.get("WaitSwitch")
29918
+ self._DstNodeId = params.get("DstNodeId")
29859
29919
  memeber_set = set(params.keys())
29860
29920
  for name, value in vars(self).items():
29861
29921
  property_name = name[1:]
@@ -12193,7 +12193,7 @@ class EnterpriseSecurityGroupRuleRuleInfo(AbstractModel):
12193
12193
  :param _IsDelay: 是否延迟下发
12194
12194
  注意:此字段可能返回 null,表示取不到有效值。
12195
12195
  :type IsDelay: int
12196
- :param _ServiceTemplateId: 服务模版id
12196
+ :param _ServiceTemplateId: 服务模板id
12197
12197
  注意:此字段可能返回 null,表示取不到有效值。
12198
12198
  :type ServiceTemplateId: str
12199
12199
  :param _SouInstanceName: 源资产名称
@@ -12208,7 +12208,7 @@ class EnterpriseSecurityGroupRuleRuleInfo(AbstractModel):
12208
12208
  :param _SouCidr: 源资产网段信息
12209
12209
  注意:此字段可能返回 null,表示取不到有效值。
12210
12210
  :type SouCidr: str
12211
- :param _SouParameterName: 源模版名称
12211
+ :param _SouParameterName: 源模板名称
12212
12212
  注意:此字段可能返回 null,表示取不到有效值。
12213
12213
  :type SouParameterName: str
12214
12214
  :param _InstanceName: 目的资产名称
@@ -12223,10 +12223,10 @@ class EnterpriseSecurityGroupRuleRuleInfo(AbstractModel):
12223
12223
  :param _Cidr: 目的资产网段信息
12224
12224
  注意:此字段可能返回 null,表示取不到有效值。
12225
12225
  :type Cidr: str
12226
- :param _ParameterName: 目的模版名称
12226
+ :param _ParameterName: 目的模板名称
12227
12227
  注意:此字段可能返回 null,表示取不到有效值。
12228
12228
  :type ParameterName: str
12229
- :param _ProtocolPortName: 端口模版名称
12229
+ :param _ProtocolPortName: 端口模板名称
12230
12230
  注意:此字段可能返回 null,表示取不到有效值。
12231
12231
  :type ProtocolPortName: str
12232
12232
  :param _BetaList: 自动化任务任务信息
@@ -5861,7 +5861,7 @@ class CreateRiskCenterScanTaskRequest(AbstractModel):
5861
5861
  :type ScanPlanContent: str
5862
5862
  :param _SelfDefiningAssets: ip/域名/url数组
5863
5863
  :type SelfDefiningAssets: list of str
5864
- :param _ScanFrom: 请求发起源,默认为vss表示漏洞扫描服务,云安全中心的用户请填充csip
5864
+ :param _ScanFrom: 请求发起源,vss表示漏洞扫描服务,云安全中心的用户请填充csip,默认csip
5865
5865
  :type ScanFrom: str
5866
5866
  :param _TaskAdvanceCFG: 高级配置
5867
5867
  :type TaskAdvanceCFG: :class:`tencentcloud.csip.v20221121.models.TaskAdvanceCFG`
File without changes
File without changes
@@ -0,0 +1,21 @@
1
+ # -*- coding: utf8 -*-
2
+ # Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. All Rights Reserved.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+
16
+
17
+ # 操作失败。
18
+ FAILEDOPERATION = 'FailedOperation'
19
+
20
+ # ResourceNotFound.Instance
21
+ RESOURCENOTFOUND_INSTANCE = 'ResourceNotFound.Instance'