@@ -68,9 +68,9 @@ export class ServiceAccountCredential implements Credential {
68
68
/**
69
69
* Creates a new ServiceAccountCredential from the given parameters.
70
70
*
71
- * @param serviceAccountPathOrObject Service account json object or path to a service account json file.
72
- * @param httpAgent Optional http.Agent to use when calling the remote token server.
73
- * @param implicit An optinal boolean indicating whether this credential was implicitly discovered from the
71
+ * @param serviceAccountPathOrObject - Service account json object or path to a service account json file.
72
+ * @param httpAgent - Optional http.Agent to use when calling the remote token server.
73
+ * @param implicit - An optinal boolean indicating whether this credential was implicitly discovered from the
74
74
* environment, as opposed to being explicitly specified by the developer.
75
75
*
76
76
* @constructor
@@ -248,10 +248,11 @@ export class RefreshTokenCredential implements Credential {
248
248
/**
249
249
* Creates a new RefreshTokenCredential from the given parameters.
250
250
*
251
- * @param refreshTokenPathOrObject Refresh token json object or path to a refresh token (user credentials) json file.
252
- * @param httpAgent Optional http.Agent to use when calling the remote token server.
253
- * @param implicit An optinal boolean indicating whether this credential was implicitly discovered from the
254
- * environment, as opposed to being explicitly specified by the developer.
251
+ * @param refreshTokenPathOrObject - Refresh token json object or path to a refresh token
252
+ * (user credentials) json file.
253
+ * @param httpAgent - Optional http.Agent to use when calling the remote token server.
254
+ * @param implicit - An optinal boolean indicating whether this credential was implicitly
255
+ * discovered from the environment, as opposed to being explicitly specified by the developer.
255
256
*
256
257
* @constructor
257
258
*/
@@ -338,7 +339,7 @@ class RefreshToken {
338
339
* instances that were loaded from well-known files or environment variables, rather than being explicitly
339
340
* instantiated.
340
341
*
341
- * @param credential The credential instance to check.
342
+ * @param credential - The credential instance to check.
342
343
*/
343
344
export function isApplicationDefault ( credential ?: Credential ) : boolean {
344
345
return credential instanceof ComputeEngineCredential ||
@@ -368,10 +369,10 @@ export function getApplicationDefault(httpAgent?: Agent): Credential {
368
369
* If no property exists by the given "key", looks for a property identified by "alt", and copies it instead.
369
370
* This can be used to implement behaviors such as "copy property myKey or my_key".
370
371
*
371
- * @param to Target object to copy the property into.
372
- * @param from Source object to copy the property from.
373
- * @param key Name of the property to copy.
374
- * @param alt Alternative name of the property to copy.
372
+ * @param to - Target object to copy the property into.
373
+ * @param from - Source object to copy the property from.
374
+ * @param key - Name of the property to copy.
375
+ * @param alt - Alternative name of the property to copy.
375
376
*/
376
377
function copyAttr ( to : { [ key : string ] : any } , from : { [ key : string ] : any } , key : string , alt : string ) : void {
377
378
const tmp = from [ key ] || from [ alt ] ;
0 commit comments