mirror of
https://github.com/GlueOps/autoglue.git
synced 2026-02-13 12:50:05 +01:00
122 lines
2.7 KiB
TypeScript
122 lines
2.7 KiB
TypeScript
/* tslint:disable */
|
|
/* eslint-disable */
|
|
/**
|
|
* AutoGlue API
|
|
* API for managing K3s clusters across cloud providers
|
|
*
|
|
* The version of the OpenAPI document: 1.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 { mapValues } from "../runtime";
|
|
/**
|
|
*
|
|
* @export
|
|
* @interface HandlersUserAPIKeyOut
|
|
*/
|
|
export interface HandlersUserAPIKeyOut {
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof HandlersUserAPIKeyOut
|
|
*/
|
|
created_at?: string;
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof HandlersUserAPIKeyOut
|
|
*/
|
|
expires_at?: string;
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof HandlersUserAPIKeyOut
|
|
*/
|
|
id?: string;
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof HandlersUserAPIKeyOut
|
|
*/
|
|
last_used_at?: string;
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof HandlersUserAPIKeyOut
|
|
*/
|
|
name?: string;
|
|
/**
|
|
* Shown only on create:
|
|
* @type {string}
|
|
* @memberof HandlersUserAPIKeyOut
|
|
*/
|
|
plain?: string;
|
|
/**
|
|
* "user"
|
|
* @type {string}
|
|
* @memberof HandlersUserAPIKeyOut
|
|
*/
|
|
scope?: string;
|
|
}
|
|
|
|
/**
|
|
* Check if a given object implements the HandlersUserAPIKeyOut interface.
|
|
*/
|
|
export function instanceOfHandlersUserAPIKeyOut(
|
|
value: object,
|
|
): value is HandlersUserAPIKeyOut {
|
|
return true;
|
|
}
|
|
|
|
export function HandlersUserAPIKeyOutFromJSON(
|
|
json: any,
|
|
): HandlersUserAPIKeyOut {
|
|
return HandlersUserAPIKeyOutFromJSONTyped(json, false);
|
|
}
|
|
|
|
export function HandlersUserAPIKeyOutFromJSONTyped(
|
|
json: any,
|
|
ignoreDiscriminator: boolean,
|
|
): HandlersUserAPIKeyOut {
|
|
if (json == null) {
|
|
return json;
|
|
}
|
|
return {
|
|
created_at: json["created_at"] == null ? undefined : json["created_at"],
|
|
expires_at: json["expires_at"] == null ? undefined : json["expires_at"],
|
|
id: json["id"] == null ? undefined : json["id"],
|
|
last_used_at:
|
|
json["last_used_at"] == null ? undefined : json["last_used_at"],
|
|
name: json["name"] == null ? undefined : json["name"],
|
|
plain: json["plain"] == null ? undefined : json["plain"],
|
|
scope: json["scope"] == null ? undefined : json["scope"],
|
|
};
|
|
}
|
|
|
|
export function HandlersUserAPIKeyOutToJSON(json: any): HandlersUserAPIKeyOut {
|
|
return HandlersUserAPIKeyOutToJSONTyped(json, false);
|
|
}
|
|
|
|
export function HandlersUserAPIKeyOutToJSONTyped(
|
|
value?: HandlersUserAPIKeyOut | null,
|
|
ignoreDiscriminator: boolean = false,
|
|
): any {
|
|
if (value == null) {
|
|
return value;
|
|
}
|
|
|
|
return {
|
|
created_at: value["created_at"],
|
|
expires_at: value["expires_at"],
|
|
id: value["id"],
|
|
last_used_at: value["last_used_at"],
|
|
name: value["name"],
|
|
plain: value["plain"],
|
|
scope: value["scope"],
|
|
};
|
|
}
|