lib/v20210331/client.rb in tencentcloud-sdk-organization-1.0.233 vs lib/v20210331/client.rb in tencentcloud-sdk-organization-1.0.234

- old
+ new

@@ -99,9 +99,33 @@ raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end + # 获取企业组织成员列表 + + # @param request: Request instance for DescribeOrganizationMembers. + # @type request: :class:`Tencentcloud::organization::V20210331::DescribeOrganizationMembersRequest` + # @rtype: :class:`Tencentcloud::organization::V20210331::DescribeOrganizationMembersResponse` + def DescribeOrganizationMembers(request) + body = send_request('DescribeOrganizationMembers', request.serialize) + response = JSON.parse(body) + if response['Response'].key?('Error') == false + model = DescribeOrganizationMembersResponse.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 + end end end end \ No newline at end of file