Skip to content

Commit 8573336

Browse files
authored
feat: use T[] array style (#397)
1 parent 3ab3ba0 commit 8573336

File tree

24 files changed

+442
-442
lines changed

24 files changed

+442
-442
lines changed

packages/clients/src/api/account/v2/types.gen.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export interface ListProjectsResponse {
1212
/** The total number of projects */
1313
totalCount: number
1414
/** The paginated returned projects */
15-
projects: Array<Project>
15+
projects: Project[]
1616
}
1717

1818
/** Project */
@@ -52,7 +52,7 @@ export type ListProjectsRequest = {
5252
/** The sort order of the returned projects */
5353
orderBy?: ListProjectsRequestOrderBy
5454
/** Filter out by a list of project ID */
55-
projectIds?: Array<string>
55+
projectIds?: string[]
5656
}
5757

5858
export type GetProjectRequest = {

packages/clients/src/api/applesilicon/v1alpha1/types.gen.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,21 +27,21 @@ export interface ListOSResponse {
2727
/** Total number of os */
2828
totalCount: number
2929
/** List of OS */
30-
os: Array<OS>
30+
os: OS[]
3131
}
3232

3333
/** List server types response */
3434
export interface ListServerTypesResponse {
3535
/** The available server types */
36-
serverTypes: Array<ServerType>
36+
serverTypes: ServerType[]
3737
}
3838

3939
/** List servers response */
4040
export interface ListServersResponse {
4141
/** The total number of servers */
4242
totalCount: number
4343
/** The paginated returned servers */
44-
servers: Array<Server>
44+
servers: Server[]
4545
}
4646

4747
/** Os */
@@ -55,7 +55,7 @@ export interface OS {
5555
/** URL of the image */
5656
imageUrl: string
5757
/** List of compatible server types */
58-
compatibleServerTypes: Array<string>
58+
compatibleServerTypes: string[]
5959
}
6060

6161
/** Server */

packages/clients/src/api/baremetal/v1/types.gen.ts

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ export interface CreateServerRequestInstall {
114114
/** Hostname of the server */
115115
hostname: string
116116
/** SSH key IDs authorized on the server */
117-
sshKeyIds: Array<string>
117+
sshKeyIds: string[]
118118
/** User used for the installation */
119119
user?: string
120120
/** Password used for the installation */
@@ -160,35 +160,35 @@ export interface ListOSResponse {
160160
/** Total count of matching OS */
161161
totalCount: number
162162
/** OS that match filters */
163-
os: Array<OS>
163+
os: OS[]
164164
}
165165

166166
/** List offers response */
167167
export interface ListOffersResponse {
168168
/** Total count of matching offers */
169169
totalCount: number
170170
/** Offers that match filters */
171-
offers: Array<Offer>
171+
offers: Offer[]
172172
}
173173

174174
/** List options response */
175175
export interface ListOptionsResponse {
176176
/** Total count of matching options */
177177
totalCount: number
178178
/** Options that match filters */
179-
options: Array<Option>
179+
options: Option[]
180180
}
181181

182182
/** List server events response */
183183
export interface ListServerEventsResponse {
184184
/** Total count of matching events */
185185
totalCount: number
186186
/** Server events that match filters */
187-
events: Array<ServerEvent>
187+
events: ServerEvent[]
188188
}
189189

190190
export interface ListServerPrivateNetworksResponse {
191-
serverPrivateNetworks: Array<ServerPrivateNetwork>
191+
serverPrivateNetworks: ServerPrivateNetwork[]
192192
totalCount: number
193193
}
194194

@@ -197,15 +197,15 @@ export interface ListServersResponse {
197197
/** Total count of matching servers */
198198
totalCount: number
199199
/** Servers that match filters */
200-
servers: Array<Server>
200+
servers: Server[]
201201
}
202202

203203
/** List settings response */
204204
export interface ListSettingsResponse {
205205
/** Total count of matching sttings */
206206
totalCount: number
207207
/** Settings that match filters */
208-
settings: Array<Setting>
208+
settings: Setting[]
209209
}
210210

211211
/** Memory */
@@ -272,29 +272,29 @@ export interface Offer {
272272
/** Price of the offer per months */
273273
pricePerMonth?: Money
274274
/** Disks specifications of the offer */
275-
disks: Array<Disk>
275+
disks: Disk[]
276276
/** True if the offer is currently available */
277277
enable: boolean
278278
/** CPU specifications of the offer */
279-
cpus: Array<CPU>
279+
cpus: CPU[]
280280
/** Memory specifications of the offer */
281-
memories: Array<Memory>
281+
memories: Memory[]
282282
/** Name of the quota associated to the offer */
283283
quotaName: string
284284
/** Persistent memory specifications of the offer */
285-
persistentMemories: Array<PersistentMemory>
285+
persistentMemories: PersistentMemory[]
286286
/** Raid controller specifications of the offer */
287-
raidControllers: Array<RaidController>
287+
raidControllers: RaidController[]
288288
/** Array of incompatible OS ids */
289-
incompatibleOsIds: Array<string>
289+
incompatibleOsIds: string[]
290290
/** Period of subscription for the offer */
291291
subscriptionPeriod: OfferSubscriptionPeriod
292292
/** Operation path of the service */
293293
operationPath: string
294294
/** Fee to pay on order */
295295
fee?: Money
296296
/** Options available on offer */
297-
options: Array<OfferOptionOffer>
297+
options: OfferOptionOffer[]
298298
}
299299

300300
/** Offer. option offer */
@@ -340,7 +340,7 @@ export interface PersistentMemory {
340340

341341
export interface RaidController {
342342
model: string
343-
raidLevel: Array<string>
343+
raidLevel: string[]
344344
}
345345

346346
/** Server */
@@ -366,9 +366,9 @@ export interface Server {
366366
/** Offer name of the server */
367367
offerName: string
368368
/** Array of customs tags attached to the server */
369-
tags: Array<string>
369+
tags: string[]
370370
/** Array of IPs attached to the server */
371-
ips: Array<IP>
371+
ips: IP[]
372372
/** Domain of the server */
373373
domain: string
374374
/** Boot type of the server */
@@ -380,7 +380,7 @@ export interface Server {
380380
/** Server status of ping */
381381
pingStatus: ServerPingStatus
382382
/** Options enabled on server */
383-
options: Array<ServerOption>
383+
options: ServerOption[]
384384
/** Configuration of rescue boot */
385385
rescueServer?: ServerRescueServer
386386
}
@@ -404,7 +404,7 @@ export interface ServerInstall {
404404
/** Host defined in the server install */
405405
hostname: string
406406
/** SSH public key IDs defined in the server install */
407-
sshKeyIds: Array<string>
407+
sshKeyIds: string[]
408408
/** Status of the server install */
409409
status: ServerInstallStatus
410410
/**
@@ -464,7 +464,7 @@ export interface ServerRescueServer {
464464
}
465465

466466
export interface SetServerPrivateNetworksResponse {
467-
serverPrivateNetworks: Array<ServerPrivateNetwork>
467+
serverPrivateNetworks: ServerPrivateNetwork[]
468468
}
469469

470470
/** Setting */
@@ -489,9 +489,9 @@ export type ListServersRequest = {
489489
/** Order of the servers */
490490
orderBy?: ListServersRequestOrderBy
491491
/** Filter by tags */
492-
tags?: Array<string>
492+
tags?: string[]
493493
/** Filter by status */
494-
status?: Array<string>
494+
status?: string[]
495495
/** Filter by name */
496496
name?: string
497497
/** Filter by organization ID */
@@ -533,11 +533,11 @@ export type CreateServerRequest = {
533533
/** Description associated to the server, max 255 characters */
534534
description: string
535535
/** Tags to associate to the server */
536-
tags?: Array<string>
536+
tags?: string[]
537537
/** Configuration of installation */
538538
install?: CreateServerRequestInstall
539539
/** IDs of options to enable on server */
540-
optionIds?: Array<string>
540+
optionIds?: string[]
541541
}
542542

543543
export type UpdateServerRequest = {
@@ -553,7 +553,7 @@ export type UpdateServerRequest = {
553553
*/
554554
description?: string
555555
/** Tags associated to the server, not updated if null */
556-
tags?: Array<string>
556+
tags?: string[]
557557
}
558558

559559
export type InstallServerRequest = {
@@ -566,7 +566,7 @@ export type InstallServerRequest = {
566566
/** Hostname of the server */
567567
hostname: string
568568
/** SSH key IDs authorized on the server */
569-
sshKeyIds: Array<string>
569+
sshKeyIds: string[]
570570
/** User used for the installation */
571571
user?: string
572572
/** Password used for the installation */
@@ -776,7 +776,7 @@ export type PrivateNetworkApiSetServerPrivateNetworksRequest = {
776776
/** The ID of the server */
777777
serverId: string
778778
/** The IDs of the private networks */
779-
privateNetworkIds: Array<string>
779+
privateNetworkIds: string[]
780780
}
781781

782782
export type PrivateNetworkApiListServerPrivateNetworksRequest = {

packages/clients/src/api/container/v1beta1/types.gen.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export interface Container {
102102
domainName: string
103103
protocol: ContainerProtocol
104104
port: number
105-
secretEnvironmentVariables: Array<SecretHashedValue>
105+
secretEnvironmentVariables: SecretHashedValue[]
106106
/**
107107
* Possible values:
108108
*
@@ -136,36 +136,36 @@ export interface Domain {
136136

137137
/** List containers response */
138138
export interface ListContainersResponse {
139-
containers: Array<Container>
139+
containers: Container[]
140140
totalCount: number
141141
}
142142

143143
/** List crons response */
144144
export interface ListCronsResponse {
145-
crons: Array<Cron>
145+
crons: Cron[]
146146
totalCount: number
147147
}
148148

149149
/** List domains response */
150150
export interface ListDomainsResponse {
151-
domains: Array<Domain>
151+
domains: Domain[]
152152
totalCount: number
153153
}
154154

155155
/** List logs response */
156156
export interface ListLogsResponse {
157-
logs: Array<Log>
157+
logs: Log[]
158158
totalCount: number
159159
}
160160

161161
/** List namespaces response */
162162
export interface ListNamespacesResponse {
163-
namespaces: Array<Namespace>
163+
namespaces: Namespace[]
164164
totalCount: number
165165
}
166166

167167
export interface ListTokensResponse {
168-
tokens: Array<Token>
168+
tokens: Token[]
169169
totalCount: number
170170
}
171171

@@ -194,7 +194,7 @@ export interface Namespace {
194194
errorMessage?: string
195195
registryEndpoint: string
196196
description?: string
197-
secretEnvironmentVariables: Array<SecretHashedValue>
197+
secretEnvironmentVariables: SecretHashedValue[]
198198
region: Region
199199
}
200200

@@ -247,7 +247,7 @@ export type CreateNamespaceRequest = {
247247
environmentVariables?: Record<string, string>
248248
projectId?: string
249249
description?: string
250-
secretEnvironmentVariables?: Array<Secret>
250+
secretEnvironmentVariables?: Secret[]
251251
}
252252

253253
export type UpdateNamespaceRequest = {
@@ -256,7 +256,7 @@ export type UpdateNamespaceRequest = {
256256
namespaceId: string
257257
environmentVariables?: Record<string, string>
258258
description?: string
259-
secretEnvironmentVariables?: Array<Secret>
259+
secretEnvironmentVariables?: Secret[]
260260
}
261261

262262
export type DeleteNamespaceRequest = {
@@ -299,7 +299,7 @@ export type CreateContainerRequest = {
299299
maxConcurrency?: number
300300
protocol?: ContainerProtocol
301301
port?: number
302-
secretEnvironmentVariables?: Array<Secret>
302+
secretEnvironmentVariables?: Secret[]
303303
/**
304304
* Possible values:
305305
*
@@ -326,7 +326,7 @@ export type UpdateContainerRequest = {
326326
maxConcurrency?: number
327327
protocol?: ContainerProtocol
328328
port?: number
329-
secretEnvironmentVariables?: Array<Secret>
329+
secretEnvironmentVariables?: Secret[]
330330
/**
331331
* Possible values:
332332
*

0 commit comments

Comments
 (0)