/* 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 { IoK8sApiCoreV1AttachedVolume, IoK8sApiCoreV1AttachedVolumeFromJSON, IoK8sApiCoreV1AttachedVolumeToJSON, IoK8sApiCoreV1ContainerImage, IoK8sApiCoreV1ContainerImageFromJSON, IoK8sApiCoreV1ContainerImageToJSON, IoK8sApiCoreV1NodeAddress, IoK8sApiCoreV1NodeAddressFromJSON, IoK8sApiCoreV1NodeAddressToJSON, IoK8sApiCoreV1NodeCondition, IoK8sApiCoreV1NodeConditionFromJSON, IoK8sApiCoreV1NodeConditionToJSON, IoK8sApiCoreV1NodeConfigStatus, IoK8sApiCoreV1NodeConfigStatusFromJSON, IoK8sApiCoreV1NodeConfigStatusToJSON, IoK8sApiCoreV1NodeDaemonEndpoints, IoK8sApiCoreV1NodeDaemonEndpointsFromJSON, IoK8sApiCoreV1NodeDaemonEndpointsToJSON, IoK8sApiCoreV1NodeFeatures, IoK8sApiCoreV1NodeFeaturesFromJSON, IoK8sApiCoreV1NodeFeaturesToJSON, IoK8sApiCoreV1NodeRuntimeHandler, IoK8sApiCoreV1NodeRuntimeHandlerFromJSON, IoK8sApiCoreV1NodeRuntimeHandlerToJSON, IoK8sApiCoreV1NodeSystemInfo, IoK8sApiCoreV1NodeSystemInfoFromJSON, IoK8sApiCoreV1NodeSystemInfoToJSON, } from './'; /** * NodeStatus is information about the current status of a node. * @export * @interface IoK8sApiCoreV1NodeStatus */ export interface IoK8sApiCoreV1NodeStatus { /** * List of addresses reachable to the node. Queried from cloud provider, if available. More info: https://kubernetes.io/docs/reference/node/node-status/#addresses Note: This field is declared as mergeable, but the merge key is not sufficiently unique, which can cause data corruption when it is merged. Callers should instead use a full-replacement patch. See https://pr.k8s.io/79391 for an example. Consumers should assume that addresses can change during the lifetime of a Node. However, there are some exceptions where this may not be possible, such as Pods that inherit a Node's address in its own status or consumers of the downward API (status.hostIP). * @type {Array} * @memberof IoK8sApiCoreV1NodeStatus */ addresses?: Array; /** * Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity. * @type {{ [key: string]: string; }} * @memberof IoK8sApiCoreV1NodeStatus */ allocatable?: { [key: string]: string }; /** * Capacity represents the total resources of a node. More info: https://kubernetes.io/docs/reference/node/node-status/#capacity * @type {{ [key: string]: string; }} * @memberof IoK8sApiCoreV1NodeStatus */ capacity?: { [key: string]: string }; /** * Conditions is an array of current observed node conditions. More info: https://kubernetes.io/docs/reference/node/node-status/#condition * @type {Array} * @memberof IoK8sApiCoreV1NodeStatus */ conditions?: Array; /** * * @type {IoK8sApiCoreV1NodeConfigStatus} * @memberof IoK8sApiCoreV1NodeStatus */ config?: IoK8sApiCoreV1NodeConfigStatus; /** * * @type {IoK8sApiCoreV1NodeDaemonEndpoints} * @memberof IoK8sApiCoreV1NodeStatus */ daemonEndpoints?: IoK8sApiCoreV1NodeDaemonEndpoints; /** * * @type {IoK8sApiCoreV1NodeFeatures} * @memberof IoK8sApiCoreV1NodeStatus */ features?: IoK8sApiCoreV1NodeFeatures; /** * List of container images on this node * @type {Array} * @memberof IoK8sApiCoreV1NodeStatus */ images?: Array; /** * * @type {IoK8sApiCoreV1NodeSystemInfo} * @memberof IoK8sApiCoreV1NodeStatus */ nodeInfo?: IoK8sApiCoreV1NodeSystemInfo; /** * NodePhase is the recently observed lifecycle phase of the node. More info: https://kubernetes.io/docs/concepts/nodes/node/#phase The field is never populated, and now is deprecated. * @type {string} * @memberof IoK8sApiCoreV1NodeStatus */ phase?: string; /** * The available runtime handlers. * @type {Array} * @memberof IoK8sApiCoreV1NodeStatus */ runtimeHandlers?: Array; /** * List of volumes that are attached to the node. * @type {Array} * @memberof IoK8sApiCoreV1NodeStatus */ volumesAttached?: Array; /** * List of attachable volumes in use (mounted) by the node. * @type {Array} * @memberof IoK8sApiCoreV1NodeStatus */ volumesInUse?: Array; } export function IoK8sApiCoreV1NodeStatusFromJSON(json: any): IoK8sApiCoreV1NodeStatus { return IoK8sApiCoreV1NodeStatusFromJSONTyped(json, false); } export function IoK8sApiCoreV1NodeStatusFromJSONTyped( json: any, _ignoreDiscriminator: boolean, ): IoK8sApiCoreV1NodeStatus { if (json === undefined || json === null) { return json; } return { addresses: !exists(json, 'addresses') ? undefined : (json['addresses'] as Array).map(IoK8sApiCoreV1NodeAddressFromJSON), allocatable: !exists(json, 'allocatable') ? undefined : json['allocatable'], capacity: !exists(json, 'capacity') ? undefined : json['capacity'], conditions: !exists(json, 'conditions') ? undefined : (json['conditions'] as Array).map(IoK8sApiCoreV1NodeConditionFromJSON), config: !exists(json, 'config') ? undefined : IoK8sApiCoreV1NodeConfigStatusFromJSON(json['config']), daemonEndpoints: !exists(json, 'daemonEndpoints') ? undefined : IoK8sApiCoreV1NodeDaemonEndpointsFromJSON(json['daemonEndpoints']), features: !exists(json, 'features') ? undefined : IoK8sApiCoreV1NodeFeaturesFromJSON(json['features']), images: !exists(json, 'images') ? undefined : (json['images'] as Array).map(IoK8sApiCoreV1ContainerImageFromJSON), nodeInfo: !exists(json, 'nodeInfo') ? undefined : IoK8sApiCoreV1NodeSystemInfoFromJSON(json['nodeInfo']), phase: !exists(json, 'phase') ? undefined : json['phase'], runtimeHandlers: !exists(json, 'runtimeHandlers') ? undefined : (json['runtimeHandlers'] as Array).map(IoK8sApiCoreV1NodeRuntimeHandlerFromJSON), volumesAttached: !exists(json, 'volumesAttached') ? undefined : (json['volumesAttached'] as Array).map(IoK8sApiCoreV1AttachedVolumeFromJSON), volumesInUse: !exists(json, 'volumesInUse') ? undefined : json['volumesInUse'], }; } export function IoK8sApiCoreV1NodeStatusToJSON(value?: IoK8sApiCoreV1NodeStatus | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { addresses: value.addresses === undefined ? undefined : (value.addresses as Array).map(IoK8sApiCoreV1NodeAddressToJSON), allocatable: value.allocatable, capacity: value.capacity, conditions: value.conditions === undefined ? undefined : (value.conditions as Array).map(IoK8sApiCoreV1NodeConditionToJSON), config: IoK8sApiCoreV1NodeConfigStatusToJSON(value.config), daemonEndpoints: IoK8sApiCoreV1NodeDaemonEndpointsToJSON(value.daemonEndpoints), features: IoK8sApiCoreV1NodeFeaturesToJSON(value.features), images: value.images === undefined ? undefined : (value.images as Array).map(IoK8sApiCoreV1ContainerImageToJSON), nodeInfo: IoK8sApiCoreV1NodeSystemInfoToJSON(value.nodeInfo), phase: value.phase, runtimeHandlers: value.runtimeHandlers === undefined ? undefined : (value.runtimeHandlers as Array).map(IoK8sApiCoreV1NodeRuntimeHandlerToJSON), volumesAttached: value.volumesAttached === undefined ? undefined : (value.volumesAttached as Array).map(IoK8sApiCoreV1AttachedVolumeToJSON), volumesInUse: value.volumesInUse, }; }