Skip to content

Commit

Permalink
VirtualMachineSnapshotContent model
Browse files Browse the repository at this point in the history
  • Loading branch information
upalatucci committed Dec 4, 2023
1 parent 8d51114 commit 77cb6dd
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
23 changes: 23 additions & 0 deletions console/models/VirtualMachineSnapshotContentModel.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { K8sModel } from '@openshift-console/dynamic-plugin-sdk/lib/api/common-types';

import { modelToGroupVersionKind, modelToRef } from '../modelUtils';

const VirtualMachineSnapshotContentModel: K8sModel = {
label: 'VirtualMachineSnapshotContent',
labelPlural: 'VirtualMachineSnapshotContents',
apiVersion: 'v1alpha1',
apiGroup: 'snapshot.kubevirt.io',
plural: 'virtualmachinesnapshotcontents',
abbr: 'VMS',
namespaced: true,
kind: 'VirtualMachineSnapshotContent',
id: 'virtualmachinesnapshotcontent',
crd: true,
};

export const VirtualMachineSnapshotContentModelGroupVersionKind = modelToGroupVersionKind(
VirtualMachineSnapshotContentModel,
);
export const VirtualMachineSnapshotContentModelRef = modelToRef(VirtualMachineSnapshotContentModel);

export default VirtualMachineSnapshotContentModel;
1 change: 1 addition & 0 deletions console/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,4 @@ export * from './VirtualMachineInstanceModel';
export * from './VirtualMachineModel';
export * from './VirtualMachineRestoreModel';
export * from './VirtualMachineSnapshotModel';
export * from './VirtualMachineSnapshotContentModel';
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kubevirt-ui/kubevirt-api",
"version": "1.1.1",
"version": "1.2.0",
"description": "kubevirt OpenAPI automation for TypeScript",
"files": [
"containerized-data-importer/*",
Expand Down

0 comments on commit 77cb6dd

Please sign in to comment.