hostinger-api-sdk 2.16.0 → 3.0.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 +2 -2
- package/api.ts +352 -84
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +255 -77
- package/dist/api.js +210 -85
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +2 -2
- package/dist/esm/api.d.ts +255 -77
- package/dist/esm/api.js +198 -73
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +2 -2
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/GPUCatalogApi.md +5 -10
- package/docs/GPUExposedServicesApi.md +3 -0
- package/docs/GPUInstancesApi.md +3 -0
- package/docs/GPUV1InstanceInstanceListResource.md +2 -0
- package/docs/GPUV1InstanceInstanceResource.md +4 -0
- package/docs/GPUV1LlmModelVariantLlmModelVariantResource.md +30 -0
- package/docs/GPUV1OsTemplateOsTemplateResource.md +0 -2
- package/docs/GPUV1PoolPoolGroupResource.md +5 -1
- package/docs/GPUV1PoolPoolInstanceResource.md +1 -1
- package/docs/ReachCampaignsApi.md +119 -0
- package/docs/ReachV1CampaignsCreatedCampaignResource.md +1 -1
- package/docs/ReachV1CampaignsUpdateRequest.md +37 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/esm/api.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version:
|
|
6
|
+
* API Version: 3.0.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
|
|
@@ -344,6 +344,16 @@ export const GPUV1InstanceInstanceListResourceActionLockEnum = {
|
|
|
344
344
|
Unlocked: 'unlocked',
|
|
345
345
|
Locked: 'locked'
|
|
346
346
|
};
|
|
347
|
+
export const GPUV1InstanceInstanceListResourceActionLockReasonEnum = {
|
|
348
|
+
Creating: 'creating',
|
|
349
|
+
Booting: 'booting',
|
|
350
|
+
InstallingTemplate: 'installing_template',
|
|
351
|
+
ExposingService: 'exposing_service',
|
|
352
|
+
ConcealingService: 'concealing_service',
|
|
353
|
+
Restarting: 'restarting',
|
|
354
|
+
Destroying: 'destroying',
|
|
355
|
+
Renaming: 'renaming'
|
|
356
|
+
};
|
|
347
357
|
export const GPUV1InstanceInstanceResourceStatusEnum = {
|
|
348
358
|
Created: 'created',
|
|
349
359
|
Creating: 'creating',
|
|
@@ -359,6 +369,24 @@ export const GPUV1InstanceInstanceResourceActionLockEnum = {
|
|
|
359
369
|
Unlocked: 'unlocked',
|
|
360
370
|
Locked: 'locked'
|
|
361
371
|
};
|
|
372
|
+
export const GPUV1InstanceInstanceResourceActionLockReasonEnum = {
|
|
373
|
+
Creating: 'creating',
|
|
374
|
+
Booting: 'booting',
|
|
375
|
+
InstallingTemplate: 'installing_template',
|
|
376
|
+
ExposingService: 'exposing_service',
|
|
377
|
+
ConcealingService: 'concealing_service',
|
|
378
|
+
Restarting: 'restarting',
|
|
379
|
+
Destroying: 'destroying',
|
|
380
|
+
Renaming: 'renaming'
|
|
381
|
+
};
|
|
382
|
+
export const GPUV1LlmModelVariantLlmModelVariantResourceCapabilitiesEnum = {
|
|
383
|
+
Tools: 'tools',
|
|
384
|
+
Thinking: 'thinking',
|
|
385
|
+
Vision: 'vision',
|
|
386
|
+
Sound: 'sound',
|
|
387
|
+
Embedding: 'embedding',
|
|
388
|
+
Decision: 'decision'
|
|
389
|
+
};
|
|
362
390
|
export const HorizonsV1WebsitesCreateWebsiteRequestMessageInnerTypeEnum = {
|
|
363
391
|
Text: 'text'
|
|
364
392
|
};
|
|
@@ -12299,13 +12327,12 @@ export class EcommerceStoresApi extends BaseAPI {
|
|
|
12299
12327
|
export const GPUCatalogApiAxiosParamCreator = function (configuration) {
|
|
12300
12328
|
return {
|
|
12301
12329
|
/**
|
|
12302
|
-
* 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.
|
|
12330
|
+
* 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, in credits, 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.
|
|
12303
12331
|
* @summary Get pool groups
|
|
12304
|
-
* @param {GetPoolGroupsV1CurrencyEnum} [currency] Currency of the returned prices, `USD` by default
|
|
12305
12332
|
* @param {*} [options] Override http request option.
|
|
12306
12333
|
* @throws {RequiredError}
|
|
12307
12334
|
*/
|
|
12308
|
-
getPoolGroupsV1: (
|
|
12335
|
+
getPoolGroupsV1: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
12309
12336
|
const localVarPath = `/api/gpu/v1/pools/groups`;
|
|
12310
12337
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12311
12338
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -12319,9 +12346,6 @@ export const GPUCatalogApiAxiosParamCreator = function (configuration) {
|
|
|
12319
12346
|
// authentication apiToken required
|
|
12320
12347
|
// http bearer authentication required
|
|
12321
12348
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
12322
|
-
if (currency !== undefined) {
|
|
12323
|
-
localVarQueryParameter['currency'] = currency;
|
|
12324
|
-
}
|
|
12325
12349
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12326
12350
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12327
12351
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -12436,16 +12460,15 @@ export const GPUCatalogApiFp = function (configuration) {
|
|
|
12436
12460
|
const localVarAxiosParamCreator = GPUCatalogApiAxiosParamCreator(configuration);
|
|
12437
12461
|
return {
|
|
12438
12462
|
/**
|
|
12439
|
-
* 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.
|
|
12463
|
+
* 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, in credits, 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.
|
|
12440
12464
|
* @summary Get pool groups
|
|
12441
|
-
* @param {GetPoolGroupsV1CurrencyEnum} [currency] Currency of the returned prices, `USD` by default
|
|
12442
12465
|
* @param {*} [options] Override http request option.
|
|
12443
12466
|
* @throws {RequiredError}
|
|
12444
12467
|
*/
|
|
12445
|
-
getPoolGroupsV1(
|
|
12468
|
+
getPoolGroupsV1(options) {
|
|
12446
12469
|
return __awaiter(this, void 0, void 0, function* () {
|
|
12447
12470
|
var _a, _b;
|
|
12448
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPoolGroupsV1(
|
|
12471
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPoolGroupsV1(options);
|
|
12449
12472
|
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['GPUCatalogApi.getPoolGroupsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
12450
12473
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12451
12474
|
});
|
|
@@ -12505,14 +12528,13 @@ export const GPUCatalogApiFactory = function (configuration, basePath, axios) {
|
|
|
12505
12528
|
const localVarFp = GPUCatalogApiFp(configuration);
|
|
12506
12529
|
return {
|
|
12507
12530
|
/**
|
|
12508
|
-
* 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.
|
|
12531
|
+
* 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, in credits, 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.
|
|
12509
12532
|
* @summary Get pool groups
|
|
12510
|
-
* @param {GetPoolGroupsV1CurrencyEnum} [currency] Currency of the returned prices, `USD` by default
|
|
12511
12533
|
* @param {*} [options] Override http request option.
|
|
12512
12534
|
* @throws {RequiredError}
|
|
12513
12535
|
*/
|
|
12514
|
-
getPoolGroupsV1(
|
|
12515
|
-
return localVarFp.getPoolGroupsV1(
|
|
12536
|
+
getPoolGroupsV1(options) {
|
|
12537
|
+
return localVarFp.getPoolGroupsV1(options).then((request) => request(axios, basePath));
|
|
12516
12538
|
},
|
|
12517
12539
|
/**
|
|
12518
12540
|
* 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.
|
|
@@ -12554,15 +12576,14 @@ export const GPUCatalogApiFactory = function (configuration, basePath, axios) {
|
|
|
12554
12576
|
*/
|
|
12555
12577
|
export class GPUCatalogApi extends BaseAPI {
|
|
12556
12578
|
/**
|
|
12557
|
-
* 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.
|
|
12579
|
+
* 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, in credits, 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.
|
|
12558
12580
|
* @summary Get pool groups
|
|
12559
|
-
* @param {GetPoolGroupsV1CurrencyEnum} [currency] Currency of the returned prices, `USD` by default
|
|
12560
12581
|
* @param {*} [options] Override http request option.
|
|
12561
12582
|
* @throws {RequiredError}
|
|
12562
12583
|
* @memberof GPUCatalogApi
|
|
12563
12584
|
*/
|
|
12564
|
-
getPoolGroupsV1(
|
|
12565
|
-
return GPUCatalogApiFp(this.configuration).getPoolGroupsV1(
|
|
12585
|
+
getPoolGroupsV1(options) {
|
|
12586
|
+
return GPUCatalogApiFp(this.configuration).getPoolGroupsV1(options).then((request) => request(this.axios, this.basePath));
|
|
12566
12587
|
}
|
|
12567
12588
|
/**
|
|
12568
12589
|
* 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.
|
|
@@ -12598,60 +12619,6 @@ export class GPUCatalogApi extends BaseAPI {
|
|
|
12598
12619
|
return GPUCatalogApiFp(this.configuration).getPoolOSTemplatesV1(poolId, poolInstanceId, options).then((request) => request(this.axios, this.basePath));
|
|
12599
12620
|
}
|
|
12600
12621
|
}
|
|
12601
|
-
/**
|
|
12602
|
-
* @export
|
|
12603
|
-
*/
|
|
12604
|
-
export const GetPoolGroupsV1CurrencyEnum = {
|
|
12605
|
-
Usd: 'USD',
|
|
12606
|
-
Ars: 'ARS',
|
|
12607
|
-
Amd: 'AMD',
|
|
12608
|
-
Aud: 'AUD',
|
|
12609
|
-
Azn: 'AZN',
|
|
12610
|
-
Bdt: 'BDT',
|
|
12611
|
-
Brl: 'BRL',
|
|
12612
|
-
Btc: 'BTC',
|
|
12613
|
-
Byn: 'BYN',
|
|
12614
|
-
Cad: 'CAD',
|
|
12615
|
-
Chf: 'CHF',
|
|
12616
|
-
Clp: 'CLP',
|
|
12617
|
-
Cny: 'CNY',
|
|
12618
|
-
Cop: 'COP',
|
|
12619
|
-
Czk: 'CZK',
|
|
12620
|
-
Dkk: 'DKK',
|
|
12621
|
-
Egp: 'EGP',
|
|
12622
|
-
Eur: 'EUR',
|
|
12623
|
-
Gbp: 'GBP',
|
|
12624
|
-
Gel: 'GEL',
|
|
12625
|
-
Hkd: 'HKD',
|
|
12626
|
-
Hrk: 'HRK',
|
|
12627
|
-
Huf: 'HUF',
|
|
12628
|
-
Idr: 'IDR',
|
|
12629
|
-
Ils: 'ILS',
|
|
12630
|
-
Inr: 'INR',
|
|
12631
|
-
Jpy: 'JPY',
|
|
12632
|
-
Kgs: 'KGS',
|
|
12633
|
-
Krw: 'KRW',
|
|
12634
|
-
Kzt: 'KZT',
|
|
12635
|
-
Mad: 'MAD',
|
|
12636
|
-
Mxn: 'MXN',
|
|
12637
|
-
Myr: 'MYR',
|
|
12638
|
-
Ngn: 'NGN',
|
|
12639
|
-
Nok: 'NOK',
|
|
12640
|
-
Nzd: 'NZD',
|
|
12641
|
-
Pen: 'PEN',
|
|
12642
|
-
Php: 'PHP',
|
|
12643
|
-
Pkr: 'PKR',
|
|
12644
|
-
Pln: 'PLN',
|
|
12645
|
-
Sek: 'SEK',
|
|
12646
|
-
Sgd: 'SGD',
|
|
12647
|
-
Thb: 'THB',
|
|
12648
|
-
Tjs: 'TJS',
|
|
12649
|
-
Try: 'TRY',
|
|
12650
|
-
Twd: 'TWD',
|
|
12651
|
-
Uah: 'UAH',
|
|
12652
|
-
Vnd: 'VND',
|
|
12653
|
-
Zar: 'ZAR'
|
|
12654
|
-
};
|
|
12655
12622
|
/**
|
|
12656
12623
|
* GPUExposedServicesApi - axios parameter creator
|
|
12657
12624
|
* @export
|
|
@@ -25146,6 +25113,83 @@ export const ReachCampaignsApiAxiosParamCreator = function (configuration) {
|
|
|
25146
25113
|
options: localVarRequestOptions,
|
|
25147
25114
|
};
|
|
25148
25115
|
}),
|
|
25116
|
+
/**
|
|
25117
|
+
* Send a campaign now to the audience stored on it. This is irreversible: once accepted, the emails go out and cannot be recalled. Confirm with the customer before calling. The campaign needs a subject, sender, template and audience first - set them with the update endpoint. Delivery is asynchronous, so success means accepted, not delivered: the campaign moves to `sending` and later to `publish`, or to `failed`. Read the campaign to follow it. The request is rejected when the campaign has no recipients, its sender domain is not verified or is blocked, the plan\'s sending limits would be exceeded, or the campaign is already being sent.
|
|
25118
|
+
* @summary Send campaign
|
|
25119
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
25120
|
+
* @param {string} campaignUuid Campaign uuid parameter
|
|
25121
|
+
* @param {*} [options] Override http request option.
|
|
25122
|
+
* @throws {RequiredError}
|
|
25123
|
+
*/
|
|
25124
|
+
sendCampaignV1: (profileUuid_1, campaignUuid_1, ...args_1) => __awaiter(this, [profileUuid_1, campaignUuid_1, ...args_1], void 0, function* (profileUuid, campaignUuid, options = {}) {
|
|
25125
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
25126
|
+
assertParamExists('sendCampaignV1', 'profileUuid', profileUuid);
|
|
25127
|
+
// verify required parameter 'campaignUuid' is not null or undefined
|
|
25128
|
+
assertParamExists('sendCampaignV1', 'campaignUuid', campaignUuid);
|
|
25129
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/campaigns/{campaignUuid}/send`
|
|
25130
|
+
.replace(`{${"profileUuid"}}`, encodePathParam('profileUuid', profileUuid))
|
|
25131
|
+
.replace(`{${"campaignUuid"}}`, encodePathParam('campaignUuid', campaignUuid));
|
|
25132
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
25133
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
25134
|
+
let baseOptions;
|
|
25135
|
+
if (configuration) {
|
|
25136
|
+
baseOptions = configuration.baseOptions;
|
|
25137
|
+
}
|
|
25138
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
25139
|
+
const localVarHeaderParameter = {};
|
|
25140
|
+
const localVarQueryParameter = {};
|
|
25141
|
+
// authentication apiToken required
|
|
25142
|
+
// http bearer authentication required
|
|
25143
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
25144
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
25145
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
25146
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
25147
|
+
return {
|
|
25148
|
+
url: toPathString(localVarUrlObj),
|
|
25149
|
+
options: localVarRequestOptions,
|
|
25150
|
+
};
|
|
25151
|
+
}),
|
|
25152
|
+
/**
|
|
25153
|
+
* Update a campaign\'s content, sender, template and audience. Only `draft`, `scheduled` and `failed` campaigns can be updated; a campaign that is sending or already sent is rejected. Updating a `failed` campaign moves it back to `draft`. Audience changes replace rather than merge: `all_contacts: true` targets every contact of the profile, while `segment_uuids` replaces the segments currently targeted. Leave both out to keep the audience as it is. This does not send the campaign - use the send endpoint for that.
|
|
25154
|
+
* @summary Update campaign
|
|
25155
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
25156
|
+
* @param {string} campaignUuid Campaign uuid parameter
|
|
25157
|
+
* @param {ReachV1CampaignsUpdateRequest} reachV1CampaignsUpdateRequest
|
|
25158
|
+
* @param {*} [options] Override http request option.
|
|
25159
|
+
* @throws {RequiredError}
|
|
25160
|
+
*/
|
|
25161
|
+
updateCampaignV1: (profileUuid_1, campaignUuid_1, reachV1CampaignsUpdateRequest_1, ...args_1) => __awaiter(this, [profileUuid_1, campaignUuid_1, reachV1CampaignsUpdateRequest_1, ...args_1], void 0, function* (profileUuid, campaignUuid, reachV1CampaignsUpdateRequest, options = {}) {
|
|
25162
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
25163
|
+
assertParamExists('updateCampaignV1', 'profileUuid', profileUuid);
|
|
25164
|
+
// verify required parameter 'campaignUuid' is not null or undefined
|
|
25165
|
+
assertParamExists('updateCampaignV1', 'campaignUuid', campaignUuid);
|
|
25166
|
+
// verify required parameter 'reachV1CampaignsUpdateRequest' is not null or undefined
|
|
25167
|
+
assertParamExists('updateCampaignV1', 'reachV1CampaignsUpdateRequest', reachV1CampaignsUpdateRequest);
|
|
25168
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/campaigns/{campaignUuid}`
|
|
25169
|
+
.replace(`{${"profileUuid"}}`, encodePathParam('profileUuid', profileUuid))
|
|
25170
|
+
.replace(`{${"campaignUuid"}}`, encodePathParam('campaignUuid', campaignUuid));
|
|
25171
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
25172
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
25173
|
+
let baseOptions;
|
|
25174
|
+
if (configuration) {
|
|
25175
|
+
baseOptions = configuration.baseOptions;
|
|
25176
|
+
}
|
|
25177
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
25178
|
+
const localVarHeaderParameter = {};
|
|
25179
|
+
const localVarQueryParameter = {};
|
|
25180
|
+
// authentication apiToken required
|
|
25181
|
+
// http bearer authentication required
|
|
25182
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
25183
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
25184
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
25185
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
25186
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
25187
|
+
localVarRequestOptions.data = serializeDataIfNeeded(reachV1CampaignsUpdateRequest, localVarRequestOptions, configuration);
|
|
25188
|
+
return {
|
|
25189
|
+
url: toPathString(localVarUrlObj),
|
|
25190
|
+
options: localVarRequestOptions,
|
|
25191
|
+
};
|
|
25192
|
+
}),
|
|
25149
25193
|
};
|
|
25150
25194
|
};
|
|
25151
25195
|
/**
|
|
@@ -25223,6 +25267,39 @@ export const ReachCampaignsApiFp = function (configuration) {
|
|
|
25223
25267
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
25224
25268
|
});
|
|
25225
25269
|
},
|
|
25270
|
+
/**
|
|
25271
|
+
* Send a campaign now to the audience stored on it. This is irreversible: once accepted, the emails go out and cannot be recalled. Confirm with the customer before calling. The campaign needs a subject, sender, template and audience first - set them with the update endpoint. Delivery is asynchronous, so success means accepted, not delivered: the campaign moves to `sending` and later to `publish`, or to `failed`. Read the campaign to follow it. The request is rejected when the campaign has no recipients, its sender domain is not verified or is blocked, the plan\'s sending limits would be exceeded, or the campaign is already being sent.
|
|
25272
|
+
* @summary Send campaign
|
|
25273
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
25274
|
+
* @param {string} campaignUuid Campaign uuid parameter
|
|
25275
|
+
* @param {*} [options] Override http request option.
|
|
25276
|
+
* @throws {RequiredError}
|
|
25277
|
+
*/
|
|
25278
|
+
sendCampaignV1(profileUuid, campaignUuid, options) {
|
|
25279
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
25280
|
+
var _a, _b;
|
|
25281
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.sendCampaignV1(profileUuid, campaignUuid, options);
|
|
25282
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['ReachCampaignsApi.sendCampaignV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
25283
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
25284
|
+
});
|
|
25285
|
+
},
|
|
25286
|
+
/**
|
|
25287
|
+
* Update a campaign\'s content, sender, template and audience. Only `draft`, `scheduled` and `failed` campaigns can be updated; a campaign that is sending or already sent is rejected. Updating a `failed` campaign moves it back to `draft`. Audience changes replace rather than merge: `all_contacts: true` targets every contact of the profile, while `segment_uuids` replaces the segments currently targeted. Leave both out to keep the audience as it is. This does not send the campaign - use the send endpoint for that.
|
|
25288
|
+
* @summary Update campaign
|
|
25289
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
25290
|
+
* @param {string} campaignUuid Campaign uuid parameter
|
|
25291
|
+
* @param {ReachV1CampaignsUpdateRequest} reachV1CampaignsUpdateRequest
|
|
25292
|
+
* @param {*} [options] Override http request option.
|
|
25293
|
+
* @throws {RequiredError}
|
|
25294
|
+
*/
|
|
25295
|
+
updateCampaignV1(profileUuid, campaignUuid, reachV1CampaignsUpdateRequest, options) {
|
|
25296
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
25297
|
+
var _a, _b;
|
|
25298
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateCampaignV1(profileUuid, campaignUuid, reachV1CampaignsUpdateRequest, options);
|
|
25299
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['ReachCampaignsApi.updateCampaignV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
25300
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
25301
|
+
});
|
|
25302
|
+
},
|
|
25226
25303
|
};
|
|
25227
25304
|
};
|
|
25228
25305
|
/**
|
|
@@ -25280,6 +25357,29 @@ export const ReachCampaignsApiFactory = function (configuration, basePath, axios
|
|
|
25280
25357
|
listCampaignsV1(profileUuid, status, type, sortDirection, page, perPage, options) {
|
|
25281
25358
|
return localVarFp.listCampaignsV1(profileUuid, status, type, sortDirection, page, perPage, options).then((request) => request(axios, basePath));
|
|
25282
25359
|
},
|
|
25360
|
+
/**
|
|
25361
|
+
* Send a campaign now to the audience stored on it. This is irreversible: once accepted, the emails go out and cannot be recalled. Confirm with the customer before calling. The campaign needs a subject, sender, template and audience first - set them with the update endpoint. Delivery is asynchronous, so success means accepted, not delivered: the campaign moves to `sending` and later to `publish`, or to `failed`. Read the campaign to follow it. The request is rejected when the campaign has no recipients, its sender domain is not verified or is blocked, the plan\'s sending limits would be exceeded, or the campaign is already being sent.
|
|
25362
|
+
* @summary Send campaign
|
|
25363
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
25364
|
+
* @param {string} campaignUuid Campaign uuid parameter
|
|
25365
|
+
* @param {*} [options] Override http request option.
|
|
25366
|
+
* @throws {RequiredError}
|
|
25367
|
+
*/
|
|
25368
|
+
sendCampaignV1(profileUuid, campaignUuid, options) {
|
|
25369
|
+
return localVarFp.sendCampaignV1(profileUuid, campaignUuid, options).then((request) => request(axios, basePath));
|
|
25370
|
+
},
|
|
25371
|
+
/**
|
|
25372
|
+
* Update a campaign\'s content, sender, template and audience. Only `draft`, `scheduled` and `failed` campaigns can be updated; a campaign that is sending or already sent is rejected. Updating a `failed` campaign moves it back to `draft`. Audience changes replace rather than merge: `all_contacts: true` targets every contact of the profile, while `segment_uuids` replaces the segments currently targeted. Leave both out to keep the audience as it is. This does not send the campaign - use the send endpoint for that.
|
|
25373
|
+
* @summary Update campaign
|
|
25374
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
25375
|
+
* @param {string} campaignUuid Campaign uuid parameter
|
|
25376
|
+
* @param {ReachV1CampaignsUpdateRequest} reachV1CampaignsUpdateRequest
|
|
25377
|
+
* @param {*} [options] Override http request option.
|
|
25378
|
+
* @throws {RequiredError}
|
|
25379
|
+
*/
|
|
25380
|
+
updateCampaignV1(profileUuid, campaignUuid, reachV1CampaignsUpdateRequest, options) {
|
|
25381
|
+
return localVarFp.updateCampaignV1(profileUuid, campaignUuid, reachV1CampaignsUpdateRequest, options).then((request) => request(axios, basePath));
|
|
25382
|
+
},
|
|
25283
25383
|
};
|
|
25284
25384
|
};
|
|
25285
25385
|
/**
|
|
@@ -25341,6 +25441,31 @@ export class ReachCampaignsApi extends BaseAPI {
|
|
|
25341
25441
|
listCampaignsV1(profileUuid, status, type, sortDirection, page, perPage, options) {
|
|
25342
25442
|
return ReachCampaignsApiFp(this.configuration).listCampaignsV1(profileUuid, status, type, sortDirection, page, perPage, options).then((request) => request(this.axios, this.basePath));
|
|
25343
25443
|
}
|
|
25444
|
+
/**
|
|
25445
|
+
* Send a campaign now to the audience stored on it. This is irreversible: once accepted, the emails go out and cannot be recalled. Confirm with the customer before calling. The campaign needs a subject, sender, template and audience first - set them with the update endpoint. Delivery is asynchronous, so success means accepted, not delivered: the campaign moves to `sending` and later to `publish`, or to `failed`. Read the campaign to follow it. The request is rejected when the campaign has no recipients, its sender domain is not verified or is blocked, the plan\'s sending limits would be exceeded, or the campaign is already being sent.
|
|
25446
|
+
* @summary Send campaign
|
|
25447
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
25448
|
+
* @param {string} campaignUuid Campaign uuid parameter
|
|
25449
|
+
* @param {*} [options] Override http request option.
|
|
25450
|
+
* @throws {RequiredError}
|
|
25451
|
+
* @memberof ReachCampaignsApi
|
|
25452
|
+
*/
|
|
25453
|
+
sendCampaignV1(profileUuid, campaignUuid, options) {
|
|
25454
|
+
return ReachCampaignsApiFp(this.configuration).sendCampaignV1(profileUuid, campaignUuid, options).then((request) => request(this.axios, this.basePath));
|
|
25455
|
+
}
|
|
25456
|
+
/**
|
|
25457
|
+
* Update a campaign\'s content, sender, template and audience. Only `draft`, `scheduled` and `failed` campaigns can be updated; a campaign that is sending or already sent is rejected. Updating a `failed` campaign moves it back to `draft`. Audience changes replace rather than merge: `all_contacts: true` targets every contact of the profile, while `segment_uuids` replaces the segments currently targeted. Leave both out to keep the audience as it is. This does not send the campaign - use the send endpoint for that.
|
|
25458
|
+
* @summary Update campaign
|
|
25459
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
25460
|
+
* @param {string} campaignUuid Campaign uuid parameter
|
|
25461
|
+
* @param {ReachV1CampaignsUpdateRequest} reachV1CampaignsUpdateRequest
|
|
25462
|
+
* @param {*} [options] Override http request option.
|
|
25463
|
+
* @throws {RequiredError}
|
|
25464
|
+
* @memberof ReachCampaignsApi
|
|
25465
|
+
*/
|
|
25466
|
+
updateCampaignV1(profileUuid, campaignUuid, reachV1CampaignsUpdateRequest, options) {
|
|
25467
|
+
return ReachCampaignsApiFp(this.configuration).updateCampaignV1(profileUuid, campaignUuid, reachV1CampaignsUpdateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
25468
|
+
}
|
|
25344
25469
|
}
|
|
25345
25470
|
/**
|
|
25346
25471
|
* @export
|
package/dist/esm/base.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version:
|
|
4
|
+
* API Version: 3.0.0
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/esm/base.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version:
|
|
6
|
+
* API Version: 3.0.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/dist/esm/common.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version:
|
|
4
|
+
* API Version: 3.0.0
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/esm/common.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version:
|
|
6
|
+
* API Version: 3.0.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
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version:
|
|
4
|
+
* API Version: 3.0.0
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version:
|
|
6
|
+
* API Version: 3.0.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
|
|
@@ -13,7 +13,7 @@ export class Configuration {
|
|
|
13
13
|
var _a;
|
|
14
14
|
this.accessToken = param.accessToken;
|
|
15
15
|
this.basePath = param.basePath;
|
|
16
|
-
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/
|
|
16
|
+
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/3.0.0" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
|
|
17
17
|
this.formDataCtor = param.formDataCtor;
|
|
18
18
|
}
|
|
19
19
|
/**
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version:
|
|
4
|
+
* API Version: 3.0.0
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/esm/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version:
|
|
6
|
+
* API Version: 3.0.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/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version:
|
|
4
|
+
* API Version: 3.0.0
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version:
|
|
7
|
+
* API Version: 3.0.0
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
10
10
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/docs/GPUCatalogApi.md
CHANGED
|
@@ -12,7 +12,7 @@ All URIs are relative to *https://developers.hostinger.com*
|
|
|
12
12
|
# **getPoolGroupsV1**
|
|
13
13
|
> Array<GPUV1PoolPoolGroupResource> getPoolGroupsV1()
|
|
14
14
|
|
|
15
|
-
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.
|
|
15
|
+
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, in credits, 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.
|
|
16
16
|
|
|
17
17
|
### Example
|
|
18
18
|
|
|
@@ -25,18 +25,11 @@ import {
|
|
|
25
25
|
const configuration = new Configuration();
|
|
26
26
|
const apiInstance = new GPUCatalogApi(configuration);
|
|
27
27
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
const { status, data } = await apiInstance.getPoolGroupsV1(
|
|
31
|
-
currency
|
|
32
|
-
);
|
|
28
|
+
const { status, data } = await apiInstance.getPoolGroupsV1();
|
|
33
29
|
```
|
|
34
30
|
|
|
35
31
|
### Parameters
|
|
36
|
-
|
|
37
|
-
|Name | Type | Description | Notes|
|
|
38
|
-
|------------- | ------------- | ------------- | -------------|
|
|
39
|
-
| **currency** | [**'USD' | 'ARS' | 'AMD' | 'AUD' | 'AZN' | 'BDT' | 'BRL' | 'BTC' | 'BYN' | 'CAD' | 'CHF' | 'CLP' | 'CNY' | 'COP' | 'CZK' | 'DKK' | 'EGP' | 'EUR' | 'GBP' | 'GEL' | 'HKD' | 'HRK' | 'HUF' | 'IDR' | 'ILS' | 'INR' | 'JPY' | 'KGS' | 'KRW' | 'KZT' | 'MAD' | 'MXN' | 'MYR' | 'NGN' | 'NOK' | 'NZD' | 'PEN' | 'PHP' | 'PKR' | 'PLN' | 'SEK' | 'SGD' | 'THB' | 'TJS' | 'TRY' | 'TWD' | 'UAH' | 'VND' | 'ZAR'**]**Array<'USD' | 'ARS' | 'AMD' | 'AUD' | 'AZN' | 'BDT' | 'BRL' | 'BTC' | 'BYN' | 'CAD' | 'CHF' | 'CLP' | 'CNY' | 'COP' | 'CZK' | 'DKK' | 'EGP' | 'EUR' | 'GBP' | 'GEL' | 'HKD' | 'HRK' | 'HUF' | 'IDR' | 'ILS' | 'INR' | 'JPY' | 'KGS' | 'KRW' | 'KZT' | 'MAD' | 'MXN' | 'MYR' | 'NGN' | 'NOK' | 'NZD' | 'PEN' | 'PHP' | 'PKR' | 'PLN' | 'SEK' | 'SGD' | 'THB' | 'TJS' | 'TRY' | 'TWD' | 'UAH' | 'VND' | 'ZAR'>** | Currency of the returned prices, `USD` by default | (optional) defaults to undefined|
|
|
32
|
+
This endpoint does not have any parameters.
|
|
40
33
|
|
|
41
34
|
|
|
42
35
|
### Return type
|
|
@@ -111,6 +104,7 @@ const { status, data } = await apiInstance.getPoolInstanceTypesV1(
|
|
|
111
104
|
|-------------|-------------|------------------|
|
|
112
105
|
|**200** | Success response | - |
|
|
113
106
|
|**401** | Unauthenticated response | - |
|
|
107
|
+
|**404** | Error response | - |
|
|
114
108
|
|**500** | Error response | - |
|
|
115
109
|
|
|
116
110
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
@@ -213,6 +207,7 @@ const { status, data } = await apiInstance.getPoolOSTemplatesV1(
|
|
|
213
207
|
|-------------|-------------|------------------|
|
|
214
208
|
|**200** | Success response | - |
|
|
215
209
|
|**401** | Unauthenticated response | - |
|
|
210
|
+
|**404** | Error response | - |
|
|
216
211
|
|**500** | Error response | - |
|
|
217
212
|
|
|
218
213
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
@@ -62,6 +62,7 @@ const { status, data } = await apiInstance.createExposedServiceV1(
|
|
|
62
62
|
|**200** | Success empty response | - |
|
|
63
63
|
|**422** | Validation error response | - |
|
|
64
64
|
|**401** | Unauthenticated response | - |
|
|
65
|
+
|**404** | Error response | - |
|
|
65
66
|
|**500** | Error response | - |
|
|
66
67
|
|
|
67
68
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
@@ -118,6 +119,7 @@ const { status, data } = await apiInstance.deleteExposedServiceV1(
|
|
|
118
119
|
|-------------|-------------|------------------|
|
|
119
120
|
|**200** | Success empty response | - |
|
|
120
121
|
|**401** | Unauthenticated response | - |
|
|
122
|
+
|**404** | Error response | - |
|
|
121
123
|
|**500** | Error response | - |
|
|
122
124
|
|
|
123
125
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
@@ -171,6 +173,7 @@ const { status, data } = await apiInstance.getExposedServicesV1(
|
|
|
171
173
|
|-------------|-------------|------------------|
|
|
172
174
|
|**200** | Success response | - |
|
|
173
175
|
|**401** | Unauthenticated response | - |
|
|
176
|
+
|**404** | Error response | - |
|
|
174
177
|
|**500** | Error response | - |
|
|
175
178
|
|
|
176
179
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
package/docs/GPUInstancesApi.md
CHANGED
|
@@ -114,6 +114,7 @@ const { status, data } = await apiInstance.deleteInstanceV1(
|
|
|
114
114
|
|-------------|-------------|------------------|
|
|
115
115
|
|**200** | Success empty response | - |
|
|
116
116
|
|**401** | Unauthenticated response | - |
|
|
117
|
+
|**404** | Error response | - |
|
|
117
118
|
|**500** | Error response | - |
|
|
118
119
|
|
|
119
120
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
@@ -167,6 +168,7 @@ const { status, data } = await apiInstance.getInstanceDetailsV1(
|
|
|
167
168
|
|-------------|-------------|------------------|
|
|
168
169
|
|**200** | Success response | - |
|
|
169
170
|
|**401** | Unauthenticated response | - |
|
|
171
|
+
|**404** | Error response | - |
|
|
170
172
|
|**500** | Error response | - |
|
|
171
173
|
|
|
172
174
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
@@ -220,6 +222,7 @@ const { status, data } = await apiInstance.getInstanceMetricsV1(
|
|
|
220
222
|
|-------------|-------------|------------------|
|
|
221
223
|
|**200** | Success response | - |
|
|
222
224
|
|**401** | Unauthenticated response | - |
|
|
225
|
+
|**404** | Error response | - |
|
|
223
226
|
|**500** | Error response | - |
|
|
224
227
|
|
|
225
228
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
|
|
|
9
9
|
**name** | **string** | | [optional] [default to undefined]
|
|
10
10
|
**status** | **string** | | [optional] [default to undefined]
|
|
11
11
|
**action_lock** | **string** | Whether an action is in progress on the instance | [optional] [default to undefined]
|
|
12
|
+
**action_lock_reason** | **string** | Action in progress on the instance, `null` when unlocked | [optional] [default to undefined]
|
|
12
13
|
**pool** | [**GPUV1PoolPoolResource**](GPUV1PoolPoolResource.md) | | [optional] [default to undefined]
|
|
13
14
|
**pool_instance** | [**GPUV1PoolPoolInstanceResource**](GPUV1PoolPoolInstanceResource.md) | | [optional] [default to undefined]
|
|
14
15
|
**os_template** | [**GPUV1OsTemplateOsTemplateResource**](GPUV1OsTemplateOsTemplateResource.md) | | [optional] [default to undefined]
|
|
@@ -23,6 +24,7 @@ const instance: GPUV1InstanceInstanceListResource = {
|
|
|
23
24
|
name,
|
|
24
25
|
status,
|
|
25
26
|
action_lock,
|
|
27
|
+
action_lock_reason,
|
|
26
28
|
pool,
|
|
27
29
|
pool_instance,
|
|
28
30
|
os_template,
|
|
@@ -9,9 +9,11 @@ Name | Type | Description | Notes
|
|
|
9
9
|
**name** | **string** | | [optional] [default to undefined]
|
|
10
10
|
**status** | **string** | | [optional] [default to undefined]
|
|
11
11
|
**action_lock** | **string** | Whether an action is in progress on the instance | [optional] [default to undefined]
|
|
12
|
+
**action_lock_reason** | **string** | Action in progress on the instance, `null` when unlocked | [optional] [default to undefined]
|
|
12
13
|
**pool** | [**GPUV1PoolPoolResource**](GPUV1PoolPoolResource.md) | | [optional] [default to undefined]
|
|
13
14
|
**pool_instance** | [**GPUV1PoolPoolInstanceResource**](GPUV1PoolPoolInstanceResource.md) | | [optional] [default to undefined]
|
|
14
15
|
**os_template** | [**GPUV1OsTemplateOsTemplateResource**](GPUV1OsTemplateOsTemplateResource.md) | | [optional] [default to undefined]
|
|
16
|
+
**llm_model_variant** | [**GPUV1LlmModelVariantLlmModelVariantResource**](GPUV1LlmModelVariantLlmModelVariantResource.md) | | [optional] [default to undefined]
|
|
15
17
|
**ssh_keys** | [**Array<GPUV1SshKeySshKeyResource>**](GPUV1SshKeySshKeyResource.md) | Array of [`GPU.V1.SshKey.SshKeyResource`](#model/gpuv1sshkeysshkeyresource) | [optional] [default to undefined]
|
|
16
18
|
|
|
17
19
|
## Example
|
|
@@ -24,9 +26,11 @@ const instance: GPUV1InstanceInstanceResource = {
|
|
|
24
26
|
name,
|
|
25
27
|
status,
|
|
26
28
|
action_lock,
|
|
29
|
+
action_lock_reason,
|
|
27
30
|
pool,
|
|
28
31
|
pool_instance,
|
|
29
32
|
os_template,
|
|
33
|
+
llm_model_variant,
|
|
30
34
|
ssh_keys,
|
|
31
35
|
};
|
|
32
36
|
```
|