Skip to content
This repository was archived by the owner on Jul 13, 2023. It is now read-only.

Commit 0bfe818

Browse files
yoshi-automationJustinBeckwith
authored andcommitted
feat: support apiEndpoint override in client constructor (#43)
1 parent 7989746 commit 0bfe818

3 files changed

Lines changed: 11 additions & 5 deletions

File tree

src/v1beta1/data_labeling_service_client.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ class DataLabelingServiceClient {
5454
* API remote host.
5555
*/
5656
constructor(opts) {
57+
opts = opts || {};
5758
this._descriptors = {};
5859

5960
const servicePath =

synth.metadata

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
{
2-
"updateTime": "2019-06-04T19:29:25.101947Z",
2+
"updateTime": "2019-06-05T11:07:35.543902Z",
33
"sources": [
44
{
55
"generator": {
66
"name": "artman",
7-
"version": "0.23.0",
8-
"dockerImage": "googleapis/artman@sha256:846102ebf7ea2239162deea69f64940443b4147f7c2e68d64b332416f74211ba"
7+
"version": "0.23.1",
8+
"dockerImage": "googleapis/artman@sha256:9d5cae1454da64ac3a87028f8ef486b04889e351c83bb95e83b8fab3959faed0"
99
}
1010
},
1111
{
1212
"git": {
1313
"name": "googleapis",
1414
"remote": "https://github.com/googleapis/googleapis.git",
15-
"sha": "0026f4b890ed9e2388fb0573c0727defa6f5b82e",
16-
"internalRef": "251265049"
15+
"sha": "4f3516a6f96dac182973a3573ff5117e8e4f76c7",
16+
"internalRef": "251559960"
1717
}
1818
},
1919
{

test/gapic-v1beta1.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ describe('DataLabelingServiceClient', () => {
4141
assert(typeof port === 'number');
4242
});
4343

44+
it('should create a client with no options', () => {
45+
const client = new datalabelingModule.v1beta1.DataLabelingServiceClient();
46+
assert(client);
47+
});
48+
4449
describe('createDataset', () => {
4550
it('invokes createDataset without error', done => {
4651
const client = new datalabelingModule.v1beta1.DataLabelingServiceClient({

0 commit comments

Comments
 (0)