Skip to content

Commit

Permalink
fix: type definitions for iam_apikey and ibm_url
Browse files Browse the repository at this point in the history
  • Loading branch information
nhayashida committed Jul 18, 2019
1 parent d0bd0a8 commit 13ac681
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions authorization/v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ class AuthorizationV1 extends BaseService {
* @param {String} options.username
* @param {String} options.password
* @param {String} [options.url] url of the service for which auth tokens are being generated
* @param {string} [options.iam_apikey] - An API key that can be used to request IAM tokens. If this API key is provided, the SDK will manage the token and handle the refreshing.
* @param {string} [options.iam_url] - An optional URL for the IAM service API. Defaults to 'https://iam.cloud.ibm.com/identity/token'.
* @constructor
*/
constructor(options: AuthorizationV1.Options) {
Expand Down Expand Up @@ -93,9 +95,11 @@ AuthorizationV1.prototype.serviceVersion = 'v1';
namespace AuthorizationV1 {
/** Options for the AuthorizationV1 constructor */
export type Options = {
username: string;
password: string;
username?: string;
password?: string;
url?: string;
iam_apikey?: string;
iam_url?: string;
}

export interface GetTokenResponse {
Expand Down

0 comments on commit 13ac681

Please sign in to comment.