@alicloud/apig20240327 11.0.0 → 11.0.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.
Files changed (54) hide show
  1. package/dist/client.d.ts +2 -2
  2. package/dist/client.js +5 -2
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/Backend.d.ts +36 -3
  5. package/dist/models/Backend.js +12 -0
  6. package/dist/models/Backend.js.map +1 -1
  7. package/dist/models/CreateDomainRequest.d.ts +19 -22
  8. package/dist/models/CreateDomainRequest.js +2 -0
  9. package/dist/models/CreateDomainRequest.js.map +1 -1
  10. package/dist/models/CreateGatewayRequest.d.ts +7 -7
  11. package/dist/models/CreateHttpApiRouteRequest.d.ts +47 -14
  12. package/dist/models/CreateHttpApiRouteRequest.js +12 -0
  13. package/dist/models/CreateHttpApiRouteRequest.js.map +1 -1
  14. package/dist/models/CreateServiceRequest.d.ts +10 -10
  15. package/dist/models/DeployHttpApiRequest.d.ts +3 -3
  16. package/dist/models/GetDashboardRequest.d.ts +7 -7
  17. package/dist/models/GetDashboardResponseBody.d.ts +1 -1
  18. package/dist/models/GetDashboardShrinkRequest.d.ts +7 -7
  19. package/dist/models/GetGatewayResponseBody.d.ts +33 -6
  20. package/dist/models/GetGatewayResponseBody.js.map +1 -1
  21. package/dist/models/HttpApiApiInfo.d.ts +4 -0
  22. package/dist/models/HttpApiApiInfo.js.map +1 -1
  23. package/dist/models/HttpDubboTranscoder.d.ts +53 -7
  24. package/dist/models/HttpDubboTranscoder.js +16 -16
  25. package/dist/models/HttpDubboTranscoder.js.map +1 -1
  26. package/dist/models/InstallPluginRequest.d.ts +2 -2
  27. package/dist/models/ListTagResourcesRequest.d.ts +3 -3
  28. package/dist/models/ListTagResourcesResponseBody.d.ts +2 -2
  29. package/dist/models/ListTagResourcesShrinkRequest.d.ts +3 -3
  30. package/dist/models/UpdateHttpApiRouteRequest.d.ts +34 -1
  31. package/dist/models/UpdateHttpApiRouteRequest.js +12 -0
  32. package/dist/models/UpdateHttpApiRouteRequest.js.map +1 -1
  33. package/dist/models/model.d.ts +2 -2
  34. package/dist/models/model.js +3 -3
  35. package/package.json +1 -1
  36. package/src/client.ts +6 -2
  37. package/src/models/Backend.ts +47 -3
  38. package/src/models/CreateDomainRequest.ts +21 -22
  39. package/src/models/CreateGatewayRequest.ts +7 -7
  40. package/src/models/CreateHttpApiRouteRequest.ts +58 -14
  41. package/src/models/CreateServiceRequest.ts +10 -10
  42. package/src/models/DeployHttpApiRequest.ts +3 -3
  43. package/src/models/GetDashboardRequest.ts +7 -7
  44. package/src/models/GetDashboardResponseBody.ts +1 -1
  45. package/src/models/GetDashboardShrinkRequest.ts +7 -7
  46. package/src/models/GetGatewayResponseBody.ts +33 -6
  47. package/src/models/HttpApiApiInfo.ts +4 -0
  48. package/src/models/HttpDubboTranscoder.ts +64 -18
  49. package/src/models/InstallPluginRequest.ts +2 -2
  50. package/src/models/ListTagResourcesRequest.ts +3 -3
  51. package/src/models/ListTagResourcesResponseBody.ts +2 -2
  52. package/src/models/ListTagResourcesShrinkRequest.ts +3 -3
  53. package/src/models/UpdateHttpApiRouteRequest.ts +45 -1
  54. package/src/models/model.ts +2 -2
@@ -2,17 +2,42 @@
2
2
  import * as $dara from '@darabonba/typescript';
3
3
  import { HttpRouteMatch } from "./HttpRouteMatch";
4
4
  import { HttpApiPolicyConfigs } from "./HttpApiPolicyConfigs";
5
+ import { HttpDubboTranscoder } from "./HttpDubboTranscoder";
5
6
 
6
7
 
7
8
  export class UpdateHttpApiRouteRequestBackendConfigServices extends $dara.Model {
8
9
  /**
9
10
  * @remarks
10
- * The target model name. This field is shared by multiple existing model backend scenarios. The specific routing or model rewrite semantics are determined by backendConfig.scene. This field is required for the SemanticRouter scenario. If this field is not configured in the AiAutoRouter scenario, the default model of the AI service is used.
11
+ * The service group. Used in HTTP-to-Dubbo conversion scenarios.
12
+ *
13
+ * @example
14
+ * DEFAULT_GROUP
15
+ */
16
+ groupName?: string;
17
+ /**
18
+ * @remarks
19
+ * The HTTP-to-Dubbo protocol conversion configuration. Only supported for SingleService MSE_NACOS DUBBO backends of HTTP APIs.
20
+ *
21
+ * @example
22
+ * {"dubboServiceName":"com.alibaba.nacos.example.dubbo.service.DemoService","dubboServiceVersion":"1.0.0","dubboServiceGroup":"DEV","methodMapList":[{"dubboMethodName":"sayName","httpMethod":"ALL_GET","methodPath":"/dubbo/sayName","passThroughAllHeaders":"PASS_ALL"}]}
23
+ */
24
+ httpDubboTranscoder?: HttpDubboTranscoder;
25
+ /**
26
+ * @remarks
27
+ * The target model name. This field is shared by multiple existing model backend scenarios. The specific routing or model rewrite semantics are determined by backendConfig.scene. This field is required for the SemanticRouter scenario. If not specified in the AiAutoRouter scenario, the default model of the AI service is used.
11
28
  *
12
29
  * @example
13
30
  * qwen-plus
14
31
  */
15
32
  modelName?: string;
33
+ /**
34
+ * @remarks
35
+ * The service namespace. Used in HTTP-to-Dubbo conversion scenarios.
36
+ *
37
+ * @example
38
+ * public
39
+ */
40
+ namespace?: string;
16
41
  /**
17
42
  * @remarks
18
43
  * The service port. Do not specify this parameter for dynamic ports.
@@ -39,6 +64,14 @@ export class UpdateHttpApiRouteRequestBackendConfigServices extends $dara.Model
39
64
  * svc-cr6pk4tlhtgm58e***
40
65
  */
41
66
  serviceId?: string;
67
+ /**
68
+ * @remarks
69
+ * The service source type. Use MSE_NACOS for HTTP-to-Dubbo conversion scenarios.
70
+ *
71
+ * @example
72
+ * MSE_NACOS
73
+ */
74
+ sourceType?: string;
42
75
  /**
43
76
  * @remarks
44
77
  * The service version.
@@ -57,10 +90,14 @@ export class UpdateHttpApiRouteRequestBackendConfigServices extends $dara.Model
57
90
  weight?: number;
58
91
  static names(): { [key: string]: string } {
59
92
  return {
93
+ groupName: 'groupName',
94
+ httpDubboTranscoder: 'httpDubboTranscoder',
60
95
  modelName: 'modelName',
96
+ namespace: 'namespace',
61
97
  port: 'port',
62
98
  protocol: 'protocol',
63
99
  serviceId: 'serviceId',
100
+ sourceType: 'sourceType',
64
101
  version: 'version',
65
102
  weight: 'weight',
66
103
  };
@@ -68,16 +105,23 @@ export class UpdateHttpApiRouteRequestBackendConfigServices extends $dara.Model
68
105
 
69
106
  static types(): { [key: string]: any } {
70
107
  return {
108
+ groupName: 'string',
109
+ httpDubboTranscoder: HttpDubboTranscoder,
71
110
  modelName: 'string',
111
+ namespace: 'string',
72
112
  port: 'number',
73
113
  protocol: 'string',
74
114
  serviceId: 'string',
115
+ sourceType: 'string',
75
116
  version: 'string',
76
117
  weight: 'number',
77
118
  };
78
119
  }
79
120
 
80
121
  validate() {
122
+ if(this.httpDubboTranscoder && typeof (this.httpDubboTranscoder as any).validate === 'function') {
123
+ (this.httpDubboTranscoder as any).validate();
124
+ }
81
125
  super.validate();
82
126
  }
83
127
 
@@ -80,8 +80,8 @@ export { HttpApiPublishRevisionInfoServiceConfigs } from './HttpApiPublishRevisi
80
80
  export { HttpApiPublishRevisionInfoVipConfigs } from './HttpApiPublishRevisionInfo';
81
81
  export { HttpApiRequestContractBody } from './HttpApiRequestContract';
82
82
  export { HttpApiResponseContractItems } from './HttpApiResponseContract';
83
- export { HttpDubboTranscoderMothedMapListParamMapsList } from './HttpDubboTranscoder';
84
- export { HttpDubboTranscoderMothedMapList } from './HttpDubboTranscoder';
83
+ export { HttpDubboTranscoderMethodMapListParamMapsList } from './HttpDubboTranscoder';
84
+ export { HttpDubboTranscoderMethodMapList } from './HttpDubboTranscoder';
85
85
  export { HttpRouteDomainInfos } from './HttpRoute';
86
86
  export { HttpRouteEnvironmentInfoGatewayInfo } from './HttpRoute';
87
87
  export { HttpRouteEnvironmentInfoSubDomains } from './HttpRoute';