hostinger-api-sdk 0.0.1 → 0.0.3

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/dist/api.js CHANGED
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger API
6
6
  *
7
- * API Version: 0.0.9
7
+ * API Version: 0.0.16
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
@@ -19,8 +19,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
19
19
  });
20
20
  };
21
21
  Object.defineProperty(exports, "__esModule", { value: true });
22
- exports.VPSFirewallApi = exports.VPSFirewallApiFactory = exports.VPSFirewallApiFp = exports.VPSFirewallApiAxiosParamCreator = exports.VPSDataCentersApi = exports.VPSDataCentersApiFactory = exports.VPSDataCentersApiFp = exports.VPSDataCentersApiAxiosParamCreator = exports.VPSBackupsApi = exports.VPSBackupsApiFactory = exports.VPSBackupsApiFp = exports.VPSBackupsApiAxiosParamCreator = exports.VPSActionsApi = exports.VPSActionsApiFactory = exports.VPSActionsApiFp = exports.VPSActionsApiAxiosParamCreator = exports.DomainsPortfolioApi = exports.DomainsPortfolioApiFactory = exports.DomainsPortfolioApiFp = exports.DomainsPortfolioApiAxiosParamCreator = exports.BillingSubscriptionsApi = exports.BillingSubscriptionsApiFactory = exports.BillingSubscriptionsApiFp = exports.BillingSubscriptionsApiAxiosParamCreator = exports.BillingPaymentMethodsApi = exports.BillingPaymentMethodsApiFactory = exports.BillingPaymentMethodsApiFp = exports.BillingPaymentMethodsApiAxiosParamCreator = exports.BillingOrdersApi = exports.BillingOrdersApiFactory = exports.BillingOrdersApiFp = exports.BillingOrdersApiAxiosParamCreator = exports.BillingCatalogApi = exports.BillingCatalogApiFactory = exports.BillingCatalogApiFp = exports.BillingCatalogApiAxiosParamCreator = exports.VPSV1VirtualMachineVirtualMachineResourceActionsLockEnum = exports.VPSV1VirtualMachineVirtualMachineResourceStateEnum = exports.VPSV1FirewallRulesStoreRequestSourceEnum = exports.VPSV1FirewallRulesStoreRequestProtocolEnum = exports.VPSV1FirewallFirewallRuleResourceProtocolEnum = exports.VPSV1FirewallFirewallRuleResourceActionEnum = exports.VPSV1ActionActionResourceStateEnum = exports.DomainsV1DomainDomainResourceStatusEnum = exports.DomainsV1DomainDomainResourceTypeEnum = exports.BillingV1SubscriptionSubscriptionResourceStatusEnum = exports.BillingV1SubscriptionCancelRequestCancelOptionEnum = exports.BillingV1SubscriptionCancelRequestReasonCodeEnum = exports.BillingV1OrderOrderResourceStatusEnum = exports.BillingV1CatalogCatalogItemPriceResourcePeriodUnitEnum = void 0;
23
- exports.VPSVirtualMachineApi = exports.VPSVirtualMachineApiFactory = exports.VPSVirtualMachineApiFp = exports.VPSVirtualMachineApiAxiosParamCreator = exports.VPSSnapshotsApi = exports.VPSSnapshotsApiFactory = exports.VPSSnapshotsApiFp = exports.VPSSnapshotsApiAxiosParamCreator = exports.VPSRecoveryApi = exports.VPSRecoveryApiFactory = exports.VPSRecoveryApiFp = exports.VPSRecoveryApiAxiosParamCreator = exports.VPSPublicKeysApi = exports.VPSPublicKeysApiFactory = exports.VPSPublicKeysApiFp = exports.VPSPublicKeysApiAxiosParamCreator = exports.VPSPostInstallScriptsApi = exports.VPSPostInstallScriptsApiFactory = exports.VPSPostInstallScriptsApiFp = exports.VPSPostInstallScriptsApiAxiosParamCreator = exports.VPSPTRRecordsApi = exports.VPSPTRRecordsApiFactory = exports.VPSPTRRecordsApiFp = exports.VPSPTRRecordsApiAxiosParamCreator = exports.VPSOSTemplatesApi = exports.VPSOSTemplatesApiFactory = exports.VPSOSTemplatesApiFp = exports.VPSOSTemplatesApiAxiosParamCreator = exports.VPSMalwareScannerApi = exports.VPSMalwareScannerApiFactory = exports.VPSMalwareScannerApiFp = exports.VPSMalwareScannerApiAxiosParamCreator = void 0;
22
+ exports.VPSBackupsApiAxiosParamCreator = exports.VPSActionsApi = exports.VPSActionsApiFactory = exports.VPSActionsApiFp = exports.VPSActionsApiAxiosParamCreator = exports.DomainsPortfolioApi = exports.DomainsPortfolioApiFactory = exports.DomainsPortfolioApiFp = exports.DomainsPortfolioApiAxiosParamCreator = exports.DNSZoneApi = exports.DNSZoneApiFactory = exports.DNSZoneApiFp = exports.DNSZoneApiAxiosParamCreator = exports.DNSSnapshotApi = exports.DNSSnapshotApiFactory = exports.DNSSnapshotApiFp = exports.DNSSnapshotApiAxiosParamCreator = exports.BillingSubscriptionsApi = exports.BillingSubscriptionsApiFactory = exports.BillingSubscriptionsApiFp = exports.BillingSubscriptionsApiAxiosParamCreator = exports.BillingPaymentMethodsApi = exports.BillingPaymentMethodsApiFactory = exports.BillingPaymentMethodsApiFp = exports.BillingPaymentMethodsApiAxiosParamCreator = exports.BillingOrdersApi = exports.BillingOrdersApiFactory = exports.BillingOrdersApiFp = exports.BillingOrdersApiAxiosParamCreator = exports.BillingCatalogApi = exports.BillingCatalogApiFactory = exports.BillingCatalogApiFp = exports.BillingCatalogApiAxiosParamCreator = exports.VPSV1VirtualMachineVirtualMachineResourceActionsLockEnum = exports.VPSV1VirtualMachineVirtualMachineResourceStateEnum = exports.VPSV1FirewallRulesStoreRequestSourceEnum = exports.VPSV1FirewallRulesStoreRequestProtocolEnum = exports.VPSV1FirewallFirewallRuleResourceProtocolEnum = exports.VPSV1FirewallFirewallRuleResourceActionEnum = exports.VPSV1ActionActionResourceStateEnum = exports.DomainsV1DomainDomainResourceStatusEnum = exports.DomainsV1DomainDomainResourceTypeEnum = exports.DNSV1ZoneUpdateRequestZoneInnerTypeEnum = exports.DNSV1ZoneRecordResourceTypeEnum = exports.DNSV1ZoneDestroyRequestFiltersInnerTypeEnum = exports.BillingV1SubscriptionSubscriptionResourceStatusEnum = exports.BillingV1SubscriptionCancelRequestCancelOptionEnum = exports.BillingV1SubscriptionCancelRequestReasonCodeEnum = exports.BillingV1OrderOrderResourceStatusEnum = exports.BillingV1CatalogCatalogItemPriceResourcePeriodUnitEnum = void 0;
23
+ exports.VPSVirtualMachineApi = exports.VPSVirtualMachineApiFactory = exports.VPSVirtualMachineApiFp = exports.VPSVirtualMachineApiAxiosParamCreator = exports.VPSSnapshotsApi = exports.VPSSnapshotsApiFactory = exports.VPSSnapshotsApiFp = exports.VPSSnapshotsApiAxiosParamCreator = exports.VPSRecoveryApi = exports.VPSRecoveryApiFactory = exports.VPSRecoveryApiFp = exports.VPSRecoveryApiAxiosParamCreator = exports.VPSPublicKeysApi = exports.VPSPublicKeysApiFactory = exports.VPSPublicKeysApiFp = exports.VPSPublicKeysApiAxiosParamCreator = exports.VPSPostInstallScriptsApi = exports.VPSPostInstallScriptsApiFactory = exports.VPSPostInstallScriptsApiFp = exports.VPSPostInstallScriptsApiAxiosParamCreator = exports.VPSPTRRecordsApi = exports.VPSPTRRecordsApiFactory = exports.VPSPTRRecordsApiFp = exports.VPSPTRRecordsApiAxiosParamCreator = exports.VPSOSTemplatesApi = exports.VPSOSTemplatesApiFactory = exports.VPSOSTemplatesApiFp = exports.VPSOSTemplatesApiAxiosParamCreator = exports.VPSMalwareScannerApi = exports.VPSMalwareScannerApiFactory = exports.VPSMalwareScannerApiFp = exports.VPSMalwareScannerApiAxiosParamCreator = exports.VPSFirewallApi = exports.VPSFirewallApiFactory = exports.VPSFirewallApiFp = exports.VPSFirewallApiAxiosParamCreator = exports.VPSDataCentersApi = exports.VPSDataCentersApiFactory = exports.VPSDataCentersApiFp = exports.VPSDataCentersApiAxiosParamCreator = exports.VPSBackupsApi = exports.VPSBackupsApiFactory = exports.VPSBackupsApiFp = void 0;
24
24
  const axios_1 = require("axios");
25
25
  // Some imports not used depending on template conditions
26
26
  // @ts-ignore
@@ -60,6 +60,42 @@ exports.BillingV1SubscriptionSubscriptionResourceStatusEnum = {
60
60
  InTrial: 'in_trial',
61
61
  Future: 'future'
62
62
  };
63
+ exports.DNSV1ZoneDestroyRequestFiltersInnerTypeEnum = {
64
+ A: 'A',
65
+ Aaaa: 'AAAA',
66
+ Cname: 'CNAME',
67
+ Alias: 'ALIAS',
68
+ Mx: 'MX',
69
+ Txt: 'TXT',
70
+ Ns: 'NS',
71
+ Soa: 'SOA',
72
+ Srv: 'SRV',
73
+ Caa: 'CAA'
74
+ };
75
+ exports.DNSV1ZoneRecordResourceTypeEnum = {
76
+ A: 'A',
77
+ Aaaa: 'AAAA',
78
+ Cname: 'CNAME',
79
+ Alias: 'ALIAS',
80
+ Mx: 'MX',
81
+ Txt: 'TXT',
82
+ Ns: 'NS',
83
+ Soa: 'SOA',
84
+ Srv: 'SRV',
85
+ Caa: 'CAA'
86
+ };
87
+ exports.DNSV1ZoneUpdateRequestZoneInnerTypeEnum = {
88
+ A: 'A',
89
+ Aaaa: 'AAAA',
90
+ Cname: 'CNAME',
91
+ Alias: 'ALIAS',
92
+ Mx: 'MX',
93
+ Txt: 'TXT',
94
+ Ns: 'NS',
95
+ Soa: 'SOA',
96
+ Srv: 'SRV',
97
+ Caa: 'CAA'
98
+ };
63
99
  exports.DomainsV1DomainDomainResourceTypeEnum = {
64
100
  Domain: 'domain',
65
101
  FreeDomain: 'free_domain'
@@ -740,6 +776,672 @@ class BillingSubscriptionsApi extends base_1.BaseAPI {
740
776
  }
741
777
  }
742
778
  exports.BillingSubscriptionsApi = BillingSubscriptionsApi;
779
+ /**
780
+ * DNSSnapshotApi - axios parameter creator
781
+ * @export
782
+ */
783
+ const DNSSnapshotApiAxiosParamCreator = function (configuration) {
784
+ return {
785
+ /**
786
+ * This endpoint retrieves list of DNS snapshots.
787
+ * @summary Get snapshot list
788
+ * @param {string} domain Domain name
789
+ * @param {*} [options] Override http request option.
790
+ * @throws {RequiredError}
791
+ */
792
+ getSnapshotListV1: (domain_1, ...args_1) => __awaiter(this, [domain_1, ...args_1], void 0, function* (domain, options = {}) {
793
+ // verify required parameter 'domain' is not null or undefined
794
+ (0, common_1.assertParamExists)('getSnapshotListV1', 'domain', domain);
795
+ const localVarPath = `/api/dns/v1/snapshots/{domain}`
796
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
797
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
798
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
799
+ let baseOptions;
800
+ if (configuration) {
801
+ baseOptions = configuration.baseOptions;
802
+ }
803
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
804
+ const localVarHeaderParameter = {};
805
+ const localVarQueryParameter = {};
806
+ // authentication apiToken required
807
+ // http bearer authentication required
808
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
809
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
810
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
811
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
812
+ return {
813
+ url: (0, common_1.toPathString)(localVarUrlObj),
814
+ options: localVarRequestOptions,
815
+ };
816
+ }),
817
+ /**
818
+ * This endpoint retrieves particular DNS snapshot with the contents of DNS zone records.
819
+ * @summary Get snapshot
820
+ * @param {string} domain Domain name
821
+ * @param {number} snapshotId Snapshot ID
822
+ * @param {*} [options] Override http request option.
823
+ * @throws {RequiredError}
824
+ */
825
+ getSnapshotV1: (domain_1, snapshotId_1, ...args_1) => __awaiter(this, [domain_1, snapshotId_1, ...args_1], void 0, function* (domain, snapshotId, options = {}) {
826
+ // verify required parameter 'domain' is not null or undefined
827
+ (0, common_1.assertParamExists)('getSnapshotV1', 'domain', domain);
828
+ // verify required parameter 'snapshotId' is not null or undefined
829
+ (0, common_1.assertParamExists)('getSnapshotV1', 'snapshotId', snapshotId);
830
+ const localVarPath = `/api/dns/v1/snapshots/{domain}/{snapshotId}`
831
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)))
832
+ .replace(`{${"snapshotId"}}`, encodeURIComponent(String(snapshotId)));
833
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
834
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
835
+ let baseOptions;
836
+ if (configuration) {
837
+ baseOptions = configuration.baseOptions;
838
+ }
839
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
840
+ const localVarHeaderParameter = {};
841
+ const localVarQueryParameter = {};
842
+ // authentication apiToken required
843
+ // http bearer authentication required
844
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
845
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
846
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
847
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
848
+ return {
849
+ url: (0, common_1.toPathString)(localVarUrlObj),
850
+ options: localVarRequestOptions,
851
+ };
852
+ }),
853
+ /**
854
+ * This endpoint restores DNS zone to the selected snapshot.
855
+ * @summary Restore snapshot
856
+ * @param {string} domain Domain name
857
+ * @param {number} snapshotId Snapshot ID
858
+ * @param {*} [options] Override http request option.
859
+ * @throws {RequiredError}
860
+ */
861
+ restoreSnapshotV1: (domain_1, snapshotId_1, ...args_1) => __awaiter(this, [domain_1, snapshotId_1, ...args_1], void 0, function* (domain, snapshotId, options = {}) {
862
+ // verify required parameter 'domain' is not null or undefined
863
+ (0, common_1.assertParamExists)('restoreSnapshotV1', 'domain', domain);
864
+ // verify required parameter 'snapshotId' is not null or undefined
865
+ (0, common_1.assertParamExists)('restoreSnapshotV1', 'snapshotId', snapshotId);
866
+ const localVarPath = `/api/dns/v1/snapshots/{domain}/{snapshotId}`
867
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)))
868
+ .replace(`{${"snapshotId"}}`, encodeURIComponent(String(snapshotId)));
869
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
870
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
871
+ let baseOptions;
872
+ if (configuration) {
873
+ baseOptions = configuration.baseOptions;
874
+ }
875
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
876
+ const localVarHeaderParameter = {};
877
+ const localVarQueryParameter = {};
878
+ // authentication apiToken required
879
+ // http bearer authentication required
880
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
881
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
882
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
883
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
884
+ return {
885
+ url: (0, common_1.toPathString)(localVarUrlObj),
886
+ options: localVarRequestOptions,
887
+ };
888
+ }),
889
+ };
890
+ };
891
+ exports.DNSSnapshotApiAxiosParamCreator = DNSSnapshotApiAxiosParamCreator;
892
+ /**
893
+ * DNSSnapshotApi - functional programming interface
894
+ * @export
895
+ */
896
+ const DNSSnapshotApiFp = function (configuration) {
897
+ const localVarAxiosParamCreator = (0, exports.DNSSnapshotApiAxiosParamCreator)(configuration);
898
+ return {
899
+ /**
900
+ * This endpoint retrieves list of DNS snapshots.
901
+ * @summary Get snapshot list
902
+ * @param {string} domain Domain name
903
+ * @param {*} [options] Override http request option.
904
+ * @throws {RequiredError}
905
+ */
906
+ getSnapshotListV1(domain, options) {
907
+ return __awaiter(this, void 0, void 0, function* () {
908
+ var _a, _b;
909
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getSnapshotListV1(domain, options);
910
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['DNSSnapshotApi.getSnapshotListV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
911
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
912
+ });
913
+ },
914
+ /**
915
+ * This endpoint retrieves particular DNS snapshot with the contents of DNS zone records.
916
+ * @summary Get snapshot
917
+ * @param {string} domain Domain name
918
+ * @param {number} snapshotId Snapshot ID
919
+ * @param {*} [options] Override http request option.
920
+ * @throws {RequiredError}
921
+ */
922
+ getSnapshotV1(domain, snapshotId, options) {
923
+ return __awaiter(this, void 0, void 0, function* () {
924
+ var _a, _b;
925
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getSnapshotV1(domain, snapshotId, options);
926
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['DNSSnapshotApi.getSnapshotV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
927
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
928
+ });
929
+ },
930
+ /**
931
+ * This endpoint restores DNS zone to the selected snapshot.
932
+ * @summary Restore snapshot
933
+ * @param {string} domain Domain name
934
+ * @param {number} snapshotId Snapshot ID
935
+ * @param {*} [options] Override http request option.
936
+ * @throws {RequiredError}
937
+ */
938
+ restoreSnapshotV1(domain, snapshotId, options) {
939
+ return __awaiter(this, void 0, void 0, function* () {
940
+ var _a, _b;
941
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.restoreSnapshotV1(domain, snapshotId, options);
942
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['DNSSnapshotApi.restoreSnapshotV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
943
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
944
+ });
945
+ },
946
+ };
947
+ };
948
+ exports.DNSSnapshotApiFp = DNSSnapshotApiFp;
949
+ /**
950
+ * DNSSnapshotApi - factory interface
951
+ * @export
952
+ */
953
+ const DNSSnapshotApiFactory = function (configuration, basePath, axios) {
954
+ const localVarFp = (0, exports.DNSSnapshotApiFp)(configuration);
955
+ return {
956
+ /**
957
+ * This endpoint retrieves list of DNS snapshots.
958
+ * @summary Get snapshot list
959
+ * @param {string} domain Domain name
960
+ * @param {*} [options] Override http request option.
961
+ * @throws {RequiredError}
962
+ */
963
+ getSnapshotListV1(domain, options) {
964
+ return localVarFp.getSnapshotListV1(domain, options).then((request) => request(axios, basePath));
965
+ },
966
+ /**
967
+ * This endpoint retrieves particular DNS snapshot with the contents of DNS zone records.
968
+ * @summary Get snapshot
969
+ * @param {string} domain Domain name
970
+ * @param {number} snapshotId Snapshot ID
971
+ * @param {*} [options] Override http request option.
972
+ * @throws {RequiredError}
973
+ */
974
+ getSnapshotV1(domain, snapshotId, options) {
975
+ return localVarFp.getSnapshotV1(domain, snapshotId, options).then((request) => request(axios, basePath));
976
+ },
977
+ /**
978
+ * This endpoint restores DNS zone to the selected snapshot.
979
+ * @summary Restore snapshot
980
+ * @param {string} domain Domain name
981
+ * @param {number} snapshotId Snapshot ID
982
+ * @param {*} [options] Override http request option.
983
+ * @throws {RequiredError}
984
+ */
985
+ restoreSnapshotV1(domain, snapshotId, options) {
986
+ return localVarFp.restoreSnapshotV1(domain, snapshotId, options).then((request) => request(axios, basePath));
987
+ },
988
+ };
989
+ };
990
+ exports.DNSSnapshotApiFactory = DNSSnapshotApiFactory;
991
+ /**
992
+ * DNSSnapshotApi - object-oriented interface
993
+ * @export
994
+ * @class DNSSnapshotApi
995
+ * @extends {BaseAPI}
996
+ */
997
+ class DNSSnapshotApi extends base_1.BaseAPI {
998
+ /**
999
+ * This endpoint retrieves list of DNS snapshots.
1000
+ * @summary Get snapshot list
1001
+ * @param {string} domain Domain name
1002
+ * @param {*} [options] Override http request option.
1003
+ * @throws {RequiredError}
1004
+ * @memberof DNSSnapshotApi
1005
+ */
1006
+ getSnapshotListV1(domain, options) {
1007
+ return (0, exports.DNSSnapshotApiFp)(this.configuration).getSnapshotListV1(domain, options).then((request) => request(this.axios, this.basePath));
1008
+ }
1009
+ /**
1010
+ * This endpoint retrieves particular DNS snapshot with the contents of DNS zone records.
1011
+ * @summary Get snapshot
1012
+ * @param {string} domain Domain name
1013
+ * @param {number} snapshotId Snapshot ID
1014
+ * @param {*} [options] Override http request option.
1015
+ * @throws {RequiredError}
1016
+ * @memberof DNSSnapshotApi
1017
+ */
1018
+ getSnapshotV1(domain, snapshotId, options) {
1019
+ return (0, exports.DNSSnapshotApiFp)(this.configuration).getSnapshotV1(domain, snapshotId, options).then((request) => request(this.axios, this.basePath));
1020
+ }
1021
+ /**
1022
+ * This endpoint restores DNS zone to the selected snapshot.
1023
+ * @summary Restore snapshot
1024
+ * @param {string} domain Domain name
1025
+ * @param {number} snapshotId Snapshot ID
1026
+ * @param {*} [options] Override http request option.
1027
+ * @throws {RequiredError}
1028
+ * @memberof DNSSnapshotApi
1029
+ */
1030
+ restoreSnapshotV1(domain, snapshotId, options) {
1031
+ return (0, exports.DNSSnapshotApiFp)(this.configuration).restoreSnapshotV1(domain, snapshotId, options).then((request) => request(this.axios, this.basePath));
1032
+ }
1033
+ }
1034
+ exports.DNSSnapshotApi = DNSSnapshotApi;
1035
+ /**
1036
+ * DNSZoneApi - axios parameter creator
1037
+ * @export
1038
+ */
1039
+ const DNSZoneApiAxiosParamCreator = function (configuration) {
1040
+ return {
1041
+ /**
1042
+ * This endpoint deletes selected DNS records for the selected domain.
1043
+ * @summary Delete zone records
1044
+ * @param {string} domain Domain name
1045
+ * @param {DNSV1ZoneDestroyRequest} dNSV1ZoneDestroyRequest
1046
+ * @param {*} [options] Override http request option.
1047
+ * @throws {RequiredError}
1048
+ */
1049
+ deleteZoneRecordsV1: (domain_1, dNSV1ZoneDestroyRequest_1, ...args_1) => __awaiter(this, [domain_1, dNSV1ZoneDestroyRequest_1, ...args_1], void 0, function* (domain, dNSV1ZoneDestroyRequest, options = {}) {
1050
+ // verify required parameter 'domain' is not null or undefined
1051
+ (0, common_1.assertParamExists)('deleteZoneRecordsV1', 'domain', domain);
1052
+ // verify required parameter 'dNSV1ZoneDestroyRequest' is not null or undefined
1053
+ (0, common_1.assertParamExists)('deleteZoneRecordsV1', 'dNSV1ZoneDestroyRequest', dNSV1ZoneDestroyRequest);
1054
+ const localVarPath = `/api/dns/v1/zones/{domain}`
1055
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
1056
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1057
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1058
+ let baseOptions;
1059
+ if (configuration) {
1060
+ baseOptions = configuration.baseOptions;
1061
+ }
1062
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
1063
+ const localVarHeaderParameter = {};
1064
+ const localVarQueryParameter = {};
1065
+ // authentication apiToken required
1066
+ // http bearer authentication required
1067
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1068
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1069
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1070
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1071
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1072
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(dNSV1ZoneDestroyRequest, localVarRequestOptions, configuration);
1073
+ return {
1074
+ url: (0, common_1.toPathString)(localVarUrlObj),
1075
+ options: localVarRequestOptions,
1076
+ };
1077
+ }),
1078
+ /**
1079
+ * This endpoint retrieves DNS zone records for a specific domain.
1080
+ * @summary Get records
1081
+ * @param {string} domain Domain name
1082
+ * @param {*} [options] Override http request option.
1083
+ * @throws {RequiredError}
1084
+ */
1085
+ getRecordsV1: (domain_1, ...args_1) => __awaiter(this, [domain_1, ...args_1], void 0, function* (domain, options = {}) {
1086
+ // verify required parameter 'domain' is not null or undefined
1087
+ (0, common_1.assertParamExists)('getRecordsV1', 'domain', domain);
1088
+ const localVarPath = `/api/dns/v1/zones/{domain}`
1089
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
1090
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1091
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1092
+ let baseOptions;
1093
+ if (configuration) {
1094
+ baseOptions = configuration.baseOptions;
1095
+ }
1096
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1097
+ const localVarHeaderParameter = {};
1098
+ const localVarQueryParameter = {};
1099
+ // authentication apiToken required
1100
+ // http bearer authentication required
1101
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1102
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1103
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1104
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1105
+ return {
1106
+ url: (0, common_1.toPathString)(localVarUrlObj),
1107
+ options: localVarRequestOptions,
1108
+ };
1109
+ }),
1110
+ /**
1111
+ * This endpoint resets DNS zone to the default records.
1112
+ * @summary Reset zone records
1113
+ * @param {string} domain Domain name
1114
+ * @param {DNSV1ZoneResetRequest} dNSV1ZoneResetRequest
1115
+ * @param {*} [options] Override http request option.
1116
+ * @throws {RequiredError}
1117
+ */
1118
+ resetZoneRecordsV1: (domain_1, dNSV1ZoneResetRequest_1, ...args_1) => __awaiter(this, [domain_1, dNSV1ZoneResetRequest_1, ...args_1], void 0, function* (domain, dNSV1ZoneResetRequest, options = {}) {
1119
+ // verify required parameter 'domain' is not null or undefined
1120
+ (0, common_1.assertParamExists)('resetZoneRecordsV1', 'domain', domain);
1121
+ // verify required parameter 'dNSV1ZoneResetRequest' is not null or undefined
1122
+ (0, common_1.assertParamExists)('resetZoneRecordsV1', 'dNSV1ZoneResetRequest', dNSV1ZoneResetRequest);
1123
+ const localVarPath = `/api/dns/v1/zones/{domain}/reset`
1124
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
1125
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1126
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1127
+ let baseOptions;
1128
+ if (configuration) {
1129
+ baseOptions = configuration.baseOptions;
1130
+ }
1131
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1132
+ const localVarHeaderParameter = {};
1133
+ const localVarQueryParameter = {};
1134
+ // authentication apiToken required
1135
+ // http bearer authentication required
1136
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1137
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1138
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1139
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1140
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1141
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(dNSV1ZoneResetRequest, localVarRequestOptions, configuration);
1142
+ return {
1143
+ url: (0, common_1.toPathString)(localVarUrlObj),
1144
+ options: localVarRequestOptions,
1145
+ };
1146
+ }),
1147
+ /**
1148
+ * This endpoint updates DNS records for the selected domain. This endpoint could also be used to delete single record when multiple records exist under same name. In that case use `overwrite` flag and provide records which should remain. All other records under same name will be deleted.
1149
+ * @summary Update zone records
1150
+ * @param {string} domain Domain name
1151
+ * @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest
1152
+ * @param {*} [options] Override http request option.
1153
+ * @throws {RequiredError}
1154
+ */
1155
+ updateZoneRecordsV1: (domain_1, dNSV1ZoneUpdateRequest_1, ...args_1) => __awaiter(this, [domain_1, dNSV1ZoneUpdateRequest_1, ...args_1], void 0, function* (domain, dNSV1ZoneUpdateRequest, options = {}) {
1156
+ // verify required parameter 'domain' is not null or undefined
1157
+ (0, common_1.assertParamExists)('updateZoneRecordsV1', 'domain', domain);
1158
+ // verify required parameter 'dNSV1ZoneUpdateRequest' is not null or undefined
1159
+ (0, common_1.assertParamExists)('updateZoneRecordsV1', 'dNSV1ZoneUpdateRequest', dNSV1ZoneUpdateRequest);
1160
+ const localVarPath = `/api/dns/v1/zones/{domain}`
1161
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
1162
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1163
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1164
+ let baseOptions;
1165
+ if (configuration) {
1166
+ baseOptions = configuration.baseOptions;
1167
+ }
1168
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
1169
+ const localVarHeaderParameter = {};
1170
+ const localVarQueryParameter = {};
1171
+ // authentication apiToken required
1172
+ // http bearer authentication required
1173
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1174
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1175
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1176
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1177
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1178
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(dNSV1ZoneUpdateRequest, localVarRequestOptions, configuration);
1179
+ return {
1180
+ url: (0, common_1.toPathString)(localVarUrlObj),
1181
+ options: localVarRequestOptions,
1182
+ };
1183
+ }),
1184
+ /**
1185
+ * This endpoint used to validate DNS records prior update for the selected domain. If the validation is successful, the response will contain `200 Success` code. If there is validation error, the response will fail with `422 Validation error` code.
1186
+ * @summary Validate zone records
1187
+ * @param {string} domain Domain name
1188
+ * @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest
1189
+ * @param {*} [options] Override http request option.
1190
+ * @throws {RequiredError}
1191
+ */
1192
+ validateZoneRecordsV1: (domain_1, dNSV1ZoneUpdateRequest_1, ...args_1) => __awaiter(this, [domain_1, dNSV1ZoneUpdateRequest_1, ...args_1], void 0, function* (domain, dNSV1ZoneUpdateRequest, options = {}) {
1193
+ // verify required parameter 'domain' is not null or undefined
1194
+ (0, common_1.assertParamExists)('validateZoneRecordsV1', 'domain', domain);
1195
+ // verify required parameter 'dNSV1ZoneUpdateRequest' is not null or undefined
1196
+ (0, common_1.assertParamExists)('validateZoneRecordsV1', 'dNSV1ZoneUpdateRequest', dNSV1ZoneUpdateRequest);
1197
+ const localVarPath = `/api/dns/v1/zones/{domain}/validate`
1198
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
1199
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1200
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1201
+ let baseOptions;
1202
+ if (configuration) {
1203
+ baseOptions = configuration.baseOptions;
1204
+ }
1205
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1206
+ const localVarHeaderParameter = {};
1207
+ const localVarQueryParameter = {};
1208
+ // authentication apiToken required
1209
+ // http bearer authentication required
1210
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1211
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1212
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1213
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1214
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1215
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(dNSV1ZoneUpdateRequest, localVarRequestOptions, configuration);
1216
+ return {
1217
+ url: (0, common_1.toPathString)(localVarUrlObj),
1218
+ options: localVarRequestOptions,
1219
+ };
1220
+ }),
1221
+ };
1222
+ };
1223
+ exports.DNSZoneApiAxiosParamCreator = DNSZoneApiAxiosParamCreator;
1224
+ /**
1225
+ * DNSZoneApi - functional programming interface
1226
+ * @export
1227
+ */
1228
+ const DNSZoneApiFp = function (configuration) {
1229
+ const localVarAxiosParamCreator = (0, exports.DNSZoneApiAxiosParamCreator)(configuration);
1230
+ return {
1231
+ /**
1232
+ * This endpoint deletes selected DNS records for the selected domain.
1233
+ * @summary Delete zone records
1234
+ * @param {string} domain Domain name
1235
+ * @param {DNSV1ZoneDestroyRequest} dNSV1ZoneDestroyRequest
1236
+ * @param {*} [options] Override http request option.
1237
+ * @throws {RequiredError}
1238
+ */
1239
+ deleteZoneRecordsV1(domain, dNSV1ZoneDestroyRequest, options) {
1240
+ return __awaiter(this, void 0, void 0, function* () {
1241
+ var _a, _b;
1242
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteZoneRecordsV1(domain, dNSV1ZoneDestroyRequest, options);
1243
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['DNSZoneApi.deleteZoneRecordsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
1244
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1245
+ });
1246
+ },
1247
+ /**
1248
+ * This endpoint retrieves DNS zone records for a specific domain.
1249
+ * @summary Get records
1250
+ * @param {string} domain Domain name
1251
+ * @param {*} [options] Override http request option.
1252
+ * @throws {RequiredError}
1253
+ */
1254
+ getRecordsV1(domain, options) {
1255
+ return __awaiter(this, void 0, void 0, function* () {
1256
+ var _a, _b;
1257
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getRecordsV1(domain, options);
1258
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['DNSZoneApi.getRecordsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
1259
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1260
+ });
1261
+ },
1262
+ /**
1263
+ * This endpoint resets DNS zone to the default records.
1264
+ * @summary Reset zone records
1265
+ * @param {string} domain Domain name
1266
+ * @param {DNSV1ZoneResetRequest} dNSV1ZoneResetRequest
1267
+ * @param {*} [options] Override http request option.
1268
+ * @throws {RequiredError}
1269
+ */
1270
+ resetZoneRecordsV1(domain, dNSV1ZoneResetRequest, options) {
1271
+ return __awaiter(this, void 0, void 0, function* () {
1272
+ var _a, _b;
1273
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.resetZoneRecordsV1(domain, dNSV1ZoneResetRequest, options);
1274
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['DNSZoneApi.resetZoneRecordsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
1275
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1276
+ });
1277
+ },
1278
+ /**
1279
+ * This endpoint updates DNS records for the selected domain. This endpoint could also be used to delete single record when multiple records exist under same name. In that case use `overwrite` flag and provide records which should remain. All other records under same name will be deleted.
1280
+ * @summary Update zone records
1281
+ * @param {string} domain Domain name
1282
+ * @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest
1283
+ * @param {*} [options] Override http request option.
1284
+ * @throws {RequiredError}
1285
+ */
1286
+ updateZoneRecordsV1(domain, dNSV1ZoneUpdateRequest, options) {
1287
+ return __awaiter(this, void 0, void 0, function* () {
1288
+ var _a, _b;
1289
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateZoneRecordsV1(domain, dNSV1ZoneUpdateRequest, options);
1290
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['DNSZoneApi.updateZoneRecordsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
1291
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1292
+ });
1293
+ },
1294
+ /**
1295
+ * This endpoint used to validate DNS records prior update for the selected domain. If the validation is successful, the response will contain `200 Success` code. If there is validation error, the response will fail with `422 Validation error` code.
1296
+ * @summary Validate zone records
1297
+ * @param {string} domain Domain name
1298
+ * @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest
1299
+ * @param {*} [options] Override http request option.
1300
+ * @throws {RequiredError}
1301
+ */
1302
+ validateZoneRecordsV1(domain, dNSV1ZoneUpdateRequest, options) {
1303
+ return __awaiter(this, void 0, void 0, function* () {
1304
+ var _a, _b;
1305
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.validateZoneRecordsV1(domain, dNSV1ZoneUpdateRequest, options);
1306
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['DNSZoneApi.validateZoneRecordsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
1307
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1308
+ });
1309
+ },
1310
+ };
1311
+ };
1312
+ exports.DNSZoneApiFp = DNSZoneApiFp;
1313
+ /**
1314
+ * DNSZoneApi - factory interface
1315
+ * @export
1316
+ */
1317
+ const DNSZoneApiFactory = function (configuration, basePath, axios) {
1318
+ const localVarFp = (0, exports.DNSZoneApiFp)(configuration);
1319
+ return {
1320
+ /**
1321
+ * This endpoint deletes selected DNS records for the selected domain.
1322
+ * @summary Delete zone records
1323
+ * @param {string} domain Domain name
1324
+ * @param {DNSV1ZoneDestroyRequest} dNSV1ZoneDestroyRequest
1325
+ * @param {*} [options] Override http request option.
1326
+ * @throws {RequiredError}
1327
+ */
1328
+ deleteZoneRecordsV1(domain, dNSV1ZoneDestroyRequest, options) {
1329
+ return localVarFp.deleteZoneRecordsV1(domain, dNSV1ZoneDestroyRequest, options).then((request) => request(axios, basePath));
1330
+ },
1331
+ /**
1332
+ * This endpoint retrieves DNS zone records for a specific domain.
1333
+ * @summary Get records
1334
+ * @param {string} domain Domain name
1335
+ * @param {*} [options] Override http request option.
1336
+ * @throws {RequiredError}
1337
+ */
1338
+ getRecordsV1(domain, options) {
1339
+ return localVarFp.getRecordsV1(domain, options).then((request) => request(axios, basePath));
1340
+ },
1341
+ /**
1342
+ * This endpoint resets DNS zone to the default records.
1343
+ * @summary Reset zone records
1344
+ * @param {string} domain Domain name
1345
+ * @param {DNSV1ZoneResetRequest} dNSV1ZoneResetRequest
1346
+ * @param {*} [options] Override http request option.
1347
+ * @throws {RequiredError}
1348
+ */
1349
+ resetZoneRecordsV1(domain, dNSV1ZoneResetRequest, options) {
1350
+ return localVarFp.resetZoneRecordsV1(domain, dNSV1ZoneResetRequest, options).then((request) => request(axios, basePath));
1351
+ },
1352
+ /**
1353
+ * This endpoint updates DNS records for the selected domain. This endpoint could also be used to delete single record when multiple records exist under same name. In that case use `overwrite` flag and provide records which should remain. All other records under same name will be deleted.
1354
+ * @summary Update zone records
1355
+ * @param {string} domain Domain name
1356
+ * @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest
1357
+ * @param {*} [options] Override http request option.
1358
+ * @throws {RequiredError}
1359
+ */
1360
+ updateZoneRecordsV1(domain, dNSV1ZoneUpdateRequest, options) {
1361
+ return localVarFp.updateZoneRecordsV1(domain, dNSV1ZoneUpdateRequest, options).then((request) => request(axios, basePath));
1362
+ },
1363
+ /**
1364
+ * This endpoint used to validate DNS records prior update for the selected domain. If the validation is successful, the response will contain `200 Success` code. If there is validation error, the response will fail with `422 Validation error` code.
1365
+ * @summary Validate zone records
1366
+ * @param {string} domain Domain name
1367
+ * @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest
1368
+ * @param {*} [options] Override http request option.
1369
+ * @throws {RequiredError}
1370
+ */
1371
+ validateZoneRecordsV1(domain, dNSV1ZoneUpdateRequest, options) {
1372
+ return localVarFp.validateZoneRecordsV1(domain, dNSV1ZoneUpdateRequest, options).then((request) => request(axios, basePath));
1373
+ },
1374
+ };
1375
+ };
1376
+ exports.DNSZoneApiFactory = DNSZoneApiFactory;
1377
+ /**
1378
+ * DNSZoneApi - object-oriented interface
1379
+ * @export
1380
+ * @class DNSZoneApi
1381
+ * @extends {BaseAPI}
1382
+ */
1383
+ class DNSZoneApi extends base_1.BaseAPI {
1384
+ /**
1385
+ * This endpoint deletes selected DNS records for the selected domain.
1386
+ * @summary Delete zone records
1387
+ * @param {string} domain Domain name
1388
+ * @param {DNSV1ZoneDestroyRequest} dNSV1ZoneDestroyRequest
1389
+ * @param {*} [options] Override http request option.
1390
+ * @throws {RequiredError}
1391
+ * @memberof DNSZoneApi
1392
+ */
1393
+ deleteZoneRecordsV1(domain, dNSV1ZoneDestroyRequest, options) {
1394
+ return (0, exports.DNSZoneApiFp)(this.configuration).deleteZoneRecordsV1(domain, dNSV1ZoneDestroyRequest, options).then((request) => request(this.axios, this.basePath));
1395
+ }
1396
+ /**
1397
+ * This endpoint retrieves DNS zone records for a specific domain.
1398
+ * @summary Get records
1399
+ * @param {string} domain Domain name
1400
+ * @param {*} [options] Override http request option.
1401
+ * @throws {RequiredError}
1402
+ * @memberof DNSZoneApi
1403
+ */
1404
+ getRecordsV1(domain, options) {
1405
+ return (0, exports.DNSZoneApiFp)(this.configuration).getRecordsV1(domain, options).then((request) => request(this.axios, this.basePath));
1406
+ }
1407
+ /**
1408
+ * This endpoint resets DNS zone to the default records.
1409
+ * @summary Reset zone records
1410
+ * @param {string} domain Domain name
1411
+ * @param {DNSV1ZoneResetRequest} dNSV1ZoneResetRequest
1412
+ * @param {*} [options] Override http request option.
1413
+ * @throws {RequiredError}
1414
+ * @memberof DNSZoneApi
1415
+ */
1416
+ resetZoneRecordsV1(domain, dNSV1ZoneResetRequest, options) {
1417
+ return (0, exports.DNSZoneApiFp)(this.configuration).resetZoneRecordsV1(domain, dNSV1ZoneResetRequest, options).then((request) => request(this.axios, this.basePath));
1418
+ }
1419
+ /**
1420
+ * This endpoint updates DNS records for the selected domain. This endpoint could also be used to delete single record when multiple records exist under same name. In that case use `overwrite` flag and provide records which should remain. All other records under same name will be deleted.
1421
+ * @summary Update zone records
1422
+ * @param {string} domain Domain name
1423
+ * @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest
1424
+ * @param {*} [options] Override http request option.
1425
+ * @throws {RequiredError}
1426
+ * @memberof DNSZoneApi
1427
+ */
1428
+ updateZoneRecordsV1(domain, dNSV1ZoneUpdateRequest, options) {
1429
+ return (0, exports.DNSZoneApiFp)(this.configuration).updateZoneRecordsV1(domain, dNSV1ZoneUpdateRequest, options).then((request) => request(this.axios, this.basePath));
1430
+ }
1431
+ /**
1432
+ * This endpoint used to validate DNS records prior update for the selected domain. If the validation is successful, the response will contain `200 Success` code. If there is validation error, the response will fail with `422 Validation error` code.
1433
+ * @summary Validate zone records
1434
+ * @param {string} domain Domain name
1435
+ * @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest
1436
+ * @param {*} [options] Override http request option.
1437
+ * @throws {RequiredError}
1438
+ * @memberof DNSZoneApi
1439
+ */
1440
+ validateZoneRecordsV1(domain, dNSV1ZoneUpdateRequest, options) {
1441
+ return (0, exports.DNSZoneApiFp)(this.configuration).validateZoneRecordsV1(domain, dNSV1ZoneUpdateRequest, options).then((request) => request(this.axios, this.basePath));
1442
+ }
1443
+ }
1444
+ exports.DNSZoneApi = DNSZoneApi;
743
1445
  /**
744
1446
  * DomainsPortfolioApi - axios parameter creator
745
1447
  * @export