public PullDataByPkResponse PullDataByPkWithOptions(string dataModelId, PullDataByPkRequest request, PullDataByPkHeaders headers, AlibabaCloud.TeaUtil.Models.RuntimeOptions runtime) { AlibabaCloud.TeaUtil.Common.ValidateModel(request); dataModelId = AlibabaCloud.OpenApiUtil.Client.GetEncodeParam(dataModelId); Dictionary <string, object> query = new Dictionary <string, object>() { }; if (!AlibabaCloud.TeaUtil.Common.IsUnset(request.AppId)) { query["appId"] = request.AppId; } if (!AlibabaCloud.TeaUtil.Common.IsUnset(request.PrimaryKey)) { query["primaryKey"] = request.PrimaryKey; } 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 <PullDataByPkResponse>(DoROARequest("PullDataByPk", "connector_1.0", "HTTP", "GET", "AK", "/v1.0/connector/data/" + dataModelId, "json", req, runtime))); }
public PullDataByPkResponse PullDataByPk(string dataModelId, PullDataByPkRequest request) { AlibabaCloud.TeaUtil.Models.RuntimeOptions runtime = new AlibabaCloud.TeaUtil.Models.RuntimeOptions(); PullDataByPkHeaders headers = new PullDataByPkHeaders(); return(PullDataByPkWithOptions(dataModelId, request, headers, runtime)); }
public async Task <PullDataByPkResponse> PullDataByPkAsync(string dataModelId, PullDataByPkRequest request) { AlibabaCloud.TeaUtil.Models.RuntimeOptions runtime = new AlibabaCloud.TeaUtil.Models.RuntimeOptions(); PullDataByPkHeaders headers = new PullDataByPkHeaders(); return(await PullDataByPkWithOptionsAsync(dataModelId, request, headers, runtime)); }