@alicloud/cloudapi20160714 4.0.2 → 4.1.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alicloud/cloudapi20160714",
3
- "version": "4.0.2",
3
+ "version": "4.1.0",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
@@ -20,8 +20,8 @@
20
20
  },
21
21
  "dependencies": {
22
22
  "@alicloud/tea-typescript": "^1.7.1",
23
- "@alicloud/tea-util": "^1.4.7",
24
- "@alicloud/openapi-client": "^0.4.8",
23
+ "@alicloud/tea-util": "^1.4.8",
24
+ "@alicloud/openapi-client": "^0.4.9",
25
25
  "@alicloud/openapi-util": "^0.3.2",
26
26
  "@alicloud/endpoint-util": "^0.0.1"
27
27
  },
package/src/client.ts CHANGED
@@ -1082,6 +1082,141 @@ export class CreateAppResponse extends $tea.Model {
1082
1082
  }
1083
1083
  }
1084
1084
 
1085
+ export class CreateAppCodeRequest extends $tea.Model {
1086
+ appCode?: string;
1087
+ appId?: string;
1088
+ static names(): { [key: string]: string } {
1089
+ return {
1090
+ appCode: 'AppCode',
1091
+ appId: 'AppId',
1092
+ };
1093
+ }
1094
+
1095
+ static types(): { [key: string]: any } {
1096
+ return {
1097
+ appCode: 'string',
1098
+ appId: 'string',
1099
+ };
1100
+ }
1101
+
1102
+ constructor(map?: { [key: string]: any }) {
1103
+ super(map);
1104
+ }
1105
+ }
1106
+
1107
+ export class CreateAppCodeResponseBody extends $tea.Model {
1108
+ requestId?: string;
1109
+ static names(): { [key: string]: string } {
1110
+ return {
1111
+ requestId: 'RequestId',
1112
+ };
1113
+ }
1114
+
1115
+ static types(): { [key: string]: any } {
1116
+ return {
1117
+ requestId: 'string',
1118
+ };
1119
+ }
1120
+
1121
+ constructor(map?: { [key: string]: any }) {
1122
+ super(map);
1123
+ }
1124
+ }
1125
+
1126
+ export class CreateAppCodeResponse extends $tea.Model {
1127
+ headers?: { [key: string]: string };
1128
+ statusCode?: number;
1129
+ body?: CreateAppCodeResponseBody;
1130
+ static names(): { [key: string]: string } {
1131
+ return {
1132
+ headers: 'headers',
1133
+ statusCode: 'statusCode',
1134
+ body: 'body',
1135
+ };
1136
+ }
1137
+
1138
+ static types(): { [key: string]: any } {
1139
+ return {
1140
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1141
+ statusCode: 'number',
1142
+ body: CreateAppCodeResponseBody,
1143
+ };
1144
+ }
1145
+
1146
+ constructor(map?: { [key: string]: any }) {
1147
+ super(map);
1148
+ }
1149
+ }
1150
+
1151
+ export class CreateAppKeyRequest extends $tea.Model {
1152
+ appId?: string;
1153
+ appKey?: string;
1154
+ appSecret?: string;
1155
+ static names(): { [key: string]: string } {
1156
+ return {
1157
+ appId: 'AppId',
1158
+ appKey: 'AppKey',
1159
+ appSecret: 'AppSecret',
1160
+ };
1161
+ }
1162
+
1163
+ static types(): { [key: string]: any } {
1164
+ return {
1165
+ appId: 'string',
1166
+ appKey: 'string',
1167
+ appSecret: 'string',
1168
+ };
1169
+ }
1170
+
1171
+ constructor(map?: { [key: string]: any }) {
1172
+ super(map);
1173
+ }
1174
+ }
1175
+
1176
+ export class CreateAppKeyResponseBody extends $tea.Model {
1177
+ requestId?: string;
1178
+ static names(): { [key: string]: string } {
1179
+ return {
1180
+ requestId: 'RequestId',
1181
+ };
1182
+ }
1183
+
1184
+ static types(): { [key: string]: any } {
1185
+ return {
1186
+ requestId: 'string',
1187
+ };
1188
+ }
1189
+
1190
+ constructor(map?: { [key: string]: any }) {
1191
+ super(map);
1192
+ }
1193
+ }
1194
+
1195
+ export class CreateAppKeyResponse extends $tea.Model {
1196
+ headers?: { [key: string]: string };
1197
+ statusCode?: number;
1198
+ body?: CreateAppKeyResponseBody;
1199
+ static names(): { [key: string]: string } {
1200
+ return {
1201
+ headers: 'headers',
1202
+ statusCode: 'statusCode',
1203
+ body: 'body',
1204
+ };
1205
+ }
1206
+
1207
+ static types(): { [key: string]: any } {
1208
+ return {
1209
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1210
+ statusCode: 'number',
1211
+ body: CreateAppKeyResponseBody,
1212
+ };
1213
+ }
1214
+
1215
+ constructor(map?: { [key: string]: any }) {
1216
+ super(map);
1217
+ }
1218
+ }
1219
+
1085
1220
  export class CreateBackendRequest extends $tea.Model {
1086
1221
  backendName?: string;
1087
1222
  backendType?: string;
@@ -2627,6 +2762,138 @@ export class DeleteAppResponse extends $tea.Model {
2627
2762
  }
2628
2763
  }
2629
2764
 
2765
+ export class DeleteAppCodeRequest extends $tea.Model {
2766
+ appCode?: string;
2767
+ appId?: string;
2768
+ static names(): { [key: string]: string } {
2769
+ return {
2770
+ appCode: 'AppCode',
2771
+ appId: 'AppId',
2772
+ };
2773
+ }
2774
+
2775
+ static types(): { [key: string]: any } {
2776
+ return {
2777
+ appCode: 'string',
2778
+ appId: 'string',
2779
+ };
2780
+ }
2781
+
2782
+ constructor(map?: { [key: string]: any }) {
2783
+ super(map);
2784
+ }
2785
+ }
2786
+
2787
+ export class DeleteAppCodeResponseBody extends $tea.Model {
2788
+ requestId?: string;
2789
+ static names(): { [key: string]: string } {
2790
+ return {
2791
+ requestId: 'RequestId',
2792
+ };
2793
+ }
2794
+
2795
+ static types(): { [key: string]: any } {
2796
+ return {
2797
+ requestId: 'string',
2798
+ };
2799
+ }
2800
+
2801
+ constructor(map?: { [key: string]: any }) {
2802
+ super(map);
2803
+ }
2804
+ }
2805
+
2806
+ export class DeleteAppCodeResponse extends $tea.Model {
2807
+ headers?: { [key: string]: string };
2808
+ statusCode?: number;
2809
+ body?: DeleteAppCodeResponseBody;
2810
+ static names(): { [key: string]: string } {
2811
+ return {
2812
+ headers: 'headers',
2813
+ statusCode: 'statusCode',
2814
+ body: 'body',
2815
+ };
2816
+ }
2817
+
2818
+ static types(): { [key: string]: any } {
2819
+ return {
2820
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2821
+ statusCode: 'number',
2822
+ body: DeleteAppCodeResponseBody,
2823
+ };
2824
+ }
2825
+
2826
+ constructor(map?: { [key: string]: any }) {
2827
+ super(map);
2828
+ }
2829
+ }
2830
+
2831
+ export class DeleteAppKeyRequest extends $tea.Model {
2832
+ appId?: string;
2833
+ appKey?: string;
2834
+ static names(): { [key: string]: string } {
2835
+ return {
2836
+ appId: 'AppId',
2837
+ appKey: 'AppKey',
2838
+ };
2839
+ }
2840
+
2841
+ static types(): { [key: string]: any } {
2842
+ return {
2843
+ appId: 'string',
2844
+ appKey: 'string',
2845
+ };
2846
+ }
2847
+
2848
+ constructor(map?: { [key: string]: any }) {
2849
+ super(map);
2850
+ }
2851
+ }
2852
+
2853
+ export class DeleteAppKeyResponseBody extends $tea.Model {
2854
+ requestId?: string;
2855
+ static names(): { [key: string]: string } {
2856
+ return {
2857
+ requestId: 'RequestId',
2858
+ };
2859
+ }
2860
+
2861
+ static types(): { [key: string]: any } {
2862
+ return {
2863
+ requestId: 'string',
2864
+ };
2865
+ }
2866
+
2867
+ constructor(map?: { [key: string]: any }) {
2868
+ super(map);
2869
+ }
2870
+ }
2871
+
2872
+ export class DeleteAppKeyResponse extends $tea.Model {
2873
+ headers?: { [key: string]: string };
2874
+ statusCode?: number;
2875
+ body?: DeleteAppKeyResponseBody;
2876
+ static names(): { [key: string]: string } {
2877
+ return {
2878
+ headers: 'headers',
2879
+ statusCode: 'statusCode',
2880
+ body: 'body',
2881
+ };
2882
+ }
2883
+
2884
+ static types(): { [key: string]: any } {
2885
+ return {
2886
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2887
+ statusCode: 'number',
2888
+ body: DeleteAppKeyResponseBody,
2889
+ };
2890
+ }
2891
+
2892
+ constructor(map?: { [key: string]: any }) {
2893
+ super(map);
2894
+ }
2895
+ }
2896
+
2630
2897
  export class DeleteBackendRequest extends $tea.Model {
2631
2898
  backendId?: string;
2632
2899
  securityToken?: string;
@@ -26560,6 +26827,102 @@ export default class Client extends OpenApi {
26560
26827
  return await this.createAppWithOptions(request, runtime);
26561
26828
  }
26562
26829
 
26830
+ /**
26831
+ * @summary 创建新的AppCode
26832
+ *
26833
+ * @param request CreateAppCodeRequest
26834
+ * @param runtime runtime options for this request RuntimeOptions
26835
+ * @return CreateAppCodeResponse
26836
+ */
26837
+ async createAppCodeWithOptions(request: CreateAppCodeRequest, runtime: $Util.RuntimeOptions): Promise<CreateAppCodeResponse> {
26838
+ Util.validateModel(request);
26839
+ let query = { };
26840
+ if (!Util.isUnset(request.appCode)) {
26841
+ query["AppCode"] = request.appCode;
26842
+ }
26843
+
26844
+ if (!Util.isUnset(request.appId)) {
26845
+ query["AppId"] = request.appId;
26846
+ }
26847
+
26848
+ let req = new $OpenApi.OpenApiRequest({
26849
+ query: OpenApiUtil.query(query),
26850
+ });
26851
+ let params = new $OpenApi.Params({
26852
+ action: "CreateAppCode",
26853
+ version: "2016-07-14",
26854
+ protocol: "HTTPS",
26855
+ pathname: "/",
26856
+ method: "POST",
26857
+ authType: "AK",
26858
+ style: "RPC",
26859
+ reqBodyType: "formData",
26860
+ bodyType: "json",
26861
+ });
26862
+ return $tea.cast<CreateAppCodeResponse>(await this.callApi(params, req, runtime), new CreateAppCodeResponse({}));
26863
+ }
26864
+
26865
+ /**
26866
+ * @summary 创建新的AppCode
26867
+ *
26868
+ * @param request CreateAppCodeRequest
26869
+ * @return CreateAppCodeResponse
26870
+ */
26871
+ async createAppCode(request: CreateAppCodeRequest): Promise<CreateAppCodeResponse> {
26872
+ let runtime = new $Util.RuntimeOptions({ });
26873
+ return await this.createAppCodeWithOptions(request, runtime);
26874
+ }
26875
+
26876
+ /**
26877
+ * @summary 创建新的AK、SK
26878
+ *
26879
+ * @param request CreateAppKeyRequest
26880
+ * @param runtime runtime options for this request RuntimeOptions
26881
+ * @return CreateAppKeyResponse
26882
+ */
26883
+ async createAppKeyWithOptions(request: CreateAppKeyRequest, runtime: $Util.RuntimeOptions): Promise<CreateAppKeyResponse> {
26884
+ Util.validateModel(request);
26885
+ let query = { };
26886
+ if (!Util.isUnset(request.appId)) {
26887
+ query["AppId"] = request.appId;
26888
+ }
26889
+
26890
+ if (!Util.isUnset(request.appKey)) {
26891
+ query["AppKey"] = request.appKey;
26892
+ }
26893
+
26894
+ if (!Util.isUnset(request.appSecret)) {
26895
+ query["AppSecret"] = request.appSecret;
26896
+ }
26897
+
26898
+ let req = new $OpenApi.OpenApiRequest({
26899
+ query: OpenApiUtil.query(query),
26900
+ });
26901
+ let params = new $OpenApi.Params({
26902
+ action: "CreateAppKey",
26903
+ version: "2016-07-14",
26904
+ protocol: "HTTPS",
26905
+ pathname: "/",
26906
+ method: "POST",
26907
+ authType: "AK",
26908
+ style: "RPC",
26909
+ reqBodyType: "formData",
26910
+ bodyType: "json",
26911
+ });
26912
+ return $tea.cast<CreateAppKeyResponse>(await this.callApi(params, req, runtime), new CreateAppKeyResponse({}));
26913
+ }
26914
+
26915
+ /**
26916
+ * @summary 创建新的AK、SK
26917
+ *
26918
+ * @param request CreateAppKeyRequest
26919
+ * @return CreateAppKeyResponse
26920
+ */
26921
+ async createAppKey(request: CreateAppKeyRequest): Promise<CreateAppKeyResponse> {
26922
+ let runtime = new $Util.RuntimeOptions({ });
26923
+ return await this.createAppKeyWithOptions(request, runtime);
26924
+ }
26925
+
26563
26926
  /**
26564
26927
  * @summary 创建后端服务
26565
26928
  *
@@ -27760,6 +28123,98 @@ export default class Client extends OpenApi {
27760
28123
  return await this.deleteAppWithOptions(request, runtime);
27761
28124
  }
27762
28125
 
28126
+ /**
28127
+ * @summary 删除新的AppCode
28128
+ *
28129
+ * @param request DeleteAppCodeRequest
28130
+ * @param runtime runtime options for this request RuntimeOptions
28131
+ * @return DeleteAppCodeResponse
28132
+ */
28133
+ async deleteAppCodeWithOptions(request: DeleteAppCodeRequest, runtime: $Util.RuntimeOptions): Promise<DeleteAppCodeResponse> {
28134
+ Util.validateModel(request);
28135
+ let query = { };
28136
+ if (!Util.isUnset(request.appCode)) {
28137
+ query["AppCode"] = request.appCode;
28138
+ }
28139
+
28140
+ if (!Util.isUnset(request.appId)) {
28141
+ query["AppId"] = request.appId;
28142
+ }
28143
+
28144
+ let req = new $OpenApi.OpenApiRequest({
28145
+ query: OpenApiUtil.query(query),
28146
+ });
28147
+ let params = new $OpenApi.Params({
28148
+ action: "DeleteAppCode",
28149
+ version: "2016-07-14",
28150
+ protocol: "HTTPS",
28151
+ pathname: "/",
28152
+ method: "POST",
28153
+ authType: "AK",
28154
+ style: "RPC",
28155
+ reqBodyType: "formData",
28156
+ bodyType: "json",
28157
+ });
28158
+ return $tea.cast<DeleteAppCodeResponse>(await this.callApi(params, req, runtime), new DeleteAppCodeResponse({}));
28159
+ }
28160
+
28161
+ /**
28162
+ * @summary 删除新的AppCode
28163
+ *
28164
+ * @param request DeleteAppCodeRequest
28165
+ * @return DeleteAppCodeResponse
28166
+ */
28167
+ async deleteAppCode(request: DeleteAppCodeRequest): Promise<DeleteAppCodeResponse> {
28168
+ let runtime = new $Util.RuntimeOptions({ });
28169
+ return await this.deleteAppCodeWithOptions(request, runtime);
28170
+ }
28171
+
28172
+ /**
28173
+ * @summary 删除新的AppKey
28174
+ *
28175
+ * @param request DeleteAppKeyRequest
28176
+ * @param runtime runtime options for this request RuntimeOptions
28177
+ * @return DeleteAppKeyResponse
28178
+ */
28179
+ async deleteAppKeyWithOptions(request: DeleteAppKeyRequest, runtime: $Util.RuntimeOptions): Promise<DeleteAppKeyResponse> {
28180
+ Util.validateModel(request);
28181
+ let query = { };
28182
+ if (!Util.isUnset(request.appId)) {
28183
+ query["AppId"] = request.appId;
28184
+ }
28185
+
28186
+ if (!Util.isUnset(request.appKey)) {
28187
+ query["AppKey"] = request.appKey;
28188
+ }
28189
+
28190
+ let req = new $OpenApi.OpenApiRequest({
28191
+ query: OpenApiUtil.query(query),
28192
+ });
28193
+ let params = new $OpenApi.Params({
28194
+ action: "DeleteAppKey",
28195
+ version: "2016-07-14",
28196
+ protocol: "HTTPS",
28197
+ pathname: "/",
28198
+ method: "POST",
28199
+ authType: "AK",
28200
+ style: "RPC",
28201
+ reqBodyType: "formData",
28202
+ bodyType: "json",
28203
+ });
28204
+ return $tea.cast<DeleteAppKeyResponse>(await this.callApi(params, req, runtime), new DeleteAppKeyResponse({}));
28205
+ }
28206
+
28207
+ /**
28208
+ * @summary 删除新的AppKey
28209
+ *
28210
+ * @param request DeleteAppKeyRequest
28211
+ * @return DeleteAppKeyResponse
28212
+ */
28213
+ async deleteAppKey(request: DeleteAppKeyRequest): Promise<DeleteAppKeyResponse> {
28214
+ let runtime = new $Util.RuntimeOptions({ });
28215
+ return await this.deleteAppKeyWithOptions(request, runtime);
28216
+ }
28217
+
27763
28218
  /**
27764
28219
  * @summary Deletes a backend service.
27765
28220
  *