mirror of
https://github.com/GlueOps/autoglue.git
synced 2026-02-19 23:50:06 +01:00
fis: updates to remove Terraform Provider reserved word collisions
Signed-off-by: allanice001 <allanice001@gmail.com>
This commit is contained in:
75
sdk/ts/src/models/GetSSHKey200Response.ts
Normal file
75
sdk/ts/src/models/GetSSHKey200Response.ts
Normal file
@@ -0,0 +1,75 @@
|
||||
/* 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 type {DtoSshResponse} from "./DtoSshResponse";
|
||||
import {DtoSshResponseFromJSONTyped, DtoSshResponseToJSON, instanceOfDtoSshResponse,} from "./DtoSshResponse";
|
||||
import type {DtoSshRevealResponse} from "./DtoSshRevealResponse";
|
||||
import {
|
||||
DtoSshRevealResponseFromJSONTyped,
|
||||
DtoSshRevealResponseToJSON,
|
||||
instanceOfDtoSshRevealResponse,
|
||||
} from "./DtoSshRevealResponse";
|
||||
|
||||
/**
|
||||
* @type GetSSHKey200Response
|
||||
*
|
||||
* @export
|
||||
*/
|
||||
export type GetSSHKey200Response = DtoSshResponse | DtoSshRevealResponse;
|
||||
|
||||
export function GetSSHKey200ResponseFromJSON(json: any): GetSSHKey200Response {
|
||||
return GetSSHKey200ResponseFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function GetSSHKey200ResponseFromJSONTyped(
|
||||
json: any,
|
||||
ignoreDiscriminator: boolean,
|
||||
): GetSSHKey200Response {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
if (typeof json !== "object") {
|
||||
return json;
|
||||
}
|
||||
if (instanceOfDtoSshResponse(json)) {
|
||||
return DtoSshResponseFromJSONTyped(json, true);
|
||||
}
|
||||
if (instanceOfDtoSshRevealResponse(json)) {
|
||||
return DtoSshRevealResponseFromJSONTyped(json, true);
|
||||
}
|
||||
return {} as any;
|
||||
}
|
||||
|
||||
export function GetSSHKey200ResponseToJSON(json: any): any {
|
||||
return GetSSHKey200ResponseToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function GetSSHKey200ResponseToJSONTyped(
|
||||
value?: GetSSHKey200Response | null,
|
||||
ignoreDiscriminator: boolean = false,
|
||||
): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
if (typeof value !== "object") {
|
||||
return value;
|
||||
}
|
||||
if (instanceOfDtoSshResponse(value)) {
|
||||
return DtoSshResponseToJSON(value as DtoSshResponse);
|
||||
}
|
||||
if (instanceOfDtoSshRevealResponse(value)) {
|
||||
return DtoSshRevealResponseToJSON(value as DtoSshRevealResponse);
|
||||
}
|
||||
return {};
|
||||
}
|
||||
Reference in New Issue
Block a user