@alicloud/polardbx20200202 3.5.0 → 3.6.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 +21 -0
- package/dist/client.js +48 -0
- package/dist/client.js.map +1 -1
- package/dist/models/CreateGatewayConsumerForPolarDbxrequest.d.ts +33 -0
- package/dist/models/CreateGatewayConsumerForPolarDbxrequest.js +60 -0
- package/dist/models/CreateGatewayConsumerForPolarDbxrequest.js.map +1 -0
- package/dist/models/CreateGatewayConsumerForPolarDbxresponse.d.ts +19 -0
- package/dist/models/CreateGatewayConsumerForPolarDbxresponse.js +69 -0
- package/dist/models/CreateGatewayConsumerForPolarDbxresponse.js.map +1 -0
- package/dist/models/CreateGatewayConsumerForPolarDbxresponseBody.d.ts +37 -0
- package/dist/models/CreateGatewayConsumerForPolarDbxresponseBody.js +62 -0
- package/dist/models/CreateGatewayConsumerForPolarDbxresponseBody.js.map +1 -0
- package/dist/models/DescribeDbinstanceAttributeRequest.d.ts +1 -1
- package/dist/models/DescribeDbinstanceAttributeResponseBody.d.ts +21 -20
- package/dist/models/DescribeDbinstanceAttributeResponseBody.js +2 -0
- package/dist/models/DescribeDbinstanceAttributeResponseBody.js.map +1 -1
- package/dist/models/model.d.ts +3 -0
- package/dist/models/model.js +14 -8
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +52 -0
- package/src/models/CreateGatewayConsumerForPolarDbxrequest.ts +48 -0
- package/src/models/CreateGatewayConsumerForPolarDbxresponse.ts +40 -0
- package/src/models/CreateGatewayConsumerForPolarDbxresponseBody.ts +54 -0
- package/src/models/DescribeDbinstanceAttributeRequest.ts +1 -1
- package/src/models/DescribeDbinstanceAttributeResponseBody.ts +23 -20
- package/src/models/model.ts +3 -0
package/dist/client.d.ts
CHANGED
|
@@ -286,6 +286,27 @@ export default class Client extends OpenApi {
|
|
|
286
286
|
* @returns CreateDataImportTaskResponse
|
|
287
287
|
*/
|
|
288
288
|
createDataImportTask(request: $_model.CreateDataImportTaskRequest): Promise<$_model.CreateDataImportTaskResponse>;
|
|
289
|
+
/**
|
|
290
|
+
* Creates an AI gateway consumer for a PolarDB-X instance.
|
|
291
|
+
*
|
|
292
|
+
* @remarks
|
|
293
|
+
* ***.
|
|
294
|
+
*
|
|
295
|
+
* @param request - CreateGatewayConsumerForPolarDBXRequest
|
|
296
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
297
|
+
* @returns CreateGatewayConsumerForPolarDBXResponse
|
|
298
|
+
*/
|
|
299
|
+
createGatewayConsumerForPolarDBXWithOptions(request: $_model.CreateGatewayConsumerForPolarDBXRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateGatewayConsumerForPolarDBXResponse>;
|
|
300
|
+
/**
|
|
301
|
+
* Creates an AI gateway consumer for a PolarDB-X instance.
|
|
302
|
+
*
|
|
303
|
+
* @remarks
|
|
304
|
+
* ***.
|
|
305
|
+
*
|
|
306
|
+
* @param request - CreateGatewayConsumerForPolarDBXRequest
|
|
307
|
+
* @returns CreateGatewayConsumerForPolarDBXResponse
|
|
308
|
+
*/
|
|
309
|
+
createGatewayConsumerForPolarDBX(request: $_model.CreateGatewayConsumerForPolarDBXRequest): Promise<$_model.CreateGatewayConsumerForPolarDBXResponse>;
|
|
289
310
|
/**
|
|
290
311
|
* Creates a Global Database Network (GDN) instance.
|
|
291
312
|
*
|
package/dist/client.js
CHANGED
|
@@ -1054,6 +1054,54 @@ class Client extends openapi_core_1.default {
|
|
|
1054
1054
|
let runtime = new $dara.RuntimeOptions({});
|
|
1055
1055
|
return await this.createDataImportTaskWithOptions(request, runtime);
|
|
1056
1056
|
}
|
|
1057
|
+
/**
|
|
1058
|
+
* Creates an AI gateway consumer for a PolarDB-X instance.
|
|
1059
|
+
*
|
|
1060
|
+
* @remarks
|
|
1061
|
+
* ***.
|
|
1062
|
+
*
|
|
1063
|
+
* @param request - CreateGatewayConsumerForPolarDBXRequest
|
|
1064
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1065
|
+
* @returns CreateGatewayConsumerForPolarDBXResponse
|
|
1066
|
+
*/
|
|
1067
|
+
async createGatewayConsumerForPolarDBXWithOptions(request, runtime) {
|
|
1068
|
+
request.validate();
|
|
1069
|
+
let query = {};
|
|
1070
|
+
if (!$dara.isNull(request.DBInstanceName)) {
|
|
1071
|
+
query["DBInstanceName"] = request.DBInstanceName;
|
|
1072
|
+
}
|
|
1073
|
+
if (!$dara.isNull(request.regionId)) {
|
|
1074
|
+
query["RegionId"] = request.regionId;
|
|
1075
|
+
}
|
|
1076
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
1077
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
1078
|
+
});
|
|
1079
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
1080
|
+
action: "CreateGatewayConsumerForPolarDBX",
|
|
1081
|
+
version: "2020-02-02",
|
|
1082
|
+
protocol: "HTTPS",
|
|
1083
|
+
pathname: "/",
|
|
1084
|
+
method: "POST",
|
|
1085
|
+
authType: "AK",
|
|
1086
|
+
style: "RPC",
|
|
1087
|
+
reqBodyType: "formData",
|
|
1088
|
+
bodyType: "json",
|
|
1089
|
+
});
|
|
1090
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateGatewayConsumerForPolarDBXResponse({}));
|
|
1091
|
+
}
|
|
1092
|
+
/**
|
|
1093
|
+
* Creates an AI gateway consumer for a PolarDB-X instance.
|
|
1094
|
+
*
|
|
1095
|
+
* @remarks
|
|
1096
|
+
* ***.
|
|
1097
|
+
*
|
|
1098
|
+
* @param request - CreateGatewayConsumerForPolarDBXRequest
|
|
1099
|
+
* @returns CreateGatewayConsumerForPolarDBXResponse
|
|
1100
|
+
*/
|
|
1101
|
+
async createGatewayConsumerForPolarDBX(request) {
|
|
1102
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
1103
|
+
return await this.createGatewayConsumerForPolarDBXWithOptions(request, runtime);
|
|
1104
|
+
}
|
|
1057
1105
|
/**
|
|
1058
1106
|
* Creates a Global Database Network (GDN) instance.
|
|
1059
1107
|
*
|