@alicloud/agentcore20260804 2.4.0 → 2.5.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 +144 -24
- package/dist/client.js +335 -24
- package/dist/client.js.map +1 -1
- package/dist/models/CreateCustomAgentRequest.d.ts +63 -33
- package/dist/models/CreateCustomAgentRequest.js +27 -1
- package/dist/models/CreateCustomAgentRequest.js.map +1 -1
- package/dist/models/CreateCustomAgentResponseBody.d.ts +193 -41
- package/dist/models/CreateCustomAgentResponseBody.js +59 -1
- package/dist/models/CreateCustomAgentResponseBody.js.map +1 -1
- package/dist/models/CreateCustomAgentShrinkRequest.d.ts +1 -1
- package/dist/models/CreateImageCacheRequest.d.ts +122 -0
- package/dist/models/CreateImageCacheRequest.js +96 -0
- package/dist/models/CreateImageCacheRequest.js.map +1 -0
- package/dist/models/CreateImageCacheResponse.d.ts +19 -0
- package/dist/models/CreateImageCacheResponse.js +69 -0
- package/dist/models/CreateImageCacheResponse.js.map +1 -0
- package/dist/models/CreateImageCacheResponseBody.d.ts +260 -0
- package/dist/models/CreateImageCacheResponseBody.js +140 -0
- package/dist/models/CreateImageCacheResponseBody.js.map +1 -0
- package/dist/models/CreateImageCacheShrinkRequest.d.ts +50 -0
- package/dist/models/CreateImageCacheShrinkRequest.js +64 -0
- package/dist/models/CreateImageCacheShrinkRequest.js.map +1 -0
- package/dist/models/DeleteImageCacheRequest.d.ts +33 -0
- package/dist/models/DeleteImageCacheRequest.js +60 -0
- package/dist/models/DeleteImageCacheRequest.js.map +1 -0
- package/dist/models/DeleteImageCacheResponse.d.ts +19 -0
- package/dist/models/DeleteImageCacheResponse.js +69 -0
- package/dist/models/DeleteImageCacheResponse.js.map +1 -0
- package/dist/models/DeleteImageCacheResponseBody.d.ts +102 -0
- package/dist/models/DeleteImageCacheResponseBody.js +92 -0
- package/dist/models/DeleteImageCacheResponseBody.js.map +1 -0
- package/dist/models/GetCustomAgentResponseBody.d.ts +130 -66
- package/dist/models/GetCustomAgentResponseBody.js +31 -1
- package/dist/models/GetCustomAgentResponseBody.js.map +1 -1
- package/dist/models/GetImageCacheRequest.d.ts +33 -0
- package/dist/models/GetImageCacheRequest.js +60 -0
- package/dist/models/GetImageCacheRequest.js.map +1 -0
- package/dist/models/GetImageCacheResponse.d.ts +19 -0
- package/dist/models/GetImageCacheResponse.js +69 -0
- package/dist/models/GetImageCacheResponse.js.map +1 -0
- package/dist/models/GetImageCacheResponseBody.d.ts +264 -0
- package/dist/models/GetImageCacheResponseBody.js +140 -0
- package/dist/models/GetImageCacheResponseBody.js.map +1 -0
- package/dist/models/GetWorkspaceAcrRamAuthorizeUrlRequest.d.ts +2 -2
- package/dist/models/GetWorkspaceAcrRamAuthorizeUrlResponseBody.d.ts +23 -1
- package/dist/models/GetWorkspaceAcrRamAuthorizeUrlResponseBody.js.map +1 -1
- package/dist/models/ListImageCachesRequest.d.ts +113 -0
- package/dist/models/ListImageCachesRequest.js +80 -0
- package/dist/models/ListImageCachesRequest.js.map +1 -0
- package/dist/models/ListImageCachesResponse.d.ts +19 -0
- package/dist/models/ListImageCachesResponse.js +69 -0
- package/dist/models/ListImageCachesResponse.js.map +1 -0
- package/dist/models/ListImageCachesResponseBody.d.ts +290 -0
- package/dist/models/ListImageCachesResponseBody.js +146 -0
- package/dist/models/ListImageCachesResponseBody.js.map +1 -0
- package/dist/models/RetryImageCacheRequest.d.ts +60 -0
- package/dist/models/RetryImageCacheRequest.js +82 -0
- package/dist/models/RetryImageCacheRequest.js.map +1 -0
- package/dist/models/RetryImageCacheResponse.d.ts +19 -0
- package/dist/models/RetryImageCacheResponse.js +69 -0
- package/dist/models/RetryImageCacheResponse.js.map +1 -0
- package/dist/models/RetryImageCacheResponseBody.d.ts +264 -0
- package/dist/models/RetryImageCacheResponseBody.js +140 -0
- package/dist/models/RetryImageCacheResponseBody.js.map +1 -0
- package/dist/models/RetryImageCacheShrinkRequest.d.ts +48 -0
- package/dist/models/RetryImageCacheShrinkRequest.js +64 -0
- package/dist/models/RetryImageCacheShrinkRequest.js.map +1 -0
- package/dist/models/UpdateCustomAgentRequest.d.ts +68 -35
- package/dist/models/UpdateCustomAgentRequest.js +27 -1
- package/dist/models/UpdateCustomAgentRequest.js.map +1 -1
- package/dist/models/UpdateCustomAgentResponseBody.d.ts +184 -49
- package/dist/models/UpdateCustomAgentResponseBody.js +59 -1
- package/dist/models/UpdateCustomAgentResponseBody.js.map +1 -1
- package/dist/models/UpdateCustomAgentShrinkRequest.d.ts +2 -2
- package/dist/models/VerifyWorkspaceAcrRamAuthorizationResponseBody.d.ts +33 -3
- package/dist/models/VerifyWorkspaceAcrRamAuthorizationResponseBody.js.map +1 -1
- package/dist/models/model.d.ts +35 -0
- package/dist/models/model.js +157 -86
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +371 -24
- package/src/models/CreateCustomAgentRequest.ts +80 -33
- package/src/models/CreateCustomAgentResponseBody.ts +233 -41
- package/src/models/CreateCustomAgentShrinkRequest.ts +1 -1
- package/src/models/CreateImageCacheRequest.ts +164 -0
- package/src/models/CreateImageCacheResponse.ts +40 -0
- package/src/models/CreateImageCacheResponseBody.ts +337 -0
- package/src/models/CreateImageCacheShrinkRequest.ts +69 -0
- package/src/models/DeleteImageCacheRequest.ts +48 -0
- package/src/models/DeleteImageCacheResponse.ts +40 -0
- package/src/models/DeleteImageCacheResponseBody.ts +140 -0
- package/src/models/GetCustomAgentResponseBody.ts +151 -66
- package/src/models/GetImageCacheRequest.ts +48 -0
- package/src/models/GetImageCacheResponse.ts +40 -0
- package/src/models/GetImageCacheResponseBody.ts +341 -0
- package/src/models/GetWorkspaceAcrRamAuthorizeUrlRequest.ts +2 -2
- package/src/models/GetWorkspaceAcrRamAuthorizeUrlResponseBody.ts +23 -1
- package/src/models/ListImageCachesRequest.ts +148 -0
- package/src/models/ListImageCachesResponse.ts +40 -0
- package/src/models/ListImageCachesResponseBody.ts +373 -0
- package/src/models/RetryImageCacheRequest.ts +90 -0
- package/src/models/RetryImageCacheResponse.ts +40 -0
- package/src/models/RetryImageCacheResponseBody.ts +341 -0
- package/src/models/RetryImageCacheShrinkRequest.ts +67 -0
- package/src/models/UpdateCustomAgentRequest.ts +85 -35
- package/src/models/UpdateCustomAgentResponseBody.ts +224 -49
- package/src/models/UpdateCustomAgentShrinkRequest.ts +2 -2
- package/src/models/VerifyWorkspaceAcrRamAuthorizationResponseBody.ts +33 -3
- package/src/models/model.ts +35 -0
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class CreateImageCacheRequestBody extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* Specifies whether to allow the current source reading and transfer to use the public network. At least one of this parameter and accessVpc must be set to true. The server verifies the access conditions of the current workspace.
|
|
9
|
+
*
|
|
10
|
+
* This parameter is required.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* false
|
|
14
|
+
*/
|
|
15
|
+
accessInternet?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* @remarks
|
|
18
|
+
* Specifies whether to allow the current source reading and transfer to use a VPC. At least one of this parameter and accessInternet must be set to true. The server parses the trusted network of the current workspace and does not modify the agent runtime network.
|
|
19
|
+
*
|
|
20
|
+
* This parameter is required.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* true
|
|
24
|
+
*/
|
|
25
|
+
accessVpc?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* @remarks
|
|
28
|
+
* The ID of the source ACR Enterprise instance.
|
|
29
|
+
*
|
|
30
|
+
* This parameter is required.
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* cri-example
|
|
34
|
+
*/
|
|
35
|
+
acrInstanceId?: string;
|
|
36
|
+
/**
|
|
37
|
+
* @remarks
|
|
38
|
+
* The namespace of the source ACR.
|
|
39
|
+
*
|
|
40
|
+
* This parameter is required.
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* team
|
|
44
|
+
*/
|
|
45
|
+
namespace?: string;
|
|
46
|
+
/**
|
|
47
|
+
* @remarks
|
|
48
|
+
* The name of the repository under the namespace. Do not include the namespace repeatedly.
|
|
49
|
+
*
|
|
50
|
+
* This parameter is required.
|
|
51
|
+
*
|
|
52
|
+
* @example
|
|
53
|
+
* app
|
|
54
|
+
*/
|
|
55
|
+
repository?: string;
|
|
56
|
+
/**
|
|
57
|
+
* @remarks
|
|
58
|
+
* The selected tag of the source image.
|
|
59
|
+
*
|
|
60
|
+
* This parameter is required.
|
|
61
|
+
*
|
|
62
|
+
* @example
|
|
63
|
+
* v1
|
|
64
|
+
*/
|
|
65
|
+
tag?: string;
|
|
66
|
+
static names(): { [key: string]: string } {
|
|
67
|
+
return {
|
|
68
|
+
accessInternet: 'accessInternet',
|
|
69
|
+
accessVpc: 'accessVpc',
|
|
70
|
+
acrInstanceId: 'acrInstanceId',
|
|
71
|
+
namespace: 'namespace',
|
|
72
|
+
repository: 'repository',
|
|
73
|
+
tag: 'tag',
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
static types(): { [key: string]: any } {
|
|
78
|
+
return {
|
|
79
|
+
accessInternet: 'boolean',
|
|
80
|
+
accessVpc: 'boolean',
|
|
81
|
+
acrInstanceId: 'string',
|
|
82
|
+
namespace: 'string',
|
|
83
|
+
repository: 'string',
|
|
84
|
+
tag: 'string',
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
validate() {
|
|
89
|
+
super.validate();
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
constructor(map?: { [key: string]: any }) {
|
|
93
|
+
super(map);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export class CreateImageCacheRequest extends $dara.Model {
|
|
98
|
+
/**
|
|
99
|
+
* @remarks
|
|
100
|
+
* The business parameters for creating an image cache.
|
|
101
|
+
*
|
|
102
|
+
* This parameter is required.
|
|
103
|
+
*/
|
|
104
|
+
body?: CreateImageCacheRequestBody;
|
|
105
|
+
/**
|
|
106
|
+
* @remarks
|
|
107
|
+
* This parameter is required and cannot be empty. It is reserved to be compatible with the API. Currently, it does not provide the ability to deduplicate requests or recover the original result based on this field. If a timeout occurs or the result is unconfirmed, query the query cache status first before deciding whether to recommit.
|
|
108
|
+
*
|
|
109
|
+
* This parameter is required.
|
|
110
|
+
*
|
|
111
|
+
* @example
|
|
112
|
+
* 550e8400-e29b-41d4-a716-446655440000
|
|
113
|
+
*/
|
|
114
|
+
clientToken?: string;
|
|
115
|
+
/**
|
|
116
|
+
* @remarks
|
|
117
|
+
* The product entry region, which is determined by the selected region endpoint.
|
|
118
|
+
*
|
|
119
|
+
* This parameter is required.
|
|
120
|
+
*
|
|
121
|
+
* @example
|
|
122
|
+
* cn-hangzhou
|
|
123
|
+
*/
|
|
124
|
+
regionId?: string;
|
|
125
|
+
/**
|
|
126
|
+
* @remarks
|
|
127
|
+
* The current routed workspace. The server verifies the account, region, and resource ownership. This parameter cannot be omitted or used to access other workspaces.
|
|
128
|
+
*
|
|
129
|
+
* This parameter is required.
|
|
130
|
+
*
|
|
131
|
+
* @example
|
|
132
|
+
* ws-example
|
|
133
|
+
*/
|
|
134
|
+
workspaceId?: string;
|
|
135
|
+
static names(): { [key: string]: string } {
|
|
136
|
+
return {
|
|
137
|
+
body: 'body',
|
|
138
|
+
clientToken: 'clientToken',
|
|
139
|
+
regionId: 'regionId',
|
|
140
|
+
workspaceId: 'workspaceId',
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
static types(): { [key: string]: any } {
|
|
145
|
+
return {
|
|
146
|
+
body: CreateImageCacheRequestBody,
|
|
147
|
+
clientToken: 'string',
|
|
148
|
+
regionId: 'string',
|
|
149
|
+
workspaceId: 'string',
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
validate() {
|
|
154
|
+
if(this.body && typeof (this.body as any).validate === 'function') {
|
|
155
|
+
(this.body as any).validate();
|
|
156
|
+
}
|
|
157
|
+
super.validate();
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
constructor(map?: { [key: string]: any }) {
|
|
161
|
+
super(map);
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { CreateImageCacheResponseBody } from "./CreateImageCacheResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class CreateImageCacheResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: CreateImageCacheResponseBody;
|
|
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: CreateImageCacheResponseBody,
|
|
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,337 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class CreateImageCacheResponseBodyDataError extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The secure and non-null error code for the current creation failure.
|
|
9
|
+
*
|
|
10
|
+
* This parameter is required.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ACSCacheBuildFailed
|
|
14
|
+
*/
|
|
15
|
+
code?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @remarks
|
|
18
|
+
* The secure and non-null display reason for the creation failure, excluding credentials, internal addresses, or stack traces.
|
|
19
|
+
*
|
|
20
|
+
* This parameter is required.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* Failed to create the image cache. Please try again
|
|
24
|
+
*/
|
|
25
|
+
message?: string;
|
|
26
|
+
static names(): { [key: string]: string } {
|
|
27
|
+
return {
|
|
28
|
+
code: 'code',
|
|
29
|
+
message: 'message',
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
static types(): { [key: string]: any } {
|
|
34
|
+
return {
|
|
35
|
+
code: 'string',
|
|
36
|
+
message: 'string',
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
validate() {
|
|
41
|
+
super.validate();
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
constructor(map?: { [key: string]: any }) {
|
|
45
|
+
super(map);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export class CreateImageCacheResponseBodyData extends $dara.Model {
|
|
50
|
+
/**
|
|
51
|
+
* @remarks
|
|
52
|
+
* The ID of the source ACR Enterprise instance.
|
|
53
|
+
*
|
|
54
|
+
* This parameter is required.
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* cri-example
|
|
58
|
+
*/
|
|
59
|
+
acrInstanceId?: string;
|
|
60
|
+
/**
|
|
61
|
+
* @remarks
|
|
62
|
+
* The deduplicated number of agents that have useImageCache set to true and are associated with this logical resource in the current workspace. The value is greater than or equal to 0. This set is the same as the set filtered by imageCacheId in ListAllAgents. Agents with the feature disabled are not counted, and this value is independent of the number of occupied instances.
|
|
63
|
+
*
|
|
64
|
+
* This parameter is required.
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* 0
|
|
68
|
+
*/
|
|
69
|
+
agentCount?: number;
|
|
70
|
+
/**
|
|
71
|
+
* @remarks
|
|
72
|
+
* The actual cache size in bytes. The known value is greater than or equal to 0. If the value is unknown, it is null. The compressed size of the source image cannot be used as a substitute.
|
|
73
|
+
*
|
|
74
|
+
* This parameter is required.
|
|
75
|
+
*
|
|
76
|
+
* @example
|
|
77
|
+
* 1073741824
|
|
78
|
+
*
|
|
79
|
+
* **if can be null:**
|
|
80
|
+
* true
|
|
81
|
+
*/
|
|
82
|
+
cacheSizeBytes?: number;
|
|
83
|
+
/**
|
|
84
|
+
* @remarks
|
|
85
|
+
* Indicates whether deletion is allowed. The value is true when there are no configuration references with the switch enabled, no valid instances occupying the resource, and the resource is not being deleted in the current workspace. If the reference status is unknown, the query should fail, and deletion cannot be allowed by default.
|
|
86
|
+
*
|
|
87
|
+
* This parameter is required.
|
|
88
|
+
*
|
|
89
|
+
* @example
|
|
90
|
+
* false
|
|
91
|
+
*/
|
|
92
|
+
canDelete?: boolean;
|
|
93
|
+
/**
|
|
94
|
+
* @remarks
|
|
95
|
+
* The creation time of the logical resource in the current workspace, in RFC3339 format with time zone. The time is not refreshed when the content of the latest tag is updated.
|
|
96
|
+
*
|
|
97
|
+
* This parameter is required.
|
|
98
|
+
*
|
|
99
|
+
* @example
|
|
100
|
+
* 2026-10-10T00:00:00Z
|
|
101
|
+
*/
|
|
102
|
+
createdAt?: string;
|
|
103
|
+
/**
|
|
104
|
+
* @remarks
|
|
105
|
+
* The reason why deletion is blocked. The value is null when canDelete is true. Otherwise, the value is returned based on the priority of DELETING, AGENT_ENABLED, and INSTANCES_RELEASING. Even if the number of agents is 0, old instances may still occupy the resource.
|
|
106
|
+
*
|
|
107
|
+
* This parameter is required.
|
|
108
|
+
*
|
|
109
|
+
* @example
|
|
110
|
+
* INSTANCES_RELEASING
|
|
111
|
+
*
|
|
112
|
+
* **if can be null:**
|
|
113
|
+
* true
|
|
114
|
+
*/
|
|
115
|
+
deleteBlockReason?: string;
|
|
116
|
+
/**
|
|
117
|
+
* @remarks
|
|
118
|
+
* The current content digest in the format of sha256: followed by a 64-character lowercase hexadecimal string. It only describes the currently registered content and does not prove that old instances have been switched.
|
|
119
|
+
*
|
|
120
|
+
* This parameter is required.
|
|
121
|
+
*
|
|
122
|
+
* @example
|
|
123
|
+
* sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
|
|
124
|
+
*/
|
|
125
|
+
digest?: string;
|
|
126
|
+
/**
|
|
127
|
+
* @remarks
|
|
128
|
+
* The reason for the cache failure. This is a non-null object when the status is FAILED, and null for other statuses. It only describes the current content and the current creation round.
|
|
129
|
+
*
|
|
130
|
+
* This parameter is required.
|
|
131
|
+
*
|
|
132
|
+
* **if can be null:**
|
|
133
|
+
* true
|
|
134
|
+
*/
|
|
135
|
+
error?: CreateImageCacheResponseBodyDataError;
|
|
136
|
+
/**
|
|
137
|
+
* @remarks
|
|
138
|
+
* The logical resource ID manageable by the current workspace, which is not a shared physical cache ID.
|
|
139
|
+
*
|
|
140
|
+
* This parameter is required.
|
|
141
|
+
*
|
|
142
|
+
* @example
|
|
143
|
+
* img-example
|
|
144
|
+
*/
|
|
145
|
+
imageId?: string;
|
|
146
|
+
/**
|
|
147
|
+
* @remarks
|
|
148
|
+
* The domain name of the source image, excluding the protocol, path, and credentials.
|
|
149
|
+
*
|
|
150
|
+
* This parameter is required.
|
|
151
|
+
*
|
|
152
|
+
* @example
|
|
153
|
+
* example-registry.cn-hangzhou.cr.aliyuncs.com
|
|
154
|
+
*/
|
|
155
|
+
registry?: string;
|
|
156
|
+
/**
|
|
157
|
+
* @remarks
|
|
158
|
+
* The path of the source image repository in the namespace/repository format, which already includes the namespace.
|
|
159
|
+
*
|
|
160
|
+
* This parameter is required.
|
|
161
|
+
*
|
|
162
|
+
* @example
|
|
163
|
+
* team/app
|
|
164
|
+
*/
|
|
165
|
+
repository?: string;
|
|
166
|
+
/**
|
|
167
|
+
* @remarks
|
|
168
|
+
* The status of the image cache. Valid values: PENDING: creating, READY: available, FAILED: abnormal, DELETING: deleting in the current workspace.
|
|
169
|
+
*
|
|
170
|
+
* This parameter is required.
|
|
171
|
+
*
|
|
172
|
+
* @example
|
|
173
|
+
* READY
|
|
174
|
+
*/
|
|
175
|
+
status?: string;
|
|
176
|
+
/**
|
|
177
|
+
* @remarks
|
|
178
|
+
* The tag of the source image. Case is preserved. Regular tags cannot be registered with different digests, with the exact lowercase latest tag being the only exception.
|
|
179
|
+
*
|
|
180
|
+
* This parameter is required.
|
|
181
|
+
*
|
|
182
|
+
* @example
|
|
183
|
+
* v1
|
|
184
|
+
*/
|
|
185
|
+
tag?: string;
|
|
186
|
+
/**
|
|
187
|
+
* @remarks
|
|
188
|
+
* The workspace ID, which is consistent with the requested workspace. Resources with the same content from other workspaces are not returned.
|
|
189
|
+
*
|
|
190
|
+
* This parameter is required.
|
|
191
|
+
*
|
|
192
|
+
* @example
|
|
193
|
+
* ws-example
|
|
194
|
+
*/
|
|
195
|
+
workspaceId?: string;
|
|
196
|
+
static names(): { [key: string]: string } {
|
|
197
|
+
return {
|
|
198
|
+
acrInstanceId: 'acrInstanceId',
|
|
199
|
+
agentCount: 'agentCount',
|
|
200
|
+
cacheSizeBytes: 'cacheSizeBytes',
|
|
201
|
+
canDelete: 'canDelete',
|
|
202
|
+
createdAt: 'createdAt',
|
|
203
|
+
deleteBlockReason: 'deleteBlockReason',
|
|
204
|
+
digest: 'digest',
|
|
205
|
+
error: 'error',
|
|
206
|
+
imageId: 'imageId',
|
|
207
|
+
registry: 'registry',
|
|
208
|
+
repository: 'repository',
|
|
209
|
+
status: 'status',
|
|
210
|
+
tag: 'tag',
|
|
211
|
+
workspaceId: 'workspaceId',
|
|
212
|
+
};
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
static types(): { [key: string]: any } {
|
|
216
|
+
return {
|
|
217
|
+
acrInstanceId: 'string',
|
|
218
|
+
agentCount: 'number',
|
|
219
|
+
cacheSizeBytes: 'number',
|
|
220
|
+
canDelete: 'boolean',
|
|
221
|
+
createdAt: 'string',
|
|
222
|
+
deleteBlockReason: 'string',
|
|
223
|
+
digest: 'string',
|
|
224
|
+
error: CreateImageCacheResponseBodyDataError,
|
|
225
|
+
imageId: 'string',
|
|
226
|
+
registry: 'string',
|
|
227
|
+
repository: 'string',
|
|
228
|
+
status: 'string',
|
|
229
|
+
tag: 'string',
|
|
230
|
+
workspaceId: 'string',
|
|
231
|
+
};
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
validate() {
|
|
235
|
+
if(this.error && typeof (this.error as any).validate === 'function') {
|
|
236
|
+
(this.error as any).validate();
|
|
237
|
+
}
|
|
238
|
+
super.validate();
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
constructor(map?: { [key: string]: any }) {
|
|
242
|
+
super(map);
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
export class CreateImageCacheResponseBody extends $dara.Model {
|
|
247
|
+
/**
|
|
248
|
+
* @remarks
|
|
249
|
+
* The business response code.
|
|
250
|
+
*
|
|
251
|
+
* This parameter is required.
|
|
252
|
+
*
|
|
253
|
+
* @example
|
|
254
|
+
* SUCCESS
|
|
255
|
+
*/
|
|
256
|
+
code?: string;
|
|
257
|
+
/**
|
|
258
|
+
* @remarks
|
|
259
|
+
* The result of creating the image cache.
|
|
260
|
+
*
|
|
261
|
+
* This parameter is required.
|
|
262
|
+
*/
|
|
263
|
+
data?: CreateImageCacheResponseBodyData;
|
|
264
|
+
/**
|
|
265
|
+
* @remarks
|
|
266
|
+
* The HTTP status code.
|
|
267
|
+
*
|
|
268
|
+
* This parameter is required.
|
|
269
|
+
*
|
|
270
|
+
* @example
|
|
271
|
+
* 200
|
|
272
|
+
*/
|
|
273
|
+
httpStatusCode?: number;
|
|
274
|
+
/**
|
|
275
|
+
* @remarks
|
|
276
|
+
* The response message.
|
|
277
|
+
*
|
|
278
|
+
* This parameter is required.
|
|
279
|
+
*
|
|
280
|
+
* @example
|
|
281
|
+
* success
|
|
282
|
+
*/
|
|
283
|
+
message?: string;
|
|
284
|
+
/**
|
|
285
|
+
* @remarks
|
|
286
|
+
* The request ID, which is used for troubleshooting.
|
|
287
|
+
*
|
|
288
|
+
* This parameter is required.
|
|
289
|
+
*
|
|
290
|
+
* @example
|
|
291
|
+
* req-example
|
|
292
|
+
*/
|
|
293
|
+
requestId?: string;
|
|
294
|
+
/**
|
|
295
|
+
* @remarks
|
|
296
|
+
* Indicates whether the request is successful. This does not indicate that the cache creation is complete.
|
|
297
|
+
*
|
|
298
|
+
* This parameter is required.
|
|
299
|
+
*
|
|
300
|
+
* @example
|
|
301
|
+
* true
|
|
302
|
+
*/
|
|
303
|
+
success?: boolean;
|
|
304
|
+
static names(): { [key: string]: string } {
|
|
305
|
+
return {
|
|
306
|
+
code: 'code',
|
|
307
|
+
data: 'data',
|
|
308
|
+
httpStatusCode: 'httpStatusCode',
|
|
309
|
+
message: 'message',
|
|
310
|
+
requestId: 'requestId',
|
|
311
|
+
success: 'success',
|
|
312
|
+
};
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
static types(): { [key: string]: any } {
|
|
316
|
+
return {
|
|
317
|
+
code: 'string',
|
|
318
|
+
data: CreateImageCacheResponseBodyData,
|
|
319
|
+
httpStatusCode: 'number',
|
|
320
|
+
message: 'string',
|
|
321
|
+
requestId: 'string',
|
|
322
|
+
success: 'boolean',
|
|
323
|
+
};
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
validate() {
|
|
327
|
+
if(this.data && typeof (this.data as any).validate === 'function') {
|
|
328
|
+
(this.data as any).validate();
|
|
329
|
+
}
|
|
330
|
+
super.validate();
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
constructor(map?: { [key: string]: any }) {
|
|
334
|
+
super(map);
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class CreateImageCacheShrinkRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The business parameters for creating an image cache.
|
|
9
|
+
*
|
|
10
|
+
* This parameter is required.
|
|
11
|
+
*/
|
|
12
|
+
bodyShrink?: string;
|
|
13
|
+
/**
|
|
14
|
+
* @remarks
|
|
15
|
+
* This parameter is required and cannot be empty. It is reserved to be compatible with the API. Currently, it does not provide the ability to deduplicate requests or recover the original result based on this field. If a timeout occurs or the result is unconfirmed, query the query cache status first before deciding whether to recommit.
|
|
16
|
+
*
|
|
17
|
+
* This parameter is required.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* 550e8400-e29b-41d4-a716-446655440000
|
|
21
|
+
*/
|
|
22
|
+
clientToken?: string;
|
|
23
|
+
/**
|
|
24
|
+
* @remarks
|
|
25
|
+
* The product entry region, which is determined by the selected region endpoint.
|
|
26
|
+
*
|
|
27
|
+
* This parameter is required.
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* cn-hangzhou
|
|
31
|
+
*/
|
|
32
|
+
regionId?: string;
|
|
33
|
+
/**
|
|
34
|
+
* @remarks
|
|
35
|
+
* The current routed workspace. The server verifies the account, region, and resource ownership. This parameter cannot be omitted or used to access other workspaces.
|
|
36
|
+
*
|
|
37
|
+
* This parameter is required.
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* ws-example
|
|
41
|
+
*/
|
|
42
|
+
workspaceId?: string;
|
|
43
|
+
static names(): { [key: string]: string } {
|
|
44
|
+
return {
|
|
45
|
+
bodyShrink: 'body',
|
|
46
|
+
clientToken: 'clientToken',
|
|
47
|
+
regionId: 'regionId',
|
|
48
|
+
workspaceId: 'workspaceId',
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
static types(): { [key: string]: any } {
|
|
53
|
+
return {
|
|
54
|
+
bodyShrink: 'string',
|
|
55
|
+
clientToken: 'string',
|
|
56
|
+
regionId: 'string',
|
|
57
|
+
workspaceId: 'string',
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
validate() {
|
|
62
|
+
super.validate();
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
constructor(map?: { [key: string]: any }) {
|
|
66
|
+
super(map);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class DeleteImageCacheRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The product entry region, which is determined by the selected regional endpoint.
|
|
9
|
+
*
|
|
10
|
+
* This parameter is required.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* cn-hangzhou
|
|
14
|
+
*/
|
|
15
|
+
regionId?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @remarks
|
|
18
|
+
* The current routed workspace. The server verifies the account, region, and resource ownership. This parameter cannot be omitted or used to access other workspaces.
|
|
19
|
+
*
|
|
20
|
+
* This parameter is required.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ws-example
|
|
24
|
+
*/
|
|
25
|
+
workspaceId?: string;
|
|
26
|
+
static names(): { [key: string]: string } {
|
|
27
|
+
return {
|
|
28
|
+
regionId: 'regionId',
|
|
29
|
+
workspaceId: 'workspaceId',
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
static types(): { [key: string]: any } {
|
|
34
|
+
return {
|
|
35
|
+
regionId: 'string',
|
|
36
|
+
workspaceId: 'string',
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
validate() {
|
|
41
|
+
super.validate();
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
constructor(map?: { [key: string]: any }) {
|
|
45
|
+
super(map);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { DeleteImageCacheResponseBody } from "./DeleteImageCacheResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class DeleteImageCacheResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: DeleteImageCacheResponseBody;
|
|
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: DeleteImageCacheResponseBody,
|
|
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
|
+
|