tencentcloud-sdk-python-intl-en 3.0.1143__py2.py3-none-any.whl → 3.0.1145__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-intl-en might be problematic. Click here for more details.

@@ -26,6 +26,29 @@ class OrganizationClient(AbstractClient):
26
26
  _service = 'organization'
27
27
 
28
28
 
29
+ def AcceptJoinShareUnitInvitation(self, request):
30
+ """This API is used to accept an invitation to join a shared unit.
31
+
32
+ :param request: Request instance for AcceptJoinShareUnitInvitation.
33
+ :type request: :class:`tencentcloud.organization.v20210331.models.AcceptJoinShareUnitInvitationRequest`
34
+ :rtype: :class:`tencentcloud.organization.v20210331.models.AcceptJoinShareUnitInvitationResponse`
35
+
36
+ """
37
+ try:
38
+ params = request._serialize()
39
+ headers = request.headers
40
+ body = self.call("AcceptJoinShareUnitInvitation", params, headers=headers)
41
+ response = json.loads(body)
42
+ model = models.AcceptJoinShareUnitInvitationResponse()
43
+ model._deserialize(response["Response"])
44
+ return model
45
+ except Exception as e:
46
+ if isinstance(e, TencentCloudSDKException):
47
+ raise
48
+ else:
49
+ raise TencentCloudSDKException(type(e).__name__, str(e))
50
+
51
+
29
52
  def AddExternalSAMLIdPCertificate(self, request):
30
53
  """This API is used to add SAML signing certificates.
31
54
 
@@ -95,6 +118,75 @@ class OrganizationClient(AbstractClient):
95
118
  raise TencentCloudSDKException(type(e).__name__, str(e))
96
119
 
97
120
 
121
+ def AddShareUnit(self, request):
122
+ """This API is used to create a shared unit.
123
+
124
+ :param request: Request instance for AddShareUnit.
125
+ :type request: :class:`tencentcloud.organization.v20210331.models.AddShareUnitRequest`
126
+ :rtype: :class:`tencentcloud.organization.v20210331.models.AddShareUnitResponse`
127
+
128
+ """
129
+ try:
130
+ params = request._serialize()
131
+ headers = request.headers
132
+ body = self.call("AddShareUnit", params, headers=headers)
133
+ response = json.loads(body)
134
+ model = models.AddShareUnitResponse()
135
+ model._deserialize(response["Response"])
136
+ return model
137
+ except Exception as e:
138
+ if isinstance(e, TencentCloudSDKException):
139
+ raise
140
+ else:
141
+ raise TencentCloudSDKException(type(e).__name__, str(e))
142
+
143
+
144
+ def AddShareUnitMembers(self, request):
145
+ """This API is used to add a shared unit member.
146
+
147
+ :param request: Request instance for AddShareUnitMembers.
148
+ :type request: :class:`tencentcloud.organization.v20210331.models.AddShareUnitMembersRequest`
149
+ :rtype: :class:`tencentcloud.organization.v20210331.models.AddShareUnitMembersResponse`
150
+
151
+ """
152
+ try:
153
+ params = request._serialize()
154
+ headers = request.headers
155
+ body = self.call("AddShareUnitMembers", params, headers=headers)
156
+ response = json.loads(body)
157
+ model = models.AddShareUnitMembersResponse()
158
+ model._deserialize(response["Response"])
159
+ return model
160
+ except Exception as e:
161
+ if isinstance(e, TencentCloudSDKException):
162
+ raise
163
+ else:
164
+ raise TencentCloudSDKException(type(e).__name__, str(e))
165
+
166
+
167
+ def AddShareUnitResources(self, request):
168
+ """This API is used to add resources to a shared unit.
169
+
170
+ :param request: Request instance for AddShareUnitResources.
171
+ :type request: :class:`tencentcloud.organization.v20210331.models.AddShareUnitResourcesRequest`
172
+ :rtype: :class:`tencentcloud.organization.v20210331.models.AddShareUnitResourcesResponse`
173
+
174
+ """
175
+ try:
176
+ params = request._serialize()
177
+ headers = request.headers
178
+ body = self.call("AddShareUnitResources", params, headers=headers)
179
+ response = json.loads(body)
180
+ model = models.AddShareUnitResourcesResponse()
181
+ model._deserialize(response["Response"])
182
+ return model
183
+ except Exception as e:
184
+ if isinstance(e, TencentCloudSDKException):
185
+ raise
186
+ else:
187
+ raise TencentCloudSDKException(type(e).__name__, str(e))
188
+
189
+
98
190
  def AddUserToGroup(self, request):
99
191
  """This API is used to add users to a user group.
100
192
 
@@ -739,6 +831,75 @@ class OrganizationClient(AbstractClient):
739
831
  raise TencentCloudSDKException(type(e).__name__, str(e))
740
832
 
741
833
 
834
+ def DeleteShareUnit(self, request):
835
+ """This API is used to delete a shared unit.
836
+
837
+ :param request: Request instance for DeleteShareUnit.
838
+ :type request: :class:`tencentcloud.organization.v20210331.models.DeleteShareUnitRequest`
839
+ :rtype: :class:`tencentcloud.organization.v20210331.models.DeleteShareUnitResponse`
840
+
841
+ """
842
+ try:
843
+ params = request._serialize()
844
+ headers = request.headers
845
+ body = self.call("DeleteShareUnit", params, headers=headers)
846
+ response = json.loads(body)
847
+ model = models.DeleteShareUnitResponse()
848
+ model._deserialize(response["Response"])
849
+ return model
850
+ except Exception as e:
851
+ if isinstance(e, TencentCloudSDKException):
852
+ raise
853
+ else:
854
+ raise TencentCloudSDKException(type(e).__name__, str(e))
855
+
856
+
857
+ def DeleteShareUnitMembers(self, request):
858
+ """This API is used to delete a shared unit member.
859
+
860
+ :param request: Request instance for DeleteShareUnitMembers.
861
+ :type request: :class:`tencentcloud.organization.v20210331.models.DeleteShareUnitMembersRequest`
862
+ :rtype: :class:`tencentcloud.organization.v20210331.models.DeleteShareUnitMembersResponse`
863
+
864
+ """
865
+ try:
866
+ params = request._serialize()
867
+ headers = request.headers
868
+ body = self.call("DeleteShareUnitMembers", params, headers=headers)
869
+ response = json.loads(body)
870
+ model = models.DeleteShareUnitMembersResponse()
871
+ model._deserialize(response["Response"])
872
+ return model
873
+ except Exception as e:
874
+ if isinstance(e, TencentCloudSDKException):
875
+ raise
876
+ else:
877
+ raise TencentCloudSDKException(type(e).__name__, str(e))
878
+
879
+
880
+ def DeleteShareUnitResources(self, request):
881
+ """This API is used to delete shared unit resources.
882
+
883
+ :param request: Request instance for DeleteShareUnitResources.
884
+ :type request: :class:`tencentcloud.organization.v20210331.models.DeleteShareUnitResourcesRequest`
885
+ :rtype: :class:`tencentcloud.organization.v20210331.models.DeleteShareUnitResourcesResponse`
886
+
887
+ """
888
+ try:
889
+ params = request._serialize()
890
+ headers = request.headers
891
+ body = self.call("DeleteShareUnitResources", params, headers=headers)
892
+ response = json.loads(body)
893
+ model = models.DeleteShareUnitResourcesResponse()
894
+ model._deserialize(response["Response"])
895
+ return model
896
+ except Exception as e:
897
+ if isinstance(e, TencentCloudSDKException):
898
+ raise
899
+ else:
900
+ raise TencentCloudSDKException(type(e).__name__, str(e))
901
+
902
+
742
903
  def DeleteUser(self, request):
743
904
  """This API is used to delete a user.
744
905
 
@@ -946,6 +1107,98 @@ class OrganizationClient(AbstractClient):
946
1107
  raise TencentCloudSDKException(type(e).__name__, str(e))
947
1108
 
948
1109
 
1110
+ def DescribeShareAreas(self, request):
1111
+ """This API is used to obtain a list of shareable regions.
1112
+
1113
+ :param request: Request instance for DescribeShareAreas.
1114
+ :type request: :class:`tencentcloud.organization.v20210331.models.DescribeShareAreasRequest`
1115
+ :rtype: :class:`tencentcloud.organization.v20210331.models.DescribeShareAreasResponse`
1116
+
1117
+ """
1118
+ try:
1119
+ params = request._serialize()
1120
+ headers = request.headers
1121
+ body = self.call("DescribeShareAreas", params, headers=headers)
1122
+ response = json.loads(body)
1123
+ model = models.DescribeShareAreasResponse()
1124
+ model._deserialize(response["Response"])
1125
+ return model
1126
+ except Exception as e:
1127
+ if isinstance(e, TencentCloudSDKException):
1128
+ raise
1129
+ else:
1130
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1131
+
1132
+
1133
+ def DescribeShareUnitMembers(self, request):
1134
+ """This API is used to obtain the member list of a shared unit.
1135
+
1136
+ :param request: Request instance for DescribeShareUnitMembers.
1137
+ :type request: :class:`tencentcloud.organization.v20210331.models.DescribeShareUnitMembersRequest`
1138
+ :rtype: :class:`tencentcloud.organization.v20210331.models.DescribeShareUnitMembersResponse`
1139
+
1140
+ """
1141
+ try:
1142
+ params = request._serialize()
1143
+ headers = request.headers
1144
+ body = self.call("DescribeShareUnitMembers", params, headers=headers)
1145
+ response = json.loads(body)
1146
+ model = models.DescribeShareUnitMembersResponse()
1147
+ model._deserialize(response["Response"])
1148
+ return model
1149
+ except Exception as e:
1150
+ if isinstance(e, TencentCloudSDKException):
1151
+ raise
1152
+ else:
1153
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1154
+
1155
+
1156
+ def DescribeShareUnitResources(self, request):
1157
+ """This API is used to obtain the resource list of a shared unit.
1158
+
1159
+ :param request: Request instance for DescribeShareUnitResources.
1160
+ :type request: :class:`tencentcloud.organization.v20210331.models.DescribeShareUnitResourcesRequest`
1161
+ :rtype: :class:`tencentcloud.organization.v20210331.models.DescribeShareUnitResourcesResponse`
1162
+
1163
+ """
1164
+ try:
1165
+ params = request._serialize()
1166
+ headers = request.headers
1167
+ body = self.call("DescribeShareUnitResources", params, headers=headers)
1168
+ response = json.loads(body)
1169
+ model = models.DescribeShareUnitResourcesResponse()
1170
+ model._deserialize(response["Response"])
1171
+ return model
1172
+ except Exception as e:
1173
+ if isinstance(e, TencentCloudSDKException):
1174
+ raise
1175
+ else:
1176
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1177
+
1178
+
1179
+ def DescribeShareUnits(self, request):
1180
+ """This API is used to obtain a list of shared units.
1181
+
1182
+ :param request: Request instance for DescribeShareUnits.
1183
+ :type request: :class:`tencentcloud.organization.v20210331.models.DescribeShareUnitsRequest`
1184
+ :rtype: :class:`tencentcloud.organization.v20210331.models.DescribeShareUnitsResponse`
1185
+
1186
+ """
1187
+ try:
1188
+ params = request._serialize()
1189
+ headers = request.headers
1190
+ body = self.call("DescribeShareUnits", params, headers=headers)
1191
+ response = json.loads(body)
1192
+ model = models.DescribeShareUnitsResponse()
1193
+ model._deserialize(response["Response"])
1194
+ return model
1195
+ except Exception as e:
1196
+ if isinstance(e, TencentCloudSDKException):
1197
+ raise
1198
+ else:
1199
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1200
+
1201
+
949
1202
  def DismantleRoleConfiguration(self, request):
950
1203
  """This API is used to undeploy permission configurations on member accounts.
951
1204
 
@@ -1659,6 +1912,29 @@ class OrganizationClient(AbstractClient):
1659
1912
  raise TencentCloudSDKException(type(e).__name__, str(e))
1660
1913
 
1661
1914
 
1915
+ def RejectJoinShareUnitInvitation(self, request):
1916
+ """This API is used to reject an invitation to join a shared unit.
1917
+
1918
+ :param request: Request instance for RejectJoinShareUnitInvitation.
1919
+ :type request: :class:`tencentcloud.organization.v20210331.models.RejectJoinShareUnitInvitationRequest`
1920
+ :rtype: :class:`tencentcloud.organization.v20210331.models.RejectJoinShareUnitInvitationResponse`
1921
+
1922
+ """
1923
+ try:
1924
+ params = request._serialize()
1925
+ headers = request.headers
1926
+ body = self.call("RejectJoinShareUnitInvitation", params, headers=headers)
1927
+ response = json.loads(body)
1928
+ model = models.RejectJoinShareUnitInvitationResponse()
1929
+ model._deserialize(response["Response"])
1930
+ return model
1931
+ except Exception as e:
1932
+ if isinstance(e, TencentCloudSDKException):
1933
+ raise
1934
+ else:
1935
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1936
+
1937
+
1662
1938
  def RemoveExternalSAMLIdPCertificate(self, request):
1663
1939
  """This API is used to remove SAML signing certificates.
1664
1940
 
@@ -1935,6 +2211,29 @@ class OrganizationClient(AbstractClient):
1935
2211
  raise TencentCloudSDKException(type(e).__name__, str(e))
1936
2212
 
1937
2213
 
2214
+ def UpdateShareUnit(self, request):
2215
+ """This API is used to update a shared unit.
2216
+
2217
+ :param request: Request instance for UpdateShareUnit.
2218
+ :type request: :class:`tencentcloud.organization.v20210331.models.UpdateShareUnitRequest`
2219
+ :rtype: :class:`tencentcloud.organization.v20210331.models.UpdateShareUnitResponse`
2220
+
2221
+ """
2222
+ try:
2223
+ params = request._serialize()
2224
+ headers = request.headers
2225
+ body = self.call("UpdateShareUnit", params, headers=headers)
2226
+ response = json.loads(body)
2227
+ model = models.UpdateShareUnitResponse()
2228
+ model._deserialize(response["Response"])
2229
+ return model
2230
+ except Exception as e:
2231
+ if isinstance(e, TencentCloudSDKException):
2232
+ raise
2233
+ else:
2234
+ raise TencentCloudSDKException(type(e).__name__, str(e))
2235
+
2236
+
1938
2237
  def UpdateUser(self, request):
1939
2238
  """This API is used to modify user information.
1940
2239
 
@@ -26,7 +26,7 @@ FAILEDOPERATION = 'FailedOperation'
26
26
  # You do not have permission to perform this operation.
27
27
  FAILEDOPERATION_AUTHERROR = 'FailedOperation.AuthError'
28
28
 
29
- #
29
+ # Cannot be deleted when there are unbound cloud resources.
30
30
  FAILEDOPERATION_BOUNDRESOURCES = 'FailedOperation.BoundResources'
31
31
 
32
32
  # A CAM authentication error occurred.
@@ -44,7 +44,7 @@ FAILEDOPERATION_CANNOTBEDELETEDWITHINHOUR = 'FailedOperation.CannotBeDeletedWith
44
44
  # Failed to get order information. Try again later.
45
45
  FAILEDOPERATION_CANNOTGETORDER = 'FailedOperation.CannotGetOrder'
46
46
 
47
- #
47
+ # Note: the uploaded certificate content does not conform to the standard format of ca certificates. please check whether the certificate type is incorrect.
48
48
  FAILEDOPERATION_CERTIFICATECAERROR = 'FailedOperation.CertificateCaError'
49
49
 
50
50
  # This operation can be performed only when the record status is Complete.
@@ -86,7 +86,7 @@ FAILEDOPERATION_CERTIFICATEHOSTRESOURCETYPEINVALID = 'FailedOperation.Certificat
86
86
  # The certificate is invalid.
87
87
  FAILEDOPERATION_CERTIFICATEINVALID = 'FailedOperation.CertificateInvalid'
88
88
 
89
- #
89
+ # Note: the certificate content and private key do not match. please check (pay attention to whether there are extra spaces).
90
90
  FAILEDOPERATION_CERTIFICATEMATCHERROR = 'FailedOperation.CertificateMatchError'
91
91
 
92
92
  # The certificate and the private key do not match.
@@ -104,13 +104,13 @@ FAILEDOPERATION_CERTIFICATENOTFOUND = 'FailedOperation.CertificateNotFound'
104
104
  # The certificate does not exist, or the review cannot be canceled.
105
105
  FAILEDOPERATION_CERTIFICATENOTFOUNDORCANTCANCEL = 'FailedOperation.CertificateNotFoundOrCantCancel'
106
106
 
107
- #
107
+ # Parsing failed. check if the certificate meets the standard and pay attention to whether there are extra spaces.
108
108
  FAILEDOPERATION_CERTIFICATEPARSEERROR = 'FailedOperation.CertificateParseError'
109
109
 
110
110
  # You cannot re-submit a review application for a certificate in this status.
111
111
  FAILEDOPERATION_CERTIFICATESTATUSNOTALLOWRESUBMIT = 'FailedOperation.CertificateStatusNotAllowResubmit'
112
112
 
113
- #
113
+ # The cert associated with the cloud resource query task id is invalid.
114
114
  FAILEDOPERATION_CERTIFICATESYNCTASKIDINVALID = 'FailedOperation.CertificateSyncTaskIdInvalid'
115
115
 
116
116
  # The confirmation letter file cannot exceed 1.4 MB.
@@ -119,7 +119,7 @@ FAILEDOPERATION_CONFIRMLETTERTOOLARGE = 'FailedOperation.ConfirmLetterTooLarge'
119
119
  # The confirmation letter file cannot be smaller than 1 KB.
120
120
  FAILEDOPERATION_CONFIRMLETTERTOOSMALL = 'FailedOperation.ConfirmLetterTooSmall'
121
121
 
122
- #
122
+ # Cannot be deleted when the free cert application time has not exceeded 1 hour.
123
123
  FAILEDOPERATION_DELETEFAILEDTIMENOTUP = 'FailedOperation.DeleteFailedTimeNotUp'
124
124
 
125
125
  # The certificate is associated with a Tencent Cloud resource and cannot be deleted.
@@ -170,7 +170,7 @@ FAILEDOPERATION_PACKAGEEXPIRED = 'FailedOperation.PackageExpired'
170
170
  # The benefit package does not exist.
171
171
  FAILEDOPERATION_PACKAGENOTFOUND = 'FailedOperation.PackageNotFound'
172
172
 
173
- #
173
+ # Cannot perform deletion when the renewed cert has not been issued.
174
174
  FAILEDOPERATION_RENEWNOTISSUED = 'FailedOperation.RenewNotIssued'
175
175
 
176
176
  # The role does not exist. Please authorize the role first.
@@ -212,6 +212,9 @@ INVALIDPARAMETER_WITHDETAILREASON = 'InvalidParameter.WithDetailReason'
212
212
  # Invalid parameter value.
213
213
  INVALIDPARAMETERVALUE = 'InvalidParameterValue'
214
214
 
215
+ # Intermediate certificate inconsistent.
216
+ INVALIDPARAMETERVALUE_INTERMEDIATECERTNOTSAME = 'InvalidParameterValue.IntermediateCertNotSame'
217
+
215
218
  # The API rate limit is reached.
216
219
  LIMITEXCEEDED_RATELIMITEXCEEDED = 'LimitExceeded.RateLimitExceeded'
217
220