mirror of
https://github.com/GlueOps/autoglue.git
synced 2026-02-14 13:20:05 +01:00
fis: updates to remove Terraform Provider reserved word collisions
Signed-off-by: allanice001 <allanice001@gmail.com>
This commit is contained in:
93
sdk/ts/src/models/DtoTokenPair.ts
Normal file
93
sdk/ts/src/models/DtoTokenPair.ts
Normal file
@@ -0,0 +1,93 @@
|
||||
/* 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.
|
||||
*/
|
||||
|
||||
/**
|
||||
*
|
||||
* @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