ibm-cloud-sdk-core 4.2.5 → 4.3.0

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 (166) hide show
  1. package/.secrets.baseline +17 -17
  2. package/CHANGELOG.md +7 -0
  3. package/auth/token-managers/container-token-manager.d.ts +1 -1
  4. package/auth/token-managers/container-token-manager.js +3 -1
  5. package/auth/token-managers/cp4d-token-manager.d.ts +1 -1
  6. package/auth/token-managers/cp4d-token-manager.js +4 -1
  7. package/auth/token-managers/iam-request-based-token-manager.js +2 -1
  8. package/auth/token-managers/iam-token-manager.d.ts +1 -1
  9. package/auth/token-managers/iam-token-manager.js +3 -1
  10. package/auth/token-managers/mcsp-token-manager.d.ts +1 -1
  11. package/auth/token-managers/mcsp-token-manager.js +4 -1
  12. package/auth/token-managers/token-manager.d.ts +1 -0
  13. package/auth/token-managers/vpc-instance-token-manager.js +4 -0
  14. package/auth/utils/file-reading-helpers.d.ts +1 -1
  15. package/auth/utils/file-reading-helpers.js +1 -1
  16. package/auth/utils/read-external-sources.js +4 -4
  17. package/build/docs/ibm-cloud-sdk-core.atleastone.md +48 -4
  18. package/build/docs/ibm-cloud-sdk-core.atmostone.md +48 -4
  19. package/build/docs/ibm-cloud-sdk-core.authenticator.authenticate.md +32 -3
  20. package/build/docs/ibm-cloud-sdk-core.authenticator.md +270 -18
  21. package/build/docs/ibm-cloud-sdk-core.authenticatorinterface.authenticate.md +32 -3
  22. package/build/docs/ibm-cloud-sdk-core.authenticatorinterface.md +33 -4
  23. package/build/docs/ibm-cloud-sdk-core.baseservice._constructor_.md +32 -3
  24. package/build/docs/ibm-cloud-sdk-core.baseservice.configureservice.md +32 -3
  25. package/build/docs/ibm-cloud-sdk-core.baseservice.convertmodel.md +64 -5
  26. package/build/docs/ibm-cloud-sdk-core.baseservice.createrequest.md +32 -3
  27. package/build/docs/ibm-cloud-sdk-core.baseservice.createrequestanddeserializeresponse.md +64 -5
  28. package/build/docs/ibm-cloud-sdk-core.baseservice.enableretries.md +32 -3
  29. package/build/docs/ibm-cloud-sdk-core.baseservice.md +288 -21
  30. package/build/docs/ibm-cloud-sdk-core.baseservice.setdefaultheaders.md +32 -3
  31. package/build/docs/ibm-cloud-sdk-core.baseservice.setenablegzipcompression.md +32 -3
  32. package/build/docs/ibm-cloud-sdk-core.baseservice.setserviceurl.md +32 -3
  33. package/build/docs/ibm-cloud-sdk-core.basicauthenticator._constructor_.md +33 -3
  34. package/build/docs/ibm-cloud-sdk-core.basicauthenticator.authenticate.md +32 -3
  35. package/build/docs/ibm-cloud-sdk-core.basicauthenticator.md +137 -11
  36. package/build/docs/ibm-cloud-sdk-core.bearertokenauthenticator._constructor_.md +33 -3
  37. package/build/docs/ibm-cloud-sdk-core.bearertokenauthenticator.authenticate.md +32 -3
  38. package/build/docs/ibm-cloud-sdk-core.bearertokenauthenticator.md +132 -11
  39. package/build/docs/ibm-cloud-sdk-core.bearertokenauthenticator.setbearertoken.md +32 -3
  40. package/build/docs/ibm-cloud-sdk-core.buildrequestfileobject.md +32 -3
  41. package/build/docs/ibm-cloud-sdk-core.checkcredentials.md +48 -4
  42. package/build/docs/ibm-cloud-sdk-core.cloudpakfordataauthenticator._constructor_.md +33 -3
  43. package/build/docs/ibm-cloud-sdk-core.cloudpakfordataauthenticator.md +121 -10
  44. package/build/docs/ibm-cloud-sdk-core.computebasicauthheader.md +48 -4
  45. package/build/docs/ibm-cloud-sdk-core.constructfilepath.md +30 -3
  46. package/build/docs/ibm-cloud-sdk-core.constructserviceurl.md +64 -5
  47. package/build/docs/ibm-cloud-sdk-core.containerauthenticator._constructor_.md +33 -3
  48. package/build/docs/ibm-cloud-sdk-core.containerauthenticator.md +144 -12
  49. package/build/docs/ibm-cloud-sdk-core.containerauthenticator.setcrtokenfilename.md +32 -3
  50. package/build/docs/ibm-cloud-sdk-core.containerauthenticator.setiamprofileid.md +32 -3
  51. package/build/docs/ibm-cloud-sdk-core.containerauthenticator.setiamprofilename.md +32 -3
  52. package/build/docs/ibm-cloud-sdk-core.containertokenmanager._constructor_.md +33 -3
  53. package/build/docs/ibm-cloud-sdk-core.containertokenmanager.md +121 -10
  54. package/build/docs/ibm-cloud-sdk-core.containertokenmanager.setcrtokenfilename.md +32 -3
  55. package/build/docs/ibm-cloud-sdk-core.containertokenmanager.setiamprofileid.md +32 -3
  56. package/build/docs/ibm-cloud-sdk-core.containertokenmanager.setiamprofilename.md +32 -3
  57. package/build/docs/ibm-cloud-sdk-core.cp4dtokenmanager._constructor_.md +33 -3
  58. package/build/docs/ibm-cloud-sdk-core.cp4dtokenmanager.md +102 -9
  59. package/build/docs/ibm-cloud-sdk-core.fileexistsatpath.md +30 -3
  60. package/build/docs/ibm-cloud-sdk-core.fileobject.md +57 -4
  61. package/build/docs/ibm-cloud-sdk-core.fileoptions.md +59 -4
  62. package/build/docs/ibm-cloud-sdk-core.filestream.md +38 -3
  63. package/build/docs/ibm-cloud-sdk-core.filewithmetadata.md +72 -5
  64. package/build/docs/ibm-cloud-sdk-core.getauthenticatorfromenvironment.md +32 -3
  65. package/build/docs/ibm-cloud-sdk-core.getcontenttype.md +32 -3
  66. package/build/docs/ibm-cloud-sdk-core.getformat.md +46 -4
  67. package/build/docs/ibm-cloud-sdk-core.getmissingparams.md +48 -4
  68. package/build/docs/ibm-cloud-sdk-core.getnewlogger.md +32 -3
  69. package/build/docs/ibm-cloud-sdk-core.getqueryparam.md +48 -4
  70. package/build/docs/ibm-cloud-sdk-core.iamauthenticator._constructor_.md +33 -3
  71. package/build/docs/ibm-cloud-sdk-core.iamauthenticator.md +121 -10
  72. package/build/docs/ibm-cloud-sdk-core.iamrequestbasedauthenticator._constructor_.md +33 -3
  73. package/build/docs/ibm-cloud-sdk-core.iamrequestbasedauthenticator.md +187 -14
  74. package/build/docs/ibm-cloud-sdk-core.iamrequestbasedauthenticator.setclientidandsecret.md +48 -4
  75. package/build/docs/ibm-cloud-sdk-core.iamrequestbasedauthenticator.setscope.md +32 -3
  76. package/build/docs/ibm-cloud-sdk-core.iamrequestbasedtokenmanager._constructor_.md +33 -3
  77. package/build/docs/ibm-cloud-sdk-core.iamrequestbasedtokenmanager.md +197 -15
  78. package/build/docs/ibm-cloud-sdk-core.iamrequestbasedtokenmanager.savetokeninfo.md +32 -3
  79. package/build/docs/ibm-cloud-sdk-core.iamrequestbasedtokenmanager.setclientidandsecret.md +48 -4
  80. package/build/docs/ibm-cloud-sdk-core.iamrequestbasedtokenmanager.setscope.md +32 -3
  81. package/build/docs/ibm-cloud-sdk-core.iamrequestoptions.md +78 -5
  82. package/build/docs/ibm-cloud-sdk-core.iamtokenmanager._constructor_.md +33 -3
  83. package/build/docs/ibm-cloud-sdk-core.iamtokenmanager.md +71 -6
  84. package/build/docs/ibm-cloud-sdk-core.isemptyobject.md +30 -3
  85. package/build/docs/ibm-cloud-sdk-core.isfiledata.md +30 -3
  86. package/build/docs/ibm-cloud-sdk-core.isfilewithmetadata.md +30 -3
  87. package/build/docs/ibm-cloud-sdk-core.ishtml.md +32 -3
  88. package/build/docs/ibm-cloud-sdk-core.isjsonmimetype.md +32 -3
  89. package/build/docs/ibm-cloud-sdk-core.jwttokenmanager._constructor_.md +32 -3
  90. package/build/docs/ibm-cloud-sdk-core.jwttokenmanager.md +139 -11
  91. package/build/docs/ibm-cloud-sdk-core.jwttokenmanager.savetokeninfo.md +32 -3
  92. package/build/docs/ibm-cloud-sdk-core.mcspauthenticator._constructor_.md +33 -3
  93. package/build/docs/ibm-cloud-sdk-core.mcspauthenticator.md +121 -10
  94. package/build/docs/ibm-cloud-sdk-core.mcsptokenmanager._constructor_.md +33 -3
  95. package/build/docs/ibm-cloud-sdk-core.mcsptokenmanager.md +102 -9
  96. package/build/docs/ibm-cloud-sdk-core.md +794 -75
  97. package/build/docs/ibm-cloud-sdk-core.noauthauthenticator.authenticate.md +30 -3
  98. package/build/docs/ibm-cloud-sdk-core.noauthauthenticator.md +42 -4
  99. package/build/docs/ibm-cloud-sdk-core.onlyone.md +48 -4
  100. package/build/docs/ibm-cloud-sdk-core.readcrtokenfile.md +30 -3
  101. package/build/docs/ibm-cloud-sdk-core.readexternalsources.md +32 -3
  102. package/build/docs/ibm-cloud-sdk-core.removesuffix.md +48 -4
  103. package/build/docs/ibm-cloud-sdk-core.sdklogger.md +106 -7
  104. package/build/docs/ibm-cloud-sdk-core.streamtopromise.md +32 -3
  105. package/build/docs/ibm-cloud-sdk-core.striptrailingslash.md +32 -3
  106. package/build/docs/ibm-cloud-sdk-core.tokenmanager._constructor_.md +32 -3
  107. package/build/docs/ibm-cloud-sdk-core.tokenmanager.md +329 -21
  108. package/build/docs/ibm-cloud-sdk-core.tokenmanager.savetokeninfo.md +32 -3
  109. package/build/docs/ibm-cloud-sdk-core.tokenmanager.setdisablesslverification.md +32 -3
  110. package/build/docs/ibm-cloud-sdk-core.tokenmanager.setheaders.md +32 -3
  111. package/build/docs/ibm-cloud-sdk-core.tokenmanager.useragent.md +11 -0
  112. package/build/docs/ibm-cloud-sdk-core.tokenrequestbasedauthenticator._constructor_.md +32 -3
  113. package/build/docs/ibm-cloud-sdk-core.tokenrequestbasedauthenticator.authenticate.md +32 -3
  114. package/build/docs/ibm-cloud-sdk-core.tokenrequestbasedauthenticator.md +189 -14
  115. package/build/docs/ibm-cloud-sdk-core.tokenrequestbasedauthenticator.setdisablesslverification.md +32 -3
  116. package/build/docs/ibm-cloud-sdk-core.tokenrequestbasedauthenticator.setheaders.md +32 -3
  117. package/build/docs/ibm-cloud-sdk-core.tolowerkeys.md +32 -3
  118. package/build/docs/ibm-cloud-sdk-core.unittestutils.checkforsuccessfulexecution.md +32 -3
  119. package/build/docs/ibm-cloud-sdk-core.unittestutils.checkmediaheaders.md +64 -5
  120. package/build/docs/ibm-cloud-sdk-core.unittestutils.checkurlandmethod.md +64 -5
  121. package/build/docs/ibm-cloud-sdk-core.unittestutils.checkuserheader.md +64 -5
  122. package/build/docs/ibm-cloud-sdk-core.unittestutils.expecttobepromise.md +32 -3
  123. package/build/docs/ibm-cloud-sdk-core.unittestutils.getoptions.md +32 -3
  124. package/build/docs/ibm-cloud-sdk-core.unittestutils.md +77 -8
  125. package/build/docs/ibm-cloud-sdk-core.useroptions.md +154 -9
  126. package/build/docs/ibm-cloud-sdk-core.validateinput.md +48 -4
  127. package/build/docs/ibm-cloud-sdk-core.validateparams.md +64 -5
  128. package/build/docs/ibm-cloud-sdk-core.vpcinstanceauthenticator._constructor_.md +33 -3
  129. package/build/docs/ibm-cloud-sdk-core.vpcinstanceauthenticator.md +130 -11
  130. package/build/docs/ibm-cloud-sdk-core.vpcinstanceauthenticator.setiamprofilecrn.md +32 -3
  131. package/build/docs/ibm-cloud-sdk-core.vpcinstanceauthenticator.setiamprofileid.md +32 -3
  132. package/build/docs/ibm-cloud-sdk-core.vpcinstancetokenmanager._constructor_.md +33 -3
  133. package/build/docs/ibm-cloud-sdk-core.vpcinstancetokenmanager.md +105 -9
  134. package/build/docs/ibm-cloud-sdk-core.vpcinstancetokenmanager.setiamprofilecrn.md +32 -3
  135. package/build/docs/ibm-cloud-sdk-core.vpcinstancetokenmanager.setiamprofileid.md +32 -3
  136. package/build/docs/index.md +20 -3
  137. package/docs/ibm-cloud-sdk-core.api.json +31 -1
  138. package/es/auth/token-managers/container-token-manager.d.ts +1 -1
  139. package/es/auth/token-managers/container-token-manager.js +3 -1
  140. package/es/auth/token-managers/cp4d-token-manager.d.ts +1 -1
  141. package/es/auth/token-managers/cp4d-token-manager.js +4 -1
  142. package/es/auth/token-managers/iam-request-based-token-manager.js +2 -1
  143. package/es/auth/token-managers/iam-token-manager.d.ts +1 -1
  144. package/es/auth/token-managers/iam-token-manager.js +3 -1
  145. package/es/auth/token-managers/mcsp-token-manager.d.ts +1 -1
  146. package/es/auth/token-managers/mcsp-token-manager.js +4 -1
  147. package/es/auth/token-managers/token-manager.d.ts +1 -0
  148. package/es/auth/token-managers/vpc-instance-token-manager.js +4 -0
  149. package/es/auth/utils/file-reading-helpers.d.ts +1 -1
  150. package/es/auth/utils/file-reading-helpers.js +1 -1
  151. package/es/auth/utils/read-external-sources.js +4 -4
  152. package/es/lib/base-service.d.ts +2 -1
  153. package/es/lib/base-service.js +9 -1
  154. package/es/lib/build-user-agent.d.ts +21 -0
  155. package/es/lib/build-user-agent.js +27 -0
  156. package/es/tsdoc-metadata.json +1 -1
  157. package/etc/ibm-cloud-sdk-core.api.md +2 -0
  158. package/ibm-cloud-sdk-core.d.ts +3 -1
  159. package/lib/base-service.d.ts +2 -1
  160. package/lib/base-service.js +9 -1
  161. package/lib/build-user-agent.d.ts +21 -0
  162. package/lib/build-user-agent.js +32 -0
  163. package/package.json +9 -10
  164. package/temp/ibm-cloud-sdk-core.api.json +31 -1
  165. package/temp/ibm-cloud-sdk-core.api.md +2 -0
  166. package/.nvmrc +0 -1
@@ -6,12 +6,81 @@
6
6
 
7
7
  ## Functions
8
8
 
9
- | Function | Description |
10
- | --- | --- |
11
- | [checkForSuccessfulExecution(createRequestMock)](./ibm-cloud-sdk-core.unittestutils.checkforsuccessfulexecution.md) | This method simply ensures that the method executed without any issues by extracting the argument from the mock object for the <code>createRequest</code> method and verifying that it is an object. |
12
- | [checkMediaHeaders(createRequestMock, accept, contentType)](./ibm-cloud-sdk-core.unittestutils.checkmediaheaders.md) | Takes the mock object for the <code>createRequest</code> method, extracts the headers that were sent with the call, and checks for the expected values for <code>Accept</code> and <code>Content-Type</code>. This to verify that the SDK sets the correct values in the code. |
13
- | [checkUrlAndMethod(options, url, method)](./ibm-cloud-sdk-core.unittestutils.checkurlandmethod.md) | Takes the request options constructed by the SDK and checks that the <code>url</code> and <code>method</code> properties were set to their correct values. |
14
- | [checkUserHeader(createRequestMock, userHeaderName, userHeaderValue)](./ibm-cloud-sdk-core.unittestutils.checkuserheader.md) | Takes the mock object for the <code>createRequest</code> method, extracts the headers that were sent with the call, and checks for the expected value for a user-defined header. This is verify that the SDK accepts header parameters and sends them as headers in the request. |
15
- | [expectToBePromise(sdkPromise)](./ibm-cloud-sdk-core.unittestutils.expecttobepromise.md) | This method simply ensures that the SDK methods return Promises by checking for the <code>then</code> function - common way to assess whether or not an object is a Promise. |
16
- | [getOptions(createRequestMock)](./ibm-cloud-sdk-core.unittestutils.getoptions.md) | This method extracts the <code>options</code> property from the object passed into <code>createRequest</code>. This property is an object containing all of the SDK method-specific information (like <code>path</code> and <code>body</code>) used to build a request. This method is just a convenience method for the unit tests to be able to make assertions on the items in the request. |
9
+ <table><thead><tr><th>
17
10
 
11
+ Function
12
+
13
+
14
+ </th><th>
15
+
16
+ Description
17
+
18
+
19
+ </th></tr></thead>
20
+ <tbody><tr><td>
21
+
22
+ [checkForSuccessfulExecution(createRequestMock)](./ibm-cloud-sdk-core.unittestutils.checkforsuccessfulexecution.md)
23
+
24
+
25
+ </td><td>
26
+
27
+ This method simply ensures that the method executed without any issues by extracting the argument from the mock object for the `createRequest` method and verifying that it is an object.
28
+
29
+
30
+ </td></tr>
31
+ <tr><td>
32
+
33
+ [checkMediaHeaders(createRequestMock, accept, contentType)](./ibm-cloud-sdk-core.unittestutils.checkmediaheaders.md)
34
+
35
+
36
+ </td><td>
37
+
38
+ Takes the mock object for the `createRequest` method, extracts the headers that were sent with the call, and checks for the expected values for `Accept` and `Content-Type`<!-- -->. This to verify that the SDK sets the correct values in the code.
39
+
40
+
41
+ </td></tr>
42
+ <tr><td>
43
+
44
+ [checkUrlAndMethod(options, url, method)](./ibm-cloud-sdk-core.unittestutils.checkurlandmethod.md)
45
+
46
+
47
+ </td><td>
48
+
49
+ Takes the request options constructed by the SDK and checks that the `url` and `method` properties were set to their correct values.
50
+
51
+
52
+ </td></tr>
53
+ <tr><td>
54
+
55
+ [checkUserHeader(createRequestMock, userHeaderName, userHeaderValue)](./ibm-cloud-sdk-core.unittestutils.checkuserheader.md)
56
+
57
+
58
+ </td><td>
59
+
60
+ Takes the mock object for the `createRequest` method, extracts the headers that were sent with the call, and checks for the expected value for a user-defined header. This is verify that the SDK accepts header parameters and sends them as headers in the request.
61
+
62
+
63
+ </td></tr>
64
+ <tr><td>
65
+
66
+ [expectToBePromise(sdkPromise)](./ibm-cloud-sdk-core.unittestutils.expecttobepromise.md)
67
+
68
+
69
+ </td><td>
70
+
71
+ This method simply ensures that the SDK methods return Promises by checking for the `then` function - common way to assess whether or not an object is a Promise.
72
+
73
+
74
+ </td></tr>
75
+ <tr><td>
76
+
77
+ [getOptions(createRequestMock)](./ibm-cloud-sdk-core.unittestutils.getoptions.md)
78
+
79
+
80
+ </td><td>
81
+
82
+ This method extracts the `options` property from the object passed into `createRequest`<!-- -->. This property is an object containing all of the SDK method-specific information (like `path` and `body`<!-- -->) used to build a request. This method is just a convenience method for the unit tests to be able to make assertions on the items in the request.
83
+
84
+
85
+ </td></tr>
86
+ </tbody></table>
@@ -14,13 +14,158 @@ export interface UserOptions
14
14
 
15
15
  ## Properties
16
16
 
17
- | Property | Modifiers | Type | Description |
18
- | --- | --- | --- | --- |
19
- | [authenticator?](./ibm-cloud-sdk-core.useroptions.authenticator.md) | | [AuthenticatorInterface](./ibm-cloud-sdk-core.authenticatorinterface.md) | _(Optional)_ The Authenticator object used to authenticate requests to the service |
20
- | [disableSslVerification?](./ibm-cloud-sdk-core.useroptions.disablesslverification.md) | | boolean | _(Optional)_ Set to <code>true</code> to allow unauthorized requests - not recommended for production use. |
21
- | [headers?](./ibm-cloud-sdk-core.useroptions.headers.md) | | OutgoingHttpHeaders | _(Optional)_ Default headers that shall be included with every request to the service. |
22
- | [jar?](./ibm-cloud-sdk-core.useroptions.jar.md) | | CookieJar \| boolean | _(Optional)_ Set your own cookie jar object |
23
- | [serviceUrl?](./ibm-cloud-sdk-core.useroptions.serviceurl.md) | | string | _(Optional)_ 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 | _(Optional)_ Deprecated. Use <code>serviceUrl</code> instead. |
25
- | [version?](./ibm-cloud-sdk-core.useroptions.version.md) | | string | _(Optional)_ The API version date to use with the service, in "YYYY-MM-DD" format. |
17
+ <table><thead><tr><th>
26
18
 
19
+ Property
20
+
21
+
22
+ </th><th>
23
+
24
+ Modifiers
25
+
26
+
27
+ </th><th>
28
+
29
+ Type
30
+
31
+
32
+ </th><th>
33
+
34
+ Description
35
+
36
+
37
+ </th></tr></thead>
38
+ <tbody><tr><td>
39
+
40
+ [authenticator?](./ibm-cloud-sdk-core.useroptions.authenticator.md)
41
+
42
+
43
+ </td><td>
44
+
45
+
46
+ </td><td>
47
+
48
+ [AuthenticatorInterface](./ibm-cloud-sdk-core.authenticatorinterface.md)
49
+
50
+
51
+ </td><td>
52
+
53
+ _(Optional)_ The Authenticator object used to authenticate requests to the service
54
+
55
+
56
+ </td></tr>
57
+ <tr><td>
58
+
59
+ [disableSslVerification?](./ibm-cloud-sdk-core.useroptions.disablesslverification.md)
60
+
61
+
62
+ </td><td>
63
+
64
+
65
+ </td><td>
66
+
67
+ boolean
68
+
69
+
70
+ </td><td>
71
+
72
+ _(Optional)_ Set to `true` to allow unauthorized requests - not recommended for production use.
73
+
74
+
75
+ </td></tr>
76
+ <tr><td>
77
+
78
+ [headers?](./ibm-cloud-sdk-core.useroptions.headers.md)
79
+
80
+
81
+ </td><td>
82
+
83
+
84
+ </td><td>
85
+
86
+ OutgoingHttpHeaders
87
+
88
+
89
+ </td><td>
90
+
91
+ _(Optional)_ Default headers that shall be included with every request to the service.
92
+
93
+
94
+ </td></tr>
95
+ <tr><td>
96
+
97
+ [jar?](./ibm-cloud-sdk-core.useroptions.jar.md)
98
+
99
+
100
+ </td><td>
101
+
102
+
103
+ </td><td>
104
+
105
+ CookieJar \| boolean
106
+
107
+
108
+ </td><td>
109
+
110
+ _(Optional)_ Set your own cookie jar object
111
+
112
+
113
+ </td></tr>
114
+ <tr><td>
115
+
116
+ [serviceUrl?](./ibm-cloud-sdk-core.useroptions.serviceurl.md)
117
+
118
+
119
+ </td><td>
120
+
121
+
122
+ </td><td>
123
+
124
+ string
125
+
126
+
127
+ </td><td>
128
+
129
+ _(Optional)_ The base url to use when contacting the service. The base url may differ between IBM Cloud regions.
130
+
131
+
132
+ </td></tr>
133
+ <tr><td>
134
+
135
+ [url?](./ibm-cloud-sdk-core.useroptions.url.md)
136
+
137
+
138
+ </td><td>
139
+
140
+
141
+ </td><td>
142
+
143
+ string
144
+
145
+
146
+ </td><td>
147
+
148
+ _(Optional)_ Deprecated. Use `serviceUrl` instead.
149
+
150
+
151
+ </td></tr>
152
+ <tr><td>
153
+
154
+ [version?](./ibm-cloud-sdk-core.useroptions.version.md)
155
+
156
+
157
+ </td><td>
158
+
159
+
160
+ </td><td>
161
+
162
+ string
163
+
164
+
165
+ </td><td>
166
+
167
+ _(Optional)_ The API version date to use with the service, in "YYYY-MM-DD" format.
168
+
169
+
170
+ </td></tr>
171
+ </tbody></table>
@@ -14,11 +14,55 @@ export declare function validateInput(options: any, requiredOptions: string[]):
14
14
 
15
15
  ## Parameters
16
16
 
17
- | Parameter | Type | Description |
18
- | --- | --- | --- |
19
- | options | any | a configuration options object |
20
- | requiredOptions | string\[\] | the list of properties that must be present in "options" |
17
+ <table><thead><tr><th>
21
18
 
19
+ Parameter
20
+
21
+
22
+ </th><th>
23
+
24
+ Type
25
+
26
+
27
+ </th><th>
28
+
29
+ Description
30
+
31
+
32
+ </th></tr></thead>
33
+ <tbody><tr><td>
34
+
35
+ options
36
+
37
+
38
+ </td><td>
39
+
40
+ any
41
+
42
+
43
+ </td><td>
44
+
45
+ a configuration options object
46
+
47
+
48
+ </td></tr>
49
+ <tr><td>
50
+
51
+ requiredOptions
52
+
53
+
54
+ </td><td>
55
+
56
+ string\[\]
57
+
58
+
59
+ </td><td>
60
+
61
+ the list of properties that must be present in "options"
62
+
63
+
64
+ </td></tr>
65
+ </tbody></table>
22
66
  **Returns:**
23
67
 
24
68
  void
@@ -16,12 +16,71 @@ export declare function validateParams(params: {
16
16
 
17
17
  ## Parameters
18
18
 
19
- | Parameter | Type | Description |
20
- | --- | --- | --- |
21
- | params | { \[key: string\]: any; } | the "params" object passed into an operation containing method parameters. |
22
- | requiredParams | string\[\] | the names of required parameters. If null, then the "required params" check is bypassed. |
23
- | allParams | string\[\] | the names of all valid parameters. If null, then the "valid params" check is bypassed. |
19
+ <table><thead><tr><th>
24
20
 
21
+ Parameter
22
+
23
+
24
+ </th><th>
25
+
26
+ Type
27
+
28
+
29
+ </th><th>
30
+
31
+ Description
32
+
33
+
34
+ </th></tr></thead>
35
+ <tbody><tr><td>
36
+
37
+ params
38
+
39
+
40
+ </td><td>
41
+
42
+ { \[key: string\]: any; }
43
+
44
+
45
+ </td><td>
46
+
47
+ the "params" object passed into an operation containing method parameters.
48
+
49
+
50
+ </td></tr>
51
+ <tr><td>
52
+
53
+ requiredParams
54
+
55
+
56
+ </td><td>
57
+
58
+ string\[\]
59
+
60
+
61
+ </td><td>
62
+
63
+ the names of required parameters. If null, then the "required params" check is bypassed.
64
+
65
+
66
+ </td></tr>
67
+ <tr><td>
68
+
69
+ allParams
70
+
71
+
72
+ </td><td>
73
+
74
+ string\[\]
75
+
76
+
77
+ </td><td>
78
+
79
+ the names of all valid parameters. If null, then the "valid params" check is bypassed.
80
+
81
+
82
+ </td></tr>
83
+ </tbody></table>
25
84
  **Returns:**
26
85
 
27
86
  null \| Error
@@ -14,9 +14,39 @@ constructor(options: Options);
14
14
 
15
15
  ## Parameters
16
16
 
17
- | Parameter | Type | Description |
18
- | --- | --- | --- |
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 |
17
+ <table><thead><tr><th>
18
+
19
+ Parameter
20
+
21
+
22
+ </th><th>
23
+
24
+ Type
25
+
26
+
27
+ </th><th>
28
+
29
+ Description
30
+
31
+
32
+ </th></tr></thead>
33
+ <tbody><tr><td>
34
+
35
+ options
36
+
37
+
38
+ </td><td>
39
+
40
+ Options
41
+
42
+
43
+ </td><td>
44
+
45
+ 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
46
+
47
+
48
+ </td></tr>
49
+ </tbody></table>
20
50
 
21
51
  ## Remarks
22
52
 
@@ -19,21 +19,140 @@ export declare class VpcInstanceAuthenticator extends TokenRequestBasedAuthentic
19
19
 
20
20
  ## Constructors
21
21
 
22
- | Constructor | Modifiers | Description |
23
- | --- | --- | --- |
24
- | [(constructor)(options)](./ibm-cloud-sdk-core.vpcinstanceauthenticator._constructor_.md) | | Create a new VpcInstanceAuthenticator instance. |
22
+ <table><thead><tr><th>
23
+
24
+ Constructor
25
+
26
+
27
+ </th><th>
28
+
29
+ Modifiers
30
+
31
+
32
+ </th><th>
33
+
34
+ Description
35
+
36
+
37
+ </th></tr></thead>
38
+ <tbody><tr><td>
39
+
40
+ [(constructor)(options)](./ibm-cloud-sdk-core.vpcinstanceauthenticator._constructor_.md)
41
+
42
+
43
+ </td><td>
44
+
45
+
46
+ </td><td>
47
+
48
+ Create a new VpcInstanceAuthenticator instance.
49
+
50
+
51
+ </td></tr>
52
+ </tbody></table>
25
53
 
26
54
  ## Properties
27
55
 
28
- | Property | Modifiers | Type | Description |
29
- | --- | --- | --- | --- |
30
- | [tokenManager](./ibm-cloud-sdk-core.vpcinstanceauthenticator.tokenmanager.md) | <code>protected</code> | [VpcInstanceTokenManager](./ibm-cloud-sdk-core.vpcinstancetokenmanager.md) | |
56
+ <table><thead><tr><th>
57
+
58
+ Property
59
+
60
+
61
+ </th><th>
62
+
63
+ Modifiers
64
+
65
+
66
+ </th><th>
67
+
68
+ Type
69
+
70
+
71
+ </th><th>
72
+
73
+ Description
74
+
75
+
76
+ </th></tr></thead>
77
+ <tbody><tr><td>
78
+
79
+ [tokenManager](./ibm-cloud-sdk-core.vpcinstanceauthenticator.tokenmanager.md)
80
+
81
+
82
+ </td><td>
83
+
84
+ `protected`
85
+
86
+
87
+ </td><td>
88
+
89
+ [VpcInstanceTokenManager](./ibm-cloud-sdk-core.vpcinstancetokenmanager.md)
90
+
91
+
92
+ </td><td>
93
+
94
+
95
+ </td></tr>
96
+ </tbody></table>
31
97
 
32
98
  ## Methods
33
99
 
34
- | Method | Modifiers | Description |
35
- | --- | --- | --- |
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) | | 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 |
100
+ <table><thead><tr><th>
101
+
102
+ Method
103
+
104
+
105
+ </th><th>
106
+
107
+ Modifiers
108
+
109
+
110
+ </th><th>
111
+
112
+ Description
113
+
114
+
115
+ </th></tr></thead>
116
+ <tbody><tr><td>
117
+
118
+ [authenticationType()](./ibm-cloud-sdk-core.vpcinstanceauthenticator.authenticationtype.md)
119
+
120
+
121
+ </td><td>
122
+
123
+
124
+ </td><td>
125
+
126
+ Returns the authenticator's type ('vpc').
127
+
128
+
129
+ </td></tr>
130
+ <tr><td>
131
+
132
+ [setIamProfileCrn(iamProfileCrn)](./ibm-cloud-sdk-core.vpcinstanceauthenticator.setiamprofilecrn.md)
133
+
134
+
135
+ </td><td>
136
+
137
+
138
+ </td><td>
139
+
140
+ Sets the "iamProfileCrn" value to be used when obtaining an IAM access token
141
+
142
+
143
+ </td></tr>
144
+ <tr><td>
145
+
146
+ [setIamProfileId(iamProfileId)](./ibm-cloud-sdk-core.vpcinstanceauthenticator.setiamprofileid.md)
147
+
148
+
149
+ </td><td>
150
+
151
+
152
+ </td><td>
153
+
154
+ Sets the "iamProfileId" value to be used when obtaining an IAM access token
155
+
39
156
 
157
+ </td></tr>
158
+ </tbody></table>
@@ -14,10 +14,39 @@ setIamProfileCrn(iamProfileCrn: string): void;
14
14
 
15
15
  ## Parameters
16
16
 
17
- | Parameter | Type | Description |
18
- | --- | --- | --- |
19
- | iamProfileCrn | string | the CRN of the linked IAM trusted profile to use when obtaining an IAM access token |
17
+ <table><thead><tr><th>
20
18
 
19
+ Parameter
20
+
21
+
22
+ </th><th>
23
+
24
+ Type
25
+
26
+
27
+ </th><th>
28
+
29
+ Description
30
+
31
+
32
+ </th></tr></thead>
33
+ <tbody><tr><td>
34
+
35
+ iamProfileCrn
36
+
37
+
38
+ </td><td>
39
+
40
+ string
41
+
42
+
43
+ </td><td>
44
+
45
+ the CRN of the linked IAM trusted profile to use when obtaining an IAM access token
46
+
47
+
48
+ </td></tr>
49
+ </tbody></table>
21
50
  **Returns:**
22
51
 
23
52
  void
@@ -14,10 +14,39 @@ setIamProfileId(iamProfileId: string): void;
14
14
 
15
15
  ## Parameters
16
16
 
17
- | Parameter | Type | Description |
18
- | --- | --- | --- |
19
- | iamProfileId | string | the ID of the linked IAM trusted profile to use when obtaining an IAM access token |
17
+ <table><thead><tr><th>
20
18
 
19
+ Parameter
20
+
21
+
22
+ </th><th>
23
+
24
+ Type
25
+
26
+
27
+ </th><th>
28
+
29
+ Description
30
+
31
+
32
+ </th></tr></thead>
33
+ <tbody><tr><td>
34
+
35
+ iamProfileId
36
+
37
+
38
+ </td><td>
39
+
40
+ string
41
+
42
+
43
+ </td><td>
44
+
45
+ the ID of the linked IAM trusted profile to use when obtaining an IAM access token
46
+
47
+
48
+ </td></tr>
49
+ </tbody></table>
21
50
  **Returns:**
22
51
 
23
52
  void