|
1 | | -// Copyright 2017, Google LLC All rights reserved. |
| 1 | +// Copyright 2018 Google LLC |
2 | 2 | // |
3 | 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
4 | 4 | // you may not use this file except in compliance with the License. |
5 | 5 | // You may obtain a copy of the License at |
6 | 6 | // |
7 | | -// http://www.apache.org/licenses/LICENSE-2.0 |
| 7 | +// https://www.apache.org/licenses/LICENSE-2.0 |
8 | 8 | // |
9 | 9 | // Unless required by applicable law or agreed to in writing, software |
10 | 10 | // distributed under the License is distributed on an "AS IS" BASIS, |
@@ -40,10 +40,10 @@ class OsLoginServiceClient { |
40 | 40 | * @param {string} [options.credentials.client_email] |
41 | 41 | * @param {string} [options.credentials.private_key] |
42 | 42 | * @param {string} [options.email] - Account email address. Required when |
43 | | - * usaing a .pem or .p12 keyFilename. |
| 43 | + * using a .pem or .p12 keyFilename. |
44 | 44 | * @param {string} [options.keyFilename] - Full path to the a .json, .pem, or |
45 | 45 | * .p12 key downloaded from the Google Developers Console. If you provide |
46 | | - * a path to a JSON file, the projectId option above is not necessary. |
| 46 | + * a path to a JSON file, the projectId option below is not necessary. |
47 | 47 | * NOTE: .pem and .p12 require you to specify options.email as well. |
48 | 48 | * @param {number} [options.port] - The port on which to connect to |
49 | 49 | * the remote host. |
@@ -74,14 +74,14 @@ class OsLoginServiceClient { |
74 | 74 | // Create a `gaxGrpc` object, with any grpc-specific options |
75 | 75 | // sent to the client. |
76 | 76 | opts.scopes = this.constructor.scopes; |
77 | | - var gaxGrpc = gax.grpc(opts); |
| 77 | + var gaxGrpc = new gax.GrpcClient(opts); |
78 | 78 |
|
79 | 79 | // Save the auth object to the client, for use by other methods. |
80 | 80 | this.auth = gaxGrpc.auth; |
81 | 81 |
|
82 | 82 | // Determine the client header string. |
83 | 83 | var clientHeader = [ |
84 | | - `gl-node/${process.version.node}`, |
| 84 | + `gl-node/${process.version}`, |
85 | 85 | `grpc/${gaxGrpc.grpcVersion}`, |
86 | 86 | `gax/${gax.version}`, |
87 | 87 | `gapic/${VERSION}`, |
@@ -216,9 +216,9 @@ class OsLoginServiceClient { |
216 | 216 | * |
217 | 217 | * @example |
218 | 218 | * |
219 | | - * const oslogin = require('@google-cloud/oslogin'); |
| 219 | + * const osLogin = require('@google-cloud/os-login'); |
220 | 220 | * |
221 | | - * var client = new oslogin.v1beta.OsLoginServiceClient({ |
| 221 | + * var client = new osLogin.v1beta.OsLoginServiceClient({ |
222 | 222 | * // optional auth parameters. |
223 | 223 | * }); |
224 | 224 | * |
@@ -256,9 +256,9 @@ class OsLoginServiceClient { |
256 | 256 | * |
257 | 257 | * @example |
258 | 258 | * |
259 | | - * const oslogin = require('@google-cloud/oslogin'); |
| 259 | + * const osLogin = require('@google-cloud/os-login'); |
260 | 260 | * |
261 | | - * var client = new oslogin.v1beta.OsLoginServiceClient({ |
| 261 | + * var client = new osLogin.v1beta.OsLoginServiceClient({ |
262 | 262 | * // optional auth parameters. |
263 | 263 | * }); |
264 | 264 | * |
@@ -298,9 +298,9 @@ class OsLoginServiceClient { |
298 | 298 | * |
299 | 299 | * @example |
300 | 300 | * |
301 | | - * const oslogin = require('@google-cloud/oslogin'); |
| 301 | + * const osLogin = require('@google-cloud/os-login'); |
302 | 302 | * |
303 | | - * var client = new oslogin.v1beta.OsLoginServiceClient({ |
| 303 | + * var client = new osLogin.v1beta.OsLoginServiceClient({ |
304 | 304 | * // optional auth parameters. |
305 | 305 | * }); |
306 | 306 | * |
@@ -346,9 +346,9 @@ class OsLoginServiceClient { |
346 | 346 | * |
347 | 347 | * @example |
348 | 348 | * |
349 | | - * const oslogin = require('@google-cloud/oslogin'); |
| 349 | + * const osLogin = require('@google-cloud/os-login'); |
350 | 350 | * |
351 | | - * var client = new oslogin.v1beta.OsLoginServiceClient({ |
| 351 | + * var client = new osLogin.v1beta.OsLoginServiceClient({ |
352 | 352 | * // optional auth parameters. |
353 | 353 | * }); |
354 | 354 | * |
@@ -400,9 +400,9 @@ class OsLoginServiceClient { |
400 | 400 | * |
401 | 401 | * @example |
402 | 402 | * |
403 | | - * const oslogin = require('@google-cloud/oslogin'); |
| 403 | + * const osLogin = require('@google-cloud/os-login'); |
404 | 404 | * |
405 | | - * var client = new oslogin.v1beta.OsLoginServiceClient({ |
| 405 | + * var client = new osLogin.v1beta.OsLoginServiceClient({ |
406 | 406 | * // optional auth parameters. |
407 | 407 | * }); |
408 | 408 | * |
@@ -462,9 +462,9 @@ class OsLoginServiceClient { |
462 | 462 | * |
463 | 463 | * @example |
464 | 464 | * |
465 | | - * const oslogin = require('@google-cloud/oslogin'); |
| 465 | + * const osLogin = require('@google-cloud/os-login'); |
466 | 466 | * |
467 | | - * var client = new oslogin.v1beta.OsLoginServiceClient({ |
| 467 | + * var client = new osLogin.v1beta.OsLoginServiceClient({ |
468 | 468 | * // optional auth parameters. |
469 | 469 | * }); |
470 | 470 | * |
|
0 commit comments