ibm-cloud-sdk-core 4.3.3 → 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/.secrets.baseline +4 -4
- package/CHANGELOG.md +33 -0
- package/MIGRATION-V5.md +15 -0
- package/README.md +1 -2
- package/docs/ibm-cloud-sdk-core.api.json +0 -378
- package/es/index.d.ts +1 -3
- package/es/index.js +1 -3
- package/etc/ibm-cloud-sdk-core.api.md +0 -30
- package/ibm-cloud-sdk-core.d.ts +0 -90
- package/index.d.ts +1 -3
- package/index.js +2 -16
- package/package.json +6 -7
- package/sdk-test-utilities/README.md +8 -0
- package/{es/lib/sdk-test-helpers.js → sdk-test-utilities/index.js} +41 -20
- package/sdk-test-utilities/package-lock.json +516 -0
- package/sdk-test-utilities/package.json +17 -0
- 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 -818
- 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.unittestutils.checkforsuccessfulexecution.md +0 -53
- package/build/docs/ibm-cloud-sdk-core.unittestutils.checkmediaheaders.md +0 -85
- package/build/docs/ibm-cloud-sdk-core.unittestutils.checkurlandmethod.md +0 -85
- package/build/docs/ibm-cloud-sdk-core.unittestutils.checkuserheader.md +0 -85
- package/build/docs/ibm-cloud-sdk-core.unittestutils.expecttobepromise.md +0 -53
- package/build/docs/ibm-cloud-sdk-core.unittestutils.getoptions.md +0 -55
- package/build/docs/ibm-cloud-sdk-core.unittestutils.md +0 -86
- 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/lib/sdk-test-helpers.browser.d.ts +0 -21
- package/es/lib/sdk-test-helpers.browser.js +0 -23
- package/es/lib/sdk-test-helpers.d.ts +0 -72
- package/es/tsdoc-metadata.json +0 -11
- package/lib/sdk-test-helpers.browser.d.ts +0 -21
- package/lib/sdk-test-helpers.browser.js +0 -32
- package/lib/sdk-test-helpers.d.ts +0 -72
- package/lib/sdk-test-helpers.js +0 -102
- package/temp/ibm-cloud-sdk-core.api.json +0 -8641
- package/temp/ibm-cloud-sdk-core.api.md +0 -517
|
@@ -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) > [VpcInstanceAuthenticator](./ibm-cloud-sdk-core.vpcinstanceauthenticator.md) > [tokenManager](./ibm-cloud-sdk-core.vpcinstanceauthenticator.tokenmanager.md)
|
|
4
|
-
|
|
5
|
-
## VpcInstanceAuthenticator.tokenManager property
|
|
6
|
-
|
|
7
|
-
**Signature:**
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
protected tokenManager: VpcInstanceTokenManager;
|
|
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) > [VpcInstanceTokenManager](./ibm-cloud-sdk-core.vpcinstancetokenmanager.md) > [(constructor)](./ibm-cloud-sdk-core.vpcinstancetokenmanager._constructor_.md)
|
|
4
|
-
|
|
5
|
-
## VpcInstanceTokenManager.(constructor)
|
|
6
|
-
|
|
7
|
-
Create a new VpcInstanceTokenManager 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. This should be an object containing these fields: - url: (optional) the endpoint URL for the VPC Instance Metadata Service (default value: "http://169.254.169.254") - iamProfileCrn: (optional) the CRN of the linked IAM trusted profile to be used to obtain the IAM access token - iamProfileId: (optional) the ID of the linked IAM trusted profile to be used to obtain the IAM access token
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
</td></tr>
|
|
49
|
-
</tbody></table>
|
|
50
|
-
|
|
51
|
-
## Remarks
|
|
52
|
-
|
|
53
|
-
At most one of "iamProfileCrn" or "iamProfileId" may be specified. If neither one is specified, then the default IAM profile defined for the compute resource will be used.
|
|
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) > [VpcInstanceTokenManager](./ibm-cloud-sdk-core.vpcinstancetokenmanager.md) > [isTokenExpired](./ibm-cloud-sdk-core.vpcinstancetokenmanager.istokenexpired.md)
|
|
4
|
-
|
|
5
|
-
## VpcInstanceTokenManager.isTokenExpired() method
|
|
6
|
-
|
|
7
|
-
Returns true iff the currently-cached IAM access token is expired. We'll consider an access token as expired when we reach its IAM server-reported expiration time minus our expiration window (10 secs). We do this to avoid using an access token that might expire in the middle of a long-running transaction within an IBM Cloud service.
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
protected isTokenExpired(): boolean;
|
|
13
|
-
```
|
|
14
|
-
**Returns:**
|
|
15
|
-
|
|
16
|
-
boolean
|
|
17
|
-
|
|
18
|
-
true if the token has expired, false otherwise
|
|
19
|
-
|
|
@@ -1,126 +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) > [VpcInstanceTokenManager](./ibm-cloud-sdk-core.vpcinstancetokenmanager.md)
|
|
4
|
-
|
|
5
|
-
## VpcInstanceTokenManager class
|
|
6
|
-
|
|
7
|
-
Token Manager for VPC Instance Authentication.
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
export declare class VpcInstanceTokenManager extends JwtTokenManager
|
|
13
|
-
```
|
|
14
|
-
**Extends:** [JwtTokenManager](./ibm-cloud-sdk-core.jwttokenmanager.md)
|
|
15
|
-
|
|
16
|
-
## Constructors
|
|
17
|
-
|
|
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.vpcinstancetokenmanager._constructor_.md)
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
</td><td>
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
</td><td>
|
|
43
|
-
|
|
44
|
-
Create a new VpcInstanceTokenManager instance.
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
</td></tr>
|
|
48
|
-
</tbody></table>
|
|
49
|
-
|
|
50
|
-
## Methods
|
|
51
|
-
|
|
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
|
-
[isTokenExpired()](./ibm-cloud-sdk-core.vpcinstancetokenmanager.istokenexpired.md)
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
</td><td>
|
|
74
|
-
|
|
75
|
-
`protected`
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
</td><td>
|
|
79
|
-
|
|
80
|
-
Returns true iff the currently-cached IAM access token is expired. We'll consider an access token as expired when we reach its IAM server-reported expiration time minus our expiration window (10 secs). We do this to avoid using an access token that might expire in the middle of a long-running transaction within an IBM Cloud service.
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
</td></tr>
|
|
84
|
-
<tr><td>
|
|
85
|
-
|
|
86
|
-
[requestToken()](./ibm-cloud-sdk-core.vpcinstancetokenmanager.requesttoken.md)
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
</td><td>
|
|
90
|
-
|
|
91
|
-
`protected`
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
</td><td>
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
</td></tr>
|
|
98
|
-
<tr><td>
|
|
99
|
-
|
|
100
|
-
[setIamProfileCrn(iamProfileCrn)](./ibm-cloud-sdk-core.vpcinstancetokenmanager.setiamprofilecrn.md)
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
</td><td>
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
</td><td>
|
|
107
|
-
|
|
108
|
-
Sets the CRN of the IAM trusted profile to use when fetching the access token from the IAM token server.
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
</td></tr>
|
|
112
|
-
<tr><td>
|
|
113
|
-
|
|
114
|
-
[setIamProfileId(iamProfileId)](./ibm-cloud-sdk-core.vpcinstancetokenmanager.setiamprofileid.md)
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
</td><td>
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
</td><td>
|
|
121
|
-
|
|
122
|
-
Sets the Id of the IAM trusted profile to use when fetching the access token from the IAM token server.
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
</td></tr>
|
|
126
|
-
</tbody></table>
|
|
@@ -1,15 +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) > [VpcInstanceTokenManager](./ibm-cloud-sdk-core.vpcinstancetokenmanager.md) > [requestToken](./ibm-cloud-sdk-core.vpcinstancetokenmanager.requesttoken.md)
|
|
4
|
-
|
|
5
|
-
## VpcInstanceTokenManager.requestToken() method
|
|
6
|
-
|
|
7
|
-
**Signature:**
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
protected requestToken(): Promise<any>;
|
|
11
|
-
```
|
|
12
|
-
**Returns:**
|
|
13
|
-
|
|
14
|
-
Promise<any>
|
|
15
|
-
|
|
@@ -1,53 +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) > [VpcInstanceTokenManager](./ibm-cloud-sdk-core.vpcinstancetokenmanager.md) > [setIamProfileCrn](./ibm-cloud-sdk-core.vpcinstancetokenmanager.setiamprofilecrn.md)
|
|
4
|
-
|
|
5
|
-
## VpcInstanceTokenManager.setIamProfileCrn() method
|
|
6
|
-
|
|
7
|
-
Sets the CRN of the IAM trusted profile to use when fetching the access token from the IAM token server.
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
setIamProfileCrn(iamProfileCrn: string): void;
|
|
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
|
-
iamProfileCrn
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
</td><td>
|
|
39
|
-
|
|
40
|
-
string
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
</td><td>
|
|
44
|
-
|
|
45
|
-
the CRN of the IAM trusted profile
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
</td></tr>
|
|
49
|
-
</tbody></table>
|
|
50
|
-
**Returns:**
|
|
51
|
-
|
|
52
|
-
void
|
|
53
|
-
|
|
@@ -1,53 +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) > [VpcInstanceTokenManager](./ibm-cloud-sdk-core.vpcinstancetokenmanager.md) > [setIamProfileId](./ibm-cloud-sdk-core.vpcinstancetokenmanager.setiamprofileid.md)
|
|
4
|
-
|
|
5
|
-
## VpcInstanceTokenManager.setIamProfileId() method
|
|
6
|
-
|
|
7
|
-
Sets the Id of the IAM trusted profile to use when fetching the access token from the IAM token server.
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
setIamProfileId(iamProfileId: string): void;
|
|
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
|
-
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>
|
|
50
|
-
**Returns:**
|
|
51
|
-
|
|
52
|
-
void
|
|
53
|
-
|
package/build/docs/index.md
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md)
|
|
4
|
-
|
|
5
|
-
## API Reference
|
|
6
|
-
|
|
7
|
-
## Packages
|
|
8
|
-
|
|
9
|
-
<table><thead><tr><th>
|
|
10
|
-
|
|
11
|
-
Package
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
</th><th>
|
|
15
|
-
|
|
16
|
-
Description
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
</th></tr></thead>
|
|
20
|
-
<tbody><tr><td>
|
|
21
|
-
|
|
22
|
-
[ibm-cloud-sdk-core](./ibm-cloud-sdk-core.md)
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
</td><td>
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
</td></tr>
|
|
29
|
-
</tbody></table>
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2021 IBM Corp. All Rights Reserved.
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
export declare function checkUrlAndMethod(options: any, url: string, method: any): void;
|
|
17
|
-
export declare function checkMediaHeaders(createRequestMock: any, accept: string, contentType: string): void;
|
|
18
|
-
export declare function checkUserHeader(createRequestMock: any, userHeaderName: string, userHeaderValue: string): void;
|
|
19
|
-
export declare function checkForSuccessfulExecution(createRequestMock: any): void;
|
|
20
|
-
export declare function getOptions(createRequestMock: any): void;
|
|
21
|
-
export declare function expectToBePromise(sdkPromise: any): void;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
2
|
-
/**
|
|
3
|
-
* Copyright 2021 IBM Corp. All Rights Reserved.
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
17
|
-
// Dummy for browser
|
|
18
|
-
export function checkUrlAndMethod(options, url, method) { }
|
|
19
|
-
export function checkMediaHeaders(createRequestMock, accept, contentType) { }
|
|
20
|
-
export function checkUserHeader(createRequestMock, userHeaderName, userHeaderValue) { }
|
|
21
|
-
export function checkForSuccessfulExecution(createRequestMock) { }
|
|
22
|
-
export function getOptions(createRequestMock) { }
|
|
23
|
-
export function expectToBePromise(sdkPromise) { }
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* (C) Copyright IBM Corp. 2019, 2022.
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
/**
|
|
17
|
-
* This module provides a set of helper methods used to reduce code duplication in the generated unit tests
|
|
18
|
-
* for the SDKs that depend on this core package. Note that these methods are not used by the tests for this
|
|
19
|
-
* package - they are meant to be exported and made available to dependent libraries.
|
|
20
|
-
*/
|
|
21
|
-
/**
|
|
22
|
-
* Takes the request options constructed by the SDK and checks that the `url` and `method` properties
|
|
23
|
-
* were set to their correct values.
|
|
24
|
-
*
|
|
25
|
-
* @param options - the options object put together by the SDK, retrieved from the createRequest mock
|
|
26
|
-
* @param url - The URL path of the service endpoint, from the paths section of the API definition
|
|
27
|
-
* @param method - The HTTP method for the request, from the API definition
|
|
28
|
-
*/
|
|
29
|
-
export declare function checkUrlAndMethod(options: any, url: string, method: any): void;
|
|
30
|
-
/**
|
|
31
|
-
* Takes the mock object for the `createRequest` method, extracts the headers that were sent with the call,
|
|
32
|
-
* and checks for the expected values for `Accept` and `Content-Type`. This to verify that the SDK sets
|
|
33
|
-
* the correct values in the code.
|
|
34
|
-
*
|
|
35
|
-
* @param createRequestMock - the jest mock object for the `createRequest` method in the `RequestWrapper` class
|
|
36
|
-
* @param accept - the expected value for the `Accept` header
|
|
37
|
-
* @param contentType - the expected value for the `Content-Type` header
|
|
38
|
-
*/
|
|
39
|
-
export declare function checkMediaHeaders(createRequestMock: any, accept: string, contentType: string): void;
|
|
40
|
-
/**
|
|
41
|
-
* Takes the mock object for the `createRequest` method, extracts the headers that were sent with the call,
|
|
42
|
-
* and checks for the expected value for a user-defined header. This is verify that the SDK accepts header
|
|
43
|
-
* parameters and sends them as headers in the request.
|
|
44
|
-
*
|
|
45
|
-
* @param createRequestMock - the jest mock object for the `createRequest` method in the `RequestWrapper` class
|
|
46
|
-
* @param userHeaderName - the name of the header passed by the user, e.g. `Contained-Content-Type`
|
|
47
|
-
* @param userHeaderValue - the expected value for the header passed by the user
|
|
48
|
-
*/
|
|
49
|
-
export declare function checkUserHeader(createRequestMock: any, userHeaderName: string, userHeaderValue: string): void;
|
|
50
|
-
/**
|
|
51
|
-
* This method simply ensures that the method executed without any issues by extracting
|
|
52
|
-
* the argument from the mock object for the `createRequest` method and verifying that it is an object.
|
|
53
|
-
*
|
|
54
|
-
* @param createRequestMock - the jest mock object for the `createRequest` method in the `RequestWrapper` class
|
|
55
|
-
*/
|
|
56
|
-
export declare function checkForSuccessfulExecution(createRequestMock: any): void;
|
|
57
|
-
/**
|
|
58
|
-
* This method extracts the `options` property from the object passed into `createRequest`. This property is
|
|
59
|
-
* an object containing all of the SDK method-specific information (like `path` and `body`) used to build a request.
|
|
60
|
-
* This method is just a convenience method for the unit tests to be able to make assertions on the items in the request.
|
|
61
|
-
*
|
|
62
|
-
* @param createRequestMock - the jest mock object for the `createRequest` method in the `RequestWrapper` class
|
|
63
|
-
* @returns Object
|
|
64
|
-
*/
|
|
65
|
-
export declare function getOptions(createRequestMock: any): any;
|
|
66
|
-
/**
|
|
67
|
-
* This method simply ensures that the SDK methods return Promises by checking for
|
|
68
|
-
* the `then` function - common way to assess whether or not an object is a Promise.
|
|
69
|
-
*
|
|
70
|
-
* @param sdkPromise - the Promise returned by an SDK method
|
|
71
|
-
*/
|
|
72
|
-
export declare function expectToBePromise(sdkPromise: any): void;
|
package/es/tsdoc-metadata.json
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
// This file is read by tools that parse documentation comments conforming to the TSDoc standard.
|
|
2
|
-
// It should be published with your NPM package. It should not be tracked by Git.
|
|
3
|
-
{
|
|
4
|
-
"tsdocVersion": "0.12",
|
|
5
|
-
"toolPackages": [
|
|
6
|
-
{
|
|
7
|
-
"packageName": "@microsoft/api-extractor",
|
|
8
|
-
"packageVersion": "7.43.1"
|
|
9
|
-
}
|
|
10
|
-
]
|
|
11
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2021 IBM Corp. All Rights Reserved.
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
export declare function checkUrlAndMethod(options: any, url: string, method: any): void;
|
|
17
|
-
export declare function checkMediaHeaders(createRequestMock: any, accept: string, contentType: string): void;
|
|
18
|
-
export declare function checkUserHeader(createRequestMock: any, userHeaderName: string, userHeaderValue: string): void;
|
|
19
|
-
export declare function checkForSuccessfulExecution(createRequestMock: any): void;
|
|
20
|
-
export declare function getOptions(createRequestMock: any): void;
|
|
21
|
-
export declare function expectToBePromise(sdkPromise: any): void;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.expectToBePromise = exports.getOptions = exports.checkForSuccessfulExecution = exports.checkUserHeader = exports.checkMediaHeaders = exports.checkUrlAndMethod = void 0;
|
|
5
|
-
/**
|
|
6
|
-
* Copyright 2021 IBM Corp. All Rights Reserved.
|
|
7
|
-
*
|
|
8
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
-
* you may not use this file except in compliance with the License.
|
|
10
|
-
* You may obtain a copy of the License at
|
|
11
|
-
*
|
|
12
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
-
*
|
|
14
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
-
* See the License for the specific language governing permissions and
|
|
18
|
-
* limitations under the License.
|
|
19
|
-
*/
|
|
20
|
-
// Dummy for browser
|
|
21
|
-
function checkUrlAndMethod(options, url, method) { }
|
|
22
|
-
exports.checkUrlAndMethod = checkUrlAndMethod;
|
|
23
|
-
function checkMediaHeaders(createRequestMock, accept, contentType) { }
|
|
24
|
-
exports.checkMediaHeaders = checkMediaHeaders;
|
|
25
|
-
function checkUserHeader(createRequestMock, userHeaderName, userHeaderValue) { }
|
|
26
|
-
exports.checkUserHeader = checkUserHeader;
|
|
27
|
-
function checkForSuccessfulExecution(createRequestMock) { }
|
|
28
|
-
exports.checkForSuccessfulExecution = checkForSuccessfulExecution;
|
|
29
|
-
function getOptions(createRequestMock) { }
|
|
30
|
-
exports.getOptions = getOptions;
|
|
31
|
-
function expectToBePromise(sdkPromise) { }
|
|
32
|
-
exports.expectToBePromise = expectToBePromise;
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* (C) Copyright IBM Corp. 2019, 2022.
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
/**
|
|
17
|
-
* This module provides a set of helper methods used to reduce code duplication in the generated unit tests
|
|
18
|
-
* for the SDKs that depend on this core package. Note that these methods are not used by the tests for this
|
|
19
|
-
* package - they are meant to be exported and made available to dependent libraries.
|
|
20
|
-
*/
|
|
21
|
-
/**
|
|
22
|
-
* Takes the request options constructed by the SDK and checks that the `url` and `method` properties
|
|
23
|
-
* were set to their correct values.
|
|
24
|
-
*
|
|
25
|
-
* @param options - the options object put together by the SDK, retrieved from the createRequest mock
|
|
26
|
-
* @param url - The URL path of the service endpoint, from the paths section of the API definition
|
|
27
|
-
* @param method - The HTTP method for the request, from the API definition
|
|
28
|
-
*/
|
|
29
|
-
export declare function checkUrlAndMethod(options: any, url: string, method: any): void;
|
|
30
|
-
/**
|
|
31
|
-
* Takes the mock object for the `createRequest` method, extracts the headers that were sent with the call,
|
|
32
|
-
* and checks for the expected values for `Accept` and `Content-Type`. This to verify that the SDK sets
|
|
33
|
-
* the correct values in the code.
|
|
34
|
-
*
|
|
35
|
-
* @param createRequestMock - the jest mock object for the `createRequest` method in the `RequestWrapper` class
|
|
36
|
-
* @param accept - the expected value for the `Accept` header
|
|
37
|
-
* @param contentType - the expected value for the `Content-Type` header
|
|
38
|
-
*/
|
|
39
|
-
export declare function checkMediaHeaders(createRequestMock: any, accept: string, contentType: string): void;
|
|
40
|
-
/**
|
|
41
|
-
* Takes the mock object for the `createRequest` method, extracts the headers that were sent with the call,
|
|
42
|
-
* and checks for the expected value for a user-defined header. This is verify that the SDK accepts header
|
|
43
|
-
* parameters and sends them as headers in the request.
|
|
44
|
-
*
|
|
45
|
-
* @param createRequestMock - the jest mock object for the `createRequest` method in the `RequestWrapper` class
|
|
46
|
-
* @param userHeaderName - the name of the header passed by the user, e.g. `Contained-Content-Type`
|
|
47
|
-
* @param userHeaderValue - the expected value for the header passed by the user
|
|
48
|
-
*/
|
|
49
|
-
export declare function checkUserHeader(createRequestMock: any, userHeaderName: string, userHeaderValue: string): void;
|
|
50
|
-
/**
|
|
51
|
-
* This method simply ensures that the method executed without any issues by extracting
|
|
52
|
-
* the argument from the mock object for the `createRequest` method and verifying that it is an object.
|
|
53
|
-
*
|
|
54
|
-
* @param createRequestMock - the jest mock object for the `createRequest` method in the `RequestWrapper` class
|
|
55
|
-
*/
|
|
56
|
-
export declare function checkForSuccessfulExecution(createRequestMock: any): void;
|
|
57
|
-
/**
|
|
58
|
-
* This method extracts the `options` property from the object passed into `createRequest`. This property is
|
|
59
|
-
* an object containing all of the SDK method-specific information (like `path` and `body`) used to build a request.
|
|
60
|
-
* This method is just a convenience method for the unit tests to be able to make assertions on the items in the request.
|
|
61
|
-
*
|
|
62
|
-
* @param createRequestMock - the jest mock object for the `createRequest` method in the `RequestWrapper` class
|
|
63
|
-
* @returns Object
|
|
64
|
-
*/
|
|
65
|
-
export declare function getOptions(createRequestMock: any): any;
|
|
66
|
-
/**
|
|
67
|
-
* This method simply ensures that the SDK methods return Promises by checking for
|
|
68
|
-
* the `then` function - common way to assess whether or not an object is a Promise.
|
|
69
|
-
*
|
|
70
|
-
* @param sdkPromise - the Promise returned by an SDK method
|
|
71
|
-
*/
|
|
72
|
-
export declare function expectToBePromise(sdkPromise: any): void;
|