|
1 | 1 | /* tslint:disable */ |
2 | 2 | /* eslint-disable */ |
3 | 3 | /** |
4 | | - * |
| 4 | + * |
5 | 5 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) |
6 | 6 | * |
7 | 7 | * The version of the OpenAPI document: 1.0.0 |
8 | | - * |
| 8 | + * |
9 | 9 | * |
10 | 10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). |
11 | 11 | * https://openapi-generator.tech |
12 | 12 | * Do not edit the class manually. |
13 | 13 | */ |
14 | 14 |
|
15 | | -import { exists, mapValues } from '../runtime'; |
| 15 | +import { exists } from '../runtime'; |
16 | 16 | import type { V1NMStateSpec } from './V1NMStateSpec'; |
17 | | -import { |
18 | | - V1NMStateSpecFromJSON, |
19 | | - V1NMStateSpecFromJSONTyped, |
20 | | - V1NMStateSpecToJSON, |
21 | | -} from './V1NMStateSpec'; |
| 17 | +import { V1NMStateSpecFromJSON, V1NMStateSpecToJSON } from './V1NMStateSpec'; |
22 | 18 | import type { V1NMStateStatus } from './V1NMStateStatus'; |
23 | | -import { |
24 | | - V1NMStateStatusFromJSON, |
25 | | - V1NMStateStatusFromJSONTyped, |
26 | | - V1NMStateStatusToJSON, |
27 | | -} from './V1NMStateStatus'; |
| 19 | +import { V1NMStateStatusFromJSON, V1NMStateStatusToJSON } from './V1NMStateStatus'; |
28 | 20 |
|
29 | 21 | /** |
30 | 22 | * NMState is the Schema for the nmstates API |
31 | 23 | * @export |
32 | 24 | * @interface V1NMState |
33 | 25 | */ |
34 | 26 | export interface V1NMState { |
35 | | - /** |
36 | | - * APIVersion defines the versioned schema of this representation of an object. |
37 | | - * Servers should convert recognized schemas to the latest internal value, and |
38 | | - * may reject unrecognized values. |
39 | | - * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources |
40 | | - * @type {any} |
41 | | - * @memberof V1NMState |
42 | | - */ |
43 | | - apiVersion?: any | null; |
44 | | - /** |
45 | | - * Kind is a string value representing the REST resource this object represents. |
46 | | - * Servers may infer this from the endpoint the client submits requests to. |
47 | | - * Cannot be updated. |
48 | | - * In CamelCase. |
49 | | - * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds |
50 | | - * @type {any} |
51 | | - * @memberof V1NMState |
52 | | - */ |
53 | | - kind?: any | null; |
54 | | - /** |
55 | | - * |
56 | | - * @type {any} |
57 | | - * @memberof V1NMState |
58 | | - */ |
59 | | - metadata?: any | null; |
60 | | - /** |
61 | | - * |
62 | | - * @type {V1NMStateSpec} |
63 | | - * @memberof V1NMState |
64 | | - */ |
65 | | - spec?: V1NMStateSpec; |
66 | | - /** |
67 | | - * |
68 | | - * @type {V1NMStateStatus} |
69 | | - * @memberof V1NMState |
70 | | - */ |
71 | | - status?: V1NMStateStatus; |
| 27 | + /** |
| 28 | + * APIVersion defines the versioned schema of this representation of an object. |
| 29 | + * Servers should convert recognized schemas to the latest internal value, and |
| 30 | + * may reject unrecognized values. |
| 31 | + * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources |
| 32 | + * @type {any} |
| 33 | + * @memberof V1NMState |
| 34 | + */ |
| 35 | + apiVersion?: any | null; |
| 36 | + /** |
| 37 | + * Kind is a string value representing the REST resource this object represents. |
| 38 | + * Servers may infer this from the endpoint the client submits requests to. |
| 39 | + * Cannot be updated. |
| 40 | + * In CamelCase. |
| 41 | + * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds |
| 42 | + * @type {any} |
| 43 | + * @memberof V1NMState |
| 44 | + */ |
| 45 | + kind?: any | null; |
| 46 | + /** |
| 47 | + * |
| 48 | + * @type {any} |
| 49 | + * @memberof V1NMState |
| 50 | + */ |
| 51 | + metadata?: any | null; |
| 52 | + /** |
| 53 | + * |
| 54 | + * @type {V1NMStateSpec} |
| 55 | + * @memberof V1NMState |
| 56 | + */ |
| 57 | + spec?: V1NMStateSpec; |
| 58 | + /** |
| 59 | + * |
| 60 | + * @type {V1NMStateStatus} |
| 61 | + * @memberof V1NMState |
| 62 | + */ |
| 63 | + status?: V1NMStateStatus; |
72 | 64 | } |
73 | 65 |
|
74 | 66 | /** |
75 | 67 | * Check if a given object implements the V1NMState interface. |
76 | 68 | */ |
77 | | -export function instanceOfV1NMState(value: object): boolean { |
78 | | - let isInstance = true; |
| 69 | +export function instanceOfV1NMState(_value: object): boolean { |
| 70 | + const isInstance = true; |
79 | 71 |
|
80 | | - return isInstance; |
| 72 | + return isInstance; |
81 | 73 | } |
82 | 74 |
|
83 | 75 | export function V1NMStateFromJSON(json: any): V1NMState { |
84 | | - return V1NMStateFromJSONTyped(json, false); |
| 76 | + return V1NMStateFromJSONTyped(json, false); |
85 | 77 | } |
86 | 78 |
|
87 | | -export function V1NMStateFromJSONTyped(json: any, ignoreDiscriminator: boolean): V1NMState { |
88 | | - if ((json === undefined) || (json === null)) { |
89 | | - return json; |
90 | | - } |
91 | | - return { |
92 | | - |
93 | | - 'apiVersion': !exists(json, 'apiVersion') ? undefined : json['apiVersion'], |
94 | | - 'kind': !exists(json, 'kind') ? undefined : json['kind'], |
95 | | - 'metadata': !exists(json, 'metadata') ? undefined : json['metadata'], |
96 | | - 'spec': !exists(json, 'spec') ? undefined : V1NMStateSpecFromJSON(json['spec']), |
97 | | - 'status': !exists(json, 'status') ? undefined : V1NMStateStatusFromJSON(json['status']), |
98 | | - }; |
| 79 | +export function V1NMStateFromJSONTyped(json: any, _ignoreDiscriminator: boolean): V1NMState { |
| 80 | + if (json === undefined || json === null) { |
| 81 | + return json; |
| 82 | + } |
| 83 | + return { |
| 84 | + apiVersion: !exists(json, 'apiVersion') ? undefined : json['apiVersion'], |
| 85 | + kind: !exists(json, 'kind') ? undefined : json['kind'], |
| 86 | + metadata: !exists(json, 'metadata') ? undefined : json['metadata'], |
| 87 | + spec: !exists(json, 'spec') ? undefined : V1NMStateSpecFromJSON(json['spec']), |
| 88 | + status: !exists(json, 'status') ? undefined : V1NMStateStatusFromJSON(json['status']), |
| 89 | + }; |
99 | 90 | } |
100 | 91 |
|
101 | 92 | export function V1NMStateToJSON(value?: V1NMState | null): any { |
102 | | - if (value === undefined) { |
103 | | - return undefined; |
104 | | - } |
105 | | - if (value === null) { |
106 | | - return null; |
107 | | - } |
108 | | - return { |
109 | | - |
110 | | - 'apiVersion': value.apiVersion, |
111 | | - 'kind': value.kind, |
112 | | - 'metadata': value.metadata, |
113 | | - 'spec': V1NMStateSpecToJSON(value.spec), |
114 | | - 'status': V1NMStateStatusToJSON(value.status), |
115 | | - }; |
| 93 | + if (value === undefined) { |
| 94 | + return undefined; |
| 95 | + } |
| 96 | + if (value === null) { |
| 97 | + return null; |
| 98 | + } |
| 99 | + return { |
| 100 | + apiVersion: value.apiVersion, |
| 101 | + kind: value.kind, |
| 102 | + metadata: value.metadata, |
| 103 | + spec: V1NMStateSpecToJSON(value.spec), |
| 104 | + status: V1NMStateStatusToJSON(value.status), |
| 105 | + }; |
116 | 106 | } |
117 | | - |
0 commit comments