@nexgencloud/hyperstack-sdk-typescript 1.52.3-alpha → 1.55.1-alpha
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 +792 -47
- package/common.ts +2 -2
- package/dist/api.d.ts +714 -219
- package/dist/api.js +446 -4
- package/dist/esm/api.d.ts +714 -219
- package/dist/esm/api.js +438 -0
- package/package.json +1 -1
package/dist/esm/api.js
CHANGED
|
@@ -8616,6 +8616,246 @@ export class DeploymentApi extends BaseAPI {
|
|
|
8616
8616
|
return DeploymentApiFp(this.configuration).startDeployment(payload, options).then((request) => request(this.axios, this.basePath));
|
|
8617
8617
|
}
|
|
8618
8618
|
}
|
|
8619
|
+
/**
|
|
8620
|
+
* EmailOptInOutApi - axios parameter creator
|
|
8621
|
+
* @export
|
|
8622
|
+
*/
|
|
8623
|
+
export const EmailOptInOutApiAxiosParamCreator = function (configuration) {
|
|
8624
|
+
return {
|
|
8625
|
+
/**
|
|
8626
|
+
* Returns all email categories with the user\'s opt-in status. Categories without an explicit preference default to opted_in=true.
|
|
8627
|
+
* @summary Get all email preferences for the authenticated user
|
|
8628
|
+
* @param {*} [options] Override http request option.
|
|
8629
|
+
* @throws {RequiredError}
|
|
8630
|
+
*/
|
|
8631
|
+
getEmailPreferencesForAUser: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
8632
|
+
const localVarPath = `/auth/email/opt-out`;
|
|
8633
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8634
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8635
|
+
let baseOptions;
|
|
8636
|
+
if (configuration) {
|
|
8637
|
+
baseOptions = configuration.baseOptions;
|
|
8638
|
+
}
|
|
8639
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
8640
|
+
const localVarHeaderParameter = {};
|
|
8641
|
+
const localVarQueryParameter = {};
|
|
8642
|
+
// authentication apiKey required
|
|
8643
|
+
yield setApiKeyToObject(localVarHeaderParameter, "api_key", configuration);
|
|
8644
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8645
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8646
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8647
|
+
return {
|
|
8648
|
+
url: toPathString(localVarUrlObj),
|
|
8649
|
+
options: localVarRequestOptions,
|
|
8650
|
+
};
|
|
8651
|
+
}),
|
|
8652
|
+
/**
|
|
8653
|
+
* Sets opted_in to the given value for every non-required, non-deleted email category. Required categories are not affected.
|
|
8654
|
+
* @summary Toggle all optional email preferences for the authenticated user
|
|
8655
|
+
* @param {UpdateEmailPreferenceInput} payload
|
|
8656
|
+
* @param {*} [options] Override http request option.
|
|
8657
|
+
* @throws {RequiredError}
|
|
8658
|
+
*/
|
|
8659
|
+
toggleAllOptionalEmailPreferencesForTheUser: (payload_1, ...args_1) => __awaiter(this, [payload_1, ...args_1], void 0, function* (payload, options = {}) {
|
|
8660
|
+
// verify required parameter 'payload' is not null or undefined
|
|
8661
|
+
assertParamExists('toggleAllOptionalEmailPreferencesForTheUser', 'payload', payload);
|
|
8662
|
+
const localVarPath = `/auth/email/opt-out`;
|
|
8663
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8664
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8665
|
+
let baseOptions;
|
|
8666
|
+
if (configuration) {
|
|
8667
|
+
baseOptions = configuration.baseOptions;
|
|
8668
|
+
}
|
|
8669
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
8670
|
+
const localVarHeaderParameter = {};
|
|
8671
|
+
const localVarQueryParameter = {};
|
|
8672
|
+
// authentication apiKey required
|
|
8673
|
+
yield setApiKeyToObject(localVarHeaderParameter, "api_key", configuration);
|
|
8674
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8675
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8676
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8677
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8678
|
+
localVarRequestOptions.data = serializeDataIfNeeded(payload, localVarRequestOptions, configuration);
|
|
8679
|
+
return {
|
|
8680
|
+
url: toPathString(localVarUrlObj),
|
|
8681
|
+
options: localVarRequestOptions,
|
|
8682
|
+
};
|
|
8683
|
+
}),
|
|
8684
|
+
/**
|
|
8685
|
+
* Updates the opted_in status for the given email category slug. If the slug belongs to a parent category (email_category_id is null), all non-deleted child categories are updated. If the slug belongs to a child category, only that category is updated.
|
|
8686
|
+
* @summary Update email preference opted_in status for a category slug
|
|
8687
|
+
* @param {string} slug
|
|
8688
|
+
* @param {UpdateEmailPreferenceInput} payload
|
|
8689
|
+
* @param {*} [options] Override http request option.
|
|
8690
|
+
* @throws {RequiredError}
|
|
8691
|
+
*/
|
|
8692
|
+
updateEmailPreferenceForACategoryBySlug: (slug_1, payload_1, ...args_1) => __awaiter(this, [slug_1, payload_1, ...args_1], void 0, function* (slug, payload, options = {}) {
|
|
8693
|
+
// verify required parameter 'slug' is not null or undefined
|
|
8694
|
+
assertParamExists('updateEmailPreferenceForACategoryBySlug', 'slug', slug);
|
|
8695
|
+
// verify required parameter 'payload' is not null or undefined
|
|
8696
|
+
assertParamExists('updateEmailPreferenceForACategoryBySlug', 'payload', payload);
|
|
8697
|
+
const localVarPath = `/auth/email/opt-out/{slug}`
|
|
8698
|
+
.replace(`{${"slug"}}`, encodeURIComponent(String(slug)));
|
|
8699
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8700
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8701
|
+
let baseOptions;
|
|
8702
|
+
if (configuration) {
|
|
8703
|
+
baseOptions = configuration.baseOptions;
|
|
8704
|
+
}
|
|
8705
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
8706
|
+
const localVarHeaderParameter = {};
|
|
8707
|
+
const localVarQueryParameter = {};
|
|
8708
|
+
// authentication apiKey required
|
|
8709
|
+
yield setApiKeyToObject(localVarHeaderParameter, "api_key", configuration);
|
|
8710
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8711
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8712
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8713
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8714
|
+
localVarRequestOptions.data = serializeDataIfNeeded(payload, localVarRequestOptions, configuration);
|
|
8715
|
+
return {
|
|
8716
|
+
url: toPathString(localVarUrlObj),
|
|
8717
|
+
options: localVarRequestOptions,
|
|
8718
|
+
};
|
|
8719
|
+
}),
|
|
8720
|
+
};
|
|
8721
|
+
};
|
|
8722
|
+
/**
|
|
8723
|
+
* EmailOptInOutApi - functional programming interface
|
|
8724
|
+
* @export
|
|
8725
|
+
*/
|
|
8726
|
+
export const EmailOptInOutApiFp = function (configuration) {
|
|
8727
|
+
const localVarAxiosParamCreator = EmailOptInOutApiAxiosParamCreator(configuration);
|
|
8728
|
+
return {
|
|
8729
|
+
/**
|
|
8730
|
+
* Returns all email categories with the user\'s opt-in status. Categories without an explicit preference default to opted_in=true.
|
|
8731
|
+
* @summary Get all email preferences for the authenticated user
|
|
8732
|
+
* @param {*} [options] Override http request option.
|
|
8733
|
+
* @throws {RequiredError}
|
|
8734
|
+
*/
|
|
8735
|
+
getEmailPreferencesForAUser(options) {
|
|
8736
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8737
|
+
var _a, _b, _c;
|
|
8738
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getEmailPreferencesForAUser(options);
|
|
8739
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8740
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EmailOptInOutApi.getEmailPreferencesForAUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8741
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8742
|
+
});
|
|
8743
|
+
},
|
|
8744
|
+
/**
|
|
8745
|
+
* Sets opted_in to the given value for every non-required, non-deleted email category. Required categories are not affected.
|
|
8746
|
+
* @summary Toggle all optional email preferences for the authenticated user
|
|
8747
|
+
* @param {UpdateEmailPreferenceInput} payload
|
|
8748
|
+
* @param {*} [options] Override http request option.
|
|
8749
|
+
* @throws {RequiredError}
|
|
8750
|
+
*/
|
|
8751
|
+
toggleAllOptionalEmailPreferencesForTheUser(payload, options) {
|
|
8752
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8753
|
+
var _a, _b, _c;
|
|
8754
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.toggleAllOptionalEmailPreferencesForTheUser(payload, options);
|
|
8755
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8756
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EmailOptInOutApi.toggleAllOptionalEmailPreferencesForTheUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8757
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8758
|
+
});
|
|
8759
|
+
},
|
|
8760
|
+
/**
|
|
8761
|
+
* Updates the opted_in status for the given email category slug. If the slug belongs to a parent category (email_category_id is null), all non-deleted child categories are updated. If the slug belongs to a child category, only that category is updated.
|
|
8762
|
+
* @summary Update email preference opted_in status for a category slug
|
|
8763
|
+
* @param {string} slug
|
|
8764
|
+
* @param {UpdateEmailPreferenceInput} payload
|
|
8765
|
+
* @param {*} [options] Override http request option.
|
|
8766
|
+
* @throws {RequiredError}
|
|
8767
|
+
*/
|
|
8768
|
+
updateEmailPreferenceForACategoryBySlug(slug, payload, options) {
|
|
8769
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8770
|
+
var _a, _b, _c;
|
|
8771
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateEmailPreferenceForACategoryBySlug(slug, payload, options);
|
|
8772
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8773
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EmailOptInOutApi.updateEmailPreferenceForACategoryBySlug']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8774
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8775
|
+
});
|
|
8776
|
+
},
|
|
8777
|
+
};
|
|
8778
|
+
};
|
|
8779
|
+
/**
|
|
8780
|
+
* EmailOptInOutApi - factory interface
|
|
8781
|
+
* @export
|
|
8782
|
+
*/
|
|
8783
|
+
export const EmailOptInOutApiFactory = function (configuration, basePath, axios) {
|
|
8784
|
+
const localVarFp = EmailOptInOutApiFp(configuration);
|
|
8785
|
+
return {
|
|
8786
|
+
/**
|
|
8787
|
+
* Returns all email categories with the user\'s opt-in status. Categories without an explicit preference default to opted_in=true.
|
|
8788
|
+
* @summary Get all email preferences for the authenticated user
|
|
8789
|
+
* @param {*} [options] Override http request option.
|
|
8790
|
+
* @throws {RequiredError}
|
|
8791
|
+
*/
|
|
8792
|
+
getEmailPreferencesForAUser(options) {
|
|
8793
|
+
return localVarFp.getEmailPreferencesForAUser(options).then((request) => request(axios, basePath));
|
|
8794
|
+
},
|
|
8795
|
+
/**
|
|
8796
|
+
* Sets opted_in to the given value for every non-required, non-deleted email category. Required categories are not affected.
|
|
8797
|
+
* @summary Toggle all optional email preferences for the authenticated user
|
|
8798
|
+
* @param {UpdateEmailPreferenceInput} payload
|
|
8799
|
+
* @param {*} [options] Override http request option.
|
|
8800
|
+
* @throws {RequiredError}
|
|
8801
|
+
*/
|
|
8802
|
+
toggleAllOptionalEmailPreferencesForTheUser(payload, options) {
|
|
8803
|
+
return localVarFp.toggleAllOptionalEmailPreferencesForTheUser(payload, options).then((request) => request(axios, basePath));
|
|
8804
|
+
},
|
|
8805
|
+
/**
|
|
8806
|
+
* Updates the opted_in status for the given email category slug. If the slug belongs to a parent category (email_category_id is null), all non-deleted child categories are updated. If the slug belongs to a child category, only that category is updated.
|
|
8807
|
+
* @summary Update email preference opted_in status for a category slug
|
|
8808
|
+
* @param {string} slug
|
|
8809
|
+
* @param {UpdateEmailPreferenceInput} payload
|
|
8810
|
+
* @param {*} [options] Override http request option.
|
|
8811
|
+
* @throws {RequiredError}
|
|
8812
|
+
*/
|
|
8813
|
+
updateEmailPreferenceForACategoryBySlug(slug, payload, options) {
|
|
8814
|
+
return localVarFp.updateEmailPreferenceForACategoryBySlug(slug, payload, options).then((request) => request(axios, basePath));
|
|
8815
|
+
},
|
|
8816
|
+
};
|
|
8817
|
+
};
|
|
8818
|
+
/**
|
|
8819
|
+
* EmailOptInOutApi - object-oriented interface
|
|
8820
|
+
* @export
|
|
8821
|
+
* @class EmailOptInOutApi
|
|
8822
|
+
* @extends {BaseAPI}
|
|
8823
|
+
*/
|
|
8824
|
+
export class EmailOptInOutApi extends BaseAPI {
|
|
8825
|
+
/**
|
|
8826
|
+
* Returns all email categories with the user\'s opt-in status. Categories without an explicit preference default to opted_in=true.
|
|
8827
|
+
* @summary Get all email preferences for the authenticated user
|
|
8828
|
+
* @param {*} [options] Override http request option.
|
|
8829
|
+
* @throws {RequiredError}
|
|
8830
|
+
* @memberof EmailOptInOutApi
|
|
8831
|
+
*/
|
|
8832
|
+
getEmailPreferencesForAUser(options) {
|
|
8833
|
+
return EmailOptInOutApiFp(this.configuration).getEmailPreferencesForAUser(options).then((request) => request(this.axios, this.basePath));
|
|
8834
|
+
}
|
|
8835
|
+
/**
|
|
8836
|
+
* Sets opted_in to the given value for every non-required, non-deleted email category. Required categories are not affected.
|
|
8837
|
+
* @summary Toggle all optional email preferences for the authenticated user
|
|
8838
|
+
* @param {UpdateEmailPreferenceInput} payload
|
|
8839
|
+
* @param {*} [options] Override http request option.
|
|
8840
|
+
* @throws {RequiredError}
|
|
8841
|
+
* @memberof EmailOptInOutApi
|
|
8842
|
+
*/
|
|
8843
|
+
toggleAllOptionalEmailPreferencesForTheUser(payload, options) {
|
|
8844
|
+
return EmailOptInOutApiFp(this.configuration).toggleAllOptionalEmailPreferencesForTheUser(payload, options).then((request) => request(this.axios, this.basePath));
|
|
8845
|
+
}
|
|
8846
|
+
/**
|
|
8847
|
+
* Updates the opted_in status for the given email category slug. If the slug belongs to a parent category (email_category_id is null), all non-deleted child categories are updated. If the slug belongs to a child category, only that category is updated.
|
|
8848
|
+
* @summary Update email preference opted_in status for a category slug
|
|
8849
|
+
* @param {string} slug
|
|
8850
|
+
* @param {UpdateEmailPreferenceInput} payload
|
|
8851
|
+
* @param {*} [options] Override http request option.
|
|
8852
|
+
* @throws {RequiredError}
|
|
8853
|
+
* @memberof EmailOptInOutApi
|
|
8854
|
+
*/
|
|
8855
|
+
updateEmailPreferenceForACategoryBySlug(slug, payload, options) {
|
|
8856
|
+
return EmailOptInOutApiFp(this.configuration).updateEmailPreferenceForACategoryBySlug(slug, payload, options).then((request) => request(this.axios, this.basePath));
|
|
8857
|
+
}
|
|
8858
|
+
}
|
|
8619
8859
|
/**
|
|
8620
8860
|
* EnvironmentApi - axios parameter creator
|
|
8621
8861
|
* @export
|
|
@@ -11047,6 +11287,33 @@ export const KeypairApiAxiosParamCreator = function (configuration) {
|
|
|
11047
11287
|
options: localVarRequestOptions,
|
|
11048
11288
|
};
|
|
11049
11289
|
}),
|
|
11290
|
+
/**
|
|
11291
|
+
* Retrieves the SSH public key types supported for import.
|
|
11292
|
+
* @summary List supported key pair types
|
|
11293
|
+
* @param {*} [options] Override http request option.
|
|
11294
|
+
* @throws {RequiredError}
|
|
11295
|
+
*/
|
|
11296
|
+
listSupportedKeyPairTypes: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
11297
|
+
const localVarPath = `/core/supported-keypairs`;
|
|
11298
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11299
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
11300
|
+
let baseOptions;
|
|
11301
|
+
if (configuration) {
|
|
11302
|
+
baseOptions = configuration.baseOptions;
|
|
11303
|
+
}
|
|
11304
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
11305
|
+
const localVarHeaderParameter = {};
|
|
11306
|
+
const localVarQueryParameter = {};
|
|
11307
|
+
// authentication apiKey required
|
|
11308
|
+
yield setApiKeyToObject(localVarHeaderParameter, "api_key", configuration);
|
|
11309
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
11310
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11311
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11312
|
+
return {
|
|
11313
|
+
url: toPathString(localVarUrlObj),
|
|
11314
|
+
options: localVarRequestOptions,
|
|
11315
|
+
};
|
|
11316
|
+
}),
|
|
11050
11317
|
/**
|
|
11051
11318
|
* Updates the name of a specified key pair. Provide the key pair ID in the path, and include the new `name` in the request body.
|
|
11052
11319
|
* @summary Update key pair name
|
|
@@ -11142,6 +11409,21 @@ export const KeypairApiFp = function (configuration) {
|
|
|
11142
11409
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11143
11410
|
});
|
|
11144
11411
|
},
|
|
11412
|
+
/**
|
|
11413
|
+
* Retrieves the SSH public key types supported for import.
|
|
11414
|
+
* @summary List supported key pair types
|
|
11415
|
+
* @param {*} [options] Override http request option.
|
|
11416
|
+
* @throws {RequiredError}
|
|
11417
|
+
*/
|
|
11418
|
+
listSupportedKeyPairTypes(options) {
|
|
11419
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11420
|
+
var _a, _b, _c;
|
|
11421
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listSupportedKeyPairTypes(options);
|
|
11422
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
11423
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['KeypairApi.listSupportedKeyPairTypes']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
11424
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11425
|
+
});
|
|
11426
|
+
},
|
|
11145
11427
|
/**
|
|
11146
11428
|
* Updates the name of a specified key pair. Provide the key pair ID in the path, and include the new `name` in the request body.
|
|
11147
11429
|
* @summary Update key pair name
|
|
@@ -11200,6 +11482,15 @@ export const KeypairApiFactory = function (configuration, basePath, axios) {
|
|
|
11200
11482
|
listKeyPairs(page, pageSize, search, options) {
|
|
11201
11483
|
return localVarFp.listKeyPairs(page, pageSize, search, options).then((request) => request(axios, basePath));
|
|
11202
11484
|
},
|
|
11485
|
+
/**
|
|
11486
|
+
* Retrieves the SSH public key types supported for import.
|
|
11487
|
+
* @summary List supported key pair types
|
|
11488
|
+
* @param {*} [options] Override http request option.
|
|
11489
|
+
* @throws {RequiredError}
|
|
11490
|
+
*/
|
|
11491
|
+
listSupportedKeyPairTypes(options) {
|
|
11492
|
+
return localVarFp.listSupportedKeyPairTypes(options).then((request) => request(axios, basePath));
|
|
11493
|
+
},
|
|
11203
11494
|
/**
|
|
11204
11495
|
* Updates the name of a specified key pair. Provide the key pair ID in the path, and include the new `name` in the request body.
|
|
11205
11496
|
* @summary Update key pair name
|
|
@@ -11255,6 +11546,16 @@ export class KeypairApi extends BaseAPI {
|
|
|
11255
11546
|
listKeyPairs(page, pageSize, search, options) {
|
|
11256
11547
|
return KeypairApiFp(this.configuration).listKeyPairs(page, pageSize, search, options).then((request) => request(this.axios, this.basePath));
|
|
11257
11548
|
}
|
|
11549
|
+
/**
|
|
11550
|
+
* Retrieves the SSH public key types supported for import.
|
|
11551
|
+
* @summary List supported key pair types
|
|
11552
|
+
* @param {*} [options] Override http request option.
|
|
11553
|
+
* @throws {RequiredError}
|
|
11554
|
+
* @memberof KeypairApi
|
|
11555
|
+
*/
|
|
11556
|
+
listSupportedKeyPairTypes(options) {
|
|
11557
|
+
return KeypairApiFp(this.configuration).listSupportedKeyPairTypes(options).then((request) => request(this.axios, this.basePath));
|
|
11558
|
+
}
|
|
11258
11559
|
/**
|
|
11259
11560
|
* Updates the name of a specified key pair. Provide the key pair ID in the path, and include the new `name` in the request body.
|
|
11260
11561
|
* @summary Update key pair name
|
|
@@ -14255,6 +14556,33 @@ export const UserApiAxiosParamCreator = function (configuration) {
|
|
|
14255
14556
|
options: localVarRequestOptions,
|
|
14256
14557
|
};
|
|
14257
14558
|
}),
|
|
14559
|
+
/**
|
|
14560
|
+
* Retrieve the list of allowed ISO 3166-1 alpha-2 country codes that can be used for billing information.
|
|
14561
|
+
* @summary GET: Retrieve allowed country codes
|
|
14562
|
+
* @param {*} [options] Override http request option.
|
|
14563
|
+
* @throws {RequiredError}
|
|
14564
|
+
*/
|
|
14565
|
+
getAllowedCountryCodes: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
14566
|
+
const localVarPath = `/billing/user/countries`;
|
|
14567
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14568
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
14569
|
+
let baseOptions;
|
|
14570
|
+
if (configuration) {
|
|
14571
|
+
baseOptions = configuration.baseOptions;
|
|
14572
|
+
}
|
|
14573
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
14574
|
+
const localVarHeaderParameter = {};
|
|
14575
|
+
const localVarQueryParameter = {};
|
|
14576
|
+
// authentication apiKey required
|
|
14577
|
+
yield setApiKeyToObject(localVarHeaderParameter, "api_key", configuration);
|
|
14578
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14579
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14580
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14581
|
+
return {
|
|
14582
|
+
url: toPathString(localVarUrlObj),
|
|
14583
|
+
options: localVarRequestOptions,
|
|
14584
|
+
};
|
|
14585
|
+
}),
|
|
14258
14586
|
/**
|
|
14259
14587
|
* Retrieve the billing details associated with your user.
|
|
14260
14588
|
* @summary GET: Retrieve billing info
|
|
@@ -14339,6 +14667,21 @@ export const UserApiFp = function (configuration) {
|
|
|
14339
14667
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14340
14668
|
});
|
|
14341
14669
|
},
|
|
14670
|
+
/**
|
|
14671
|
+
* Retrieve the list of allowed ISO 3166-1 alpha-2 country codes that can be used for billing information.
|
|
14672
|
+
* @summary GET: Retrieve allowed country codes
|
|
14673
|
+
* @param {*} [options] Override http request option.
|
|
14674
|
+
* @throws {RequiredError}
|
|
14675
|
+
*/
|
|
14676
|
+
getAllowedCountryCodes(options) {
|
|
14677
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14678
|
+
var _a, _b, _c;
|
|
14679
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getAllowedCountryCodes(options);
|
|
14680
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
14681
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserApi.getAllowedCountryCodes']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
14682
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14683
|
+
});
|
|
14684
|
+
},
|
|
14342
14685
|
/**
|
|
14343
14686
|
* Retrieve the billing details associated with your user.
|
|
14344
14687
|
* @summary GET: Retrieve billing info
|
|
@@ -14389,6 +14732,15 @@ export const UserApiFactory = function (configuration, basePath, axios) {
|
|
|
14389
14732
|
addUserBillingInfo(payload, options) {
|
|
14390
14733
|
return localVarFp.addUserBillingInfo(payload, options).then((request) => request(axios, basePath));
|
|
14391
14734
|
},
|
|
14735
|
+
/**
|
|
14736
|
+
* Retrieve the list of allowed ISO 3166-1 alpha-2 country codes that can be used for billing information.
|
|
14737
|
+
* @summary GET: Retrieve allowed country codes
|
|
14738
|
+
* @param {*} [options] Override http request option.
|
|
14739
|
+
* @throws {RequiredError}
|
|
14740
|
+
*/
|
|
14741
|
+
getAllowedCountryCodes(options) {
|
|
14742
|
+
return localVarFp.getAllowedCountryCodes(options).then((request) => request(axios, basePath));
|
|
14743
|
+
},
|
|
14392
14744
|
/**
|
|
14393
14745
|
* Retrieve the billing details associated with your user.
|
|
14394
14746
|
* @summary GET: Retrieve billing info
|
|
@@ -14428,6 +14780,16 @@ export class UserApi extends BaseAPI {
|
|
|
14428
14780
|
addUserBillingInfo(payload, options) {
|
|
14429
14781
|
return UserApiFp(this.configuration).addUserBillingInfo(payload, options).then((request) => request(this.axios, this.basePath));
|
|
14430
14782
|
}
|
|
14783
|
+
/**
|
|
14784
|
+
* Retrieve the list of allowed ISO 3166-1 alpha-2 country codes that can be used for billing information.
|
|
14785
|
+
* @summary GET: Retrieve allowed country codes
|
|
14786
|
+
* @param {*} [options] Override http request option.
|
|
14787
|
+
* @throws {RequiredError}
|
|
14788
|
+
* @memberof UserApi
|
|
14789
|
+
*/
|
|
14790
|
+
getAllowedCountryCodes(options) {
|
|
14791
|
+
return UserApiFp(this.configuration).getAllowedCountryCodes(options).then((request) => request(this.axios, this.basePath));
|
|
14792
|
+
}
|
|
14431
14793
|
/**
|
|
14432
14794
|
* Retrieve the billing details associated with your user.
|
|
14433
14795
|
* @summary GET: Retrieve billing info
|
|
@@ -15897,6 +16259,42 @@ export const VirtualMachineApiAxiosParamCreator = function (configuration) {
|
|
|
15897
16259
|
options: localVarRequestOptions,
|
|
15898
16260
|
};
|
|
15899
16261
|
}),
|
|
16262
|
+
/**
|
|
16263
|
+
* Enable or disable the Hyperstack VM Agent (Enhanced Metrics) for an existing virtual machine. The agent itself must be installed/removed manually inside the VM — the response includes the install command when enabling.
|
|
16264
|
+
* @summary Enable or disable Enhanced Metrics for a virtual machine
|
|
16265
|
+
* @param {number} vmId
|
|
16266
|
+
* @param {UserEnhancedMetricsPayload} payload
|
|
16267
|
+
* @param {*} [options] Override http request option.
|
|
16268
|
+
* @throws {RequiredError}
|
|
16269
|
+
*/
|
|
16270
|
+
toggleEnhancedMetricsForAVM: (vmId_1, payload_1, ...args_1) => __awaiter(this, [vmId_1, payload_1, ...args_1], void 0, function* (vmId, payload, options = {}) {
|
|
16271
|
+
// verify required parameter 'vmId' is not null or undefined
|
|
16272
|
+
assertParamExists('toggleEnhancedMetricsForAVM', 'vmId', vmId);
|
|
16273
|
+
// verify required parameter 'payload' is not null or undefined
|
|
16274
|
+
assertParamExists('toggleEnhancedMetricsForAVM', 'payload', payload);
|
|
16275
|
+
const localVarPath = `/core/virtual-machines/{vm_id}/enhanced-metrics`
|
|
16276
|
+
.replace(`{${"vm_id"}}`, encodeURIComponent(String(vmId)));
|
|
16277
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16278
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16279
|
+
let baseOptions;
|
|
16280
|
+
if (configuration) {
|
|
16281
|
+
baseOptions = configuration.baseOptions;
|
|
16282
|
+
}
|
|
16283
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
16284
|
+
const localVarHeaderParameter = {};
|
|
16285
|
+
const localVarQueryParameter = {};
|
|
16286
|
+
// authentication apiKey required
|
|
16287
|
+
yield setApiKeyToObject(localVarHeaderParameter, "api_key", configuration);
|
|
16288
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16289
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16290
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16291
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
16292
|
+
localVarRequestOptions.data = serializeDataIfNeeded(payload, localVarRequestOptions, configuration);
|
|
16293
|
+
return {
|
|
16294
|
+
url: toPathString(localVarUrlObj),
|
|
16295
|
+
options: localVarRequestOptions,
|
|
16296
|
+
};
|
|
16297
|
+
}),
|
|
15900
16298
|
};
|
|
15901
16299
|
};
|
|
15902
16300
|
/**
|
|
@@ -16245,6 +16643,23 @@ export const VirtualMachineApiFp = function (configuration) {
|
|
|
16245
16643
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16246
16644
|
});
|
|
16247
16645
|
},
|
|
16646
|
+
/**
|
|
16647
|
+
* Enable or disable the Hyperstack VM Agent (Enhanced Metrics) for an existing virtual machine. The agent itself must be installed/removed manually inside the VM — the response includes the install command when enabling.
|
|
16648
|
+
* @summary Enable or disable Enhanced Metrics for a virtual machine
|
|
16649
|
+
* @param {number} vmId
|
|
16650
|
+
* @param {UserEnhancedMetricsPayload} payload
|
|
16651
|
+
* @param {*} [options] Override http request option.
|
|
16652
|
+
* @throws {RequiredError}
|
|
16653
|
+
*/
|
|
16654
|
+
toggleEnhancedMetricsForAVM(vmId, payload, options) {
|
|
16655
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
16656
|
+
var _a, _b, _c;
|
|
16657
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.toggleEnhancedMetricsForAVM(vmId, payload, options);
|
|
16658
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
16659
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['VirtualMachineApi.toggleEnhancedMetricsForAVM']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
16660
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16661
|
+
});
|
|
16662
|
+
},
|
|
16248
16663
|
};
|
|
16249
16664
|
};
|
|
16250
16665
|
/**
|
|
@@ -16473,6 +16888,17 @@ export const VirtualMachineApiFactory = function (configuration, basePath, axios
|
|
|
16473
16888
|
stopVM(vmId, options) {
|
|
16474
16889
|
return localVarFp.stopVM(vmId, options).then((request) => request(axios, basePath));
|
|
16475
16890
|
},
|
|
16891
|
+
/**
|
|
16892
|
+
* Enable or disable the Hyperstack VM Agent (Enhanced Metrics) for an existing virtual machine. The agent itself must be installed/removed manually inside the VM — the response includes the install command when enabling.
|
|
16893
|
+
* @summary Enable or disable Enhanced Metrics for a virtual machine
|
|
16894
|
+
* @param {number} vmId
|
|
16895
|
+
* @param {UserEnhancedMetricsPayload} payload
|
|
16896
|
+
* @param {*} [options] Override http request option.
|
|
16897
|
+
* @throws {RequiredError}
|
|
16898
|
+
*/
|
|
16899
|
+
toggleEnhancedMetricsForAVM(vmId, payload, options) {
|
|
16900
|
+
return localVarFp.toggleEnhancedMetricsForAVM(vmId, payload, options).then((request) => request(axios, basePath));
|
|
16901
|
+
},
|
|
16476
16902
|
};
|
|
16477
16903
|
};
|
|
16478
16904
|
/**
|
|
@@ -16721,6 +17147,18 @@ export class VirtualMachineApi extends BaseAPI {
|
|
|
16721
17147
|
stopVM(vmId, options) {
|
|
16722
17148
|
return VirtualMachineApiFp(this.configuration).stopVM(vmId, options).then((request) => request(this.axios, this.basePath));
|
|
16723
17149
|
}
|
|
17150
|
+
/**
|
|
17151
|
+
* Enable or disable the Hyperstack VM Agent (Enhanced Metrics) for an existing virtual machine. The agent itself must be installed/removed manually inside the VM — the response includes the install command when enabling.
|
|
17152
|
+
* @summary Enable or disable Enhanced Metrics for a virtual machine
|
|
17153
|
+
* @param {number} vmId
|
|
17154
|
+
* @param {UserEnhancedMetricsPayload} payload
|
|
17155
|
+
* @param {*} [options] Override http request option.
|
|
17156
|
+
* @throws {RequiredError}
|
|
17157
|
+
* @memberof VirtualMachineApi
|
|
17158
|
+
*/
|
|
17159
|
+
toggleEnhancedMetricsForAVM(vmId, payload, options) {
|
|
17160
|
+
return VirtualMachineApiFp(this.configuration).toggleEnhancedMetricsForAVM(vmId, payload, options).then((request) => request(this.axios, this.basePath));
|
|
17161
|
+
}
|
|
16724
17162
|
}
|
|
16725
17163
|
/**
|
|
16726
17164
|
* @export
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nexgencloud/hyperstack-sdk-typescript",
|
|
3
|
-
"version": "v1.
|
|
3
|
+
"version": "v1.55.1-alpha",
|
|
4
4
|
"description": "Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.",
|
|
5
5
|
"author": "OpenAPI-Generator Contributors",
|
|
6
6
|
"repository": {
|