/* tslint:disable */ /* eslint-disable */ /** * Migration Planner API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: undefined * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { mapValues } from '../runtime'; /** * Status is a return value for calls that don't return other objects. * @export * @interface Status */ export interface Status { /** * A human-readable description of the status of this operation. * @type {string} * @memberof Status */ message?: string; /** * A machine-readable description of why this operation is in the "Failure" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it. * @type {string} * @memberof Status */ reason?: string; /** * Status of the operation. One of: "Success" or "Failure". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status * @type {string} * @memberof Status */ status?: string; } /** * Check if a given object implements the Status interface. */ export function instanceOfStatus(value: object): value is Status { return true; } export function StatusFromJSON(json: any): Status { return StatusFromJSONTyped(json, false); } export function StatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): Status { if (json == null) { return json; } return { 'message': json['message'] == null ? undefined : json['message'], 'reason': json['reason'] == null ? undefined : json['reason'], 'status': json['status'] == null ? undefined : json['status'], }; } export function StatusToJSON(value?: Status | null): any { if (value == null) { return value; } return { 'message': value['message'], 'reason': value['reason'], 'status': value['status'], }; }