hostinger-api-sdk 2.6.3 → 2.7.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/README.md CHANGED
@@ -1,9 +1,9 @@
1
- ## @hostinger/sdk@2.6.3
1
+ ## @hostinger/sdk@2.7.0
2
2
 
3
3
  For more information, please visit [https://developers.hostinger.com](https://developers.hostinger.com).
4
4
 
5
5
  ### Usage
6
6
 
7
7
  ```
8
- npm install @hostinger/sdk@2.6.3 --save
8
+ npm install @hostinger/sdk@2.7.0 --save
9
9
  ```
package/api.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 2.6.2
6
+ * API Version: 2.7.0
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -6888,6 +6888,215 @@ export interface EcommerceV1VariantVariantResponseResource {
6888
6888
  */
6889
6889
  'data': EcommerceV1VariantVariantResource;
6890
6890
  }
6891
+ /**
6892
+ *
6893
+ * @export
6894
+ * @interface GPUV1OsTemplateOsTemplateResource
6895
+ */
6896
+ export interface GPUV1OsTemplateOsTemplateResource {
6897
+ /**
6898
+ * OS template ID
6899
+ * @type {number}
6900
+ * @memberof GPUV1OsTemplateOsTemplateResource
6901
+ */
6902
+ 'id': number;
6903
+ /**
6904
+ *
6905
+ * @type {string}
6906
+ * @memberof GPUV1OsTemplateOsTemplateResource
6907
+ */
6908
+ 'name': string;
6909
+ /**
6910
+ * Knowledge base article about the template
6911
+ * @type {string}
6912
+ * @memberof GPUV1OsTemplateOsTemplateResource
6913
+ */
6914
+ 'kb_url': string;
6915
+ /**
6916
+ * Icon image ID
6917
+ * @type {string}
6918
+ * @memberof GPUV1OsTemplateOsTemplateResource
6919
+ */
6920
+ 'image': string | null;
6921
+ /**
6922
+ * Dark theme icon image ID
6923
+ * @type {string}
6924
+ * @memberof GPUV1OsTemplateOsTemplateResource
6925
+ */
6926
+ 'dark_image_id': string | null;
6927
+ /**
6928
+ * Light theme icon image ID
6929
+ * @type {string}
6930
+ * @memberof GPUV1OsTemplateOsTemplateResource
6931
+ */
6932
+ 'light_image_id': string | null;
6933
+ }
6934
+ /**
6935
+ *
6936
+ * @export
6937
+ * @interface GPUV1PoolPoolGroupResource
6938
+ */
6939
+ export interface GPUV1PoolPoolGroupResource {
6940
+ /**
6941
+ * GPU pool group ID
6942
+ * @type {number}
6943
+ * @memberof GPUV1PoolPoolGroupResource
6944
+ */
6945
+ 'id': number;
6946
+ /**
6947
+ *
6948
+ * @type {string}
6949
+ * @memberof GPUV1PoolPoolGroupResource
6950
+ */
6951
+ 'name': string;
6952
+ /**
6953
+ * Total VRAM in bytes
6954
+ * @type {number}
6955
+ * @memberof GPUV1PoolPoolGroupResource
6956
+ */
6957
+ 'vram': number | null;
6958
+ /**
6959
+ * Whether the group has any available pools
6960
+ * @type {boolean}
6961
+ * @memberof GPUV1PoolPoolGroupResource
6962
+ */
6963
+ 'is_available': boolean;
6964
+ /**
6965
+ * Lowest hourly price of the group instance types, in the requested currency
6966
+ * @type {number}
6967
+ * @memberof GPUV1PoolPoolGroupResource
6968
+ */
6969
+ 'min_price_per_hour': number | null;
6970
+ /**
6971
+ * Array of [`GPU.V1.Pool.PoolResource`](#model/gpuv1poolpoolresource)
6972
+ * @type {Array<GPUV1PoolPoolResource>}
6973
+ * @memberof GPUV1PoolPoolGroupResource
6974
+ */
6975
+ 'pools': Array<GPUV1PoolPoolResource>;
6976
+ }
6977
+ /**
6978
+ *
6979
+ * @export
6980
+ * @interface GPUV1PoolPoolInstanceResource
6981
+ */
6982
+ export interface GPUV1PoolPoolInstanceResource {
6983
+ /**
6984
+ * GPU pool instance type ID
6985
+ * @type {number}
6986
+ * @memberof GPUV1PoolPoolInstanceResource
6987
+ */
6988
+ 'id': number;
6989
+ /**
6990
+ *
6991
+ * @type {string}
6992
+ * @memberof GPUV1PoolPoolInstanceResource
6993
+ */
6994
+ 'name': string;
6995
+ /**
6996
+ *
6997
+ * @type {string}
6998
+ * @memberof GPUV1PoolPoolInstanceResource
6999
+ */
7000
+ 'description': string | null;
7001
+ /**
7002
+ * Number of CPU cores
7003
+ * @type {number}
7004
+ * @memberof GPUV1PoolPoolInstanceResource
7005
+ */
7006
+ 'cpu_cores': number;
7007
+ /**
7008
+ * Total RAM in bytes
7009
+ * @type {number}
7010
+ * @memberof GPUV1PoolPoolInstanceResource
7011
+ */
7012
+ 'ram': number;
7013
+ /**
7014
+ * Total storage in bytes
7015
+ * @type {number}
7016
+ * @memberof GPUV1PoolPoolInstanceResource
7017
+ */
7018
+ 'storage': number;
7019
+ /**
7020
+ * Hourly price in cents (USD)
7021
+ * @type {number}
7022
+ * @memberof GPUV1PoolPoolInstanceResource
7023
+ */
7024
+ 'price_per_hour': number;
7025
+ }
7026
+ /**
7027
+ *
7028
+ * @export
7029
+ * @interface GPUV1PoolPoolResource
7030
+ */
7031
+ export interface GPUV1PoolPoolResource {
7032
+ /**
7033
+ * GPU pool ID
7034
+ * @type {number}
7035
+ * @memberof GPUV1PoolPoolResource
7036
+ */
7037
+ 'id': number;
7038
+ /**
7039
+ *
7040
+ * @type {string}
7041
+ * @memberof GPUV1PoolPoolResource
7042
+ */
7043
+ 'name': string;
7044
+ /**
7045
+ * Number of GPUs
7046
+ * @type {number}
7047
+ * @memberof GPUV1PoolPoolResource
7048
+ */
7049
+ 'gpus': number;
7050
+ /**
7051
+ * Total VRAM in bytes
7052
+ * @type {number}
7053
+ * @memberof GPUV1PoolPoolResource
7054
+ */
7055
+ 'vram': number;
7056
+ /**
7057
+ * Whether the pool has available instances for booking
7058
+ * @type {boolean}
7059
+ * @memberof GPUV1PoolPoolResource
7060
+ */
7061
+ 'is_available': boolean;
7062
+ /**
7063
+ *
7064
+ * @type {GPUV1RegionRegionResource}
7065
+ * @memberof GPUV1PoolPoolResource
7066
+ */
7067
+ 'region': GPUV1RegionRegionResource | null;
7068
+ }
7069
+ /**
7070
+ *
7071
+ * @export
7072
+ * @interface GPUV1RegionRegionResource
7073
+ */
7074
+ export interface GPUV1RegionRegionResource {
7075
+ /**
7076
+ * Region ID
7077
+ * @type {number}
7078
+ * @memberof GPUV1RegionRegionResource
7079
+ */
7080
+ 'id': number;
7081
+ /**
7082
+ * Region name
7083
+ * @type {string}
7084
+ * @memberof GPUV1RegionRegionResource
7085
+ */
7086
+ 'name': string | null;
7087
+ /**
7088
+ *
7089
+ * @type {string}
7090
+ * @memberof GPUV1RegionRegionResource
7091
+ */
7092
+ 'city': string;
7093
+ /**
7094
+ * ISO 3166-1 alpha-2 country code
7095
+ * @type {string}
7096
+ * @memberof GPUV1RegionRegionResource
7097
+ */
7098
+ 'country': string;
7099
+ }
6891
7100
  /**
6892
7101
  *
6893
7102
  * @export
@@ -30865,6 +31074,389 @@ export class EcommerceStoresApi extends BaseAPI {
30865
31074
 
30866
31075
 
30867
31076
 
31077
+ /**
31078
+ * GPUCatalogApi - axios parameter creator
31079
+ * @export
31080
+ */
31081
+ export const GPUCatalogApiAxiosParamCreator = function (configuration?: Configuration) {
31082
+ return {
31083
+ /**
31084
+ * Retrieve GPU pool groups, ordered by name. Each group bundles the pools of one GPU model and lists its currently available pools, whether any of them is available and the lowest hourly price among its instance types. The price is returned even when the group is out of stock. Use this endpoint to show which GPU models can be ordered and from what price.
31085
+ * @summary Get pool groups
31086
+ * @param {GetPoolGroupsV1CurrencyEnum} [currency] Currency of the returned prices, &#x60;USD&#x60; by default
31087
+ * @param {*} [options] Override http request option.
31088
+ * @throws {RequiredError}
31089
+ */
31090
+ getPoolGroupsV1: async (currency?: GetPoolGroupsV1CurrencyEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
31091
+ const localVarPath = `/api/gpu/v1/pools/groups`;
31092
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
31093
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
31094
+ let baseOptions;
31095
+ if (configuration) {
31096
+ baseOptions = configuration.baseOptions;
31097
+ }
31098
+
31099
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
31100
+ const localVarHeaderParameter = {} as any;
31101
+ const localVarQueryParameter = {} as any;
31102
+
31103
+ // authentication apiToken required
31104
+ // http bearer authentication required
31105
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
31106
+
31107
+ if (currency !== undefined) {
31108
+ localVarQueryParameter['currency'] = currency;
31109
+ }
31110
+
31111
+
31112
+
31113
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
31114
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
31115
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
31116
+
31117
+ return {
31118
+ url: toPathString(localVarUrlObj),
31119
+ options: localVarRequestOptions,
31120
+ };
31121
+ },
31122
+ /**
31123
+ * Retrieve the instance types offered by a specified GPU pool, ordered by CPU core count. Each instance type describes its CPU, memory and storage, and its hourly price. Only instance types that can currently be ordered are returned. Use this endpoint to choose the `pool_instance_id` for a new GPU instance.
31124
+ * @summary Get pool instance types
31125
+ * @param {number} poolId GPU pool ID
31126
+ * @param {*} [options] Override http request option.
31127
+ * @throws {RequiredError}
31128
+ */
31129
+ getPoolInstanceTypesV1: async (poolId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
31130
+ // verify required parameter 'poolId' is not null or undefined
31131
+ assertParamExists('getPoolInstanceTypesV1', 'poolId', poolId)
31132
+ const localVarPath = `/api/gpu/v1/pools/{poolId}/instances`
31133
+ .replace(`{${"poolId"}}`, encodePathParam('poolId', poolId));
31134
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
31135
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
31136
+ let baseOptions;
31137
+ if (configuration) {
31138
+ baseOptions = configuration.baseOptions;
31139
+ }
31140
+
31141
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
31142
+ const localVarHeaderParameter = {} as any;
31143
+ const localVarQueryParameter = {} as any;
31144
+
31145
+ // authentication apiToken required
31146
+ // http bearer authentication required
31147
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
31148
+
31149
+
31150
+
31151
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
31152
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
31153
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
31154
+
31155
+ return {
31156
+ url: toPathString(localVarUrlObj),
31157
+ options: localVarRequestOptions,
31158
+ };
31159
+ },
31160
+ /**
31161
+ * Retrieve all available GPU pools, ordered by name. A pool serves GPU accelerators of one model from a single region. Use this endpoint to choose a pool before listing its instance types.
31162
+ * @summary Get pool list
31163
+ * @param {*} [options] Override http request option.
31164
+ * @throws {RequiredError}
31165
+ */
31166
+ getPoolListV1: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
31167
+ const localVarPath = `/api/gpu/v1/pools`;
31168
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
31169
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
31170
+ let baseOptions;
31171
+ if (configuration) {
31172
+ baseOptions = configuration.baseOptions;
31173
+ }
31174
+
31175
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
31176
+ const localVarHeaderParameter = {} as any;
31177
+ const localVarQueryParameter = {} as any;
31178
+
31179
+ // authentication apiToken required
31180
+ // http bearer authentication required
31181
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
31182
+
31183
+
31184
+
31185
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
31186
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
31187
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
31188
+
31189
+ return {
31190
+ url: toPathString(localVarUrlObj),
31191
+ options: localVarRequestOptions,
31192
+ };
31193
+ },
31194
+ /**
31195
+ * Retrieve the OS templates that can be installed on a specified GPU pool instance type. Use this endpoint to choose the `os_template_id` for a new GPU instance.
31196
+ * @summary Get pool OS templates
31197
+ * @param {number} poolId GPU pool ID
31198
+ * @param {number} poolInstanceId GPU pool instance type ID
31199
+ * @param {*} [options] Override http request option.
31200
+ * @throws {RequiredError}
31201
+ */
31202
+ getPoolOSTemplatesV1: async (poolId: number, poolInstanceId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
31203
+ // verify required parameter 'poolId' is not null or undefined
31204
+ assertParamExists('getPoolOSTemplatesV1', 'poolId', poolId)
31205
+ // verify required parameter 'poolInstanceId' is not null or undefined
31206
+ assertParamExists('getPoolOSTemplatesV1', 'poolInstanceId', poolInstanceId)
31207
+ const localVarPath = `/api/gpu/v1/pools/{poolId}/instances/{poolInstanceId}/os-templates`
31208
+ .replace(`{${"poolId"}}`, encodePathParam('poolId', poolId))
31209
+ .replace(`{${"poolInstanceId"}}`, encodePathParam('poolInstanceId', poolInstanceId));
31210
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
31211
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
31212
+ let baseOptions;
31213
+ if (configuration) {
31214
+ baseOptions = configuration.baseOptions;
31215
+ }
31216
+
31217
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
31218
+ const localVarHeaderParameter = {} as any;
31219
+ const localVarQueryParameter = {} as any;
31220
+
31221
+ // authentication apiToken required
31222
+ // http bearer authentication required
31223
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
31224
+
31225
+
31226
+
31227
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
31228
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
31229
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
31230
+
31231
+ return {
31232
+ url: toPathString(localVarUrlObj),
31233
+ options: localVarRequestOptions,
31234
+ };
31235
+ },
31236
+ }
31237
+ };
31238
+
31239
+ /**
31240
+ * GPUCatalogApi - functional programming interface
31241
+ * @export
31242
+ */
31243
+ export const GPUCatalogApiFp = function(configuration?: Configuration) {
31244
+ const localVarAxiosParamCreator = GPUCatalogApiAxiosParamCreator(configuration)
31245
+ return {
31246
+ /**
31247
+ * Retrieve GPU pool groups, ordered by name. Each group bundles the pools of one GPU model and lists its currently available pools, whether any of them is available and the lowest hourly price among its instance types. The price is returned even when the group is out of stock. Use this endpoint to show which GPU models can be ordered and from what price.
31248
+ * @summary Get pool groups
31249
+ * @param {GetPoolGroupsV1CurrencyEnum} [currency] Currency of the returned prices, &#x60;USD&#x60; by default
31250
+ * @param {*} [options] Override http request option.
31251
+ * @throws {RequiredError}
31252
+ */
31253
+ async getPoolGroupsV1(currency?: GetPoolGroupsV1CurrencyEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<GPUV1PoolPoolGroupResource>>> {
31254
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPoolGroupsV1(currency, options);
31255
+ const localVarOperationServerBasePath = operationServerMap['GPUCatalogApi.getPoolGroupsV1']?.[0]?.url;
31256
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
31257
+ },
31258
+ /**
31259
+ * Retrieve the instance types offered by a specified GPU pool, ordered by CPU core count. Each instance type describes its CPU, memory and storage, and its hourly price. Only instance types that can currently be ordered are returned. Use this endpoint to choose the `pool_instance_id` for a new GPU instance.
31260
+ * @summary Get pool instance types
31261
+ * @param {number} poolId GPU pool ID
31262
+ * @param {*} [options] Override http request option.
31263
+ * @throws {RequiredError}
31264
+ */
31265
+ async getPoolInstanceTypesV1(poolId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<GPUV1PoolPoolInstanceResource>>> {
31266
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPoolInstanceTypesV1(poolId, options);
31267
+ const localVarOperationServerBasePath = operationServerMap['GPUCatalogApi.getPoolInstanceTypesV1']?.[0]?.url;
31268
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
31269
+ },
31270
+ /**
31271
+ * Retrieve all available GPU pools, ordered by name. A pool serves GPU accelerators of one model from a single region. Use this endpoint to choose a pool before listing its instance types.
31272
+ * @summary Get pool list
31273
+ * @param {*} [options] Override http request option.
31274
+ * @throws {RequiredError}
31275
+ */
31276
+ async getPoolListV1(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<GPUV1PoolPoolResource>>> {
31277
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPoolListV1(options);
31278
+ const localVarOperationServerBasePath = operationServerMap['GPUCatalogApi.getPoolListV1']?.[0]?.url;
31279
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
31280
+ },
31281
+ /**
31282
+ * Retrieve the OS templates that can be installed on a specified GPU pool instance type. Use this endpoint to choose the `os_template_id` for a new GPU instance.
31283
+ * @summary Get pool OS templates
31284
+ * @param {number} poolId GPU pool ID
31285
+ * @param {number} poolInstanceId GPU pool instance type ID
31286
+ * @param {*} [options] Override http request option.
31287
+ * @throws {RequiredError}
31288
+ */
31289
+ async getPoolOSTemplatesV1(poolId: number, poolInstanceId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<GPUV1OsTemplateOsTemplateResource>>> {
31290
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPoolOSTemplatesV1(poolId, poolInstanceId, options);
31291
+ const localVarOperationServerBasePath = operationServerMap['GPUCatalogApi.getPoolOSTemplatesV1']?.[0]?.url;
31292
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
31293
+ },
31294
+ }
31295
+ };
31296
+
31297
+ /**
31298
+ * GPUCatalogApi - factory interface
31299
+ * @export
31300
+ */
31301
+ export const GPUCatalogApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
31302
+ const localVarFp = GPUCatalogApiFp(configuration)
31303
+ return {
31304
+ /**
31305
+ * Retrieve GPU pool groups, ordered by name. Each group bundles the pools of one GPU model and lists its currently available pools, whether any of them is available and the lowest hourly price among its instance types. The price is returned even when the group is out of stock. Use this endpoint to show which GPU models can be ordered and from what price.
31306
+ * @summary Get pool groups
31307
+ * @param {GetPoolGroupsV1CurrencyEnum} [currency] Currency of the returned prices, &#x60;USD&#x60; by default
31308
+ * @param {*} [options] Override http request option.
31309
+ * @throws {RequiredError}
31310
+ */
31311
+ getPoolGroupsV1(currency?: GetPoolGroupsV1CurrencyEnum, options?: RawAxiosRequestConfig): AxiosPromise<Array<GPUV1PoolPoolGroupResource>> {
31312
+ return localVarFp.getPoolGroupsV1(currency, options).then((request) => request(axios, basePath));
31313
+ },
31314
+ /**
31315
+ * Retrieve the instance types offered by a specified GPU pool, ordered by CPU core count. Each instance type describes its CPU, memory and storage, and its hourly price. Only instance types that can currently be ordered are returned. Use this endpoint to choose the `pool_instance_id` for a new GPU instance.
31316
+ * @summary Get pool instance types
31317
+ * @param {number} poolId GPU pool ID
31318
+ * @param {*} [options] Override http request option.
31319
+ * @throws {RequiredError}
31320
+ */
31321
+ getPoolInstanceTypesV1(poolId: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<GPUV1PoolPoolInstanceResource>> {
31322
+ return localVarFp.getPoolInstanceTypesV1(poolId, options).then((request) => request(axios, basePath));
31323
+ },
31324
+ /**
31325
+ * Retrieve all available GPU pools, ordered by name. A pool serves GPU accelerators of one model from a single region. Use this endpoint to choose a pool before listing its instance types.
31326
+ * @summary Get pool list
31327
+ * @param {*} [options] Override http request option.
31328
+ * @throws {RequiredError}
31329
+ */
31330
+ getPoolListV1(options?: RawAxiosRequestConfig): AxiosPromise<Array<GPUV1PoolPoolResource>> {
31331
+ return localVarFp.getPoolListV1(options).then((request) => request(axios, basePath));
31332
+ },
31333
+ /**
31334
+ * Retrieve the OS templates that can be installed on a specified GPU pool instance type. Use this endpoint to choose the `os_template_id` for a new GPU instance.
31335
+ * @summary Get pool OS templates
31336
+ * @param {number} poolId GPU pool ID
31337
+ * @param {number} poolInstanceId GPU pool instance type ID
31338
+ * @param {*} [options] Override http request option.
31339
+ * @throws {RequiredError}
31340
+ */
31341
+ getPoolOSTemplatesV1(poolId: number, poolInstanceId: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<GPUV1OsTemplateOsTemplateResource>> {
31342
+ return localVarFp.getPoolOSTemplatesV1(poolId, poolInstanceId, options).then((request) => request(axios, basePath));
31343
+ },
31344
+ };
31345
+ };
31346
+
31347
+ /**
31348
+ * GPUCatalogApi - object-oriented interface
31349
+ * @export
31350
+ * @class GPUCatalogApi
31351
+ * @extends {BaseAPI}
31352
+ */
31353
+ export class GPUCatalogApi extends BaseAPI {
31354
+ /**
31355
+ * Retrieve GPU pool groups, ordered by name. Each group bundles the pools of one GPU model and lists its currently available pools, whether any of them is available and the lowest hourly price among its instance types. The price is returned even when the group is out of stock. Use this endpoint to show which GPU models can be ordered and from what price.
31356
+ * @summary Get pool groups
31357
+ * @param {GetPoolGroupsV1CurrencyEnum} [currency] Currency of the returned prices, &#x60;USD&#x60; by default
31358
+ * @param {*} [options] Override http request option.
31359
+ * @throws {RequiredError}
31360
+ * @memberof GPUCatalogApi
31361
+ */
31362
+ public getPoolGroupsV1(currency?: GetPoolGroupsV1CurrencyEnum, options?: RawAxiosRequestConfig) {
31363
+ return GPUCatalogApiFp(this.configuration).getPoolGroupsV1(currency, options).then((request) => request(this.axios, this.basePath));
31364
+ }
31365
+
31366
+ /**
31367
+ * Retrieve the instance types offered by a specified GPU pool, ordered by CPU core count. Each instance type describes its CPU, memory and storage, and its hourly price. Only instance types that can currently be ordered are returned. Use this endpoint to choose the `pool_instance_id` for a new GPU instance.
31368
+ * @summary Get pool instance types
31369
+ * @param {number} poolId GPU pool ID
31370
+ * @param {*} [options] Override http request option.
31371
+ * @throws {RequiredError}
31372
+ * @memberof GPUCatalogApi
31373
+ */
31374
+ public getPoolInstanceTypesV1(poolId: number, options?: RawAxiosRequestConfig) {
31375
+ return GPUCatalogApiFp(this.configuration).getPoolInstanceTypesV1(poolId, options).then((request) => request(this.axios, this.basePath));
31376
+ }
31377
+
31378
+ /**
31379
+ * Retrieve all available GPU pools, ordered by name. A pool serves GPU accelerators of one model from a single region. Use this endpoint to choose a pool before listing its instance types.
31380
+ * @summary Get pool list
31381
+ * @param {*} [options] Override http request option.
31382
+ * @throws {RequiredError}
31383
+ * @memberof GPUCatalogApi
31384
+ */
31385
+ public getPoolListV1(options?: RawAxiosRequestConfig) {
31386
+ return GPUCatalogApiFp(this.configuration).getPoolListV1(options).then((request) => request(this.axios, this.basePath));
31387
+ }
31388
+
31389
+ /**
31390
+ * Retrieve the OS templates that can be installed on a specified GPU pool instance type. Use this endpoint to choose the `os_template_id` for a new GPU instance.
31391
+ * @summary Get pool OS templates
31392
+ * @param {number} poolId GPU pool ID
31393
+ * @param {number} poolInstanceId GPU pool instance type ID
31394
+ * @param {*} [options] Override http request option.
31395
+ * @throws {RequiredError}
31396
+ * @memberof GPUCatalogApi
31397
+ */
31398
+ public getPoolOSTemplatesV1(poolId: number, poolInstanceId: number, options?: RawAxiosRequestConfig) {
31399
+ return GPUCatalogApiFp(this.configuration).getPoolOSTemplatesV1(poolId, poolInstanceId, options).then((request) => request(this.axios, this.basePath));
31400
+ }
31401
+ }
31402
+
31403
+ /**
31404
+ * @export
31405
+ */
31406
+ export const GetPoolGroupsV1CurrencyEnum = {
31407
+ Usd: 'USD',
31408
+ Ars: 'ARS',
31409
+ Amd: 'AMD',
31410
+ Aud: 'AUD',
31411
+ Azn: 'AZN',
31412
+ Bdt: 'BDT',
31413
+ Brl: 'BRL',
31414
+ Btc: 'BTC',
31415
+ Byn: 'BYN',
31416
+ Cad: 'CAD',
31417
+ Chf: 'CHF',
31418
+ Clp: 'CLP',
31419
+ Cny: 'CNY',
31420
+ Cop: 'COP',
31421
+ Czk: 'CZK',
31422
+ Dkk: 'DKK',
31423
+ Egp: 'EGP',
31424
+ Eur: 'EUR',
31425
+ Gbp: 'GBP',
31426
+ Gel: 'GEL',
31427
+ Hkd: 'HKD',
31428
+ Hrk: 'HRK',
31429
+ Huf: 'HUF',
31430
+ Idr: 'IDR',
31431
+ Ils: 'ILS',
31432
+ Inr: 'INR',
31433
+ Jpy: 'JPY',
31434
+ Kgs: 'KGS',
31435
+ Krw: 'KRW',
31436
+ Kzt: 'KZT',
31437
+ Mad: 'MAD',
31438
+ Mxn: 'MXN',
31439
+ Myr: 'MYR',
31440
+ Ngn: 'NGN',
31441
+ Nok: 'NOK',
31442
+ Nzd: 'NZD',
31443
+ Pen: 'PEN',
31444
+ Php: 'PHP',
31445
+ Pkr: 'PKR',
31446
+ Pln: 'PLN',
31447
+ Sek: 'SEK',
31448
+ Sgd: 'SGD',
31449
+ Thb: 'THB',
31450
+ Tjs: 'TJS',
31451
+ Try: 'TRY',
31452
+ Twd: 'TWD',
31453
+ Uah: 'UAH',
31454
+ Vnd: 'VND',
31455
+ Zar: 'ZAR'
31456
+ } as const;
31457
+ export type GetPoolGroupsV1CurrencyEnum = typeof GetPoolGroupsV1CurrencyEnum[keyof typeof GetPoolGroupsV1CurrencyEnum];
31458
+
31459
+
30868
31460
  /**
30869
31461
  * HorizonsWebsitesApi - axios parameter creator
30870
31462
  * @export
package/base.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 2.6.2
6
+ * API Version: 2.7.0
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/common.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 2.6.2
6
+ * API Version: 2.7.0
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/configuration.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 2.6.2
6
+ * API Version: 2.7.0
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -48,7 +48,7 @@ export class Configuration {
48
48
  this.baseOptions = {
49
49
  ...param.baseOptions,
50
50
  headers: {
51
- 'User-Agent': "hostinger-typescript-sdk/2.6.3",
51
+ 'User-Agent': "hostinger-typescript-sdk/2.7.0",
52
52
  ...param.baseOptions?.headers,
53
53
  },
54
54
  };