@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/api.js
CHANGED
|
@@ -23,10 +23,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
25
|
exports.BucketsApiAxiosParamCreator = exports.BillingApi = exports.BillingApiFactory = exports.BillingApiFp = exports.BillingApiAxiosParamCreator = exports.BetaAccessApi = exports.BetaAccessApiFactory = exports.BetaAccessApiFp = exports.BetaAccessApiAxiosParamCreator = exports.AutoTopupApi = exports.AutoTopupApiFactory = exports.AutoTopupApiFp = exports.AutoTopupApiAxiosParamCreator = exports.AuthApi = exports.AuthApiFactory = exports.AuthApiFp = exports.AuthApiAxiosParamCreator = exports.AssigningMemberRoleApi = exports.AssigningMemberRoleApiFactory = exports.AssigningMemberRoleApiFp = exports.AssigningMemberRoleApiAxiosParamCreator = exports.ApiKeyApi = exports.ApiKeyApiFactory = exports.ApiKeyApiFp = exports.ApiKeyApiAxiosParamCreator = exports.AliveApi = exports.AliveApiFactory = exports.AliveApiFp = exports.AliveApiAxiosParamCreator = exports.AccessKeysApi = exports.AccessKeysApiFactory = exports.AccessKeysApiFp = exports.AccessKeysApiAxiosParamCreator = exports.UpdateConsentRequestConsentMethodEnum = exports.UpdateConsentRequestActionEnum = exports.RegionFieldsGreenStatusEnum = exports.RecordConsentRequestConsentTypeEnum = exports.RecordConsentRequestConsentMethodEnum = exports.RecordConsentRequestActionEnum = exports.ObjectStorageRegionsEnum = exports.KeypairEnvironmentFeaturesGreenStatusEnum = exports.EnvironmentFeaturesGreenStatusEnum = exports.CreateSecurityRulePayloadProtocolEnum = exports.CreateFirewallRulePayloadProtocolEnum = exports.CreateClusterPayloadDeploymentModeEnum = exports.CreateClusterNodeGroupPayloadRoleEnum = exports.CreateClusterNodeFieldsRoleEnum = exports.ConsentBlockTypeEnum = exports.BetaAccessStatusItemStatusEnum = exports.BetaAccessRequestFieldsStatusEnum = void 0;
|
|
26
|
-
exports.
|
|
27
|
-
exports.
|
|
28
|
-
exports.
|
|
29
|
-
exports.VouchersApi = exports.VouchersApiFactory = exports.VouchersApiFp = exports.VouchersApiAxiosParamCreator = exports.VolumeAttachmentApi = exports.VolumeAttachmentApiFactory = exports.VolumeAttachmentApiFp = exports.VolumeAttachmentApiAxiosParamCreator = exports.VolumeApi = exports.VolumeApiFactory = exports.VolumeApiFp = exports.VolumeApiAxiosParamCreator = exports.VncUrlApi = exports.VncUrlApiFactory = exports.VncUrlApiFp = exports.VncUrlApiAxiosParamCreator = exports.VirtualMachineEventsApi = exports.VirtualMachineEventsApiFactory = exports.VirtualMachineEventsApiFp = exports.VirtualMachineEventsApiAxiosParamCreator = exports.GetVMMetricsDurationEnum = exports.VirtualMachineApi = exports.VirtualMachineApiFactory = exports.VirtualMachineApiFp = exports.VirtualMachineApiAxiosParamCreator = exports.UserPermissionApi = exports.UserPermissionApiFactory = exports.UserPermissionApiFp = exports.UserPermissionApiAxiosParamCreator = exports.UserDetailChoiceApi = exports.UserDetailChoiceApiFactory = exports.UserDetailChoiceApiFp = exports.UserDetailChoiceApiAxiosParamCreator = exports.UserConsentEventsApi = exports.UserConsentEventsApiFactory = exports.UserConsentEventsApiFp = exports.UserConsentEventsApiAxiosParamCreator = exports.UserConsentApi = void 0;
|
|
26
|
+
exports.FIPExclusionsApiFactory = exports.FIPExclusionsApiFp = exports.FIPExclusionsApiAxiosParamCreator = exports.EnvironmentApi = exports.EnvironmentApiFactory = exports.EnvironmentApiFp = exports.EnvironmentApiAxiosParamCreator = exports.EmailOptInOutApi = exports.EmailOptInOutApiFactory = exports.EmailOptInOutApiFp = exports.EmailOptInOutApiAxiosParamCreator = exports.DeploymentApi = exports.DeploymentApiFactory = exports.DeploymentApiFp = exports.DeploymentApiAxiosParamCreator = exports.DashboardApi = exports.DashboardApiFactory = exports.DashboardApiFp = exports.DashboardApiAxiosParamCreator = exports.CustomerContractApi = exports.CustomerContractApiFactory = exports.CustomerContractApiFp = exports.CustomerContractApiAxiosParamCreator = exports.CreditApi = exports.CreditApiFactory = exports.CreditApiFp = exports.CreditApiAxiosParamCreator = exports.ComplianceApi = exports.ComplianceApiFactory = exports.ComplianceApiFp = exports.ComplianceApiAxiosParamCreator = exports.ClustersApi = exports.ClustersApiFactory = exports.ClustersApiFp = exports.ClustersApiAxiosParamCreator = exports.ClusterEventsApi = exports.ClusterEventsApiFactory = exports.ClusterEventsApiFp = exports.ClusterEventsApiAxiosParamCreator = exports.CallbacksApi = exports.CallbacksApiFactory = exports.CallbacksApiFp = exports.CallbacksApiAxiosParamCreator = exports.CalculateApi = exports.CalculateApiFactory = exports.CalculateApiFp = exports.CalculateApiAxiosParamCreator = exports.BucketsApi = exports.BucketsApiFactory = exports.BucketsApiFp = void 0;
|
|
27
|
+
exports.PermissionApiAxiosParamCreator = exports.PaymentApi = exports.PaymentApiFactory = exports.PaymentApiFp = exports.PaymentApiAxiosParamCreator = exports.PartnerConfigApi = exports.PartnerConfigApiFactory = exports.PartnerConfigApiFp = exports.PartnerConfigApiAxiosParamCreator = exports.OrganizationApi = exports.OrganizationApiFactory = exports.OrganizationApiFp = exports.OrganizationApiAxiosParamCreator = exports.KeypairApi = exports.KeypairApiFactory = exports.KeypairApiFp = exports.KeypairApiAxiosParamCreator = exports.InviteApi = exports.InviteApiFactory = exports.InviteApiFp = exports.InviteApiAxiosParamCreator = exports.ImageApi = exports.ImageApiFactory = exports.ImageApiFp = exports.ImageApiAxiosParamCreator = exports.HealthApi = exports.HealthApiFactory = exports.HealthApiFp = exports.HealthApiAxiosParamCreator = exports.GpuApi = exports.GpuApiFactory = exports.GpuApiFp = exports.GpuApiAxiosParamCreator = exports.FloatingIpApi = exports.FloatingIpApiFactory = exports.FloatingIpApiFp = exports.FloatingIpApiAxiosParamCreator = exports.FlavorApi = exports.FlavorApiFactory = exports.FlavorApiFp = exports.FlavorApiAxiosParamCreator = exports.FirewallsApi = exports.FirewallsApiFactory = exports.FirewallsApiFp = exports.FirewallsApiAxiosParamCreator = exports.FirewallAttachmentApi = exports.FirewallAttachmentApiFactory = exports.FirewallAttachmentApiFp = exports.FirewallAttachmentApiAxiosParamCreator = exports.FIPExclusionsApi = void 0;
|
|
28
|
+
exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.TemplateApi = exports.TemplateApiFactory = exports.TemplateApiFp = exports.TemplateApiAxiosParamCreator = exports.StockApi = exports.StockApiFactory = exports.StockApiFp = exports.StockApiAxiosParamCreator = exports.SnapshotsApi = exports.SnapshotsApiFactory = exports.SnapshotsApiFp = exports.SnapshotsApiAxiosParamCreator = exports.SnapshotEventsApi = exports.SnapshotEventsApiFactory = exports.SnapshotEventsApiFp = exports.SnapshotEventsApiAxiosParamCreator = exports.SecurityRulesApi = exports.SecurityRulesApiFactory = exports.SecurityRulesApiFp = exports.SecurityRulesApiAxiosParamCreator = exports.RegionsApi = exports.RegionsApiFactory = exports.RegionsApiFp = exports.RegionsApiAxiosParamCreator = exports.RegionApi = exports.RegionApiFactory = exports.RegionApiFp = exports.RegionApiAxiosParamCreator = exports.RbacRoleApi = exports.RbacRoleApiFactory = exports.RbacRoleApiFp = exports.RbacRoleApiAxiosParamCreator = exports.ProfileApi = exports.ProfileApiFactory = exports.ProfileApiFp = exports.ProfileApiAxiosParamCreator = exports.PricebookApi = exports.PricebookApiFactory = exports.PricebookApiFp = exports.PricebookApiAxiosParamCreator = exports.PolicyApi = exports.PolicyApiFactory = exports.PolicyApiFp = exports.PolicyApiAxiosParamCreator = exports.PermissionApi = exports.PermissionApiFactory = exports.PermissionApiFp = void 0;
|
|
29
|
+
exports.VouchersApi = exports.VouchersApiFactory = exports.VouchersApiFp = exports.VouchersApiAxiosParamCreator = exports.VolumeAttachmentApi = exports.VolumeAttachmentApiFactory = exports.VolumeAttachmentApiFp = exports.VolumeAttachmentApiAxiosParamCreator = exports.VolumeApi = exports.VolumeApiFactory = exports.VolumeApiFp = exports.VolumeApiAxiosParamCreator = exports.VncUrlApi = exports.VncUrlApiFactory = exports.VncUrlApiFp = exports.VncUrlApiAxiosParamCreator = exports.VirtualMachineEventsApi = exports.VirtualMachineEventsApiFactory = exports.VirtualMachineEventsApiFp = exports.VirtualMachineEventsApiAxiosParamCreator = exports.GetVMMetricsDurationEnum = exports.VirtualMachineApi = exports.VirtualMachineApiFactory = exports.VirtualMachineApiFp = exports.VirtualMachineApiAxiosParamCreator = exports.UserPermissionApi = exports.UserPermissionApiFactory = exports.UserPermissionApiFp = exports.UserPermissionApiAxiosParamCreator = exports.UserDetailChoiceApi = exports.UserDetailChoiceApiFactory = exports.UserDetailChoiceApiFp = exports.UserDetailChoiceApiAxiosParamCreator = exports.UserConsentEventsApi = exports.UserConsentEventsApiFactory = exports.UserConsentEventsApiFp = exports.UserConsentEventsApiAxiosParamCreator = exports.UserConsentApi = exports.UserConsentApiFactory = exports.UserConsentApiFp = exports.UserConsentApiAxiosParamCreator = exports.UserApi = void 0;
|
|
30
30
|
const axios_1 = require("axios");
|
|
31
31
|
// Some imports not used depending on template conditions
|
|
32
32
|
// @ts-ignore
|
|
@@ -8695,6 +8695,250 @@ class DeploymentApi extends base_1.BaseAPI {
|
|
|
8695
8695
|
}
|
|
8696
8696
|
}
|
|
8697
8697
|
exports.DeploymentApi = DeploymentApi;
|
|
8698
|
+
/**
|
|
8699
|
+
* EmailOptInOutApi - axios parameter creator
|
|
8700
|
+
* @export
|
|
8701
|
+
*/
|
|
8702
|
+
const EmailOptInOutApiAxiosParamCreator = function (configuration) {
|
|
8703
|
+
return {
|
|
8704
|
+
/**
|
|
8705
|
+
* Returns all email categories with the user\'s opt-in status. Categories without an explicit preference default to opted_in=true.
|
|
8706
|
+
* @summary Get all email preferences for the authenticated user
|
|
8707
|
+
* @param {*} [options] Override http request option.
|
|
8708
|
+
* @throws {RequiredError}
|
|
8709
|
+
*/
|
|
8710
|
+
getEmailPreferencesForAUser: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
8711
|
+
const localVarPath = `/auth/email/opt-out`;
|
|
8712
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8713
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8714
|
+
let baseOptions;
|
|
8715
|
+
if (configuration) {
|
|
8716
|
+
baseOptions = configuration.baseOptions;
|
|
8717
|
+
}
|
|
8718
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
8719
|
+
const localVarHeaderParameter = {};
|
|
8720
|
+
const localVarQueryParameter = {};
|
|
8721
|
+
// authentication apiKey required
|
|
8722
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "api_key", configuration);
|
|
8723
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8724
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8725
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8726
|
+
return {
|
|
8727
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8728
|
+
options: localVarRequestOptions,
|
|
8729
|
+
};
|
|
8730
|
+
}),
|
|
8731
|
+
/**
|
|
8732
|
+
* Sets opted_in to the given value for every non-required, non-deleted email category. Required categories are not affected.
|
|
8733
|
+
* @summary Toggle all optional email preferences for the authenticated user
|
|
8734
|
+
* @param {UpdateEmailPreferenceInput} payload
|
|
8735
|
+
* @param {*} [options] Override http request option.
|
|
8736
|
+
* @throws {RequiredError}
|
|
8737
|
+
*/
|
|
8738
|
+
toggleAllOptionalEmailPreferencesForTheUser: (payload_1, ...args_1) => __awaiter(this, [payload_1, ...args_1], void 0, function* (payload, options = {}) {
|
|
8739
|
+
// verify required parameter 'payload' is not null or undefined
|
|
8740
|
+
(0, common_1.assertParamExists)('toggleAllOptionalEmailPreferencesForTheUser', 'payload', payload);
|
|
8741
|
+
const localVarPath = `/auth/email/opt-out`;
|
|
8742
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8743
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8744
|
+
let baseOptions;
|
|
8745
|
+
if (configuration) {
|
|
8746
|
+
baseOptions = configuration.baseOptions;
|
|
8747
|
+
}
|
|
8748
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
8749
|
+
const localVarHeaderParameter = {};
|
|
8750
|
+
const localVarQueryParameter = {};
|
|
8751
|
+
// authentication apiKey required
|
|
8752
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "api_key", configuration);
|
|
8753
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8754
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8755
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8756
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8757
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(payload, localVarRequestOptions, configuration);
|
|
8758
|
+
return {
|
|
8759
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8760
|
+
options: localVarRequestOptions,
|
|
8761
|
+
};
|
|
8762
|
+
}),
|
|
8763
|
+
/**
|
|
8764
|
+
* 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.
|
|
8765
|
+
* @summary Update email preference opted_in status for a category slug
|
|
8766
|
+
* @param {string} slug
|
|
8767
|
+
* @param {UpdateEmailPreferenceInput} payload
|
|
8768
|
+
* @param {*} [options] Override http request option.
|
|
8769
|
+
* @throws {RequiredError}
|
|
8770
|
+
*/
|
|
8771
|
+
updateEmailPreferenceForACategoryBySlug: (slug_1, payload_1, ...args_1) => __awaiter(this, [slug_1, payload_1, ...args_1], void 0, function* (slug, payload, options = {}) {
|
|
8772
|
+
// verify required parameter 'slug' is not null or undefined
|
|
8773
|
+
(0, common_1.assertParamExists)('updateEmailPreferenceForACategoryBySlug', 'slug', slug);
|
|
8774
|
+
// verify required parameter 'payload' is not null or undefined
|
|
8775
|
+
(0, common_1.assertParamExists)('updateEmailPreferenceForACategoryBySlug', 'payload', payload);
|
|
8776
|
+
const localVarPath = `/auth/email/opt-out/{slug}`
|
|
8777
|
+
.replace(`{${"slug"}}`, encodeURIComponent(String(slug)));
|
|
8778
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8779
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8780
|
+
let baseOptions;
|
|
8781
|
+
if (configuration) {
|
|
8782
|
+
baseOptions = configuration.baseOptions;
|
|
8783
|
+
}
|
|
8784
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
8785
|
+
const localVarHeaderParameter = {};
|
|
8786
|
+
const localVarQueryParameter = {};
|
|
8787
|
+
// authentication apiKey required
|
|
8788
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "api_key", configuration);
|
|
8789
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8790
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8791
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8792
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8793
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(payload, localVarRequestOptions, configuration);
|
|
8794
|
+
return {
|
|
8795
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8796
|
+
options: localVarRequestOptions,
|
|
8797
|
+
};
|
|
8798
|
+
}),
|
|
8799
|
+
};
|
|
8800
|
+
};
|
|
8801
|
+
exports.EmailOptInOutApiAxiosParamCreator = EmailOptInOutApiAxiosParamCreator;
|
|
8802
|
+
/**
|
|
8803
|
+
* EmailOptInOutApi - functional programming interface
|
|
8804
|
+
* @export
|
|
8805
|
+
*/
|
|
8806
|
+
const EmailOptInOutApiFp = function (configuration) {
|
|
8807
|
+
const localVarAxiosParamCreator = (0, exports.EmailOptInOutApiAxiosParamCreator)(configuration);
|
|
8808
|
+
return {
|
|
8809
|
+
/**
|
|
8810
|
+
* Returns all email categories with the user\'s opt-in status. Categories without an explicit preference default to opted_in=true.
|
|
8811
|
+
* @summary Get all email preferences for the authenticated user
|
|
8812
|
+
* @param {*} [options] Override http request option.
|
|
8813
|
+
* @throws {RequiredError}
|
|
8814
|
+
*/
|
|
8815
|
+
getEmailPreferencesForAUser(options) {
|
|
8816
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8817
|
+
var _a, _b, _c;
|
|
8818
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getEmailPreferencesForAUser(options);
|
|
8819
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8820
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EmailOptInOutApi.getEmailPreferencesForAUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8821
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8822
|
+
});
|
|
8823
|
+
},
|
|
8824
|
+
/**
|
|
8825
|
+
* Sets opted_in to the given value for every non-required, non-deleted email category. Required categories are not affected.
|
|
8826
|
+
* @summary Toggle all optional email preferences for the authenticated user
|
|
8827
|
+
* @param {UpdateEmailPreferenceInput} payload
|
|
8828
|
+
* @param {*} [options] Override http request option.
|
|
8829
|
+
* @throws {RequiredError}
|
|
8830
|
+
*/
|
|
8831
|
+
toggleAllOptionalEmailPreferencesForTheUser(payload, options) {
|
|
8832
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8833
|
+
var _a, _b, _c;
|
|
8834
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.toggleAllOptionalEmailPreferencesForTheUser(payload, options);
|
|
8835
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8836
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EmailOptInOutApi.toggleAllOptionalEmailPreferencesForTheUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8837
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8838
|
+
});
|
|
8839
|
+
},
|
|
8840
|
+
/**
|
|
8841
|
+
* 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.
|
|
8842
|
+
* @summary Update email preference opted_in status for a category slug
|
|
8843
|
+
* @param {string} slug
|
|
8844
|
+
* @param {UpdateEmailPreferenceInput} payload
|
|
8845
|
+
* @param {*} [options] Override http request option.
|
|
8846
|
+
* @throws {RequiredError}
|
|
8847
|
+
*/
|
|
8848
|
+
updateEmailPreferenceForACategoryBySlug(slug, payload, options) {
|
|
8849
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8850
|
+
var _a, _b, _c;
|
|
8851
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateEmailPreferenceForACategoryBySlug(slug, payload, options);
|
|
8852
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8853
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EmailOptInOutApi.updateEmailPreferenceForACategoryBySlug']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8854
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8855
|
+
});
|
|
8856
|
+
},
|
|
8857
|
+
};
|
|
8858
|
+
};
|
|
8859
|
+
exports.EmailOptInOutApiFp = EmailOptInOutApiFp;
|
|
8860
|
+
/**
|
|
8861
|
+
* EmailOptInOutApi - factory interface
|
|
8862
|
+
* @export
|
|
8863
|
+
*/
|
|
8864
|
+
const EmailOptInOutApiFactory = function (configuration, basePath, axios) {
|
|
8865
|
+
const localVarFp = (0, exports.EmailOptInOutApiFp)(configuration);
|
|
8866
|
+
return {
|
|
8867
|
+
/**
|
|
8868
|
+
* Returns all email categories with the user\'s opt-in status. Categories without an explicit preference default to opted_in=true.
|
|
8869
|
+
* @summary Get all email preferences for the authenticated user
|
|
8870
|
+
* @param {*} [options] Override http request option.
|
|
8871
|
+
* @throws {RequiredError}
|
|
8872
|
+
*/
|
|
8873
|
+
getEmailPreferencesForAUser(options) {
|
|
8874
|
+
return localVarFp.getEmailPreferencesForAUser(options).then((request) => request(axios, basePath));
|
|
8875
|
+
},
|
|
8876
|
+
/**
|
|
8877
|
+
* Sets opted_in to the given value for every non-required, non-deleted email category. Required categories are not affected.
|
|
8878
|
+
* @summary Toggle all optional email preferences for the authenticated user
|
|
8879
|
+
* @param {UpdateEmailPreferenceInput} payload
|
|
8880
|
+
* @param {*} [options] Override http request option.
|
|
8881
|
+
* @throws {RequiredError}
|
|
8882
|
+
*/
|
|
8883
|
+
toggleAllOptionalEmailPreferencesForTheUser(payload, options) {
|
|
8884
|
+
return localVarFp.toggleAllOptionalEmailPreferencesForTheUser(payload, options).then((request) => request(axios, basePath));
|
|
8885
|
+
},
|
|
8886
|
+
/**
|
|
8887
|
+
* 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.
|
|
8888
|
+
* @summary Update email preference opted_in status for a category slug
|
|
8889
|
+
* @param {string} slug
|
|
8890
|
+
* @param {UpdateEmailPreferenceInput} payload
|
|
8891
|
+
* @param {*} [options] Override http request option.
|
|
8892
|
+
* @throws {RequiredError}
|
|
8893
|
+
*/
|
|
8894
|
+
updateEmailPreferenceForACategoryBySlug(slug, payload, options) {
|
|
8895
|
+
return localVarFp.updateEmailPreferenceForACategoryBySlug(slug, payload, options).then((request) => request(axios, basePath));
|
|
8896
|
+
},
|
|
8897
|
+
};
|
|
8898
|
+
};
|
|
8899
|
+
exports.EmailOptInOutApiFactory = EmailOptInOutApiFactory;
|
|
8900
|
+
/**
|
|
8901
|
+
* EmailOptInOutApi - object-oriented interface
|
|
8902
|
+
* @export
|
|
8903
|
+
* @class EmailOptInOutApi
|
|
8904
|
+
* @extends {BaseAPI}
|
|
8905
|
+
*/
|
|
8906
|
+
class EmailOptInOutApi extends base_1.BaseAPI {
|
|
8907
|
+
/**
|
|
8908
|
+
* Returns all email categories with the user\'s opt-in status. Categories without an explicit preference default to opted_in=true.
|
|
8909
|
+
* @summary Get all email preferences for the authenticated user
|
|
8910
|
+
* @param {*} [options] Override http request option.
|
|
8911
|
+
* @throws {RequiredError}
|
|
8912
|
+
* @memberof EmailOptInOutApi
|
|
8913
|
+
*/
|
|
8914
|
+
getEmailPreferencesForAUser(options) {
|
|
8915
|
+
return (0, exports.EmailOptInOutApiFp)(this.configuration).getEmailPreferencesForAUser(options).then((request) => request(this.axios, this.basePath));
|
|
8916
|
+
}
|
|
8917
|
+
/**
|
|
8918
|
+
* Sets opted_in to the given value for every non-required, non-deleted email category. Required categories are not affected.
|
|
8919
|
+
* @summary Toggle all optional email preferences for the authenticated user
|
|
8920
|
+
* @param {UpdateEmailPreferenceInput} payload
|
|
8921
|
+
* @param {*} [options] Override http request option.
|
|
8922
|
+
* @throws {RequiredError}
|
|
8923
|
+
* @memberof EmailOptInOutApi
|
|
8924
|
+
*/
|
|
8925
|
+
toggleAllOptionalEmailPreferencesForTheUser(payload, options) {
|
|
8926
|
+
return (0, exports.EmailOptInOutApiFp)(this.configuration).toggleAllOptionalEmailPreferencesForTheUser(payload, options).then((request) => request(this.axios, this.basePath));
|
|
8927
|
+
}
|
|
8928
|
+
/**
|
|
8929
|
+
* 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.
|
|
8930
|
+
* @summary Update email preference opted_in status for a category slug
|
|
8931
|
+
* @param {string} slug
|
|
8932
|
+
* @param {UpdateEmailPreferenceInput} payload
|
|
8933
|
+
* @param {*} [options] Override http request option.
|
|
8934
|
+
* @throws {RequiredError}
|
|
8935
|
+
* @memberof EmailOptInOutApi
|
|
8936
|
+
*/
|
|
8937
|
+
updateEmailPreferenceForACategoryBySlug(slug, payload, options) {
|
|
8938
|
+
return (0, exports.EmailOptInOutApiFp)(this.configuration).updateEmailPreferenceForACategoryBySlug(slug, payload, options).then((request) => request(this.axios, this.basePath));
|
|
8939
|
+
}
|
|
8940
|
+
}
|
|
8941
|
+
exports.EmailOptInOutApi = EmailOptInOutApi;
|
|
8698
8942
|
/**
|
|
8699
8943
|
* EnvironmentApi - axios parameter creator
|
|
8700
8944
|
* @export
|
|
@@ -11166,6 +11410,33 @@ const KeypairApiAxiosParamCreator = function (configuration) {
|
|
|
11166
11410
|
options: localVarRequestOptions,
|
|
11167
11411
|
};
|
|
11168
11412
|
}),
|
|
11413
|
+
/**
|
|
11414
|
+
* Retrieves the SSH public key types supported for import.
|
|
11415
|
+
* @summary List supported key pair types
|
|
11416
|
+
* @param {*} [options] Override http request option.
|
|
11417
|
+
* @throws {RequiredError}
|
|
11418
|
+
*/
|
|
11419
|
+
listSupportedKeyPairTypes: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
11420
|
+
const localVarPath = `/core/supported-keypairs`;
|
|
11421
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11422
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11423
|
+
let baseOptions;
|
|
11424
|
+
if (configuration) {
|
|
11425
|
+
baseOptions = configuration.baseOptions;
|
|
11426
|
+
}
|
|
11427
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
11428
|
+
const localVarHeaderParameter = {};
|
|
11429
|
+
const localVarQueryParameter = {};
|
|
11430
|
+
// authentication apiKey required
|
|
11431
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "api_key", configuration);
|
|
11432
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11433
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11434
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11435
|
+
return {
|
|
11436
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11437
|
+
options: localVarRequestOptions,
|
|
11438
|
+
};
|
|
11439
|
+
}),
|
|
11169
11440
|
/**
|
|
11170
11441
|
* 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.
|
|
11171
11442
|
* @summary Update key pair name
|
|
@@ -11262,6 +11533,21 @@ const KeypairApiFp = function (configuration) {
|
|
|
11262
11533
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11263
11534
|
});
|
|
11264
11535
|
},
|
|
11536
|
+
/**
|
|
11537
|
+
* Retrieves the SSH public key types supported for import.
|
|
11538
|
+
* @summary List supported key pair types
|
|
11539
|
+
* @param {*} [options] Override http request option.
|
|
11540
|
+
* @throws {RequiredError}
|
|
11541
|
+
*/
|
|
11542
|
+
listSupportedKeyPairTypes(options) {
|
|
11543
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11544
|
+
var _a, _b, _c;
|
|
11545
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listSupportedKeyPairTypes(options);
|
|
11546
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
11547
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['KeypairApi.listSupportedKeyPairTypes']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
11548
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11549
|
+
});
|
|
11550
|
+
},
|
|
11265
11551
|
/**
|
|
11266
11552
|
* 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.
|
|
11267
11553
|
* @summary Update key pair name
|
|
@@ -11321,6 +11607,15 @@ const KeypairApiFactory = function (configuration, basePath, axios) {
|
|
|
11321
11607
|
listKeyPairs(page, pageSize, search, options) {
|
|
11322
11608
|
return localVarFp.listKeyPairs(page, pageSize, search, options).then((request) => request(axios, basePath));
|
|
11323
11609
|
},
|
|
11610
|
+
/**
|
|
11611
|
+
* Retrieves the SSH public key types supported for import.
|
|
11612
|
+
* @summary List supported key pair types
|
|
11613
|
+
* @param {*} [options] Override http request option.
|
|
11614
|
+
* @throws {RequiredError}
|
|
11615
|
+
*/
|
|
11616
|
+
listSupportedKeyPairTypes(options) {
|
|
11617
|
+
return localVarFp.listSupportedKeyPairTypes(options).then((request) => request(axios, basePath));
|
|
11618
|
+
},
|
|
11324
11619
|
/**
|
|
11325
11620
|
* 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.
|
|
11326
11621
|
* @summary Update key pair name
|
|
@@ -11377,6 +11672,16 @@ class KeypairApi extends base_1.BaseAPI {
|
|
|
11377
11672
|
listKeyPairs(page, pageSize, search, options) {
|
|
11378
11673
|
return (0, exports.KeypairApiFp)(this.configuration).listKeyPairs(page, pageSize, search, options).then((request) => request(this.axios, this.basePath));
|
|
11379
11674
|
}
|
|
11675
|
+
/**
|
|
11676
|
+
* Retrieves the SSH public key types supported for import.
|
|
11677
|
+
* @summary List supported key pair types
|
|
11678
|
+
* @param {*} [options] Override http request option.
|
|
11679
|
+
* @throws {RequiredError}
|
|
11680
|
+
* @memberof KeypairApi
|
|
11681
|
+
*/
|
|
11682
|
+
listSupportedKeyPairTypes(options) {
|
|
11683
|
+
return (0, exports.KeypairApiFp)(this.configuration).listSupportedKeyPairTypes(options).then((request) => request(this.axios, this.basePath));
|
|
11684
|
+
}
|
|
11380
11685
|
/**
|
|
11381
11686
|
* 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.
|
|
11382
11687
|
* @summary Update key pair name
|
|
@@ -14438,6 +14743,33 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
14438
14743
|
options: localVarRequestOptions,
|
|
14439
14744
|
};
|
|
14440
14745
|
}),
|
|
14746
|
+
/**
|
|
14747
|
+
* Retrieve the list of allowed ISO 3166-1 alpha-2 country codes that can be used for billing information.
|
|
14748
|
+
* @summary GET: Retrieve allowed country codes
|
|
14749
|
+
* @param {*} [options] Override http request option.
|
|
14750
|
+
* @throws {RequiredError}
|
|
14751
|
+
*/
|
|
14752
|
+
getAllowedCountryCodes: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
14753
|
+
const localVarPath = `/billing/user/countries`;
|
|
14754
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14755
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14756
|
+
let baseOptions;
|
|
14757
|
+
if (configuration) {
|
|
14758
|
+
baseOptions = configuration.baseOptions;
|
|
14759
|
+
}
|
|
14760
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
14761
|
+
const localVarHeaderParameter = {};
|
|
14762
|
+
const localVarQueryParameter = {};
|
|
14763
|
+
// authentication apiKey required
|
|
14764
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "api_key", configuration);
|
|
14765
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
14766
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14767
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14768
|
+
return {
|
|
14769
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
14770
|
+
options: localVarRequestOptions,
|
|
14771
|
+
};
|
|
14772
|
+
}),
|
|
14441
14773
|
/**
|
|
14442
14774
|
* Retrieve the billing details associated with your user.
|
|
14443
14775
|
* @summary GET: Retrieve billing info
|
|
@@ -14523,6 +14855,21 @@ const UserApiFp = function (configuration) {
|
|
|
14523
14855
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14524
14856
|
});
|
|
14525
14857
|
},
|
|
14858
|
+
/**
|
|
14859
|
+
* Retrieve the list of allowed ISO 3166-1 alpha-2 country codes that can be used for billing information.
|
|
14860
|
+
* @summary GET: Retrieve allowed country codes
|
|
14861
|
+
* @param {*} [options] Override http request option.
|
|
14862
|
+
* @throws {RequiredError}
|
|
14863
|
+
*/
|
|
14864
|
+
getAllowedCountryCodes(options) {
|
|
14865
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14866
|
+
var _a, _b, _c;
|
|
14867
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getAllowedCountryCodes(options);
|
|
14868
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
14869
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserApi.getAllowedCountryCodes']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
14870
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14871
|
+
});
|
|
14872
|
+
},
|
|
14526
14873
|
/**
|
|
14527
14874
|
* Retrieve the billing details associated with your user.
|
|
14528
14875
|
* @summary GET: Retrieve billing info
|
|
@@ -14574,6 +14921,15 @@ const UserApiFactory = function (configuration, basePath, axios) {
|
|
|
14574
14921
|
addUserBillingInfo(payload, options) {
|
|
14575
14922
|
return localVarFp.addUserBillingInfo(payload, options).then((request) => request(axios, basePath));
|
|
14576
14923
|
},
|
|
14924
|
+
/**
|
|
14925
|
+
* Retrieve the list of allowed ISO 3166-1 alpha-2 country codes that can be used for billing information.
|
|
14926
|
+
* @summary GET: Retrieve allowed country codes
|
|
14927
|
+
* @param {*} [options] Override http request option.
|
|
14928
|
+
* @throws {RequiredError}
|
|
14929
|
+
*/
|
|
14930
|
+
getAllowedCountryCodes(options) {
|
|
14931
|
+
return localVarFp.getAllowedCountryCodes(options).then((request) => request(axios, basePath));
|
|
14932
|
+
},
|
|
14577
14933
|
/**
|
|
14578
14934
|
* Retrieve the billing details associated with your user.
|
|
14579
14935
|
* @summary GET: Retrieve billing info
|
|
@@ -14614,6 +14970,16 @@ class UserApi extends base_1.BaseAPI {
|
|
|
14614
14970
|
addUserBillingInfo(payload, options) {
|
|
14615
14971
|
return (0, exports.UserApiFp)(this.configuration).addUserBillingInfo(payload, options).then((request) => request(this.axios, this.basePath));
|
|
14616
14972
|
}
|
|
14973
|
+
/**
|
|
14974
|
+
* Retrieve the list of allowed ISO 3166-1 alpha-2 country codes that can be used for billing information.
|
|
14975
|
+
* @summary GET: Retrieve allowed country codes
|
|
14976
|
+
* @param {*} [options] Override http request option.
|
|
14977
|
+
* @throws {RequiredError}
|
|
14978
|
+
* @memberof UserApi
|
|
14979
|
+
*/
|
|
14980
|
+
getAllowedCountryCodes(options) {
|
|
14981
|
+
return (0, exports.UserApiFp)(this.configuration).getAllowedCountryCodes(options).then((request) => request(this.axios, this.basePath));
|
|
14982
|
+
}
|
|
14617
14983
|
/**
|
|
14618
14984
|
* Retrieve the billing details associated with your user.
|
|
14619
14985
|
* @summary GET: Retrieve billing info
|
|
@@ -16100,6 +16466,42 @@ const VirtualMachineApiAxiosParamCreator = function (configuration) {
|
|
|
16100
16466
|
options: localVarRequestOptions,
|
|
16101
16467
|
};
|
|
16102
16468
|
}),
|
|
16469
|
+
/**
|
|
16470
|
+
* 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.
|
|
16471
|
+
* @summary Enable or disable Enhanced Metrics for a virtual machine
|
|
16472
|
+
* @param {number} vmId
|
|
16473
|
+
* @param {UserEnhancedMetricsPayload} payload
|
|
16474
|
+
* @param {*} [options] Override http request option.
|
|
16475
|
+
* @throws {RequiredError}
|
|
16476
|
+
*/
|
|
16477
|
+
toggleEnhancedMetricsForAVM: (vmId_1, payload_1, ...args_1) => __awaiter(this, [vmId_1, payload_1, ...args_1], void 0, function* (vmId, payload, options = {}) {
|
|
16478
|
+
// verify required parameter 'vmId' is not null or undefined
|
|
16479
|
+
(0, common_1.assertParamExists)('toggleEnhancedMetricsForAVM', 'vmId', vmId);
|
|
16480
|
+
// verify required parameter 'payload' is not null or undefined
|
|
16481
|
+
(0, common_1.assertParamExists)('toggleEnhancedMetricsForAVM', 'payload', payload);
|
|
16482
|
+
const localVarPath = `/core/virtual-machines/{vm_id}/enhanced-metrics`
|
|
16483
|
+
.replace(`{${"vm_id"}}`, encodeURIComponent(String(vmId)));
|
|
16484
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16485
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
16486
|
+
let baseOptions;
|
|
16487
|
+
if (configuration) {
|
|
16488
|
+
baseOptions = configuration.baseOptions;
|
|
16489
|
+
}
|
|
16490
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
16491
|
+
const localVarHeaderParameter = {};
|
|
16492
|
+
const localVarQueryParameter = {};
|
|
16493
|
+
// authentication apiKey required
|
|
16494
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "api_key", configuration);
|
|
16495
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16496
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
16497
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16498
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
16499
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(payload, localVarRequestOptions, configuration);
|
|
16500
|
+
return {
|
|
16501
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
16502
|
+
options: localVarRequestOptions,
|
|
16503
|
+
};
|
|
16504
|
+
}),
|
|
16103
16505
|
};
|
|
16104
16506
|
};
|
|
16105
16507
|
exports.VirtualMachineApiAxiosParamCreator = VirtualMachineApiAxiosParamCreator;
|
|
@@ -16449,6 +16851,23 @@ const VirtualMachineApiFp = function (configuration) {
|
|
|
16449
16851
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16450
16852
|
});
|
|
16451
16853
|
},
|
|
16854
|
+
/**
|
|
16855
|
+
* 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.
|
|
16856
|
+
* @summary Enable or disable Enhanced Metrics for a virtual machine
|
|
16857
|
+
* @param {number} vmId
|
|
16858
|
+
* @param {UserEnhancedMetricsPayload} payload
|
|
16859
|
+
* @param {*} [options] Override http request option.
|
|
16860
|
+
* @throws {RequiredError}
|
|
16861
|
+
*/
|
|
16862
|
+
toggleEnhancedMetricsForAVM(vmId, payload, options) {
|
|
16863
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
16864
|
+
var _a, _b, _c;
|
|
16865
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.toggleEnhancedMetricsForAVM(vmId, payload, options);
|
|
16866
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
16867
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['VirtualMachineApi.toggleEnhancedMetricsForAVM']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
16868
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16869
|
+
});
|
|
16870
|
+
},
|
|
16452
16871
|
};
|
|
16453
16872
|
};
|
|
16454
16873
|
exports.VirtualMachineApiFp = VirtualMachineApiFp;
|
|
@@ -16678,6 +17097,17 @@ const VirtualMachineApiFactory = function (configuration, basePath, axios) {
|
|
|
16678
17097
|
stopVM(vmId, options) {
|
|
16679
17098
|
return localVarFp.stopVM(vmId, options).then((request) => request(axios, basePath));
|
|
16680
17099
|
},
|
|
17100
|
+
/**
|
|
17101
|
+
* 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.
|
|
17102
|
+
* @summary Enable or disable Enhanced Metrics for a virtual machine
|
|
17103
|
+
* @param {number} vmId
|
|
17104
|
+
* @param {UserEnhancedMetricsPayload} payload
|
|
17105
|
+
* @param {*} [options] Override http request option.
|
|
17106
|
+
* @throws {RequiredError}
|
|
17107
|
+
*/
|
|
17108
|
+
toggleEnhancedMetricsForAVM(vmId, payload, options) {
|
|
17109
|
+
return localVarFp.toggleEnhancedMetricsForAVM(vmId, payload, options).then((request) => request(axios, basePath));
|
|
17110
|
+
},
|
|
16681
17111
|
};
|
|
16682
17112
|
};
|
|
16683
17113
|
exports.VirtualMachineApiFactory = VirtualMachineApiFactory;
|
|
@@ -16927,6 +17357,18 @@ class VirtualMachineApi extends base_1.BaseAPI {
|
|
|
16927
17357
|
stopVM(vmId, options) {
|
|
16928
17358
|
return (0, exports.VirtualMachineApiFp)(this.configuration).stopVM(vmId, options).then((request) => request(this.axios, this.basePath));
|
|
16929
17359
|
}
|
|
17360
|
+
/**
|
|
17361
|
+
* 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.
|
|
17362
|
+
* @summary Enable or disable Enhanced Metrics for a virtual machine
|
|
17363
|
+
* @param {number} vmId
|
|
17364
|
+
* @param {UserEnhancedMetricsPayload} payload
|
|
17365
|
+
* @param {*} [options] Override http request option.
|
|
17366
|
+
* @throws {RequiredError}
|
|
17367
|
+
* @memberof VirtualMachineApi
|
|
17368
|
+
*/
|
|
17369
|
+
toggleEnhancedMetricsForAVM(vmId, payload, options) {
|
|
17370
|
+
return (0, exports.VirtualMachineApiFp)(this.configuration).toggleEnhancedMetricsForAVM(vmId, payload, options).then((request) => request(this.axios, this.basePath));
|
|
17371
|
+
}
|
|
16930
17372
|
}
|
|
16931
17373
|
exports.VirtualMachineApi = VirtualMachineApi;
|
|
16932
17374
|
/**
|