Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(inference): rename locality imports #1761

Merged
merged 2 commits into from
Jan 30, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/clients/src/api/inference/v1beta1/api.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
validatePathParam,
waitForResource,
} from '../../../bridge'
import type { Region, WaitForOptions } from '../../../bridge'
import type { Region as ScwRegion, WaitForOptions } from '../../../bridge'
import { DEPLOYMENT_TRANSIENT_STATUSES } from './content.gen'
import {
marshalAddDeploymentACLRulesRequest,
Expand Down Expand Up @@ -68,7 +68,7 @@ const jsonContentHeaders = {
*/
export class API extends ParentAPI {
/** Lists the available regions of the API. */
public static readonly LOCALITIES: Region[] = ['fr-par']
public static readonly LOCALITIES: ScwRegion[] = ['fr-par']

protected pageOfListDeployments = (
request: Readonly<ListDeploymentsRequest> = {},
Expand Down
42 changes: 21 additions & 21 deletions packages/clients/src/api/inference/v1beta1/types.gen.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// This file was automatically generated. DO NOT EDIT.
// If you have any remark or suggestion do not hesitate to open an issue.
import type { Region } from '../../../bridge'
import type { Region as ScwRegion } from '../../../bridge'

export type DeploymentStatus =
| 'unknown_status'
Expand Down Expand Up @@ -150,7 +150,7 @@ export interface Deployment {
/** Last modification date of the deployment. */
updatedAt?: Date
/** Region of the deployment. */
region: Region
region: ScwRegion
}

export interface Model {
Expand All @@ -173,7 +173,7 @@ export interface Model {
/** Last modification date of the model. */
updatedAt?: Date
/** Region of the model. */
region: Region
region: ScwRegion
/**
* Object Storage URL pointing to the model source weight.
*
Expand Down Expand Up @@ -212,15 +212,15 @@ export interface NodeType {
/** Number of GPUs. */
gpus: number
/** Region of the node type. */
region: Region
region: ScwRegion
}

export type AddDeploymentACLRulesRequest = {
/**
* Region to target. If none is passed will use default region from the
* config.
*/
region?: Region
region?: ScwRegion
/** ID of the deployment to add ACL rules to. */
deploymentId: string
/** List of ACL rules to add. */
Expand All @@ -237,7 +237,7 @@ export type CreateDeploymentRequest = {
* Region to target. If none is passed will use default region from the
* config.
*/
region?: Region
region?: ScwRegion
/** Name of the deployment. */
name?: string
/** ID of the Project to create the deployment in. */
Expand Down Expand Up @@ -266,7 +266,7 @@ export type CreateEndpointRequest = {
* Region to target. If none is passed will use default region from the
* config.
*/
region?: Region
region?: ScwRegion
/** ID of the deployment to create the endpoint for. */
deploymentId: string
/** Specification of the endpoint. */
Expand All @@ -278,7 +278,7 @@ export type DeleteDeploymentACLRuleRequest = {
* Region to target. If none is passed will use default region from the
* config.
*/
region?: Region
region?: ScwRegion
/** ID of the ACL rule to delete. */
aclId: string
}
Expand All @@ -288,7 +288,7 @@ export type DeleteDeploymentRequest = {
* Region to target. If none is passed will use default region from the
* config.
*/
region?: Region
region?: ScwRegion
/** ID of the deployment to delete. */
deploymentId: string
}
Expand All @@ -298,7 +298,7 @@ export type DeleteEndpointRequest = {
* Region to target. If none is passed will use default region from the
* config.
*/
region?: Region
region?: ScwRegion
/** ID of the endpoint to delete. */
endpointId: string
}
Expand All @@ -313,7 +313,7 @@ export type GetDeploymentCertificateRequest = {
* Region to target. If none is passed will use default region from the
* config.
*/
region?: Region
region?: ScwRegion
deploymentId: string
}

Expand All @@ -322,7 +322,7 @@ export type GetDeploymentRequest = {
* Region to target. If none is passed will use default region from the
* config.
*/
region?: Region
region?: ScwRegion
/** ID of the deployment to get. */
deploymentId: string
}
Expand All @@ -332,7 +332,7 @@ export type GetModelEulaRequest = {
* Region to target. If none is passed will use default region from the
* config.
*/
region?: Region
region?: ScwRegion
modelId: string
}

Expand All @@ -341,7 +341,7 @@ export type GetModelRequest = {
* Region to target. If none is passed will use default region from the
* config.
*/
region?: Region
region?: ScwRegion
/** ID of the model to get. */
modelId: string
}
Expand All @@ -351,7 +351,7 @@ export type ListDeploymentACLRulesRequest = {
* Region to target. If none is passed will use default region from the
* config.
*/
region?: Region
region?: ScwRegion
/** ID of the deployment to list ACL rules for. */
deploymentId: string
/** Page number to return. */
Expand All @@ -372,7 +372,7 @@ export type ListDeploymentsRequest = {
* Region to target. If none is passed will use default region from the
* config.
*/
region?: Region
region?: ScwRegion
/** Page number to return. */
page?: number
/** Maximum number of deployments to return per page. */
Expand Down Expand Up @@ -401,7 +401,7 @@ export type ListModelsRequest = {
* Region to target. If none is passed will use default region from the
* config.
*/
region?: Region
region?: ScwRegion
/** Order in which to return results. */
orderBy?: ListModelsRequestOrderBy
/** Page number to return. */
Expand All @@ -428,7 +428,7 @@ export type ListNodeTypesRequest = {
* Region to target. If none is passed will use default region from the
* config.
*/
region?: Region
region?: ScwRegion
/** Page number to return. */
page?: number
/** Maximum number of node types to return per page. */
Expand All @@ -449,7 +449,7 @@ export type SetDeploymentACLRulesRequest = {
* Region to target. If none is passed will use default region from the
* config.
*/
region?: Region
region?: ScwRegion
/** ID of the deployment to set ACL rules for. */
deploymentId: string
/** All existing ACL rules will be replaced by the new ones. */
Expand All @@ -466,7 +466,7 @@ export type UpdateDeploymentRequest = {
* Region to target. If none is passed will use default region from the
* config.
*/
region?: Region
region?: ScwRegion
/** ID of the deployment to update. */
deploymentId: string
/** Name of the deployment. */
Expand All @@ -484,7 +484,7 @@ export type UpdateEndpointRequest = {
* Region to target. If none is passed will use default region from the
* config.
*/
region?: Region
region?: ScwRegion
/** ID of the endpoint to update. */
endpointId: string
/**
Expand Down
Loading