internal virtual DescribeJobsResponse DescribeJobs(DescribeJobsRequest request) { var marshaller = new DescribeJobsRequestMarshaller(); var unmarshaller = DescribeJobsResponseUnmarshaller.Instance; return(Invoke <DescribeJobsRequest, DescribeJobsResponse>(request, marshaller, unmarshaller)); }
/// <summary> /// Initiates the asynchronous execution of the DescribeJobs operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeJobs 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/batch-2016-08-10/DescribeJobs">REST API Reference for DescribeJobs Operation</seealso> public virtual Task <DescribeJobsResponse> DescribeJobsAsync(DescribeJobsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DescribeJobsRequestMarshaller(); var unmarshaller = DescribeJobsResponseUnmarshaller.Instance; return(InvokeAsync <DescribeJobsRequest, DescribeJobsResponse>(request, marshaller, unmarshaller, cancellationToken)); }
/// <summary> /// Initiates the asynchronous execution of the DescribeJobs operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeJobs 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/batch-2016-08-10/DescribeJobs">REST API Reference for DescribeJobs Operation</seealso> public virtual Task <DescribeJobsResponse> DescribeJobsAsync(DescribeJobsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeJobsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeJobsResponseUnmarshaller.Instance; return(InvokeAsync <DescribeJobsResponse>(request, options, cancellationToken)); }
internal virtual DescribeJobsResponse DescribeJobs(DescribeJobsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeJobsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeJobsResponseUnmarshaller.Instance; return(Invoke <DescribeJobsResponse>(request, options)); }
/// <summary> /// 查询作业 /// </summary> /// <param name="req"><see cref="DescribeJobsRequest"/></param> /// <returns><see cref="DescribeJobsResponse"/></returns> public DescribeJobsResponse DescribeJobsSync(DescribeJobsRequest req) { JsonResponseModel <DescribeJobsResponse> rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeJobs"); rsp = JsonConvert.DeserializeObject <JsonResponseModel <DescribeJobsResponse> >(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return(rsp.Response); }