Ejemplo n.º 1
0
        internal virtual DescribeJobsResponse DescribeJobs(DescribeJobsRequest request)
        {
            var marshaller   = new DescribeJobsRequestMarshaller();
            var unmarshaller = DescribeJobsResponseUnmarshaller.Instance;

            return(Invoke <DescribeJobsRequest, DescribeJobsResponse>(request, marshaller, unmarshaller));
        }
Ejemplo n.º 2
0
        /// <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));
        }
Ejemplo n.º 3
0
        /// <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));
        }
Ejemplo n.º 4
0
        internal virtual DescribeJobsResponse DescribeJobs(DescribeJobsRequest request)
        {
            var options = new InvokeOptions();

            options.RequestMarshaller    = DescribeJobsRequestMarshaller.Instance;
            options.ResponseUnmarshaller = DescribeJobsResponseUnmarshaller.Instance;

            return(Invoke <DescribeJobsResponse>(request, options));
        }
Ejemplo n.º 5
0
        /// <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);
        }