private ListRequest CreateListJobsRequest(ProjectReference projectReference, ListJobsOptions options = null) { var request = Service.Jobs.List(projectReference.ProjectId); options?.ModifyRequest(request); return(request); }
/// <summary> /// Lists the jobs within the specified project. /// </summary> /// <param name="projectReference">A fully-qualified identifier for the project. Must not be null.</param> /// <param name="options">The options for the operation. May be null, in which case defaults will be supplied.</param> /// <returns>A sequence of the jobs within the specified project.</returns> public virtual IPagedEnumerable <JobList, BigqueryJob> ListJobs(ProjectReference projectReference, ListJobsOptions options = null) { throw new NotImplementedException(); }
/// <summary> /// Lists the jobs within the specified project. /// This method just creates a <see cref="ProjectReference"/> and delegates to <see cref="ListJobs(ProjectReference, ListJobsOptions)"/>. /// </summary> /// <param name="projectId">The project to list the jobs from. Must not be null.</param> /// <param name="options">The options for the operation. May be null, in which case defaults will be supplied.</param> /// <returns>A sequence of the jobs within the specified project.</returns> public virtual IPagedEnumerable <JobList, BigqueryJob> ListJobs(string projectId, ListJobsOptions options = null) => ListJobs(GetProjectReference(projectId), options);
/// <summary> /// Asynchronously lists the jobs within this client's project. /// This method just creates a <see cref="ProjectReference"/> and delegates to <see cref="ListJobsAsync(ProjectReference, ListJobsOptions)"/>. /// </summary> /// <param name="options">The options for the operation. May be null, in which case defaults will be supplied.</param> /// <returns>An asynchronous sequence of the jobs within this project.</returns> public virtual IPagedAsyncEnumerable <JobList, BigqueryJob> ListJobsAsync(ListJobsOptions options = null) => ListJobsAsync(GetProjectReference(ProjectId), options);
/// <inheritdoc /> public override IPagedEnumerable <JobList, BigqueryJob> ListJobs(ProjectReference projectReference, ListJobsOptions options = null) { GaxRestPreconditions.CheckNotNull(projectReference, nameof(projectReference)); var pageManager = new JobPageManager(this); return(new PagedEnumerable <ListRequest, JobList, BigqueryJob>( () => CreateListJobsRequest(projectReference, options), pageManager)); }