Remove REST API from Arc extension (#11888)

* wip

* Remove old API

* Fix tests
This commit is contained in:
Charles Gagnon
2020-08-20 15:56:46 -07:00
committed by GitHub
parent 9c81db574e
commit b2a1738836
209 changed files with 550 additions and 15997 deletions

View File

@@ -191,19 +191,7 @@ export async function promptAndConfirmPassword(validate: (input: string) => stri
* @param error The error object
*/
export function getErrorMessage(error: any): string {
if (error.body?.reason) {
// For HTTP Errors with a body pull out the reason message since that's usually the most helpful
return error.body.reason;
} else if (error.message) {
if (error.response?.statusMessage) {
// Some Http errors just have a status message as additional detail, but it's not enough on its
// own to be useful so append to the message as well
return `${error.message} (${error.response.statusMessage})`;
}
return error.message;
} else {
return error;
}
return error.message ?? error;
}
/**

View File

@@ -1,20 +0,0 @@
# Updating the Swagger generated clients
The TypeScript clients used to communicate with the controller are generated from the controller's Swagger specification. To update the clients:
1. Get the Swagger specification from a running controller, and save it locally:
* `https://<controller_ip>:30080/api/<api_name>/swagger.json`
2. Generate the clients:
* At the time of writing, [editor.swagger.io](https://editor.swagger.io) does not support typescript-node client generation from OpenAPI 3.x specifications. So we'll use [openapi-generator.tech](https://openapi-generator.tech) instead.
* Run openapi-generator:
* Either by [installing it](https://openapi-generator.tech/docs/installation) (requires Java) and running:
* `openapi-generator generate -i swagger.json -g typescript-node -o out --additional-properties supportsES6=true`
* Or by running the Docker image (works in Linux or PowerShell):
* `docker run --rm -v ${PWD}:/local openapitools/openapi-generator-cli generate -i /local/swagger.json -g typescript-node -o /local/out --additional-properties supportsES6=true`
3. Copy the generated clients (api.ts, api/, model/) to ./generated/<api_name>.
4. The generated clients have some unused imports. This will not compile. VS Code has an "Organize Imports" command (Shift + Alt + O) that fixes this, but it fixes a single file. To organize imports for all files in a folder, you can use the [Folder Source Actions extension](https://marketplace.visualstudio.com/items?itemName=bierner.folder-source-actions). Followed by File -> Save All.

View File

@@ -1,48 +0,0 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the Source EULA. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import * as request from 'request';
import * as vscode from 'vscode';
export interface Authentication {
applyToRequest(requestOptions: request.Options): Promise<void> | void;
}
class SslAuth implements Authentication {
constructor() { }
applyToRequest(requestOptions: request.Options): void {
requestOptions['agentOptions'] = {
rejectUnauthorized: !getIgnoreSslVerificationConfigSetting()
};
}
}
export class BasicAuth extends SslAuth implements Authentication {
constructor(public username: string, public password: string) {
super();
}
applyToRequest(requestOptions: request.Options): void {
super.applyToRequest(requestOptions);
requestOptions.auth = {
username: this.username, password: this.password
};
}
}
/* Retrieves the current setting for whether to ignore SSL verification errors */
export function getIgnoreSslVerificationConfigSetting(): boolean {
const arcConfigSectionName = 'arc';
const ignoreSslConfigName = 'ignoreSslVerification';
try {
const config = vscode.workspace.getConfiguration(arcConfigSectionName);
return config.get<boolean>(ignoreSslConfigName, true);
} catch (error) {
console.error(`Unexpected error retrieving ${arcConfigSectionName}.${ignoreSslConfigName} setting : ${error}`);
}
return true;
}

View File

@@ -1,3 +0,0 @@
// This is the entrypoint for the package
export * from './api/apis';
export * from './model/models';

View File

@@ -1,31 +0,0 @@
export * from './databaseRouterApi';
export * from './databaseValidateRouterApi';
export * from './logsRouterApi';
export * from './metricRouterApi';
export * from './operatorRouterApi';
import * as fs from 'fs';
import * as http from 'http';
import { DatabaseRouterApi } from './databaseRouterApi';
import { DatabaseValidateRouterApi } from './databaseValidateRouterApi';
import { LogsRouterApi } from './logsRouterApi';
import { MetricRouterApi } from './metricRouterApi';
import { OperatorRouterApi } from './operatorRouterApi';
export class HttpError extends Error {
constructor (public response: http.IncomingMessage, public body: any, public statusCode?: number) {
super('HTTP request failed');
this.name = 'HttpError';
}
}
export interface RequestDetailedFile {
value: Buffer;
options?: {
filename?: string;
contentType?: string;
}
}
export type RequestFile = string | Buffer | fs.ReadStream | RequestDetailedFile;
export const APIS = [DatabaseRouterApi, DatabaseValidateRouterApi, LogsRouterApi, MetricRouterApi, OperatorRouterApi];

View File

@@ -1,260 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import localVarRequest = require('request');
import http = require('http');
/* tslint:disable:no-unused-locals */
import { DuskyObjectModelsDatabaseService } from '../model/duskyObjectModelsDatabaseService';
import { DuskyObjectModelsDuskyValidationResult } from '../model/duskyObjectModelsDuskyValidationResult';
import { Authentication, HttpBasicAuth, HttpBearerAuth, Interceptor, ObjectSerializer, VoidAuth } from '../model/models';
import { HttpError } from './apis';
let defaultBasePath = 'https://10.135.16.138:30080';
// ===============================================
// This file is autogenerated - Please do not edit
// ===============================================
export enum DatabaseValidateRouterApiApiKeys {
}
export class DatabaseValidateRouterApi {
protected _basePath = defaultBasePath;
protected _defaultHeaders : any = {};
protected _useQuerystring : boolean = false;
protected authentications = {
'default': <Authentication>new VoidAuth(),
'BasicAuth': new HttpBasicAuth(),
'BearerAuth': new HttpBearerAuth(),
}
protected interceptors: Interceptor[] = [];
constructor(basePath?: string);
constructor(username: string, password: string, basePath?: string);
constructor(basePathOrUsername: string, password?: string, basePath?: string) {
if (password) {
this.username = basePathOrUsername;
this.password = password
if (basePath) {
this.basePath = basePath;
}
} else {
if (basePathOrUsername) {
this.basePath = basePathOrUsername
}
}
}
set useQuerystring(value: boolean) {
this._useQuerystring = value;
}
set basePath(basePath: string) {
this._basePath = basePath;
}
set defaultHeaders(defaultHeaders: any) {
this._defaultHeaders = defaultHeaders;
}
get defaultHeaders() {
return this._defaultHeaders;
}
get basePath() {
return this._basePath;
}
public setDefaultAuthentication(auth: Authentication) {
this.authentications.default = auth;
}
public setApiKey(key: DatabaseValidateRouterApiApiKeys, value: string) {
(this.authentications as any)[DatabaseValidateRouterApiApiKeys[key]].apiKey = value;
}
set username(username: string) {
this.authentications.BasicAuth.username = username;
}
set password(password: string) {
this.authentications.BasicAuth.password = password;
}
set accessToken(accessToken: string | (() => string)) {
this.authentications.BearerAuth.accessToken = accessToken;
}
public addInterceptor(interceptor: Interceptor) {
this.interceptors.push(interceptor);
}
/**
*
* @summary Validate database service creation.
* @param duskyObjectModelsDatabaseService
*/
public async validateCreateDatabaseService (duskyObjectModelsDatabaseService?: DuskyObjectModelsDatabaseService, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: DuskyObjectModelsDuskyValidationResult; }> {
const localVarPath = this.basePath + '/dusky/databases/validate';
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
const produces = ['application/json'];
// give precedence to 'application/json'
if (produces.indexOf('application/json') >= 0) {
localVarHeaderParams.Accept = 'application/json';
} else {
localVarHeaderParams.Accept = produces.join(',');
}
let localVarFormParams: any = {};
(<any>Object).assign(localVarHeaderParams, options.headers);
let localVarUseFormData = false;
let localVarRequestOptions: localVarRequest.Options = {
method: 'POST',
qs: localVarQueryParameters,
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
json: true,
body: ObjectSerializer.serialize(duskyObjectModelsDatabaseService, "DuskyObjectModelsDatabaseService")
};
let authenticationPromise = Promise.resolve();
if (this.authentications.BasicAuth.username && this.authentications.BasicAuth.password) {
authenticationPromise = authenticationPromise.then(() => this.authentications.BasicAuth.applyToRequest(localVarRequestOptions));
}
if (this.authentications.BearerAuth.accessToken) {
authenticationPromise = authenticationPromise.then(() => this.authentications.BearerAuth.applyToRequest(localVarRequestOptions));
}
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
let interceptorPromise = authenticationPromise;
for (const interceptor of this.interceptors) {
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
}
return interceptorPromise.then(() => {
if (Object.keys(localVarFormParams).length) {
if (localVarUseFormData) {
(<any>localVarRequestOptions).formData = localVarFormParams;
} else {
localVarRequestOptions.form = localVarFormParams;
}
}
return new Promise<{ response: http.IncomingMessage; body: DuskyObjectModelsDuskyValidationResult; }>((resolve, reject) => {
localVarRequest(localVarRequestOptions, (error, response, body) => {
if (error) {
reject(error);
} else {
body = ObjectSerializer.deserialize(body, "DuskyObjectModelsDuskyValidationResult");
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
resolve({ response: response, body: body });
} else {
reject(new HttpError(response, body, response.statusCode));
}
}
});
});
});
}
/**
*
* @summary Validate database service update.
* @param ns The namespace of the database service.
* @param name The name of the database service to update.
* @param duskyObjectModelsDatabaseService
*/
public async validateUpdateDatabaseService (ns: string, name: string, duskyObjectModelsDatabaseService?: DuskyObjectModelsDatabaseService, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: DuskyObjectModelsDuskyValidationResult; }> {
const localVarPath = this.basePath + '/dusky/databases/validate/{ns}/{name}'
.replace('{' + 'ns' + '}', encodeURIComponent(String(ns)))
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
const produces = ['application/json'];
// give precedence to 'application/json'
if (produces.indexOf('application/json') >= 0) {
localVarHeaderParams.Accept = 'application/json';
} else {
localVarHeaderParams.Accept = produces.join(',');
}
let localVarFormParams: any = {};
// verify required parameter 'ns' is not null or undefined
if (ns === null || ns === undefined) {
throw new Error('Required parameter ns was null or undefined when calling validateUpdateDatabaseService.');
}
// verify required parameter 'name' is not null or undefined
if (name === null || name === undefined) {
throw new Error('Required parameter name was null or undefined when calling validateUpdateDatabaseService.');
}
(<any>Object).assign(localVarHeaderParams, options.headers);
let localVarUseFormData = false;
let localVarRequestOptions: localVarRequest.Options = {
method: 'POST',
qs: localVarQueryParameters,
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
json: true,
body: ObjectSerializer.serialize(duskyObjectModelsDatabaseService, "DuskyObjectModelsDatabaseService")
};
let authenticationPromise = Promise.resolve();
if (this.authentications.BasicAuth.username && this.authentications.BasicAuth.password) {
authenticationPromise = authenticationPromise.then(() => this.authentications.BasicAuth.applyToRequest(localVarRequestOptions));
}
if (this.authentications.BearerAuth.accessToken) {
authenticationPromise = authenticationPromise.then(() => this.authentications.BearerAuth.applyToRequest(localVarRequestOptions));
}
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
let interceptorPromise = authenticationPromise;
for (const interceptor of this.interceptors) {
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
}
return interceptorPromise.then(() => {
if (Object.keys(localVarFormParams).length) {
if (localVarUseFormData) {
(<any>localVarRequestOptions).formData = localVarFormParams;
} else {
localVarRequestOptions.form = localVarFormParams;
}
}
return new Promise<{ response: http.IncomingMessage; body: DuskyObjectModelsDuskyValidationResult; }>((resolve, reject) => {
localVarRequest(localVarRequestOptions, (error, response, body) => {
if (error) {
reject(error);
} else {
body = ObjectSerializer.deserialize(body, "DuskyObjectModelsDuskyValidationResult");
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
resolve({ response: response, body: body });
} else {
reject(new HttpError(response, body, response.statusCode));
}
}
});
});
});
}
}

View File

@@ -1,175 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import localVarRequest = require('request');
import http = require('http');
/* tslint:disable:no-unused-locals */
import { LogsRequest } from '../model/logsRequest';
import { Authentication, HttpBasicAuth, HttpBearerAuth, Interceptor, ObjectSerializer, VoidAuth } from '../model/models';
import { HttpError } from './apis';
let defaultBasePath = 'https://10.135.16.138:30080';
// ===============================================
// This file is autogenerated - Please do not edit
// ===============================================
export enum LogsRouterApiApiKeys {
}
export class LogsRouterApi {
protected _basePath = defaultBasePath;
protected _defaultHeaders : any = {};
protected _useQuerystring : boolean = false;
protected authentications = {
'default': <Authentication>new VoidAuth(),
'BasicAuth': new HttpBasicAuth(),
'BearerAuth': new HttpBearerAuth(),
}
protected interceptors: Interceptor[] = [];
constructor(basePath?: string);
constructor(username: string, password: string, basePath?: string);
constructor(basePathOrUsername: string, password?: string, basePath?: string) {
if (password) {
this.username = basePathOrUsername;
this.password = password
if (basePath) {
this.basePath = basePath;
}
} else {
if (basePathOrUsername) {
this.basePath = basePathOrUsername
}
}
}
set useQuerystring(value: boolean) {
this._useQuerystring = value;
}
set basePath(basePath: string) {
this._basePath = basePath;
}
set defaultHeaders(defaultHeaders: any) {
this._defaultHeaders = defaultHeaders;
}
get defaultHeaders() {
return this._defaultHeaders;
}
get basePath() {
return this._basePath;
}
public setDefaultAuthentication(auth: Authentication) {
this.authentications.default = auth;
}
public setApiKey(key: LogsRouterApiApiKeys, value: string) {
(this.authentications as any)[LogsRouterApiApiKeys[key]].apiKey = value;
}
set username(username: string) {
this.authentications.BasicAuth.username = username;
}
set password(password: string) {
this.authentications.BasicAuth.password = password;
}
set accessToken(accessToken: string | (() => string)) {
this.authentications.BearerAuth.accessToken = accessToken;
}
public addInterceptor(interceptor: Interceptor) {
this.interceptors.push(interceptor);
}
/**
*
* @summary Gets logs from Elasticsearch.
* @param logsRequest
*/
public async apiV1LogsPost (logsRequest?: LogsRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: object; }> {
const localVarPath = this.basePath + '/api/v1/logs';
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
const produces = ['application/json'];
// give precedence to 'application/json'
if (produces.indexOf('application/json') >= 0) {
localVarHeaderParams.Accept = 'application/json';
} else {
localVarHeaderParams.Accept = produces.join(',');
}
let localVarFormParams: any = {};
(<any>Object).assign(localVarHeaderParams, options.headers);
let localVarUseFormData = false;
let localVarRequestOptions: localVarRequest.Options = {
method: 'POST',
qs: localVarQueryParameters,
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
json: true,
body: ObjectSerializer.serialize(logsRequest, "LogsRequest")
};
let authenticationPromise = Promise.resolve();
if (this.authentications.BasicAuth.username && this.authentications.BasicAuth.password) {
authenticationPromise = authenticationPromise.then(() => this.authentications.BasicAuth.applyToRequest(localVarRequestOptions));
}
if (this.authentications.BearerAuth.accessToken) {
authenticationPromise = authenticationPromise.then(() => this.authentications.BearerAuth.applyToRequest(localVarRequestOptions));
}
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
let interceptorPromise = authenticationPromise;
for (const interceptor of this.interceptors) {
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
}
return interceptorPromise.then(() => {
if (Object.keys(localVarFormParams).length) {
if (localVarUseFormData) {
(<any>localVarRequestOptions).formData = localVarFormParams;
} else {
localVarRequestOptions.form = localVarFormParams;
}
}
return new Promise<{ response: http.IncomingMessage; body: object; }>((resolve, reject) => {
localVarRequest(localVarRequestOptions, (error, response, body) => {
if (error) {
reject(error);
} else {
body = ObjectSerializer.deserialize(body, "object");
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
resolve({ response: response, body: body });
} else {
reject(new HttpError(response, body, response.statusCode));
}
}
});
});
});
}
}

View File

@@ -1,171 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import localVarRequest = require('request');
import http = require('http');
/* tslint:disable:no-unused-locals */
import { Authentication, HttpBasicAuth, HttpBearerAuth, Interceptor, ObjectSerializer, VoidAuth } from '../model/models';
import { HttpError } from './apis';
let defaultBasePath = 'https://10.135.16.138:30080';
// ===============================================
// This file is autogenerated - Please do not edit
// ===============================================
export enum MetricRouterApiApiKeys {
}
export class MetricRouterApi {
protected _basePath = defaultBasePath;
protected _defaultHeaders : any = {};
protected _useQuerystring : boolean = false;
protected authentications = {
'default': <Authentication>new VoidAuth(),
'BasicAuth': new HttpBasicAuth(),
'BearerAuth': new HttpBearerAuth(),
}
protected interceptors: Interceptor[] = [];
constructor(basePath?: string);
constructor(username: string, password: string, basePath?: string);
constructor(basePathOrUsername: string, password?: string, basePath?: string) {
if (password) {
this.username = basePathOrUsername;
this.password = password
if (basePath) {
this.basePath = basePath;
}
} else {
if (basePathOrUsername) {
this.basePath = basePathOrUsername
}
}
}
set useQuerystring(value: boolean) {
this._useQuerystring = value;
}
set basePath(basePath: string) {
this._basePath = basePath;
}
set defaultHeaders(defaultHeaders: any) {
this._defaultHeaders = defaultHeaders;
}
get defaultHeaders() {
return this._defaultHeaders;
}
get basePath() {
return this._basePath;
}
public setDefaultAuthentication(auth: Authentication) {
this.authentications.default = auth;
}
public setApiKey(key: MetricRouterApiApiKeys, value: string) {
(this.authentications as any)[MetricRouterApiApiKeys[key]].apiKey = value;
}
set username(username: string) {
this.authentications.BasicAuth.username = username;
}
set password(password: string) {
this.authentications.BasicAuth.password = password;
}
set accessToken(accessToken: string | (() => string)) {
this.authentications.BearerAuth.accessToken = accessToken;
}
public addInterceptor(interceptor: Interceptor) {
this.interceptors.push(interceptor);
}
/**
*
*/
public async apiV1MetricsPost (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: object; }> {
const localVarPath = this.basePath + '/api/v1/metrics';
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
const produces = ['application/json'];
// give precedence to 'application/json'
if (produces.indexOf('application/json') >= 0) {
localVarHeaderParams.Accept = 'application/json';
} else {
localVarHeaderParams.Accept = produces.join(',');
}
let localVarFormParams: any = {};
(<any>Object).assign(localVarHeaderParams, options.headers);
let localVarUseFormData = false;
let localVarRequestOptions: localVarRequest.Options = {
method: 'POST',
qs: localVarQueryParameters,
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
json: true,
};
let authenticationPromise = Promise.resolve();
if (this.authentications.BasicAuth.username && this.authentications.BasicAuth.password) {
authenticationPromise = authenticationPromise.then(() => this.authentications.BasicAuth.applyToRequest(localVarRequestOptions));
}
if (this.authentications.BearerAuth.accessToken) {
authenticationPromise = authenticationPromise.then(() => this.authentications.BearerAuth.applyToRequest(localVarRequestOptions));
}
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
let interceptorPromise = authenticationPromise;
for (const interceptor of this.interceptors) {
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
}
return interceptorPromise.then(() => {
if (Object.keys(localVarFormParams).length) {
if (localVarUseFormData) {
(<any>localVarRequestOptions).formData = localVarFormParams;
} else {
localVarRequestOptions.form = localVarFormParams;
}
}
return new Promise<{ response: http.IncomingMessage; body: object; }>((resolve, reject) => {
localVarRequest(localVarRequestOptions, (error, response, body) => {
if (error) {
reject(error);
} else {
body = ObjectSerializer.deserialize(body, "object");
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
resolve({ response: response, body: body });
} else {
reject(new HttpError(response, body, response.statusCode));
}
}
});
});
});
}
}

View File

@@ -1,236 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import localVarRequest = require('request');
import http = require('http');
/* tslint:disable:no-unused-locals */
import { ClusterPatchModel } from '../model/clusterPatchModel';
import { DuskyObjectModelsOperatorStatus } from '../model/duskyObjectModelsOperatorStatus';
import { Authentication, HttpBasicAuth, HttpBearerAuth, Interceptor, ObjectSerializer, VoidAuth } from '../model/models';
import { HttpError } from './apis';
let defaultBasePath = 'https://10.135.16.138:30080';
// ===============================================
// This file is autogenerated - Please do not edit
// ===============================================
export enum OperatorRouterApiApiKeys {
}
export class OperatorRouterApi {
protected _basePath = defaultBasePath;
protected _defaultHeaders : any = {};
protected _useQuerystring : boolean = false;
protected authentications = {
'default': <Authentication>new VoidAuth(),
'BasicAuth': new HttpBasicAuth(),
'BearerAuth': new HttpBearerAuth(),
}
protected interceptors: Interceptor[] = [];
constructor(basePath?: string);
constructor(username: string, password: string, basePath?: string);
constructor(basePathOrUsername: string, password?: string, basePath?: string) {
if (password) {
this.username = basePathOrUsername;
this.password = password
if (basePath) {
this.basePath = basePath;
}
} else {
if (basePathOrUsername) {
this.basePath = basePathOrUsername
}
}
}
set useQuerystring(value: boolean) {
this._useQuerystring = value;
}
set basePath(basePath: string) {
this._basePath = basePath;
}
set defaultHeaders(defaultHeaders: any) {
this._defaultHeaders = defaultHeaders;
}
get defaultHeaders() {
return this._defaultHeaders;
}
get basePath() {
return this._basePath;
}
public setDefaultAuthentication(auth: Authentication) {
this.authentications.default = auth;
}
public setApiKey(key: OperatorRouterApiApiKeys, value: string) {
(this.authentications as any)[OperatorRouterApiApiKeys[key]].apiKey = value;
}
set username(username: string) {
this.authentications.BasicAuth.username = username;
}
set password(password: string) {
this.authentications.BasicAuth.password = password;
}
set accessToken(accessToken: string | (() => string)) {
this.authentications.BearerAuth.accessToken = accessToken;
}
public addInterceptor(interceptor: Interceptor) {
this.interceptors.push(interceptor);
}
/**
*
* @summary Gets the status of the Dusky operator.
*/
public async getDuskyOperatorStatus (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: DuskyObjectModelsOperatorStatus; }> {
const localVarPath = this.basePath + '/dusky/operator/status';
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
const produces = ['application/json'];
// give precedence to 'application/json'
if (produces.indexOf('application/json') >= 0) {
localVarHeaderParams.Accept = 'application/json';
} else {
localVarHeaderParams.Accept = produces.join(',');
}
let localVarFormParams: any = {};
(<any>Object).assign(localVarHeaderParams, options.headers);
let localVarUseFormData = false;
let localVarRequestOptions: localVarRequest.Options = {
method: 'GET',
qs: localVarQueryParameters,
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
json: true,
};
let authenticationPromise = Promise.resolve();
if (this.authentications.BasicAuth.username && this.authentications.BasicAuth.password) {
authenticationPromise = authenticationPromise.then(() => this.authentications.BasicAuth.applyToRequest(localVarRequestOptions));
}
if (this.authentications.BearerAuth.accessToken) {
authenticationPromise = authenticationPromise.then(() => this.authentications.BearerAuth.applyToRequest(localVarRequestOptions));
}
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
let interceptorPromise = authenticationPromise;
for (const interceptor of this.interceptors) {
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
}
return interceptorPromise.then(() => {
if (Object.keys(localVarFormParams).length) {
if (localVarUseFormData) {
(<any>localVarRequestOptions).formData = localVarFormParams;
} else {
localVarRequestOptions.form = localVarFormParams;
}
}
return new Promise<{ response: http.IncomingMessage; body: DuskyObjectModelsOperatorStatus; }>((resolve, reject) => {
localVarRequest(localVarRequestOptions, (error, response, body) => {
if (error) {
reject(error);
} else {
body = ObjectSerializer.deserialize(body, "DuskyObjectModelsOperatorStatus");
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
resolve({ response: response, body: body });
} else {
reject(new HttpError(response, body, response.statusCode));
}
}
});
});
});
}
/**
*
* @summary Upgrades the Dusky operator.
* @param clusterPatchModel
*/
public async upgradeDuskyOperator (clusterPatchModel?: ClusterPatchModel, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
const localVarPath = this.basePath + '/dusky/operator/upgrade';
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
let localVarFormParams: any = {};
(<any>Object).assign(localVarHeaderParams, options.headers);
let localVarUseFormData = false;
let localVarRequestOptions: localVarRequest.Options = {
method: 'PATCH',
qs: localVarQueryParameters,
headers: localVarHeaderParams,
uri: localVarPath,
useQuerystring: this._useQuerystring,
json: true,
body: ObjectSerializer.serialize(clusterPatchModel, "ClusterPatchModel")
};
let authenticationPromise = Promise.resolve();
if (this.authentications.BasicAuth.username && this.authentications.BasicAuth.password) {
authenticationPromise = authenticationPromise.then(() => this.authentications.BasicAuth.applyToRequest(localVarRequestOptions));
}
if (this.authentications.BearerAuth.accessToken) {
authenticationPromise = authenticationPromise.then(() => this.authentications.BearerAuth.applyToRequest(localVarRequestOptions));
}
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
let interceptorPromise = authenticationPromise;
for (const interceptor of this.interceptors) {
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
}
return interceptorPromise.then(() => {
if (Object.keys(localVarFormParams).length) {
if (localVarUseFormData) {
(<any>localVarRequestOptions).formData = localVarFormParams;
} else {
localVarRequestOptions.form = localVarFormParams;
}
}
return new Promise<{ response: http.IncomingMessage; body?: any; }>((resolve, reject) => {
localVarRequest(localVarRequestOptions, (error, response, body) => {
if (error) {
reject(error);
} else {
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
resolve({ response: response, body: body });
} else {
reject(new HttpError(response, body, response.statusCode));
}
}
});
});
});
}
}

View File

@@ -1,36 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class ClusterPatchModel {
'targetVersion': string;
'targetRepository'?: string;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "targetVersion",
"baseName": "targetVersion",
"type": "string"
},
{
"name": "targetRepository",
"baseName": "targetRepository",
"type": "string"
} ];
static getAttributeTypeMap() {
return ClusterPatchModel.attributeTypeMap;
}
}

View File

@@ -1,67 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { DuskyObjectModelsError } from './duskyObjectModelsError';
export class DuskyObjectModelsBackup {
'error'?: DuskyObjectModelsError;
'id'?: string;
'name'?: string;
'timestamp'?: Date;
'size'?: number | null;
'state'?: string;
'tiers'?: number | null;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "error",
"baseName": "error",
"type": "DuskyObjectModelsError"
},
{
"name": "id",
"baseName": "id",
"type": "string"
},
{
"name": "name",
"baseName": "name",
"type": "string"
},
{
"name": "timestamp",
"baseName": "timestamp",
"type": "Date"
},
{
"name": "size",
"baseName": "size",
"type": "number"
},
{
"name": "state",
"baseName": "state",
"type": "string"
},
{
"name": "tiers",
"baseName": "tiers",
"type": "number"
} ];
static getAttributeTypeMap() {
return DuskyObjectModelsBackup.attributeTypeMap;
}
}

View File

@@ -1,36 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class DuskyObjectModelsBackupCopySchedule {
'interval'?: string;
'offset'?: string;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "interval",
"baseName": "interval",
"type": "string"
},
{
"name": "offset",
"baseName": "offset",
"type": "string"
} ];
static getAttributeTypeMap() {
return DuskyObjectModelsBackupCopySchedule.attributeTypeMap;
}
}

View File

@@ -1,36 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class DuskyObjectModelsBackupRetention {
'maximums'?: Array<string>;
'minimums'?: Array<string>;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "maximums",
"baseName": "maximums",
"type": "Array<string>"
},
{
"name": "minimums",
"baseName": "minimums",
"type": "Array<string>"
} ];
static getAttributeTypeMap() {
return DuskyObjectModelsBackupRetention.attributeTypeMap;
}
}

View File

@@ -1,50 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { DuskyObjectModelsBackupCopySchedule } from './duskyObjectModelsBackupCopySchedule';
import { DuskyObjectModelsBackupTier } from './duskyObjectModelsBackupTier';
export class DuskyObjectModelsBackupSpec {
'deltaMinutes'?: number | null;
'fullMinutes'?: number | null;
'copySchedule'?: DuskyObjectModelsBackupCopySchedule;
'tiers'?: Array<DuskyObjectModelsBackupTier>;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "deltaMinutes",
"baseName": "deltaMinutes",
"type": "number"
},
{
"name": "fullMinutes",
"baseName": "fullMinutes",
"type": "number"
},
{
"name": "copySchedule",
"baseName": "copySchedule",
"type": "DuskyObjectModelsBackupCopySchedule"
},
{
"name": "tiers",
"baseName": "tiers",
"type": "Array<DuskyObjectModelsBackupTier>"
} ];
static getAttributeTypeMap() {
return DuskyObjectModelsBackupSpec.attributeTypeMap;
}
}

View File

@@ -1,38 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { DuskyObjectModelsRetentionSpec } from './duskyObjectModelsRetentionSpec';
import { DuskyObjectModelsStorageSpec } from './duskyObjectModelsStorageSpec';
export class DuskyObjectModelsBackupTier {
'retention'?: DuskyObjectModelsRetentionSpec;
'storage'?: DuskyObjectModelsStorageSpec;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "retention",
"baseName": "retention",
"type": "DuskyObjectModelsRetentionSpec"
},
{
"name": "storage",
"baseName": "storage",
"type": "DuskyObjectModelsStorageSpec"
} ];
static getAttributeTypeMap() {
return DuskyObjectModelsBackupTier.attributeTypeMap;
}
}

View File

@@ -1,42 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class DuskyObjectModelsDatabase {
'name'?: string;
'owner'?: string;
'sharded'?: boolean | null;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "name",
"baseName": "name",
"type": "string"
},
{
"name": "owner",
"baseName": "owner",
"type": "string"
},
{
"name": "sharded",
"baseName": "sharded",
"type": "boolean"
} ];
static getAttributeTypeMap() {
return DuskyObjectModelsDatabase.attributeTypeMap;
}
}

View File

@@ -1,64 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { DuskyObjectModelsDatabaseServiceArcPayload } from './duskyObjectModelsDatabaseServiceArcPayload';
import { DuskyObjectModelsDatabaseServiceSpec } from './duskyObjectModelsDatabaseServiceSpec';
import { DuskyObjectModelsDatabaseServiceStatus } from './duskyObjectModelsDatabaseServiceStatus';
import { V1ObjectMeta } from './v1ObjectMeta';
export class DuskyObjectModelsDatabaseService {
'apiVersion'?: string;
'kind'?: string;
'metadata'?: V1ObjectMeta;
'spec'?: DuskyObjectModelsDatabaseServiceSpec;
'status'?: DuskyObjectModelsDatabaseServiceStatus;
'arc'?: DuskyObjectModelsDatabaseServiceArcPayload;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "apiVersion",
"baseName": "apiVersion",
"type": "string"
},
{
"name": "kind",
"baseName": "kind",
"type": "string"
},
{
"name": "metadata",
"baseName": "metadata",
"type": "V1ObjectMeta"
},
{
"name": "spec",
"baseName": "spec",
"type": "DuskyObjectModelsDatabaseServiceSpec"
},
{
"name": "status",
"baseName": "status",
"type": "DuskyObjectModelsDatabaseServiceStatus"
},
{
"name": "arc",
"baseName": "arc",
"type": "DuskyObjectModelsDatabaseServiceArcPayload"
} ];
static getAttributeTypeMap() {
return DuskyObjectModelsDatabaseService.attributeTypeMap;
}
}

View File

@@ -1,30 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class DuskyObjectModelsDatabaseServiceArcPayload {
'servicePassword'?: string;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "servicePassword",
"baseName": "servicePassword",
"type": "string"
} ];
static getAttributeTypeMap() {
return DuskyObjectModelsDatabaseServiceArcPayload.attributeTypeMap;
}
}

View File

@@ -1,54 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class DuskyObjectModelsDatabaseServiceCondition {
'type'?: string;
'status'?: string;
'lastTransitionTime'?: Date | null;
'reason'?: string;
'message'?: string;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "type",
"baseName": "type",
"type": "string"
},
{
"name": "status",
"baseName": "status",
"type": "string"
},
{
"name": "lastTransitionTime",
"baseName": "lastTransitionTime",
"type": "Date"
},
{
"name": "reason",
"baseName": "reason",
"type": "string"
},
{
"name": "message",
"baseName": "message",
"type": "string"
} ];
static getAttributeTypeMap() {
return DuskyObjectModelsDatabaseServiceCondition.attributeTypeMap;
}
}

View File

@@ -1,50 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { DuskyObjectModelsDatabaseService } from './duskyObjectModelsDatabaseService';
import { V1ListMeta } from './v1ListMeta';
export class DuskyObjectModelsDatabaseServiceList {
'apiVersion'?: string;
'kind'?: string;
'metadata'?: V1ListMeta;
'items'?: Array<DuskyObjectModelsDatabaseService>;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "apiVersion",
"baseName": "apiVersion",
"type": "string"
},
{
"name": "kind",
"baseName": "kind",
"type": "string"
},
{
"name": "metadata",
"baseName": "metadata",
"type": "V1ListMeta"
},
{
"name": "items",
"baseName": "items",
"type": "Array<DuskyObjectModelsDatabaseService>"
} ];
static getAttributeTypeMap() {
return DuskyObjectModelsDatabaseServiceList.attributeTypeMap;
}
}

View File

@@ -1,87 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { DuskyObjectModelsBackupSpec } from './duskyObjectModelsBackupSpec';
import { DuskyObjectModelsDockerSpec } from './duskyObjectModelsDockerSpec';
import { DuskyObjectModelsEngineSpec } from './duskyObjectModelsEngineSpec';
import { DuskyObjectModelsMonitoringSpec } from './duskyObjectModelsMonitoringSpec';
import { DuskyObjectModelsScaleSpec } from './duskyObjectModelsScaleSpec';
import { DuskyObjectModelsSchedulingSpec } from './duskyObjectModelsSchedulingSpec';
import { DuskyObjectModelsSecuritySpec } from './duskyObjectModelsSecuritySpec';
import { DuskyObjectModelsServiceSpec } from './duskyObjectModelsServiceSpec';
import { DuskyObjectModelsStorageSpec } from './duskyObjectModelsStorageSpec';
export class DuskyObjectModelsDatabaseServiceSpec {
'backups'?: DuskyObjectModelsBackupSpec;
'docker'?: DuskyObjectModelsDockerSpec;
'engine'?: DuskyObjectModelsEngineSpec;
'monitoring'?: DuskyObjectModelsMonitoringSpec;
'scale'?: DuskyObjectModelsScaleSpec;
'scheduling'?: DuskyObjectModelsSchedulingSpec;
'security'?: DuskyObjectModelsSecuritySpec;
'service'?: DuskyObjectModelsServiceSpec;
'storage'?: DuskyObjectModelsStorageSpec;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "backups",
"baseName": "backups",
"type": "DuskyObjectModelsBackupSpec"
},
{
"name": "docker",
"baseName": "docker",
"type": "DuskyObjectModelsDockerSpec"
},
{
"name": "engine",
"baseName": "engine",
"type": "DuskyObjectModelsEngineSpec"
},
{
"name": "monitoring",
"baseName": "monitoring",
"type": "DuskyObjectModelsMonitoringSpec"
},
{
"name": "scale",
"baseName": "scale",
"type": "DuskyObjectModelsScaleSpec"
},
{
"name": "scheduling",
"baseName": "scheduling",
"type": "DuskyObjectModelsSchedulingSpec"
},
{
"name": "security",
"baseName": "security",
"type": "DuskyObjectModelsSecuritySpec"
},
{
"name": "service",
"baseName": "service",
"type": "DuskyObjectModelsServiceSpec"
},
{
"name": "storage",
"baseName": "storage",
"type": "DuskyObjectModelsStorageSpec"
} ];
static getAttributeTypeMap() {
return DuskyObjectModelsDatabaseServiceSpec.attributeTypeMap;
}
}

View File

@@ -1,97 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { DuskyObjectModelsDatabaseServiceCondition } from './duskyObjectModelsDatabaseServiceCondition';
export class DuskyObjectModelsDatabaseServiceStatus {
'state'?: string;
'appliedGeneration'?: number | null;
'conditions'?: Array<DuskyObjectModelsDatabaseServiceCondition>;
'internalIP'?: string;
'internalPort'?: number | null;
'externalIP'?: string;
'externalPort'?: number | null;
'podsFailed'?: number;
'podsPending'?: number;
'podsRunning'?: number;
'podsUnknown'?: number;
'restartRequired'?: boolean;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "state",
"baseName": "state",
"type": "string"
},
{
"name": "appliedGeneration",
"baseName": "appliedGeneration",
"type": "number"
},
{
"name": "conditions",
"baseName": "conditions",
"type": "Array<DuskyObjectModelsDatabaseServiceCondition>"
},
{
"name": "internalIP",
"baseName": "internalIP",
"type": "string"
},
{
"name": "internalPort",
"baseName": "internalPort",
"type": "number"
},
{
"name": "externalIP",
"baseName": "externalIP",
"type": "string"
},
{
"name": "externalPort",
"baseName": "externalPort",
"type": "number"
},
{
"name": "podsFailed",
"baseName": "podsFailed",
"type": "number"
},
{
"name": "podsPending",
"baseName": "podsPending",
"type": "number"
},
{
"name": "podsRunning",
"baseName": "podsRunning",
"type": "number"
},
{
"name": "podsUnknown",
"baseName": "podsUnknown",
"type": "number"
},
{
"name": "restartRequired",
"baseName": "restartRequired",
"type": "boolean"
} ];
static getAttributeTypeMap() {
return DuskyObjectModelsDatabaseServiceStatus.attributeTypeMap;
}
}

View File

@@ -1,54 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class DuskyObjectModelsDatabaseServiceVolumeStatus {
'id'?: string;
'count'?: number;
'totalSize'?: number;
'storageClass'?: string;
'state'?: string;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "id",
"baseName": "id",
"type": "string"
},
{
"name": "count",
"baseName": "count",
"type": "number"
},
{
"name": "totalSize",
"baseName": "totalSize",
"type": "number"
},
{
"name": "storageClass",
"baseName": "storageClass",
"type": "string"
},
{
"name": "state",
"baseName": "state",
"type": "string"
} ];
static getAttributeTypeMap() {
return DuskyObjectModelsDatabaseServiceVolumeStatus.attributeTypeMap;
}
}

View File

@@ -1,61 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class DuskyObjectModelsDockerSpec {
'registry'?: string;
'repository'?: string;
'imagePullPolicy'?: DuskyObjectModelsDockerSpec.ImagePullPolicyEnum;
'imagePullSecret'?: string;
'imageTagSuffix'?: string;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "registry",
"baseName": "registry",
"type": "string"
},
{
"name": "repository",
"baseName": "repository",
"type": "string"
},
{
"name": "imagePullPolicy",
"baseName": "imagePullPolicy",
"type": "DuskyObjectModelsDockerSpec.ImagePullPolicyEnum"
},
{
"name": "imagePullSecret",
"baseName": "imagePullSecret",
"type": "string"
},
{
"name": "imageTagSuffix",
"baseName": "imageTagSuffix",
"type": "string"
} ];
static getAttributeTypeMap() {
return DuskyObjectModelsDockerSpec.attributeTypeMap;
}
}
export namespace DuskyObjectModelsDockerSpec {
export enum ImagePullPolicyEnum {
IfNotPresent = <any> 'IfNotPresent',
Always = <any> 'Always',
Never = <any> 'Never'
}
}

View File

@@ -1,57 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class DuskyObjectModelsDuskyValidationMessage {
'type'?: DuskyObjectModelsDuskyValidationMessage.TypeEnum;
'code'?: DuskyObjectModelsDuskyValidationMessage.CodeEnum;
'message'?: string;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "type",
"baseName": "type",
"type": "DuskyObjectModelsDuskyValidationMessage.TypeEnum"
},
{
"name": "code",
"baseName": "code",
"type": "DuskyObjectModelsDuskyValidationMessage.CodeEnum"
},
{
"name": "message",
"baseName": "message",
"type": "string"
} ];
static getAttributeTypeMap() {
return DuskyObjectModelsDuskyValidationMessage.attributeTypeMap;
}
}
export namespace DuskyObjectModelsDuskyValidationMessage {
export enum TypeEnum {
Info = <any> 'Info',
Warning = <any> 'Warning',
Fail = <any> 'Fail'
}
export enum CodeEnum {
InvalidInput = <any> 'InvalidInput',
ResourceExists = <any> 'ResourceExists',
ResourceNotFound = <any> 'ResourceNotFound',
ResourceNotRunning = <any> 'ResourceNotRunning',
AvailableResources = <any> 'AvailableResources',
InsufficientResources = <any> 'InsufficientResources'
}
}

View File

@@ -1,31 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { DuskyObjectModelsDuskyValidationMessage } from './duskyObjectModelsDuskyValidationMessage';
export class DuskyObjectModelsDuskyValidationResult {
'messages'?: Array<DuskyObjectModelsDuskyValidationMessage>;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "messages",
"baseName": "messages",
"type": "Array<DuskyObjectModelsDuskyValidationMessage>"
} ];
static getAttributeTypeMap() {
return DuskyObjectModelsDuskyValidationResult.attributeTypeMap;
}
}

View File

@@ -1,36 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class DuskyObjectModelsEngineSettings {
'_default'?: { [key: string]: string; };
'roles'?: { [key: string]: { [key: string]: string; }; };
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "_default",
"baseName": "default",
"type": "{ [key: string]: string; }"
},
{
"name": "roles",
"baseName": "roles",
"type": "{ [key: string]: { [key: string]: string; }; }"
} ];
static getAttributeTypeMap() {
return DuskyObjectModelsEngineSettings.attributeTypeMap;
}
}

View File

@@ -1,50 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { DuskyObjectModelsEngineSettings } from './duskyObjectModelsEngineSettings';
import { DuskyObjectModelsPluginSpec } from './duskyObjectModelsPluginSpec';
export class DuskyObjectModelsEngineSpec {
'type'?: string;
'version'?: number | null;
'settings'?: DuskyObjectModelsEngineSettings;
'plugins'?: Array<DuskyObjectModelsPluginSpec>;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "type",
"baseName": "type",
"type": "string"
},
{
"name": "version",
"baseName": "version",
"type": "number"
},
{
"name": "settings",
"baseName": "settings",
"type": "DuskyObjectModelsEngineSettings"
},
{
"name": "plugins",
"baseName": "plugins",
"type": "Array<DuskyObjectModelsPluginSpec>"
} ];
static getAttributeTypeMap() {
return DuskyObjectModelsEngineSpec.attributeTypeMap;
}
}

View File

@@ -1,49 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { DuskyObjectModelsErrorDetails } from './duskyObjectModelsErrorDetails';
export class DuskyObjectModelsError {
'reason'?: string;
'message'?: string;
'details'?: DuskyObjectModelsErrorDetails;
'code'?: number | null;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "reason",
"baseName": "reason",
"type": "string"
},
{
"name": "message",
"baseName": "message",
"type": "string"
},
{
"name": "details",
"baseName": "details",
"type": "DuskyObjectModelsErrorDetails"
},
{
"name": "code",
"baseName": "code",
"type": "number"
} ];
static getAttributeTypeMap() {
return DuskyObjectModelsError.attributeTypeMap;
}
}

View File

@@ -1,42 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class DuskyObjectModelsErrorDetails {
'reason'?: string;
'message'?: string;
'details'?: DuskyObjectModelsErrorDetails;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "reason",
"baseName": "reason",
"type": "string"
},
{
"name": "message",
"baseName": "message",
"type": "string"
},
{
"name": "details",
"baseName": "details",
"type": "DuskyObjectModelsErrorDetails"
} ];
static getAttributeTypeMap() {
return DuskyObjectModelsErrorDetails.attributeTypeMap;
}
}

View File

@@ -1,31 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { DuskyObjectModelsTINASpec } from './duskyObjectModelsTINASpec';
export class DuskyObjectModelsMonitoringSpec {
'tina'?: DuskyObjectModelsTINASpec;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "tina",
"baseName": "tina",
"type": "DuskyObjectModelsTINASpec"
} ];
static getAttributeTypeMap() {
return DuskyObjectModelsMonitoringSpec.attributeTypeMap;
}
}

View File

@@ -1,31 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { DuskyObjectModelsReplicaStatus } from './duskyObjectModelsReplicaStatus';
export class DuskyObjectModelsOperatorStatus {
'statuses'?: { [key: string]: DuskyObjectModelsReplicaStatus; };
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "statuses",
"baseName": "statuses",
"type": "{ [key: string]: DuskyObjectModelsReplicaStatus; }"
} ];
static getAttributeTypeMap() {
return DuskyObjectModelsOperatorStatus.attributeTypeMap;
}
}

View File

@@ -1,30 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class DuskyObjectModelsPluginSpec {
'name'?: string;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "name",
"baseName": "name",
"type": "string"
} ];
static getAttributeTypeMap() {
return DuskyObjectModelsPluginSpec.attributeTypeMap;
}
}

View File

@@ -1,36 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class DuskyObjectModelsReplicaStatus {
'replicas'?: number;
'readyReplicas'?: number;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "replicas",
"baseName": "replicas",
"type": "number"
},
{
"name": "readyReplicas",
"baseName": "readyReplicas",
"type": "number"
} ];
static getAttributeTypeMap() {
return DuskyObjectModelsReplicaStatus.attributeTypeMap;
}
}

View File

@@ -1,67 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { DuskyObjectModelsError } from './duskyObjectModelsError';
export class DuskyObjectModelsRestoreStatus {
'backupId'?: string;
'endTime'?: Date;
'error'?: DuskyObjectModelsError;
'fromServer'?: string;
'restoreTime'?: Date;
'startTime'?: Date;
'state'?: string;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "backupId",
"baseName": "backupId",
"type": "string"
},
{
"name": "endTime",
"baseName": "endTime",
"type": "Date"
},
{
"name": "error",
"baseName": "error",
"type": "DuskyObjectModelsError"
},
{
"name": "fromServer",
"baseName": "fromServer",
"type": "string"
},
{
"name": "restoreTime",
"baseName": "restoreTime",
"type": "Date"
},
{
"name": "startTime",
"baseName": "startTime",
"type": "Date"
},
{
"name": "state",
"baseName": "state",
"type": "string"
} ];
static getAttributeTypeMap() {
return DuskyObjectModelsRestoreStatus.attributeTypeMap;
}
}

View File

@@ -1,36 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class DuskyObjectModelsRetentionSpec {
'maximums'?: Array<string>;
'minimums'?: Array<string>;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "maximums",
"baseName": "maximums",
"type": "Array<string>"
},
{
"name": "minimums",
"baseName": "minimums",
"type": "Array<string>"
} ];
static getAttributeTypeMap() {
return DuskyObjectModelsRetentionSpec.attributeTypeMap;
}
}

View File

@@ -1,30 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class DuskyObjectModelsRole {
'name'?: string;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "name",
"baseName": "name",
"type": "string"
} ];
static getAttributeTypeMap() {
return DuskyObjectModelsRole.attributeTypeMap;
}
}

View File

@@ -1,36 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class DuskyObjectModelsScaleSpec {
'replicas'?: number | null;
'shards'?: number | null;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "replicas",
"baseName": "replicas",
"type": "number"
},
{
"name": "shards",
"baseName": "shards",
"type": "number"
} ];
static getAttributeTypeMap() {
return DuskyObjectModelsScaleSpec.attributeTypeMap;
}
}

View File

@@ -1,44 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { V1Affinity } from './v1Affinity';
import { V1ResourceRequirements } from './v1ResourceRequirements';
export class DuskyObjectModelsSchedulingOptions {
'affinity'?: V1Affinity;
'nodeSelector'?: { [key: string]: string; };
'resources'?: V1ResourceRequirements;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "affinity",
"baseName": "affinity",
"type": "V1Affinity"
},
{
"name": "nodeSelector",
"baseName": "nodeSelector",
"type": "{ [key: string]: string; }"
},
{
"name": "resources",
"baseName": "resources",
"type": "V1ResourceRequirements"
} ];
static getAttributeTypeMap() {
return DuskyObjectModelsSchedulingOptions.attributeTypeMap;
}
}

View File

@@ -1,43 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { DuskyObjectModelsSchedulingOptions } from './duskyObjectModelsSchedulingOptions';
export class DuskyObjectModelsSchedulingSpec {
'_default'?: DuskyObjectModelsSchedulingOptions;
'roles'?: { [key: string]: DuskyObjectModelsSchedulingOptions; };
'availabilityZones'?: { [key: string]: DuskyObjectModelsSchedulingOptions; };
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "_default",
"baseName": "default",
"type": "DuskyObjectModelsSchedulingOptions"
},
{
"name": "roles",
"baseName": "roles",
"type": "{ [key: string]: DuskyObjectModelsSchedulingOptions; }"
},
{
"name": "availabilityZones",
"baseName": "availability-zones",
"type": "{ [key: string]: DuskyObjectModelsSchedulingOptions; }"
} ];
static getAttributeTypeMap() {
return DuskyObjectModelsSchedulingSpec.attributeTypeMap;
}
}

View File

@@ -1,31 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { V1PodSecurityContext } from './v1PodSecurityContext';
export class DuskyObjectModelsSecuritySpec {
'context'?: V1PodSecurityContext;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "context",
"baseName": "context",
"type": "V1PodSecurityContext"
} ];
static getAttributeTypeMap() {
return DuskyObjectModelsSecuritySpec.attributeTypeMap;
}
}

View File

@@ -1,42 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class DuskyObjectModelsServiceSpec {
'port'?: number | null;
'type'?: string;
'externalIPs'?: Array<string>;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "port",
"baseName": "port",
"type": "number"
},
{
"name": "type",
"baseName": "type",
"type": "string"
},
{
"name": "externalIPs",
"baseName": "externalIPs",
"type": "Array<string>"
} ];
static getAttributeTypeMap() {
return DuskyObjectModelsServiceSpec.attributeTypeMap;
}
}

View File

@@ -1,48 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class DuskyObjectModelsStorageSpec {
'storageClassName'?: string;
'volumeClaimName'?: string;
'volumeSize'?: string;
'matchLabels'?: { [key: string]: string; };
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "storageClassName",
"baseName": "storageClassName",
"type": "string"
},
{
"name": "volumeClaimName",
"baseName": "volumeClaimName",
"type": "string"
},
{
"name": "volumeSize",
"baseName": "volumeSize",
"type": "string"
},
{
"name": "matchLabels",
"baseName": "matchLabels",
"type": "{ [key: string]: string; }"
} ];
static getAttributeTypeMap() {
return DuskyObjectModelsStorageSpec.attributeTypeMap;
}
}

View File

@@ -1,30 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class DuskyObjectModelsTINASpec {
'namespace'?: string;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "namespace",
"baseName": "namespace",
"type": "string"
} ];
static getAttributeTypeMap() {
return DuskyObjectModelsTINASpec.attributeTypeMap;
}
}

View File

@@ -1,42 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class DuskyObjectModelsUser {
'name'?: string;
'password'?: string;
'roles'?: Array<string>;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "name",
"baseName": "name",
"type": "string"
},
{
"name": "password",
"baseName": "password",
"type": "string"
},
{
"name": "roles",
"baseName": "roles",
"type": "Array<string>"
} ];
static getAttributeTypeMap() {
return DuskyObjectModelsUser.attributeTypeMap;
}
}

View File

@@ -1,30 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class IntstrIntOrString {
'value'?: string;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "value",
"baseName": "value",
"type": "string"
} ];
static getAttributeTypeMap() {
return IntstrIntOrString.attributeTypeMap;
}
}

View File

@@ -1,48 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class LogsRequest {
'startTime': string;
'endTime': string;
'termQueries'?: { [key: string]: string; };
'regexQueries'?: { [key: string]: string; };
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "startTime",
"baseName": "startTime",
"type": "string"
},
{
"name": "endTime",
"baseName": "endTime",
"type": "string"
},
{
"name": "termQueries",
"baseName": "termQueries",
"type": "{ [key: string]: string; }"
},
{
"name": "regexQueries",
"baseName": "regexQueries",
"type": "{ [key: string]: string; }"
} ];
static getAttributeTypeMap() {
return LogsRequest.attributeTypeMap;
}
}

View File

@@ -1,623 +0,0 @@
export * from './clusterPatchModel';
export * from './duskyObjectModelsBackup';
export * from './duskyObjectModelsBackupCopySchedule';
export * from './duskyObjectModelsBackupRetention';
export * from './duskyObjectModelsBackupSpec';
export * from './duskyObjectModelsBackupTier';
export * from './duskyObjectModelsDatabase';
export * from './duskyObjectModelsDatabaseService';
export * from './duskyObjectModelsDatabaseServiceArcPayload';
export * from './duskyObjectModelsDatabaseServiceCondition';
export * from './duskyObjectModelsDatabaseServiceList';
export * from './duskyObjectModelsDatabaseServiceSpec';
export * from './duskyObjectModelsDatabaseServiceStatus';
export * from './duskyObjectModelsDatabaseServiceVolumeStatus';
export * from './duskyObjectModelsDockerSpec';
export * from './duskyObjectModelsDuskyValidationMessage';
export * from './duskyObjectModelsDuskyValidationResult';
export * from './duskyObjectModelsEngineSettings';
export * from './duskyObjectModelsEngineSpec';
export * from './duskyObjectModelsError';
export * from './duskyObjectModelsErrorDetails';
export * from './duskyObjectModelsMonitoringSpec';
export * from './duskyObjectModelsOperatorStatus';
export * from './duskyObjectModelsPluginSpec';
export * from './duskyObjectModelsReplicaStatus';
export * from './duskyObjectModelsRestoreStatus';
export * from './duskyObjectModelsRetentionSpec';
export * from './duskyObjectModelsRole';
export * from './duskyObjectModelsScaleSpec';
export * from './duskyObjectModelsSchedulingOptions';
export * from './duskyObjectModelsSchedulingSpec';
export * from './duskyObjectModelsSecuritySpec';
export * from './duskyObjectModelsServiceSpec';
export * from './duskyObjectModelsStorageSpec';
export * from './duskyObjectModelsTINASpec';
export * from './duskyObjectModelsUser';
export * from './intstrIntOrString';
export * from './logsRequest';
export * from './v1Affinity';
export * from './v1AWSElasticBlockStoreVolumeSource';
export * from './v1AzureDiskVolumeSource';
export * from './v1AzureFileVolumeSource';
export * from './v1Capabilities';
export * from './v1CephFSVolumeSource';
export * from './v1CinderVolumeSource';
export * from './v1ConfigMapEnvSource';
export * from './v1ConfigMapKeySelector';
export * from './v1ConfigMapProjection';
export * from './v1ConfigMapVolumeSource';
export * from './v1Container';
export * from './v1ContainerPort';
export * from './v1ContainerState';
export * from './v1ContainerStateRunning';
export * from './v1ContainerStateTerminated';
export * from './v1ContainerStateWaiting';
export * from './v1ContainerStatus';
export * from './v1CSIVolumeSource';
export * from './v1DownwardAPIProjection';
export * from './v1DownwardAPIVolumeFile';
export * from './v1DownwardAPIVolumeSource';
export * from './v1EmptyDirVolumeSource';
export * from './v1EnvFromSource';
export * from './v1EnvVar';
export * from './v1EnvVarSource';
export * from './v1EphemeralContainer';
export * from './v1ExecAction';
export * from './v1FCVolumeSource';
export * from './v1FlexVolumeSource';
export * from './v1FlockerVolumeSource';
export * from './v1GCEPersistentDiskVolumeSource';
export * from './v1GitRepoVolumeSource';
export * from './v1GlusterfsVolumeSource';
export * from './v1Handler';
export * from './v1HostAlias';
export * from './v1HostPathVolumeSource';
export * from './v1HTTPGetAction';
export * from './v1HTTPHeader';
export * from './v1ISCSIVolumeSource';
export * from './v1KeyToPath';
export * from './v1LabelSelector';
export * from './v1LabelSelectorRequirement';
export * from './v1Lifecycle';
export * from './v1ListMeta';
export * from './v1LocalObjectReference';
export * from './v1ManagedFieldsEntry';
export * from './v1NFSVolumeSource';
export * from './v1NodeAffinity';
export * from './v1NodeSelector';
export * from './v1NodeSelectorRequirement';
export * from './v1NodeSelectorTerm';
export * from './v1ObjectFieldSelector';
export * from './v1ObjectMeta';
export * from './v1OwnerReference';
export * from './v1PersistentVolumeClaimVolumeSource';
export * from './v1PhotonPersistentDiskVolumeSource';
export * from './v1Pod';
export * from './v1PodAffinity';
export * from './v1PodAffinityTerm';
export * from './v1PodAntiAffinity';
export * from './v1PodCondition';
export * from './v1PodDNSConfig';
export * from './v1PodDNSConfigOption';
export * from './v1PodIP';
export * from './v1PodReadinessGate';
export * from './v1PodSecurityContext';
export * from './v1PodSpec';
export * from './v1PodStatus';
export * from './v1PortworxVolumeSource';
export * from './v1PreferredSchedulingTerm';
export * from './v1Probe';
export * from './v1ProjectedVolumeSource';
export * from './v1QuobyteVolumeSource';
export * from './v1RBDVolumeSource';
export * from './v1ResourceFieldSelector';
export * from './v1ResourceRequirements';
export * from './v1ScaleIOVolumeSource';
export * from './v1SecretEnvSource';
export * from './v1SecretKeySelector';
export * from './v1SecretProjection';
export * from './v1SecretVolumeSource';
export * from './v1SecurityContext';
export * from './v1SELinuxOptions';
export * from './v1ServiceAccountTokenProjection';
export * from './v1Status';
export * from './v1StatusCause';
export * from './v1StatusDetails';
export * from './v1StorageOSVolumeSource';
export * from './v1Sysctl';
export * from './v1TCPSocketAction';
export * from './v1Toleration';
export * from './v1TopologySpreadConstraint';
export * from './v1Volume';
export * from './v1VolumeDevice';
export * from './v1VolumeMount';
export * from './v1VolumeProjection';
export * from './v1VsphereVirtualDiskVolumeSource';
export * from './v1WeightedPodAffinityTerm';
export * from './v1WindowsSecurityContextOptions';
import localVarRequest = require('request');
import { ClusterPatchModel } from './clusterPatchModel';
import { DuskyObjectModelsBackup } from './duskyObjectModelsBackup';
import { DuskyObjectModelsBackupCopySchedule } from './duskyObjectModelsBackupCopySchedule';
import { DuskyObjectModelsBackupRetention } from './duskyObjectModelsBackupRetention';
import { DuskyObjectModelsBackupSpec } from './duskyObjectModelsBackupSpec';
import { DuskyObjectModelsBackupTier } from './duskyObjectModelsBackupTier';
import { DuskyObjectModelsDatabase } from './duskyObjectModelsDatabase';
import { DuskyObjectModelsDatabaseService } from './duskyObjectModelsDatabaseService';
import { DuskyObjectModelsDatabaseServiceArcPayload } from './duskyObjectModelsDatabaseServiceArcPayload';
import { DuskyObjectModelsDatabaseServiceCondition } from './duskyObjectModelsDatabaseServiceCondition';
import { DuskyObjectModelsDatabaseServiceList } from './duskyObjectModelsDatabaseServiceList';
import { DuskyObjectModelsDatabaseServiceSpec } from './duskyObjectModelsDatabaseServiceSpec';
import { DuskyObjectModelsDatabaseServiceStatus } from './duskyObjectModelsDatabaseServiceStatus';
import { DuskyObjectModelsDatabaseServiceVolumeStatus } from './duskyObjectModelsDatabaseServiceVolumeStatus';
import { DuskyObjectModelsDockerSpec } from './duskyObjectModelsDockerSpec';
import { DuskyObjectModelsDuskyValidationMessage } from './duskyObjectModelsDuskyValidationMessage';
import { DuskyObjectModelsDuskyValidationResult } from './duskyObjectModelsDuskyValidationResult';
import { DuskyObjectModelsEngineSettings } from './duskyObjectModelsEngineSettings';
import { DuskyObjectModelsEngineSpec } from './duskyObjectModelsEngineSpec';
import { DuskyObjectModelsError } from './duskyObjectModelsError';
import { DuskyObjectModelsErrorDetails } from './duskyObjectModelsErrorDetails';
import { DuskyObjectModelsMonitoringSpec } from './duskyObjectModelsMonitoringSpec';
import { DuskyObjectModelsOperatorStatus } from './duskyObjectModelsOperatorStatus';
import { DuskyObjectModelsPluginSpec } from './duskyObjectModelsPluginSpec';
import { DuskyObjectModelsReplicaStatus } from './duskyObjectModelsReplicaStatus';
import { DuskyObjectModelsRestoreStatus } from './duskyObjectModelsRestoreStatus';
import { DuskyObjectModelsRetentionSpec } from './duskyObjectModelsRetentionSpec';
import { DuskyObjectModelsRole } from './duskyObjectModelsRole';
import { DuskyObjectModelsScaleSpec } from './duskyObjectModelsScaleSpec';
import { DuskyObjectModelsSchedulingOptions } from './duskyObjectModelsSchedulingOptions';
import { DuskyObjectModelsSchedulingSpec } from './duskyObjectModelsSchedulingSpec';
import { DuskyObjectModelsSecuritySpec } from './duskyObjectModelsSecuritySpec';
import { DuskyObjectModelsServiceSpec } from './duskyObjectModelsServiceSpec';
import { DuskyObjectModelsStorageSpec } from './duskyObjectModelsStorageSpec';
import { DuskyObjectModelsTINASpec } from './duskyObjectModelsTINASpec';
import { DuskyObjectModelsUser } from './duskyObjectModelsUser';
import { IntstrIntOrString } from './intstrIntOrString';
import { LogsRequest } from './logsRequest';
import { V1Affinity } from './v1Affinity';
import { V1AWSElasticBlockStoreVolumeSource } from './v1AWSElasticBlockStoreVolumeSource';
import { V1AzureDiskVolumeSource } from './v1AzureDiskVolumeSource';
import { V1AzureFileVolumeSource } from './v1AzureFileVolumeSource';
import { V1Capabilities } from './v1Capabilities';
import { V1CephFSVolumeSource } from './v1CephFSVolumeSource';
import { V1CinderVolumeSource } from './v1CinderVolumeSource';
import { V1ConfigMapEnvSource } from './v1ConfigMapEnvSource';
import { V1ConfigMapKeySelector } from './v1ConfigMapKeySelector';
import { V1ConfigMapProjection } from './v1ConfigMapProjection';
import { V1ConfigMapVolumeSource } from './v1ConfigMapVolumeSource';
import { V1Container } from './v1Container';
import { V1ContainerPort } from './v1ContainerPort';
import { V1ContainerState } from './v1ContainerState';
import { V1ContainerStateRunning } from './v1ContainerStateRunning';
import { V1ContainerStateTerminated } from './v1ContainerStateTerminated';
import { V1ContainerStateWaiting } from './v1ContainerStateWaiting';
import { V1ContainerStatus } from './v1ContainerStatus';
import { V1CSIVolumeSource } from './v1CSIVolumeSource';
import { V1DownwardAPIProjection } from './v1DownwardAPIProjection';
import { V1DownwardAPIVolumeFile } from './v1DownwardAPIVolumeFile';
import { V1DownwardAPIVolumeSource } from './v1DownwardAPIVolumeSource';
import { V1EmptyDirVolumeSource } from './v1EmptyDirVolumeSource';
import { V1EnvFromSource } from './v1EnvFromSource';
import { V1EnvVar } from './v1EnvVar';
import { V1EnvVarSource } from './v1EnvVarSource';
import { V1EphemeralContainer } from './v1EphemeralContainer';
import { V1ExecAction } from './v1ExecAction';
import { V1FCVolumeSource } from './v1FCVolumeSource';
import { V1FlexVolumeSource } from './v1FlexVolumeSource';
import { V1FlockerVolumeSource } from './v1FlockerVolumeSource';
import { V1GCEPersistentDiskVolumeSource } from './v1GCEPersistentDiskVolumeSource';
import { V1GitRepoVolumeSource } from './v1GitRepoVolumeSource';
import { V1GlusterfsVolumeSource } from './v1GlusterfsVolumeSource';
import { V1Handler } from './v1Handler';
import { V1HostAlias } from './v1HostAlias';
import { V1HostPathVolumeSource } from './v1HostPathVolumeSource';
import { V1HTTPGetAction } from './v1HTTPGetAction';
import { V1HTTPHeader } from './v1HTTPHeader';
import { V1ISCSIVolumeSource } from './v1ISCSIVolumeSource';
import { V1KeyToPath } from './v1KeyToPath';
import { V1LabelSelector } from './v1LabelSelector';
import { V1LabelSelectorRequirement } from './v1LabelSelectorRequirement';
import { V1Lifecycle } from './v1Lifecycle';
import { V1ListMeta } from './v1ListMeta';
import { V1LocalObjectReference } from './v1LocalObjectReference';
import { V1ManagedFieldsEntry } from './v1ManagedFieldsEntry';
import { V1NFSVolumeSource } from './v1NFSVolumeSource';
import { V1NodeAffinity } from './v1NodeAffinity';
import { V1NodeSelector } from './v1NodeSelector';
import { V1NodeSelectorRequirement } from './v1NodeSelectorRequirement';
import { V1NodeSelectorTerm } from './v1NodeSelectorTerm';
import { V1ObjectFieldSelector } from './v1ObjectFieldSelector';
import { V1ObjectMeta } from './v1ObjectMeta';
import { V1OwnerReference } from './v1OwnerReference';
import { V1PersistentVolumeClaimVolumeSource } from './v1PersistentVolumeClaimVolumeSource';
import { V1PhotonPersistentDiskVolumeSource } from './v1PhotonPersistentDiskVolumeSource';
import { V1Pod } from './v1Pod';
import { V1PodAffinity } from './v1PodAffinity';
import { V1PodAffinityTerm } from './v1PodAffinityTerm';
import { V1PodAntiAffinity } from './v1PodAntiAffinity';
import { V1PodCondition } from './v1PodCondition';
import { V1PodDNSConfig } from './v1PodDNSConfig';
import { V1PodDNSConfigOption } from './v1PodDNSConfigOption';
import { V1PodIP } from './v1PodIP';
import { V1PodReadinessGate } from './v1PodReadinessGate';
import { V1PodSecurityContext } from './v1PodSecurityContext';
import { V1PodSpec } from './v1PodSpec';
import { V1PodStatus } from './v1PodStatus';
import { V1PortworxVolumeSource } from './v1PortworxVolumeSource';
import { V1PreferredSchedulingTerm } from './v1PreferredSchedulingTerm';
import { V1Probe } from './v1Probe';
import { V1ProjectedVolumeSource } from './v1ProjectedVolumeSource';
import { V1QuobyteVolumeSource } from './v1QuobyteVolumeSource';
import { V1RBDVolumeSource } from './v1RBDVolumeSource';
import { V1ResourceFieldSelector } from './v1ResourceFieldSelector';
import { V1ResourceRequirements } from './v1ResourceRequirements';
import { V1ScaleIOVolumeSource } from './v1ScaleIOVolumeSource';
import { V1SecretEnvSource } from './v1SecretEnvSource';
import { V1SecretKeySelector } from './v1SecretKeySelector';
import { V1SecretProjection } from './v1SecretProjection';
import { V1SecretVolumeSource } from './v1SecretVolumeSource';
import { V1SecurityContext } from './v1SecurityContext';
import { V1SELinuxOptions } from './v1SELinuxOptions';
import { V1ServiceAccountTokenProjection } from './v1ServiceAccountTokenProjection';
import { V1Status } from './v1Status';
import { V1StatusCause } from './v1StatusCause';
import { V1StatusDetails } from './v1StatusDetails';
import { V1StorageOSVolumeSource } from './v1StorageOSVolumeSource';
import { V1Sysctl } from './v1Sysctl';
import { V1TCPSocketAction } from './v1TCPSocketAction';
import { V1Toleration } from './v1Toleration';
import { V1TopologySpreadConstraint } from './v1TopologySpreadConstraint';
import { V1Volume } from './v1Volume';
import { V1VolumeDevice } from './v1VolumeDevice';
import { V1VolumeMount } from './v1VolumeMount';
import { V1VolumeProjection } from './v1VolumeProjection';
import { V1VsphereVirtualDiskVolumeSource } from './v1VsphereVirtualDiskVolumeSource';
import { V1WeightedPodAffinityTerm } from './v1WeightedPodAffinityTerm';
import { V1WindowsSecurityContextOptions } from './v1WindowsSecurityContextOptions';
/* tslint:disable:no-unused-variable */
let primitives = [
"string",
"boolean",
"double",
"integer",
"long",
"float",
"number",
"any"
];
let enumsMap: {[index: string]: any} = {
"DuskyObjectModelsDockerSpec.ImagePullPolicyEnum": DuskyObjectModelsDockerSpec.ImagePullPolicyEnum,
"DuskyObjectModelsDuskyValidationMessage.TypeEnum": DuskyObjectModelsDuskyValidationMessage.TypeEnum,
"DuskyObjectModelsDuskyValidationMessage.CodeEnum": DuskyObjectModelsDuskyValidationMessage.CodeEnum,
}
let typeMap: {[index: string]: any} = {
"ClusterPatchModel": ClusterPatchModel,
"DuskyObjectModelsBackup": DuskyObjectModelsBackup,
"DuskyObjectModelsBackupCopySchedule": DuskyObjectModelsBackupCopySchedule,
"DuskyObjectModelsBackupRetention": DuskyObjectModelsBackupRetention,
"DuskyObjectModelsBackupSpec": DuskyObjectModelsBackupSpec,
"DuskyObjectModelsBackupTier": DuskyObjectModelsBackupTier,
"DuskyObjectModelsDatabase": DuskyObjectModelsDatabase,
"DuskyObjectModelsDatabaseService": DuskyObjectModelsDatabaseService,
"DuskyObjectModelsDatabaseServiceArcPayload": DuskyObjectModelsDatabaseServiceArcPayload,
"DuskyObjectModelsDatabaseServiceCondition": DuskyObjectModelsDatabaseServiceCondition,
"DuskyObjectModelsDatabaseServiceList": DuskyObjectModelsDatabaseServiceList,
"DuskyObjectModelsDatabaseServiceSpec": DuskyObjectModelsDatabaseServiceSpec,
"DuskyObjectModelsDatabaseServiceStatus": DuskyObjectModelsDatabaseServiceStatus,
"DuskyObjectModelsDatabaseServiceVolumeStatus": DuskyObjectModelsDatabaseServiceVolumeStatus,
"DuskyObjectModelsDockerSpec": DuskyObjectModelsDockerSpec,
"DuskyObjectModelsDuskyValidationMessage": DuskyObjectModelsDuskyValidationMessage,
"DuskyObjectModelsDuskyValidationResult": DuskyObjectModelsDuskyValidationResult,
"DuskyObjectModelsEngineSettings": DuskyObjectModelsEngineSettings,
"DuskyObjectModelsEngineSpec": DuskyObjectModelsEngineSpec,
"DuskyObjectModelsError": DuskyObjectModelsError,
"DuskyObjectModelsErrorDetails": DuskyObjectModelsErrorDetails,
"DuskyObjectModelsMonitoringSpec": DuskyObjectModelsMonitoringSpec,
"DuskyObjectModelsOperatorStatus": DuskyObjectModelsOperatorStatus,
"DuskyObjectModelsPluginSpec": DuskyObjectModelsPluginSpec,
"DuskyObjectModelsReplicaStatus": DuskyObjectModelsReplicaStatus,
"DuskyObjectModelsRestoreStatus": DuskyObjectModelsRestoreStatus,
"DuskyObjectModelsRetentionSpec": DuskyObjectModelsRetentionSpec,
"DuskyObjectModelsRole": DuskyObjectModelsRole,
"DuskyObjectModelsScaleSpec": DuskyObjectModelsScaleSpec,
"DuskyObjectModelsSchedulingOptions": DuskyObjectModelsSchedulingOptions,
"DuskyObjectModelsSchedulingSpec": DuskyObjectModelsSchedulingSpec,
"DuskyObjectModelsSecuritySpec": DuskyObjectModelsSecuritySpec,
"DuskyObjectModelsServiceSpec": DuskyObjectModelsServiceSpec,
"DuskyObjectModelsStorageSpec": DuskyObjectModelsStorageSpec,
"DuskyObjectModelsTINASpec": DuskyObjectModelsTINASpec,
"DuskyObjectModelsUser": DuskyObjectModelsUser,
"IntstrIntOrString": IntstrIntOrString,
"LogsRequest": LogsRequest,
"V1AWSElasticBlockStoreVolumeSource": V1AWSElasticBlockStoreVolumeSource,
"V1Affinity": V1Affinity,
"V1AzureDiskVolumeSource": V1AzureDiskVolumeSource,
"V1AzureFileVolumeSource": V1AzureFileVolumeSource,
"V1CSIVolumeSource": V1CSIVolumeSource,
"V1Capabilities": V1Capabilities,
"V1CephFSVolumeSource": V1CephFSVolumeSource,
"V1CinderVolumeSource": V1CinderVolumeSource,
"V1ConfigMapEnvSource": V1ConfigMapEnvSource,
"V1ConfigMapKeySelector": V1ConfigMapKeySelector,
"V1ConfigMapProjection": V1ConfigMapProjection,
"V1ConfigMapVolumeSource": V1ConfigMapVolumeSource,
"V1Container": V1Container,
"V1ContainerPort": V1ContainerPort,
"V1ContainerState": V1ContainerState,
"V1ContainerStateRunning": V1ContainerStateRunning,
"V1ContainerStateTerminated": V1ContainerStateTerminated,
"V1ContainerStateWaiting": V1ContainerStateWaiting,
"V1ContainerStatus": V1ContainerStatus,
"V1DownwardAPIProjection": V1DownwardAPIProjection,
"V1DownwardAPIVolumeFile": V1DownwardAPIVolumeFile,
"V1DownwardAPIVolumeSource": V1DownwardAPIVolumeSource,
"V1EmptyDirVolumeSource": V1EmptyDirVolumeSource,
"V1EnvFromSource": V1EnvFromSource,
"V1EnvVar": V1EnvVar,
"V1EnvVarSource": V1EnvVarSource,
"V1EphemeralContainer": V1EphemeralContainer,
"V1ExecAction": V1ExecAction,
"V1FCVolumeSource": V1FCVolumeSource,
"V1FlexVolumeSource": V1FlexVolumeSource,
"V1FlockerVolumeSource": V1FlockerVolumeSource,
"V1GCEPersistentDiskVolumeSource": V1GCEPersistentDiskVolumeSource,
"V1GitRepoVolumeSource": V1GitRepoVolumeSource,
"V1GlusterfsVolumeSource": V1GlusterfsVolumeSource,
"V1HTTPGetAction": V1HTTPGetAction,
"V1HTTPHeader": V1HTTPHeader,
"V1Handler": V1Handler,
"V1HostAlias": V1HostAlias,
"V1HostPathVolumeSource": V1HostPathVolumeSource,
"V1ISCSIVolumeSource": V1ISCSIVolumeSource,
"V1KeyToPath": V1KeyToPath,
"V1LabelSelector": V1LabelSelector,
"V1LabelSelectorRequirement": V1LabelSelectorRequirement,
"V1Lifecycle": V1Lifecycle,
"V1ListMeta": V1ListMeta,
"V1LocalObjectReference": V1LocalObjectReference,
"V1ManagedFieldsEntry": V1ManagedFieldsEntry,
"V1NFSVolumeSource": V1NFSVolumeSource,
"V1NodeAffinity": V1NodeAffinity,
"V1NodeSelector": V1NodeSelector,
"V1NodeSelectorRequirement": V1NodeSelectorRequirement,
"V1NodeSelectorTerm": V1NodeSelectorTerm,
"V1ObjectFieldSelector": V1ObjectFieldSelector,
"V1ObjectMeta": V1ObjectMeta,
"V1OwnerReference": V1OwnerReference,
"V1PersistentVolumeClaimVolumeSource": V1PersistentVolumeClaimVolumeSource,
"V1PhotonPersistentDiskVolumeSource": V1PhotonPersistentDiskVolumeSource,
"V1Pod": V1Pod,
"V1PodAffinity": V1PodAffinity,
"V1PodAffinityTerm": V1PodAffinityTerm,
"V1PodAntiAffinity": V1PodAntiAffinity,
"V1PodCondition": V1PodCondition,
"V1PodDNSConfig": V1PodDNSConfig,
"V1PodDNSConfigOption": V1PodDNSConfigOption,
"V1PodIP": V1PodIP,
"V1PodReadinessGate": V1PodReadinessGate,
"V1PodSecurityContext": V1PodSecurityContext,
"V1PodSpec": V1PodSpec,
"V1PodStatus": V1PodStatus,
"V1PortworxVolumeSource": V1PortworxVolumeSource,
"V1PreferredSchedulingTerm": V1PreferredSchedulingTerm,
"V1Probe": V1Probe,
"V1ProjectedVolumeSource": V1ProjectedVolumeSource,
"V1QuobyteVolumeSource": V1QuobyteVolumeSource,
"V1RBDVolumeSource": V1RBDVolumeSource,
"V1ResourceFieldSelector": V1ResourceFieldSelector,
"V1ResourceRequirements": V1ResourceRequirements,
"V1SELinuxOptions": V1SELinuxOptions,
"V1ScaleIOVolumeSource": V1ScaleIOVolumeSource,
"V1SecretEnvSource": V1SecretEnvSource,
"V1SecretKeySelector": V1SecretKeySelector,
"V1SecretProjection": V1SecretProjection,
"V1SecretVolumeSource": V1SecretVolumeSource,
"V1SecurityContext": V1SecurityContext,
"V1ServiceAccountTokenProjection": V1ServiceAccountTokenProjection,
"V1Status": V1Status,
"V1StatusCause": V1StatusCause,
"V1StatusDetails": V1StatusDetails,
"V1StorageOSVolumeSource": V1StorageOSVolumeSource,
"V1Sysctl": V1Sysctl,
"V1TCPSocketAction": V1TCPSocketAction,
"V1Toleration": V1Toleration,
"V1TopologySpreadConstraint": V1TopologySpreadConstraint,
"V1Volume": V1Volume,
"V1VolumeDevice": V1VolumeDevice,
"V1VolumeMount": V1VolumeMount,
"V1VolumeProjection": V1VolumeProjection,
"V1VsphereVirtualDiskVolumeSource": V1VsphereVirtualDiskVolumeSource,
"V1WeightedPodAffinityTerm": V1WeightedPodAffinityTerm,
"V1WindowsSecurityContextOptions": V1WindowsSecurityContextOptions,
}
export class ObjectSerializer {
public static findCorrectType(data: any, expectedType: string) {
if (data == undefined) {
return expectedType;
} else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) {
return expectedType;
} else if (expectedType === "Date") {
return expectedType;
} else {
if (enumsMap[expectedType]) {
return expectedType;
}
if (!typeMap[expectedType]) {
return expectedType; // w/e we don't know the type
}
// Check the discriminator
let discriminatorProperty = typeMap[expectedType].discriminator;
if (discriminatorProperty == null) {
return expectedType; // the type does not have a discriminator. use it.
} else {
if (data[discriminatorProperty]) {
var discriminatorType = data[discriminatorProperty];
if(typeMap[discriminatorType]){
return discriminatorType; // use the type given in the discriminator
} else {
return expectedType; // discriminator did not map to a type
}
} else {
return expectedType; // discriminator was not present (or an empty string)
}
}
}
}
public static serialize(data: any, type: string) {
if (data == undefined) {
return data;
} else if (primitives.indexOf(type.toLowerCase()) !== -1) {
return data;
} else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6
let subType: string = type.replace("Array<", ""); // Array<Type> => Type>
subType = subType.substring(0, subType.length - 1); // Type> => Type
let transformedData: any[] = [];
for (let index in data) {
let date = data[index];
transformedData.push(ObjectSerializer.serialize(date, subType));
}
return transformedData;
} else if (type === "Date") {
return data.toISOString();
} else {
if (enumsMap[type]) {
return data;
}
if (!typeMap[type]) { // in case we dont know the type
return data;
}
// Get the actual type of this object
type = this.findCorrectType(data, type);
// get the map for the correct type.
let attributeTypes = typeMap[type].getAttributeTypeMap();
let instance: {[index: string]: any} = {};
for (let index in attributeTypes) {
let attributeType = attributeTypes[index];
instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type);
}
return instance;
}
}
public static deserialize(data: any, type: string) {
// polymorphism may change the actual type.
type = ObjectSerializer.findCorrectType(data, type);
if (data == undefined) {
return data;
} else if (primitives.indexOf(type.toLowerCase()) !== -1) {
return data;
} else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6
let subType: string = type.replace("Array<", ""); // Array<Type> => Type>
subType = subType.substring(0, subType.length - 1); // Type> => Type
let transformedData: any[] = [];
for (let index in data) {
let date = data[index];
transformedData.push(ObjectSerializer.deserialize(date, subType));
}
return transformedData;
} else if (type === "Date") {
return new Date(data);
} else {
if (enumsMap[type]) {// is Enum
return data;
}
if (!typeMap[type]) { // dont know the type
return data;
}
let instance = new typeMap[type]();
let attributeTypes = typeMap[type].getAttributeTypeMap();
for (let index in attributeTypes) {
let attributeType = attributeTypes[index];
instance[attributeType.name] = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type);
}
return instance;
}
}
}
export interface Authentication {
/**
* Apply authentication settings to header and query params.
*/
applyToRequest(requestOptions: localVarRequest.Options): Promise<void> | void;
}
export class HttpBasicAuth implements Authentication {
public username: string = '';
public password: string = '';
applyToRequest(requestOptions: localVarRequest.Options): void {
requestOptions.auth = {
username: this.username, password: this.password
}
}
}
export class HttpBearerAuth implements Authentication {
public accessToken: string | (() => string) = '';
applyToRequest(requestOptions: localVarRequest.Options): void {
if (requestOptions && requestOptions.headers) {
const accessToken = typeof this.accessToken === 'function'
? this.accessToken()
: this.accessToken;
requestOptions.headers["Authorization"] = "Bearer " + accessToken;
}
}
}
export class ApiKeyAuth implements Authentication {
public apiKey: string = '';
constructor(private location: string, private paramName: string) {
}
applyToRequest(requestOptions: localVarRequest.Options): void {
if (this.location == "query") {
(<any>requestOptions.qs)[this.paramName] = this.apiKey;
} else if (this.location == "header" && requestOptions && requestOptions.headers) {
requestOptions.headers[this.paramName] = this.apiKey;
} else if (this.location == 'cookie' && requestOptions && requestOptions.headers) {
if (requestOptions.headers['Cookie']) {
requestOptions.headers['Cookie'] += '; ' + this.paramName + '=' + encodeURIComponent(this.apiKey);
}
else {
requestOptions.headers['Cookie'] = this.paramName + '=' + encodeURIComponent(this.apiKey);
}
}
}
}
export class OAuth implements Authentication {
public accessToken: string = '';
applyToRequest(requestOptions: localVarRequest.Options): void {
if (requestOptions && requestOptions.headers) {
requestOptions.headers["Authorization"] = "Bearer " + this.accessToken;
}
}
}
export class VoidAuth implements Authentication {
public username: string = '';
public password: string = '';
applyToRequest(_: localVarRequest.Options): void {
// Do nothing
}
}
export type Interceptor = (requestOptions: localVarRequest.Options) => (Promise<void> | void);

View File

@@ -1,48 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class V1AWSElasticBlockStoreVolumeSource {
'fsType'?: string;
'partition'?: number | null;
'readOnly'?: boolean | null;
'volumeID'?: string;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "fsType",
"baseName": "fsType",
"type": "string"
},
{
"name": "partition",
"baseName": "partition",
"type": "number"
},
{
"name": "readOnly",
"baseName": "readOnly",
"type": "boolean"
},
{
"name": "volumeID",
"baseName": "volumeID",
"type": "string"
} ];
static getAttributeTypeMap() {
return V1AWSElasticBlockStoreVolumeSource.attributeTypeMap;
}
}

View File

@@ -1,45 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { V1NodeAffinity } from './v1NodeAffinity';
import { V1PodAffinity } from './v1PodAffinity';
import { V1PodAntiAffinity } from './v1PodAntiAffinity';
export class V1Affinity {
'nodeAffinity'?: V1NodeAffinity;
'podAffinity'?: V1PodAffinity;
'podAntiAffinity'?: V1PodAntiAffinity;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "nodeAffinity",
"baseName": "nodeAffinity",
"type": "V1NodeAffinity"
},
{
"name": "podAffinity",
"baseName": "podAffinity",
"type": "V1PodAffinity"
},
{
"name": "podAntiAffinity",
"baseName": "podAntiAffinity",
"type": "V1PodAntiAffinity"
} ];
static getAttributeTypeMap() {
return V1Affinity.attributeTypeMap;
}
}

View File

@@ -1,60 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class V1AzureDiskVolumeSource {
'cachingMode'?: string;
'diskName'?: string;
'diskURI'?: string;
'fsType'?: string;
'kind'?: string;
'readOnly'?: boolean | null;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "cachingMode",
"baseName": "cachingMode",
"type": "string"
},
{
"name": "diskName",
"baseName": "diskName",
"type": "string"
},
{
"name": "diskURI",
"baseName": "diskURI",
"type": "string"
},
{
"name": "fsType",
"baseName": "fsType",
"type": "string"
},
{
"name": "kind",
"baseName": "kind",
"type": "string"
},
{
"name": "readOnly",
"baseName": "readOnly",
"type": "boolean"
} ];
static getAttributeTypeMap() {
return V1AzureDiskVolumeSource.attributeTypeMap;
}
}

View File

@@ -1,42 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class V1AzureFileVolumeSource {
'readOnly'?: boolean | null;
'secretName'?: string;
'shareName'?: string;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "readOnly",
"baseName": "readOnly",
"type": "boolean"
},
{
"name": "secretName",
"baseName": "secretName",
"type": "string"
},
{
"name": "shareName",
"baseName": "shareName",
"type": "string"
} ];
static getAttributeTypeMap() {
return V1AzureFileVolumeSource.attributeTypeMap;
}
}

View File

@@ -1,55 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { V1LocalObjectReference } from './v1LocalObjectReference';
export class V1CSIVolumeSource {
'driver'?: string;
'fsType'?: string;
'nodePublishSecretRef'?: V1LocalObjectReference;
'readOnly'?: boolean | null;
'volumeAttributes'?: { [key: string]: string; };
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "driver",
"baseName": "driver",
"type": "string"
},
{
"name": "fsType",
"baseName": "fsType",
"type": "string"
},
{
"name": "nodePublishSecretRef",
"baseName": "nodePublishSecretRef",
"type": "V1LocalObjectReference"
},
{
"name": "readOnly",
"baseName": "readOnly",
"type": "boolean"
},
{
"name": "volumeAttributes",
"baseName": "volumeAttributes",
"type": "{ [key: string]: string; }"
} ];
static getAttributeTypeMap() {
return V1CSIVolumeSource.attributeTypeMap;
}
}

View File

@@ -1,36 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class V1Capabilities {
'add'?: Array<string>;
'drop'?: Array<string>;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "add",
"baseName": "add",
"type": "Array<string>"
},
{
"name": "drop",
"baseName": "drop",
"type": "Array<string>"
} ];
static getAttributeTypeMap() {
return V1Capabilities.attributeTypeMap;
}
}

View File

@@ -1,61 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { V1LocalObjectReference } from './v1LocalObjectReference';
export class V1CephFSVolumeSource {
'monitors'?: Array<string>;
'path'?: string;
'readOnly'?: boolean | null;
'secretFile'?: string;
'secretRef'?: V1LocalObjectReference;
'user'?: string;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "monitors",
"baseName": "monitors",
"type": "Array<string>"
},
{
"name": "path",
"baseName": "path",
"type": "string"
},
{
"name": "readOnly",
"baseName": "readOnly",
"type": "boolean"
},
{
"name": "secretFile",
"baseName": "secretFile",
"type": "string"
},
{
"name": "secretRef",
"baseName": "secretRef",
"type": "V1LocalObjectReference"
},
{
"name": "user",
"baseName": "user",
"type": "string"
} ];
static getAttributeTypeMap() {
return V1CephFSVolumeSource.attributeTypeMap;
}
}

View File

@@ -1,49 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { V1LocalObjectReference } from './v1LocalObjectReference';
export class V1CinderVolumeSource {
'fsType'?: string;
'readOnly'?: boolean | null;
'secretRef'?: V1LocalObjectReference;
'volumeID'?: string;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "fsType",
"baseName": "fsType",
"type": "string"
},
{
"name": "readOnly",
"baseName": "readOnly",
"type": "boolean"
},
{
"name": "secretRef",
"baseName": "secretRef",
"type": "V1LocalObjectReference"
},
{
"name": "volumeID",
"baseName": "volumeID",
"type": "string"
} ];
static getAttributeTypeMap() {
return V1CinderVolumeSource.attributeTypeMap;
}
}

View File

@@ -1,36 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class V1ConfigMapEnvSource {
'name'?: string;
'optional'?: boolean | null;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "name",
"baseName": "name",
"type": "string"
},
{
"name": "optional",
"baseName": "optional",
"type": "boolean"
} ];
static getAttributeTypeMap() {
return V1ConfigMapEnvSource.attributeTypeMap;
}
}

View File

@@ -1,42 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class V1ConfigMapKeySelector {
'key'?: string;
'name'?: string;
'optional'?: boolean | null;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "key",
"baseName": "key",
"type": "string"
},
{
"name": "name",
"baseName": "name",
"type": "string"
},
{
"name": "optional",
"baseName": "optional",
"type": "boolean"
} ];
static getAttributeTypeMap() {
return V1ConfigMapKeySelector.attributeTypeMap;
}
}

View File

@@ -1,43 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { V1KeyToPath } from './v1KeyToPath';
export class V1ConfigMapProjection {
'items'?: Array<V1KeyToPath>;
'name'?: string;
'optional'?: boolean | null;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "items",
"baseName": "items",
"type": "Array<V1KeyToPath>"
},
{
"name": "name",
"baseName": "name",
"type": "string"
},
{
"name": "optional",
"baseName": "optional",
"type": "boolean"
} ];
static getAttributeTypeMap() {
return V1ConfigMapProjection.attributeTypeMap;
}
}

View File

@@ -1,49 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { V1KeyToPath } from './v1KeyToPath';
export class V1ConfigMapVolumeSource {
'defaultMode'?: number | null;
'items'?: Array<V1KeyToPath>;
'name'?: string;
'optional'?: boolean | null;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "defaultMode",
"baseName": "defaultMode",
"type": "number"
},
{
"name": "items",
"baseName": "items",
"type": "Array<V1KeyToPath>"
},
{
"name": "name",
"baseName": "name",
"type": "string"
},
{
"name": "optional",
"baseName": "optional",
"type": "boolean"
} ];
static getAttributeTypeMap() {
return V1ConfigMapVolumeSource.attributeTypeMap;
}
}

View File

@@ -1,165 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { V1ContainerPort } from './v1ContainerPort';
import { V1EnvFromSource } from './v1EnvFromSource';
import { V1EnvVar } from './v1EnvVar';
import { V1Lifecycle } from './v1Lifecycle';
import { V1Probe } from './v1Probe';
import { V1ResourceRequirements } from './v1ResourceRequirements';
import { V1SecurityContext } from './v1SecurityContext';
import { V1VolumeDevice } from './v1VolumeDevice';
import { V1VolumeMount } from './v1VolumeMount';
export class V1Container {
'args'?: Array<string>;
'command'?: Array<string>;
'env'?: Array<V1EnvVar>;
'envFrom'?: Array<V1EnvFromSource>;
'image'?: string;
'imagePullPolicy'?: string;
'lifecycle'?: V1Lifecycle;
'livenessProbe'?: V1Probe;
'name'?: string;
'ports'?: Array<V1ContainerPort>;
'readinessProbe'?: V1Probe;
'resources'?: V1ResourceRequirements;
'securityContext'?: V1SecurityContext;
'startupProbe'?: V1Probe;
'stdin'?: boolean | null;
'stdinOnce'?: boolean | null;
'terminationMessagePath'?: string;
'terminationMessagePolicy'?: string;
'tty'?: boolean | null;
'volumeDevices'?: Array<V1VolumeDevice>;
'volumeMounts'?: Array<V1VolumeMount>;
'workingDir'?: string;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "args",
"baseName": "args",
"type": "Array<string>"
},
{
"name": "command",
"baseName": "command",
"type": "Array<string>"
},
{
"name": "env",
"baseName": "env",
"type": "Array<V1EnvVar>"
},
{
"name": "envFrom",
"baseName": "envFrom",
"type": "Array<V1EnvFromSource>"
},
{
"name": "image",
"baseName": "image",
"type": "string"
},
{
"name": "imagePullPolicy",
"baseName": "imagePullPolicy",
"type": "string"
},
{
"name": "lifecycle",
"baseName": "lifecycle",
"type": "V1Lifecycle"
},
{
"name": "livenessProbe",
"baseName": "livenessProbe",
"type": "V1Probe"
},
{
"name": "name",
"baseName": "name",
"type": "string"
},
{
"name": "ports",
"baseName": "ports",
"type": "Array<V1ContainerPort>"
},
{
"name": "readinessProbe",
"baseName": "readinessProbe",
"type": "V1Probe"
},
{
"name": "resources",
"baseName": "resources",
"type": "V1ResourceRequirements"
},
{
"name": "securityContext",
"baseName": "securityContext",
"type": "V1SecurityContext"
},
{
"name": "startupProbe",
"baseName": "startupProbe",
"type": "V1Probe"
},
{
"name": "stdin",
"baseName": "stdin",
"type": "boolean"
},
{
"name": "stdinOnce",
"baseName": "stdinOnce",
"type": "boolean"
},
{
"name": "terminationMessagePath",
"baseName": "terminationMessagePath",
"type": "string"
},
{
"name": "terminationMessagePolicy",
"baseName": "terminationMessagePolicy",
"type": "string"
},
{
"name": "tty",
"baseName": "tty",
"type": "boolean"
},
{
"name": "volumeDevices",
"baseName": "volumeDevices",
"type": "Array<V1VolumeDevice>"
},
{
"name": "volumeMounts",
"baseName": "volumeMounts",
"type": "Array<V1VolumeMount>"
},
{
"name": "workingDir",
"baseName": "workingDir",
"type": "string"
} ];
static getAttributeTypeMap() {
return V1Container.attributeTypeMap;
}
}

View File

@@ -1,54 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class V1ContainerPort {
'containerPort'?: number;
'hostIP'?: string;
'hostPort'?: number | null;
'name'?: string;
'protocol'?: string;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "containerPort",
"baseName": "containerPort",
"type": "number"
},
{
"name": "hostIP",
"baseName": "hostIP",
"type": "string"
},
{
"name": "hostPort",
"baseName": "hostPort",
"type": "number"
},
{
"name": "name",
"baseName": "name",
"type": "string"
},
{
"name": "protocol",
"baseName": "protocol",
"type": "string"
} ];
static getAttributeTypeMap() {
return V1ContainerPort.attributeTypeMap;
}
}

View File

@@ -1,45 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { V1ContainerStateRunning } from './v1ContainerStateRunning';
import { V1ContainerStateTerminated } from './v1ContainerStateTerminated';
import { V1ContainerStateWaiting } from './v1ContainerStateWaiting';
export class V1ContainerState {
'running'?: V1ContainerStateRunning;
'terminated'?: V1ContainerStateTerminated;
'waiting'?: V1ContainerStateWaiting;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "running",
"baseName": "running",
"type": "V1ContainerStateRunning"
},
{
"name": "terminated",
"baseName": "terminated",
"type": "V1ContainerStateTerminated"
},
{
"name": "waiting",
"baseName": "waiting",
"type": "V1ContainerStateWaiting"
} ];
static getAttributeTypeMap() {
return V1ContainerState.attributeTypeMap;
}
}

View File

@@ -1,30 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class V1ContainerStateRunning {
'startedAt'?: Date | null;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "startedAt",
"baseName": "startedAt",
"type": "Date"
} ];
static getAttributeTypeMap() {
return V1ContainerStateRunning.attributeTypeMap;
}
}

View File

@@ -1,66 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class V1ContainerStateTerminated {
'containerID'?: string;
'exitCode'?: number;
'finishedAt'?: Date | null;
'message'?: string;
'reason'?: string;
'signal'?: number | null;
'startedAt'?: Date | null;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "containerID",
"baseName": "containerID",
"type": "string"
},
{
"name": "exitCode",
"baseName": "exitCode",
"type": "number"
},
{
"name": "finishedAt",
"baseName": "finishedAt",
"type": "Date"
},
{
"name": "message",
"baseName": "message",
"type": "string"
},
{
"name": "reason",
"baseName": "reason",
"type": "string"
},
{
"name": "signal",
"baseName": "signal",
"type": "number"
},
{
"name": "startedAt",
"baseName": "startedAt",
"type": "Date"
} ];
static getAttributeTypeMap() {
return V1ContainerStateTerminated.attributeTypeMap;
}
}

View File

@@ -1,36 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class V1ContainerStateWaiting {
'message'?: string;
'reason'?: string;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "message",
"baseName": "message",
"type": "string"
},
{
"name": "reason",
"baseName": "reason",
"type": "string"
} ];
static getAttributeTypeMap() {
return V1ContainerStateWaiting.attributeTypeMap;
}
}

View File

@@ -1,79 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { V1ContainerState } from './v1ContainerState';
export class V1ContainerStatus {
'containerID'?: string;
'image'?: string;
'imageID'?: string;
'lastState'?: V1ContainerState;
'name'?: string;
'ready'?: boolean;
'restartCount'?: number;
'started'?: boolean | null;
'state'?: V1ContainerState;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "containerID",
"baseName": "containerID",
"type": "string"
},
{
"name": "image",
"baseName": "image",
"type": "string"
},
{
"name": "imageID",
"baseName": "imageID",
"type": "string"
},
{
"name": "lastState",
"baseName": "lastState",
"type": "V1ContainerState"
},
{
"name": "name",
"baseName": "name",
"type": "string"
},
{
"name": "ready",
"baseName": "ready",
"type": "boolean"
},
{
"name": "restartCount",
"baseName": "restartCount",
"type": "number"
},
{
"name": "started",
"baseName": "started",
"type": "boolean"
},
{
"name": "state",
"baseName": "state",
"type": "V1ContainerState"
} ];
static getAttributeTypeMap() {
return V1ContainerStatus.attributeTypeMap;
}
}

View File

@@ -1,31 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { V1DownwardAPIVolumeFile } from './v1DownwardAPIVolumeFile';
export class V1DownwardAPIProjection {
'items'?: Array<V1DownwardAPIVolumeFile>;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "items",
"baseName": "items",
"type": "Array<V1DownwardAPIVolumeFile>"
} ];
static getAttributeTypeMap() {
return V1DownwardAPIProjection.attributeTypeMap;
}
}

View File

@@ -1,50 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { V1ObjectFieldSelector } from './v1ObjectFieldSelector';
import { V1ResourceFieldSelector } from './v1ResourceFieldSelector';
export class V1DownwardAPIVolumeFile {
'fieldRef'?: V1ObjectFieldSelector;
'mode'?: number | null;
'path'?: string;
'resourceFieldRef'?: V1ResourceFieldSelector;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "fieldRef",
"baseName": "fieldRef",
"type": "V1ObjectFieldSelector"
},
{
"name": "mode",
"baseName": "mode",
"type": "number"
},
{
"name": "path",
"baseName": "path",
"type": "string"
},
{
"name": "resourceFieldRef",
"baseName": "resourceFieldRef",
"type": "V1ResourceFieldSelector"
} ];
static getAttributeTypeMap() {
return V1DownwardAPIVolumeFile.attributeTypeMap;
}
}

View File

@@ -1,37 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { V1DownwardAPIVolumeFile } from './v1DownwardAPIVolumeFile';
export class V1DownwardAPIVolumeSource {
'defaultMode'?: number | null;
'items'?: Array<V1DownwardAPIVolumeFile>;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "defaultMode",
"baseName": "defaultMode",
"type": "number"
},
{
"name": "items",
"baseName": "items",
"type": "Array<V1DownwardAPIVolumeFile>"
} ];
static getAttributeTypeMap() {
return V1DownwardAPIVolumeSource.attributeTypeMap;
}
}

View File

@@ -1,36 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class V1EmptyDirVolumeSource {
'medium'?: string;
'sizeLimit'?: string;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "medium",
"baseName": "medium",
"type": "string"
},
{
"name": "sizeLimit",
"baseName": "sizeLimit",
"type": "string"
} ];
static getAttributeTypeMap() {
return V1EmptyDirVolumeSource.attributeTypeMap;
}
}

View File

@@ -1,44 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { V1ConfigMapEnvSource } from './v1ConfigMapEnvSource';
import { V1SecretEnvSource } from './v1SecretEnvSource';
export class V1EnvFromSource {
'configMapRef'?: V1ConfigMapEnvSource;
'prefix'?: string;
'secretRef'?: V1SecretEnvSource;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "configMapRef",
"baseName": "configMapRef",
"type": "V1ConfigMapEnvSource"
},
{
"name": "prefix",
"baseName": "prefix",
"type": "string"
},
{
"name": "secretRef",
"baseName": "secretRef",
"type": "V1SecretEnvSource"
} ];
static getAttributeTypeMap() {
return V1EnvFromSource.attributeTypeMap;
}
}

View File

@@ -1,43 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { V1EnvVarSource } from './v1EnvVarSource';
export class V1EnvVar {
'name'?: string;
'value'?: string;
'valueFrom'?: V1EnvVarSource;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "name",
"baseName": "name",
"type": "string"
},
{
"name": "value",
"baseName": "value",
"type": "string"
},
{
"name": "valueFrom",
"baseName": "valueFrom",
"type": "V1EnvVarSource"
} ];
static getAttributeTypeMap() {
return V1EnvVar.attributeTypeMap;
}
}

View File

@@ -1,52 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { V1ConfigMapKeySelector } from './v1ConfigMapKeySelector';
import { V1ObjectFieldSelector } from './v1ObjectFieldSelector';
import { V1ResourceFieldSelector } from './v1ResourceFieldSelector';
import { V1SecretKeySelector } from './v1SecretKeySelector';
export class V1EnvVarSource {
'configMapKeyRef'?: V1ConfigMapKeySelector;
'fieldRef'?: V1ObjectFieldSelector;
'resourceFieldRef'?: V1ResourceFieldSelector;
'secretKeyRef'?: V1SecretKeySelector;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "configMapKeyRef",
"baseName": "configMapKeyRef",
"type": "V1ConfigMapKeySelector"
},
{
"name": "fieldRef",
"baseName": "fieldRef",
"type": "V1ObjectFieldSelector"
},
{
"name": "resourceFieldRef",
"baseName": "resourceFieldRef",
"type": "V1ResourceFieldSelector"
},
{
"name": "secretKeyRef",
"baseName": "secretKeyRef",
"type": "V1SecretKeySelector"
} ];
static getAttributeTypeMap() {
return V1EnvVarSource.attributeTypeMap;
}
}

View File

@@ -1,171 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { V1ContainerPort } from './v1ContainerPort';
import { V1EnvFromSource } from './v1EnvFromSource';
import { V1EnvVar } from './v1EnvVar';
import { V1Lifecycle } from './v1Lifecycle';
import { V1Probe } from './v1Probe';
import { V1ResourceRequirements } from './v1ResourceRequirements';
import { V1SecurityContext } from './v1SecurityContext';
import { V1VolumeDevice } from './v1VolumeDevice';
import { V1VolumeMount } from './v1VolumeMount';
export class V1EphemeralContainer {
'args'?: Array<string>;
'command'?: Array<string>;
'env'?: Array<V1EnvVar>;
'envFrom'?: Array<V1EnvFromSource>;
'image'?: string;
'imagePullPolicy'?: string;
'lifecycle'?: V1Lifecycle;
'livenessProbe'?: V1Probe;
'name'?: string;
'ports'?: Array<V1ContainerPort>;
'readinessProbe'?: V1Probe;
'resources'?: V1ResourceRequirements;
'securityContext'?: V1SecurityContext;
'startupProbe'?: V1Probe;
'stdin'?: boolean | null;
'stdinOnce'?: boolean | null;
'targetContainerName'?: string;
'terminationMessagePath'?: string;
'terminationMessagePolicy'?: string;
'tty'?: boolean | null;
'volumeDevices'?: Array<V1VolumeDevice>;
'volumeMounts'?: Array<V1VolumeMount>;
'workingDir'?: string;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "args",
"baseName": "args",
"type": "Array<string>"
},
{
"name": "command",
"baseName": "command",
"type": "Array<string>"
},
{
"name": "env",
"baseName": "env",
"type": "Array<V1EnvVar>"
},
{
"name": "envFrom",
"baseName": "envFrom",
"type": "Array<V1EnvFromSource>"
},
{
"name": "image",
"baseName": "image",
"type": "string"
},
{
"name": "imagePullPolicy",
"baseName": "imagePullPolicy",
"type": "string"
},
{
"name": "lifecycle",
"baseName": "lifecycle",
"type": "V1Lifecycle"
},
{
"name": "livenessProbe",
"baseName": "livenessProbe",
"type": "V1Probe"
},
{
"name": "name",
"baseName": "name",
"type": "string"
},
{
"name": "ports",
"baseName": "ports",
"type": "Array<V1ContainerPort>"
},
{
"name": "readinessProbe",
"baseName": "readinessProbe",
"type": "V1Probe"
},
{
"name": "resources",
"baseName": "resources",
"type": "V1ResourceRequirements"
},
{
"name": "securityContext",
"baseName": "securityContext",
"type": "V1SecurityContext"
},
{
"name": "startupProbe",
"baseName": "startupProbe",
"type": "V1Probe"
},
{
"name": "stdin",
"baseName": "stdin",
"type": "boolean"
},
{
"name": "stdinOnce",
"baseName": "stdinOnce",
"type": "boolean"
},
{
"name": "targetContainerName",
"baseName": "targetContainerName",
"type": "string"
},
{
"name": "terminationMessagePath",
"baseName": "terminationMessagePath",
"type": "string"
},
{
"name": "terminationMessagePolicy",
"baseName": "terminationMessagePolicy",
"type": "string"
},
{
"name": "tty",
"baseName": "tty",
"type": "boolean"
},
{
"name": "volumeDevices",
"baseName": "volumeDevices",
"type": "Array<V1VolumeDevice>"
},
{
"name": "volumeMounts",
"baseName": "volumeMounts",
"type": "Array<V1VolumeMount>"
},
{
"name": "workingDir",
"baseName": "workingDir",
"type": "string"
} ];
static getAttributeTypeMap() {
return V1EphemeralContainer.attributeTypeMap;
}
}

View File

@@ -1,30 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class V1ExecAction {
'command'?: Array<string>;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "command",
"baseName": "command",
"type": "Array<string>"
} ];
static getAttributeTypeMap() {
return V1ExecAction.attributeTypeMap;
}
}

View File

@@ -1,54 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class V1FCVolumeSource {
'fsType'?: string;
'lun'?: number | null;
'readOnly'?: boolean | null;
'targetWWNs'?: Array<string>;
'wwids'?: Array<string>;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "fsType",
"baseName": "fsType",
"type": "string"
},
{
"name": "lun",
"baseName": "lun",
"type": "number"
},
{
"name": "readOnly",
"baseName": "readOnly",
"type": "boolean"
},
{
"name": "targetWWNs",
"baseName": "targetWWNs",
"type": "Array<string>"
},
{
"name": "wwids",
"baseName": "wwids",
"type": "Array<string>"
} ];
static getAttributeTypeMap() {
return V1FCVolumeSource.attributeTypeMap;
}
}

View File

@@ -1,55 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { V1LocalObjectReference } from './v1LocalObjectReference';
export class V1FlexVolumeSource {
'driver'?: string;
'fsType'?: string;
'options'?: { [key: string]: string; };
'readOnly'?: boolean | null;
'secretRef'?: V1LocalObjectReference;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "driver",
"baseName": "driver",
"type": "string"
},
{
"name": "fsType",
"baseName": "fsType",
"type": "string"
},
{
"name": "options",
"baseName": "options",
"type": "{ [key: string]: string; }"
},
{
"name": "readOnly",
"baseName": "readOnly",
"type": "boolean"
},
{
"name": "secretRef",
"baseName": "secretRef",
"type": "V1LocalObjectReference"
} ];
static getAttributeTypeMap() {
return V1FlexVolumeSource.attributeTypeMap;
}
}

View File

@@ -1,36 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class V1FlockerVolumeSource {
'datasetName'?: string;
'datasetUUID'?: string;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "datasetName",
"baseName": "datasetName",
"type": "string"
},
{
"name": "datasetUUID",
"baseName": "datasetUUID",
"type": "string"
} ];
static getAttributeTypeMap() {
return V1FlockerVolumeSource.attributeTypeMap;
}
}

View File

@@ -1,48 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class V1GCEPersistentDiskVolumeSource {
'fsType'?: string;
'partition'?: number | null;
'pdName'?: string;
'readOnly'?: boolean | null;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "fsType",
"baseName": "fsType",
"type": "string"
},
{
"name": "partition",
"baseName": "partition",
"type": "number"
},
{
"name": "pdName",
"baseName": "pdName",
"type": "string"
},
{
"name": "readOnly",
"baseName": "readOnly",
"type": "boolean"
} ];
static getAttributeTypeMap() {
return V1GCEPersistentDiskVolumeSource.attributeTypeMap;
}
}

View File

@@ -1,42 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class V1GitRepoVolumeSource {
'directory'?: string;
'repository'?: string;
'revision'?: string;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "directory",
"baseName": "directory",
"type": "string"
},
{
"name": "repository",
"baseName": "repository",
"type": "string"
},
{
"name": "revision",
"baseName": "revision",
"type": "string"
} ];
static getAttributeTypeMap() {
return V1GitRepoVolumeSource.attributeTypeMap;
}
}

View File

@@ -1,42 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class V1GlusterfsVolumeSource {
'endpoints'?: string;
'path'?: string;
'readOnly'?: boolean | null;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "endpoints",
"baseName": "endpoints",
"type": "string"
},
{
"name": "path",
"baseName": "path",
"type": "string"
},
{
"name": "readOnly",
"baseName": "readOnly",
"type": "boolean"
} ];
static getAttributeTypeMap() {
return V1GlusterfsVolumeSource.attributeTypeMap;
}
}

View File

@@ -1,56 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { IntstrIntOrString } from './intstrIntOrString';
import { V1HTTPHeader } from './v1HTTPHeader';
export class V1HTTPGetAction {
'host'?: string;
'httpHeaders'?: Array<V1HTTPHeader>;
'path'?: string;
'port'?: IntstrIntOrString;
'scheme'?: string;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "host",
"baseName": "host",
"type": "string"
},
{
"name": "httpHeaders",
"baseName": "httpHeaders",
"type": "Array<V1HTTPHeader>"
},
{
"name": "path",
"baseName": "path",
"type": "string"
},
{
"name": "port",
"baseName": "port",
"type": "IntstrIntOrString"
},
{
"name": "scheme",
"baseName": "scheme",
"type": "string"
} ];
static getAttributeTypeMap() {
return V1HTTPGetAction.attributeTypeMap;
}
}

View File

@@ -1,36 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class V1HTTPHeader {
'name'?: string;
'value'?: string;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "name",
"baseName": "name",
"type": "string"
},
{
"name": "value",
"baseName": "value",
"type": "string"
} ];
static getAttributeTypeMap() {
return V1HTTPHeader.attributeTypeMap;
}
}

View File

@@ -1,45 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { V1ExecAction } from './v1ExecAction';
import { V1HTTPGetAction } from './v1HTTPGetAction';
import { V1TCPSocketAction } from './v1TCPSocketAction';
export class V1Handler {
'exec'?: V1ExecAction;
'httpGet'?: V1HTTPGetAction;
'tcpSocket'?: V1TCPSocketAction;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "exec",
"baseName": "exec",
"type": "V1ExecAction"
},
{
"name": "httpGet",
"baseName": "httpGet",
"type": "V1HTTPGetAction"
},
{
"name": "tcpSocket",
"baseName": "tcpSocket",
"type": "V1TCPSocketAction"
} ];
static getAttributeTypeMap() {
return V1Handler.attributeTypeMap;
}
}

View File

@@ -1,36 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class V1HostAlias {
'hostnames'?: Array<string>;
'ip'?: string;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "hostnames",
"baseName": "hostnames",
"type": "Array<string>"
},
{
"name": "ip",
"baseName": "ip",
"type": "string"
} ];
static getAttributeTypeMap() {
return V1HostAlias.attributeTypeMap;
}
}

View File

@@ -1,36 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class V1HostPathVolumeSource {
'path'?: string;
'type'?: string;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "path",
"baseName": "path",
"type": "string"
},
{
"name": "type",
"baseName": "type",
"type": "string"
} ];
static getAttributeTypeMap() {
return V1HostPathVolumeSource.attributeTypeMap;
}
}

View File

@@ -1,91 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { V1LocalObjectReference } from './v1LocalObjectReference';
export class V1ISCSIVolumeSource {
'chapAuthDiscovery'?: boolean | null;
'chapAuthSession'?: boolean | null;
'fsType'?: string;
'initiatorName'?: string;
'iqn'?: string;
'iscsiInterface'?: string;
'lun'?: number;
'portals'?: Array<string>;
'readOnly'?: boolean | null;
'secretRef'?: V1LocalObjectReference;
'targetPortal'?: string;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "chapAuthDiscovery",
"baseName": "chapAuthDiscovery",
"type": "boolean"
},
{
"name": "chapAuthSession",
"baseName": "chapAuthSession",
"type": "boolean"
},
{
"name": "fsType",
"baseName": "fsType",
"type": "string"
},
{
"name": "initiatorName",
"baseName": "initiatorName",
"type": "string"
},
{
"name": "iqn",
"baseName": "iqn",
"type": "string"
},
{
"name": "iscsiInterface",
"baseName": "iscsiInterface",
"type": "string"
},
{
"name": "lun",
"baseName": "lun",
"type": "number"
},
{
"name": "portals",
"baseName": "portals",
"type": "Array<string>"
},
{
"name": "readOnly",
"baseName": "readOnly",
"type": "boolean"
},
{
"name": "secretRef",
"baseName": "secretRef",
"type": "V1LocalObjectReference"
},
{
"name": "targetPortal",
"baseName": "targetPortal",
"type": "string"
} ];
static getAttributeTypeMap() {
return V1ISCSIVolumeSource.attributeTypeMap;
}
}

View File

@@ -1,42 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class V1KeyToPath {
'key'?: string;
'mode'?: number | null;
'path'?: string;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "key",
"baseName": "key",
"type": "string"
},
{
"name": "mode",
"baseName": "mode",
"type": "number"
},
{
"name": "path",
"baseName": "path",
"type": "string"
} ];
static getAttributeTypeMap() {
return V1KeyToPath.attributeTypeMap;
}
}

View File

@@ -1,37 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { V1LabelSelectorRequirement } from './v1LabelSelectorRequirement';
export class V1LabelSelector {
'matchExpressions'?: Array<V1LabelSelectorRequirement>;
'matchLabels'?: { [key: string]: string; };
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "matchExpressions",
"baseName": "matchExpressions",
"type": "Array<V1LabelSelectorRequirement>"
},
{
"name": "matchLabels",
"baseName": "matchLabels",
"type": "{ [key: string]: string; }"
} ];
static getAttributeTypeMap() {
return V1LabelSelector.attributeTypeMap;
}
}

View File

@@ -1,42 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class V1LabelSelectorRequirement {
'key'?: string;
'operator'?: string;
'values'?: Array<string>;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "key",
"baseName": "key",
"type": "string"
},
{
"name": "operator",
"baseName": "operator",
"type": "string"
},
{
"name": "values",
"baseName": "values",
"type": "Array<string>"
} ];
static getAttributeTypeMap() {
return V1LabelSelectorRequirement.attributeTypeMap;
}
}

View File

@@ -1,37 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { V1Handler } from './v1Handler';
export class V1Lifecycle {
'postStart'?: V1Handler;
'preStop'?: V1Handler;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "postStart",
"baseName": "postStart",
"type": "V1Handler"
},
{
"name": "preStop",
"baseName": "preStop",
"type": "V1Handler"
} ];
static getAttributeTypeMap() {
return V1Lifecycle.attributeTypeMap;
}
}

View File

@@ -1,48 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class V1ListMeta {
'_continue'?: string;
'remainingItemCount'?: number | null;
'resourceVersion'?: string;
'selfLink'?: string;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "_continue",
"baseName": "continue",
"type": "string"
},
{
"name": "remainingItemCount",
"baseName": "remainingItemCount",
"type": "number"
},
{
"name": "resourceVersion",
"baseName": "resourceVersion",
"type": "string"
},
{
"name": "selfLink",
"baseName": "selfLink",
"type": "string"
} ];
static getAttributeTypeMap() {
return V1ListMeta.attributeTypeMap;
}
}

View File

@@ -1,30 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class V1LocalObjectReference {
'name'?: string;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "name",
"baseName": "name",
"type": "string"
} ];
static getAttributeTypeMap() {
return V1LocalObjectReference.attributeTypeMap;
}
}

View File

@@ -1,60 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class V1ManagedFieldsEntry {
'apiVersion'?: string;
'fieldsType'?: string;
'fieldsV1'?: object;
'manager'?: string;
'operation'?: string;
'time'?: Date | null;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "apiVersion",
"baseName": "apiVersion",
"type": "string"
},
{
"name": "fieldsType",
"baseName": "fieldsType",
"type": "string"
},
{
"name": "fieldsV1",
"baseName": "fieldsV1",
"type": "object"
},
{
"name": "manager",
"baseName": "manager",
"type": "string"
},
{
"name": "operation",
"baseName": "operation",
"type": "string"
},
{
"name": "time",
"baseName": "time",
"type": "Date"
} ];
static getAttributeTypeMap() {
return V1ManagedFieldsEntry.attributeTypeMap;
}
}

View File

@@ -1,42 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class V1NFSVolumeSource {
'path'?: string;
'readOnly'?: boolean | null;
'server'?: string;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "path",
"baseName": "path",
"type": "string"
},
{
"name": "readOnly",
"baseName": "readOnly",
"type": "boolean"
},
{
"name": "server",
"baseName": "server",
"type": "string"
} ];
static getAttributeTypeMap() {
return V1NFSVolumeSource.attributeTypeMap;
}
}

View File

@@ -1,38 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { V1NodeSelector } from './v1NodeSelector';
import { V1PreferredSchedulingTerm } from './v1PreferredSchedulingTerm';
export class V1NodeAffinity {
'preferredDuringSchedulingIgnoredDuringExecution'?: Array<V1PreferredSchedulingTerm>;
'requiredDuringSchedulingIgnoredDuringExecution'?: V1NodeSelector;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "preferredDuringSchedulingIgnoredDuringExecution",
"baseName": "preferredDuringSchedulingIgnoredDuringExecution",
"type": "Array<V1PreferredSchedulingTerm>"
},
{
"name": "requiredDuringSchedulingIgnoredDuringExecution",
"baseName": "requiredDuringSchedulingIgnoredDuringExecution",
"type": "V1NodeSelector"
} ];
static getAttributeTypeMap() {
return V1NodeAffinity.attributeTypeMap;
}
}

View File

@@ -1,31 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { V1NodeSelectorTerm } from './v1NodeSelectorTerm';
export class V1NodeSelector {
'nodeSelectorTerms'?: Array<V1NodeSelectorTerm>;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "nodeSelectorTerms",
"baseName": "nodeSelectorTerms",
"type": "Array<V1NodeSelectorTerm>"
} ];
static getAttributeTypeMap() {
return V1NodeSelector.attributeTypeMap;
}
}

View File

@@ -1,42 +0,0 @@
/**
* Dusky API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class V1NodeSelectorRequirement {
'key'?: string;
'operator'?: string;
'values'?: Array<string>;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "key",
"baseName": "key",
"type": "string"
},
{
"name": "operator",
"baseName": "operator",
"type": "string"
},
{
"name": "values",
"baseName": "values",
"type": "Array<string>"
} ];
static getAttributeTypeMap() {
return V1NodeSelectorRequirement.attributeTypeMap;
}
}

Some files were not shown because too many files have changed in this diff Show More