/* tslint:disable */ /* eslint-disable */ /** * KubeVirt API * This is KubeVirt API an add-on for Kubernetes. * * The version of the OpenAPI document: 1.0.0 * Contact: kubevirt-dev@googlegroups.com * * 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 } from '../runtime'; /** * SEVMeasurementInfo contains information about the guest launch measurement. * @export * @interface V1SEVMeasurementInfo */ export interface V1SEVMeasurementInfo { /** * API major version of the SEV host. * @type {number} * @memberof V1SEVMeasurementInfo */ apiMajor?: number; /** * API minor version of the SEV host. * @type {number} * @memberof V1SEVMeasurementInfo */ apiMinor?: number; /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @type {string} * @memberof V1SEVMeasurementInfo */ apiVersion?: string; /** * Build ID of the SEV host. * @type {number} * @memberof V1SEVMeasurementInfo */ buildID?: number; /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @type {string} * @memberof V1SEVMeasurementInfo */ kind?: string; /** * SHA256 of the loader binary * @type {string} * @memberof V1SEVMeasurementInfo */ loaderSHA?: string; /** * Base64 encoded launch measurement of the SEV guest. * @type {string} * @memberof V1SEVMeasurementInfo */ measurement?: string; /** * Policy of the SEV guest. * @type {number} * @memberof V1SEVMeasurementInfo */ policy?: number; } export function V1SEVMeasurementInfoFromJSON(json: any): V1SEVMeasurementInfo { return V1SEVMeasurementInfoFromJSONTyped(json, false); } export function V1SEVMeasurementInfoFromJSONTyped( json: any, _ignoreDiscriminator: boolean, ): V1SEVMeasurementInfo { if (json === undefined || json === null) { return json; } return { apiMajor: !exists(json, 'apiMajor') ? undefined : json['apiMajor'], apiMinor: !exists(json, 'apiMinor') ? undefined : json['apiMinor'], apiVersion: !exists(json, 'apiVersion') ? undefined : json['apiVersion'], buildID: !exists(json, 'buildID') ? undefined : json['buildID'], kind: !exists(json, 'kind') ? undefined : json['kind'], loaderSHA: !exists(json, 'loaderSHA') ? undefined : json['loaderSHA'], measurement: !exists(json, 'measurement') ? undefined : json['measurement'], policy: !exists(json, 'policy') ? undefined : json['policy'], }; } export function V1SEVMeasurementInfoToJSON(value?: V1SEVMeasurementInfo | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { apiMajor: value.apiMajor, apiMinor: value.apiMinor, apiVersion: value.apiVersion, buildID: value.buildID, kind: value.kind, loaderSHA: value.loaderSHA, measurement: value.measurement, policy: value.policy, }; }