diff --git a/react/data/schema.graphql b/react/data/schema.graphql index 00562e523..cfdf9a29e 100644 --- a/react/data/schema.graphql +++ b/react/data/schema.graphql @@ -214,6 +214,12 @@ type Queries { """Added in 24.03.0.""" model_cards(filter: String, order: String, offset: Int, before: String, after: String, first: Int, last: Int): ModelCardConnection + + """Added in 24.12.0.""" + network(id: String!): NetworkNode + + """Added in 24.12.0.""" + networks(filter: String, order: String, offset: Int, before: String, after: String, first: Int, last: Int): NetworkConnection } """ @@ -1023,6 +1029,11 @@ type ProjectResourcePolicy { """ max_quota_scope_size: BigInt max_vfolder_size: BigInt @deprecated(reason: "Deprecated since 23.09.2.") + + """ + Added in 24.12.0. Limitation of the number of networks created on behalf of project. + """ + max_network_count: Int } type ResourcePreset { @@ -1368,7 +1379,10 @@ type Endpoint implements Item { environ: JSONString name: String resource_opts: JSONString - desired_session_count: Int + + """Added in 24.12.0. Replaces `desired_session_count`.""" + replicas: Int + desired_session_count: Int @deprecated(reason: "Deprecated since 24.12.0. Use `replicas` instead.") cluster_mode: String cluster_size: Int open_to_public: Boolean @@ -1382,6 +1396,9 @@ type Endpoint implements Item { status: String lifecycle_stage: String errors: [InferenceSessionError!]! + + """Added in 24.12.0.""" + live_stat: JSONString } """Added in 24.03.5.""" @@ -1399,6 +1416,9 @@ type Routing implements Item { traffic_ratio: Float created_at: DateTime error_data: JSONString + + """Added in 24.12.0.""" + live_stat: JSONString } type InferenceSessionError { @@ -1595,6 +1615,42 @@ type ModelCardEdge { cursor: String! } +"""Added in 24.12.0.""" +type NetworkNode implements Node { + """The ID of the object""" + id: ID! + row_id: UUID + name: String + ref_name: String + driver: String + project: UUID + domain_name: String + options: JSONString + created_at: DateTime + updated_at: DateTime +} + +"""Added in 24.12.0.""" +type NetworkConnection { + """Pagination data for this connection.""" + pageInfo: PageInfo! + + """Contains the nodes in this connection.""" + edges: [NetworkEdge]! + + """Total count of the GQL nodes of the query.""" + count: Int +} + +"""Added in 24.12.0. A Relay edge containing a `Network` and its cursor.""" +type NetworkEdge { + """The item at the end of the edge""" + node: NetworkNode + + """A cursor for use in pagination""" + cursor: String! +} + """All available GraphQL mutations.""" type Mutations { modify_agent(id: String!, props: ModifyAgentInput!): ModifyAgent @@ -1799,6 +1855,15 @@ type Mutations { """Added in 24.09.0.""" check_and_transit_session_status(input: CheckAndTransitStatusInput!): CheckAndTransitStatus + + """Added in 24.12.0.""" + create_network(driver: String, name: String!, project_id: UUID!): CreateNetwork + + """Added in 24.12.0.""" + modify_network(network: String!, props: ModifyNetworkInput!): ModifyNetwork + + """Added in 24.12.0.""" + delete_network(network: String!): DeleteNetwork } type ModifyAgent { @@ -2310,6 +2375,11 @@ input CreateProjectResourcePolicyInput { """ max_quota_scope_size: BigInt max_vfolder_size: BigInt @deprecated(reason: "Deprecated since 23.09.2.") + + """ + Added in 24.12.0. Limitation of the number of networks created on behalf of project. Set as -1 to allow creating unlimited networks. + """ + max_network_count: Int } type ModifyProjectResourcePolicy { @@ -2328,6 +2398,11 @@ input ModifyProjectResourcePolicyInput { """ max_quota_scope_size: BigInt max_vfolder_size: BigInt @deprecated(reason: "Deprecated since 23.09.2.") + + """ + Added in 24.12.0. Limitation of the number of networks created on behalf of project. Set as -1 to allow creating unlimited networks. + """ + max_network_count: Int } type DeleteProjectResourcePolicy { @@ -2555,7 +2630,10 @@ input ModifyEndpointInput { resource_opts: JSONString cluster_mode: String cluster_size: Int - desired_session_count: Int + + """Added in 24.12.0. Replaces `desired_session_count`.""" + replicas: Int + desired_session_count: Int @deprecated(reason: "Deprecated since 24.12.0. Use `replicas` instead.") image: ImageRefType name: String resource_group: String @@ -2610,4 +2688,29 @@ type CheckAndTransitStatus { input CheckAndTransitStatusInput { ids: [GlobalIDField]! client_mutation_id: String +} + +"""Added in 24.12.0.""" +type CreateNetwork { + ok: Boolean + msg: String + network: NetworkNode +} + +"""Added in 24.12.0.""" +type ModifyNetwork { + ok: Boolean + msg: String + network: NetworkNode +} + +"""Added in 24.12.0.""" +input ModifyNetworkInput { + name: String! +} + +"""Added in 24.12.0.""" +type DeleteNetwork { + ok: Boolean + msg: String } \ No newline at end of file diff --git a/react/src/components/ProjectResourcePolicySettingModal.tsx b/react/src/components/ProjectResourcePolicySettingModal.tsx index 23fcd7104..b688615b0 100644 --- a/react/src/components/ProjectResourcePolicySettingModal.tsx +++ b/react/src/components/ProjectResourcePolicySettingModal.tsx @@ -61,6 +61,7 @@ const ProjectResourcePolicySettingModal: React.FC = ({ max_vfolder_count @since(version: "23.09.6") max_quota_scope_size @since(version: "23.09.2") # ---------------- END --------------------- + max_network_count @since(version: "24.12.0") } `, projectResourcePolicyFrgmt, @@ -103,6 +104,7 @@ const ProjectResourcePolicySettingModal: React.FC = ({ // Initialize unlimited values as a default when creating a new policy.\ max_vfolder_count: 0, max_quota_scope_size: -1, + max_network_count: -1, }; } let maxQuotaScopeSize = projectResourcePolicy?.max_quota_scope_size; @@ -134,6 +136,7 @@ const ProjectResourcePolicySettingModal: React.FC = ({ values?.max_quota_scope_size === -1 ? -1 : GBToBytes(values?.max_quota_scope_size), + max_network_count: values?.max_network_count || -1, }; if (!supportMaxVfolderCount) { delete props.max_vfolder_count; @@ -272,6 +275,16 @@ const ProjectResourcePolicySettingModal: React.FC = ({ ) : null} + {baiClient?.isManagerVersionCompatibleWith('24.12.0') ? ( + + + + ) : null} diff --git a/resources/i18n/de.json b/resources/i18n/de.json index a4a584597..47d566a05 100644 --- a/resources/i18n/de.json +++ b/resources/i18n/de.json @@ -1083,7 +1083,8 @@ "NoDataToExport": "Die Daten für den CSV-Extrakt sind nicht vorhanden.", "ExportCSV": "CSV exportieren", "Tools": "Werkzeuge", - "MemorySizeExceedsLimit": "Die Speichergröße sollte weniger als 300 PiB betragen" + "MemorySizeExceedsLimit": "Die Speichergröße sollte weniger als 300 PiB betragen", + "MaxNetworkCount": "Maximale Netzwerkanzahl" }, "registry": { "Hostname": "Hostname", diff --git a/resources/i18n/el.json b/resources/i18n/el.json index e4db01f92..be864c6f0 100644 --- a/resources/i18n/el.json +++ b/resources/i18n/el.json @@ -1083,7 +1083,8 @@ "NoDataToExport": "Τα δεδομένα για το απόσπασμα CSV δεν υπάρχουν.", "ExportCSV": "εξαγωγή CSV", "Tools": "Εργαλεία", - "MemorySizeExceedsLimit": "Το μέγεθος της μνήμης πρέπει να είναι μικρότερο από 300 PiB" + "MemorySizeExceedsLimit": "Το μέγεθος της μνήμης πρέπει να είναι μικρότερο από 300 PiB", + "MaxNetworkCount": "Μέγιστος αριθμός δικτύου" }, "registry": { "Hostname": "Όνομα κεντρικού υπολογιστή", diff --git a/resources/i18n/en.json b/resources/i18n/en.json index 7076fd1b7..277524f01 100644 --- a/resources/i18n/en.json +++ b/resources/i18n/en.json @@ -1212,7 +1212,8 @@ "NoDataToExport": "The data for the CSV extract does not exist.", "ExportCSV": "export CSV", "Tools": "Tools", - "MemorySizeExceedsLimit": "Memory size should be less than 300 PiB" + "MemorySizeExceedsLimit": "Memory size should be less than 300 PiB", + "MaxNetworkCount": "Max Network Count" }, "registry": { "Hostname": "Hostname", diff --git a/resources/i18n/es.json b/resources/i18n/es.json index 55e1e4612..0462322e9 100644 --- a/resources/i18n/es.json +++ b/resources/i18n/es.json @@ -996,7 +996,8 @@ "NoDataToExport": "Los datos para el extracto CSV no existen.", "ExportCSV": "exportar CSV", "Tools": "Herramientas", - "MemorySizeExceedsLimit": "El tamaño de la memoria debe ser inferior a 300 PiB" + "MemorySizeExceedsLimit": "El tamaño de la memoria debe ser inferior a 300 PiB", + "MaxNetworkCount": "Recuento máximo de red" }, "resourcePreset": { "AboutToDeletePreset": "Está a punto de borrar este preajuste:", diff --git a/resources/i18n/fi.json b/resources/i18n/fi.json index 55c3e627a..f18787c35 100644 --- a/resources/i18n/fi.json +++ b/resources/i18n/fi.json @@ -993,7 +993,8 @@ "NoDataToExport": "CSV-otteen tietoja ei ole olemassa.", "ExportCSV": "vie CSV", "Tools": "Työkalut", - "MemorySizeExceedsLimit": "Muistin koon tulee olla alle 300 PiB" + "MemorySizeExceedsLimit": "Muistin koon tulee olla alle 300 PiB", + "MaxNetworkCount": "Verkkojen enimmäismäärä" }, "resourcePreset": { "AboutToDeletePreset": "Olet poistamassa tätä esiasetusta:", diff --git a/resources/i18n/fr.json b/resources/i18n/fr.json index a60417722..904ecff0e 100644 --- a/resources/i18n/fr.json +++ b/resources/i18n/fr.json @@ -1083,7 +1083,8 @@ "NoDataToExport": "Les données pour l'extrait CSV n'existent pas.", "ExportCSV": "exporter au format CSV", "Tools": "Outils", - "MemorySizeExceedsLimit": "La taille de la mémoire doit être inférieure à 300 PiB" + "MemorySizeExceedsLimit": "La taille de la mémoire doit être inférieure à 300 PiB", + "MaxNetworkCount": "Nombre maximum de réseaux" }, "registry": { "Hostname": "Nom d'hôte", diff --git a/resources/i18n/id.json b/resources/i18n/id.json index d7e108e9e..f715a22cb 100644 --- a/resources/i18n/id.json +++ b/resources/i18n/id.json @@ -1084,7 +1084,8 @@ "NoDataToExport": "Data untuk ekstrak CSV tidak ada.", "ExportCSV": "ekspor CSV", "Tools": "Peralatan", - "MemorySizeExceedsLimit": "Ukuran memori harus kurang dari 300 PiB" + "MemorySizeExceedsLimit": "Ukuran memori harus kurang dari 300 PiB", + "MaxNetworkCount": "Jumlah Jaringan Maks" }, "registry": { "Hostname": "Nama host", diff --git a/resources/i18n/it.json b/resources/i18n/it.json index 50af52d3e..5f0e91af1 100644 --- a/resources/i18n/it.json +++ b/resources/i18n/it.json @@ -1083,7 +1083,8 @@ "NoDataToExport": "I dati per l'estrazione CSV non esistono.", "ExportCSV": "esportare CSV", "Tools": "Utensili", - "MemorySizeExceedsLimit": "La dimensione della memoria deve essere inferiore a 300 PiB" + "MemorySizeExceedsLimit": "La dimensione della memoria deve essere inferiore a 300 PiB", + "MaxNetworkCount": "Conteggio massimo della rete" }, "registry": { "Hostname": "Nome host", diff --git a/resources/i18n/ja.json b/resources/i18n/ja.json index 0bc7f69ea..6799944b0 100644 --- a/resources/i18n/ja.json +++ b/resources/i18n/ja.json @@ -1083,7 +1083,8 @@ "NoDataToExport": "CSV抽出用のデータが存在しません。", "ExportCSV": "CSVエクスポート", "Tools": "ツール", - "MemorySizeExceedsLimit": "メモリ サイズは 300 PiB 未満である必要があります" + "MemorySizeExceedsLimit": "メモリ サイズは 300 PiB 未満である必要があります", + "MaxNetworkCount": "最大ネットワーク数" }, "registry": { "Hostname": "ホスト名", diff --git a/resources/i18n/ko.json b/resources/i18n/ko.json index 357d208b8..5f6a44c89 100644 --- a/resources/i18n/ko.json +++ b/resources/i18n/ko.json @@ -1199,7 +1199,8 @@ "NoDataToExport": "CSV 추출을 위한 데이터가 존재하지 않습니다. ", "ExportCSV": "CSV로 내보내기", "Tools": "도구", - "MemorySizeExceedsLimit": "메모리 크기는 300PiB 미만이어야 합니다." + "MemorySizeExceedsLimit": "메모리 크기는 300PiB 미만이어야 합니다.", + "MaxNetworkCount": "최대 네트워크 수" }, "registry": { "Hostname": "호스트명", diff --git a/resources/i18n/mn.json b/resources/i18n/mn.json index 607d579b9..cafe800b9 100644 --- a/resources/i18n/mn.json +++ b/resources/i18n/mn.json @@ -1083,7 +1083,8 @@ "NoDataToExport": "CSV хандалтын өгөгдөл байхгүй байна.", "ExportCSV": "CSV экспортлох", "Tools": "Багаж хэрэгсэл", - "MemorySizeExceedsLimit": "Санах ойн хэмжээ 300 PiB-ээс бага байх ёстой" + "MemorySizeExceedsLimit": "Санах ойн хэмжээ 300 PiB-ээс бага байх ёстой", + "MaxNetworkCount": "Хамгийн их сүлжээний тоо" }, "registry": { "Hostname": "Хостын нэр", diff --git a/resources/i18n/ms.json b/resources/i18n/ms.json index e81e38dbc..5101956c2 100644 --- a/resources/i18n/ms.json +++ b/resources/i18n/ms.json @@ -1083,7 +1083,8 @@ "NoDataToExport": "Data untuk ekstrak CSV tidak wujud.", "ExportCSV": "eksport CSV", "Tools": "Alatan", - "MemorySizeExceedsLimit": "Saiz memori hendaklah kurang daripada 300 PiB" + "MemorySizeExceedsLimit": "Saiz memori hendaklah kurang daripada 300 PiB", + "MaxNetworkCount": "Kiraan Rangkaian Maks" }, "registry": { "Hostname": "Nama Hos", diff --git a/resources/i18n/pl.json b/resources/i18n/pl.json index 7d57095da..94fdc876c 100644 --- a/resources/i18n/pl.json +++ b/resources/i18n/pl.json @@ -1083,7 +1083,8 @@ "NoDataToExport": "Dane do ekstraktu CSV nie istnieją.", "ExportCSV": "eksportuj plik CSV", "Tools": "Narzędzia", - "MemorySizeExceedsLimit": "Rozmiar pamięci powinien być mniejszy niż 300 PiB" + "MemorySizeExceedsLimit": "Rozmiar pamięci powinien być mniejszy niż 300 PiB", + "MaxNetworkCount": "Maksymalna liczba sieci" }, "registry": { "Hostname": "Nazwa hosta", diff --git a/resources/i18n/pt-BR.json b/resources/i18n/pt-BR.json index 5bbeda483..447a30c19 100644 --- a/resources/i18n/pt-BR.json +++ b/resources/i18n/pt-BR.json @@ -1083,7 +1083,8 @@ "NoDataToExport": "Os dados para a extração CSV não existem.", "ExportCSV": "exportar CSV", "Tools": "Ferramentas", - "MemorySizeExceedsLimit": "O tamanho da memória deve ser inferior a 300 PiB" + "MemorySizeExceedsLimit": "O tamanho da memória deve ser inferior a 300 PiB", + "MaxNetworkCount": "Contagem máxima de rede" }, "registry": { "Hostname": "nome de anfitrião", diff --git a/resources/i18n/pt.json b/resources/i18n/pt.json index 12f91e61b..ca04d423e 100644 --- a/resources/i18n/pt.json +++ b/resources/i18n/pt.json @@ -1083,7 +1083,8 @@ "NoDataToExport": "Os dados para a extração CSV não existem.", "ExportCSV": "exportar CSV", "Tools": "Ferramentas", - "MemorySizeExceedsLimit": "O tamanho da memória deve ser inferior a 300 PiB" + "MemorySizeExceedsLimit": "O tamanho da memória deve ser inferior a 300 PiB", + "MaxNetworkCount": "Contagem máxima de rede" }, "registry": { "Hostname": "nome de anfitrião", diff --git a/resources/i18n/ru.json b/resources/i18n/ru.json index 50967d607..f9f21f3a0 100644 --- a/resources/i18n/ru.json +++ b/resources/i18n/ru.json @@ -1083,7 +1083,8 @@ "NoDataToExport": "Данные для извлечения CSV не существуют.", "ExportCSV": "экспортировать CSV", "Tools": "Инструменты", - "MemorySizeExceedsLimit": "Размер памяти должен быть менее 300 ПиБ." + "MemorySizeExceedsLimit": "Размер памяти должен быть менее 300 ПиБ.", + "MaxNetworkCount": "Максимальное количество сетей" }, "registry": { "Hostname": "Имя хоста", diff --git a/resources/i18n/th.json b/resources/i18n/th.json index e262202b7..902a44ca8 100644 --- a/resources/i18n/th.json +++ b/resources/i18n/th.json @@ -1194,7 +1194,8 @@ "NoDataToExport": "ไม่มีข้อมูลสำหรับการส่งออก CSV", "ExportCSV": "ส่งออก CSV", "Tools": "เครื่องมือ", - "MemorySizeExceedsLimit": "ขนาดหน่วยความจำควรน้อยกว่า 300 PiB" + "MemorySizeExceedsLimit": "ขนาดหน่วยความจำควรน้อยกว่า 300 PiB", + "MaxNetworkCount": "จำนวนเครือข่ายสูงสุด" }, "registry": { "Hostname": "ชื่อโฮสต์", diff --git a/resources/i18n/tr.json b/resources/i18n/tr.json index 9f7fb8d45..023e4eebf 100644 --- a/resources/i18n/tr.json +++ b/resources/i18n/tr.json @@ -1082,7 +1082,8 @@ "NoDataToExport": "CSV ekstresine ilişkin veriler mevcut değil.", "ExportCSV": "CSV'yi dışa aktar", "Tools": "Aletler", - "MemorySizeExceedsLimit": "Bellek boyutu 300 PiB'den az olmalıdır" + "MemorySizeExceedsLimit": "Bellek boyutu 300 PiB'den az olmalıdır", + "MaxNetworkCount": "Maksimum Ağ Sayısı" }, "registry": { "Hostname": "ana bilgisayar adı", diff --git a/resources/i18n/vi.json b/resources/i18n/vi.json index 2982d8d97..1c3537641 100644 --- a/resources/i18n/vi.json +++ b/resources/i18n/vi.json @@ -1083,7 +1083,8 @@ "NoDataToExport": "Dữ liệu cho bản trích xuất CSV không tồn tại.", "ExportCSV": "xuất CSV", "Tools": "Công cụ", - "MemorySizeExceedsLimit": "Kích thước bộ nhớ phải nhỏ hơn 300 PiB" + "MemorySizeExceedsLimit": "Kích thước bộ nhớ phải nhỏ hơn 300 PiB", + "MaxNetworkCount": "Số lượng mạng tối đa" }, "registry": { "Hostname": "Tên máy chủ", diff --git a/resources/i18n/zh-CN.json b/resources/i18n/zh-CN.json index 6f1ab2c52..b18302b3a 100644 --- a/resources/i18n/zh-CN.json +++ b/resources/i18n/zh-CN.json @@ -1083,7 +1083,8 @@ "NoDataToExport": "CSV 提取的数据不存在。", "ExportCSV": "导出 CSV", "Tools": "工具", - "MemorySizeExceedsLimit": "内存大小应小于 300 PiB" + "MemorySizeExceedsLimit": "内存大小应小于 300 PiB", + "MaxNetworkCount": "最大网络数" }, "registry": { "Hostname": "主机名", diff --git a/resources/i18n/zh-TW.json b/resources/i18n/zh-TW.json index 2013ee18d..a27dcda59 100644 --- a/resources/i18n/zh-TW.json +++ b/resources/i18n/zh-TW.json @@ -1084,7 +1084,8 @@ "NoDataToExport": "CSV 擷取的資料不存在。", "ExportCSV": "匯出 CSV", "Tools": "工具", - "MemorySizeExceedsLimit": "記憶體大小應小於 300 PiB" + "MemorySizeExceedsLimit": "記憶體大小應小於 300 PiB", + "MaxNetworkCount": "最大網路數" }, "registry": { "Hostname": "主機名",