tencentcloud-sdk-python 3.0.1354__py2.py3-none-any.whl → 3.0.1356__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.1354'
17
+ __version__ = '3.0.1356'
@@ -904,6 +904,29 @@ class CfwClient(AbstractClient):
904
904
  raise TencentCloudSDKException(type(e).__name__, str(e))
905
905
 
906
906
 
907
+ def DescribeCfwInsStatus(self, request):
908
+ """cfw实例运行状态查询
909
+
910
+ :param request: Request instance for DescribeCfwInsStatus.
911
+ :type request: :class:`tencentcloud.cfw.v20190904.models.DescribeCfwInsStatusRequest`
912
+ :rtype: :class:`tencentcloud.cfw.v20190904.models.DescribeCfwInsStatusResponse`
913
+
914
+ """
915
+ try:
916
+ params = request._serialize()
917
+ headers = request.headers
918
+ body = self.call("DescribeCfwInsStatus", params, headers=headers)
919
+ response = json.loads(body)
920
+ model = models.DescribeCfwInsStatusResponse()
921
+ model._deserialize(response["Response"])
922
+ return model
923
+ except Exception as e:
924
+ if isinstance(e, TencentCloudSDKException):
925
+ raise
926
+ else:
927
+ raise TencentCloudSDKException(type(e).__name__, str(e))
928
+
929
+
907
930
  def DescribeDefenseSwitch(self, request):
908
931
  """获取入侵防御按钮列表
909
932
 
@@ -1731,6 +1731,159 @@ class BlockIgnoreRule(AbstractModel):
1731
1731
 
1732
1732
 
1733
1733
 
1734
+ class CfwInsStatus(AbstractModel):
1735
+ """防火墙实例运行状态
1736
+
1737
+ """
1738
+
1739
+ def __init__(self):
1740
+ r"""
1741
+ :param _CfwInsId: 防火墙实例id
1742
+ :type CfwInsId: str
1743
+ :param _FwType: 防火墙类型,nat:nat防火墙;ew:vpc间防火墙
1744
+ :type FwType: str
1745
+ :param _Region: 实例所属地域
1746
+ 注意:此字段可能返回 null,表示取不到有效值。
1747
+ :type Region: str
1748
+ :param _Status: 实例运行状态,Running:正常运行;BypassAutoFix:bypass修复;Updating:升级中;Expand:扩容中;BypassManual:手动触发bypass中;BypassAuto:自动触发bypass中
1749
+ :type Status: str
1750
+ :param _EventTime: 事件时间
1751
+ 注意:此字段可能返回 null,表示取不到有效值。
1752
+ :type EventTime: str
1753
+ :param _RecoverTime: 恢复时间
1754
+ 注意:此字段可能返回 null,表示取不到有效值。
1755
+ :type RecoverTime: str
1756
+ :param _CfwInsName: 实例名称
1757
+ 注意:此字段可能返回 null,表示取不到有效值。
1758
+ :type CfwInsName: str
1759
+ :param _TrafficMode: Normal: 正常模式
1760
+ OnlyRoute: 透明模式
1761
+ 注意:此字段可能返回 null,表示取不到有效值。
1762
+ :type TrafficMode: str
1763
+ """
1764
+ self._CfwInsId = None
1765
+ self._FwType = None
1766
+ self._Region = None
1767
+ self._Status = None
1768
+ self._EventTime = None
1769
+ self._RecoverTime = None
1770
+ self._CfwInsName = None
1771
+ self._TrafficMode = None
1772
+
1773
+ @property
1774
+ def CfwInsId(self):
1775
+ """防火墙实例id
1776
+ :rtype: str
1777
+ """
1778
+ return self._CfwInsId
1779
+
1780
+ @CfwInsId.setter
1781
+ def CfwInsId(self, CfwInsId):
1782
+ self._CfwInsId = CfwInsId
1783
+
1784
+ @property
1785
+ def FwType(self):
1786
+ """防火墙类型,nat:nat防火墙;ew:vpc间防火墙
1787
+ :rtype: str
1788
+ """
1789
+ return self._FwType
1790
+
1791
+ @FwType.setter
1792
+ def FwType(self, FwType):
1793
+ self._FwType = FwType
1794
+
1795
+ @property
1796
+ def Region(self):
1797
+ """实例所属地域
1798
+ 注意:此字段可能返回 null,表示取不到有效值。
1799
+ :rtype: str
1800
+ """
1801
+ return self._Region
1802
+
1803
+ @Region.setter
1804
+ def Region(self, Region):
1805
+ self._Region = Region
1806
+
1807
+ @property
1808
+ def Status(self):
1809
+ """实例运行状态,Running:正常运行;BypassAutoFix:bypass修复;Updating:升级中;Expand:扩容中;BypassManual:手动触发bypass中;BypassAuto:自动触发bypass中
1810
+ :rtype: str
1811
+ """
1812
+ return self._Status
1813
+
1814
+ @Status.setter
1815
+ def Status(self, Status):
1816
+ self._Status = Status
1817
+
1818
+ @property
1819
+ def EventTime(self):
1820
+ """事件时间
1821
+ 注意:此字段可能返回 null,表示取不到有效值。
1822
+ :rtype: str
1823
+ """
1824
+ return self._EventTime
1825
+
1826
+ @EventTime.setter
1827
+ def EventTime(self, EventTime):
1828
+ self._EventTime = EventTime
1829
+
1830
+ @property
1831
+ def RecoverTime(self):
1832
+ """恢复时间
1833
+ 注意:此字段可能返回 null,表示取不到有效值。
1834
+ :rtype: str
1835
+ """
1836
+ return self._RecoverTime
1837
+
1838
+ @RecoverTime.setter
1839
+ def RecoverTime(self, RecoverTime):
1840
+ self._RecoverTime = RecoverTime
1841
+
1842
+ @property
1843
+ def CfwInsName(self):
1844
+ """实例名称
1845
+ 注意:此字段可能返回 null,表示取不到有效值。
1846
+ :rtype: str
1847
+ """
1848
+ return self._CfwInsName
1849
+
1850
+ @CfwInsName.setter
1851
+ def CfwInsName(self, CfwInsName):
1852
+ self._CfwInsName = CfwInsName
1853
+
1854
+ @property
1855
+ def TrafficMode(self):
1856
+ """Normal: 正常模式
1857
+ OnlyRoute: 透明模式
1858
+ 注意:此字段可能返回 null,表示取不到有效值。
1859
+ :rtype: str
1860
+ """
1861
+ return self._TrafficMode
1862
+
1863
+ @TrafficMode.setter
1864
+ def TrafficMode(self, TrafficMode):
1865
+ self._TrafficMode = TrafficMode
1866
+
1867
+
1868
+ def _deserialize(self, params):
1869
+ self._CfwInsId = params.get("CfwInsId")
1870
+ self._FwType = params.get("FwType")
1871
+ self._Region = params.get("Region")
1872
+ self._Status = params.get("Status")
1873
+ self._EventTime = params.get("EventTime")
1874
+ self._RecoverTime = params.get("RecoverTime")
1875
+ self._CfwInsName = params.get("CfwInsName")
1876
+ self._TrafficMode = params.get("TrafficMode")
1877
+ memeber_set = set(params.keys())
1878
+ for name, value in vars(self).items():
1879
+ property_name = name[1:]
1880
+ if property_name in memeber_set:
1881
+ memeber_set.remove(property_name)
1882
+ if len(memeber_set) > 0:
1883
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
1884
+
1885
+
1886
+
1734
1887
  class CfwNatDnatRule(AbstractModel):
1735
1888
  """NAT防火墙Dnat规则
1736
1889
 
@@ -8690,6 +8843,77 @@ class DescribeCfwEipsResponse(AbstractModel):
8690
8843
  self._RequestId = params.get("RequestId")
8691
8844
 
8692
8845
 
8846
+ class DescribeCfwInsStatusRequest(AbstractModel):
8847
+ """DescribeCfwInsStatus请求参数结构体
8848
+
8849
+ """
8850
+
8851
+
8852
+ class DescribeCfwInsStatusResponse(AbstractModel):
8853
+ """DescribeCfwInsStatus返回参数结构体
8854
+
8855
+ """
8856
+
8857
+ def __init__(self):
8858
+ r"""
8859
+ :param _CfwInsStatus: 防火墙实例运行状态
8860
+ 注意:此字段可能返回 null,表示取不到有效值。
8861
+ :type CfwInsStatus: list of CfwInsStatus
8862
+ :param _TotalCount: 0
8863
+ :type TotalCount: int
8864
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
8865
+ :type RequestId: str
8866
+ """
8867
+ self._CfwInsStatus = None
8868
+ self._TotalCount = None
8869
+ self._RequestId = None
8870
+
8871
+ @property
8872
+ def CfwInsStatus(self):
8873
+ """防火墙实例运行状态
8874
+ 注意:此字段可能返回 null,表示取不到有效值。
8875
+ :rtype: list of CfwInsStatus
8876
+ """
8877
+ return self._CfwInsStatus
8878
+
8879
+ @CfwInsStatus.setter
8880
+ def CfwInsStatus(self, CfwInsStatus):
8881
+ self._CfwInsStatus = CfwInsStatus
8882
+
8883
+ @property
8884
+ def TotalCount(self):
8885
+ """0
8886
+ :rtype: int
8887
+ """
8888
+ return self._TotalCount
8889
+
8890
+ @TotalCount.setter
8891
+ def TotalCount(self, TotalCount):
8892
+ self._TotalCount = TotalCount
8893
+
8894
+ @property
8895
+ def RequestId(self):
8896
+ """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
8897
+ :rtype: str
8898
+ """
8899
+ return self._RequestId
8900
+
8901
+ @RequestId.setter
8902
+ def RequestId(self, RequestId):
8903
+ self._RequestId = RequestId
8904
+
8905
+
8906
+ def _deserialize(self, params):
8907
+ if params.get("CfwInsStatus") is not None:
8908
+ self._CfwInsStatus = []
8909
+ for item in params.get("CfwInsStatus"):
8910
+ obj = CfwInsStatus()
8911
+ obj._deserialize(item)
8912
+ self._CfwInsStatus.append(obj)
8913
+ self._TotalCount = params.get("TotalCount")
8914
+ self._RequestId = params.get("RequestId")
8915
+
8916
+
8693
8917
  class DescribeDefenseSwitchRequest(AbstractModel):
8694
8918
  """DescribeDefenseSwitch请求参数结构体
8695
8919
 
@@ -18572,15 +18572,15 @@ class GroupTriggerConditionInfo(AbstractModel):
18572
18572
 
18573
18573
 
18574
18574
  class HighLightItem(AbstractModel):
18575
- """日志内容高亮描述信息
18575
+ """符合检索条件的关键词,一般用于高亮显示。仅支持键值检索,不支持全文检索
18576
18576
 
18577
18577
  """
18578
18578
 
18579
18579
  def __init__(self):
18580
18580
  r"""
18581
- :param _Key: 高亮的日志Key
18581
+ :param _Key: 高亮的日志字段名称
18582
18582
  :type Key: str
18583
- :param _Values: 高亮的语法
18583
+ :param _Values: 高亮的关键词
18584
18584
  :type Values: list of str
18585
18585
  """
18586
18586
  self._Key = None
@@ -18588,7 +18588,7 @@ class HighLightItem(AbstractModel):
18588
18588
 
18589
18589
  @property
18590
18590
  def Key(self):
18591
- """高亮的日志Key
18591
+ """高亮的日志字段名称
18592
18592
  :rtype: str
18593
18593
  """
18594
18594
  return self._Key
@@ -18599,7 +18599,7 @@ class HighLightItem(AbstractModel):
18599
18599
 
18600
18600
  @property
18601
18601
  def Values(self):
18602
- """高亮的语法
18602
+ """高亮的关键词
18603
18603
  :rtype: list of str
18604
18604
  """
18605
18605
  return self._Values
@@ -19601,6 +19601,8 @@ class LogInfo(AbstractModel):
19601
19601
  :type PkgId: str
19602
19602
  :param _PkgLogId: 请求包内日志的ID
19603
19603
  :type PkgLogId: str
19604
+ :param _HighLights: 符合检索条件的关键词,一般用于高亮显示。仅支持键值检索,不支持全文检索
19605
+ :type HighLights: list of HighLightItem
19604
19606
  :param _LogJson: 日志内容的Json序列化字符串
19605
19607
  :type LogJson: str
19606
19608
  :param _HostName: 日志来源主机名称
@@ -19617,6 +19619,7 @@ class LogInfo(AbstractModel):
19617
19619
  self._FileName = None
19618
19620
  self._PkgId = None
19619
19621
  self._PkgLogId = None
19622
+ self._HighLights = None
19620
19623
  self._LogJson = None
19621
19624
  self._HostName = None
19622
19625
  self._RawLog = None
@@ -19699,6 +19702,17 @@ class LogInfo(AbstractModel):
19699
19702
  def PkgLogId(self, PkgLogId):
19700
19703
  self._PkgLogId = PkgLogId
19701
19704
 
19705
+ @property
19706
+ def HighLights(self):
19707
+ """符合检索条件的关键词,一般用于高亮显示。仅支持键值检索,不支持全文检索
19708
+ :rtype: list of HighLightItem
19709
+ """
19710
+ return self._HighLights
19711
+
19712
+ @HighLights.setter
19713
+ def HighLights(self, HighLights):
19714
+ self._HighLights = HighLights
19715
+
19702
19716
  @property
19703
19717
  def LogJson(self):
19704
19718
  """日志内容的Json序列化字符串
@@ -19752,6 +19766,12 @@ class LogInfo(AbstractModel):
19752
19766
  self._FileName = params.get("FileName")
19753
19767
  self._PkgId = params.get("PkgId")
19754
19768
  self._PkgLogId = params.get("PkgLogId")
19769
+ if params.get("HighLights") is not None:
19770
+ self._HighLights = []
19771
+ for item in params.get("HighLights"):
19772
+ obj = HighLightItem()
19773
+ obj._deserialize(item)
19774
+ self._HighLights.append(obj)
19755
19775
  self._LogJson = params.get("LogJson")
19756
19776
  self._HostName = params.get("HostName")
19757
19777
  self._RawLog = params.get("RawLog")
@@ -28162,6 +28182,8 @@ class SearchLogRequest(AbstractModel):
28162
28182
  为false时代表使用老的检索结果返回方式, 输出AnalysisResults和ColNames有效
28163
28183
  两种返回方式在编码格式上有少量区别,建议使用true
28164
28184
  :type UseNewAnalysis: bool
28185
+ :param _HighLight: 是否高亮符合检索条件的关键词,一般用于高亮显示。仅支持键值检索,不支持全文检索
28186
+ :type HighLight: bool
28165
28187
  """
28166
28188
  self._From = None
28167
28189
  self._To = None
@@ -28175,6 +28197,7 @@ class SearchLogRequest(AbstractModel):
28175
28197
  self._Context = None
28176
28198
  self._SamplingRate = None
28177
28199
  self._UseNewAnalysis = None
28200
+ self._HighLight = None
28178
28201
 
28179
28202
  @property
28180
28203
  def From(self):
@@ -28344,6 +28367,17 @@ class SearchLogRequest(AbstractModel):
28344
28367
  def UseNewAnalysis(self, UseNewAnalysis):
28345
28368
  self._UseNewAnalysis = UseNewAnalysis
28346
28369
 
28370
+ @property
28371
+ def HighLight(self):
28372
+ """是否高亮符合检索条件的关键词,一般用于高亮显示。仅支持键值检索,不支持全文检索
28373
+ :rtype: bool
28374
+ """
28375
+ return self._HighLight
28376
+
28377
+ @HighLight.setter
28378
+ def HighLight(self, HighLight):
28379
+ self._HighLight = HighLight
28380
+
28347
28381
 
28348
28382
  def _deserialize(self, params):
28349
28383
  self._From = params.get("From")
@@ -28363,6 +28397,7 @@ class SearchLogRequest(AbstractModel):
28363
28397
  self._Context = params.get("Context")
28364
28398
  self._SamplingRate = params.get("SamplingRate")
28365
28399
  self._UseNewAnalysis = params.get("UseNewAnalysis")
28400
+ self._HighLight = params.get("HighLight")
28366
28401
  memeber_set = set(params.keys())
28367
28402
  for name, value in vars(self).items():
28368
28403
  property_name = name[1:]
@@ -26,6 +26,29 @@ class GsClient(AbstractClient):
26
26
  _service = 'gs'
27
27
 
28
28
 
29
+ def BackUpAndroidInstanceToStorage(self, request):
30
+ """备份云手机到指定存储
31
+
32
+ :param request: Request instance for BackUpAndroidInstanceToStorage.
33
+ :type request: :class:`tencentcloud.gs.v20191118.models.BackUpAndroidInstanceToStorageRequest`
34
+ :rtype: :class:`tencentcloud.gs.v20191118.models.BackUpAndroidInstanceToStorageResponse`
35
+
36
+ """
37
+ try:
38
+ params = request._serialize()
39
+ headers = request.headers
40
+ body = self.call("BackUpAndroidInstanceToStorage", params, headers=headers)
41
+ response = json.loads(body)
42
+ model = models.BackUpAndroidInstanceToStorageResponse()
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 ConnectAndroidInstance(self, request):
30
53
  """连接安卓实例
31
54
 
@@ -674,6 +697,29 @@ class GsClient(AbstractClient):
674
697
  raise TencentCloudSDKException(type(e).__name__, str(e))
675
698
 
676
699
 
700
+ def RestoreAndroidInstanceFromStorage(self, request):
701
+ """指定存储还原云手机
702
+
703
+ :param request: Request instance for RestoreAndroidInstanceFromStorage.
704
+ :type request: :class:`tencentcloud.gs.v20191118.models.RestoreAndroidInstanceFromStorageRequest`
705
+ :rtype: :class:`tencentcloud.gs.v20191118.models.RestoreAndroidInstanceFromStorageResponse`
706
+
707
+ """
708
+ try:
709
+ params = request._serialize()
710
+ headers = request.headers
711
+ body = self.call("RestoreAndroidInstanceFromStorage", params, headers=headers)
712
+ response = json.loads(body)
713
+ model = models.RestoreAndroidInstanceFromStorageResponse()
714
+ model._deserialize(response["Response"])
715
+ return model
716
+ except Exception as e:
717
+ if isinstance(e, TencentCloudSDKException):
718
+ raise
719
+ else:
720
+ raise TencentCloudSDKException(type(e).__name__, str(e))
721
+
722
+
677
723
  def SaveGameArchive(self, request):
678
724
  """保存游戏存档
679
725