public async Task <GetTbProjectGrayResponse> GetTbProjectGrayAsync(GetTbProjectGrayRequest request) { AlibabaCloud.TeaUtil.Models.RuntimeOptions runtime = new AlibabaCloud.TeaUtil.Models.RuntimeOptions(); GetTbProjectGrayHeaders headers = new GetTbProjectGrayHeaders(); return(await GetTbProjectGrayWithOptionsAsync(request, headers, runtime)); }
public GetTbProjectGrayResponse GetTbProjectGray(GetTbProjectGrayRequest request) { AlibabaCloud.TeaUtil.Models.RuntimeOptions runtime = new AlibabaCloud.TeaUtil.Models.RuntimeOptions(); GetTbProjectGrayHeaders headers = new GetTbProjectGrayHeaders(); return(GetTbProjectGrayWithOptions(request, headers, runtime)); }
public GetTbProjectGrayResponse GetTbProjectGrayWithOptions(GetTbProjectGrayRequest request, GetTbProjectGrayHeaders headers, AlibabaCloud.TeaUtil.Models.RuntimeOptions runtime) { AlibabaCloud.TeaUtil.Common.ValidateModel(request); Dictionary <string, object> body = new Dictionary <string, object>() { }; if (!AlibabaCloud.TeaUtil.Common.IsUnset(request.Label)) { body["label"] = request.Label; } Dictionary <string, string> realHeaders = new Dictionary <string, string>() { }; if (!AlibabaCloud.TeaUtil.Common.IsUnset(headers.CommonHeaders)) { realHeaders = headers.CommonHeaders; } if (!AlibabaCloud.TeaUtil.Common.IsUnset(headers.DingAccessTokenType)) { realHeaders["dingAccessTokenType"] = headers.DingAccessTokenType; } if (!AlibabaCloud.TeaUtil.Common.IsUnset(headers.DingSuiteKey)) { realHeaders["dingSuiteKey"] = headers.DingSuiteKey; } if (!AlibabaCloud.TeaUtil.Common.IsUnset(headers.DingIsvOrgId)) { realHeaders["dingIsvOrgId"] = headers.DingIsvOrgId; } if (!AlibabaCloud.TeaUtil.Common.IsUnset(headers.DingOrgId)) { realHeaders["dingOrgId"] = headers.DingOrgId; } if (!AlibabaCloud.TeaUtil.Common.IsUnset(headers.DingCorpId)) { realHeaders["dingCorpId"] = headers.DingCorpId; } if (!AlibabaCloud.TeaUtil.Common.IsUnset(headers.XAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = headers.XAcsDingtalkAccessToken; } AlibabaCloud.OpenApiClient.Models.OpenApiRequest req = new AlibabaCloud.OpenApiClient.Models.OpenApiRequest { Headers = realHeaders, Body = AlibabaCloud.OpenApiUtil.Client.ParseToMap(body), }; return(TeaModel.ToObject <GetTbProjectGrayResponse>(DoROARequest("GetTbProjectGray", "project_1.0", "HTTP", "POST", "AK", "/v1.0/project/projects/gray", "json", req, runtime))); }