ibm-cloud-sdk-core 4.0.7 → 4.0.8
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 +7 -0
- package/auth/authenticators/basic-authenticator.d.ts +1 -1
- package/auth/authenticators/basic-authenticator.js +4 -4
- package/auth/authenticators/bearer-token-authenticator.d.ts +1 -1
- package/auth/authenticators/bearer-token-authenticator.js +3 -3
- package/auth/authenticators/cloud-pak-for-data-authenticator.d.ts +2 -2
- package/auth/authenticators/cloud-pak-for-data-authenticator.js +3 -3
- package/auth/authenticators/container-authenticator.d.ts +2 -2
- package/auth/authenticators/container-authenticator.js +3 -3
- package/auth/authenticators/iam-authenticator.d.ts +2 -2
- package/auth/authenticators/iam-authenticator.js +5 -5
- package/auth/authenticators/iam-request-based-authenticator.d.ts +2 -2
- package/auth/authenticators/iam-request-based-authenticator.js +3 -3
- package/auth/authenticators/index.d.ts +2 -2
- package/auth/authenticators/index.js +1 -1
- package/auth/authenticators/token-request-based-authenticator.d.ts +2 -2
- package/auth/authenticators/token-request-based-authenticator.js +3 -3
- package/auth/authenticators/vpc-instance-authenticator.d.ts +2 -2
- package/auth/authenticators/vpc-instance-authenticator.js +3 -3
- package/auth/token-managers/container-token-manager.js +6 -5
- package/auth/token-managers/cp4d-token-manager.d.ts +1 -1
- package/auth/token-managers/cp4d-token-manager.js +3 -3
- package/auth/token-managers/iam-request-based-token-manager.d.ts +1 -1
- package/auth/token-managers/iam-request-based-token-manager.js +6 -6
- package/auth/token-managers/iam-token-manager.d.ts +1 -1
- package/auth/token-managers/iam-token-manager.js +3 -3
- package/auth/token-managers/token-manager.d.ts +1 -1
- package/auth/token-managers/token-manager.js +4 -4
- package/auth/token-managers/vpc-instance-token-manager.js +2 -2
- package/build/docs/ibm-cloud-sdk-core.atleastone.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.atmostone.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.authenticator._constructor_.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.authenticator.authenticate.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.authenticator.authenticationtype.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.authenticator.authtype_basic.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.authenticator.authtype_bearertoken.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.authenticator.authtype_container.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.authenticator.authtype_cp4d.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.authenticator.authtype_iam.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.authenticator.authtype_noauth.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.authenticator.authtype_unknown.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.authenticator.authtype_vpc.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.authenticator.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.authenticatorinterface.authenticate.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.authenticatorinterface.authenticationtype.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.authenticatorinterface.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.baseservice._constructor_.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.baseservice.baseoptions.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.baseservice.configureservice.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.baseservice.createrequest.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.baseservice.default_service_name.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.baseservice.default_service_url.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.baseservice.disableretries.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.baseservice.enableretries.md +3 -3
- package/build/docs/ibm-cloud-sdk-core.baseservice.getauthenticator.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.baseservice.gethttpclient.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.baseservice.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.baseservice.setdefaultheaders.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.baseservice.setenablegzipcompression.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.baseservice.setserviceurl.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.basicauthenticator._constructor_.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.basicauthenticator.authenticate.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.basicauthenticator.authenticationtype.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.basicauthenticator.authheader.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.basicauthenticator.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.basicauthenticator.requiredoptions.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.bearertokenauthenticator._constructor_.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.bearertokenauthenticator.authenticate.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.bearertokenauthenticator.authenticationtype.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.bearertokenauthenticator.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.bearertokenauthenticator.requiredoptions.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.bearertokenauthenticator.setbearertoken.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.buildrequestfileobject.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.checkcredentials.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.cloudpakfordataauthenticator._constructor_.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.cloudpakfordataauthenticator.authenticationtype.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.cloudpakfordataauthenticator.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.cloudpakfordataauthenticator.requiredoptions.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.cloudpakfordataauthenticator.tokenmanager.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.computebasicauthheader.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.constructfilepath.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.constructserviceurl.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.containerauthenticator._constructor_.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.containerauthenticator.authenticationtype.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.containerauthenticator.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.containerauthenticator.setcrtokenfilename.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.containerauthenticator.setiamprofileid.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.containerauthenticator.setiamprofilename.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.containerauthenticator.tokenmanager.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.containertokenmanager._constructor_.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.containertokenmanager.getcrtoken.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.containertokenmanager.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.containertokenmanager.requesttoken.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.containertokenmanager.setcrtokenfilename.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.containertokenmanager.setiamprofileid.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.containertokenmanager.setiamprofilename.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.contenttype.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.cp4dtokenmanager._constructor_.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.cp4dtokenmanager.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.cp4dtokenmanager.requesttoken.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.cp4dtokenmanager.requiredoptions.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.fileexistsatpath.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.fileobject.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.fileobject.options.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.fileobject.value.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.fileoptions.contenttype.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.fileoptions.filename.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.fileoptions.md +3 -3
- package/build/docs/ibm-cloud-sdk-core.filestream.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.filestream.path.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.filewithmetadata.contenttype.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.filewithmetadata.data.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.filewithmetadata.filename.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.filewithmetadata.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.getauthenticatorfromenvironment.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.getcontenttype.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.getcurrenttime.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.getformat.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.getmissingparams.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.getnewlogger.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.getqueryparam.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.iamauthenticator._constructor_.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.iamauthenticator.authenticationtype.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.iamauthenticator.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.iamauthenticator.requiredoptions.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.iamauthenticator.tokenmanager.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedauthenticator._constructor_.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedauthenticator.clientid.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedauthenticator.clientsecret.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedauthenticator.getrefreshtoken.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedauthenticator.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedauthenticator.scope.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedauthenticator.setclientidandsecret.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedauthenticator.setscope.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedauthenticator.tokenmanager.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedtokenmanager._constructor_.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedtokenmanager.formdata.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedtokenmanager.getrefreshtoken.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedtokenmanager.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedtokenmanager.refreshtoken.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedtokenmanager.requesttoken.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedtokenmanager.savetokeninfo.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedtokenmanager.setclientidandsecret.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedtokenmanager.setscope.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.iamrequestoptions.clientid.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.iamrequestoptions.clientsecret.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.iamrequestoptions.md +5 -5
- package/build/docs/ibm-cloud-sdk-core.iamrequestoptions.scope.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.iamtokenmanager._constructor_.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.iamtokenmanager.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.iamtokenmanager.requiredoptions.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.isemptyobject.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.isfiledata.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.isfilewithmetadata.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.ishtml.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.isjsonmimetype.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.jwttokenmanager._constructor_.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.jwttokenmanager.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.jwttokenmanager.requesttoken.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.jwttokenmanager.savetokeninfo.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.jwttokenmanager.tokeninfo.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.jwttokenmanager.tokenname.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.jwttokenmanageroptions.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.noauthauthenticator.authenticate.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.noauthauthenticator.authenticationtype.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.noauthauthenticator.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.onlyone.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.qs.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.readcredentialsfile.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.readcrtokenfile.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.readexternalsources.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.removesuffix.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.sdklogger.debug.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.sdklogger.error.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.sdklogger.info.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.sdklogger.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.sdklogger.verbose.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.sdklogger.warn.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.streamtopromise.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.striptrailingslash.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.tokenmanager._constructor_.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.accesstoken.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.disablesslverification.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.expiretime.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.gettoken.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.headers.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.pacedrequesttoken.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.refreshtime.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.requesttoken.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.requestwrapperinstance.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.savetokeninfo.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.setdisablesslverification.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.setheaders.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.url.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.tokenmanageroptions.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.tokenrequestbasedauthenticator._constructor_.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.tokenrequestbasedauthenticator.authenticate.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.tokenrequestbasedauthenticator.disablesslverification.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.tokenrequestbasedauthenticator.headers.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.tokenrequestbasedauthenticator.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.tokenrequestbasedauthenticator.setdisablesslverification.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.tokenrequestbasedauthenticator.setheaders.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.tokenrequestbasedauthenticator.tokenmanager.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.tokenrequestbasedauthenticator.url.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.tolowerkeys.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.unittestutils.checkforsuccessfulexecution.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.unittestutils.checkmediaheaders.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.unittestutils.checkurlandmethod.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.unittestutils.checkuserheader.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.unittestutils.expecttobepromise.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.unittestutils.getoptions.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.useroptions.authenticator.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.useroptions.disablesslverification.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.useroptions.headers.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.useroptions.jar.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.useroptions.md +8 -8
- package/build/docs/ibm-cloud-sdk-core.useroptions.serviceurl.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.useroptions.url.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.useroptions.version.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.validateinput.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.validateparams.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.vpcinstanceauthenticator._constructor_.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.vpcinstanceauthenticator.authenticationtype.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.vpcinstanceauthenticator.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.vpcinstanceauthenticator.setiamprofilecrn.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.vpcinstanceauthenticator.setiamprofileid.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.vpcinstanceauthenticator.tokenmanager.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.vpcinstancetokenmanager._constructor_.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.vpcinstancetokenmanager.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.vpcinstancetokenmanager.requesttoken.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.vpcinstancetokenmanager.setiamprofilecrn.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.vpcinstancetokenmanager.setiamprofileid.md +2 -2
- package/docs/ibm-cloud-sdk-core.api.json +157 -43
- package/es/auth/authenticators/basic-authenticator.d.ts +1 -1
- package/es/auth/authenticators/basic-authenticator.js +2 -2
- package/es/auth/authenticators/bearer-token-authenticator.d.ts +1 -1
- package/es/auth/authenticators/bearer-token-authenticator.js +2 -2
- package/es/auth/authenticators/cloud-pak-for-data-authenticator.d.ts +2 -2
- package/es/auth/authenticators/cloud-pak-for-data-authenticator.js +2 -2
- package/es/auth/authenticators/container-authenticator.d.ts +2 -2
- package/es/auth/authenticators/container-authenticator.js +2 -2
- package/es/auth/authenticators/iam-authenticator.d.ts +2 -2
- package/es/auth/authenticators/iam-authenticator.js +3 -3
- package/es/auth/authenticators/iam-request-based-authenticator.d.ts +2 -2
- package/es/auth/authenticators/iam-request-based-authenticator.js +2 -2
- package/es/auth/authenticators/index.d.ts +2 -2
- package/es/auth/authenticators/index.js +1 -1
- package/es/auth/authenticators/token-request-based-authenticator.d.ts +2 -2
- package/es/auth/authenticators/token-request-based-authenticator.js +2 -2
- package/es/auth/authenticators/vpc-instance-authenticator.d.ts +2 -2
- package/es/auth/authenticators/vpc-instance-authenticator.js +2 -2
- package/es/auth/token-managers/container-token-manager.js +2 -1
- package/es/auth/token-managers/cp4d-token-manager.d.ts +1 -1
- package/es/auth/token-managers/cp4d-token-manager.js +2 -2
- package/es/auth/token-managers/iam-request-based-token-manager.d.ts +1 -1
- package/es/auth/token-managers/iam-request-based-token-manager.js +2 -2
- package/es/auth/token-managers/iam-token-manager.d.ts +1 -1
- package/es/auth/token-managers/iam-token-manager.js +2 -2
- package/es/auth/token-managers/token-manager.d.ts +1 -1
- package/es/auth/token-managers/token-manager.js +1 -1
- package/es/auth/token-managers/vpc-instance-token-manager.js +1 -1
- package/es/tsdoc-metadata.json +1 -1
- package/package.json +1 -1
- package/temp/ibm-cloud-sdk-core.api.json +157 -43
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
|
|
7
7
|
NoAuthAuthenticator is a placeholder authenticator implementation which performs no authentication of outgoing REST API requests. It might be useful during development and testing.
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
**Signature:**
|
|
10
10
|
|
|
11
11
|
```typescript
|
|
12
12
|
export declare class NoAuthAuthenticator extends Authenticator
|
|
13
13
|
```
|
|
14
|
-
|
|
14
|
+
**Extends:** [Authenticator](./ibm-cloud-sdk-core.authenticator.md)
|
|
15
15
|
|
|
16
16
|
## Methods
|
|
17
17
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
Checks for only one of two elements being defined. Returns true if a is defined and b is undefined, or vice versa. Returns false if both are defined or both are undefined.
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
**Signature:**
|
|
10
10
|
|
|
11
11
|
```typescript
|
|
12
12
|
export declare function onlyOne(a: any, b: any): boolean;
|
|
@@ -19,7 +19,7 @@ export declare function onlyOne(a: any, b: any): boolean;
|
|
|
19
19
|
| a | any | The first object |
|
|
20
20
|
| b | any | The second object |
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
**Returns:**
|
|
23
23
|
|
|
24
24
|
boolean
|
|
25
25
|
|
|
@@ -12,7 +12,7 @@ http://www.apache.org/licenses/LICENSE-2.0
|
|
|
12
12
|
|
|
13
13
|
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
**Signature:**
|
|
16
16
|
|
|
17
17
|
```typescript
|
|
18
18
|
_default: {
|
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
|
|
7
7
|
Return a config object based on a credentials file. Credentials files can be specified filepath via the environment variable: `IBM_CREDENTIALS_FILE`<!-- -->.
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
**Signature:**
|
|
10
10
|
|
|
11
11
|
```typescript
|
|
12
12
|
export declare function readCredentialsFile(): any;
|
|
13
13
|
```
|
|
14
|
-
|
|
14
|
+
**Returns:**
|
|
15
15
|
|
|
16
16
|
any
|
|
17
17
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
## readCrTokenFile() function
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
**Signature:**
|
|
8
8
|
|
|
9
9
|
```typescript
|
|
10
10
|
export declare function readCrTokenFile(filepath: string): string;
|
|
@@ -16,7 +16,7 @@ export declare function readCrTokenFile(filepath: string): string;
|
|
|
16
16
|
| --- | --- | --- |
|
|
17
17
|
| filepath | string | |
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
**Returns:**
|
|
20
20
|
|
|
21
21
|
string
|
|
22
22
|
|
|
@@ -8,7 +8,7 @@ Read properties stored in external sources like Environment Variables, the crede
|
|
|
8
8
|
|
|
9
9
|
Only one source will be used at a time.
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
**Signature:**
|
|
12
12
|
|
|
13
13
|
```typescript
|
|
14
14
|
export declare function readExternalSources(serviceName: string): any;
|
|
@@ -20,7 +20,7 @@ export declare function readExternalSources(serviceName: string): any;
|
|
|
20
20
|
| --- | --- | --- |
|
|
21
21
|
| serviceName | string | the service name prefix |
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
**Returns:**
|
|
24
24
|
|
|
25
25
|
any
|
|
26
26
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
Removes a given suffix if it exists.
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
**Signature:**
|
|
10
10
|
|
|
11
11
|
```typescript
|
|
12
12
|
export declare function removeSuffix(str: string, suffix: string): string;
|
|
@@ -19,7 +19,7 @@ export declare function removeSuffix(str: string, suffix: string): string;
|
|
|
19
19
|
| str | string | the base string to operate on |
|
|
20
20
|
| suffix | string | the suffix to remove, if present |
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
**Returns:**
|
|
23
23
|
|
|
24
24
|
string
|
|
25
25
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
Helper method that can be bound to a stream - it captures all of the results, and returns a promise that resolves to the final buffer or array of text chunks Essentially a smaller version of concat-stream wrapped in a promise
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
**Signature:**
|
|
10
10
|
|
|
11
11
|
```typescript
|
|
12
12
|
export declare function streamToPromise(stream: Stream): Promise<any>;
|
|
@@ -18,7 +18,7 @@ export declare function streamToPromise(stream: Stream): Promise<any>;
|
|
|
18
18
|
| --- | --- | --- |
|
|
19
19
|
| stream | Stream | optional stream param for when not bound to an existing stream instance. |
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
**Returns:**
|
|
22
22
|
|
|
23
23
|
Promise<any>
|
|
24
24
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
Strips trailing slashes from "url", if present.
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
**Signature:**
|
|
10
10
|
|
|
11
11
|
```typescript
|
|
12
12
|
export declare function stripTrailingSlash(url: string): string;
|
|
@@ -18,7 +18,7 @@ export declare function stripTrailingSlash(url: string): string;
|
|
|
18
18
|
| --- | --- | --- |
|
|
19
19
|
| url | string | the url string |
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
**Returns:**
|
|
22
22
|
|
|
23
23
|
string
|
|
24
24
|
|
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
|
|
7
7
|
Retrieves a new token using "requestToken()" if there is not a currently stored token from a previous call, or the previous token has expired.
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
**Signature:**
|
|
10
10
|
|
|
11
11
|
```typescript
|
|
12
12
|
getToken(): Promise<any>;
|
|
13
13
|
```
|
|
14
|
-
|
|
14
|
+
**Returns:**
|
|
15
15
|
|
|
16
16
|
Promise<any>
|
|
17
17
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
A class for shared functionality for storing, and requesting tokens. Intended to be used as a parent to be extended for token request management. Child classes should implement "requestToken()" to retrieve the token from intended sources and "saveTokenInfo(tokenResponse)" to parse and save token information from the response.
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
**Signature:**
|
|
10
10
|
|
|
11
11
|
```typescript
|
|
12
12
|
export declare class TokenManager
|
|
@@ -8,12 +8,12 @@ Paces requests to requestToken().
|
|
|
8
8
|
|
|
9
9
|
This method pseudo-serializes requests for an access\_token when the current token is undefined or expired. The first caller to this method records its `requestTime` and then issues the token request. Subsequent callers will check the `requestTime` to see if a request is active (has been issued within the past 60 seconds), and if so will queue their promise for the active requestor to resolve when that request completes.
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
**Signature:**
|
|
12
12
|
|
|
13
13
|
```typescript
|
|
14
14
|
protected pacedRequestToken(): Promise<any>;
|
|
15
15
|
```
|
|
16
|
-
|
|
16
|
+
**Returns:**
|
|
17
17
|
|
|
18
18
|
Promise<any>
|
|
19
19
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
Parse and save token information from the response. Save the requested token into field `accessToken`<!-- -->. Calculate expiration and refresh time from the received info and store them in fields `expireTime` and `refreshTime`<!-- -->.
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
**Signature:**
|
|
10
10
|
|
|
11
11
|
```typescript
|
|
12
12
|
protected saveTokenInfo(tokenResponse: any): void;
|
|
@@ -18,7 +18,7 @@ protected saveTokenInfo(tokenResponse: any): void;
|
|
|
18
18
|
| --- | --- | --- |
|
|
19
19
|
| tokenResponse | any | the response object from a token service request |
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
**Returns:**
|
|
22
22
|
|
|
23
23
|
void
|
|
24
24
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
Sets the "disableSslVerification" property.
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
**Signature:**
|
|
10
10
|
|
|
11
11
|
```typescript
|
|
12
12
|
setDisableSslVerification(value: boolean): void;
|
|
@@ -18,7 +18,7 @@ setDisableSslVerification(value: boolean): void;
|
|
|
18
18
|
| --- | --- | --- |
|
|
19
19
|
| value | boolean | the new value for the disableSslVerification property |
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
**Returns:**
|
|
22
22
|
|
|
23
23
|
void
|
|
24
24
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
Sets the headers to be included with each outbound request to the token server.
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
**Signature:**
|
|
10
10
|
|
|
11
11
|
```typescript
|
|
12
12
|
setHeaders(headers: OutgoingHttpHeaders): void;
|
|
@@ -18,7 +18,7 @@ setHeaders(headers: OutgoingHttpHeaders): void;
|
|
|
18
18
|
| --- | --- | --- |
|
|
19
19
|
| headers | OutgoingHttpHeaders | the set of headers to send with each request to the token server |
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
**Returns:**
|
|
22
22
|
|
|
23
23
|
void
|
|
24
24
|
|
|
@@ -8,7 +8,7 @@ Adds bearer token information to "requestOptions". The bearer token information
|
|
|
8
8
|
|
|
9
9
|
Authorization: Bearer <<!-- -->bearer-token<!-- -->>
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
**Signature:**
|
|
12
12
|
|
|
13
13
|
```typescript
|
|
14
14
|
authenticate(requestOptions: AuthenticateOptions): Promise<void>;
|
|
@@ -20,7 +20,7 @@ authenticate(requestOptions: AuthenticateOptions): Promise<void>;
|
|
|
20
20
|
| --- | --- | --- |
|
|
21
21
|
| requestOptions | AuthenticateOptions | The request to augment with authentication information. |
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
**Returns:**
|
|
24
24
|
|
|
25
25
|
Promise<void>
|
|
26
26
|
|
|
@@ -10,12 +10,12 @@ The token will be added as an Authorization header in the form:
|
|
|
10
10
|
|
|
11
11
|
Authorization: Bearer <<!-- -->bearer-token<!-- -->>
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
**Signature:**
|
|
14
14
|
|
|
15
15
|
```typescript
|
|
16
16
|
export declare class TokenRequestBasedAuthenticator extends Authenticator
|
|
17
17
|
```
|
|
18
|
-
|
|
18
|
+
**Extends:** [Authenticator](./ibm-cloud-sdk-core.authenticator.md)
|
|
19
19
|
|
|
20
20
|
## Constructors
|
|
21
21
|
|
package/build/docs/ibm-cloud-sdk-core.tokenrequestbasedauthenticator.setdisablesslverification.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
Set the flag that indicates whether verification of the server's SSL certificate should be disabled or not.
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
**Signature:**
|
|
10
10
|
|
|
11
11
|
```typescript
|
|
12
12
|
setDisableSslVerification(value: boolean): void;
|
|
@@ -18,7 +18,7 @@ setDisableSslVerification(value: boolean): void;
|
|
|
18
18
|
| --- | --- | --- |
|
|
19
19
|
| value | boolean | a flag that indicates whether verification of the token server's SSL certificate should be disabled or not. |
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
**Returns:**
|
|
22
22
|
|
|
23
23
|
void
|
|
24
24
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
Set headers.
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
**Signature:**
|
|
10
10
|
|
|
11
11
|
```typescript
|
|
12
12
|
setHeaders(headers: OutgoingHttpHeaders): void;
|
|
@@ -18,7 +18,7 @@ setHeaders(headers: OutgoingHttpHeaders): void;
|
|
|
18
18
|
| --- | --- | --- |
|
|
19
19
|
| headers | OutgoingHttpHeaders | a set of HTTP headers to be sent with each outbound token server request. Overwrites previous default headers. |
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
**Returns:**
|
|
22
22
|
|
|
23
23
|
void
|
|
24
24
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
This function converts an object's keys to lower case. note: does not convert nested keys
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
**Signature:**
|
|
10
10
|
|
|
11
11
|
```typescript
|
|
12
12
|
export declare function toLowerKeys(obj: Object): Object;
|
|
@@ -18,7 +18,7 @@ export declare function toLowerKeys(obj: Object): Object;
|
|
|
18
18
|
| --- | --- | --- |
|
|
19
19
|
| obj | Object | The object to convert the keys of. |
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
**Returns:**
|
|
22
22
|
|
|
23
23
|
Object
|
|
24
24
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
This method simply ensures that the method executed without any issues by extracting the argument from the mock object for the `createRequest` method and verifying that it is an object.
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
**Signature:**
|
|
10
10
|
|
|
11
11
|
```typescript
|
|
12
12
|
export declare function checkForSuccessfulExecution(createRequestMock: any): void;
|
|
@@ -18,7 +18,7 @@ export declare function checkForSuccessfulExecution(createRequestMock: any): voi
|
|
|
18
18
|
| --- | --- | --- |
|
|
19
19
|
| createRequestMock | any | the jest mock object for the <code>createRequest</code> method in the <code>RequestWrapper</code> class |
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
**Returns:**
|
|
22
22
|
|
|
23
23
|
void
|
|
24
24
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
Takes the mock object for the `createRequest` method, extracts the headers that were sent with the call, and checks for the expected values for `Accept` and `Content-Type`<!-- -->. This to verify that the SDK sets the correct values in the code.
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
**Signature:**
|
|
10
10
|
|
|
11
11
|
```typescript
|
|
12
12
|
export declare function checkMediaHeaders(createRequestMock: any, accept: string, contentType: string): void;
|
|
@@ -20,7 +20,7 @@ export declare function checkMediaHeaders(createRequestMock: any, accept: string
|
|
|
20
20
|
| accept | string | the expected value for the <code>Accept</code> header |
|
|
21
21
|
| contentType | string | the expected value for the <code>Content-Type</code> header |
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
**Returns:**
|
|
24
24
|
|
|
25
25
|
void
|
|
26
26
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
Takes the request options constructed by the SDK and checks that the `url` and `method` properties were set to their correct values.
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
**Signature:**
|
|
10
10
|
|
|
11
11
|
```typescript
|
|
12
12
|
export declare function checkUrlAndMethod(options: any, url: string, method: any): void;
|
|
@@ -20,7 +20,7 @@ export declare function checkUrlAndMethod(options: any, url: string, method: any
|
|
|
20
20
|
| url | string | The URL path of the service endpoint, from the paths section of the API definition |
|
|
21
21
|
| method | any | The HTTP method for the request, from the API definition |
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
**Returns:**
|
|
24
24
|
|
|
25
25
|
void
|
|
26
26
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
Takes the mock object for the `createRequest` method, extracts the headers that were sent with the call, and checks for the expected value for a user-defined header. This is verify that the SDK accepts header parameters and sends them as headers in the request.
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
**Signature:**
|
|
10
10
|
|
|
11
11
|
```typescript
|
|
12
12
|
export declare function checkUserHeader(createRequestMock: any, userHeaderName: string, userHeaderValue: string): void;
|
|
@@ -20,7 +20,7 @@ export declare function checkUserHeader(createRequestMock: any, userHeaderName:
|
|
|
20
20
|
| userHeaderName | string | the name of the header passed by the user, e.g. <code>Contained-Content-Type</code> |
|
|
21
21
|
| userHeaderValue | string | the expected value for the header passed by the user |
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
**Returns:**
|
|
24
24
|
|
|
25
25
|
void
|
|
26
26
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
This method simply ensures that the SDK methods return Promises by checking for the `then` function - common way to assess whether or not an object is a Promise.
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
**Signature:**
|
|
10
10
|
|
|
11
11
|
```typescript
|
|
12
12
|
export declare function expectToBePromise(sdkPromise: any): void;
|
|
@@ -18,7 +18,7 @@ export declare function expectToBePromise(sdkPromise: any): void;
|
|
|
18
18
|
| --- | --- | --- |
|
|
19
19
|
| sdkPromise | any | the Promise returned by an SDK method |
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
**Returns:**
|
|
22
22
|
|
|
23
23
|
void
|
|
24
24
|
|