From b1fe075d02fb20ff9b91f6a537af932e770ba8b9 Mon Sep 17 00:00:00 2001 From: milan-deepfence Date: Mon, 4 Sep 2023 20:52:54 +0530 Subject: [PATCH 1/3] added sync column --- .../apps/dashboard/api-spec.json | 45 +++++++++- .../api/generated/.openapi-generator/FILES | 1 + .../src/api/generated/apis/RegistryApi.ts | 39 ++++---- .../models/ModelCloudNodeControlReq.ts | 4 +- .../generated/models/ModelRegistryListResp.ts | 8 ++ .../models/SearchChainedSearchFilter.ts | 90 +++++++++++++++++++ .../generated/models/SearchSearchNodeReq.ts | 14 +++ .../src/api/generated/models/index.ts | 1 + .../components/RegistryAccountsTable.tsx | 19 ++++ .../src/components/modal/Modal.tsx | 7 +- 10 files changed, 200 insertions(+), 28 deletions(-) create mode 100644 deepfence_frontend/apps/dashboard/src/api/generated/models/SearchChainedSearchFilter.ts diff --git a/deepfence_frontend/apps/dashboard/api-spec.json b/deepfence_frontend/apps/dashboard/api-spec.json index 6adf90f4ca..9fbaddb81e 100644 --- a/deepfence_frontend/apps/dashboard/api-spec.json +++ b/deepfence_frontend/apps/dashboard/api-spec.json @@ -3274,7 +3274,14 @@ } }, "responses": { - "200": { "description": "OK" }, + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/ModelMessageResponse" } + } + } + }, "400": { "description": "Bad Request", "content": { @@ -3423,7 +3430,14 @@ } }, "responses": { - "200": { "description": "OK" }, + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/ModelMessageResponse" } + } + } + }, "400": { "description": "Bad Request", "content": { @@ -3675,7 +3689,14 @@ } }, "responses": { - "200": { "description": "OK" }, + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/ModelMessageResponse" } + } + } + }, "400": { "description": "Bad Request", "content": { @@ -10819,7 +10840,10 @@ "required": ["cloud_provider", "compliance_type"], "type": "object", "properties": { - "cloud_provider": { "enum": ["aws", "gcp", "azure"], "type": "string" }, + "cloud_provider": { + "enum": ["aws", "gcp", "azure", "linux", "kubernetes"], + "type": "string" + }, "compliance_type": { "type": "string" }, "node_id": { "type": "string" } } @@ -11850,6 +11874,7 @@ "properties": { "created_at": { "type": "integer" }, "id": { "type": "integer" }, + "is_syncing": { "type": "boolean" }, "name": { "type": "string" }, "node_id": { "type": "string" }, "non_secret": {}, @@ -12696,6 +12721,15 @@ "size": { "type": "integer" } } }, + "SearchChainedSearchFilter": { + "required": ["node_filter", "relation_ship"], + "type": "object", + "properties": { + "next_filter": { "nullable": true }, + "node_filter": { "$ref": "#/components/schemas/SearchSearchFilter" }, + "relation_ship": { "type": "string" } + } + }, "SearchNodeCountResp": { "required": [ "cloud_provider", @@ -12766,6 +12800,9 @@ "properties": { "extended_node_filter": { "$ref": "#/components/schemas/SearchSearchFilter" }, "node_filter": { "$ref": "#/components/schemas/SearchSearchFilter" }, + "related_node_filter": { + "$ref": "#/components/schemas/SearchChainedSearchFilter" + }, "window": { "$ref": "#/components/schemas/ModelFetchWindow" } } }, diff --git a/deepfence_frontend/apps/dashboard/src/api/generated/.openapi-generator/FILES b/deepfence_frontend/apps/dashboard/src/api/generated/.openapi-generator/FILES index add2407d44..4c7c24b543 100644 --- a/deepfence_frontend/apps/dashboard/src/api/generated/.openapi-generator/FILES +++ b/deepfence_frontend/apps/dashboard/src/api/generated/.openapi-generator/FILES @@ -187,6 +187,7 @@ models/ReportersFieldsFilters.ts models/ReportersMatchFilter.ts models/ReportersOrderFilter.ts models/ReportersOrderSpec.ts +models/SearchChainedSearchFilter.ts models/SearchNodeCountResp.ts models/SearchResultGroup.ts models/SearchResultGroupResp.ts diff --git a/deepfence_frontend/apps/dashboard/src/api/generated/apis/RegistryApi.ts b/deepfence_frontend/apps/dashboard/src/api/generated/apis/RegistryApi.ts index 65437a4475..f1e8dd0a98 100644 --- a/deepfence_frontend/apps/dashboard/src/api/generated/apis/RegistryApi.ts +++ b/deepfence_frontend/apps/dashboard/src/api/generated/apis/RegistryApi.ts @@ -117,13 +117,13 @@ export interface RegistryApiInterface { * @throws {RequiredError} * @memberof RegistryApiInterface */ - addRegistryRaw(requestParameters: AddRegistryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + addRegistryRaw(requestParameters: AddRegistryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Add a new supported registry * Add Registry */ - addRegistry(requestParameters: AddRegistryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + addRegistry(requestParameters: AddRegistryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Add a Google Container registry @@ -135,13 +135,13 @@ export interface RegistryApiInterface { * @throws {RequiredError} * @memberof RegistryApiInterface */ - addRegistryGCRRaw(requestParameters: AddRegistryGCRRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + addRegistryGCRRaw(requestParameters: AddRegistryGCRRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Add a Google Container registry * Add Google Container Registry */ - addRegistryGCR(requestParameters: AddRegistryGCRRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + addRegistryGCR(requestParameters: AddRegistryGCRRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * count of image tags for a given image and registry @@ -310,13 +310,13 @@ export interface RegistryApiInterface { * @throws {RequiredError} * @memberof RegistryApiInterface */ - updateRegistryRaw(requestParameters: UpdateRegistryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + updateRegistryRaw(requestParameters: UpdateRegistryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Update registry * Update Registry */ - updateRegistry(requestParameters: UpdateRegistryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + updateRegistry(requestParameters: UpdateRegistryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; } @@ -329,7 +329,7 @@ export class RegistryApi extends runtime.BaseAPI implements RegistryApiInterface * Add a new supported registry * Add Registry */ - async addRegistryRaw(requestParameters: AddRegistryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + async addRegistryRaw(requestParameters: AddRegistryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -352,22 +352,23 @@ export class RegistryApi extends runtime.BaseAPI implements RegistryApiInterface body: ModelRegistryAddReqToJSON(requestParameters.modelRegistryAddReq), }, initOverrides); - return new runtime.VoidApiResponse(response); + return new runtime.JSONApiResponse(response, (jsonValue) => ModelMessageResponseFromJSON(jsonValue)); } /** * Add a new supported registry * Add Registry */ - async addRegistry(requestParameters: AddRegistryRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - await this.addRegistryRaw(requestParameters, initOverrides); + async addRegistry(requestParameters: AddRegistryRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.addRegistryRaw(requestParameters, initOverrides); + return await response.value(); } /** * Add a Google Container registry * Add Google Container Registry */ - async addRegistryGCRRaw(requestParameters: AddRegistryGCRRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + async addRegistryGCRRaw(requestParameters: AddRegistryGCRRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { if (requestParameters.name === null || requestParameters.name === undefined) { throw new runtime.RequiredError('name','Required parameter requestParameters.name was null or undefined when calling addRegistryGCR.'); } @@ -428,15 +429,16 @@ export class RegistryApi extends runtime.BaseAPI implements RegistryApiInterface body: formParams, }, initOverrides); - return new runtime.VoidApiResponse(response); + return new runtime.JSONApiResponse(response, (jsonValue) => ModelMessageResponseFromJSON(jsonValue)); } /** * Add a Google Container registry * Add Google Container Registry */ - async addRegistryGCR(requestParameters: AddRegistryGCRRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - await this.addRegistryGCRRaw(requestParameters, initOverrides); + async addRegistryGCR(requestParameters: AddRegistryGCRRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.addRegistryGCRRaw(requestParameters, initOverrides); + return await response.value(); } /** @@ -830,7 +832,7 @@ export class RegistryApi extends runtime.BaseAPI implements RegistryApiInterface * Update registry * Update Registry */ - async updateRegistryRaw(requestParameters: UpdateRegistryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + async updateRegistryRaw(requestParameters: UpdateRegistryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { if (requestParameters.registryId === null || requestParameters.registryId === undefined) { throw new runtime.RequiredError('registryId','Required parameter requestParameters.registryId was null or undefined when calling updateRegistry.'); } @@ -857,15 +859,16 @@ export class RegistryApi extends runtime.BaseAPI implements RegistryApiInterface body: ModelRegistryUpdateReqToJSON(requestParameters.modelRegistryUpdateReq), }, initOverrides); - return new runtime.VoidApiResponse(response); + return new runtime.JSONApiResponse(response, (jsonValue) => ModelMessageResponseFromJSON(jsonValue)); } /** * Update registry * Update Registry */ - async updateRegistry(requestParameters: UpdateRegistryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - await this.updateRegistryRaw(requestParameters, initOverrides); + async updateRegistry(requestParameters: UpdateRegistryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.updateRegistryRaw(requestParameters, initOverrides); + return await response.value(); } } diff --git a/deepfence_frontend/apps/dashboard/src/api/generated/models/ModelCloudNodeControlReq.ts b/deepfence_frontend/apps/dashboard/src/api/generated/models/ModelCloudNodeControlReq.ts index 6f3cae31bd..27b7a48018 100644 --- a/deepfence_frontend/apps/dashboard/src/api/generated/models/ModelCloudNodeControlReq.ts +++ b/deepfence_frontend/apps/dashboard/src/api/generated/models/ModelCloudNodeControlReq.ts @@ -46,7 +46,9 @@ export interface ModelCloudNodeControlReq { export const ModelCloudNodeControlReqCloudProviderEnum = { Aws: 'aws', Gcp: 'gcp', - Azure: 'azure' + Azure: 'azure', + Linux: 'linux', + Kubernetes: 'kubernetes' } as const; export type ModelCloudNodeControlReqCloudProviderEnum = typeof ModelCloudNodeControlReqCloudProviderEnum[keyof typeof ModelCloudNodeControlReqCloudProviderEnum]; diff --git a/deepfence_frontend/apps/dashboard/src/api/generated/models/ModelRegistryListResp.ts b/deepfence_frontend/apps/dashboard/src/api/generated/models/ModelRegistryListResp.ts index 2511b00889..ca022b7f1f 100644 --- a/deepfence_frontend/apps/dashboard/src/api/generated/models/ModelRegistryListResp.ts +++ b/deepfence_frontend/apps/dashboard/src/api/generated/models/ModelRegistryListResp.ts @@ -31,6 +31,12 @@ export interface ModelRegistryListResp { * @memberof ModelRegistryListResp */ id?: number; + /** + * + * @type {boolean} + * @memberof ModelRegistryListResp + */ + is_syncing?: boolean; /** * * @type {string} @@ -84,6 +90,7 @@ export function ModelRegistryListRespFromJSONTyped(json: any, ignoreDiscriminato 'created_at': !exists(json, 'created_at') ? undefined : json['created_at'], 'id': !exists(json, 'id') ? undefined : json['id'], + 'is_syncing': !exists(json, 'is_syncing') ? undefined : json['is_syncing'], 'name': !exists(json, 'name') ? undefined : json['name'], 'node_id': !exists(json, 'node_id') ? undefined : json['node_id'], 'non_secret': !exists(json, 'non_secret') ? undefined : json['non_secret'], @@ -103,6 +110,7 @@ export function ModelRegistryListRespToJSON(value?: ModelRegistryListResp | null 'created_at': value.created_at, 'id': value.id, + 'is_syncing': value.is_syncing, 'name': value.name, 'node_id': value.node_id, 'non_secret': value.non_secret, diff --git a/deepfence_frontend/apps/dashboard/src/api/generated/models/SearchChainedSearchFilter.ts b/deepfence_frontend/apps/dashboard/src/api/generated/models/SearchChainedSearchFilter.ts new file mode 100644 index 0000000000..1ea0173160 --- /dev/null +++ b/deepfence_frontend/apps/dashboard/src/api/generated/models/SearchChainedSearchFilter.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Deepfence ThreatMapper + * Deepfence Runtime API provides programmatic control over Deepfence microservice securing your container, kubernetes and cloud deployments. The API abstracts away underlying infrastructure details like cloud provider, container distros, container orchestrator and type of deployment. This is one uniform API to manage and control security alerts, policies and response to alerts for microservices running anywhere i.e. managed pure greenfield container deployments or a mix of containers, VMs and serverless paradigms like AWS Fargate. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: community@deepfence.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { SearchSearchFilter } from './SearchSearchFilter'; +import { + SearchSearchFilterFromJSON, + SearchSearchFilterFromJSONTyped, + SearchSearchFilterToJSON, +} from './SearchSearchFilter'; + +/** + * + * @export + * @interface SearchChainedSearchFilter + */ +export interface SearchChainedSearchFilter { + /** + * + * @type {any} + * @memberof SearchChainedSearchFilter + */ + next_filter?: any | null; + /** + * + * @type {SearchSearchFilter} + * @memberof SearchChainedSearchFilter + */ + node_filter: SearchSearchFilter; + /** + * + * @type {string} + * @memberof SearchChainedSearchFilter + */ + relation_ship: string; +} + +/** + * Check if a given object implements the SearchChainedSearchFilter interface. + */ +export function instanceOfSearchChainedSearchFilter(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "node_filter" in value; + isInstance = isInstance && "relation_ship" in value; + + return isInstance; +} + +export function SearchChainedSearchFilterFromJSON(json: any): SearchChainedSearchFilter { + return SearchChainedSearchFilterFromJSONTyped(json, false); +} + +export function SearchChainedSearchFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchChainedSearchFilter { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'next_filter': !exists(json, 'next_filter') ? undefined : json['next_filter'], + 'node_filter': SearchSearchFilterFromJSON(json['node_filter']), + 'relation_ship': json['relation_ship'], + }; +} + +export function SearchChainedSearchFilterToJSON(value?: SearchChainedSearchFilter | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'next_filter': value.next_filter, + 'node_filter': SearchSearchFilterToJSON(value.node_filter), + 'relation_ship': value.relation_ship, + }; +} + diff --git a/deepfence_frontend/apps/dashboard/src/api/generated/models/SearchSearchNodeReq.ts b/deepfence_frontend/apps/dashboard/src/api/generated/models/SearchSearchNodeReq.ts index 8fa096026a..806101667b 100644 --- a/deepfence_frontend/apps/dashboard/src/api/generated/models/SearchSearchNodeReq.ts +++ b/deepfence_frontend/apps/dashboard/src/api/generated/models/SearchSearchNodeReq.ts @@ -19,6 +19,12 @@ import { ModelFetchWindowFromJSONTyped, ModelFetchWindowToJSON, } from './ModelFetchWindow'; +import type { SearchChainedSearchFilter } from './SearchChainedSearchFilter'; +import { + SearchChainedSearchFilterFromJSON, + SearchChainedSearchFilterFromJSONTyped, + SearchChainedSearchFilterToJSON, +} from './SearchChainedSearchFilter'; import type { SearchSearchFilter } from './SearchSearchFilter'; import { SearchSearchFilterFromJSON, @@ -44,6 +50,12 @@ export interface SearchSearchNodeReq { * @memberof SearchSearchNodeReq */ node_filter: SearchSearchFilter; + /** + * + * @type {SearchChainedSearchFilter} + * @memberof SearchSearchNodeReq + */ + related_node_filter?: SearchChainedSearchFilter; /** * * @type {ModelFetchWindow} @@ -75,6 +87,7 @@ export function SearchSearchNodeReqFromJSONTyped(json: any, ignoreDiscriminator: 'extended_node_filter': !exists(json, 'extended_node_filter') ? undefined : SearchSearchFilterFromJSON(json['extended_node_filter']), 'node_filter': SearchSearchFilterFromJSON(json['node_filter']), + 'related_node_filter': !exists(json, 'related_node_filter') ? undefined : SearchChainedSearchFilterFromJSON(json['related_node_filter']), 'window': ModelFetchWindowFromJSON(json['window']), }; } @@ -90,6 +103,7 @@ export function SearchSearchNodeReqToJSON(value?: SearchSearchNodeReq | null): a 'extended_node_filter': SearchSearchFilterToJSON(value.extended_node_filter), 'node_filter': SearchSearchFilterToJSON(value.node_filter), + 'related_node_filter': SearchChainedSearchFilterToJSON(value.related_node_filter), 'window': ModelFetchWindowToJSON(value.window), }; } diff --git a/deepfence_frontend/apps/dashboard/src/api/generated/models/index.ts b/deepfence_frontend/apps/dashboard/src/api/generated/models/index.ts index 613a7f2c06..829dc1ec07 100644 --- a/deepfence_frontend/apps/dashboard/src/api/generated/models/index.ts +++ b/deepfence_frontend/apps/dashboard/src/api/generated/models/index.ts @@ -164,6 +164,7 @@ export * from './ReportersFieldsFilters'; export * from './ReportersMatchFilter'; export * from './ReportersOrderFilter'; export * from './ReportersOrderSpec'; +export * from './SearchChainedSearchFilter'; export * from './SearchNodeCountResp'; export * from './SearchResultGroup'; export * from './SearchResultGroupResp'; diff --git a/deepfence_frontend/apps/dashboard/src/features/registries/components/RegistryAccountsTable.tsx b/deepfence_frontend/apps/dashboard/src/features/registries/components/RegistryAccountsTable.tsx index d9d4813f84..e0854b7fa2 100644 --- a/deepfence_frontend/apps/dashboard/src/features/registries/components/RegistryAccountsTable.tsx +++ b/deepfence_frontend/apps/dashboard/src/features/registries/components/RegistryAccountsTable.tsx @@ -2,6 +2,7 @@ import { useSuspenseQuery } from '@suspensive/react-query'; import { useMemo, useState } from 'react'; import { generatePath, useParams } from 'react-router-dom'; import { + CircleSpinner, createColumnHelper, Dropdown, DropdownItem, @@ -175,6 +176,24 @@ export const RegistryAccountsTable = ({ size: 110, maxSize: 120, }), + columnHelper.accessor('is_syncing', { + header: () => 'Sync Images', + cell: (info) => ( + <> + {info.getValue() === true ? ( + + + Syncing + + ) : ( + 'Ready' + )} + + ), + minSize: 100, + size: 110, + maxSize: 120, + }), columnHelper.accessor('created_at', { enableSorting: true, header: () => 'Created', diff --git a/deepfence_frontend/packages/ui-components/src/components/modal/Modal.tsx b/deepfence_frontend/packages/ui-components/src/components/modal/Modal.tsx index 7806a11064..b76d775ce4 100644 --- a/deepfence_frontend/packages/ui-components/src/components/modal/Modal.tsx +++ b/deepfence_frontend/packages/ui-components/src/components/modal/Modal.tsx @@ -101,10 +101,6 @@ const contentCva = cva( 'text-p1 dark:text-text-text-and-icon', // padding 'px-5', - { - 'animate-modal-slide-in': open, - // 'animate-pop-out': !open, - }, ), ], { @@ -117,7 +113,8 @@ const contentCva = cva( xxl: 'w-[800px]', }, open: { - true: '', + true: 'animate-modal-slide-in', + // false: 'animate-pop-out', }, }, defaultVariants: { From 8e0a9cb9481f654a8ee89ef5c26477d2976bf68d Mon Sep 17 00:00:00 2001 From: milan-deepfence Date: Tue, 5 Sep 2023 08:09:19 +0530 Subject: [PATCH 2/3] update text --- .../features/registries/components/RegistryAccountsTable.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deepfence_frontend/apps/dashboard/src/features/registries/components/RegistryAccountsTable.tsx b/deepfence_frontend/apps/dashboard/src/features/registries/components/RegistryAccountsTable.tsx index e0854b7fa2..bd24b7e23b 100644 --- a/deepfence_frontend/apps/dashboard/src/features/registries/components/RegistryAccountsTable.tsx +++ b/deepfence_frontend/apps/dashboard/src/features/registries/components/RegistryAccountsTable.tsx @@ -177,7 +177,7 @@ export const RegistryAccountsTable = ({ maxSize: 120, }), columnHelper.accessor('is_syncing', { - header: () => 'Sync Images', + header: () => 'Sync Status', cell: (info) => ( <> {info.getValue() === true ? ( @@ -186,7 +186,7 @@ export const RegistryAccountsTable = ({ Syncing ) : ( - 'Ready' + 'Ready to scan' )} ), From 3e127f02d4dcc13aa4f14c5bebd706e892de04dc Mon Sep 17 00:00:00 2001 From: milan-deepfence Date: Wed, 6 Sep 2023 15:50:11 +0530 Subject: [PATCH 3/3] update spec --- deepfence_frontend/apps/dashboard/api-spec.json | 1 - .../src/api/generated/models/ModelRegistryListResp.ts | 8 -------- 2 files changed, 9 deletions(-) diff --git a/deepfence_frontend/apps/dashboard/api-spec.json b/deepfence_frontend/apps/dashboard/api-spec.json index 9fbaddb81e..78061f4508 100644 --- a/deepfence_frontend/apps/dashboard/api-spec.json +++ b/deepfence_frontend/apps/dashboard/api-spec.json @@ -11874,7 +11874,6 @@ "properties": { "created_at": { "type": "integer" }, "id": { "type": "integer" }, - "is_syncing": { "type": "boolean" }, "name": { "type": "string" }, "node_id": { "type": "string" }, "non_secret": {}, diff --git a/deepfence_frontend/apps/dashboard/src/api/generated/models/ModelRegistryListResp.ts b/deepfence_frontend/apps/dashboard/src/api/generated/models/ModelRegistryListResp.ts index ca022b7f1f..2511b00889 100644 --- a/deepfence_frontend/apps/dashboard/src/api/generated/models/ModelRegistryListResp.ts +++ b/deepfence_frontend/apps/dashboard/src/api/generated/models/ModelRegistryListResp.ts @@ -31,12 +31,6 @@ export interface ModelRegistryListResp { * @memberof ModelRegistryListResp */ id?: number; - /** - * - * @type {boolean} - * @memberof ModelRegistryListResp - */ - is_syncing?: boolean; /** * * @type {string} @@ -90,7 +84,6 @@ export function ModelRegistryListRespFromJSONTyped(json: any, ignoreDiscriminato 'created_at': !exists(json, 'created_at') ? undefined : json['created_at'], 'id': !exists(json, 'id') ? undefined : json['id'], - 'is_syncing': !exists(json, 'is_syncing') ? undefined : json['is_syncing'], 'name': !exists(json, 'name') ? undefined : json['name'], 'node_id': !exists(json, 'node_id') ? undefined : json['node_id'], 'non_secret': !exists(json, 'non_secret') ? undefined : json['non_secret'], @@ -110,7 +103,6 @@ export function ModelRegistryListRespToJSON(value?: ModelRegistryListResp | null 'created_at': value.created_at, 'id': value.id, - 'is_syncing': value.is_syncing, 'name': value.name, 'node_id': value.node_id, 'non_secret': value.non_secret,