tencentcloud-sdk-python 3.0.1432__py2.py3-none-any.whl → 3.0.1434__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.

Potentially problematic release.


This version of tencentcloud-sdk-python might be problematic. Click here for more details.

tencentcloud/__init__.py CHANGED
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.0.1432'
17
+ __version__ = '3.0.1434'
@@ -15529,6 +15529,8 @@ class UserInfo(AbstractModel):
15529
15529
  :type CamUin: str
15530
15530
  :param _CamRangerGroupIds: ranger group id列表
15531
15531
  :type CamRangerGroupIds: list of int
15532
+ :param _ComputeGroupType: 0: 灵活场景 1: 固定场景
15533
+ :type ComputeGroupType: int
15532
15534
  """
15533
15535
  self._InstanceId = None
15534
15536
  self._UserName = None
@@ -15539,6 +15541,7 @@ class UserInfo(AbstractModel):
15539
15541
  self._OldPwd = None
15540
15542
  self._CamUin = None
15541
15543
  self._CamRangerGroupIds = None
15544
+ self._ComputeGroupType = None
15542
15545
 
15543
15546
  @property
15544
15547
  def InstanceId(self):
@@ -15639,6 +15642,17 @@ class UserInfo(AbstractModel):
15639
15642
  def CamRangerGroupIds(self, CamRangerGroupIds):
15640
15643
  self._CamRangerGroupIds = CamRangerGroupIds
15641
15644
 
15645
+ @property
15646
+ def ComputeGroupType(self):
15647
+ """0: 灵活场景 1: 固定场景
15648
+ :rtype: int
15649
+ """
15650
+ return self._ComputeGroupType
15651
+
15652
+ @ComputeGroupType.setter
15653
+ def ComputeGroupType(self, ComputeGroupType):
15654
+ self._ComputeGroupType = ComputeGroupType
15655
+
15642
15656
 
15643
15657
  def _deserialize(self, params):
15644
15658
  self._InstanceId = params.get("InstanceId")
@@ -15650,6 +15664,7 @@ class UserInfo(AbstractModel):
15650
15664
  self._OldPwd = params.get("OldPwd")
15651
15665
  self._CamUin = params.get("CamUin")
15652
15666
  self._CamRangerGroupIds = params.get("CamRangerGroupIds")
15667
+ self._ComputeGroupType = params.get("ComputeGroupType")
15653
15668
  memeber_set = set(params.keys())
15654
15669
  for name, value in vars(self).items():
15655
15670
  property_name = name[1:]
@@ -314,6 +314,8 @@ class AssociationItem(AbstractModel):
314
314
  :type ListenerName: str
315
315
  :param _Weight: 关联目标组的权重, 该参数只有v2新版目标组生效。
316
316
  :type Weight: int
317
+ :param _RuleId: 高级路由规则ID
318
+ :type RuleId: str
317
319
  """
318
320
  self._LoadBalancerId = None
319
321
  self._ListenerId = None
@@ -325,6 +327,7 @@ class AssociationItem(AbstractModel):
325
327
  self._LoadBalancerName = None
326
328
  self._ListenerName = None
327
329
  self._Weight = None
330
+ self._RuleId = None
328
331
 
329
332
  @property
330
333
  def LoadBalancerId(self):
@@ -439,6 +442,17 @@ class AssociationItem(AbstractModel):
439
442
  def Weight(self, Weight):
440
443
  self._Weight = Weight
441
444
 
445
+ @property
446
+ def RuleId(self):
447
+ """高级路由规则ID
448
+ :rtype: str
449
+ """
450
+ return self._RuleId
451
+
452
+ @RuleId.setter
453
+ def RuleId(self, RuleId):
454
+ self._RuleId = RuleId
455
+
442
456
 
443
457
  def _deserialize(self, params):
444
458
  self._LoadBalancerId = params.get("LoadBalancerId")
@@ -451,6 +465,7 @@ class AssociationItem(AbstractModel):
451
465
  self._LoadBalancerName = params.get("LoadBalancerName")
452
466
  self._ListenerName = params.get("ListenerName")
453
467
  self._Weight = params.get("Weight")
468
+ self._RuleId = params.get("RuleId")
454
469
  memeber_set = set(params.keys())
455
470
  for name, value in vars(self).items():
456
471
  property_name = name[1:]
@@ -4471,6 +4486,8 @@ OPEN:公网属性, INTERNAL:内网属性。
4471
4486
  :type LBChargeType: str
4472
4487
  :param _AccessLogTopicId: 七层访问日志主题ID
4473
4488
  :type AccessLogTopicId: str
4489
+ :param _AdvancedRoute: 是否开启七层高级路由
4490
+ :type AdvancedRoute: bool
4474
4491
  """
4475
4492
  self._LoadBalancerType = None
4476
4493
  self._Forward = None
@@ -4502,6 +4519,7 @@ OPEN:公网属性, INTERNAL:内网属性。
4502
4519
  self._LBChargePrepaid = None
4503
4520
  self._LBChargeType = None
4504
4521
  self._AccessLogTopicId = None
4522
+ self._AdvancedRoute = None
4505
4523
 
4506
4524
  @property
4507
4525
  def LoadBalancerType(self):
@@ -4839,6 +4857,17 @@ OPEN:公网属性, INTERNAL:内网属性。
4839
4857
  def AccessLogTopicId(self, AccessLogTopicId):
4840
4858
  self._AccessLogTopicId = AccessLogTopicId
4841
4859
 
4860
+ @property
4861
+ def AdvancedRoute(self):
4862
+ """是否开启七层高级路由
4863
+ :rtype: bool
4864
+ """
4865
+ return self._AdvancedRoute
4866
+
4867
+ @AdvancedRoute.setter
4868
+ def AdvancedRoute(self, AdvancedRoute):
4869
+ self._AdvancedRoute = AdvancedRoute
4870
+
4842
4871
 
4843
4872
  def _deserialize(self, params):
4844
4873
  self._LoadBalancerType = params.get("LoadBalancerType")
@@ -4887,6 +4916,7 @@ OPEN:公网属性, INTERNAL:内网属性。
4887
4916
  self._LBChargePrepaid._deserialize(params.get("LBChargePrepaid"))
4888
4917
  self._LBChargeType = params.get("LBChargeType")
4889
4918
  self._AccessLogTopicId = params.get("AccessLogTopicId")
4919
+ self._AdvancedRoute = params.get("AdvancedRoute")
4890
4920
  memeber_set = set(params.keys())
4891
4921
  for name, value in vars(self).items():
4892
4922
  property_name = name[1:]
@@ -19710,12 +19740,15 @@ class RuleHealth(AbstractModel):
19710
19740
  :param _Url: 转发规则的Url
19711
19741
  注意:此字段可能返回 null,表示取不到有效值。
19712
19742
  :type Url: str
19743
+ :param _RuleId: 高级路由规则ID
19744
+ :type RuleId: str
19713
19745
  :param _Targets: 本规则上绑定的后端服务的健康检查状态
19714
19746
  :type Targets: list of TargetHealth
19715
19747
  """
19716
19748
  self._LocationId = None
19717
19749
  self._Domain = None
19718
19750
  self._Url = None
19751
+ self._RuleId = None
19719
19752
  self._Targets = None
19720
19753
 
19721
19754
  @property
@@ -19753,6 +19786,17 @@ class RuleHealth(AbstractModel):
19753
19786
  def Url(self, Url):
19754
19787
  self._Url = Url
19755
19788
 
19789
+ @property
19790
+ def RuleId(self):
19791
+ """高级路由规则ID
19792
+ :rtype: str
19793
+ """
19794
+ return self._RuleId
19795
+
19796
+ @RuleId.setter
19797
+ def RuleId(self, RuleId):
19798
+ self._RuleId = RuleId
19799
+
19756
19800
  @property
19757
19801
  def Targets(self):
19758
19802
  """本规则上绑定的后端服务的健康检查状态
@@ -19769,6 +19813,7 @@ class RuleHealth(AbstractModel):
19769
19813
  self._LocationId = params.get("LocationId")
19770
19814
  self._Domain = params.get("Domain")
19771
19815
  self._Url = params.get("Url")
19816
+ self._RuleId = params.get("RuleId")
19772
19817
  if params.get("Targets") is not None:
19773
19818
  self._Targets = []
19774
19819
  for item in params.get("Targets"):
@@ -185,60 +185,6 @@ class EcdnClient(AbstractClient):
185
185
  model = models.DescribeIpStatusResponse()
186
186
  model._deserialize(response["Response"])
187
187
  return model
188
- except Exception as e:
189
- if isinstance(e, TencentCloudSDKException):
190
- raise
191
- else:
192
- raise TencentCloudSDKException(type(e).__name__, str(e))
193
-
194
-
195
- def DescribePurgeTasks(self, request):
196
- """ECDN即将下线,如需要动态加速请使用EdgeOne
197
-
198
- DescribePurgeTasks 用于查询刷新任务提交历史记录及执行进度。
199
-
200
- >? 若您的业务已迁移至 CDN 控制台,请参考<a href="https://cloud.tencent.com/document/api/228/37873"> CDN 接口文档</a>,使用 CDN 相关API 进行操作。
201
-
202
- :param request: Request instance for DescribePurgeTasks.
203
- :type request: :class:`tencentcloud.ecdn.v20191012.models.DescribePurgeTasksRequest`
204
- :rtype: :class:`tencentcloud.ecdn.v20191012.models.DescribePurgeTasksResponse`
205
-
206
- """
207
- try:
208
- params = request._serialize()
209
- headers = request.headers
210
- body = self.call("DescribePurgeTasks", params, headers=headers)
211
- response = json.loads(body)
212
- model = models.DescribePurgeTasksResponse()
213
- model._deserialize(response["Response"])
214
- return model
215
- except Exception as e:
216
- if isinstance(e, TencentCloudSDKException):
217
- raise
218
- else:
219
- raise TencentCloudSDKException(type(e).__name__, str(e))
220
-
221
-
222
- def PurgeUrlsCache(self, request):
223
- """ECDN即将下线,如需要动态加速请使用EdgeOne
224
-
225
- PurgeUrlsCache 用于批量刷新Url,一次提交将返回一个刷新任务id。
226
-
227
- >? 若您的业务已迁移至 CDN 控制台,请参考<a href="https://cloud.tencent.com/document/api/228/37870"> CDN 接口文档</a>,使用 CDN 相关API 进行操作。
228
-
229
- :param request: Request instance for PurgeUrlsCache.
230
- :type request: :class:`tencentcloud.ecdn.v20191012.models.PurgeUrlsCacheRequest`
231
- :rtype: :class:`tencentcloud.ecdn.v20191012.models.PurgeUrlsCacheResponse`
232
-
233
- """
234
- try:
235
- params = request._serialize()
236
- headers = request.headers
237
- body = self.call("PurgeUrlsCache", params, headers=headers)
238
- response = json.loads(body)
239
- model = models.PurgeUrlsCacheResponse()
240
- model._deserialize(response["Response"])
241
- return model
242
188
  except Exception as e:
243
189
  if isinstance(e, TencentCloudSDKException):
244
190
  raise
@@ -44,9 +44,6 @@ INVALIDPARAMETER_ECDNCERTNOCERTINFO = 'InvalidParameter.EcdnCertNoCertInfo'
44
44
  # 缓存配置不合法 。
45
45
  INVALIDPARAMETER_ECDNCONFIGINVALIDCACHE = 'InvalidParameter.EcdnConfigInvalidCache'
46
46
 
47
- # 域名状态不合法。
48
- INVALIDPARAMETER_ECDNDOMAININVALIDSTATUS = 'InvalidParameter.EcdnDomainInvalidStatus'
49
-
50
47
  # 内部接口错误,请联系腾讯云工程师进一步排查。
51
48
  INVALIDPARAMETER_ECDNINTERFACEERROR = 'InvalidParameter.EcdnInterfaceError'
52
49
 
@@ -56,30 +53,18 @@ INVALIDPARAMETER_ECDNINVALIDPARAMINTERVAL = 'InvalidParameter.EcdnInvalidParamIn
56
53
  # 参数错误,请参考文档中示例参数填充。
57
54
  INVALIDPARAMETER_ECDNPARAMERROR = 'InvalidParameter.EcdnParamError'
58
55
 
59
- # 刷新不支持泛域名。
60
- INVALIDPARAMETER_ECDNPURGEWILDCARDNOTALLOWED = 'InvalidParameter.EcdnPurgeWildcardNotAllowed'
61
-
62
56
  # 日期不合法,请参考文档中日期示例。
63
57
  INVALIDPARAMETER_ECDNSTATINVALIDDATE = 'InvalidParameter.EcdnStatInvalidDate'
64
58
 
65
59
  # 统计类型不合法,请参考文档中统计分析示例。
66
60
  INVALIDPARAMETER_ECDNSTATINVALIDMETRIC = 'InvalidParameter.EcdnStatInvalidMetric'
67
61
 
68
- # URL 超过限制长度。
69
- INVALIDPARAMETER_ECDNURLEXCEEDLENGTH = 'InvalidParameter.EcdnUrlExceedLength'
70
-
71
62
  # 参数错误。
72
63
  INVALIDPARAMETER_PARAMERROR = 'InvalidParameter.ParamError'
73
64
 
74
65
  # 域名操作过于频繁。
75
66
  LIMITEXCEEDED_ECDNDOMAINOPTOOOFTEN = 'LimitExceeded.EcdnDomainOpTooOften'
76
67
 
77
- # 刷新的Url数量超过单次限制。
78
- LIMITEXCEEDED_ECDNPURGEURLEXCEEDBATCHLIMIT = 'LimitExceeded.EcdnPurgeUrlExceedBatchLimit'
79
-
80
- # 刷新的Url数量超过每日限额。
81
- LIMITEXCEEDED_ECDNPURGEURLEXCEEDDAYLIMIT = 'LimitExceeded.EcdnPurgeUrlExceedDayLimit'
82
-
83
68
  # 账号下无此域名,请确认后重试。
84
69
  RESOURCENOTFOUND_ECDNDOMAINNOTEXISTS = 'ResourceNotFound.EcdnDomainNotExists'
85
70
 
@@ -128,18 +113,12 @@ UNAUTHORIZEDOPERATION_ECDNDOMAINUNAUTHORIZED = 'UnauthorizedOperation.EcdnDomain
128
113
  # ECDN子账号加速域名未授权。
129
114
  UNAUTHORIZEDOPERATION_ECDNHOSTUNAUTHORIZED = 'UnauthorizedOperation.EcdnHostUnauthorized'
130
115
 
131
- # 请前往CDN控制台进行操作 。
132
- UNAUTHORIZEDOPERATION_ECDNMIGRATEDCDN = 'UnauthorizedOperation.EcdnMigratedCdn'
133
-
134
116
  # 子账号没有授权域名权限,请授权后重试。
135
117
  UNAUTHORIZEDOPERATION_ECDNNODOMAINUNAUTHORIZED = 'UnauthorizedOperation.EcdnNoDomainUnauthorized'
136
118
 
137
119
  # 子账号项目未授权。
138
120
  UNAUTHORIZEDOPERATION_ECDNPROJECTUNAUTHORIZED = 'UnauthorizedOperation.EcdnProjectUnauthorized'
139
121
 
140
- # 加速服务已停服,请重启加速服务后重试。
141
- UNAUTHORIZEDOPERATION_ECDNUSERISSUSPENDED = 'UnauthorizedOperation.EcdnUserIsSuspended'
142
-
143
122
  # 非内测白名单用户,无该功能使用权限。
144
123
  UNAUTHORIZEDOPERATION_ECDNUSERNOWHITELIST = 'UnauthorizedOperation.EcdnUserNoWhitelist'
145
124
 
@@ -1406,210 +1406,6 @@ class DescribeIpStatusResponse(AbstractModel):
1406
1406
  self._RequestId = params.get("RequestId")
1407
1407
 
1408
1408
 
1409
- class DescribePurgeTasksRequest(AbstractModel):
1410
- """DescribePurgeTasks请求参数结构体
1411
-
1412
- """
1413
-
1414
- def __init__(self):
1415
- r"""
1416
- :param _PurgeType: 查询刷新类型。url:查询 url 刷新记录;path:查询目录刷新记录。
1417
- :type PurgeType: str
1418
- :param _StartTime: 开始时间,如2018-08-08 00:00:00。
1419
- :type StartTime: str
1420
- :param _EndTime: 结束时间,如2018-08-08 23:59:59。
1421
- :type EndTime: str
1422
- :param _TaskId: 提交时返回的任务 Id,查询时 TaskId 和起始时间必须指定一项。
1423
- :type TaskId: str
1424
- :param _Offset: 分页查询偏移量,默认为0(从第0条开始)。
1425
- :type Offset: int
1426
- :param _Limit: 分页查询限制数目,默认为20。
1427
- :type Limit: int
1428
- :param _Keyword: 查询关键字,请输入域名或 http(s):// 开头完整 URL。
1429
- :type Keyword: str
1430
- :param _Status: 查询指定任务状态,fail表示失败,done表示成功,process表示刷新中。
1431
- :type Status: str
1432
- """
1433
- self._PurgeType = None
1434
- self._StartTime = None
1435
- self._EndTime = None
1436
- self._TaskId = None
1437
- self._Offset = None
1438
- self._Limit = None
1439
- self._Keyword = None
1440
- self._Status = None
1441
-
1442
- @property
1443
- def PurgeType(self):
1444
- """查询刷新类型。url:查询 url 刷新记录;path:查询目录刷新记录。
1445
- :rtype: str
1446
- """
1447
- return self._PurgeType
1448
-
1449
- @PurgeType.setter
1450
- def PurgeType(self, PurgeType):
1451
- self._PurgeType = PurgeType
1452
-
1453
- @property
1454
- def StartTime(self):
1455
- """开始时间,如2018-08-08 00:00:00。
1456
- :rtype: str
1457
- """
1458
- return self._StartTime
1459
-
1460
- @StartTime.setter
1461
- def StartTime(self, StartTime):
1462
- self._StartTime = StartTime
1463
-
1464
- @property
1465
- def EndTime(self):
1466
- """结束时间,如2018-08-08 23:59:59。
1467
- :rtype: str
1468
- """
1469
- return self._EndTime
1470
-
1471
- @EndTime.setter
1472
- def EndTime(self, EndTime):
1473
- self._EndTime = EndTime
1474
-
1475
- @property
1476
- def TaskId(self):
1477
- """提交时返回的任务 Id,查询时 TaskId 和起始时间必须指定一项。
1478
- :rtype: str
1479
- """
1480
- return self._TaskId
1481
-
1482
- @TaskId.setter
1483
- def TaskId(self, TaskId):
1484
- self._TaskId = TaskId
1485
-
1486
- @property
1487
- def Offset(self):
1488
- """分页查询偏移量,默认为0(从第0条开始)。
1489
- :rtype: int
1490
- """
1491
- return self._Offset
1492
-
1493
- @Offset.setter
1494
- def Offset(self, Offset):
1495
- self._Offset = Offset
1496
-
1497
- @property
1498
- def Limit(self):
1499
- """分页查询限制数目,默认为20。
1500
- :rtype: int
1501
- """
1502
- return self._Limit
1503
-
1504
- @Limit.setter
1505
- def Limit(self, Limit):
1506
- self._Limit = Limit
1507
-
1508
- @property
1509
- def Keyword(self):
1510
- """查询关键字,请输入域名或 http(s):// 开头完整 URL。
1511
- :rtype: str
1512
- """
1513
- return self._Keyword
1514
-
1515
- @Keyword.setter
1516
- def Keyword(self, Keyword):
1517
- self._Keyword = Keyword
1518
-
1519
- @property
1520
- def Status(self):
1521
- """查询指定任务状态,fail表示失败,done表示成功,process表示刷新中。
1522
- :rtype: str
1523
- """
1524
- return self._Status
1525
-
1526
- @Status.setter
1527
- def Status(self, Status):
1528
- self._Status = Status
1529
-
1530
-
1531
- def _deserialize(self, params):
1532
- self._PurgeType = params.get("PurgeType")
1533
- self._StartTime = params.get("StartTime")
1534
- self._EndTime = params.get("EndTime")
1535
- self._TaskId = params.get("TaskId")
1536
- self._Offset = params.get("Offset")
1537
- self._Limit = params.get("Limit")
1538
- self._Keyword = params.get("Keyword")
1539
- self._Status = params.get("Status")
1540
- memeber_set = set(params.keys())
1541
- for name, value in vars(self).items():
1542
- property_name = name[1:]
1543
- if property_name in memeber_set:
1544
- memeber_set.remove(property_name)
1545
- if len(memeber_set) > 0:
1546
- warnings.warn("%s fileds are useless." % ",".join(memeber_set))
1547
-
1548
-
1549
-
1550
- class DescribePurgeTasksResponse(AbstractModel):
1551
- """DescribePurgeTasks返回参数结构体
1552
-
1553
- """
1554
-
1555
- def __init__(self):
1556
- r"""
1557
- :param _PurgeLogs: 刷新历史记录。
1558
- :type PurgeLogs: list of PurgeTask
1559
- :param _TotalCount: 任务总数,用于分页。
1560
- :type TotalCount: int
1561
- :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1562
- :type RequestId: str
1563
- """
1564
- self._PurgeLogs = None
1565
- self._TotalCount = None
1566
- self._RequestId = None
1567
-
1568
- @property
1569
- def PurgeLogs(self):
1570
- """刷新历史记录。
1571
- :rtype: list of PurgeTask
1572
- """
1573
- return self._PurgeLogs
1574
-
1575
- @PurgeLogs.setter
1576
- def PurgeLogs(self, PurgeLogs):
1577
- self._PurgeLogs = PurgeLogs
1578
-
1579
- @property
1580
- def TotalCount(self):
1581
- """任务总数,用于分页。
1582
- :rtype: int
1583
- """
1584
- return self._TotalCount
1585
-
1586
- @TotalCount.setter
1587
- def TotalCount(self, TotalCount):
1588
- self._TotalCount = TotalCount
1589
-
1590
- @property
1591
- def RequestId(self):
1592
- """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1593
- :rtype: str
1594
- """
1595
- return self._RequestId
1596
-
1597
- @RequestId.setter
1598
- def RequestId(self, RequestId):
1599
- self._RequestId = RequestId
1600
-
1601
-
1602
- def _deserialize(self, params):
1603
- if params.get("PurgeLogs") is not None:
1604
- self._PurgeLogs = []
1605
- for item in params.get("PurgeLogs"):
1606
- obj = PurgeTask()
1607
- obj._deserialize(item)
1608
- self._PurgeLogs.append(obj)
1609
- self._TotalCount = params.get("TotalCount")
1610
- self._RequestId = params.get("RequestId")
1611
-
1612
-
1613
1409
  class DetailData(AbstractModel):
1614
1410
  """排序类型的数据结构
1615
1411
 
@@ -3349,196 +3145,6 @@ class Origin(AbstractModel):
3349
3145
 
3350
3146
 
3351
3147
 
3352
- class PurgeTask(AbstractModel):
3353
- """刷新任务日志详情
3354
-
3355
- """
3356
-
3357
- def __init__(self):
3358
- r"""
3359
- :param _TaskId: 刷新任务ID。
3360
- :type TaskId: str
3361
- :param _Url: 刷新Url。
3362
- :type Url: str
3363
- :param _Status: 刷新任务状态,fail表示失败,done表示成功,process表示刷新中。
3364
- :type Status: str
3365
- :param _PurgeType: 刷新类型,url表示url刷新,path表示目录刷新。
3366
- :type PurgeType: str
3367
- :param _FlushType: 刷新资源方式,flush代表刷新更新资源,delete代表刷新全部资源。
3368
- :type FlushType: str
3369
- :param _CreateTime: 刷新任务提交时间
3370
- :type CreateTime: str
3371
- """
3372
- self._TaskId = None
3373
- self._Url = None
3374
- self._Status = None
3375
- self._PurgeType = None
3376
- self._FlushType = None
3377
- self._CreateTime = None
3378
-
3379
- @property
3380
- def TaskId(self):
3381
- """刷新任务ID。
3382
- :rtype: str
3383
- """
3384
- return self._TaskId
3385
-
3386
- @TaskId.setter
3387
- def TaskId(self, TaskId):
3388
- self._TaskId = TaskId
3389
-
3390
- @property
3391
- def Url(self):
3392
- """刷新Url。
3393
- :rtype: str
3394
- """
3395
- return self._Url
3396
-
3397
- @Url.setter
3398
- def Url(self, Url):
3399
- self._Url = Url
3400
-
3401
- @property
3402
- def Status(self):
3403
- """刷新任务状态,fail表示失败,done表示成功,process表示刷新中。
3404
- :rtype: str
3405
- """
3406
- return self._Status
3407
-
3408
- @Status.setter
3409
- def Status(self, Status):
3410
- self._Status = Status
3411
-
3412
- @property
3413
- def PurgeType(self):
3414
- """刷新类型,url表示url刷新,path表示目录刷新。
3415
- :rtype: str
3416
- """
3417
- return self._PurgeType
3418
-
3419
- @PurgeType.setter
3420
- def PurgeType(self, PurgeType):
3421
- self._PurgeType = PurgeType
3422
-
3423
- @property
3424
- def FlushType(self):
3425
- """刷新资源方式,flush代表刷新更新资源,delete代表刷新全部资源。
3426
- :rtype: str
3427
- """
3428
- return self._FlushType
3429
-
3430
- @FlushType.setter
3431
- def FlushType(self, FlushType):
3432
- self._FlushType = FlushType
3433
-
3434
- @property
3435
- def CreateTime(self):
3436
- """刷新任务提交时间
3437
- :rtype: str
3438
- """
3439
- return self._CreateTime
3440
-
3441
- @CreateTime.setter
3442
- def CreateTime(self, CreateTime):
3443
- self._CreateTime = CreateTime
3444
-
3445
-
3446
- def _deserialize(self, params):
3447
- self._TaskId = params.get("TaskId")
3448
- self._Url = params.get("Url")
3449
- self._Status = params.get("Status")
3450
- self._PurgeType = params.get("PurgeType")
3451
- self._FlushType = params.get("FlushType")
3452
- self._CreateTime = params.get("CreateTime")
3453
- memeber_set = set(params.keys())
3454
- for name, value in vars(self).items():
3455
- property_name = name[1:]
3456
- if property_name in memeber_set:
3457
- memeber_set.remove(property_name)
3458
- if len(memeber_set) > 0:
3459
- warnings.warn("%s fileds are useless." % ",".join(memeber_set))
3460
-
3461
-
3462
-
3463
- class PurgeUrlsCacheRequest(AbstractModel):
3464
- """PurgeUrlsCache请求参数结构体
3465
-
3466
- """
3467
-
3468
- def __init__(self):
3469
- r"""
3470
- :param _Urls: 要刷新的Url列表,必须包含协议头部。
3471
- :type Urls: list of str
3472
- """
3473
- self._Urls = None
3474
-
3475
- @property
3476
- def Urls(self):
3477
- """要刷新的Url列表,必须包含协议头部。
3478
- :rtype: list of str
3479
- """
3480
- return self._Urls
3481
-
3482
- @Urls.setter
3483
- def Urls(self, Urls):
3484
- self._Urls = Urls
3485
-
3486
-
3487
- def _deserialize(self, params):
3488
- self._Urls = params.get("Urls")
3489
- memeber_set = set(params.keys())
3490
- for name, value in vars(self).items():
3491
- property_name = name[1:]
3492
- if property_name in memeber_set:
3493
- memeber_set.remove(property_name)
3494
- if len(memeber_set) > 0:
3495
- warnings.warn("%s fileds are useless." % ",".join(memeber_set))
3496
-
3497
-
3498
-
3499
- class PurgeUrlsCacheResponse(AbstractModel):
3500
- """PurgeUrlsCache返回参数结构体
3501
-
3502
- """
3503
-
3504
- def __init__(self):
3505
- r"""
3506
- :param _TaskId: 刷新任务Id。
3507
- :type TaskId: str
3508
- :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
3509
- :type RequestId: str
3510
- """
3511
- self._TaskId = None
3512
- self._RequestId = None
3513
-
3514
- @property
3515
- def TaskId(self):
3516
- """刷新任务Id。
3517
- :rtype: str
3518
- """
3519
- return self._TaskId
3520
-
3521
- @TaskId.setter
3522
- def TaskId(self, TaskId):
3523
- self._TaskId = TaskId
3524
-
3525
- @property
3526
- def RequestId(self):
3527
- """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
3528
- :rtype: str
3529
- """
3530
- return self._RequestId
3531
-
3532
- @RequestId.setter
3533
- def RequestId(self, RequestId):
3534
- self._RequestId = RequestId
3535
-
3536
-
3537
- def _deserialize(self, params):
3538
- self._TaskId = params.get("TaskId")
3539
- self._RequestId = params.get("RequestId")
3540
-
3541
-
3542
3148
  class ResourceData(AbstractModel):
3543
3149
  """查询对象及其对应的访问明细数据
3544
3150