@codingame/kubevirt-api
Version:
kubevirt OpenAPI automation for TypeScript
47 lines • 1.73 kB
JavaScript
/* tslint:disable */
/* eslint-disable */
/**
* Kubernetes
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: unversioned
*
*
* 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';
export function IoK8sApiCoreV1WindowsSecurityContextOptionsFromJSON(json) {
return IoK8sApiCoreV1WindowsSecurityContextOptionsFromJSONTyped(json, false);
}
export function IoK8sApiCoreV1WindowsSecurityContextOptionsFromJSONTyped(json, _ignoreDiscriminator) {
if (json === undefined || json === null) {
return json;
}
return {
gmsaCredentialSpec: !exists(json, 'gmsaCredentialSpec')
? undefined
: json['gmsaCredentialSpec'],
gmsaCredentialSpecName: !exists(json, 'gmsaCredentialSpecName')
? undefined
: json['gmsaCredentialSpecName'],
hostProcess: !exists(json, 'hostProcess') ? undefined : json['hostProcess'],
runAsUserName: !exists(json, 'runAsUserName') ? undefined : json['runAsUserName'],
};
}
export function IoK8sApiCoreV1WindowsSecurityContextOptionsToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
gmsaCredentialSpec: value.gmsaCredentialSpec,
gmsaCredentialSpecName: value.gmsaCredentialSpecName,
hostProcess: value.hostProcess,
runAsUserName: value.runAsUserName,
};
}
//# sourceMappingURL=IoK8sApiCoreV1WindowsSecurityContextOptions.js.map