@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/api.ts CHANGED
@@ -107,6 +107,40 @@ export interface AttachVolume {
107
107
  */
108
108
  'vm': number;
109
109
  }
110
+ export interface CLISessionCreateResponse {
111
+ 'session_id': string;
112
+ 'verification_url': string;
113
+ 'expires_at': string;
114
+ /**
115
+ * Recommended polling interval in seconds
116
+ */
117
+ 'poll_interval': number;
118
+ }
119
+ export interface CLISessionPollResponse {
120
+ 'status': CLISessionPollResponseStatusEnum;
121
+ /**
122
+ * Only present when status is approved
123
+ */
124
+ 'token_key'?: string;
125
+ 'token_name'?: string;
126
+ 'token_scope'?: string;
127
+ }
128
+
129
+
130
+ /**
131
+ * * `pending` - pending * `approved` - approved * `expired` - expired * `denied` - denied
132
+ */
133
+
134
+ export const CLISessionPollResponseStatusEnum = {
135
+ Pending: 'pending',
136
+ Approved: 'approved',
137
+ Expired: 'expired',
138
+ Denied: 'denied'
139
+ } as const;
140
+
141
+ export type CLISessionPollResponseStatusEnum = typeof CLISessionPollResponseStatusEnum[keyof typeof CLISessionPollResponseStatusEnum];
142
+
143
+
110
144
  export interface CancelServiceResponse {
111
145
  'message': string;
112
146
  'status': string;
@@ -809,6 +843,13 @@ export interface DomainRegistrant {
809
843
  }
810
844
 
811
845
 
846
+ export interface EligibleVM {
847
+ 'id': number;
848
+ 'hostname': string;
849
+ }
850
+ export interface EligibleVMsResponse {
851
+ 'vms': Array<EligibleVM>;
852
+ }
812
853
  export interface EmailHistory {
813
854
  'id': number;
814
855
  'subject': string;
@@ -1573,6 +1614,32 @@ export interface PatchedSSHKey {
1573
1614
  'fingerprint'?: string;
1574
1615
  'key'?: string;
1575
1616
  }
1617
+ export interface PatchedServerDetail {
1618
+ 'id'?: number;
1619
+ 'hostname'?: string;
1620
+ 'project'?: string;
1621
+ 'image'?: string;
1622
+ 'package'?: string;
1623
+ 'cpus'?: number;
1624
+ 'memory'?: number;
1625
+ 'disk_size'?: number;
1626
+ 'machine'?: { [key: string]: any; };
1627
+ 'volumes'?: Array<Volume>;
1628
+ 'networks'?: { [key: string]: any; };
1629
+ 'password'?: string;
1630
+ 'status'?: StatusA57Enum;
1631
+ 'username'?: string;
1632
+ /**
1633
+ * Prevents the server from being destroyed until disabled.
1634
+ */
1635
+ 'destroy_protection'?: boolean;
1636
+ /**
1637
+ * Enables Proxmox HA — automatic restart and migration on node failure.
1638
+ */
1639
+ 'ha_enabled'?: boolean;
1640
+ }
1641
+
1642
+
1576
1643
  /**
1577
1644
  * Serializer for TCPRoute resources with port validation.
1578
1645
  */
@@ -1839,9 +1906,9 @@ export interface Server {
1839
1906
  'project'?: string;
1840
1907
  'image': string;
1841
1908
  'package': string;
1842
- 'cpus': string;
1843
- 'memory': string;
1844
- 'disk_size': string;
1909
+ 'cpus': number;
1910
+ 'memory': number;
1911
+ 'disk_size': number;
1845
1912
  'status'?: StatusA57Enum;
1846
1913
  /**
1847
1914
  * Prevents the server from being destroyed until disabled.
@@ -1912,6 +1979,32 @@ export interface ServerAdd {
1912
1979
  export interface ServerAddResponse {
1913
1980
  'id': number;
1914
1981
  }
1982
+ export interface ServerDetail {
1983
+ 'id': number;
1984
+ 'hostname': string;
1985
+ 'project'?: string;
1986
+ 'image': string;
1987
+ 'package': string;
1988
+ 'cpus': number;
1989
+ 'memory': number;
1990
+ 'disk_size': number;
1991
+ 'machine': { [key: string]: any; };
1992
+ 'volumes': Array<Volume>;
1993
+ 'networks': { [key: string]: any; };
1994
+ 'password'?: string;
1995
+ 'status': StatusA57Enum;
1996
+ 'username': string;
1997
+ /**
1998
+ * Prevents the server from being destroyed until disabled.
1999
+ */
2000
+ 'destroy_protection': boolean;
2001
+ /**
2002
+ * Enables Proxmox HA — automatic restart and migration on node failure.
2003
+ */
2004
+ 'ha_enabled': boolean;
2005
+ }
2006
+
2007
+
1915
2008
  export interface ServerProduct {
1916
2009
  'id': number;
1917
2010
  'slug': string;
@@ -2244,6 +2337,10 @@ export interface ToggleAutoPaymentResponse {
2244
2337
  'message': string;
2245
2338
  'auto_payment': boolean;
2246
2339
  }
2340
+ export interface ToggleCloudVMAccessResponse {
2341
+ 'enabled': boolean;
2342
+ 'message': string;
2343
+ }
2247
2344
  export interface TransferRoDomain {
2248
2345
  /**
2249
2346
  * Domain with tld, ex: example.com
@@ -5007,6 +5104,281 @@ export class AccountApi extends BaseAPI {
5007
5104
 
5008
5105
 
5009
5106
 
5107
+ /**
5108
+ * AuthApi - axios parameter creator
5109
+ */
5110
+ export const AuthApiAxiosParamCreator = function (configuration?: Configuration) {
5111
+ return {
5112
+ /**
5113
+ * Create a CLI authentication session for browser-based approval
5114
+ * @param {*} [options] Override http request option.
5115
+ * @throws {RequiredError}
5116
+ */
5117
+ authCliSessionCreate: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5118
+ const localVarPath = `/api/auth/cli-session/`;
5119
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5120
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5121
+ let baseOptions;
5122
+ if (configuration) {
5123
+ baseOptions = configuration.baseOptions;
5124
+ }
5125
+
5126
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
5127
+ const localVarHeaderParameter = {} as any;
5128
+ const localVarQueryParameter = {} as any;
5129
+
5130
+ localVarHeaderParameter['Accept'] = 'application/json';
5131
+
5132
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5133
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5134
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5135
+
5136
+ return {
5137
+ url: toPathString(localVarUrlObj),
5138
+ options: localVarRequestOptions,
5139
+ };
5140
+ },
5141
+ /**
5142
+ * Create a CLI authentication session for browser-based approval
5143
+ * @param {*} [options] Override http request option.
5144
+ * @throws {RequiredError}
5145
+ */
5146
+ authCliSessionCreate2: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5147
+ const localVarPath = `/api/v1/auth/cli-session/`;
5148
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5149
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5150
+ let baseOptions;
5151
+ if (configuration) {
5152
+ baseOptions = configuration.baseOptions;
5153
+ }
5154
+
5155
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
5156
+ const localVarHeaderParameter = {} as any;
5157
+ const localVarQueryParameter = {} as any;
5158
+
5159
+ localVarHeaderParameter['Accept'] = 'application/json';
5160
+
5161
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5162
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5163
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5164
+
5165
+ return {
5166
+ url: toPathString(localVarUrlObj),
5167
+ options: localVarRequestOptions,
5168
+ };
5169
+ },
5170
+ /**
5171
+ * Poll a CLI authentication session. Returns token when approved.
5172
+ * @param {string} sessionId
5173
+ * @param {*} [options] Override http request option.
5174
+ * @throws {RequiredError}
5175
+ */
5176
+ authCliSessionRetrieve: async (sessionId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5177
+ // verify required parameter 'sessionId' is not null or undefined
5178
+ assertParamExists('authCliSessionRetrieve', 'sessionId', sessionId)
5179
+ const localVarPath = `/api/auth/cli-session/{session_id}/`
5180
+ .replace(`{${"session_id"}}`, encodeURIComponent(String(sessionId)));
5181
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5182
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5183
+ let baseOptions;
5184
+ if (configuration) {
5185
+ baseOptions = configuration.baseOptions;
5186
+ }
5187
+
5188
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
5189
+ const localVarHeaderParameter = {} as any;
5190
+ const localVarQueryParameter = {} as any;
5191
+
5192
+ localVarHeaderParameter['Accept'] = 'application/json';
5193
+
5194
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5195
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5196
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5197
+
5198
+ return {
5199
+ url: toPathString(localVarUrlObj),
5200
+ options: localVarRequestOptions,
5201
+ };
5202
+ },
5203
+ /**
5204
+ * Poll a CLI authentication session. Returns token when approved.
5205
+ * @param {string} sessionId
5206
+ * @param {*} [options] Override http request option.
5207
+ * @throws {RequiredError}
5208
+ */
5209
+ authCliSessionRetrieve2: async (sessionId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5210
+ // verify required parameter 'sessionId' is not null or undefined
5211
+ assertParamExists('authCliSessionRetrieve2', 'sessionId', sessionId)
5212
+ const localVarPath = `/api/v1/auth/cli-session/{session_id}/`
5213
+ .replace(`{${"session_id"}}`, encodeURIComponent(String(sessionId)));
5214
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5215
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5216
+ let baseOptions;
5217
+ if (configuration) {
5218
+ baseOptions = configuration.baseOptions;
5219
+ }
5220
+
5221
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
5222
+ const localVarHeaderParameter = {} as any;
5223
+ const localVarQueryParameter = {} as any;
5224
+
5225
+ localVarHeaderParameter['Accept'] = 'application/json';
5226
+
5227
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5228
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5229
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5230
+
5231
+ return {
5232
+ url: toPathString(localVarUrlObj),
5233
+ options: localVarRequestOptions,
5234
+ };
5235
+ },
5236
+ }
5237
+ };
5238
+
5239
+ /**
5240
+ * AuthApi - functional programming interface
5241
+ */
5242
+ export const AuthApiFp = function(configuration?: Configuration) {
5243
+ const localVarAxiosParamCreator = AuthApiAxiosParamCreator(configuration)
5244
+ return {
5245
+ /**
5246
+ * Create a CLI authentication session for browser-based approval
5247
+ * @param {*} [options] Override http request option.
5248
+ * @throws {RequiredError}
5249
+ */
5250
+ async authCliSessionCreate(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CLISessionCreateResponse>> {
5251
+ const localVarAxiosArgs = await localVarAxiosParamCreator.authCliSessionCreate(options);
5252
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5253
+ const localVarOperationServerBasePath = operationServerMap['AuthApi.authCliSessionCreate']?.[localVarOperationServerIndex]?.url;
5254
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5255
+ },
5256
+ /**
5257
+ * Create a CLI authentication session for browser-based approval
5258
+ * @param {*} [options] Override http request option.
5259
+ * @throws {RequiredError}
5260
+ */
5261
+ async authCliSessionCreate2(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CLISessionCreateResponse>> {
5262
+ const localVarAxiosArgs = await localVarAxiosParamCreator.authCliSessionCreate2(options);
5263
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5264
+ const localVarOperationServerBasePath = operationServerMap['AuthApi.authCliSessionCreate2']?.[localVarOperationServerIndex]?.url;
5265
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5266
+ },
5267
+ /**
5268
+ * Poll a CLI authentication session. Returns token when approved.
5269
+ * @param {string} sessionId
5270
+ * @param {*} [options] Override http request option.
5271
+ * @throws {RequiredError}
5272
+ */
5273
+ async authCliSessionRetrieve(sessionId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CLISessionPollResponse>> {
5274
+ const localVarAxiosArgs = await localVarAxiosParamCreator.authCliSessionRetrieve(sessionId, options);
5275
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5276
+ const localVarOperationServerBasePath = operationServerMap['AuthApi.authCliSessionRetrieve']?.[localVarOperationServerIndex]?.url;
5277
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5278
+ },
5279
+ /**
5280
+ * Poll a CLI authentication session. Returns token when approved.
5281
+ * @param {string} sessionId
5282
+ * @param {*} [options] Override http request option.
5283
+ * @throws {RequiredError}
5284
+ */
5285
+ async authCliSessionRetrieve2(sessionId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CLISessionPollResponse>> {
5286
+ const localVarAxiosArgs = await localVarAxiosParamCreator.authCliSessionRetrieve2(sessionId, options);
5287
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5288
+ const localVarOperationServerBasePath = operationServerMap['AuthApi.authCliSessionRetrieve2']?.[localVarOperationServerIndex]?.url;
5289
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5290
+ },
5291
+ }
5292
+ };
5293
+
5294
+ /**
5295
+ * AuthApi - factory interface
5296
+ */
5297
+ export const AuthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
5298
+ const localVarFp = AuthApiFp(configuration)
5299
+ return {
5300
+ /**
5301
+ * Create a CLI authentication session for browser-based approval
5302
+ * @param {*} [options] Override http request option.
5303
+ * @throws {RequiredError}
5304
+ */
5305
+ authCliSessionCreate(options?: RawAxiosRequestConfig): AxiosPromise<CLISessionCreateResponse> {
5306
+ return localVarFp.authCliSessionCreate(options).then((request) => request(axios, basePath));
5307
+ },
5308
+ /**
5309
+ * Create a CLI authentication session for browser-based approval
5310
+ * @param {*} [options] Override http request option.
5311
+ * @throws {RequiredError}
5312
+ */
5313
+ authCliSessionCreate2(options?: RawAxiosRequestConfig): AxiosPromise<CLISessionCreateResponse> {
5314
+ return localVarFp.authCliSessionCreate2(options).then((request) => request(axios, basePath));
5315
+ },
5316
+ /**
5317
+ * Poll a CLI authentication session. Returns token when approved.
5318
+ * @param {string} sessionId
5319
+ * @param {*} [options] Override http request option.
5320
+ * @throws {RequiredError}
5321
+ */
5322
+ authCliSessionRetrieve(sessionId: string, options?: RawAxiosRequestConfig): AxiosPromise<CLISessionPollResponse> {
5323
+ return localVarFp.authCliSessionRetrieve(sessionId, options).then((request) => request(axios, basePath));
5324
+ },
5325
+ /**
5326
+ * Poll a CLI authentication session. Returns token when approved.
5327
+ * @param {string} sessionId
5328
+ * @param {*} [options] Override http request option.
5329
+ * @throws {RequiredError}
5330
+ */
5331
+ authCliSessionRetrieve2(sessionId: string, options?: RawAxiosRequestConfig): AxiosPromise<CLISessionPollResponse> {
5332
+ return localVarFp.authCliSessionRetrieve2(sessionId, options).then((request) => request(axios, basePath));
5333
+ },
5334
+ };
5335
+ };
5336
+
5337
+ /**
5338
+ * AuthApi - object-oriented interface
5339
+ */
5340
+ export class AuthApi extends BaseAPI {
5341
+ /**
5342
+ * Create a CLI authentication session for browser-based approval
5343
+ * @param {*} [options] Override http request option.
5344
+ * @throws {RequiredError}
5345
+ */
5346
+ public authCliSessionCreate(options?: RawAxiosRequestConfig) {
5347
+ return AuthApiFp(this.configuration).authCliSessionCreate(options).then((request) => request(this.axios, this.basePath));
5348
+ }
5349
+
5350
+ /**
5351
+ * Create a CLI authentication session for browser-based approval
5352
+ * @param {*} [options] Override http request option.
5353
+ * @throws {RequiredError}
5354
+ */
5355
+ public authCliSessionCreate2(options?: RawAxiosRequestConfig) {
5356
+ return AuthApiFp(this.configuration).authCliSessionCreate2(options).then((request) => request(this.axios, this.basePath));
5357
+ }
5358
+
5359
+ /**
5360
+ * Poll a CLI authentication session. Returns token when approved.
5361
+ * @param {string} sessionId
5362
+ * @param {*} [options] Override http request option.
5363
+ * @throws {RequiredError}
5364
+ */
5365
+ public authCliSessionRetrieve(sessionId: string, options?: RawAxiosRequestConfig) {
5366
+ return AuthApiFp(this.configuration).authCliSessionRetrieve(sessionId, options).then((request) => request(this.axios, this.basePath));
5367
+ }
5368
+
5369
+ /**
5370
+ * Poll a CLI authentication session. Returns token when approved.
5371
+ * @param {string} sessionId
5372
+ * @param {*} [options] Override http request option.
5373
+ * @throws {RequiredError}
5374
+ */
5375
+ public authCliSessionRetrieve2(sessionId: string, options?: RawAxiosRequestConfig) {
5376
+ return AuthApiFp(this.configuration).authCliSessionRetrieve2(sessionId, options).then((request) => request(this.axios, this.basePath));
5377
+ }
5378
+ }
5379
+
5380
+
5381
+
5010
5382
  /**
5011
5383
  * BillingApi - axios parameter creator
5012
5384
  */
@@ -11478,10 +11850,11 @@ export const CloudApiAxiosParamCreator = function (configuration?: Configuration
11478
11850
  /**
11479
11851
  * Cloud servers
11480
11852
  * @param {number} id A unique integer value identifying this virtual machine.
11853
+ * @param {PatchedServerDetail} [patchedServerDetail]
11481
11854
  * @param {*} [options] Override http request option.
11482
11855
  * @throws {RequiredError}
11483
11856
  */
11484
- cloudServersPartialUpdate: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11857
+ cloudServersPartialUpdate: async (id: number, patchedServerDetail?: PatchedServerDetail, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11485
11858
  // verify required parameter 'id' is not null or undefined
11486
11859
  assertParamExists('cloudServersPartialUpdate', 'id', id)
11487
11860
  const localVarPath = `/api/cloud/servers/{id}/`
@@ -11502,10 +11875,13 @@ export const CloudApiAxiosParamCreator = function (configuration?: Configuration
11502
11875
  // authentication tokenAuth required
11503
11876
  await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
11504
11877
 
11878
+ localVarHeaderParameter['Content-Type'] = 'application/json';
11879
+ localVarHeaderParameter['Accept'] = 'application/json';
11505
11880
 
11506
11881
  setSearchParams(localVarUrlObj, localVarQueryParameter);
11507
11882
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11508
11883
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11884
+ localVarRequestOptions.data = serializeDataIfNeeded(patchedServerDetail, localVarRequestOptions, configuration)
11509
11885
 
11510
11886
  return {
11511
11887
  url: toPathString(localVarUrlObj),
@@ -11515,10 +11891,11 @@ export const CloudApiAxiosParamCreator = function (configuration?: Configuration
11515
11891
  /**
11516
11892
  * Cloud servers
11517
11893
  * @param {number} id A unique integer value identifying this virtual machine.
11894
+ * @param {PatchedServerDetail} [patchedServerDetail]
11518
11895
  * @param {*} [options] Override http request option.
11519
11896
  * @throws {RequiredError}
11520
11897
  */
11521
- cloudServersPartialUpdate2: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11898
+ cloudServersPartialUpdate2: async (id: number, patchedServerDetail?: PatchedServerDetail, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11522
11899
  // verify required parameter 'id' is not null or undefined
11523
11900
  assertParamExists('cloudServersPartialUpdate2', 'id', id)
11524
11901
  const localVarPath = `/api/v1/cloud/servers/{id}/`
@@ -11539,10 +11916,13 @@ export const CloudApiAxiosParamCreator = function (configuration?: Configuration
11539
11916
  // authentication tokenAuth required
11540
11917
  await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
11541
11918
 
11919
+ localVarHeaderParameter['Content-Type'] = 'application/json';
11920
+ localVarHeaderParameter['Accept'] = 'application/json';
11542
11921
 
11543
11922
  setSearchParams(localVarUrlObj, localVarQueryParameter);
11544
11923
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11545
11924
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11925
+ localVarRequestOptions.data = serializeDataIfNeeded(patchedServerDetail, localVarRequestOptions, configuration)
11546
11926
 
11547
11927
  return {
11548
11928
  url: toPathString(localVarUrlObj),
@@ -11970,6 +12350,7 @@ export const CloudApiAxiosParamCreator = function (configuration?: Configuration
11970
12350
  // authentication tokenAuth required
11971
12351
  await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
11972
12352
 
12353
+ localVarHeaderParameter['Accept'] = 'application/json';
11973
12354
 
11974
12355
  setSearchParams(localVarUrlObj, localVarQueryParameter);
11975
12356
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -12007,6 +12388,7 @@ export const CloudApiAxiosParamCreator = function (configuration?: Configuration
12007
12388
  // authentication tokenAuth required
12008
12389
  await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
12009
12390
 
12391
+ localVarHeaderParameter['Accept'] = 'application/json';
12010
12392
 
12011
12393
  setSearchParams(localVarUrlObj, localVarQueryParameter);
12012
12394
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -12458,10 +12840,11 @@ export const CloudApiAxiosParamCreator = function (configuration?: Configuration
12458
12840
  /**
12459
12841
  * Cloud servers
12460
12842
  * @param {number} id A unique integer value identifying this virtual machine.
12843
+ * @param {ServerDetail} [serverDetail]
12461
12844
  * @param {*} [options] Override http request option.
12462
12845
  * @throws {RequiredError}
12463
12846
  */
12464
- cloudServersUpdate: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12847
+ cloudServersUpdate: async (id: number, serverDetail?: ServerDetail, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12465
12848
  // verify required parameter 'id' is not null or undefined
12466
12849
  assertParamExists('cloudServersUpdate', 'id', id)
12467
12850
  const localVarPath = `/api/cloud/servers/{id}/`
@@ -12482,10 +12865,13 @@ export const CloudApiAxiosParamCreator = function (configuration?: Configuration
12482
12865
  // authentication tokenAuth required
12483
12866
  await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
12484
12867
 
12868
+ localVarHeaderParameter['Content-Type'] = 'application/json';
12869
+ localVarHeaderParameter['Accept'] = 'application/json';
12485
12870
 
12486
12871
  setSearchParams(localVarUrlObj, localVarQueryParameter);
12487
12872
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12488
12873
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12874
+ localVarRequestOptions.data = serializeDataIfNeeded(serverDetail, localVarRequestOptions, configuration)
12489
12875
 
12490
12876
  return {
12491
12877
  url: toPathString(localVarUrlObj),
@@ -12495,10 +12881,11 @@ export const CloudApiAxiosParamCreator = function (configuration?: Configuration
12495
12881
  /**
12496
12882
  * Cloud servers
12497
12883
  * @param {number} id A unique integer value identifying this virtual machine.
12884
+ * @param {ServerDetail} [serverDetail]
12498
12885
  * @param {*} [options] Override http request option.
12499
12886
  * @throws {RequiredError}
12500
12887
  */
12501
- cloudServersUpdate2: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12888
+ cloudServersUpdate2: async (id: number, serverDetail?: ServerDetail, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12502
12889
  // verify required parameter 'id' is not null or undefined
12503
12890
  assertParamExists('cloudServersUpdate2', 'id', id)
12504
12891
  const localVarPath = `/api/v1/cloud/servers/{id}/`
@@ -12519,10 +12906,13 @@ export const CloudApiAxiosParamCreator = function (configuration?: Configuration
12519
12906
  // authentication tokenAuth required
12520
12907
  await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
12521
12908
 
12909
+ localVarHeaderParameter['Content-Type'] = 'application/json';
12910
+ localVarHeaderParameter['Accept'] = 'application/json';
12522
12911
 
12523
12912
  setSearchParams(localVarUrlObj, localVarQueryParameter);
12524
12913
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12525
12914
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12915
+ localVarRequestOptions.data = serializeDataIfNeeded(serverDetail, localVarRequestOptions, configuration)
12526
12916
 
12527
12917
  return {
12528
12918
  url: toPathString(localVarUrlObj),
@@ -15063,11 +15453,12 @@ export const CloudApiFp = function(configuration?: Configuration) {
15063
15453
  /**
15064
15454
  * Cloud servers
15065
15455
  * @param {number} id A unique integer value identifying this virtual machine.
15456
+ * @param {PatchedServerDetail} [patchedServerDetail]
15066
15457
  * @param {*} [options] Override http request option.
15067
15458
  * @throws {RequiredError}
15068
15459
  */
15069
- async cloudServersPartialUpdate(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
15070
- const localVarAxiosArgs = await localVarAxiosParamCreator.cloudServersPartialUpdate(id, options);
15460
+ async cloudServersPartialUpdate(id: number, patchedServerDetail?: PatchedServerDetail, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerDetail>> {
15461
+ const localVarAxiosArgs = await localVarAxiosParamCreator.cloudServersPartialUpdate(id, patchedServerDetail, options);
15071
15462
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
15072
15463
  const localVarOperationServerBasePath = operationServerMap['CloudApi.cloudServersPartialUpdate']?.[localVarOperationServerIndex]?.url;
15073
15464
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -15075,11 +15466,12 @@ export const CloudApiFp = function(configuration?: Configuration) {
15075
15466
  /**
15076
15467
  * Cloud servers
15077
15468
  * @param {number} id A unique integer value identifying this virtual machine.
15469
+ * @param {PatchedServerDetail} [patchedServerDetail]
15078
15470
  * @param {*} [options] Override http request option.
15079
15471
  * @throws {RequiredError}
15080
15472
  */
15081
- async cloudServersPartialUpdate2(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
15082
- const localVarAxiosArgs = await localVarAxiosParamCreator.cloudServersPartialUpdate2(id, options);
15473
+ async cloudServersPartialUpdate2(id: number, patchedServerDetail?: PatchedServerDetail, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerDetail>> {
15474
+ const localVarAxiosArgs = await localVarAxiosParamCreator.cloudServersPartialUpdate2(id, patchedServerDetail, options);
15083
15475
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
15084
15476
  const localVarOperationServerBasePath = operationServerMap['CloudApi.cloudServersPartialUpdate2']?.[localVarOperationServerIndex]?.url;
15085
15477
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -15214,7 +15606,7 @@ export const CloudApiFp = function(configuration?: Configuration) {
15214
15606
  * @param {*} [options] Override http request option.
15215
15607
  * @throws {RequiredError}
15216
15608
  */
15217
- async cloudServersRetrieve(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
15609
+ async cloudServersRetrieve(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerDetail>> {
15218
15610
  const localVarAxiosArgs = await localVarAxiosParamCreator.cloudServersRetrieve(id, options);
15219
15611
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
15220
15612
  const localVarOperationServerBasePath = operationServerMap['CloudApi.cloudServersRetrieve']?.[localVarOperationServerIndex]?.url;
@@ -15226,7 +15618,7 @@ export const CloudApiFp = function(configuration?: Configuration) {
15226
15618
  * @param {*} [options] Override http request option.
15227
15619
  * @throws {RequiredError}
15228
15620
  */
15229
- async cloudServersRetrieve2(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
15621
+ async cloudServersRetrieve2(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerDetail>> {
15230
15622
  const localVarAxiosArgs = await localVarAxiosParamCreator.cloudServersRetrieve2(id, options);
15231
15623
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
15232
15624
  const localVarOperationServerBasePath = operationServerMap['CloudApi.cloudServersRetrieve2']?.[localVarOperationServerIndex]?.url;
@@ -15369,11 +15761,12 @@ export const CloudApiFp = function(configuration?: Configuration) {
15369
15761
  /**
15370
15762
  * Cloud servers
15371
15763
  * @param {number} id A unique integer value identifying this virtual machine.
15764
+ * @param {ServerDetail} [serverDetail]
15372
15765
  * @param {*} [options] Override http request option.
15373
15766
  * @throws {RequiredError}
15374
15767
  */
15375
- async cloudServersUpdate(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
15376
- const localVarAxiosArgs = await localVarAxiosParamCreator.cloudServersUpdate(id, options);
15768
+ async cloudServersUpdate(id: number, serverDetail?: ServerDetail, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerDetail>> {
15769
+ const localVarAxiosArgs = await localVarAxiosParamCreator.cloudServersUpdate(id, serverDetail, options);
15377
15770
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
15378
15771
  const localVarOperationServerBasePath = operationServerMap['CloudApi.cloudServersUpdate']?.[localVarOperationServerIndex]?.url;
15379
15772
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -15381,11 +15774,12 @@ export const CloudApiFp = function(configuration?: Configuration) {
15381
15774
  /**
15382
15775
  * Cloud servers
15383
15776
  * @param {number} id A unique integer value identifying this virtual machine.
15777
+ * @param {ServerDetail} [serverDetail]
15384
15778
  * @param {*} [options] Override http request option.
15385
15779
  * @throws {RequiredError}
15386
15780
  */
15387
- async cloudServersUpdate2(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
15388
- const localVarAxiosArgs = await localVarAxiosParamCreator.cloudServersUpdate2(id, options);
15781
+ async cloudServersUpdate2(id: number, serverDetail?: ServerDetail, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerDetail>> {
15782
+ const localVarAxiosArgs = await localVarAxiosParamCreator.cloudServersUpdate2(id, serverDetail, options);
15389
15783
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
15390
15784
  const localVarOperationServerBasePath = operationServerMap['CloudApi.cloudServersUpdate2']?.[localVarOperationServerIndex]?.url;
15391
15785
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -16734,20 +17128,22 @@ export const CloudApiFactory = function (configuration?: Configuration, basePath
16734
17128
  /**
16735
17129
  * Cloud servers
16736
17130
  * @param {number} id A unique integer value identifying this virtual machine.
17131
+ * @param {PatchedServerDetail} [patchedServerDetail]
16737
17132
  * @param {*} [options] Override http request option.
16738
17133
  * @throws {RequiredError}
16739
17134
  */
16740
- cloudServersPartialUpdate(id: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
16741
- return localVarFp.cloudServersPartialUpdate(id, options).then((request) => request(axios, basePath));
17135
+ cloudServersPartialUpdate(id: number, patchedServerDetail?: PatchedServerDetail, options?: RawAxiosRequestConfig): AxiosPromise<ServerDetail> {
17136
+ return localVarFp.cloudServersPartialUpdate(id, patchedServerDetail, options).then((request) => request(axios, basePath));
16742
17137
  },
16743
17138
  /**
16744
17139
  * Cloud servers
16745
17140
  * @param {number} id A unique integer value identifying this virtual machine.
17141
+ * @param {PatchedServerDetail} [patchedServerDetail]
16746
17142
  * @param {*} [options] Override http request option.
16747
17143
  * @throws {RequiredError}
16748
17144
  */
16749
- cloudServersPartialUpdate2(id: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
16750
- return localVarFp.cloudServersPartialUpdate2(id, options).then((request) => request(axios, basePath));
17145
+ cloudServersPartialUpdate2(id: number, patchedServerDetail?: PatchedServerDetail, options?: RawAxiosRequestConfig): AxiosPromise<ServerDetail> {
17146
+ return localVarFp.cloudServersPartialUpdate2(id, patchedServerDetail, options).then((request) => request(axios, basePath));
16751
17147
  },
16752
17148
  /**
16753
17149
  * Server power management
@@ -16849,7 +17245,7 @@ export const CloudApiFactory = function (configuration?: Configuration, basePath
16849
17245
  * @param {*} [options] Override http request option.
16850
17246
  * @throws {RequiredError}
16851
17247
  */
16852
- cloudServersRetrieve(id: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
17248
+ cloudServersRetrieve(id: number, options?: RawAxiosRequestConfig): AxiosPromise<ServerDetail> {
16853
17249
  return localVarFp.cloudServersRetrieve(id, options).then((request) => request(axios, basePath));
16854
17250
  },
16855
17251
  /**
@@ -16858,7 +17254,7 @@ export const CloudApiFactory = function (configuration?: Configuration, basePath
16858
17254
  * @param {*} [options] Override http request option.
16859
17255
  * @throws {RequiredError}
16860
17256
  */
16861
- cloudServersRetrieve2(id: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
17257
+ cloudServersRetrieve2(id: number, options?: RawAxiosRequestConfig): AxiosPromise<ServerDetail> {
16862
17258
  return localVarFp.cloudServersRetrieve2(id, options).then((request) => request(axios, basePath));
16863
17259
  },
16864
17260
  /**
@@ -16968,20 +17364,22 @@ export const CloudApiFactory = function (configuration?: Configuration, basePath
16968
17364
  /**
16969
17365
  * Cloud servers
16970
17366
  * @param {number} id A unique integer value identifying this virtual machine.
17367
+ * @param {ServerDetail} [serverDetail]
16971
17368
  * @param {*} [options] Override http request option.
16972
17369
  * @throws {RequiredError}
16973
17370
  */
16974
- cloudServersUpdate(id: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
16975
- return localVarFp.cloudServersUpdate(id, options).then((request) => request(axios, basePath));
17371
+ cloudServersUpdate(id: number, serverDetail?: ServerDetail, options?: RawAxiosRequestConfig): AxiosPromise<ServerDetail> {
17372
+ return localVarFp.cloudServersUpdate(id, serverDetail, options).then((request) => request(axios, basePath));
16976
17373
  },
16977
17374
  /**
16978
17375
  * Cloud servers
16979
17376
  * @param {number} id A unique integer value identifying this virtual machine.
17377
+ * @param {ServerDetail} [serverDetail]
16980
17378
  * @param {*} [options] Override http request option.
16981
17379
  * @throws {RequiredError}
16982
17380
  */
16983
- cloudServersUpdate2(id: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
16984
- return localVarFp.cloudServersUpdate2(id, options).then((request) => request(axios, basePath));
17381
+ cloudServersUpdate2(id: number, serverDetail?: ServerDetail, options?: RawAxiosRequestConfig): AxiosPromise<ServerDetail> {
17382
+ return localVarFp.cloudServersUpdate2(id, serverDetail, options).then((request) => request(axios, basePath));
16985
17383
  },
16986
17384
  /**
16987
17385
  * Get current resource usage for a server.
@@ -18327,21 +18725,23 @@ export class CloudApi extends BaseAPI {
18327
18725
  /**
18328
18726
  * Cloud servers
18329
18727
  * @param {number} id A unique integer value identifying this virtual machine.
18728
+ * @param {PatchedServerDetail} [patchedServerDetail]
18330
18729
  * @param {*} [options] Override http request option.
18331
18730
  * @throws {RequiredError}
18332
18731
  */
18333
- public cloudServersPartialUpdate(id: number, options?: RawAxiosRequestConfig) {
18334
- return CloudApiFp(this.configuration).cloudServersPartialUpdate(id, options).then((request) => request(this.axios, this.basePath));
18732
+ public cloudServersPartialUpdate(id: number, patchedServerDetail?: PatchedServerDetail, options?: RawAxiosRequestConfig) {
18733
+ return CloudApiFp(this.configuration).cloudServersPartialUpdate(id, patchedServerDetail, options).then((request) => request(this.axios, this.basePath));
18335
18734
  }
18336
18735
 
18337
18736
  /**
18338
18737
  * Cloud servers
18339
18738
  * @param {number} id A unique integer value identifying this virtual machine.
18739
+ * @param {PatchedServerDetail} [patchedServerDetail]
18340
18740
  * @param {*} [options] Override http request option.
18341
18741
  * @throws {RequiredError}
18342
18742
  */
18343
- public cloudServersPartialUpdate2(id: number, options?: RawAxiosRequestConfig) {
18344
- return CloudApiFp(this.configuration).cloudServersPartialUpdate2(id, options).then((request) => request(this.axios, this.basePath));
18743
+ public cloudServersPartialUpdate2(id: number, patchedServerDetail?: PatchedServerDetail, options?: RawAxiosRequestConfig) {
18744
+ return CloudApiFp(this.configuration).cloudServersPartialUpdate2(id, patchedServerDetail, options).then((request) => request(this.axios, this.basePath));
18345
18745
  }
18346
18746
 
18347
18747
  /**
@@ -18585,21 +18985,23 @@ export class CloudApi extends BaseAPI {
18585
18985
  /**
18586
18986
  * Cloud servers
18587
18987
  * @param {number} id A unique integer value identifying this virtual machine.
18988
+ * @param {ServerDetail} [serverDetail]
18588
18989
  * @param {*} [options] Override http request option.
18589
18990
  * @throws {RequiredError}
18590
18991
  */
18591
- public cloudServersUpdate(id: number, options?: RawAxiosRequestConfig) {
18592
- return CloudApiFp(this.configuration).cloudServersUpdate(id, options).then((request) => request(this.axios, this.basePath));
18992
+ public cloudServersUpdate(id: number, serverDetail?: ServerDetail, options?: RawAxiosRequestConfig) {
18993
+ return CloudApiFp(this.configuration).cloudServersUpdate(id, serverDetail, options).then((request) => request(this.axios, this.basePath));
18593
18994
  }
18594
18995
 
18595
18996
  /**
18596
18997
  * Cloud servers
18597
18998
  * @param {number} id A unique integer value identifying this virtual machine.
18999
+ * @param {ServerDetail} [serverDetail]
18598
19000
  * @param {*} [options] Override http request option.
18599
19001
  * @throws {RequiredError}
18600
19002
  */
18601
- public cloudServersUpdate2(id: number, options?: RawAxiosRequestConfig) {
18602
- return CloudApiFp(this.configuration).cloudServersUpdate2(id, options).then((request) => request(this.axios, this.basePath));
19003
+ public cloudServersUpdate2(id: number, serverDetail?: ServerDetail, options?: RawAxiosRequestConfig) {
19004
+ return CloudApiFp(this.configuration).cloudServersUpdate2(id, serverDetail, options).then((request) => request(this.axios, this.basePath));
18603
19005
  }
18604
19006
 
18605
19007
  /**
@@ -24394,6 +24796,82 @@ export const KubernetesApiAxiosParamCreator = function (configuration?: Configur
24394
24796
  options: localVarRequestOptions,
24395
24797
  };
24396
24798
  },
24799
+ /**
24800
+ * List cloud VMs eligible for connection to this cluster.
24801
+ * @param {string} id
24802
+ * @param {*} [options] Override http request option.
24803
+ * @throws {RequiredError}
24804
+ */
24805
+ kubernetesClustersEligibleVmsRetrieve: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
24806
+ // verify required parameter 'id' is not null or undefined
24807
+ assertParamExists('kubernetesClustersEligibleVmsRetrieve', 'id', id)
24808
+ const localVarPath = `/api/kubernetes/clusters/{id}/eligible-vms/`
24809
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
24810
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
24811
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
24812
+ let baseOptions;
24813
+ if (configuration) {
24814
+ baseOptions = configuration.baseOptions;
24815
+ }
24816
+
24817
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
24818
+ const localVarHeaderParameter = {} as any;
24819
+ const localVarQueryParameter = {} as any;
24820
+
24821
+ // authentication cookieAuth required
24822
+
24823
+ // authentication tokenAuth required
24824
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
24825
+
24826
+ localVarHeaderParameter['Accept'] = 'application/json';
24827
+
24828
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
24829
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
24830
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
24831
+
24832
+ return {
24833
+ url: toPathString(localVarUrlObj),
24834
+ options: localVarRequestOptions,
24835
+ };
24836
+ },
24837
+ /**
24838
+ * List cloud VMs eligible for connection to this cluster.
24839
+ * @param {string} id
24840
+ * @param {*} [options] Override http request option.
24841
+ * @throws {RequiredError}
24842
+ */
24843
+ kubernetesClustersEligibleVmsRetrieve2: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
24844
+ // verify required parameter 'id' is not null or undefined
24845
+ assertParamExists('kubernetesClustersEligibleVmsRetrieve2', 'id', id)
24846
+ const localVarPath = `/api/v1/kubernetes/clusters/{id}/eligible-vms/`
24847
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
24848
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
24849
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
24850
+ let baseOptions;
24851
+ if (configuration) {
24852
+ baseOptions = configuration.baseOptions;
24853
+ }
24854
+
24855
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
24856
+ const localVarHeaderParameter = {} as any;
24857
+ const localVarQueryParameter = {} as any;
24858
+
24859
+ // authentication cookieAuth required
24860
+
24861
+ // authentication tokenAuth required
24862
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
24863
+
24864
+ localVarHeaderParameter['Accept'] = 'application/json';
24865
+
24866
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
24867
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
24868
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
24869
+
24870
+ return {
24871
+ url: toPathString(localVarUrlObj),
24872
+ options: localVarRequestOptions,
24873
+ };
24874
+ },
24397
24875
  /**
24398
24876
  * Create new HTTPRoute
24399
24877
  * @param {number} clusterId
@@ -27918,6 +28396,82 @@ export const KubernetesApiAxiosParamCreator = function (configuration?: Configur
27918
28396
  options: localVarRequestOptions,
27919
28397
  };
27920
28398
  },
28399
+ /**
28400
+ * Toggle cloud VM access for this cluster.
28401
+ * @param {string} id
28402
+ * @param {*} [options] Override http request option.
28403
+ * @throws {RequiredError}
28404
+ */
28405
+ kubernetesClustersToggleCloudVmAccessCreate: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
28406
+ // verify required parameter 'id' is not null or undefined
28407
+ assertParamExists('kubernetesClustersToggleCloudVmAccessCreate', 'id', id)
28408
+ const localVarPath = `/api/kubernetes/clusters/{id}/toggle-cloud-vm-access/`
28409
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
28410
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
28411
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
28412
+ let baseOptions;
28413
+ if (configuration) {
28414
+ baseOptions = configuration.baseOptions;
28415
+ }
28416
+
28417
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
28418
+ const localVarHeaderParameter = {} as any;
28419
+ const localVarQueryParameter = {} as any;
28420
+
28421
+ // authentication cookieAuth required
28422
+
28423
+ // authentication tokenAuth required
28424
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
28425
+
28426
+ localVarHeaderParameter['Accept'] = 'application/json';
28427
+
28428
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
28429
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28430
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
28431
+
28432
+ return {
28433
+ url: toPathString(localVarUrlObj),
28434
+ options: localVarRequestOptions,
28435
+ };
28436
+ },
28437
+ /**
28438
+ * Toggle cloud VM access for this cluster.
28439
+ * @param {string} id
28440
+ * @param {*} [options] Override http request option.
28441
+ * @throws {RequiredError}
28442
+ */
28443
+ kubernetesClustersToggleCloudVmAccessCreate2: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
28444
+ // verify required parameter 'id' is not null or undefined
28445
+ assertParamExists('kubernetesClustersToggleCloudVmAccessCreate2', 'id', id)
28446
+ const localVarPath = `/api/v1/kubernetes/clusters/{id}/toggle-cloud-vm-access/`
28447
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
28448
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
28449
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
28450
+ let baseOptions;
28451
+ if (configuration) {
28452
+ baseOptions = configuration.baseOptions;
28453
+ }
28454
+
28455
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
28456
+ const localVarHeaderParameter = {} as any;
28457
+ const localVarQueryParameter = {} as any;
28458
+
28459
+ // authentication cookieAuth required
28460
+
28461
+ // authentication tokenAuth required
28462
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
28463
+
28464
+ localVarHeaderParameter['Accept'] = 'application/json';
28465
+
28466
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
28467
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28468
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
28469
+
28470
+ return {
28471
+ url: toPathString(localVarUrlObj),
28472
+ options: localVarRequestOptions,
28473
+ };
28474
+ },
27921
28475
  /**
27922
28476
  * Create new UDPRoute
27923
28477
  * @param {number} clusterId
@@ -28755,6 +29309,30 @@ export const KubernetesApiFp = function(configuration?: Configuration) {
28755
29309
  const localVarOperationServerBasePath = operationServerMap['KubernetesApi.kubernetesClustersDisconnectVmCreate2']?.[localVarOperationServerIndex]?.url;
28756
29310
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
28757
29311
  },
29312
+ /**
29313
+ * List cloud VMs eligible for connection to this cluster.
29314
+ * @param {string} id
29315
+ * @param {*} [options] Override http request option.
29316
+ * @throws {RequiredError}
29317
+ */
29318
+ async kubernetesClustersEligibleVmsRetrieve(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EligibleVMsResponse>> {
29319
+ const localVarAxiosArgs = await localVarAxiosParamCreator.kubernetesClustersEligibleVmsRetrieve(id, options);
29320
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
29321
+ const localVarOperationServerBasePath = operationServerMap['KubernetesApi.kubernetesClustersEligibleVmsRetrieve']?.[localVarOperationServerIndex]?.url;
29322
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
29323
+ },
29324
+ /**
29325
+ * List cloud VMs eligible for connection to this cluster.
29326
+ * @param {string} id
29327
+ * @param {*} [options] Override http request option.
29328
+ * @throws {RequiredError}
29329
+ */
29330
+ async kubernetesClustersEligibleVmsRetrieve2(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EligibleVMsResponse>> {
29331
+ const localVarAxiosArgs = await localVarAxiosParamCreator.kubernetesClustersEligibleVmsRetrieve2(id, options);
29332
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
29333
+ const localVarOperationServerBasePath = operationServerMap['KubernetesApi.kubernetesClustersEligibleVmsRetrieve2']?.[localVarOperationServerIndex]?.url;
29334
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
29335
+ },
28758
29336
  /**
28759
29337
  * Create new HTTPRoute
28760
29338
  * @param {number} clusterId
@@ -29853,6 +30431,30 @@ export const KubernetesApiFp = function(configuration?: Configuration) {
29853
30431
  const localVarOperationServerBasePath = operationServerMap['KubernetesApi.kubernetesClustersTcproutesUpdate2']?.[localVarOperationServerIndex]?.url;
29854
30432
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
29855
30433
  },
30434
+ /**
30435
+ * Toggle cloud VM access for this cluster.
30436
+ * @param {string} id
30437
+ * @param {*} [options] Override http request option.
30438
+ * @throws {RequiredError}
30439
+ */
30440
+ async kubernetesClustersToggleCloudVmAccessCreate(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ToggleCloudVMAccessResponse>> {
30441
+ const localVarAxiosArgs = await localVarAxiosParamCreator.kubernetesClustersToggleCloudVmAccessCreate(id, options);
30442
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
30443
+ const localVarOperationServerBasePath = operationServerMap['KubernetesApi.kubernetesClustersToggleCloudVmAccessCreate']?.[localVarOperationServerIndex]?.url;
30444
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
30445
+ },
30446
+ /**
30447
+ * Toggle cloud VM access for this cluster.
30448
+ * @param {string} id
30449
+ * @param {*} [options] Override http request option.
30450
+ * @throws {RequiredError}
30451
+ */
30452
+ async kubernetesClustersToggleCloudVmAccessCreate2(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ToggleCloudVMAccessResponse>> {
30453
+ const localVarAxiosArgs = await localVarAxiosParamCreator.kubernetesClustersToggleCloudVmAccessCreate2(id, options);
30454
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
30455
+ const localVarOperationServerBasePath = operationServerMap['KubernetesApi.kubernetesClustersToggleCloudVmAccessCreate2']?.[localVarOperationServerIndex]?.url;
30456
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
30457
+ },
29856
30458
  /**
29857
30459
  * Create new UDPRoute
29858
30460
  * @param {number} clusterId
@@ -30184,6 +30786,24 @@ export const KubernetesApiFactory = function (configuration?: Configuration, bas
30184
30786
  kubernetesClustersDisconnectVmCreate2(id: string, disconnectVMRequest: DisconnectVMRequest, options?: RawAxiosRequestConfig): AxiosPromise<DisconnectVMResponse> {
30185
30787
  return localVarFp.kubernetesClustersDisconnectVmCreate2(id, disconnectVMRequest, options).then((request) => request(axios, basePath));
30186
30788
  },
30789
+ /**
30790
+ * List cloud VMs eligible for connection to this cluster.
30791
+ * @param {string} id
30792
+ * @param {*} [options] Override http request option.
30793
+ * @throws {RequiredError}
30794
+ */
30795
+ kubernetesClustersEligibleVmsRetrieve(id: string, options?: RawAxiosRequestConfig): AxiosPromise<EligibleVMsResponse> {
30796
+ return localVarFp.kubernetesClustersEligibleVmsRetrieve(id, options).then((request) => request(axios, basePath));
30797
+ },
30798
+ /**
30799
+ * List cloud VMs eligible for connection to this cluster.
30800
+ * @param {string} id
30801
+ * @param {*} [options] Override http request option.
30802
+ * @throws {RequiredError}
30803
+ */
30804
+ kubernetesClustersEligibleVmsRetrieve2(id: string, options?: RawAxiosRequestConfig): AxiosPromise<EligibleVMsResponse> {
30805
+ return localVarFp.kubernetesClustersEligibleVmsRetrieve2(id, options).then((request) => request(axios, basePath));
30806
+ },
30187
30807
  /**
30188
30808
  * Create new HTTPRoute
30189
30809
  * @param {number} clusterId
@@ -31030,6 +31650,24 @@ export const KubernetesApiFactory = function (configuration?: Configuration, bas
31030
31650
  kubernetesClustersTcproutesUpdate2(clusterId: number, id: string, tCPRoute: TCPRoute, options?: RawAxiosRequestConfig): AxiosPromise<TCPRoute> {
31031
31651
  return localVarFp.kubernetesClustersTcproutesUpdate2(clusterId, id, tCPRoute, options).then((request) => request(axios, basePath));
31032
31652
  },
31653
+ /**
31654
+ * Toggle cloud VM access for this cluster.
31655
+ * @param {string} id
31656
+ * @param {*} [options] Override http request option.
31657
+ * @throws {RequiredError}
31658
+ */
31659
+ kubernetesClustersToggleCloudVmAccessCreate(id: string, options?: RawAxiosRequestConfig): AxiosPromise<ToggleCloudVMAccessResponse> {
31660
+ return localVarFp.kubernetesClustersToggleCloudVmAccessCreate(id, options).then((request) => request(axios, basePath));
31661
+ },
31662
+ /**
31663
+ * Toggle cloud VM access for this cluster.
31664
+ * @param {string} id
31665
+ * @param {*} [options] Override http request option.
31666
+ * @throws {RequiredError}
31667
+ */
31668
+ kubernetesClustersToggleCloudVmAccessCreate2(id: string, options?: RawAxiosRequestConfig): AxiosPromise<ToggleCloudVMAccessResponse> {
31669
+ return localVarFp.kubernetesClustersToggleCloudVmAccessCreate2(id, options).then((request) => request(axios, basePath));
31670
+ },
31033
31671
  /**
31034
31672
  * Create new UDPRoute
31035
31673
  * @param {number} clusterId
@@ -31323,6 +31961,26 @@ export class KubernetesApi extends BaseAPI {
31323
31961
  return KubernetesApiFp(this.configuration).kubernetesClustersDisconnectVmCreate2(id, disconnectVMRequest, options).then((request) => request(this.axios, this.basePath));
31324
31962
  }
31325
31963
 
31964
+ /**
31965
+ * List cloud VMs eligible for connection to this cluster.
31966
+ * @param {string} id
31967
+ * @param {*} [options] Override http request option.
31968
+ * @throws {RequiredError}
31969
+ */
31970
+ public kubernetesClustersEligibleVmsRetrieve(id: string, options?: RawAxiosRequestConfig) {
31971
+ return KubernetesApiFp(this.configuration).kubernetesClustersEligibleVmsRetrieve(id, options).then((request) => request(this.axios, this.basePath));
31972
+ }
31973
+
31974
+ /**
31975
+ * List cloud VMs eligible for connection to this cluster.
31976
+ * @param {string} id
31977
+ * @param {*} [options] Override http request option.
31978
+ * @throws {RequiredError}
31979
+ */
31980
+ public kubernetesClustersEligibleVmsRetrieve2(id: string, options?: RawAxiosRequestConfig) {
31981
+ return KubernetesApiFp(this.configuration).kubernetesClustersEligibleVmsRetrieve2(id, options).then((request) => request(this.axios, this.basePath));
31982
+ }
31983
+
31326
31984
  /**
31327
31985
  * Create new HTTPRoute
31328
31986
  * @param {number} clusterId
@@ -32253,6 +32911,26 @@ export class KubernetesApi extends BaseAPI {
32253
32911
  return KubernetesApiFp(this.configuration).kubernetesClustersTcproutesUpdate2(clusterId, id, tCPRoute, options).then((request) => request(this.axios, this.basePath));
32254
32912
  }
32255
32913
 
32914
+ /**
32915
+ * Toggle cloud VM access for this cluster.
32916
+ * @param {string} id
32917
+ * @param {*} [options] Override http request option.
32918
+ * @throws {RequiredError}
32919
+ */
32920
+ public kubernetesClustersToggleCloudVmAccessCreate(id: string, options?: RawAxiosRequestConfig) {
32921
+ return KubernetesApiFp(this.configuration).kubernetesClustersToggleCloudVmAccessCreate(id, options).then((request) => request(this.axios, this.basePath));
32922
+ }
32923
+
32924
+ /**
32925
+ * Toggle cloud VM access for this cluster.
32926
+ * @param {string} id
32927
+ * @param {*} [options] Override http request option.
32928
+ * @throws {RequiredError}
32929
+ */
32930
+ public kubernetesClustersToggleCloudVmAccessCreate2(id: string, options?: RawAxiosRequestConfig) {
32931
+ return KubernetesApiFp(this.configuration).kubernetesClustersToggleCloudVmAccessCreate2(id, options).then((request) => request(this.axios, this.basePath));
32932
+ }
32933
+
32256
32934
  /**
32257
32935
  * Create new UDPRoute
32258
32936
  * @param {number} clusterId