ibm-cloud-sdk-core 5.0.0 → 5.0.1
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/CHANGELOG.md +8 -0
- package/README.md +1 -2
- package/package.json +4 -3
- package/build/docs/ibm-cloud-sdk-core.atleastone.md +0 -71
- package/build/docs/ibm-cloud-sdk-core.atmostone.md +0 -71
- package/build/docs/ibm-cloud-sdk-core.authenticator._constructor_.md +0 -18
- package/build/docs/ibm-cloud-sdk-core.authenticator.authenticate.md +0 -57
- package/build/docs/ibm-cloud-sdk-core.authenticator.authenticationtype.md +0 -19
- package/build/docs/ibm-cloud-sdk-core.authenticator.authtype_basic.md +0 -13
- package/build/docs/ibm-cloud-sdk-core.authenticator.authtype_bearertoken.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.authenticator.authtype_container.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.authenticator.authtype_cp4d.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.authenticator.authtype_iam.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.authenticator.authtype_mcsp.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.authenticator.authtype_noauth.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.authenticator.authtype_unknown.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.authenticator.authtype_vpc.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.authenticator.md +0 -294
- package/build/docs/ibm-cloud-sdk-core.authenticatorinterface.authenticate.md +0 -53
- package/build/docs/ibm-cloud-sdk-core.authenticatorinterface.authenticationtype.md +0 -17
- package/build/docs/ibm-cloud-sdk-core.authenticatorinterface.md +0 -50
- package/build/docs/ibm-cloud-sdk-core.baseservice._constructor_.md +0 -49
- package/build/docs/ibm-cloud-sdk-core.baseservice.baseoptions.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.baseservice.configureservice.md +0 -53
- package/build/docs/ibm-cloud-sdk-core.baseservice.convertmodel.md +0 -85
- package/build/docs/ibm-cloud-sdk-core.baseservice.createrequest.md +0 -55
- package/build/docs/ibm-cloud-sdk-core.baseservice.createrequestanddeserializeresponse.md +0 -87
- package/build/docs/ibm-cloud-sdk-core.baseservice.default_service_name.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.baseservice.default_service_url.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.baseservice.disableretries.md +0 -17
- package/build/docs/ibm-cloud-sdk-core.baseservice.enableretries.md +0 -53
- package/build/docs/ibm-cloud-sdk-core.baseservice.getauthenticator.md +0 -19
- package/build/docs/ibm-cloud-sdk-core.baseservice.gethttpclient.md +0 -17
- package/build/docs/ibm-cloud-sdk-core.baseservice.md +0 -313
- package/build/docs/ibm-cloud-sdk-core.baseservice.setdefaultheaders.md +0 -53
- package/build/docs/ibm-cloud-sdk-core.baseservice.setenablegzipcompression.md +0 -53
- package/build/docs/ibm-cloud-sdk-core.baseservice.setserviceurl.md +0 -53
- package/build/docs/ibm-cloud-sdk-core.basicauthenticator._constructor_.md +0 -54
- package/build/docs/ibm-cloud-sdk-core.basicauthenticator.authenticate.md +0 -55
- package/build/docs/ibm-cloud-sdk-core.basicauthenticator.authenticationtype.md +0 -19
- package/build/docs/ibm-cloud-sdk-core.basicauthenticator.authheader.md +0 -13
- package/build/docs/ibm-cloud-sdk-core.basicauthenticator.md +0 -165
- package/build/docs/ibm-cloud-sdk-core.basicauthenticator.requiredoptions.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.bearertokenauthenticator._constructor_.md +0 -54
- package/build/docs/ibm-cloud-sdk-core.bearertokenauthenticator.authenticate.md +0 -55
- package/build/docs/ibm-cloud-sdk-core.bearertokenauthenticator.authenticationtype.md +0 -19
- package/build/docs/ibm-cloud-sdk-core.bearertokenauthenticator.md +0 -160
- package/build/docs/ibm-cloud-sdk-core.bearertokenauthenticator.requiredoptions.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.bearertokenauthenticator.setbearertoken.md +0 -53
- package/build/docs/ibm-cloud-sdk-core.buildrequestfileobject.md +0 -55
- package/build/docs/ibm-cloud-sdk-core.checkcredentials.md +0 -71
- package/build/docs/ibm-cloud-sdk-core.cloudpakfordataauthenticator._constructor_.md +0 -54
- package/build/docs/ibm-cloud-sdk-core.cloudpakfordataauthenticator.authenticationtype.md +0 -19
- package/build/docs/ibm-cloud-sdk-core.cloudpakfordataauthenticator.md +0 -149
- package/build/docs/ibm-cloud-sdk-core.cloudpakfordataauthenticator.requiredoptions.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.cloudpakfordataauthenticator.tokenmanager.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.computebasicauthheader.md +0 -71
- package/build/docs/ibm-cloud-sdk-core.constructfilepath.md +0 -49
- package/build/docs/ibm-cloud-sdk-core.constructserviceurl.md +0 -87
- package/build/docs/ibm-cloud-sdk-core.containerauthenticator._constructor_.md +0 -54
- package/build/docs/ibm-cloud-sdk-core.containerauthenticator.authenticationtype.md +0 -19
- package/build/docs/ibm-cloud-sdk-core.containerauthenticator.md +0 -172
- package/build/docs/ibm-cloud-sdk-core.containerauthenticator.setcrtokenfilename.md +0 -53
- package/build/docs/ibm-cloud-sdk-core.containerauthenticator.setiamprofileid.md +0 -53
- package/build/docs/ibm-cloud-sdk-core.containerauthenticator.setiamprofilename.md +0 -53
- package/build/docs/ibm-cloud-sdk-core.containerauthenticator.tokenmanager.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.containertokenmanager._constructor_.md +0 -54
- package/build/docs/ibm-cloud-sdk-core.containertokenmanager.getcrtoken.md +0 -19
- package/build/docs/ibm-cloud-sdk-core.containertokenmanager.md +0 -142
- package/build/docs/ibm-cloud-sdk-core.containertokenmanager.requesttoken.md +0 -17
- package/build/docs/ibm-cloud-sdk-core.containertokenmanager.setcrtokenfilename.md +0 -53
- package/build/docs/ibm-cloud-sdk-core.containertokenmanager.setiamprofileid.md +0 -53
- package/build/docs/ibm-cloud-sdk-core.containertokenmanager.setiamprofilename.md +0 -53
- package/build/docs/ibm-cloud-sdk-core.contenttype.md +0 -14
- package/build/docs/ibm-cloud-sdk-core.cp4dtokenmanager._constructor_.md +0 -54
- package/build/docs/ibm-cloud-sdk-core.cp4dtokenmanager.md +0 -128
- package/build/docs/ibm-cloud-sdk-core.cp4dtokenmanager.requesttoken.md +0 -15
- package/build/docs/ibm-cloud-sdk-core.cp4dtokenmanager.requiredoptions.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.fileexistsatpath.md +0 -49
- package/build/docs/ibm-cloud-sdk-core.fileobject.md +0 -80
- package/build/docs/ibm-cloud-sdk-core.fileobject.options.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.fileobject.value.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.fileoptions.contenttype.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.fileoptions.filename.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.fileoptions.md +0 -74
- package/build/docs/ibm-cloud-sdk-core.filestream.md +0 -54
- package/build/docs/ibm-cloud-sdk-core.filestream.path.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.filewithmetadata.contenttype.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.filewithmetadata.data.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.filewithmetadata.filename.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.filewithmetadata.md +0 -87
- package/build/docs/ibm-cloud-sdk-core.getauthenticatorfromenvironment.md +0 -55
- package/build/docs/ibm-cloud-sdk-core.getcontenttype.md +0 -55
- package/build/docs/ibm-cloud-sdk-core.getcurrenttime.md +0 -19
- package/build/docs/ibm-cloud-sdk-core.getformat.md +0 -69
- package/build/docs/ibm-cloud-sdk-core.getmissingparams.md +0 -73
- package/build/docs/ibm-cloud-sdk-core.getnewlogger.md +0 -59
- package/build/docs/ibm-cloud-sdk-core.getqueryparam.md +0 -71
- package/build/docs/ibm-cloud-sdk-core.iamauthenticator._constructor_.md +0 -54
- package/build/docs/ibm-cloud-sdk-core.iamauthenticator.authenticationtype.md +0 -19
- package/build/docs/ibm-cloud-sdk-core.iamauthenticator.md +0 -149
- package/build/docs/ibm-cloud-sdk-core.iamauthenticator.requiredoptions.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.iamauthenticator.tokenmanager.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedauthenticator._constructor_.md +0 -54
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedauthenticator.clientid.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedauthenticator.clientsecret.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedauthenticator.getrefreshtoken.md +0 -19
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedauthenticator.md +0 -211
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedauthenticator.scope.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedauthenticator.setclientidandsecret.md +0 -69
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedauthenticator.setscope.md +0 -53
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedauthenticator.tokenmanager.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedtokenmanager._constructor_.md +0 -54
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedtokenmanager.formdata.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedtokenmanager.getrefreshtoken.md +0 -19
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedtokenmanager.istokenexpired.md +0 -19
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedtokenmanager.md +0 -221
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedtokenmanager.refreshtoken.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedtokenmanager.requesttoken.md +0 -19
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedtokenmanager.savetokeninfo.md +0 -53
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedtokenmanager.setclientidandsecret.md +0 -69
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedtokenmanager.setscope.md +0 -53
- package/build/docs/ibm-cloud-sdk-core.iamrequestoptions.clientid.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.iamrequestoptions.clientsecret.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.iamrequestoptions.md +0 -96
- package/build/docs/ibm-cloud-sdk-core.iamrequestoptions.scope.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.iamtokenmanager._constructor_.md +0 -54
- package/build/docs/ibm-cloud-sdk-core.iamtokenmanager.md +0 -92
- package/build/docs/ibm-cloud-sdk-core.iamtokenmanager.requiredoptions.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.isemptyobject.md +0 -49
- package/build/docs/ibm-cloud-sdk-core.isfiledata.md +0 -49
- package/build/docs/ibm-cloud-sdk-core.isfilewithmetadata.md +0 -49
- package/build/docs/ibm-cloud-sdk-core.ishtml.md +0 -55
- package/build/docs/ibm-cloud-sdk-core.isjsonmimetype.md +0 -55
- package/build/docs/ibm-cloud-sdk-core.jwttokenmanager._constructor_.md +0 -49
- package/build/docs/ibm-cloud-sdk-core.jwttokenmanager.md +0 -163
- package/build/docs/ibm-cloud-sdk-core.jwttokenmanager.requesttoken.md +0 -19
- package/build/docs/ibm-cloud-sdk-core.jwttokenmanager.savetokeninfo.md +0 -53
- package/build/docs/ibm-cloud-sdk-core.jwttokenmanager.tokeninfo.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.jwttokenmanager.tokenname.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.jwttokenmanageroptions.md +0 -15
- package/build/docs/ibm-cloud-sdk-core.mcspauthenticator._constructor_.md +0 -54
- package/build/docs/ibm-cloud-sdk-core.mcspauthenticator.authenticationtype.md +0 -19
- package/build/docs/ibm-cloud-sdk-core.mcspauthenticator.md +0 -145
- package/build/docs/ibm-cloud-sdk-core.mcspauthenticator.requiredoptions.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.mcspauthenticator.tokenmanager.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.mcsptokenmanager._constructor_.md +0 -54
- package/build/docs/ibm-cloud-sdk-core.mcsptokenmanager.md +0 -128
- package/build/docs/ibm-cloud-sdk-core.mcsptokenmanager.requesttoken.md +0 -15
- package/build/docs/ibm-cloud-sdk-core.mcsptokenmanager.requiredoptions.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.md +0 -794
- package/build/docs/ibm-cloud-sdk-core.noauthauthenticator.authenticate.md +0 -49
- package/build/docs/ibm-cloud-sdk-core.noauthauthenticator.authenticationtype.md +0 -19
- package/build/docs/ibm-cloud-sdk-core.noauthauthenticator.md +0 -60
- package/build/docs/ibm-cloud-sdk-core.onlyone.md +0 -71
- package/build/docs/ibm-cloud-sdk-core.qs.md +0 -21
- package/build/docs/ibm-cloud-sdk-core.readcredentialsfile.md +0 -17
- package/build/docs/ibm-cloud-sdk-core.readcrtokenfile.md +0 -49
- package/build/docs/ibm-cloud-sdk-core.readexternalsources.md +0 -55
- package/build/docs/ibm-cloud-sdk-core.removesuffix.md +0 -71
- package/build/docs/ibm-cloud-sdk-core.sdklogger.debug.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.sdklogger.error.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.sdklogger.info.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.sdklogger.md +0 -121
- package/build/docs/ibm-cloud-sdk-core.sdklogger.verbose.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.sdklogger.warn.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.streamtopromise.md +0 -55
- package/build/docs/ibm-cloud-sdk-core.striptrailingslash.md +0 -55
- package/build/docs/ibm-cloud-sdk-core.tokenmanager._constructor_.md +0 -49
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.accesstoken.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.disablesslverification.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.expiretime.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.gettoken.md +0 -17
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.headers.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.istokenexpired.md +0 -17
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.md +0 -352
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.pacedrequesttoken.md +0 -19
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.refreshtime.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.requesttoken.md +0 -19
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.requestwrapperinstance.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.savetokeninfo.md +0 -53
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.setdisablesslverification.md +0 -53
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.setheaders.md +0 -53
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.url.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.useragent.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.tokenmanageroptions.md +0 -18
- package/build/docs/ibm-cloud-sdk-core.tokenrequestbasedauthenticator._constructor_.md +0 -49
- package/build/docs/ibm-cloud-sdk-core.tokenrequestbasedauthenticator.authenticate.md +0 -55
- package/build/docs/ibm-cloud-sdk-core.tokenrequestbasedauthenticator.disablesslverification.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.tokenrequestbasedauthenticator.headers.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.tokenrequestbasedauthenticator.md +0 -217
- package/build/docs/ibm-cloud-sdk-core.tokenrequestbasedauthenticator.setdisablesslverification.md +0 -53
- package/build/docs/ibm-cloud-sdk-core.tokenrequestbasedauthenticator.setheaders.md +0 -53
- package/build/docs/ibm-cloud-sdk-core.tokenrequestbasedauthenticator.tokenmanager.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.tokenrequestbasedauthenticator.url.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.tolowerkeys.md +0 -55
- package/build/docs/ibm-cloud-sdk-core.useroptions.authenticator.md +0 -13
- package/build/docs/ibm-cloud-sdk-core.useroptions.disablesslverification.md +0 -13
- package/build/docs/ibm-cloud-sdk-core.useroptions.headers.md +0 -13
- package/build/docs/ibm-cloud-sdk-core.useroptions.jar.md +0 -13
- package/build/docs/ibm-cloud-sdk-core.useroptions.md +0 -171
- package/build/docs/ibm-cloud-sdk-core.useroptions.serviceurl.md +0 -13
- package/build/docs/ibm-cloud-sdk-core.useroptions.url.md +0 -13
- package/build/docs/ibm-cloud-sdk-core.useroptions.version.md +0 -13
- package/build/docs/ibm-cloud-sdk-core.validateinput.md +0 -73
- package/build/docs/ibm-cloud-sdk-core.validateparams.md +0 -89
- package/build/docs/ibm-cloud-sdk-core.vpcinstanceauthenticator._constructor_.md +0 -54
- package/build/docs/ibm-cloud-sdk-core.vpcinstanceauthenticator.authenticationtype.md +0 -19
- package/build/docs/ibm-cloud-sdk-core.vpcinstanceauthenticator.md +0 -158
- package/build/docs/ibm-cloud-sdk-core.vpcinstanceauthenticator.setiamprofilecrn.md +0 -53
- package/build/docs/ibm-cloud-sdk-core.vpcinstanceauthenticator.setiamprofileid.md +0 -53
- package/build/docs/ibm-cloud-sdk-core.vpcinstanceauthenticator.tokenmanager.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.vpcinstancetokenmanager._constructor_.md +0 -54
- package/build/docs/ibm-cloud-sdk-core.vpcinstancetokenmanager.istokenexpired.md +0 -19
- package/build/docs/ibm-cloud-sdk-core.vpcinstancetokenmanager.md +0 -126
- package/build/docs/ibm-cloud-sdk-core.vpcinstancetokenmanager.requesttoken.md +0 -15
- package/build/docs/ibm-cloud-sdk-core.vpcinstancetokenmanager.setiamprofilecrn.md +0 -53
- package/build/docs/ibm-cloud-sdk-core.vpcinstancetokenmanager.setiamprofileid.md +0 -53
- package/build/docs/index.md +0 -29
- package/es/tsdoc-metadata.json +0 -11
- package/temp/ibm-cloud-sdk-core.api.json +0 -8263
- package/temp/ibm-cloud-sdk-core.api.md +0 -487
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [ibm-cloud-sdk-core](./ibm-cloud-sdk-core.md) > [getContentType](./ibm-cloud-sdk-core.getcontenttype.md)
|
|
4
|
-
|
|
5
|
-
## getContentType() function
|
|
6
|
-
|
|
7
|
-
This function retrieves the content type of the input.
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
export declare function getContentType(inputData: NodeJS.ReadableStream | Buffer): Promise<string>;
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Parameters
|
|
16
|
-
|
|
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
|
-
inputData
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
</td><td>
|
|
39
|
-
|
|
40
|
-
NodeJS.ReadableStream \| Buffer
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
</td><td>
|
|
44
|
-
|
|
45
|
-
The data to retrieve content type for.
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
</td></tr>
|
|
49
|
-
</tbody></table>
|
|
50
|
-
**Returns:**
|
|
51
|
-
|
|
52
|
-
Promise<string>
|
|
53
|
-
|
|
54
|
-
the content type of the input.
|
|
55
|
-
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [ibm-cloud-sdk-core](./ibm-cloud-sdk-core.md) > [getCurrentTime](./ibm-cloud-sdk-core.getcurrenttime.md)
|
|
4
|
-
|
|
5
|
-
## getCurrentTime() function
|
|
6
|
-
|
|
7
|
-
Gets the current time.
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
export declare function getCurrentTime(): number;
|
|
13
|
-
```
|
|
14
|
-
**Returns:**
|
|
15
|
-
|
|
16
|
-
number
|
|
17
|
-
|
|
18
|
-
the current time in seconds.
|
|
19
|
-
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [ibm-cloud-sdk-core](./ibm-cloud-sdk-core.md) > [getFormat](./ibm-cloud-sdk-core.getformat.md)
|
|
4
|
-
|
|
5
|
-
## getFormat() function
|
|
6
|
-
|
|
7
|
-
Returns the first match from formats that is key the params map otherwise null
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
export declare function getFormat(params: {
|
|
13
|
-
[key: string]: any;
|
|
14
|
-
}, formats: string[]): string;
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
## Parameters
|
|
18
|
-
|
|
19
|
-
<table><thead><tr><th>
|
|
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 parameters.
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
</td></tr>
|
|
51
|
-
<tr><td>
|
|
52
|
-
|
|
53
|
-
formats
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
</td><td>
|
|
57
|
-
|
|
58
|
-
string\[\]
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
</td><td>
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
</td></tr>
|
|
65
|
-
</tbody></table>
|
|
66
|
-
**Returns:**
|
|
67
|
-
|
|
68
|
-
string
|
|
69
|
-
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [ibm-cloud-sdk-core](./ibm-cloud-sdk-core.md) > [getMissingParams](./ibm-cloud-sdk-core.getmissingparams.md)
|
|
4
|
-
|
|
5
|
-
## getMissingParams() function
|
|
6
|
-
|
|
7
|
-
Validates that all required params are provided
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
export declare function getMissingParams(params: {
|
|
13
|
-
[key: string]: any;
|
|
14
|
-
}, requires: string[]): null | Error;
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
## Parameters
|
|
18
|
-
|
|
19
|
-
<table><thead><tr><th>
|
|
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 method parameters.
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
</td></tr>
|
|
51
|
-
<tr><td>
|
|
52
|
-
|
|
53
|
-
requires
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
</td><td>
|
|
57
|
-
|
|
58
|
-
string\[\]
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
</td><td>
|
|
62
|
-
|
|
63
|
-
the required parameter names.
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
</td></tr>
|
|
67
|
-
</tbody></table>
|
|
68
|
-
**Returns:**
|
|
69
|
-
|
|
70
|
-
null \| Error
|
|
71
|
-
|
|
72
|
-
null if no errors found, otherwise an Error instance
|
|
73
|
-
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [ibm-cloud-sdk-core](./ibm-cloud-sdk-core.md) > [getNewLogger](./ibm-cloud-sdk-core.getnewlogger.md)
|
|
4
|
-
|
|
5
|
-
## getNewLogger() function
|
|
6
|
-
|
|
7
|
-
Return a new logger, formatted with a particular name. The logging functions, in order of increasing verbosity, are: `error`<!-- -->, `warn`<!-- -->, `info`<!-- -->, `verbose`<!-- -->, and `debug`<!-- -->.
|
|
8
|
-
|
|
9
|
-
The logger will be an instance of the `debug` package and utilizes its support for configuration with environment variables.
|
|
10
|
-
|
|
11
|
-
Additionally, the logger will be turned on automatically if the "NODE\_DEBUG" environment variable is set to "axios".
|
|
12
|
-
|
|
13
|
-
**Signature:**
|
|
14
|
-
|
|
15
|
-
```typescript
|
|
16
|
-
export declare function getNewLogger(moduleName: string): SDKLogger;
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
## Parameters
|
|
20
|
-
|
|
21
|
-
<table><thead><tr><th>
|
|
22
|
-
|
|
23
|
-
Parameter
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
</th><th>
|
|
27
|
-
|
|
28
|
-
Type
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
</th><th>
|
|
32
|
-
|
|
33
|
-
Description
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
</th></tr></thead>
|
|
37
|
-
<tbody><tr><td>
|
|
38
|
-
|
|
39
|
-
moduleName
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
</td><td>
|
|
43
|
-
|
|
44
|
-
string
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
</td><td>
|
|
48
|
-
|
|
49
|
-
the namespace for the logger. The name will appear in the logs and it will be the name used for configuring the log level.
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
</td></tr>
|
|
53
|
-
</tbody></table>
|
|
54
|
-
**Returns:**
|
|
55
|
-
|
|
56
|
-
[SDKLogger](./ibm-cloud-sdk-core.sdklogger.md)
|
|
57
|
-
|
|
58
|
-
the new logger
|
|
59
|
-
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [ibm-cloud-sdk-core](./ibm-cloud-sdk-core.md) > [getQueryParam](./ibm-cloud-sdk-core.getqueryparam.md)
|
|
4
|
-
|
|
5
|
-
## getQueryParam() function
|
|
6
|
-
|
|
7
|
-
Return a query parameter value from a URL
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
export declare function getQueryParam(urlStr: string, param: string): string;
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Parameters
|
|
16
|
-
|
|
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
|
-
urlStr
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
</td><td>
|
|
39
|
-
|
|
40
|
-
string
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
</td><td>
|
|
44
|
-
|
|
45
|
-
the url string.
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
</td></tr>
|
|
49
|
-
<tr><td>
|
|
50
|
-
|
|
51
|
-
param
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
</td><td>
|
|
55
|
-
|
|
56
|
-
string
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
</td><td>
|
|
60
|
-
|
|
61
|
-
the name of the query parameter whose value should be returned
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
</td></tr>
|
|
65
|
-
</tbody></table>
|
|
66
|
-
**Returns:**
|
|
67
|
-
|
|
68
|
-
string
|
|
69
|
-
|
|
70
|
-
the value of the "param" query parameter
|
|
71
|
-
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [ibm-cloud-sdk-core](./ibm-cloud-sdk-core.md) > [IamAuthenticator](./ibm-cloud-sdk-core.iamauthenticator.md) > [(constructor)](./ibm-cloud-sdk-core.iamauthenticator._constructor_.md)
|
|
4
|
-
|
|
5
|
-
## IamAuthenticator.(constructor)
|
|
6
|
-
|
|
7
|
-
Create a new IamAuthenticator instance.
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
constructor(options: Options);
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Parameters
|
|
16
|
-
|
|
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 - apikey: (required) the IAM api key - disableSslVerification: (optional) a flag that indicates whether verification of the token server's SSL certificate should be disabled or not - headers: (optional) a set of HTTP headers to be sent with each request to the token service - clientId: (optional) the "clientId" and "clientSecret" fields are used to form a Basic Authorization header to be included in each request to the token service - clientSecret: (optional) the "clientId" and "clientSecret" fields are used to form a Basic Authorization header to be included in each request to the token service - scope: (optional) the "scope" parameter to use when fetching the bearer token from the token service
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
</td></tr>
|
|
49
|
-
</tbody></table>
|
|
50
|
-
|
|
51
|
-
## Exceptions
|
|
52
|
-
|
|
53
|
-
Error: the configuration options are not valid.
|
|
54
|
-
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [ibm-cloud-sdk-core](./ibm-cloud-sdk-core.md) > [IamAuthenticator](./ibm-cloud-sdk-core.iamauthenticator.md) > [authenticationType](./ibm-cloud-sdk-core.iamauthenticator.authenticationtype.md)
|
|
4
|
-
|
|
5
|
-
## IamAuthenticator.authenticationType() method
|
|
6
|
-
|
|
7
|
-
Returns the authenticator's type ('iam').
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
authenticationType(): string;
|
|
13
|
-
```
|
|
14
|
-
**Returns:**
|
|
15
|
-
|
|
16
|
-
string
|
|
17
|
-
|
|
18
|
-
a string that indicates the authenticator's type
|
|
19
|
-
|
|
@@ -1,149 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [ibm-cloud-sdk-core](./ibm-cloud-sdk-core.md) > [IamAuthenticator](./ibm-cloud-sdk-core.iamauthenticator.md)
|
|
4
|
-
|
|
5
|
-
## IamAuthenticator class
|
|
6
|
-
|
|
7
|
-
The IamAuthenticator will use the user-supplied `apikey` value to obtain a bearer token from a token server. When the bearer token expires, a new token is obtained from the token server. If specified, the optional, mutually inclusive "clientId" and "clientSecret" pair can be used to influence rate-limiting for requests to the IAM token server.
|
|
8
|
-
|
|
9
|
-
The bearer token will be sent as an Authorization header in the form:
|
|
10
|
-
|
|
11
|
-
Authorization: Bearer <<!-- -->bearer-token<!-- -->>
|
|
12
|
-
|
|
13
|
-
**Signature:**
|
|
14
|
-
|
|
15
|
-
```typescript
|
|
16
|
-
export declare class IamAuthenticator extends IamRequestBasedAuthenticator
|
|
17
|
-
```
|
|
18
|
-
**Extends:** [IamRequestBasedAuthenticator](./ibm-cloud-sdk-core.iamrequestbasedauthenticator.md)
|
|
19
|
-
|
|
20
|
-
## Constructors
|
|
21
|
-
|
|
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.iamauthenticator._constructor_.md)
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
</td><td>
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
</td><td>
|
|
47
|
-
|
|
48
|
-
Create a new IamAuthenticator instance.
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
</td></tr>
|
|
52
|
-
</tbody></table>
|
|
53
|
-
|
|
54
|
-
## Properties
|
|
55
|
-
|
|
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
|
-
[requiredOptions](./ibm-cloud-sdk-core.iamauthenticator.requiredoptions.md)
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
</td><td>
|
|
83
|
-
|
|
84
|
-
`protected`
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
</td><td>
|
|
88
|
-
|
|
89
|
-
string\[\]
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
</td><td>
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
</td></tr>
|
|
96
|
-
<tr><td>
|
|
97
|
-
|
|
98
|
-
[tokenManager](./ibm-cloud-sdk-core.iamauthenticator.tokenmanager.md)
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
</td><td>
|
|
102
|
-
|
|
103
|
-
`protected`
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
</td><td>
|
|
107
|
-
|
|
108
|
-
[IamTokenManager](./ibm-cloud-sdk-core.iamtokenmanager.md)
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
</td><td>
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
</td></tr>
|
|
115
|
-
</tbody></table>
|
|
116
|
-
|
|
117
|
-
## Methods
|
|
118
|
-
|
|
119
|
-
<table><thead><tr><th>
|
|
120
|
-
|
|
121
|
-
Method
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
</th><th>
|
|
125
|
-
|
|
126
|
-
Modifiers
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
</th><th>
|
|
130
|
-
|
|
131
|
-
Description
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
</th></tr></thead>
|
|
135
|
-
<tbody><tr><td>
|
|
136
|
-
|
|
137
|
-
[authenticationType()](./ibm-cloud-sdk-core.iamauthenticator.authenticationtype.md)
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
</td><td>
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
</td><td>
|
|
144
|
-
|
|
145
|
-
Returns the authenticator's type ('iam').
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
</td></tr>
|
|
149
|
-
</tbody></table>
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [ibm-cloud-sdk-core](./ibm-cloud-sdk-core.md) > [IamAuthenticator](./ibm-cloud-sdk-core.iamauthenticator.md) > [requiredOptions](./ibm-cloud-sdk-core.iamauthenticator.requiredoptions.md)
|
|
4
|
-
|
|
5
|
-
## IamAuthenticator.requiredOptions property
|
|
6
|
-
|
|
7
|
-
**Signature:**
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
protected requiredOptions: string[];
|
|
11
|
-
```
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [ibm-cloud-sdk-core](./ibm-cloud-sdk-core.md) > [IamAuthenticator](./ibm-cloud-sdk-core.iamauthenticator.md) > [tokenManager](./ibm-cloud-sdk-core.iamauthenticator.tokenmanager.md)
|
|
4
|
-
|
|
5
|
-
## IamAuthenticator.tokenManager property
|
|
6
|
-
|
|
7
|
-
**Signature:**
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
protected tokenManager: IamTokenManager;
|
|
11
|
-
```
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [ibm-cloud-sdk-core](./ibm-cloud-sdk-core.md) > [IamRequestBasedAuthenticator](./ibm-cloud-sdk-core.iamrequestbasedauthenticator.md) > [(constructor)](./ibm-cloud-sdk-core.iamrequestbasedauthenticator._constructor_.md)
|
|
4
|
-
|
|
5
|
-
## IamRequestBasedAuthenticator.(constructor)
|
|
6
|
-
|
|
7
|
-
Create a new IamRequestBasedAuthenticator instance.
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
constructor(options: IamRequestOptions);
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Parameters
|
|
16
|
-
|
|
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
|
-
IamRequestOptions
|
|
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 - 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>
|
|
50
|
-
|
|
51
|
-
## Exceptions
|
|
52
|
-
|
|
53
|
-
Error: the configuration options are not valid.
|
|
54
|
-
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [ibm-cloud-sdk-core](./ibm-cloud-sdk-core.md) > [IamRequestBasedAuthenticator](./ibm-cloud-sdk-core.iamrequestbasedauthenticator.md) > [clientId](./ibm-cloud-sdk-core.iamrequestbasedauthenticator.clientid.md)
|
|
4
|
-
|
|
5
|
-
## IamRequestBasedAuthenticator.clientId property
|
|
6
|
-
|
|
7
|
-
**Signature:**
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
protected clientId: string;
|
|
11
|
-
```
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [ibm-cloud-sdk-core](./ibm-cloud-sdk-core.md) > [IamRequestBasedAuthenticator](./ibm-cloud-sdk-core.iamrequestbasedauthenticator.md) > [clientSecret](./ibm-cloud-sdk-core.iamrequestbasedauthenticator.clientsecret.md)
|
|
4
|
-
|
|
5
|
-
## IamRequestBasedAuthenticator.clientSecret property
|
|
6
|
-
|
|
7
|
-
**Signature:**
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
protected clientSecret: string;
|
|
11
|
-
```
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [ibm-cloud-sdk-core](./ibm-cloud-sdk-core.md) > [IamRequestBasedAuthenticator](./ibm-cloud-sdk-core.iamrequestbasedauthenticator.md) > [getRefreshToken](./ibm-cloud-sdk-core.iamrequestbasedauthenticator.getrefreshtoken.md)
|
|
4
|
-
|
|
5
|
-
## IamRequestBasedAuthenticator.getRefreshToken() method
|
|
6
|
-
|
|
7
|
-
Return the most recently stored refresh token.
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
getRefreshToken(): string;
|
|
13
|
-
```
|
|
14
|
-
**Returns:**
|
|
15
|
-
|
|
16
|
-
string
|
|
17
|
-
|
|
18
|
-
the refresh token string
|
|
19
|
-
|