File tree 3 files changed +33
-6
lines changed
packages/google-cloud-oslogin
3 files changed +33
-6
lines changed Original file line number Diff line number Diff line change @@ -60,12 +60,15 @@ class OsLoginServiceClient {
60
60
constructor ( opts ) {
61
61
this . _descriptors = { } ;
62
62
63
+ const servicePath =
64
+ opts . servicePath || opts . apiEndpoint || this . constructor . servicePath ;
65
+
63
66
// Ensure that options include the service address and port.
64
67
opts = Object . assign (
65
68
{
66
69
clientConfig : { } ,
67
70
port : this . constructor . port ,
68
- servicePath : this . constructor . servicePath ,
71
+ servicePath,
69
72
} ,
70
73
opts
71
74
) ;
@@ -164,6 +167,14 @@ class OsLoginServiceClient {
164
167
return 'oslogin.googleapis.com' ;
165
168
}
166
169
170
+ /**
171
+ * The DNS address for this API service - same as servicePath(),
172
+ * exists for compatibility reasons.
173
+ */
174
+ static get apiEndpoint ( ) {
175
+ return 'oslogin.googleapis.com' ;
176
+ }
177
+
167
178
/**
168
179
* The port for this API service.
169
180
*/
Original file line number Diff line number Diff line change 1
1
{
2
- "updateTime": "2019-05-21T11:20:14.671818Z ",
2
+ "updateTime": "2019-06-04T19:38:15.784953Z ",
3
3
"sources": [
4
4
{
5
5
"generator": {
6
6
"name": "artman",
7
- "version": "0.20 .0",
8
- "dockerImage": "googleapis/artman@sha256:3246adac900f4bdbd62920e80de2e5877380e44036b3feae13667ec255ebf5ec "
7
+ "version": "0.23 .0",
8
+ "dockerImage": "googleapis/artman@sha256:846102ebf7ea2239162deea69f64940443b4147f7c2e68d64b332416f74211ba "
9
9
}
10
10
},
11
11
{
12
12
"git": {
13
13
"name": "googleapis",
14
14
"remote": "https://github.com/googleapis/googleapis.git",
15
- "sha": "32a10f69e2c9ce15bba13ab1ff928bacebb25160 ",
16
- "internalRef": "249058354 "
15
+ "sha": "0026f4b890ed9e2388fb0573c0727defa6f5b82e ",
16
+ "internalRef": "251265049 "
17
17
}
18
18
},
19
19
{
Original file line number Diff line number Diff line change @@ -23,6 +23,22 @@ const error = new Error();
23
23
error . code = FAKE_STATUS_CODE ;
24
24
25
25
describe ( 'OsLoginServiceClient' , ( ) => {
26
+ it ( 'has servicePath' , ( ) => {
27
+ const servicePath = osLoginModule . v1beta . OsLoginServiceClient . servicePath ;
28
+ assert ( servicePath ) ;
29
+ } ) ;
30
+
31
+ it ( 'has apiEndpoint' , ( ) => {
32
+ const apiEndpoint = osLoginModule . v1beta . OsLoginServiceClient . apiEndpoint ;
33
+ assert ( apiEndpoint ) ;
34
+ } ) ;
35
+
36
+ it ( 'has port' , ( ) => {
37
+ const port = osLoginModule . v1beta . OsLoginServiceClient . port ;
38
+ assert ( port ) ;
39
+ assert ( typeof port === 'number' ) ;
40
+ } ) ;
41
+
26
42
describe ( 'deletePosixAccount' , ( ) => {
27
43
it ( 'invokes deletePosixAccount without error' , done => {
28
44
const client = new osLoginModule . v1beta . OsLoginServiceClient ( {
You can’t perform that action at this time.
0 commit comments