public async Task <DescribeMultiContainerGroupMetricResponse> DescribeMultiContainerGroupMetricWithOptionsAsync(DescribeMultiContainerGroupMetricRequest request, AlibabaCloud.TeaUtil.Models.RuntimeOptions runtime) { AlibabaCloud.TeaUtil.Common.ValidateModel(request); return(TeaModel.ToObject <DescribeMultiContainerGroupMetricResponse>(await DoRequestAsync("DescribeMultiContainerGroupMetric", "HTTPS", "POST", "2018-08-08", "AK", null, request.ToMap(), runtime))); }
public async Task <DescribeUpgradeVersionResponse> DescribeUpgradeVersionWithOptionsAsync(DescribeUpgradeVersionRequest request, AlibabaCloud.TeaUtil.Models.RuntimeOptions runtime) { AlibabaCloud.TeaUtil.Common.ValidateModel(request); return(TeaModel.ToObject <DescribeUpgradeVersionResponse>(await DoRequestAsync("DescribeUpgradeVersion", "HTTPS", "POST", "2020-01-11", "AK", null, request.ToMap(), runtime))); }
public async Task <GetVmAppMeshInfoResponse> GetVmAppMeshInfoWithOptionsAsync(GetVmAppMeshInfoRequest request, AlibabaCloud.TeaUtil.Models.RuntimeOptions runtime) { AlibabaCloud.TeaUtil.Common.ValidateModel(request); return(TeaModel.ToObject <GetVmAppMeshInfoResponse>(await DoRequestAsync("GetVmAppMeshInfo", "HTTPS", "GET", "2020-01-11", "AK", request.ToMap(), null, runtime))); }
public async Task <AddClusterIntoServiceMeshResponse> AddClusterIntoServiceMeshWithOptionsAsync(AddClusterIntoServiceMeshRequest request, AlibabaCloud.TeaUtil.Models.RuntimeOptions runtime) { AlibabaCloud.TeaUtil.Common.ValidateModel(request); return(TeaModel.ToObject <AddClusterIntoServiceMeshResponse>(await DoRequestAsync("AddClusterIntoServiceMesh", "HTTPS", "POST", "2020-01-11", "AK", null, request.ToMap(), runtime))); }
public DescribeClustersInServiceMeshResponse DescribeClustersInServiceMeshWithOptions(DescribeClustersInServiceMeshRequest request, AlibabaCloud.TeaUtil.Models.RuntimeOptions runtime) { AlibabaCloud.TeaUtil.Common.ValidateModel(request); return(TeaModel.ToObject <DescribeClustersInServiceMeshResponse>(DoRequest("DescribeClustersInServiceMesh", "HTTPS", "POST", "2020-01-11", "AK", null, request.ToMap(), runtime))); }
public GetDiagnosisResponse GetDiagnosisWithOptions(GetDiagnosisRequest request, AlibabaCloud.TeaUtil.Models.RuntimeOptions runtime) { AlibabaCloud.TeaUtil.Common.ValidateModel(request); return(TeaModel.ToObject <GetDiagnosisResponse>(DoRequest("GetDiagnosis", "HTTPS", "POST", "2020-01-11", "AK", null, request.ToMap(), runtime))); }
public AddVmAppToMeshResponse AddVmAppToMeshWithOptions(AddVmAppToMeshRequest request, AlibabaCloud.TeaUtil.Models.RuntimeOptions runtime) { AlibabaCloud.TeaUtil.Common.ValidateModel(request); return(TeaModel.ToObject <AddVmAppToMeshResponse>(DoRequest("AddVmAppToMesh", "HTTPS", "POST", "2020-01-11", "AK", null, request.ToMap(), runtime))); }
public CreateImageCacheResponse CreateImageCacheWithOptions(CreateImageCacheRequest request, AlibabaCloud.TeaUtil.Models.RuntimeOptions runtime) { AlibabaCloud.TeaUtil.Common.ValidateModel(request); return(TeaModel.ToObject <CreateImageCacheResponse>(DoRequest("CreateImageCache", "HTTPS", "POST", "2018-08-08", "AK", null, request.ToMap(), runtime))); }
/** * Description: Demo接口,返回当前服务器当前状态 * Summary: 检查服务状态 */ public StatusDemoGatewayCheckResponse StatusDemoGatewayCheckEx(StatusDemoGatewayCheckRequest request, AlibabaCloud.TeaUtil.Models.RuntimeOptions runtime) { AlibabaCloud.TeaUtil.Common.ValidateModel(request); return(TeaModel.ToObject <StatusDemoGatewayCheckResponse>(DoRequest("1.0", "demo.gateway.check.status", "HTTPS", "POST", "/gateway.do", request.ToMap(), runtime))); }
public DeleteContainerGroupResponse DeleteContainerGroupWithOptions(DeleteContainerGroupRequest request, AlibabaCloud.TeaUtil.Models.RuntimeOptions runtime) { AlibabaCloud.TeaUtil.Common.ValidateModel(request); return(TeaModel.ToObject <DeleteContainerGroupResponse>(DoRequest("DeleteContainerGroup", "HTTPS", "POST", "2018-08-08", "AK", null, request.ToMap(), runtime))); }
public async Task <DeleteImageCacheResponse> DeleteImageCacheWithOptionsAsync(DeleteImageCacheRequest request, AlibabaCloud.TeaUtil.Models.RuntimeOptions runtime) { AlibabaCloud.TeaUtil.Common.ValidateModel(request); return(TeaModel.ToObject <DeleteImageCacheResponse>(await DoRequestAsync("DeleteImageCache", "HTTPS", "POST", "2018-08-08", "AK", null, request.ToMap(), runtime))); }
public async Task <CreateContainerGroupResponse> CreateContainerGroupWithOptionsAsync(CreateContainerGroupRequest request, AlibabaCloud.TeaUtil.Models.RuntimeOptions runtime) { AlibabaCloud.TeaUtil.Common.ValidateModel(request); return(TeaModel.ToObject <CreateContainerGroupResponse>(await DoRequestAsync("CreateContainerGroup", "HTTPS", "POST", "2018-08-08", "AK", null, request.ToMap(), runtime))); }
public ExecContainerCommandResponse ExecContainerCommandWithOptions(ExecContainerCommandRequest request, AlibabaCloud.TeaUtil.Models.RuntimeOptions runtime) { AlibabaCloud.TeaUtil.Common.ValidateModel(request); return(TeaModel.ToObject <ExecContainerCommandResponse>(DoRequest("ExecContainerCommand", "HTTPS", "POST", "2018-08-08", "AK", null, request.ToMap(), runtime))); }
public UpdateContainerGroupByTemplateResponse UpdateContainerGroupByTemplateWithOptions(UpdateContainerGroupByTemplateRequest request, AlibabaCloud.TeaUtil.Models.RuntimeOptions runtime) { AlibabaCloud.TeaUtil.Common.ValidateModel(request); return(TeaModel.ToObject <UpdateContainerGroupByTemplateResponse>(DoRequest("UpdateContainerGroupByTemplate", "HTTPS", "POST", "2018-08-08", "AK", null, request.ToMap(), runtime))); }
public async Task <ScanImageResponse> ScanImageExAsync(ScanImageRequest request, AlibabaCloud.TeaUtil.Models.RuntimeOptions runtime) { AlibabaCloud.TeaUtil.Common.ValidateModel(request); return(TeaModel.ToObject <ScanImageResponse>(await DoRequestAsync("ScanImage", "HTTPS", "POST", "2019-12-30", "AK", null, request.ToMap(), runtime))); }
/** * Description: Demo接口,返回当输入的值 * Summary: 返回输入值 */ public async Task <EchoDemoGatewayCheckResponse> EchoDemoGatewayCheckExAsync(EchoDemoGatewayCheckRequest request, AlibabaCloud.TeaUtil.Models.RuntimeOptions runtime) { AlibabaCloud.TeaUtil.Common.ValidateModel(request); return(TeaModel.ToObject <EchoDemoGatewayCheckResponse>(await DoRequestAsync("1.0", "demo.gateway.check.echo", "HTTPS", "POST", "/gateway.do", request.ToMap(), runtime))); }
public AlipayOpenApiGenericResponse Execute(string method, Dictionary <string, string> textParams, Dictionary <string, object> bizParams) { Dictionary <string, object> runtime_ = new Dictionary <string, object> { { "httpProxy", this._kernel.GetConfig("httpProxy") }, { "connectTimeout", 15000 }, { "readTimeout", 15000 }, { "retry", new Dictionary <string, int?> { { "maxAttempts", 0 }, } }, }; TeaRequest _lastRequest = null; Exception _lastException = null; long _now = System.DateTime.Now.Millisecond; int _retryTimes = 0; while (TeaCore.AllowRetry((IDictionary)runtime_["retry"], _retryTimes, _now)) { if (_retryTimes > 0) { int backoffTime = TeaCore.GetBackoffTime((IDictionary)runtime_["backoff"], _retryTimes); if (backoffTime > 0) { TeaCore.Sleep(backoffTime); } } _retryTimes = _retryTimes + 1; try { TeaRequest request_ = new TeaRequest(); Dictionary <string, string> systemParams = new Dictionary <string, string> { { "method", method }, { "app_id", this._kernel.GetConfig("appId") }, { "timestamp", this._kernel.GetTimestamp() }, { "format", "json" }, { "version", "1.0" }, { "alipay_sdk", this._kernel.GetSdkVersion() }, { "charset", "UTF-8" }, { "sign_type", this._kernel.GetConfig("signType") }, { "app_cert_sn", this._kernel.GetMerchantCertSN() }, { "alipay_root_cert_sn", this._kernel.GetAlipayRootCertSN() }, }; request_.Protocol = this._kernel.GetConfig("protocol"); request_.Method = "POST"; request_.Pathname = "/gateway.do"; request_.Headers = new Dictionary <string, string> { { "host", this._kernel.GetConfig("gatewayHost") }, { "content-type", "application/x-www-form-urlencoded;charset=utf-8" }, }; request_.Query = this._kernel.SortMap(TeaConverter.merge <string> ( new Dictionary <string, string>() { { "sign", this._kernel.Sign(systemParams, bizParams, textParams, this._kernel.GetConfig("merchantPrivateKey")) }, }, systemParams, textParams )); request_.Body = TeaCore.BytesReadable(this._kernel.ToUrlEncodedRequestBody(bizParams)); _lastRequest = request_; TeaResponse response_ = TeaCore.DoAction(request_, runtime_); Dictionary <string, object> respMap = this._kernel.ReadAsJson(response_, method); if (this._kernel.IsCertMode()) { if (this._kernel.Verify(respMap, this._kernel.ExtractAlipayPublicKey(this._kernel.GetAlipayCertSN(respMap)))) { return(TeaModel.ToObject <AlipayOpenApiGenericResponse>(this._kernel.ToRespModel(respMap))); } } else { if (this._kernel.Verify(respMap, this._kernel.GetConfig("alipayPublicKey"))) { return(TeaModel.ToObject <AlipayOpenApiGenericResponse>(this._kernel.ToRespModel(respMap))); } } throw new TeaException(new Dictionary <string, string> { { "message", "验签失败,请检查支付宝公钥设置是否正确。" }, }); } catch (Exception e) { if (TeaCore.IsRetryable(e)) { _lastException = e; continue; } throw e; } } throw new TeaUnretryableException(_lastRequest, _lastException); }
public async Task <PushEventResponse> PushEventWithOptionsAsync(PushEventRequest request, PushEventHeaders 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.CorpId)) { body["corpId"] = request.CorpId; } if (!AlibabaCloud.TeaUtil.Common.IsUnset(request.DeviceId)) { body["deviceId"] = request.DeviceId; } if (!AlibabaCloud.TeaUtil.Common.IsUnset(request.EventId)) { body["eventId"] = request.EventId; } if (!AlibabaCloud.TeaUtil.Common.IsUnset(request.EventName)) { body["eventName"] = request.EventName; } if (!AlibabaCloud.TeaUtil.Common.IsUnset(request.EventType)) { body["eventType"] = request.EventType; } if (!AlibabaCloud.TeaUtil.Common.IsUnset(request.ExtraData)) { body["extraData"] = request.ExtraData; } if (!AlibabaCloud.TeaUtil.Common.IsUnset(request.Location)) { body["location"] = request.Location; } if (!AlibabaCloud.TeaUtil.Common.IsUnset(request.Msg)) { body["msg"] = request.Msg; } if (!AlibabaCloud.TeaUtil.Common.IsUnset(request.OccurrenceTime)) { body["occurrenceTime"] = request.OccurrenceTime; } if (!AlibabaCloud.TeaUtil.Common.IsUnset(request.PicUrls)) { body["picUrls"] = request.PicUrls; } 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, Body = AlibabaCloud.OpenApiUtil.Client.ParseToMap(body), }; return(TeaModel.ToObject <PushEventResponse>(await DoROARequestAsync("PushEvent", "diot_1.0", "HTTP", "POST", "AK", "/v1.0/diot/events/push", "json", req, runtime))); }
public async Task <GetRegisteredServiceNamespacesResponse> GetRegisteredServiceNamespacesWithOptionsAsync(GetRegisteredServiceNamespacesRequest request, AlibabaCloud.TeaUtil.Models.RuntimeOptions runtime) { AlibabaCloud.TeaUtil.Common.ValidateModel(request); return(TeaModel.ToObject <GetRegisteredServiceNamespacesResponse>(await DoRequestAsync("GetRegisteredServiceNamespaces", "HTTPS", "POST", "2020-01-11", "AK", null, request.ToMap(), runtime))); }
public async Task <RegisterDeviceResponse> RegisterDeviceWithOptionsAsync(RegisterDeviceRequest request, RegisterDeviceHeaders 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.CorpId)) { body["corpId"] = request.CorpId; } if (!AlibabaCloud.TeaUtil.Common.IsUnset(request.DeviceName)) { body["deviceName"] = request.DeviceName; } if (!AlibabaCloud.TeaUtil.Common.IsUnset(request.DeviceStatus)) { body["deviceStatus"] = request.DeviceStatus; } if (!AlibabaCloud.TeaUtil.Common.IsUnset(request.DeviceType)) { body["deviceType"] = request.DeviceType; } if (!AlibabaCloud.TeaUtil.Common.IsUnset(request.DeviceTypeName)) { body["deviceTypeName"] = request.DeviceTypeName; } if (!AlibabaCloud.TeaUtil.Common.IsUnset(request.Id)) { body["id"] = request.Id; } if (!AlibabaCloud.TeaUtil.Common.IsUnset(request.LiveUrls.ToMap())) { body["liveUrls"] = request.LiveUrls; } if (!AlibabaCloud.TeaUtil.Common.IsUnset(request.Location)) { body["location"] = request.Location; } if (!AlibabaCloud.TeaUtil.Common.IsUnset(request.NickName)) { body["nickName"] = request.NickName; } if (!AlibabaCloud.TeaUtil.Common.IsUnset(request.ParentId)) { body["parentId"] = request.ParentId; } if (!AlibabaCloud.TeaUtil.Common.IsUnset(request.ProductType)) { body["productType"] = request.ProductType; } 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, Body = AlibabaCloud.OpenApiUtil.Client.ParseToMap(body), }; return(TeaModel.ToObject <RegisterDeviceResponse>(await DoROARequestAsync("RegisterDevice", "diot_1.0", "HTTP", "POST", "AK", "/v1.0/diot/devices/register", "json", req, runtime))); }
public async Task <RunDiagnosisResponse> RunDiagnosisWithOptionsAsync(RunDiagnosisRequest request, AlibabaCloud.TeaUtil.Models.RuntimeOptions runtime) { AlibabaCloud.TeaUtil.Common.ValidateModel(request); return(TeaModel.ToObject <RunDiagnosisResponse>(await DoRequestAsync("RunDiagnosis", "HTTPS", "POST", "2020-01-11", "AK", null, request.ToMap(), runtime))); }
public AlipayTradeCreateResponse Create(string subject, string outTradeNo, string totalAmount, string buyerId, HuabeiConfig extendParams) { extendParams.Validate(); Dictionary <string, object> runtime_ = new Dictionary <string, object>() { { "connectTimeout", 15000 }, { "readTimeout", 15000 }, { "retry", new Dictionary <string, int?>() { { "maxAttempts", 0 }, } }, }; TeaRequest _lastRequest = null; Exception _lastException = null; long _now = System.DateTime.Now.Millisecond; int _retryTimes = 0; while (TeaCore.AllowRetry((IDictionary)runtime_["retry"], _retryTimes, _now)) { if (_retryTimes > 0) { int backoffTime = TeaCore.GetBackoffTime((IDictionary)runtime_["backoff"], _retryTimes); if (backoffTime > 0) { TeaCore.Sleep(backoffTime); } } _retryTimes = _retryTimes + 1; try { TeaRequest request_ = new TeaRequest(); Dictionary <string, string> systemParams = new Dictionary <string, string>() { { "method", "alipay.trade.create" }, { "app_id", _getConfig("appId") }, { "timestamp", _getTimestamp() }, { "format", "json" }, { "version", "1.0" }, { "alipay_sdk", _getSdkVersion() }, { "charset", "UTF-8" }, { "sign_type", _getConfig("signType") }, { "app_cert_sn", _getMerchantCertSN() }, { "alipay_root_cert_sn", _getAlipayRootCertSN() }, }; Dictionary <string, object> bizParams = new Dictionary <string, object>() { { "subject", subject }, { "out_trade_no", outTradeNo }, { "total_amount", totalAmount }, { "buyer_id", buyerId }, { "extend_params", extendParams }, }; Dictionary <string, string> textParams = new Dictionary <string, string>() { }; request_.Protocol = _getConfig("protocol"); request_.Method = "POST"; request_.Pathname = "/gateway.do"; request_.Headers = new Dictionary <string, string>() { { "host", _getConfig("gatewayHost") }, { "content-type", "application/x-www-form-urlencoded;charset=utf-8" }, }; request_.Query = TeaConverter.merge <string>( new Dictionary <string, string>() { { "sign", _sign(systemParams, bizParams, textParams, _getConfig("merchantPrivateKey")) }, }, systemParams, textParams ); request_.Body = TeaCore.BytesReadable(_toUrlEncodedRequestBody(bizParams)); _lastRequest = request_; TeaResponse response_ = TeaCore.DoAction(request_, runtime_); Dictionary <string, object> respMap = _readAsJson(response_, "alipay.trade.create"); if (_isCertMode()) { if (_verify(respMap, _extractAlipayPublicKey(_getAlipayCertSN(respMap)))) { return(TeaModel.ToObject <AlipayTradeCreateResponse>(_toRespModel(respMap))); } } else { if (_verify(respMap, _getConfig("alipayPublicKey"))) { return(TeaModel.ToObject <AlipayTradeCreateResponse>(_toRespModel(respMap))); } } throw new TeaException(new Dictionary <string, string>() { { "message", "验签失败,请检查支付宝公钥设置是否正确。" }, }); } catch (Exception e) { if (TeaCore.IsRetryable(e)) { _lastException = e; continue; } throw e; } } throw new TeaUnretryableException(_lastRequest, _lastException); }
public async Task <DescribeGuestClusterAccessLogDashboardsResponse> DescribeGuestClusterAccessLogDashboardsWithOptionsAsync(DescribeGuestClusterAccessLogDashboardsRequest request, AlibabaCloud.TeaUtil.Models.RuntimeOptions runtime) { AlibabaCloud.TeaUtil.Common.ValidateModel(request); return(TeaModel.ToObject <DescribeGuestClusterAccessLogDashboardsResponse>(await DoRequestAsync("DescribeGuestClusterAccessLogDashboards", "HTTPS", "POST", "2020-01-11", "AK", null, request.ToMap(), runtime))); }
public AlipayOfflineMaterialImageUploadResponse Upload(string imageName, string imageFilePath) { Dictionary <string, object> runtime_ = new Dictionary <string, object>() { { "connectTimeout", 100000 }, { "readTimeout", 100000 }, { "retry", new Dictionary <string, int?>() { { "maxAttempts", 0 }, } }, }; TeaRequest _lastRequest = null; Exception _lastException = null; long _now = System.DateTime.Now.Millisecond; int _retryTimes = 0; while (TeaCore.AllowRetry((IDictionary)runtime_["retry"], _retryTimes, _now)) { if (_retryTimes > 0) { int backoffTime = TeaCore.GetBackoffTime((IDictionary)runtime_["backoff"], _retryTimes); if (backoffTime > 0) { TeaCore.Sleep(backoffTime); } } _retryTimes = _retryTimes + 1; try { TeaRequest request_ = new TeaRequest(); Dictionary <string, string> systemParams = new Dictionary <string, string>() { { "method", "alipay.offline.material.image.upload" }, { "app_id", _getConfig("appId") }, { "timestamp", _getTimestamp() }, { "format", "json" }, { "version", "1.0" }, { "alipay_sdk", _getSdkVersion() }, { "charset", "UTF-8" }, { "sign_type", _getConfig("signType") }, { "app_cert_sn", _getMerchantCertSN() }, { "alipay_root_cert_sn", _getAlipayRootCertSN() }, }; Dictionary <string, object> bizParams = new Dictionary <string, object>() { }; Dictionary <string, string> textParams = new Dictionary <string, string>() { { "image_type", "jpg" }, { "image_name", imageName }, }; Dictionary <string, string> fileParams = new Dictionary <string, string>() { { "image_content", imageFilePath }, }; string boundary = _getRandomBoundary(); request_.Protocol = _getConfig("protocol"); request_.Method = "POST"; request_.Pathname = "/gateway.do"; request_.Headers = new Dictionary <string, string>() { { "host", _getConfig("gatewayHost") }, { "content-type", _concatStr("multipart/form-data;charset=utf-8;boundary=", boundary) }, }; request_.Query = TeaConverter.merge <string>( new Dictionary <string, string>() { { "sign", _sign(systemParams, bizParams, textParams, _getConfig("merchantPrivateKey")) }, }, systemParams ); request_.Body = _toMultipartRequestBody(textParams, fileParams, boundary); _lastRequest = request_; TeaResponse response_ = TeaCore.DoAction(request_, runtime_); Dictionary <string, object> respMap = _readAsJson(response_, "alipay.offline.material.image.upload"); if (_isCertMode()) { if (_verify(respMap, _extractAlipayPublicKey(_getAlipayCertSN(respMap)))) { return(TeaModel.ToObject <AlipayOfflineMaterialImageUploadResponse>(_toRespModel(respMap))); } } else { if (_verify(respMap, _getConfig("alipayPublicKey"))) { return(TeaModel.ToObject <AlipayOfflineMaterialImageUploadResponse>(_toRespModel(respMap))); } } throw new TeaException(new Dictionary <string, string>() { { "message", "验签失败,请检查支付宝公钥设置是否正确。" }, }); } catch (Exception e) { if (TeaCore.IsRetryable(e)) { _lastException = e; continue; } throw e; } } throw new TeaUnretryableException(_lastRequest, _lastException); }
public async Task <DescribeIngressGatewaysResponse> DescribeIngressGatewaysWithOptionsAsync(DescribeIngressGatewaysRequest request, AlibabaCloud.TeaUtil.Models.RuntimeOptions runtime) { AlibabaCloud.TeaUtil.Common.ValidateModel(request); return(TeaModel.ToObject <DescribeIngressGatewaysResponse>(await DoRequestAsync("DescribeIngressGateways", "HTTPS", "GET", "2020-01-11", "AK", request.ToMap(), null, runtime))); }
public async Task <CreateTodoTaskResponse> CreateTodoTaskWithOptionsAsync(string unionId, CreateTodoTaskRequest request, CreateTodoTaskHeaders 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.OperatorId)) { query["operatorId"] = request.OperatorId; } Dictionary <string, object> body = new Dictionary <string, object>() { }; if (!AlibabaCloud.TeaUtil.Common.IsUnset(request.SourceId)) { body["sourceId"] = request.SourceId; } if (!AlibabaCloud.TeaUtil.Common.IsUnset(request.Subject)) { body["subject"] = request.Subject; } if (!AlibabaCloud.TeaUtil.Common.IsUnset(request.CreatorId)) { body["creatorId"] = request.CreatorId; } if (!AlibabaCloud.TeaUtil.Common.IsUnset(request.Description)) { body["description"] = request.Description; } if (!AlibabaCloud.TeaUtil.Common.IsUnset(request.DueTime)) { body["dueTime"] = request.DueTime; } if (!AlibabaCloud.TeaUtil.Common.IsUnset(request.ExecutorIds)) { body["executorIds"] = request.ExecutorIds; } if (!AlibabaCloud.TeaUtil.Common.IsUnset(request.ParticipantIds)) { body["participantIds"] = request.ParticipantIds; } if (!AlibabaCloud.TeaUtil.Common.IsUnset(request.DetailUrl.ToMap())) { body["detailUrl"] = request.DetailUrl; } if (!AlibabaCloud.TeaUtil.Common.IsUnset(request.CardTypeId)) { body["cardTypeId"] = request.CardTypeId; } if (!AlibabaCloud.TeaUtil.Common.IsUnset(request.ContentFieldList)) { body["contentFieldList"] = request.ContentFieldList; } 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"] = headers.XAcsDingtalkAccessToken; } AlibabaCloud.OpenApiClient.Models.OpenApiRequest req = new AlibabaCloud.OpenApiClient.Models.OpenApiRequest { Headers = realHeaders, Query = AlibabaCloud.OpenApiUtil.Client.Query(query), Body = AlibabaCloud.OpenApiUtil.Client.ParseToMap(body), }; return(TeaModel.ToObject <CreateTodoTaskResponse>(await DoROARequestAsync("CreateTodoTask", "todo_1.0", "HTTP", "POST", "AK", "/v1.0/todo/users/" + unionId + "/tasks", "json", req, runtime))); }
public async Task <UpdateMeshFeatureResponse> UpdateMeshFeatureWithOptionsAsync(UpdateMeshFeatureRequest request, AlibabaCloud.TeaUtil.Models.RuntimeOptions runtime) { AlibabaCloud.TeaUtil.Common.ValidateModel(request); return(TeaModel.ToObject <UpdateMeshFeatureResponse>(await DoRequestAsync("UpdateMeshFeature", "HTTPS", "POST", "2020-01-11", "AK", null, request.ToMap(), runtime))); }
public ScanTextResponse ScanTextEx(ScanTextRequest request, AlibabaCloud.TeaUtil.Models.RuntimeOptions runtime) { AlibabaCloud.TeaUtil.Common.ValidateModel(request); return(TeaModel.ToObject <ScanTextResponse>(DoRequest("ScanText", "HTTPS", "POST", "2019-12-30", "AK", null, request.ToMap(), runtime))); }
public UpgradeMeshVersionResponse UpgradeMeshVersionWithOptions(UpgradeMeshVersionRequest request, AlibabaCloud.TeaUtil.Models.RuntimeOptions runtime) { AlibabaCloud.TeaUtil.Common.ValidateModel(request); return(TeaModel.ToObject <UpgradeMeshVersionResponse>(DoRequest("UpgradeMeshVersion", "HTTPS", "POST", "2020-01-11", "AK", null, request.ToMap(), runtime))); }
public async Task <CreateEventResponse> CreateEventWithOptionsAsync(string userId, string calendarId, CreateEventRequest request, CreateEventHeaders 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.Summary)) { body["summary"] = request.Summary; } if (!AlibabaCloud.TeaUtil.Common.IsUnset(request.Description)) { body["description"] = request.Description; } if (!AlibabaCloud.TeaUtil.Common.IsUnset(request.Start.ToMap())) { body["start"] = request.Start; } if (!AlibabaCloud.TeaUtil.Common.IsUnset(request.End.ToMap())) { body["end"] = request.End; } if (!AlibabaCloud.TeaUtil.Common.IsUnset(request.IsAllDay)) { body["isAllDay"] = request.IsAllDay; } if (!AlibabaCloud.TeaUtil.Common.IsUnset(request.Recurrence.ToMap())) { body["recurrence"] = request.Recurrence; } if (!AlibabaCloud.TeaUtil.Common.IsUnset(request.Attendees)) { body["attendees"] = request.Attendees; } if (!AlibabaCloud.TeaUtil.Common.IsUnset(request.Location.ToMap())) { body["location"] = request.Location; } if (!AlibabaCloud.TeaUtil.Common.IsUnset(request.Extra)) { body["extra"] = request.Extra; } 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"] = headers.XAcsDingtalkAccessToken; } AlibabaCloud.OpenApiClient.Models.OpenApiRequest req = new AlibabaCloud.OpenApiClient.Models.OpenApiRequest { Headers = realHeaders, Body = AlibabaCloud.OpenApiUtil.Client.ParseToMap(body), }; return(TeaModel.ToObject <CreateEventResponse>(await DoROARequestAsync("CreateEvent", "calendar_1.0", "HTTP", "POST", "AK", "/v1.0/calendar/users/" + userId + "/calendars/" + calendarId + "/events", "json", req, runtime))); }