public async Task <GetUserSourceListResponse> GetUserSourceListAsync(GetUserSourceListRequest request) { AlibabaCloud.TeaUtil.Models.RuntimeOptions runtime = new AlibabaCloud.TeaUtil.Models.RuntimeOptions(); GetUserSourceListHeaders headers = new GetUserSourceListHeaders(); return(await GetUserSourceListWithOptionsAsync(request, headers, runtime)); }
public GetUserSourceListResponse GetUserSourceList(GetUserSourceListRequest request) { AlibabaCloud.TeaUtil.Models.RuntimeOptions runtime = new AlibabaCloud.TeaUtil.Models.RuntimeOptions(); GetUserSourceListHeaders headers = new GetUserSourceListHeaders(); return(GetUserSourceListWithOptions(request, headers, runtime)); }
public GetUserSourceListResponse GetUserSourceListWithOptions(GetUserSourceListRequest request, GetUserSourceListHeaders headers, AlibabaCloud.TeaUtil.Models.RuntimeOptions runtime) { AlibabaCloud.TeaUtil.Common.ValidateModel(request); Dictionary <string, object> query = new Dictionary <string, object>() { }; if (!AlibabaCloud.TeaUtil.Common.IsUnset(request.CorpId)) { query["corpId"] = request.CorpId; } if (!AlibabaCloud.TeaUtil.Common.IsUnset(request.Description)) { query["description"] = request.Description; } if (!AlibabaCloud.TeaUtil.Common.IsUnset(request.OpenInstanceId)) { query["openInstanceId"] = request.OpenInstanceId; } if (!AlibabaCloud.TeaUtil.Common.IsUnset(request.OrgId)) { query["orgId"] = request.OrgId; } if (!AlibabaCloud.TeaUtil.Common.IsUnset(request.OrgName)) { query["orgName"] = request.OrgName; } if (!AlibabaCloud.TeaUtil.Common.IsUnset(request.ProductionType)) { query["productionType"] = request.ProductionType; } Dictionary <string, string> realHeaders = new Dictionary <string, string>() { }; if (!AlibabaCloud.TeaUtil.Common.IsUnset(headers.CommonHeaders)) { realHeaders = headers.CommonHeaders; } if (!AlibabaCloud.TeaUtil.Common.IsUnset(headers.XAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = AlibabaCloud.TeaUtil.Common.ToJSONString(headers.XAcsDingtalkAccessToken); } AlibabaCloud.OpenApiClient.Models.OpenApiRequest req = new AlibabaCloud.OpenApiClient.Models.OpenApiRequest { Headers = realHeaders, Query = AlibabaCloud.OpenApiUtil.Client.Query(query), }; return(TeaModel.ToObject <GetUserSourceListResponse>(DoROARequest("GetUserSourceList", "customerService_1.0", "HTTP", "GET", "AK", "/v1.0/customerService/customers/sources", "json", req, runtime))); }