internal virtual UpdateListenerResponse UpdateListener(UpdateListenerRequest request) { var marshaller = UpdateListenerRequestMarshaller.Instance; var unmarshaller = UpdateListenerResponseUnmarshaller.Instance; return(Invoke <UpdateListenerRequest, UpdateListenerResponse>(request, marshaller, unmarshaller)); }
protected override void ProcessRecord() { base.ProcessRecord(); UpdateListenerRequest request; try { request = new UpdateListenerRequest { UpdateListenerDetails = UpdateListenerDetails, LoadBalancerId = LoadBalancerId, ListenerName = ListenerName, OpcRequestId = OpcRequestId, OpcRetryToken = OpcRetryToken }; response = client.UpdateListener(request).GetAwaiter().GetResult(); WriteOutput(response, CreateWorkRequestObject(response.OpcWorkRequestId)); FinishProcessing(response); } catch (Exception ex) { TerminatingErrorDuringExecution(ex); } }
/// <summary> /// Initiates the asynchronous execution of the UpdateListener operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateListener operation.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// <returns>The task object representing the asynchronous operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/globalaccelerator-2018-08-08/UpdateListener">REST API Reference for UpdateListener Operation</seealso> public virtual Task <UpdateListenerResponse> UpdateListenerAsync(UpdateListenerRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = UpdateListenerRequestMarshaller.Instance; var unmarshaller = UpdateListenerResponseUnmarshaller.Instance; return(InvokeAsync <UpdateListenerRequest, UpdateListenerResponse>(request, marshaller, unmarshaller, cancellationToken)); }
/// <summary> /// Initiates the asynchronous execution of the UpdateListener operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateListener operation.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// <returns>The task object representing the asynchronous operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/globalaccelerator-2018-08-08/UpdateListener">REST API Reference for UpdateListener Operation</seealso> public virtual Task <UpdateListenerResponse> UpdateListenerAsync(UpdateListenerRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateListenerRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateListenerResponseUnmarshaller.Instance; return(InvokeAsync <UpdateListenerResponse>(request, options, cancellationToken)); }
internal virtual UpdateListenerResponse UpdateListener(UpdateListenerRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateListenerRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateListenerResponseUnmarshaller.Instance; return(Invoke <UpdateListenerResponse>(request, options)); }
/// <summary> /// 更新监听器 /// </summary> public UpdateListenerResponse UpdateListener(UpdateListenerRequest updateListenerRequest) { Dictionary <string, string> urlParam = new Dictionary <string, string>(); urlParam.Add("listener_id", updateListenerRequest.ListenerId.ToString()); string urlPath = HttpUtils.AddUrlPath("/v3/{project_id}/elb/listeners/{listener_id}", urlParam); SdkRequest request = HttpUtils.InitSdkRequest(urlPath, "application/json;charset=UTF-8", updateListenerRequest); HttpResponseMessage response = DoHttpRequestSync("PUT", request); return(JsonUtils.DeSerialize <UpdateListenerResponse>(response)); }
/// <summary> /// 修改一个监听器的信息 /// </summary> /// <param name="request">请求参数信息</param> /// <returns>请求结果信息</returns> public async Task <UpdateListenerResponse> UpdateListener(UpdateListenerRequest request) { return(await new UpdateListenerExecutor().Client(this).Execute <UpdateListenerResponse, UpdateListenerResult, UpdateListenerRequest>(request).ConfigureAwait(false)); }
/// <summary> /// 修改一个监听器的信息 /// </summary> /// <param name="request">请求参数信息</param> /// <returns>请求结果信息</returns> public UpdateListenerResponse UpdateListener(UpdateListenerRequest request) { return(new UpdateListenerExecutor().Client(this).Execute <UpdateListenerResponse, UpdateListenerResult, UpdateListenerRequest>(request)); }