@alicloud/cloudapi20160714 3.3.0 → 3.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +46 -0
- package/dist/client.js +98 -0
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +120 -0
package/dist/client.d.ts
CHANGED
|
@@ -8432,6 +8432,50 @@ export declare class SetApisAuthoritiesResponse extends $tea.Model {
|
|
|
8432
8432
|
[key: string]: any;
|
|
8433
8433
|
});
|
|
8434
8434
|
}
|
|
8435
|
+
export declare class SetAppsAuthToApiProductRequest extends $tea.Model {
|
|
8436
|
+
apiProductId?: string;
|
|
8437
|
+
appIds?: number[];
|
|
8438
|
+
authValidTime?: string;
|
|
8439
|
+
description?: string;
|
|
8440
|
+
securityToken?: string;
|
|
8441
|
+
static names(): {
|
|
8442
|
+
[key: string]: string;
|
|
8443
|
+
};
|
|
8444
|
+
static types(): {
|
|
8445
|
+
[key: string]: any;
|
|
8446
|
+
};
|
|
8447
|
+
constructor(map?: {
|
|
8448
|
+
[key: string]: any;
|
|
8449
|
+
});
|
|
8450
|
+
}
|
|
8451
|
+
export declare class SetAppsAuthToApiProductResponseBody extends $tea.Model {
|
|
8452
|
+
requestId?: string;
|
|
8453
|
+
static names(): {
|
|
8454
|
+
[key: string]: string;
|
|
8455
|
+
};
|
|
8456
|
+
static types(): {
|
|
8457
|
+
[key: string]: any;
|
|
8458
|
+
};
|
|
8459
|
+
constructor(map?: {
|
|
8460
|
+
[key: string]: any;
|
|
8461
|
+
});
|
|
8462
|
+
}
|
|
8463
|
+
export declare class SetAppsAuthToApiProductResponse extends $tea.Model {
|
|
8464
|
+
headers: {
|
|
8465
|
+
[key: string]: string;
|
|
8466
|
+
};
|
|
8467
|
+
statusCode: number;
|
|
8468
|
+
body: SetAppsAuthToApiProductResponseBody;
|
|
8469
|
+
static names(): {
|
|
8470
|
+
[key: string]: string;
|
|
8471
|
+
};
|
|
8472
|
+
static types(): {
|
|
8473
|
+
[key: string]: any;
|
|
8474
|
+
};
|
|
8475
|
+
constructor(map?: {
|
|
8476
|
+
[key: string]: any;
|
|
8477
|
+
});
|
|
8478
|
+
}
|
|
8435
8479
|
export declare class SetAppsAuthoritiesRequest extends $tea.Model {
|
|
8436
8480
|
apiId?: string;
|
|
8437
8481
|
appIds?: string;
|
|
@@ -15248,6 +15292,8 @@ export default class Client extends OpenApi {
|
|
|
15248
15292
|
* @return SetApisAuthoritiesResponse
|
|
15249
15293
|
*/
|
|
15250
15294
|
setApisAuthorities(request: SetApisAuthoritiesRequest): Promise<SetApisAuthoritiesResponse>;
|
|
15295
|
+
setAppsAuthToApiProductWithOptions(request: SetAppsAuthToApiProductRequest, runtime: $Util.RuntimeOptions): Promise<SetAppsAuthToApiProductResponse>;
|
|
15296
|
+
setAppsAuthToApiProduct(request: SetAppsAuthToApiProductRequest): Promise<SetAppsAuthToApiProductResponse>;
|
|
15251
15297
|
/**
|
|
15252
15298
|
* * This operation is intended for API providers and callers.
|
|
15253
15299
|
* * API providers can authorize any apps to call their APIs.
|
package/dist/client.js
CHANGED
|
@@ -11803,6 +11803,66 @@ class SetApisAuthoritiesResponse extends $tea.Model {
|
|
|
11803
11803
|
}
|
|
11804
11804
|
}
|
|
11805
11805
|
exports.SetApisAuthoritiesResponse = SetApisAuthoritiesResponse;
|
|
11806
|
+
class SetAppsAuthToApiProductRequest extends $tea.Model {
|
|
11807
|
+
constructor(map) {
|
|
11808
|
+
super(map);
|
|
11809
|
+
}
|
|
11810
|
+
static names() {
|
|
11811
|
+
return {
|
|
11812
|
+
apiProductId: 'ApiProductId',
|
|
11813
|
+
appIds: 'AppIds',
|
|
11814
|
+
authValidTime: 'AuthValidTime',
|
|
11815
|
+
description: 'Description',
|
|
11816
|
+
securityToken: 'SecurityToken',
|
|
11817
|
+
};
|
|
11818
|
+
}
|
|
11819
|
+
static types() {
|
|
11820
|
+
return {
|
|
11821
|
+
apiProductId: 'string',
|
|
11822
|
+
appIds: { 'type': 'array', 'itemType': 'number' },
|
|
11823
|
+
authValidTime: 'string',
|
|
11824
|
+
description: 'string',
|
|
11825
|
+
securityToken: 'string',
|
|
11826
|
+
};
|
|
11827
|
+
}
|
|
11828
|
+
}
|
|
11829
|
+
exports.SetAppsAuthToApiProductRequest = SetAppsAuthToApiProductRequest;
|
|
11830
|
+
class SetAppsAuthToApiProductResponseBody extends $tea.Model {
|
|
11831
|
+
constructor(map) {
|
|
11832
|
+
super(map);
|
|
11833
|
+
}
|
|
11834
|
+
static names() {
|
|
11835
|
+
return {
|
|
11836
|
+
requestId: 'RequestId',
|
|
11837
|
+
};
|
|
11838
|
+
}
|
|
11839
|
+
static types() {
|
|
11840
|
+
return {
|
|
11841
|
+
requestId: 'string',
|
|
11842
|
+
};
|
|
11843
|
+
}
|
|
11844
|
+
}
|
|
11845
|
+
exports.SetAppsAuthToApiProductResponseBody = SetAppsAuthToApiProductResponseBody;
|
|
11846
|
+
class SetAppsAuthToApiProductResponse extends $tea.Model {
|
|
11847
|
+
constructor(map) {
|
|
11848
|
+
super(map);
|
|
11849
|
+
}
|
|
11850
|
+
static names() {
|
|
11851
|
+
return {
|
|
11852
|
+
headers: 'headers',
|
|
11853
|
+
statusCode: 'statusCode',
|
|
11854
|
+
body: 'body',
|
|
11855
|
+
};
|
|
11856
|
+
}
|
|
11857
|
+
static types() {
|
|
11858
|
+
return {
|
|
11859
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
11860
|
+
statusCode: 'number',
|
|
11861
|
+
body: SetAppsAuthToApiProductResponseBody,
|
|
11862
|
+
};
|
|
11863
|
+
}
|
|
11864
|
+
}
|
|
11865
|
+
exports.SetAppsAuthToApiProductResponse = SetAppsAuthToApiProductResponse;
|
|
11806
11866
|
class SetAppsAuthoritiesRequest extends $tea.Model {
|
|
11807
11867
|
constructor(map) {
|
|
11808
11868
|
super(map);
|
|
@@ -27532,6 +27592,44 @@ class Client extends openapi_client_1.default {
|
|
|
27532
27592
|
let runtime = new $Util.RuntimeOptions({});
|
|
27533
27593
|
return await this.setApisAuthoritiesWithOptions(request, runtime);
|
|
27534
27594
|
}
|
|
27595
|
+
async setAppsAuthToApiProductWithOptions(request, runtime) {
|
|
27596
|
+
tea_util_1.default.validateModel(request);
|
|
27597
|
+
let query = {};
|
|
27598
|
+
if (!tea_util_1.default.isUnset(request.apiProductId)) {
|
|
27599
|
+
query["ApiProductId"] = request.apiProductId;
|
|
27600
|
+
}
|
|
27601
|
+
if (!tea_util_1.default.isUnset(request.appIds)) {
|
|
27602
|
+
query["AppIds"] = request.appIds;
|
|
27603
|
+
}
|
|
27604
|
+
if (!tea_util_1.default.isUnset(request.authValidTime)) {
|
|
27605
|
+
query["AuthValidTime"] = request.authValidTime;
|
|
27606
|
+
}
|
|
27607
|
+
if (!tea_util_1.default.isUnset(request.description)) {
|
|
27608
|
+
query["Description"] = request.description;
|
|
27609
|
+
}
|
|
27610
|
+
if (!tea_util_1.default.isUnset(request.securityToken)) {
|
|
27611
|
+
query["SecurityToken"] = request.securityToken;
|
|
27612
|
+
}
|
|
27613
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
27614
|
+
query: openapi_util_1.default.query(query),
|
|
27615
|
+
});
|
|
27616
|
+
let params = new $OpenApi.Params({
|
|
27617
|
+
action: "SetAppsAuthToApiProduct",
|
|
27618
|
+
version: "2016-07-14",
|
|
27619
|
+
protocol: "HTTPS",
|
|
27620
|
+
pathname: "/",
|
|
27621
|
+
method: "POST",
|
|
27622
|
+
authType: "AK",
|
|
27623
|
+
style: "RPC",
|
|
27624
|
+
reqBodyType: "formData",
|
|
27625
|
+
bodyType: "json",
|
|
27626
|
+
});
|
|
27627
|
+
return $tea.cast(await this.callApi(params, req, runtime), new SetAppsAuthToApiProductResponse({}));
|
|
27628
|
+
}
|
|
27629
|
+
async setAppsAuthToApiProduct(request) {
|
|
27630
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
27631
|
+
return await this.setAppsAuthToApiProductWithOptions(request, runtime);
|
|
27632
|
+
}
|
|
27535
27633
|
/**
|
|
27536
27634
|
* * This operation is intended for API providers and callers.
|
|
27537
27635
|
* * API providers can authorize any apps to call their APIs.
|