Skip to content

Commit

Permalink
fix(bigquery): minor rename to feature that's not yet in a release (#…
Browse files Browse the repository at this point in the history
…4320)

This adds a minor correction to Job's access to the underlying project.
While the access on the Client is more accurately called `Project()` as
it accepts project ID or project number, in this case the field is part
of the underlying JobReference type.

This was added yesterday in
#4312 and hasn't made
it into a release cut yet, so addressing this now before release.
  • Loading branch information
shollyman committed Jun 29, 2021
1 parent f32dd72 commit ef8d138
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bigquery/job.go
Expand Up @@ -63,8 +63,8 @@ func (c *Client) JobFromIDLocation(ctx context.Context, id, location string) (j
return bqToJob(bqjob, c)
}

// Project returns the job's project.
func (j *Job) Project() string {
// ProjectID returns the job's associated project.
func (j *Job) ProjectID() string {
return j.projectID
}

Expand Down

0 comments on commit ef8d138

Please sign in to comment.