UNPKG

@codingame/kubevirt-api

Version:

kubevirt OpenAPI automation for TypeScript

50 lines 2.22 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 { IoK8sApiFlowcontrolV1NonResourcePolicyRuleFromJSON, IoK8sApiFlowcontrolV1NonResourcePolicyRuleToJSON, IoK8sApiFlowcontrolV1ResourcePolicyRuleFromJSON, IoK8sApiFlowcontrolV1ResourcePolicyRuleToJSON, IoK8sApiFlowcontrolV1SubjectFromJSON, IoK8sApiFlowcontrolV1SubjectToJSON, } from './'; export function IoK8sApiFlowcontrolV1PolicyRulesWithSubjectsFromJSON(json) { return IoK8sApiFlowcontrolV1PolicyRulesWithSubjectsFromJSONTyped(json, false); } export function IoK8sApiFlowcontrolV1PolicyRulesWithSubjectsFromJSONTyped(json, _ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { nonResourceRules: !exists(json, 'nonResourceRules') ? undefined : json['nonResourceRules'].map(IoK8sApiFlowcontrolV1NonResourcePolicyRuleFromJSON), resourceRules: !exists(json, 'resourceRules') ? undefined : json['resourceRules'].map(IoK8sApiFlowcontrolV1ResourcePolicyRuleFromJSON), subjects: json['subjects'].map(IoK8sApiFlowcontrolV1SubjectFromJSON), }; } export function IoK8sApiFlowcontrolV1PolicyRulesWithSubjectsToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { nonResourceRules: value.nonResourceRules === undefined ? undefined : value.nonResourceRules.map(IoK8sApiFlowcontrolV1NonResourcePolicyRuleToJSON), resourceRules: value.resourceRules === undefined ? undefined : value.resourceRules.map(IoK8sApiFlowcontrolV1ResourcePolicyRuleToJSON), subjects: value.subjects.map(IoK8sApiFlowcontrolV1SubjectToJSON), }; } //# sourceMappingURL=IoK8sApiFlowcontrolV1PolicyRulesWithSubjects.js.map