Skip to content

Commit 89c9c84

Browse files
fix(inference): rename locality imports (#1761)
Co-authored-by: Jules Castéran <[email protected]>
1 parent c638994 commit 89c9c84

File tree

2 files changed

+23
-23
lines changed

2 files changed

+23
-23
lines changed

packages/clients/src/api/inference/v1beta1/api.gen.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
validatePathParam,
88
waitForResource,
99
} from '../../../bridge'
10-
import type { Region, WaitForOptions } from '../../../bridge'
10+
import type { Region as ScwRegion, WaitForOptions } from '../../../bridge'
1111
import { DEPLOYMENT_TRANSIENT_STATUSES } from './content.gen'
1212
import {
1313
marshalAddDeploymentACLRulesRequest,
@@ -68,7 +68,7 @@ const jsonContentHeaders = {
6868
*/
6969
export class API extends ParentAPI {
7070
/** Lists the available regions of the API. */
71-
public static readonly LOCALITIES: Region[] = ['fr-par']
71+
public static readonly LOCALITIES: ScwRegion[] = ['fr-par']
7272

7373
protected pageOfListDeployments = (
7474
request: Readonly<ListDeploymentsRequest> = {},

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

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// This file was automatically generated. DO NOT EDIT.
22
// If you have any remark or suggestion do not hesitate to open an issue.
3-
import type { Region } from '../../../bridge'
3+
import type { Region as ScwRegion } from '../../../bridge'
44

55
export type DeploymentStatus =
66
| 'unknown_status'
@@ -150,7 +150,7 @@ export interface Deployment {
150150
/** Last modification date of the deployment. */
151151
updatedAt?: Date
152152
/** Region of the deployment. */
153-
region: Region
153+
region: ScwRegion
154154
}
155155

156156
export interface Model {
@@ -173,7 +173,7 @@ export interface Model {
173173
/** Last modification date of the model. */
174174
updatedAt?: Date
175175
/** Region of the model. */
176-
region: Region
176+
region: ScwRegion
177177
/**
178178
* Object Storage URL pointing to the model source weight.
179179
*
@@ -212,15 +212,15 @@ export interface NodeType {
212212
/** Number of GPUs. */
213213
gpus: number
214214
/** Region of the node type. */
215-
region: Region
215+
region: ScwRegion
216216
}
217217

218218
export type AddDeploymentACLRulesRequest = {
219219
/**
220220
* Region to target. If none is passed will use default region from the
221221
* config.
222222
*/
223-
region?: Region
223+
region?: ScwRegion
224224
/** ID of the deployment to add ACL rules to. */
225225
deploymentId: string
226226
/** List of ACL rules to add. */
@@ -237,7 +237,7 @@ export type CreateDeploymentRequest = {
237237
* Region to target. If none is passed will use default region from the
238238
* config.
239239
*/
240-
region?: Region
240+
region?: ScwRegion
241241
/** Name of the deployment. */
242242
name?: string
243243
/** ID of the Project to create the deployment in. */
@@ -266,7 +266,7 @@ export type CreateEndpointRequest = {
266266
* Region to target. If none is passed will use default region from the
267267
* config.
268268
*/
269-
region?: Region
269+
region?: ScwRegion
270270
/** ID of the deployment to create the endpoint for. */
271271
deploymentId: string
272272
/** Specification of the endpoint. */
@@ -278,7 +278,7 @@ export type DeleteDeploymentACLRuleRequest = {
278278
* Region to target. If none is passed will use default region from the
279279
* config.
280280
*/
281-
region?: Region
281+
region?: ScwRegion
282282
/** ID of the ACL rule to delete. */
283283
aclId: string
284284
}
@@ -288,7 +288,7 @@ export type DeleteDeploymentRequest = {
288288
* Region to target. If none is passed will use default region from the
289289
* config.
290290
*/
291-
region?: Region
291+
region?: ScwRegion
292292
/** ID of the deployment to delete. */
293293
deploymentId: string
294294
}
@@ -298,7 +298,7 @@ export type DeleteEndpointRequest = {
298298
* Region to target. If none is passed will use default region from the
299299
* config.
300300
*/
301-
region?: Region
301+
region?: ScwRegion
302302
/** ID of the endpoint to delete. */
303303
endpointId: string
304304
}
@@ -313,7 +313,7 @@ export type GetDeploymentCertificateRequest = {
313313
* Region to target. If none is passed will use default region from the
314314
* config.
315315
*/
316-
region?: Region
316+
region?: ScwRegion
317317
deploymentId: string
318318
}
319319

@@ -322,7 +322,7 @@ export type GetDeploymentRequest = {
322322
* Region to target. If none is passed will use default region from the
323323
* config.
324324
*/
325-
region?: Region
325+
region?: ScwRegion
326326
/** ID of the deployment to get. */
327327
deploymentId: string
328328
}
@@ -332,7 +332,7 @@ export type GetModelEulaRequest = {
332332
* Region to target. If none is passed will use default region from the
333333
* config.
334334
*/
335-
region?: Region
335+
region?: ScwRegion
336336
modelId: string
337337
}
338338

@@ -341,7 +341,7 @@ export type GetModelRequest = {
341341
* Region to target. If none is passed will use default region from the
342342
* config.
343343
*/
344-
region?: Region
344+
region?: ScwRegion
345345
/** ID of the model to get. */
346346
modelId: string
347347
}
@@ -351,7 +351,7 @@ export type ListDeploymentACLRulesRequest = {
351351
* Region to target. If none is passed will use default region from the
352352
* config.
353353
*/
354-
region?: Region
354+
region?: ScwRegion
355355
/** ID of the deployment to list ACL rules for. */
356356
deploymentId: string
357357
/** Page number to return. */
@@ -372,7 +372,7 @@ export type ListDeploymentsRequest = {
372372
* Region to target. If none is passed will use default region from the
373373
* config.
374374
*/
375-
region?: Region
375+
region?: ScwRegion
376376
/** Page number to return. */
377377
page?: number
378378
/** Maximum number of deployments to return per page. */
@@ -401,7 +401,7 @@ export type ListModelsRequest = {
401401
* Region to target. If none is passed will use default region from the
402402
* config.
403403
*/
404-
region?: Region
404+
region?: ScwRegion
405405
/** Order in which to return results. */
406406
orderBy?: ListModelsRequestOrderBy
407407
/** Page number to return. */
@@ -428,7 +428,7 @@ export type ListNodeTypesRequest = {
428428
* Region to target. If none is passed will use default region from the
429429
* config.
430430
*/
431-
region?: Region
431+
region?: ScwRegion
432432
/** Page number to return. */
433433
page?: number
434434
/** Maximum number of node types to return per page. */
@@ -449,7 +449,7 @@ export type SetDeploymentACLRulesRequest = {
449449
* Region to target. If none is passed will use default region from the
450450
* config.
451451
*/
452-
region?: Region
452+
region?: ScwRegion
453453
/** ID of the deployment to set ACL rules for. */
454454
deploymentId: string
455455
/** All existing ACL rules will be replaced by the new ones. */
@@ -466,7 +466,7 @@ export type UpdateDeploymentRequest = {
466466
* Region to target. If none is passed will use default region from the
467467
* config.
468468
*/
469-
region?: Region
469+
region?: ScwRegion
470470
/** ID of the deployment to update. */
471471
deploymentId: string
472472
/** Name of the deployment. */
@@ -484,7 +484,7 @@ export type UpdateEndpointRequest = {
484484
* Region to target. If none is passed will use default region from the
485485
* config.
486486
*/
487-
region?: Region
487+
region?: ScwRegion
488488
/** ID of the endpoint to update. */
489489
endpointId: string
490490
/**

0 commit comments

Comments
 (0)