@codingame/kubevirt-api
Version:
kubevirt OpenAPI automation for TypeScript
43 lines • 1.3 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 IoK8sApiRbacV1SubjectFromJSON(json) {
return IoK8sApiRbacV1SubjectFromJSONTyped(json, false);
}
export function IoK8sApiRbacV1SubjectFromJSONTyped(json, _ignoreDiscriminator) {
if (json === undefined || json === null) {
return json;
}
return {
apiGroup: !exists(json, 'apiGroup') ? undefined : json['apiGroup'],
kind: json['kind'],
name: json['name'],
namespace: !exists(json, 'namespace') ? undefined : json['namespace'],
};
}
export function IoK8sApiRbacV1SubjectToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
apiGroup: value.apiGroup,
kind: value.kind,
name: value.name,
namespace: value.namespace,
};
}
//# sourceMappingURL=IoK8sApiRbacV1Subject.js.map