ibm-cloud-sdk-core 4.2.4 → 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 +14 -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 +10 -15
  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
@@ -14,12 +14,71 @@ export declare function constructServiceUrl(parameterizedUrl: string, defaultUrl
14
14
 
15
15
  ## Parameters
16
16
 
17
- | Parameter | Type | Description |
18
- | --- | --- | --- |
19
- | parameterizedUrl | string | a URL that contains variable placeholders, e.g. '<!-- -->{<!-- -->scheme<!-- -->}<!-- -->://ibm.com'. |
20
- | defaultUrlVariables | Map&lt;string, string&gt; | a Map of variable names to default values. Each variable in the parameterized URL must have a default value specified in this map. |
21
- | providedUrlVariables | Map&lt;string, string&gt; \| null | a Map of variable names to desired values. If a variable is not provided in this map, the default variable value will be used instead. |
17
+ <table><thead><tr><th>
22
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
+ parameterizedUrl
36
+
37
+
38
+ </td><td>
39
+
40
+ string
41
+
42
+
43
+ </td><td>
44
+
45
+ a URL that contains variable placeholders, e.g. '<!-- -->{<!-- -->scheme<!-- -->}<!-- -->://ibm.com'.
46
+
47
+
48
+ </td></tr>
49
+ <tr><td>
50
+
51
+ defaultUrlVariables
52
+
53
+
54
+ </td><td>
55
+
56
+ Map&lt;string, string&gt;
57
+
58
+
59
+ </td><td>
60
+
61
+ a Map of variable names to default values. Each variable in the parameterized URL must have a default value specified in this map.
62
+
63
+
64
+ </td></tr>
65
+ <tr><td>
66
+
67
+ providedUrlVariables
68
+
69
+
70
+ </td><td>
71
+
72
+ Map&lt;string, string&gt; \| null
73
+
74
+
75
+ </td><td>
76
+
77
+ a Map of variable names to desired values. If a variable is not provided in this map, the default variable value will be used instead.
78
+
79
+
80
+ </td></tr>
81
+ </tbody></table>
23
82
  **Returns:**
24
83
 
25
84
  string
@@ -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 IAM authentication. This should be an object containing these fields: - url: (optional) the endpoint URL for the token service - crTokenFilename: (optional) the file containing the compute resource token - iamProfileName: (optional) the name of the IAM trusted profile associated with the compute resource token (required if iamProfileId is not specified) - iamProfileId\]: (optional) the ID of the IAM trusted profile associated with the compute resource token (required if iamProfileName is not specified) - 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 |
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 IAM authentication. This should be an object containing these fields: - url: (optional) the endpoint URL for the token service - crTokenFilename: (optional) the file containing the compute resource token - iamProfileName: (optional) the name of the IAM trusted profile associated with the compute resource token (required if iamProfileId is not specified) - iamProfileId\]: (optional) the ID of the IAM trusted profile associated with the compute resource token (required if iamProfileName is not specified) - 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
46
+
47
+
48
+ </td></tr>
49
+ </tbody></table>
20
50
 
21
51
  ## Exceptions
22
52
 
@@ -19,22 +19,154 @@ export declare class ContainerAuthenticator extends IamRequestBasedAuthenticator
19
19
 
20
20
  ## Constructors
21
21
 
22
- | Constructor | Modifiers | Description |
23
- | --- | --- | --- |
24
- | [(constructor)(options)](./ibm-cloud-sdk-core.containerauthenticator._constructor_.md) | | Create a new ContainerAuthenticator 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.containerauthenticator._constructor_.md)
41
+
42
+
43
+ </td><td>
44
+
45
+
46
+ </td><td>
47
+
48
+ Create a new ContainerAuthenticator 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.containerauthenticator.tokenmanager.md) | <code>protected</code> | [ContainerTokenManager](./ibm-cloud-sdk-core.containertokenmanager.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.containerauthenticator.tokenmanager.md)
80
+
81
+
82
+ </td><td>
83
+
84
+ `protected`
85
+
86
+
87
+ </td><td>
88
+
89
+ [ContainerTokenManager](./ibm-cloud-sdk-core.containertokenmanager.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.containerauthenticator.authenticationtype.md) | | Returns the authenticator's type ('container'). |
37
- | [setCrTokenFilename(crTokenFilename)](./ibm-cloud-sdk-core.containerauthenticator.setcrtokenfilename.md) | | Setter for the filename of the compute resource token. |
38
- | [setIamProfileId(iamProfileId)](./ibm-cloud-sdk-core.containerauthenticator.setiamprofileid.md) | | Setter for the "profile\_id" parameter to use when fetching the bearer token from the IAM token server. |
39
- | [setIamProfileName(iamProfileName)](./ibm-cloud-sdk-core.containerauthenticator.setiamprofilename.md) | | Setter for the "profile\_name" parameter to use when fetching the bearer token from the IAM token server. |
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.containerauthenticator.authenticationtype.md)
119
+
120
+
121
+ </td><td>
122
+
123
+
124
+ </td><td>
125
+
126
+ Returns the authenticator's type ('container').
127
+
128
+
129
+ </td></tr>
130
+ <tr><td>
131
+
132
+ [setCrTokenFilename(crTokenFilename)](./ibm-cloud-sdk-core.containerauthenticator.setcrtokenfilename.md)
133
+
134
+
135
+ </td><td>
136
+
137
+
138
+ </td><td>
139
+
140
+ Setter for the filename of the compute resource token.
141
+
142
+
143
+ </td></tr>
144
+ <tr><td>
145
+
146
+ [setIamProfileId(iamProfileId)](./ibm-cloud-sdk-core.containerauthenticator.setiamprofileid.md)
147
+
148
+
149
+ </td><td>
150
+
151
+
152
+ </td><td>
153
+
154
+ Setter for the "profile\_id" parameter to use when fetching the bearer token from the IAM token server.
155
+
156
+
157
+ </td></tr>
158
+ <tr><td>
159
+
160
+ [setIamProfileName(iamProfileName)](./ibm-cloud-sdk-core.containerauthenticator.setiamprofilename.md)
161
+
162
+
163
+ </td><td>
164
+
165
+
166
+ </td><td>
167
+
168
+ Setter for the "profile\_name" parameter to use when fetching the bearer token from the IAM token server.
169
+
40
170
 
171
+ </td></tr>
172
+ </tbody></table>
@@ -14,10 +14,39 @@ setCrTokenFilename(crTokenFilename: string): void;
14
14
 
15
15
  ## Parameters
16
16
 
17
- | Parameter | Type | Description |
18
- | --- | --- | --- |
19
- | crTokenFilename | string | A string containing a path to the CR token file |
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
+ crTokenFilename
36
+
37
+
38
+ </td><td>
39
+
40
+ string
41
+
42
+
43
+ </td><td>
44
+
45
+ A string containing a path to the CR token file
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 IAM trusted profile |
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 IAM trusted profile
46
+
47
+
48
+ </td></tr>
49
+ </tbody></table>
21
50
  **Returns:**
22
51
 
23
52
  void
@@ -14,10 +14,39 @@ setIamProfileName(iamProfileName: string): void;
14
14
 
15
15
  ## Parameters
16
16
 
17
- | Parameter | Type | Description |
18
- | --- | --- | --- |
19
- | iamProfileName | string | the name of the IAM trusted profile |
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
+ iamProfileName
36
+
37
+
38
+ </td><td>
39
+
40
+ string
41
+
42
+
43
+ </td><td>
44
+
45
+ the name of the IAM trusted profile
46
+
47
+
48
+ </td></tr>
49
+ </tbody></table>
21
50
  **Returns:**
22
51
 
23
52
  void
@@ -14,9 +14,39 @@ constructor(options: Options);
14
14
 
15
15
  ## Parameters
16
16
 
17
- | Parameter | Type | Description |
18
- | --- | --- | --- |
19
- | options | Options | Configuration options. This should be an object containing these fields: - url: (optional) the endpoint URL for the token service (default: "https://iam.cloud.ibm.com") - crTokenFilename: (optional) the file containing the compute resource token (default: "/var/run/secrets/tokens/vault-token") - iamProfileName: (optional) the name of the IAM trusted profile associated with the compute resource token (required if iamProfileId is not specified) - iamProfileId\]: (optional) the ID of the IAM trusted profile associated with the compute resource token (required if iamProfileName is not specified) - headers: (optional) a set of HTTP headers to be sent with each request to the token service - disableSslVerification: (optional) a flag that indicates whether verification of the token server's SSL certificate should be disabled or not - 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 |
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. This should be an object containing these fields: - url: (optional) the endpoint URL for the token service (default: "https://iam.cloud.ibm.com") - crTokenFilename: (optional) the file containing the compute resource token (default: "/var/run/secrets/tokens/vault-token") - iamProfileName: (optional) the name of the IAM trusted profile associated with the compute resource token (required if iamProfileId is not specified) - iamProfileId\]: (optional) the ID of the IAM trusted profile associated with the compute resource token (required if iamProfileName is not specified) - headers: (optional) a set of HTTP headers to be sent with each request to the token service - disableSslVerification: (optional) a flag that indicates whether verification of the token server's SSL certificate should be disabled or not - 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
46
+
47
+
48
+ </td></tr>
49
+ </tbody></table>
20
50
 
21
51
  ## Exceptions
22
52
 
@@ -15,17 +15,128 @@ export declare class ContainerTokenManager extends IamRequestBasedTokenManager
15
15
 
16
16
  ## Constructors
17
17
 
18
- | Constructor | Modifiers | Description |
19
- | --- | --- | --- |
20
- | [(constructor)(options)](./ibm-cloud-sdk-core.containertokenmanager._constructor_.md) | | Create a new ContainerTokenManager instance. |
18
+ <table><thead><tr><th>
19
+
20
+ Constructor
21
+
22
+
23
+ </th><th>
24
+
25
+ Modifiers
26
+
27
+
28
+ </th><th>
29
+
30
+ Description
31
+
32
+
33
+ </th></tr></thead>
34
+ <tbody><tr><td>
35
+
36
+ [(constructor)(options)](./ibm-cloud-sdk-core.containertokenmanager._constructor_.md)
37
+
38
+
39
+ </td><td>
40
+
41
+
42
+ </td><td>
43
+
44
+ Create a new ContainerTokenManager instance.
45
+
46
+
47
+ </td></tr>
48
+ </tbody></table>
21
49
 
22
50
  ## Methods
23
51
 
24
- | Method | Modifiers | Description |
25
- | --- | --- | --- |
26
- | [getCrToken()](./ibm-cloud-sdk-core.containertokenmanager.getcrtoken.md) | <code>protected</code> | Retrieves the CR token from a file using this search order: 1. User-specified filename (if specified) 2. Default file \#1 (/var/run/secrets/tokens/vault-token) 3. Default file \#2 (/var/run/secrets/tokens/sa-token) First one found wins. |
27
- | [requestToken()](./ibm-cloud-sdk-core.containertokenmanager.requesttoken.md) | <code>protected</code> | Request an IAM token using a compute resource token. |
28
- | [setCrTokenFilename(crTokenFilename)](./ibm-cloud-sdk-core.containertokenmanager.setcrtokenfilename.md) | | Sets the "crTokenFilename" field |
29
- | [setIamProfileId(iamProfileId)](./ibm-cloud-sdk-core.containertokenmanager.setiamprofileid.md) | | Sets the ID of the IAM trusted profile to use when obtaining an access token from the IAM token server. |
30
- | [setIamProfileName(iamProfileName)](./ibm-cloud-sdk-core.containertokenmanager.setiamprofilename.md) | | Sets the name of the IAM trusted profile to use when obtaining an access token from the IAM token server. |
52
+ <table><thead><tr><th>
53
+
54
+ Method
55
+
56
+
57
+ </th><th>
58
+
59
+ Modifiers
60
+
61
+
62
+ </th><th>
63
+
64
+ Description
65
+
66
+
67
+ </th></tr></thead>
68
+ <tbody><tr><td>
69
+
70
+ [getCrToken()](./ibm-cloud-sdk-core.containertokenmanager.getcrtoken.md)
71
+
72
+
73
+ </td><td>
74
+
75
+ `protected`
76
+
77
+
78
+ </td><td>
79
+
80
+ Retrieves the CR token from a file using this search order: 1. User-specified filename (if specified) 2. Default file \#1 (/var/run/secrets/tokens/vault-token) 3. Default file \#2 (/var/run/secrets/tokens/sa-token) First one found wins.
81
+
82
+
83
+ </td></tr>
84
+ <tr><td>
85
+
86
+ [requestToken()](./ibm-cloud-sdk-core.containertokenmanager.requesttoken.md)
87
+
88
+
89
+ </td><td>
90
+
91
+ `protected`
92
+
93
+
94
+ </td><td>
95
+
96
+ Request an IAM token using a compute resource token.
97
+
98
+
99
+ </td></tr>
100
+ <tr><td>
101
+
102
+ [setCrTokenFilename(crTokenFilename)](./ibm-cloud-sdk-core.containertokenmanager.setcrtokenfilename.md)
103
+
104
+
105
+ </td><td>
106
+
107
+
108
+ </td><td>
109
+
110
+ Sets the "crTokenFilename" field
111
+
112
+
113
+ </td></tr>
114
+ <tr><td>
115
+
116
+ [setIamProfileId(iamProfileId)](./ibm-cloud-sdk-core.containertokenmanager.setiamprofileid.md)
117
+
118
+
119
+ </td><td>
120
+
121
+
122
+ </td><td>
123
+
124
+ Sets the ID of the IAM trusted profile to use when obtaining an access token from the IAM token server.
125
+
126
+
127
+ </td></tr>
128
+ <tr><td>
129
+
130
+ [setIamProfileName(iamProfileName)](./ibm-cloud-sdk-core.containertokenmanager.setiamprofilename.md)
131
+
132
+
133
+ </td><td>
134
+
135
+
136
+ </td><td>
137
+
138
+ Sets the name of the IAM trusted profile to use when obtaining an access token from the IAM token server.
139
+
31
140
 
141
+ </td></tr>
142
+ </tbody></table>
@@ -14,10 +14,39 @@ setCrTokenFilename(crTokenFilename: string): void;
14
14
 
15
15
  ## Parameters
16
16
 
17
- | Parameter | Type | Description |
18
- | --- | --- | --- |
19
- | crTokenFilename | string | the name of the file containing the CR 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
+ crTokenFilename
36
+
37
+
38
+ </td><td>
39
+
40
+ string
41
+
42
+
43
+ </td><td>
44
+
45
+ the name of the file containing the CR 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 IAM trusted profile |
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 IAM trusted profile
46
+
47
+
48
+ </td></tr>
49
+ </tbody></table>
21
50
  **Returns:**
22
51
 
23
52
  void