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/api.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 0.0.9
6
+ * API Version: 0.0.16
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -614,6 +614,280 @@ export interface CommonSuccessEmptyResource {
614
614
  */
615
615
  'message'?: string;
616
616
  }
617
+ /**
618
+ *
619
+ * @export
620
+ * @interface DNSV1SnapshotSnapshotResource
621
+ */
622
+ export interface DNSV1SnapshotSnapshotResource {
623
+ /**
624
+ * Snapshot ID
625
+ * @type {number}
626
+ * @memberof DNSV1SnapshotSnapshotResource
627
+ */
628
+ 'id'?: number;
629
+ /**
630
+ * Reason of the update
631
+ * @type {string}
632
+ * @memberof DNSV1SnapshotSnapshotResource
633
+ */
634
+ 'reason'?: string;
635
+ /**
636
+ *
637
+ * @type {string}
638
+ * @memberof DNSV1SnapshotSnapshotResource
639
+ */
640
+ 'created_at'?: string;
641
+ }
642
+ /**
643
+ *
644
+ * @export
645
+ * @interface DNSV1SnapshotSnapshotWithContentResource
646
+ */
647
+ export interface DNSV1SnapshotSnapshotWithContentResource {
648
+ /**
649
+ * Snapshot ID
650
+ * @type {number}
651
+ * @memberof DNSV1SnapshotSnapshotWithContentResource
652
+ */
653
+ 'id'?: number;
654
+ /**
655
+ * Reason of the update
656
+ * @type {string}
657
+ * @memberof DNSV1SnapshotSnapshotWithContentResource
658
+ */
659
+ 'reason'?: string;
660
+ /**
661
+ * Contents of the DNS zone
662
+ * @type {string}
663
+ * @memberof DNSV1SnapshotSnapshotWithContentResource
664
+ */
665
+ 'snapshot'?: string;
666
+ /**
667
+ *
668
+ * @type {string}
669
+ * @memberof DNSV1SnapshotSnapshotWithContentResource
670
+ */
671
+ 'created_at'?: string;
672
+ }
673
+ /**
674
+ *
675
+ * @export
676
+ * @interface DNSV1ZoneDestroyRequest
677
+ */
678
+ export interface DNSV1ZoneDestroyRequest {
679
+ /**
680
+ * Filter records for deletion
681
+ * @type {Array<DNSV1ZoneDestroyRequestFiltersInner>}
682
+ * @memberof DNSV1ZoneDestroyRequest
683
+ */
684
+ 'filters': Array<DNSV1ZoneDestroyRequestFiltersInner>;
685
+ }
686
+ /**
687
+ *
688
+ * @export
689
+ * @interface DNSV1ZoneDestroyRequestFiltersInner
690
+ */
691
+ export interface DNSV1ZoneDestroyRequestFiltersInner {
692
+ /**
693
+ * Name of the record
694
+ * @type {string}
695
+ * @memberof DNSV1ZoneDestroyRequestFiltersInner
696
+ */
697
+ 'name'?: string;
698
+ /**
699
+ * Type of the record
700
+ * @type {string}
701
+ * @memberof DNSV1ZoneDestroyRequestFiltersInner
702
+ */
703
+ 'type'?: DNSV1ZoneDestroyRequestFiltersInnerTypeEnum;
704
+ }
705
+
706
+ export const DNSV1ZoneDestroyRequestFiltersInnerTypeEnum = {
707
+ A: 'A',
708
+ Aaaa: 'AAAA',
709
+ Cname: 'CNAME',
710
+ Alias: 'ALIAS',
711
+ Mx: 'MX',
712
+ Txt: 'TXT',
713
+ Ns: 'NS',
714
+ Soa: 'SOA',
715
+ Srv: 'SRV',
716
+ Caa: 'CAA'
717
+ } as const;
718
+
719
+ export type DNSV1ZoneDestroyRequestFiltersInnerTypeEnum = typeof DNSV1ZoneDestroyRequestFiltersInnerTypeEnum[keyof typeof DNSV1ZoneDestroyRequestFiltersInnerTypeEnum];
720
+
721
+ /**
722
+ *
723
+ * @export
724
+ * @interface DNSV1ZoneNameRecordResource
725
+ */
726
+ export interface DNSV1ZoneNameRecordResource {
727
+ /**
728
+ * Content of the name record
729
+ * @type {string}
730
+ * @memberof DNSV1ZoneNameRecordResource
731
+ */
732
+ 'content'?: string;
733
+ /**
734
+ * Flag to mark name record as disabled
735
+ * @type {boolean}
736
+ * @memberof DNSV1ZoneNameRecordResource
737
+ */
738
+ 'disabled'?: boolean;
739
+ }
740
+ /**
741
+ *
742
+ * @export
743
+ * @interface DNSV1ZoneRecordResource
744
+ */
745
+ export interface DNSV1ZoneRecordResource {
746
+ /**
747
+ * Name of the record (use `@` for wildcard name)
748
+ * @type {string}
749
+ * @memberof DNSV1ZoneRecordResource
750
+ */
751
+ 'name'?: string;
752
+ /**
753
+ * Array of [`DNS.V1.Zone.NameRecordResource`](#model/dnsv1zonenamerecordresource)
754
+ * @type {Array<DNSV1ZoneNameRecordResource>}
755
+ * @memberof DNSV1ZoneRecordResource
756
+ */
757
+ 'records'?: Array<DNSV1ZoneNameRecordResource>;
758
+ /**
759
+ * TTL (Time-To-Live) of the record
760
+ * @type {number}
761
+ * @memberof DNSV1ZoneRecordResource
762
+ */
763
+ 'ttl'?: number;
764
+ /**
765
+ * Type of the record
766
+ * @type {string}
767
+ * @memberof DNSV1ZoneRecordResource
768
+ */
769
+ 'type'?: DNSV1ZoneRecordResourceTypeEnum;
770
+ }
771
+
772
+ export const DNSV1ZoneRecordResourceTypeEnum = {
773
+ A: 'A',
774
+ Aaaa: 'AAAA',
775
+ Cname: 'CNAME',
776
+ Alias: 'ALIAS',
777
+ Mx: 'MX',
778
+ Txt: 'TXT',
779
+ Ns: 'NS',
780
+ Soa: 'SOA',
781
+ Srv: 'SRV',
782
+ Caa: 'CAA'
783
+ } as const;
784
+
785
+ export type DNSV1ZoneRecordResourceTypeEnum = typeof DNSV1ZoneRecordResourceTypeEnum[keyof typeof DNSV1ZoneRecordResourceTypeEnum];
786
+
787
+ /**
788
+ *
789
+ * @export
790
+ * @interface DNSV1ZoneResetRequest
791
+ */
792
+ export interface DNSV1ZoneResetRequest {
793
+ /**
794
+ * Determines if operation should be run synchronously
795
+ * @type {boolean}
796
+ * @memberof DNSV1ZoneResetRequest
797
+ */
798
+ 'sync'?: boolean;
799
+ /**
800
+ * Determines if email records should be reset
801
+ * @type {boolean}
802
+ * @memberof DNSV1ZoneResetRequest
803
+ */
804
+ 'reset_email_records'?: boolean;
805
+ /**
806
+ * Specifies which record types to not reset
807
+ * @type {Array<string>}
808
+ * @memberof DNSV1ZoneResetRequest
809
+ */
810
+ 'whitelisted_record_types'?: Array<string>;
811
+ }
812
+ /**
813
+ *
814
+ * @export
815
+ * @interface DNSV1ZoneUpdateRequest
816
+ */
817
+ export interface DNSV1ZoneUpdateRequest {
818
+ /**
819
+ * If `true`, resource records (RRs) matching name and type will be deleted and new RRs will be created, otherwise resource records\' ttl\'s are updated and new records are appended. If no matching RRs are found, they are created.
820
+ * @type {boolean}
821
+ * @memberof DNSV1ZoneUpdateRequest
822
+ */
823
+ 'overwrite'?: boolean;
824
+ /**
825
+ *
826
+ * @type {Array<DNSV1ZoneUpdateRequestZoneInner>}
827
+ * @memberof DNSV1ZoneUpdateRequest
828
+ */
829
+ 'zone': Array<DNSV1ZoneUpdateRequestZoneInner>;
830
+ }
831
+ /**
832
+ *
833
+ * @export
834
+ * @interface DNSV1ZoneUpdateRequestZoneInner
835
+ */
836
+ export interface DNSV1ZoneUpdateRequestZoneInner {
837
+ /**
838
+ * Name of the record (use `@` for wildcard name)
839
+ * @type {string}
840
+ * @memberof DNSV1ZoneUpdateRequestZoneInner
841
+ */
842
+ 'name': string;
843
+ /**
844
+ * Records assigned to the name
845
+ * @type {Array<DNSV1ZoneUpdateRequestZoneInnerRecordsInner>}
846
+ * @memberof DNSV1ZoneUpdateRequestZoneInner
847
+ */
848
+ 'records'?: Array<DNSV1ZoneUpdateRequestZoneInnerRecordsInner>;
849
+ /**
850
+ * TTL (Time-To-Live) of the record
851
+ * @type {number}
852
+ * @memberof DNSV1ZoneUpdateRequestZoneInner
853
+ */
854
+ 'ttl'?: number;
855
+ /**
856
+ * Type of the record
857
+ * @type {string}
858
+ * @memberof DNSV1ZoneUpdateRequestZoneInner
859
+ */
860
+ 'type': DNSV1ZoneUpdateRequestZoneInnerTypeEnum;
861
+ }
862
+
863
+ export const DNSV1ZoneUpdateRequestZoneInnerTypeEnum = {
864
+ A: 'A',
865
+ Aaaa: 'AAAA',
866
+ Cname: 'CNAME',
867
+ Alias: 'ALIAS',
868
+ Mx: 'MX',
869
+ Txt: 'TXT',
870
+ Ns: 'NS',
871
+ Soa: 'SOA',
872
+ Srv: 'SRV',
873
+ Caa: 'CAA'
874
+ } as const;
875
+
876
+ export type DNSV1ZoneUpdateRequestZoneInnerTypeEnum = typeof DNSV1ZoneUpdateRequestZoneInnerTypeEnum[keyof typeof DNSV1ZoneUpdateRequestZoneInnerTypeEnum];
877
+
878
+ /**
879
+ *
880
+ * @export
881
+ * @interface DNSV1ZoneUpdateRequestZoneInnerRecordsInner
882
+ */
883
+ export interface DNSV1ZoneUpdateRequestZoneInnerRecordsInner {
884
+ /**
885
+ * Content of the name record
886
+ * @type {string}
887
+ * @memberof DNSV1ZoneUpdateRequestZoneInnerRecordsInner
888
+ */
889
+ 'content': string;
890
+ }
617
891
  /**
618
892
  *
619
893
  * @export
@@ -2377,6 +2651,710 @@ export class BillingSubscriptionsApi extends BaseAPI {
2377
2651
 
2378
2652
 
2379
2653
 
2654
+ /**
2655
+ * DNSSnapshotApi - axios parameter creator
2656
+ * @export
2657
+ */
2658
+ export const DNSSnapshotApiAxiosParamCreator = function (configuration?: Configuration) {
2659
+ return {
2660
+ /**
2661
+ * This endpoint retrieves list of DNS snapshots.
2662
+ * @summary Get snapshot list
2663
+ * @param {string} domain Domain name
2664
+ * @param {*} [options] Override http request option.
2665
+ * @throws {RequiredError}
2666
+ */
2667
+ getSnapshotListV1: async (domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2668
+ // verify required parameter 'domain' is not null or undefined
2669
+ assertParamExists('getSnapshotListV1', 'domain', domain)
2670
+ const localVarPath = `/api/dns/v1/snapshots/{domain}`
2671
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
2672
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2673
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2674
+ let baseOptions;
2675
+ if (configuration) {
2676
+ baseOptions = configuration.baseOptions;
2677
+ }
2678
+
2679
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
2680
+ const localVarHeaderParameter = {} as any;
2681
+ const localVarQueryParameter = {} as any;
2682
+
2683
+ // authentication apiToken required
2684
+ // http bearer authentication required
2685
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
2686
+
2687
+
2688
+
2689
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2690
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2691
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2692
+
2693
+ return {
2694
+ url: toPathString(localVarUrlObj),
2695
+ options: localVarRequestOptions,
2696
+ };
2697
+ },
2698
+ /**
2699
+ * This endpoint retrieves particular DNS snapshot with the contents of DNS zone records.
2700
+ * @summary Get snapshot
2701
+ * @param {string} domain Domain name
2702
+ * @param {number} snapshotId Snapshot ID
2703
+ * @param {*} [options] Override http request option.
2704
+ * @throws {RequiredError}
2705
+ */
2706
+ getSnapshotV1: async (domain: string, snapshotId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2707
+ // verify required parameter 'domain' is not null or undefined
2708
+ assertParamExists('getSnapshotV1', 'domain', domain)
2709
+ // verify required parameter 'snapshotId' is not null or undefined
2710
+ assertParamExists('getSnapshotV1', 'snapshotId', snapshotId)
2711
+ const localVarPath = `/api/dns/v1/snapshots/{domain}/{snapshotId}`
2712
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)))
2713
+ .replace(`{${"snapshotId"}}`, encodeURIComponent(String(snapshotId)));
2714
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2715
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2716
+ let baseOptions;
2717
+ if (configuration) {
2718
+ baseOptions = configuration.baseOptions;
2719
+ }
2720
+
2721
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
2722
+ const localVarHeaderParameter = {} as any;
2723
+ const localVarQueryParameter = {} as any;
2724
+
2725
+ // authentication apiToken required
2726
+ // http bearer authentication required
2727
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
2728
+
2729
+
2730
+
2731
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2732
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2733
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2734
+
2735
+ return {
2736
+ url: toPathString(localVarUrlObj),
2737
+ options: localVarRequestOptions,
2738
+ };
2739
+ },
2740
+ /**
2741
+ * This endpoint restores DNS zone to the selected snapshot.
2742
+ * @summary Restore snapshot
2743
+ * @param {string} domain Domain name
2744
+ * @param {number} snapshotId Snapshot ID
2745
+ * @param {*} [options] Override http request option.
2746
+ * @throws {RequiredError}
2747
+ */
2748
+ restoreSnapshotV1: async (domain: string, snapshotId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2749
+ // verify required parameter 'domain' is not null or undefined
2750
+ assertParamExists('restoreSnapshotV1', 'domain', domain)
2751
+ // verify required parameter 'snapshotId' is not null or undefined
2752
+ assertParamExists('restoreSnapshotV1', 'snapshotId', snapshotId)
2753
+ const localVarPath = `/api/dns/v1/snapshots/{domain}/{snapshotId}`
2754
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)))
2755
+ .replace(`{${"snapshotId"}}`, encodeURIComponent(String(snapshotId)));
2756
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2757
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2758
+ let baseOptions;
2759
+ if (configuration) {
2760
+ baseOptions = configuration.baseOptions;
2761
+ }
2762
+
2763
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
2764
+ const localVarHeaderParameter = {} as any;
2765
+ const localVarQueryParameter = {} as any;
2766
+
2767
+ // authentication apiToken required
2768
+ // http bearer authentication required
2769
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
2770
+
2771
+
2772
+
2773
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2774
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2775
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2776
+
2777
+ return {
2778
+ url: toPathString(localVarUrlObj),
2779
+ options: localVarRequestOptions,
2780
+ };
2781
+ },
2782
+ }
2783
+ };
2784
+
2785
+ /**
2786
+ * DNSSnapshotApi - functional programming interface
2787
+ * @export
2788
+ */
2789
+ export const DNSSnapshotApiFp = function(configuration?: Configuration) {
2790
+ const localVarAxiosParamCreator = DNSSnapshotApiAxiosParamCreator(configuration)
2791
+ return {
2792
+ /**
2793
+ * This endpoint retrieves list of DNS snapshots.
2794
+ * @summary Get snapshot list
2795
+ * @param {string} domain Domain name
2796
+ * @param {*} [options] Override http request option.
2797
+ * @throws {RequiredError}
2798
+ */
2799
+ async getSnapshotListV1(domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<DNSV1SnapshotSnapshotResource>>> {
2800
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getSnapshotListV1(domain, options);
2801
+ const localVarOperationServerBasePath = operationServerMap['DNSSnapshotApi.getSnapshotListV1']?.[0]?.url;
2802
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2803
+ },
2804
+ /**
2805
+ * This endpoint retrieves particular DNS snapshot with the contents of DNS zone records.
2806
+ * @summary Get snapshot
2807
+ * @param {string} domain Domain name
2808
+ * @param {number} snapshotId Snapshot ID
2809
+ * @param {*} [options] Override http request option.
2810
+ * @throws {RequiredError}
2811
+ */
2812
+ async getSnapshotV1(domain: string, snapshotId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DNSV1SnapshotSnapshotWithContentResource>> {
2813
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getSnapshotV1(domain, snapshotId, options);
2814
+ const localVarOperationServerBasePath = operationServerMap['DNSSnapshotApi.getSnapshotV1']?.[0]?.url;
2815
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2816
+ },
2817
+ /**
2818
+ * This endpoint restores DNS zone to the selected snapshot.
2819
+ * @summary Restore snapshot
2820
+ * @param {string} domain Domain name
2821
+ * @param {number} snapshotId Snapshot ID
2822
+ * @param {*} [options] Override http request option.
2823
+ * @throws {RequiredError}
2824
+ */
2825
+ async restoreSnapshotV1(domain: string, snapshotId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
2826
+ const localVarAxiosArgs = await localVarAxiosParamCreator.restoreSnapshotV1(domain, snapshotId, options);
2827
+ const localVarOperationServerBasePath = operationServerMap['DNSSnapshotApi.restoreSnapshotV1']?.[0]?.url;
2828
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2829
+ },
2830
+ }
2831
+ };
2832
+
2833
+ /**
2834
+ * DNSSnapshotApi - factory interface
2835
+ * @export
2836
+ */
2837
+ export const DNSSnapshotApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
2838
+ const localVarFp = DNSSnapshotApiFp(configuration)
2839
+ return {
2840
+ /**
2841
+ * This endpoint retrieves list of DNS snapshots.
2842
+ * @summary Get snapshot list
2843
+ * @param {string} domain Domain name
2844
+ * @param {*} [options] Override http request option.
2845
+ * @throws {RequiredError}
2846
+ */
2847
+ getSnapshotListV1(domain: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<DNSV1SnapshotSnapshotResource>> {
2848
+ return localVarFp.getSnapshotListV1(domain, options).then((request) => request(axios, basePath));
2849
+ },
2850
+ /**
2851
+ * This endpoint retrieves particular DNS snapshot with the contents of DNS zone records.
2852
+ * @summary Get snapshot
2853
+ * @param {string} domain Domain name
2854
+ * @param {number} snapshotId Snapshot ID
2855
+ * @param {*} [options] Override http request option.
2856
+ * @throws {RequiredError}
2857
+ */
2858
+ getSnapshotV1(domain: string, snapshotId: number, options?: RawAxiosRequestConfig): AxiosPromise<DNSV1SnapshotSnapshotWithContentResource> {
2859
+ return localVarFp.getSnapshotV1(domain, snapshotId, options).then((request) => request(axios, basePath));
2860
+ },
2861
+ /**
2862
+ * This endpoint restores DNS zone to the selected snapshot.
2863
+ * @summary Restore snapshot
2864
+ * @param {string} domain Domain name
2865
+ * @param {number} snapshotId Snapshot ID
2866
+ * @param {*} [options] Override http request option.
2867
+ * @throws {RequiredError}
2868
+ */
2869
+ restoreSnapshotV1(domain: string, snapshotId: number, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
2870
+ return localVarFp.restoreSnapshotV1(domain, snapshotId, options).then((request) => request(axios, basePath));
2871
+ },
2872
+ };
2873
+ };
2874
+
2875
+ /**
2876
+ * DNSSnapshotApi - object-oriented interface
2877
+ * @export
2878
+ * @class DNSSnapshotApi
2879
+ * @extends {BaseAPI}
2880
+ */
2881
+ export class DNSSnapshotApi extends BaseAPI {
2882
+ /**
2883
+ * This endpoint retrieves list of DNS snapshots.
2884
+ * @summary Get snapshot list
2885
+ * @param {string} domain Domain name
2886
+ * @param {*} [options] Override http request option.
2887
+ * @throws {RequiredError}
2888
+ * @memberof DNSSnapshotApi
2889
+ */
2890
+ public getSnapshotListV1(domain: string, options?: RawAxiosRequestConfig) {
2891
+ return DNSSnapshotApiFp(this.configuration).getSnapshotListV1(domain, options).then((request) => request(this.axios, this.basePath));
2892
+ }
2893
+
2894
+ /**
2895
+ * This endpoint retrieves particular DNS snapshot with the contents of DNS zone records.
2896
+ * @summary Get snapshot
2897
+ * @param {string} domain Domain name
2898
+ * @param {number} snapshotId Snapshot ID
2899
+ * @param {*} [options] Override http request option.
2900
+ * @throws {RequiredError}
2901
+ * @memberof DNSSnapshotApi
2902
+ */
2903
+ public getSnapshotV1(domain: string, snapshotId: number, options?: RawAxiosRequestConfig) {
2904
+ return DNSSnapshotApiFp(this.configuration).getSnapshotV1(domain, snapshotId, options).then((request) => request(this.axios, this.basePath));
2905
+ }
2906
+
2907
+ /**
2908
+ * This endpoint restores DNS zone to the selected snapshot.
2909
+ * @summary Restore snapshot
2910
+ * @param {string} domain Domain name
2911
+ * @param {number} snapshotId Snapshot ID
2912
+ * @param {*} [options] Override http request option.
2913
+ * @throws {RequiredError}
2914
+ * @memberof DNSSnapshotApi
2915
+ */
2916
+ public restoreSnapshotV1(domain: string, snapshotId: number, options?: RawAxiosRequestConfig) {
2917
+ return DNSSnapshotApiFp(this.configuration).restoreSnapshotV1(domain, snapshotId, options).then((request) => request(this.axios, this.basePath));
2918
+ }
2919
+ }
2920
+
2921
+
2922
+
2923
+ /**
2924
+ * DNSZoneApi - axios parameter creator
2925
+ * @export
2926
+ */
2927
+ export const DNSZoneApiAxiosParamCreator = function (configuration?: Configuration) {
2928
+ return {
2929
+ /**
2930
+ * This endpoint deletes selected DNS records for the selected domain.
2931
+ * @summary Delete zone records
2932
+ * @param {string} domain Domain name
2933
+ * @param {DNSV1ZoneDestroyRequest} dNSV1ZoneDestroyRequest
2934
+ * @param {*} [options] Override http request option.
2935
+ * @throws {RequiredError}
2936
+ */
2937
+ deleteZoneRecordsV1: async (domain: string, dNSV1ZoneDestroyRequest: DNSV1ZoneDestroyRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2938
+ // verify required parameter 'domain' is not null or undefined
2939
+ assertParamExists('deleteZoneRecordsV1', 'domain', domain)
2940
+ // verify required parameter 'dNSV1ZoneDestroyRequest' is not null or undefined
2941
+ assertParamExists('deleteZoneRecordsV1', 'dNSV1ZoneDestroyRequest', dNSV1ZoneDestroyRequest)
2942
+ const localVarPath = `/api/dns/v1/zones/{domain}`
2943
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
2944
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2945
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2946
+ let baseOptions;
2947
+ if (configuration) {
2948
+ baseOptions = configuration.baseOptions;
2949
+ }
2950
+
2951
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
2952
+ const localVarHeaderParameter = {} as any;
2953
+ const localVarQueryParameter = {} as any;
2954
+
2955
+ // authentication apiToken required
2956
+ // http bearer authentication required
2957
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
2958
+
2959
+
2960
+
2961
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2962
+
2963
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2964
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2965
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2966
+ localVarRequestOptions.data = serializeDataIfNeeded(dNSV1ZoneDestroyRequest, localVarRequestOptions, configuration)
2967
+
2968
+ return {
2969
+ url: toPathString(localVarUrlObj),
2970
+ options: localVarRequestOptions,
2971
+ };
2972
+ },
2973
+ /**
2974
+ * This endpoint retrieves DNS zone records for a specific domain.
2975
+ * @summary Get records
2976
+ * @param {string} domain Domain name
2977
+ * @param {*} [options] Override http request option.
2978
+ * @throws {RequiredError}
2979
+ */
2980
+ getRecordsV1: async (domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2981
+ // verify required parameter 'domain' is not null or undefined
2982
+ assertParamExists('getRecordsV1', 'domain', domain)
2983
+ const localVarPath = `/api/dns/v1/zones/{domain}`
2984
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
2985
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2986
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2987
+ let baseOptions;
2988
+ if (configuration) {
2989
+ baseOptions = configuration.baseOptions;
2990
+ }
2991
+
2992
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
2993
+ const localVarHeaderParameter = {} as any;
2994
+ const localVarQueryParameter = {} as any;
2995
+
2996
+ // authentication apiToken required
2997
+ // http bearer authentication required
2998
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
2999
+
3000
+
3001
+
3002
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3003
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3004
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3005
+
3006
+ return {
3007
+ url: toPathString(localVarUrlObj),
3008
+ options: localVarRequestOptions,
3009
+ };
3010
+ },
3011
+ /**
3012
+ * This endpoint resets DNS zone to the default records.
3013
+ * @summary Reset zone records
3014
+ * @param {string} domain Domain name
3015
+ * @param {DNSV1ZoneResetRequest} dNSV1ZoneResetRequest
3016
+ * @param {*} [options] Override http request option.
3017
+ * @throws {RequiredError}
3018
+ */
3019
+ resetZoneRecordsV1: async (domain: string, dNSV1ZoneResetRequest: DNSV1ZoneResetRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3020
+ // verify required parameter 'domain' is not null or undefined
3021
+ assertParamExists('resetZoneRecordsV1', 'domain', domain)
3022
+ // verify required parameter 'dNSV1ZoneResetRequest' is not null or undefined
3023
+ assertParamExists('resetZoneRecordsV1', 'dNSV1ZoneResetRequest', dNSV1ZoneResetRequest)
3024
+ const localVarPath = `/api/dns/v1/zones/{domain}/reset`
3025
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
3026
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3027
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3028
+ let baseOptions;
3029
+ if (configuration) {
3030
+ baseOptions = configuration.baseOptions;
3031
+ }
3032
+
3033
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
3034
+ const localVarHeaderParameter = {} as any;
3035
+ const localVarQueryParameter = {} as any;
3036
+
3037
+ // authentication apiToken required
3038
+ // http bearer authentication required
3039
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
3040
+
3041
+
3042
+
3043
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3044
+
3045
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3046
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3047
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3048
+ localVarRequestOptions.data = serializeDataIfNeeded(dNSV1ZoneResetRequest, localVarRequestOptions, configuration)
3049
+
3050
+ return {
3051
+ url: toPathString(localVarUrlObj),
3052
+ options: localVarRequestOptions,
3053
+ };
3054
+ },
3055
+ /**
3056
+ * 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.
3057
+ * @summary Update zone records
3058
+ * @param {string} domain Domain name
3059
+ * @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest
3060
+ * @param {*} [options] Override http request option.
3061
+ * @throws {RequiredError}
3062
+ */
3063
+ updateZoneRecordsV1: async (domain: string, dNSV1ZoneUpdateRequest: DNSV1ZoneUpdateRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3064
+ // verify required parameter 'domain' is not null or undefined
3065
+ assertParamExists('updateZoneRecordsV1', 'domain', domain)
3066
+ // verify required parameter 'dNSV1ZoneUpdateRequest' is not null or undefined
3067
+ assertParamExists('updateZoneRecordsV1', 'dNSV1ZoneUpdateRequest', dNSV1ZoneUpdateRequest)
3068
+ const localVarPath = `/api/dns/v1/zones/{domain}`
3069
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
3070
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3071
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3072
+ let baseOptions;
3073
+ if (configuration) {
3074
+ baseOptions = configuration.baseOptions;
3075
+ }
3076
+
3077
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
3078
+ const localVarHeaderParameter = {} as any;
3079
+ const localVarQueryParameter = {} as any;
3080
+
3081
+ // authentication apiToken required
3082
+ // http bearer authentication required
3083
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
3084
+
3085
+
3086
+
3087
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3088
+
3089
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3090
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3091
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3092
+ localVarRequestOptions.data = serializeDataIfNeeded(dNSV1ZoneUpdateRequest, localVarRequestOptions, configuration)
3093
+
3094
+ return {
3095
+ url: toPathString(localVarUrlObj),
3096
+ options: localVarRequestOptions,
3097
+ };
3098
+ },
3099
+ /**
3100
+ * 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.
3101
+ * @summary Validate zone records
3102
+ * @param {string} domain Domain name
3103
+ * @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest
3104
+ * @param {*} [options] Override http request option.
3105
+ * @throws {RequiredError}
3106
+ */
3107
+ validateZoneRecordsV1: async (domain: string, dNSV1ZoneUpdateRequest: DNSV1ZoneUpdateRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3108
+ // verify required parameter 'domain' is not null or undefined
3109
+ assertParamExists('validateZoneRecordsV1', 'domain', domain)
3110
+ // verify required parameter 'dNSV1ZoneUpdateRequest' is not null or undefined
3111
+ assertParamExists('validateZoneRecordsV1', 'dNSV1ZoneUpdateRequest', dNSV1ZoneUpdateRequest)
3112
+ const localVarPath = `/api/dns/v1/zones/{domain}/validate`
3113
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
3114
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3115
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3116
+ let baseOptions;
3117
+ if (configuration) {
3118
+ baseOptions = configuration.baseOptions;
3119
+ }
3120
+
3121
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
3122
+ const localVarHeaderParameter = {} as any;
3123
+ const localVarQueryParameter = {} as any;
3124
+
3125
+ // authentication apiToken required
3126
+ // http bearer authentication required
3127
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
3128
+
3129
+
3130
+
3131
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3132
+
3133
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3134
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3135
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3136
+ localVarRequestOptions.data = serializeDataIfNeeded(dNSV1ZoneUpdateRequest, localVarRequestOptions, configuration)
3137
+
3138
+ return {
3139
+ url: toPathString(localVarUrlObj),
3140
+ options: localVarRequestOptions,
3141
+ };
3142
+ },
3143
+ }
3144
+ };
3145
+
3146
+ /**
3147
+ * DNSZoneApi - functional programming interface
3148
+ * @export
3149
+ */
3150
+ export const DNSZoneApiFp = function(configuration?: Configuration) {
3151
+ const localVarAxiosParamCreator = DNSZoneApiAxiosParamCreator(configuration)
3152
+ return {
3153
+ /**
3154
+ * This endpoint deletes selected DNS records for the selected domain.
3155
+ * @summary Delete zone records
3156
+ * @param {string} domain Domain name
3157
+ * @param {DNSV1ZoneDestroyRequest} dNSV1ZoneDestroyRequest
3158
+ * @param {*} [options] Override http request option.
3159
+ * @throws {RequiredError}
3160
+ */
3161
+ async deleteZoneRecordsV1(domain: string, dNSV1ZoneDestroyRequest: DNSV1ZoneDestroyRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
3162
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteZoneRecordsV1(domain, dNSV1ZoneDestroyRequest, options);
3163
+ const localVarOperationServerBasePath = operationServerMap['DNSZoneApi.deleteZoneRecordsV1']?.[0]?.url;
3164
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3165
+ },
3166
+ /**
3167
+ * This endpoint retrieves DNS zone records for a specific domain.
3168
+ * @summary Get records
3169
+ * @param {string} domain Domain name
3170
+ * @param {*} [options] Override http request option.
3171
+ * @throws {RequiredError}
3172
+ */
3173
+ async getRecordsV1(domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<DNSV1ZoneRecordResource>>> {
3174
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getRecordsV1(domain, options);
3175
+ const localVarOperationServerBasePath = operationServerMap['DNSZoneApi.getRecordsV1']?.[0]?.url;
3176
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3177
+ },
3178
+ /**
3179
+ * This endpoint resets DNS zone to the default records.
3180
+ * @summary Reset zone records
3181
+ * @param {string} domain Domain name
3182
+ * @param {DNSV1ZoneResetRequest} dNSV1ZoneResetRequest
3183
+ * @param {*} [options] Override http request option.
3184
+ * @throws {RequiredError}
3185
+ */
3186
+ async resetZoneRecordsV1(domain: string, dNSV1ZoneResetRequest: DNSV1ZoneResetRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
3187
+ const localVarAxiosArgs = await localVarAxiosParamCreator.resetZoneRecordsV1(domain, dNSV1ZoneResetRequest, options);
3188
+ const localVarOperationServerBasePath = operationServerMap['DNSZoneApi.resetZoneRecordsV1']?.[0]?.url;
3189
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3190
+ },
3191
+ /**
3192
+ * 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.
3193
+ * @summary Update zone records
3194
+ * @param {string} domain Domain name
3195
+ * @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest
3196
+ * @param {*} [options] Override http request option.
3197
+ * @throws {RequiredError}
3198
+ */
3199
+ async updateZoneRecordsV1(domain: string, dNSV1ZoneUpdateRequest: DNSV1ZoneUpdateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
3200
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateZoneRecordsV1(domain, dNSV1ZoneUpdateRequest, options);
3201
+ const localVarOperationServerBasePath = operationServerMap['DNSZoneApi.updateZoneRecordsV1']?.[0]?.url;
3202
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3203
+ },
3204
+ /**
3205
+ * 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.
3206
+ * @summary Validate zone records
3207
+ * @param {string} domain Domain name
3208
+ * @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest
3209
+ * @param {*} [options] Override http request option.
3210
+ * @throws {RequiredError}
3211
+ */
3212
+ async validateZoneRecordsV1(domain: string, dNSV1ZoneUpdateRequest: DNSV1ZoneUpdateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
3213
+ const localVarAxiosArgs = await localVarAxiosParamCreator.validateZoneRecordsV1(domain, dNSV1ZoneUpdateRequest, options);
3214
+ const localVarOperationServerBasePath = operationServerMap['DNSZoneApi.validateZoneRecordsV1']?.[0]?.url;
3215
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3216
+ },
3217
+ }
3218
+ };
3219
+
3220
+ /**
3221
+ * DNSZoneApi - factory interface
3222
+ * @export
3223
+ */
3224
+ export const DNSZoneApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
3225
+ const localVarFp = DNSZoneApiFp(configuration)
3226
+ return {
3227
+ /**
3228
+ * This endpoint deletes selected DNS records for the selected domain.
3229
+ * @summary Delete zone records
3230
+ * @param {string} domain Domain name
3231
+ * @param {DNSV1ZoneDestroyRequest} dNSV1ZoneDestroyRequest
3232
+ * @param {*} [options] Override http request option.
3233
+ * @throws {RequiredError}
3234
+ */
3235
+ deleteZoneRecordsV1(domain: string, dNSV1ZoneDestroyRequest: DNSV1ZoneDestroyRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
3236
+ return localVarFp.deleteZoneRecordsV1(domain, dNSV1ZoneDestroyRequest, options).then((request) => request(axios, basePath));
3237
+ },
3238
+ /**
3239
+ * This endpoint retrieves DNS zone records for a specific domain.
3240
+ * @summary Get records
3241
+ * @param {string} domain Domain name
3242
+ * @param {*} [options] Override http request option.
3243
+ * @throws {RequiredError}
3244
+ */
3245
+ getRecordsV1(domain: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<DNSV1ZoneRecordResource>> {
3246
+ return localVarFp.getRecordsV1(domain, options).then((request) => request(axios, basePath));
3247
+ },
3248
+ /**
3249
+ * This endpoint resets DNS zone to the default records.
3250
+ * @summary Reset zone records
3251
+ * @param {string} domain Domain name
3252
+ * @param {DNSV1ZoneResetRequest} dNSV1ZoneResetRequest
3253
+ * @param {*} [options] Override http request option.
3254
+ * @throws {RequiredError}
3255
+ */
3256
+ resetZoneRecordsV1(domain: string, dNSV1ZoneResetRequest: DNSV1ZoneResetRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
3257
+ return localVarFp.resetZoneRecordsV1(domain, dNSV1ZoneResetRequest, options).then((request) => request(axios, basePath));
3258
+ },
3259
+ /**
3260
+ * 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.
3261
+ * @summary Update zone records
3262
+ * @param {string} domain Domain name
3263
+ * @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest
3264
+ * @param {*} [options] Override http request option.
3265
+ * @throws {RequiredError}
3266
+ */
3267
+ updateZoneRecordsV1(domain: string, dNSV1ZoneUpdateRequest: DNSV1ZoneUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
3268
+ return localVarFp.updateZoneRecordsV1(domain, dNSV1ZoneUpdateRequest, options).then((request) => request(axios, basePath));
3269
+ },
3270
+ /**
3271
+ * 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.
3272
+ * @summary Validate zone records
3273
+ * @param {string} domain Domain name
3274
+ * @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest
3275
+ * @param {*} [options] Override http request option.
3276
+ * @throws {RequiredError}
3277
+ */
3278
+ validateZoneRecordsV1(domain: string, dNSV1ZoneUpdateRequest: DNSV1ZoneUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
3279
+ return localVarFp.validateZoneRecordsV1(domain, dNSV1ZoneUpdateRequest, options).then((request) => request(axios, basePath));
3280
+ },
3281
+ };
3282
+ };
3283
+
3284
+ /**
3285
+ * DNSZoneApi - object-oriented interface
3286
+ * @export
3287
+ * @class DNSZoneApi
3288
+ * @extends {BaseAPI}
3289
+ */
3290
+ export class DNSZoneApi extends BaseAPI {
3291
+ /**
3292
+ * This endpoint deletes selected DNS records for the selected domain.
3293
+ * @summary Delete zone records
3294
+ * @param {string} domain Domain name
3295
+ * @param {DNSV1ZoneDestroyRequest} dNSV1ZoneDestroyRequest
3296
+ * @param {*} [options] Override http request option.
3297
+ * @throws {RequiredError}
3298
+ * @memberof DNSZoneApi
3299
+ */
3300
+ public deleteZoneRecordsV1(domain: string, dNSV1ZoneDestroyRequest: DNSV1ZoneDestroyRequest, options?: RawAxiosRequestConfig) {
3301
+ return DNSZoneApiFp(this.configuration).deleteZoneRecordsV1(domain, dNSV1ZoneDestroyRequest, options).then((request) => request(this.axios, this.basePath));
3302
+ }
3303
+
3304
+ /**
3305
+ * This endpoint retrieves DNS zone records for a specific domain.
3306
+ * @summary Get records
3307
+ * @param {string} domain Domain name
3308
+ * @param {*} [options] Override http request option.
3309
+ * @throws {RequiredError}
3310
+ * @memberof DNSZoneApi
3311
+ */
3312
+ public getRecordsV1(domain: string, options?: RawAxiosRequestConfig) {
3313
+ return DNSZoneApiFp(this.configuration).getRecordsV1(domain, options).then((request) => request(this.axios, this.basePath));
3314
+ }
3315
+
3316
+ /**
3317
+ * This endpoint resets DNS zone to the default records.
3318
+ * @summary Reset zone records
3319
+ * @param {string} domain Domain name
3320
+ * @param {DNSV1ZoneResetRequest} dNSV1ZoneResetRequest
3321
+ * @param {*} [options] Override http request option.
3322
+ * @throws {RequiredError}
3323
+ * @memberof DNSZoneApi
3324
+ */
3325
+ public resetZoneRecordsV1(domain: string, dNSV1ZoneResetRequest: DNSV1ZoneResetRequest, options?: RawAxiosRequestConfig) {
3326
+ return DNSZoneApiFp(this.configuration).resetZoneRecordsV1(domain, dNSV1ZoneResetRequest, options).then((request) => request(this.axios, this.basePath));
3327
+ }
3328
+
3329
+ /**
3330
+ * 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.
3331
+ * @summary Update zone records
3332
+ * @param {string} domain Domain name
3333
+ * @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest
3334
+ * @param {*} [options] Override http request option.
3335
+ * @throws {RequiredError}
3336
+ * @memberof DNSZoneApi
3337
+ */
3338
+ public updateZoneRecordsV1(domain: string, dNSV1ZoneUpdateRequest: DNSV1ZoneUpdateRequest, options?: RawAxiosRequestConfig) {
3339
+ return DNSZoneApiFp(this.configuration).updateZoneRecordsV1(domain, dNSV1ZoneUpdateRequest, options).then((request) => request(this.axios, this.basePath));
3340
+ }
3341
+
3342
+ /**
3343
+ * 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.
3344
+ * @summary Validate zone records
3345
+ * @param {string} domain Domain name
3346
+ * @param {DNSV1ZoneUpdateRequest} dNSV1ZoneUpdateRequest
3347
+ * @param {*} [options] Override http request option.
3348
+ * @throws {RequiredError}
3349
+ * @memberof DNSZoneApi
3350
+ */
3351
+ public validateZoneRecordsV1(domain: string, dNSV1ZoneUpdateRequest: DNSV1ZoneUpdateRequest, options?: RawAxiosRequestConfig) {
3352
+ return DNSZoneApiFp(this.configuration).validateZoneRecordsV1(domain, dNSV1ZoneUpdateRequest, options).then((request) => request(this.axios, this.basePath));
3353
+ }
3354
+ }
3355
+
3356
+
3357
+
2380
3358
  /**
2381
3359
  * DomainsPortfolioApi - axios parameter creator
2382
3360
  * @export