コード例 #1
0
        private ListRequest CreateListJobsRequest(ProjectReference projectReference, ListJobsOptions options = null)
        {
            var request = Service.Jobs.List(projectReference.ProjectId);

            options?.ModifyRequest(request);
            return(request);
        }
コード例 #2
0
 /// <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();
 }
コード例 #3
0
 /// <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);
コード例 #4
0
 /// <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);
コード例 #5
0
        /// <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));
        }