/* 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'; /** * StatefulSetOrdinals describes the policy used for replica ordinal assignment in this StatefulSet. * @export * @interface IoK8sApiAppsV1StatefulSetOrdinals */ export interface IoK8sApiAppsV1StatefulSetOrdinals { /** * start is the number representing the first replica's index. It may be used to number replicas from an alternate index (eg: 1-indexed) over the default 0-indexed names, or to orchestrate progressive movement of replicas from one StatefulSet to another. If set, replica indices will be in the range: * [.spec.ordinals.start, .spec.ordinals.start + .spec.replicas). * If unset, defaults to 0. Replica indices will be in the range: * [0, .spec.replicas). * @type {number} * @memberof IoK8sApiAppsV1StatefulSetOrdinals */ start?: number; } export function IoK8sApiAppsV1StatefulSetOrdinalsFromJSON( json: any, ): IoK8sApiAppsV1StatefulSetOrdinals { return IoK8sApiAppsV1StatefulSetOrdinalsFromJSONTyped(json, false); } export function IoK8sApiAppsV1StatefulSetOrdinalsFromJSONTyped( json: any, _ignoreDiscriminator: boolean, ): IoK8sApiAppsV1StatefulSetOrdinals { if (json === undefined || json === null) { return json; } return { start: !exists(json, 'start') ? undefined : json['start'], }; } export function IoK8sApiAppsV1StatefulSetOrdinalsToJSON( value?: IoK8sApiAppsV1StatefulSetOrdinals | null, ): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { start: value.start, }; }