/// <summary>
        /// This operation returns the jobs associated with the requester. AWS Import/Export lists
        /// the jobs in reverse chronological order based on the date of creation. For example
        /// if Job Test1 was created 2009Dec30 and Test2 was created 2010Feb05, the ListJobs operation
        /// would return Test2 followed by Test1.
        /// </summary>
        /// <param name="request">Container for the necessary parameters to execute the ListJobs service method.</param>
        /// <param name="cancellationToken">
        ///     A cancellation token that can be used by other objects or threads to receive notice of cancellation.
        /// </param>
        ///
        /// <returns>The response from the ListJobs service method, as returned by ImportExport.</returns>
        /// <exception cref="Amazon.ImportExport.Model.InvalidAccessKeyIdException">
        /// The AWS Access Key ID specified in the request did not match the manifest's accessKeyId
        /// value. The manifest and the request authentication must use the same AWS Access Key
        /// ID.
        /// </exception>
        /// <exception cref="Amazon.ImportExport.Model.InvalidParameterException">
        /// One or more parameters had an invalid value.
        /// </exception>
        /// <exception cref="Amazon.ImportExport.Model.InvalidVersionException">
        /// The client tool version is invalid.
        /// </exception>
        /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/importexport-2010-06-01/ListJobs">REST API Reference for ListJobs Operation</seealso>
        public virtual Task <ListJobsResponse> ListJobsAsync(ListJobsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var options = new InvokeOptions();

            options.RequestMarshaller    = ListJobsRequestMarshaller.Instance;
            options.ResponseUnmarshaller = ListJobsResponseUnmarshaller.Instance;

            return(InvokeAsync <ListJobsResponse>(request, options, cancellationToken));
        }
예제 #2
0
        /// <summary>
        /// Initiates the asynchronous execution of the ListJobs operation.
        /// </summary>
        ///
        /// <param name="request">Container for the necessary parameters to execute the ListJobs operation on AmazonImportExportClient.</param>
        /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
        /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
        ///          procedure using the AsyncState property.</param>
        ///
        /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListJobs
        ///         operation.</returns>
        public virtual IAsyncResult BeginListJobs(ListJobsRequest request, AsyncCallback callback, object state)
        {
            var options = new InvokeOptions();

            options.RequestMarshaller    = ListJobsRequestMarshaller.Instance;
            options.ResponseUnmarshaller = ListJobsResponseUnmarshaller.Instance;

            return(BeginInvoke(request, options, callback, state));
        }
        internal virtual ListJobsResponse ListJobs(ListJobsRequest request)
        {
            var options = new InvokeOptions();

            options.RequestMarshaller    = ListJobsRequestMarshaller.Instance;
            options.ResponseUnmarshaller = ListJobsResponseUnmarshaller.Instance;

            return(Invoke <ListJobsResponse>(request, options));
        }
        /// <summary>
        /// 查询指定课堂下的作业列表信息
        /// </summary>
        public ListJobsResponse ListJobs(ListJobsRequest listJobsRequest)
        {
            Dictionary <string, string> urlParam = new Dictionary <string, string>();
            string              urlPath          = HttpUtils.AddUrlPath("/v3/jobs", urlParam);
            SdkRequest          request          = HttpUtils.InitSdkRequest(urlPath, "application/json", listJobsRequest);
            HttpResponseMessage response         = DoHttpRequestSync("GET", request);

            return(JsonUtils.DeSerialize <ListJobsResponse>(response));
        }
        IAsyncResult invokeListJobs(ListJobsRequest listJobsRequest, AsyncCallback callback, object state, bool synchronized)
        {
            IRequest    irequest     = new ListJobsRequestMarshaller().Marshall(listJobsRequest);
            var         unmarshaller = ListJobsResponseUnmarshaller.GetInstance();
            AsyncResult result       = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller);

            Invoke(result);
            return(result);
        }
예제 #6
0
        /// <summary>
        /// 查询指定课堂下的作业列表信息
        /// </summary>
        public async Task <ListJobsResponse> ListJobsAsync(ListJobsRequest listJobsRequest)
        {
            Dictionary <string, string> urlParam = new Dictionary <string, string>();
            string              urlPath          = HttpUtils.AddUrlPath("/v3/jobs", urlParam);
            SdkRequest          request          = HttpUtils.InitSdkRequest(urlPath, listJobsRequest);
            HttpResponseMessage response         = await DoHttpRequestAsync("GET", request);

            return(JsonUtils.DeSerialize <ListJobsResponse>(response));
        }
예제 #7
0
        public async Task <IActionResult> ListJobs()
        {
            ListJobsRequest request = new ListJobsRequest
            {
                VaultName = S3Settings.VaultName
            };

            ListJobsResponse response = await GlacierClient.ListJobsAsync(request);

            return(new JsonResult(response.JobList));
        }
예제 #8
0
        /// <summary>Snippet for ListJobsAsync</summary>
        public async Task ListJobsRequestObjectAsync()
        {
            // Snippet: ListJobsAsync(ListJobsRequest, CallSettings)
            // Create client
            JobControllerClient jobControllerClient = await JobControllerClient.CreateAsync();

            // Initialize request argument(s)
            ListJobsRequest request = new ListJobsRequest
            {
                ProjectId       = "",
                ClusterName     = "",
                JobStateMatcher = ListJobsRequest.Types.JobStateMatcher.All,
                Region          = "",
                Filter          = "",
            };
            // Make the request
            PagedAsyncEnumerable <ListJobsResponse, Job> response = jobControllerClient.ListJobsAsync(request);

            // Iterate over all response items, lazily performing RPCs as required
            await response.ForEachAsync((Job item) =>
            {
                // Do something with each item
                Console.WriteLine(item);
            });

            // Or iterate over pages (of server-defined size), performing one RPC per page
            await response.AsRawResponses().ForEachAsync((ListJobsResponse page) =>
            {
                // Do something with each page of items
                Console.WriteLine("A page of results:");
                foreach (Job item in page)
                {
                    // Do something with each item
                    Console.WriteLine(item);
                }
            });

            // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
            int        pageSize   = 10;
            Page <Job> singlePage = await response.ReadPageAsync(pageSize);

            // Do something with the page of items
            Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
            foreach (Job item in singlePage)
            {
                // Do something with each item
                Console.WriteLine(item);
            }
            // Store the pageToken, for when the next page is required.
            string nextPageToken = singlePage.NextPageToken;
            // End snippet
        }
예제 #9
0
        private static List <GlacierJobDescription> ListInventory(string vaultName)
        {
            using (IAmazonGlacier client = new AmazonGlacierClient(RegionEndpoint.EUWest1))
            {
                ListJobsRequest request = new ListJobsRequest()
                {
                    VaultName = vaultName
                };

                ListJobsResponse response = client.ListJobs(request);
                return(response.JobList);
            }
        }
예제 #10
0
        protected override void ProcessRecord()
        {
            base.ProcessRecord();
            ListJobsRequest request;

            try
            {
                request = new ListJobsRequest
                {
                    CatalogId              = CatalogId,
                    DisplayName            = DisplayName,
                    DisplayNameContains    = DisplayNameContains,
                    LifecycleState         = LifecycleState,
                    TimeCreated            = TimeCreated,
                    TimeUpdated            = TimeUpdated,
                    CreatedById            = CreatedById,
                    UpdatedById            = UpdatedById,
                    JobType                = JobType,
                    JobDefinitionKey       = JobDefinitionKey,
                    DataAssetKey           = DataAssetKey,
                    ScheduleCronExpression = ScheduleCronExpression,
                    TimeScheduleBegin      = TimeScheduleBegin,
                    TimeScheduleEnd        = TimeScheduleEnd,
                    ScheduleType           = ScheduleType,
                    ConnectionKey          = ConnectionKey,
                    Fields                = Fields,
                    ExecutionCount        = ExecutionCount,
                    TimeOfLatestExecution = TimeOfLatestExecution,
                    SortBy                = SortBy,
                    SortOrder             = SortOrder,
                    Limit        = Limit,
                    Page         = Page,
                    OpcRequestId = OpcRequestId
                };
                IEnumerable <ListJobsResponse> responses = GetRequestDelegate().Invoke(request);
                foreach (var item in responses)
                {
                    response = item;
                    WriteOutput(response, response.JobCollection, true);
                }
                if (!ParameterSetName.Equals(AllPageSet) && !ParameterSetName.Equals(LimitSet) && response.OpcNextPage != null)
                {
                    WriteWarning("This operation supports pagination and not all resources were returned. Re-run using the -All option to auto paginate and list all resources.");
                }
                FinishProcessing(response);
            }
            catch (Exception ex)
            {
                TerminatingErrorDuringExecution(ex);
            }
        }
예제 #11
0
        /// <summary>
        /// <para> This operation returns the jobs associated with the requester. AWS Import/Export lists the jobs in reverse chronological order based
        /// on the date of creation. For example if Job Test1 was created 2009Dec30 and Test2 was created 2010Feb05, the ListJobs operation would return
        /// Test2 followed by Test1. </para>
        /// </summary>
        ///
        /// <param name="request">Container for the necessary parameters to execute the ListJobs service method on AmazonImportExport.</param>
        ///
        /// <returns>The response from the ListJobs service method, as returned by AmazonImportExport.</returns>
        ///
        /// <exception cref="T:Amazon.ImportExport.Model.InvalidParameterException" />
        /// <exception cref="T:Amazon.ImportExport.Model.InvalidAccessKeyIdException" />
        public ListJobsResponse ListJobs(ListJobsRequest request)
        {
            var task = ListJobsAsync(request);

            try
            {
                return(task.Result);
            }
            catch (AggregateException e)
            {
                ExceptionDispatchInfo.Capture(e.InnerException).Throw();
                return(null);
            }
        }
예제 #12
0
        /// <summary>Snippet for AggregatedListJobs</summary>
        public void AggregatedListJobsRequestObject()
        {
            // Snippet: AggregatedListJobs(ListJobsRequest, CallSettings)
            // Create client
            JobsV1Beta3Client jobsV1Beta3Client = JobsV1Beta3Client.Create();
            // Initialize request argument(s)
            ListJobsRequest request = new ListJobsRequest
            {
                ProjectId = "",
                Filter    = ListJobsRequest.Types.Filter.Unknown,
                Location  = "",
            };
            // Make the request
            PagedEnumerable <ListJobsResponse, Job> response = jobsV1Beta3Client.AggregatedListJobs(request);

            // Iterate over all response items, lazily performing RPCs as required
            foreach (Job item in response)
            {
                // Do something with each item
                Console.WriteLine(item);
            }

            // Or iterate over pages (of server-defined size), performing one RPC per page
            foreach (ListJobsResponse page in response.AsRawResponses())
            {
                // Do something with each page of items
                Console.WriteLine("A page of results:");
                foreach (Job item in page)
                {
                    // Do something with each item
                    Console.WriteLine(item);
                }
            }

            // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
            int        pageSize   = 10;
            Page <Job> singlePage = response.ReadPage(pageSize);

            // Do something with the page of items
            Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
            foreach (Job item in singlePage)
            {
                // Do something with each item
                Console.WriteLine(item);
            }
            // Store the pageToken, for when the next page is required.
            string nextPageToken = singlePage.NextPageToken;
            // End snippet
        }
 /// <summary>
 /// Creates a new enumerable which will iterate over the responses received from the ListJobs operation. This enumerable
 /// will fetch more data from the server as needed.
 /// </summary>
 /// <param name="request">The request object containing the details to send</param>
 /// <param name="retryConfiguration">The configuration for retrying, may be null</param>
 /// <param name="cancellationToken">The cancellation token object</param>
 /// <returns>The enumerator, which supports a simple iteration over a collection of a specified type</returns>
 public IEnumerable <ListJobsResponse> ListJobsResponseEnumerator(ListJobsRequest request, Common.Retry.RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default)
 {
     return(new Common.Utils.ResponseEnumerable <ListJobsRequest, ListJobsResponse>(
                response => response.OpcNextPage,
                input =>
     {
         if (!string.IsNullOrEmpty(input))
         {
             request.Page = input;
         }
         return request;
     },
                request => client.ListJobs(request, retryConfiguration, cancellationToken)
                ));
 }
예제 #14
0
        /// <summary>
        /// ListJobs接口的同步版本,列举训练任务
        /// </summary>
        /// <param name="req">参考<see cref="ListJobsRequest"/></param>
        /// <returns>参考<see cref="ListJobsResponse"/>实例</returns>
        public ListJobsResponse ListJobsSync(ListJobsRequest req)
        {
            JsonResponseModel <ListJobsResponse> rsp = null;

            try
            {
                var strResp = this.InternalRequestSync(req, "ListJobs");
                rsp = JsonConvert.DeserializeObject <JsonResponseModel <ListJobsResponse> >(strResp);
            }
            catch (JsonSerializationException e)
            {
                throw new TencentCloudSDKException(e.Message);
            }
            return(rsp.Response);
        }
예제 #15
0
    public override async Task <ListJobsResponse> ListJobs(ListJobsRequest request, ServerCallContext context)
    {
        var jobs = await _organizationApp.GetJobsAsync();

        var items = jobs.Select(x => new ListJobsResponse.Types.Job
        {
            Id    = x.Id,
            Title = x.Title,
        });
        var result = new ListJobsResponse();

        result.Items.AddRange(items);

        return(result);
    }
        /// <summary>Snippet for ListJobsAsync</summary>
        public async Task ListJobsRequestObjectAsync()
        {
            // Snippet: ListJobsAsync(ListJobsRequest, CallSettings)
            // Create client
            CloudSchedulerClient cloudSchedulerClient = await CloudSchedulerClient.CreateAsync();

            // Initialize request argument(s)
            ListJobsRequest request = new ListJobsRequest
            {
                ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
            };
            // Make the request
            PagedAsyncEnumerable <ListJobsResponse, Job> response = cloudSchedulerClient.ListJobsAsync(request);

            // Iterate over all response items, lazily performing RPCs as required
            await response.ForEachAsync((Job item) =>
            {
                // Do something with each item
                Console.WriteLine(item);
            });

            // Or iterate over pages (of server-defined size), performing one RPC per page
            await response.AsRawResponses().ForEachAsync((ListJobsResponse page) =>
            {
                // Do something with each page of items
                Console.WriteLine("A page of results:");
                foreach (Job item in page)
                {
                    // Do something with each item
                    Console.WriteLine(item);
                }
            });

            // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
            int        pageSize   = 10;
            Page <Job> singlePage = await response.ReadPageAsync(pageSize);

            // Do something with the page of items
            Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
            foreach (Job item in singlePage)
            {
                // Do something with each item
                Console.WriteLine(item);
            }
            // Store the pageToken, for when the next page is required.
            string nextPageToken = singlePage.NextPageToken;
            // End snippet
        }
예제 #17
0
        /// <summary>Snippet for ListJobs</summary>
        public void ListJobs_RequestObject()
        {
            // Snippet: ListJobs(ListJobsRequest,CallSettings)
            // Create client
            JobServiceClient jobServiceClient = JobServiceClient.Create();
            // Initialize request argument(s)
            ListJobsRequest request = new ListJobsRequest
            {
                ParentAsTenantOrProjectNameOneof = TenantOrProjectNameOneof.From(new TenantName("[PROJECT]", "[TENANT]")),
                Filter = "",
            };
            // Make the request
            PagedEnumerable <ListJobsResponse, Job> response =
                jobServiceClient.ListJobs(request);

            // Iterate over all response items, lazily performing RPCs as required
            foreach (Job item in response)
            {
                // Do something with each item
                Console.WriteLine(item);
            }

            // Or iterate over pages (of server-defined size), performing one RPC per page
            foreach (ListJobsResponse page in response.AsRawResponses())
            {
                // Do something with each page of items
                Console.WriteLine("A page of results:");
                foreach (Job item in page)
                {
                    Console.WriteLine(item);
                }
            }

            // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
            int        pageSize   = 10;
            Page <Job> singlePage = response.ReadPage(pageSize);

            // Do something with the page of items
            Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
            foreach (Job item in singlePage)
            {
                Console.WriteLine(item);
            }
            // Store the pageToken, for when the next page is required.
            string nextPageToken = singlePage.NextPageToken;
            // End snippet
        }
        protected override void ProcessRecord()
        {
            base.ProcessRecord();
            ListJobsRequest request;

            try
            {
                request = new ListJobsRequest
                {
                    CatalogId              = CatalogId,
                    DisplayName            = DisplayName,
                    DisplayNameContains    = DisplayNameContains,
                    LifecycleState         = LifecycleState,
                    TimeCreated            = TimeCreated,
                    TimeUpdated            = TimeUpdated,
                    CreatedById            = CreatedById,
                    UpdatedById            = UpdatedById,
                    JobType                = JobType,
                    JobDefinitionKey       = JobDefinitionKey,
                    ScheduleCronExpression = ScheduleCronExpression,
                    TimeScheduleBegin      = TimeScheduleBegin,
                    TimeScheduleEnd        = TimeScheduleEnd,
                    ScheduleType           = ScheduleType,
                    ConnectionKey          = ConnectionKey,
                    Fields                = Fields,
                    ExecutionCount        = ExecutionCount,
                    TimeOfLatestExecution = TimeOfLatestExecution,
                    SortBy                = SortBy,
                    SortOrder             = SortOrder,
                    Limit        = Limit,
                    Page         = Page,
                    OpcRequestId = OpcRequestId
                };
                IEnumerable <ListJobsResponse> responses = GetRequestDelegate().Invoke(request);
                foreach (var item in responses)
                {
                    response = item;
                    WriteOutput(response, response.JobCollection, true);
                }
                FinishProcessing(response);
            }
            catch (Exception ex)
            {
                TerminatingErrorDuringExecution(ex);
            }
        }
예제 #19
0
        // [START job_search_list_jobs]
        public static object ListJobs(string projectId, string tenantId, string filter)
        {
            JobServiceClient jobServiceClient = JobServiceClient.Create();

            TenantName      tenantName = TenantName.FromProjectTenant(projectId, tenantId);
            ListJobsRequest request    = new ListJobsRequest
            {
                ParentAsTenantName = tenantName,
                Filter             = filter
            };
            PagedEnumerable <ListJobsResponse, Job> jobs = jobServiceClient.ListJobs(request);

            foreach (var job in jobs)
            {
                Console.WriteLine($"Job name: {job.Name}");
                Console.WriteLine($"Job requisition ID: {job.RequisitionId}");
                Console.WriteLine($"Job title: {job.Title}");
                Console.WriteLine($"Job description: {job.Description}");
            }
            return(0);
        }
예제 #20
0
        protected override void ProcessRecord()
        {
            base.ProcessRecord();
            ListJobsRequest request;

            try
            {
                request = new ListJobsRequest
                {
                    CompartmentId          = CompartmentId,
                    OpcRequestId           = OpcRequestId,
                    Id                     = Id,
                    ManagedDatabaseGroupId = ManagedDatabaseGroupId,
                    ManagedDatabaseId      = ManagedDatabaseId,
                    Name                   = Name,
                    LifecycleState         = LifecycleState,
                    Limit                  = Limit,
                    Page                   = Page,
                    SortBy                 = SortBy,
                    SortOrder              = SortOrder
                };
                IEnumerable <ListJobsResponse> responses = GetRequestDelegate().Invoke(request);
                foreach (var item in responses)
                {
                    response = item;
                    WriteOutput(response, response.JobCollection, true);
                }
                if (!ParameterSetName.Equals(AllPageSet) && !ParameterSetName.Equals(LimitSet) && response.OpcNextPage != null)
                {
                    WriteWarning("This operation supports pagination and not all resources were returned. Re-run using the -All option to auto paginate and list all resources.");
                }
                FinishProcessing(response);
            }
            catch (Exception ex)
            {
                TerminatingErrorDuringExecution(ex);
            }
        }
예제 #21
0
        public async Task <List <Job> > listJobs()
        {
            String mediaConvertEndpoint = "";

            if (String.IsNullOrEmpty(mediaConvertEndpoint))
            {
                // Obtain the customer-specific MediaConvert endpoint
                AmazonMediaConvertClient  client           = new AmazonMediaConvertClient(Amazon.RegionEndpoint.USEast1);
                DescribeEndpointsRequest  describeRequest  = new DescribeEndpointsRequest();
                DescribeEndpointsResponse describeResponse = await client.DescribeEndpointsAsync(describeRequest);

                mediaConvertEndpoint = describeResponse.Endpoints[0].Url;
            }
            AmazonMediaConvertConfig mcConfig = new AmazonMediaConvertConfig
            {
                ServiceURL = mediaConvertEndpoint
            };
            String key    = "";
            String secret = "";

            try
            {
                StreamReader sr = new StreamReader("c:\\temp\\awskey.txt");
                key    = sr.ReadLine();
                secret = sr.ReadLine();
            }
            catch (Exception ex)
            {
                Console.WriteLine("Could not read the file");
            }


            AmazonMediaConvertClient mcClient = new AmazonMediaConvertClient(key, secret, mcConfig);
            ListJobsRequest          req      = new ListJobsRequest();
            ListJobsResponse         listJobs = await mcClient.ListJobsAsync(req);

            return(listJobs.Jobs);
        }
예제 #22
0
        public IHttpActionResult Get([FromUri] ListJobsRequest request)
        {
            var result = _listJobRequestProcessor.Process(request);

            return(Ok(result));
        }
예제 #23
0
 /// <summary>
 /// A non blocking list jobs request/response cycle.
 /// </summary>
 /// <param name="pageNumber">The page number of jobs to list, if applicable.</param>
 /// <param name="pageSize">The page size of jobs to list, if applicable.</param>
 /// <param name="callback">The call response.</param>
 public void ListJobs(int? pageNumber, int? pageSize, Action<ListJobsResponse> callback)
 {
     ListJobsRequest request = new ListJobsRequest(this).ForPage(pageNumber, pageSize);
     request.GetResponseAsync(callback);
 }
예제 #24
0
 /// <summary>
 /// A blocking list jobs request/response cycle.
 /// </summary>
 /// <param name="pageNumber">The page number of jobs to list, if applicable.</param>
 /// <param name="pageSize">The page size of jobs to list, if applicable.</param>
 /// <returns>The call response.</returns>
 public ListJobsResponse ListJobs(int? pageNumber, int? pageSize)
 {
     ListJobsRequest request = new ListJobsRequest(this).ForPage(pageNumber, pageSize);
     return request.GetResponse();
 }
 /// <summary>
 /// Initiates the asynchronous execution of the ListJobs operation.
 /// <seealso cref="Amazon.ImportExport.IAmazonImportExport.ListJobs"/>
 /// </summary>
 ///
 /// <param name="listJobsRequest">Container for the necessary parameters to execute the ListJobs operation on AmazonImportExport.</param>
 /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
 /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
 ///          procedure using the AsyncState property.</param>
 ///
 /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListJobs
 ///         operation.</returns>
 public IAsyncResult BeginListJobs(ListJobsRequest listJobsRequest, AsyncCallback callback, object state)
 {
     return(invokeListJobs(listJobsRequest, callback, state, false));
 }
        /// <summary>
        /// <para> This operation returns the jobs associated with the requester. AWS Import/Export lists the jobs in reverse chronological order based
        /// on the date of creation. For example if Job Test1 was created 2009Dec30 and Test2 was created 2010Feb05, the ListJobs operation would return
        /// Test2 followed by Test1. </para>
        /// </summary>
        ///
        /// <param name="listJobsRequest">Container for the necessary parameters to execute the ListJobs service method on AmazonImportExport.</param>
        ///
        /// <returns>The response from the ListJobs service method, as returned by AmazonImportExport.</returns>
        ///
        /// <exception cref="InvalidParameterException"/>
        /// <exception cref="InvalidAccessKeyIdException"/>
        public ListJobsResponse ListJobs(ListJobsRequest listJobsRequest)
        {
            IAsyncResult asyncResult = invokeListJobs(listJobsRequest, null, null, true);

            return(EndListJobs(asyncResult));
        }
 /// <summary>
 /// List the jobs of a project across all regions.
 /// </summary>
 /// <param name="request">The request object containing all of the parameters for the API call.</param>
 /// <param name="callSettings">If not null, applies overrides to this RPC call.</param>
 /// <returns>A pageable asynchronous sequence of <see cref="Job"/> resources.</returns>
 public virtual gax::PagedAsyncEnumerable <ListJobsResponse, Job> AggregatedListJobsAsync(ListJobsRequest request, gaxgrpc::CallSettings callSettings = null) =>
 throw new sys::NotImplementedException();
 partial void Modify_ListJobsRequest(ref ListJobsRequest request, ref gaxgrpc::CallSettings settings);
 /// <summary>
 /// List the jobs of a project across all regions.
 /// </summary>
 /// <param name="request">The request object containing all of the parameters for the API call.</param>
 /// <param name="callSettings">If not null, applies overrides to this RPC call.</param>
 /// <returns>A pageable asynchronous sequence of <see cref="Job"/> resources.</returns>
 public override gax::PagedAsyncEnumerable <ListJobsResponse, Job> AggregatedListJobsAsync(ListJobsRequest request, gaxgrpc::CallSettings callSettings = null)
 {
     Modify_ListJobsRequest(ref request, ref callSettings);
     return(new gaxgrpc::GrpcPagedAsyncEnumerable <ListJobsRequest, ListJobsResponse, Job>(_callAggregatedListJobs, request, callSettings));
 }