@pidginhost/sdk 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +9 -0
- package/README.md +24 -2
- package/api.ts +713 -35
- package/dist/api.d.ts +372 -25
- package/dist/api.js +595 -30
- package/dist/esm/api.d.ts +372 -25
- package/dist/esm/api.js +589 -28
- package/dist/esm/pidginhost.d.ts +7 -1
- package/dist/esm/pidginhost.js +7 -1
- package/dist/pidginhost.d.ts +7 -1
- package/dist/pidginhost.js +6 -0
- package/docs/AuthApi.md +201 -0
- package/docs/CLISessionCreateResponse.md +26 -0
- package/docs/CLISessionPollResponse.md +26 -0
- package/docs/CLISessionPollResponseStatusEnum.md +15 -0
- package/docs/CloudApi.md +52 -36
- package/docs/EligibleVM.md +22 -0
- package/docs/EligibleVMsResponse.md +20 -0
- package/docs/KubernetesApi.md +208 -0
- package/docs/PatchedServerDetail.md +50 -0
- package/docs/Server.md +3 -3
- package/docs/ServerDetail.md +50 -0
- package/docs/ToggleCloudVMAccessResponse.md +22 -0
- package/package.json +1 -1
- package/pidginhost.ts +13 -1
package/dist/esm/api.js
CHANGED
|
@@ -29,6 +29,15 @@ import { URL } from 'url';
|
|
|
29
29
|
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
|
|
30
30
|
// @ts-ignore
|
|
31
31
|
import { BASE_PATH, BaseAPI, operationServerMap } from './base';
|
|
32
|
+
/**
|
|
33
|
+
* * `pending` - pending * `approved` - approved * `expired` - expired * `denied` - denied
|
|
34
|
+
*/
|
|
35
|
+
export const CLISessionPollResponseStatusEnum = {
|
|
36
|
+
Pending: 'pending',
|
|
37
|
+
Approved: 'approved',
|
|
38
|
+
Expired: 'expired',
|
|
39
|
+
Denied: 'denied'
|
|
40
|
+
};
|
|
32
41
|
/**
|
|
33
42
|
* * `dev` - Development * `prod` - Production
|
|
34
43
|
*/
|
|
@@ -3051,6 +3060,268 @@ export class AccountApi extends BaseAPI {
|
|
|
3051
3060
|
return AccountApiFp(this.configuration).accountSshKeysUpdate2(id, sSHKey, options).then((request) => request(this.axios, this.basePath));
|
|
3052
3061
|
}
|
|
3053
3062
|
}
|
|
3063
|
+
/**
|
|
3064
|
+
* AuthApi - axios parameter creator
|
|
3065
|
+
*/
|
|
3066
|
+
export const AuthApiAxiosParamCreator = function (configuration) {
|
|
3067
|
+
return {
|
|
3068
|
+
/**
|
|
3069
|
+
* Create a CLI authentication session for browser-based approval
|
|
3070
|
+
* @param {*} [options] Override http request option.
|
|
3071
|
+
* @throws {RequiredError}
|
|
3072
|
+
*/
|
|
3073
|
+
authCliSessionCreate: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
3074
|
+
const localVarPath = `/api/auth/cli-session/`;
|
|
3075
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3076
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3077
|
+
let baseOptions;
|
|
3078
|
+
if (configuration) {
|
|
3079
|
+
baseOptions = configuration.baseOptions;
|
|
3080
|
+
}
|
|
3081
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
3082
|
+
const localVarHeaderParameter = {};
|
|
3083
|
+
const localVarQueryParameter = {};
|
|
3084
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
3085
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3086
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3087
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3088
|
+
return {
|
|
3089
|
+
url: toPathString(localVarUrlObj),
|
|
3090
|
+
options: localVarRequestOptions,
|
|
3091
|
+
};
|
|
3092
|
+
}),
|
|
3093
|
+
/**
|
|
3094
|
+
* Create a CLI authentication session for browser-based approval
|
|
3095
|
+
* @param {*} [options] Override http request option.
|
|
3096
|
+
* @throws {RequiredError}
|
|
3097
|
+
*/
|
|
3098
|
+
authCliSessionCreate2: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
3099
|
+
const localVarPath = `/api/v1/auth/cli-session/`;
|
|
3100
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3101
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3102
|
+
let baseOptions;
|
|
3103
|
+
if (configuration) {
|
|
3104
|
+
baseOptions = configuration.baseOptions;
|
|
3105
|
+
}
|
|
3106
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
3107
|
+
const localVarHeaderParameter = {};
|
|
3108
|
+
const localVarQueryParameter = {};
|
|
3109
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
3110
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3111
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3112
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3113
|
+
return {
|
|
3114
|
+
url: toPathString(localVarUrlObj),
|
|
3115
|
+
options: localVarRequestOptions,
|
|
3116
|
+
};
|
|
3117
|
+
}),
|
|
3118
|
+
/**
|
|
3119
|
+
* Poll a CLI authentication session. Returns token when approved.
|
|
3120
|
+
* @param {string} sessionId
|
|
3121
|
+
* @param {*} [options] Override http request option.
|
|
3122
|
+
* @throws {RequiredError}
|
|
3123
|
+
*/
|
|
3124
|
+
authCliSessionRetrieve: (sessionId_1, ...args_1) => __awaiter(this, [sessionId_1, ...args_1], void 0, function* (sessionId, options = {}) {
|
|
3125
|
+
// verify required parameter 'sessionId' is not null or undefined
|
|
3126
|
+
assertParamExists('authCliSessionRetrieve', 'sessionId', sessionId);
|
|
3127
|
+
const localVarPath = `/api/auth/cli-session/{session_id}/`
|
|
3128
|
+
.replace(`{${"session_id"}}`, encodeURIComponent(String(sessionId)));
|
|
3129
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3130
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3131
|
+
let baseOptions;
|
|
3132
|
+
if (configuration) {
|
|
3133
|
+
baseOptions = configuration.baseOptions;
|
|
3134
|
+
}
|
|
3135
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3136
|
+
const localVarHeaderParameter = {};
|
|
3137
|
+
const localVarQueryParameter = {};
|
|
3138
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
3139
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3140
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3141
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3142
|
+
return {
|
|
3143
|
+
url: toPathString(localVarUrlObj),
|
|
3144
|
+
options: localVarRequestOptions,
|
|
3145
|
+
};
|
|
3146
|
+
}),
|
|
3147
|
+
/**
|
|
3148
|
+
* Poll a CLI authentication session. Returns token when approved.
|
|
3149
|
+
* @param {string} sessionId
|
|
3150
|
+
* @param {*} [options] Override http request option.
|
|
3151
|
+
* @throws {RequiredError}
|
|
3152
|
+
*/
|
|
3153
|
+
authCliSessionRetrieve2: (sessionId_1, ...args_1) => __awaiter(this, [sessionId_1, ...args_1], void 0, function* (sessionId, options = {}) {
|
|
3154
|
+
// verify required parameter 'sessionId' is not null or undefined
|
|
3155
|
+
assertParamExists('authCliSessionRetrieve2', 'sessionId', sessionId);
|
|
3156
|
+
const localVarPath = `/api/v1/auth/cli-session/{session_id}/`
|
|
3157
|
+
.replace(`{${"session_id"}}`, encodeURIComponent(String(sessionId)));
|
|
3158
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3159
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3160
|
+
let baseOptions;
|
|
3161
|
+
if (configuration) {
|
|
3162
|
+
baseOptions = configuration.baseOptions;
|
|
3163
|
+
}
|
|
3164
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3165
|
+
const localVarHeaderParameter = {};
|
|
3166
|
+
const localVarQueryParameter = {};
|
|
3167
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
3168
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3169
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3170
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3171
|
+
return {
|
|
3172
|
+
url: toPathString(localVarUrlObj),
|
|
3173
|
+
options: localVarRequestOptions,
|
|
3174
|
+
};
|
|
3175
|
+
}),
|
|
3176
|
+
};
|
|
3177
|
+
};
|
|
3178
|
+
/**
|
|
3179
|
+
* AuthApi - functional programming interface
|
|
3180
|
+
*/
|
|
3181
|
+
export const AuthApiFp = function (configuration) {
|
|
3182
|
+
const localVarAxiosParamCreator = AuthApiAxiosParamCreator(configuration);
|
|
3183
|
+
return {
|
|
3184
|
+
/**
|
|
3185
|
+
* Create a CLI authentication session for browser-based approval
|
|
3186
|
+
* @param {*} [options] Override http request option.
|
|
3187
|
+
* @throws {RequiredError}
|
|
3188
|
+
*/
|
|
3189
|
+
authCliSessionCreate(options) {
|
|
3190
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3191
|
+
var _a, _b, _c;
|
|
3192
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.authCliSessionCreate(options);
|
|
3193
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3194
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AuthApi.authCliSessionCreate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3195
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3196
|
+
});
|
|
3197
|
+
},
|
|
3198
|
+
/**
|
|
3199
|
+
* Create a CLI authentication session for browser-based approval
|
|
3200
|
+
* @param {*} [options] Override http request option.
|
|
3201
|
+
* @throws {RequiredError}
|
|
3202
|
+
*/
|
|
3203
|
+
authCliSessionCreate2(options) {
|
|
3204
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3205
|
+
var _a, _b, _c;
|
|
3206
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.authCliSessionCreate2(options);
|
|
3207
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3208
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AuthApi.authCliSessionCreate2']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3209
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3210
|
+
});
|
|
3211
|
+
},
|
|
3212
|
+
/**
|
|
3213
|
+
* Poll a CLI authentication session. Returns token when approved.
|
|
3214
|
+
* @param {string} sessionId
|
|
3215
|
+
* @param {*} [options] Override http request option.
|
|
3216
|
+
* @throws {RequiredError}
|
|
3217
|
+
*/
|
|
3218
|
+
authCliSessionRetrieve(sessionId, options) {
|
|
3219
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3220
|
+
var _a, _b, _c;
|
|
3221
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.authCliSessionRetrieve(sessionId, options);
|
|
3222
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3223
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AuthApi.authCliSessionRetrieve']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3224
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3225
|
+
});
|
|
3226
|
+
},
|
|
3227
|
+
/**
|
|
3228
|
+
* Poll a CLI authentication session. Returns token when approved.
|
|
3229
|
+
* @param {string} sessionId
|
|
3230
|
+
* @param {*} [options] Override http request option.
|
|
3231
|
+
* @throws {RequiredError}
|
|
3232
|
+
*/
|
|
3233
|
+
authCliSessionRetrieve2(sessionId, options) {
|
|
3234
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3235
|
+
var _a, _b, _c;
|
|
3236
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.authCliSessionRetrieve2(sessionId, options);
|
|
3237
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3238
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AuthApi.authCliSessionRetrieve2']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3239
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3240
|
+
});
|
|
3241
|
+
},
|
|
3242
|
+
};
|
|
3243
|
+
};
|
|
3244
|
+
/**
|
|
3245
|
+
* AuthApi - factory interface
|
|
3246
|
+
*/
|
|
3247
|
+
export const AuthApiFactory = function (configuration, basePath, axios) {
|
|
3248
|
+
const localVarFp = AuthApiFp(configuration);
|
|
3249
|
+
return {
|
|
3250
|
+
/**
|
|
3251
|
+
* Create a CLI authentication session for browser-based approval
|
|
3252
|
+
* @param {*} [options] Override http request option.
|
|
3253
|
+
* @throws {RequiredError}
|
|
3254
|
+
*/
|
|
3255
|
+
authCliSessionCreate(options) {
|
|
3256
|
+
return localVarFp.authCliSessionCreate(options).then((request) => request(axios, basePath));
|
|
3257
|
+
},
|
|
3258
|
+
/**
|
|
3259
|
+
* Create a CLI authentication session for browser-based approval
|
|
3260
|
+
* @param {*} [options] Override http request option.
|
|
3261
|
+
* @throws {RequiredError}
|
|
3262
|
+
*/
|
|
3263
|
+
authCliSessionCreate2(options) {
|
|
3264
|
+
return localVarFp.authCliSessionCreate2(options).then((request) => request(axios, basePath));
|
|
3265
|
+
},
|
|
3266
|
+
/**
|
|
3267
|
+
* Poll a CLI authentication session. Returns token when approved.
|
|
3268
|
+
* @param {string} sessionId
|
|
3269
|
+
* @param {*} [options] Override http request option.
|
|
3270
|
+
* @throws {RequiredError}
|
|
3271
|
+
*/
|
|
3272
|
+
authCliSessionRetrieve(sessionId, options) {
|
|
3273
|
+
return localVarFp.authCliSessionRetrieve(sessionId, options).then((request) => request(axios, basePath));
|
|
3274
|
+
},
|
|
3275
|
+
/**
|
|
3276
|
+
* Poll a CLI authentication session. Returns token when approved.
|
|
3277
|
+
* @param {string} sessionId
|
|
3278
|
+
* @param {*} [options] Override http request option.
|
|
3279
|
+
* @throws {RequiredError}
|
|
3280
|
+
*/
|
|
3281
|
+
authCliSessionRetrieve2(sessionId, options) {
|
|
3282
|
+
return localVarFp.authCliSessionRetrieve2(sessionId, options).then((request) => request(axios, basePath));
|
|
3283
|
+
},
|
|
3284
|
+
};
|
|
3285
|
+
};
|
|
3286
|
+
/**
|
|
3287
|
+
* AuthApi - object-oriented interface
|
|
3288
|
+
*/
|
|
3289
|
+
export class AuthApi extends BaseAPI {
|
|
3290
|
+
/**
|
|
3291
|
+
* Create a CLI authentication session for browser-based approval
|
|
3292
|
+
* @param {*} [options] Override http request option.
|
|
3293
|
+
* @throws {RequiredError}
|
|
3294
|
+
*/
|
|
3295
|
+
authCliSessionCreate(options) {
|
|
3296
|
+
return AuthApiFp(this.configuration).authCliSessionCreate(options).then((request) => request(this.axios, this.basePath));
|
|
3297
|
+
}
|
|
3298
|
+
/**
|
|
3299
|
+
* Create a CLI authentication session for browser-based approval
|
|
3300
|
+
* @param {*} [options] Override http request option.
|
|
3301
|
+
* @throws {RequiredError}
|
|
3302
|
+
*/
|
|
3303
|
+
authCliSessionCreate2(options) {
|
|
3304
|
+
return AuthApiFp(this.configuration).authCliSessionCreate2(options).then((request) => request(this.axios, this.basePath));
|
|
3305
|
+
}
|
|
3306
|
+
/**
|
|
3307
|
+
* Poll a CLI authentication session. Returns token when approved.
|
|
3308
|
+
* @param {string} sessionId
|
|
3309
|
+
* @param {*} [options] Override http request option.
|
|
3310
|
+
* @throws {RequiredError}
|
|
3311
|
+
*/
|
|
3312
|
+
authCliSessionRetrieve(sessionId, options) {
|
|
3313
|
+
return AuthApiFp(this.configuration).authCliSessionRetrieve(sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
3314
|
+
}
|
|
3315
|
+
/**
|
|
3316
|
+
* Poll a CLI authentication session. Returns token when approved.
|
|
3317
|
+
* @param {string} sessionId
|
|
3318
|
+
* @param {*} [options] Override http request option.
|
|
3319
|
+
* @throws {RequiredError}
|
|
3320
|
+
*/
|
|
3321
|
+
authCliSessionRetrieve2(sessionId, options) {
|
|
3322
|
+
return AuthApiFp(this.configuration).authCliSessionRetrieve2(sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
3323
|
+
}
|
|
3324
|
+
}
|
|
3054
3325
|
/**
|
|
3055
3326
|
* BillingApi - axios parameter creator
|
|
3056
3327
|
*/
|
|
@@ -8763,10 +9034,11 @@ export const CloudApiAxiosParamCreator = function (configuration) {
|
|
|
8763
9034
|
/**
|
|
8764
9035
|
* Cloud servers
|
|
8765
9036
|
* @param {number} id A unique integer value identifying this virtual machine.
|
|
9037
|
+
* @param {PatchedServerDetail} [patchedServerDetail]
|
|
8766
9038
|
* @param {*} [options] Override http request option.
|
|
8767
9039
|
* @throws {RequiredError}
|
|
8768
9040
|
*/
|
|
8769
|
-
cloudServersPartialUpdate: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
9041
|
+
cloudServersPartialUpdate: (id_1, patchedServerDetail_1, ...args_1) => __awaiter(this, [id_1, patchedServerDetail_1, ...args_1], void 0, function* (id, patchedServerDetail, options = {}) {
|
|
8770
9042
|
// verify required parameter 'id' is not null or undefined
|
|
8771
9043
|
assertParamExists('cloudServersPartialUpdate', 'id', id);
|
|
8772
9044
|
const localVarPath = `/api/cloud/servers/{id}/`
|
|
@@ -8783,9 +9055,12 @@ export const CloudApiAxiosParamCreator = function (configuration) {
|
|
|
8783
9055
|
// authentication cookieAuth required
|
|
8784
9056
|
// authentication tokenAuth required
|
|
8785
9057
|
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
9058
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
9059
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
8786
9060
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8787
9061
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8788
9062
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
9063
|
+
localVarRequestOptions.data = serializeDataIfNeeded(patchedServerDetail, localVarRequestOptions, configuration);
|
|
8789
9064
|
return {
|
|
8790
9065
|
url: toPathString(localVarUrlObj),
|
|
8791
9066
|
options: localVarRequestOptions,
|
|
@@ -8794,10 +9069,11 @@ export const CloudApiAxiosParamCreator = function (configuration) {
|
|
|
8794
9069
|
/**
|
|
8795
9070
|
* Cloud servers
|
|
8796
9071
|
* @param {number} id A unique integer value identifying this virtual machine.
|
|
9072
|
+
* @param {PatchedServerDetail} [patchedServerDetail]
|
|
8797
9073
|
* @param {*} [options] Override http request option.
|
|
8798
9074
|
* @throws {RequiredError}
|
|
8799
9075
|
*/
|
|
8800
|
-
cloudServersPartialUpdate2: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
9076
|
+
cloudServersPartialUpdate2: (id_1, patchedServerDetail_1, ...args_1) => __awaiter(this, [id_1, patchedServerDetail_1, ...args_1], void 0, function* (id, patchedServerDetail, options = {}) {
|
|
8801
9077
|
// verify required parameter 'id' is not null or undefined
|
|
8802
9078
|
assertParamExists('cloudServersPartialUpdate2', 'id', id);
|
|
8803
9079
|
const localVarPath = `/api/v1/cloud/servers/{id}/`
|
|
@@ -8814,9 +9090,12 @@ export const CloudApiAxiosParamCreator = function (configuration) {
|
|
|
8814
9090
|
// authentication cookieAuth required
|
|
8815
9091
|
// authentication tokenAuth required
|
|
8816
9092
|
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
9093
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
9094
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
8817
9095
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8818
9096
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8819
9097
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
9098
|
+
localVarRequestOptions.data = serializeDataIfNeeded(patchedServerDetail, localVarRequestOptions, configuration);
|
|
8820
9099
|
return {
|
|
8821
9100
|
url: toPathString(localVarUrlObj),
|
|
8822
9101
|
options: localVarRequestOptions,
|
|
@@ -9179,6 +9458,7 @@ export const CloudApiAxiosParamCreator = function (configuration) {
|
|
|
9179
9458
|
// authentication cookieAuth required
|
|
9180
9459
|
// authentication tokenAuth required
|
|
9181
9460
|
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
9461
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
9182
9462
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9183
9463
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9184
9464
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -9210,6 +9490,7 @@ export const CloudApiAxiosParamCreator = function (configuration) {
|
|
|
9210
9490
|
// authentication cookieAuth required
|
|
9211
9491
|
// authentication tokenAuth required
|
|
9212
9492
|
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
9493
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
9213
9494
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9214
9495
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9215
9496
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -9595,10 +9876,11 @@ export const CloudApiAxiosParamCreator = function (configuration) {
|
|
|
9595
9876
|
/**
|
|
9596
9877
|
* Cloud servers
|
|
9597
9878
|
* @param {number} id A unique integer value identifying this virtual machine.
|
|
9879
|
+
* @param {ServerDetail} [serverDetail]
|
|
9598
9880
|
* @param {*} [options] Override http request option.
|
|
9599
9881
|
* @throws {RequiredError}
|
|
9600
9882
|
*/
|
|
9601
|
-
cloudServersUpdate: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
9883
|
+
cloudServersUpdate: (id_1, serverDetail_1, ...args_1) => __awaiter(this, [id_1, serverDetail_1, ...args_1], void 0, function* (id, serverDetail, options = {}) {
|
|
9602
9884
|
// verify required parameter 'id' is not null or undefined
|
|
9603
9885
|
assertParamExists('cloudServersUpdate', 'id', id);
|
|
9604
9886
|
const localVarPath = `/api/cloud/servers/{id}/`
|
|
@@ -9615,9 +9897,12 @@ export const CloudApiAxiosParamCreator = function (configuration) {
|
|
|
9615
9897
|
// authentication cookieAuth required
|
|
9616
9898
|
// authentication tokenAuth required
|
|
9617
9899
|
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
9900
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
9901
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
9618
9902
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9619
9903
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9620
9904
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
9905
|
+
localVarRequestOptions.data = serializeDataIfNeeded(serverDetail, localVarRequestOptions, configuration);
|
|
9621
9906
|
return {
|
|
9622
9907
|
url: toPathString(localVarUrlObj),
|
|
9623
9908
|
options: localVarRequestOptions,
|
|
@@ -9626,10 +9911,11 @@ export const CloudApiAxiosParamCreator = function (configuration) {
|
|
|
9626
9911
|
/**
|
|
9627
9912
|
* Cloud servers
|
|
9628
9913
|
* @param {number} id A unique integer value identifying this virtual machine.
|
|
9914
|
+
* @param {ServerDetail} [serverDetail]
|
|
9629
9915
|
* @param {*} [options] Override http request option.
|
|
9630
9916
|
* @throws {RequiredError}
|
|
9631
9917
|
*/
|
|
9632
|
-
cloudServersUpdate2: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
9918
|
+
cloudServersUpdate2: (id_1, serverDetail_1, ...args_1) => __awaiter(this, [id_1, serverDetail_1, ...args_1], void 0, function* (id, serverDetail, options = {}) {
|
|
9633
9919
|
// verify required parameter 'id' is not null or undefined
|
|
9634
9920
|
assertParamExists('cloudServersUpdate2', 'id', id);
|
|
9635
9921
|
const localVarPath = `/api/v1/cloud/servers/{id}/`
|
|
@@ -9646,9 +9932,12 @@ export const CloudApiAxiosParamCreator = function (configuration) {
|
|
|
9646
9932
|
// authentication cookieAuth required
|
|
9647
9933
|
// authentication tokenAuth required
|
|
9648
9934
|
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
9935
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
9936
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
9649
9937
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9650
9938
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9651
9939
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
9940
|
+
localVarRequestOptions.data = serializeDataIfNeeded(serverDetail, localVarRequestOptions, configuration);
|
|
9652
9941
|
return {
|
|
9653
9942
|
url: toPathString(localVarUrlObj),
|
|
9654
9943
|
options: localVarRequestOptions,
|
|
@@ -12287,13 +12576,14 @@ export const CloudApiFp = function (configuration) {
|
|
|
12287
12576
|
/**
|
|
12288
12577
|
* Cloud servers
|
|
12289
12578
|
* @param {number} id A unique integer value identifying this virtual machine.
|
|
12579
|
+
* @param {PatchedServerDetail} [patchedServerDetail]
|
|
12290
12580
|
* @param {*} [options] Override http request option.
|
|
12291
12581
|
* @throws {RequiredError}
|
|
12292
12582
|
*/
|
|
12293
|
-
cloudServersPartialUpdate(id, options) {
|
|
12583
|
+
cloudServersPartialUpdate(id, patchedServerDetail, options) {
|
|
12294
12584
|
return __awaiter(this, void 0, void 0, function* () {
|
|
12295
12585
|
var _a, _b, _c;
|
|
12296
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.cloudServersPartialUpdate(id, options);
|
|
12586
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.cloudServersPartialUpdate(id, patchedServerDetail, options);
|
|
12297
12587
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12298
12588
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CloudApi.cloudServersPartialUpdate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12299
12589
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -12302,13 +12592,14 @@ export const CloudApiFp = function (configuration) {
|
|
|
12302
12592
|
/**
|
|
12303
12593
|
* Cloud servers
|
|
12304
12594
|
* @param {number} id A unique integer value identifying this virtual machine.
|
|
12595
|
+
* @param {PatchedServerDetail} [patchedServerDetail]
|
|
12305
12596
|
* @param {*} [options] Override http request option.
|
|
12306
12597
|
* @throws {RequiredError}
|
|
12307
12598
|
*/
|
|
12308
|
-
cloudServersPartialUpdate2(id, options) {
|
|
12599
|
+
cloudServersPartialUpdate2(id, patchedServerDetail, options) {
|
|
12309
12600
|
return __awaiter(this, void 0, void 0, function* () {
|
|
12310
12601
|
var _a, _b, _c;
|
|
12311
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.cloudServersPartialUpdate2(id, options);
|
|
12602
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.cloudServersPartialUpdate2(id, patchedServerDetail, options);
|
|
12312
12603
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12313
12604
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CloudApi.cloudServersPartialUpdate2']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12314
12605
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -12665,13 +12956,14 @@ export const CloudApiFp = function (configuration) {
|
|
|
12665
12956
|
/**
|
|
12666
12957
|
* Cloud servers
|
|
12667
12958
|
* @param {number} id A unique integer value identifying this virtual machine.
|
|
12959
|
+
* @param {ServerDetail} [serverDetail]
|
|
12668
12960
|
* @param {*} [options] Override http request option.
|
|
12669
12961
|
* @throws {RequiredError}
|
|
12670
12962
|
*/
|
|
12671
|
-
cloudServersUpdate(id, options) {
|
|
12963
|
+
cloudServersUpdate(id, serverDetail, options) {
|
|
12672
12964
|
return __awaiter(this, void 0, void 0, function* () {
|
|
12673
12965
|
var _a, _b, _c;
|
|
12674
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.cloudServersUpdate(id, options);
|
|
12966
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.cloudServersUpdate(id, serverDetail, options);
|
|
12675
12967
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12676
12968
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CloudApi.cloudServersUpdate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12677
12969
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -12680,13 +12972,14 @@ export const CloudApiFp = function (configuration) {
|
|
|
12680
12972
|
/**
|
|
12681
12973
|
* Cloud servers
|
|
12682
12974
|
* @param {number} id A unique integer value identifying this virtual machine.
|
|
12975
|
+
* @param {ServerDetail} [serverDetail]
|
|
12683
12976
|
* @param {*} [options] Override http request option.
|
|
12684
12977
|
* @throws {RequiredError}
|
|
12685
12978
|
*/
|
|
12686
|
-
cloudServersUpdate2(id, options) {
|
|
12979
|
+
cloudServersUpdate2(id, serverDetail, options) {
|
|
12687
12980
|
return __awaiter(this, void 0, void 0, function* () {
|
|
12688
12981
|
var _a, _b, _c;
|
|
12689
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.cloudServersUpdate2(id, options);
|
|
12982
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.cloudServersUpdate2(id, serverDetail, options);
|
|
12690
12983
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12691
12984
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CloudApi.cloudServersUpdate2']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12692
12985
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -14131,20 +14424,22 @@ export const CloudApiFactory = function (configuration, basePath, axios) {
|
|
|
14131
14424
|
/**
|
|
14132
14425
|
* Cloud servers
|
|
14133
14426
|
* @param {number} id A unique integer value identifying this virtual machine.
|
|
14427
|
+
* @param {PatchedServerDetail} [patchedServerDetail]
|
|
14134
14428
|
* @param {*} [options] Override http request option.
|
|
14135
14429
|
* @throws {RequiredError}
|
|
14136
14430
|
*/
|
|
14137
|
-
cloudServersPartialUpdate(id, options) {
|
|
14138
|
-
return localVarFp.cloudServersPartialUpdate(id, options).then((request) => request(axios, basePath));
|
|
14431
|
+
cloudServersPartialUpdate(id, patchedServerDetail, options) {
|
|
14432
|
+
return localVarFp.cloudServersPartialUpdate(id, patchedServerDetail, options).then((request) => request(axios, basePath));
|
|
14139
14433
|
},
|
|
14140
14434
|
/**
|
|
14141
14435
|
* Cloud servers
|
|
14142
14436
|
* @param {number} id A unique integer value identifying this virtual machine.
|
|
14437
|
+
* @param {PatchedServerDetail} [patchedServerDetail]
|
|
14143
14438
|
* @param {*} [options] Override http request option.
|
|
14144
14439
|
* @throws {RequiredError}
|
|
14145
14440
|
*/
|
|
14146
|
-
cloudServersPartialUpdate2(id, options) {
|
|
14147
|
-
return localVarFp.cloudServersPartialUpdate2(id, options).then((request) => request(axios, basePath));
|
|
14441
|
+
cloudServersPartialUpdate2(id, patchedServerDetail, options) {
|
|
14442
|
+
return localVarFp.cloudServersPartialUpdate2(id, patchedServerDetail, options).then((request) => request(axios, basePath));
|
|
14148
14443
|
},
|
|
14149
14444
|
/**
|
|
14150
14445
|
* Server power management
|
|
@@ -14365,20 +14660,22 @@ export const CloudApiFactory = function (configuration, basePath, axios) {
|
|
|
14365
14660
|
/**
|
|
14366
14661
|
* Cloud servers
|
|
14367
14662
|
* @param {number} id A unique integer value identifying this virtual machine.
|
|
14663
|
+
* @param {ServerDetail} [serverDetail]
|
|
14368
14664
|
* @param {*} [options] Override http request option.
|
|
14369
14665
|
* @throws {RequiredError}
|
|
14370
14666
|
*/
|
|
14371
|
-
cloudServersUpdate(id, options) {
|
|
14372
|
-
return localVarFp.cloudServersUpdate(id, options).then((request) => request(axios, basePath));
|
|
14667
|
+
cloudServersUpdate(id, serverDetail, options) {
|
|
14668
|
+
return localVarFp.cloudServersUpdate(id, serverDetail, options).then((request) => request(axios, basePath));
|
|
14373
14669
|
},
|
|
14374
14670
|
/**
|
|
14375
14671
|
* Cloud servers
|
|
14376
14672
|
* @param {number} id A unique integer value identifying this virtual machine.
|
|
14673
|
+
* @param {ServerDetail} [serverDetail]
|
|
14377
14674
|
* @param {*} [options] Override http request option.
|
|
14378
14675
|
* @throws {RequiredError}
|
|
14379
14676
|
*/
|
|
14380
|
-
cloudServersUpdate2(id, options) {
|
|
14381
|
-
return localVarFp.cloudServersUpdate2(id, options).then((request) => request(axios, basePath));
|
|
14677
|
+
cloudServersUpdate2(id, serverDetail, options) {
|
|
14678
|
+
return localVarFp.cloudServersUpdate2(id, serverDetail, options).then((request) => request(axios, basePath));
|
|
14382
14679
|
},
|
|
14383
14680
|
/**
|
|
14384
14681
|
* Get current resource usage for a server.
|
|
@@ -15625,20 +15922,22 @@ export class CloudApi extends BaseAPI {
|
|
|
15625
15922
|
/**
|
|
15626
15923
|
* Cloud servers
|
|
15627
15924
|
* @param {number} id A unique integer value identifying this virtual machine.
|
|
15925
|
+
* @param {PatchedServerDetail} [patchedServerDetail]
|
|
15628
15926
|
* @param {*} [options] Override http request option.
|
|
15629
15927
|
* @throws {RequiredError}
|
|
15630
15928
|
*/
|
|
15631
|
-
cloudServersPartialUpdate(id, options) {
|
|
15632
|
-
return CloudApiFp(this.configuration).cloudServersPartialUpdate(id, options).then((request) => request(this.axios, this.basePath));
|
|
15929
|
+
cloudServersPartialUpdate(id, patchedServerDetail, options) {
|
|
15930
|
+
return CloudApiFp(this.configuration).cloudServersPartialUpdate(id, patchedServerDetail, options).then((request) => request(this.axios, this.basePath));
|
|
15633
15931
|
}
|
|
15634
15932
|
/**
|
|
15635
15933
|
* Cloud servers
|
|
15636
15934
|
* @param {number} id A unique integer value identifying this virtual machine.
|
|
15935
|
+
* @param {PatchedServerDetail} [patchedServerDetail]
|
|
15637
15936
|
* @param {*} [options] Override http request option.
|
|
15638
15937
|
* @throws {RequiredError}
|
|
15639
15938
|
*/
|
|
15640
|
-
cloudServersPartialUpdate2(id, options) {
|
|
15641
|
-
return CloudApiFp(this.configuration).cloudServersPartialUpdate2(id, options).then((request) => request(this.axios, this.basePath));
|
|
15939
|
+
cloudServersPartialUpdate2(id, patchedServerDetail, options) {
|
|
15940
|
+
return CloudApiFp(this.configuration).cloudServersPartialUpdate2(id, patchedServerDetail, options).then((request) => request(this.axios, this.basePath));
|
|
15642
15941
|
}
|
|
15643
15942
|
/**
|
|
15644
15943
|
* Server power management
|
|
@@ -15859,20 +16158,22 @@ export class CloudApi extends BaseAPI {
|
|
|
15859
16158
|
/**
|
|
15860
16159
|
* Cloud servers
|
|
15861
16160
|
* @param {number} id A unique integer value identifying this virtual machine.
|
|
16161
|
+
* @param {ServerDetail} [serverDetail]
|
|
15862
16162
|
* @param {*} [options] Override http request option.
|
|
15863
16163
|
* @throws {RequiredError}
|
|
15864
16164
|
*/
|
|
15865
|
-
cloudServersUpdate(id, options) {
|
|
15866
|
-
return CloudApiFp(this.configuration).cloudServersUpdate(id, options).then((request) => request(this.axios, this.basePath));
|
|
16165
|
+
cloudServersUpdate(id, serverDetail, options) {
|
|
16166
|
+
return CloudApiFp(this.configuration).cloudServersUpdate(id, serverDetail, options).then((request) => request(this.axios, this.basePath));
|
|
15867
16167
|
}
|
|
15868
16168
|
/**
|
|
15869
16169
|
* Cloud servers
|
|
15870
16170
|
* @param {number} id A unique integer value identifying this virtual machine.
|
|
16171
|
+
* @param {ServerDetail} [serverDetail]
|
|
15871
16172
|
* @param {*} [options] Override http request option.
|
|
15872
16173
|
* @throws {RequiredError}
|
|
15873
16174
|
*/
|
|
15874
|
-
cloudServersUpdate2(id, options) {
|
|
15875
|
-
return CloudApiFp(this.configuration).cloudServersUpdate2(id, options).then((request) => request(this.axios, this.basePath));
|
|
16175
|
+
cloudServersUpdate2(id, serverDetail, options) {
|
|
16176
|
+
return CloudApiFp(this.configuration).cloudServersUpdate2(id, serverDetail, options).then((request) => request(this.axios, this.basePath));
|
|
15876
16177
|
}
|
|
15877
16178
|
/**
|
|
15878
16179
|
* Get current resource usage for a server.
|
|
@@ -21252,6 +21553,70 @@ export const KubernetesApiAxiosParamCreator = function (configuration) {
|
|
|
21252
21553
|
options: localVarRequestOptions,
|
|
21253
21554
|
};
|
|
21254
21555
|
}),
|
|
21556
|
+
/**
|
|
21557
|
+
* List cloud VMs eligible for connection to this cluster.
|
|
21558
|
+
* @param {string} id
|
|
21559
|
+
* @param {*} [options] Override http request option.
|
|
21560
|
+
* @throws {RequiredError}
|
|
21561
|
+
*/
|
|
21562
|
+
kubernetesClustersEligibleVmsRetrieve: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
21563
|
+
// verify required parameter 'id' is not null or undefined
|
|
21564
|
+
assertParamExists('kubernetesClustersEligibleVmsRetrieve', 'id', id);
|
|
21565
|
+
const localVarPath = `/api/kubernetes/clusters/{id}/eligible-vms/`
|
|
21566
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
21567
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
21568
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
21569
|
+
let baseOptions;
|
|
21570
|
+
if (configuration) {
|
|
21571
|
+
baseOptions = configuration.baseOptions;
|
|
21572
|
+
}
|
|
21573
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
21574
|
+
const localVarHeaderParameter = {};
|
|
21575
|
+
const localVarQueryParameter = {};
|
|
21576
|
+
// authentication cookieAuth required
|
|
21577
|
+
// authentication tokenAuth required
|
|
21578
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
21579
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
21580
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
21581
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
21582
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
21583
|
+
return {
|
|
21584
|
+
url: toPathString(localVarUrlObj),
|
|
21585
|
+
options: localVarRequestOptions,
|
|
21586
|
+
};
|
|
21587
|
+
}),
|
|
21588
|
+
/**
|
|
21589
|
+
* List cloud VMs eligible for connection to this cluster.
|
|
21590
|
+
* @param {string} id
|
|
21591
|
+
* @param {*} [options] Override http request option.
|
|
21592
|
+
* @throws {RequiredError}
|
|
21593
|
+
*/
|
|
21594
|
+
kubernetesClustersEligibleVmsRetrieve2: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
21595
|
+
// verify required parameter 'id' is not null or undefined
|
|
21596
|
+
assertParamExists('kubernetesClustersEligibleVmsRetrieve2', 'id', id);
|
|
21597
|
+
const localVarPath = `/api/v1/kubernetes/clusters/{id}/eligible-vms/`
|
|
21598
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
21599
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
21600
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
21601
|
+
let baseOptions;
|
|
21602
|
+
if (configuration) {
|
|
21603
|
+
baseOptions = configuration.baseOptions;
|
|
21604
|
+
}
|
|
21605
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
21606
|
+
const localVarHeaderParameter = {};
|
|
21607
|
+
const localVarQueryParameter = {};
|
|
21608
|
+
// authentication cookieAuth required
|
|
21609
|
+
// authentication tokenAuth required
|
|
21610
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
21611
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
21612
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
21613
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
21614
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
21615
|
+
return {
|
|
21616
|
+
url: toPathString(localVarUrlObj),
|
|
21617
|
+
options: localVarRequestOptions,
|
|
21618
|
+
};
|
|
21619
|
+
}),
|
|
21255
21620
|
/**
|
|
21256
21621
|
* Create new HTTPRoute
|
|
21257
21622
|
* @param {number} clusterId
|
|
@@ -24264,6 +24629,70 @@ export const KubernetesApiAxiosParamCreator = function (configuration) {
|
|
|
24264
24629
|
options: localVarRequestOptions,
|
|
24265
24630
|
};
|
|
24266
24631
|
}),
|
|
24632
|
+
/**
|
|
24633
|
+
* Toggle cloud VM access for this cluster.
|
|
24634
|
+
* @param {string} id
|
|
24635
|
+
* @param {*} [options] Override http request option.
|
|
24636
|
+
* @throws {RequiredError}
|
|
24637
|
+
*/
|
|
24638
|
+
kubernetesClustersToggleCloudVmAccessCreate: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
24639
|
+
// verify required parameter 'id' is not null or undefined
|
|
24640
|
+
assertParamExists('kubernetesClustersToggleCloudVmAccessCreate', 'id', id);
|
|
24641
|
+
const localVarPath = `/api/kubernetes/clusters/{id}/toggle-cloud-vm-access/`
|
|
24642
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
24643
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
24644
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
24645
|
+
let baseOptions;
|
|
24646
|
+
if (configuration) {
|
|
24647
|
+
baseOptions = configuration.baseOptions;
|
|
24648
|
+
}
|
|
24649
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
24650
|
+
const localVarHeaderParameter = {};
|
|
24651
|
+
const localVarQueryParameter = {};
|
|
24652
|
+
// authentication cookieAuth required
|
|
24653
|
+
// authentication tokenAuth required
|
|
24654
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
24655
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
24656
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
24657
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
24658
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
24659
|
+
return {
|
|
24660
|
+
url: toPathString(localVarUrlObj),
|
|
24661
|
+
options: localVarRequestOptions,
|
|
24662
|
+
};
|
|
24663
|
+
}),
|
|
24664
|
+
/**
|
|
24665
|
+
* Toggle cloud VM access for this cluster.
|
|
24666
|
+
* @param {string} id
|
|
24667
|
+
* @param {*} [options] Override http request option.
|
|
24668
|
+
* @throws {RequiredError}
|
|
24669
|
+
*/
|
|
24670
|
+
kubernetesClustersToggleCloudVmAccessCreate2: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
24671
|
+
// verify required parameter 'id' is not null or undefined
|
|
24672
|
+
assertParamExists('kubernetesClustersToggleCloudVmAccessCreate2', 'id', id);
|
|
24673
|
+
const localVarPath = `/api/v1/kubernetes/clusters/{id}/toggle-cloud-vm-access/`
|
|
24674
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
24675
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
24676
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
24677
|
+
let baseOptions;
|
|
24678
|
+
if (configuration) {
|
|
24679
|
+
baseOptions = configuration.baseOptions;
|
|
24680
|
+
}
|
|
24681
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
24682
|
+
const localVarHeaderParameter = {};
|
|
24683
|
+
const localVarQueryParameter = {};
|
|
24684
|
+
// authentication cookieAuth required
|
|
24685
|
+
// authentication tokenAuth required
|
|
24686
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
24687
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
24688
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
24689
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
24690
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
24691
|
+
return {
|
|
24692
|
+
url: toPathString(localVarUrlObj),
|
|
24693
|
+
options: localVarRequestOptions,
|
|
24694
|
+
};
|
|
24695
|
+
}),
|
|
24267
24696
|
/**
|
|
24268
24697
|
* Create new UDPRoute
|
|
24269
24698
|
* @param {number} clusterId
|
|
@@ -25040,6 +25469,36 @@ export const KubernetesApiFp = function (configuration) {
|
|
|
25040
25469
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
25041
25470
|
});
|
|
25042
25471
|
},
|
|
25472
|
+
/**
|
|
25473
|
+
* List cloud VMs eligible for connection to this cluster.
|
|
25474
|
+
* @param {string} id
|
|
25475
|
+
* @param {*} [options] Override http request option.
|
|
25476
|
+
* @throws {RequiredError}
|
|
25477
|
+
*/
|
|
25478
|
+
kubernetesClustersEligibleVmsRetrieve(id, options) {
|
|
25479
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
25480
|
+
var _a, _b, _c;
|
|
25481
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.kubernetesClustersEligibleVmsRetrieve(id, options);
|
|
25482
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
25483
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['KubernetesApi.kubernetesClustersEligibleVmsRetrieve']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
25484
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
25485
|
+
});
|
|
25486
|
+
},
|
|
25487
|
+
/**
|
|
25488
|
+
* List cloud VMs eligible for connection to this cluster.
|
|
25489
|
+
* @param {string} id
|
|
25490
|
+
* @param {*} [options] Override http request option.
|
|
25491
|
+
* @throws {RequiredError}
|
|
25492
|
+
*/
|
|
25493
|
+
kubernetesClustersEligibleVmsRetrieve2(id, options) {
|
|
25494
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
25495
|
+
var _a, _b, _c;
|
|
25496
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.kubernetesClustersEligibleVmsRetrieve2(id, options);
|
|
25497
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
25498
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['KubernetesApi.kubernetesClustersEligibleVmsRetrieve2']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
25499
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
25500
|
+
});
|
|
25501
|
+
},
|
|
25043
25502
|
/**
|
|
25044
25503
|
* Create new HTTPRoute
|
|
25045
25504
|
* @param {number} clusterId
|
|
@@ -26390,6 +26849,36 @@ export const KubernetesApiFp = function (configuration) {
|
|
|
26390
26849
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
26391
26850
|
});
|
|
26392
26851
|
},
|
|
26852
|
+
/**
|
|
26853
|
+
* Toggle cloud VM access for this cluster.
|
|
26854
|
+
* @param {string} id
|
|
26855
|
+
* @param {*} [options] Override http request option.
|
|
26856
|
+
* @throws {RequiredError}
|
|
26857
|
+
*/
|
|
26858
|
+
kubernetesClustersToggleCloudVmAccessCreate(id, options) {
|
|
26859
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
26860
|
+
var _a, _b, _c;
|
|
26861
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.kubernetesClustersToggleCloudVmAccessCreate(id, options);
|
|
26862
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
26863
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['KubernetesApi.kubernetesClustersToggleCloudVmAccessCreate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
26864
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
26865
|
+
});
|
|
26866
|
+
},
|
|
26867
|
+
/**
|
|
26868
|
+
* Toggle cloud VM access for this cluster.
|
|
26869
|
+
* @param {string} id
|
|
26870
|
+
* @param {*} [options] Override http request option.
|
|
26871
|
+
* @throws {RequiredError}
|
|
26872
|
+
*/
|
|
26873
|
+
kubernetesClustersToggleCloudVmAccessCreate2(id, options) {
|
|
26874
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
26875
|
+
var _a, _b, _c;
|
|
26876
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.kubernetesClustersToggleCloudVmAccessCreate2(id, options);
|
|
26877
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
26878
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['KubernetesApi.kubernetesClustersToggleCloudVmAccessCreate2']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
26879
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
26880
|
+
});
|
|
26881
|
+
},
|
|
26393
26882
|
/**
|
|
26394
26883
|
* Create new UDPRoute
|
|
26395
26884
|
* @param {number} clusterId
|
|
@@ -26768,6 +27257,24 @@ export const KubernetesApiFactory = function (configuration, basePath, axios) {
|
|
|
26768
27257
|
kubernetesClustersDisconnectVmCreate2(id, disconnectVMRequest, options) {
|
|
26769
27258
|
return localVarFp.kubernetesClustersDisconnectVmCreate2(id, disconnectVMRequest, options).then((request) => request(axios, basePath));
|
|
26770
27259
|
},
|
|
27260
|
+
/**
|
|
27261
|
+
* List cloud VMs eligible for connection to this cluster.
|
|
27262
|
+
* @param {string} id
|
|
27263
|
+
* @param {*} [options] Override http request option.
|
|
27264
|
+
* @throws {RequiredError}
|
|
27265
|
+
*/
|
|
27266
|
+
kubernetesClustersEligibleVmsRetrieve(id, options) {
|
|
27267
|
+
return localVarFp.kubernetesClustersEligibleVmsRetrieve(id, options).then((request) => request(axios, basePath));
|
|
27268
|
+
},
|
|
27269
|
+
/**
|
|
27270
|
+
* List cloud VMs eligible for connection to this cluster.
|
|
27271
|
+
* @param {string} id
|
|
27272
|
+
* @param {*} [options] Override http request option.
|
|
27273
|
+
* @throws {RequiredError}
|
|
27274
|
+
*/
|
|
27275
|
+
kubernetesClustersEligibleVmsRetrieve2(id, options) {
|
|
27276
|
+
return localVarFp.kubernetesClustersEligibleVmsRetrieve2(id, options).then((request) => request(axios, basePath));
|
|
27277
|
+
},
|
|
26771
27278
|
/**
|
|
26772
27279
|
* Create new HTTPRoute
|
|
26773
27280
|
* @param {number} clusterId
|
|
@@ -27614,6 +28121,24 @@ export const KubernetesApiFactory = function (configuration, basePath, axios) {
|
|
|
27614
28121
|
kubernetesClustersTcproutesUpdate2(clusterId, id, tCPRoute, options) {
|
|
27615
28122
|
return localVarFp.kubernetesClustersTcproutesUpdate2(clusterId, id, tCPRoute, options).then((request) => request(axios, basePath));
|
|
27616
28123
|
},
|
|
28124
|
+
/**
|
|
28125
|
+
* Toggle cloud VM access for this cluster.
|
|
28126
|
+
* @param {string} id
|
|
28127
|
+
* @param {*} [options] Override http request option.
|
|
28128
|
+
* @throws {RequiredError}
|
|
28129
|
+
*/
|
|
28130
|
+
kubernetesClustersToggleCloudVmAccessCreate(id, options) {
|
|
28131
|
+
return localVarFp.kubernetesClustersToggleCloudVmAccessCreate(id, options).then((request) => request(axios, basePath));
|
|
28132
|
+
},
|
|
28133
|
+
/**
|
|
28134
|
+
* Toggle cloud VM access for this cluster.
|
|
28135
|
+
* @param {string} id
|
|
28136
|
+
* @param {*} [options] Override http request option.
|
|
28137
|
+
* @throws {RequiredError}
|
|
28138
|
+
*/
|
|
28139
|
+
kubernetesClustersToggleCloudVmAccessCreate2(id, options) {
|
|
28140
|
+
return localVarFp.kubernetesClustersToggleCloudVmAccessCreate2(id, options).then((request) => request(axios, basePath));
|
|
28141
|
+
},
|
|
27617
28142
|
/**
|
|
27618
28143
|
* Create new UDPRoute
|
|
27619
28144
|
* @param {number} clusterId
|
|
@@ -27894,6 +28419,24 @@ export class KubernetesApi extends BaseAPI {
|
|
|
27894
28419
|
kubernetesClustersDisconnectVmCreate2(id, disconnectVMRequest, options) {
|
|
27895
28420
|
return KubernetesApiFp(this.configuration).kubernetesClustersDisconnectVmCreate2(id, disconnectVMRequest, options).then((request) => request(this.axios, this.basePath));
|
|
27896
28421
|
}
|
|
28422
|
+
/**
|
|
28423
|
+
* List cloud VMs eligible for connection to this cluster.
|
|
28424
|
+
* @param {string} id
|
|
28425
|
+
* @param {*} [options] Override http request option.
|
|
28426
|
+
* @throws {RequiredError}
|
|
28427
|
+
*/
|
|
28428
|
+
kubernetesClustersEligibleVmsRetrieve(id, options) {
|
|
28429
|
+
return KubernetesApiFp(this.configuration).kubernetesClustersEligibleVmsRetrieve(id, options).then((request) => request(this.axios, this.basePath));
|
|
28430
|
+
}
|
|
28431
|
+
/**
|
|
28432
|
+
* List cloud VMs eligible for connection to this cluster.
|
|
28433
|
+
* @param {string} id
|
|
28434
|
+
* @param {*} [options] Override http request option.
|
|
28435
|
+
* @throws {RequiredError}
|
|
28436
|
+
*/
|
|
28437
|
+
kubernetesClustersEligibleVmsRetrieve2(id, options) {
|
|
28438
|
+
return KubernetesApiFp(this.configuration).kubernetesClustersEligibleVmsRetrieve2(id, options).then((request) => request(this.axios, this.basePath));
|
|
28439
|
+
}
|
|
27897
28440
|
/**
|
|
27898
28441
|
* Create new HTTPRoute
|
|
27899
28442
|
* @param {number} clusterId
|
|
@@ -28740,6 +29283,24 @@ export class KubernetesApi extends BaseAPI {
|
|
|
28740
29283
|
kubernetesClustersTcproutesUpdate2(clusterId, id, tCPRoute, options) {
|
|
28741
29284
|
return KubernetesApiFp(this.configuration).kubernetesClustersTcproutesUpdate2(clusterId, id, tCPRoute, options).then((request) => request(this.axios, this.basePath));
|
|
28742
29285
|
}
|
|
29286
|
+
/**
|
|
29287
|
+
* Toggle cloud VM access for this cluster.
|
|
29288
|
+
* @param {string} id
|
|
29289
|
+
* @param {*} [options] Override http request option.
|
|
29290
|
+
* @throws {RequiredError}
|
|
29291
|
+
*/
|
|
29292
|
+
kubernetesClustersToggleCloudVmAccessCreate(id, options) {
|
|
29293
|
+
return KubernetesApiFp(this.configuration).kubernetesClustersToggleCloudVmAccessCreate(id, options).then((request) => request(this.axios, this.basePath));
|
|
29294
|
+
}
|
|
29295
|
+
/**
|
|
29296
|
+
* Toggle cloud VM access for this cluster.
|
|
29297
|
+
* @param {string} id
|
|
29298
|
+
* @param {*} [options] Override http request option.
|
|
29299
|
+
* @throws {RequiredError}
|
|
29300
|
+
*/
|
|
29301
|
+
kubernetesClustersToggleCloudVmAccessCreate2(id, options) {
|
|
29302
|
+
return KubernetesApiFp(this.configuration).kubernetesClustersToggleCloudVmAccessCreate2(id, options).then((request) => request(this.axios, this.basePath));
|
|
29303
|
+
}
|
|
28743
29304
|
/**
|
|
28744
29305
|
* Create new UDPRoute
|
|
28745
29306
|
* @param {number} clusterId
|