mirror of
https://github.com/GlueOps/autoglue.git
synced 2026-02-14 05:10:05 +01:00
84 lines
1.9 KiB
TypeScript
84 lines
1.9 KiB
TypeScript
/* tslint:disable */
|
|
/* eslint-disable */
|
|
/**
|
|
* AutoGlue API
|
|
* API for managing K3s clusters across cloud providers
|
|
*
|
|
* The version of the OpenAPI document: dev
|
|
*
|
|
*
|
|
* 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";
|
|
/**
|
|
*
|
|
* @export
|
|
* @interface HandlersCreateUserKeyRequest
|
|
*/
|
|
export interface HandlersCreateUserKeyRequest {
|
|
/**
|
|
* optional TTL
|
|
* @type {number}
|
|
* @memberof HandlersCreateUserKeyRequest
|
|
*/
|
|
expires_in_hours?: number;
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof HandlersCreateUserKeyRequest
|
|
*/
|
|
name?: string;
|
|
}
|
|
|
|
/**
|
|
* Check if a given object implements the HandlersCreateUserKeyRequest interface.
|
|
*/
|
|
export function instanceOfHandlersCreateUserKeyRequest(
|
|
value: object,
|
|
): value is HandlersCreateUserKeyRequest {
|
|
return true;
|
|
}
|
|
|
|
export function HandlersCreateUserKeyRequestFromJSON(
|
|
json: any,
|
|
): HandlersCreateUserKeyRequest {
|
|
return HandlersCreateUserKeyRequestFromJSONTyped(json, false);
|
|
}
|
|
|
|
export function HandlersCreateUserKeyRequestFromJSONTyped(
|
|
json: any,
|
|
ignoreDiscriminator: boolean,
|
|
): HandlersCreateUserKeyRequest {
|
|
if (json == null) {
|
|
return json;
|
|
}
|
|
return {
|
|
expires_in_hours:
|
|
json["expires_in_hours"] == null ? undefined : json["expires_in_hours"],
|
|
name: json["name"] == null ? undefined : json["name"],
|
|
};
|
|
}
|
|
|
|
export function HandlersCreateUserKeyRequestToJSON(
|
|
json: any,
|
|
): HandlersCreateUserKeyRequest {
|
|
return HandlersCreateUserKeyRequestToJSONTyped(json, false);
|
|
}
|
|
|
|
export function HandlersCreateUserKeyRequestToJSONTyped(
|
|
value?: HandlersCreateUserKeyRequest | null,
|
|
ignoreDiscriminator: boolean = false,
|
|
): any {
|
|
if (value == null) {
|
|
return value;
|
|
}
|
|
|
|
return {
|
|
expires_in_hours: value["expires_in_hours"],
|
|
name: value["name"],
|
|
};
|
|
}
|