mirror of
https://github.com/GlueOps/autoglue.git
synced 2026-02-13 21:00:06 +01:00
feat: mostly terraform shenanigans, but TF can now create ssh keys and servers
This commit is contained in:
80
sdk/ts/src/models/DtoCreateLabelRequest.ts
Normal file
80
sdk/ts/src/models/DtoCreateLabelRequest.ts
Normal file
@@ -0,0 +1,80 @@
|
||||
/* 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 DtoCreateLabelRequest
|
||||
*/
|
||||
export interface DtoCreateLabelRequest {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof DtoCreateLabelRequest
|
||||
*/
|
||||
key?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof DtoCreateLabelRequest
|
||||
*/
|
||||
value?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the DtoCreateLabelRequest interface.
|
||||
*/
|
||||
export function instanceOfDtoCreateLabelRequest(
|
||||
value: object,
|
||||
): value is DtoCreateLabelRequest {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function DtoCreateLabelRequestFromJSON(
|
||||
json: any,
|
||||
): DtoCreateLabelRequest {
|
||||
return DtoCreateLabelRequestFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function DtoCreateLabelRequestFromJSONTyped(
|
||||
json: any,
|
||||
ignoreDiscriminator: boolean,
|
||||
): DtoCreateLabelRequest {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
key: json["key"] == null ? undefined : json["key"],
|
||||
value: json["value"] == null ? undefined : json["value"],
|
||||
};
|
||||
}
|
||||
|
||||
export function DtoCreateLabelRequestToJSON(json: any): DtoCreateLabelRequest {
|
||||
return DtoCreateLabelRequestToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function DtoCreateLabelRequestToJSONTyped(
|
||||
value?: DtoCreateLabelRequest | null,
|
||||
ignoreDiscriminator: boolean = false,
|
||||
): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
key: value["key"],
|
||||
value: value["value"],
|
||||
};
|
||||
}
|
||||
86
sdk/ts/src/models/DtoLabelResponse.ts
Normal file
86
sdk/ts/src/models/DtoLabelResponse.ts
Normal file
@@ -0,0 +1,86 @@
|
||||
/* 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 DtoLabelResponse
|
||||
*/
|
||||
export interface DtoLabelResponse {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof DtoLabelResponse
|
||||
*/
|
||||
id?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof DtoLabelResponse
|
||||
*/
|
||||
key?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof DtoLabelResponse
|
||||
*/
|
||||
value?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the DtoLabelResponse interface.
|
||||
*/
|
||||
export function instanceOfDtoLabelResponse(
|
||||
value: object,
|
||||
): value is DtoLabelResponse {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function DtoLabelResponseFromJSON(json: any): DtoLabelResponse {
|
||||
return DtoLabelResponseFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function DtoLabelResponseFromJSONTyped(
|
||||
json: any,
|
||||
ignoreDiscriminator: boolean,
|
||||
): DtoLabelResponse {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
id: json["id"] == null ? undefined : json["id"],
|
||||
key: json["key"] == null ? undefined : json["key"],
|
||||
value: json["value"] == null ? undefined : json["value"],
|
||||
};
|
||||
}
|
||||
|
||||
export function DtoLabelResponseToJSON(json: any): DtoLabelResponse {
|
||||
return DtoLabelResponseToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function DtoLabelResponseToJSONTyped(
|
||||
value?: DtoLabelResponse | null,
|
||||
ignoreDiscriminator: boolean = false,
|
||||
): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
id: value["id"],
|
||||
key: value["key"],
|
||||
value: value["value"],
|
||||
};
|
||||
}
|
||||
80
sdk/ts/src/models/DtoUpdateLabelRequest.ts
Normal file
80
sdk/ts/src/models/DtoUpdateLabelRequest.ts
Normal file
@@ -0,0 +1,80 @@
|
||||
/* 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 DtoUpdateLabelRequest
|
||||
*/
|
||||
export interface DtoUpdateLabelRequest {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof DtoUpdateLabelRequest
|
||||
*/
|
||||
key?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof DtoUpdateLabelRequest
|
||||
*/
|
||||
value?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the DtoUpdateLabelRequest interface.
|
||||
*/
|
||||
export function instanceOfDtoUpdateLabelRequest(
|
||||
value: object,
|
||||
): value is DtoUpdateLabelRequest {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function DtoUpdateLabelRequestFromJSON(
|
||||
json: any,
|
||||
): DtoUpdateLabelRequest {
|
||||
return DtoUpdateLabelRequestFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function DtoUpdateLabelRequestFromJSONTyped(
|
||||
json: any,
|
||||
ignoreDiscriminator: boolean,
|
||||
): DtoUpdateLabelRequest {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
key: json["key"] == null ? undefined : json["key"],
|
||||
value: json["value"] == null ? undefined : json["value"],
|
||||
};
|
||||
}
|
||||
|
||||
export function DtoUpdateLabelRequestToJSON(json: any): DtoUpdateLabelRequest {
|
||||
return DtoUpdateLabelRequestToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function DtoUpdateLabelRequestToJSONTyped(
|
||||
value?: DtoUpdateLabelRequest | null,
|
||||
ignoreDiscriminator: boolean = false,
|
||||
): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
key: value["key"],
|
||||
value: value["value"],
|
||||
};
|
||||
}
|
||||
@@ -1,11 +1,13 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export * from "./DtoAuthStartResponse";
|
||||
export * from "./DtoCreateLabelRequest";
|
||||
export * from "./DtoCreateSSHRequest";
|
||||
export * from "./DtoCreateServerRequest";
|
||||
export * from "./DtoCreateTaintRequest";
|
||||
export * from "./DtoJWK";
|
||||
export * from "./DtoJWKS";
|
||||
export * from "./DtoLabelResponse";
|
||||
export * from "./DtoLogoutRequest";
|
||||
export * from "./DtoRefreshRequest";
|
||||
export * from "./DtoServerResponse";
|
||||
@@ -13,6 +15,7 @@ export * from "./DtoSshResponse";
|
||||
export * from "./DtoSshRevealResponse";
|
||||
export * from "./DtoTaintResponse";
|
||||
export * from "./DtoTokenPair";
|
||||
export * from "./DtoUpdateLabelRequest";
|
||||
export * from "./DtoUpdateServerRequest";
|
||||
export * from "./DtoUpdateTaintRequest";
|
||||
export * from "./HandlersCreateUserKeyRequest";
|
||||
|
||||
Reference in New Issue
Block a user