UNPKG

@codingame/kubevirt-api

Version:

kubevirt OpenAPI automation for TypeScript

47 lines 1.86 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'; export function IoK8sApiAdmissionregistrationV1beta1NamedRuleWithOperationsFromJSON(json) { return IoK8sApiAdmissionregistrationV1beta1NamedRuleWithOperationsFromJSONTyped(json, false); } export function IoK8sApiAdmissionregistrationV1beta1NamedRuleWithOperationsFromJSONTyped(json, _ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { apiGroups: !exists(json, 'apiGroups') ? undefined : json['apiGroups'], apiVersions: !exists(json, 'apiVersions') ? undefined : json['apiVersions'], operations: !exists(json, 'operations') ? undefined : json['operations'], resourceNames: !exists(json, 'resourceNames') ? undefined : json['resourceNames'], resources: !exists(json, 'resources') ? undefined : json['resources'], scope: !exists(json, 'scope') ? undefined : json['scope'], }; } export function IoK8sApiAdmissionregistrationV1beta1NamedRuleWithOperationsToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { apiGroups: value.apiGroups, apiVersions: value.apiVersions, operations: value.operations, resourceNames: value.resourceNames, resources: value.resources, scope: value.scope, }; } //# sourceMappingURL=IoK8sApiAdmissionregistrationV1beta1NamedRuleWithOperations.js.map