mirror of
https://github.com/GlueOps/autoglue.git
synced 2026-02-14 21:30:05 +01:00
feat: sdk migration in progress
This commit is contained in:
89
ui/src/sdk/models/DtoTokenPair.ts
Normal file
89
ui/src/sdk/models/DtoTokenPair.ts
Normal file
@@ -0,0 +1,89 @@
|
||||
/* 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 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'],
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user