tencentcloud-sdk-python-organization 3.0.1416__tar.gz → 3.0.1443__tar.gz
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-sdk-python-organization-3.0.1416 → tencentcloud-sdk-python-organization-3.0.1443}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-organization-3.0.1416 → tencentcloud-sdk-python-organization-3.0.1443}/setup.py +1 -1
- {tencentcloud-sdk-python-organization-3.0.1416 → tencentcloud-sdk-python-organization-3.0.1443}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-organization-3.0.1416 → tencentcloud-sdk-python-organization-3.0.1443}/tencentcloud/organization/v20210331/models.py +304 -0
- {tencentcloud-sdk-python-organization-3.0.1416 → tencentcloud-sdk-python-organization-3.0.1443}/tencentcloud/organization/v20210331/organization_client.py +23 -0
- {tencentcloud-sdk-python-organization-3.0.1416 → tencentcloud-sdk-python-organization-3.0.1443}/tencentcloud_sdk_python_organization.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-organization-3.0.1443/tencentcloud_sdk_python_organization.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-organization-3.0.1416/tencentcloud_sdk_python_organization.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-organization-3.0.1416 → tencentcloud-sdk-python-organization-3.0.1443}/README.rst +0 -0
- {tencentcloud-sdk-python-organization-3.0.1416 → tencentcloud-sdk-python-organization-3.0.1443}/setup.cfg +0 -0
- {tencentcloud-sdk-python-organization-3.0.1416 → tencentcloud-sdk-python-organization-3.0.1443}/tencentcloud/organization/__init__.py +0 -0
- {tencentcloud-sdk-python-organization-3.0.1416 → tencentcloud-sdk-python-organization-3.0.1443}/tencentcloud/organization/v20181225/__init__.py +0 -0
- {tencentcloud-sdk-python-organization-3.0.1416 → tencentcloud-sdk-python-organization-3.0.1443}/tencentcloud/organization/v20181225/errorcodes.py +0 -0
- {tencentcloud-sdk-python-organization-3.0.1416 → tencentcloud-sdk-python-organization-3.0.1443}/tencentcloud/organization/v20181225/models.py +0 -0
- {tencentcloud-sdk-python-organization-3.0.1416 → tencentcloud-sdk-python-organization-3.0.1443}/tencentcloud/organization/v20181225/organization_client.py +0 -0
- {tencentcloud-sdk-python-organization-3.0.1416 → tencentcloud-sdk-python-organization-3.0.1443}/tencentcloud/organization/v20210331/__init__.py +0 -0
- {tencentcloud-sdk-python-organization-3.0.1416 → tencentcloud-sdk-python-organization-3.0.1443}/tencentcloud/organization/v20210331/errorcodes.py +0 -0
- {tencentcloud-sdk-python-organization-3.0.1416 → tencentcloud-sdk-python-organization-3.0.1443}/tencentcloud_sdk_python_organization.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-organization-3.0.1416 → tencentcloud-sdk-python-organization-3.0.1443}/tencentcloud_sdk_python_organization.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-organization-3.0.1416 → tencentcloud-sdk-python-organization-3.0.1443}/tencentcloud_sdk_python_organization.egg-info/top_level.txt +0 -0
|
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
|
|
|
8
8
|
|
|
9
9
|
setup(
|
|
10
10
|
name='tencentcloud-sdk-python-organization',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.0.1443,<4.0.0"],
|
|
12
12
|
version=tencentcloud.__version__,
|
|
13
13
|
description='Tencent Cloud Organization SDK for Python',
|
|
14
14
|
long_description=open('README.rst').read(),
|
|
@@ -7532,6 +7532,184 @@ class DescribePolicyResponse(AbstractModel):
|
|
|
7532
7532
|
self._RequestId = params.get("RequestId")
|
|
7533
7533
|
|
|
7534
7534
|
|
|
7535
|
+
class DescribeResourceToShareMemberRequest(AbstractModel):
|
|
7536
|
+
"""DescribeResourceToShareMember请求参数结构体
|
|
7537
|
+
|
|
7538
|
+
"""
|
|
7539
|
+
|
|
7540
|
+
def __init__(self):
|
|
7541
|
+
r"""
|
|
7542
|
+
:param _Area: 共享地域。可通过接口[DescribeShareAreas](https://cloud.tencent.com/document/product/850/103050)获取支持共享的地域。
|
|
7543
|
+
:type Area: str
|
|
7544
|
+
:param _Offset: 偏移量。取值是limit的整数倍。默认值 : 0。
|
|
7545
|
+
:type Offset: int
|
|
7546
|
+
:param _Limit: 限制数目。取值范围:1~50。
|
|
7547
|
+
:type Limit: int
|
|
7548
|
+
:param _SearchKey: 搜索关键字,支持业务资源ID搜索。
|
|
7549
|
+
:type SearchKey: str
|
|
7550
|
+
:param _Type: 共享资源类型。支持共享的资源类型,请参见[资源共享概述](https://cloud.tencent.com/document/product/850/59489)
|
|
7551
|
+
:type Type: str
|
|
7552
|
+
:param _ProductResourceIds: 业务资源ID。最大50个
|
|
7553
|
+
:type ProductResourceIds: list of str
|
|
7554
|
+
"""
|
|
7555
|
+
self._Area = None
|
|
7556
|
+
self._Offset = None
|
|
7557
|
+
self._Limit = None
|
|
7558
|
+
self._SearchKey = None
|
|
7559
|
+
self._Type = None
|
|
7560
|
+
self._ProductResourceIds = None
|
|
7561
|
+
|
|
7562
|
+
@property
|
|
7563
|
+
def Area(self):
|
|
7564
|
+
"""共享地域。可通过接口[DescribeShareAreas](https://cloud.tencent.com/document/product/850/103050)获取支持共享的地域。
|
|
7565
|
+
:rtype: str
|
|
7566
|
+
"""
|
|
7567
|
+
return self._Area
|
|
7568
|
+
|
|
7569
|
+
@Area.setter
|
|
7570
|
+
def Area(self, Area):
|
|
7571
|
+
self._Area = Area
|
|
7572
|
+
|
|
7573
|
+
@property
|
|
7574
|
+
def Offset(self):
|
|
7575
|
+
"""偏移量。取值是limit的整数倍。默认值 : 0。
|
|
7576
|
+
:rtype: int
|
|
7577
|
+
"""
|
|
7578
|
+
return self._Offset
|
|
7579
|
+
|
|
7580
|
+
@Offset.setter
|
|
7581
|
+
def Offset(self, Offset):
|
|
7582
|
+
self._Offset = Offset
|
|
7583
|
+
|
|
7584
|
+
@property
|
|
7585
|
+
def Limit(self):
|
|
7586
|
+
"""限制数目。取值范围:1~50。
|
|
7587
|
+
:rtype: int
|
|
7588
|
+
"""
|
|
7589
|
+
return self._Limit
|
|
7590
|
+
|
|
7591
|
+
@Limit.setter
|
|
7592
|
+
def Limit(self, Limit):
|
|
7593
|
+
self._Limit = Limit
|
|
7594
|
+
|
|
7595
|
+
@property
|
|
7596
|
+
def SearchKey(self):
|
|
7597
|
+
"""搜索关键字,支持业务资源ID搜索。
|
|
7598
|
+
:rtype: str
|
|
7599
|
+
"""
|
|
7600
|
+
return self._SearchKey
|
|
7601
|
+
|
|
7602
|
+
@SearchKey.setter
|
|
7603
|
+
def SearchKey(self, SearchKey):
|
|
7604
|
+
self._SearchKey = SearchKey
|
|
7605
|
+
|
|
7606
|
+
@property
|
|
7607
|
+
def Type(self):
|
|
7608
|
+
"""共享资源类型。支持共享的资源类型,请参见[资源共享概述](https://cloud.tencent.com/document/product/850/59489)
|
|
7609
|
+
:rtype: str
|
|
7610
|
+
"""
|
|
7611
|
+
return self._Type
|
|
7612
|
+
|
|
7613
|
+
@Type.setter
|
|
7614
|
+
def Type(self, Type):
|
|
7615
|
+
self._Type = Type
|
|
7616
|
+
|
|
7617
|
+
@property
|
|
7618
|
+
def ProductResourceIds(self):
|
|
7619
|
+
"""业务资源ID。最大50个
|
|
7620
|
+
:rtype: list of str
|
|
7621
|
+
"""
|
|
7622
|
+
return self._ProductResourceIds
|
|
7623
|
+
|
|
7624
|
+
@ProductResourceIds.setter
|
|
7625
|
+
def ProductResourceIds(self, ProductResourceIds):
|
|
7626
|
+
self._ProductResourceIds = ProductResourceIds
|
|
7627
|
+
|
|
7628
|
+
|
|
7629
|
+
def _deserialize(self, params):
|
|
7630
|
+
self._Area = params.get("Area")
|
|
7631
|
+
self._Offset = params.get("Offset")
|
|
7632
|
+
self._Limit = params.get("Limit")
|
|
7633
|
+
self._SearchKey = params.get("SearchKey")
|
|
7634
|
+
self._Type = params.get("Type")
|
|
7635
|
+
self._ProductResourceIds = params.get("ProductResourceIds")
|
|
7636
|
+
memeber_set = set(params.keys())
|
|
7637
|
+
for name, value in vars(self).items():
|
|
7638
|
+
property_name = name[1:]
|
|
7639
|
+
if property_name in memeber_set:
|
|
7640
|
+
memeber_set.remove(property_name)
|
|
7641
|
+
if len(memeber_set) > 0:
|
|
7642
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
7643
|
+
|
|
7644
|
+
|
|
7645
|
+
|
|
7646
|
+
class DescribeResourceToShareMemberResponse(AbstractModel):
|
|
7647
|
+
"""DescribeResourceToShareMember返回参数结构体
|
|
7648
|
+
|
|
7649
|
+
"""
|
|
7650
|
+
|
|
7651
|
+
def __init__(self):
|
|
7652
|
+
r"""
|
|
7653
|
+
:param _Total: 总数
|
|
7654
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
7655
|
+
:type Total: int
|
|
7656
|
+
:param _Items: 详情
|
|
7657
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
7658
|
+
:type Items: list of ShareResourceToMember
|
|
7659
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
7660
|
+
:type RequestId: str
|
|
7661
|
+
"""
|
|
7662
|
+
self._Total = None
|
|
7663
|
+
self._Items = None
|
|
7664
|
+
self._RequestId = None
|
|
7665
|
+
|
|
7666
|
+
@property
|
|
7667
|
+
def Total(self):
|
|
7668
|
+
"""总数
|
|
7669
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
7670
|
+
:rtype: int
|
|
7671
|
+
"""
|
|
7672
|
+
return self._Total
|
|
7673
|
+
|
|
7674
|
+
@Total.setter
|
|
7675
|
+
def Total(self, Total):
|
|
7676
|
+
self._Total = Total
|
|
7677
|
+
|
|
7678
|
+
@property
|
|
7679
|
+
def Items(self):
|
|
7680
|
+
"""详情
|
|
7681
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
7682
|
+
:rtype: list of ShareResourceToMember
|
|
7683
|
+
"""
|
|
7684
|
+
return self._Items
|
|
7685
|
+
|
|
7686
|
+
@Items.setter
|
|
7687
|
+
def Items(self, Items):
|
|
7688
|
+
self._Items = Items
|
|
7689
|
+
|
|
7690
|
+
@property
|
|
7691
|
+
def RequestId(self):
|
|
7692
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
7693
|
+
:rtype: str
|
|
7694
|
+
"""
|
|
7695
|
+
return self._RequestId
|
|
7696
|
+
|
|
7697
|
+
@RequestId.setter
|
|
7698
|
+
def RequestId(self, RequestId):
|
|
7699
|
+
self._RequestId = RequestId
|
|
7700
|
+
|
|
7701
|
+
|
|
7702
|
+
def _deserialize(self, params):
|
|
7703
|
+
self._Total = params.get("Total")
|
|
7704
|
+
if params.get("Items") is not None:
|
|
7705
|
+
self._Items = []
|
|
7706
|
+
for item in params.get("Items"):
|
|
7707
|
+
obj = ShareResourceToMember()
|
|
7708
|
+
obj._deserialize(item)
|
|
7709
|
+
self._Items.append(obj)
|
|
7710
|
+
self._RequestId = params.get("RequestId")
|
|
7711
|
+
|
|
7712
|
+
|
|
7535
7713
|
class DescribeShareAreasRequest(AbstractModel):
|
|
7536
7714
|
"""DescribeShareAreas请求参数结构体
|
|
7537
7715
|
|
|
@@ -18856,6 +19034,132 @@ class ShareResource(AbstractModel):
|
|
|
18856
19034
|
|
|
18857
19035
|
|
|
18858
19036
|
|
|
19037
|
+
class ShareResourceToMember(AbstractModel):
|
|
19038
|
+
"""与我共享的资源
|
|
19039
|
+
|
|
19040
|
+
"""
|
|
19041
|
+
|
|
19042
|
+
def __init__(self):
|
|
19043
|
+
r"""
|
|
19044
|
+
:param _ResourceId: 共享单元资源ID。
|
|
19045
|
+
:type ResourceId: str
|
|
19046
|
+
:param _Type: 资源类型。
|
|
19047
|
+
:type Type: str
|
|
19048
|
+
:param _UnitId: 共享单元ID。
|
|
19049
|
+
:type UnitId: str
|
|
19050
|
+
:param _UnitName: 共享单元名称。
|
|
19051
|
+
:type UnitName: str
|
|
19052
|
+
:param _CreateTime: 创建时间。
|
|
19053
|
+
:type CreateTime: str
|
|
19054
|
+
:param _ProductResourceId: 业务资源ID。
|
|
19055
|
+
:type ProductResourceId: str
|
|
19056
|
+
:param _ShareManagerUin: 共享账号Uin。
|
|
19057
|
+
:type ShareManagerUin: int
|
|
19058
|
+
"""
|
|
19059
|
+
self._ResourceId = None
|
|
19060
|
+
self._Type = None
|
|
19061
|
+
self._UnitId = None
|
|
19062
|
+
self._UnitName = None
|
|
19063
|
+
self._CreateTime = None
|
|
19064
|
+
self._ProductResourceId = None
|
|
19065
|
+
self._ShareManagerUin = None
|
|
19066
|
+
|
|
19067
|
+
@property
|
|
19068
|
+
def ResourceId(self):
|
|
19069
|
+
"""共享单元资源ID。
|
|
19070
|
+
:rtype: str
|
|
19071
|
+
"""
|
|
19072
|
+
return self._ResourceId
|
|
19073
|
+
|
|
19074
|
+
@ResourceId.setter
|
|
19075
|
+
def ResourceId(self, ResourceId):
|
|
19076
|
+
self._ResourceId = ResourceId
|
|
19077
|
+
|
|
19078
|
+
@property
|
|
19079
|
+
def Type(self):
|
|
19080
|
+
"""资源类型。
|
|
19081
|
+
:rtype: str
|
|
19082
|
+
"""
|
|
19083
|
+
return self._Type
|
|
19084
|
+
|
|
19085
|
+
@Type.setter
|
|
19086
|
+
def Type(self, Type):
|
|
19087
|
+
self._Type = Type
|
|
19088
|
+
|
|
19089
|
+
@property
|
|
19090
|
+
def UnitId(self):
|
|
19091
|
+
"""共享单元ID。
|
|
19092
|
+
:rtype: str
|
|
19093
|
+
"""
|
|
19094
|
+
return self._UnitId
|
|
19095
|
+
|
|
19096
|
+
@UnitId.setter
|
|
19097
|
+
def UnitId(self, UnitId):
|
|
19098
|
+
self._UnitId = UnitId
|
|
19099
|
+
|
|
19100
|
+
@property
|
|
19101
|
+
def UnitName(self):
|
|
19102
|
+
"""共享单元名称。
|
|
19103
|
+
:rtype: str
|
|
19104
|
+
"""
|
|
19105
|
+
return self._UnitName
|
|
19106
|
+
|
|
19107
|
+
@UnitName.setter
|
|
19108
|
+
def UnitName(self, UnitName):
|
|
19109
|
+
self._UnitName = UnitName
|
|
19110
|
+
|
|
19111
|
+
@property
|
|
19112
|
+
def CreateTime(self):
|
|
19113
|
+
"""创建时间。
|
|
19114
|
+
:rtype: str
|
|
19115
|
+
"""
|
|
19116
|
+
return self._CreateTime
|
|
19117
|
+
|
|
19118
|
+
@CreateTime.setter
|
|
19119
|
+
def CreateTime(self, CreateTime):
|
|
19120
|
+
self._CreateTime = CreateTime
|
|
19121
|
+
|
|
19122
|
+
@property
|
|
19123
|
+
def ProductResourceId(self):
|
|
19124
|
+
"""业务资源ID。
|
|
19125
|
+
:rtype: str
|
|
19126
|
+
"""
|
|
19127
|
+
return self._ProductResourceId
|
|
19128
|
+
|
|
19129
|
+
@ProductResourceId.setter
|
|
19130
|
+
def ProductResourceId(self, ProductResourceId):
|
|
19131
|
+
self._ProductResourceId = ProductResourceId
|
|
19132
|
+
|
|
19133
|
+
@property
|
|
19134
|
+
def ShareManagerUin(self):
|
|
19135
|
+
"""共享账号Uin。
|
|
19136
|
+
:rtype: int
|
|
19137
|
+
"""
|
|
19138
|
+
return self._ShareManagerUin
|
|
19139
|
+
|
|
19140
|
+
@ShareManagerUin.setter
|
|
19141
|
+
def ShareManagerUin(self, ShareManagerUin):
|
|
19142
|
+
self._ShareManagerUin = ShareManagerUin
|
|
19143
|
+
|
|
19144
|
+
|
|
19145
|
+
def _deserialize(self, params):
|
|
19146
|
+
self._ResourceId = params.get("ResourceId")
|
|
19147
|
+
self._Type = params.get("Type")
|
|
19148
|
+
self._UnitId = params.get("UnitId")
|
|
19149
|
+
self._UnitName = params.get("UnitName")
|
|
19150
|
+
self._CreateTime = params.get("CreateTime")
|
|
19151
|
+
self._ProductResourceId = params.get("ProductResourceId")
|
|
19152
|
+
self._ShareManagerUin = params.get("ShareManagerUin")
|
|
19153
|
+
memeber_set = set(params.keys())
|
|
19154
|
+
for name, value in vars(self).items():
|
|
19155
|
+
property_name = name[1:]
|
|
19156
|
+
if property_name in memeber_set:
|
|
19157
|
+
memeber_set.remove(property_name)
|
|
19158
|
+
if len(memeber_set) > 0:
|
|
19159
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
19160
|
+
|
|
19161
|
+
|
|
19162
|
+
|
|
18859
19163
|
class ShareUnitMember(AbstractModel):
|
|
18860
19164
|
"""共享单元成员
|
|
18861
19165
|
|
|
@@ -1475,6 +1475,29 @@ class OrganizationClient(AbstractClient):
|
|
|
1475
1475
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1476
1476
|
|
|
1477
1477
|
|
|
1478
|
+
def DescribeResourceToShareMember(self, request):
|
|
1479
|
+
"""获取与我共享的资源列表。
|
|
1480
|
+
|
|
1481
|
+
:param request: Request instance for DescribeResourceToShareMember.
|
|
1482
|
+
:type request: :class:`tencentcloud.organization.v20210331.models.DescribeResourceToShareMemberRequest`
|
|
1483
|
+
:rtype: :class:`tencentcloud.organization.v20210331.models.DescribeResourceToShareMemberResponse`
|
|
1484
|
+
|
|
1485
|
+
"""
|
|
1486
|
+
try:
|
|
1487
|
+
params = request._serialize()
|
|
1488
|
+
headers = request.headers
|
|
1489
|
+
body = self.call("DescribeResourceToShareMember", params, headers=headers)
|
|
1490
|
+
response = json.loads(body)
|
|
1491
|
+
model = models.DescribeResourceToShareMemberResponse()
|
|
1492
|
+
model._deserialize(response["Response"])
|
|
1493
|
+
return model
|
|
1494
|
+
except Exception as e:
|
|
1495
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1496
|
+
raise
|
|
1497
|
+
else:
|
|
1498
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1499
|
+
|
|
1500
|
+
|
|
1478
1501
|
def DescribeShareAreas(self, request):
|
|
1479
1502
|
"""获取可共享地域列表
|
|
1480
1503
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.0.1443
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common==3.0.1416
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|