/* 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. */ /** * FlowDistinguisherMethod specifies the method of a flow distinguisher. * @export * @interface IoK8sApiFlowcontrolV1FlowDistinguisherMethod */ export interface IoK8sApiFlowcontrolV1FlowDistinguisherMethod { /** * `type` is the type of flow distinguisher method The supported types are "ByUser" and "ByNamespace". Required. * @type {string} * @memberof IoK8sApiFlowcontrolV1FlowDistinguisherMethod */ type: string; } export function IoK8sApiFlowcontrolV1FlowDistinguisherMethodFromJSON( json: any, ): IoK8sApiFlowcontrolV1FlowDistinguisherMethod { return IoK8sApiFlowcontrolV1FlowDistinguisherMethodFromJSONTyped(json, false); } export function IoK8sApiFlowcontrolV1FlowDistinguisherMethodFromJSONTyped( json: any, _ignoreDiscriminator: boolean, ): IoK8sApiFlowcontrolV1FlowDistinguisherMethod { if (json === undefined || json === null) { return json; } return { type: json['type'], }; } export function IoK8sApiFlowcontrolV1FlowDistinguisherMethodToJSON( value?: IoK8sApiFlowcontrolV1FlowDistinguisherMethod | null, ): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { type: value.type, }; }