UNPKG

@codingame/kubevirt-api

Version:

kubevirt OpenAPI automation for TypeScript

45 lines 1.51 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 IoK8sApiFlowcontrolV1ResourcePolicyRuleFromJSON(json) { return IoK8sApiFlowcontrolV1ResourcePolicyRuleFromJSONTyped(json, false); } export function IoK8sApiFlowcontrolV1ResourcePolicyRuleFromJSONTyped(json, _ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { apiGroups: json['apiGroups'], clusterScope: !exists(json, 'clusterScope') ? undefined : json['clusterScope'], namespaces: !exists(json, 'namespaces') ? undefined : json['namespaces'], resources: json['resources'], verbs: json['verbs'], }; } export function IoK8sApiFlowcontrolV1ResourcePolicyRuleToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { apiGroups: value.apiGroups, clusterScope: value.clusterScope, namespaces: value.namespaces, resources: value.resources, verbs: value.verbs, }; } //# sourceMappingURL=IoK8sApiFlowcontrolV1ResourcePolicyRule.js.map