@codingame/kubevirt-api
Version:
kubevirt OpenAPI automation for TypeScript
45 lines • 1.55 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 IoK8sApiRbacV1PolicyRuleFromJSON(json) {
return IoK8sApiRbacV1PolicyRuleFromJSONTyped(json, false);
}
export function IoK8sApiRbacV1PolicyRuleFromJSONTyped(json, _ignoreDiscriminator) {
if (json === undefined || json === null) {
return json;
}
return {
apiGroups: !exists(json, 'apiGroups') ? undefined : json['apiGroups'],
nonResourceURLs: !exists(json, 'nonResourceURLs') ? undefined : json['nonResourceURLs'],
resourceNames: !exists(json, 'resourceNames') ? undefined : json['resourceNames'],
resources: !exists(json, 'resources') ? undefined : json['resources'],
verbs: json['verbs'],
};
}
export function IoK8sApiRbacV1PolicyRuleToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
apiGroups: value.apiGroups,
nonResourceURLs: value.nonResourceURLs,
resourceNames: value.resourceNames,
resources: value.resources,
verbs: value.verbs,
};
}
//# sourceMappingURL=IoK8sApiRbacV1PolicyRule.js.map