jellyfin-discord-bot/server/jellyfin/models/UpdateUserEasyPasswordReque...

82 lines
2.3 KiB
TypeScript
Raw Normal View History

2023-05-04 23:34:53 +02:00
/* tslint:disable */
/* eslint-disable */
/**
* Jellyfin API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 10.8.9
*
*
* 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';
/**
* The update user easy password request body.
* @export
* @interface UpdateUserEasyPasswordRequest
*/
export interface UpdateUserEasyPasswordRequest {
/**
* Gets or sets the new sha1-hashed password.
* @type {string}
* @memberof UpdateUserEasyPasswordRequest
*/
newPassword?: string | null;
/**
* Gets or sets the new password.
* @type {string}
* @memberof UpdateUserEasyPasswordRequest
*/
newPw?: string | null;
/**
* Gets or sets a value indicating whether to reset the password.
* @type {boolean}
* @memberof UpdateUserEasyPasswordRequest
*/
resetPassword?: boolean;
}
/**
* Check if a given object implements the UpdateUserEasyPasswordRequest interface.
*/
export function instanceOfUpdateUserEasyPasswordRequest(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function UpdateUserEasyPasswordRequestFromJSON(json: any): UpdateUserEasyPasswordRequest {
return UpdateUserEasyPasswordRequestFromJSONTyped(json, false);
}
export function UpdateUserEasyPasswordRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateUserEasyPasswordRequest {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'newPassword': !exists(json, 'NewPassword') ? undefined : json['NewPassword'],
'newPw': !exists(json, 'NewPw') ? undefined : json['NewPw'],
'resetPassword': !exists(json, 'ResetPassword') ? undefined : json['ResetPassword'],
};
}
export function UpdateUserEasyPasswordRequestToJSON(value?: UpdateUserEasyPasswordRequest | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'NewPassword': value.newPassword,
'NewPw': value.newPw,
'ResetPassword': value.resetPassword,
};
}