diff --git a/packages/manager/apps/pci-ai-dashboard/src/__tests__/helpers/mocks/app.ts b/packages/manager/apps/pci-ai-dashboard/src/__tests__/helpers/mocks/app.ts index cce7a565076c..ce30ce9e18b3 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/__tests__/helpers/mocks/app.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/__tests__/helpers/mocks/app.ts @@ -1,4 +1,5 @@ import * as ai from '@/types/cloud/project/ai'; +import { mockedDataSync } from './datasync'; export const mockedAppSpec: ai.app.AppSpec = { command: ['command'], @@ -26,38 +27,7 @@ export const mockedAppSpec: ai.app.AppSpec = { export const mockedAppStatus: ai.app.AppStatus = { availableReplicas: 2, - dataSync: [ - { - createdAt: 'createdAt', - id: 'datasyncId', - status: { - info: { - code: ai.InfoCodeEnum.APP_RUNNING, - message: 'message', - }, - progress: [ - { - completed: 1, - createdAt: 'createdAt', - deleted: 0, - direction: ai.volume.DataSyncEnum.push, - failed: 0, - id: 'progressId', - info: 'info', - processed: 3, - skipped: 1, - state: ai.volume.DataSyncProgressStateEnum.DONE, - total: 2, - transferredBytes: 30, - updatedAt: 'updatedAt', - }, - ], - queuedAt: 'queuedAt', - state: ai.volume.DataSyncStateEnum.DONE, - }, - updatedAt: 'updatedAt', - }, - ], + dataSync: [mockedDataSync], history: [ { date: 'date', diff --git a/packages/manager/apps/pci-ai-dashboard/src/__tests__/helpers/mocks/currentUsage.ts b/packages/manager/apps/pci-ai-dashboard/src/__tests__/helpers/mocks/currentUsage.ts index 695f3f945aad..9789a10cff35 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/__tests__/helpers/mocks/currentUsage.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/__tests__/helpers/mocks/currentUsage.ts @@ -5,6 +5,7 @@ export const mockedCurrentUsage: usage.UsageCurrent = { from: '2024/04/08', to: '2024/05/08', }, + lastUpdate: '2024/05/08', resourcesUsage: [ { totalPrice: 10, diff --git a/packages/manager/apps/pci-ai-dashboard/src/__tests__/helpers/mocks/datasync.ts b/packages/manager/apps/pci-ai-dashboard/src/__tests__/helpers/mocks/datasync.ts new file mode 100644 index 000000000000..edb4f2b944f5 --- /dev/null +++ b/packages/manager/apps/pci-ai-dashboard/src/__tests__/helpers/mocks/datasync.ts @@ -0,0 +1,45 @@ +import * as ai from '@/types/cloud/project/ai'; + +export const mockedDataSyncSpec: ai.volume.DataSyncSpec = { + direction: ai.volume.DataSyncEnum.pull, + manual: true, + volume: '1934e1d3-2ba0-4000-8fd3-6f11081e4401', +}; + +export const mockedDataSync: ai.volume.DataSync = { + createdAt: 'createdAt', + id: 'idDuDataSync', + spec: { + direction: ai.volume.DataSyncEnum.pull, + manual: true, + volume: '1934e1d3-2ba0-4000-8fd3-6f11081e4401', + }, + status: { + endedAt: 'endedAT', + info: { + code: ai.InfoCodeEnum.APP_ERROR, + message: 'error_message', + }, + progress: [ + { + completed: 1, + createdAt: 'createdAt', + deleted: 1, + direction: ai.volume.DataSyncEnum.pull, + failed: 3, + id: 'id', + info: 'info', + processed: 1, + skipped: 1, + state: ai.volume.DataSyncProgressStateEnum.DONE, + total: 1, + transferredBytes: 1, + updatedAt: 'updatedAt', + }, + ], + queuedAt: 'queudAt', + startedAt: 'startedAt', + state: ai.volume.DataSyncStateEnum.DONE, + }, + updatedAt: 'updatedAt', +}; diff --git a/packages/manager/apps/pci-ai-dashboard/src/__tests__/helpers/mocks/job.ts b/packages/manager/apps/pci-ai-dashboard/src/__tests__/helpers/mocks/job.ts index eb786859b1b1..40535f4e5334 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/__tests__/helpers/mocks/job.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/__tests__/helpers/mocks/job.ts @@ -1,4 +1,5 @@ import * as ai from '@/types/cloud/project/ai'; +import { mockedDataSync } from './datasync'; export const mockedJobSpec: ai.job.JobSpec = { image: 'image', @@ -15,38 +16,7 @@ export const mockedJobSpec: ai.job.JobSpec = { }, }; export const mockedJobStatus: ai.job.JobStatus = { - dataSync: [ - { - createdAt: 'createdAt', - id: 'datasyncId', - status: { - info: { - code: ai.InfoCodeEnum.APP_RUNNING, - message: 'message', - }, - progress: [ - { - completed: 1, - createdAt: 'createdAt', - deleted: 0, - direction: ai.volume.DataSyncEnum.push, - failed: 0, - id: 'progressId', - info: 'info', - processed: 3, - skipped: 1, - state: ai.volume.DataSyncProgressStateEnum.DONE, - total: 2, - transferredBytes: 30, - updatedAt: 'updatedAt', - }, - ], - queuedAt: 'queuedAt', - state: ai.volume.DataSyncStateEnum.DONE, - }, - updatedAt: 'updatedAt', - }, - ], + dataSync: [mockedDataSync], history: [ { date: 'date', diff --git a/packages/manager/apps/pci-ai-dashboard/src/__tests__/helpers/mocks/notebook.ts b/packages/manager/apps/pci-ai-dashboard/src/__tests__/helpers/mocks/notebook.ts index d3c1c78f9f02..dc3d936b3f1f 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/__tests__/helpers/mocks/notebook.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/__tests__/helpers/mocks/notebook.ts @@ -1,5 +1,6 @@ import * as ai from '@/types/cloud/project/ai'; import { mockedJobStatus } from './job'; +import { mockedDataSync } from './datasync'; export const mockedNotebookSpec: ai.notebook.NotebookSpec = { env: { @@ -27,38 +28,7 @@ export const mockedNotebookSpec: ai.notebook.NotebookSpec = { }; export const mockedNotebookStatus: ai.notebook.NotebookStatus = { - dataSync: [ - { - createdAt: 'createdAt', - id: 'datasyncId', - status: { - info: { - code: ai.InfoCodeEnum.APP_RUNNING, - message: 'message', - }, - progress: [ - { - completed: 1, - createdAt: 'createdAt', - deleted: 0, - direction: ai.volume.DataSyncEnum.push, - failed: 0, - id: 'progressId', - info: 'info', - processed: 3, - skipped: 1, - state: ai.volume.DataSyncProgressStateEnum.DONE, - total: 2, - transferredBytes: 30, - updatedAt: 'updatedAt', - }, - ], - queuedAt: 'queuedAt', - state: ai.volume.DataSyncStateEnum.DONE, - }, - updatedAt: 'updatedAt', - }, - ], + dataSync: [mockedDataSync], info: { code: ai.InfoCodeEnum.JOB_DONE, diff --git a/packages/manager/apps/pci-ai-dashboard/src/__tests__/helpers/selectHelper.ts b/packages/manager/apps/pci-ai-dashboard/src/__tests__/helpers/selectHelper.ts deleted file mode 100644 index 9941ec5ee168..000000000000 --- a/packages/manager/apps/pci-ai-dashboard/src/__tests__/helpers/selectHelper.ts +++ /dev/null @@ -1,39 +0,0 @@ -import { act, fireEvent, screen, waitFor } from '@testing-library/react'; - -/** - * Open a Select component and select the correct option - * @param triggerId testId of the trigger select - * @param options labels of the options that should be in the select - * @param optionToSelect the option to select - */ -export async function handleSelectOption( - triggerId: string, - options: string[], - optionToSelect: string, -) { - // Open select - act(() => { - const trigger = screen.getByTestId(triggerId); - fireEvent.focus(trigger); - fireEvent.keyDown(trigger, { key: 'Enter', code: 13 }); - }); - - // Check if select has the options - await waitFor(() => { - expect(screen.getByTestId(triggerId)).not.toHaveAttribute( - 'data-state', - 'closed', - ); - options.forEach((optionLabel) => { - expect(screen.getByText(optionLabel)).toBeInTheDocument(); - }); - }); - // Select the option - act(() => { - const optionsElements = screen.getAllByRole('option'); - const elem = optionsElements.find((e) => - e.innerHTML.includes(optionToSelect), - ); - fireEvent.keyDown(elem, { key: 'Enter', code: 13 }); - }); -} diff --git a/packages/manager/apps/pci-ai-dashboard/src/hooks/api/user/useAddUser.spec.tsx b/packages/manager/apps/pci-ai-dashboard/src/hooks/api/user/useAddUser.spec.tsx index fcbb0f6a02a3..ce71fff0b7a5 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/hooks/api/user/useAddUser.spec.tsx +++ b/packages/manager/apps/pci-ai-dashboard/src/hooks/api/user/useAddUser.spec.tsx @@ -3,7 +3,10 @@ import { vi } from 'vitest'; import { QueryClientWrapper } from '@/__tests__/helpers/wrappers/QueryClientWrapper'; import * as userApi from '@/data/api/user/user.api'; -import { mockedUser, mockedUserCreation } from '@/__tests__/helpers/mocks/user'; +import { + mockedUserCreation, + mockedUserDetails, +} from '@/__tests__/helpers/mocks/user'; import { useAddUser } from './useAddUser.hook'; vi.mock('@/data/api/user/user.api', () => ({ @@ -16,7 +19,7 @@ describe('useAddUSer', () => { const onSuccess = vi.fn(); const onError = vi.fn(); - vi.mocked(userApi.addUser).mockResolvedValue(mockedUser); + vi.mocked(userApi.addUser).mockResolvedValue(mockedUserDetails); const { result } = renderHook(() => useAddUser({ onError, onSuccess }), { wrapper: QueryClientWrapper, }); @@ -30,7 +33,7 @@ describe('useAddUSer', () => { await waitFor(() => { expect(userApi.addUser).toHaveBeenCalledWith(addUserProps); expect(onSuccess).toHaveBeenCalledWith( - mockedUser, + mockedUserDetails, addUserProps, undefined, ); diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/Project.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/Project.ts index 632fc3f02393..638fd476b39c 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/Project.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/Project.ts @@ -4,11 +4,11 @@ import { ProjectStatusEnum } from '@/types/cloud/project/ProjectStatusEnum'; /** Project */ export interface Project { /** Project access */ - access?: AccessTypeEnum; + access: AccessTypeEnum; /** Project creation date */ - creationDate?: string; + creationDate: string; /** Description of your project */ - description: string; + description?: string; /** Expiration date of your project. After this date, your project will be deleted */ expiration?: string; /** Manual quota prevent automatic quota upgrade */ @@ -16,15 +16,15 @@ export interface Project { /** Project order id */ orderId?: number; /** Order plan code */ - planCode?: string; + planCode: string; /** Project name */ projectName?: string; /** Project id */ - project_id?: string; + project_id: string; /** Current status */ - status?: ProjectStatusEnum; + status: ProjectStatusEnum; /** Project unleashed */ - unleash?: boolean; + unleash: boolean; } export enum PlanCode { diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/AuthorizationStatus.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/AuthorizationStatus.ts index 2eb3a0e98e5e..bb8283032265 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/AuthorizationStatus.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/AuthorizationStatus.ts @@ -1,5 +1,5 @@ /** Authorization status */ export interface AuthorizationStatus { /** True if project is authorized to use AI Solutions Platform */ - authorized?: boolean; + authorized: boolean; } diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/Command.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/Command.ts index 245938b7ac3a..7462c169f0a5 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/Command.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/Command.ts @@ -1,5 +1,5 @@ /** AI Solutions CLI command */ export interface Command { /** AI Solutions CLI command */ - command?: string; + command: string; } diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/DataStore.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/DataStore.ts index cd41b197cf6e..ec953d13651f 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/DataStore.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/DataStore.ts @@ -4,11 +4,11 @@ import { DataStoreTypeEnum } from '@/types/cloud/project/ai/DataStoreTypeEnum'; /** AI Solutions data store container Volume Object */ export interface DataStore { /** Data store alias */ - alias?: string; + alias: string; /** Data store endpoint URL */ endpoint?: string; /** Owner type of the datastore */ - owner?: DataStoreOwnerEnum; + owner: DataStoreOwnerEnum; /** Type of the datastore */ - type?: DataStoreTypeEnum; + type: DataStoreTypeEnum; } diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/Env.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/Env.ts index aa708d204159..474658c70a75 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/Env.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/Env.ts @@ -3,5 +3,5 @@ export interface Env { /** Name of the environment variable to set inside the AI Solutions instance */ name: string; /** Value of the environment variable to set inside the AI Solutions instance */ - value: string; + value?: string; } diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/GenericResponse.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/GenericResponse.ts index bb62305cd70d..055bf6968be9 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/GenericResponse.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/GenericResponse.ts @@ -1,5 +1,5 @@ /** Basic model with a single message field */ export interface GenericResponse { /** */ - message?: string; + message: string; } diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/Guide.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/Guide.ts index 3c729297172c..bc5487c01339 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/Guide.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/Guide.ts @@ -6,4 +6,3 @@ export interface Guide { excerpt: string; url: string; } - diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/Info.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/Info.ts index a37cddda1697..3dc2c577fec3 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/Info.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/Info.ts @@ -3,7 +3,7 @@ import { InfoCodeEnum } from '@/types/cloud/project/ai/InfoCodeEnum'; /** Information about the state of this entity */ export interface Info { /** Info code identifier */ - code?: InfoCodeEnum; + code: InfoCodeEnum; /** Formatted message */ - message?: string; + message: string; } diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/Label.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/Label.ts index d05f8a7a9f85..23ec8bb75de8 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/Label.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/Label.ts @@ -3,5 +3,5 @@ export interface Label { /** Name of the label to update/add */ name: string; /** Value of the label to update/add, is there is no value the label is deleted */ - value: string; + value?: string; } diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/Logs.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/Logs.ts index d648a99827b9..9e3c2097426a 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/Logs.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/Logs.ts @@ -5,5 +5,5 @@ export interface Logs { /** Last activity date */ lastActivity?: string; /** Logs lines */ - logs?: LogLine[]; + logs: LogLine[]; } diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/Resources.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/Resources.ts index 2fd1b82f3aa2..c6572e2c323b 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/Resources.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/Resources.ts @@ -1,13 +1,13 @@ /** AI Solutions Resource Object */ export interface Resources { /** Number of vCPU resources requested */ - cpu?: number; + cpu: number; /** The amount of ephemeral storage in bytes */ - ephemeralStorage?: number; + ephemeralStorage: number; /** Current instance flavor */ - flavor?: string; + flavor: string; /** Number of GPU resources requested */ - gpu?: number; + gpu: number; /** The GPU Brand */ gpuBrand?: string; /** The GPU Memory in bits */ @@ -15,9 +15,9 @@ export interface Resources { /** The GPU Model */ gpuModel?: string; /** The amount of memory in bytes */ - memory?: number; + memory: number; /** The guarantee private bandwidth in bytes per seconds */ - privateNetwork?: number; + privateNetwork: number; /** The guarantee public bandwidth in bytes per seconds */ - publicNetwork?: number; + publicNetwork: number; } diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/ResourcesInput.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/ResourcesInput.ts index 26672950b8ec..5266807a06ee 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/ResourcesInput.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/ResourcesInput.ts @@ -1,23 +1,23 @@ /** AI Solutions Resource Object */ export interface ResourcesInput { /** Number of vCPU resources requested */ - cpu: number; + cpu?: number; /** The amount of ephemeral storage in bytes */ - ephemeralStorage: number; + ephemeralStorage?: number; /** Instance flavor */ - flavor: string; + flavor?: string; /** Number of GPU resources requested */ - gpu: number; + gpu?: number; /** The GPU Brand */ - gpuBrand: string; + gpuBrand?: string; /** The GPU Memory in bytes */ - gpuMemory: number; + gpuMemory?: number; /** The GPU Model */ - gpuModel: string; + gpuModel?: string; /** The amount of memory in bytes */ - memory: number; + memory?: number; /** The private network bandwidth in bits per seconds */ - privateNetwork: number; + privateNetwork?: number; /** The public network bandwidth in bits per seconds */ - publicNetwork: number; + publicNetwork?: number; } diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/app/App.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/app/App.ts index 2d9391d7f2ef..e870a7f919ca 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/app/App.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/app/App.ts @@ -4,15 +4,15 @@ import { AppStatus } from '@/types/cloud/project/ai/app/AppStatus'; /** AI Solutions Platform App Object */ export interface App { /** App creation date */ - createdAt?: string; + createdAt: string; /** App Id */ - id?: string; + id: string; /** App spec */ - spec?: AppSpec; + spec: AppSpec; /** App Container Status */ - status?: AppStatus; + status: AppStatus; /** App last update date */ - updatedAt?: string; + updatedAt: string; /** App user owner */ - user?: string; + user: string; } diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/app/AppSpec.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/app/AppSpec.ts index f5fb2a3372be..0a120145afac 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/app/AppSpec.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/app/AppSpec.ts @@ -18,19 +18,21 @@ export interface AppSpec { /** GRPC Port that we want to expose in case workload HTTP & gRPC servers cannot be multiplexed to listen on the same port */ grpcPort?: number; /** App image */ - image?: string; + image: string; /** Labels for the app */ labels?: { [key: string]: string }; + /** App liveness probe */ + livenessProbe?: Probe; /** App name */ - name?: string; + name: string; /** Partner ID */ partnerId?: string; /** App readiness probe */ probe?: Probe; /** Host region of the app */ - region?: string; + region: string; /** App resources */ - resources?: Resources; + resources: Resources; /** App scaling strategy */ scalingStrategy?: ScalingStrategy; /** True if app api port can be accessed without any authentication token, false otherwise */ diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/app/AppSpecInput.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/app/AppSpecInput.ts index e3e4f58bfda3..d3e8048d6834 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/app/AppSpecInput.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/app/AppSpecInput.ts @@ -8,33 +8,35 @@ import { Volume } from '@/types/cloud/project/ai/volume/Volume'; /** AI Solutions App Spec Object to create a app */ export interface AppSpecInput { /** App command */ - command: string[]; + command?: string[]; /** Default port to access http service inside the app */ - defaultHttpPort: number; + defaultHttpPort?: number; /** AI App deployment strategy */ - deploymentStrategy: DeploymentStrategy; + deploymentStrategy?: DeploymentStrategy; /** List of environment variable to be set inside the app */ - envVars: JobEnv[]; + envVars?: JobEnv[]; /** GRPC Port that we want to expose in case workload HTTP & gRPC servers cannot be multiplexed to listen on the same port */ - grpcPort: number; + grpcPort?: number; /** Docker or capability image to use in the app. App capability images must comply with the pattern 'image-id:version' */ image: string; /** Labels are used to scope tokens, labels prefixed by 'ovh/' are owned by the platform and overridden */ - labels: { [key: string]: string }; + labels?: { [key: string]: string }; + /** App liveness probe */ + livenessProbe?: ProbeInput; /** App name */ name: string; /** Partner ID */ - partnerId: string; + partnerId?: string; /** App readiness probe */ - probe: ProbeInput; + probe?: ProbeInput; /** Host region of the app */ region: string; /** App resources */ resources: ResourcesInput; /** App scaling strategy */ - scalingStrategy: ScalingStrategyInput; + scalingStrategy?: ScalingStrategyInput; /** Whether if app api port can be accessed without any authentication token */ - unsecureHttp: boolean; + unsecureHttp?: boolean; /** App Data linked */ - volumes: Volume[]; + volumes?: Volume[]; } diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/app/AppStateHistory.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/app/AppStateHistory.ts index 5bb7e4c91881..2e450ac06a2e 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/app/AppStateHistory.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/app/AppStateHistory.ts @@ -3,7 +3,7 @@ import { AppStateEnum } from '@/types/cloud/project/ai/app/AppStateEnum'; /** AI Solutions App State History Object */ export interface AppStateHistory { /** Date when the status occurred */ - date?: string; + date: string; /** State of the app */ - state?: AppStateEnum; + state: AppStateEnum; } diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/app/AppStatus.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/app/AppStatus.ts index 811dfb259da8..db84a6b746b1 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/app/AppStatus.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/app/AppStatus.ts @@ -8,15 +8,15 @@ import { VolumeStatus } from '@/types/cloud/project/ai/volume/VolumeStatus'; /** AI Solutions App Status Object */ export interface AppStatus { /** Number of available replicas */ - availableReplicas?: number; + availableReplicas: number; /** Status about the datasync linked to the app */ - dataSync?: DataSync[]; + dataSync: DataSync[]; /** Address to reach when you want to access the App's gRPC services */ grpcAddress?: string; /** Job state history */ - history?: AppStateHistory[]; + history: AppStateHistory[]; /** Information about the app */ - info?: Info; + info: Info; /** App info url */ infoUrl?: string; /** Internal IP address of the app service */ diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/app/DeploymentStrategy.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/app/DeploymentStrategy.ts index 4f5e431fe4ba..37b88177c17c 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/app/DeploymentStrategy.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/app/DeploymentStrategy.ts @@ -1,9 +1,9 @@ /** AI Solutions AI App deployment strategy object */ export interface DeploymentStrategy { /** Maximum number of replicas that can be created over the desired number of Pods (can be expressed as a percentage of the desired pods, suffixed with '%') */ - maxSurge: string; + maxSurge?: string; /** Maximum number of replicas that can be unavailable during the update process (can be expressed as a percentage of the desired pods, suffixed with '%') */ - maxUnavailable: string; + maxUnavailable?: string; /** Number of seconds you want to wait for your Deployment to progress before the system reports back that the Deployment has failed progressing */ - progressDeadlineSeconds: number; + progressDeadlineSeconds?: number; } diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/app/Probe.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/app/Probe.ts index c8c0d65af470..5b62ac7c3de5 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/app/Probe.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/app/Probe.ts @@ -1,7 +1,17 @@ /** AI Solutions App Probe Object */ export interface Probe { + /** Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. */ + failureThreshold?: number; + /** Number of seconds after the container has started before liveness probes are initiated. */ + initialDelaySeconds?: number; /** Path to access to check for readiness */ path?: string; + /** How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. */ + periodSeconds?: number; /** Port to access to check for readiness */ port?: number; + /** Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. */ + successThreshold?: number; + /** Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. */ + timeoutSeconds?: number; } diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/app/ProbeInput.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/app/ProbeInput.ts index 9b6ef6eea1ef..776c93d25436 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/app/ProbeInput.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/app/ProbeInput.ts @@ -1,7 +1,17 @@ /** AI Solutions App Probe Object */ export interface ProbeInput { + /** Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. */ + failureThreshold?: number; + /** Number of seconds after the container has started before liveness probes are initiated. */ + initialDelaySeconds?: number; /** Path to access to check for readiness */ - path: string; + path?: string; + /** How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. */ + periodSeconds?: number; /** Port to access to check for readiness */ - port: number; + port?: number; + /** Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. */ + successThreshold?: number; + /** Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. */ + timeoutSeconds?: number; } diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/app/ScalingAutomaticStrategy.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/app/ScalingAutomaticStrategy.ts index d5519b414478..ff83133039bd 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/app/ScalingAutomaticStrategy.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/app/ScalingAutomaticStrategy.ts @@ -3,11 +3,11 @@ import { ScalingAutomaticStrategyResourceTypeEnum } from '@/types/cloud/project/ /** AI Solutions App automatic scaling strategy object */ export interface ScalingAutomaticStrategy { /** The average resource usage threshold that the app upscale or downscale will be triggered from, in percent */ - averageUsageTarget?: number; + averageUsageTarget: number; /** Maximum number of replicas */ - replicasMax?: number; + replicasMax: number; /** Minimum number of replicas */ - replicasMin?: number; + replicasMin: number; /** Type of the resource to base the automatic scaling on */ - resourceType?: ScalingAutomaticStrategyResourceTypeEnum; + resourceType: ScalingAutomaticStrategyResourceTypeEnum; } diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/app/ScalingFixedStrategy.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/app/ScalingFixedStrategy.ts index 3a98adb04064..7906e423bc5e 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/app/ScalingFixedStrategy.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/app/ScalingFixedStrategy.ts @@ -1,5 +1,5 @@ /** AI Solutions App Status Object */ export interface ScalingFixedStrategy { /** Number of wanted replicas */ - replicas?: number; + replicas: number; } diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/app/ScalingStrategyInput.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/app/ScalingStrategyInput.ts index 4bcf3ce70ff2..1ec0c0c12b83 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/app/ScalingStrategyInput.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/app/ScalingStrategyInput.ts @@ -4,7 +4,7 @@ import { ScalingFixedStrategyInput } from '@/types/cloud/project/ai/app/ScalingF /** AI Solutions App Status Object */ export interface ScalingStrategyInput { /** Strategy setting a variable number of replicas, based on an average resource usage threshold (conflicts with 'fixed' property when both are not null) */ - automatic: ScalingAutomaticStrategyInput; + automatic?: ScalingAutomaticStrategyInput; /** Strategy setting a fix number of replicas (conflicts with 'automatic' property when both are not null) */ - fixed: ScalingFixedStrategyInput; + fixed?: ScalingFixedStrategyInput; } diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/app/UpdateInput.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/app/UpdateInput.ts index f14776e92862..65357e64681d 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/app/UpdateInput.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/app/UpdateInput.ts @@ -4,21 +4,21 @@ import { Env } from '@/types/cloud/project/ai/Env'; /** AI Solutions AI App update object */ export interface UpdateInput { /** App command and arguments */ - command: string[]; + command?: string[]; /** Number of CPU resources requested (applies to CPU flavors) */ - cpu: number; + cpu?: number; /** Default port to access http service inside the app */ - defaultHttpPort: number; + defaultHttpPort?: number; /** Deployment strategy to use when updating this AI App */ - deploymentStrategy: DeploymentStrategy; + deploymentStrategy?: DeploymentStrategy; /** Environment variables to be patched (empty/null value to remove) */ - envVars: Env[]; + envVars?: Env[]; /** App instance flavor */ - flavor: string; + flavor?: string; /** Number of GPU resources requested (applies to GPU flavors) */ - gpu: number; + gpu?: number; /** GRPC Port that we want to expose in case workload HTTP & gRPC servers cannot be multiplexed to listen on the same port */ - grpcPort: number; + grpcPort?: number; /** URL of the Docker image for this AI deployment */ - url: string; + url?: string; } diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/capabilities/Features.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/capabilities/Features.ts index c885628ed134..c6e2280ae41f 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/capabilities/Features.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/capabilities/Features.ts @@ -1,7 +1,7 @@ /** AI Solutions Features */ export interface Features { /** Inform if the AI Solutions is in Lab mode or not */ - lab?: boolean; + lab: boolean; /** Capability to add registry */ - registry?: boolean; + registry: boolean; } diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/capabilities/Flavor.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/capabilities/Flavor.ts index 20c1a7aada72..9eb661a7327d 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/capabilities/Flavor.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/capabilities/Flavor.ts @@ -5,17 +5,17 @@ import { FlavorTypeEnum } from '@/types/cloud/project/ai/capabilities/FlavorType /** AI Solutions Flavor */ export interface Flavor { /** Is the flavor the default one for a flavor type */ - default?: boolean; + default: boolean; /** Flavor description */ - description?: string; + description: string; /** Describe GPU information */ gpuInformation?: GpuInformation; /** Flavor id */ - id?: string; + id: string; /** Maximum amount available for a job / notebook */ - max?: number; + max: number; /** Describe the amount of resources given per unit of the flavor */ - resourcesPerUnit?: ResourcesPerUnit; + resourcesPerUnit: ResourcesPerUnit; /** Flavor type */ - type?: FlavorTypeEnum; + type: FlavorTypeEnum; } diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/capabilities/Preset.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/capabilities/Preset.ts index d739db22dbe9..4b3f5def24e9 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/capabilities/Preset.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/capabilities/Preset.ts @@ -6,21 +6,21 @@ import { PresetTypeEnum } from '@/types/cloud/project/ai/capabilities/PresetType /** AI Solutions Preset image */ export interface Preset { /** Preset capabilities */ - capabilities?: PresetCapabilities; + capabilities: PresetCapabilities; /** Preset description */ - descriptions?: string[]; + descriptions: string[]; /** URL toward the preset image documentation */ - docUrl?: PresetDocumentationUrl[]; + docUrl: PresetDocumentationUrl[]; /** Preset id */ - id?: string; + id: string; /** URL toward the logo to illustrate the preset */ - logoUrl?: string; + logoUrl: string; /** Preset name */ - name?: string; + name: string; /** Partner name */ - partner?: Partner; + partner: Partner; /** Snippet example of the doc */ - snippet?: string; + snippet: string; /** Preset type */ - type?: PresetTypeEnum; + type: PresetTypeEnum; } diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/capabilities/PresetCapabilities.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/capabilities/PresetCapabilities.ts index 5ff64d322797..318d92fec29d 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/capabilities/PresetCapabilities.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/capabilities/PresetCapabilities.ts @@ -4,15 +4,15 @@ import { PresetResources } from '@/types/cloud/project/ai/capabilities/PresetRes /** AI Solutions Preset image enabled features */ export interface PresetCapabilities { /** Exec enabled */ - exec?: boolean; + exec: boolean; /** Flavor types */ - flavorTypes?: FlavorTypeEnum[]; + flavorTypes: FlavorTypeEnum[]; /** Log enabled */ - log?: boolean; + log: boolean; /** Resources requirements */ - resources?: PresetResources; + resources: PresetResources; /** SSH enabled */ - ssh?: boolean; + ssh: boolean; /** Volume enabled */ - volume?: boolean; + volume: boolean; } diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/capabilities/PresetDocumentationUrl.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/capabilities/PresetDocumentationUrl.ts index 736120d86984..132430d7e668 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/capabilities/PresetDocumentationUrl.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/capabilities/PresetDocumentationUrl.ts @@ -1,7 +1,7 @@ /** AI Solutions Preset image */ export interface PresetDocumentationUrl { /** Documentation Name */ - name?: string; + name: string; /** Documentation URL */ - url?: string; + url: string; } diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/capabilities/PresetResources.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/capabilities/PresetResources.ts index 5954bc7373c0..91fe21d28f41 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/capabilities/PresetResources.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/capabilities/PresetResources.ts @@ -1,5 +1,5 @@ /** AI Solutions Preset resources requirements */ export interface PresetResources { /** Maximum number of GPUs supported */ - maxGpu?: number; + maxGpu: number; } diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/capabilities/ProjectQuotas.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/capabilities/ProjectQuotas.ts index 0749bd3019ec..07c2dab4c0ef 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/capabilities/ProjectQuotas.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/capabilities/ProjectQuotas.ts @@ -1,7 +1,7 @@ /** AI Solutions Project Quotas */ export interface ProjectQuotas { /** Project's quotas per compute-type resource (e.g CPU/GPU) */ - resources?: { [key: string]: number }; + resources: { [key: string]: number }; /** Storage quota (in bits) that is allocated to the project */ - storage?: number; + storage: number; } diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/capabilities/Region.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/capabilities/Region.ts index a4ff6f1c2fe5..697206f16313 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/capabilities/Region.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/capabilities/Region.ts @@ -1,13 +1,13 @@ /** AI Solutions Region */ export interface Region { /** Client Install Url */ - cliInstallUrl?: string; + cliInstallUrl: string; /** Documentation Url */ - documentationUrl?: string; + documentationUrl: string; /** Region id */ - id?: string; + id: string; /** Region Registry Url */ - registryUrl?: string; + registryUrl: string; /** Region version */ - version?: string; + version: string; } diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/capabilities/app/Image.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/capabilities/app/Image.ts index 6a2985a2efb4..36f822316355 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/capabilities/app/Image.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/capabilities/app/Image.ts @@ -3,21 +3,21 @@ import { LicensingTypeEnum } from '@/types/cloud/project/ai/capabilities/Licensi /** AI Solutions App image object */ export interface Image { /** Short description of the image */ - description?: string; + description: string; /** URL of the image documentation */ - docUrl?: string; + docUrl: string; /** Unique identifier of the image */ - id?: string; + id: string; /** Type of licensing */ - licensing?: LicensingTypeEnum; + licensing: LicensingTypeEnum; /** URL of the logo of the image */ - logoUrl?: string; + logoUrl: string; /** Name of the image */ - name?: string; + name: string; /** ID of the partner providing the image */ - partnerId?: string; + partnerId: string; /** Name of the partner providing the image */ - partnerName?: string; + partnerName: string; /** List of available versions of this image */ - versions?: string[]; + versions: string[]; } diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/capabilities/flavor/GpuInformation.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/capabilities/flavor/GpuInformation.ts index aab9f0fd2a1c..db489c957f6b 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/capabilities/flavor/GpuInformation.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/capabilities/flavor/GpuInformation.ts @@ -1,9 +1,9 @@ /** AI Solutions Global GPU information */ export interface GpuInformation { /** The GPU Brand */ - gpuBrand?: string; + gpuBrand: string; /** The GPU Memory in bits */ - gpuMemory?: number; + gpuMemory: number; /** The GPU Model */ - gpuModel?: string; + gpuModel: string; } diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/capabilities/flavor/ResourcesPerUnit.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/capabilities/flavor/ResourcesPerUnit.ts index 0a67f41fd258..7de885b5390e 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/capabilities/flavor/ResourcesPerUnit.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/capabilities/flavor/ResourcesPerUnit.ts @@ -1,13 +1,13 @@ /** AI Solutions Global Resource per flavor unit */ export interface ResourcesPerUnit { /** The amount of cpu for one unit of the flavor */ - cpu?: number; + cpu: number; /** The amount of ephemeral storage in bytes */ - ephemeralStorage?: number; + ephemeralStorage: number; /** The amount of memory in bytes */ - memory?: number; + memory: number; /** The guarantee private bandwidth in bytes per seconds */ - privateNetwork?: number; + privateNetwork: number; /** The guarantee public bandwidth in bytes per seconds */ - publicNetwork?: number; + publicNetwork: number; } diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/capabilities/job/Image.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/capabilities/job/Image.ts index 319a3f4cc8b8..dd42150163c3 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/capabilities/job/Image.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/capabilities/job/Image.ts @@ -1,15 +1,15 @@ /** AI Solutions Job image object */ export interface Image { /** Short description of the image */ - description?: string; + description: string; /** URL of the image documentation */ - docUrl?: string; + docUrl: string; /** Unique identifier of the image */ - id?: string; + id: string; /** URL of the logo of the image */ - logoUrl?: string; + logoUrl: string; /** Name of the image */ - name?: string; + name: string; /** List of available versions of this image */ - versions?: string[]; + versions: string[]; } diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/capabilities/notebook/Editor.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/capabilities/notebook/Editor.ts index d6dcc7d343c0..365ceee9bb59 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/capabilities/notebook/Editor.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/capabilities/notebook/Editor.ts @@ -1,15 +1,15 @@ /** AI Solutions Notebook editor object */ export interface Editor { /** Short description of the editor */ - description?: string; + description: string; /** URL of the editor documentation */ - docUrl?: string; + docUrl: string; /** Unique identifier of the editor */ - id?: string; + id: string; /** URL of the logo of the editor */ - logoUrl?: string; + logoUrl: string; /** Name of the editor */ - name?: string; + name: string; /** List of available versions of this editor */ - versions?: string[]; + versions: string[]; } diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/capabilities/notebook/Framework.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/capabilities/notebook/Framework.ts index 613be0f21bdb..41ce6b1e86bd 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/capabilities/notebook/Framework.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/capabilities/notebook/Framework.ts @@ -1,17 +1,17 @@ /** AI Solutions Notebook framework object */ export interface Framework { /** Short description of the framework */ - description?: string; + description: string; /** URL of the framework documentation */ - docUrl?: string; + docUrl: string; /** Unique identifier of the framework */ - id?: string; + id: string; /** URL of the logo of the framework */ - logoUrl?: string; + logoUrl: string; /** Name of the framework */ - name?: string; + name: string; /** List of paths that are automatically saved */ savedPaths?: string[]; /** List of available versions of this framework */ - versions?: string[]; + versions: string[]; } diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/job/Job.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/job/Job.ts index 5f193c3dc9a6..ed59d7c5e2b7 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/job/Job.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/job/Job.ts @@ -4,15 +4,15 @@ import { JobStatus } from '@/types/cloud/project/ai/job/JobStatus'; /** AI Solutions Job Object */ export interface Job { /** Job creation date */ - createdAt?: string; + createdAt: string; /** Job Id */ - id?: string; + id: string; /** Job specifications */ - spec?: JobSpec; + spec: JobSpec; /** Job status */ - status?: JobStatus; + status: JobStatus; /** Job update date */ - updatedAt?: string; + updatedAt: string; /** Job user owner */ - user?: string; + user: string; } diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/job/JobSpec.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/job/JobSpec.ts index fdc676a2d193..6bb4034f4c24 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/job/JobSpec.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/job/JobSpec.ts @@ -14,19 +14,19 @@ export interface JobSpec { /** GRPC Port that we want to expose in case workload HTTP & gRPC servers cannot be multiplexed to listen on the same port */ grpcPort?: number; /** Job image */ - image?: string; + image: string; /** Labels for the job */ labels?: { [key: string]: string }; /** Job name */ - name?: string; + name: string; /** Partner ID */ partnerId?: string; /** User ID to use to access the job */ readUser?: string; /** Host region of the job */ - region?: string; + region: string; /** Job resources */ - resources?: Resources; + resources: Resources; /** Shutdown strategy (if any) */ shutdown?: ShutdownStrategyEnum; /** SSH keys authorized to access to the job container */ diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/job/JobSpecInput.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/job/JobSpecInput.ts index ca07444ed78e..43ad38364178 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/job/JobSpecInput.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/job/JobSpecInput.ts @@ -6,23 +6,23 @@ import { Volume } from '@/types/cloud/project/ai/volume/Volume'; /** AI Solutions Job Spec Object to create a job */ export interface JobSpecInput { /** Job command */ - command: string[]; + command?: string[]; /** Port use as the default one to access http service inside job */ - defaultHttpPort: number; + defaultHttpPort?: number; /** List of environment variable to be set inside job */ - envVars: JobEnv[]; + envVars?: JobEnv[]; /** GRPC Port that we want to expose in case workload HTTP & gRPC servers cannot be multiplexed to listen on the same port */ - grpcPort: number; + grpcPort?: number; /** Job image */ image: string; /** Labels are used to scope tokens, labels prefixed by 'ovh/' are owned by the platform and overridden */ - labels: { [key: string]: string }; + labels?: { [key: string]: string }; /** Job name */ name: string; /** Partner ID */ - partnerId: string; + partnerId?: string; /** User ID to use to access the job */ - readUser: string; + readUser?: string; /** Host region of the job */ region: string; /** Job resources */ @@ -30,13 +30,13 @@ export interface JobSpecInput { /** Shutdown strategy (if any) */ shutdown?: ShutdownStrategyEnum; /** SSH keys authorized to access to the job container */ - sshPublicKeys: string[]; + sshPublicKeys?: string[]; /** Maximum time to spend before killing the job */ - timeout: number; + timeout?: number; /** Whether job is set to be restarted after timeout */ - timeoutAutoRestart: boolean; + timeoutAutoRestart?: boolean; /** Whether job api port can be accessed without any authentication token */ - unsecureHttp: boolean; + unsecureHttp?: boolean; /** Job Data linked */ - volumes: Volume[]; + volumes?: Volume[]; } diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/job/JobStatus.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/job/JobStatus.ts index 234870390bd5..efa523bc537d 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/job/JobStatus.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/job/JobStatus.ts @@ -8,7 +8,7 @@ import { VolumeStatus } from '@/types/cloud/project/ai/volume/VolumeStatus'; /** AI Solutions Job Status Object */ export interface JobStatus { /** Status about the datasync linked to the job */ - dataSync?: DataSync[]; + dataSync: DataSync[]; /** Duration of the job */ duration?: number; /** Exit code of the job */ @@ -20,9 +20,9 @@ export interface JobStatus { /** Address to reach when you want to access the Job's gRPC services */ grpcAddress?: string; /** Job state history */ - history?: JobStatusHistory[]; + history: JobStatusHistory[]; /** Information about the job */ - info?: Info; + info: Info; /** Job info url */ infoUrl?: string; /** Date when the job was initialized */ diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/job/JobStatusHistory.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/job/JobStatusHistory.ts index 17633ecb0ee7..e3580635fdb8 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/job/JobStatusHistory.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/job/JobStatusHistory.ts @@ -3,7 +3,7 @@ import { JobStateEnum } from '@/types/cloud/project/ai/job/JobStateEnum'; /** AI Solutions Job Status History Object */ export interface JobStatusHistory { /** Date when the status occurred */ - date?: string; + date: string; /** State of the job */ - state?: JobStateEnum; + state: JobStateEnum; } diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/job/Partner.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/job/Partner.ts index 2a9bfc125e5e..b3caea966c73 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/job/Partner.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/job/Partner.ts @@ -1,9 +1,9 @@ /** AI Solutions Partner Object */ export interface Partner { /** Partner flavor */ - flavor?: string; + flavor: string; /** Partner ID */ - id?: string; + id: string; /** Partner name */ - name?: string; + name: string; } diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/job/PresetImage.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/job/PresetImage.ts index 21c924042afd..4804f01659da 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/job/PresetImage.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/job/PresetImage.ts @@ -1,13 +1,13 @@ /** A Image of a preset data science image */ export interface PresetImage { /** Model Image Description */ - description?: string; + description: string; /** Image id */ - id?: string; + id: string; /** Link to the Opensource Model */ link?: string; /** Framework logo */ logo?: string; /** Model Image Name */ - name?: string; + name: string; } diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/notebook/Backup.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/notebook/Backup.ts index 93e7169ae791..b4ccd9eb2049 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/notebook/Backup.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/notebook/Backup.ts @@ -1,9 +1,9 @@ /** AI Solutions Platform Notebook Backup Object */ export interface Backup { /** Backup creation date */ - createdAt?: string; + createdAt: string; /** Backup Id */ - id?: string; + id: string; /** Backup last update date */ - updatedAt?: string; + updatedAt: string; } diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/notebook/Editor.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/notebook/Editor.ts index a51e74c264d9..21abfa5017dc 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/notebook/Editor.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/notebook/Editor.ts @@ -1,15 +1,15 @@ /** AI Solutions Data Object */ export interface Editor { /** Short description of the code editor */ - description?: string; + description: string; /** URL toward the code editor documentation */ - docUrl?: string; + docUrl: string; /** Unique identifier of the code editor */ - id?: string; + id: string; /** URL toward the logo to illustrate the editor */ - logoUrl?: string; + logoUrl: string; /** Name of the code editor */ - name?: string; + name: string; /** Version of the code editor */ - version?: string; + version: string; } diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/notebook/Framework.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/notebook/Framework.ts index 06a11a694a2e..fcba65b89726 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/notebook/Framework.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/notebook/Framework.ts @@ -1,15 +1,15 @@ /** AI Solutions Data Object */ export interface Framework { /** Short description of the framework */ - description?: string; + description: string; /** URL toward the framework documentation */ - docUrl?: string; + docUrl: string; /** Unique identifier of the framework */ - id?: string; + id: string; /** URL toward the logo to illustrate the framework */ - logoUrl?: string; + logoUrl: string; /** Name of the framework */ - name?: string; + name: string; /** Available versions for the framework (default is the first one) */ - versions?: string[]; + versions: string[]; } diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/notebook/Notebook.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/notebook/Notebook.ts index 97a68004cfb3..3001ac4ec446 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/notebook/Notebook.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/notebook/Notebook.ts @@ -4,15 +4,15 @@ import { NotebookStatus } from '@/types/cloud/project/ai/notebook/NotebookStatus /** AI Solutions Platform Notebook Object */ export interface Notebook { /** Notebook creation date */ - createdAt?: string; + createdAt: string; /** Notebook Id */ - id?: string; + id: string; /** Notebook spec */ - spec?: NotebookSpec; + spec: NotebookSpec; /** Notebook Container Status */ - status?: NotebookStatus; + status: NotebookStatus; /** Notebook last update date */ - updatedAt?: string; + updatedAt: string; /** Notebook user owner */ - user?: string; + user: string; } diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/notebook/NotebookEnv.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/notebook/NotebookEnv.ts index a7bba89d5de5..e34b8233d6f7 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/notebook/NotebookEnv.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/notebook/NotebookEnv.ts @@ -5,5 +5,5 @@ export interface NotebookEnv { /** Framework name */ frameworkId: string; /** Framework version to use */ - frameworkVersion: string; + frameworkVersion?: string; } diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/notebook/NotebookSpec.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/notebook/NotebookSpec.ts index 81859678f73c..8a998a9704fa 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/notebook/NotebookSpec.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/notebook/NotebookSpec.ts @@ -7,19 +7,19 @@ import { Volume } from '@/types/cloud/project/ai/volume/Volume'; /** AI Solutions Notebook Spec Object to create a notebook */ export interface NotebookSpec { /** Environment to deploy in this notebook */ - env?: NotebookEnv; + env: NotebookEnv; /** List of environment variables to be set inside the notebook */ - envVars?: JobEnv[]; + envVars: JobEnv[]; /** Current notebook flavor */ flavor?: string; /** Labels for the notebook */ labels?: { [key: string]: string }; /** Notebook name */ - name?: string; + name: string; /** Host region of the notebook */ - region?: string; + region: string; /** Notebook resources */ - resources?: Resources; + resources: Resources; /** Shutdown strategy (if any) */ shutdown?: ShutdownStrategyEnum; /** SSH keys authorized to access the notebook */ diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/notebook/NotebookSpecInput.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/notebook/NotebookSpecInput.ts index 2b1e7f6dea80..ed5a7afde0b5 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/notebook/NotebookSpecInput.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/notebook/NotebookSpecInput.ts @@ -9,9 +9,9 @@ export interface NotebookSpecInput { /** Environment to deploy in this notebook */ env: NotebookEnv; /** List of environment variables to be set inside the notebook */ - envVars: JobEnv[]; + envVars?: JobEnv[]; /** Labels are used to scope tokens, labels prefixed by 'ovh/' are owned by the platform and overridden */ - labels: { [key: string]: string }; + labels?: { [key: string]: string }; /** Notebook name */ name: string; /** Host region of the notebook */ @@ -21,11 +21,11 @@ export interface NotebookSpecInput { /** Shutdown strategy (if any) */ shutdown?: ShutdownStrategyEnum; /** SSH keys authorized to access the notebook */ - sshPublicKeys: string[]; + sshPublicKeys?: string[]; /** Whether notebook is set to be restarted after timeout */ - timeoutAutoRestart: boolean; + timeoutAutoRestart?: boolean; /** Whether notebook api port can be accessed without any authentication token */ - unsecureHttp: boolean; + unsecureHttp?: boolean; /** Notebook Data linked */ - volumes: Volume[]; + volumes?: Volume[]; } diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/notebook/NotebookStatus.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/notebook/NotebookStatus.ts index ef40c2fac682..f8ebcdf26752 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/notebook/NotebookStatus.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/notebook/NotebookStatus.ts @@ -8,17 +8,17 @@ import { NotebookWorkspace } from '@/types/cloud/project/ai/notebook/NotebookWor /** AI Solutions Notebook Status Object */ export interface NotebookStatus { /** Status about the datasync linked to the job */ - dataSync?: DataSync[]; + dataSync: DataSync[]; /** Duration of the notebook in seconds */ duration?: number; /** Address to reach when you want to access the Notebook's gRPC services */ grpcAddress?: string; /** Information about the notebook */ - info?: Info; + info: Info; /** Notebook info url */ infoUrl?: string; /** Status for the last job run */ - lastJobStatus?: JobStatus; + lastJobStatus: JobStatus; /** Date when the notebook was last started */ lastStartedAt?: string; /** Date when the notebook was last stopped */ diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/notebook/NotebookUpdate.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/notebook/NotebookUpdate.ts index 716158c527b3..5180d9a89eb8 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/notebook/NotebookUpdate.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/notebook/NotebookUpdate.ts @@ -4,15 +4,15 @@ import { Volume } from '@/types/cloud/project/ai/volume/Volume'; /** AI Solutions Notebook Spec Object to update a notebook */ export interface NotebookUpdate { /** Labels for the notebook */ - labels: { [key: string]: string }; + labels?: { [key: string]: string }; /** Notebook resources */ - resources: ResourcesInput; + resources?: ResourcesInput; /** SSH keys authorized to access the notebook */ - sshPublicKeys: string[]; + sshPublicKeys?: string[]; /** Whether notebook is set to be restarted after timeout */ - timeoutAutoRestart: boolean; + timeoutAutoRestart?: boolean; /** Whether notebook api port can be accessed without any authentication token */ - unsecureHttp: boolean; + unsecureHttp?: boolean; /** Notebook Data linked */ - volumes: Volume[]; + volumes?: Volume[]; } diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/notebook/NotebookWorkspace.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/notebook/NotebookWorkspace.ts index 32052f5fa334..8fb8d28cdff8 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/notebook/NotebookWorkspace.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/notebook/NotebookWorkspace.ts @@ -1,7 +1,7 @@ /** AI Solutions Notebook Workspace Object */ export interface NotebookWorkspace { /** The number of storage bytes free of charges for notebook workspace */ - storageFree?: number; + storageFree: number; /** The number of storage bytes currently used to persist notebook workspace */ - storageUsed?: number; + storageUsed: number; } diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/partner/Contract.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/partner/Contract.ts index df472a1ef230..9f27ab6400fd 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/partner/Contract.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/partner/Contract.ts @@ -5,5 +5,5 @@ export interface Contract { /** Contract signature date for the logged in user's tenant */ signedAt?: string; /** Map of terms of service details per locale */ - termsOfService?: { [key: string]: ContractTermsLocale }; + termsOfService: { [key: string]: ContractTermsLocale }; } diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/partner/ContractTermsLocale.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/partner/ContractTermsLocale.ts index afd37467ab46..4eda398874ae 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/partner/ContractTermsLocale.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/partner/ContractTermsLocale.ts @@ -1,5 +1,5 @@ /** Representation of a partner's contract on a given language */ export interface ContractTermsLocale { /** Contract file URL for a given language */ - url?: string; + url: string; } diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/partner/Partner.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/partner/Partner.ts index 3fd85805455d..7673c2de730a 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/partner/Partner.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/partner/Partner.ts @@ -5,11 +5,11 @@ export interface Partner { /** Partner contract with logged in user's tenant */ contract?: Contract; /** Partner creation date */ - createdAt?: string; + createdAt: string; /** Partner Description */ - description?: string; + description: string; /** Partner Id */ - id?: string; + id: string; /** Partner Name */ - name?: string; + name: string; } diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/registry/Registry.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/registry/Registry.ts index fc1baf63aa24..f5abce26cdd4 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/registry/Registry.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/registry/Registry.ts @@ -1,19 +1,19 @@ /** Representation of a registry */ export interface Registry { /** Registry creation date */ - createdAt?: string; + createdAt: string; /** Registry Id */ - id?: string; + id: string; /** Docker registry password */ - password: string; + password?: string; /** Region where the registry is available */ region: string; /** Registry update date */ - updatedAt?: string; + updatedAt: string; /** Docker registry URL */ - url: string; + url?: string; /** Registry user creator */ - user?: string; + user: string; /** Docker registry username */ - username: string; + username?: string; } diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/registry/RegistryUpdateInput.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/registry/RegistryUpdateInput.ts index 7071c0491f21..0a822c485faf 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/registry/RegistryUpdateInput.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/registry/RegistryUpdateInput.ts @@ -1,9 +1,9 @@ /** Docker registry update object */ export interface RegistryUpdateInput { /** Docker registry password */ - password: string; + password?: string; /** Docker registry URL */ - url: string; + url?: string; /** Docker registry username */ - username: string; + username?: string; } diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/token/Token.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/token/Token.ts index 871e9e0c36c5..6565ef761285 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/token/Token.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/token/Token.ts @@ -4,13 +4,13 @@ import { TokenStatus } from '@/types/cloud/project/ai/token/TokenStatus'; /** AI Solutions Application Token */ export interface Token { /** Application token creation date */ - createdAt?: string; + createdAt: string; /** Application token Id */ - id?: string; + id: string; /** Application token spec */ - spec?: TokenSpec; + spec: TokenSpec; /** Application token status */ - status?: TokenStatus; + status: TokenStatus; /** Application token update date */ - updatedAt?: string; + updatedAt: string; } diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/token/TokenSpec.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/token/TokenSpec.ts index b661acd6df8c..ef6b7a49cad1 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/token/TokenSpec.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/token/TokenSpec.ts @@ -3,7 +3,7 @@ import { TokenRoleEnum } from '@/types/cloud/project/ai/TokenRoleEnum'; /** AI Solutions Application Token Spec Object to create a notebook */ export interface TokenSpec { /** Application token label selector */ - labelSelector: string; + labelSelector?: string; /** Application token name */ name: string; /** Public Cloud Storage Region */ diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/token/TokenStatus.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/token/TokenStatus.ts index bc5459a711bd..6deb641e1a2e 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/token/TokenStatus.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/token/TokenStatus.ts @@ -3,5 +3,5 @@ export interface TokenStatus { /** Application token value to use as a Bearer */ value?: string; /** Application token version */ - version?: number; + version: number; } diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/volume/DataStore.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/volume/DataStore.ts index 595b64374f4e..88d840455114 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/volume/DataStore.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/volume/DataStore.ts @@ -3,11 +3,11 @@ export interface DataStore { /** Data store alias */ alias: string; /** Name of the tar archive that needs to be saved */ - archive: string; + archive?: string; /** Data store container to attach */ container: string; /** True if data is stored on OVHcloud AI's internal storage */ - internal: boolean; + internal?: boolean; /** Prefix to fetch only part of the volume */ - prefix: string; + prefix?: string; } diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/volume/DataSync.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/volume/DataSync.ts index 6f45121dd6db..abe664c302a8 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/volume/DataSync.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/volume/DataSync.ts @@ -4,13 +4,13 @@ import { DataSyncStatus } from '@/types/cloud/project/ai/volume/DataSyncStatus'; /** AI Solutions Data Sync */ export interface DataSync { /** Data Sync creation date */ - createdAt?: string; + createdAt: string; /** Data Sync Id */ - id?: string; + id: string; /** Data Sync specifications */ - spec?: DataSyncSpec; + spec: DataSyncSpec; /** Data Sync status */ - status?: DataSyncStatus; + status: DataSyncStatus; /** Data Sync update date */ - updatedAt?: string; + updatedAt: string; } diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/volume/DataSyncSpec.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/volume/DataSyncSpec.ts index 2db2dffa05e2..5b9b47b3088b 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/volume/DataSyncSpec.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/volume/DataSyncSpec.ts @@ -7,5 +7,5 @@ export interface DataSyncSpec { /** True if the user has created the object */ manual?: boolean; /** Only sync this volume */ - volume: string; + volume?: string; } diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/volume/DataSyncStatus.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/volume/DataSyncStatus.ts index 9413d2c1a28d..234d4a02574e 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/volume/DataSyncStatus.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/volume/DataSyncStatus.ts @@ -7,13 +7,13 @@ export interface DataSyncStatus { /** Date when the data sync ended */ endedAt?: string; /** Information about the data sync */ - info?: Info; + info: Info; /** Progress status of the data sync */ - progress?: Progress[]; + progress: Progress[]; /** Date when the data sync was queued */ - queuedAt?: string; + queuedAt: string; /** Date when the data sync was started */ startedAt?: string; /** State of the data sync */ - state?: DataSyncStateEnum; + state: DataSyncStateEnum; } diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/volume/PrivateSwift.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/volume/PrivateSwift.ts deleted file mode 100644 index 50312741bb3f..000000000000 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/volume/PrivateSwift.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** AI Solutions private Swift container Volume Object. Deprecated: Use DataStore instead */ -export interface PrivateSwift { - /** Name of the tar archive that needs to be saved */ - archive: string; - /** Public Cloud Storage container to attach */ - container: string; - /** True if data is stored on OVHcloud AI's internal storage */ - internal?: boolean; - /** Prefix to fetch only part of the volume */ - prefix: string; - /** Public Cloud Storage Region */ - region: string; -} diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/volume/Progress.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/volume/Progress.ts index b9b76eddcdc4..3b63eb91d0cc 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/volume/Progress.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/volume/Progress.ts @@ -4,31 +4,31 @@ import { DataSyncProgressStateEnum } from '@/types/cloud/project/ai/volume/DataS /** AI Solutions Progress Object */ export interface Progress { /** Number of completed files */ - completed?: number; + completed: number; /** Progress creation date */ - createdAt?: string; + createdAt: string; /** Number of deleted files */ - deleted?: number; + deleted: number; /** Direction of the progress sync */ - direction?: DataSyncEnum; - /** ETA to finish in seconds. Deprecated */ + direction: DataSyncEnum; + /** @deprecated ETA to finish in seconds. Deprecated */ eta?: number; /** Number of failed files */ - failed?: number; + failed: number; /** Progress Id */ - id?: string; + id: string; /** Volume information */ - info?: string; + info: string; /** Number of processed files */ - processed?: number; + processed: number; /** Number of skipped files */ - skipped?: number; + skipped: number; /** State of the progress sync */ - state?: DataSyncProgressStateEnum; + state: DataSyncProgressStateEnum; /** Total number of files */ - total?: number; + total: number; /** Transferred size in bytes */ - transferredBytes?: number; + transferredBytes: number; /** Progress update date */ - updatedAt?: string; + updatedAt: string; } diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/volume/Standalone.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/volume/Standalone.ts index 159bcecce3d5..75bff343c18e 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/volume/Standalone.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/volume/Standalone.ts @@ -1,5 +1,5 @@ /** AI Solutions No Source Volume Object */ export interface Standalone { /** Name of the volume */ - name: string; + name?: string; } diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/volume/Volume.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/volume/Volume.ts index 699aca9effad..5d2e36ca16b8 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/volume/Volume.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/volume/Volume.ts @@ -1,6 +1,5 @@ import { DataStore } from '@/types/cloud/project/ai/volume/DataStore'; import { VolumePermissionEnum } from '@/types/cloud/project/ai/VolumePermissionEnum'; -import { PrivateSwift } from '@/types/cloud/project/ai/volume/PrivateSwift'; import { PublicGit } from '@/types/cloud/project/ai/volume/PublicGit'; import { PublicSwift } from '@/types/cloud/project/ai/volume/PublicSwift'; import { Standalone } from '@/types/cloud/project/ai/volume/Standalone'; @@ -12,33 +11,29 @@ export interface Volume { /** Enable/disable volume caching */ cache: boolean; /** Public Cloud Storage container to attach */ - container: string; - /** Volume details for data store containers. Deprecated: Use volumeSource.dataStore instead */ - dataStore: DataStore; - /** Volume Id. Deprecated: moved to status.volumes[] */ + container?: string; + /** @deprecated Volume details for data store containers. Deprecated: Use volumeSource.dataStore instead */ + dataStore?: DataStore; + /** @deprecated Volume Id. Deprecated: moved to status.volumes[] */ id?: string; /** Path where to mount the data inside the container */ mountPath: string; /** Permissions to use on the mounted volume */ permission: VolumePermissionEnum; /** Prefix to fetch only part of the volume */ - prefix: string; - /** Volume details for private swift containers. Deprecated: Use volumeSource.dataStore instead */ - privateSwift: PrivateSwift; - /** Volume details for public git repositories. Deprecated: Use volumeSource.publicGit instead */ - publicGit: PublicGit; - /** Volume details for public swift containers. Deprecated: Use volumeSource.publicSwift instead */ - publicSwift: PublicSwift; + prefix?: string; + /** @deprecated Volume details for public git repositories. Deprecated: Use volumeSource.publicGit instead */ + publicGit?: PublicGit; + /** @deprecated Volume details for public swift containers. Deprecated: Use volumeSource.publicSwift instead */ + publicSwift?: PublicSwift; /** Public Cloud Storage Region */ - region: string; - /** Volume details for volumes that do not have a datasource. Deprecated: Use volumeSource.standalone instead */ - standalone: Standalone; - /** Target volume details for data store containers. Deprecated: Use volumeTarget.targetDataStore instead */ - targetDataStore: DataStore; - /** Target volume details for private swift containers. Deprecated: Use volumeTarget.targetDataStore instead */ - targetPrivateSwift: PrivateSwift; + region?: string; + /** @deprecated Volume details for volumes that do not have a datasource. Deprecated: Use volumeSource.standalone instead */ + standalone?: Standalone; + /** @deprecated Target volume details for data store containers. Deprecated: Use volumeTarget.targetDataStore instead */ + targetDataStore?: DataStore; /** Source volume details */ - volumeSource: VolumeSource; + volumeSource?: VolumeSource; /** Target volume details */ - volumeTarget: VolumeTarget; + volumeTarget?: VolumeTarget; } diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/volume/VolumeSource.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/volume/VolumeSource.ts index 35f7e9e73a42..b9a5887769e1 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/volume/VolumeSource.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/volume/VolumeSource.ts @@ -6,11 +6,11 @@ import { Standalone } from '@/types/cloud/project/ai/volume/Standalone'; /** AI Solutions VolumeSource Object. Describes a source (object store) volume */ export interface VolumeSource { /** Volume details for data store containers */ - dataStore: DataStore; + dataStore?: DataStore; /** Volume details for public git repositories */ - publicGit: PublicGit; + publicGit?: PublicGit; /** Volume details for public swift containers */ - publicSwift: PublicSwift; + publicSwift?: PublicSwift; /** Volume details for volumes that do not have a datasource */ - standalone: Standalone; + standalone?: Standalone; } diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/volume/VolumeStatus.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/volume/VolumeStatus.ts index dfe4269b3fbb..67d2425487e0 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/volume/VolumeStatus.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/volume/VolumeStatus.ts @@ -1,9 +1,9 @@ /** AI Solutions Volume Object */ export interface VolumeStatus { /** Volume Id */ - id?: string; + id: string; /** Path where the data is mounted inside the container */ - mountPath?: string; + mountPath: string; /** User volume Id */ - userVolumeId?: string; + userVolumeId: string; } diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/volume/VolumeTarget.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/volume/VolumeTarget.ts index a4fbee0da548..0138dc0cbfec 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/volume/VolumeTarget.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/volume/VolumeTarget.ts @@ -3,5 +3,5 @@ import { DataStore } from '@/types/cloud/project/ai/volume/DataStore'; /** AI Solutions VolumeTarget Object. Describes a target (object store) volume */ export interface VolumeTarget { /** Volume details for data store containers */ - targetDataStore: DataStore; + targetDataStore?: DataStore; } diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/volume/index.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/volume/index.ts index 150dae09e133..fc7ef1f35a11 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/volume/index.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/project/ai/volume/index.ts @@ -5,7 +5,6 @@ export * from './DataSyncProgressStateEnum'; export * from './DataSyncSpec'; export * from './DataSyncStateEnum'; export * from './DataSyncStatus'; -export * from './PrivateSwift'; export * from './Progress'; export * from './PublicGit'; export * from './PublicSwift'; diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/role/Permission.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/role/Permission.ts index ac99cd5dda92..3314c5143e7a 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/role/Permission.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/role/Permission.ts @@ -1,7 +1,7 @@ /** Role permissions */ export interface Permission { /** Permission label */ - label?: string; + label: string; /** Roles having this permission */ - roles?: string[]; + roles: string[]; } diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/role/Role.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/role/Role.ts index 7f3d92f1e19f..777b5ada454b 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/role/Role.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/role/Role.ts @@ -1,11 +1,11 @@ /** Role */ export interface Role { /** Role Description */ - description?: string; + description: string; /** Role id */ - id?: string; + id: string; /** Role Name */ - name?: string; + name: string; /** Permissions granted by this role */ - permissions?: string[]; + permissions: string[]; } diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/role/Roles.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/role/Roles.ts index ebcf9cbdd390..8b8c3deeb073 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/role/Roles.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/role/Roles.ts @@ -4,7 +4,7 @@ import { Service } from '@/types/cloud/role/Service'; /** OpenStack role */ export interface Roles { /** OpenStack roles */ - roles?: Role[]; + roles: Role[]; /** OpenStack services */ - services?: Service[]; + services: Service[]; } diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/role/Service.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/role/Service.ts index 64ebdc56a687..951181f24aaf 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/role/Service.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/role/Service.ts @@ -3,7 +3,7 @@ import { Permission } from '@/types/cloud/role/Permission'; /** OpenStack service */ export interface Service { /** Name of the service */ - name?: string; + name: string; /** List of permissions */ - permissions?: Permission[]; + permissions: Permission[]; } diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/storage/AddContainerPolicy.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/storage/AddContainerPolicy.ts new file mode 100644 index 000000000000..6bda0fc8463c --- /dev/null +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/storage/AddContainerPolicy.ts @@ -0,0 +1,9 @@ +import { PolicyRoleEnum } from '@/types/cloud/storage/PolicyRoleEnum'; + +/** Add storage policy for container */ +export interface AddContainerPolicy { + /** Container object key */ + objectKey: string; + /** Policy role */ + roleName: PolicyRoleEnum; +} diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/storage/ArchiveColdArchiveContainer.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/storage/ArchiveColdArchiveContainer.ts new file mode 100644 index 000000000000..8a0359964155 --- /dev/null +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/storage/ArchiveColdArchiveContainer.ts @@ -0,0 +1,5 @@ +/** Archive a ColdArchiveContainer */ +export interface ArchiveColdArchiveContainer { + /** Archive is locked (cannot be deleted) for the given number of days */ + lockedUntilDays?: number; +} diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/storage/Container.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/storage/Container.ts new file mode 100644 index 000000000000..fde1d9f32027 --- /dev/null +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/storage/Container.ts @@ -0,0 +1,19 @@ +import { TypeEnum } from '@/types/cloud/storage/TypeEnum'; + +/** Container */ +export interface Container { + /** Whether this is an archive container or not */ + archive?: boolean; + /** Container type */ + containerType?: TypeEnum; + /** Storage id */ + id: string; + /** Storage name */ + name: string; + /** */ + region: string; + /** Total bytes stored */ + storedBytes: number; + /** Total objects stored */ + storedObjects: number; +} diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/storage/ContainerAccess.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/storage/ContainerAccess.ts new file mode 100644 index 000000000000..5debeaf3b248 --- /dev/null +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/storage/ContainerAccess.ts @@ -0,0 +1,9 @@ +import { Endpoint } from '@/types/cloud/storage/Endpoint'; + +/** ContainerAccess */ +export interface ContainerAccess { + /** Storage access endpoints */ + endpoints: Endpoint[]; + /** Storage access token */ + token: string; +} diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/storage/ContainerDetail.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/storage/ContainerDetail.ts new file mode 100644 index 000000000000..97b35d81fc01 --- /dev/null +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/storage/ContainerDetail.ts @@ -0,0 +1,26 @@ +import { TypeEnum } from '@/types/cloud/storage/TypeEnum'; +import { ContainerObject } from '@/types/cloud/storage/ContainerObject'; + +/** ContainerDetail */ +export interface ContainerDetail { + /** Whether this is an archive container or not */ + archive: boolean; + /** Container type */ + containerType: TypeEnum; + /** Origins allowed to make Cross Origin Requests */ + cors: string[]; + /** Container name */ + name: string; + /** Objects stored in container */ + objects: ContainerObject[]; + /** @deprecated Public container (DEPRECATED: see containerType) */ + public: boolean; + /** Container region */ + region: string; + /** Container static URL */ + staticUrl: string; + /** Total bytes stored */ + storedBytes: number; + /** Total objects stored */ + storedObjects: number; +} diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/storage/ContainerObject.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/storage/ContainerObject.ts new file mode 100644 index 000000000000..3f9e078e1a32 --- /dev/null +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/storage/ContainerObject.ts @@ -0,0 +1,17 @@ +import { RetrievalStateEnum } from '@/types/cloud/storage/RetrievalStateEnum'; + +/** ContainerObject */ +export interface ContainerObject { + /** Object content type */ + contentType: string; + /** Last modification date */ + lastModified: string; + /** Object name */ + name: string; + /** Object retrieval delay (when unsealing) */ + retrievalDelay: number; + /** Object retrieval state */ + retrievalState: RetrievalStateEnum; + /** Object size */ + size: number; +} diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/storage/ContainerObjectTempURL.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/storage/ContainerObjectTempURL.ts new file mode 100644 index 000000000000..b290d42e844b --- /dev/null +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/storage/ContainerObjectTempURL.ts @@ -0,0 +1,7 @@ +/** ContainerObjectTempURL */ +export interface ContainerObjectTempURL { + /** Temporary URL expiration date */ + expirationDate: string; + /** Temporary URL to get object */ + getURL: string; +} diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/storage/EncryptionAlgorithmEnum.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/storage/EncryptionAlgorithmEnum.ts new file mode 100644 index 000000000000..55498359a4af --- /dev/null +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/storage/EncryptionAlgorithmEnum.ts @@ -0,0 +1,5 @@ +/** Encryption algorithm */ +export enum EncryptionAlgorithmEnum { + 'AES256' = 'AES256', + 'plaintext' = 'plaintext', +} diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/storage/Endpoint.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/storage/Endpoint.ts new file mode 100644 index 000000000000..f65edfb08100 --- /dev/null +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/storage/Endpoint.ts @@ -0,0 +1,7 @@ +/** Endpoint */ +export interface Endpoint { + /** Endpoint region */ + region: string; + /** Endpoint URL */ + url: string; +} diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/storage/PolicyRaw.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/storage/PolicyRaw.ts new file mode 100644 index 000000000000..136c25047017 --- /dev/null +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/storage/PolicyRaw.ts @@ -0,0 +1,5 @@ +/** Raw storage policy */ +export interface PolicyRaw { + /** Raw storage policy */ + policy: string; +} diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/storage/PolicyRoleEnum.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/storage/PolicyRoleEnum.ts new file mode 100644 index 000000000000..8ffea5fea8a0 --- /dev/null +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/storage/PolicyRoleEnum.ts @@ -0,0 +1,7 @@ +/** Storage policy role */ +export enum PolicyRoleEnum { + 'admin' = 'admin', + 'deny' = 'deny', + 'readOnly' = 'readOnly', + 'readWrite' = 'readWrite', +} diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/storage/PresignedURL.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/storage/PresignedURL.ts new file mode 100644 index 000000000000..f4e1f5c2f989 --- /dev/null +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/storage/PresignedURL.ts @@ -0,0 +1,11 @@ +import { PresignedURLMethodEnum } from '@/types/cloud/storage/PresignedURLMethodEnum'; + +/** Presigned URL */ +export interface PresignedURL { + /** Presigned URL method */ + method: PresignedURLMethodEnum; + /** Signed headers */ + signedHeaders: { [key: string]: string }; + /** Presigned URL */ + url: string; +} diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/storage/PresignedURLInput.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/storage/PresignedURLInput.ts new file mode 100644 index 000000000000..3f22d4558c2c --- /dev/null +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/storage/PresignedURLInput.ts @@ -0,0 +1,14 @@ +import { PresignedURLMethodEnum } from '@/types/cloud/storage/PresignedURLMethodEnum'; +import { StorageClassEnum } from '@/types/cloud/storage/StorageClassEnum'; + +/** Inputs to generate a presigned URL */ +export interface PresignedURLInput { + /** URL expiration in seconds */ + expire: number; + /** Presigned URL method */ + method: PresignedURLMethodEnum; + /** Object name */ + object: string; + /** Storage class */ + storageClass: StorageClassEnum; +} diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/storage/PresignedURLMethodEnum.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/storage/PresignedURLMethodEnum.ts new file mode 100644 index 000000000000..5f9780e8c085 --- /dev/null +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/storage/PresignedURLMethodEnum.ts @@ -0,0 +1,6 @@ +/** Presigned URL method */ +export enum PresignedURLMethodEnum { + 'DELETE' = 'DELETE', + 'GET' = 'GET', + 'PUT' = 'PUT', +} diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/storage/Quota.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/storage/Quota.ts new file mode 100644 index 000000000000..6e4d852c4bcd --- /dev/null +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/storage/Quota.ts @@ -0,0 +1,7 @@ +/** Cloud Storage Quota */ +export interface Quota { + /** Current number of buckets */ + buckets: number; + /** Maximum number of buckets */ + maxBuckets: number; +} diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/storage/ReplicationRule.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/storage/ReplicationRule.ts new file mode 100644 index 000000000000..a6a8fb2d7d1a --- /dev/null +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/storage/ReplicationRule.ts @@ -0,0 +1,9 @@ +import { ReplicationRuleStatusEnum } from '@/types/cloud/storage/ReplicationRuleStatusEnum'; + +/** Object Storage replication configuration rule */ +export interface ReplicationRule { + /** Rule ID */ + id: string; + /** Rule status */ + status: ReplicationRuleStatusEnum; +} diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/storage/ReplicationRuleStatusEnum.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/storage/ReplicationRuleStatusEnum.ts new file mode 100644 index 000000000000..b381278f1d17 --- /dev/null +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/storage/ReplicationRuleStatusEnum.ts @@ -0,0 +1,5 @@ +/** Replication rule status */ +export enum ReplicationRuleStatusEnum { + 'disabled' = 'disabled', + 'enabled' = 'enabled', +} diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/storage/RetrievalStateEnum.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/storage/RetrievalStateEnum.ts new file mode 100644 index 000000000000..90acbae79d79 --- /dev/null +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/storage/RetrievalStateEnum.ts @@ -0,0 +1,6 @@ +/** RetrievalStateEnum */ +export enum RetrievalStateEnum { + 'sealed' = 'sealed', + 'unsealed' = 'unsealed', + 'unsealing' = 'unsealing', +} diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/storage/RightEnum.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/storage/RightEnum.ts new file mode 100644 index 000000000000..2e9ee7e9a51b --- /dev/null +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/storage/RightEnum.ts @@ -0,0 +1,6 @@ +/** RightEnum */ +export enum RightEnum { + 'all' = 'all', + 'read' = 'read', + 'write' = 'write', +} diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/storage/StorageClassEnum.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/storage/StorageClassEnum.ts new file mode 100644 index 000000000000..1895d619a449 --- /dev/null +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/storage/StorageClassEnum.ts @@ -0,0 +1,5 @@ +/** Storage class */ +export enum StorageClassEnum { + 'HIGH_PERF' = 'HIGH_PERF', + 'STANDARD' = 'STANDARD', +} diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/storage/TypeEnum.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/storage/TypeEnum.ts new file mode 100644 index 000000000000..3c85d9c35065 --- /dev/null +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/storage/TypeEnum.ts @@ -0,0 +1,6 @@ +/** TypeEnum */ +export enum TypeEnum { + 'private' = 'private', + 'public' = 'public', + 'static' = 'static', +} diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/storage/VersioningStatusEnum.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/storage/VersioningStatusEnum.ts new file mode 100644 index 000000000000..769bd46c1875 --- /dev/null +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/storage/VersioningStatusEnum.ts @@ -0,0 +1,6 @@ +/** Versioning status */ +export enum VersioningStatusEnum { + 'disabled' = 'disabled', + 'enabled' = 'enabled', + 'suspended' = 'suspended', +} diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/storage/index.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/storage/index.ts new file mode 100644 index 000000000000..26382f69826f --- /dev/null +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/storage/index.ts @@ -0,0 +1,22 @@ +export * from './AddContainerPolicy'; +export * from './ArchiveColdArchiveContainer'; +export * from './Container'; +export * from './ContainerAccess'; +export * from './ContainerDetail'; +export * from './ContainerObject'; +export * from './ContainerObjectTempURL'; +export * from './EncryptionAlgorithmEnum'; +export * from './Endpoint'; +export * from './PolicyRaw'; +export * from './PolicyRoleEnum'; +export * from './PresignedURL'; +export * from './PresignedURLInput'; +export * from './PresignedURLMethodEnum'; +export * from './Quota'; +export * from './ReplicationRule'; +export * from './ReplicationRuleStatusEnum'; +export * from './RetrievalStateEnum'; +export * from './RightEnum'; +export * from './StorageClassEnum'; +export * from './TypeEnum'; +export * from './VersioningStatusEnum'; diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/usage/Period.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/usage/Period.ts index f8b2c7016f2a..b08142f5585d 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/usage/Period.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/usage/Period.ts @@ -1,7 +1,7 @@ /** Period */ export interface Period { /** Usage from */ - from?: string; + from: string; /** Usage to */ - to?: string; + to: string; } diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/usage/UsageBill.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/usage/UsageBill.ts index 6c748c9e0972..2eb91f0446b1 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/usage/UsageBill.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/usage/UsageBill.ts @@ -3,13 +3,13 @@ import { PaymentTypeEnum } from '@/types/cloud/usage/PaymentTypeEnum'; /** UsageBill */ export interface UsageBill { /** ID of the bill */ - bill_id?: string; + bill_id: string; /** Amount of credits used in this bill (not necessarily on part) */ - credit?: number; + credit: number; /** Amount of the bill that accounts for services for the usage period, credits not taken into account */ - part?: number; + part: number; /** Payment type */ - payment_type?: PaymentTypeEnum; + payment_type: PaymentTypeEnum; /** Total amount of the bill, credits not taken into account */ - total?: number; + total: number; } diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/usage/UsageCurrent.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/usage/UsageCurrent.ts index b41891cf927b..cd9ff62d1af9 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/usage/UsageCurrent.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/usage/UsageCurrent.ts @@ -8,11 +8,11 @@ export interface UsageCurrent { /** Hourly usage */ hourlyUsage?: HourlyResources; /** Entry last update */ - lastUpdate?: string; + lastUpdate: string; /** Monthly usage */ monthlyUsage?: MonthlyResources; /** Usage dates (from/to) */ - period?: Period; + period: Period; /** Resource usage (billed per hour/minute/second/unit) */ resourcesUsage?: TypedResources[]; } diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/usage/UsageCurrentBills.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/usage/UsageCurrentBills.ts index f73025f12435..825784bc7217 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/usage/UsageCurrentBills.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/usage/UsageCurrentBills.ts @@ -3,5 +3,5 @@ import { UsageBill } from '@/types/cloud/usage/UsageBill'; /** UsageCurrentBills */ export interface UsageCurrentBills { /** Bills related to the current usage */ - bills?: UsageBill[]; + bills: UsageBill[]; } diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/usage/UsageForecast.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/usage/UsageForecast.ts index eb138214342d..6aef801e989b 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/usage/UsageForecast.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/usage/UsageForecast.ts @@ -9,11 +9,11 @@ export interface UsageForecast { /** Hourly forecast */ hourlyUsage?: HourlyResources; /** Entry last update */ - lastUpdate?: string; + lastUpdate: string; /** Monthly forecast */ monthlyUsage?: MonthlyResources; /** Forecast dates (from/to) */ - period?: Period; + period: Period; /** Resource usage forecast (billed per hour/minute/second/unit) */ resourcesUsage?: TypedResources[]; /** Usable credit to pay next bill */ diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/usage/UsageHistory.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/usage/UsageHistory.ts index 8c486d2fdc10..6234ff0d0a56 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/usage/UsageHistory.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/usage/UsageHistory.ts @@ -3,9 +3,9 @@ import { Period } from '@/types/cloud/usage/Period'; /** UsageHistory */ export interface UsageHistory { /** Usage id */ - id?: string; + id: string; /** Entry last update */ - lastUpdate?: string; + lastUpdate: string; /** Usage dates (from/to) */ - period?: Period; + period: Period; } diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/usage/UsageHistoryDetail.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/usage/UsageHistoryDetail.ts index 04a147b6ec49..594fb658de2d 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/usage/UsageHistoryDetail.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/usage/UsageHistoryDetail.ts @@ -8,13 +8,13 @@ export interface UsageHistoryDetail { /** Hourly usage */ hourlyUsage?: HourlyResources; /** Usage id */ - id?: string; + id: string; /** Entry last update */ - lastUpdate?: string; + lastUpdate: string; /** Monthly usage */ monthlyUsage?: MonthlyResources; /** Usage dates (from/to) */ - period?: Period; + period: Period; /** Resource usage (billed per hour/minute/second/unit) */ resourcesUsage?: TypedResources[]; } diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/usage/UsageHistoryDetailBills.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/usage/UsageHistoryDetailBills.ts index ee6d49c8367b..4b2e060428d3 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/usage/UsageHistoryDetailBills.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/usage/UsageHistoryDetailBills.ts @@ -3,5 +3,5 @@ import { UsageBill } from '@/types/cloud/usage/UsageBill'; /** UsageHistoryDetailBills */ export interface UsageHistoryDetailBills { /** Bills related to the usage */ - bills?: UsageBill[]; + bills: UsageBill[]; } diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/user/Configuration.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/user/Configuration.ts index a4f403d62f00..a79467bb1f5f 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/user/Configuration.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/user/Configuration.ts @@ -1,5 +1,5 @@ /** Client Cloud Configuration */ export interface Configuration { /** Client configuration */ - content?: string; + content: string; } diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/user/Openrc.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/user/Openrc.ts index c668a84bc9b7..457f9d934533 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/user/Openrc.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/user/Openrc.ts @@ -1,5 +1,5 @@ /** Openrc */ export interface Openrc { /** openrc file */ - content?: string; + content: string; } diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/user/Rclone.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/user/Rclone.ts index ebc18766c048..26720b7387af 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/user/Rclone.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/user/Rclone.ts @@ -1,5 +1,5 @@ /** Rclone */ export interface Rclone { /** rclone configuration file */ - content?: string; + content: string; } diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/user/RoleEnum.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/user/RoleEnum.ts index 88d4831531a7..d7264fc83850 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/user/RoleEnum.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/user/RoleEnum.ts @@ -9,6 +9,9 @@ export enum RoleEnum { 'compute_operator' = 'compute_operator', 'image_operator' = 'image_operator', 'infrastructure_supervisor' = 'infrastructure_supervisor', + 'key-manager_operator' = 'key-manager_operator', + 'key-manager_read' = 'key-manager_read', + 'load-balancer_operator' = 'load-balancer_operator', 'network_operator' = 'network_operator', 'network_security_operator' = 'network_security_operator', 'objectstore_operator' = 'objectstore_operator', diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/user/S3Credentials.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/user/S3Credentials.ts index ebef8c12d472..ba6ceff72a42 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/user/S3Credentials.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/user/S3Credentials.ts @@ -1,9 +1,9 @@ /** S3Credentials */ export interface S3Credentials { /** S3 Access key */ - access?: string; + access: string; /** Tenant id */ - tenantId?: string; + tenantId: string; /** User id */ - userId?: string; + userId: string; } diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/user/S3CredentialsSecretOnly.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/user/S3CredentialsSecretOnly.ts index 00c0985adb57..821eab8b9d21 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/user/S3CredentialsSecretOnly.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/user/S3CredentialsSecretOnly.ts @@ -1,5 +1,5 @@ /** S3CredentialsSecretOnly */ export interface S3CredentialsSecretOnly { /** S3 Access key secret */ - secret?: string; + secret: string; } diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/user/S3CredentialsWithSecret.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/user/S3CredentialsWithSecret.ts index cc500c338466..8a728c3311c4 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/user/S3CredentialsWithSecret.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/user/S3CredentialsWithSecret.ts @@ -1,11 +1,11 @@ /** S3CredentialsWithSecret */ export interface S3CredentialsWithSecret { /** S3 Access key */ - access?: string; + access: string; /** S3 Access key secret */ - secret?: string; + secret: string; /** Tenant id */ - tenantId?: string; + tenantId: string; /** User id */ - userId?: string; + userId: string; } diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/user/User.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/user/User.ts index 15e051293366..0c8d68f3ba0e 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/user/User.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/user/User.ts @@ -4,17 +4,17 @@ import { UserStatusEnum } from '@/types/cloud/user/UserStatusEnum'; /** User */ export interface User { /** User creation date */ - creationDate?: string; + creationDate: string; /** User description */ - description?: string; + description: string; /** User id */ - id?: number; + id: number; /** User id on openstack */ openstackId?: string; /** User roles */ - roles?: Role[]; + roles: Role[]; /** User status */ - status?: UserStatusEnum; + status: UserStatusEnum; /** Username */ - username?: string; + username: string; } diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/user/UserDetail.ts b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/user/UserDetail.ts index 38e0f1d43f61..5b764765422f 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/cloud/user/UserDetail.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/cloud/user/UserDetail.ts @@ -4,19 +4,19 @@ import { UserStatusEnum } from '@/types/cloud/user/UserStatusEnum'; /** UserDetail */ export interface UserDetail { /** User creation date */ - creationDate?: string; + creationDate: string; /** User description */ - description?: string; + description: string; /** User id */ - id?: number; + id: number; /** User id on openstack */ openstackId?: string; /** User password */ - password?: string; + password: string; /** User roles */ - roles?: Role[]; + roles: Role[]; /** User status */ - status?: UserStatusEnum; + status: UserStatusEnum; /** Username */ - username?: string; + username: string; } diff --git a/packages/manager/apps/pci-ai-dashboard/src/types/index.ts b/packages/manager/apps/pci-ai-dashboard/src/types/index.ts index 8d5a61cab7c5..0559bd7eb635 100644 --- a/packages/manager/apps/pci-ai-dashboard/src/types/index.ts +++ b/packages/manager/apps/pci-ai-dashboard/src/types/index.ts @@ -1 +1 @@ -export * from './Ip'; \ No newline at end of file +export * from './Ip';