lib/v20210331/client.rb in tencentcloud-sdk-organization-3.0.662 vs lib/v20210331/client.rb in tencentcloud-sdk-organization-3.0.663

- old
+ new

@@ -651,9 +651,33 @@ raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end + # 退出企业组织 + + # @param request: Request instance for QuitOrganization. + # @type request: :class:`Tencentcloud::organization::V20210331::QuitOrganizationRequest` + # @rtype: :class:`Tencentcloud::organization::V20210331::QuitOrganizationResponse` + def QuitOrganization(request) + body = send_request('QuitOrganization', request.serialize) + response = JSON.parse(body) + if response['Response'].key?('Error') == false + model = QuitOrganizationResponse.new + model.deserialize(response['Response']) + model + else + code = response['Response']['Error']['Code'] + message = response['Response']['Error']['Message'] + reqid = response['Response']['RequestId'] + raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) + end + rescue TencentCloud::Common::TencentCloudSDKException => e + raise e + rescue StandardError => e + raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) + end + # 更新组织成员信息 # @param request: Request instance for UpdateOrganizationMember. # @type request: :class:`Tencentcloud::organization::V20210331::UpdateOrganizationMemberRequest` # @rtype: :class:`Tencentcloud::organization::V20210331::UpdateOrganizationMemberResponse` \ No newline at end of file