@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/dist/api.js CHANGED
@@ -22,8 +22,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
22
22
  });
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.FreednsApi = exports.FreednsApiFactory = exports.FreednsApiFp = exports.FreednsApiAxiosParamCreator = exports.DomainApi = exports.DomainApiFactory = exports.DomainApiFp = exports.DomainApiAxiosParamCreator = exports.DedicatedApi = exports.DedicatedApiFactory = exports.DedicatedApiFp = exports.DedicatedApiAxiosParamCreator = exports.CloudApi = exports.CloudApiFactory = exports.CloudApiFp = exports.CloudApiAxiosParamCreator = exports.BillingApi = exports.BillingApiFactory = exports.BillingApiFp = exports.BillingApiAxiosParamCreator = exports.AccountApi = exports.AccountApiFactory = exports.AccountApiFp = exports.AccountApiAxiosParamCreator = exports.Type2faEnum = exports.TicketCreatePriorityEnum = exports.ThresholdTypeEnum = exports.SubscriptionStatusEnum = exports.StatusEf2Enum = exports.StatusA57Enum = exports.Status63aEnum = exports.Status03cEnum = exports.SourceEnum = exports.ScopeEnum = exports.Priority3cdEnum = exports.PowerManagementRequestActionEnum = exports.PowerActionActionEnum = exports.OperationEnum = exports.LBFirewallRuleDirectionEnum = exports.LBFirewallRuleActionEnum = exports.KubeVersionEnum = exports.FwPolicyOutEnum = exports.FirewallRulesSetStatusEnum = exports.FirewallRuleDirectionEnum = exports.FeaturesEnum = exports.DepositStatusEnum = exports.DNSRecordCreateTypeEnum = exports.CountryEnum = exports.ContactTypeEnum = exports.ClusterTypeEnum = void 0;
26
- exports.SupportApi = exports.SupportApiFactory = exports.SupportApiFp = exports.SupportApiAxiosParamCreator = exports.SchemaRetrieve2LangEnum = exports.SchemaRetrieve2FormatEnum = exports.SchemaRetrieveLangEnum = exports.SchemaRetrieveFormatEnum = exports.SchemaApi = exports.SchemaApiFactory = exports.SchemaApiFp = exports.SchemaApiAxiosParamCreator = exports.KubernetesApi = exports.KubernetesApiFactory = exports.KubernetesApiFp = exports.KubernetesApiAxiosParamCreator = exports.HostingApi = exports.HostingApiFactory = exports.HostingApiFp = exports.HostingApiAxiosParamCreator = void 0;
25
+ exports.DomainApiFactory = exports.DomainApiFp = exports.DomainApiAxiosParamCreator = exports.DedicatedApi = exports.DedicatedApiFactory = exports.DedicatedApiFp = exports.DedicatedApiAxiosParamCreator = exports.CloudApi = exports.CloudApiFactory = exports.CloudApiFp = exports.CloudApiAxiosParamCreator = exports.BillingApi = exports.BillingApiFactory = exports.BillingApiFp = exports.BillingApiAxiosParamCreator = exports.AuthApi = exports.AuthApiFactory = exports.AuthApiFp = exports.AuthApiAxiosParamCreator = exports.AccountApi = exports.AccountApiFactory = exports.AccountApiFp = exports.AccountApiAxiosParamCreator = exports.Type2faEnum = exports.TicketCreatePriorityEnum = exports.ThresholdTypeEnum = exports.SubscriptionStatusEnum = exports.StatusEf2Enum = exports.StatusA57Enum = exports.Status63aEnum = exports.Status03cEnum = exports.SourceEnum = exports.ScopeEnum = exports.Priority3cdEnum = exports.PowerManagementRequestActionEnum = exports.PowerActionActionEnum = exports.OperationEnum = exports.LBFirewallRuleDirectionEnum = exports.LBFirewallRuleActionEnum = exports.KubeVersionEnum = exports.FwPolicyOutEnum = exports.FirewallRulesSetStatusEnum = exports.FirewallRuleDirectionEnum = exports.FeaturesEnum = exports.DepositStatusEnum = exports.DNSRecordCreateTypeEnum = exports.CountryEnum = exports.ContactTypeEnum = exports.ClusterTypeEnum = exports.CLISessionPollResponseStatusEnum = void 0;
26
+ exports.SupportApi = exports.SupportApiFactory = exports.SupportApiFp = exports.SupportApiAxiosParamCreator = exports.SchemaRetrieve2LangEnum = exports.SchemaRetrieve2FormatEnum = exports.SchemaRetrieveLangEnum = exports.SchemaRetrieveFormatEnum = exports.SchemaApi = exports.SchemaApiFactory = exports.SchemaApiFp = exports.SchemaApiAxiosParamCreator = exports.KubernetesApi = exports.KubernetesApiFactory = exports.KubernetesApiFp = exports.KubernetesApiAxiosParamCreator = exports.HostingApi = exports.HostingApiFactory = exports.HostingApiFp = exports.HostingApiAxiosParamCreator = exports.FreednsApi = exports.FreednsApiFactory = exports.FreednsApiFp = exports.FreednsApiAxiosParamCreator = exports.DomainApi = void 0;
27
27
  const axios_1 = require("axios");
28
28
  // URLSearchParams not necessarily used
29
29
  // @ts-ignore
@@ -33,6 +33,15 @@ const url_1 = require("url");
33
33
  const common_1 = require("./common");
34
34
  // @ts-ignore
35
35
  const base_1 = require("./base");
36
+ /**
37
+ * * `pending` - pending * `approved` - approved * `expired` - expired * `denied` - denied
38
+ */
39
+ exports.CLISessionPollResponseStatusEnum = {
40
+ Pending: 'pending',
41
+ Approved: 'approved',
42
+ Expired: 'expired',
43
+ Denied: 'denied'
44
+ };
36
45
  /**
37
46
  * * `dev` - Development * `prod` - Production
38
47
  */
@@ -3059,6 +3068,272 @@ class AccountApi extends base_1.BaseAPI {
3059
3068
  }
3060
3069
  }
3061
3070
  exports.AccountApi = AccountApi;
3071
+ /**
3072
+ * AuthApi - axios parameter creator
3073
+ */
3074
+ const AuthApiAxiosParamCreator = function (configuration) {
3075
+ return {
3076
+ /**
3077
+ * Create a CLI authentication session for browser-based approval
3078
+ * @param {*} [options] Override http request option.
3079
+ * @throws {RequiredError}
3080
+ */
3081
+ authCliSessionCreate: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
3082
+ const localVarPath = `/api/auth/cli-session/`;
3083
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3084
+ const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
3085
+ let baseOptions;
3086
+ if (configuration) {
3087
+ baseOptions = configuration.baseOptions;
3088
+ }
3089
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
3090
+ const localVarHeaderParameter = {};
3091
+ const localVarQueryParameter = {};
3092
+ localVarHeaderParameter['Accept'] = 'application/json';
3093
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3094
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3095
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3096
+ return {
3097
+ url: (0, common_1.toPathString)(localVarUrlObj),
3098
+ options: localVarRequestOptions,
3099
+ };
3100
+ }),
3101
+ /**
3102
+ * Create a CLI authentication session for browser-based approval
3103
+ * @param {*} [options] Override http request option.
3104
+ * @throws {RequiredError}
3105
+ */
3106
+ authCliSessionCreate2: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
3107
+ const localVarPath = `/api/v1/auth/cli-session/`;
3108
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3109
+ const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
3110
+ let baseOptions;
3111
+ if (configuration) {
3112
+ baseOptions = configuration.baseOptions;
3113
+ }
3114
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
3115
+ const localVarHeaderParameter = {};
3116
+ const localVarQueryParameter = {};
3117
+ localVarHeaderParameter['Accept'] = 'application/json';
3118
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3119
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3120
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3121
+ return {
3122
+ url: (0, common_1.toPathString)(localVarUrlObj),
3123
+ options: localVarRequestOptions,
3124
+ };
3125
+ }),
3126
+ /**
3127
+ * Poll a CLI authentication session. Returns token when approved.
3128
+ * @param {string} sessionId
3129
+ * @param {*} [options] Override http request option.
3130
+ * @throws {RequiredError}
3131
+ */
3132
+ authCliSessionRetrieve: (sessionId_1, ...args_1) => __awaiter(this, [sessionId_1, ...args_1], void 0, function* (sessionId, options = {}) {
3133
+ // verify required parameter 'sessionId' is not null or undefined
3134
+ (0, common_1.assertParamExists)('authCliSessionRetrieve', 'sessionId', sessionId);
3135
+ const localVarPath = `/api/auth/cli-session/{session_id}/`
3136
+ .replace(`{${"session_id"}}`, encodeURIComponent(String(sessionId)));
3137
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3138
+ const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
3139
+ let baseOptions;
3140
+ if (configuration) {
3141
+ baseOptions = configuration.baseOptions;
3142
+ }
3143
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3144
+ const localVarHeaderParameter = {};
3145
+ const localVarQueryParameter = {};
3146
+ localVarHeaderParameter['Accept'] = 'application/json';
3147
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3148
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3149
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3150
+ return {
3151
+ url: (0, common_1.toPathString)(localVarUrlObj),
3152
+ options: localVarRequestOptions,
3153
+ };
3154
+ }),
3155
+ /**
3156
+ * Poll a CLI authentication session. Returns token when approved.
3157
+ * @param {string} sessionId
3158
+ * @param {*} [options] Override http request option.
3159
+ * @throws {RequiredError}
3160
+ */
3161
+ authCliSessionRetrieve2: (sessionId_1, ...args_1) => __awaiter(this, [sessionId_1, ...args_1], void 0, function* (sessionId, options = {}) {
3162
+ // verify required parameter 'sessionId' is not null or undefined
3163
+ (0, common_1.assertParamExists)('authCliSessionRetrieve2', 'sessionId', sessionId);
3164
+ const localVarPath = `/api/v1/auth/cli-session/{session_id}/`
3165
+ .replace(`{${"session_id"}}`, encodeURIComponent(String(sessionId)));
3166
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3167
+ const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
3168
+ let baseOptions;
3169
+ if (configuration) {
3170
+ baseOptions = configuration.baseOptions;
3171
+ }
3172
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3173
+ const localVarHeaderParameter = {};
3174
+ const localVarQueryParameter = {};
3175
+ localVarHeaderParameter['Accept'] = 'application/json';
3176
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3177
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3178
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3179
+ return {
3180
+ url: (0, common_1.toPathString)(localVarUrlObj),
3181
+ options: localVarRequestOptions,
3182
+ };
3183
+ }),
3184
+ };
3185
+ };
3186
+ exports.AuthApiAxiosParamCreator = AuthApiAxiosParamCreator;
3187
+ /**
3188
+ * AuthApi - functional programming interface
3189
+ */
3190
+ const AuthApiFp = function (configuration) {
3191
+ const localVarAxiosParamCreator = (0, exports.AuthApiAxiosParamCreator)(configuration);
3192
+ return {
3193
+ /**
3194
+ * Create a CLI authentication session for browser-based approval
3195
+ * @param {*} [options] Override http request option.
3196
+ * @throws {RequiredError}
3197
+ */
3198
+ authCliSessionCreate(options) {
3199
+ return __awaiter(this, void 0, void 0, function* () {
3200
+ var _a, _b, _c;
3201
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.authCliSessionCreate(options);
3202
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3203
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AuthApi.authCliSessionCreate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3204
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3205
+ });
3206
+ },
3207
+ /**
3208
+ * Create a CLI authentication session for browser-based approval
3209
+ * @param {*} [options] Override http request option.
3210
+ * @throws {RequiredError}
3211
+ */
3212
+ authCliSessionCreate2(options) {
3213
+ return __awaiter(this, void 0, void 0, function* () {
3214
+ var _a, _b, _c;
3215
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.authCliSessionCreate2(options);
3216
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3217
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AuthApi.authCliSessionCreate2']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3218
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3219
+ });
3220
+ },
3221
+ /**
3222
+ * Poll a CLI authentication session. Returns token when approved.
3223
+ * @param {string} sessionId
3224
+ * @param {*} [options] Override http request option.
3225
+ * @throws {RequiredError}
3226
+ */
3227
+ authCliSessionRetrieve(sessionId, options) {
3228
+ return __awaiter(this, void 0, void 0, function* () {
3229
+ var _a, _b, _c;
3230
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.authCliSessionRetrieve(sessionId, options);
3231
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3232
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AuthApi.authCliSessionRetrieve']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3233
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3234
+ });
3235
+ },
3236
+ /**
3237
+ * Poll a CLI authentication session. Returns token when approved.
3238
+ * @param {string} sessionId
3239
+ * @param {*} [options] Override http request option.
3240
+ * @throws {RequiredError}
3241
+ */
3242
+ authCliSessionRetrieve2(sessionId, options) {
3243
+ return __awaiter(this, void 0, void 0, function* () {
3244
+ var _a, _b, _c;
3245
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.authCliSessionRetrieve2(sessionId, options);
3246
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3247
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AuthApi.authCliSessionRetrieve2']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3248
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3249
+ });
3250
+ },
3251
+ };
3252
+ };
3253
+ exports.AuthApiFp = AuthApiFp;
3254
+ /**
3255
+ * AuthApi - factory interface
3256
+ */
3257
+ const AuthApiFactory = function (configuration, basePath, axios) {
3258
+ const localVarFp = (0, exports.AuthApiFp)(configuration);
3259
+ return {
3260
+ /**
3261
+ * Create a CLI authentication session for browser-based approval
3262
+ * @param {*} [options] Override http request option.
3263
+ * @throws {RequiredError}
3264
+ */
3265
+ authCliSessionCreate(options) {
3266
+ return localVarFp.authCliSessionCreate(options).then((request) => request(axios, basePath));
3267
+ },
3268
+ /**
3269
+ * Create a CLI authentication session for browser-based approval
3270
+ * @param {*} [options] Override http request option.
3271
+ * @throws {RequiredError}
3272
+ */
3273
+ authCliSessionCreate2(options) {
3274
+ return localVarFp.authCliSessionCreate2(options).then((request) => request(axios, basePath));
3275
+ },
3276
+ /**
3277
+ * Poll a CLI authentication session. Returns token when approved.
3278
+ * @param {string} sessionId
3279
+ * @param {*} [options] Override http request option.
3280
+ * @throws {RequiredError}
3281
+ */
3282
+ authCliSessionRetrieve(sessionId, options) {
3283
+ return localVarFp.authCliSessionRetrieve(sessionId, options).then((request) => request(axios, basePath));
3284
+ },
3285
+ /**
3286
+ * Poll a CLI authentication session. Returns token when approved.
3287
+ * @param {string} sessionId
3288
+ * @param {*} [options] Override http request option.
3289
+ * @throws {RequiredError}
3290
+ */
3291
+ authCliSessionRetrieve2(sessionId, options) {
3292
+ return localVarFp.authCliSessionRetrieve2(sessionId, options).then((request) => request(axios, basePath));
3293
+ },
3294
+ };
3295
+ };
3296
+ exports.AuthApiFactory = AuthApiFactory;
3297
+ /**
3298
+ * AuthApi - object-oriented interface
3299
+ */
3300
+ class AuthApi extends base_1.BaseAPI {
3301
+ /**
3302
+ * Create a CLI authentication session for browser-based approval
3303
+ * @param {*} [options] Override http request option.
3304
+ * @throws {RequiredError}
3305
+ */
3306
+ authCliSessionCreate(options) {
3307
+ return (0, exports.AuthApiFp)(this.configuration).authCliSessionCreate(options).then((request) => request(this.axios, this.basePath));
3308
+ }
3309
+ /**
3310
+ * Create a CLI authentication session for browser-based approval
3311
+ * @param {*} [options] Override http request option.
3312
+ * @throws {RequiredError}
3313
+ */
3314
+ authCliSessionCreate2(options) {
3315
+ return (0, exports.AuthApiFp)(this.configuration).authCliSessionCreate2(options).then((request) => request(this.axios, this.basePath));
3316
+ }
3317
+ /**
3318
+ * Poll a CLI authentication session. Returns token when approved.
3319
+ * @param {string} sessionId
3320
+ * @param {*} [options] Override http request option.
3321
+ * @throws {RequiredError}
3322
+ */
3323
+ authCliSessionRetrieve(sessionId, options) {
3324
+ return (0, exports.AuthApiFp)(this.configuration).authCliSessionRetrieve(sessionId, options).then((request) => request(this.axios, this.basePath));
3325
+ }
3326
+ /**
3327
+ * Poll a CLI authentication session. Returns token when approved.
3328
+ * @param {string} sessionId
3329
+ * @param {*} [options] Override http request option.
3330
+ * @throws {RequiredError}
3331
+ */
3332
+ authCliSessionRetrieve2(sessionId, options) {
3333
+ return (0, exports.AuthApiFp)(this.configuration).authCliSessionRetrieve2(sessionId, options).then((request) => request(this.axios, this.basePath));
3334
+ }
3335
+ }
3336
+ exports.AuthApi = AuthApi;
3062
3337
  /**
3063
3338
  * BillingApi - axios parameter creator
3064
3339
  */
@@ -8775,10 +9050,11 @@ const CloudApiAxiosParamCreator = function (configuration) {
8775
9050
  /**
8776
9051
  * Cloud servers
8777
9052
  * @param {number} id A unique integer value identifying this virtual machine.
9053
+ * @param {PatchedServerDetail} [patchedServerDetail]
8778
9054
  * @param {*} [options] Override http request option.
8779
9055
  * @throws {RequiredError}
8780
9056
  */
8781
- cloudServersPartialUpdate: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
9057
+ cloudServersPartialUpdate: (id_1, patchedServerDetail_1, ...args_1) => __awaiter(this, [id_1, patchedServerDetail_1, ...args_1], void 0, function* (id, patchedServerDetail, options = {}) {
8782
9058
  // verify required parameter 'id' is not null or undefined
8783
9059
  (0, common_1.assertParamExists)('cloudServersPartialUpdate', 'id', id);
8784
9060
  const localVarPath = `/api/cloud/servers/{id}/`
@@ -8795,9 +9071,12 @@ const CloudApiAxiosParamCreator = function (configuration) {
8795
9071
  // authentication cookieAuth required
8796
9072
  // authentication tokenAuth required
8797
9073
  yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
9074
+ localVarHeaderParameter['Content-Type'] = 'application/json';
9075
+ localVarHeaderParameter['Accept'] = 'application/json';
8798
9076
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8799
9077
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8800
9078
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
9079
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(patchedServerDetail, localVarRequestOptions, configuration);
8801
9080
  return {
8802
9081
  url: (0, common_1.toPathString)(localVarUrlObj),
8803
9082
  options: localVarRequestOptions,
@@ -8806,10 +9085,11 @@ const CloudApiAxiosParamCreator = function (configuration) {
8806
9085
  /**
8807
9086
  * Cloud servers
8808
9087
  * @param {number} id A unique integer value identifying this virtual machine.
9088
+ * @param {PatchedServerDetail} [patchedServerDetail]
8809
9089
  * @param {*} [options] Override http request option.
8810
9090
  * @throws {RequiredError}
8811
9091
  */
8812
- cloudServersPartialUpdate2: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
9092
+ cloudServersPartialUpdate2: (id_1, patchedServerDetail_1, ...args_1) => __awaiter(this, [id_1, patchedServerDetail_1, ...args_1], void 0, function* (id, patchedServerDetail, options = {}) {
8813
9093
  // verify required parameter 'id' is not null or undefined
8814
9094
  (0, common_1.assertParamExists)('cloudServersPartialUpdate2', 'id', id);
8815
9095
  const localVarPath = `/api/v1/cloud/servers/{id}/`
@@ -8826,9 +9106,12 @@ const CloudApiAxiosParamCreator = function (configuration) {
8826
9106
  // authentication cookieAuth required
8827
9107
  // authentication tokenAuth required
8828
9108
  yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
9109
+ localVarHeaderParameter['Content-Type'] = 'application/json';
9110
+ localVarHeaderParameter['Accept'] = 'application/json';
8829
9111
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8830
9112
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8831
9113
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
9114
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(patchedServerDetail, localVarRequestOptions, configuration);
8832
9115
  return {
8833
9116
  url: (0, common_1.toPathString)(localVarUrlObj),
8834
9117
  options: localVarRequestOptions,
@@ -9191,6 +9474,7 @@ const CloudApiAxiosParamCreator = function (configuration) {
9191
9474
  // authentication cookieAuth required
9192
9475
  // authentication tokenAuth required
9193
9476
  yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
9477
+ localVarHeaderParameter['Accept'] = 'application/json';
9194
9478
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
9195
9479
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9196
9480
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -9222,6 +9506,7 @@ const CloudApiAxiosParamCreator = function (configuration) {
9222
9506
  // authentication cookieAuth required
9223
9507
  // authentication tokenAuth required
9224
9508
  yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
9509
+ localVarHeaderParameter['Accept'] = 'application/json';
9225
9510
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
9226
9511
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9227
9512
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -9607,10 +9892,11 @@ const CloudApiAxiosParamCreator = function (configuration) {
9607
9892
  /**
9608
9893
  * Cloud servers
9609
9894
  * @param {number} id A unique integer value identifying this virtual machine.
9895
+ * @param {ServerDetail} [serverDetail]
9610
9896
  * @param {*} [options] Override http request option.
9611
9897
  * @throws {RequiredError}
9612
9898
  */
9613
- cloudServersUpdate: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
9899
+ cloudServersUpdate: (id_1, serverDetail_1, ...args_1) => __awaiter(this, [id_1, serverDetail_1, ...args_1], void 0, function* (id, serverDetail, options = {}) {
9614
9900
  // verify required parameter 'id' is not null or undefined
9615
9901
  (0, common_1.assertParamExists)('cloudServersUpdate', 'id', id);
9616
9902
  const localVarPath = `/api/cloud/servers/{id}/`
@@ -9627,9 +9913,12 @@ const CloudApiAxiosParamCreator = function (configuration) {
9627
9913
  // authentication cookieAuth required
9628
9914
  // authentication tokenAuth required
9629
9915
  yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
9916
+ localVarHeaderParameter['Content-Type'] = 'application/json';
9917
+ localVarHeaderParameter['Accept'] = 'application/json';
9630
9918
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
9631
9919
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9632
9920
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
9921
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(serverDetail, localVarRequestOptions, configuration);
9633
9922
  return {
9634
9923
  url: (0, common_1.toPathString)(localVarUrlObj),
9635
9924
  options: localVarRequestOptions,
@@ -9638,10 +9927,11 @@ const CloudApiAxiosParamCreator = function (configuration) {
9638
9927
  /**
9639
9928
  * Cloud servers
9640
9929
  * @param {number} id A unique integer value identifying this virtual machine.
9930
+ * @param {ServerDetail} [serverDetail]
9641
9931
  * @param {*} [options] Override http request option.
9642
9932
  * @throws {RequiredError}
9643
9933
  */
9644
- cloudServersUpdate2: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
9934
+ cloudServersUpdate2: (id_1, serverDetail_1, ...args_1) => __awaiter(this, [id_1, serverDetail_1, ...args_1], void 0, function* (id, serverDetail, options = {}) {
9645
9935
  // verify required parameter 'id' is not null or undefined
9646
9936
  (0, common_1.assertParamExists)('cloudServersUpdate2', 'id', id);
9647
9937
  const localVarPath = `/api/v1/cloud/servers/{id}/`
@@ -9658,9 +9948,12 @@ const CloudApiAxiosParamCreator = function (configuration) {
9658
9948
  // authentication cookieAuth required
9659
9949
  // authentication tokenAuth required
9660
9950
  yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
9951
+ localVarHeaderParameter['Content-Type'] = 'application/json';
9952
+ localVarHeaderParameter['Accept'] = 'application/json';
9661
9953
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
9662
9954
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9663
9955
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
9956
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(serverDetail, localVarRequestOptions, configuration);
9664
9957
  return {
9665
9958
  url: (0, common_1.toPathString)(localVarUrlObj),
9666
9959
  options: localVarRequestOptions,
@@ -12300,13 +12593,14 @@ const CloudApiFp = function (configuration) {
12300
12593
  /**
12301
12594
  * Cloud servers
12302
12595
  * @param {number} id A unique integer value identifying this virtual machine.
12596
+ * @param {PatchedServerDetail} [patchedServerDetail]
12303
12597
  * @param {*} [options] Override http request option.
12304
12598
  * @throws {RequiredError}
12305
12599
  */
12306
- cloudServersPartialUpdate(id, options) {
12600
+ cloudServersPartialUpdate(id, patchedServerDetail, options) {
12307
12601
  return __awaiter(this, void 0, void 0, function* () {
12308
12602
  var _a, _b, _c;
12309
- const localVarAxiosArgs = yield localVarAxiosParamCreator.cloudServersPartialUpdate(id, options);
12603
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.cloudServersPartialUpdate(id, patchedServerDetail, options);
12310
12604
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12311
12605
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CloudApi.cloudServersPartialUpdate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12312
12606
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -12315,13 +12609,14 @@ const CloudApiFp = function (configuration) {
12315
12609
  /**
12316
12610
  * Cloud servers
12317
12611
  * @param {number} id A unique integer value identifying this virtual machine.
12612
+ * @param {PatchedServerDetail} [patchedServerDetail]
12318
12613
  * @param {*} [options] Override http request option.
12319
12614
  * @throws {RequiredError}
12320
12615
  */
12321
- cloudServersPartialUpdate2(id, options) {
12616
+ cloudServersPartialUpdate2(id, patchedServerDetail, options) {
12322
12617
  return __awaiter(this, void 0, void 0, function* () {
12323
12618
  var _a, _b, _c;
12324
- const localVarAxiosArgs = yield localVarAxiosParamCreator.cloudServersPartialUpdate2(id, options);
12619
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.cloudServersPartialUpdate2(id, patchedServerDetail, options);
12325
12620
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12326
12621
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CloudApi.cloudServersPartialUpdate2']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12327
12622
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -12678,13 +12973,14 @@ const CloudApiFp = function (configuration) {
12678
12973
  /**
12679
12974
  * Cloud servers
12680
12975
  * @param {number} id A unique integer value identifying this virtual machine.
12976
+ * @param {ServerDetail} [serverDetail]
12681
12977
  * @param {*} [options] Override http request option.
12682
12978
  * @throws {RequiredError}
12683
12979
  */
12684
- cloudServersUpdate(id, options) {
12980
+ cloudServersUpdate(id, serverDetail, options) {
12685
12981
  return __awaiter(this, void 0, void 0, function* () {
12686
12982
  var _a, _b, _c;
12687
- const localVarAxiosArgs = yield localVarAxiosParamCreator.cloudServersUpdate(id, options);
12983
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.cloudServersUpdate(id, serverDetail, options);
12688
12984
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12689
12985
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CloudApi.cloudServersUpdate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12690
12986
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -12693,13 +12989,14 @@ const CloudApiFp = function (configuration) {
12693
12989
  /**
12694
12990
  * Cloud servers
12695
12991
  * @param {number} id A unique integer value identifying this virtual machine.
12992
+ * @param {ServerDetail} [serverDetail]
12696
12993
  * @param {*} [options] Override http request option.
12697
12994
  * @throws {RequiredError}
12698
12995
  */
12699
- cloudServersUpdate2(id, options) {
12996
+ cloudServersUpdate2(id, serverDetail, options) {
12700
12997
  return __awaiter(this, void 0, void 0, function* () {
12701
12998
  var _a, _b, _c;
12702
- const localVarAxiosArgs = yield localVarAxiosParamCreator.cloudServersUpdate2(id, options);
12999
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.cloudServersUpdate2(id, serverDetail, options);
12703
13000
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12704
13001
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CloudApi.cloudServersUpdate2']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12705
13002
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -14145,20 +14442,22 @@ const CloudApiFactory = function (configuration, basePath, axios) {
14145
14442
  /**
14146
14443
  * Cloud servers
14147
14444
  * @param {number} id A unique integer value identifying this virtual machine.
14445
+ * @param {PatchedServerDetail} [patchedServerDetail]
14148
14446
  * @param {*} [options] Override http request option.
14149
14447
  * @throws {RequiredError}
14150
14448
  */
14151
- cloudServersPartialUpdate(id, options) {
14152
- return localVarFp.cloudServersPartialUpdate(id, options).then((request) => request(axios, basePath));
14449
+ cloudServersPartialUpdate(id, patchedServerDetail, options) {
14450
+ return localVarFp.cloudServersPartialUpdate(id, patchedServerDetail, options).then((request) => request(axios, basePath));
14153
14451
  },
14154
14452
  /**
14155
14453
  * Cloud servers
14156
14454
  * @param {number} id A unique integer value identifying this virtual machine.
14455
+ * @param {PatchedServerDetail} [patchedServerDetail]
14157
14456
  * @param {*} [options] Override http request option.
14158
14457
  * @throws {RequiredError}
14159
14458
  */
14160
- cloudServersPartialUpdate2(id, options) {
14161
- return localVarFp.cloudServersPartialUpdate2(id, options).then((request) => request(axios, basePath));
14459
+ cloudServersPartialUpdate2(id, patchedServerDetail, options) {
14460
+ return localVarFp.cloudServersPartialUpdate2(id, patchedServerDetail, options).then((request) => request(axios, basePath));
14162
14461
  },
14163
14462
  /**
14164
14463
  * Server power management
@@ -14379,20 +14678,22 @@ const CloudApiFactory = function (configuration, basePath, axios) {
14379
14678
  /**
14380
14679
  * Cloud servers
14381
14680
  * @param {number} id A unique integer value identifying this virtual machine.
14681
+ * @param {ServerDetail} [serverDetail]
14382
14682
  * @param {*} [options] Override http request option.
14383
14683
  * @throws {RequiredError}
14384
14684
  */
14385
- cloudServersUpdate(id, options) {
14386
- return localVarFp.cloudServersUpdate(id, options).then((request) => request(axios, basePath));
14685
+ cloudServersUpdate(id, serverDetail, options) {
14686
+ return localVarFp.cloudServersUpdate(id, serverDetail, options).then((request) => request(axios, basePath));
14387
14687
  },
14388
14688
  /**
14389
14689
  * Cloud servers
14390
14690
  * @param {number} id A unique integer value identifying this virtual machine.
14691
+ * @param {ServerDetail} [serverDetail]
14391
14692
  * @param {*} [options] Override http request option.
14392
14693
  * @throws {RequiredError}
14393
14694
  */
14394
- cloudServersUpdate2(id, options) {
14395
- return localVarFp.cloudServersUpdate2(id, options).then((request) => request(axios, basePath));
14695
+ cloudServersUpdate2(id, serverDetail, options) {
14696
+ return localVarFp.cloudServersUpdate2(id, serverDetail, options).then((request) => request(axios, basePath));
14396
14697
  },
14397
14698
  /**
14398
14699
  * Get current resource usage for a server.
@@ -15640,20 +15941,22 @@ class CloudApi extends base_1.BaseAPI {
15640
15941
  /**
15641
15942
  * Cloud servers
15642
15943
  * @param {number} id A unique integer value identifying this virtual machine.
15944
+ * @param {PatchedServerDetail} [patchedServerDetail]
15643
15945
  * @param {*} [options] Override http request option.
15644
15946
  * @throws {RequiredError}
15645
15947
  */
15646
- cloudServersPartialUpdate(id, options) {
15647
- return (0, exports.CloudApiFp)(this.configuration).cloudServersPartialUpdate(id, options).then((request) => request(this.axios, this.basePath));
15948
+ cloudServersPartialUpdate(id, patchedServerDetail, options) {
15949
+ return (0, exports.CloudApiFp)(this.configuration).cloudServersPartialUpdate(id, patchedServerDetail, options).then((request) => request(this.axios, this.basePath));
15648
15950
  }
15649
15951
  /**
15650
15952
  * Cloud servers
15651
15953
  * @param {number} id A unique integer value identifying this virtual machine.
15954
+ * @param {PatchedServerDetail} [patchedServerDetail]
15652
15955
  * @param {*} [options] Override http request option.
15653
15956
  * @throws {RequiredError}
15654
15957
  */
15655
- cloudServersPartialUpdate2(id, options) {
15656
- return (0, exports.CloudApiFp)(this.configuration).cloudServersPartialUpdate2(id, options).then((request) => request(this.axios, this.basePath));
15958
+ cloudServersPartialUpdate2(id, patchedServerDetail, options) {
15959
+ return (0, exports.CloudApiFp)(this.configuration).cloudServersPartialUpdate2(id, patchedServerDetail, options).then((request) => request(this.axios, this.basePath));
15657
15960
  }
15658
15961
  /**
15659
15962
  * Server power management
@@ -15874,20 +16177,22 @@ class CloudApi extends base_1.BaseAPI {
15874
16177
  /**
15875
16178
  * Cloud servers
15876
16179
  * @param {number} id A unique integer value identifying this virtual machine.
16180
+ * @param {ServerDetail} [serverDetail]
15877
16181
  * @param {*} [options] Override http request option.
15878
16182
  * @throws {RequiredError}
15879
16183
  */
15880
- cloudServersUpdate(id, options) {
15881
- return (0, exports.CloudApiFp)(this.configuration).cloudServersUpdate(id, options).then((request) => request(this.axios, this.basePath));
16184
+ cloudServersUpdate(id, serverDetail, options) {
16185
+ return (0, exports.CloudApiFp)(this.configuration).cloudServersUpdate(id, serverDetail, options).then((request) => request(this.axios, this.basePath));
15882
16186
  }
15883
16187
  /**
15884
16188
  * Cloud servers
15885
16189
  * @param {number} id A unique integer value identifying this virtual machine.
16190
+ * @param {ServerDetail} [serverDetail]
15886
16191
  * @param {*} [options] Override http request option.
15887
16192
  * @throws {RequiredError}
15888
16193
  */
15889
- cloudServersUpdate2(id, options) {
15890
- return (0, exports.CloudApiFp)(this.configuration).cloudServersUpdate2(id, options).then((request) => request(this.axios, this.basePath));
16194
+ cloudServersUpdate2(id, serverDetail, options) {
16195
+ return (0, exports.CloudApiFp)(this.configuration).cloudServersUpdate2(id, serverDetail, options).then((request) => request(this.axios, this.basePath));
15891
16196
  }
15892
16197
  /**
15893
16198
  * Get current resource usage for a server.
@@ -21284,6 +21589,70 @@ const KubernetesApiAxiosParamCreator = function (configuration) {
21284
21589
  options: localVarRequestOptions,
21285
21590
  };
21286
21591
  }),
21592
+ /**
21593
+ * List cloud VMs eligible for connection to this cluster.
21594
+ * @param {string} id
21595
+ * @param {*} [options] Override http request option.
21596
+ * @throws {RequiredError}
21597
+ */
21598
+ kubernetesClustersEligibleVmsRetrieve: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
21599
+ // verify required parameter 'id' is not null or undefined
21600
+ (0, common_1.assertParamExists)('kubernetesClustersEligibleVmsRetrieve', 'id', id);
21601
+ const localVarPath = `/api/kubernetes/clusters/{id}/eligible-vms/`
21602
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
21603
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
21604
+ const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
21605
+ let baseOptions;
21606
+ if (configuration) {
21607
+ baseOptions = configuration.baseOptions;
21608
+ }
21609
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
21610
+ const localVarHeaderParameter = {};
21611
+ const localVarQueryParameter = {};
21612
+ // authentication cookieAuth required
21613
+ // authentication tokenAuth required
21614
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
21615
+ localVarHeaderParameter['Accept'] = 'application/json';
21616
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
21617
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
21618
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
21619
+ return {
21620
+ url: (0, common_1.toPathString)(localVarUrlObj),
21621
+ options: localVarRequestOptions,
21622
+ };
21623
+ }),
21624
+ /**
21625
+ * List cloud VMs eligible for connection to this cluster.
21626
+ * @param {string} id
21627
+ * @param {*} [options] Override http request option.
21628
+ * @throws {RequiredError}
21629
+ */
21630
+ kubernetesClustersEligibleVmsRetrieve2: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
21631
+ // verify required parameter 'id' is not null or undefined
21632
+ (0, common_1.assertParamExists)('kubernetesClustersEligibleVmsRetrieve2', 'id', id);
21633
+ const localVarPath = `/api/v1/kubernetes/clusters/{id}/eligible-vms/`
21634
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
21635
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
21636
+ const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
21637
+ let baseOptions;
21638
+ if (configuration) {
21639
+ baseOptions = configuration.baseOptions;
21640
+ }
21641
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
21642
+ const localVarHeaderParameter = {};
21643
+ const localVarQueryParameter = {};
21644
+ // authentication cookieAuth required
21645
+ // authentication tokenAuth required
21646
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
21647
+ localVarHeaderParameter['Accept'] = 'application/json';
21648
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
21649
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
21650
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
21651
+ return {
21652
+ url: (0, common_1.toPathString)(localVarUrlObj),
21653
+ options: localVarRequestOptions,
21654
+ };
21655
+ }),
21287
21656
  /**
21288
21657
  * Create new HTTPRoute
21289
21658
  * @param {number} clusterId
@@ -24296,6 +24665,70 @@ const KubernetesApiAxiosParamCreator = function (configuration) {
24296
24665
  options: localVarRequestOptions,
24297
24666
  };
24298
24667
  }),
24668
+ /**
24669
+ * Toggle cloud VM access for this cluster.
24670
+ * @param {string} id
24671
+ * @param {*} [options] Override http request option.
24672
+ * @throws {RequiredError}
24673
+ */
24674
+ kubernetesClustersToggleCloudVmAccessCreate: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
24675
+ // verify required parameter 'id' is not null or undefined
24676
+ (0, common_1.assertParamExists)('kubernetesClustersToggleCloudVmAccessCreate', 'id', id);
24677
+ const localVarPath = `/api/kubernetes/clusters/{id}/toggle-cloud-vm-access/`
24678
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
24679
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
24680
+ const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
24681
+ let baseOptions;
24682
+ if (configuration) {
24683
+ baseOptions = configuration.baseOptions;
24684
+ }
24685
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
24686
+ const localVarHeaderParameter = {};
24687
+ const localVarQueryParameter = {};
24688
+ // authentication cookieAuth required
24689
+ // authentication tokenAuth required
24690
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
24691
+ localVarHeaderParameter['Accept'] = 'application/json';
24692
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
24693
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
24694
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
24695
+ return {
24696
+ url: (0, common_1.toPathString)(localVarUrlObj),
24697
+ options: localVarRequestOptions,
24698
+ };
24699
+ }),
24700
+ /**
24701
+ * Toggle cloud VM access for this cluster.
24702
+ * @param {string} id
24703
+ * @param {*} [options] Override http request option.
24704
+ * @throws {RequiredError}
24705
+ */
24706
+ kubernetesClustersToggleCloudVmAccessCreate2: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
24707
+ // verify required parameter 'id' is not null or undefined
24708
+ (0, common_1.assertParamExists)('kubernetesClustersToggleCloudVmAccessCreate2', 'id', id);
24709
+ const localVarPath = `/api/v1/kubernetes/clusters/{id}/toggle-cloud-vm-access/`
24710
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
24711
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
24712
+ const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
24713
+ let baseOptions;
24714
+ if (configuration) {
24715
+ baseOptions = configuration.baseOptions;
24716
+ }
24717
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
24718
+ const localVarHeaderParameter = {};
24719
+ const localVarQueryParameter = {};
24720
+ // authentication cookieAuth required
24721
+ // authentication tokenAuth required
24722
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
24723
+ localVarHeaderParameter['Accept'] = 'application/json';
24724
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
24725
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
24726
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
24727
+ return {
24728
+ url: (0, common_1.toPathString)(localVarUrlObj),
24729
+ options: localVarRequestOptions,
24730
+ };
24731
+ }),
24299
24732
  /**
24300
24733
  * Create new UDPRoute
24301
24734
  * @param {number} clusterId
@@ -25073,6 +25506,36 @@ const KubernetesApiFp = function (configuration) {
25073
25506
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
25074
25507
  });
25075
25508
  },
25509
+ /**
25510
+ * List cloud VMs eligible for connection to this cluster.
25511
+ * @param {string} id
25512
+ * @param {*} [options] Override http request option.
25513
+ * @throws {RequiredError}
25514
+ */
25515
+ kubernetesClustersEligibleVmsRetrieve(id, options) {
25516
+ return __awaiter(this, void 0, void 0, function* () {
25517
+ var _a, _b, _c;
25518
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.kubernetesClustersEligibleVmsRetrieve(id, options);
25519
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
25520
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['KubernetesApi.kubernetesClustersEligibleVmsRetrieve']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
25521
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
25522
+ });
25523
+ },
25524
+ /**
25525
+ * List cloud VMs eligible for connection to this cluster.
25526
+ * @param {string} id
25527
+ * @param {*} [options] Override http request option.
25528
+ * @throws {RequiredError}
25529
+ */
25530
+ kubernetesClustersEligibleVmsRetrieve2(id, options) {
25531
+ return __awaiter(this, void 0, void 0, function* () {
25532
+ var _a, _b, _c;
25533
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.kubernetesClustersEligibleVmsRetrieve2(id, options);
25534
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
25535
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['KubernetesApi.kubernetesClustersEligibleVmsRetrieve2']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
25536
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
25537
+ });
25538
+ },
25076
25539
  /**
25077
25540
  * Create new HTTPRoute
25078
25541
  * @param {number} clusterId
@@ -26423,6 +26886,36 @@ const KubernetesApiFp = function (configuration) {
26423
26886
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
26424
26887
  });
26425
26888
  },
26889
+ /**
26890
+ * Toggle cloud VM access for this cluster.
26891
+ * @param {string} id
26892
+ * @param {*} [options] Override http request option.
26893
+ * @throws {RequiredError}
26894
+ */
26895
+ kubernetesClustersToggleCloudVmAccessCreate(id, options) {
26896
+ return __awaiter(this, void 0, void 0, function* () {
26897
+ var _a, _b, _c;
26898
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.kubernetesClustersToggleCloudVmAccessCreate(id, options);
26899
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
26900
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['KubernetesApi.kubernetesClustersToggleCloudVmAccessCreate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
26901
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
26902
+ });
26903
+ },
26904
+ /**
26905
+ * Toggle cloud VM access for this cluster.
26906
+ * @param {string} id
26907
+ * @param {*} [options] Override http request option.
26908
+ * @throws {RequiredError}
26909
+ */
26910
+ kubernetesClustersToggleCloudVmAccessCreate2(id, options) {
26911
+ return __awaiter(this, void 0, void 0, function* () {
26912
+ var _a, _b, _c;
26913
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.kubernetesClustersToggleCloudVmAccessCreate2(id, options);
26914
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
26915
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['KubernetesApi.kubernetesClustersToggleCloudVmAccessCreate2']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
26916
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
26917
+ });
26918
+ },
26426
26919
  /**
26427
26920
  * Create new UDPRoute
26428
26921
  * @param {number} clusterId
@@ -26802,6 +27295,24 @@ const KubernetesApiFactory = function (configuration, basePath, axios) {
26802
27295
  kubernetesClustersDisconnectVmCreate2(id, disconnectVMRequest, options) {
26803
27296
  return localVarFp.kubernetesClustersDisconnectVmCreate2(id, disconnectVMRequest, options).then((request) => request(axios, basePath));
26804
27297
  },
27298
+ /**
27299
+ * List cloud VMs eligible for connection to this cluster.
27300
+ * @param {string} id
27301
+ * @param {*} [options] Override http request option.
27302
+ * @throws {RequiredError}
27303
+ */
27304
+ kubernetesClustersEligibleVmsRetrieve(id, options) {
27305
+ return localVarFp.kubernetesClustersEligibleVmsRetrieve(id, options).then((request) => request(axios, basePath));
27306
+ },
27307
+ /**
27308
+ * List cloud VMs eligible for connection to this cluster.
27309
+ * @param {string} id
27310
+ * @param {*} [options] Override http request option.
27311
+ * @throws {RequiredError}
27312
+ */
27313
+ kubernetesClustersEligibleVmsRetrieve2(id, options) {
27314
+ return localVarFp.kubernetesClustersEligibleVmsRetrieve2(id, options).then((request) => request(axios, basePath));
27315
+ },
26805
27316
  /**
26806
27317
  * Create new HTTPRoute
26807
27318
  * @param {number} clusterId
@@ -27648,6 +28159,24 @@ const KubernetesApiFactory = function (configuration, basePath, axios) {
27648
28159
  kubernetesClustersTcproutesUpdate2(clusterId, id, tCPRoute, options) {
27649
28160
  return localVarFp.kubernetesClustersTcproutesUpdate2(clusterId, id, tCPRoute, options).then((request) => request(axios, basePath));
27650
28161
  },
28162
+ /**
28163
+ * Toggle cloud VM access for this cluster.
28164
+ * @param {string} id
28165
+ * @param {*} [options] Override http request option.
28166
+ * @throws {RequiredError}
28167
+ */
28168
+ kubernetesClustersToggleCloudVmAccessCreate(id, options) {
28169
+ return localVarFp.kubernetesClustersToggleCloudVmAccessCreate(id, options).then((request) => request(axios, basePath));
28170
+ },
28171
+ /**
28172
+ * Toggle cloud VM access for this cluster.
28173
+ * @param {string} id
28174
+ * @param {*} [options] Override http request option.
28175
+ * @throws {RequiredError}
28176
+ */
28177
+ kubernetesClustersToggleCloudVmAccessCreate2(id, options) {
28178
+ return localVarFp.kubernetesClustersToggleCloudVmAccessCreate2(id, options).then((request) => request(axios, basePath));
28179
+ },
27651
28180
  /**
27652
28181
  * Create new UDPRoute
27653
28182
  * @param {number} clusterId
@@ -27929,6 +28458,24 @@ class KubernetesApi extends base_1.BaseAPI {
27929
28458
  kubernetesClustersDisconnectVmCreate2(id, disconnectVMRequest, options) {
27930
28459
  return (0, exports.KubernetesApiFp)(this.configuration).kubernetesClustersDisconnectVmCreate2(id, disconnectVMRequest, options).then((request) => request(this.axios, this.basePath));
27931
28460
  }
28461
+ /**
28462
+ * List cloud VMs eligible for connection to this cluster.
28463
+ * @param {string} id
28464
+ * @param {*} [options] Override http request option.
28465
+ * @throws {RequiredError}
28466
+ */
28467
+ kubernetesClustersEligibleVmsRetrieve(id, options) {
28468
+ return (0, exports.KubernetesApiFp)(this.configuration).kubernetesClustersEligibleVmsRetrieve(id, options).then((request) => request(this.axios, this.basePath));
28469
+ }
28470
+ /**
28471
+ * List cloud VMs eligible for connection to this cluster.
28472
+ * @param {string} id
28473
+ * @param {*} [options] Override http request option.
28474
+ * @throws {RequiredError}
28475
+ */
28476
+ kubernetesClustersEligibleVmsRetrieve2(id, options) {
28477
+ return (0, exports.KubernetesApiFp)(this.configuration).kubernetesClustersEligibleVmsRetrieve2(id, options).then((request) => request(this.axios, this.basePath));
28478
+ }
27932
28479
  /**
27933
28480
  * Create new HTTPRoute
27934
28481
  * @param {number} clusterId
@@ -28775,6 +29322,24 @@ class KubernetesApi extends base_1.BaseAPI {
28775
29322
  kubernetesClustersTcproutesUpdate2(clusterId, id, tCPRoute, options) {
28776
29323
  return (0, exports.KubernetesApiFp)(this.configuration).kubernetesClustersTcproutesUpdate2(clusterId, id, tCPRoute, options).then((request) => request(this.axios, this.basePath));
28777
29324
  }
29325
+ /**
29326
+ * Toggle cloud VM access for this cluster.
29327
+ * @param {string} id
29328
+ * @param {*} [options] Override http request option.
29329
+ * @throws {RequiredError}
29330
+ */
29331
+ kubernetesClustersToggleCloudVmAccessCreate(id, options) {
29332
+ return (0, exports.KubernetesApiFp)(this.configuration).kubernetesClustersToggleCloudVmAccessCreate(id, options).then((request) => request(this.axios, this.basePath));
29333
+ }
29334
+ /**
29335
+ * Toggle cloud VM access for this cluster.
29336
+ * @param {string} id
29337
+ * @param {*} [options] Override http request option.
29338
+ * @throws {RequiredError}
29339
+ */
29340
+ kubernetesClustersToggleCloudVmAccessCreate2(id, options) {
29341
+ return (0, exports.KubernetesApiFp)(this.configuration).kubernetesClustersToggleCloudVmAccessCreate2(id, options).then((request) => request(this.axios, this.basePath));
29342
+ }
28778
29343
  /**
28779
29344
  * Create new UDPRoute
28780
29345
  * @param {number} clusterId