@alicloud/apig20240327 3.2.0 → 3.2.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/dist/client.js CHANGED
@@ -6265,7 +6265,9 @@ class GetDashboardRequest extends $dara.Model {
6265
6265
  filter: 'filter',
6266
6266
  name: 'name',
6267
6267
  pluginClassId: 'pluginClassId',
6268
+ pluginId: 'pluginId',
6268
6269
  source: 'source',
6270
+ upstreamCluster: 'upstreamCluster',
6269
6271
  };
6270
6272
  }
6271
6273
  static types() {
@@ -6275,7 +6277,9 @@ class GetDashboardRequest extends $dara.Model {
6275
6277
  filter: GetDashboardRequestFilter,
6276
6278
  name: 'string',
6277
6279
  pluginClassId: 'string',
6280
+ pluginId: 'string',
6278
6281
  source: 'string',
6282
+ upstreamCluster: 'string',
6279
6283
  };
6280
6284
  }
6281
6285
  validate() {
@@ -6297,7 +6301,9 @@ class GetDashboardShrinkRequest extends $dara.Model {
6297
6301
  filterShrink: 'filter',
6298
6302
  name: 'name',
6299
6303
  pluginClassId: 'pluginClassId',
6304
+ pluginId: 'pluginId',
6300
6305
  source: 'source',
6306
+ upstreamCluster: 'upstreamCluster',
6301
6307
  };
6302
6308
  }
6303
6309
  static types() {
@@ -6307,7 +6313,9 @@ class GetDashboardShrinkRequest extends $dara.Model {
6307
6313
  filterShrink: 'string',
6308
6314
  name: 'string',
6309
6315
  pluginClassId: 'string',
6316
+ pluginId: 'string',
6310
6317
  source: 'string',
6318
+ upstreamCluster: 'string',
6311
6319
  };
6312
6320
  }
6313
6321
  validate() {
@@ -7665,6 +7673,7 @@ class ListHttpApisRequest extends $dara.Model {
7665
7673
  pageSize: 'pageSize',
7666
7674
  resourceGroupId: 'resourceGroupId',
7667
7675
  types: 'types',
7676
+ withAPIsPublishedToEnvironment: 'withAPIsPublishedToEnvironment',
7668
7677
  withAuthPolicyInEnvironmentId: 'withAuthPolicyInEnvironmentId',
7669
7678
  withAuthPolicyList: 'withAuthPolicyList',
7670
7679
  withConsumerInfoById: 'withConsumerInfoById',
@@ -7672,6 +7681,7 @@ class ListHttpApisRequest extends $dara.Model {
7672
7681
  withEnvironmentInfoById: 'withEnvironmentInfoById',
7673
7682
  withIngressInfo: 'withIngressInfo',
7674
7683
  withPluginAttachmentByPluginId: 'withPluginAttachmentByPluginId',
7684
+ withPolicyConfigs: 'withPolicyConfigs',
7675
7685
  };
7676
7686
  }
7677
7687
  static types() {
@@ -7683,6 +7693,7 @@ class ListHttpApisRequest extends $dara.Model {
7683
7693
  pageSize: 'number',
7684
7694
  resourceGroupId: 'string',
7685
7695
  types: 'string',
7696
+ withAPIsPublishedToEnvironment: 'boolean',
7686
7697
  withAuthPolicyInEnvironmentId: 'string',
7687
7698
  withAuthPolicyList: 'boolean',
7688
7699
  withConsumerInfoById: 'string',
@@ -7690,6 +7701,7 @@ class ListHttpApisRequest extends $dara.Model {
7690
7701
  withEnvironmentInfoById: 'string',
7691
7702
  withIngressInfo: 'boolean',
7692
7703
  withPluginAttachmentByPluginId: 'string',
7704
+ withPolicyConfigs: 'boolean',
7693
7705
  };
7694
7706
  }
7695
7707
  validate() {
@@ -7850,6 +7862,7 @@ class ListServicesRequest extends $dara.Model {
7850
7862
  pageSize: 'pageSize',
7851
7863
  resourceGroupId: 'resourceGroupId',
7852
7864
  sourceType: 'sourceType',
7865
+ sourceTypes: 'sourceTypes',
7853
7866
  };
7854
7867
  }
7855
7868
  static types() {
@@ -7860,6 +7873,7 @@ class ListServicesRequest extends $dara.Model {
7860
7873
  pageSize: 'number',
7861
7874
  resourceGroupId: 'string',
7862
7875
  sourceType: 'string',
7876
+ sourceTypes: 'string',
7863
7877
  };
7864
7878
  }
7865
7879
  validate() {
@@ -9042,7 +9056,7 @@ class Client extends openapi_core_1.default {
9042
9056
  return await this.changeResourceGroupWithOptions(request, headers, runtime);
9043
9057
  }
9044
9058
  /**
9045
- * Create Domain
9059
+ * Creates a domain name.
9046
9060
  *
9047
9061
  * @remarks
9048
9062
  * Create Domain.
@@ -9114,7 +9128,7 @@ class Client extends openapi_core_1.default {
9114
9128
  }
9115
9129
  }
9116
9130
  /**
9117
- * Create Domain
9131
+ * Creates a domain name.
9118
9132
  *
9119
9133
  * @remarks
9120
9134
  * Create Domain.
@@ -9199,7 +9213,7 @@ class Client extends openapi_core_1.default {
9199
9213
  return await this.createEnvironmentWithOptions(request, headers, runtime);
9200
9214
  }
9201
9215
  /**
9202
- * Create an API of HTTP type
9216
+ * Creates an HTTP API.
9203
9217
  *
9204
9218
  * @param request - CreateHttpApiRequest
9205
9219
  * @param headers - map
@@ -9268,7 +9282,7 @@ class Client extends openapi_core_1.default {
9268
9282
  }
9269
9283
  }
9270
9284
  /**
9271
- * Create an API of HTTP type
9285
+ * Creates an HTTP API.
9272
9286
  *
9273
9287
  * @param request - CreateHttpApiRequest
9274
9288
  * @returns CreateHttpApiResponse
@@ -9503,10 +9517,10 @@ class Client extends openapi_core_1.default {
9503
9517
  return await this.createPolicyAttachmentWithOptions(request, headers, runtime);
9504
9518
  }
9505
9519
  /**
9506
- * Create Service
9520
+ * Creates a service.
9507
9521
  *
9508
9522
  * @remarks
9509
- * The interface supports creating multiple services.
9523
+ * You can call this operation to create multiple services at a time.
9510
9524
  *
9511
9525
  * @param request - CreateServiceRequest
9512
9526
  * @param headers - map
@@ -9551,10 +9565,10 @@ class Client extends openapi_core_1.default {
9551
9565
  }
9552
9566
  }
9553
9567
  /**
9554
- * Create Service
9568
+ * Creates a service.
9555
9569
  *
9556
9570
  * @remarks
9557
- * The interface supports creating multiple services.
9571
+ * You can call this operation to create multiple services at a time.
9558
9572
  *
9559
9573
  * @param request - CreateServiceRequest
9560
9574
  * @returns CreateServiceResponse
@@ -10010,7 +10024,7 @@ class Client extends openapi_core_1.default {
10010
10024
  return await this.exportHttpApiWithOptions(httpApiId, headers, runtime);
10011
10025
  }
10012
10026
  /**
10013
- * Get Monitoring/Logging Dashboard Interface
10027
+ * Obtains data from dashboards.
10014
10028
  *
10015
10029
  * @param tmpReq - GetDashboardRequest
10016
10030
  * @param headers - map
@@ -10040,9 +10054,15 @@ class Client extends openapi_core_1.default {
10040
10054
  if (!$dara.isNull(request.pluginClassId)) {
10041
10055
  query["pluginClassId"] = request.pluginClassId;
10042
10056
  }
10057
+ if (!$dara.isNull(request.pluginId)) {
10058
+ query["pluginId"] = request.pluginId;
10059
+ }
10043
10060
  if (!$dara.isNull(request.source)) {
10044
10061
  query["source"] = request.source;
10045
10062
  }
10063
+ if (!$dara.isNull(request.upstreamCluster)) {
10064
+ query["upstreamCluster"] = request.upstreamCluster;
10065
+ }
10046
10066
  let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
10047
10067
  headers: headers,
10048
10068
  query: openapi_core_2.OpenApiUtil.query(query),
@@ -10066,7 +10086,7 @@ class Client extends openapi_core_1.default {
10066
10086
  }
10067
10087
  }
10068
10088
  /**
10069
- * Get Monitoring/Logging Dashboard Interface
10089
+ * Obtains data from dashboards.
10070
10090
  *
10071
10091
  * @param request - GetDashboardRequest
10072
10092
  * @returns GetDashboardResponse
@@ -10077,7 +10097,7 @@ class Client extends openapi_core_1.default {
10077
10097
  return await this.getDashboardWithOptions(gatewayId, request, headers, runtime);
10078
10098
  }
10079
10099
  /**
10080
- * Query domain details
10100
+ * Queries the information about a domain name.
10081
10101
  *
10082
10102
  * @param request - GetDomainRequest
10083
10103
  * @param headers - map
@@ -10113,7 +10133,7 @@ class Client extends openapi_core_1.default {
10113
10133
  }
10114
10134
  }
10115
10135
  /**
10116
- * Query domain details
10136
+ * Queries the information about a domain name.
10117
10137
  *
10118
10138
  * @param request - GetDomainRequest
10119
10139
  * @returns GetDomainResponse
@@ -10294,7 +10314,7 @@ class Client extends openapi_core_1.default {
10294
10314
  return await this.getHttpApiOperationWithOptions(httpApiId, operationId, headers, runtime);
10295
10315
  }
10296
10316
  /**
10297
- * Get the details of an HttpApi route
10317
+ * Queries the details of a route of an HTTP API.
10298
10318
  *
10299
10319
  * @param headers - map
10300
10320
  * @param runtime - runtime options for this request RuntimeOptions
@@ -10323,7 +10343,7 @@ class Client extends openapi_core_1.default {
10323
10343
  }
10324
10344
  }
10325
10345
  /**
10326
- * Get the details of an HttpApi route
10346
+ * Queries the details of a route of an HTTP API.
10327
10347
  * @returns GetHttpApiRouteResponse
10328
10348
  */
10329
10349
  async getHttpApiRoute(httpApiId, routeId) {
@@ -10332,7 +10352,7 @@ class Client extends openapi_core_1.default {
10332
10352
  return await this.getHttpApiRouteWithOptions(httpApiId, routeId, headers, runtime);
10333
10353
  }
10334
10354
  /**
10335
- * GetPolicy
10355
+ * Queries a policy.
10336
10356
  *
10337
10357
  * @param headers - map
10338
10358
  * @param runtime - runtime options for this request RuntimeOptions
@@ -10361,7 +10381,7 @@ class Client extends openapi_core_1.default {
10361
10381
  }
10362
10382
  }
10363
10383
  /**
10364
- * GetPolicy
10384
+ * Queries a policy.
10365
10385
  * @returns GetPolicyResponse
10366
10386
  */
10367
10387
  async getPolicy(policyId) {
@@ -10446,7 +10466,7 @@ class Client extends openapi_core_1.default {
10446
10466
  return await this.getResourceOverviewWithOptions(headers, runtime);
10447
10467
  }
10448
10468
  /**
10449
- * Get Service Details
10469
+ * Queries the details of a service.
10450
10470
  *
10451
10471
  * @param headers - map
10452
10472
  * @param runtime - runtime options for this request RuntimeOptions
@@ -10475,7 +10495,7 @@ class Client extends openapi_core_1.default {
10475
10495
  }
10476
10496
  }
10477
10497
  /**
10478
- * Get Service Details
10498
+ * Queries the details of a service.
10479
10499
  * @returns GetServiceResponse
10480
10500
  */
10481
10501
  async getService(serviceId) {
@@ -10531,7 +10551,7 @@ class Client extends openapi_core_1.default {
10531
10551
  return await this.getTraceConfigWithOptions(gatewayId, request, headers, runtime);
10532
10552
  }
10533
10553
  /**
10534
- * Import HttpApi
10554
+ * Imports HTTP APIs. You can call this operation to import OpenAPI 2.0 and OpenAPI 3.0.x definition files to create REST APIs.
10535
10555
  *
10536
10556
  * @param request - ImportHttpApiRequest
10537
10557
  * @param headers - map
@@ -10594,7 +10614,7 @@ class Client extends openapi_core_1.default {
10594
10614
  }
10595
10615
  }
10596
10616
  /**
10597
- * Import HttpApi
10617
+ * Imports HTTP APIs. You can call this operation to import OpenAPI 2.0 and OpenAPI 3.0.x definition files to create REST APIs.
10598
10618
  *
10599
10619
  * @param request - ImportHttpApiRequest
10600
10620
  * @returns ImportHttpApiResponse
@@ -10605,7 +10625,7 @@ class Client extends openapi_core_1.default {
10605
10625
  return await this.importHttpApiWithOptions(request, headers, runtime);
10606
10626
  }
10607
10627
  /**
10608
- * ListDomains
10628
+ * Queries a list of domain names.
10609
10629
  *
10610
10630
  * @param request - ListDomainsRequest
10611
10631
  * @param headers - map
@@ -10653,7 +10673,7 @@ class Client extends openapi_core_1.default {
10653
10673
  }
10654
10674
  }
10655
10675
  /**
10656
- * ListDomains
10676
+ * Queries a list of domain names.
10657
10677
  *
10658
10678
  * @param request - ListDomainsRequest
10659
10679
  * @returns ListDomainsResponse
@@ -10735,7 +10755,7 @@ class Client extends openapi_core_1.default {
10735
10755
  return await this.listEnvironmentsWithOptions(request, headers, runtime);
10736
10756
  }
10737
10757
  /**
10738
- * Retrieve the list of created cloud-native gateways
10758
+ * Queries a list of instances.
10739
10759
  *
10740
10760
  * @param tmpReq - ListGatewaysRequest
10741
10761
  * @param headers - map
@@ -10794,7 +10814,7 @@ class Client extends openapi_core_1.default {
10794
10814
  }
10795
10815
  }
10796
10816
  /**
10797
- * Retrieve the list of created cloud-native gateways
10817
+ * Queries a list of instances.
10798
10818
  *
10799
10819
  * @param request - ListGatewaysRequest
10800
10820
  * @returns ListGatewaysResponse
@@ -10879,7 +10899,7 @@ class Client extends openapi_core_1.default {
10879
10899
  return await this.listHttpApiOperationsWithOptions(httpApiId, request, headers, runtime);
10880
10900
  }
10881
10901
  /**
10882
- * Create a route for HttpApi
10902
+ * Queries the routes of an HTTP API.
10883
10903
  *
10884
10904
  * @param request - ListHttpApiRoutesRequest
10885
10905
  * @param headers - map
@@ -10951,7 +10971,7 @@ class Client extends openapi_core_1.default {
10951
10971
  }
10952
10972
  }
10953
10973
  /**
10954
- * Create a route for HttpApi
10974
+ * Queries the routes of an HTTP API.
10955
10975
  *
10956
10976
  * @param request - ListHttpApiRoutesRequest
10957
10977
  * @returns ListHttpApiRoutesResponse
@@ -10962,7 +10982,7 @@ class Client extends openapi_core_1.default {
10962
10982
  return await this.listHttpApiRoutesWithOptions(httpApiId, request, headers, runtime);
10963
10983
  }
10964
10984
  /**
10965
- * List HTTP APIs
10985
+ * Queries a list of HTTP APIs.
10966
10986
  *
10967
10987
  * @param request - ListHttpApisRequest
10968
10988
  * @param headers - map
@@ -10993,6 +11013,9 @@ class Client extends openapi_core_1.default {
10993
11013
  if (!$dara.isNull(request.types)) {
10994
11014
  query["types"] = request.types;
10995
11015
  }
11016
+ if (!$dara.isNull(request.withAPIsPublishedToEnvironment)) {
11017
+ query["withAPIsPublishedToEnvironment"] = request.withAPIsPublishedToEnvironment;
11018
+ }
10996
11019
  if (!$dara.isNull(request.withAuthPolicyInEnvironmentId)) {
10997
11020
  query["withAuthPolicyInEnvironmentId"] = request.withAuthPolicyInEnvironmentId;
10998
11021
  }
@@ -11014,6 +11037,9 @@ class Client extends openapi_core_1.default {
11014
11037
  if (!$dara.isNull(request.withPluginAttachmentByPluginId)) {
11015
11038
  query["withPluginAttachmentByPluginId"] = request.withPluginAttachmentByPluginId;
11016
11039
  }
11040
+ if (!$dara.isNull(request.withPolicyConfigs)) {
11041
+ query["withPolicyConfigs"] = request.withPolicyConfigs;
11042
+ }
11017
11043
  let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
11018
11044
  headers: headers,
11019
11045
  query: openapi_core_2.OpenApiUtil.query(query),
@@ -11037,7 +11063,7 @@ class Client extends openapi_core_1.default {
11037
11063
  }
11038
11064
  }
11039
11065
  /**
11040
- * List HTTP APIs
11066
+ * Queries a list of HTTP APIs.
11041
11067
  *
11042
11068
  * @param request - ListHttpApisRequest
11043
11069
  * @returns ListHttpApisResponse
@@ -11107,7 +11133,7 @@ class Client extends openapi_core_1.default {
11107
11133
  return await this.listPolicyClassesWithOptions(request, headers, runtime);
11108
11134
  }
11109
11135
  /**
11110
- * Get Service List
11136
+ * Queries a list of services.
11111
11137
  *
11112
11138
  * @param request - ListServicesRequest
11113
11139
  * @param headers - map
@@ -11135,6 +11161,9 @@ class Client extends openapi_core_1.default {
11135
11161
  if (!$dara.isNull(request.sourceType)) {
11136
11162
  query["sourceType"] = request.sourceType;
11137
11163
  }
11164
+ if (!$dara.isNull(request.sourceTypes)) {
11165
+ query["sourceTypes"] = request.sourceTypes;
11166
+ }
11138
11167
  let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
11139
11168
  headers: headers,
11140
11169
  query: openapi_core_2.OpenApiUtil.query(query),
@@ -11158,7 +11187,7 @@ class Client extends openapi_core_1.default {
11158
11187
  }
11159
11188
  }
11160
11189
  /**
11161
- * Get Service List
11190
+ * Queries a list of services.
11162
11191
  *
11163
11192
  * @param request - ListServicesRequest
11164
11193
  * @returns ListServicesResponse
@@ -11351,10 +11380,7 @@ class Client extends openapi_core_1.default {
11351
11380
  return await this.undeployHttpApiWithOptions(httpApiId, request, headers, runtime);
11352
11381
  }
11353
11382
  /**
11354
- * UpdateDomain
11355
- *
11356
- * @remarks
11357
- * 只有类型为**容器服务**的来源允许更新监听Ingress的配置。
11383
+ * Updates a domain name.
11358
11384
  *
11359
11385
  * @param request - UpdateDomainRequest
11360
11386
  * @param headers - map
@@ -11417,10 +11443,7 @@ class Client extends openapi_core_1.default {
11417
11443
  }
11418
11444
  }
11419
11445
  /**
11420
- * UpdateDomain
11421
- *
11422
- * @remarks
11423
- * 只有类型为**容器服务**的来源允许更新监听Ingress的配置。
11446
+ * Updates a domain name.
11424
11447
  *
11425
11448
  * @param request - UpdateDomainRequest
11426
11449
  * @returns UpdateDomainResponse
@@ -11699,7 +11722,7 @@ class Client extends openapi_core_1.default {
11699
11722
  return await this.updateHttpApiOperationWithOptions(httpApiId, operationId, request, headers, runtime);
11700
11723
  }
11701
11724
  /**
11702
- * Update the route of HttpApi
11725
+ * Updates the route of an HTTP API.
11703
11726
  *
11704
11727
  * @param request - UpdateHttpApiRouteRequest
11705
11728
  * @param headers - map
@@ -11747,7 +11770,7 @@ class Client extends openapi_core_1.default {
11747
11770
  }
11748
11771
  }
11749
11772
  /**
11750
- * Update the route of HttpApi
11773
+ * Updates the route of an HTTP API.
11751
11774
  *
11752
11775
  * @param request - UpdateHttpApiRouteRequest
11753
11776
  * @returns UpdateHttpApiRouteResponse