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
  ## TokenManager.(constructor)
6
6
 
7
- Create a new \[\[TokenManager\]\] instance.
7
+ Create a new TokenManager instance.
8
8
 
9
9
  <b>Signature:</b>
10
10
 
@@ -16,5 +16,5 @@ constructor(options: TokenManagerOptions);
16
16
 
17
17
  | Parameter | Type | Description |
18
18
  | --- | --- | --- |
19
- | options | [TokenManagerOptions](./ibm-cloud-sdk-core.tokenmanageroptions.md) | Configuration options. |
19
+ | options | [TokenManagerOptions](./ibm-cloud-sdk-core.tokenmanageroptions.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
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  ## TokenManager.getToken() method
6
6
 
7
- Retrieve a new token using `requestToken()` in the case there is not a currently stored token from a previous call, or the previous token has expired.
7
+ Retrieves a new token using "requestToken()" if there is not a currently stored token from a previous call, or the previous token has expired.
8
8
 
9
9
  <b>Signature:</b>
10
10
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  ## TokenManager class
6
6
 
7
- 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.
7
+ 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.
8
8
 
9
9
  <b>Signature:</b>
10
10
 
@@ -16,28 +16,28 @@ export declare class TokenManager
16
16
 
17
17
  | Constructor | Modifiers | Description |
18
18
  | --- | --- | --- |
19
- | [(constructor)(options)](./ibm-cloud-sdk-core.tokenmanager._constructor_.md) | | Create a new \[\[TokenManager\]\] instance. |
19
+ | [(constructor)(options)](./ibm-cloud-sdk-core.tokenmanager._constructor_.md) | | Create a new TokenManager instance. |
20
20
 
21
21
  ## Properties
22
22
 
23
23
  | Property | Modifiers | Type | Description |
24
24
  | --- | --- | --- | --- |
25
- | [accessToken](./ibm-cloud-sdk-core.tokenmanager.accesstoken.md) | | string | |
26
- | [disableSslVerification](./ibm-cloud-sdk-core.tokenmanager.disablesslverification.md) | | boolean | |
27
- | [expireTime](./ibm-cloud-sdk-core.tokenmanager.expiretime.md) | | number | |
28
- | [headers](./ibm-cloud-sdk-core.tokenmanager.headers.md) | | OutgoingHttpHeaders | |
29
- | [refreshTime](./ibm-cloud-sdk-core.tokenmanager.refreshtime.md) | | number | |
30
- | [requestWrapperInstance](./ibm-cloud-sdk-core.tokenmanager.requestwrapperinstance.md) | | RequestWrapper | |
31
- | [url](./ibm-cloud-sdk-core.tokenmanager.url.md) | | string | |
25
+ | [accessToken](./ibm-cloud-sdk-core.tokenmanager.accesstoken.md) | <code>protected</code> | string | |
26
+ | [disableSslVerification](./ibm-cloud-sdk-core.tokenmanager.disablesslverification.md) | <code>protected</code> | boolean | |
27
+ | [expireTime](./ibm-cloud-sdk-core.tokenmanager.expiretime.md) | <code>protected</code> | number | |
28
+ | [headers](./ibm-cloud-sdk-core.tokenmanager.headers.md) | <code>protected</code> | OutgoingHttpHeaders | |
29
+ | [refreshTime](./ibm-cloud-sdk-core.tokenmanager.refreshtime.md) | <code>protected</code> | number | |
30
+ | [requestWrapperInstance](./ibm-cloud-sdk-core.tokenmanager.requestwrapperinstance.md) | <code>protected</code> | RequestWrapper | |
31
+ | [url](./ibm-cloud-sdk-core.tokenmanager.url.md) | <code>protected</code> | string | |
32
32
 
33
33
  ## Methods
34
34
 
35
35
  | Method | Modifiers | Description |
36
36
  | --- | --- | --- |
37
- | [getToken()](./ibm-cloud-sdk-core.tokenmanager.gettoken.md) | | Retrieve a new token using <code>requestToken()</code> in the case there is not a currently stored token from a previous call, or the previous token has expired. |
38
- | [pacedRequestToken()](./ibm-cloud-sdk-core.tokenmanager.pacedrequesttoken.md) | | Paces requests to request\_token.<!-- -->This method pseudo-serializes requests for an access\_token when the current token is undefined or expired. The first caller to this method records its <code>requestTime</code> and then issues the token request. Subsequent callers will check the <code>requestTime</code> to see if a request is active (has been issued within the past 60 seconds), and if so will queue their promise for the active requestor to resolve when that request completes. |
39
- | [requestToken()](./ibm-cloud-sdk-core.tokenmanager.requesttoken.md) | | Request a token using an API endpoint. |
40
- | [saveTokenInfo(tokenResponse)](./ibm-cloud-sdk-core.tokenmanager.savetokeninfo.md) | | Parse and save token information from the response. Save the requested token into field <code>accessToken</code>. Calculate expiration and refresh time from the received info and store them in fields <code>expireTime</code> and <code>refreshTime</code>. |
41
- | [setDisableSslVerification(value)](./ibm-cloud-sdk-core.tokenmanager.setdisablesslverification.md) | | Setter for the disableSslVerification property. |
42
- | [setHeaders(headers)](./ibm-cloud-sdk-core.tokenmanager.setheaders.md) | | Set a completely new set of headers. |
37
+ | [getToken()](./ibm-cloud-sdk-core.tokenmanager.gettoken.md) | | Retrieves a new token using "requestToken()" if there is not a currently stored token from a previous call, or the previous token has expired. |
38
+ | [pacedRequestToken()](./ibm-cloud-sdk-core.tokenmanager.pacedrequesttoken.md) | <code>protected</code> | <p>Paces requests to requestToken().</p><p>This method pseudo-serializes requests for an access\_token when the current token is undefined or expired. The first caller to this method records its <code>requestTime</code> and then issues the token request. Subsequent callers will check the <code>requestTime</code> to see if a request is active (has been issued within the past 60 seconds), and if so will queue their promise for the active requestor to resolve when that request completes.</p> |
39
+ | [requestToken()](./ibm-cloud-sdk-core.tokenmanager.requesttoken.md) | <code>protected</code> | Request a token using an API endpoint. |
40
+ | [saveTokenInfo(tokenResponse)](./ibm-cloud-sdk-core.tokenmanager.savetokeninfo.md) | <code>protected</code> | Parse and save token information from the response. Save the requested token into field <code>accessToken</code>. Calculate expiration and refresh time from the received info and store them in fields <code>expireTime</code> and <code>refreshTime</code>. |
41
+ | [setDisableSslVerification(value)](./ibm-cloud-sdk-core.tokenmanager.setdisablesslverification.md) | | Sets the "disableSslVerification" property. |
42
+ | [setHeaders(headers)](./ibm-cloud-sdk-core.tokenmanager.setheaders.md) | | Sets the headers to be included with each outbound request to the token server. |
43
43
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  ## TokenManager.pacedRequestToken() method
6
6
 
7
- Paces requests to request\_token.
7
+ Paces requests to requestToken().
8
8
 
9
9
  This method pseudo-serializes requests for an access\_token when the current token is undefined or expired. The first caller to this method records its `requestTime` and then issues the token request. Subsequent callers will check the `requestTime` to see if a request is active (has been issued within the past 60 seconds), and if so will queue their promise for the active requestor to resolve when that request completes.
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 a token service request |
19
+ | tokenResponse | any | the response object from a token 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
  ## TokenManager.setDisableSslVerification() method
6
6
 
7
- Setter for the disableSslVerification property.
7
+ Sets the "disableSslVerification" property.
8
8
 
9
9
  <b>Signature:</b>
10
10
 
@@ -22,5 +22,3 @@ setDisableSslVerification(value: boolean): void;
22
22
 
23
23
  void
24
24
 
25
- {<!-- -->void<!-- -->}
26
-
@@ -4,7 +4,7 @@
4
4
 
5
5
  ## TokenManager.setHeaders() method
6
6
 
7
- Set a completely new set of headers.
7
+ Sets the headers to be included with each outbound request to the token server.
8
8
 
9
9
  <b>Signature:</b>
10
10
 
@@ -16,11 +16,9 @@ setHeaders(headers: OutgoingHttpHeaders): void;
16
16
 
17
17
  | Parameter | Type | Description |
18
18
  | --- | --- | --- |
19
- | headers | OutgoingHttpHeaders | the new set of headers as an object |
19
+ | headers | OutgoingHttpHeaders | the set of headers to send with each request to the token server |
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
  ## TokenRequestBasedAuthenticator.(constructor)
6
6
 
7
- Create a new \[\[TokenRequestBasedAuthenticator\]\] instance with an internal \[\[JwtTokenManager\]\].
7
+ Create a new TokenRequestBasedAuthenticator instance with an internal JwtTokenManager.
8
8
 
9
9
  <b>Signature:</b>
10
10
 
@@ -16,5 +16,5 @@ constructor(options: BaseOptions);
16
16
 
17
17
  | Parameter | Type | Description |
18
18
  | --- | --- | --- |
19
- | options | BaseOptions | Configuration options. |
19
+ | options | BaseOptions | 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
 
@@ -4,9 +4,9 @@
4
4
 
5
5
  ## TokenRequestBasedAuthenticator.authenticate() method
6
6
 
7
- Adds bearer token information to `request`<!-- -->. The bearer token information will be set in the Authorization property of`request.headers` in the form:
7
+ Adds bearer token information to "requestOptions". The bearer token information will be set in the Authorization property of "requestOptions.headers" in the form:
8
8
 
9
- Authorization: Bearer <bearer-token>
9
+ Authorization: Bearer &lt;<!-- -->bearer-token<!-- -->&gt;
10
10
 
11
11
  <b>Signature:</b>
12
12
 
@@ -4,11 +4,11 @@
4
4
 
5
5
  ## TokenRequestBasedAuthenticator class
6
6
 
7
- 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.
7
+ 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.
8
8
 
9
- The tokens will be added as an Authorization headers in the form:
9
+ The token will be added as an Authorization header in the form:
10
10
 
11
- Authorization: Bearer <bearer-token>
11
+ Authorization: Bearer &lt;<!-- -->bearer-token<!-- -->&gt;
12
12
 
13
13
  <b>Signature:</b>
14
14
 
@@ -21,22 +21,22 @@ export declare class TokenRequestBasedAuthenticator extends Authenticator
21
21
 
22
22
  | Constructor | Modifiers | Description |
23
23
  | --- | --- | --- |
24
- | [(constructor)(options)](./ibm-cloud-sdk-core.tokenrequestbasedauthenticator._constructor_.md) | | Create a new \[\[TokenRequestBasedAuthenticator\]\] instance with an internal \[\[JwtTokenManager\]\]. |
24
+ | [(constructor)(options)](./ibm-cloud-sdk-core.tokenrequestbasedauthenticator._constructor_.md) | | Create a new TokenRequestBasedAuthenticator instance with an internal JwtTokenManager. |
25
25
 
26
26
  ## Properties
27
27
 
28
28
  | Property | Modifiers | Type | Description |
29
29
  | --- | --- | --- | --- |
30
- | [disableSslVerification](./ibm-cloud-sdk-core.tokenrequestbasedauthenticator.disablesslverification.md) | | boolean | |
31
- | [headers](./ibm-cloud-sdk-core.tokenrequestbasedauthenticator.headers.md) | | OutgoingHttpHeaders | |
32
- | [tokenManager](./ibm-cloud-sdk-core.tokenrequestbasedauthenticator.tokenmanager.md) | | [JwtTokenManager](./ibm-cloud-sdk-core.jwttokenmanager.md) | |
33
- | [url](./ibm-cloud-sdk-core.tokenrequestbasedauthenticator.url.md) | | string | |
30
+ | [disableSslVerification](./ibm-cloud-sdk-core.tokenrequestbasedauthenticator.disablesslverification.md) | <code>protected</code> | boolean | |
31
+ | [headers](./ibm-cloud-sdk-core.tokenrequestbasedauthenticator.headers.md) | <code>protected</code> | OutgoingHttpHeaders | |
32
+ | [tokenManager](./ibm-cloud-sdk-core.tokenrequestbasedauthenticator.tokenmanager.md) | <code>protected</code> | [JwtTokenManager](./ibm-cloud-sdk-core.jwttokenmanager.md) | |
33
+ | [url](./ibm-cloud-sdk-core.tokenrequestbasedauthenticator.url.md) | <code>protected</code> | string | |
34
34
 
35
35
  ## Methods
36
36
 
37
37
  | Method | Modifiers | Description |
38
38
  | --- | --- | --- |
39
- | [authenticate(requestOptions)](./ibm-cloud-sdk-core.tokenrequestbasedauthenticator.authenticate.md) | | Adds bearer token information to <code>request</code>. The bearer token information will be set in the Authorization property of<code>request.headers</code> in the form:<!-- -->Authorization: Bearer <bearer-token> |
39
+ | [authenticate(requestOptions)](./ibm-cloud-sdk-core.tokenrequestbasedauthenticator.authenticate.md) | | <p>Adds bearer token information to "requestOptions". The bearer token information will be set in the Authorization property of "requestOptions.headers" in the form:</p><p>Authorization: Bearer &lt;<!-- -->bearer-token<!-- -->&gt;</p> |
40
40
  | [setDisableSslVerification(value)](./ibm-cloud-sdk-core.tokenrequestbasedauthenticator.setdisablesslverification.md) | | Set the flag that indicates whether verification of the server's SSL certificate should be disabled or not. |
41
41
  | [setHeaders(headers)](./ibm-cloud-sdk-core.tokenrequestbasedauthenticator.setheaders.md) | | Set headers. |
42
42
 
@@ -16,7 +16,7 @@ setDisableSslVerification(value: boolean): void;
16
16
 
17
17
  | Parameter | Type | Description |
18
18
  | --- | --- | --- |
19
- | value | boolean | A flag that indicates whether verification of the token server's SSL certificate should be disabled or not. |
19
+ | value | boolean | a flag that indicates whether verification of the token server's SSL certificate should be disabled or not. |
20
20
 
21
21
  <b>Returns:</b>
22
22
 
@@ -16,7 +16,7 @@ setHeaders(headers: OutgoingHttpHeaders): void;
16
16
 
17
17
  | Parameter | Type | Description |
18
18
  | --- | --- | --- |
19
- | headers | OutgoingHttpHeaders | Default headers to be sent with every Cloud Pak For Data token request. Overwrites previous default headers. |
19
+ | headers | OutgoingHttpHeaders | a set of HTTP headers to be sent with each outbound token server request. Overwrites previous default headers. |
20
20
 
21
21
  <b>Returns:</b>
22
22
 
@@ -22,5 +22,5 @@ export declare function toLowerKeys(obj: Object): Object;
22
22
 
23
23
  Object
24
24
 
25
- {<!-- -->Object<!-- -->}
25
+ the object with keys folded to lowercase
26
26
 
@@ -22,5 +22,3 @@ export declare function checkForSuccessfulExecution(createRequestMock: any): voi
22
22
 
23
23
  void
24
24
 
25
- {<!-- -->void<!-- -->}
26
-
@@ -24,5 +24,3 @@ export declare function checkMediaHeaders(createRequestMock: any, accept: string
24
24
 
25
25
  void
26
26
 
27
- {<!-- -->void<!-- -->}
28
-
@@ -18,11 +18,9 @@ export declare function checkUrlAndMethod(options: any, url: string, method: any
18
18
  | --- | --- | --- |
19
19
  | options | any | the options object put together by the SDK, retrieved from the createRequest mock |
20
20
  | url | string | The URL path of the service endpoint, from the paths section of the API definition |
21
- | method | any | |
21
+ | method | any | The HTTP method for the request, from the API definition |
22
22
 
23
23
  <b>Returns:</b>
24
24
 
25
25
  void
26
26
 
27
- {<!-- -->void<!-- -->}
28
-
@@ -24,5 +24,3 @@ export declare function checkUserHeader(createRequestMock: any, userHeaderName:
24
24
 
25
25
  void
26
26
 
27
- {<!-- -->void<!-- -->}
28
-
@@ -22,5 +22,3 @@ export declare function expectToBePromise(sdkPromise: any): void;
22
22
 
23
23
  void
24
24
 
25
- {<!-- -->void<!-- -->}
26
-
@@ -22,5 +22,5 @@ export declare function getOptions(createRequestMock: any): any;
22
22
 
23
23
  any
24
24
 
25
- {<!-- -->Object<!-- -->}
25
+ Object
26
26
 
@@ -14,13 +14,13 @@ export interface UserOptions
14
14
 
15
15
  ## Properties
16
16
 
17
- | Property | Type | Description |
18
- | --- | --- | --- |
19
- | [authenticator?](./ibm-cloud-sdk-core.useroptions.authenticator.md) | [AuthenticatorInterface](./ibm-cloud-sdk-core.authenticatorinterface.md) | <i>(Optional)</i> The Authenticator object used to authenticate requests to the service |
20
- | [disableSslVerification?](./ibm-cloud-sdk-core.useroptions.disablesslverification.md) | boolean | <i>(Optional)</i> Set to <code>true</code> to allow unauthorized requests - not recommended for production use. |
21
- | [headers?](./ibm-cloud-sdk-core.useroptions.headers.md) | OutgoingHttpHeaders | <i>(Optional)</i> Default headers that shall be included with every request to the service. |
22
- | [jar?](./ibm-cloud-sdk-core.useroptions.jar.md) | CookieJar \| boolean | <i>(Optional)</i> Set your own cookie jar object |
23
- | [serviceUrl?](./ibm-cloud-sdk-core.useroptions.serviceurl.md) | string | <i>(Optional)</i> The base url to use when contacting the service. The base url may differ between IBM Cloud regions. |
24
- | [url?](./ibm-cloud-sdk-core.useroptions.url.md) | string | <i>(Optional)</i> Deprecated. Use <code>serviceUrl</code> instead. |
25
- | [version?](./ibm-cloud-sdk-core.useroptions.version.md) | string | <i>(Optional)</i> The API version date to use with the service, in "YYYY-MM-DD" format. |
17
+ | Property | Modifiers | Type | Description |
18
+ | --- | --- | --- | --- |
19
+ | [authenticator?](./ibm-cloud-sdk-core.useroptions.authenticator.md) | | [AuthenticatorInterface](./ibm-cloud-sdk-core.authenticatorinterface.md) | <i>(Optional)</i> The Authenticator object used to authenticate requests to the service |
20
+ | [disableSslVerification?](./ibm-cloud-sdk-core.useroptions.disablesslverification.md) | | boolean | <i>(Optional)</i> Set to <code>true</code> to allow unauthorized requests - not recommended for production use. |
21
+ | [headers?](./ibm-cloud-sdk-core.useroptions.headers.md) | | OutgoingHttpHeaders | <i>(Optional)</i> Default headers that shall be included with every request to the service. |
22
+ | [jar?](./ibm-cloud-sdk-core.useroptions.jar.md) | | CookieJar \| boolean | <i>(Optional)</i> Set your own cookie jar object |
23
+ | [serviceUrl?](./ibm-cloud-sdk-core.useroptions.serviceurl.md) | | string | <i>(Optional)</i> The base url to use when contacting the service. The base url may differ between IBM Cloud regions. |
24
+ | [url?](./ibm-cloud-sdk-core.useroptions.url.md) | | string | <i>(Optional)</i> Deprecated. Use <code>serviceUrl</code> instead. |
25
+ | [version?](./ibm-cloud-sdk-core.useroptions.version.md) | | string | <i>(Optional)</i> The API version date to use with the service, in "YYYY-MM-DD" format. |
26
26
 
@@ -4,6 +4,8 @@
4
4
 
5
5
  ## validateInput() function
6
6
 
7
+ Validates "options".
8
+
7
9
  <b>Signature:</b>
8
10
 
9
11
  ```typescript
@@ -14,10 +16,14 @@ export declare function validateInput(options: any, requiredOptions: string[]):
14
16
 
15
17
  | Parameter | Type | Description |
16
18
  | --- | --- | --- |
17
- | options | any | A configuration options object. |
18
- | requiredOptions | string\[\] | The list of properties that must be specified. |
19
+ | options | any | a configuration options object |
20
+ | requiredOptions | string\[\] | the list of properties that must be present in "options" |
19
21
 
20
22
  <b>Returns:</b>
21
23
 
22
24
  void
23
25
 
26
+ ## Exceptions
27
+
28
+ Error: "options" failed validation
29
+
@@ -26,5 +26,5 @@ export declare function validateParams(params: {
26
26
 
27
27
  null \| Error
28
28
 
29
- {<!-- -->Error\|null<!-- -->}
29
+ null if no errors found, otherwise an Error instance
30
30
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  ## VpcInstanceAuthenticator.(constructor)
6
6
 
7
- Create a new \[\[VpcInstanceAuthenticator\]\] instance.
7
+ Create a new VpcInstanceAuthenticator 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 for VpcInstance authentication. |
19
+ | options | Options | Configuration options for VpcInstance authentication. This should be an object containing these fields: - url: (optional) the endpoint URL for the VPC Instance Metadata Service (default value: "http://169.254.169.254") - iamProfileCrn: (optional) the CRN of the linked IAM trusted profile to be used to obtain the IAM access token - iamProfileId: (optional) the ID of the linked IAM trusted profile to be used to obtain the IAM access token |
20
+
21
+ ## Remarks
22
+
23
+ At most one of "iamProfileCrn" or "iamProfileId" may be specified. If neither one is specified, then the default IAM profile defined for the compute resource will be used.
20
24
 
@@ -4,11 +4,11 @@
4
4
 
5
5
  ## VpcInstanceAuthenticator class
6
6
 
7
- 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).
7
+ 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).
8
8
 
9
9
  The resulting IAM access token is then added to outbound requests in an Authorization header
10
10
 
11
- Authorization: Bearer <access-token>
11
+ Authorization: Bearer &lt;<!-- -->access-token<!-- -->&gt;
12
12
 
13
13
  <b>Signature:</b>
14
14
 
@@ -21,19 +21,19 @@ export declare class VpcInstanceAuthenticator extends TokenRequestBasedAuthentic
21
21
 
22
22
  | Constructor | Modifiers | Description |
23
23
  | --- | --- | --- |
24
- | [(constructor)(options)](./ibm-cloud-sdk-core.vpcinstanceauthenticator._constructor_.md) | | Create a new \[\[VpcInstanceAuthenticator\]\] instance. |
24
+ | [(constructor)(options)](./ibm-cloud-sdk-core.vpcinstanceauthenticator._constructor_.md) | | Create a new VpcInstanceAuthenticator instance. |
25
25
 
26
26
  ## Properties
27
27
 
28
28
  | Property | Modifiers | Type | Description |
29
29
  | --- | --- | --- | --- |
30
- | [tokenManager](./ibm-cloud-sdk-core.vpcinstanceauthenticator.tokenmanager.md) | | [VpcInstanceTokenManager](./ibm-cloud-sdk-core.vpcinstancetokenmanager.md) | |
30
+ | [tokenManager](./ibm-cloud-sdk-core.vpcinstanceauthenticator.tokenmanager.md) | <code>protected</code> | [VpcInstanceTokenManager](./ibm-cloud-sdk-core.vpcinstancetokenmanager.md) | |
31
31
 
32
32
  ## Methods
33
33
 
34
34
  | Method | Modifiers | Description |
35
35
  | --- | --- | --- |
36
36
  | [authenticationType()](./ibm-cloud-sdk-core.vpcinstanceauthenticator.authenticationtype.md) | | Returns the authenticator's type ('vpc'). |
37
- | [setIamProfileCrn(iamProfileCrn)](./ibm-cloud-sdk-core.vpcinstanceauthenticator.setiamprofilecrn.md) | | Setter for the "profile\_crn" parameter to use when fetching the bearer token from the IAM token server. |
38
- | [setIamProfileId(iamProfileId)](./ibm-cloud-sdk-core.vpcinstanceauthenticator.setiamprofileid.md) | | Setter for the "profile\_id" parameter to use when fetching the bearer token from the IAM token server. |
37
+ | [setIamProfileCrn(iamProfileCrn)](./ibm-cloud-sdk-core.vpcinstanceauthenticator.setiamprofilecrn.md) | | Sets the "iamProfileCrn" value to be used when obtaining an IAM access token |
38
+ | [setIamProfileId(iamProfileId)](./ibm-cloud-sdk-core.vpcinstanceauthenticator.setiamprofileid.md) | | Sets the "iamProfileId" value to be used when obtaining an IAM access token |
39
39
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  ## VpcInstanceAuthenticator.setIamProfileCrn() method
6
6
 
7
- Setter for the "profile\_crn" parameter to use when fetching the bearer token from the IAM token server.
7
+ Sets the "iamProfileCrn" value to be used when obtaining an IAM access token
8
8
 
9
9
  <b>Signature:</b>
10
10
 
@@ -16,7 +16,7 @@ setIamProfileCrn(iamProfileCrn: string): void;
16
16
 
17
17
  | Parameter | Type | Description |
18
18
  | --- | --- | --- |
19
- | iamProfileCrn | string | |
19
+ | iamProfileCrn | string | the CRN of the linked IAM trusted profile to use when obtaining an IAM access token |
20
20
 
21
21
  <b>Returns:</b>
22
22
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  ## VpcInstanceAuthenticator.setIamProfileId() method
6
6
 
7
- Setter for the "profile\_id" parameter to use when fetching the bearer token from the IAM token server.
7
+ Sets the "iamProfileId" value to be used when obtaining an IAM access token
8
8
 
9
9
  <b>Signature:</b>
10
10
 
@@ -16,7 +16,7 @@ setIamProfileId(iamProfileId: string): void;
16
16
 
17
17
  | Parameter | Type | Description |
18
18
  | --- | --- | --- |
19
- | iamProfileId | string | |
19
+ | iamProfileId | string | the ID of the linked IAM trusted profile to use when obtaining an IAM access token |
20
20
 
21
21
  <b>Returns:</b>
22
22
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  ## VpcInstanceTokenManager.(constructor)
6
6
 
7
- Create a new \[\[VpcInstanceTokenManager\]\] instance.
7
+ Create a new VpcInstanceTokenManager 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 VPC Instance Metadata Service (default value: "http://169.254.169.254") - iamProfileCrn: (optional) the CRN of the linked IAM trusted profile to be used to obtain the IAM access token - iamProfileId: (optional) the ID of the linked IAM trusted profile to be used to obtain the IAM access token |
20
+
21
+ ## Remarks
22
+
23
+ At most one of "iamProfileCrn" or "iamProfileId" may be specified. If neither one is specified, then the default IAM profile defined for the compute resource will be used.
20
24
 
@@ -17,13 +17,13 @@ export declare class VpcInstanceTokenManager extends JwtTokenManager
17
17
 
18
18
  | Constructor | Modifiers | Description |
19
19
  | --- | --- | --- |
20
- | [(constructor)(options)](./ibm-cloud-sdk-core.vpcinstancetokenmanager._constructor_.md) | | Create a new \[\[VpcInstanceTokenManager\]\] instance. |
20
+ | [(constructor)(options)](./ibm-cloud-sdk-core.vpcinstancetokenmanager._constructor_.md) | | Create a new VpcInstanceTokenManager instance. |
21
21
 
22
22
  ## Methods
23
23
 
24
24
  | Method | Modifiers | Description |
25
25
  | --- | --- | --- |
26
- | [requestToken()](./ibm-cloud-sdk-core.vpcinstancetokenmanager.requesttoken.md) | | |
27
- | [setIamProfileCrn(iamProfileCrn)](./ibm-cloud-sdk-core.vpcinstancetokenmanager.setiamprofilecrn.md) | | Setter for the "trusted\_profile" parameter to use when fetching the bearer token from the IAM token server. |
28
- | [setIamProfileId(iamProfileId)](./ibm-cloud-sdk-core.vpcinstancetokenmanager.setiamprofileid.md) | | Setter for the "trusted\_profile" parameter to use when fetching the bearer token from the IAM token server. |
26
+ | [requestToken()](./ibm-cloud-sdk-core.vpcinstancetokenmanager.requesttoken.md) | <code>protected</code> | |
27
+ | [setIamProfileCrn(iamProfileCrn)](./ibm-cloud-sdk-core.vpcinstancetokenmanager.setiamprofilecrn.md) | | Sets the CRN of the IAM trusted profile to use when fetching the access token from the IAM token server. |
28
+ | [setIamProfileId(iamProfileId)](./ibm-cloud-sdk-core.vpcinstancetokenmanager.setiamprofileid.md) | | Sets the Id of the IAM trusted profile to use when fetching the access token from the IAM token server. |
29
29
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  ## VpcInstanceTokenManager.setIamProfileCrn() method
6
6
 
7
- Setter for the "trusted\_profile" parameter to use when fetching the bearer token from the IAM token server.
7
+ Sets the CRN of the IAM trusted profile to use when fetching the access token from the IAM token server.
8
8
 
9
9
  <b>Signature:</b>
10
10
 
@@ -16,7 +16,7 @@ setIamProfileCrn(iamProfileCrn: string): void;
16
16
 
17
17
  | Parameter | Type | Description |
18
18
  | --- | --- | --- |
19
- | iamProfileCrn | string | A string that makes up the iamProfileCrn parameter |
19
+ | iamProfileCrn | string | the CRN of the IAM trusted profile |
20
20
 
21
21
  <b>Returns:</b>
22
22
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  ## VpcInstanceTokenManager.setIamProfileId() method
6
6
 
7
- Setter for the "trusted\_profile" parameter to use when fetching the bearer token from the IAM token server.
7
+ Sets the Id of the IAM trusted profile to use when fetching the access token from the IAM token server.
8
8
 
9
9
  <b>Signature:</b>
10
10
 
@@ -16,7 +16,7 @@ setIamProfileId(iamProfileId: string): void;
16
16
 
17
17
  | Parameter | Type | Description |
18
18
  | --- | --- | --- |
19
- | iamProfileId | string | A string that makes up the iamProfileId parameter |
19
+ | iamProfileId | string | the ID of the IAM trusted profile |
20
20
 
21
21
  <b>Returns:</b>
22
22