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.
- package/.secrets.baseline +17 -17
- package/CHANGELOG.md +7 -0
- package/auth/token-managers/container-token-manager.d.ts +1 -1
- package/auth/token-managers/container-token-manager.js +3 -1
- package/auth/token-managers/cp4d-token-manager.d.ts +1 -1
- package/auth/token-managers/cp4d-token-manager.js +4 -1
- package/auth/token-managers/iam-request-based-token-manager.js +2 -1
- package/auth/token-managers/iam-token-manager.d.ts +1 -1
- package/auth/token-managers/iam-token-manager.js +3 -1
- package/auth/token-managers/mcsp-token-manager.d.ts +1 -1
- package/auth/token-managers/mcsp-token-manager.js +4 -1
- package/auth/token-managers/token-manager.d.ts +1 -0
- package/auth/token-managers/vpc-instance-token-manager.js +4 -0
- package/auth/utils/file-reading-helpers.d.ts +1 -1
- package/auth/utils/file-reading-helpers.js +1 -1
- package/auth/utils/read-external-sources.js +4 -4
- package/build/docs/ibm-cloud-sdk-core.atleastone.md +48 -4
- package/build/docs/ibm-cloud-sdk-core.atmostone.md +48 -4
- package/build/docs/ibm-cloud-sdk-core.authenticator.authenticate.md +32 -3
- package/build/docs/ibm-cloud-sdk-core.authenticator.md +270 -18
- package/build/docs/ibm-cloud-sdk-core.authenticatorinterface.authenticate.md +32 -3
- package/build/docs/ibm-cloud-sdk-core.authenticatorinterface.md +33 -4
- package/build/docs/ibm-cloud-sdk-core.baseservice._constructor_.md +32 -3
- package/build/docs/ibm-cloud-sdk-core.baseservice.configureservice.md +32 -3
- package/build/docs/ibm-cloud-sdk-core.baseservice.convertmodel.md +64 -5
- package/build/docs/ibm-cloud-sdk-core.baseservice.createrequest.md +32 -3
- package/build/docs/ibm-cloud-sdk-core.baseservice.createrequestanddeserializeresponse.md +64 -5
- package/build/docs/ibm-cloud-sdk-core.baseservice.enableretries.md +32 -3
- package/build/docs/ibm-cloud-sdk-core.baseservice.md +288 -21
- package/build/docs/ibm-cloud-sdk-core.baseservice.setdefaultheaders.md +32 -3
- package/build/docs/ibm-cloud-sdk-core.baseservice.setenablegzipcompression.md +32 -3
- package/build/docs/ibm-cloud-sdk-core.baseservice.setserviceurl.md +32 -3
- package/build/docs/ibm-cloud-sdk-core.basicauthenticator._constructor_.md +33 -3
- package/build/docs/ibm-cloud-sdk-core.basicauthenticator.authenticate.md +32 -3
- package/build/docs/ibm-cloud-sdk-core.basicauthenticator.md +137 -11
- package/build/docs/ibm-cloud-sdk-core.bearertokenauthenticator._constructor_.md +33 -3
- package/build/docs/ibm-cloud-sdk-core.bearertokenauthenticator.authenticate.md +32 -3
- package/build/docs/ibm-cloud-sdk-core.bearertokenauthenticator.md +132 -11
- package/build/docs/ibm-cloud-sdk-core.bearertokenauthenticator.setbearertoken.md +32 -3
- package/build/docs/ibm-cloud-sdk-core.buildrequestfileobject.md +32 -3
- package/build/docs/ibm-cloud-sdk-core.checkcredentials.md +48 -4
- package/build/docs/ibm-cloud-sdk-core.cloudpakfordataauthenticator._constructor_.md +33 -3
- package/build/docs/ibm-cloud-sdk-core.cloudpakfordataauthenticator.md +121 -10
- package/build/docs/ibm-cloud-sdk-core.computebasicauthheader.md +48 -4
- package/build/docs/ibm-cloud-sdk-core.constructfilepath.md +30 -3
- package/build/docs/ibm-cloud-sdk-core.constructserviceurl.md +64 -5
- package/build/docs/ibm-cloud-sdk-core.containerauthenticator._constructor_.md +33 -3
- package/build/docs/ibm-cloud-sdk-core.containerauthenticator.md +144 -12
- package/build/docs/ibm-cloud-sdk-core.containerauthenticator.setcrtokenfilename.md +32 -3
- package/build/docs/ibm-cloud-sdk-core.containerauthenticator.setiamprofileid.md +32 -3
- package/build/docs/ibm-cloud-sdk-core.containerauthenticator.setiamprofilename.md +32 -3
- package/build/docs/ibm-cloud-sdk-core.containertokenmanager._constructor_.md +33 -3
- package/build/docs/ibm-cloud-sdk-core.containertokenmanager.md +121 -10
- package/build/docs/ibm-cloud-sdk-core.containertokenmanager.setcrtokenfilename.md +32 -3
- package/build/docs/ibm-cloud-sdk-core.containertokenmanager.setiamprofileid.md +32 -3
- package/build/docs/ibm-cloud-sdk-core.containertokenmanager.setiamprofilename.md +32 -3
- package/build/docs/ibm-cloud-sdk-core.cp4dtokenmanager._constructor_.md +33 -3
- package/build/docs/ibm-cloud-sdk-core.cp4dtokenmanager.md +102 -9
- package/build/docs/ibm-cloud-sdk-core.fileexistsatpath.md +30 -3
- package/build/docs/ibm-cloud-sdk-core.fileobject.md +57 -4
- package/build/docs/ibm-cloud-sdk-core.fileoptions.md +59 -4
- package/build/docs/ibm-cloud-sdk-core.filestream.md +38 -3
- package/build/docs/ibm-cloud-sdk-core.filewithmetadata.md +72 -5
- package/build/docs/ibm-cloud-sdk-core.getauthenticatorfromenvironment.md +32 -3
- package/build/docs/ibm-cloud-sdk-core.getcontenttype.md +32 -3
- package/build/docs/ibm-cloud-sdk-core.getformat.md +46 -4
- package/build/docs/ibm-cloud-sdk-core.getmissingparams.md +48 -4
- package/build/docs/ibm-cloud-sdk-core.getnewlogger.md +32 -3
- package/build/docs/ibm-cloud-sdk-core.getqueryparam.md +48 -4
- package/build/docs/ibm-cloud-sdk-core.iamauthenticator._constructor_.md +33 -3
- package/build/docs/ibm-cloud-sdk-core.iamauthenticator.md +121 -10
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedauthenticator._constructor_.md +33 -3
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedauthenticator.md +187 -14
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedauthenticator.setclientidandsecret.md +48 -4
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedauthenticator.setscope.md +32 -3
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedtokenmanager._constructor_.md +33 -3
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedtokenmanager.md +197 -15
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedtokenmanager.savetokeninfo.md +32 -3
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedtokenmanager.setclientidandsecret.md +48 -4
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedtokenmanager.setscope.md +32 -3
- package/build/docs/ibm-cloud-sdk-core.iamrequestoptions.md +78 -5
- package/build/docs/ibm-cloud-sdk-core.iamtokenmanager._constructor_.md +33 -3
- package/build/docs/ibm-cloud-sdk-core.iamtokenmanager.md +71 -6
- package/build/docs/ibm-cloud-sdk-core.isemptyobject.md +30 -3
- package/build/docs/ibm-cloud-sdk-core.isfiledata.md +30 -3
- package/build/docs/ibm-cloud-sdk-core.isfilewithmetadata.md +30 -3
- package/build/docs/ibm-cloud-sdk-core.ishtml.md +32 -3
- package/build/docs/ibm-cloud-sdk-core.isjsonmimetype.md +32 -3
- package/build/docs/ibm-cloud-sdk-core.jwttokenmanager._constructor_.md +32 -3
- package/build/docs/ibm-cloud-sdk-core.jwttokenmanager.md +139 -11
- package/build/docs/ibm-cloud-sdk-core.jwttokenmanager.savetokeninfo.md +32 -3
- package/build/docs/ibm-cloud-sdk-core.mcspauthenticator._constructor_.md +33 -3
- package/build/docs/ibm-cloud-sdk-core.mcspauthenticator.md +121 -10
- package/build/docs/ibm-cloud-sdk-core.mcsptokenmanager._constructor_.md +33 -3
- package/build/docs/ibm-cloud-sdk-core.mcsptokenmanager.md +102 -9
- package/build/docs/ibm-cloud-sdk-core.md +794 -75
- package/build/docs/ibm-cloud-sdk-core.noauthauthenticator.authenticate.md +30 -3
- package/build/docs/ibm-cloud-sdk-core.noauthauthenticator.md +42 -4
- package/build/docs/ibm-cloud-sdk-core.onlyone.md +48 -4
- package/build/docs/ibm-cloud-sdk-core.readcrtokenfile.md +30 -3
- package/build/docs/ibm-cloud-sdk-core.readexternalsources.md +32 -3
- package/build/docs/ibm-cloud-sdk-core.removesuffix.md +48 -4
- package/build/docs/ibm-cloud-sdk-core.sdklogger.md +106 -7
- package/build/docs/ibm-cloud-sdk-core.streamtopromise.md +32 -3
- package/build/docs/ibm-cloud-sdk-core.striptrailingslash.md +32 -3
- package/build/docs/ibm-cloud-sdk-core.tokenmanager._constructor_.md +32 -3
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.md +329 -21
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.savetokeninfo.md +32 -3
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.setdisablesslverification.md +32 -3
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.setheaders.md +32 -3
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.useragent.md +11 -0
- package/build/docs/ibm-cloud-sdk-core.tokenrequestbasedauthenticator._constructor_.md +32 -3
- package/build/docs/ibm-cloud-sdk-core.tokenrequestbasedauthenticator.authenticate.md +32 -3
- package/build/docs/ibm-cloud-sdk-core.tokenrequestbasedauthenticator.md +189 -14
- package/build/docs/ibm-cloud-sdk-core.tokenrequestbasedauthenticator.setdisablesslverification.md +32 -3
- package/build/docs/ibm-cloud-sdk-core.tokenrequestbasedauthenticator.setheaders.md +32 -3
- package/build/docs/ibm-cloud-sdk-core.tolowerkeys.md +32 -3
- package/build/docs/ibm-cloud-sdk-core.unittestutils.checkforsuccessfulexecution.md +32 -3
- package/build/docs/ibm-cloud-sdk-core.unittestutils.checkmediaheaders.md +64 -5
- package/build/docs/ibm-cloud-sdk-core.unittestutils.checkurlandmethod.md +64 -5
- package/build/docs/ibm-cloud-sdk-core.unittestutils.checkuserheader.md +64 -5
- package/build/docs/ibm-cloud-sdk-core.unittestutils.expecttobepromise.md +32 -3
- package/build/docs/ibm-cloud-sdk-core.unittestutils.getoptions.md +32 -3
- package/build/docs/ibm-cloud-sdk-core.unittestutils.md +77 -8
- package/build/docs/ibm-cloud-sdk-core.useroptions.md +154 -9
- package/build/docs/ibm-cloud-sdk-core.validateinput.md +48 -4
- package/build/docs/ibm-cloud-sdk-core.validateparams.md +64 -5
- package/build/docs/ibm-cloud-sdk-core.vpcinstanceauthenticator._constructor_.md +33 -3
- package/build/docs/ibm-cloud-sdk-core.vpcinstanceauthenticator.md +130 -11
- package/build/docs/ibm-cloud-sdk-core.vpcinstanceauthenticator.setiamprofilecrn.md +32 -3
- package/build/docs/ibm-cloud-sdk-core.vpcinstanceauthenticator.setiamprofileid.md +32 -3
- package/build/docs/ibm-cloud-sdk-core.vpcinstancetokenmanager._constructor_.md +33 -3
- package/build/docs/ibm-cloud-sdk-core.vpcinstancetokenmanager.md +105 -9
- package/build/docs/ibm-cloud-sdk-core.vpcinstancetokenmanager.setiamprofilecrn.md +32 -3
- package/build/docs/ibm-cloud-sdk-core.vpcinstancetokenmanager.setiamprofileid.md +32 -3
- package/build/docs/index.md +20 -3
- package/docs/ibm-cloud-sdk-core.api.json +31 -1
- package/es/auth/token-managers/container-token-manager.d.ts +1 -1
- package/es/auth/token-managers/container-token-manager.js +3 -1
- package/es/auth/token-managers/cp4d-token-manager.d.ts +1 -1
- package/es/auth/token-managers/cp4d-token-manager.js +4 -1
- package/es/auth/token-managers/iam-request-based-token-manager.js +2 -1
- package/es/auth/token-managers/iam-token-manager.d.ts +1 -1
- package/es/auth/token-managers/iam-token-manager.js +3 -1
- package/es/auth/token-managers/mcsp-token-manager.d.ts +1 -1
- package/es/auth/token-managers/mcsp-token-manager.js +4 -1
- package/es/auth/token-managers/token-manager.d.ts +1 -0
- package/es/auth/token-managers/vpc-instance-token-manager.js +4 -0
- package/es/auth/utils/file-reading-helpers.d.ts +1 -1
- package/es/auth/utils/file-reading-helpers.js +1 -1
- package/es/auth/utils/read-external-sources.js +4 -4
- package/es/lib/base-service.d.ts +2 -1
- package/es/lib/base-service.js +9 -1
- package/es/lib/build-user-agent.d.ts +21 -0
- package/es/lib/build-user-agent.js +27 -0
- package/es/tsdoc-metadata.json +1 -1
- package/etc/ibm-cloud-sdk-core.api.md +2 -0
- package/ibm-cloud-sdk-core.d.ts +3 -1
- package/lib/base-service.d.ts +2 -1
- package/lib/base-service.js +9 -1
- package/lib/build-user-agent.d.ts +21 -0
- package/lib/build-user-agent.js +32 -0
- package/package.json +9 -10
- package/temp/ibm-cloud-sdk-core.api.json +31 -1
- package/temp/ibm-cloud-sdk-core.api.md +2 -0
- package/.nvmrc +0 -1
|
@@ -14,12 +14,71 @@ export declare function constructServiceUrl(parameterizedUrl: string, defaultUrl
|
|
|
14
14
|
|
|
15
15
|
## Parameters
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
| --- | --- | --- |
|
|
19
|
-
| parameterizedUrl | string | a URL that contains variable placeholders, e.g. '<!-- -->{<!-- -->scheme<!-- -->}<!-- -->://ibm.com'. |
|
|
20
|
-
| defaultUrlVariables | Map<string, string> | 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<string, string> \| 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<string, string>
|
|
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<string, string> \| 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
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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
|
-
|
|
29
|
-
|
|
30
|
-
|
|
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
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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
|
-
|
|
19
|
-
|
|
20
|
-
|
|
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
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|