UNPKG

@codingame/kubevirt-api

Version:

kubevirt OpenAPI automation for TypeScript

44 lines 1.93 kB
/* 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'; import { IoK8sApiAuthorizationV1NonResourceAttributesFromJSON, IoK8sApiAuthorizationV1NonResourceAttributesToJSON, IoK8sApiAuthorizationV1ResourceAttributesFromJSON, IoK8sApiAuthorizationV1ResourceAttributesToJSON, } from './'; export function IoK8sApiAuthorizationV1SelfSubjectAccessReviewSpecFromJSON(json) { return IoK8sApiAuthorizationV1SelfSubjectAccessReviewSpecFromJSONTyped(json, false); } export function IoK8sApiAuthorizationV1SelfSubjectAccessReviewSpecFromJSONTyped(json, _ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { nonResourceAttributes: !exists(json, 'nonResourceAttributes') ? undefined : IoK8sApiAuthorizationV1NonResourceAttributesFromJSON(json['nonResourceAttributes']), resourceAttributes: !exists(json, 'resourceAttributes') ? undefined : IoK8sApiAuthorizationV1ResourceAttributesFromJSON(json['resourceAttributes']), }; } export function IoK8sApiAuthorizationV1SelfSubjectAccessReviewSpecToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { nonResourceAttributes: IoK8sApiAuthorizationV1NonResourceAttributesToJSON(value.nonResourceAttributes), resourceAttributes: IoK8sApiAuthorizationV1ResourceAttributesToJSON(value.resourceAttributes), }; } //# sourceMappingURL=IoK8sApiAuthorizationV1SelfSubjectAccessReviewSpec.js.map