@alicloud/apig20240327 4.0.4 → 4.2.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 +35 -2
- package/dist/client.js +107 -2
- package/dist/client.js.map +1 -1
- package/dist/models/AgentServiceConfig.d.ts +32 -0
- package/dist/models/AgentServiceConfig.js +79 -0
- package/dist/models/AgentServiceConfig.js.map +1 -0
- package/dist/models/AgentServiceConfigDashScopeConfig.d.ts +15 -0
- package/dist/models/AgentServiceConfigDashScopeConfig.js +62 -0
- package/dist/models/AgentServiceConfigDashScopeConfig.js.map +1 -0
- package/dist/models/AgentServiceConfigDashScopeConfigAppCredentials.d.ts +17 -0
- package/dist/models/AgentServiceConfigDashScopeConfigAppCredentials.js +62 -0
- package/dist/models/AgentServiceConfigDashScopeConfigAppCredentials.js.map +1 -0
- package/dist/models/AgentServiceConfigDifyConfig.d.ts +15 -0
- package/dist/models/AgentServiceConfigDifyConfig.js +60 -0
- package/dist/models/AgentServiceConfigDifyConfig.js.map +1 -0
- package/dist/models/ApiKeyIdentityConfigApikeySource.d.ts +0 -2
- package/dist/models/ApiKeyIdentityConfigApikeySource.js +0 -2
- package/dist/models/ApiKeyIdentityConfigApikeySource.js.map +1 -1
- package/dist/models/CreateHttpApiRequest.d.ts +1 -0
- package/dist/models/CreateHttpApiRequest.js +5 -0
- package/dist/models/CreateHttpApiRequest.js.map +1 -1
- package/dist/models/CreateServiceRequestServiceConfigs.d.ts +2 -0
- package/dist/models/CreateServiceRequestServiceConfigs.js +6 -0
- package/dist/models/CreateServiceRequestServiceConfigs.js.map +1 -1
- package/dist/models/DeleteServiceResponse.d.ts +19 -0
- package/dist/models/DeleteServiceResponse.js +69 -0
- package/dist/models/DeleteServiceResponse.js.map +1 -0
- package/dist/models/DeleteServiceResponseBody.d.ts +28 -0
- package/dist/models/DeleteServiceResponseBody.js +62 -0
- package/dist/models/DeleteServiceResponseBody.js.map +1 -0
- package/dist/models/GetGatewayResponseBody.d.ts +4 -4
- package/dist/models/GetGatewayResponseBodyData.d.ts +46 -32
- package/dist/models/GetGatewayResponseBodyData.js +2 -0
- package/dist/models/GetGatewayResponseBodyData.js.map +1 -1
- package/dist/models/GetGatewayResponseBodyDataEnvironments.d.ts +3 -3
- package/dist/models/GetGatewayResponseBodyDataLoadBalancers.d.ts +23 -18
- package/dist/models/GetGatewayResponseBodyDataLoadBalancers.js.map +1 -1
- package/dist/models/GetGatewayResponseBodyDataLoadBalancersPorts.d.ts +5 -4
- package/dist/models/GetGatewayResponseBodyDataLoadBalancersPorts.js.map +1 -1
- package/dist/models/GetGatewayResponseBodyDataSecurityGroup.d.ts +2 -2
- package/dist/models/GetGatewayResponseBodyDataTags.d.ts +2 -2
- package/dist/models/GetGatewayResponseBodyDataVpc.d.ts +3 -3
- package/dist/models/GetGatewayResponseBodyDataVswitch.d.ts +3 -3
- package/dist/models/GetGatewayResponseBodyDataZones.d.ts +4 -4
- package/dist/models/GetGatewayResponseBodyDataZonesVswitch.d.ts +3 -3
- package/dist/models/ListPluginAttachmentsRequest.d.ts +58 -0
- package/dist/models/ListPluginAttachmentsRequest.js +74 -0
- package/dist/models/ListPluginAttachmentsRequest.js.map +1 -0
- package/dist/models/ListPluginAttachmentsResponse.d.ts +19 -0
- package/dist/models/ListPluginAttachmentsResponse.js +69 -0
- package/dist/models/ListPluginAttachmentsResponse.js.map +1 -0
- package/dist/models/ListPluginAttachmentsResponseBody.d.ts +33 -0
- package/dist/models/ListPluginAttachmentsResponseBody.js +68 -0
- package/dist/models/ListPluginAttachmentsResponseBody.js.map +1 -0
- package/dist/models/ListPluginAttachmentsResponseBodyData.d.ts +30 -0
- package/dist/models/ListPluginAttachmentsResponseBodyData.js +68 -0
- package/dist/models/ListPluginAttachmentsResponseBodyData.js.map +1 -0
- package/dist/models/ListPluginAttachmentsResponseBodyDataItems.d.ts +46 -0
- package/dist/models/ListPluginAttachmentsResponseBodyDataItems.js +90 -0
- package/dist/models/ListPluginAttachmentsResponseBodyDataItems.js.map +1 -0
- package/dist/models/Service.d.ts +2 -0
- package/dist/models/Service.js +6 -0
- package/dist/models/Service.js.map +1 -1
- package/dist/models/UpdateHttpApiRequest.d.ts +1 -0
- package/dist/models/UpdateHttpApiRequest.js +5 -0
- package/dist/models/UpdateHttpApiRequest.js.map +1 -1
- package/dist/models/model.d.ts +11 -0
- package/dist/models/model.js +30 -7
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +122 -2
- package/src/models/AgentServiceConfig.ts +64 -0
- package/src/models/AgentServiceConfigDashScopeConfig.ts +31 -0
- package/src/models/AgentServiceConfigDashScopeConfigAppCredentials.ts +32 -0
- package/src/models/AgentServiceConfigDifyConfig.ts +30 -0
- package/src/models/ApiKeyIdentityConfigApikeySource.ts +0 -2
- package/src/models/CreateHttpApiRequest.ts +6 -0
- package/src/models/CreateServiceRequestServiceConfigs.ts +7 -0
- package/src/models/DeleteServiceResponse.ts +40 -0
- package/src/models/DeleteServiceResponseBody.ts +45 -0
- package/src/models/GetGatewayResponseBody.ts +4 -4
- package/src/models/GetGatewayResponseBodyData.ts +48 -32
- package/src/models/GetGatewayResponseBodyDataEnvironments.ts +3 -3
- package/src/models/GetGatewayResponseBodyDataLoadBalancers.ts +23 -18
- package/src/models/GetGatewayResponseBodyDataLoadBalancersPorts.ts +5 -4
- package/src/models/GetGatewayResponseBodyDataSecurityGroup.ts +2 -2
- package/src/models/GetGatewayResponseBodyDataTags.ts +2 -2
- package/src/models/GetGatewayResponseBodyDataVpc.ts +3 -3
- package/src/models/GetGatewayResponseBodyDataVswitch.ts +3 -3
- package/src/models/GetGatewayResponseBodyDataZones.ts +4 -4
- package/src/models/GetGatewayResponseBodyDataZonesVswitch.ts +3 -3
- package/src/models/ListPluginAttachmentsRequest.ts +87 -0
- package/src/models/ListPluginAttachmentsResponse.ts +40 -0
- package/src/models/ListPluginAttachmentsResponseBody.ts +55 -0
- package/src/models/ListPluginAttachmentsResponseBodyData.ts +52 -0
- package/src/models/ListPluginAttachmentsResponseBodyDataItems.ts +87 -0
- package/src/models/Service.ts +7 -0
- package/src/models/UpdateHttpApiRequest.ts +6 -0
- package/src/models/model.ts +11 -0
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class ListPluginAttachmentsRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* hr-cv2h58em1hkg7c6vt43g
|
|
9
|
+
*/
|
|
10
|
+
attachResourceId?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* GatewayRoute
|
|
14
|
+
*/
|
|
15
|
+
attachResourceType?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @example
|
|
18
|
+
* GatewayRoute
|
|
19
|
+
*/
|
|
20
|
+
attachResourceTypes?: string;
|
|
21
|
+
/**
|
|
22
|
+
* @example
|
|
23
|
+
* env-crlnqhtlhtgqflkqislg
|
|
24
|
+
*/
|
|
25
|
+
environmentId?: string;
|
|
26
|
+
/**
|
|
27
|
+
* @example
|
|
28
|
+
* gw-cr79f75lhtgme744084g
|
|
29
|
+
*/
|
|
30
|
+
gatewayId?: string;
|
|
31
|
+
/**
|
|
32
|
+
* @example
|
|
33
|
+
* 1
|
|
34
|
+
*/
|
|
35
|
+
pageNumber?: number;
|
|
36
|
+
/**
|
|
37
|
+
* @example
|
|
38
|
+
* 10
|
|
39
|
+
*/
|
|
40
|
+
pageSize?: number;
|
|
41
|
+
/**
|
|
42
|
+
* @example
|
|
43
|
+
* pl-ct8181um1hkiqns9f6e0
|
|
44
|
+
*/
|
|
45
|
+
pluginId?: string;
|
|
46
|
+
/**
|
|
47
|
+
* @example
|
|
48
|
+
* false
|
|
49
|
+
*/
|
|
50
|
+
withParentResource?: boolean;
|
|
51
|
+
static names(): { [key: string]: string } {
|
|
52
|
+
return {
|
|
53
|
+
attachResourceId: 'attachResourceId',
|
|
54
|
+
attachResourceType: 'attachResourceType',
|
|
55
|
+
attachResourceTypes: 'attachResourceTypes',
|
|
56
|
+
environmentId: 'environmentId',
|
|
57
|
+
gatewayId: 'gatewayId',
|
|
58
|
+
pageNumber: 'pageNumber',
|
|
59
|
+
pageSize: 'pageSize',
|
|
60
|
+
pluginId: 'pluginId',
|
|
61
|
+
withParentResource: 'withParentResource',
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
static types(): { [key: string]: any } {
|
|
66
|
+
return {
|
|
67
|
+
attachResourceId: 'string',
|
|
68
|
+
attachResourceType: 'string',
|
|
69
|
+
attachResourceTypes: 'string',
|
|
70
|
+
environmentId: 'string',
|
|
71
|
+
gatewayId: 'string',
|
|
72
|
+
pageNumber: 'number',
|
|
73
|
+
pageSize: 'number',
|
|
74
|
+
pluginId: 'string',
|
|
75
|
+
withParentResource: 'boolean',
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
validate() {
|
|
80
|
+
super.validate();
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
constructor(map?: { [key: string]: any }) {
|
|
84
|
+
super(map);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { ListPluginAttachmentsResponseBody } from "./ListPluginAttachmentsResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class ListPluginAttachmentsResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: ListPluginAttachmentsResponseBody;
|
|
10
|
+
static names(): { [key: string]: string } {
|
|
11
|
+
return {
|
|
12
|
+
headers: 'headers',
|
|
13
|
+
statusCode: 'statusCode',
|
|
14
|
+
body: 'body',
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
static types(): { [key: string]: any } {
|
|
19
|
+
return {
|
|
20
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
21
|
+
statusCode: 'number',
|
|
22
|
+
body: ListPluginAttachmentsResponseBody,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
validate() {
|
|
27
|
+
if(this.headers) {
|
|
28
|
+
$dara.Model.validateMap(this.headers);
|
|
29
|
+
}
|
|
30
|
+
if(this.body && typeof (this.body as any).validate === 'function') {
|
|
31
|
+
(this.body as any).validate();
|
|
32
|
+
}
|
|
33
|
+
super.validate();
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
constructor(map?: { [key: string]: any }) {
|
|
37
|
+
super(map);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { ListPluginAttachmentsResponseBodyData } from "./ListPluginAttachmentsResponseBodyData";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class ListPluginAttachmentsResponseBody extends $dara.Model {
|
|
7
|
+
/**
|
|
8
|
+
* @example
|
|
9
|
+
* Ok
|
|
10
|
+
*/
|
|
11
|
+
code?: string;
|
|
12
|
+
data?: ListPluginAttachmentsResponseBodyData;
|
|
13
|
+
/**
|
|
14
|
+
* @example
|
|
15
|
+
* success
|
|
16
|
+
*/
|
|
17
|
+
message?: string;
|
|
18
|
+
/**
|
|
19
|
+
* @remarks
|
|
20
|
+
* Id of the request
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* 9640D776-794A-5077-9184-A247CA4B45C1
|
|
24
|
+
*/
|
|
25
|
+
requestId?: string;
|
|
26
|
+
static names(): { [key: string]: string } {
|
|
27
|
+
return {
|
|
28
|
+
code: 'code',
|
|
29
|
+
data: 'data',
|
|
30
|
+
message: 'message',
|
|
31
|
+
requestId: 'requestId',
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
static types(): { [key: string]: any } {
|
|
36
|
+
return {
|
|
37
|
+
code: 'string',
|
|
38
|
+
data: ListPluginAttachmentsResponseBodyData,
|
|
39
|
+
message: 'string',
|
|
40
|
+
requestId: 'string',
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
validate() {
|
|
45
|
+
if(this.data && typeof (this.data as any).validate === 'function') {
|
|
46
|
+
(this.data as any).validate();
|
|
47
|
+
}
|
|
48
|
+
super.validate();
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
constructor(map?: { [key: string]: any }) {
|
|
52
|
+
super(map);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { ListPluginAttachmentsResponseBodyDataItems } from "./ListPluginAttachmentsResponseBodyDataItems";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class ListPluginAttachmentsResponseBodyData extends $dara.Model {
|
|
7
|
+
items?: ListPluginAttachmentsResponseBodyDataItems[];
|
|
8
|
+
/**
|
|
9
|
+
* @example
|
|
10
|
+
* 1
|
|
11
|
+
*/
|
|
12
|
+
pageNumber?: number;
|
|
13
|
+
/**
|
|
14
|
+
* @example
|
|
15
|
+
* 10
|
|
16
|
+
*/
|
|
17
|
+
pageSize?: number;
|
|
18
|
+
/**
|
|
19
|
+
* @example
|
|
20
|
+
* 10
|
|
21
|
+
*/
|
|
22
|
+
totalSize?: number;
|
|
23
|
+
static names(): { [key: string]: string } {
|
|
24
|
+
return {
|
|
25
|
+
items: 'items',
|
|
26
|
+
pageNumber: 'pageNumber',
|
|
27
|
+
pageSize: 'pageSize',
|
|
28
|
+
totalSize: 'totalSize',
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
static types(): { [key: string]: any } {
|
|
33
|
+
return {
|
|
34
|
+
items: { 'type': 'array', 'itemType': ListPluginAttachmentsResponseBodyDataItems },
|
|
35
|
+
pageNumber: 'number',
|
|
36
|
+
pageSize: 'number',
|
|
37
|
+
totalSize: 'number',
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
validate() {
|
|
42
|
+
if(Array.isArray(this.items)) {
|
|
43
|
+
$dara.Model.validateArray(this.items);
|
|
44
|
+
}
|
|
45
|
+
super.validate();
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
constructor(map?: { [key: string]: any }) {
|
|
49
|
+
super(map);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { EnvironmentInfo } from "./EnvironmentInfo";
|
|
4
|
+
import { ParentResourceInfo } from "./ParentResourceInfo";
|
|
5
|
+
import { PluginClassInfo } from "./PluginClassInfo";
|
|
6
|
+
import { ResourceInfo } from "./ResourceInfo";
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
export class ListPluginAttachmentsResponseBodyDataItems extends $dara.Model {
|
|
10
|
+
/**
|
|
11
|
+
* @example
|
|
12
|
+
* GatewayRoute
|
|
13
|
+
*/
|
|
14
|
+
attachResourceType?: string;
|
|
15
|
+
/**
|
|
16
|
+
* @example
|
|
17
|
+
* true
|
|
18
|
+
*/
|
|
19
|
+
enable?: boolean;
|
|
20
|
+
environmentInfo?: EnvironmentInfo;
|
|
21
|
+
parentResourceInfo?: ParentResourceInfo;
|
|
22
|
+
/**
|
|
23
|
+
* @example
|
|
24
|
+
* pa-d0j9t5em1hkncrlo51mg
|
|
25
|
+
*/
|
|
26
|
+
pluginAttachmentId?: string;
|
|
27
|
+
pluginClassInfo?: PluginClassInfo;
|
|
28
|
+
/**
|
|
29
|
+
* @example
|
|
30
|
+
* bGltaXRfYnlfaGVhZGVyOiB4LWFwaS1rZXkKbGltaXRfa2V5czoKLSBrZXk6IGV4YW1wbGUta2V5LWEKICBxdWVyeV9wZXJfc2Vjb25kOiAxMAotIGtleTogZXhhbXBsZS1rZXktYgogIHF1ZXJ5X3Blcl9zZWNvbmQ6IDEK
|
|
31
|
+
*/
|
|
32
|
+
pluginConfig?: string;
|
|
33
|
+
/**
|
|
34
|
+
* @example
|
|
35
|
+
* pl-cvu6r4um1hko3b3ti0a0
|
|
36
|
+
*/
|
|
37
|
+
pluginId?: string;
|
|
38
|
+
resourceInfos?: ResourceInfo[];
|
|
39
|
+
static names(): { [key: string]: string } {
|
|
40
|
+
return {
|
|
41
|
+
attachResourceType: 'attachResourceType',
|
|
42
|
+
enable: 'enable',
|
|
43
|
+
environmentInfo: 'environmentInfo',
|
|
44
|
+
parentResourceInfo: 'parentResourceInfo',
|
|
45
|
+
pluginAttachmentId: 'pluginAttachmentId',
|
|
46
|
+
pluginClassInfo: 'pluginClassInfo',
|
|
47
|
+
pluginConfig: 'pluginConfig',
|
|
48
|
+
pluginId: 'pluginId',
|
|
49
|
+
resourceInfos: 'resourceInfos',
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
static types(): { [key: string]: any } {
|
|
54
|
+
return {
|
|
55
|
+
attachResourceType: 'string',
|
|
56
|
+
enable: 'boolean',
|
|
57
|
+
environmentInfo: EnvironmentInfo,
|
|
58
|
+
parentResourceInfo: ParentResourceInfo,
|
|
59
|
+
pluginAttachmentId: 'string',
|
|
60
|
+
pluginClassInfo: PluginClassInfo,
|
|
61
|
+
pluginConfig: 'string',
|
|
62
|
+
pluginId: 'string',
|
|
63
|
+
resourceInfos: { 'type': 'array', 'itemType': ResourceInfo },
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
validate() {
|
|
68
|
+
if(this.environmentInfo && typeof (this.environmentInfo as any).validate === 'function') {
|
|
69
|
+
(this.environmentInfo as any).validate();
|
|
70
|
+
}
|
|
71
|
+
if(this.parentResourceInfo && typeof (this.parentResourceInfo as any).validate === 'function') {
|
|
72
|
+
(this.parentResourceInfo as any).validate();
|
|
73
|
+
}
|
|
74
|
+
if(this.pluginClassInfo && typeof (this.pluginClassInfo as any).validate === 'function') {
|
|
75
|
+
(this.pluginClassInfo as any).validate();
|
|
76
|
+
}
|
|
77
|
+
if(Array.isArray(this.resourceInfos)) {
|
|
78
|
+
$dara.Model.validateArray(this.resourceInfos);
|
|
79
|
+
}
|
|
80
|
+
super.validate();
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
constructor(map?: { [key: string]: any }) {
|
|
84
|
+
super(map);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
package/src/models/Service.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// This file is auto-generated, don't edit it
|
|
2
2
|
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { AgentServiceConfig } from "./AgentServiceConfig";
|
|
3
4
|
import { AiServiceConfig } from "./AiServiceConfig";
|
|
4
5
|
import { ServiceHealthCheck } from "./ServiceHealthCheck";
|
|
5
6
|
import { ServicePorts } from "./ServicePorts";
|
|
@@ -7,6 +8,7 @@ import { ServicePorts } from "./ServicePorts";
|
|
|
7
8
|
|
|
8
9
|
export class Service extends $dara.Model {
|
|
9
10
|
addresses?: string[];
|
|
11
|
+
agentServiceConfig?: AgentServiceConfig;
|
|
10
12
|
aiServiceConfig?: AiServiceConfig;
|
|
11
13
|
createTimestamp?: number;
|
|
12
14
|
/**
|
|
@@ -46,6 +48,7 @@ export class Service extends $dara.Model {
|
|
|
46
48
|
static names(): { [key: string]: string } {
|
|
47
49
|
return {
|
|
48
50
|
addresses: 'addresses',
|
|
51
|
+
agentServiceConfig: 'agentServiceConfig',
|
|
49
52
|
aiServiceConfig: 'aiServiceConfig',
|
|
50
53
|
createTimestamp: 'createTimestamp',
|
|
51
54
|
gatewayId: 'gatewayId',
|
|
@@ -68,6 +71,7 @@ export class Service extends $dara.Model {
|
|
|
68
71
|
static types(): { [key: string]: any } {
|
|
69
72
|
return {
|
|
70
73
|
addresses: { 'type': 'array', 'itemType': 'string' },
|
|
74
|
+
agentServiceConfig: AgentServiceConfig,
|
|
71
75
|
aiServiceConfig: AiServiceConfig,
|
|
72
76
|
createTimestamp: 'number',
|
|
73
77
|
gatewayId: 'string',
|
|
@@ -91,6 +95,9 @@ export class Service extends $dara.Model {
|
|
|
91
95
|
if(Array.isArray(this.addresses)) {
|
|
92
96
|
$dara.Model.validateArray(this.addresses);
|
|
93
97
|
}
|
|
98
|
+
if(this.agentServiceConfig && typeof (this.agentServiceConfig as any).validate === 'function') {
|
|
99
|
+
(this.agentServiceConfig as any).validate();
|
|
100
|
+
}
|
|
94
101
|
if(this.aiServiceConfig && typeof (this.aiServiceConfig as any).validate === 'function') {
|
|
95
102
|
(this.aiServiceConfig as any).validate();
|
|
96
103
|
}
|
|
@@ -7,6 +7,7 @@ import { HttpApiVersionConfig } from "./HttpApiVersionConfig";
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
export class UpdateHttpApiRequest extends $dara.Model {
|
|
10
|
+
agentProtocols?: string[];
|
|
10
11
|
/**
|
|
11
12
|
* @remarks
|
|
12
13
|
* The AI protocols.
|
|
@@ -63,6 +64,7 @@ export class UpdateHttpApiRequest extends $dara.Model {
|
|
|
63
64
|
versionConfig?: HttpApiVersionConfig;
|
|
64
65
|
static names(): { [key: string]: string } {
|
|
65
66
|
return {
|
|
67
|
+
agentProtocols: 'agentProtocols',
|
|
66
68
|
aiProtocols: 'aiProtocols',
|
|
67
69
|
authConfig: 'authConfig',
|
|
68
70
|
basePath: 'basePath',
|
|
@@ -78,6 +80,7 @@ export class UpdateHttpApiRequest extends $dara.Model {
|
|
|
78
80
|
|
|
79
81
|
static types(): { [key: string]: any } {
|
|
80
82
|
return {
|
|
83
|
+
agentProtocols: { 'type': 'array', 'itemType': 'string' },
|
|
81
84
|
aiProtocols: { 'type': 'array', 'itemType': 'string' },
|
|
82
85
|
authConfig: AuthConfig,
|
|
83
86
|
basePath: 'string',
|
|
@@ -92,6 +95,9 @@ export class UpdateHttpApiRequest extends $dara.Model {
|
|
|
92
95
|
}
|
|
93
96
|
|
|
94
97
|
validate() {
|
|
98
|
+
if(Array.isArray(this.agentProtocols)) {
|
|
99
|
+
$dara.Model.validateArray(this.agentProtocols);
|
|
100
|
+
}
|
|
95
101
|
if(Array.isArray(this.aiProtocols)) {
|
|
96
102
|
$dara.Model.validateArray(this.aiProtocols);
|
|
97
103
|
}
|
package/src/models/model.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
export { AgentServiceConfigDashScopeConfigAppCredentials } from './AgentServiceConfigDashScopeConfigAppCredentials';
|
|
2
|
+
export { AgentServiceConfigDashScopeConfig } from './AgentServiceConfigDashScopeConfig';
|
|
3
|
+
export { AgentServiceConfigDifyConfig } from './AgentServiceConfigDifyConfig';
|
|
1
4
|
export { ApiKeyIdentityConfigApikeySource } from './ApiKeyIdentityConfigApikeySource';
|
|
2
5
|
export { ApiKeyIdentityConfigCredentials } from './ApiKeyIdentityConfigCredentials';
|
|
3
6
|
export { ApiRouteConflictInfoConflictsDetailsConflictingMatchOperationInfo } from './ApiRouteConflictInfoConflictsDetailsConflictingMatchOperationInfo';
|
|
@@ -115,6 +118,8 @@ export { ListGatewaysResponseBodyData } from './ListGatewaysResponseBodyData';
|
|
|
115
118
|
export { ListHttpApiOperationsResponseBodyData } from './ListHttpApiOperationsResponseBodyData';
|
|
116
119
|
export { ListHttpApiRoutesResponseBodyData } from './ListHttpApiRoutesResponseBodyData';
|
|
117
120
|
export { ListHttpApisResponseBodyData } from './ListHttpApisResponseBodyData';
|
|
121
|
+
export { ListPluginAttachmentsResponseBodyDataItems } from './ListPluginAttachmentsResponseBodyDataItems';
|
|
122
|
+
export { ListPluginAttachmentsResponseBodyData } from './ListPluginAttachmentsResponseBodyData';
|
|
118
123
|
export { ListPluginsResponseBodyDataItemsAttachmentInfo } from './ListPluginsResponseBodyDataItemsAttachmentInfo';
|
|
119
124
|
export { ListPluginsResponseBodyDataItemsGatewayInfo } from './ListPluginsResponseBodyDataItemsGatewayInfo';
|
|
120
125
|
export { ListPluginsResponseBodyDataItemsPluginClassInfo } from './ListPluginsResponseBodyDataItemsPluginClassInfo';
|
|
@@ -129,6 +134,7 @@ export { UpdateDomainResponseBodyData } from './UpdateDomainResponseBodyData';
|
|
|
129
134
|
export { UpdateHttpApiRequestIngressConfig } from './UpdateHttpApiRequestIngressConfig';
|
|
130
135
|
export { UpdateHttpApiRouteRequestBackendConfigServices } from './UpdateHttpApiRouteRequestBackendConfigServices';
|
|
131
136
|
export { UpdateHttpApiRouteRequestBackendConfig } from './UpdateHttpApiRouteRequestBackendConfig';
|
|
137
|
+
export { AgentServiceConfig } from './AgentServiceConfig';
|
|
132
138
|
export { AiServiceConfig } from './AiServiceConfig';
|
|
133
139
|
export { AkSkIdentityConfig } from './AkSkIdentityConfig';
|
|
134
140
|
export { ApiKeyIdentityConfig } from './ApiKeyIdentityConfig';
|
|
@@ -231,6 +237,8 @@ export { DeletePolicyResponseBody } from './DeletePolicyResponseBody';
|
|
|
231
237
|
export { DeletePolicyResponse } from './DeletePolicyResponse';
|
|
232
238
|
export { DeletePolicyAttachmentResponseBody } from './DeletePolicyAttachmentResponseBody';
|
|
233
239
|
export { DeletePolicyAttachmentResponse } from './DeletePolicyAttachmentResponse';
|
|
240
|
+
export { DeleteServiceResponseBody } from './DeleteServiceResponseBody';
|
|
241
|
+
export { DeleteServiceResponse } from './DeleteServiceResponse';
|
|
234
242
|
export { DeployHttpApiRequest } from './DeployHttpApiRequest';
|
|
235
243
|
export { DeployHttpApiResponseBody } from './DeployHttpApiResponseBody';
|
|
236
244
|
export { DeployHttpApiResponse } from './DeployHttpApiResponse';
|
|
@@ -290,6 +298,9 @@ export { ListHttpApiRoutesResponse } from './ListHttpApiRoutesResponse';
|
|
|
290
298
|
export { ListHttpApisRequest } from './ListHttpApisRequest';
|
|
291
299
|
export { ListHttpApisResponseBody } from './ListHttpApisResponseBody';
|
|
292
300
|
export { ListHttpApisResponse } from './ListHttpApisResponse';
|
|
301
|
+
export { ListPluginAttachmentsRequest } from './ListPluginAttachmentsRequest';
|
|
302
|
+
export { ListPluginAttachmentsResponseBody } from './ListPluginAttachmentsResponseBody';
|
|
303
|
+
export { ListPluginAttachmentsResponse } from './ListPluginAttachmentsResponse';
|
|
293
304
|
export { ListPluginsRequest } from './ListPluginsRequest';
|
|
294
305
|
export { ListPluginsResponseBody } from './ListPluginsResponseBody';
|
|
295
306
|
export { ListPluginsResponse } from './ListPluginsResponse';
|