@alicloud/apig20240327 3.0.0 → 3.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/dist/client.d.ts CHANGED
@@ -1355,6 +1355,53 @@ export declare class CreatePolicyAttachmentResponseBodyData extends $dara.Model
1355
1355
  [key: string]: any;
1356
1356
  });
1357
1357
  }
1358
+ export declare class CreateServiceRequestServiceConfigs extends $dara.Model {
1359
+ addresses?: string[];
1360
+ aiServiceConfig?: AiServiceConfig;
1361
+ /**
1362
+ * @example
1363
+ * DEFAULT_GROUP
1364
+ */
1365
+ groupName?: string;
1366
+ /**
1367
+ * @example
1368
+ * user-service
1369
+ */
1370
+ name?: string;
1371
+ /**
1372
+ * @example
1373
+ * PUBLIC
1374
+ */
1375
+ namespace?: string;
1376
+ /**
1377
+ * @example
1378
+ * LATEST
1379
+ */
1380
+ qualifier?: string;
1381
+ static names(): {
1382
+ [key: string]: string;
1383
+ };
1384
+ static types(): {
1385
+ [key: string]: any;
1386
+ };
1387
+ validate(): void;
1388
+ constructor(map?: {
1389
+ [key: string]: any;
1390
+ });
1391
+ }
1392
+ export declare class CreateServiceResponseBodyData extends $dara.Model {
1393
+ serviceIds?: string[];
1394
+ static names(): {
1395
+ [key: string]: string;
1396
+ };
1397
+ static types(): {
1398
+ [key: string]: any;
1399
+ };
1400
+ validate(): void;
1401
+ constructor(map?: {
1402
+ [key: string]: any;
1403
+ });
1404
+ }
1358
1405
  export declare class DeployHttpApiRequestRestApiConfigEnvironmentServiceConfigs extends $dara.Model {
1359
1406
  match?: HttpApiBackendMatchConditions;
1360
1407
  /**
@@ -3288,6 +3335,34 @@ export declare class ListHttpApiOperationsResponseBodyData extends $dara.Model {
3288
3335
  [key: string]: any;
3289
3336
  });
3290
3337
  }
3338
+ export declare class ListHttpApiRoutesResponseBodyData extends $dara.Model {
3339
+ items?: HttpRoute[];
3340
+ /**
3341
+ * @example
3342
+ * 1
3343
+ */
3344
+ pageNumber?: number;
3345
+ /**
3346
+ * @example
3347
+ * 20
3348
+ */
3349
+ pageSize?: number;
3350
+ /**
3351
+ * @example
3352
+ * 9
3353
+ */
3354
+ totalSize?: number;
3355
+ static names(): {
3356
+ [key: string]: string;
3357
+ };
3358
+ static types(): {
3359
+ [key: string]: any;
3360
+ };
3361
+ validate(): void;
3362
+ constructor(map?: {
3363
+ [key: string]: any;
3364
+ });
3365
+ }
3291
3366
  export declare class ListHttpApisResponseBodyData extends $dara.Model {
3292
3367
  /**
3293
3368
  * @remarks
@@ -3357,6 +3432,34 @@ export declare class ListPolicyClassesResponseBodyData extends $dara.Model {
3357
3432
  [key: string]: any;
3358
3433
  });
3359
3434
  }
3435
+ export declare class ListServicesResponseBodyData extends $dara.Model {
3436
+ items?: Service[];
3437
+ /**
3438
+ * @example
3439
+ * 1
3440
+ */
3441
+ pageNumber?: number;
3442
+ /**
3443
+ * @example
3444
+ * 10
3445
+ */
3446
+ pageSize?: number;
3447
+ /**
3448
+ * @example
3449
+ * 18
3450
+ */
3451
+ totalSize?: number;
3452
+ static names(): {
3453
+ [key: string]: string;
3454
+ };
3455
+ static types(): {
3456
+ [key: string]: any;
3457
+ };
3458
+ validate(): void;
3459
+ constructor(map?: {
3460
+ [key: string]: any;
3461
+ });
3462
+ }
3360
3463
  export declare class ListSslCertsResponseBodyData extends $dara.Model {
3361
3464
  items?: SslCertMetaInfo[];
3362
3465
  /**
@@ -5626,6 +5729,75 @@ export declare class CreatePolicyAttachmentResponse extends $dara.Model {
5626
5729
  [key: string]: any;
5627
5730
  });
5628
5731
  }
5732
+ export declare class CreateServiceRequest extends $dara.Model {
5733
+ /**
5734
+ * @example
5735
+ * gw-cq7l5s5lhtg***
5736
+ */
5737
+ gatewayId?: string;
5738
+ resourceGroupId?: string;
5739
+ serviceConfigs?: CreateServiceRequestServiceConfigs[];
5740
+ /**
5741
+ * @example
5742
+ * MSE_NACOS
5743
+ */
5744
+ sourceType?: string;
5745
+ static names(): {
5746
+ [key: string]: string;
5747
+ };
5748
+ static types(): {
5749
+ [key: string]: any;
5750
+ };
5751
+ validate(): void;
5752
+ constructor(map?: {
5753
+ [key: string]: any;
5754
+ });
5755
+ }
5756
+ export declare class CreateServiceResponseBody extends $dara.Model {
5757
+ /**
5758
+ * @example
5759
+ * Ok
5760
+ */
5761
+ code?: string;
5762
+ data?: CreateServiceResponseBodyData;
5763
+ /**
5764
+ * @example
5765
+ * success
5766
+ */
5767
+ message?: string;
5768
+ /**
5769
+ * @example
5770
+ * C67DED2B-F19B-5BEC-88C1-D6EB854CD0D4
5771
+ */
5772
+ requestId?: string;
5773
+ static names(): {
5774
+ [key: string]: string;
5775
+ };
5776
+ static types(): {
5777
+ [key: string]: any;
5778
+ };
5779
+ validate(): void;
5780
+ constructor(map?: {
5781
+ [key: string]: any;
5782
+ });
5783
+ }
5784
+ export declare class CreateServiceResponse extends $dara.Model {
5785
+ headers?: {
5786
+ [key: string]: string;
5787
+ };
5788
+ statusCode?: number;
5789
+ body?: CreateServiceResponseBody;
5790
+ static names(): {
5791
+ [key: string]: string;
5792
+ };
5793
+ static types(): {
5794
+ [key: string]: any;
5795
+ };
5796
+ validate(): void;
5797
+ constructor(map?: {
5798
+ [key: string]: any;
5799
+ });
5800
+ }
5629
5801
  export declare class DeleteDomainResponseBody extends $dara.Model {
5630
5802
  /**
5631
5803
  * @remarks
@@ -6887,6 +7059,51 @@ export declare class GetResourceOverviewResponse extends $dara.Model {
6887
7059
  [key: string]: any;
6888
7060
  });
6889
7061
  }
7062
+ export declare class GetServiceResponseBody extends $dara.Model {
7063
+ /**
7064
+ * @example
7065
+ * Ok
7066
+ */
7067
+ code?: string;
7068
+ data?: Service;
7069
+ /**
7070
+ * @example
7071
+ * success
7072
+ */
7073
+ message?: string;
7074
+ /**
7075
+ * @example
7076
+ * 8FA9BB94-915B-5299-A694-49FCC7F5DD00
7077
+ */
7078
+ requestId?: string;
7079
+ static names(): {
7080
+ [key: string]: string;
7081
+ };
7082
+ static types(): {
7083
+ [key: string]: any;
7084
+ };
7085
+ validate(): void;
7086
+ constructor(map?: {
7087
+ [key: string]: any;
7088
+ });
7089
+ }
7090
+ export declare class GetServiceResponse extends $dara.Model {
7091
+ headers?: {
7092
+ [key: string]: string;
7093
+ };
7094
+ statusCode?: number;
7095
+ body?: GetServiceResponseBody;
7096
+ static names(): {
7097
+ [key: string]: string;
7098
+ };
7099
+ static types(): {
7100
+ [key: string]: any;
7101
+ };
7102
+ validate(): void;
7103
+ constructor(map?: {
7104
+ [key: string]: any;
7105
+ });
7106
+ }
6890
7107
  export declare class GetTraceConfigRequest extends $dara.Model {
6891
7108
  /**
6892
7109
  * @example
@@ -7676,6 +7893,108 @@ export declare class ListHttpApiOperationsResponse extends $dara.Model {
7676
7893
  [key: string]: any;
7677
7894
  });
7678
7895
  }
7896
+ export declare class ListHttpApiRoutesRequest extends $dara.Model {
7897
+ consumerAuthorizationRuleId?: string;
7898
+ /**
7899
+ * @example
7900
+ * NotDeployed
7901
+ */
7902
+ deployStatuses?: string;
7903
+ domainId?: string;
7904
+ /**
7905
+ * @example
7906
+ * env-cpqnr6tlhtgubc***
7907
+ */
7908
+ environmentId?: string;
7909
+ /**
7910
+ * @example
7911
+ * gw-cpv4sqdl****
7912
+ */
7913
+ gatewayId?: string;
7914
+ /**
7915
+ * @example
7916
+ * itemcenter-gateway
7917
+ */
7918
+ name?: string;
7919
+ /**
7920
+ * @example
7921
+ * item
7922
+ */
7923
+ nameLike?: string;
7924
+ /**
7925
+ * @example
7926
+ * 1
7927
+ */
7928
+ pageNumber?: number;
7929
+ /**
7930
+ * @example
7931
+ * 10
7932
+ */
7933
+ pageSize?: number;
7934
+ /**
7935
+ * @example
7936
+ * /v1
7937
+ */
7938
+ pathLike?: string;
7939
+ withAuthPolicyInfo?: boolean;
7940
+ withConsumerInfoById?: string;
7941
+ withPluginAttachmentByPluginId?: string;
7942
+ static names(): {
7943
+ [key: string]: string;
7944
+ };
7945
+ static types(): {
7946
+ [key: string]: any;
7947
+ };
7948
+ validate(): void;
7949
+ constructor(map?: {
7950
+ [key: string]: any;
7951
+ });
7952
+ }
7953
+ export declare class ListHttpApiRoutesResponseBody extends $dara.Model {
7954
+ /**
7955
+ * @example
7956
+ * Ok
7957
+ */
7958
+ code?: string;
7959
+ data?: ListHttpApiRoutesResponseBodyData;
7960
+ /**
7961
+ * @example
7962
+ * success
7963
+ */
7964
+ message?: string;
7965
+ /**
7966
+ * @example
7967
+ * CBEEB8C1-108E-50F0-9BEA-DED79553C309
7968
+ */
7969
+ requestId?: string;
7970
+ static names(): {
7971
+ [key: string]: string;
7972
+ };
7973
+ static types(): {
7974
+ [key: string]: any;
7975
+ };
7976
+ validate(): void;
7977
+ constructor(map?: {
7978
+ [key: string]: any;
7979
+ });
7980
+ }
7981
+ export declare class ListHttpApiRoutesResponse extends $dara.Model {
7982
+ headers?: {
7983
+ [key: string]: string;
7984
+ };
7985
+ statusCode?: number;
7986
+ body?: ListHttpApiRoutesResponseBody;
7987
+ static names(): {
7988
+ [key: string]: string;
7989
+ };
7990
+ static types(): {
7991
+ [key: string]: any;
7992
+ };
7993
+ validate(): void;
7994
+ constructor(map?: {
7995
+ [key: string]: any;
7996
+ });
7997
+ }
7679
7998
  export declare class ListHttpApisRequest extends $dara.Model {
7680
7999
  /**
7681
8000
  * @remarks
@@ -7902,6 +8221,89 @@ export declare class ListPolicyClassesResponse extends $dara.Model {
7902
8221
  [key: string]: any;
7903
8222
  });
7904
8223
  }
8224
+ export declare class ListServicesRequest extends $dara.Model {
8225
+ /**
8226
+ * @example
8227
+ * gw-cpv4sqdl*****
8228
+ */
8229
+ gatewayId?: string;
8230
+ /**
8231
+ * @example
8232
+ * user-service
8233
+ */
8234
+ name?: string;
8235
+ /**
8236
+ * @example
8237
+ * 1
8238
+ */
8239
+ pageNumber?: number;
8240
+ /**
8241
+ * @example
8242
+ * 10
8243
+ */
8244
+ pageSize?: number;
8245
+ resourceGroupId?: string;
8246
+ /**
8247
+ * @example
8248
+ * MSE_NACOS
8249
+ */
8250
+ sourceType?: string;
8251
+ static names(): {
8252
+ [key: string]: string;
8253
+ };
8254
+ static types(): {
8255
+ [key: string]: any;
8256
+ };
8257
+ validate(): void;
8258
+ constructor(map?: {
8259
+ [key: string]: any;
8260
+ });
8261
+ }
8262
+ export declare class ListServicesResponseBody extends $dara.Model {
8263
+ /**
8264
+ * @example
8265
+ * Ok
8266
+ */
8267
+ code?: string;
8268
+ data?: ListServicesResponseBodyData;
8269
+ /**
8270
+ * @example
8271
+ * success
8272
+ */
8273
+ message?: string;
8274
+ /**
8275
+ * @example
8276
+ * 585657D2-1C20-5B8A-AF17-D727C6490BE4
8277
+ */
8278
+ requestId?: string;
8279
+ static names(): {
8280
+ [key: string]: string;
8281
+ };
8282
+ static types(): {
8283
+ [key: string]: any;
8284
+ };
8285
+ validate(): void;
8286
+ constructor(map?: {
8287
+ [key: string]: any;
8288
+ });
8289
+ }
8290
+ export declare class ListServicesResponse extends $dara.Model {
8291
+ headers?: {
8292
+ [key: string]: string;
8293
+ };
8294
+ statusCode?: number;
8295
+ body?: ListServicesResponseBody;
8296
+ static names(): {
8297
+ [key: string]: string;
8298
+ };
8299
+ static types(): {
8300
+ [key: string]: any;
8301
+ };
8302
+ validate(): void;
8303
+ constructor(map?: {
8304
+ [key: string]: any;
8305
+ });
8306
+ }
7905
8307
  export declare class ListSslCertsRequest extends $dara.Model {
7906
8308
  /**
7907
8309
  * @example
@@ -9033,6 +9435,24 @@ export default class Client extends OpenApi {
9033
9435
  * @returns CreatePolicyAttachmentResponse
9034
9436
  */
9035
9437
  createPolicyAttachment(request: CreatePolicyAttachmentRequest): Promise<CreatePolicyAttachmentResponse>;
9438
+ /**
9439
+ * 创建服务
9440
+ *
9441
+ * @param request - CreateServiceRequest
9442
+ * @param headers - map
9443
+ * @param runtime - runtime options for this request RuntimeOptions
9444
+ * @returns CreateServiceResponse
9445
+ */
9446
+ createServiceWithOptions(request: CreateServiceRequest, headers: {
9447
+ [key: string]: string;
9448
+ }, runtime: $dara.RuntimeOptions): Promise<CreateServiceResponse>;
9449
+ /**
9450
+ * 创建服务
9451
+ *
9452
+ * @param request - CreateServiceRequest
9453
+ * @returns CreateServiceResponse
9454
+ */
9455
+ createService(request: CreateServiceRequest): Promise<CreateServiceResponse>;
9036
9456
  /**
9037
9457
  * DeleteDomain
9038
9458
  *
@@ -9371,6 +9791,21 @@ export default class Client extends OpenApi {
9371
9791
  * @returns GetResourceOverviewResponse
9372
9792
  */
9373
9793
  getResourceOverview(): Promise<GetResourceOverviewResponse>;
9794
+ /**
9795
+ * 获取服务详情
9796
+ *
9797
+ * @param headers - map
9798
+ * @param runtime - runtime options for this request RuntimeOptions
9799
+ * @returns GetServiceResponse
9800
+ */
9801
+ getServiceWithOptions(serviceId: string, headers: {
9802
+ [key: string]: string;
9803
+ }, runtime: $dara.RuntimeOptions): Promise<GetServiceResponse>;
9804
+ /**
9805
+ * 获取服务详情
9806
+ * @returns GetServiceResponse
9807
+ */
9808
+ getService(serviceId: string): Promise<GetServiceResponse>;
9374
9809
  /**
9375
9810
  * 获取链路追踪配置
9376
9811
  *
@@ -9483,6 +9918,24 @@ export default class Client extends OpenApi {
9483
9918
  * @returns ListHttpApiOperationsResponse
9484
9919
  */
9485
9920
  listHttpApiOperations(httpApiId: string, request: ListHttpApiOperationsRequest): Promise<ListHttpApiOperationsResponse>;
9921
+ /**
9922
+ * 创建HttpApi的路由
9923
+ *
9924
+ * @param request - ListHttpApiRoutesRequest
9925
+ * @param headers - map
9926
+ * @param runtime - runtime options for this request RuntimeOptions
9927
+ * @returns ListHttpApiRoutesResponse
9928
+ */
9929
+ listHttpApiRoutesWithOptions(httpApiId: string, request: ListHttpApiRoutesRequest, headers: {
9930
+ [key: string]: string;
9931
+ }, runtime: $dara.RuntimeOptions): Promise<ListHttpApiRoutesResponse>;
9932
+ /**
9933
+ * 创建HttpApi的路由
9934
+ *
9935
+ * @param request - ListHttpApiRoutesRequest
9936
+ * @returns ListHttpApiRoutesResponse
9937
+ */
9938
+ listHttpApiRoutes(httpApiId: string, request: ListHttpApiRoutesRequest): Promise<ListHttpApiRoutesResponse>;
9486
9939
  /**
9487
9940
  * List HTTP APIs
9488
9941
  *
@@ -9519,6 +9972,24 @@ export default class Client extends OpenApi {
9519
9972
  * @returns ListPolicyClassesResponse
9520
9973
  */
9521
9974
  listPolicyClasses(request: ListPolicyClassesRequest): Promise<ListPolicyClassesResponse>;
9975
+ /**
9976
+ * 获取服务列表
9977
+ *
9978
+ * @param request - ListServicesRequest
9979
+ * @param headers - map
9980
+ * @param runtime - runtime options for this request RuntimeOptions
9981
+ * @returns ListServicesResponse
9982
+ */
9983
+ listServicesWithOptions(request: ListServicesRequest, headers: {
9984
+ [key: string]: string;
9985
+ }, runtime: $dara.RuntimeOptions): Promise<ListServicesResponse>;
9986
+ /**
9987
+ * 获取服务列表
9988
+ *
9989
+ * @param request - ListServicesRequest
9990
+ * @returns ListServicesResponse
9991
+ */
9992
+ listServices(request: ListServicesRequest): Promise<ListServicesResponse>;
9522
9993
  /**
9523
9994
  * ListSslCerts。
9524
9995
  *