mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-02 20:59:28 -05:00
working search with flat endpoint
This commit is contained in:
118
vue3/src/openapi/models/PatchedStorage.ts
Normal file
118
vue3/src/openapi/models/PatchedStorage.ts
Normal file
@@ -0,0 +1,118 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
*
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* The version of the OpenAPI document: 0.0.0
|
||||
*
|
||||
*
|
||||
* 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, mapValues } from '../runtime';
|
||||
import type { MethodEnum } from './MethodEnum';
|
||||
import {
|
||||
MethodEnumFromJSON,
|
||||
MethodEnumFromJSONTyped,
|
||||
MethodEnumToJSON,
|
||||
} from './MethodEnum';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface PatchedStorage
|
||||
*/
|
||||
export interface PatchedStorage {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof PatchedStorage
|
||||
*/
|
||||
readonly id?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PatchedStorage
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
*
|
||||
* @type {MethodEnum}
|
||||
* @memberof PatchedStorage
|
||||
*/
|
||||
method?: MethodEnum;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PatchedStorage
|
||||
*/
|
||||
username?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PatchedStorage
|
||||
*/
|
||||
password?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PatchedStorage
|
||||
*/
|
||||
token?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof PatchedStorage
|
||||
*/
|
||||
readonly createdBy?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the PatchedStorage interface.
|
||||
*/
|
||||
export function instanceOfPatchedStorage(value: object): boolean {
|
||||
let isInstance = true;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function PatchedStorageFromJSON(json: any): PatchedStorage {
|
||||
return PatchedStorageFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function PatchedStorageFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedStorage {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
||||
'name': !exists(json, 'name') ? undefined : json['name'],
|
||||
'method': !exists(json, 'method') ? undefined : MethodEnumFromJSON(json['method']),
|
||||
'username': !exists(json, 'username') ? undefined : json['username'],
|
||||
'password': !exists(json, 'password') ? undefined : json['password'],
|
||||
'token': !exists(json, 'token') ? undefined : json['token'],
|
||||
'createdBy': !exists(json, 'created_by') ? undefined : json['created_by'],
|
||||
};
|
||||
}
|
||||
|
||||
export function PatchedStorageToJSON(value?: PatchedStorage | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'name': value.name,
|
||||
'method': MethodEnumToJSON(value.method),
|
||||
'username': value.username,
|
||||
'password': value.password,
|
||||
'token': value.token,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user