/
models.ts
215 lines (203 loc) · 6.46 KB
/
models.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
export { ContainerRepositoryProperties, ArtifactTagProperties } from "./generated";
import { ArtifactTagProperties } from "./generated";
/**
* Defines known cloud audiences for Azure Container Registry.
*/
export enum KnownContainerRegistryAudience {
/** Azure China */
AzureResourceManagerChina = "https://management.chinacloudapi.cn",
/** Azure Gemany */
AzureResourceManagerGermany = "https://management.microsoftazure.de",
/** Azure Government */
AzureResourceManagerGovernment = "https://management.usgovcloudapi.net",
/** Azure Public Cloud */
AzureResourceManagerPublicCloud = "https://management.azure.com",
}
/**
* Defines known artifact architectures that the service supports.
*/
export enum KnownArtifactArchitecture {
/** i386 */
I386 = "386",
/** AMD64 */
Amd64 = "amd64",
/** ARM */
Arm = "arm",
/** ARM64 */
Arm64 = "arm64",
/** MIPS */
Mips = "mips",
/** MIPSLE */
MipsLe = "mipsle",
/** MIPS64 */
Mips64 = "mips64",
/** MIPS64LE */
Mips64Le = "mips64le",
/** PPC64 */
Ppc64 = "ppc64",
/** PPC64LE */
Ppc64Le = "ppc64le",
/** RISCv64 */
RiscV64 = "riscv64",
/** s390x */
S390X = "s390x",
/** Wasm */
Wasm = "wasm",
}
/**
* Defines known artifact platform's operating systems that the service supports.
*/
export enum KnownArtifactOperatingSystem {
/** Aix */
Aix = "aix",
/** Android */
Android = "android",
/** Darwin */
Darwin = "darwin",
/** Dragonfly */
Dragonfly = "dragonfly",
/** FreeBSD */
FreeBsd = "freebsd",
/** Illumos */
Illumos = "illumos",
/** iOS */
iOS = "ios",
/** JS */
JS = "js",
/** Linux */
Linux = "linux",
/** NetBSD */
NetBsd = "netbsd",
/** OpenBSD */
OpenBsd = "openbsd",
/** Plan9 */
Plan9 = "plan9",
/** Solaris */
Solaris = "solaris",
/** Windows */
Windows = "windows",
}
/** Manifest attributes details */
export interface ArtifactManifestPlatform {
/**
* Manifest digest
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly digest: string;
/**
* CPU architecture. See {@link KnownArtifactArchitecture} for values supported by the service.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly architecture?: string;
/**
* Operating system. See {@link KnownArtifactOperatingSystem} for values supported by the service.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly operatingSystem?: string;
}
/** Manifest attributes details */
export interface ArtifactManifestProperties {
/**
* Registry login server name. This is likely to be similar to <registry-name>.azurecr.io
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly registryLoginServer: string;
/**
* Repository name
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly repositoryName: string;
/**
* Manifest
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly digest: string;
/**
* Image size
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly sizeInBytes?: number;
/**
* Created time
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly createdOn: Date;
/**
* Last update time
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly lastUpdatedOn: Date;
/**
* CPU architecture. See {@link KnownArtifactArchitecture} for values supported by the service.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly architecture?: string;
/**
* Operating system. See {@link KnownArtifactOperatingSystem} for values supported by the service.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly operatingSystem?: string;
/**
* List of manifests referenced by this manifest list. List will be empty if this manifest is not a manifest list.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly relatedArtifacts: ArtifactManifestPlatform[];
/**
* List of tags
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly tags: string[];
/** Delete enabled */
canDelete?: boolean;
/** Write enabled */
canWrite?: boolean;
/** List enabled */
canList?: boolean;
/** Read enabled */
canRead?: boolean;
}
/**
* Defines values for ArtifactTagOrder.
* this contains the known values that the service supports.
* ### Know values supported by the service
* **LastUpdatedOnDescending**: Order tags by LastUpdatedOn field, from most recently updated to least recently updated.
* **LastUpdatedOnAscending**: Order tags by LastUpdatedOn field, from least recently updated to most recently updated.
*/
export type ArtifactTagOrder = "LastUpdatedOnDescending" | "LastUpdatedOnAscending";
/**
* Defines values for ArtifactManifestOrder.
* this contains the known values that the service supports.
* ### Know values supported by the service
* **LastUpdatedOnDescending**: Order registry artifacts by LastUpdatedOn field, from most recently updated to least recently updated.
* **LastUpdatedOnAscending**: Order registry artifacts by LastUpdatedOn field, from least recently updated to most recently updated.
*/
export type ArtifactManifestOrder = "LastUpdatedOnDescending" | "LastUpdatedOnAscending";
/**
* Contains response data for the listRepositoryNames operation.
*/
export interface RepositoryPageResponse extends Array<string> {
/**
* Continuation token to pass to `byPage()` to resume listing of more results if available.
*/
continuationToken?: string;
}
/**
* Contains response data for the listManifests operation.
*/
export interface ManifestPageResponse extends Array<ArtifactManifestProperties> {
/**
* Continuation token to pass to `byPage()` to resume listing of more results if available.
*/
continuationToken?: string;
}
/**
* Contains response data for the listTags operation.
*/
export interface TagPageResponse extends Array<ArtifactTagProperties> {
/**
* Continuation token to pass to `byPage()` to resume listing of more results if available.
*/
continuationToken?: string;
}