@alicloud/agentcore20260804 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 +370 -188
- package/dist/client.js +413 -188
- package/dist/client.js.map +1 -1
- package/dist/models/CreateCustomAgentRequest.d.ts +155 -53
- package/dist/models/CreateCustomAgentRequest.js +61 -1
- package/dist/models/CreateCustomAgentRequest.js.map +1 -1
- package/dist/models/CreateCustomAgentResponseBody.d.ts +305 -58
- package/dist/models/CreateCustomAgentResponseBody.js +153 -1
- package/dist/models/CreateCustomAgentResponseBody.js.map +1 -1
- package/dist/models/CreateIdentityProviderRequest.d.ts +12 -15
- package/dist/models/CreateIdentityProviderRequest.js.map +1 -1
- package/dist/models/CreateIdentityProviderResponseBody.d.ts +19 -22
- package/dist/models/CreateIdentityProviderResponseBody.js.map +1 -1
- package/dist/models/CreateManagedAgentRequest.d.ts +80 -45
- package/dist/models/CreateManagedAgentRequest.js +29 -1
- package/dist/models/CreateManagedAgentRequest.js.map +1 -1
- package/dist/models/CreateManagedAgentResponseBody.d.ts +98 -65
- package/dist/models/CreateManagedAgentResponseBody.js +29 -1
- package/dist/models/CreateManagedAgentResponseBody.js.map +1 -1
- package/dist/models/CreateManagedAgentShrinkRequest.d.ts +1 -1
- package/dist/models/DeleteIdentityProviderResponseBody.d.ts +10 -10
- package/dist/models/DeleteIdentityProviderScimcredentialResponseBody.d.ts +5 -5
- package/dist/models/FindCustomAgentImagePreparationRequest.d.ts +23 -0
- package/dist/models/FindCustomAgentImagePreparationRequest.js +58 -0
- package/dist/models/FindCustomAgentImagePreparationRequest.js.map +1 -0
- package/dist/models/FindCustomAgentImagePreparationResponse.d.ts +19 -0
- package/dist/models/FindCustomAgentImagePreparationResponse.js +69 -0
- package/dist/models/FindCustomAgentImagePreparationResponse.js.map +1 -0
- package/dist/models/FindCustomAgentImagePreparationResponseBody.d.ts +135 -0
- package/dist/models/FindCustomAgentImagePreparationResponseBody.js +122 -0
- package/dist/models/FindCustomAgentImagePreparationResponseBody.js.map +1 -0
- package/dist/models/GetCustomAgentImagePreparationRequest.d.ts +13 -0
- package/dist/models/GetCustomAgentImagePreparationRequest.js +54 -0
- package/dist/models/GetCustomAgentImagePreparationRequest.js.map +1 -0
- package/dist/models/GetCustomAgentImagePreparationResponse.d.ts +19 -0
- package/dist/models/GetCustomAgentImagePreparationResponse.js +69 -0
- package/dist/models/GetCustomAgentImagePreparationResponse.js.map +1 -0
- package/dist/models/GetCustomAgentImagePreparationResponseBody.d.ts +135 -0
- package/dist/models/GetCustomAgentImagePreparationResponseBody.js +122 -0
- package/dist/models/GetCustomAgentImagePreparationResponseBody.js.map +1 -0
- package/dist/models/GetCustomAgentResponseBody.d.ts +304 -51
- package/dist/models/GetCustomAgentResponseBody.js +153 -1
- package/dist/models/GetCustomAgentResponseBody.js.map +1 -1
- package/dist/models/GetIdentityProviderResponseBody.d.ts +30 -30
- package/dist/models/GetIdentityProviderScimresponseBody.d.ts +29 -17
- package/dist/models/GetIdentityProviderScimresponseBody.js +2 -0
- package/dist/models/GetIdentityProviderScimresponseBody.js.map +1 -1
- package/dist/models/GetIdentityProviderServiceProviderRequest.d.ts +1 -1
- package/dist/models/GetIdentityProviderServiceProviderResponseBody.d.ts +10 -10
- package/dist/models/GetManagedAgentResponseBody.d.ts +106 -75
- package/dist/models/GetManagedAgentResponseBody.js +29 -1
- package/dist/models/GetManagedAgentResponseBody.js.map +1 -1
- package/dist/models/GetWorkspaceAcrRamAuthorizeUrlRequest.d.ts +2 -2
- package/dist/models/GetWorkspaceAcrRamAuthorizeUrlResponseBody.d.ts +1 -1
- package/dist/models/ListCustomAgentsRequest.d.ts +2 -2
- package/dist/models/ListCustomAgentsResponseBody.d.ts +24 -22
- package/dist/models/ListCustomAgentsResponseBody.js.map +1 -1
- package/dist/models/ListIdentityProvidersRequest.d.ts +1 -1
- package/dist/models/ListIdentityProvidersResponseBody.d.ts +30 -18
- package/dist/models/ListIdentityProvidersResponseBody.js.map +1 -1
- package/dist/models/PrepareIdentityProviderScimresponseBody.d.ts +10 -10
- package/dist/models/UpdateCustomAgentRequest.d.ts +154 -75
- package/dist/models/UpdateCustomAgentRequest.js +61 -1
- package/dist/models/UpdateCustomAgentRequest.js.map +1 -1
- package/dist/models/UpdateCustomAgentResponseBody.d.ts +310 -65
- package/dist/models/UpdateCustomAgentResponseBody.js +153 -1
- package/dist/models/UpdateCustomAgentResponseBody.js.map +1 -1
- package/dist/models/UpdateCustomAgentShrinkRequest.d.ts +1 -1
- package/dist/models/UpdateIdentityProviderRequest.d.ts +20 -20
- package/dist/models/UpdateIdentityProviderResponseBody.d.ts +19 -19
- package/dist/models/UpdateIdentityProviderScimrequest.d.ts +2 -2
- package/dist/models/UpdateIdentityProviderScimresponseBody.d.ts +42 -26
- package/dist/models/UpdateIdentityProviderScimresponseBody.js +4 -0
- package/dist/models/UpdateIdentityProviderScimresponseBody.js.map +1 -1
- package/dist/models/UpdateIdentityProviderScimshrinkRequest.d.ts +1 -1
- package/dist/models/UpdateIdentityProviderShrinkRequest.d.ts +1 -1
- package/dist/models/UpdateManagedAgentRequest.d.ts +83 -46
- package/dist/models/UpdateManagedAgentRequest.js +29 -1
- package/dist/models/UpdateManagedAgentRequest.js.map +1 -1
- package/dist/models/UpdateManagedAgentResponseBody.d.ts +98 -65
- package/dist/models/UpdateManagedAgentResponseBody.js +29 -1
- package/dist/models/UpdateManagedAgentResponseBody.js.map +1 -1
- package/dist/models/UpdateManagedAgentShrinkRequest.d.ts +1 -1
- package/dist/models/model.d.ts +34 -0
- package/dist/models/model.js +267 -198
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +418 -188
- package/src/models/CreateCustomAgentRequest.ts +197 -53
- package/src/models/CreateCustomAgentResponseBody.ts +412 -58
- package/src/models/CreateIdentityProviderRequest.ts +12 -15
- package/src/models/CreateIdentityProviderResponseBody.ts +19 -22
- package/src/models/CreateManagedAgentRequest.ts +99 -45
- package/src/models/CreateManagedAgentResponseBody.ts +117 -65
- package/src/models/CreateManagedAgentShrinkRequest.ts +1 -1
- package/src/models/DeleteIdentityProviderResponseBody.ts +10 -10
- package/src/models/DeleteIdentityProviderScimcredentialResponseBody.ts +5 -5
- package/src/models/FindCustomAgentImagePreparationRequest.ts +36 -0
- package/src/models/FindCustomAgentImagePreparationResponse.ts +40 -0
- package/src/models/FindCustomAgentImagePreparationResponseBody.ts +194 -0
- package/src/models/GetCustomAgentImagePreparationRequest.ts +24 -0
- package/src/models/GetCustomAgentImagePreparationResponse.ts +40 -0
- package/src/models/GetCustomAgentImagePreparationResponseBody.ts +194 -0
- package/src/models/GetCustomAgentResponseBody.ts +411 -51
- package/src/models/GetIdentityProviderResponseBody.ts +30 -30
- package/src/models/GetIdentityProviderScimresponseBody.ts +31 -17
- package/src/models/GetIdentityProviderServiceProviderRequest.ts +1 -1
- package/src/models/GetIdentityProviderServiceProviderResponseBody.ts +10 -10
- package/src/models/GetManagedAgentResponseBody.ts +125 -75
- package/src/models/GetWorkspaceAcrRamAuthorizeUrlRequest.ts +2 -2
- package/src/models/GetWorkspaceAcrRamAuthorizeUrlResponseBody.ts +1 -1
- package/src/models/ListCustomAgentsRequest.ts +2 -2
- package/src/models/ListCustomAgentsResponseBody.ts +24 -22
- package/src/models/ListIdentityProvidersRequest.ts +1 -1
- package/src/models/ListIdentityProvidersResponseBody.ts +30 -18
- package/src/models/PrepareIdentityProviderScimresponseBody.ts +10 -10
- package/src/models/UpdateCustomAgentRequest.ts +196 -75
- package/src/models/UpdateCustomAgentResponseBody.ts +417 -65
- package/src/models/UpdateCustomAgentShrinkRequest.ts +1 -1
- package/src/models/UpdateIdentityProviderRequest.ts +20 -20
- package/src/models/UpdateIdentityProviderResponseBody.ts +19 -19
- package/src/models/UpdateIdentityProviderScimrequest.ts +2 -2
- package/src/models/UpdateIdentityProviderScimresponseBody.ts +46 -26
- package/src/models/UpdateIdentityProviderScimshrinkRequest.ts +1 -1
- package/src/models/UpdateIdentityProviderShrinkRequest.ts +1 -1
- package/src/models/UpdateManagedAgentRequest.ts +102 -46
- package/src/models/UpdateManagedAgentResponseBody.ts +117 -65
- package/src/models/UpdateManagedAgentShrinkRequest.ts +1 -1
- package/src/models/model.ts +34 -0
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class DeleteIdentityProviderSCIMCredentialResponseBody extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
*
|
|
8
|
+
* The result code. Handle failures based on the HTTP status code and message.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* SUCCESS
|
|
@@ -13,7 +13,7 @@ export class DeleteIdentityProviderSCIMCredentialResponseBody extends $dara.Mode
|
|
|
13
13
|
code?: string;
|
|
14
14
|
/**
|
|
15
15
|
* @remarks
|
|
16
|
-
*
|
|
16
|
+
* The HTTP status code of the request. This does not indicate the final result of the background task.
|
|
17
17
|
*
|
|
18
18
|
* @example
|
|
19
19
|
* 200
|
|
@@ -21,7 +21,7 @@ export class DeleteIdentityProviderSCIMCredentialResponseBody extends $dara.Mode
|
|
|
21
21
|
httpStatusCode?: number;
|
|
22
22
|
/**
|
|
23
23
|
* @remarks
|
|
24
|
-
*
|
|
24
|
+
* The message returned for the request. For asynchronous tasks, query the task result by calling the corresponding API operation.
|
|
25
25
|
*
|
|
26
26
|
* @example
|
|
27
27
|
* success
|
|
@@ -29,7 +29,7 @@ export class DeleteIdentityProviderSCIMCredentialResponseBody extends $dara.Mode
|
|
|
29
29
|
message?: string;
|
|
30
30
|
/**
|
|
31
31
|
* @remarks
|
|
32
|
-
*
|
|
32
|
+
* The request ID. You can use this ID to troubleshoot issues. Keep the ID if the request fails.
|
|
33
33
|
*
|
|
34
34
|
* @example
|
|
35
35
|
* request-example
|
|
@@ -37,7 +37,7 @@ export class DeleteIdentityProviderSCIMCredentialResponseBody extends $dara.Mode
|
|
|
37
37
|
requestId?: string;
|
|
38
38
|
/**
|
|
39
39
|
* @remarks
|
|
40
|
-
* true
|
|
40
|
+
* Indicates whether the request was successful. A value of true indicates that the request was successful. For asynchronous write operations, you must still query the task result.
|
|
41
41
|
*/
|
|
42
42
|
success?: boolean;
|
|
43
43
|
static names(): { [key: string]: string } {
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class FindCustomAgentImagePreparationRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The client token submitted when creating or explicitly updating the image. Do not specify AgentId or the operation type.
|
|
9
|
+
*
|
|
10
|
+
* This parameter is required.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* image-update-20261022-001
|
|
14
|
+
*/
|
|
15
|
+
clientToken?: string;
|
|
16
|
+
static names(): { [key: string]: string } {
|
|
17
|
+
return {
|
|
18
|
+
clientToken: 'clientToken',
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
static types(): { [key: string]: any } {
|
|
23
|
+
return {
|
|
24
|
+
clientToken: 'string',
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
validate() {
|
|
29
|
+
super.validate();
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
constructor(map?: { [key: string]: any }) {
|
|
33
|
+
super(map);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { FindCustomAgentImagePreparationResponseBody } from "./FindCustomAgentImagePreparationResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class FindCustomAgentImagePreparationResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: FindCustomAgentImagePreparationResponseBody;
|
|
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: FindCustomAgentImagePreparationResponseBody,
|
|
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,194 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class FindCustomAgentImagePreparationResponseBodyDataError extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The business error code for image preparation. This code is used to identify the failure type. For the specific cause, refer to the message.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ImageSyncFailed
|
|
12
|
+
*/
|
|
13
|
+
code?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* The specific cause of the failure. This may include underlying errors such as image not found, authentication failure, network timeout, or certificate verification error. Passwords, tokens, or authentication headers are not returned. If the underlying system does not provide a cause, a general description is returned.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* tls: failed to verify certificate: x509: certificate signed by unknown authority
|
|
20
|
+
*/
|
|
21
|
+
message?: string;
|
|
22
|
+
static names(): { [key: string]: string } {
|
|
23
|
+
return {
|
|
24
|
+
code: 'code',
|
|
25
|
+
message: 'message',
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
static types(): { [key: string]: any } {
|
|
30
|
+
return {
|
|
31
|
+
code: 'string',
|
|
32
|
+
message: 'string',
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
validate() {
|
|
37
|
+
super.validate();
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
constructor(map?: { [key: string]: any }) {
|
|
41
|
+
super(map);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export class FindCustomAgentImagePreparationResponseBodyData extends $dara.Model {
|
|
46
|
+
/**
|
|
47
|
+
* @remarks
|
|
48
|
+
* The ID of the target agent.
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* agent-example
|
|
52
|
+
*/
|
|
53
|
+
agentId?: string;
|
|
54
|
+
/**
|
|
55
|
+
* @remarks
|
|
56
|
+
* The security error. This parameter is returned only when the task fails. Otherwise, the value is null.
|
|
57
|
+
*/
|
|
58
|
+
error?: FindCustomAgentImagePreparationResponseBodyDataError;
|
|
59
|
+
/**
|
|
60
|
+
* @remarks
|
|
61
|
+
* The phase where the failure occurred. This parameter is returned only when the phase is FAILED. Otherwise, the value is null.
|
|
62
|
+
*
|
|
63
|
+
* @example
|
|
64
|
+
* COPYING
|
|
65
|
+
*/
|
|
66
|
+
failedPhase?: string;
|
|
67
|
+
/**
|
|
68
|
+
* @remarks
|
|
69
|
+
* The current phase. Only SUCCEEDED indicates that the target version is deployed successfully.
|
|
70
|
+
*
|
|
71
|
+
* @example
|
|
72
|
+
* FAILED
|
|
73
|
+
*/
|
|
74
|
+
phase?: string;
|
|
75
|
+
/**
|
|
76
|
+
* @remarks
|
|
77
|
+
* The ID of the task submitted in the console.
|
|
78
|
+
*
|
|
79
|
+
* @example
|
|
80
|
+
* agent-example:1
|
|
81
|
+
*/
|
|
82
|
+
preparationId?: string;
|
|
83
|
+
static names(): { [key: string]: string } {
|
|
84
|
+
return {
|
|
85
|
+
agentId: 'agentId',
|
|
86
|
+
error: 'error',
|
|
87
|
+
failedPhase: 'failedPhase',
|
|
88
|
+
phase: 'phase',
|
|
89
|
+
preparationId: 'preparationId',
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
static types(): { [key: string]: any } {
|
|
94
|
+
return {
|
|
95
|
+
agentId: 'string',
|
|
96
|
+
error: FindCustomAgentImagePreparationResponseBodyDataError,
|
|
97
|
+
failedPhase: 'string',
|
|
98
|
+
phase: 'string',
|
|
99
|
+
preparationId: 'string',
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
validate() {
|
|
104
|
+
if(this.error && typeof (this.error as any).validate === 'function') {
|
|
105
|
+
(this.error as any).validate();
|
|
106
|
+
}
|
|
107
|
+
super.validate();
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
constructor(map?: { [key: string]: any }) {
|
|
111
|
+
super(map);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export class FindCustomAgentImagePreparationResponseBody extends $dara.Model {
|
|
116
|
+
/**
|
|
117
|
+
* @remarks
|
|
118
|
+
* The business status code.
|
|
119
|
+
*
|
|
120
|
+
* @example
|
|
121
|
+
* SUCCESS
|
|
122
|
+
*/
|
|
123
|
+
code?: string;
|
|
124
|
+
/**
|
|
125
|
+
* @remarks
|
|
126
|
+
* The preparation query result. For the asynchronous execution status, refer to the phase.
|
|
127
|
+
*/
|
|
128
|
+
data?: FindCustomAgentImagePreparationResponseBodyData;
|
|
129
|
+
/**
|
|
130
|
+
* @remarks
|
|
131
|
+
* The HTTP status code.
|
|
132
|
+
*
|
|
133
|
+
* @example
|
|
134
|
+
* 200
|
|
135
|
+
*/
|
|
136
|
+
httpStatusCode?: number;
|
|
137
|
+
/**
|
|
138
|
+
* @remarks
|
|
139
|
+
* The response message.
|
|
140
|
+
*
|
|
141
|
+
* @example
|
|
142
|
+
* success
|
|
143
|
+
*/
|
|
144
|
+
message?: string;
|
|
145
|
+
/**
|
|
146
|
+
* @remarks
|
|
147
|
+
* The request ID.
|
|
148
|
+
*
|
|
149
|
+
* @example
|
|
150
|
+
* 123e4567-e89b-12d3-a456-426614174000
|
|
151
|
+
*/
|
|
152
|
+
requestId?: string;
|
|
153
|
+
/**
|
|
154
|
+
* @remarks
|
|
155
|
+
* Indicates whether the API call is successful.
|
|
156
|
+
*
|
|
157
|
+
* @example
|
|
158
|
+
* true
|
|
159
|
+
*/
|
|
160
|
+
success?: boolean;
|
|
161
|
+
static names(): { [key: string]: string } {
|
|
162
|
+
return {
|
|
163
|
+
code: 'code',
|
|
164
|
+
data: 'data',
|
|
165
|
+
httpStatusCode: 'httpStatusCode',
|
|
166
|
+
message: 'message',
|
|
167
|
+
requestId: 'requestId',
|
|
168
|
+
success: 'success',
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
static types(): { [key: string]: any } {
|
|
173
|
+
return {
|
|
174
|
+
code: 'string',
|
|
175
|
+
data: FindCustomAgentImagePreparationResponseBodyData,
|
|
176
|
+
httpStatusCode: 'number',
|
|
177
|
+
message: 'string',
|
|
178
|
+
requestId: 'string',
|
|
179
|
+
success: 'boolean',
|
|
180
|
+
};
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
validate() {
|
|
184
|
+
if(this.data && typeof (this.data as any).validate === 'function') {
|
|
185
|
+
(this.data as any).validate();
|
|
186
|
+
}
|
|
187
|
+
super.validate();
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
constructor(map?: { [key: string]: any }) {
|
|
191
|
+
super(map);
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class GetCustomAgentImagePreparationRequest extends $dara.Model {
|
|
6
|
+
static names(): { [key: string]: string } {
|
|
7
|
+
return {
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
static types(): { [key: string]: any } {
|
|
12
|
+
return {
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
validate() {
|
|
17
|
+
super.validate();
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
constructor(map?: { [key: string]: any }) {
|
|
21
|
+
super(map);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { GetCustomAgentImagePreparationResponseBody } from "./GetCustomAgentImagePreparationResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class GetCustomAgentImagePreparationResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: GetCustomAgentImagePreparationResponseBody;
|
|
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: GetCustomAgentImagePreparationResponseBody,
|
|
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,194 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class GetCustomAgentImagePreparationResponseBodyDataError extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The business error code for image preparation. This code is used to identify the failure type. For the specific cause, refer to the message.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ImageSyncFailed
|
|
12
|
+
*/
|
|
13
|
+
code?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* The specific cause of the failure. This may include underlying errors such as image not found, authentication failure, network timeout, or certificate verification error. Passwords, tokens, or authentication headers are not returned. If the underlying system does not provide a cause, a general description is returned.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* tls: failed to verify certificate: x509: certificate signed by unknown authority
|
|
20
|
+
*/
|
|
21
|
+
message?: string;
|
|
22
|
+
static names(): { [key: string]: string } {
|
|
23
|
+
return {
|
|
24
|
+
code: 'code',
|
|
25
|
+
message: 'message',
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
static types(): { [key: string]: any } {
|
|
30
|
+
return {
|
|
31
|
+
code: 'string',
|
|
32
|
+
message: 'string',
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
validate() {
|
|
37
|
+
super.validate();
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
constructor(map?: { [key: string]: any }) {
|
|
41
|
+
super(map);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export class GetCustomAgentImagePreparationResponseBodyData extends $dara.Model {
|
|
46
|
+
/**
|
|
47
|
+
* @remarks
|
|
48
|
+
* The target agent ID.
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* agent-example
|
|
52
|
+
*/
|
|
53
|
+
agentId?: string;
|
|
54
|
+
/**
|
|
55
|
+
* @remarks
|
|
56
|
+
* The error information. This field is returned only when the task fails. Otherwise, the value is null.
|
|
57
|
+
*/
|
|
58
|
+
error?: GetCustomAgentImagePreparationResponseBodyDataError;
|
|
59
|
+
/**
|
|
60
|
+
* @remarks
|
|
61
|
+
* The failed phase. This field is returned only when the status is FAILED. Otherwise, the value is null.
|
|
62
|
+
*
|
|
63
|
+
* @example
|
|
64
|
+
* COPYING
|
|
65
|
+
*/
|
|
66
|
+
failedPhase?: string;
|
|
67
|
+
/**
|
|
68
|
+
* @remarks
|
|
69
|
+
* The current phase. Only SUCCEEDED indicates that the deployment of the target version is successful.
|
|
70
|
+
*
|
|
71
|
+
* @example
|
|
72
|
+
* FAILED
|
|
73
|
+
*/
|
|
74
|
+
phase?: string;
|
|
75
|
+
/**
|
|
76
|
+
* @remarks
|
|
77
|
+
* The console submission task ID.
|
|
78
|
+
*
|
|
79
|
+
* @example
|
|
80
|
+
* agent-example:1
|
|
81
|
+
*/
|
|
82
|
+
preparationId?: string;
|
|
83
|
+
static names(): { [key: string]: string } {
|
|
84
|
+
return {
|
|
85
|
+
agentId: 'agentId',
|
|
86
|
+
error: 'error',
|
|
87
|
+
failedPhase: 'failedPhase',
|
|
88
|
+
phase: 'phase',
|
|
89
|
+
preparationId: 'preparationId',
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
static types(): { [key: string]: any } {
|
|
94
|
+
return {
|
|
95
|
+
agentId: 'string',
|
|
96
|
+
error: GetCustomAgentImagePreparationResponseBodyDataError,
|
|
97
|
+
failedPhase: 'string',
|
|
98
|
+
phase: 'string',
|
|
99
|
+
preparationId: 'string',
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
validate() {
|
|
104
|
+
if(this.error && typeof (this.error as any).validate === 'function') {
|
|
105
|
+
(this.error as any).validate();
|
|
106
|
+
}
|
|
107
|
+
super.validate();
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
constructor(map?: { [key: string]: any }) {
|
|
111
|
+
super(map);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export class GetCustomAgentImagePreparationResponseBody extends $dara.Model {
|
|
116
|
+
/**
|
|
117
|
+
* @remarks
|
|
118
|
+
* The business status code.
|
|
119
|
+
*
|
|
120
|
+
* @example
|
|
121
|
+
* SUCCESS
|
|
122
|
+
*/
|
|
123
|
+
code?: string;
|
|
124
|
+
/**
|
|
125
|
+
* @remarks
|
|
126
|
+
* The preparation query result. Refer to the phase for the asynchronous execution status.
|
|
127
|
+
*/
|
|
128
|
+
data?: GetCustomAgentImagePreparationResponseBodyData;
|
|
129
|
+
/**
|
|
130
|
+
* @remarks
|
|
131
|
+
* The HTTP status code.
|
|
132
|
+
*
|
|
133
|
+
* @example
|
|
134
|
+
* 200
|
|
135
|
+
*/
|
|
136
|
+
httpStatusCode?: number;
|
|
137
|
+
/**
|
|
138
|
+
* @remarks
|
|
139
|
+
* The response message.
|
|
140
|
+
*
|
|
141
|
+
* @example
|
|
142
|
+
* success
|
|
143
|
+
*/
|
|
144
|
+
message?: string;
|
|
145
|
+
/**
|
|
146
|
+
* @remarks
|
|
147
|
+
* The request ID.
|
|
148
|
+
*
|
|
149
|
+
* @example
|
|
150
|
+
* 123e4567-e89b-12d3-a456-426614174000
|
|
151
|
+
*/
|
|
152
|
+
requestId?: string;
|
|
153
|
+
/**
|
|
154
|
+
* @remarks
|
|
155
|
+
* Indicates whether the API call is successful.
|
|
156
|
+
*
|
|
157
|
+
* @example
|
|
158
|
+
* true
|
|
159
|
+
*/
|
|
160
|
+
success?: boolean;
|
|
161
|
+
static names(): { [key: string]: string } {
|
|
162
|
+
return {
|
|
163
|
+
code: 'code',
|
|
164
|
+
data: 'data',
|
|
165
|
+
httpStatusCode: 'httpStatusCode',
|
|
166
|
+
message: 'message',
|
|
167
|
+
requestId: 'requestId',
|
|
168
|
+
success: 'success',
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
static types(): { [key: string]: any } {
|
|
173
|
+
return {
|
|
174
|
+
code: 'string',
|
|
175
|
+
data: GetCustomAgentImagePreparationResponseBodyData,
|
|
176
|
+
httpStatusCode: 'number',
|
|
177
|
+
message: 'string',
|
|
178
|
+
requestId: 'string',
|
|
179
|
+
success: 'boolean',
|
|
180
|
+
};
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
validate() {
|
|
184
|
+
if(this.data && typeof (this.data as any).validate === 'function') {
|
|
185
|
+
(this.data as any).validate();
|
|
186
|
+
}
|
|
187
|
+
super.validate();
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
constructor(map?: { [key: string]: any }) {
|
|
191
|
+
super(map);
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
|