mirror of
https://github.com/GlueOps/autoglue.git
synced 2026-02-14 13:20:05 +01:00
83 lines
1.6 KiB
TypeScript
83 lines
1.6 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";
|
|
import type { DtoJWK } from "./DtoJWK";
|
|
import {
|
|
DtoJWKFromJSON,
|
|
DtoJWKFromJSONTyped,
|
|
DtoJWKToJSON,
|
|
DtoJWKToJSONTyped,
|
|
} from "./DtoJWK";
|
|
|
|
/**
|
|
*
|
|
* @export
|
|
* @interface DtoJWKS
|
|
*/
|
|
export interface DtoJWKS {
|
|
/**
|
|
*
|
|
* @type {Array<DtoJWK>}
|
|
* @memberof DtoJWKS
|
|
*/
|
|
keys?: Array<DtoJWK>;
|
|
}
|
|
|
|
/**
|
|
* Check if a given object implements the DtoJWKS interface.
|
|
*/
|
|
export function instanceOfDtoJWKS(value: object): value is DtoJWKS {
|
|
return true;
|
|
}
|
|
|
|
export function DtoJWKSFromJSON(json: any): DtoJWKS {
|
|
return DtoJWKSFromJSONTyped(json, false);
|
|
}
|
|
|
|
export function DtoJWKSFromJSONTyped(
|
|
json: any,
|
|
ignoreDiscriminator: boolean,
|
|
): DtoJWKS {
|
|
if (json == null) {
|
|
return json;
|
|
}
|
|
return {
|
|
keys:
|
|
json["keys"] == null
|
|
? undefined
|
|
: (json["keys"] as Array<any>).map(DtoJWKFromJSON),
|
|
};
|
|
}
|
|
|
|
export function DtoJWKSToJSON(json: any): DtoJWKS {
|
|
return DtoJWKSToJSONTyped(json, false);
|
|
}
|
|
|
|
export function DtoJWKSToJSONTyped(
|
|
value?: DtoJWKS | null,
|
|
ignoreDiscriminator: boolean = false,
|
|
): any {
|
|
if (value == null) {
|
|
return value;
|
|
}
|
|
|
|
return {
|
|
keys:
|
|
value["keys"] == null
|
|
? undefined
|
|
: (value["keys"] as Array<any>).map(DtoJWKToJSON),
|
|
};
|
|
}
|