@alicloud/cloudapi20160714 2.1.1 → 2.1.2

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/LICENSE ADDED
@@ -0,0 +1,13 @@
1
+ Copyright (c) 2009-present, Alibaba Cloud All rights reserved.
2
+
3
+ Licensed under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License.
5
+ You may obtain a copy of the License at
6
+
7
+ http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ Unless required by applicable law or agreed to in writing, software
10
+ distributed under the License is distributed on an "AS IS" BASIS,
11
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ See the License for the specific language governing permissions and
13
+ limitations under the License.
package/README.md ADDED
@@ -0,0 +1,25 @@
1
+ English | [简体中文](README-CN.md)
2
+ ![](https://aliyunsdk-pages.alicdn.com/icons/AlibabaCloud.svg)
3
+
4
+ # Alibaba Cloud CloudAPI SDK for NodeJS
5
+
6
+ ## Installation
7
+ If you use `npm` to manage your dependence, you can use the following command:
8
+
9
+ ```sh
10
+ npm install @alicloud/cloudapi20160714 -S
11
+ ```
12
+
13
+ ## Issues
14
+ [Opening an Issue](https://github.com/aliyun/alibabacloud-typescript-sdk/issues/new), Issues not conforming to the guidelines may be closed immediately.
15
+
16
+ ## Usage
17
+ [Usage Document](https://github.com/aliyun/alibabacloud-typescript-sdk/blob/master/docs/Usage-EN.md#quick-examples)
18
+
19
+ ## References
20
+ * [Latest Release](https://github.com/aliyun/alibabacloud-typescript-sdk/)
21
+
22
+ ## License
23
+ [Apache-2.0](http://www.apache.org/licenses/LICENSE-2.0)
24
+
25
+ Copyright (c) 2009-present, Alibaba Cloud All rights reserved.
package/dist/client.d.ts CHANGED
@@ -4438,6 +4438,49 @@ export declare class DescribeZonesResponse extends $tea.Model {
4438
4438
  [key: string]: any;
4439
4439
  });
4440
4440
  }
4441
+ export declare class DetachPluginRequest extends $tea.Model {
4442
+ apiId?: string;
4443
+ groupId?: string;
4444
+ pluginId?: string;
4445
+ securityToken?: string;
4446
+ stageName?: string;
4447
+ static names(): {
4448
+ [key: string]: string;
4449
+ };
4450
+ static types(): {
4451
+ [key: string]: any;
4452
+ };
4453
+ constructor(map?: {
4454
+ [key: string]: any;
4455
+ });
4456
+ }
4457
+ export declare class DetachPluginResponseBody extends $tea.Model {
4458
+ requestId?: string;
4459
+ static names(): {
4460
+ [key: string]: string;
4461
+ };
4462
+ static types(): {
4463
+ [key: string]: any;
4464
+ };
4465
+ constructor(map?: {
4466
+ [key: string]: any;
4467
+ });
4468
+ }
4469
+ export declare class DetachPluginResponse extends $tea.Model {
4470
+ headers: {
4471
+ [key: string]: string;
4472
+ };
4473
+ body: DetachPluginResponseBody;
4474
+ static names(): {
4475
+ [key: string]: string;
4476
+ };
4477
+ static types(): {
4478
+ [key: string]: any;
4479
+ };
4480
+ constructor(map?: {
4481
+ [key: string]: any;
4482
+ });
4483
+ }
4441
4484
  export declare class DryRunSwaggerRequest extends $tea.Model {
4442
4485
  data?: string;
4443
4486
  dataFormat?: string;
@@ -10054,6 +10097,8 @@ export default class Client extends OpenApi {
10054
10097
  describeVpcAccesses(request: DescribeVpcAccessesRequest): Promise<DescribeVpcAccessesResponse>;
10055
10098
  describeZonesWithOptions(request: DescribeZonesRequest, runtime: $Util.RuntimeOptions): Promise<DescribeZonesResponse>;
10056
10099
  describeZones(request: DescribeZonesRequest): Promise<DescribeZonesResponse>;
10100
+ detachPluginWithOptions(request: DetachPluginRequest, runtime: $Util.RuntimeOptions): Promise<DetachPluginResponse>;
10101
+ detachPlugin(request: DetachPluginRequest): Promise<DetachPluginResponse>;
10057
10102
  dryRunSwaggerWithOptions(tmpReq: DryRunSwaggerRequest, runtime: $Util.RuntimeOptions): Promise<DryRunSwaggerResponse>;
10058
10103
  dryRunSwagger(request: DryRunSwaggerRequest): Promise<DryRunSwaggerResponse>;
10059
10104
  importSwaggerWithOptions(tmpReq: ImportSwaggerRequest, runtime: $Util.RuntimeOptions): Promise<ImportSwaggerResponse>;
package/dist/client.js CHANGED
@@ -6199,6 +6199,64 @@ class DescribeZonesResponse extends $tea.Model {
6199
6199
  }
6200
6200
  }
6201
6201
  exports.DescribeZonesResponse = DescribeZonesResponse;
6202
+ class DetachPluginRequest extends $tea.Model {
6203
+ constructor(map) {
6204
+ super(map);
6205
+ }
6206
+ static names() {
6207
+ return {
6208
+ apiId: 'ApiId',
6209
+ groupId: 'GroupId',
6210
+ pluginId: 'PluginId',
6211
+ securityToken: 'SecurityToken',
6212
+ stageName: 'StageName',
6213
+ };
6214
+ }
6215
+ static types() {
6216
+ return {
6217
+ apiId: 'string',
6218
+ groupId: 'string',
6219
+ pluginId: 'string',
6220
+ securityToken: 'string',
6221
+ stageName: 'string',
6222
+ };
6223
+ }
6224
+ }
6225
+ exports.DetachPluginRequest = DetachPluginRequest;
6226
+ class DetachPluginResponseBody extends $tea.Model {
6227
+ constructor(map) {
6228
+ super(map);
6229
+ }
6230
+ static names() {
6231
+ return {
6232
+ requestId: 'RequestId',
6233
+ };
6234
+ }
6235
+ static types() {
6236
+ return {
6237
+ requestId: 'string',
6238
+ };
6239
+ }
6240
+ }
6241
+ exports.DetachPluginResponseBody = DetachPluginResponseBody;
6242
+ class DetachPluginResponse extends $tea.Model {
6243
+ constructor(map) {
6244
+ super(map);
6245
+ }
6246
+ static names() {
6247
+ return {
6248
+ headers: 'headers',
6249
+ body: 'body',
6250
+ };
6251
+ }
6252
+ static types() {
6253
+ return {
6254
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
6255
+ body: DetachPluginResponseBody,
6256
+ };
6257
+ }
6258
+ }
6259
+ exports.DetachPluginResponse = DetachPluginResponse;
6202
6260
  class DryRunSwaggerRequest extends $tea.Model {
6203
6261
  constructor(map) {
6204
6262
  super(map);
@@ -17482,6 +17540,44 @@ class Client extends openapi_client_1.default {
17482
17540
  let runtime = new $Util.RuntimeOptions({});
17483
17541
  return await this.describeZonesWithOptions(request, runtime);
17484
17542
  }
17543
+ async detachPluginWithOptions(request, runtime) {
17544
+ tea_util_1.default.validateModel(request);
17545
+ let query = {};
17546
+ if (!tea_util_1.default.isUnset(request.apiId)) {
17547
+ query["ApiId"] = request.apiId;
17548
+ }
17549
+ if (!tea_util_1.default.isUnset(request.groupId)) {
17550
+ query["GroupId"] = request.groupId;
17551
+ }
17552
+ if (!tea_util_1.default.isUnset(request.pluginId)) {
17553
+ query["PluginId"] = request.pluginId;
17554
+ }
17555
+ if (!tea_util_1.default.isUnset(request.securityToken)) {
17556
+ query["SecurityToken"] = request.securityToken;
17557
+ }
17558
+ if (!tea_util_1.default.isUnset(request.stageName)) {
17559
+ query["StageName"] = request.stageName;
17560
+ }
17561
+ let req = new $OpenApi.OpenApiRequest({
17562
+ query: openapi_util_1.default.query(query),
17563
+ });
17564
+ let params = new $OpenApi.Params({
17565
+ action: "DetachPlugin",
17566
+ version: "2016-07-14",
17567
+ protocol: "HTTPS",
17568
+ pathname: "/",
17569
+ method: "POST",
17570
+ authType: "AK",
17571
+ style: "RPC",
17572
+ reqBodyType: "formData",
17573
+ bodyType: "json",
17574
+ });
17575
+ return $tea.cast(await this.callApi(params, req, runtime), new DetachPluginResponse({}));
17576
+ }
17577
+ async detachPlugin(request) {
17578
+ let runtime = new $Util.RuntimeOptions({});
17579
+ return await this.detachPluginWithOptions(request, runtime);
17580
+ }
17485
17581
  async dryRunSwaggerWithOptions(tmpReq, runtime) {
17486
17582
  tea_util_1.default.validateModel(tmpReq);
17487
17583
  let request = new DryRunSwaggerShrinkRequest({});