ibm-cloud-sdk-core 4.0.0 → 4.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (233) hide show
  1. package/.secrets.baseline +20 -30
  2. package/CHANGELOG.md +16 -4
  3. package/MIGRATION-V4.md +54 -0
  4. package/auth/authenticators/authenticator-interface.d.ts +3 -4
  5. package/auth/authenticators/authenticator-interface.js +1 -1
  6. package/auth/authenticators/authenticator.d.ts +5 -9
  7. package/auth/authenticators/authenticator.js +4 -8
  8. package/auth/authenticators/basic-authenticator.d.ts +12 -12
  9. package/auth/authenticators/basic-authenticator.js +12 -12
  10. package/auth/authenticators/bearer-token-authenticator.d.ts +11 -14
  11. package/auth/authenticators/bearer-token-authenticator.js +11 -14
  12. package/auth/authenticators/cloud-pak-for-data-authenticator.d.ts +15 -15
  13. package/auth/authenticators/cloud-pak-for-data-authenticator.js +15 -15
  14. package/auth/authenticators/container-authenticator.d.ts +23 -23
  15. package/auth/authenticators/container-authenticator.js +23 -23
  16. package/auth/authenticators/iam-authenticator.d.ts +20 -20
  17. package/auth/authenticators/iam-authenticator.js +20 -20
  18. package/auth/authenticators/iam-request-based-authenticator.d.ts +23 -25
  19. package/auth/authenticators/iam-request-based-authenticator.js +23 -25
  20. package/auth/authenticators/token-request-based-authenticator.d.ts +19 -24
  21. package/auth/authenticators/token-request-based-authenticator.js +19 -24
  22. package/auth/authenticators/vpc-instance-authenticator.d.ts +17 -16
  23. package/auth/authenticators/vpc-instance-authenticator.js +17 -16
  24. package/auth/token-managers/container-token-manager.d.ts +23 -25
  25. package/auth/token-managers/container-token-manager.js +23 -25
  26. package/auth/token-managers/cp4d-token-manager.d.ts +13 -13
  27. package/auth/token-managers/cp4d-token-manager.js +13 -13
  28. package/auth/token-managers/iam-request-based-token-manager.d.ts +26 -31
  29. package/auth/token-managers/iam-request-based-token-manager.js +26 -31
  30. package/auth/token-managers/iam-token-manager.d.ts +17 -16
  31. package/auth/token-managers/iam-token-manager.js +17 -16
  32. package/auth/token-managers/jwt-token-manager.d.ts +10 -13
  33. package/auth/token-managers/jwt-token-manager.js +13 -16
  34. package/auth/token-managers/token-manager.d.ts +23 -35
  35. package/auth/token-managers/token-manager.js +22 -34
  36. package/auth/token-managers/vpc-instance-token-manager.d.ts +15 -15
  37. package/auth/token-managers/vpc-instance-token-manager.js +15 -15
  38. package/auth/utils/get-authenticator-from-environment.d.ts +2 -2
  39. package/auth/utils/get-authenticator-from-environment.js +2 -2
  40. package/auth/utils/helpers.d.ts +34 -32
  41. package/auth/utils/helpers.js +34 -32
  42. package/auth/utils/read-external-sources.d.ts +2 -1
  43. package/auth/utils/read-external-sources.js +5 -4
  44. package/build/docs/ibm-cloud-sdk-core.atleastone.md +4 -4
  45. package/build/docs/ibm-cloud-sdk-core.atmostone.md +2 -2
  46. package/build/docs/ibm-cloud-sdk-core.authenticator._constructor_.md +1 -1
  47. package/build/docs/ibm-cloud-sdk-core.authenticator.authenticate.md +1 -1
  48. package/build/docs/ibm-cloud-sdk-core.authenticator.authenticationtype.md +1 -1
  49. package/build/docs/ibm-cloud-sdk-core.authenticator.md +1 -1
  50. package/build/docs/ibm-cloud-sdk-core.authenticatorinterface.authenticate.md +1 -1
  51. package/build/docs/ibm-cloud-sdk-core.baseservice._constructor_.md +1 -1
  52. package/build/docs/ibm-cloud-sdk-core.baseservice.configureservice.md +1 -1
  53. package/build/docs/ibm-cloud-sdk-core.baseservice.createrequest.md +2 -2
  54. package/build/docs/ibm-cloud-sdk-core.baseservice.enableretries.md +1 -1
  55. package/build/docs/ibm-cloud-sdk-core.baseservice.getauthenticator.md +1 -1
  56. package/build/docs/ibm-cloud-sdk-core.baseservice.md +3 -3
  57. package/build/docs/ibm-cloud-sdk-core.baseservice.setdefaultheaders.md +1 -1
  58. package/build/docs/ibm-cloud-sdk-core.baseservice.setserviceurl.md +1 -1
  59. package/build/docs/ibm-cloud-sdk-core.basicauthenticator._constructor_.md +2 -2
  60. package/build/docs/ibm-cloud-sdk-core.basicauthenticator.authenticate.md +1 -1
  61. package/build/docs/ibm-cloud-sdk-core.basicauthenticator.md +3 -3
  62. package/build/docs/ibm-cloud-sdk-core.bearertokenauthenticator._constructor_.md +2 -2
  63. package/build/docs/ibm-cloud-sdk-core.bearertokenauthenticator.authenticate.md +2 -2
  64. package/build/docs/ibm-cloud-sdk-core.bearertokenauthenticator.md +3 -3
  65. package/build/docs/ibm-cloud-sdk-core.buildrequestfileobject.md +2 -2
  66. package/build/docs/ibm-cloud-sdk-core.checkcredentials.md +3 -3
  67. package/build/docs/ibm-cloud-sdk-core.cloudpakfordataauthenticator._constructor_.md +3 -3
  68. package/build/docs/ibm-cloud-sdk-core.cloudpakfordataauthenticator.md +5 -5
  69. package/build/docs/ibm-cloud-sdk-core.computebasicauthheader.md +1 -1
  70. package/build/docs/ibm-cloud-sdk-core.constructserviceurl.md +4 -4
  71. package/build/docs/ibm-cloud-sdk-core.containerauthenticator._constructor_.md +3 -3
  72. package/build/docs/ibm-cloud-sdk-core.containerauthenticator.md +4 -4
  73. package/build/docs/ibm-cloud-sdk-core.containerauthenticator.setcrtokenfilename.md +1 -1
  74. package/build/docs/ibm-cloud-sdk-core.containerauthenticator.setiamprofileid.md +1 -1
  75. package/build/docs/ibm-cloud-sdk-core.containerauthenticator.setiamprofilename.md +1 -1
  76. package/build/docs/ibm-cloud-sdk-core.containertokenmanager._constructor_.md +6 -2
  77. package/build/docs/ibm-cloud-sdk-core.containertokenmanager.md +5 -5
  78. package/build/docs/ibm-cloud-sdk-core.containertokenmanager.requesttoken.md +0 -2
  79. package/build/docs/ibm-cloud-sdk-core.containertokenmanager.setcrtokenfilename.md +2 -2
  80. package/build/docs/ibm-cloud-sdk-core.containertokenmanager.setiamprofileid.md +2 -2
  81. package/build/docs/ibm-cloud-sdk-core.containertokenmanager.setiamprofilename.md +2 -2
  82. package/build/docs/ibm-cloud-sdk-core.cp4dtokenmanager._constructor_.md +6 -2
  83. package/build/docs/ibm-cloud-sdk-core.cp4dtokenmanager.md +3 -3
  84. package/build/docs/ibm-cloud-sdk-core.fileobject.md +5 -5
  85. package/build/docs/ibm-cloud-sdk-core.fileoptions.md +4 -4
  86. package/build/docs/ibm-cloud-sdk-core.filestream.md +3 -3
  87. package/build/docs/ibm-cloud-sdk-core.filewithmetadata.md +5 -5
  88. package/build/docs/ibm-cloud-sdk-core.getauthenticatorfromenvironment.md +1 -1
  89. package/build/docs/ibm-cloud-sdk-core.getcontenttype.md +1 -1
  90. package/build/docs/ibm-cloud-sdk-core.getcurrenttime.md +2 -2
  91. package/build/docs/ibm-cloud-sdk-core.getformat.md +0 -2
  92. package/build/docs/ibm-cloud-sdk-core.getmissingparams.md +1 -1
  93. package/build/docs/ibm-cloud-sdk-core.getnewlogger.md +1 -1
  94. package/build/docs/ibm-cloud-sdk-core.getqueryparam.md +1 -5
  95. package/build/docs/ibm-cloud-sdk-core.iamauthenticator._constructor_.md +3 -3
  96. package/build/docs/ibm-cloud-sdk-core.iamauthenticator.md +5 -5
  97. package/build/docs/ibm-cloud-sdk-core.iamrequestbasedauthenticator._constructor_.md +3 -3
  98. package/build/docs/ibm-cloud-sdk-core.iamrequestbasedauthenticator.getrefreshtoken.md +1 -1
  99. package/build/docs/ibm-cloud-sdk-core.iamrequestbasedauthenticator.md +7 -7
  100. package/build/docs/ibm-cloud-sdk-core.iamrequestbasedauthenticator.setclientidandsecret.md +3 -3
  101. package/build/docs/ibm-cloud-sdk-core.iamrequestbasedauthenticator.setscope.md +1 -1
  102. package/build/docs/ibm-cloud-sdk-core.iamrequestbasedtokenmanager._constructor_.md +6 -2
  103. package/build/docs/ibm-cloud-sdk-core.iamrequestbasedtokenmanager.getrefreshtoken.md +2 -2
  104. package/build/docs/ibm-cloud-sdk-core.iamrequestbasedtokenmanager.md +8 -8
  105. package/build/docs/ibm-cloud-sdk-core.iamrequestbasedtokenmanager.requesttoken.md +2 -2
  106. package/build/docs/ibm-cloud-sdk-core.iamrequestbasedtokenmanager.savetokeninfo.md +1 -3
  107. package/build/docs/ibm-cloud-sdk-core.iamrequestbasedtokenmanager.setclientidandsecret.md +3 -5
  108. package/build/docs/ibm-cloud-sdk-core.iamrequestbasedtokenmanager.setscope.md +2 -4
  109. package/build/docs/ibm-cloud-sdk-core.iamrequestoptions.md +5 -5
  110. package/build/docs/ibm-cloud-sdk-core.iamtokenmanager._constructor_.md +6 -2
  111. package/build/docs/ibm-cloud-sdk-core.iamtokenmanager.md +3 -3
  112. package/build/docs/ibm-cloud-sdk-core.ishtml.md +1 -1
  113. package/build/docs/ibm-cloud-sdk-core.jwttokenmanager._constructor_.md +2 -2
  114. package/build/docs/ibm-cloud-sdk-core.jwttokenmanager.md +5 -5
  115. package/build/docs/ibm-cloud-sdk-core.jwttokenmanager.requesttoken.md +1 -1
  116. package/build/docs/ibm-cloud-sdk-core.jwttokenmanager.savetokeninfo.md +1 -3
  117. package/build/docs/ibm-cloud-sdk-core.md +24 -24
  118. package/build/docs/ibm-cloud-sdk-core.onlyone.md +2 -2
  119. package/build/docs/ibm-cloud-sdk-core.qs.md +1 -1
  120. package/build/docs/ibm-cloud-sdk-core.readexternalsources.md +1 -1
  121. package/build/docs/ibm-cloud-sdk-core.removesuffix.md +4 -4
  122. package/build/docs/ibm-cloud-sdk-core.sdklogger.md +7 -7
  123. package/build/docs/ibm-cloud-sdk-core.streamtopromise.md +3 -1
  124. package/build/docs/ibm-cloud-sdk-core.striptrailingslash.md +4 -2
  125. package/build/docs/ibm-cloud-sdk-core.tokenmanager._constructor_.md +2 -2
  126. package/build/docs/ibm-cloud-sdk-core.tokenmanager.gettoken.md +1 -1
  127. package/build/docs/ibm-cloud-sdk-core.tokenmanager.md +15 -15
  128. package/build/docs/ibm-cloud-sdk-core.tokenmanager.pacedrequesttoken.md +1 -1
  129. package/build/docs/ibm-cloud-sdk-core.tokenmanager.requesttoken.md +1 -1
  130. package/build/docs/ibm-cloud-sdk-core.tokenmanager.savetokeninfo.md +1 -3
  131. package/build/docs/ibm-cloud-sdk-core.tokenmanager.setdisablesslverification.md +1 -3
  132. package/build/docs/ibm-cloud-sdk-core.tokenmanager.setheaders.md +2 -4
  133. package/build/docs/ibm-cloud-sdk-core.tokenrequestbasedauthenticator._constructor_.md +2 -2
  134. package/build/docs/ibm-cloud-sdk-core.tokenrequestbasedauthenticator.authenticate.md +2 -2
  135. package/build/docs/ibm-cloud-sdk-core.tokenrequestbasedauthenticator.md +9 -9
  136. package/build/docs/ibm-cloud-sdk-core.tokenrequestbasedauthenticator.setdisablesslverification.md +1 -1
  137. package/build/docs/ibm-cloud-sdk-core.tokenrequestbasedauthenticator.setheaders.md +1 -1
  138. package/build/docs/ibm-cloud-sdk-core.tolowerkeys.md +1 -1
  139. package/build/docs/ibm-cloud-sdk-core.unittestutils.checkforsuccessfulexecution.md +0 -2
  140. package/build/docs/ibm-cloud-sdk-core.unittestutils.checkmediaheaders.md +0 -2
  141. package/build/docs/ibm-cloud-sdk-core.unittestutils.checkurlandmethod.md +1 -3
  142. package/build/docs/ibm-cloud-sdk-core.unittestutils.checkuserheader.md +0 -2
  143. package/build/docs/ibm-cloud-sdk-core.unittestutils.expecttobepromise.md +0 -2
  144. package/build/docs/ibm-cloud-sdk-core.unittestutils.getoptions.md +1 -1
  145. package/build/docs/ibm-cloud-sdk-core.useroptions.md +9 -9
  146. package/build/docs/ibm-cloud-sdk-core.validateinput.md +8 -2
  147. package/build/docs/ibm-cloud-sdk-core.validateparams.md +1 -1
  148. package/build/docs/ibm-cloud-sdk-core.vpcinstanceauthenticator._constructor_.md +6 -2
  149. package/build/docs/ibm-cloud-sdk-core.vpcinstanceauthenticator.md +6 -6
  150. package/build/docs/ibm-cloud-sdk-core.vpcinstanceauthenticator.setiamprofilecrn.md +2 -2
  151. package/build/docs/ibm-cloud-sdk-core.vpcinstanceauthenticator.setiamprofileid.md +2 -2
  152. package/build/docs/ibm-cloud-sdk-core.vpcinstancetokenmanager._constructor_.md +6 -2
  153. package/build/docs/ibm-cloud-sdk-core.vpcinstancetokenmanager.md +4 -4
  154. package/build/docs/ibm-cloud-sdk-core.vpcinstancetokenmanager.setiamprofilecrn.md +2 -2
  155. package/build/docs/ibm-cloud-sdk-core.vpcinstancetokenmanager.setiamprofileid.md +2 -2
  156. package/docs/ibm-cloud-sdk-core.api.json +516 -241
  157. package/es/auth/authenticators/authenticator-interface.d.ts +3 -4
  158. package/es/auth/authenticators/authenticator-interface.js +1 -1
  159. package/es/auth/authenticators/authenticator.d.ts +5 -9
  160. package/es/auth/authenticators/authenticator.js +4 -8
  161. package/es/auth/authenticators/basic-authenticator.d.ts +12 -12
  162. package/es/auth/authenticators/basic-authenticator.js +12 -12
  163. package/es/auth/authenticators/bearer-token-authenticator.d.ts +11 -14
  164. package/es/auth/authenticators/bearer-token-authenticator.js +11 -14
  165. package/es/auth/authenticators/cloud-pak-for-data-authenticator.d.ts +15 -15
  166. package/es/auth/authenticators/cloud-pak-for-data-authenticator.js +15 -15
  167. package/es/auth/authenticators/container-authenticator.d.ts +23 -23
  168. package/es/auth/authenticators/container-authenticator.js +23 -23
  169. package/es/auth/authenticators/iam-authenticator.d.ts +20 -20
  170. package/es/auth/authenticators/iam-authenticator.js +20 -20
  171. package/es/auth/authenticators/iam-request-based-authenticator.d.ts +23 -25
  172. package/es/auth/authenticators/iam-request-based-authenticator.js +23 -25
  173. package/es/auth/authenticators/token-request-based-authenticator.d.ts +19 -24
  174. package/es/auth/authenticators/token-request-based-authenticator.js +19 -24
  175. package/es/auth/authenticators/vpc-instance-authenticator.d.ts +17 -16
  176. package/es/auth/authenticators/vpc-instance-authenticator.js +17 -16
  177. package/es/auth/token-managers/container-token-manager.d.ts +23 -25
  178. package/es/auth/token-managers/container-token-manager.js +23 -25
  179. package/es/auth/token-managers/cp4d-token-manager.d.ts +13 -13
  180. package/es/auth/token-managers/cp4d-token-manager.js +13 -13
  181. package/es/auth/token-managers/iam-request-based-token-manager.d.ts +26 -31
  182. package/es/auth/token-managers/iam-request-based-token-manager.js +26 -31
  183. package/es/auth/token-managers/iam-token-manager.d.ts +17 -16
  184. package/es/auth/token-managers/iam-token-manager.js +17 -16
  185. package/es/auth/token-managers/jwt-token-manager.d.ts +10 -13
  186. package/es/auth/token-managers/jwt-token-manager.js +13 -16
  187. package/es/auth/token-managers/token-manager.d.ts +23 -35
  188. package/es/auth/token-managers/token-manager.js +22 -34
  189. package/es/auth/token-managers/vpc-instance-token-manager.d.ts +15 -15
  190. package/es/auth/token-managers/vpc-instance-token-manager.js +15 -15
  191. package/es/auth/utils/get-authenticator-from-environment.d.ts +2 -2
  192. package/es/auth/utils/get-authenticator-from-environment.js +2 -2
  193. package/es/auth/utils/helpers.d.ts +34 -32
  194. package/es/auth/utils/helpers.js +34 -32
  195. package/es/auth/utils/read-external-sources.d.ts +2 -1
  196. package/es/auth/utils/read-external-sources.js +5 -4
  197. package/es/lib/base-service.d.ts +31 -32
  198. package/es/lib/base-service.js +31 -32
  199. package/es/lib/content-type.js +5 -5
  200. package/es/lib/get-new-logger.d.ts +2 -2
  201. package/es/lib/get-new-logger.js +2 -2
  202. package/es/lib/helper.d.ts +24 -31
  203. package/es/lib/helper.js +25 -32
  204. package/es/lib/querystring.d.ts +1 -1
  205. package/es/lib/querystring.js +3 -3
  206. package/es/lib/request-wrapper.d.ts +4 -6
  207. package/es/lib/request-wrapper.js +17 -23
  208. package/es/lib/sdk-test-helpers.d.ts +14 -19
  209. package/es/lib/sdk-test-helpers.js +14 -19
  210. package/es/lib/stream-to-promise.d.ts +3 -3
  211. package/es/lib/stream-to-promise.js +3 -3
  212. package/es/tsdoc-metadata.json +1 -1
  213. package/etc/ibm-cloud-sdk-core.api.md +12 -12
  214. package/ibm-cloud-sdk-core.d.ts +1402 -1449
  215. package/lib/base-service.d.ts +31 -32
  216. package/lib/base-service.js +31 -32
  217. package/lib/content-type.js +5 -5
  218. package/lib/get-new-logger.d.ts +2 -2
  219. package/lib/get-new-logger.js +2 -2
  220. package/lib/helper.d.ts +24 -31
  221. package/lib/helper.js +25 -32
  222. package/lib/querystring.d.ts +1 -1
  223. package/lib/querystring.js +3 -3
  224. package/lib/request-wrapper.d.ts +4 -6
  225. package/lib/request-wrapper.js +17 -23
  226. package/lib/sdk-test-helpers.d.ts +14 -19
  227. package/lib/sdk-test-helpers.js +14 -19
  228. package/lib/stream-to-promise.d.ts +3 -3
  229. package/lib/stream-to-promise.js +3 -3
  230. package/package.json +2 -2
  231. package/temp/ibm-cloud-sdk-core.api.json +516 -241
  232. package/temp/ibm-cloud-sdk-core.api.md +12 -12
  233. package/MIGRATION-V1.md +0 -42
@@ -4,7 +4,7 @@
4
4
 
5
5
  ## IamRequestBasedAuthenticator class
6
6
 
7
- The \[\[IamRequestBasedAuthenticator\]\] provides shared configuration and functionality for authenticators that interact with the IAM service to inherit. This authenticator is not meant for use on its own.
7
+ The IamRequestBasedAuthenticator provides shared configuration and functionality for authenticators that interact with the IAM token service. This authenticator is not meant for use on its own.
8
8
 
9
9
  <b>Signature:</b>
10
10
 
@@ -17,22 +17,22 @@ export declare class IamRequestBasedAuthenticator extends TokenRequestBasedAuthe
17
17
 
18
18
  | Constructor | Modifiers | Description |
19
19
  | --- | --- | --- |
20
- | [(constructor)(options)](./ibm-cloud-sdk-core.iamrequestbasedauthenticator._constructor_.md) | | Create a new \[\[IamRequestBasedAuthenticator\]\] instance. |
20
+ | [(constructor)(options)](./ibm-cloud-sdk-core.iamrequestbasedauthenticator._constructor_.md) | | Create a new IamRequestBasedAuthenticator instance. |
21
21
 
22
22
  ## Properties
23
23
 
24
24
  | Property | Modifiers | Type | Description |
25
25
  | --- | --- | --- | --- |
26
- | [clientId](./ibm-cloud-sdk-core.iamrequestbasedauthenticator.clientid.md) | | string | |
27
- | [clientSecret](./ibm-cloud-sdk-core.iamrequestbasedauthenticator.clientsecret.md) | | string | |
28
- | [scope](./ibm-cloud-sdk-core.iamrequestbasedauthenticator.scope.md) | | string | |
29
- | [tokenManager](./ibm-cloud-sdk-core.iamrequestbasedauthenticator.tokenmanager.md) | | [IamRequestBasedTokenManager](./ibm-cloud-sdk-core.iamrequestbasedtokenmanager.md) | |
26
+ | [clientId](./ibm-cloud-sdk-core.iamrequestbasedauthenticator.clientid.md) | <code>protected</code> | string | |
27
+ | [clientSecret](./ibm-cloud-sdk-core.iamrequestbasedauthenticator.clientsecret.md) | <code>protected</code> | string | |
28
+ | [scope](./ibm-cloud-sdk-core.iamrequestbasedauthenticator.scope.md) | <code>protected</code> | string | |
29
+ | [tokenManager](./ibm-cloud-sdk-core.iamrequestbasedauthenticator.tokenmanager.md) | <code>protected</code> | [IamRequestBasedTokenManager](./ibm-cloud-sdk-core.iamrequestbasedtokenmanager.md) | |
30
30
 
31
31
  ## Methods
32
32
 
33
33
  | Method | Modifiers | Description |
34
34
  | --- | --- | --- |
35
35
  | [getRefreshToken()](./ibm-cloud-sdk-core.iamrequestbasedauthenticator.getrefreshtoken.md) | | Return the most recently stored refresh token. |
36
- | [setClientIdAndSecret(clientId, clientSecret)](./ibm-cloud-sdk-core.iamrequestbasedauthenticator.setclientidandsecret.md) | | Setter for the mutually inclusive <code>clientId</code> and the <code>clientSecret</code>. |
36
+ | [setClientIdAndSecret(clientId, clientSecret)](./ibm-cloud-sdk-core.iamrequestbasedauthenticator.setclientidandsecret.md) | | Setter for the mutually inclusive "clientId" and the "clientSecret" fields. |
37
37
  | [setScope(scope)](./ibm-cloud-sdk-core.iamrequestbasedauthenticator.setscope.md) | | Setter for the "scope" parameter to use when fetching the bearer token from the IAM token server. |
38
38
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  ## IamRequestBasedAuthenticator.setClientIdAndSecret() method
6
6
 
7
- Setter for the mutually inclusive `clientId` and the `clientSecret`<!-- -->.
7
+ Setter for the mutually inclusive "clientId" and the "clientSecret" fields.
8
8
 
9
9
  <b>Signature:</b>
10
10
 
@@ -16,8 +16,8 @@ setClientIdAndSecret(clientId: string, clientSecret: string): void;
16
16
 
17
17
  | Parameter | Type | Description |
18
18
  | --- | --- | --- |
19
- | clientId | string | The <code>clientId</code> and <code>clientSecret</code> fields are used to form a "basic" authorization header for IAM token requests. |
20
- | clientSecret | string | The <code>clientId</code> and <code>clientSecret</code> fields are used to form a "basic" authorization header for IAM token requests. |
19
+ | clientId | string | the "clientId" value used to form a Basic Authorization header for IAM token requests |
20
+ | clientSecret | string | the "clientSecret" value used to form a Basic Authorization header for IAM token requests |
21
21
 
22
22
  <b>Returns:</b>
23
23
 
@@ -16,7 +16,7 @@ setScope(scope: string): void;
16
16
 
17
17
  | Parameter | Type | Description |
18
18
  | --- | --- | --- |
19
- | scope | string | A space seperated string that makes up the scope parameter |
19
+ | scope | string | (optional) a space-separated string that specifies one or more scopes to be associated with IAM token requests |
20
20
 
21
21
  <b>Returns:</b>
22
22
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  ## IamRequestBasedTokenManager.(constructor)
6
6
 
7
- Create a new \[\[IamRequestBasedTokenManager\]\] instance.
7
+ Create a new IamRequestBasedTokenManager instance.
8
8
 
9
9
  <b>Signature:</b>
10
10
 
@@ -16,5 +16,9 @@ constructor(options: IamRequestOptions);
16
16
 
17
17
  | Parameter | Type | Description |
18
18
  | --- | --- | --- |
19
- | options | [IamRequestOptions](./ibm-cloud-sdk-core.iamrequestoptions.md) | Configuration options. |
19
+ | options | [IamRequestOptions](./ibm-cloud-sdk-core.iamrequestoptions.md) | Configuration options. This should be an object containing these fields: - url: (optional) the endpoint URL for the token service (default value: "https://iam.cloud.ibm.com") - disableSslVerification: (optional) a flag that indicates whether verification of the token server's SSL certificate should be disabled or not - headers: (optional) a set of HTTP headers to be sent with each request to the token service - clientId: (optional) the "clientId" and "clientSecret" fields are used to form a Basic Authorization header to be included in each request to the token service - clientSecret: (optional) the "clientId" and "clientSecret" fields are used to form a Basic Authorization header to be included in each request to the token service - scope: (optional) the "scope" parameter to use when fetching the bearer token from the token service |
20
+
21
+ ## Exceptions
22
+
23
+ Error: the configuration options are not valid.
20
24
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  ## IamRequestBasedTokenManager.getRefreshToken() method
6
6
 
7
- Return the most recently stored refresh token.
7
+ Returns the most recently stored refresh token.
8
8
 
9
9
  <b>Signature:</b>
10
10
 
@@ -15,5 +15,5 @@ getRefreshToken(): string;
15
15
 
16
16
  string
17
17
 
18
- {<!-- -->string<!-- -->}
18
+ the refresh token
19
19
 
@@ -17,22 +17,22 @@ export declare class IamRequestBasedTokenManager extends JwtTokenManager
17
17
 
18
18
  | Constructor | Modifiers | Description |
19
19
  | --- | --- | --- |
20
- | [(constructor)(options)](./ibm-cloud-sdk-core.iamrequestbasedtokenmanager._constructor_.md) | | Create a new \[\[IamRequestBasedTokenManager\]\] instance. |
20
+ | [(constructor)(options)](./ibm-cloud-sdk-core.iamrequestbasedtokenmanager._constructor_.md) | | Create a new IamRequestBasedTokenManager instance. |
21
21
 
22
22
  ## Properties
23
23
 
24
24
  | Property | Modifiers | Type | Description |
25
25
  | --- | --- | --- | --- |
26
- | [formData](./ibm-cloud-sdk-core.iamrequestbasedtokenmanager.formdata.md) | | any | |
27
- | [refreshToken](./ibm-cloud-sdk-core.iamrequestbasedtokenmanager.refreshtoken.md) | | string | |
26
+ | [formData](./ibm-cloud-sdk-core.iamrequestbasedtokenmanager.formdata.md) | <code>protected</code> | any | |
27
+ | [refreshToken](./ibm-cloud-sdk-core.iamrequestbasedtokenmanager.refreshtoken.md) | <code>protected</code> | string | |
28
28
 
29
29
  ## Methods
30
30
 
31
31
  | Method | Modifiers | Description |
32
32
  | --- | --- | --- |
33
- | [getRefreshToken()](./ibm-cloud-sdk-core.iamrequestbasedtokenmanager.getrefreshtoken.md) | | Return the most recently stored refresh token. |
34
- | [requestToken()](./ibm-cloud-sdk-core.iamrequestbasedtokenmanager.requesttoken.md) | | Request an IAM token using an API key. |
35
- | [saveTokenInfo(tokenResponse)](./ibm-cloud-sdk-core.iamrequestbasedtokenmanager.savetokeninfo.md) | | Extend this method from the parent class to extract the refresh token from the request and save it. |
36
- | [setClientIdAndSecret(clientId, clientSecret)](./ibm-cloud-sdk-core.iamrequestbasedtokenmanager.setclientidandsecret.md) | | Set the IAM <code>clientId</code> and <code>clientSecret</code> values. These values are used to compute the Authorization header used when retrieving the IAM access token. If these values are not set, no Authorization header will be set on the request (it is not required). |
37
- | [setScope(scope)](./ibm-cloud-sdk-core.iamrequestbasedtokenmanager.setscope.md) | | Set the IAM <code>scope</code> value. This value is the form parameter to use when fetching the bearer token from the IAM token server. |
33
+ | [getRefreshToken()](./ibm-cloud-sdk-core.iamrequestbasedtokenmanager.getrefreshtoken.md) | | Returns the most recently stored refresh token. |
34
+ | [requestToken()](./ibm-cloud-sdk-core.iamrequestbasedtokenmanager.requesttoken.md) | <code>protected</code> | Request an IAM access token using an API key. |
35
+ | [saveTokenInfo(tokenResponse)](./ibm-cloud-sdk-core.iamrequestbasedtokenmanager.savetokeninfo.md) | <code>protected</code> | Extend this method from the parent class to extract the refresh token from the request and save it. |
36
+ | [setClientIdAndSecret(clientId, clientSecret)](./ibm-cloud-sdk-core.iamrequestbasedtokenmanager.setclientidandsecret.md) | | Sets the IAM "clientId" and "clientSecret" values. These values are used to compute the Authorization header used when retrieving the IAM access token. If these values are not set, no Authorization header will be set on the request (it is not required). |
37
+ | [setScope(scope)](./ibm-cloud-sdk-core.iamrequestbasedtokenmanager.setscope.md) | | Sets the IAM "scope" value. This value is sent as the "scope" form parameter within the request sent to the IAM token service. |
38
38
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  ## IamRequestBasedTokenManager.requestToken() method
6
6
 
7
- Request an IAM token using an API key.
7
+ Request an IAM access token using an API key.
8
8
 
9
9
  <b>Signature:</b>
10
10
 
@@ -15,5 +15,5 @@ protected requestToken(): Promise<any>;
15
15
 
16
16
  Promise&lt;any&gt;
17
17
 
18
- {<!-- -->Promise<!-- -->}
18
+ Promise
19
19
 
@@ -16,11 +16,9 @@ protected saveTokenInfo(tokenResponse: any): void;
16
16
 
17
17
  | Parameter | Type | Description |
18
18
  | --- | --- | --- |
19
- | tokenResponse | any | Response object from JWT service request |
19
+ | tokenResponse | any | the response object from JWT service request |
20
20
 
21
21
  <b>Returns:</b>
22
22
 
23
23
  void
24
24
 
25
- {<!-- -->void<!-- -->}
26
-
@@ -4,7 +4,7 @@
4
4
 
5
5
  ## IamRequestBasedTokenManager.setClientIdAndSecret() method
6
6
 
7
- Set the IAM `clientId` and `clientSecret` values. These values are used to compute the Authorization header used when retrieving the IAM access token. If these values are not set, no Authorization header will be set on the request (it is not required).
7
+ Sets the IAM "clientId" and "clientSecret" values. These values are used to compute the Authorization header used when retrieving the IAM access token. If these values are not set, no Authorization header will be set on the request (it is not required).
8
8
 
9
9
  <b>Signature:</b>
10
10
 
@@ -16,12 +16,10 @@ setClientIdAndSecret(clientId: string, clientSecret: string): void;
16
16
 
17
17
  | Parameter | Type | Description |
18
18
  | --- | --- | --- |
19
- | clientId | string | The client id. |
20
- | clientSecret | string | The client secret. |
19
+ | clientId | string | the client id. |
20
+ | clientSecret | string | the client secret. |
21
21
 
22
22
  <b>Returns:</b>
23
23
 
24
24
  void
25
25
 
26
- {<!-- -->void<!-- -->}
27
-
@@ -4,7 +4,7 @@
4
4
 
5
5
  ## IamRequestBasedTokenManager.setScope() method
6
6
 
7
- Set the IAM `scope` value. This value is the form parameter to use when fetching the bearer token from the IAM token server.
7
+ Sets the IAM "scope" value. This value is sent as the "scope" form parameter within the request sent to the IAM token service.
8
8
 
9
9
  <b>Signature:</b>
10
10
 
@@ -16,11 +16,9 @@ setScope(scope: string): void;
16
16
 
17
17
  | Parameter | Type | Description |
18
18
  | --- | --- | --- |
19
- | scope | string | A space seperated string that makes up the scope parameter. |
19
+ | scope | string | a space-separated string that contains one or more scope names |
20
20
 
21
21
  <b>Returns:</b>
22
22
 
23
23
  void
24
24
 
25
- {<!-- -->void<!-- -->}
26
-
@@ -15,9 +15,9 @@ export interface IamRequestOptions extends JwtTokenManagerOptions
15
15
 
16
16
  ## Properties
17
17
 
18
- | Property | Type | Description |
19
- | --- | --- | --- |
20
- | [clientId?](./ibm-cloud-sdk-core.iamrequestoptions.clientid.md) | string | <i>(Optional)</i> |
21
- | [clientSecret?](./ibm-cloud-sdk-core.iamrequestoptions.clientsecret.md) | string | <i>(Optional)</i> |
22
- | [scope?](./ibm-cloud-sdk-core.iamrequestoptions.scope.md) | string | <i>(Optional)</i> |
18
+ | Property | Modifiers | Type | Description |
19
+ | --- | --- | --- | --- |
20
+ | [clientId?](./ibm-cloud-sdk-core.iamrequestoptions.clientid.md) | | string | <i>(Optional)</i> |
21
+ | [clientSecret?](./ibm-cloud-sdk-core.iamrequestoptions.clientsecret.md) | | string | <i>(Optional)</i> |
22
+ | [scope?](./ibm-cloud-sdk-core.iamrequestoptions.scope.md) | | string | <i>(Optional)</i> |
23
23
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  ## IamTokenManager.(constructor)
6
6
 
7
- Create a new \[\[IamTokenManager\]\] instance.
7
+ Create a new IamTokenManager instance.
8
8
 
9
9
  <b>Signature:</b>
10
10
 
@@ -16,5 +16,9 @@ constructor(options: Options);
16
16
 
17
17
  | Parameter | Type | Description |
18
18
  | --- | --- | --- |
19
- | options | Options | Configuration options. |
19
+ | options | Options | Configuration options. This should be an object containing these fields: - url: (optional) the endpoint URL for the IAM token service (default value: "https://iam.cloud.ibm.com") - apikey: (required) the IAM api key - disableSslVerification: (optional) a flag that indicates whether verification of the token server's SSL certificate should be disabled or not - headers: (optional) a set of HTTP headers to be sent with each request to the token service - clientId: (optional) the "clientId" and "clientSecret" fields are used to form a Basic Authorization header to be included in each request to the token service - clientSecret: (optional) the "clientId" and "clientSecret" fields are used to form a Basic Authorization header to be included in each request to the token service - scope: (optional) the "scope" parameter to use when fetching the bearer token from the token service |
20
+
21
+ ## Exceptions
22
+
23
+ Error: the configuration options are not valid.
20
24
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  ## IamTokenManager class
6
6
 
7
- The IAMTokenManager takes an api key and performs the necessary interactions with the IAM token service to obtain and store a suitable bearer token. Additionally, the IAMTokenManager will retrieve bearer tokens via basic auth using a supplied `clientId` and `clientSecret` pair.
7
+ The IAMTokenManager takes an api key and performs the necessary interactions with the IAM token service to obtain and store a suitable bearer token. Additionally, the IAMTokenManager will retrieve bearer tokens via basic auth using a supplied "clientId" and "clientSecret" pair.
8
8
 
9
9
  <b>Signature:</b>
10
10
 
@@ -17,11 +17,11 @@ export declare class IamTokenManager extends IamRequestBasedTokenManager
17
17
 
18
18
  | Constructor | Modifiers | Description |
19
19
  | --- | --- | --- |
20
- | [(constructor)(options)](./ibm-cloud-sdk-core.iamtokenmanager._constructor_.md) | | Create a new \[\[IamTokenManager\]\] instance. |
20
+ | [(constructor)(options)](./ibm-cloud-sdk-core.iamtokenmanager._constructor_.md) | | Create a new IamTokenManager instance. |
21
21
 
22
22
  ## Properties
23
23
 
24
24
  | Property | Modifiers | Type | Description |
25
25
  | --- | --- | --- | --- |
26
- | [requiredOptions](./ibm-cloud-sdk-core.iamtokenmanager.requiredoptions.md) | | string\[\] | |
26
+ | [requiredOptions](./ibm-cloud-sdk-core.iamtokenmanager.requiredoptions.md) | <code>protected</code> | string\[\] | |
27
27
 
@@ -22,5 +22,5 @@ export declare function isHTML(text: string): boolean;
22
22
 
23
23
  boolean
24
24
 
25
- {<!-- -->boolean<!-- -->} true if 'text' has html tags
25
+ true if 'text' has html tags
26
26
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  ## JwtTokenManager.(constructor)
6
6
 
7
- Create a new \[\[JwtTokenManager\]\] instance.
7
+ Create a new JwtTokenManager instance.
8
8
 
9
9
  <b>Signature:</b>
10
10
 
@@ -16,5 +16,5 @@ constructor(options: JwtTokenManagerOptions);
16
16
 
17
17
  | Parameter | Type | Description |
18
18
  | --- | --- | --- |
19
- | options | [JwtTokenManagerOptions](./ibm-cloud-sdk-core.jwttokenmanageroptions.md) | Configuration options. |
19
+ | options | [JwtTokenManagerOptions](./ibm-cloud-sdk-core.jwttokenmanageroptions.md) | Configuration options. This should be an object containing these fields: - url: (optional) the endpoint URL for the token service - disableSslVerification: (optional) a flag that indicates whether verification of the token server's SSL certificate should be disabled or not - headers: (optional) a set of HTTP headers to be sent with each request to the token service |
20
20
 
@@ -17,19 +17,19 @@ export declare class JwtTokenManager extends TokenManager
17
17
 
18
18
  | Constructor | Modifiers | Description |
19
19
  | --- | --- | --- |
20
- | [(constructor)(options)](./ibm-cloud-sdk-core.jwttokenmanager._constructor_.md) | | Create a new \[\[JwtTokenManager\]\] instance. |
20
+ | [(constructor)(options)](./ibm-cloud-sdk-core.jwttokenmanager._constructor_.md) | | Create a new JwtTokenManager instance. |
21
21
 
22
22
  ## Properties
23
23
 
24
24
  | Property | Modifiers | Type | Description |
25
25
  | --- | --- | --- | --- |
26
- | [tokenInfo](./ibm-cloud-sdk-core.jwttokenmanager.tokeninfo.md) | | any | |
27
- | [tokenName](./ibm-cloud-sdk-core.jwttokenmanager.tokenname.md) | | string | |
26
+ | [tokenInfo](./ibm-cloud-sdk-core.jwttokenmanager.tokeninfo.md) | <code>protected</code> | any | |
27
+ | [tokenName](./ibm-cloud-sdk-core.jwttokenmanager.tokenname.md) | <code>protected</code> | string | |
28
28
 
29
29
  ## Methods
30
30
 
31
31
  | Method | Modifiers | Description |
32
32
  | --- | --- | --- |
33
- | [requestToken()](./ibm-cloud-sdk-core.jwttokenmanager.requesttoken.md) | | Request a JWT using an API key. |
34
- | [saveTokenInfo(tokenResponse)](./ibm-cloud-sdk-core.jwttokenmanager.savetokeninfo.md) | | Save the JWT service response and the calculated expiration time to the object's state. |
33
+ | [requestToken()](./ibm-cloud-sdk-core.jwttokenmanager.requesttoken.md) | <code>protected</code> | Request a JWT using an API key. |
34
+ | [saveTokenInfo(tokenResponse)](./ibm-cloud-sdk-core.jwttokenmanager.savetokeninfo.md) | <code>protected</code> | Save the JWT service response and the calculated expiration time to the object's state. |
35
35
 
@@ -15,5 +15,5 @@ protected requestToken(): Promise<any>;
15
15
 
16
16
  Promise&lt;any&gt;
17
17
 
18
- {<!-- -->Promise<!-- -->}
18
+ Promise
19
19
 
@@ -16,11 +16,9 @@ protected saveTokenInfo(tokenResponse: any): void;
16
16
 
17
17
  | Parameter | Type | Description |
18
18
  | --- | --- | --- |
19
- | tokenResponse | any | Response object from JWT service request |
19
+ | tokenResponse | any | the response object from JWT service request |
20
20
 
21
21
  <b>Returns:</b>
22
22
 
23
23
  void
24
24
 
25
- {<!-- -->void<!-- -->}
26
-
@@ -9,56 +9,56 @@
9
9
  | Class | Description |
10
10
  | --- | --- |
11
11
  | [Authenticator](./ibm-cloud-sdk-core.authenticator.md) | Base Authenticator class for other Authenticators to extend. Not intended to be used as a stand-alone authenticator. |
12
- | [BaseService](./ibm-cloud-sdk-core.baseservice.md) | Common functionality shared by generated service classes.<!-- -->The base service authenticates requests via its authenticator, and sends them to the service endpoint. |
13
- | [BasicAuthenticator](./ibm-cloud-sdk-core.basicauthenticator.md) | The BasicAuthenticator is used to add basic authentication information to requests.<!-- -->Basic Authorization will be sent as an Authorization header in the form:<!-- -->Authorization: Basic &lt;<!-- -->encoded username and password<!-- -->&gt; |
14
- | [BearerTokenAuthenticator](./ibm-cloud-sdk-core.bearertokenauthenticator.md) | The BearerTokenAuthenticator will set a user-provided bearer token in requests.<!-- -->The bearer token will be sent as an Authorization header in the form:<!-- -->Authorization: Bearer <bearer-token> |
15
- | [CloudPakForDataAuthenticator](./ibm-cloud-sdk-core.cloudpakfordataauthenticator.md) | The \[\[CloudPakForDataAuthenticator\]\] will either use a username/password pair or a username/apikey pair to obtain a bearer token from a token server. When the bearer token expires, a new token is obtained from the token server.<!-- -->The bearer token will be sent as an Authorization header in the form:<!-- -->Authorization: Bearer <bearer-token> |
16
- | [ContainerAuthenticator](./ibm-cloud-sdk-core.containerauthenticator.md) | The \[\[ContainerAuthenticator\]\] will read a compute resource token from the file system and use this value to obtain a bearer token from the IAM token server. When the bearer token expires, a new token is obtained from the token server.<!-- -->The bearer token will be sent as an Authorization header in the form:<!-- -->Authorization: Bearer <bearer-token> |
12
+ | [BaseService](./ibm-cloud-sdk-core.baseservice.md) | <p>Common functionality shared by generated service classes.</p><p>The base service authenticates requests via its authenticator, and sends them to the service endpoint.</p> |
13
+ | [BasicAuthenticator](./ibm-cloud-sdk-core.basicauthenticator.md) | <p>The BasicAuthenticator is used to add basic authentication information to requests.</p><p>Basic Authorization will be sent as an Authorization header in the form:</p><p>Authorization: Basic &lt;<!-- -->encoded username and password<!-- -->&gt;</p> |
14
+ | [BearerTokenAuthenticator](./ibm-cloud-sdk-core.bearertokenauthenticator.md) | <p>The BearerTokenAuthenticator will set a user-provided bearer token in requests.</p><p>The bearer token will be sent as an Authorization header in the form:</p><p>Authorization: Bearer &lt;<!-- -->bearer-token<!-- -->&gt;</p> |
15
+ | [CloudPakForDataAuthenticator](./ibm-cloud-sdk-core.cloudpakfordataauthenticator.md) | <p>The CloudPakForDataAuthenticator will either use a username/password pair or a username/apikey pair to obtain a bearer token from a token server. When the bearer token expires, a new token is obtained from the token server.</p><p>The bearer token will be sent as an Authorization header in the form:</p><p>Authorization: Bearer &lt;<!-- -->bearer-token<!-- -->&gt;</p> |
16
+ | [ContainerAuthenticator](./ibm-cloud-sdk-core.containerauthenticator.md) | <p>The ContainerAuthenticator will read a compute resource token from the file system and use this value to obtain a bearer token from the IAM token server. When the bearer token expires, a new token is obtained from the token server.</p><p>The bearer token will be sent as an Authorization header in the form:</p><p>Authorization: Bearer &lt;<!-- -->bearer-token<!-- -->&gt;</p> |
17
17
  | [ContainerTokenManager](./ibm-cloud-sdk-core.containertokenmanager.md) | The ContainerTokenManager retrieves a compute resource token from a file on the container. This token is used to perform the necessary interactions with the IAM token service to obtain and store a suitable bearer (access) token. |
18
- | [Cp4dTokenManager](./ibm-cloud-sdk-core.cp4dtokenmanager.md) | Token Manager of CloudPak for data.<!-- -->The Token Manager performs basic auth with a username and password to acquire CP4D tokens. |
19
- | [IamAuthenticator](./ibm-cloud-sdk-core.iamauthenticator.md) | The \[\[IamAuthenticator\]\] will use the user-supplied <code>apikey</code> values to obtain a bearer token from a token server. When the bearer token expires, a new token is obtained from the token server. If specified, the optional, mutually inclusive <code>clientId</code> and<code>clientSecret</code> pair can be used to influence rate-limiting for requests to the IAM token server.<!-- -->The bearer token will be sent as an Authorization header in the form:<!-- -->Authorization: Bearer <bearer-token> |
20
- | [IamRequestBasedAuthenticator](./ibm-cloud-sdk-core.iamrequestbasedauthenticator.md) | The \[\[IamRequestBasedAuthenticator\]\] provides shared configuration and functionality for authenticators that interact with the IAM service to inherit. This authenticator is not meant for use on its own. |
18
+ | [Cp4dTokenManager](./ibm-cloud-sdk-core.cp4dtokenmanager.md) | <p>Token Manager of CloudPak for data.</p><p>The Token Manager performs basic auth with a username and password to acquire CP4D tokens.</p> |
19
+ | [IamAuthenticator](./ibm-cloud-sdk-core.iamauthenticator.md) | <p>The IamAuthenticator will use the user-supplied <code>apikey</code> value to obtain a bearer token from a token server. When the bearer token expires, a new token is obtained from the token server. If specified, the optional, mutually inclusive "clientId" and "clientSecret" pair can be used to influence rate-limiting for requests to the IAM token server.</p><p>The bearer token will be sent as an Authorization header in the form:</p><p>Authorization: Bearer &lt;<!-- -->bearer-token<!-- -->&gt;</p> |
20
+ | [IamRequestBasedAuthenticator](./ibm-cloud-sdk-core.iamrequestbasedauthenticator.md) | The IamRequestBasedAuthenticator provides shared configuration and functionality for authenticators that interact with the IAM token service. This authenticator is not meant for use on its own. |
21
21
  | [IamRequestBasedTokenManager](./ibm-cloud-sdk-core.iamrequestbasedtokenmanager.md) | The IamRequestBasedTokenManager class contains code relevant to any token manager that interacts with the IAM service to manage a token. It stores information relevant to all IAM requests, such as the client ID and secret, and performs the token request with a set of request options common to any IAM token management scheme. It is intended that this class be extended with specific implementations. |
22
- | [IamTokenManager](./ibm-cloud-sdk-core.iamtokenmanager.md) | The IAMTokenManager takes an api key and performs the necessary interactions with the IAM token service to obtain and store a suitable bearer token. Additionally, the IAMTokenManager will retrieve bearer tokens via basic auth using a supplied <code>clientId</code> and <code>clientSecret</code> pair. |
22
+ | [IamTokenManager](./ibm-cloud-sdk-core.iamtokenmanager.md) | The IAMTokenManager takes an api key and performs the necessary interactions with the IAM token service to obtain and store a suitable bearer token. Additionally, the IAMTokenManager will retrieve bearer tokens via basic auth using a supplied "clientId" and "clientSecret" pair. |
23
23
  | [JwtTokenManager](./ibm-cloud-sdk-core.jwttokenmanager.md) | A class for shared functionality for parsing, storing, and requesting JWT tokens. Intended to be used as a parent to be extended for token request management. Child classes should implement <code>requestToken()</code> to retrieve the bearer token from intended sources. |
24
24
  | [NoAuthAuthenticator](./ibm-cloud-sdk-core.noauthauthenticator.md) | NoAuthAuthenticator is a placeholder authenticator implementation which performs no authentication of outgoing REST API requests. It might be useful during development and testing. |
25
- | [TokenManager](./ibm-cloud-sdk-core.tokenmanager.md) | A class for shared functionality for storing, and requesting tokens. Intended to be used as a parent to be extended for token request management. Child classes should implement <code>requestToken()</code> to retrieve the token from intended sources and <code>saveTokenInfo(tokenResponse)</code> to parse and save token information from the response. |
26
- | [TokenRequestBasedAuthenticator](./ibm-cloud-sdk-core.tokenrequestbasedauthenticator.md) | Class for common functionality shared by token-request authenticators. \[\[TokenRequestBasedAuthenticator\]\]s use token managers to retrieve, store, and refresh tokens. Not intended to be used as stand-alone authenticator, but as parent class to authenticators that have their own token manager implementations.<!-- -->The tokens will be added as an Authorization headers in the form:<!-- -->Authorization: Bearer <bearer-token> |
27
- | [VpcInstanceAuthenticator](./ibm-cloud-sdk-core.vpcinstanceauthenticator.md) | The \[\[VpcInstanceAuthenticator\]\] implements an authentication scheme in which it retrieves an "instance identity token" and exchanges that for an IAM access token using the VPC Instance Metadata Service API which is available on the local compute resource (VM). The instance identity token is similar to an IAM apikey, except that it is managed automatically by the compute resource provider (VPC).<!-- -->The resulting IAM access token is then added to outbound requests in an Authorization header<!-- -->Authorization: Bearer <access-token> |
25
+ | [TokenManager](./ibm-cloud-sdk-core.tokenmanager.md) | A class for shared functionality for storing, and requesting tokens. Intended to be used as a parent to be extended for token request management. Child classes should implement "requestToken()" to retrieve the token from intended sources and "saveTokenInfo(tokenResponse)" to parse and save token information from the response. |
26
+ | [TokenRequestBasedAuthenticator](./ibm-cloud-sdk-core.tokenrequestbasedauthenticator.md) | <p>Class for common functionality shared by token-request authenticators. TokenRequestBasedAuthenticators use token managers to retrieve, store, and refresh tokens. Not intended to be used as stand-alone authenticator, but as base class to authenticators that have their own token manager implementations.</p><p>The token will be added as an Authorization header in the form:</p><p>Authorization: Bearer &lt;<!-- -->bearer-token<!-- -->&gt;</p> |
27
+ | [VpcInstanceAuthenticator](./ibm-cloud-sdk-core.vpcinstanceauthenticator.md) | <p>The VpcInstanceAuthenticator implements an authentication scheme in which it retrieves an "instance identity token" and exchanges that for an IAM access token using the VPC Instance Metadata Service API which is available on the local compute resource (VM). The instance identity token is similar to an IAM apikey, except that it is managed automatically by the compute resource provider (VPC).</p><p>The resulting IAM access token is then added to outbound requests in an Authorization header</p><p>Authorization: Bearer &lt;<!-- -->access-token<!-- -->&gt;</p> |
28
28
  | [VpcInstanceTokenManager](./ibm-cloud-sdk-core.vpcinstancetokenmanager.md) | Token Manager for VPC Instance Authentication. |
29
29
 
30
30
  ## Functions
31
31
 
32
32
  | Function | Description |
33
33
  | --- | --- |
34
- | [atLeastOne(a, b)](./ibm-cloud-sdk-core.atleastone.md) | Check for at least one of two elements being defined. Returns true if a or b is defined. Returns false if both are undefined. |
35
- | [atMostOne(a, b)](./ibm-cloud-sdk-core.atmostone.md) | Verify that both properties are not specified. Returns true if only a, only b, or neither is defined. Returns false if both are defined. |
34
+ | [atLeastOne(a, b)](./ibm-cloud-sdk-core.atleastone.md) | Checks for at least one of two elements being defined. |
35
+ | [atMostOne(a, b)](./ibm-cloud-sdk-core.atmostone.md) | Verifies that both properties are not specified. |
36
36
  | [buildRequestFileObject(fileParam)](./ibm-cloud-sdk-core.buildrequestfileobject.md) | This function builds a <code>form-data</code> object for each file parameter. |
37
37
  | [checkCredentials(obj, credsToCheck)](./ibm-cloud-sdk-core.checkcredentials.md) | Checks credentials for common user mistakes of copying {<!-- -->, }<!-- -->, or " characters from the documentation |
38
38
  | [computeBasicAuthHeader(username, password)](./ibm-cloud-sdk-core.computebasicauthheader.md) | Compute and return a Basic Authorization header from a username and password. |
39
39
  | [constructFilepath(filepath)](./ibm-cloud-sdk-core.constructfilepath.md) | |
40
40
  | [constructServiceUrl(parameterizedUrl, defaultUrlVariables, providedUrlVariables)](./ibm-cloud-sdk-core.constructserviceurl.md) | Constructs a service URL by formatting a parameterized URL. |
41
41
  | [fileExistsAtPath(filepath)](./ibm-cloud-sdk-core.fileexistsatpath.md) | |
42
- | [getAuthenticatorFromEnvironment(serviceName)](./ibm-cloud-sdk-core.getauthenticatorfromenvironment.md) | Look for external configuration of authenticator.<!-- -->Try to get authenticator from external sources, with the following priority: 1. Credentials file (ibm-credentials.env) 2. Environment variables 3. VCAP Services (Cloud Foundry) |
42
+ | [getAuthenticatorFromEnvironment(serviceName)](./ibm-cloud-sdk-core.getauthenticatorfromenvironment.md) | <p>Look for external configuration of authenticator.</p><p>Try to get authenticator from external sources, with the following priority: 1. Credentials file (ibm-credentials.env) 2. Environment variables 3. VCAP Services (Cloud Foundry)</p> |
43
43
  | [getContentType(inputData)](./ibm-cloud-sdk-core.getcontenttype.md) | This function retrieves the content type of the input. |
44
- | [getCurrentTime()](./ibm-cloud-sdk-core.getcurrenttime.md) | Get the current time |
44
+ | [getCurrentTime()](./ibm-cloud-sdk-core.getcurrenttime.md) | Gets the current time. |
45
45
  | [getFormat(params, formats)](./ibm-cloud-sdk-core.getformat.md) | Returns the first match from formats that is key the params map otherwise null |
46
46
  | [getMissingParams(params, requires)](./ibm-cloud-sdk-core.getmissingparams.md) | Validates that all required params are provided |
47
- | [getNewLogger(moduleName)](./ibm-cloud-sdk-core.getnewlogger.md) | Return a new logger, formatted with a particular name. The logging functions, in order of increasing verbosity, are: <code>error</code>, <code>warn</code>, <code>info</code>, <code>verbose</code>, and <code>debug</code>.<!-- -->The logger will be an instance of the <code>debug</code> package and utilizes its support for configuration with environment variables.<!-- -->Additionally, the logger will be turned on automatically if the "NODE\_DEBUG" environment variable is set to "axios". |
47
+ | [getNewLogger(moduleName)](./ibm-cloud-sdk-core.getnewlogger.md) | <p>Return a new logger, formatted with a particular name. The logging functions, in order of increasing verbosity, are: <code>error</code>, <code>warn</code>, <code>info</code>, <code>verbose</code>, and <code>debug</code>.</p><p>The logger will be an instance of the <code>debug</code> package and utilizes its support for configuration with environment variables.</p><p>Additionally, the logger will be turned on automatically if the "NODE\_DEBUG" environment variable is set to "axios".</p> |
48
48
  | [getQueryParam(urlStr, param)](./ibm-cloud-sdk-core.getqueryparam.md) | Return a query parameter value from a URL |
49
49
  | [isEmptyObject(obj)](./ibm-cloud-sdk-core.isemptyobject.md) | |
50
50
  | [isFileData(obj)](./ibm-cloud-sdk-core.isfiledata.md) | |
51
51
  | [isFileWithMetadata(obj)](./ibm-cloud-sdk-core.isfilewithmetadata.md) | |
52
52
  | [isHTML(text)](./ibm-cloud-sdk-core.ishtml.md) | Return true if 'text' is html |
53
- | [onlyOne(a, b)](./ibm-cloud-sdk-core.onlyone.md) | Check for only one of two elements being defined. Returns true if a is defined and b is undefined, or vice versa. Returns false if both are defined or both are undefined. |
53
+ | [onlyOne(a, b)](./ibm-cloud-sdk-core.onlyone.md) | Checks for only one of two elements being defined. Returns true if a is defined and b is undefined, or vice versa. Returns false if both are defined or both are undefined. |
54
54
  | [readCredentialsFile()](./ibm-cloud-sdk-core.readcredentialsfile.md) | Return a config object based on a credentials file. Credentials files can be specified filepath via the environment variable: <code>IBM_CREDENTIALS_FILE</code>. |
55
55
  | [readCrTokenFile(filepath)](./ibm-cloud-sdk-core.readcrtokenfile.md) | |
56
- | [readExternalSources(serviceName)](./ibm-cloud-sdk-core.readexternalsources.md) | Read properties stored in external sources like Environment Variables, the credentials file, VCAP services, etc. and return them as an object. The keys of this object will have the service name prefix removed and will be converted to lower camel case.<!-- -->Only one source will be used at a time. |
57
- | [removeSuffix(str, suffix)](./ibm-cloud-sdk-core.removesuffix.md) | Remove a given suffix if it exists. |
56
+ | [readExternalSources(serviceName)](./ibm-cloud-sdk-core.readexternalsources.md) | <p>Read properties stored in external sources like Environment Variables, the credentials file, VCAP services, etc. and return them as an object. The keys of this object will have the service name prefix removed and will be converted to lower camel case.</p><p>Only one source will be used at a time.</p> |
57
+ | [removeSuffix(str, suffix)](./ibm-cloud-sdk-core.removesuffix.md) | Removes a given suffix if it exists. |
58
58
  | [streamToPromise(stream)](./ibm-cloud-sdk-core.streamtopromise.md) | Helper method that can be bound to a stream - it captures all of the results, and returns a promise that resolves to the final buffer or array of text chunks Essentially a smaller version of concat-stream wrapped in a promise |
59
- | [stripTrailingSlash(url)](./ibm-cloud-sdk-core.striptrailingslash.md) | |
59
+ | [stripTrailingSlash(url)](./ibm-cloud-sdk-core.striptrailingslash.md) | Strips trailing slashes from "url", if present. |
60
60
  | [toLowerKeys(obj)](./ibm-cloud-sdk-core.tolowerkeys.md) | This function converts an object's keys to lower case. note: does not convert nested keys |
61
- | [validateInput(options, requiredOptions)](./ibm-cloud-sdk-core.validateinput.md) | |
61
+ | [validateInput(options, requiredOptions)](./ibm-cloud-sdk-core.validateinput.md) | Validates "options". |
62
62
  | [validateParams(params, requiredParams, allParams)](./ibm-cloud-sdk-core.validateparams.md) | Validates that "params" contains a value for each key listed in "requiredParams", and that each key contained in "params" is a valid key listed in "allParams". In essence, we want params to contain only valid keys and we want params to contain at least the required keys. |
63
63
 
64
64
  ## Interfaces
@@ -66,7 +66,7 @@
66
66
  | Interface | Description |
67
67
  | --- | --- |
68
68
  | [AuthenticatorInterface](./ibm-cloud-sdk-core.authenticatorinterface.md) | This interface defines the common methods associated with an Authenticator implementation. |
69
- | [FileObject](./ibm-cloud-sdk-core.fileobject.md) | (C) Copyright IBM Corp. 2014, 2021.<!-- -->Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at<!-- -->http://www.apache.org/licenses/LICENSE-2.0<!-- -->Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. |
69
+ | [FileObject](./ibm-cloud-sdk-core.fileobject.md) | <p>(C) Copyright IBM Corp. 2014, 2022.</p><p>Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at</p><p>http://www.apache.org/licenses/LICENSE-2.0</p><p>Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.</p> |
70
70
  | [FileOptions](./ibm-cloud-sdk-core.fileoptions.md) | |
71
71
  | [FileStream](./ibm-cloud-sdk-core.filestream.md) | |
72
72
  | [FileWithMetadata](./ibm-cloud-sdk-core.filewithmetadata.md) | |
@@ -85,7 +85,7 @@
85
85
  | Variable | Description |
86
86
  | --- | --- |
87
87
  | [contentType](./ibm-cloud-sdk-core.contenttype.md) | |
88
- | [qs](./ibm-cloud-sdk-core.qs.md) | (C) Copyright IBM Corp. 2019, 2021.<!-- -->Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at<!-- -->http://www.apache.org/licenses/LICENSE-2.0<!-- -->Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. |
88
+ | [qs](./ibm-cloud-sdk-core.qs.md) | <p>(C) Copyright IBM Corp. 2019, 2022.</p><p>Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at</p><p>http://www.apache.org/licenses/LICENSE-2.0</p><p>Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.</p> |
89
89
 
90
90
  ## Type Aliases
91
91
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  ## onlyOne() function
6
6
 
7
- Check for only one of two elements being defined. Returns true if a is defined and b is undefined, or vice versa. Returns false if both are defined or both are undefined.
7
+ Checks for only one of two elements being defined. Returns true if a is defined and b is undefined, or vice versa. Returns false if both are defined or both are undefined.
8
8
 
9
9
  <b>Signature:</b>
10
10
 
@@ -23,5 +23,5 @@ export declare function onlyOne(a: any, b: any): boolean;
23
23
 
24
24
  boolean
25
25
 
26
- {<!-- -->boolean<!-- -->}
26
+ true if and only if exactly one of a or b is defined
27
27
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  ## qs variable
6
6
 
7
- (C) Copyright IBM Corp. 2019, 2021.
7
+ (C) Copyright IBM Corp. 2019, 2022.
8
8
 
9
9
  Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
10
10
 
@@ -18,7 +18,7 @@ export declare function readExternalSources(serviceName: string): any;
18
18
 
19
19
  | Parameter | Type | Description |
20
20
  | --- | --- | --- |
21
- | serviceName | string | The service name prefix. |
21
+ | serviceName | string | the service name prefix |
22
22
 
23
23
  <b>Returns:</b>
24
24
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  ## removeSuffix() function
6
6
 
7
- Remove a given suffix if it exists.
7
+ Removes a given suffix if it exists.
8
8
 
9
9
  <b>Signature:</b>
10
10
 
@@ -16,12 +16,12 @@ export declare function removeSuffix(str: string, suffix: string): string;
16
16
 
17
17
  | Parameter | Type | Description |
18
18
  | --- | --- | --- |
19
- | str | string | The base string to operate on |
20
- | suffix | string | The suffix to remove, if present |
19
+ | str | string | the base string to operate on |
20
+ | suffix | string | the suffix to remove, if present |
21
21
 
22
22
  <b>Returns:</b>
23
23
 
24
24
  string
25
25
 
26
- {<!-- -->string<!-- -->}
26
+ the substring of "str" that remains after the suffix is removed
27
27
 
@@ -12,11 +12,11 @@ export interface SDKLogger
12
12
 
13
13
  ## Properties
14
14
 
15
- | Property | Type | Description |
16
- | --- | --- | --- |
17
- | [debug](./ibm-cloud-sdk-core.sdklogger.debug.md) | Debugger | |
18
- | [error](./ibm-cloud-sdk-core.sdklogger.error.md) | Debugger | |
19
- | [info](./ibm-cloud-sdk-core.sdklogger.info.md) | Debugger | |
20
- | [verbose](./ibm-cloud-sdk-core.sdklogger.verbose.md) | Debugger | |
21
- | [warn](./ibm-cloud-sdk-core.sdklogger.warn.md) | Debugger | |
15
+ | Property | Modifiers | Type | Description |
16
+ | --- | --- | --- | --- |
17
+ | [debug](./ibm-cloud-sdk-core.sdklogger.debug.md) | | Debugger | |
18
+ | [error](./ibm-cloud-sdk-core.sdklogger.error.md) | | Debugger | |
19
+ | [info](./ibm-cloud-sdk-core.sdklogger.info.md) | | Debugger | |
20
+ | [verbose](./ibm-cloud-sdk-core.sdklogger.verbose.md) | | Debugger | |
21
+ | [warn](./ibm-cloud-sdk-core.sdklogger.warn.md) | | Debugger | |
22
22
 
@@ -16,9 +16,11 @@ export declare function streamToPromise(stream: Stream): Promise<any>;
16
16
 
17
17
  | Parameter | Type | Description |
18
18
  | --- | --- | --- |
19
- | stream | Stream | Optional stream param for when not bound to an existing stream instance. {<!-- -->Promise<!-- -->} |
19
+ | stream | Stream | optional stream param for when not bound to an existing stream instance. |
20
20
 
21
21
  <b>Returns:</b>
22
22
 
23
23
  Promise&lt;any&gt;
24
24
 
25
+ Promise
26
+
@@ -4,6 +4,8 @@
4
4
 
5
5
  ## stripTrailingSlash() function
6
6
 
7
+ Strips trailing slashes from "url", if present.
8
+
7
9
  <b>Signature:</b>
8
10
 
9
11
  ```typescript
@@ -14,11 +16,11 @@ export declare function stripTrailingSlash(url: string): string;
14
16
 
15
17
  | Parameter | Type | Description |
16
18
  | --- | --- | --- |
17
- | url | string | the url string. |
19
+ | url | string | the url string |
18
20
 
19
21
  <b>Returns:</b>
20
22
 
21
23
  string
22
24
 
23
- {<!-- -->string<!-- -->}
25
+ the url with any trailing slashes removed
24
26