Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(userAgent): allow for optional user agent to be provided #671

Merged
merged 6 commits into from Jun 9, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -48,7 +48,7 @@
"precompile": "gts clean"
},
"dependencies": {
"@google-cloud/common": "^3.0.0",
"@google-cloud/common": "^3.1.0",
"@google-cloud/paginator": "^3.0.0",
"@google-cloud/promisify": "^2.0.0",
"arrify": "^2.0.1",
Expand Down
3 changes: 3 additions & 0 deletions src/bigquery.ts
Expand Up @@ -163,6 +163,7 @@ export interface BigQueryOptions extends common.GoogleAuthOptions {
autoRetry?: boolean;
maxRetries?: number;
location?: string;
userAgent?: string;
/**
* The API endpoint of the service used to make requests.
* Defaults to `bigquery.googleapis.com`.
Expand Down Expand Up @@ -199,6 +200,8 @@ export interface BigQueryOptions extends common.GoogleAuthOptions {
* native Promises.
* @property {string} [location] The geographic location of all datasets and
* jobs referenced and created through the client.
* @property {string} [userAgent] The value to be prepended to the User-Agent
* header in API requests.
* @property {string[]} [scopes] Additional OAuth scopes to use in requests. For
* example, to access an external data source, you may need the
* `https://www.googleapis.com/auth/drive.readonly` scope.
Expand Down