mirror of
https://github.com/GlueOps/autoglue.git
synced 2026-02-13 21:00:06 +01:00
95 lines
2.0 KiB
TypeScript
95 lines
2.0 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 DtoTokenPair
|
|
*/
|
|
export interface DtoTokenPair {
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof DtoTokenPair
|
|
*/
|
|
access_token?: string;
|
|
/**
|
|
*
|
|
* @type {number}
|
|
* @memberof DtoTokenPair
|
|
*/
|
|
expires_in?: number;
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof DtoTokenPair
|
|
*/
|
|
refresh_token?: string;
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof DtoTokenPair
|
|
*/
|
|
token_type?: string;
|
|
}
|
|
|
|
/**
|
|
* Check if a given object implements the DtoTokenPair interface.
|
|
*/
|
|
export function instanceOfDtoTokenPair(value: object): value is DtoTokenPair {
|
|
return true;
|
|
}
|
|
|
|
export function DtoTokenPairFromJSON(json: any): DtoTokenPair {
|
|
return DtoTokenPairFromJSONTyped(json, false);
|
|
}
|
|
|
|
export function DtoTokenPairFromJSONTyped(
|
|
json: any,
|
|
ignoreDiscriminator: boolean,
|
|
): DtoTokenPair {
|
|
if (json == null) {
|
|
return json;
|
|
}
|
|
return {
|
|
access_token:
|
|
json["access_token"] == null ? undefined : json["access_token"],
|
|
expires_in: json["expires_in"] == null ? undefined : json["expires_in"],
|
|
refresh_token:
|
|
json["refresh_token"] == null ? undefined : json["refresh_token"],
|
|
token_type: json["token_type"] == null ? undefined : json["token_type"],
|
|
};
|
|
}
|
|
|
|
export function DtoTokenPairToJSON(json: any): DtoTokenPair {
|
|
return DtoTokenPairToJSONTyped(json, false);
|
|
}
|
|
|
|
export function DtoTokenPairToJSONTyped(
|
|
value?: DtoTokenPair | null,
|
|
ignoreDiscriminator: boolean = false,
|
|
): any {
|
|
if (value == null) {
|
|
return value;
|
|
}
|
|
|
|
return {
|
|
access_token: value["access_token"],
|
|
expires_in: value["expires_in"],
|
|
refresh_token: value["refresh_token"],
|
|
token_type: value["token_type"],
|
|
};
|
|
}
|