Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@alicloud/cloudapi

Package Overview
Dependencies
Maintainers
5
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@alicloud/cloudapi - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

800

lib/client.js

@@ -16,3 +16,9 @@

abolishApi(params = {}, options) {
/**
* @param {String} Action - actionName. optional.
* @param {String} GroupId - groupId. required.
* @param {String} ApiId - apiUid. required.
* @param {String} StageName - stageName. required.
*/
abolishApi(params = {}, options = {}) {
if (!hasOwnProperty(params, 'GroupId')) {

@@ -33,3 +39,8 @@ throw new TypeError('parameter "GroupId" is required');

addCatalogRelation(params = {}, options) {
/**
* @param {String} Action - actionName. optional.
* @param {String} CatalogId - tagId. required.
* @param {String} ApiId - apiId. required.
*/
addCatalogRelation(params = {}, options = {}) {
if (!hasOwnProperty(params, 'CatalogId')) {

@@ -46,3 +57,8 @@ throw new TypeError('parameter "CatalogId" is required');

addCatalogRelations(params = {}, options) {
/**
* @param {String} Action - actionName. optional.
* @param {String} CatalogId - tagId. required.
* @param {String} ApiIds - apiIds. required.
*/
addCatalogRelations(params = {}, options = {}) {
if (!hasOwnProperty(params, 'CatalogId')) {

@@ -59,3 +75,10 @@ throw new TypeError('parameter "CatalogId" is required');

addTrafficSpecialControl(params = {}, options) {
/**
* @param {String} Action - actionName. optional.
* @param {String} TrafficControlId - trafficControlId. required.
* @param {String} SpecialType - specialType. required.
* @param {String} SpecialKey - specialKey. required.
* @param {Integer} TrafficValue - trafficValue. required.
*/
addTrafficSpecialControl(params = {}, options = {}) {
if (!hasOwnProperty(params, 'TrafficControlId')) {

@@ -80,3 +103,7 @@ throw new TypeError('parameter "TrafficControlId" is required');

clearCatalogRelations(params = {}, options) {
/**
* @param {String} Action - actionName. optional.
* @param {String} CatalogId - tagId. required.
*/
clearCatalogRelations(params = {}, options = {}) {
if (!hasOwnProperty(params, 'CatalogId')) {

@@ -89,3 +116,25 @@ throw new TypeError('parameter "CatalogId" is required');

createApi(params = {}, options) {
/**
* @param {String} Action - actionName. optional.
* @param {String} GroupId - groupId. required.
* @param {String} ApiName - apiName. required.
* @param {String} Visibility - visibility. required.
* @param {String} Description - apiDescription. optional.
* @param {String} AuthType - authType. optional.
* @param {String} RequestConfig - requestConfigStr. required.
* @param {String} ServiceConfig - serviceConfigStr. required.
* @param {String} RequestParameters - requestParamtersStr. optional.
* @param {String} SystemParameters - systemParametersStr. optional.
* @param {String} ConstantParameters - constantParametersStr. optional.
* @param {String} ServiceParameters - serviceParameterStr. optional.
* @param {String} ServiceParametersMap - serviceParametersMapStr. optional.
* @param {String} ResultType - apiResultType. required.
* @param {String} ResultSample - apiResultSample. required.
* @param {String} FailResultSample - apiFailResultSample. optional.
* @param {String} ErrorCodeSamples - apiErrorCodeSample. optional.
* @param {String} ResultDescriptions - apiResultDescription. optional.
* @param {String} OpenIdConnectConfig - openIdConnectConfigStr. optional.
* @param {String} AllowSignatureMethod - signatureMethod. optional.
*/
createApi(params = {}, options = {}) {
if (!hasOwnProperty(params, 'GroupId')) {

@@ -122,3 +171,8 @@ throw new TypeError('parameter "GroupId" is required');

createApiGroup(params = {}, options) {
/**
* @param {String} Action - actionName. optional.
* @param {String} GroupName - groupName. required.
* @param {String} Description - description. required.
*/
createApiGroup(params = {}, options = {}) {
if (!hasOwnProperty(params, 'GroupName')) {

@@ -135,3 +189,10 @@ throw new TypeError('parameter "GroupName" is required');

createApiStageVariable(params = {}, options) {
/**
* @param {String} Action - actionName. optional.
* @param {String} GroupId - groupId. required.
* @param {String} StageId - stageId. required.
* @param {String} VariableName - variableName. required.
* @param {String} VariableValue - variableValue. optional.
*/
createApiStageVariable(params = {}, options = {}) {
if (!hasOwnProperty(params, 'GroupId')) {

@@ -152,3 +213,8 @@ throw new TypeError('parameter "GroupId" is required');

createApp(params = {}, options) {
/**
* @param {String} Action - actionName. optional.
* @param {String} AppName - appName. required.
* @param {String} Description - description. optional.
*/
createApp(params = {}, options = {}) {
if (!hasOwnProperty(params, 'AppName')) {

@@ -161,3 +227,9 @@ throw new TypeError('parameter "AppName" is required');

createCatalog(params = {}, options) {
/**
* @param {String} Action - actionName. optional.
* @param {String} CatalogName - tagName. required.
* @param {String} Description - tagDescription. required.
* @param {String} ParentId - parentId. optional.
*/
createCatalog(params = {}, options = {}) {
if (!hasOwnProperty(params, 'CatalogName')) {

@@ -174,3 +246,9 @@ throw new TypeError('parameter "CatalogName" is required');

createSignature(params = {}, options) {
/**
* @param {String} Action - actionName. optional.
* @param {String} SignatureName - secretKeyName. required.
* @param {String} SignatureKey - secretKey. required.
* @param {String} SignatureSecret - secretValue. required.
*/
createSignature(params = {}, options = {}) {
if (!hasOwnProperty(params, 'SignatureName')) {

@@ -191,3 +269,12 @@ throw new TypeError('parameter "SignatureName" is required');

createTrafficControl(params = {}, options) {
/**
* @param {String} Action - actionName. optional.
* @param {String} TrafficControlName - trafficControlName. required.
* @param {String} TrafficControlUnit - trafficControlUnit. required.
* @param {Integer} ApiDefault - apiDefault. required.
* @param {Integer} UserDefault - userDefault. optional.
* @param {Integer} AppDefault - appDefault. optional.
* @param {String} Description - description. optional.
*/
createTrafficControl(params = {}, options = {}) {
if (!hasOwnProperty(params, 'TrafficControlName')) {

@@ -208,3 +295,7 @@ throw new TypeError('parameter "TrafficControlName" is required');

deleteAllTrafficSpecialControl(params = {}, options) {
/**
* @param {String} Action - actionName. optional.
* @param {String} TrafficControlId - trafficControlId. required.
*/
deleteAllTrafficSpecialControl(params = {}, options = {}) {
if (!hasOwnProperty(params, 'TrafficControlId')) {

@@ -217,3 +308,8 @@ throw new TypeError('parameter "TrafficControlId" is required');

deleteApi(params = {}, options) {
/**
* @param {String} Action - actionName. optional.
* @param {String} GroupId - groupId. required.
* @param {String} ApiId - apiUid. required.
*/
deleteApi(params = {}, options = {}) {
if (!hasOwnProperty(params, 'GroupId')) {

@@ -230,3 +326,7 @@ throw new TypeError('parameter "GroupId" is required');

deleteApiGroup(params = {}, options) {
/**
* @param {String} Action - actionName. optional.
* @param {String} GroupId - groupId. required.
*/
deleteApiGroup(params = {}, options = {}) {
if (!hasOwnProperty(params, 'GroupId')) {

@@ -239,3 +339,9 @@ throw new TypeError('parameter "GroupId" is required');

deleteApiStageVariable(params = {}, options) {
/**
* @param {String} Action - actionName. optional.
* @param {String} GroupId - groupId. required.
* @param {String} StageId - stageId. required.
* @param {String} VariableName - variableName. required.
*/
deleteApiStageVariable(params = {}, options = {}) {
if (!hasOwnProperty(params, 'GroupId')) {

@@ -256,3 +362,7 @@ throw new TypeError('parameter "GroupId" is required');

deleteApp(params = {}, options) {
/**
* @param {String} Action - actionName. optional.
* @param {Long} AppId - appId. required.
*/
deleteApp(params = {}, options = {}) {
if (!hasOwnProperty(params, 'AppId')) {

@@ -265,3 +375,7 @@ throw new TypeError('parameter "AppId" is required');

deleteCatalog(params = {}, options) {
/**
* @param {String} Action - actionName. optional.
* @param {String} CatalogId - tagId. required.
*/
deleteCatalog(params = {}, options = {}) {
if (!hasOwnProperty(params, 'CatalogId')) {

@@ -274,3 +388,8 @@ throw new TypeError('parameter "CatalogId" is required');

deleteDomain(params = {}, options) {
/**
* @param {String} Action - actionName. optional.
* @param {String} GroupId - groupId. required.
* @param {String} DomainName - domainName. required.
*/
deleteDomain(params = {}, options = {}) {
if (!hasOwnProperty(params, 'GroupId')) {

@@ -287,3 +406,9 @@ throw new TypeError('parameter "GroupId" is required');

deleteDomainCertificate(params = {}, options) {
/**
* @param {String} Action - actionName. optional.
* @param {String} GroupId - groupId. required.
* @param {String} DomainName - domainName. required.
* @param {String} CertificateId - certificateId. required.
*/
deleteDomainCertificate(params = {}, options = {}) {
if (!hasOwnProperty(params, 'GroupId')) {

@@ -304,3 +429,7 @@ throw new TypeError('parameter "GroupId" is required');

deleteSignature(params = {}, options) {
/**
* @param {String} Action - actionName. optional.
* @param {String} SignatureId - secretKeyId. required.
*/
deleteSignature(params = {}, options = {}) {
if (!hasOwnProperty(params, 'SignatureId')) {

@@ -313,3 +442,7 @@ throw new TypeError('parameter "SignatureId" is required');

deleteTrafficControl(params = {}, options) {
/**
* @param {String} Action - actionName. optional.
* @param {String} TrafficControlId - trafficControlId. required.
*/
deleteTrafficControl(params = {}, options = {}) {
if (!hasOwnProperty(params, 'TrafficControlId')) {

@@ -322,3 +455,9 @@ throw new TypeError('parameter "TrafficControlId" is required');

deleteTrafficSpecialControl(params = {}, options) {
/**
* @param {String} Action - actionName. optional.
* @param {String} TrafficControlId - trafficControlId. required.
* @param {String} SpecialType - specialType. required.
* @param {String} SpecialKey - specialKey. required.
*/
deleteTrafficSpecialControl(params = {}, options = {}) {
if (!hasOwnProperty(params, 'TrafficControlId')) {

@@ -339,3 +478,10 @@ throw new TypeError('parameter "TrafficControlId" is required');

deployApi(params = {}, options) {
/**
* @param {String} Action - actionName. optional.
* @param {String} GroupId - groupId. required.
* @param {String} ApiId - apiUid. required.
* @param {String} StageName - stageName. required.
* @param {String} Description - description. required.
*/
deployApi(params = {}, options = {}) {
if (!hasOwnProperty(params, 'GroupId')) {

@@ -360,3 +506,8 @@ throw new TypeError('parameter "GroupId" is required');

describeApi(params = {}, options) {
/**
* @param {String} Action - actionName. optional.
* @param {String} GroupId - groupId. required.
* @param {String} ApiId - apiUid. required.
*/
describeApi(params = {}, options = {}) {
if (!hasOwnProperty(params, 'GroupId')) {

@@ -373,3 +524,9 @@ throw new TypeError('parameter "GroupId" is required');

describeApiDoc(params = {}, options) {
/**
* @param {String} Action - actionName. optional.
* @param {String} GroupId - groupId. required.
* @param {String} StageName - stageName. optional. default: release.
* @param {String} ApiId - apiUid. required.
*/
describeApiDoc(params = {}, options = {}) {
if (!hasOwnProperty(params, 'GroupId')) {

@@ -386,3 +543,9 @@ throw new TypeError('parameter "GroupId" is required');

describeApiErrorData(params = {}, options) {
/**
* @param {String} ApiId - apiUid. required.
* @param {String} GroupId - groupId. optional.
* @param {String} StartTime - startTime. required.
* @param {String} EndTime - endTime. required.
*/
describeApiErrorData(params = {}, options = {}) {
if (!hasOwnProperty(params, 'ApiId')) {

@@ -403,3 +566,7 @@ throw new TypeError('parameter "ApiId" is required');

describeApiGroup(params = {}, options) {
/**
* @param {String} Action - actionName. optional.
* @param {String} GroupId - groupId. required.
*/
describeApiGroup(params = {}, options = {}) {
if (!hasOwnProperty(params, 'GroupId')) {

@@ -412,7 +579,23 @@ throw new TypeError('parameter "GroupId" is required');

describeApiGroups(params = {}, options) {
/**
* @param {String} Action - actionName. optional.
* @param {String} GroupId - groupId. optional.
* @param {String} GroupName - groupName. optional.
* @param {Integer} PageNumber - pageNumber. optional.
* @param {Integer} PageSize - pageSize. optional.
*/
describeApiGroups(params = {}, options = {}) {
return this.request('DescribeApiGroups', params, options);
}
describeApiHistories(params = {}, options) {
/**
* @param {String} Action - actionName. optional.
* @param {String} GroupId - groupId. required.
* @param {String} StageName - stageName. optional.
* @param {String} ApiId - apiUid. optional.
* @param {String} ApiName - apiName. optional.
* @param {String} PageSize - pageSize. optional.
* @param {String} PageNumber - pageNumber. optional.
*/
describeApiHistories(params = {}, options = {}) {
if (!hasOwnProperty(params, 'GroupId')) {

@@ -425,3 +608,10 @@ throw new TypeError('parameter "GroupId" is required');

describeApiHistory(params = {}, options) {
/**
* @param {String} Action - actionName. optional.
* @param {String} GroupId - groupId. required.
* @param {String} ApiId - apiUid. required.
* @param {String} StageName - stageName. required.
* @param {String} HistoryVersion - version. required.
*/
describeApiHistory(params = {}, options = {}) {
if (!hasOwnProperty(params, 'GroupId')) {

@@ -446,3 +636,9 @@ throw new TypeError('parameter "GroupId" is required');

describeApiLatencyData(params = {}, options) {
/**
* @param {String} ApiId - apiUid. required.
* @param {String} GroupId - groupId. optional.
* @param {String} StartTime - startTime. required.
* @param {String} EndTime - endTime. required.
*/
describeApiLatencyData(params = {}, options = {}) {
if (!hasOwnProperty(params, 'ApiId')) {

@@ -463,3 +659,9 @@ throw new TypeError('parameter "ApiId" is required');

describeApiQpsData(params = {}, options) {
/**
* @param {String} ApiId - apiUid. required.
* @param {String} GroupId - groupId. optional.
* @param {String} StartTime - startTime. required.
* @param {String} EndTime - endTime. required.
*/
describeApiQpsData(params = {}, options = {}) {
if (!hasOwnProperty(params, 'ApiId')) {

@@ -480,3 +682,11 @@ throw new TypeError('parameter "ApiId" is required');

describeApiSignatures(params = {}, options) {
/**
* @param {String} Action - actionName. optional.
* @param {String} StageName - stageName. required.
* @param {String} GroupId - groupId. required.
* @param {String} ApiIds - apiIds. optional.
* @param {Integer} PageNumber - pageNumber. optional. default: 1.
* @param {Integer} PageSize - pageSize. optional. default: 10.
*/
describeApiSignatures(params = {}, options = {}) {
if (!hasOwnProperty(params, 'StageName')) {

@@ -493,3 +703,8 @@ throw new TypeError('parameter "StageName" is required');

describeApiStage(params = {}, options) {
/**
* @param {String} Action - actionName. optional.
* @param {String} GroupId - groupId. required.
* @param {String} StageId - stageId. required.
*/
describeApiStage(params = {}, options = {}) {
if (!hasOwnProperty(params, 'GroupId')) {

@@ -506,3 +721,11 @@ throw new TypeError('parameter "GroupId" is required');

describeApiTrafficControls(params = {}, options) {
/**
* @param {String} Action - actionName. optional.
* @param {String} StageName - stageName. required.
* @param {String} GroupId - groupId. required.
* @param {String} ApiIds - apiIds. optional.
* @param {Integer} PageNumber - pageNumber. optional. default: 1.
* @param {Integer} PageSize - pageSize. optional. default: 10.
*/
describeApiTrafficControls(params = {}, options = {}) {
if (!hasOwnProperty(params, 'StageName')) {

@@ -519,3 +742,9 @@ throw new TypeError('parameter "StageName" is required');

describeApiTrafficData(params = {}, options) {
/**
* @param {String} ApiId - apiUid. required.
* @param {String} GroupId - groupId. optional.
* @param {String} StartTime - startTime. required.
* @param {String} EndTime - endTime. required.
*/
describeApiTrafficData(params = {}, options = {}) {
if (!hasOwnProperty(params, 'ApiId')) {

@@ -536,7 +765,23 @@ throw new TypeError('parameter "ApiId" is required');

describeApis(params = {}, options) {
/**
* @param {String} Action - actionName. optional.
* @param {String} GroupId - groupId. optional.
* @param {String} ApiId - apiUid. optional.
* @param {String} ApiName - apiName. optional.
* @param {String} CatalogId - tagId. optional.
* @param {String} Visibility - visibility. optional.
* @param {Integer} PageSize - pageSize. optional.
* @param {Integer} PageNumber - pageNumber. optional.
*/
describeApis(params = {}, options = {}) {
return this.request('DescribeApis', params, options);
}
describeApisByApp(params = {}, options) {
/**
* @param {String} Action - actionName. optional.
* @param {Long} AppId - appId. required.
* @param {Integer} PageNumber - pageNumber. optional.
* @param {Integer} PageSize - pageSize. optional.
*/
describeApisByApp(params = {}, options = {}) {
if (!hasOwnProperty(params, 'AppId')) {

@@ -549,3 +794,9 @@ throw new TypeError('parameter "AppId" is required');

describeApisBySignature(params = {}, options) {
/**
* @param {String} Action - actionName. optional.
* @param {String} SignatureId - ruleId. required.
* @param {Integer} PageSize - pageSize. optional. default: 10.
* @param {Integer} PageNumber - pageNumber. optional. default: 1.
*/
describeApisBySignature(params = {}, options = {}) {
if (!hasOwnProperty(params, 'SignatureId')) {

@@ -558,3 +809,9 @@ throw new TypeError('parameter "SignatureId" is required');

describeApisByTrafficControl(params = {}, options) {
/**
* @param {String} Action - actionName. optional.
* @param {String} TrafficControlId - ruleId. required.
* @param {Integer} PageSize - pageSize. optional. default: 10.
* @param {Integer} PageNumber - pageNumber. optional. default: 1.
*/
describeApisByTrafficControl(params = {}, options = {}) {
if (!hasOwnProperty(params, 'TrafficControlId')) {

@@ -567,7 +824,17 @@ throw new TypeError('parameter "TrafficControlId" is required');

describeAppAttributes(params = {}, options) {
/**
* @param {String} Action - actionName. optional.
* @param {Long} AppId - appId. optional.
* @param {Integer} PageNumber - pageNumber. optional. default: 1.
* @param {Integer} PageSize - pageSize. optional. default: 10.
*/
describeAppAttributes(params = {}, options = {}) {
return this.request('DescribeAppAttributes', params, options);
}
describeAppSecurity(params = {}, options) {
/**
* @param {String} Action - actionName. optional.
* @param {Long} AppId - appId. required.
*/
describeAppSecurity(params = {}, options = {}) {
if (!hasOwnProperty(params, 'AppId')) {

@@ -580,7 +847,20 @@ throw new TypeError('parameter "AppId" is required');

describeApps(params = {}, options) {
/**
* @param {String} Action - action. optional.
* @param {Long} AppId - appId. optional.
* @param {Long} AppOwner - appOwnerId. optional.
* @param {Integer} PageNumber - pageNumber. optional. default: 1.
* @param {Integer} PageSize - pageSize. optional. default: 10.
*/
describeApps(params = {}, options = {}) {
return this.request('DescribeApps', params, options);
}
describeAuthorizedApis(params = {}, options) {
/**
* @param {String} Action - actionName. optional.
* @param {Long} AppId - appId. required.
* @param {Integer} PageNumber - pageNumber. optional.
* @param {Integer} PageSize - pageSize. optional.
*/
describeAuthorizedApis(params = {}, options = {}) {
if (!hasOwnProperty(params, 'AppId')) {

@@ -593,3 +873,11 @@ throw new TypeError('parameter "AppId" is required');

describeAuthorizedApps(params = {}, options) {
/**
* @param {String} Action - actionName. optional.
* @param {String} GroupId - groupId. required.
* @param {String} StageName - stageName. optional.
* @param {String} ApiId - apiUid. required.
* @param {Integer} PageNumber - pageNumber. optional.
* @param {Integer} PageSize - pageSize. optional.
*/
describeAuthorizedApps(params = {}, options = {}) {
if (!hasOwnProperty(params, 'GroupId')) {

@@ -606,3 +894,7 @@ throw new TypeError('parameter "GroupId" is required');

describeCatalog(params = {}, options) {
/**
* @param {String} Action - actionName. optional.
* @param {String} CatalogId - tagId. required.
*/
describeCatalog(params = {}, options = {}) {
if (!hasOwnProperty(params, 'CatalogId')) {

@@ -615,7 +907,16 @@ throw new TypeError('parameter "CatalogId" is required');

describeCatalogs(params = {}, options) {
/**
* @param {String} Action - actionName. optional.
*/
describeCatalogs(params = {}, options = {}) {
return this.request('DescribeCatalogs', params, options);
}
describeDeployedApi(params = {}, options) {
/**
* @param {String} Action - actionName. optional.
* @param {String} GroupId - groupId. required.
* @param {String} ApiId - apiUid. required.
* @param {String} StageName - stageName. required.
*/
describeDeployedApi(params = {}, options = {}) {
if (!hasOwnProperty(params, 'GroupId')) {

@@ -636,7 +937,21 @@ throw new TypeError('parameter "GroupId" is required');

describeDeployedApis(params = {}, options) {
/**
* @param {String} Action - actionName. optional.
* @param {String} GroupId - groupId. optional.
* @param {String} StageName - stageName. optional.
* @param {String} ApiId - apiUid. optional.
* @param {String} ApiName - apiName. optional.
* @param {Integer} PageNumber - pageNumber. optional.
* @param {Integer} PageSize - pageSize. optional.
*/
describeDeployedApis(params = {}, options = {}) {
return this.request('DescribeDeployedApis', params, options);
}
describeDomain(params = {}, options) {
/**
* @param {String} Action - actionName. optional.
* @param {String} GroupId - groupId. required.
* @param {String} DomainName - domainName. required.
*/
describeDomain(params = {}, options = {}) {
if (!hasOwnProperty(params, 'GroupId')) {

@@ -653,3 +968,8 @@ throw new TypeError('parameter "GroupId" is required');

describeDomainsResolution(params = {}, options) {
/**
* @param {String} Action - actionName. optional.
* @param {String} GroupId - groupId. required.
* @param {String} DomainNames - domainNameStr. required.
*/
describeDomainsResolution(params = {}, options = {}) {
if (!hasOwnProperty(params, 'GroupId')) {

@@ -666,3 +986,12 @@ throw new TypeError('parameter "GroupId" is required');

describeHistoryApis(params = {}, options) {
/**
* @param {String} Action - actionName. optional.
* @param {String} GroupId - groupId. required.
* @param {String} StageName - stageName. optional.
* @param {String} ApiId - apiUid. optional.
* @param {String} ApiName - apiName. optional.
* @param {String} PageSize - pageSize. optional.
* @param {String} PageNumber - pageNumber. optional.
*/
describeHistoryApis(params = {}, options = {}) {
if (!hasOwnProperty(params, 'GroupId')) {

@@ -675,3 +1004,7 @@ throw new TypeError('parameter "GroupId" is required');

describePurchasedApiGroup(params = {}, options) {
/**
* @param {String} Action - actionName. optional.
* @param {String} GroupId - groupId. required.
*/
describePurchasedApiGroup(params = {}, options = {}) {
if (!hasOwnProperty(params, 'GroupId')) {

@@ -684,19 +1017,50 @@ throw new TypeError('parameter "GroupId" is required');

describePurchasedApiGroups(params = {}, options) {
/**
* @param {String} Action - actionName. optional.
* @param {Integer} PageNumber - pageNumber. optional.
* @param {Integer} PageSize - pageSize. optional.
*/
describePurchasedApiGroups(params = {}, options = {}) {
return this.request('DescribePurchasedApiGroups', params, options);
}
describePurchasedApis(params = {}, options) {
/**
* @param {String} Action - actionName. optional.
* @param {String} GroupId - groupId. optional.
* @param {String} StageName - stageName. optional.
* @param {String} ApiId - apiUid. optional.
* @param {String} ApiName - apiName. optional.
* @param {String} Visibility - visibility. optional.
* @param {Integer} PageSize - pageSize. optional.
* @param {Integer} PageNumber - pageNumber. optional.
*/
describePurchasedApis(params = {}, options = {}) {
return this.request('DescribePurchasedApis', params, options);
}
describeRegions(params = {}, options) {
/**
* @param {String} Action - action. optional.
*/
describeRegions(params = {}, options = {}) {
return this.request('DescribeRegions', params, options);
}
describeSignatures(params = {}, options) {
/**
* @param {String} Action - actionName. optional.
* @param {String} SignatureId - secretKeyId. optional.
* @param {String} SignatureName - secretKeyName. optional.
* @param {Integer} PageNumber - pageNumber. optional.
* @param {Integer} PageSize - pageSize. optional.
*/
describeSignatures(params = {}, options = {}) {
return this.request('DescribeSignatures', params, options);
}
describeSignaturesByApi(params = {}, options) {
/**
* @param {String} Action - actionName. optional.
* @param {String} GroupId - groupId. required.
* @param {String} ApiId - apiId. required.
* @param {String} StageName - stageName. required.
*/
describeSignaturesByApi(params = {}, options = {}) {
if (!hasOwnProperty(params, 'GroupId')) {

@@ -717,11 +1081,30 @@ throw new TypeError('parameter "GroupId" is required');

describeSystemParameters(params = {}, options) {
/**
* @param {String} Action - action. optional.
*/
describeSystemParameters(params = {}, options = {}) {
return this.request('DescribeSystemParameters', params, options);
}
describeTrafficControls(params = {}, options) {
/**
* @param {String} Action - actionName. optional.
* @param {String} TrafficControlId - trafficControlId. optional.
* @param {String} GroupId - groupId. optional.
* @param {String} ApiId - apiUid. optional.
* @param {String} StageName - stageName. optional.
* @param {String} TrafficControlName - trafficControlName. optional.
* @param {Integer} PageNumber - pageNumber. optional. default: 1.
* @param {Integer} PageSize - pageSize. optional. default: 10.
*/
describeTrafficControls(params = {}, options = {}) {
return this.request('DescribeTrafficControls', params, options);
}
describeTrafficControlsByApi(params = {}, options) {
/**
* @param {String} Action - actionName. optional.
* @param {String} GroupId - groupId. required.
* @param {String} ApiId - apiId. required.
* @param {String} StageName - stageName. required.
*/
describeTrafficControlsByApi(params = {}, options = {}) {
if (!hasOwnProperty(params, 'GroupId')) {

@@ -742,7 +1125,35 @@ throw new TypeError('parameter "GroupId" is required');

describeVpcAccesses(params = {}, options) {
/**
* @param {String} Action - actionName. optional.
* @param {Integer} PageNumber - pageNumber. optional.
* @param {Integer} PageSize - pageSize. optional.
*/
describeVpcAccesses(params = {}, options = {}) {
return this.request('DescribeVpcAccesses', params, options);
}
modifyApi(params = {}, options) {
/**
* @param {String} Action - actionName. optional.
* @param {String} GroupId - groupId. required.
* @param {String} ApiId - apiUid. required.
* @param {String} ApiName - apiName. required.
* @param {String} Description - apiDescription. optional.
* @param {String} Visibility - visibility. required.
* @param {String} AuthType - authType. optional.
* @param {String} RequestConfig - requestConfigStr. required.
* @param {String} ServiceConfig - serviceConfigStr. required.
* @param {String} RequestParameters - requestParamtersStr. optional.
* @param {String} SystemParameters - systemParametersStr. optional.
* @param {String} ConstantParameters - constantParametersStr. optional.
* @param {String} ServiceParameters - serviceParameterStr. optional.
* @param {String} ServiceParametersMap - serviceParametersMapStr. optional.
* @param {String} ResultType - apiResultType. required.
* @param {String} ResultSample - apiResultSample. required.
* @param {String} FailResultSample - apiFailResultSample. optional.
* @param {String} ErrorCodeSamples - apiErrorCodeSample. optional.
* @param {String} ResultDescriptions - apiResultDescription. optional.
* @param {String} OpenIdConnectConfig - openIdConnectConfigStr. optional.
* @param {String} AllowSignatureMethod - signatureMethod. optional.
*/
modifyApi(params = {}, options = {}) {
if (!hasOwnProperty(params, 'GroupId')) {

@@ -783,3 +1194,10 @@ throw new TypeError('parameter "GroupId" is required');

modifyApiGroup(params = {}, options) {
/**
* @param {String} Action - actionName. optional.
* @param {String} GroupId - groupId. required.
* @param {String} GroupName - groupName. optional.
* @param {String} Description - description. optional.
*/
modifyApiGroup(params = {}, options = {}) {
if (!hasOwnProperty(params, 'GroupId')) {

@@ -792,3 +1210,9 @@ throw new TypeError('parameter "GroupId" is required');

modifyApp(params = {}, options) {
/**
* @param {String} Action - actionName. optional.
* @param {Long} AppId - appId. required.
* @param {String} AppName - appName. optional.
* @param {String} Description - description. optional.
*/
modifyApp(params = {}, options = {}) {
if (!hasOwnProperty(params, 'AppId')) {

@@ -801,3 +1225,10 @@ throw new TypeError('parameter "AppId" is required');

modifyCatalog(params = {}, options) {
/**
* @param {String} Action - actionName. optional.
* @param {String} CatalogId - tagId. required.
* @param {String} CatalogName - tagName. required.
* @param {String} Description - tagDescription. optional.
*/
modifyCatalog(params = {}, options = {}) {
if (!hasOwnProperty(params, 'CatalogId')) {

@@ -814,3 +1245,11 @@ throw new TypeError('parameter "CatalogId" is required');

modifySignature(params = {}, options) {
/**
* @param {String} Action - actionName. optional.
* @param {String} SignatureId - secretKeyId. required.
* @param {String} SignatureName - secretKeyName. optional.
* @param {String} SignatureKey - secretKey. optional.
* @param {String} SignatureSecret - secretValue. optional.
*/
modifySignature(params = {}, options = {}) {
if (!hasOwnProperty(params, 'SignatureId')) {

@@ -823,3 +1262,14 @@ throw new TypeError('parameter "SignatureId" is required');

modifyTrafficControl(params = {}, options) {
/**
* @param {String} Action - actionName. optional.
* @param {String} TrafficControlId - trafficControlId. required.
* @param {String} TrafficControlName - trafficControlName. optional.
* @param {String} TrafficControlUnit - trafficControlUnit. optional.
* @param {Integer} ApiDefault - apiDefault. optional.
* @param {Integer} UserDefault - userDefault. optional.
* @param {Integer} AppDefault - appDefault. optional.
* @param {String} Description - description. optional.
*/
modifyTrafficControl(params = {}, options = {}) {
if (!hasOwnProperty(params, 'TrafficControlId')) {

@@ -832,3 +1282,9 @@ throw new TypeError('parameter "TrafficControlId" is required');

reactivateDomain(params = {}, options) {
/**
* @param {String} Action - actionName. optional.
* @param {String} GroupId - groupId. required.
* @param {String} DomainName - domainName. required.
*/
reactivateDomain(params = {}, options = {}) {
if (!hasOwnProperty(params, 'GroupId')) {

@@ -845,3 +1301,12 @@ throw new TypeError('parameter "GroupId" is required');

removeApisAuthorities(params = {}, options) {
/**
* @param {String} Action - actionName. optional.
* @param {String} GroupId - groupId. required.
* @param {Long} AppId - appId. required.
* @param {String} StageName - stageName. required.
* @param {String} ApiIds - apiUidStr. required.
* @param {String} Description - description. optional.
*/
removeApisAuthorities(params = {}, options = {}) {
if (!hasOwnProperty(params, 'GroupId')) {

@@ -866,3 +1331,11 @@ throw new TypeError('parameter "GroupId" is required');

removeAppsAuthorities(params = {}, options) {
/**
* @param {String} Action - actionName. optional.
* @param {String} GroupId - groupId. required.
* @param {String} ApiId - apiUid. required.
* @param {String} StageName - stageName. required.
* @param {String} AppIds - appIdStr. required.
*/
removeAppsAuthorities(params = {}, options = {}) {
if (!hasOwnProperty(params, 'GroupId')) {

@@ -887,3 +1360,9 @@ throw new TypeError('parameter "GroupId" is required');

removeCatalogRelation(params = {}, options) {
/**
* @param {String} Action - actionName. optional.
* @param {String} CatalogId - tagId. required.
* @param {String} ApiId - apiId. required.
*/
removeCatalogRelation(params = {}, options = {}) {
if (!hasOwnProperty(params, 'CatalogId')) {

@@ -900,3 +1379,8 @@ throw new TypeError('parameter "CatalogId" is required');

removeCatalogRelations(params = {}, options) {
/**
* @param {String} Action - actionName. optional.
* @param {String} CatalogId - tagId. required.
*/
removeCatalogRelations(params = {}, options = {}) {
if (!hasOwnProperty(params, 'CatalogId')) {

@@ -909,3 +1393,11 @@ throw new TypeError('parameter "CatalogId" is required');

removeSignatureApis(params = {}, options) {
/**
* @param {String} Action - actionName. optional.
* @param {String} SignatureId - ruleId. required.
* @param {String} GroupId - groupId. required.
* @param {String} ApiIds - apiUidStr. optional.
* @param {String} StageName - stageName. required.
*/
removeSignatureApis(params = {}, options = {}) {
if (!hasOwnProperty(params, 'SignatureId')) {

@@ -926,3 +1418,11 @@ throw new TypeError('parameter "SignatureId" is required');

removeTrafficControlApis(params = {}, options) {
/**
* @param {String} Action - actionName. optional.
* @param {String} TrafficControlId - ruleId. required.
* @param {String} GroupId - groupId. required.
* @param {String} ApiIds - apiUidStr. optional.
* @param {String} StageName - stageName. required.
*/
removeTrafficControlApis(params = {}, options = {}) {
if (!hasOwnProperty(params, 'TrafficControlId')) {

@@ -943,3 +1443,10 @@ throw new TypeError('parameter "TrafficControlId" is required');

removeVpcAccess(params = {}, options) {
/**
* @param {String} Action - actionName. optional.
* @param {String} VpcId - vpcId. required.
* @param {String} InstanceId - instanceId. required.
* @param {Integer} Port - instancePort. required.
*/
removeVpcAccess(params = {}, options = {}) {
if (!hasOwnProperty(params, 'VpcId')) {

@@ -960,3 +1467,8 @@ throw new TypeError('parameter "VpcId" is required');

resetAppSecret(params = {}, options) {
/**
* @param {String} Action - actionName. optional.
* @param {String} AppKey - appKey. required.
*/
resetAppSecret(params = {}, options = {}) {
if (!hasOwnProperty(params, 'AppKey')) {

@@ -969,3 +1481,10 @@ throw new TypeError('parameter "AppKey" is required');

sdkGenerate(params = {}, options) {
/**
* @param {String} Action - actionName. optional.
* @param {String} GroupId - groupId. optional.
* @param {Long} AppId - appId. optional.
* @param {String} Language - language. required.
*/
sdkGenerate(params = {}, options = {}) {
if (!hasOwnProperty(params, 'Language')) {

@@ -978,3 +1497,9 @@ throw new TypeError('parameter "Language" is required');

sdkGenerateByApp(params = {}, options) {
/**
* @param {String} Action - actionName. optional.
* @param {Long} AppId - appId. required.
* @param {String} Language - language. required.
*/
sdkGenerateByApp(params = {}, options = {}) {
if (!hasOwnProperty(params, 'AppId')) {

@@ -991,3 +1516,9 @@ throw new TypeError('parameter "AppId" is required');

sdkGenerateByGroup(params = {}, options) {
/**
* @param {String} Action - actionName. optional.
* @param {String} GroupId - groupId. required.
* @param {String} Language - language. required.
*/
sdkGenerateByGroup(params = {}, options = {}) {
if (!hasOwnProperty(params, 'GroupId')) {

@@ -1004,3 +1535,12 @@ throw new TypeError('parameter "GroupId" is required');

setApisAuthorities(params = {}, options) {
/**
* @param {String} Action - actionName. optional.
* @param {String} GroupId - groupId. required.
* @param {Long} AppId - appId. required.
* @param {String} StageName - stageName. required.
* @param {String} ApiIds - apiUidStr. required.
* @param {String} Description - description. optional.
*/
setApisAuthorities(params = {}, options = {}) {
if (!hasOwnProperty(params, 'GroupId')) {

@@ -1025,3 +1565,12 @@ throw new TypeError('parameter "GroupId" is required');

setAppsAuthorities(params = {}, options) {
/**
* @param {String} Action - actionName. optional.
* @param {String} GroupId - groupId. required.
* @param {String} ApiId - apiUid. required.
* @param {String} StageName - stageName. required.
* @param {String} AppIds - appIdStr. required.
* @param {String} Description - description. optional.
*/
setAppsAuthorities(params = {}, options = {}) {
if (!hasOwnProperty(params, 'GroupId')) {

@@ -1046,3 +1595,12 @@ throw new TypeError('parameter "GroupId" is required');

setDomain(params = {}, options) {
/**
* @param {String} Action - actionName. optional.
* @param {String} GroupId - groupId. required.
* @param {String} DomainName - domainName. required.
* @param {String} CertificateName - certificateName. optional.
* @param {String} CertificateBody - certificateBody. optional.
* @param {String} CertificatePrivateKey - privateKey. optional.
*/
setDomain(params = {}, options = {}) {
if (!hasOwnProperty(params, 'GroupId')) {

@@ -1059,3 +1617,12 @@ throw new TypeError('parameter "GroupId" is required');

setDomainCertificate(params = {}, options) {
/**
* @param {String} Action - actionName. optional.
* @param {String} GroupId - groupId. required.
* @param {String} DomainName - domainName. required.
* @param {String} CertificateName - certificateName. required.
* @param {String} CertificateBody - certificateBody. required.
* @param {String} CertificatePrivateKey - privateKey. required.
*/
setDomainCertificate(params = {}, options = {}) {
if (!hasOwnProperty(params, 'GroupId')) {

@@ -1084,3 +1651,33 @@ throw new TypeError('parameter "GroupId" is required');

setSignatureApis(params = {}, options) {
/**
* @param {String} Action - actionName. optional.
* @param {String} GroupId - groupId. required.
* @param {String} DomainName - domainName. required.
* @param {String} ActionValue - actionValue. required.
*/
setDomainWebSocketStatus(params = {}, options = {}) {
if (!hasOwnProperty(params, 'GroupId')) {
throw new TypeError('parameter "GroupId" is required');
}
if (!hasOwnProperty(params, 'DomainName')) {
throw new TypeError('parameter "DomainName" is required');
}
if (!hasOwnProperty(params, 'ActionValue')) {
throw new TypeError('parameter "ActionValue" is required');
}
return this.request('SetDomainWebSocketStatus', params, options);
}
/**
* @param {String} Action - actionName. optional.
* @param {String} SignatureId - ruleId. required.
* @param {String} GroupId - groupId. required.
* @param {String} ApiIds - apiUidStr. required.
* @param {String} StageName - stageName. required.
*/
setSignatureApis(params = {}, options = {}) {
if (!hasOwnProperty(params, 'SignatureId')) {

@@ -1105,3 +1702,11 @@ throw new TypeError('parameter "SignatureId" is required');

setTrafficControlApis(params = {}, options) {
/**
* @param {String} Action - actionName. optional.
* @param {String} TrafficControlId - ruleId. required.
* @param {String} GroupId - groupId. required.
* @param {String} ApiIds - apiUidStr. required.
* @param {String} StageName - stageName. required.
*/
setTrafficControlApis(params = {}, options = {}) {
if (!hasOwnProperty(params, 'TrafficControlId')) {

@@ -1126,3 +1731,11 @@ throw new TypeError('parameter "TrafficControlId" is required');

setVpcAccess(params = {}, options) {
/**
* @param {String} Action - actionName. optional.
* @param {String} Name - name. required.
* @param {String} VpcId - vpcId. required.
* @param {String} InstanceId - instanceId. required.
* @param {Integer} Port - instancePort. required.
*/
setVpcAccess(params = {}, options = {}) {
if (!hasOwnProperty(params, 'Name')) {

@@ -1147,3 +1760,12 @@ throw new TypeError('parameter "Name" is required');

switchApi(params = {}, options) {
/**
* @param {String} Action - actionName. optional.
* @param {String} GroupId - groupId. required.
* @param {String} ApiId - apiUid. required.
* @param {String} StageName - stageName. required.
* @param {String} Description - description. required.
* @param {String} HistoryVersion - version. required.
*/
switchApi(params = {}, options = {}) {
if (!hasOwnProperty(params, 'GroupId')) {

@@ -1150,0 +1772,0 @@ throw new TypeError('parameter "GroupId" is required');

{
"name": "@alicloud/cloudapi",
"version": "1.0.0",
"description": "CloudAPI SDK",
"version": "1.1.0",
"description": "CloudAPI 2016-07-14 Node.js SDK",
"main": "lib/client.js",

@@ -10,4 +10,22 @@ "scripts": {},

"dependencies": {
"@alicloud/pop-core": "^1.3.3"
}
}
"@alicloud/pop-core": "^1.4.0"
},
"directories": {
"lib": "lib"
},
"repository": {
"type": "git",
"url": "git+ssh://git@github.com/aliyun/cloudapi-nodejs-sdk.git"
},
"keywords": [
"CloudAPI",
"API",
"Gateway",
"Admin",
"OpenAPI"
],
"bugs": {
"url": "https://github.com/aliyun/cloudapi-nodejs-sdk/issues"
},
"homepage": "https://github.com/aliyun/cloudapi-nodejs-sdk#readme"
}
.npmignore
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc