tencentcloud-sdk-python 3.0.1130__py2.py3-none-any.whl → 3.0.1131__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 +1 -1
- tencentcloud/cfs/v20190719/models.py +2 -2
- tencentcloud/cls/v20201016/models.py +19 -3
- tencentcloud/cynosdb/v20190107/models.py +98 -0
- tencentcloud/dnspod/v20210323/dnspod_client.py +6 -1
- tencentcloud/domain/v20180808/models.py +48 -0
- tencentcloud/dsgc/v20190723/models.py +173 -12
- tencentcloud/eb/v20210416/models.py +98 -0
- tencentcloud/emr/v20190103/models.py +1 -1
- tencentcloud/ess/v20201111/ess_client.py +23 -0
- tencentcloud/ess/v20201111/models.py +327 -0
- tencentcloud/facefusion/v20220927/models.py +1 -1
- tencentcloud/gaap/v20180529/models.py +37 -0
- tencentcloud/iotexplorer/v20190423/errorcodes.py +9 -0
- tencentcloud/iotexplorer/v20190423/iotexplorer_client.py +161 -0
- tencentcloud/iotexplorer/v20190423/models.py +907 -38
- tencentcloud/lcic/v20220817/models.py +5 -6
- tencentcloud/organization/v20210331/errorcodes.py +177 -0
- tencentcloud/organization/v20210331/models.py +1737 -139
- tencentcloud/organization/v20210331/organization_client.py +276 -0
- tencentcloud/tke/v20180525/models.py +15 -0
- tencentcloud/trocket/v20230308/models.py +0 -58
- tencentcloud/trocket/v20230308/trocket_client.py +0 -23
- tencentcloud/tse/v20201207/models.py +19 -0
- tencentcloud/vod/v20180717/models.py +14 -14
- tencentcloud/wedata/v20210820/models.py +35254 -56013
- tencentcloud/wedata/v20210820/wedata_client.py +104 -2069
- {tencentcloud_sdk_python-3.0.1130.dist-info → tencentcloud_sdk_python-3.0.1131.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1130.dist-info → tencentcloud_sdk_python-3.0.1131.dist-info}/RECORD +32 -32
- {tencentcloud_sdk_python-3.0.1130.dist-info → tencentcloud_sdk_python-3.0.1131.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1130.dist-info → tencentcloud_sdk_python-3.0.1131.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1130.dist-info → tencentcloud_sdk_python-3.0.1131.dist-info}/top_level.txt +0 -0
|
@@ -499,6 +499,100 @@ class AddShareUnitResponse(AbstractModel):
|
|
|
499
499
|
self._RequestId = params.get("RequestId")
|
|
500
500
|
|
|
501
501
|
|
|
502
|
+
class AttachPolicyRequest(AbstractModel):
|
|
503
|
+
"""AttachPolicy请求参数结构体
|
|
504
|
+
|
|
505
|
+
"""
|
|
506
|
+
|
|
507
|
+
def __init__(self):
|
|
508
|
+
r"""
|
|
509
|
+
:param _TargetId: 绑定策略目标ID。成员Uin或部门ID
|
|
510
|
+
:type TargetId: int
|
|
511
|
+
:param _TargetType: 目标类型。取值范围:NODE-部门、MEMBER-成员
|
|
512
|
+
:type TargetType: str
|
|
513
|
+
:param _PolicyId: 策略ID。
|
|
514
|
+
:type PolicyId: int
|
|
515
|
+
:param _Type: 策略类型。默认值SERVICE_CONTROL_POLICY,取值范围:SERVICE_CONTROL_POLICY-服务控制策略、TAG_POLICY-标签策略
|
|
516
|
+
:type Type: str
|
|
517
|
+
"""
|
|
518
|
+
self._TargetId = None
|
|
519
|
+
self._TargetType = None
|
|
520
|
+
self._PolicyId = None
|
|
521
|
+
self._Type = None
|
|
522
|
+
|
|
523
|
+
@property
|
|
524
|
+
def TargetId(self):
|
|
525
|
+
return self._TargetId
|
|
526
|
+
|
|
527
|
+
@TargetId.setter
|
|
528
|
+
def TargetId(self, TargetId):
|
|
529
|
+
self._TargetId = TargetId
|
|
530
|
+
|
|
531
|
+
@property
|
|
532
|
+
def TargetType(self):
|
|
533
|
+
return self._TargetType
|
|
534
|
+
|
|
535
|
+
@TargetType.setter
|
|
536
|
+
def TargetType(self, TargetType):
|
|
537
|
+
self._TargetType = TargetType
|
|
538
|
+
|
|
539
|
+
@property
|
|
540
|
+
def PolicyId(self):
|
|
541
|
+
return self._PolicyId
|
|
542
|
+
|
|
543
|
+
@PolicyId.setter
|
|
544
|
+
def PolicyId(self, PolicyId):
|
|
545
|
+
self._PolicyId = PolicyId
|
|
546
|
+
|
|
547
|
+
@property
|
|
548
|
+
def Type(self):
|
|
549
|
+
return self._Type
|
|
550
|
+
|
|
551
|
+
@Type.setter
|
|
552
|
+
def Type(self, Type):
|
|
553
|
+
self._Type = Type
|
|
554
|
+
|
|
555
|
+
|
|
556
|
+
def _deserialize(self, params):
|
|
557
|
+
self._TargetId = params.get("TargetId")
|
|
558
|
+
self._TargetType = params.get("TargetType")
|
|
559
|
+
self._PolicyId = params.get("PolicyId")
|
|
560
|
+
self._Type = params.get("Type")
|
|
561
|
+
memeber_set = set(params.keys())
|
|
562
|
+
for name, value in vars(self).items():
|
|
563
|
+
property_name = name[1:]
|
|
564
|
+
if property_name in memeber_set:
|
|
565
|
+
memeber_set.remove(property_name)
|
|
566
|
+
if len(memeber_set) > 0:
|
|
567
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
568
|
+
|
|
569
|
+
|
|
570
|
+
|
|
571
|
+
class AttachPolicyResponse(AbstractModel):
|
|
572
|
+
"""AttachPolicy返回参数结构体
|
|
573
|
+
|
|
574
|
+
"""
|
|
575
|
+
|
|
576
|
+
def __init__(self):
|
|
577
|
+
r"""
|
|
578
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
579
|
+
:type RequestId: str
|
|
580
|
+
"""
|
|
581
|
+
self._RequestId = None
|
|
582
|
+
|
|
583
|
+
@property
|
|
584
|
+
def RequestId(self):
|
|
585
|
+
return self._RequestId
|
|
586
|
+
|
|
587
|
+
@RequestId.setter
|
|
588
|
+
def RequestId(self, RequestId):
|
|
589
|
+
self._RequestId = RequestId
|
|
590
|
+
|
|
591
|
+
|
|
592
|
+
def _deserialize(self, params):
|
|
593
|
+
self._RequestId = params.get("RequestId")
|
|
594
|
+
|
|
595
|
+
|
|
502
596
|
class AuthNode(AbstractModel):
|
|
503
597
|
"""互信主体主要信息
|
|
504
598
|
|
|
@@ -1427,6 +1521,113 @@ class CreateOrganizationResponse(AbstractModel):
|
|
|
1427
1521
|
self._RequestId = params.get("RequestId")
|
|
1428
1522
|
|
|
1429
1523
|
|
|
1524
|
+
class CreatePolicyRequest(AbstractModel):
|
|
1525
|
+
"""CreatePolicy请求参数结构体
|
|
1526
|
+
|
|
1527
|
+
"""
|
|
1528
|
+
|
|
1529
|
+
def __init__(self):
|
|
1530
|
+
r"""
|
|
1531
|
+
:param _Name: 策略名。
|
|
1532
|
+
长度为1~128个字符,可以包含汉字、英文字母、数字和下划线(_)
|
|
1533
|
+
:type Name: str
|
|
1534
|
+
:param _Content: 策略内容。参考CAM策略语法
|
|
1535
|
+
:type Content: str
|
|
1536
|
+
:param _Type: 策略类型。默认值SERVICE_CONTROL_POLICY,取值范围:SERVICE_CONTROL_POLICY-服务控制策略、TAG_POLICY-标签策略
|
|
1537
|
+
:type Type: str
|
|
1538
|
+
:param _Description: 策略描述。
|
|
1539
|
+
:type Description: str
|
|
1540
|
+
"""
|
|
1541
|
+
self._Name = None
|
|
1542
|
+
self._Content = None
|
|
1543
|
+
self._Type = None
|
|
1544
|
+
self._Description = None
|
|
1545
|
+
|
|
1546
|
+
@property
|
|
1547
|
+
def Name(self):
|
|
1548
|
+
return self._Name
|
|
1549
|
+
|
|
1550
|
+
@Name.setter
|
|
1551
|
+
def Name(self, Name):
|
|
1552
|
+
self._Name = Name
|
|
1553
|
+
|
|
1554
|
+
@property
|
|
1555
|
+
def Content(self):
|
|
1556
|
+
return self._Content
|
|
1557
|
+
|
|
1558
|
+
@Content.setter
|
|
1559
|
+
def Content(self, Content):
|
|
1560
|
+
self._Content = Content
|
|
1561
|
+
|
|
1562
|
+
@property
|
|
1563
|
+
def Type(self):
|
|
1564
|
+
return self._Type
|
|
1565
|
+
|
|
1566
|
+
@Type.setter
|
|
1567
|
+
def Type(self, Type):
|
|
1568
|
+
self._Type = Type
|
|
1569
|
+
|
|
1570
|
+
@property
|
|
1571
|
+
def Description(self):
|
|
1572
|
+
return self._Description
|
|
1573
|
+
|
|
1574
|
+
@Description.setter
|
|
1575
|
+
def Description(self, Description):
|
|
1576
|
+
self._Description = Description
|
|
1577
|
+
|
|
1578
|
+
|
|
1579
|
+
def _deserialize(self, params):
|
|
1580
|
+
self._Name = params.get("Name")
|
|
1581
|
+
self._Content = params.get("Content")
|
|
1582
|
+
self._Type = params.get("Type")
|
|
1583
|
+
self._Description = params.get("Description")
|
|
1584
|
+
memeber_set = set(params.keys())
|
|
1585
|
+
for name, value in vars(self).items():
|
|
1586
|
+
property_name = name[1:]
|
|
1587
|
+
if property_name in memeber_set:
|
|
1588
|
+
memeber_set.remove(property_name)
|
|
1589
|
+
if len(memeber_set) > 0:
|
|
1590
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
1591
|
+
|
|
1592
|
+
|
|
1593
|
+
|
|
1594
|
+
class CreatePolicyResponse(AbstractModel):
|
|
1595
|
+
"""CreatePolicy返回参数结构体
|
|
1596
|
+
|
|
1597
|
+
"""
|
|
1598
|
+
|
|
1599
|
+
def __init__(self):
|
|
1600
|
+
r"""
|
|
1601
|
+
:param _PolicyId: 策略ID
|
|
1602
|
+
:type PolicyId: int
|
|
1603
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1604
|
+
:type RequestId: str
|
|
1605
|
+
"""
|
|
1606
|
+
self._PolicyId = None
|
|
1607
|
+
self._RequestId = None
|
|
1608
|
+
|
|
1609
|
+
@property
|
|
1610
|
+
def PolicyId(self):
|
|
1611
|
+
return self._PolicyId
|
|
1612
|
+
|
|
1613
|
+
@PolicyId.setter
|
|
1614
|
+
def PolicyId(self, PolicyId):
|
|
1615
|
+
self._PolicyId = PolicyId
|
|
1616
|
+
|
|
1617
|
+
@property
|
|
1618
|
+
def RequestId(self):
|
|
1619
|
+
return self._RequestId
|
|
1620
|
+
|
|
1621
|
+
@RequestId.setter
|
|
1622
|
+
def RequestId(self, RequestId):
|
|
1623
|
+
self._RequestId = RequestId
|
|
1624
|
+
|
|
1625
|
+
|
|
1626
|
+
def _deserialize(self, params):
|
|
1627
|
+
self._PolicyId = params.get("PolicyId")
|
|
1628
|
+
self._RequestId = params.get("RequestId")
|
|
1629
|
+
|
|
1630
|
+
|
|
1430
1631
|
class DeleteAccountRequest(AbstractModel):
|
|
1431
1632
|
"""DeleteAccount请求参数结构体
|
|
1432
1633
|
|
|
@@ -1818,6 +2019,77 @@ class DeleteOrganizationResponse(AbstractModel):
|
|
|
1818
2019
|
self._RequestId = params.get("RequestId")
|
|
1819
2020
|
|
|
1820
2021
|
|
|
2022
|
+
class DeletePolicyRequest(AbstractModel):
|
|
2023
|
+
"""DeletePolicy请求参数结构体
|
|
2024
|
+
|
|
2025
|
+
"""
|
|
2026
|
+
|
|
2027
|
+
def __init__(self):
|
|
2028
|
+
r"""
|
|
2029
|
+
:param _PolicyId: 需要删除的策略ID。可以调用[ListPolicies](https://tcloud4api.woa.com/document/product/1128/79356?!preview&!document=1)获取
|
|
2030
|
+
|
|
2031
|
+
:type PolicyId: int
|
|
2032
|
+
:param _Type: 策略类型。默认值SERVICE_CONTROL_POLICY,取值范围:SERVICE_CONTROL_POLICY-服务控制策略、TAG_POLICY-标签策略
|
|
2033
|
+
:type Type: str
|
|
2034
|
+
"""
|
|
2035
|
+
self._PolicyId = None
|
|
2036
|
+
self._Type = None
|
|
2037
|
+
|
|
2038
|
+
@property
|
|
2039
|
+
def PolicyId(self):
|
|
2040
|
+
return self._PolicyId
|
|
2041
|
+
|
|
2042
|
+
@PolicyId.setter
|
|
2043
|
+
def PolicyId(self, PolicyId):
|
|
2044
|
+
self._PolicyId = PolicyId
|
|
2045
|
+
|
|
2046
|
+
@property
|
|
2047
|
+
def Type(self):
|
|
2048
|
+
return self._Type
|
|
2049
|
+
|
|
2050
|
+
@Type.setter
|
|
2051
|
+
def Type(self, Type):
|
|
2052
|
+
self._Type = Type
|
|
2053
|
+
|
|
2054
|
+
|
|
2055
|
+
def _deserialize(self, params):
|
|
2056
|
+
self._PolicyId = params.get("PolicyId")
|
|
2057
|
+
self._Type = params.get("Type")
|
|
2058
|
+
memeber_set = set(params.keys())
|
|
2059
|
+
for name, value in vars(self).items():
|
|
2060
|
+
property_name = name[1:]
|
|
2061
|
+
if property_name in memeber_set:
|
|
2062
|
+
memeber_set.remove(property_name)
|
|
2063
|
+
if len(memeber_set) > 0:
|
|
2064
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
2065
|
+
|
|
2066
|
+
|
|
2067
|
+
|
|
2068
|
+
class DeletePolicyResponse(AbstractModel):
|
|
2069
|
+
"""DeletePolicy返回参数结构体
|
|
2070
|
+
|
|
2071
|
+
"""
|
|
2072
|
+
|
|
2073
|
+
def __init__(self):
|
|
2074
|
+
r"""
|
|
2075
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
2076
|
+
:type RequestId: str
|
|
2077
|
+
"""
|
|
2078
|
+
self._RequestId = None
|
|
2079
|
+
|
|
2080
|
+
@property
|
|
2081
|
+
def RequestId(self):
|
|
2082
|
+
return self._RequestId
|
|
2083
|
+
|
|
2084
|
+
@RequestId.setter
|
|
2085
|
+
def RequestId(self, RequestId):
|
|
2086
|
+
self._RequestId = RequestId
|
|
2087
|
+
|
|
2088
|
+
|
|
2089
|
+
def _deserialize(self, params):
|
|
2090
|
+
self._RequestId = params.get("RequestId")
|
|
2091
|
+
|
|
2092
|
+
|
|
1821
2093
|
class DeleteShareUnitMembersRequest(AbstractModel):
|
|
1822
2094
|
"""DeleteShareUnitMembers请求参数结构体
|
|
1823
2095
|
|
|
@@ -2624,7 +2896,7 @@ class DescribeOrganizationMemberAuthAccountsRequest(AbstractModel):
|
|
|
2624
2896
|
:type Limit: int
|
|
2625
2897
|
:param _MemberUin: 成员Uin。
|
|
2626
2898
|
:type MemberUin: int
|
|
2627
|
-
:param _PolicyId: 策略ID。可以通过[DescribeOrganizationMemberPolicies](https://cloud.tencent.com/document/product/850/82935)
|
|
2899
|
+
:param _PolicyId: 策略ID。可以通过[DescribeOrganizationMemberPolicies](https://cloud.tencent.com/document/product/850/82935)获取
|
|
2628
2900
|
:type PolicyId: int
|
|
2629
2901
|
"""
|
|
2630
2902
|
self._Offset = None
|
|
@@ -3692,29 +3964,41 @@ class DescribeOrganizationResponse(AbstractModel):
|
|
|
3692
3964
|
self._RequestId = params.get("RequestId")
|
|
3693
3965
|
|
|
3694
3966
|
|
|
3695
|
-
class
|
|
3696
|
-
"""
|
|
3967
|
+
class DescribePolicyConfigRequest(AbstractModel):
|
|
3968
|
+
"""DescribePolicyConfig请求参数结构体
|
|
3697
3969
|
|
|
3698
3970
|
"""
|
|
3699
3971
|
|
|
3700
3972
|
def __init__(self):
|
|
3701
3973
|
r"""
|
|
3702
|
-
:param
|
|
3703
|
-
:type
|
|
3974
|
+
:param _OrganizationId: 企业组织Id。可以调用[DescribeOrganization](https://cloud.tencent.com/document/product/850/67059)获取
|
|
3975
|
+
:type OrganizationId: int
|
|
3976
|
+
:param _Type: 策略类型。默认值0,取值范围:0-服务控制策略、1-标签策略
|
|
3977
|
+
:type Type: int
|
|
3704
3978
|
"""
|
|
3705
|
-
self.
|
|
3979
|
+
self._OrganizationId = None
|
|
3980
|
+
self._Type = None
|
|
3706
3981
|
|
|
3707
3982
|
@property
|
|
3708
|
-
def
|
|
3709
|
-
return self.
|
|
3983
|
+
def OrganizationId(self):
|
|
3984
|
+
return self._OrganizationId
|
|
3710
3985
|
|
|
3711
|
-
@
|
|
3712
|
-
def
|
|
3713
|
-
self.
|
|
3986
|
+
@OrganizationId.setter
|
|
3987
|
+
def OrganizationId(self, OrganizationId):
|
|
3988
|
+
self._OrganizationId = OrganizationId
|
|
3989
|
+
|
|
3990
|
+
@property
|
|
3991
|
+
def Type(self):
|
|
3992
|
+
return self._Type
|
|
3993
|
+
|
|
3994
|
+
@Type.setter
|
|
3995
|
+
def Type(self, Type):
|
|
3996
|
+
self._Type = Type
|
|
3714
3997
|
|
|
3715
3998
|
|
|
3716
3999
|
def _deserialize(self, params):
|
|
3717
|
-
self.
|
|
4000
|
+
self._OrganizationId = params.get("OrganizationId")
|
|
4001
|
+
self._Type = params.get("Type")
|
|
3718
4002
|
memeber_set = set(params.keys())
|
|
3719
4003
|
for name, value in vars(self).items():
|
|
3720
4004
|
property_name = name[1:]
|
|
@@ -3725,21 +4009,262 @@ class DescribeShareAreasRequest(AbstractModel):
|
|
|
3725
4009
|
|
|
3726
4010
|
|
|
3727
4011
|
|
|
3728
|
-
class
|
|
3729
|
-
"""
|
|
4012
|
+
class DescribePolicyConfigResponse(AbstractModel):
|
|
4013
|
+
"""DescribePolicyConfig返回参数结构体
|
|
3730
4014
|
|
|
3731
4015
|
"""
|
|
3732
4016
|
|
|
3733
4017
|
def __init__(self):
|
|
3734
4018
|
r"""
|
|
3735
|
-
:param
|
|
3736
|
-
|
|
3737
|
-
:
|
|
4019
|
+
:param _Status: 开启状态。0-未开启、1-开启
|
|
4020
|
+
:type Status: int
|
|
4021
|
+
:param _Type: 策略类型。SERVICE_CONTROL_POLICY-服务控制策略、TAG_POLICY-标签策略
|
|
4022
|
+
:type Type: str
|
|
3738
4023
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
3739
4024
|
:type RequestId: str
|
|
3740
4025
|
"""
|
|
3741
|
-
self.
|
|
3742
|
-
self.
|
|
4026
|
+
self._Status = None
|
|
4027
|
+
self._Type = None
|
|
4028
|
+
self._RequestId = None
|
|
4029
|
+
|
|
4030
|
+
@property
|
|
4031
|
+
def Status(self):
|
|
4032
|
+
return self._Status
|
|
4033
|
+
|
|
4034
|
+
@Status.setter
|
|
4035
|
+
def Status(self, Status):
|
|
4036
|
+
self._Status = Status
|
|
4037
|
+
|
|
4038
|
+
@property
|
|
4039
|
+
def Type(self):
|
|
4040
|
+
return self._Type
|
|
4041
|
+
|
|
4042
|
+
@Type.setter
|
|
4043
|
+
def Type(self, Type):
|
|
4044
|
+
self._Type = Type
|
|
4045
|
+
|
|
4046
|
+
@property
|
|
4047
|
+
def RequestId(self):
|
|
4048
|
+
return self._RequestId
|
|
4049
|
+
|
|
4050
|
+
@RequestId.setter
|
|
4051
|
+
def RequestId(self, RequestId):
|
|
4052
|
+
self._RequestId = RequestId
|
|
4053
|
+
|
|
4054
|
+
|
|
4055
|
+
def _deserialize(self, params):
|
|
4056
|
+
self._Status = params.get("Status")
|
|
4057
|
+
self._Type = params.get("Type")
|
|
4058
|
+
self._RequestId = params.get("RequestId")
|
|
4059
|
+
|
|
4060
|
+
|
|
4061
|
+
class DescribePolicyRequest(AbstractModel):
|
|
4062
|
+
"""DescribePolicy请求参数结构体
|
|
4063
|
+
|
|
4064
|
+
"""
|
|
4065
|
+
|
|
4066
|
+
def __init__(self):
|
|
4067
|
+
r"""
|
|
4068
|
+
:param _PolicyId: 策略Id。
|
|
4069
|
+
:type PolicyId: int
|
|
4070
|
+
:param _PolicyType: 策略类型。默认值SERVICE_CONTROL_POLICY,取值范围:SERVICE_CONTROL_POLICY-服务控制策略、TAG_POLICY-标签策略
|
|
4071
|
+
:type PolicyType: str
|
|
4072
|
+
"""
|
|
4073
|
+
self._PolicyId = None
|
|
4074
|
+
self._PolicyType = None
|
|
4075
|
+
|
|
4076
|
+
@property
|
|
4077
|
+
def PolicyId(self):
|
|
4078
|
+
return self._PolicyId
|
|
4079
|
+
|
|
4080
|
+
@PolicyId.setter
|
|
4081
|
+
def PolicyId(self, PolicyId):
|
|
4082
|
+
self._PolicyId = PolicyId
|
|
4083
|
+
|
|
4084
|
+
@property
|
|
4085
|
+
def PolicyType(self):
|
|
4086
|
+
return self._PolicyType
|
|
4087
|
+
|
|
4088
|
+
@PolicyType.setter
|
|
4089
|
+
def PolicyType(self, PolicyType):
|
|
4090
|
+
self._PolicyType = PolicyType
|
|
4091
|
+
|
|
4092
|
+
|
|
4093
|
+
def _deserialize(self, params):
|
|
4094
|
+
self._PolicyId = params.get("PolicyId")
|
|
4095
|
+
self._PolicyType = params.get("PolicyType")
|
|
4096
|
+
memeber_set = set(params.keys())
|
|
4097
|
+
for name, value in vars(self).items():
|
|
4098
|
+
property_name = name[1:]
|
|
4099
|
+
if property_name in memeber_set:
|
|
4100
|
+
memeber_set.remove(property_name)
|
|
4101
|
+
if len(memeber_set) > 0:
|
|
4102
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
4103
|
+
|
|
4104
|
+
|
|
4105
|
+
|
|
4106
|
+
class DescribePolicyResponse(AbstractModel):
|
|
4107
|
+
"""DescribePolicy返回参数结构体
|
|
4108
|
+
|
|
4109
|
+
"""
|
|
4110
|
+
|
|
4111
|
+
def __init__(self):
|
|
4112
|
+
r"""
|
|
4113
|
+
:param _PolicyId: 策略Id。
|
|
4114
|
+
:type PolicyId: int
|
|
4115
|
+
:param _PolicyName: 策略名称。
|
|
4116
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4117
|
+
:type PolicyName: str
|
|
4118
|
+
:param _Type: 策略类型。1-自定义 2-预设策略
|
|
4119
|
+
:type Type: int
|
|
4120
|
+
:param _Description: 策略描述。
|
|
4121
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4122
|
+
:type Description: str
|
|
4123
|
+
:param _PolicyDocument: 策略文档。
|
|
4124
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4125
|
+
:type PolicyDocument: str
|
|
4126
|
+
:param _UpdateTime: 策略更新时间。
|
|
4127
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4128
|
+
:type UpdateTime: str
|
|
4129
|
+
:param _AddTime: 策略创建时间。
|
|
4130
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4131
|
+
:type AddTime: str
|
|
4132
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
4133
|
+
:type RequestId: str
|
|
4134
|
+
"""
|
|
4135
|
+
self._PolicyId = None
|
|
4136
|
+
self._PolicyName = None
|
|
4137
|
+
self._Type = None
|
|
4138
|
+
self._Description = None
|
|
4139
|
+
self._PolicyDocument = None
|
|
4140
|
+
self._UpdateTime = None
|
|
4141
|
+
self._AddTime = None
|
|
4142
|
+
self._RequestId = None
|
|
4143
|
+
|
|
4144
|
+
@property
|
|
4145
|
+
def PolicyId(self):
|
|
4146
|
+
return self._PolicyId
|
|
4147
|
+
|
|
4148
|
+
@PolicyId.setter
|
|
4149
|
+
def PolicyId(self, PolicyId):
|
|
4150
|
+
self._PolicyId = PolicyId
|
|
4151
|
+
|
|
4152
|
+
@property
|
|
4153
|
+
def PolicyName(self):
|
|
4154
|
+
return self._PolicyName
|
|
4155
|
+
|
|
4156
|
+
@PolicyName.setter
|
|
4157
|
+
def PolicyName(self, PolicyName):
|
|
4158
|
+
self._PolicyName = PolicyName
|
|
4159
|
+
|
|
4160
|
+
@property
|
|
4161
|
+
def Type(self):
|
|
4162
|
+
return self._Type
|
|
4163
|
+
|
|
4164
|
+
@Type.setter
|
|
4165
|
+
def Type(self, Type):
|
|
4166
|
+
self._Type = Type
|
|
4167
|
+
|
|
4168
|
+
@property
|
|
4169
|
+
def Description(self):
|
|
4170
|
+
return self._Description
|
|
4171
|
+
|
|
4172
|
+
@Description.setter
|
|
4173
|
+
def Description(self, Description):
|
|
4174
|
+
self._Description = Description
|
|
4175
|
+
|
|
4176
|
+
@property
|
|
4177
|
+
def PolicyDocument(self):
|
|
4178
|
+
return self._PolicyDocument
|
|
4179
|
+
|
|
4180
|
+
@PolicyDocument.setter
|
|
4181
|
+
def PolicyDocument(self, PolicyDocument):
|
|
4182
|
+
self._PolicyDocument = PolicyDocument
|
|
4183
|
+
|
|
4184
|
+
@property
|
|
4185
|
+
def UpdateTime(self):
|
|
4186
|
+
return self._UpdateTime
|
|
4187
|
+
|
|
4188
|
+
@UpdateTime.setter
|
|
4189
|
+
def UpdateTime(self, UpdateTime):
|
|
4190
|
+
self._UpdateTime = UpdateTime
|
|
4191
|
+
|
|
4192
|
+
@property
|
|
4193
|
+
def AddTime(self):
|
|
4194
|
+
return self._AddTime
|
|
4195
|
+
|
|
4196
|
+
@AddTime.setter
|
|
4197
|
+
def AddTime(self, AddTime):
|
|
4198
|
+
self._AddTime = AddTime
|
|
4199
|
+
|
|
4200
|
+
@property
|
|
4201
|
+
def RequestId(self):
|
|
4202
|
+
return self._RequestId
|
|
4203
|
+
|
|
4204
|
+
@RequestId.setter
|
|
4205
|
+
def RequestId(self, RequestId):
|
|
4206
|
+
self._RequestId = RequestId
|
|
4207
|
+
|
|
4208
|
+
|
|
4209
|
+
def _deserialize(self, params):
|
|
4210
|
+
self._PolicyId = params.get("PolicyId")
|
|
4211
|
+
self._PolicyName = params.get("PolicyName")
|
|
4212
|
+
self._Type = params.get("Type")
|
|
4213
|
+
self._Description = params.get("Description")
|
|
4214
|
+
self._PolicyDocument = params.get("PolicyDocument")
|
|
4215
|
+
self._UpdateTime = params.get("UpdateTime")
|
|
4216
|
+
self._AddTime = params.get("AddTime")
|
|
4217
|
+
self._RequestId = params.get("RequestId")
|
|
4218
|
+
|
|
4219
|
+
|
|
4220
|
+
class DescribeShareAreasRequest(AbstractModel):
|
|
4221
|
+
"""DescribeShareAreas请求参数结构体
|
|
4222
|
+
|
|
4223
|
+
"""
|
|
4224
|
+
|
|
4225
|
+
def __init__(self):
|
|
4226
|
+
r"""
|
|
4227
|
+
:param _Lang: 国际站:en,国内站:zh
|
|
4228
|
+
:type Lang: str
|
|
4229
|
+
"""
|
|
4230
|
+
self._Lang = None
|
|
4231
|
+
|
|
4232
|
+
@property
|
|
4233
|
+
def Lang(self):
|
|
4234
|
+
return self._Lang
|
|
4235
|
+
|
|
4236
|
+
@Lang.setter
|
|
4237
|
+
def Lang(self, Lang):
|
|
4238
|
+
self._Lang = Lang
|
|
4239
|
+
|
|
4240
|
+
|
|
4241
|
+
def _deserialize(self, params):
|
|
4242
|
+
self._Lang = params.get("Lang")
|
|
4243
|
+
memeber_set = set(params.keys())
|
|
4244
|
+
for name, value in vars(self).items():
|
|
4245
|
+
property_name = name[1:]
|
|
4246
|
+
if property_name in memeber_set:
|
|
4247
|
+
memeber_set.remove(property_name)
|
|
4248
|
+
if len(memeber_set) > 0:
|
|
4249
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
4250
|
+
|
|
4251
|
+
|
|
4252
|
+
|
|
4253
|
+
class DescribeShareAreasResponse(AbstractModel):
|
|
4254
|
+
"""DescribeShareAreas返回参数结构体
|
|
4255
|
+
|
|
4256
|
+
"""
|
|
4257
|
+
|
|
4258
|
+
def __init__(self):
|
|
4259
|
+
r"""
|
|
4260
|
+
:param _Items: 详情
|
|
4261
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4262
|
+
:type Items: list of ShareArea
|
|
4263
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
4264
|
+
:type RequestId: str
|
|
4265
|
+
"""
|
|
4266
|
+
self._Items = None
|
|
4267
|
+
self._RequestId = None
|
|
3743
4268
|
|
|
3744
4269
|
@property
|
|
3745
4270
|
def Items(self):
|
|
@@ -3783,7 +4308,7 @@ class DescribeShareUnitMembersRequest(AbstractModel):
|
|
|
3783
4308
|
:type Offset: int
|
|
3784
4309
|
:param _Limit: 限制数目。取值范围:1~50。
|
|
3785
4310
|
:type Limit: int
|
|
3786
|
-
:param _SearchKey: 搜索关键字。支持成员
|
|
4311
|
+
:param _SearchKey: 搜索关键字。支持成员Uin搜索。
|
|
3787
4312
|
:type SearchKey: str
|
|
3788
4313
|
"""
|
|
3789
4314
|
self._UnitId = None
|
|
@@ -4169,77 +4694,1033 @@ class DescribeShareUnitsResponse(AbstractModel):
|
|
|
4169
4694
|
|
|
4170
4695
|
|
|
4171
4696
|
def _deserialize(self, params):
|
|
4172
|
-
self._Total = params.get("Total")
|
|
4173
|
-
if params.get("Items") is not None:
|
|
4174
|
-
self._Items = []
|
|
4175
|
-
for item in params.get("Items"):
|
|
4176
|
-
obj = ManagerShareUnit()
|
|
4177
|
-
obj._deserialize(item)
|
|
4178
|
-
self._Items.append(obj)
|
|
4179
|
-
self._RequestId = params.get("RequestId")
|
|
4697
|
+
self._Total = params.get("Total")
|
|
4698
|
+
if params.get("Items") is not None:
|
|
4699
|
+
self._Items = []
|
|
4700
|
+
for item in params.get("Items"):
|
|
4701
|
+
obj = ManagerShareUnit()
|
|
4702
|
+
obj._deserialize(item)
|
|
4703
|
+
self._Items.append(obj)
|
|
4704
|
+
self._RequestId = params.get("RequestId")
|
|
4705
|
+
|
|
4706
|
+
|
|
4707
|
+
class DetachPolicyRequest(AbstractModel):
|
|
4708
|
+
"""DetachPolicy请求参数结构体
|
|
4709
|
+
|
|
4710
|
+
"""
|
|
4711
|
+
|
|
4712
|
+
def __init__(self):
|
|
4713
|
+
r"""
|
|
4714
|
+
:param _TargetId: 解绑策略目标ID。成员Uin或部门ID
|
|
4715
|
+
:type TargetId: int
|
|
4716
|
+
:param _TargetType: 目标类型。取值范围:NODE-部门、MEMBER-成员
|
|
4717
|
+
:type TargetType: str
|
|
4718
|
+
:param _PolicyId: 策略ID。
|
|
4719
|
+
:type PolicyId: int
|
|
4720
|
+
:param _Type: 策略类型。默认值SERVICE_CONTROL_POLICY,取值范围:SERVICE_CONTROL_POLICY-服务控制策略、TAG_POLICY-标签策略
|
|
4721
|
+
:type Type: str
|
|
4722
|
+
"""
|
|
4723
|
+
self._TargetId = None
|
|
4724
|
+
self._TargetType = None
|
|
4725
|
+
self._PolicyId = None
|
|
4726
|
+
self._Type = None
|
|
4727
|
+
|
|
4728
|
+
@property
|
|
4729
|
+
def TargetId(self):
|
|
4730
|
+
return self._TargetId
|
|
4731
|
+
|
|
4732
|
+
@TargetId.setter
|
|
4733
|
+
def TargetId(self, TargetId):
|
|
4734
|
+
self._TargetId = TargetId
|
|
4735
|
+
|
|
4736
|
+
@property
|
|
4737
|
+
def TargetType(self):
|
|
4738
|
+
return self._TargetType
|
|
4739
|
+
|
|
4740
|
+
@TargetType.setter
|
|
4741
|
+
def TargetType(self, TargetType):
|
|
4742
|
+
self._TargetType = TargetType
|
|
4743
|
+
|
|
4744
|
+
@property
|
|
4745
|
+
def PolicyId(self):
|
|
4746
|
+
return self._PolicyId
|
|
4747
|
+
|
|
4748
|
+
@PolicyId.setter
|
|
4749
|
+
def PolicyId(self, PolicyId):
|
|
4750
|
+
self._PolicyId = PolicyId
|
|
4751
|
+
|
|
4752
|
+
@property
|
|
4753
|
+
def Type(self):
|
|
4754
|
+
return self._Type
|
|
4755
|
+
|
|
4756
|
+
@Type.setter
|
|
4757
|
+
def Type(self, Type):
|
|
4758
|
+
self._Type = Type
|
|
4759
|
+
|
|
4760
|
+
|
|
4761
|
+
def _deserialize(self, params):
|
|
4762
|
+
self._TargetId = params.get("TargetId")
|
|
4763
|
+
self._TargetType = params.get("TargetType")
|
|
4764
|
+
self._PolicyId = params.get("PolicyId")
|
|
4765
|
+
self._Type = params.get("Type")
|
|
4766
|
+
memeber_set = set(params.keys())
|
|
4767
|
+
for name, value in vars(self).items():
|
|
4768
|
+
property_name = name[1:]
|
|
4769
|
+
if property_name in memeber_set:
|
|
4770
|
+
memeber_set.remove(property_name)
|
|
4771
|
+
if len(memeber_set) > 0:
|
|
4772
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
4773
|
+
|
|
4774
|
+
|
|
4775
|
+
|
|
4776
|
+
class DetachPolicyResponse(AbstractModel):
|
|
4777
|
+
"""DetachPolicy返回参数结构体
|
|
4778
|
+
|
|
4779
|
+
"""
|
|
4780
|
+
|
|
4781
|
+
def __init__(self):
|
|
4782
|
+
r"""
|
|
4783
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
4784
|
+
:type RequestId: str
|
|
4785
|
+
"""
|
|
4786
|
+
self._RequestId = None
|
|
4787
|
+
|
|
4788
|
+
@property
|
|
4789
|
+
def RequestId(self):
|
|
4790
|
+
return self._RequestId
|
|
4791
|
+
|
|
4792
|
+
@RequestId.setter
|
|
4793
|
+
def RequestId(self, RequestId):
|
|
4794
|
+
self._RequestId = RequestId
|
|
4795
|
+
|
|
4796
|
+
|
|
4797
|
+
def _deserialize(self, params):
|
|
4798
|
+
self._RequestId = params.get("RequestId")
|
|
4799
|
+
|
|
4800
|
+
|
|
4801
|
+
class DisablePolicyTypeRequest(AbstractModel):
|
|
4802
|
+
"""DisablePolicyType请求参数结构体
|
|
4803
|
+
|
|
4804
|
+
"""
|
|
4805
|
+
|
|
4806
|
+
def __init__(self):
|
|
4807
|
+
r"""
|
|
4808
|
+
:param _OrganizationId: 企业组织Id。可以调用[DescribeOrganization](https://cloud.tencent.com/document/product/850/67059)获取
|
|
4809
|
+
:type OrganizationId: int
|
|
4810
|
+
:param _PolicyType: 策略类型。默认值SERVICE_CONTROL_POLICY,取值范围:SERVICE_CONTROL_POLICY-服务控制策略、TAG_POLICY-标签策略
|
|
4811
|
+
:type PolicyType: str
|
|
4812
|
+
"""
|
|
4813
|
+
self._OrganizationId = None
|
|
4814
|
+
self._PolicyType = None
|
|
4815
|
+
|
|
4816
|
+
@property
|
|
4817
|
+
def OrganizationId(self):
|
|
4818
|
+
return self._OrganizationId
|
|
4819
|
+
|
|
4820
|
+
@OrganizationId.setter
|
|
4821
|
+
def OrganizationId(self, OrganizationId):
|
|
4822
|
+
self._OrganizationId = OrganizationId
|
|
4823
|
+
|
|
4824
|
+
@property
|
|
4825
|
+
def PolicyType(self):
|
|
4826
|
+
return self._PolicyType
|
|
4827
|
+
|
|
4828
|
+
@PolicyType.setter
|
|
4829
|
+
def PolicyType(self, PolicyType):
|
|
4830
|
+
self._PolicyType = PolicyType
|
|
4831
|
+
|
|
4832
|
+
|
|
4833
|
+
def _deserialize(self, params):
|
|
4834
|
+
self._OrganizationId = params.get("OrganizationId")
|
|
4835
|
+
self._PolicyType = params.get("PolicyType")
|
|
4836
|
+
memeber_set = set(params.keys())
|
|
4837
|
+
for name, value in vars(self).items():
|
|
4838
|
+
property_name = name[1:]
|
|
4839
|
+
if property_name in memeber_set:
|
|
4840
|
+
memeber_set.remove(property_name)
|
|
4841
|
+
if len(memeber_set) > 0:
|
|
4842
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
4843
|
+
|
|
4844
|
+
|
|
4845
|
+
|
|
4846
|
+
class DisablePolicyTypeResponse(AbstractModel):
|
|
4847
|
+
"""DisablePolicyType返回参数结构体
|
|
4848
|
+
|
|
4849
|
+
"""
|
|
4850
|
+
|
|
4851
|
+
def __init__(self):
|
|
4852
|
+
r"""
|
|
4853
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
4854
|
+
:type RequestId: str
|
|
4855
|
+
"""
|
|
4856
|
+
self._RequestId = None
|
|
4857
|
+
|
|
4858
|
+
@property
|
|
4859
|
+
def RequestId(self):
|
|
4860
|
+
return self._RequestId
|
|
4861
|
+
|
|
4862
|
+
@RequestId.setter
|
|
4863
|
+
def RequestId(self, RequestId):
|
|
4864
|
+
self._RequestId = RequestId
|
|
4865
|
+
|
|
4866
|
+
|
|
4867
|
+
def _deserialize(self, params):
|
|
4868
|
+
self._RequestId = params.get("RequestId")
|
|
4869
|
+
|
|
4870
|
+
|
|
4871
|
+
class EnablePolicyTypeRequest(AbstractModel):
|
|
4872
|
+
"""EnablePolicyType请求参数结构体
|
|
4873
|
+
|
|
4874
|
+
"""
|
|
4875
|
+
|
|
4876
|
+
def __init__(self):
|
|
4877
|
+
r"""
|
|
4878
|
+
:param _OrganizationId: 企业组织Id。可以调用[DescribeOrganization](https://cloud.tencent.com/document/product/850/67059)获取
|
|
4879
|
+
:type OrganizationId: int
|
|
4880
|
+
:param _PolicyType: 策略类型。默认值SERVICE_CONTROL_POLICY,取值范围:SERVICE_CONTROL_POLICY-服务控制策略、TAG_POLICY-标签策略
|
|
4881
|
+
:type PolicyType: str
|
|
4882
|
+
"""
|
|
4883
|
+
self._OrganizationId = None
|
|
4884
|
+
self._PolicyType = None
|
|
4885
|
+
|
|
4886
|
+
@property
|
|
4887
|
+
def OrganizationId(self):
|
|
4888
|
+
return self._OrganizationId
|
|
4889
|
+
|
|
4890
|
+
@OrganizationId.setter
|
|
4891
|
+
def OrganizationId(self, OrganizationId):
|
|
4892
|
+
self._OrganizationId = OrganizationId
|
|
4893
|
+
|
|
4894
|
+
@property
|
|
4895
|
+
def PolicyType(self):
|
|
4896
|
+
return self._PolicyType
|
|
4897
|
+
|
|
4898
|
+
@PolicyType.setter
|
|
4899
|
+
def PolicyType(self, PolicyType):
|
|
4900
|
+
self._PolicyType = PolicyType
|
|
4901
|
+
|
|
4902
|
+
|
|
4903
|
+
def _deserialize(self, params):
|
|
4904
|
+
self._OrganizationId = params.get("OrganizationId")
|
|
4905
|
+
self._PolicyType = params.get("PolicyType")
|
|
4906
|
+
memeber_set = set(params.keys())
|
|
4907
|
+
for name, value in vars(self).items():
|
|
4908
|
+
property_name = name[1:]
|
|
4909
|
+
if property_name in memeber_set:
|
|
4910
|
+
memeber_set.remove(property_name)
|
|
4911
|
+
if len(memeber_set) > 0:
|
|
4912
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
4913
|
+
|
|
4914
|
+
|
|
4915
|
+
|
|
4916
|
+
class EnablePolicyTypeResponse(AbstractModel):
|
|
4917
|
+
"""EnablePolicyType返回参数结构体
|
|
4918
|
+
|
|
4919
|
+
"""
|
|
4920
|
+
|
|
4921
|
+
def __init__(self):
|
|
4922
|
+
r"""
|
|
4923
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
4924
|
+
:type RequestId: str
|
|
4925
|
+
"""
|
|
4926
|
+
self._RequestId = None
|
|
4927
|
+
|
|
4928
|
+
@property
|
|
4929
|
+
def RequestId(self):
|
|
4930
|
+
return self._RequestId
|
|
4931
|
+
|
|
4932
|
+
@RequestId.setter
|
|
4933
|
+
def RequestId(self, RequestId):
|
|
4934
|
+
self._RequestId = RequestId
|
|
4935
|
+
|
|
4936
|
+
|
|
4937
|
+
def _deserialize(self, params):
|
|
4938
|
+
self._RequestId = params.get("RequestId")
|
|
4939
|
+
|
|
4940
|
+
|
|
4941
|
+
class IdentityPolicy(AbstractModel):
|
|
4942
|
+
"""组织身份策略
|
|
4943
|
+
|
|
4944
|
+
"""
|
|
4945
|
+
|
|
4946
|
+
def __init__(self):
|
|
4947
|
+
r"""
|
|
4948
|
+
:param _PolicyId: CAM预设策略ID。PolicyType 为预设策略时有效且必选
|
|
4949
|
+
:type PolicyId: int
|
|
4950
|
+
:param _PolicyName: CAM预设策略名称。PolicyType 为预设策略时有效且必选
|
|
4951
|
+
:type PolicyName: str
|
|
4952
|
+
:param _PolicyType: 策略类型。取值 1-自定义策略 2-预设策略;默认值2
|
|
4953
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4954
|
+
:type PolicyType: int
|
|
4955
|
+
:param _PolicyDocument: 自定义策略内容,遵循CAM策略语法。PolicyType 为自定义策略时有效且必选
|
|
4956
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4957
|
+
:type PolicyDocument: str
|
|
4958
|
+
"""
|
|
4959
|
+
self._PolicyId = None
|
|
4960
|
+
self._PolicyName = None
|
|
4961
|
+
self._PolicyType = None
|
|
4962
|
+
self._PolicyDocument = None
|
|
4963
|
+
|
|
4964
|
+
@property
|
|
4965
|
+
def PolicyId(self):
|
|
4966
|
+
return self._PolicyId
|
|
4967
|
+
|
|
4968
|
+
@PolicyId.setter
|
|
4969
|
+
def PolicyId(self, PolicyId):
|
|
4970
|
+
self._PolicyId = PolicyId
|
|
4971
|
+
|
|
4972
|
+
@property
|
|
4973
|
+
def PolicyName(self):
|
|
4974
|
+
return self._PolicyName
|
|
4975
|
+
|
|
4976
|
+
@PolicyName.setter
|
|
4977
|
+
def PolicyName(self, PolicyName):
|
|
4978
|
+
self._PolicyName = PolicyName
|
|
4979
|
+
|
|
4980
|
+
@property
|
|
4981
|
+
def PolicyType(self):
|
|
4982
|
+
return self._PolicyType
|
|
4983
|
+
|
|
4984
|
+
@PolicyType.setter
|
|
4985
|
+
def PolicyType(self, PolicyType):
|
|
4986
|
+
self._PolicyType = PolicyType
|
|
4987
|
+
|
|
4988
|
+
@property
|
|
4989
|
+
def PolicyDocument(self):
|
|
4990
|
+
return self._PolicyDocument
|
|
4991
|
+
|
|
4992
|
+
@PolicyDocument.setter
|
|
4993
|
+
def PolicyDocument(self, PolicyDocument):
|
|
4994
|
+
self._PolicyDocument = PolicyDocument
|
|
4995
|
+
|
|
4996
|
+
|
|
4997
|
+
def _deserialize(self, params):
|
|
4998
|
+
self._PolicyId = params.get("PolicyId")
|
|
4999
|
+
self._PolicyName = params.get("PolicyName")
|
|
5000
|
+
self._PolicyType = params.get("PolicyType")
|
|
5001
|
+
self._PolicyDocument = params.get("PolicyDocument")
|
|
5002
|
+
memeber_set = set(params.keys())
|
|
5003
|
+
for name, value in vars(self).items():
|
|
5004
|
+
property_name = name[1:]
|
|
5005
|
+
if property_name in memeber_set:
|
|
5006
|
+
memeber_set.remove(property_name)
|
|
5007
|
+
if len(memeber_set) > 0:
|
|
5008
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
5009
|
+
|
|
5010
|
+
|
|
5011
|
+
|
|
5012
|
+
class ListOrganizationIdentityRequest(AbstractModel):
|
|
5013
|
+
"""ListOrganizationIdentity请求参数结构体
|
|
5014
|
+
|
|
5015
|
+
"""
|
|
5016
|
+
|
|
5017
|
+
def __init__(self):
|
|
5018
|
+
r"""
|
|
5019
|
+
:param _Offset: 偏移量。取值是limit的整数倍。默认值 : 0。
|
|
5020
|
+
:type Offset: int
|
|
5021
|
+
:param _Limit: 限制数目。取值范围:1~50。默认值:10。
|
|
5022
|
+
:type Limit: int
|
|
5023
|
+
:param _SearchKey: 名称搜索关键字。
|
|
5024
|
+
:type SearchKey: str
|
|
5025
|
+
:param _IdentityId: 身份ID。可以通过身份ID搜索
|
|
5026
|
+
:type IdentityId: int
|
|
5027
|
+
:param _IdentityType: 身份类型。取值范围 1-预设, 2-自定义
|
|
5028
|
+
:type IdentityType: int
|
|
5029
|
+
"""
|
|
5030
|
+
self._Offset = None
|
|
5031
|
+
self._Limit = None
|
|
5032
|
+
self._SearchKey = None
|
|
5033
|
+
self._IdentityId = None
|
|
5034
|
+
self._IdentityType = None
|
|
5035
|
+
|
|
5036
|
+
@property
|
|
5037
|
+
def Offset(self):
|
|
5038
|
+
return self._Offset
|
|
5039
|
+
|
|
5040
|
+
@Offset.setter
|
|
5041
|
+
def Offset(self, Offset):
|
|
5042
|
+
self._Offset = Offset
|
|
5043
|
+
|
|
5044
|
+
@property
|
|
5045
|
+
def Limit(self):
|
|
5046
|
+
return self._Limit
|
|
5047
|
+
|
|
5048
|
+
@Limit.setter
|
|
5049
|
+
def Limit(self, Limit):
|
|
5050
|
+
self._Limit = Limit
|
|
5051
|
+
|
|
5052
|
+
@property
|
|
5053
|
+
def SearchKey(self):
|
|
5054
|
+
return self._SearchKey
|
|
5055
|
+
|
|
5056
|
+
@SearchKey.setter
|
|
5057
|
+
def SearchKey(self, SearchKey):
|
|
5058
|
+
self._SearchKey = SearchKey
|
|
5059
|
+
|
|
5060
|
+
@property
|
|
5061
|
+
def IdentityId(self):
|
|
5062
|
+
return self._IdentityId
|
|
5063
|
+
|
|
5064
|
+
@IdentityId.setter
|
|
5065
|
+
def IdentityId(self, IdentityId):
|
|
5066
|
+
self._IdentityId = IdentityId
|
|
5067
|
+
|
|
5068
|
+
@property
|
|
5069
|
+
def IdentityType(self):
|
|
5070
|
+
return self._IdentityType
|
|
5071
|
+
|
|
5072
|
+
@IdentityType.setter
|
|
5073
|
+
def IdentityType(self, IdentityType):
|
|
5074
|
+
self._IdentityType = IdentityType
|
|
5075
|
+
|
|
5076
|
+
|
|
5077
|
+
def _deserialize(self, params):
|
|
5078
|
+
self._Offset = params.get("Offset")
|
|
5079
|
+
self._Limit = params.get("Limit")
|
|
5080
|
+
self._SearchKey = params.get("SearchKey")
|
|
5081
|
+
self._IdentityId = params.get("IdentityId")
|
|
5082
|
+
self._IdentityType = params.get("IdentityType")
|
|
5083
|
+
memeber_set = set(params.keys())
|
|
5084
|
+
for name, value in vars(self).items():
|
|
5085
|
+
property_name = name[1:]
|
|
5086
|
+
if property_name in memeber_set:
|
|
5087
|
+
memeber_set.remove(property_name)
|
|
5088
|
+
if len(memeber_set) > 0:
|
|
5089
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
5090
|
+
|
|
5091
|
+
|
|
5092
|
+
|
|
5093
|
+
class ListOrganizationIdentityResponse(AbstractModel):
|
|
5094
|
+
"""ListOrganizationIdentity返回参数结构体
|
|
5095
|
+
|
|
5096
|
+
"""
|
|
5097
|
+
|
|
5098
|
+
def __init__(self):
|
|
5099
|
+
r"""
|
|
5100
|
+
:param _Total: 总数。
|
|
5101
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
5102
|
+
:type Total: int
|
|
5103
|
+
:param _Items: 条目详情。
|
|
5104
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
5105
|
+
:type Items: list of OrgIdentity
|
|
5106
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
5107
|
+
:type RequestId: str
|
|
5108
|
+
"""
|
|
5109
|
+
self._Total = None
|
|
5110
|
+
self._Items = None
|
|
5111
|
+
self._RequestId = None
|
|
5112
|
+
|
|
5113
|
+
@property
|
|
5114
|
+
def Total(self):
|
|
5115
|
+
return self._Total
|
|
5116
|
+
|
|
5117
|
+
@Total.setter
|
|
5118
|
+
def Total(self, Total):
|
|
5119
|
+
self._Total = Total
|
|
5120
|
+
|
|
5121
|
+
@property
|
|
5122
|
+
def Items(self):
|
|
5123
|
+
return self._Items
|
|
5124
|
+
|
|
5125
|
+
@Items.setter
|
|
5126
|
+
def Items(self, Items):
|
|
5127
|
+
self._Items = Items
|
|
5128
|
+
|
|
5129
|
+
@property
|
|
5130
|
+
def RequestId(self):
|
|
5131
|
+
return self._RequestId
|
|
5132
|
+
|
|
5133
|
+
@RequestId.setter
|
|
5134
|
+
def RequestId(self, RequestId):
|
|
5135
|
+
self._RequestId = RequestId
|
|
5136
|
+
|
|
5137
|
+
|
|
5138
|
+
def _deserialize(self, params):
|
|
5139
|
+
self._Total = params.get("Total")
|
|
5140
|
+
if params.get("Items") is not None:
|
|
5141
|
+
self._Items = []
|
|
5142
|
+
for item in params.get("Items"):
|
|
5143
|
+
obj = OrgIdentity()
|
|
5144
|
+
obj._deserialize(item)
|
|
5145
|
+
self._Items.append(obj)
|
|
5146
|
+
self._RequestId = params.get("RequestId")
|
|
5147
|
+
|
|
5148
|
+
|
|
5149
|
+
class ListPoliciesForTarget(AbstractModel):
|
|
5150
|
+
"""查询目标关联的SCP策略列表
|
|
5151
|
+
|
|
5152
|
+
"""
|
|
5153
|
+
|
|
5154
|
+
def __init__(self):
|
|
5155
|
+
r"""
|
|
5156
|
+
:param _StrategyId: 策略Id
|
|
5157
|
+
:type StrategyId: int
|
|
5158
|
+
:param _StrategyName: 策略名称
|
|
5159
|
+
:type StrategyName: str
|
|
5160
|
+
:param _Remark: 备注信息
|
|
5161
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
5162
|
+
:type Remark: str
|
|
5163
|
+
:param _Uin: 关联的账号或节点
|
|
5164
|
+
:type Uin: int
|
|
5165
|
+
:param _Type: 关联类型 1-节点 2-用户
|
|
5166
|
+
:type Type: int
|
|
5167
|
+
:param _AddTime: 策略创建时间
|
|
5168
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
5169
|
+
:type AddTime: str
|
|
5170
|
+
:param _UpdateTime: 策略更新时间
|
|
5171
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
5172
|
+
:type UpdateTime: str
|
|
5173
|
+
:param _Name: 部门名称
|
|
5174
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
5175
|
+
:type Name: str
|
|
5176
|
+
:param _AttachTime: 策略绑定时间
|
|
5177
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
5178
|
+
:type AttachTime: str
|
|
5179
|
+
"""
|
|
5180
|
+
self._StrategyId = None
|
|
5181
|
+
self._StrategyName = None
|
|
5182
|
+
self._Remark = None
|
|
5183
|
+
self._Uin = None
|
|
5184
|
+
self._Type = None
|
|
5185
|
+
self._AddTime = None
|
|
5186
|
+
self._UpdateTime = None
|
|
5187
|
+
self._Name = None
|
|
5188
|
+
self._AttachTime = None
|
|
5189
|
+
|
|
5190
|
+
@property
|
|
5191
|
+
def StrategyId(self):
|
|
5192
|
+
return self._StrategyId
|
|
5193
|
+
|
|
5194
|
+
@StrategyId.setter
|
|
5195
|
+
def StrategyId(self, StrategyId):
|
|
5196
|
+
self._StrategyId = StrategyId
|
|
5197
|
+
|
|
5198
|
+
@property
|
|
5199
|
+
def StrategyName(self):
|
|
5200
|
+
return self._StrategyName
|
|
5201
|
+
|
|
5202
|
+
@StrategyName.setter
|
|
5203
|
+
def StrategyName(self, StrategyName):
|
|
5204
|
+
self._StrategyName = StrategyName
|
|
5205
|
+
|
|
5206
|
+
@property
|
|
5207
|
+
def Remark(self):
|
|
5208
|
+
return self._Remark
|
|
5209
|
+
|
|
5210
|
+
@Remark.setter
|
|
5211
|
+
def Remark(self, Remark):
|
|
5212
|
+
self._Remark = Remark
|
|
5213
|
+
|
|
5214
|
+
@property
|
|
5215
|
+
def Uin(self):
|
|
5216
|
+
return self._Uin
|
|
5217
|
+
|
|
5218
|
+
@Uin.setter
|
|
5219
|
+
def Uin(self, Uin):
|
|
5220
|
+
self._Uin = Uin
|
|
5221
|
+
|
|
5222
|
+
@property
|
|
5223
|
+
def Type(self):
|
|
5224
|
+
return self._Type
|
|
5225
|
+
|
|
5226
|
+
@Type.setter
|
|
5227
|
+
def Type(self, Type):
|
|
5228
|
+
self._Type = Type
|
|
5229
|
+
|
|
5230
|
+
@property
|
|
5231
|
+
def AddTime(self):
|
|
5232
|
+
return self._AddTime
|
|
5233
|
+
|
|
5234
|
+
@AddTime.setter
|
|
5235
|
+
def AddTime(self, AddTime):
|
|
5236
|
+
self._AddTime = AddTime
|
|
5237
|
+
|
|
5238
|
+
@property
|
|
5239
|
+
def UpdateTime(self):
|
|
5240
|
+
return self._UpdateTime
|
|
5241
|
+
|
|
5242
|
+
@UpdateTime.setter
|
|
5243
|
+
def UpdateTime(self, UpdateTime):
|
|
5244
|
+
self._UpdateTime = UpdateTime
|
|
5245
|
+
|
|
5246
|
+
@property
|
|
5247
|
+
def Name(self):
|
|
5248
|
+
return self._Name
|
|
5249
|
+
|
|
5250
|
+
@Name.setter
|
|
5251
|
+
def Name(self, Name):
|
|
5252
|
+
self._Name = Name
|
|
5253
|
+
|
|
5254
|
+
@property
|
|
5255
|
+
def AttachTime(self):
|
|
5256
|
+
return self._AttachTime
|
|
5257
|
+
|
|
5258
|
+
@AttachTime.setter
|
|
5259
|
+
def AttachTime(self, AttachTime):
|
|
5260
|
+
self._AttachTime = AttachTime
|
|
5261
|
+
|
|
5262
|
+
|
|
5263
|
+
def _deserialize(self, params):
|
|
5264
|
+
self._StrategyId = params.get("StrategyId")
|
|
5265
|
+
self._StrategyName = params.get("StrategyName")
|
|
5266
|
+
self._Remark = params.get("Remark")
|
|
5267
|
+
self._Uin = params.get("Uin")
|
|
5268
|
+
self._Type = params.get("Type")
|
|
5269
|
+
self._AddTime = params.get("AddTime")
|
|
5270
|
+
self._UpdateTime = params.get("UpdateTime")
|
|
5271
|
+
self._Name = params.get("Name")
|
|
5272
|
+
self._AttachTime = params.get("AttachTime")
|
|
5273
|
+
memeber_set = set(params.keys())
|
|
5274
|
+
for name, value in vars(self).items():
|
|
5275
|
+
property_name = name[1:]
|
|
5276
|
+
if property_name in memeber_set:
|
|
5277
|
+
memeber_set.remove(property_name)
|
|
5278
|
+
if len(memeber_set) > 0:
|
|
5279
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
5280
|
+
|
|
5281
|
+
|
|
5282
|
+
|
|
5283
|
+
class ListPoliciesForTargetRequest(AbstractModel):
|
|
5284
|
+
"""ListPoliciesForTarget请求参数结构体
|
|
5285
|
+
|
|
5286
|
+
"""
|
|
5287
|
+
|
|
5288
|
+
def __init__(self):
|
|
5289
|
+
r"""
|
|
5290
|
+
:param _TargetId: 账号uin或者节点id。
|
|
5291
|
+
:type TargetId: int
|
|
5292
|
+
:param _Rp: 每页数量。默认值是 20,必须大于 0 且小于或等于 200
|
|
5293
|
+
:type Rp: int
|
|
5294
|
+
:param _Page: 页码。默认值是 1,从 1开始,不能大于 200
|
|
5295
|
+
:type Page: int
|
|
5296
|
+
:param _PolicyType: 策略类型。默认值SERVICE_CONTROL_POLICY,取值范围:SERVICE_CONTROL_POLICY-服务控制策略、TAG_POLICY-标签策略
|
|
5297
|
+
:type PolicyType: str
|
|
5298
|
+
:param _Keyword: 搜索关键字。按照策略名称搜索
|
|
5299
|
+
:type Keyword: str
|
|
5300
|
+
"""
|
|
5301
|
+
self._TargetId = None
|
|
5302
|
+
self._Rp = None
|
|
5303
|
+
self._Page = None
|
|
5304
|
+
self._PolicyType = None
|
|
5305
|
+
self._Keyword = None
|
|
5306
|
+
|
|
5307
|
+
@property
|
|
5308
|
+
def TargetId(self):
|
|
5309
|
+
return self._TargetId
|
|
5310
|
+
|
|
5311
|
+
@TargetId.setter
|
|
5312
|
+
def TargetId(self, TargetId):
|
|
5313
|
+
self._TargetId = TargetId
|
|
5314
|
+
|
|
5315
|
+
@property
|
|
5316
|
+
def Rp(self):
|
|
5317
|
+
return self._Rp
|
|
5318
|
+
|
|
5319
|
+
@Rp.setter
|
|
5320
|
+
def Rp(self, Rp):
|
|
5321
|
+
self._Rp = Rp
|
|
5322
|
+
|
|
5323
|
+
@property
|
|
5324
|
+
def Page(self):
|
|
5325
|
+
return self._Page
|
|
5326
|
+
|
|
5327
|
+
@Page.setter
|
|
5328
|
+
def Page(self, Page):
|
|
5329
|
+
self._Page = Page
|
|
5330
|
+
|
|
5331
|
+
@property
|
|
5332
|
+
def PolicyType(self):
|
|
5333
|
+
return self._PolicyType
|
|
5334
|
+
|
|
5335
|
+
@PolicyType.setter
|
|
5336
|
+
def PolicyType(self, PolicyType):
|
|
5337
|
+
self._PolicyType = PolicyType
|
|
5338
|
+
|
|
5339
|
+
@property
|
|
5340
|
+
def Keyword(self):
|
|
5341
|
+
return self._Keyword
|
|
5342
|
+
|
|
5343
|
+
@Keyword.setter
|
|
5344
|
+
def Keyword(self, Keyword):
|
|
5345
|
+
self._Keyword = Keyword
|
|
5346
|
+
|
|
5347
|
+
|
|
5348
|
+
def _deserialize(self, params):
|
|
5349
|
+
self._TargetId = params.get("TargetId")
|
|
5350
|
+
self._Rp = params.get("Rp")
|
|
5351
|
+
self._Page = params.get("Page")
|
|
5352
|
+
self._PolicyType = params.get("PolicyType")
|
|
5353
|
+
self._Keyword = params.get("Keyword")
|
|
5354
|
+
memeber_set = set(params.keys())
|
|
5355
|
+
for name, value in vars(self).items():
|
|
5356
|
+
property_name = name[1:]
|
|
5357
|
+
if property_name in memeber_set:
|
|
5358
|
+
memeber_set.remove(property_name)
|
|
5359
|
+
if len(memeber_set) > 0:
|
|
5360
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
5361
|
+
|
|
5362
|
+
|
|
5363
|
+
|
|
5364
|
+
class ListPoliciesForTargetResponse(AbstractModel):
|
|
5365
|
+
"""ListPoliciesForTarget返回参数结构体
|
|
5366
|
+
|
|
5367
|
+
"""
|
|
5368
|
+
|
|
5369
|
+
def __init__(self):
|
|
5370
|
+
r"""
|
|
5371
|
+
:param _TotalNum: 总数。
|
|
5372
|
+
:type TotalNum: int
|
|
5373
|
+
:param _List: 目标关联的策略列表。
|
|
5374
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
5375
|
+
:type List: list of ListPoliciesForTarget
|
|
5376
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
5377
|
+
:type RequestId: str
|
|
5378
|
+
"""
|
|
5379
|
+
self._TotalNum = None
|
|
5380
|
+
self._List = None
|
|
5381
|
+
self._RequestId = None
|
|
5382
|
+
|
|
5383
|
+
@property
|
|
5384
|
+
def TotalNum(self):
|
|
5385
|
+
return self._TotalNum
|
|
5386
|
+
|
|
5387
|
+
@TotalNum.setter
|
|
5388
|
+
def TotalNum(self, TotalNum):
|
|
5389
|
+
self._TotalNum = TotalNum
|
|
5390
|
+
|
|
5391
|
+
@property
|
|
5392
|
+
def List(self):
|
|
5393
|
+
return self._List
|
|
5394
|
+
|
|
5395
|
+
@List.setter
|
|
5396
|
+
def List(self, List):
|
|
5397
|
+
self._List = List
|
|
5398
|
+
|
|
5399
|
+
@property
|
|
5400
|
+
def RequestId(self):
|
|
5401
|
+
return self._RequestId
|
|
5402
|
+
|
|
5403
|
+
@RequestId.setter
|
|
5404
|
+
def RequestId(self, RequestId):
|
|
5405
|
+
self._RequestId = RequestId
|
|
5406
|
+
|
|
5407
|
+
|
|
5408
|
+
def _deserialize(self, params):
|
|
5409
|
+
self._TotalNum = params.get("TotalNum")
|
|
5410
|
+
if params.get("List") is not None:
|
|
5411
|
+
self._List = []
|
|
5412
|
+
for item in params.get("List"):
|
|
5413
|
+
obj = ListPoliciesForTarget()
|
|
5414
|
+
obj._deserialize(item)
|
|
5415
|
+
self._List.append(obj)
|
|
5416
|
+
self._RequestId = params.get("RequestId")
|
|
5417
|
+
|
|
5418
|
+
|
|
5419
|
+
class ListPoliciesRequest(AbstractModel):
|
|
5420
|
+
"""ListPolicies请求参数结构体
|
|
5421
|
+
|
|
5422
|
+
"""
|
|
5423
|
+
|
|
5424
|
+
def __init__(self):
|
|
5425
|
+
r"""
|
|
5426
|
+
:param _Rp: 每页数量。默认值是 20,必须大于 0 且小于或等于 200
|
|
5427
|
+
:type Rp: int
|
|
5428
|
+
:param _Page: 页码。默认值是 1,从 1开始,不能大于 200
|
|
5429
|
+
:type Page: int
|
|
5430
|
+
:param _Scope: 查询范围。取值范围: All-获取所有策略、QCS-只获取预设策略、Local-只获取自定义策略,默认值:All
|
|
5431
|
+
:type Scope: str
|
|
5432
|
+
:param _Keyword: 搜索关键字。按照策略名搜索
|
|
5433
|
+
:type Keyword: str
|
|
5434
|
+
:param _PolicyType: 策略类型。默认值SERVICE_CONTROL_POLICY,取值范围:SERVICE_CONTROL_POLICY-服务控制策略、TAG_POLICY-标签策略
|
|
5435
|
+
:type PolicyType: str
|
|
5436
|
+
"""
|
|
5437
|
+
self._Rp = None
|
|
5438
|
+
self._Page = None
|
|
5439
|
+
self._Scope = None
|
|
5440
|
+
self._Keyword = None
|
|
5441
|
+
self._PolicyType = None
|
|
5442
|
+
|
|
5443
|
+
@property
|
|
5444
|
+
def Rp(self):
|
|
5445
|
+
return self._Rp
|
|
5446
|
+
|
|
5447
|
+
@Rp.setter
|
|
5448
|
+
def Rp(self, Rp):
|
|
5449
|
+
self._Rp = Rp
|
|
5450
|
+
|
|
5451
|
+
@property
|
|
5452
|
+
def Page(self):
|
|
5453
|
+
return self._Page
|
|
5454
|
+
|
|
5455
|
+
@Page.setter
|
|
5456
|
+
def Page(self, Page):
|
|
5457
|
+
self._Page = Page
|
|
5458
|
+
|
|
5459
|
+
@property
|
|
5460
|
+
def Scope(self):
|
|
5461
|
+
return self._Scope
|
|
5462
|
+
|
|
5463
|
+
@Scope.setter
|
|
5464
|
+
def Scope(self, Scope):
|
|
5465
|
+
self._Scope = Scope
|
|
5466
|
+
|
|
5467
|
+
@property
|
|
5468
|
+
def Keyword(self):
|
|
5469
|
+
return self._Keyword
|
|
5470
|
+
|
|
5471
|
+
@Keyword.setter
|
|
5472
|
+
def Keyword(self, Keyword):
|
|
5473
|
+
self._Keyword = Keyword
|
|
5474
|
+
|
|
5475
|
+
@property
|
|
5476
|
+
def PolicyType(self):
|
|
5477
|
+
return self._PolicyType
|
|
5478
|
+
|
|
5479
|
+
@PolicyType.setter
|
|
5480
|
+
def PolicyType(self, PolicyType):
|
|
5481
|
+
self._PolicyType = PolicyType
|
|
5482
|
+
|
|
5483
|
+
|
|
5484
|
+
def _deserialize(self, params):
|
|
5485
|
+
self._Rp = params.get("Rp")
|
|
5486
|
+
self._Page = params.get("Page")
|
|
5487
|
+
self._Scope = params.get("Scope")
|
|
5488
|
+
self._Keyword = params.get("Keyword")
|
|
5489
|
+
self._PolicyType = params.get("PolicyType")
|
|
5490
|
+
memeber_set = set(params.keys())
|
|
5491
|
+
for name, value in vars(self).items():
|
|
5492
|
+
property_name = name[1:]
|
|
5493
|
+
if property_name in memeber_set:
|
|
5494
|
+
memeber_set.remove(property_name)
|
|
5495
|
+
if len(memeber_set) > 0:
|
|
5496
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
5497
|
+
|
|
5498
|
+
|
|
5499
|
+
|
|
5500
|
+
class ListPoliciesResponse(AbstractModel):
|
|
5501
|
+
"""ListPolicies返回参数结构体
|
|
5502
|
+
|
|
5503
|
+
"""
|
|
5504
|
+
|
|
5505
|
+
def __init__(self):
|
|
5506
|
+
r"""
|
|
5507
|
+
:param _TotalNum: 策略总数
|
|
5508
|
+
:type TotalNum: int
|
|
5509
|
+
:param _List: 策略列表数据
|
|
5510
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
5511
|
+
:type List: list of ListPolicyNode
|
|
5512
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
5513
|
+
:type RequestId: str
|
|
5514
|
+
"""
|
|
5515
|
+
self._TotalNum = None
|
|
5516
|
+
self._List = None
|
|
5517
|
+
self._RequestId = None
|
|
5518
|
+
|
|
5519
|
+
@property
|
|
5520
|
+
def TotalNum(self):
|
|
5521
|
+
return self._TotalNum
|
|
5522
|
+
|
|
5523
|
+
@TotalNum.setter
|
|
5524
|
+
def TotalNum(self, TotalNum):
|
|
5525
|
+
self._TotalNum = TotalNum
|
|
5526
|
+
|
|
5527
|
+
@property
|
|
5528
|
+
def List(self):
|
|
5529
|
+
return self._List
|
|
5530
|
+
|
|
5531
|
+
@List.setter
|
|
5532
|
+
def List(self, List):
|
|
5533
|
+
self._List = List
|
|
5534
|
+
|
|
5535
|
+
@property
|
|
5536
|
+
def RequestId(self):
|
|
5537
|
+
return self._RequestId
|
|
5538
|
+
|
|
5539
|
+
@RequestId.setter
|
|
5540
|
+
def RequestId(self, RequestId):
|
|
5541
|
+
self._RequestId = RequestId
|
|
5542
|
+
|
|
5543
|
+
|
|
5544
|
+
def _deserialize(self, params):
|
|
5545
|
+
self._TotalNum = params.get("TotalNum")
|
|
5546
|
+
if params.get("List") is not None:
|
|
5547
|
+
self._List = []
|
|
5548
|
+
for item in params.get("List"):
|
|
5549
|
+
obj = ListPolicyNode()
|
|
5550
|
+
obj._deserialize(item)
|
|
5551
|
+
self._List.append(obj)
|
|
5552
|
+
self._RequestId = params.get("RequestId")
|
|
5553
|
+
|
|
5554
|
+
|
|
5555
|
+
class ListPolicyNode(AbstractModel):
|
|
5556
|
+
"""企业组织策略列表
|
|
5557
|
+
|
|
5558
|
+
"""
|
|
5559
|
+
|
|
5560
|
+
def __init__(self):
|
|
5561
|
+
r"""
|
|
5562
|
+
:param _AddTime: 策略创建时间
|
|
5563
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
5564
|
+
:type AddTime: str
|
|
5565
|
+
:param _AttachedTimes: 策略绑定次数
|
|
5566
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
5567
|
+
:type AttachedTimes: int
|
|
5568
|
+
:param _Description: 策略描述信息
|
|
5569
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
5570
|
+
:type Description: str
|
|
5571
|
+
:param _PolicyName: 策略名称
|
|
5572
|
+
:type PolicyName: str
|
|
5573
|
+
:param _PolicyId: 策略Id
|
|
5574
|
+
:type PolicyId: int
|
|
5575
|
+
:param _UpdateTime: 策略更新时间
|
|
5576
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
5577
|
+
:type UpdateTime: str
|
|
5578
|
+
:param _Type: 策略类型 1-自定义 2-预设
|
|
5579
|
+
:type Type: int
|
|
5580
|
+
"""
|
|
5581
|
+
self._AddTime = None
|
|
5582
|
+
self._AttachedTimes = None
|
|
5583
|
+
self._Description = None
|
|
5584
|
+
self._PolicyName = None
|
|
5585
|
+
self._PolicyId = None
|
|
5586
|
+
self._UpdateTime = None
|
|
5587
|
+
self._Type = None
|
|
5588
|
+
|
|
5589
|
+
@property
|
|
5590
|
+
def AddTime(self):
|
|
5591
|
+
return self._AddTime
|
|
5592
|
+
|
|
5593
|
+
@AddTime.setter
|
|
5594
|
+
def AddTime(self, AddTime):
|
|
5595
|
+
self._AddTime = AddTime
|
|
5596
|
+
|
|
5597
|
+
@property
|
|
5598
|
+
def AttachedTimes(self):
|
|
5599
|
+
return self._AttachedTimes
|
|
5600
|
+
|
|
5601
|
+
@AttachedTimes.setter
|
|
5602
|
+
def AttachedTimes(self, AttachedTimes):
|
|
5603
|
+
self._AttachedTimes = AttachedTimes
|
|
5604
|
+
|
|
5605
|
+
@property
|
|
5606
|
+
def Description(self):
|
|
5607
|
+
return self._Description
|
|
5608
|
+
|
|
5609
|
+
@Description.setter
|
|
5610
|
+
def Description(self, Description):
|
|
5611
|
+
self._Description = Description
|
|
5612
|
+
|
|
5613
|
+
@property
|
|
5614
|
+
def PolicyName(self):
|
|
5615
|
+
return self._PolicyName
|
|
5616
|
+
|
|
5617
|
+
@PolicyName.setter
|
|
5618
|
+
def PolicyName(self, PolicyName):
|
|
5619
|
+
self._PolicyName = PolicyName
|
|
5620
|
+
|
|
5621
|
+
@property
|
|
5622
|
+
def PolicyId(self):
|
|
5623
|
+
return self._PolicyId
|
|
5624
|
+
|
|
5625
|
+
@PolicyId.setter
|
|
5626
|
+
def PolicyId(self, PolicyId):
|
|
5627
|
+
self._PolicyId = PolicyId
|
|
5628
|
+
|
|
5629
|
+
@property
|
|
5630
|
+
def UpdateTime(self):
|
|
5631
|
+
return self._UpdateTime
|
|
5632
|
+
|
|
5633
|
+
@UpdateTime.setter
|
|
5634
|
+
def UpdateTime(self, UpdateTime):
|
|
5635
|
+
self._UpdateTime = UpdateTime
|
|
5636
|
+
|
|
5637
|
+
@property
|
|
5638
|
+
def Type(self):
|
|
5639
|
+
return self._Type
|
|
5640
|
+
|
|
5641
|
+
@Type.setter
|
|
5642
|
+
def Type(self, Type):
|
|
5643
|
+
self._Type = Type
|
|
5644
|
+
|
|
5645
|
+
|
|
5646
|
+
def _deserialize(self, params):
|
|
5647
|
+
self._AddTime = params.get("AddTime")
|
|
5648
|
+
self._AttachedTimes = params.get("AttachedTimes")
|
|
5649
|
+
self._Description = params.get("Description")
|
|
5650
|
+
self._PolicyName = params.get("PolicyName")
|
|
5651
|
+
self._PolicyId = params.get("PolicyId")
|
|
5652
|
+
self._UpdateTime = params.get("UpdateTime")
|
|
5653
|
+
self._Type = params.get("Type")
|
|
5654
|
+
memeber_set = set(params.keys())
|
|
5655
|
+
for name, value in vars(self).items():
|
|
5656
|
+
property_name = name[1:]
|
|
5657
|
+
if property_name in memeber_set:
|
|
5658
|
+
memeber_set.remove(property_name)
|
|
5659
|
+
if len(memeber_set) > 0:
|
|
5660
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
5661
|
+
|
|
4180
5662
|
|
|
4181
5663
|
|
|
4182
|
-
class
|
|
4183
|
-
"""
|
|
5664
|
+
class ListTargetsForPolicyNode(AbstractModel):
|
|
5665
|
+
"""查询某个指定SCP策略关联的目标列表
|
|
4184
5666
|
|
|
4185
5667
|
"""
|
|
4186
5668
|
|
|
4187
5669
|
def __init__(self):
|
|
4188
5670
|
r"""
|
|
4189
|
-
:param
|
|
4190
|
-
:type
|
|
4191
|
-
:param
|
|
4192
|
-
:type
|
|
4193
|
-
:param
|
|
4194
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
4195
|
-
:type PolicyType: int
|
|
4196
|
-
:param _PolicyDocument: 自定义策略内容,遵循CAM策略语法。PolicyType 为自定义策略时有效且必选
|
|
5671
|
+
:param _Uin: scp账号uin或节点Id
|
|
5672
|
+
:type Uin: int
|
|
5673
|
+
:param _RelatedType: 关联类型 1-节点关联 2-用户关联
|
|
5674
|
+
:type RelatedType: int
|
|
5675
|
+
:param _Name: 账号或者节点名称
|
|
4197
5676
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
4198
|
-
:type
|
|
5677
|
+
:type Name: str
|
|
5678
|
+
:param _AddTime: 绑定时间
|
|
5679
|
+
:type AddTime: str
|
|
4199
5680
|
"""
|
|
4200
|
-
self.
|
|
4201
|
-
self.
|
|
4202
|
-
self.
|
|
4203
|
-
self.
|
|
5681
|
+
self._Uin = None
|
|
5682
|
+
self._RelatedType = None
|
|
5683
|
+
self._Name = None
|
|
5684
|
+
self._AddTime = None
|
|
4204
5685
|
|
|
4205
5686
|
@property
|
|
4206
|
-
def
|
|
4207
|
-
return self.
|
|
5687
|
+
def Uin(self):
|
|
5688
|
+
return self._Uin
|
|
4208
5689
|
|
|
4209
|
-
@
|
|
4210
|
-
def
|
|
4211
|
-
self.
|
|
5690
|
+
@Uin.setter
|
|
5691
|
+
def Uin(self, Uin):
|
|
5692
|
+
self._Uin = Uin
|
|
4212
5693
|
|
|
4213
5694
|
@property
|
|
4214
|
-
def
|
|
4215
|
-
return self.
|
|
5695
|
+
def RelatedType(self):
|
|
5696
|
+
return self._RelatedType
|
|
4216
5697
|
|
|
4217
|
-
@
|
|
4218
|
-
def
|
|
4219
|
-
self.
|
|
5698
|
+
@RelatedType.setter
|
|
5699
|
+
def RelatedType(self, RelatedType):
|
|
5700
|
+
self._RelatedType = RelatedType
|
|
4220
5701
|
|
|
4221
5702
|
@property
|
|
4222
|
-
def
|
|
4223
|
-
return self.
|
|
5703
|
+
def Name(self):
|
|
5704
|
+
return self._Name
|
|
4224
5705
|
|
|
4225
|
-
@
|
|
4226
|
-
def
|
|
4227
|
-
self.
|
|
5706
|
+
@Name.setter
|
|
5707
|
+
def Name(self, Name):
|
|
5708
|
+
self._Name = Name
|
|
4228
5709
|
|
|
4229
5710
|
@property
|
|
4230
|
-
def
|
|
4231
|
-
return self.
|
|
5711
|
+
def AddTime(self):
|
|
5712
|
+
return self._AddTime
|
|
4232
5713
|
|
|
4233
|
-
@
|
|
4234
|
-
def
|
|
4235
|
-
self.
|
|
5714
|
+
@AddTime.setter
|
|
5715
|
+
def AddTime(self, AddTime):
|
|
5716
|
+
self._AddTime = AddTime
|
|
4236
5717
|
|
|
4237
5718
|
|
|
4238
5719
|
def _deserialize(self, params):
|
|
4239
|
-
self.
|
|
4240
|
-
self.
|
|
4241
|
-
self.
|
|
4242
|
-
self.
|
|
5720
|
+
self._Uin = params.get("Uin")
|
|
5721
|
+
self._RelatedType = params.get("RelatedType")
|
|
5722
|
+
self._Name = params.get("Name")
|
|
5723
|
+
self._AddTime = params.get("AddTime")
|
|
4243
5724
|
memeber_set = set(params.keys())
|
|
4244
5725
|
for name, value in vars(self).items():
|
|
4245
5726
|
property_name = name[1:]
|
|
@@ -4250,77 +5731,89 @@ class IdentityPolicy(AbstractModel):
|
|
|
4250
5731
|
|
|
4251
5732
|
|
|
4252
5733
|
|
|
4253
|
-
class
|
|
4254
|
-
"""
|
|
5734
|
+
class ListTargetsForPolicyRequest(AbstractModel):
|
|
5735
|
+
"""ListTargetsForPolicy请求参数结构体
|
|
4255
5736
|
|
|
4256
5737
|
"""
|
|
4257
5738
|
|
|
4258
5739
|
def __init__(self):
|
|
4259
5740
|
r"""
|
|
4260
|
-
:param
|
|
4261
|
-
:type
|
|
4262
|
-
:param
|
|
4263
|
-
:type
|
|
4264
|
-
:param
|
|
4265
|
-
:type
|
|
4266
|
-
:param
|
|
4267
|
-
:type
|
|
4268
|
-
:param
|
|
4269
|
-
:type
|
|
5741
|
+
:param _PolicyId: 策略Id。
|
|
5742
|
+
:type PolicyId: int
|
|
5743
|
+
:param _Rp: 每页数量。默认值是 20,必须大于 0 且小于或等于 200
|
|
5744
|
+
:type Rp: int
|
|
5745
|
+
:param _Page: 页码。默认值是 1,从 1开始,不能大于 200
|
|
5746
|
+
:type Page: int
|
|
5747
|
+
:param _TargetType: 策略类型。取值范围:All-全部、User-用户、Node-节点
|
|
5748
|
+
:type TargetType: str
|
|
5749
|
+
:param _PolicyType: 策略类型。默认值SERVICE_CONTROL_POLICY,取值范围:SERVICE_CONTROL_POLICY-服务控制策略、TAG_POLICY-标签策略
|
|
5750
|
+
:type PolicyType: str
|
|
5751
|
+
:param _Keyword: 按照多个策略id搜索,空格隔开。
|
|
5752
|
+
:type Keyword: str
|
|
4270
5753
|
"""
|
|
4271
|
-
self.
|
|
4272
|
-
self.
|
|
4273
|
-
self.
|
|
4274
|
-
self.
|
|
4275
|
-
self.
|
|
5754
|
+
self._PolicyId = None
|
|
5755
|
+
self._Rp = None
|
|
5756
|
+
self._Page = None
|
|
5757
|
+
self._TargetType = None
|
|
5758
|
+
self._PolicyType = None
|
|
5759
|
+
self._Keyword = None
|
|
4276
5760
|
|
|
4277
5761
|
@property
|
|
4278
|
-
def
|
|
4279
|
-
return self.
|
|
5762
|
+
def PolicyId(self):
|
|
5763
|
+
return self._PolicyId
|
|
4280
5764
|
|
|
4281
|
-
@
|
|
4282
|
-
def
|
|
4283
|
-
self.
|
|
5765
|
+
@PolicyId.setter
|
|
5766
|
+
def PolicyId(self, PolicyId):
|
|
5767
|
+
self._PolicyId = PolicyId
|
|
4284
5768
|
|
|
4285
5769
|
@property
|
|
4286
|
-
def
|
|
4287
|
-
return self.
|
|
5770
|
+
def Rp(self):
|
|
5771
|
+
return self._Rp
|
|
4288
5772
|
|
|
4289
|
-
@
|
|
4290
|
-
def
|
|
4291
|
-
self.
|
|
5773
|
+
@Rp.setter
|
|
5774
|
+
def Rp(self, Rp):
|
|
5775
|
+
self._Rp = Rp
|
|
4292
5776
|
|
|
4293
5777
|
@property
|
|
4294
|
-
def
|
|
4295
|
-
return self.
|
|
5778
|
+
def Page(self):
|
|
5779
|
+
return self._Page
|
|
4296
5780
|
|
|
4297
|
-
@
|
|
4298
|
-
def
|
|
4299
|
-
self.
|
|
5781
|
+
@Page.setter
|
|
5782
|
+
def Page(self, Page):
|
|
5783
|
+
self._Page = Page
|
|
4300
5784
|
|
|
4301
5785
|
@property
|
|
4302
|
-
def
|
|
4303
|
-
return self.
|
|
5786
|
+
def TargetType(self):
|
|
5787
|
+
return self._TargetType
|
|
4304
5788
|
|
|
4305
|
-
@
|
|
4306
|
-
def
|
|
4307
|
-
self.
|
|
5789
|
+
@TargetType.setter
|
|
5790
|
+
def TargetType(self, TargetType):
|
|
5791
|
+
self._TargetType = TargetType
|
|
4308
5792
|
|
|
4309
5793
|
@property
|
|
4310
|
-
def
|
|
4311
|
-
return self.
|
|
5794
|
+
def PolicyType(self):
|
|
5795
|
+
return self._PolicyType
|
|
4312
5796
|
|
|
4313
|
-
@
|
|
4314
|
-
def
|
|
4315
|
-
self.
|
|
5797
|
+
@PolicyType.setter
|
|
5798
|
+
def PolicyType(self, PolicyType):
|
|
5799
|
+
self._PolicyType = PolicyType
|
|
5800
|
+
|
|
5801
|
+
@property
|
|
5802
|
+
def Keyword(self):
|
|
5803
|
+
return self._Keyword
|
|
5804
|
+
|
|
5805
|
+
@Keyword.setter
|
|
5806
|
+
def Keyword(self, Keyword):
|
|
5807
|
+
self._Keyword = Keyword
|
|
4316
5808
|
|
|
4317
5809
|
|
|
4318
5810
|
def _deserialize(self, params):
|
|
4319
|
-
self.
|
|
4320
|
-
self.
|
|
4321
|
-
self.
|
|
4322
|
-
self.
|
|
4323
|
-
self.
|
|
5811
|
+
self._PolicyId = params.get("PolicyId")
|
|
5812
|
+
self._Rp = params.get("Rp")
|
|
5813
|
+
self._Page = params.get("Page")
|
|
5814
|
+
self._TargetType = params.get("TargetType")
|
|
5815
|
+
self._PolicyType = params.get("PolicyType")
|
|
5816
|
+
self._Keyword = params.get("Keyword")
|
|
4324
5817
|
memeber_set = set(params.keys())
|
|
4325
5818
|
for name, value in vars(self).items():
|
|
4326
5819
|
property_name = name[1:]
|
|
@@ -4331,41 +5824,40 @@ class ListOrganizationIdentityRequest(AbstractModel):
|
|
|
4331
5824
|
|
|
4332
5825
|
|
|
4333
5826
|
|
|
4334
|
-
class
|
|
4335
|
-
"""
|
|
5827
|
+
class ListTargetsForPolicyResponse(AbstractModel):
|
|
5828
|
+
"""ListTargetsForPolicy返回参数结构体
|
|
4336
5829
|
|
|
4337
5830
|
"""
|
|
4338
5831
|
|
|
4339
5832
|
def __init__(self):
|
|
4340
5833
|
r"""
|
|
4341
|
-
:param
|
|
4342
|
-
|
|
4343
|
-
:
|
|
4344
|
-
:param _Items: 条目详情。
|
|
5834
|
+
:param _TotalNum: 总数。
|
|
5835
|
+
:type TotalNum: int
|
|
5836
|
+
:param _List: 指定SCP策略关联目标列表。
|
|
4345
5837
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
4346
|
-
:type
|
|
5838
|
+
:type List: list of ListTargetsForPolicyNode
|
|
4347
5839
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
4348
5840
|
:type RequestId: str
|
|
4349
5841
|
"""
|
|
4350
|
-
self.
|
|
4351
|
-
self.
|
|
5842
|
+
self._TotalNum = None
|
|
5843
|
+
self._List = None
|
|
4352
5844
|
self._RequestId = None
|
|
4353
5845
|
|
|
4354
5846
|
@property
|
|
4355
|
-
def
|
|
4356
|
-
return self.
|
|
5847
|
+
def TotalNum(self):
|
|
5848
|
+
return self._TotalNum
|
|
4357
5849
|
|
|
4358
|
-
@
|
|
4359
|
-
def
|
|
4360
|
-
self.
|
|
5850
|
+
@TotalNum.setter
|
|
5851
|
+
def TotalNum(self, TotalNum):
|
|
5852
|
+
self._TotalNum = TotalNum
|
|
4361
5853
|
|
|
4362
5854
|
@property
|
|
4363
|
-
def
|
|
4364
|
-
return self.
|
|
5855
|
+
def List(self):
|
|
5856
|
+
return self._List
|
|
4365
5857
|
|
|
4366
|
-
@
|
|
4367
|
-
def
|
|
4368
|
-
self.
|
|
5858
|
+
@List.setter
|
|
5859
|
+
def List(self, List):
|
|
5860
|
+
self._List = List
|
|
4369
5861
|
|
|
4370
5862
|
@property
|
|
4371
5863
|
def RequestId(self):
|
|
@@ -4377,13 +5869,13 @@ class ListOrganizationIdentityResponse(AbstractModel):
|
|
|
4377
5869
|
|
|
4378
5870
|
|
|
4379
5871
|
def _deserialize(self, params):
|
|
4380
|
-
self.
|
|
4381
|
-
if params.get("
|
|
4382
|
-
self.
|
|
4383
|
-
for item in params.get("
|
|
4384
|
-
obj =
|
|
5872
|
+
self._TotalNum = params.get("TotalNum")
|
|
5873
|
+
if params.get("List") is not None:
|
|
5874
|
+
self._List = []
|
|
5875
|
+
for item in params.get("List"):
|
|
5876
|
+
obj = ListTargetsForPolicyNode()
|
|
4385
5877
|
obj._deserialize(item)
|
|
4386
|
-
self.
|
|
5878
|
+
self._List.append(obj)
|
|
4387
5879
|
self._RequestId = params.get("RequestId")
|
|
4388
5880
|
|
|
4389
5881
|
|
|
@@ -6763,6 +8255,112 @@ class UpdateOrganizationNodeResponse(AbstractModel):
|
|
|
6763
8255
|
self._RequestId = params.get("RequestId")
|
|
6764
8256
|
|
|
6765
8257
|
|
|
8258
|
+
class UpdatePolicyRequest(AbstractModel):
|
|
8259
|
+
"""UpdatePolicy请求参数结构体
|
|
8260
|
+
|
|
8261
|
+
"""
|
|
8262
|
+
|
|
8263
|
+
def __init__(self):
|
|
8264
|
+
r"""
|
|
8265
|
+
:param _PolicyId: 需要编辑的策略ID。可以调用[ListPolicies](https://tcloud4api.woa.com/document/product/1128/79356?!preview&!document=1)获取
|
|
8266
|
+
:type PolicyId: int
|
|
8267
|
+
:param _Description: 策略描述。
|
|
8268
|
+
:type Description: str
|
|
8269
|
+
:param _Content: 策略内容。参考CAM策略语法
|
|
8270
|
+
:type Content: str
|
|
8271
|
+
:param _Name: 策略名。长度为1~128个字符,可以包含汉字、英文字母、数字和下划线(_)
|
|
8272
|
+
:type Name: str
|
|
8273
|
+
:param _Type: 策略类型。默认值SERVICE_CONTROL_POLICY,取值范围:SERVICE_CONTROL_POLICY-服务控制策略、TAG_POLICY-标签策略
|
|
8274
|
+
:type Type: str
|
|
8275
|
+
"""
|
|
8276
|
+
self._PolicyId = None
|
|
8277
|
+
self._Description = None
|
|
8278
|
+
self._Content = None
|
|
8279
|
+
self._Name = None
|
|
8280
|
+
self._Type = None
|
|
8281
|
+
|
|
8282
|
+
@property
|
|
8283
|
+
def PolicyId(self):
|
|
8284
|
+
return self._PolicyId
|
|
8285
|
+
|
|
8286
|
+
@PolicyId.setter
|
|
8287
|
+
def PolicyId(self, PolicyId):
|
|
8288
|
+
self._PolicyId = PolicyId
|
|
8289
|
+
|
|
8290
|
+
@property
|
|
8291
|
+
def Description(self):
|
|
8292
|
+
return self._Description
|
|
8293
|
+
|
|
8294
|
+
@Description.setter
|
|
8295
|
+
def Description(self, Description):
|
|
8296
|
+
self._Description = Description
|
|
8297
|
+
|
|
8298
|
+
@property
|
|
8299
|
+
def Content(self):
|
|
8300
|
+
return self._Content
|
|
8301
|
+
|
|
8302
|
+
@Content.setter
|
|
8303
|
+
def Content(self, Content):
|
|
8304
|
+
self._Content = Content
|
|
8305
|
+
|
|
8306
|
+
@property
|
|
8307
|
+
def Name(self):
|
|
8308
|
+
return self._Name
|
|
8309
|
+
|
|
8310
|
+
@Name.setter
|
|
8311
|
+
def Name(self, Name):
|
|
8312
|
+
self._Name = Name
|
|
8313
|
+
|
|
8314
|
+
@property
|
|
8315
|
+
def Type(self):
|
|
8316
|
+
return self._Type
|
|
8317
|
+
|
|
8318
|
+
@Type.setter
|
|
8319
|
+
def Type(self, Type):
|
|
8320
|
+
self._Type = Type
|
|
8321
|
+
|
|
8322
|
+
|
|
8323
|
+
def _deserialize(self, params):
|
|
8324
|
+
self._PolicyId = params.get("PolicyId")
|
|
8325
|
+
self._Description = params.get("Description")
|
|
8326
|
+
self._Content = params.get("Content")
|
|
8327
|
+
self._Name = params.get("Name")
|
|
8328
|
+
self._Type = params.get("Type")
|
|
8329
|
+
memeber_set = set(params.keys())
|
|
8330
|
+
for name, value in vars(self).items():
|
|
8331
|
+
property_name = name[1:]
|
|
8332
|
+
if property_name in memeber_set:
|
|
8333
|
+
memeber_set.remove(property_name)
|
|
8334
|
+
if len(memeber_set) > 0:
|
|
8335
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
8336
|
+
|
|
8337
|
+
|
|
8338
|
+
|
|
8339
|
+
class UpdatePolicyResponse(AbstractModel):
|
|
8340
|
+
"""UpdatePolicy返回参数结构体
|
|
8341
|
+
|
|
8342
|
+
"""
|
|
8343
|
+
|
|
8344
|
+
def __init__(self):
|
|
8345
|
+
r"""
|
|
8346
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
8347
|
+
:type RequestId: str
|
|
8348
|
+
"""
|
|
8349
|
+
self._RequestId = None
|
|
8350
|
+
|
|
8351
|
+
@property
|
|
8352
|
+
def RequestId(self):
|
|
8353
|
+
return self._RequestId
|
|
8354
|
+
|
|
8355
|
+
@RequestId.setter
|
|
8356
|
+
def RequestId(self, RequestId):
|
|
8357
|
+
self._RequestId = RequestId
|
|
8358
|
+
|
|
8359
|
+
|
|
8360
|
+
def _deserialize(self, params):
|
|
8361
|
+
self._RequestId = params.get("RequestId")
|
|
8362
|
+
|
|
8363
|
+
|
|
6766
8364
|
class UpdateShareUnitRequest(AbstractModel):
|
|
6767
8365
|
"""UpdateShareUnit请求参数结构体
|
|
6768
8366
|
|