@hostafrica/ha-sdk-typescript 1.1.2 → 1.1.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/apis/DNSApi.d.ts +85 -1
- package/dist/apis/DNSApi.js +272 -0
- package/dist/apis/DomainsApi.d.ts +46 -1
- package/dist/apis/DomainsApi.js +141 -0
- package/dist/apis/ServiceManagementApi.d.ts +4 -4
- package/dist/apis/ServiceManagementApi.js +4 -4
- package/dist/apis/SnapshotsApi.d.ts +8 -8
- package/dist/apis/SnapshotsApi.js +8 -8
- package/dist/esm/apis/DNSApi.d.ts +85 -1
- package/dist/esm/apis/DNSApi.js +273 -1
- package/dist/esm/apis/DomainsApi.d.ts +46 -1
- package/dist/esm/apis/DomainsApi.js +142 -1
- package/dist/esm/apis/ServiceManagementApi.d.ts +4 -4
- package/dist/esm/apis/ServiceManagementApi.js +4 -4
- package/dist/esm/apis/SnapshotsApi.d.ts +8 -8
- package/dist/esm/apis/SnapshotsApi.js +8 -8
- package/dist/esm/models/AddDnsRecordRequestContent.d.ts +45 -0
- package/dist/esm/models/AddDnsRecordRequestContent.js +50 -0
- package/dist/esm/models/AddDnsRecordResponseContent.d.ts +40 -0
- package/dist/esm/models/AddDnsRecordResponseContent.js +49 -0
- package/dist/esm/models/DeleteDnsRecordRequestContent.d.ts +45 -0
- package/dist/esm/models/DeleteDnsRecordRequestContent.js +50 -0
- package/dist/esm/models/DeleteDnsRecordResponseContent.d.ts +40 -0
- package/dist/esm/models/DeleteDnsRecordResponseContent.js +49 -0
- package/dist/esm/models/DnsCreateCandidateInfo.d.ts +56 -0
- package/dist/esm/models/DnsCreateCandidateInfo.js +49 -0
- package/dist/esm/models/DnsRecordInfo.d.ts +89 -0
- package/dist/esm/models/DnsRecordInfo.js +55 -0
- package/dist/esm/models/DnsRecordMutationData.d.ts +39 -0
- package/dist/esm/models/DnsRecordMutationData.js +46 -0
- package/dist/esm/models/DnsRecordMutationRecord.d.ts +77 -0
- package/dist/esm/models/DnsRecordMutationRecord.js +55 -0
- package/dist/esm/models/DnsZoneInfo.d.ts +81 -0
- package/dist/esm/models/DnsZoneInfo.js +60 -0
- package/dist/esm/models/DnssecRecordInfo.d.ts +50 -0
- package/dist/esm/models/DnssecRecordInfo.js +55 -0
- package/dist/esm/models/DomainAddonFeature.d.ts +56 -0
- package/dist/esm/models/DomainAddonFeature.js +57 -0
- package/dist/esm/models/DomainAvailableFeatures.d.ts +69 -0
- package/dist/esm/models/DomainAvailableFeatures.js +54 -0
- package/dist/esm/models/DomainContactSourceType.d.ts +26 -0
- package/dist/esm/models/DomainContactSourceType.js +44 -0
- package/dist/esm/models/DomainContactUpdate.d.ts +47 -0
- package/dist/esm/models/DomainContactUpdate.js +48 -0
- package/dist/esm/models/DomainContactUpdates.d.ts +51 -0
- package/dist/esm/models/DomainContactUpdates.js +48 -0
- package/dist/esm/models/DomainContacts.d.ts +58 -0
- package/dist/esm/models/DomainContacts.js +47 -0
- package/dist/esm/models/DomainDetail.d.ts +251 -0
- package/dist/esm/models/DomainDetail.js +136 -0
- package/dist/esm/models/DomainExpiryCountdown.d.ts +44 -0
- package/dist/esm/models/DomainExpiryCountdown.js +51 -0
- package/dist/esm/models/DomainHostingLink.d.ts +4 -4
- package/dist/esm/models/DomainHostingLink.js +2 -6
- package/dist/esm/models/DomainInfo.d.ts +6 -0
- package/dist/esm/models/DomainInfo.js +2 -0
- package/dist/esm/models/DomainNameservers.d.ts +56 -0
- package/dist/esm/models/DomainNameservers.js +49 -0
- package/dist/esm/models/EditDnsRecordRequestContent.d.ts +45 -0
- package/dist/esm/models/EditDnsRecordRequestContent.js +50 -0
- package/dist/esm/models/EditDnsRecordResponseContent.d.ts +40 -0
- package/dist/esm/models/EditDnsRecordResponseContent.js +49 -0
- package/dist/esm/models/GetDnsZoneDetailsData.d.ts +81 -0
- package/dist/esm/models/GetDnsZoneDetailsData.js +60 -0
- package/dist/esm/models/GetDnsZoneDetailsRequestContent.d.ts +32 -0
- package/dist/esm/models/GetDnsZoneDetailsRequestContent.js +43 -0
- package/dist/esm/models/GetDnsZoneDetailsResponseContent.d.ts +40 -0
- package/dist/esm/models/GetDnsZoneDetailsResponseContent.js +49 -0
- package/dist/esm/models/GetDomainContactsData.d.ts +4 -3
- package/dist/esm/models/GetDomainContactsData.js +3 -2
- package/dist/esm/models/GetDomainData.d.ts +3 -3
- package/dist/esm/models/GetDomainData.js +3 -3
- package/dist/esm/models/ListDnsCreateCandidatesData.d.ts +45 -0
- package/dist/esm/models/ListDnsCreateCandidatesData.js +52 -0
- package/dist/esm/models/ListDnsCreateCandidatesResponseContent.d.ts +40 -0
- package/dist/esm/models/ListDnsCreateCandidatesResponseContent.js +49 -0
- package/dist/esm/models/ListDnsZonesData.d.ts +45 -0
- package/dist/esm/models/ListDnsZonesData.js +52 -0
- package/dist/esm/models/ListDnsZonesResponseContent.d.ts +40 -0
- package/dist/esm/models/ListDnsZonesResponseContent.js +49 -0
- package/dist/esm/models/ListDnssecRecordsData.d.ts +39 -0
- package/dist/esm/models/ListDnssecRecordsData.js +48 -0
- package/dist/esm/models/ListDnssecRecordsRequestContent.d.ts +32 -0
- package/dist/esm/models/ListDnssecRecordsRequestContent.js +43 -0
- package/dist/esm/models/ListDnssecRecordsResponseContent.d.ts +40 -0
- package/dist/esm/models/ListDnssecRecordsResponseContent.js +49 -0
- package/dist/esm/models/UpdateDomainContactsData.d.ts +38 -0
- package/dist/esm/models/UpdateDomainContactsData.js +45 -0
- package/dist/esm/models/UpdateDomainContactsRequestContent.d.ts +39 -0
- package/dist/esm/models/UpdateDomainContactsRequestContent.js +48 -0
- package/dist/esm/models/UpdateDomainContactsResponseContent.d.ts +40 -0
- package/dist/esm/models/UpdateDomainContactsResponseContent.js +49 -0
- package/dist/esm/models/UpdateDomainNameserversData.d.ts +45 -0
- package/dist/esm/models/UpdateDomainNameserversData.js +48 -0
- package/dist/esm/models/UpdateDomainNameserversRequestContent.d.ts +62 -0
- package/dist/esm/models/UpdateDomainNameserversRequestContent.js +57 -0
- package/dist/esm/models/UpdateDomainNameserversResponseContent.d.ts +40 -0
- package/dist/esm/models/UpdateDomainNameserversResponseContent.js +49 -0
- package/dist/esm/models/index.d.ts +37 -0
- package/dist/esm/models/index.js +37 -0
- package/dist/esm/retryablePaths.js +4 -0
- package/dist/models/AddDnsRecordRequestContent.d.ts +45 -0
- package/dist/models/AddDnsRecordRequestContent.js +57 -0
- package/dist/models/AddDnsRecordResponseContent.d.ts +40 -0
- package/dist/models/AddDnsRecordResponseContent.js +56 -0
- package/dist/models/DeleteDnsRecordRequestContent.d.ts +45 -0
- package/dist/models/DeleteDnsRecordRequestContent.js +57 -0
- package/dist/models/DeleteDnsRecordResponseContent.d.ts +40 -0
- package/dist/models/DeleteDnsRecordResponseContent.js +56 -0
- package/dist/models/DnsCreateCandidateInfo.d.ts +56 -0
- package/dist/models/DnsCreateCandidateInfo.js +56 -0
- package/dist/models/DnsRecordInfo.d.ts +89 -0
- package/dist/models/DnsRecordInfo.js +62 -0
- package/dist/models/DnsRecordMutationData.d.ts +39 -0
- package/dist/models/DnsRecordMutationData.js +53 -0
- package/dist/models/DnsRecordMutationRecord.d.ts +77 -0
- package/dist/models/DnsRecordMutationRecord.js +62 -0
- package/dist/models/DnsZoneInfo.d.ts +81 -0
- package/dist/models/DnsZoneInfo.js +67 -0
- package/dist/models/DnssecRecordInfo.d.ts +50 -0
- package/dist/models/DnssecRecordInfo.js +62 -0
- package/dist/models/DomainAddonFeature.d.ts +56 -0
- package/dist/models/DomainAddonFeature.js +64 -0
- package/dist/models/DomainAvailableFeatures.d.ts +69 -0
- package/dist/models/DomainAvailableFeatures.js +61 -0
- package/dist/models/DomainContactSourceType.d.ts +26 -0
- package/dist/models/DomainContactSourceType.js +52 -0
- package/dist/models/DomainContactUpdate.d.ts +47 -0
- package/dist/models/DomainContactUpdate.js +55 -0
- package/dist/models/DomainContactUpdates.d.ts +51 -0
- package/dist/models/DomainContactUpdates.js +55 -0
- package/dist/models/DomainContacts.d.ts +58 -0
- package/dist/models/DomainContacts.js +54 -0
- package/dist/models/DomainDetail.d.ts +251 -0
- package/dist/models/DomainDetail.js +143 -0
- package/dist/models/DomainExpiryCountdown.d.ts +44 -0
- package/dist/models/DomainExpiryCountdown.js +58 -0
- package/dist/models/DomainHostingLink.d.ts +4 -4
- package/dist/models/DomainHostingLink.js +2 -6
- package/dist/models/DomainInfo.d.ts +6 -0
- package/dist/models/DomainInfo.js +2 -0
- package/dist/models/DomainNameservers.d.ts +56 -0
- package/dist/models/DomainNameservers.js +56 -0
- package/dist/models/EditDnsRecordRequestContent.d.ts +45 -0
- package/dist/models/EditDnsRecordRequestContent.js +57 -0
- package/dist/models/EditDnsRecordResponseContent.d.ts +40 -0
- package/dist/models/EditDnsRecordResponseContent.js +56 -0
- package/dist/models/GetDnsZoneDetailsData.d.ts +81 -0
- package/dist/models/GetDnsZoneDetailsData.js +67 -0
- package/dist/models/GetDnsZoneDetailsRequestContent.d.ts +32 -0
- package/dist/models/GetDnsZoneDetailsRequestContent.js +50 -0
- package/dist/models/GetDnsZoneDetailsResponseContent.d.ts +40 -0
- package/dist/models/GetDnsZoneDetailsResponseContent.js +56 -0
- package/dist/models/GetDomainContactsData.d.ts +4 -3
- package/dist/models/GetDomainContactsData.js +3 -2
- package/dist/models/GetDomainData.d.ts +3 -3
- package/dist/models/GetDomainData.js +3 -3
- package/dist/models/ListDnsCreateCandidatesData.d.ts +45 -0
- package/dist/models/ListDnsCreateCandidatesData.js +59 -0
- package/dist/models/ListDnsCreateCandidatesResponseContent.d.ts +40 -0
- package/dist/models/ListDnsCreateCandidatesResponseContent.js +56 -0
- package/dist/models/ListDnsZonesData.d.ts +45 -0
- package/dist/models/ListDnsZonesData.js +59 -0
- package/dist/models/ListDnsZonesResponseContent.d.ts +40 -0
- package/dist/models/ListDnsZonesResponseContent.js +56 -0
- package/dist/models/ListDnssecRecordsData.d.ts +39 -0
- package/dist/models/ListDnssecRecordsData.js +55 -0
- package/dist/models/ListDnssecRecordsRequestContent.d.ts +32 -0
- package/dist/models/ListDnssecRecordsRequestContent.js +50 -0
- package/dist/models/ListDnssecRecordsResponseContent.d.ts +40 -0
- package/dist/models/ListDnssecRecordsResponseContent.js +56 -0
- package/dist/models/UpdateDomainContactsData.d.ts +38 -0
- package/dist/models/UpdateDomainContactsData.js +52 -0
- package/dist/models/UpdateDomainContactsRequestContent.d.ts +39 -0
- package/dist/models/UpdateDomainContactsRequestContent.js +55 -0
- package/dist/models/UpdateDomainContactsResponseContent.d.ts +40 -0
- package/dist/models/UpdateDomainContactsResponseContent.js +56 -0
- package/dist/models/UpdateDomainNameserversData.d.ts +45 -0
- package/dist/models/UpdateDomainNameserversData.js +55 -0
- package/dist/models/UpdateDomainNameserversRequestContent.d.ts +62 -0
- package/dist/models/UpdateDomainNameserversRequestContent.js +64 -0
- package/dist/models/UpdateDomainNameserversResponseContent.d.ts +40 -0
- package/dist/models/UpdateDomainNameserversResponseContent.js +56 -0
- package/dist/models/index.d.ts +37 -0
- package/dist/models/index.js +37 -0
- package/dist/retryablePaths.js +4 -0
- package/dist.zip +0 -0
- package/docs/AddDnsRecordRequestContent.md +38 -0
- package/docs/AddDnsRecordResponseContent.md +36 -0
- package/docs/DNSApi.md +462 -0
- package/docs/DeleteDnsRecordRequestContent.md +38 -0
- package/docs/DeleteDnsRecordResponseContent.md +36 -0
- package/docs/DnsCreateCandidateInfo.md +43 -0
- package/docs/DnsRecordInfo.md +49 -0
- package/docs/DnsRecordMutationData.md +36 -0
- package/docs/DnsRecordMutationRecord.md +49 -0
- package/docs/DnsZoneInfo.md +51 -0
- package/docs/DnssecRecordInfo.md +41 -0
- package/docs/DomainAddonFeature.md +43 -0
- package/docs/DomainAvailableFeatures.md +47 -0
- package/docs/DomainContactSourceType.md +32 -0
- package/docs/DomainContactUpdate.md +39 -0
- package/docs/DomainContactUpdates.md +41 -0
- package/docs/DomainContacts.md +41 -0
- package/docs/DomainDetail.md +107 -0
- package/docs/DomainExpiryCountdown.md +39 -0
- package/docs/DomainInfo.md +2 -0
- package/docs/DomainNameservers.md +43 -0
- package/docs/DomainsApi.md +240 -0
- package/docs/EditDnsRecordRequestContent.md +38 -0
- package/docs/EditDnsRecordResponseContent.md +36 -0
- package/docs/GetDnsZoneDetailsData.md +50 -0
- package/docs/GetDnsZoneDetailsRequestContent.md +34 -0
- package/docs/GetDnsZoneDetailsResponseContent.md +36 -0
- package/docs/GetDomainContactsData.md +1 -1
- package/docs/GetDomainData.md +1 -1
- package/docs/ListDnsCreateCandidatesData.md +38 -0
- package/docs/ListDnsCreateCandidatesResponseContent.md +36 -0
- package/docs/ListDnsZonesData.md +38 -0
- package/docs/ListDnsZonesResponseContent.md +36 -0
- package/docs/ListDnssecRecordsData.md +36 -0
- package/docs/ListDnssecRecordsRequestContent.md +34 -0
- package/docs/ListDnssecRecordsResponseContent.md +36 -0
- package/docs/ServiceManagementApi.md +2 -2
- package/docs/SnapshotsApi.md +4 -4
- package/docs/UpdateDomainContactsData.md +36 -0
- package/docs/UpdateDomainContactsRequestContent.md +36 -0
- package/docs/UpdateDomainContactsResponseContent.md +36 -0
- package/docs/UpdateDomainNameserversData.md +38 -0
- package/docs/UpdateDomainNameserversRequestContent.md +44 -0
- package/docs/UpdateDomainNameserversResponseContent.md +36 -0
- package/package.json +1 -1
- package/src/apis/DNSApi.ts +356 -0
- package/src/apis/DomainsApi.ts +195 -0
- package/src/apis/ServiceManagementApi.ts +4 -4
- package/src/apis/SnapshotsApi.ts +8 -8
- package/src/models/AddDnsRecordRequestContent.ts +91 -0
- package/src/models/AddDnsRecordResponseContent.ts +92 -0
- package/src/models/DeleteDnsRecordRequestContent.ts +91 -0
- package/src/models/DeleteDnsRecordResponseContent.ts +92 -0
- package/src/models/DnsCreateCandidateInfo.ts +97 -0
- package/src/models/DnsRecordInfo.ts +136 -0
- package/src/models/DnsRecordMutationData.ts +82 -0
- package/src/models/DnsRecordMutationRecord.ts +124 -0
- package/src/models/DnsZoneInfo.ts +138 -0
- package/src/models/DnssecRecordInfo.ts +93 -0
- package/src/models/DomainAddonFeature.ts +101 -0
- package/src/models/DomainAvailableFeatures.ts +121 -0
- package/src/models/DomainContactSourceType.ts +54 -0
- package/src/models/DomainContactUpdate.ts +92 -0
- package/src/models/DomainContactUpdates.ts +97 -0
- package/src/models/DomainContacts.ts +89 -0
- package/src/models/DomainDetail.ts +385 -0
- package/src/models/DomainExpiryCountdown.ts +84 -0
- package/src/models/DomainHostingLink.ts +6 -8
- package/src/models/DomainInfo.ts +8 -0
- package/src/models/DomainNameservers.ts +97 -0
- package/src/models/EditDnsRecordRequestContent.ts +91 -0
- package/src/models/EditDnsRecordResponseContent.ts +92 -0
- package/src/models/GetDnsZoneDetailsData.ts +138 -0
- package/src/models/GetDnsZoneDetailsRequestContent.ts +66 -0
- package/src/models/GetDnsZoneDetailsResponseContent.ts +92 -0
- package/src/models/GetDomainContactsData.ts +13 -5
- package/src/models/GetDomainData.ts +10 -10
- package/src/models/ListDnsCreateCandidatesData.ts +92 -0
- package/src/models/ListDnsCreateCandidatesResponseContent.ts +92 -0
- package/src/models/ListDnsZonesData.ts +92 -0
- package/src/models/ListDnsZonesResponseContent.ts +92 -0
- package/src/models/ListDnssecRecordsData.ts +83 -0
- package/src/models/ListDnssecRecordsRequestContent.ts +66 -0
- package/src/models/ListDnssecRecordsResponseContent.ts +92 -0
- package/src/models/UpdateDomainContactsData.ts +74 -0
- package/src/models/UpdateDomainContactsRequestContent.ts +83 -0
- package/src/models/UpdateDomainContactsResponseContent.ts +92 -0
- package/src/models/UpdateDomainNameserversData.ts +90 -0
- package/src/models/UpdateDomainNameserversRequestContent.ts +108 -0
- package/src/models/UpdateDomainNameserversResponseContent.ts +92 -0
- package/src/models/index.ts +37 -0
- package/src/retryablePaths.ts +4 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* HostAfricaApi
|
|
3
|
+
* HostAfrica API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.1.0 - 2026-07-16
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { DnsRecordMutationData } from './DnsRecordMutationData.js';
|
|
13
|
+
import type { OperationStatus } from './OperationStatus.js';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface DeleteDnsRecordResponseContent
|
|
18
|
+
*/
|
|
19
|
+
export interface DeleteDnsRecordResponseContent {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {OperationStatus}
|
|
23
|
+
* @memberof DeleteDnsRecordResponseContent
|
|
24
|
+
*/
|
|
25
|
+
status: OperationStatus;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {DnsRecordMutationData}
|
|
29
|
+
* @memberof DeleteDnsRecordResponseContent
|
|
30
|
+
*/
|
|
31
|
+
data: DnsRecordMutationData;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the DeleteDnsRecordResponseContent interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfDeleteDnsRecordResponseContent(value: object): value is DeleteDnsRecordResponseContent;
|
|
37
|
+
export declare function DeleteDnsRecordResponseContentFromJSON(json: any): DeleteDnsRecordResponseContent;
|
|
38
|
+
export declare function DeleteDnsRecordResponseContentFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteDnsRecordResponseContent;
|
|
39
|
+
export declare function DeleteDnsRecordResponseContentToJSON(json: any): DeleteDnsRecordResponseContent;
|
|
40
|
+
export declare function DeleteDnsRecordResponseContentToJSONTyped(value?: DeleteDnsRecordResponseContent | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* HostAfricaApi
|
|
5
|
+
* HostAfrica API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.1.0 - 2026-07-16
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { DnsRecordMutationDataFromJSON, DnsRecordMutationDataToJSON, } from './DnsRecordMutationData.js';
|
|
15
|
+
import { OperationStatusFromJSON, OperationStatusToJSON, } from './OperationStatus.js';
|
|
16
|
+
/**
|
|
17
|
+
* Check if a given object implements the DeleteDnsRecordResponseContent interface.
|
|
18
|
+
*/
|
|
19
|
+
export function instanceOfDeleteDnsRecordResponseContent(value) {
|
|
20
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
export function DeleteDnsRecordResponseContentFromJSON(json) {
|
|
27
|
+
return DeleteDnsRecordResponseContentFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function DeleteDnsRecordResponseContentFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'status': OperationStatusFromJSON(json['status']),
|
|
35
|
+
'data': DnsRecordMutationDataFromJSON(json['data']),
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
export function DeleteDnsRecordResponseContentToJSON(json) {
|
|
39
|
+
return DeleteDnsRecordResponseContentToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
export function DeleteDnsRecordResponseContentToJSONTyped(value, ignoreDiscriminator = false) {
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'status': OperationStatusToJSON(value['status']),
|
|
47
|
+
'data': DnsRecordMutationDataToJSON(value['data']),
|
|
48
|
+
};
|
|
49
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* HostAfricaApi
|
|
3
|
+
* HostAfrica API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.1.0 - 2026-07-16
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* A domain or service eligible for DNS zone creation
|
|
14
|
+
* @export
|
|
15
|
+
* @interface DnsCreateCandidateInfo
|
|
16
|
+
*/
|
|
17
|
+
export interface DnsCreateCandidateInfo {
|
|
18
|
+
/**
|
|
19
|
+
* Domain name when the candidate is a domain
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof DnsCreateCandidateInfo
|
|
22
|
+
*/
|
|
23
|
+
domainName?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Domain service id when the candidate is a domain
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof DnsCreateCandidateInfo
|
|
28
|
+
*/
|
|
29
|
+
domainId?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Related service id when the candidate is a hosting or addon service
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof DnsCreateCandidateInfo
|
|
34
|
+
*/
|
|
35
|
+
relid?: number;
|
|
36
|
+
/**
|
|
37
|
+
* Zone type: 0=OTHER, 1=DOMAIN, 2=HOSTING, 3=ADDON
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof DnsCreateCandidateInfo
|
|
40
|
+
*/
|
|
41
|
+
type?: number;
|
|
42
|
+
/**
|
|
43
|
+
* Display name for the candidate
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof DnsCreateCandidateInfo
|
|
46
|
+
*/
|
|
47
|
+
name?: string;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the DnsCreateCandidateInfo interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfDnsCreateCandidateInfo(value: object): value is DnsCreateCandidateInfo;
|
|
53
|
+
export declare function DnsCreateCandidateInfoFromJSON(json: any): DnsCreateCandidateInfo;
|
|
54
|
+
export declare function DnsCreateCandidateInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DnsCreateCandidateInfo;
|
|
55
|
+
export declare function DnsCreateCandidateInfoToJSON(json: any): DnsCreateCandidateInfo;
|
|
56
|
+
export declare function DnsCreateCandidateInfoToJSONTyped(value?: DnsCreateCandidateInfo | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* HostAfricaApi
|
|
5
|
+
* HostAfrica API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.1.0 - 2026-07-16
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the DnsCreateCandidateInfo interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfDnsCreateCandidateInfo(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function DnsCreateCandidateInfoFromJSON(json) {
|
|
21
|
+
return DnsCreateCandidateInfoFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function DnsCreateCandidateInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'domainName': json['domain_name'] == null ? undefined : json['domain_name'],
|
|
29
|
+
'domainId': json['domain_id'] == null ? undefined : json['domain_id'],
|
|
30
|
+
'relid': json['relid'] == null ? undefined : json['relid'],
|
|
31
|
+
'type': json['type'] == null ? undefined : json['type'],
|
|
32
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
export function DnsCreateCandidateInfoToJSON(json) {
|
|
36
|
+
return DnsCreateCandidateInfoToJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
export function DnsCreateCandidateInfoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
39
|
+
if (value == null) {
|
|
40
|
+
return value;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'domain_name': value['domainName'],
|
|
44
|
+
'domain_id': value['domainId'],
|
|
45
|
+
'relid': value['relid'],
|
|
46
|
+
'type': value['type'],
|
|
47
|
+
'name': value['name'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* HostAfricaApi
|
|
3
|
+
* HostAfrica API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.1.0 - 2026-07-16
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* A DNS record within a zone.
|
|
14
|
+
*
|
|
15
|
+
* Record values are normalized to a flat `content` string. Structured record types use
|
|
16
|
+
* additional top-level fields; the proxy maps these to upstream `data` / `rdata_raw` shapes:
|
|
17
|
+
*
|
|
18
|
+
* - **A / AAAA**: `content` is the IP address (`data.address`).
|
|
19
|
+
* - **CNAME**: `content` is the target hostname (`data.cname`).
|
|
20
|
+
* - **TXT**: `content` is the text value (`data.txtdata`).
|
|
21
|
+
* - **NS**: `content` is the nameserver hostname (`data.nsdname`).
|
|
22
|
+
* - **MX**: `content` is the mail exchange hostname; `priority` is the MX preference
|
|
23
|
+
* (`data.exchange`, `data.preference`).
|
|
24
|
+
* - **SRV**: `content` is the target hostname; `priority`, `weight`, and `port` are the
|
|
25
|
+
* SRV parameters (`data.target`, `data.priority`, `data.weight`, `data.port`).
|
|
26
|
+
*
|
|
27
|
+
* When upstream returns structured `rdata_raw` without a string `rdata` value, `content`
|
|
28
|
+
* and the type-specific fields are derived from `rdata_raw`.
|
|
29
|
+
* @export
|
|
30
|
+
* @interface DnsRecordInfo
|
|
31
|
+
*/
|
|
32
|
+
export interface DnsRecordInfo {
|
|
33
|
+
/**
|
|
34
|
+
* Record identifier
|
|
35
|
+
* @type {string}
|
|
36
|
+
* @memberof DnsRecordInfo
|
|
37
|
+
*/
|
|
38
|
+
id?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Record host/name (e.g. @, www, mail)
|
|
41
|
+
* @type {string}
|
|
42
|
+
* @memberof DnsRecordInfo
|
|
43
|
+
*/
|
|
44
|
+
name?: string;
|
|
45
|
+
/**
|
|
46
|
+
* Record type (e.g. A, AAAA, CNAME, MX, TXT, NS, SRV)
|
|
47
|
+
* @type {string}
|
|
48
|
+
* @memberof DnsRecordInfo
|
|
49
|
+
*/
|
|
50
|
+
type?: string;
|
|
51
|
+
/**
|
|
52
|
+
* Primary record value: IP address (A/AAAA), hostname (CNAME/NS/MX/SRV), or text (TXT)
|
|
53
|
+
* @type {string}
|
|
54
|
+
* @memberof DnsRecordInfo
|
|
55
|
+
*/
|
|
56
|
+
content?: string;
|
|
57
|
+
/**
|
|
58
|
+
* Time-to-live in seconds
|
|
59
|
+
* @type {number}
|
|
60
|
+
* @memberof DnsRecordInfo
|
|
61
|
+
*/
|
|
62
|
+
ttl?: number;
|
|
63
|
+
/**
|
|
64
|
+
* MX preference when type is MX; SRV priority when type is SRV
|
|
65
|
+
* @type {number}
|
|
66
|
+
* @memberof DnsRecordInfo
|
|
67
|
+
*/
|
|
68
|
+
priority?: number;
|
|
69
|
+
/**
|
|
70
|
+
* SRV weight when type is SRV
|
|
71
|
+
* @type {number}
|
|
72
|
+
* @memberof DnsRecordInfo
|
|
73
|
+
*/
|
|
74
|
+
weight?: number;
|
|
75
|
+
/**
|
|
76
|
+
* SRV port when type is SRV
|
|
77
|
+
* @type {number}
|
|
78
|
+
* @memberof DnsRecordInfo
|
|
79
|
+
*/
|
|
80
|
+
port?: number;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Check if a given object implements the DnsRecordInfo interface.
|
|
84
|
+
*/
|
|
85
|
+
export declare function instanceOfDnsRecordInfo(value: object): value is DnsRecordInfo;
|
|
86
|
+
export declare function DnsRecordInfoFromJSON(json: any): DnsRecordInfo;
|
|
87
|
+
export declare function DnsRecordInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DnsRecordInfo;
|
|
88
|
+
export declare function DnsRecordInfoToJSON(json: any): DnsRecordInfo;
|
|
89
|
+
export declare function DnsRecordInfoToJSONTyped(value?: DnsRecordInfo | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* HostAfricaApi
|
|
5
|
+
* HostAfrica API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.1.0 - 2026-07-16
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the DnsRecordInfo interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfDnsRecordInfo(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function DnsRecordInfoFromJSON(json) {
|
|
21
|
+
return DnsRecordInfoFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function DnsRecordInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
29
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
30
|
+
'type': json['type'] == null ? undefined : json['type'],
|
|
31
|
+
'content': json['content'] == null ? undefined : json['content'],
|
|
32
|
+
'ttl': json['ttl'] == null ? undefined : json['ttl'],
|
|
33
|
+
'priority': json['priority'] == null ? undefined : json['priority'],
|
|
34
|
+
'weight': json['weight'] == null ? undefined : json['weight'],
|
|
35
|
+
'port': json['port'] == null ? undefined : json['port'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
export function DnsRecordInfoToJSON(json) {
|
|
39
|
+
return DnsRecordInfoToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
export function DnsRecordInfoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'id': value['id'],
|
|
47
|
+
'name': value['name'],
|
|
48
|
+
'type': value['type'],
|
|
49
|
+
'content': value['content'],
|
|
50
|
+
'ttl': value['ttl'],
|
|
51
|
+
'priority': value['priority'],
|
|
52
|
+
'weight': value['weight'],
|
|
53
|
+
'port': value['port'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* HostAfricaApi
|
|
3
|
+
* HostAfrica API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.1.0 - 2026-07-16
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { DnsRecordInfo } from './DnsRecordInfo.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface DnsRecordMutationData
|
|
17
|
+
*/
|
|
18
|
+
export interface DnsRecordMutationData {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof DnsRecordMutationData
|
|
23
|
+
*/
|
|
24
|
+
message: string;
|
|
25
|
+
/**
|
|
26
|
+
* Updated DNS records when returned by upstream
|
|
27
|
+
* @type {Array<DnsRecordInfo>}
|
|
28
|
+
* @memberof DnsRecordMutationData
|
|
29
|
+
*/
|
|
30
|
+
records?: Array<DnsRecordInfo>;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the DnsRecordMutationData interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfDnsRecordMutationData(value: object): value is DnsRecordMutationData;
|
|
36
|
+
export declare function DnsRecordMutationDataFromJSON(json: any): DnsRecordMutationData;
|
|
37
|
+
export declare function DnsRecordMutationDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): DnsRecordMutationData;
|
|
38
|
+
export declare function DnsRecordMutationDataToJSON(json: any): DnsRecordMutationData;
|
|
39
|
+
export declare function DnsRecordMutationDataToJSONTyped(value?: DnsRecordMutationData | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* HostAfricaApi
|
|
5
|
+
* HostAfrica API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.1.0 - 2026-07-16
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { DnsRecordInfoFromJSON, DnsRecordInfoToJSON, } from './DnsRecordInfo.js';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the DnsRecordMutationData interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfDnsRecordMutationData(value) {
|
|
19
|
+
if (!('message' in value) || value['message'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
export function DnsRecordMutationDataFromJSON(json) {
|
|
24
|
+
return DnsRecordMutationDataFromJSONTyped(json, false);
|
|
25
|
+
}
|
|
26
|
+
export function DnsRecordMutationDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
+
if (json == null) {
|
|
28
|
+
return json;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
'message': json['message'],
|
|
32
|
+
'records': json['records'] == null ? undefined : (json['records'].map(DnsRecordInfoFromJSON)),
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
export function DnsRecordMutationDataToJSON(json) {
|
|
36
|
+
return DnsRecordMutationDataToJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
export function DnsRecordMutationDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
39
|
+
if (value == null) {
|
|
40
|
+
return value;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'message': value['message'],
|
|
44
|
+
'records': value['records'] == null ? undefined : (value['records'].map(DnsRecordInfoToJSON)),
|
|
45
|
+
};
|
|
46
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* HostAfricaApi
|
|
3
|
+
* HostAfrica API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.1.0 - 2026-07-16
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* DNS record fields for add, edit, or delete via DNSManager.
|
|
14
|
+
*
|
|
15
|
+
* See `DnsRecordInfo` for how `content` and structured fields map to upstream record data.
|
|
16
|
+
* Delete requires only `id`, `name`, and `type`.
|
|
17
|
+
* @export
|
|
18
|
+
* @interface DnsRecordMutationRecord
|
|
19
|
+
*/
|
|
20
|
+
export interface DnsRecordMutationRecord {
|
|
21
|
+
/**
|
|
22
|
+
* Record line/id from get-dns-zone-details; required for edit and delete
|
|
23
|
+
* @type {string}
|
|
24
|
+
* @memberof DnsRecordMutationRecord
|
|
25
|
+
*/
|
|
26
|
+
id?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Record host/name (e.g. @, www, mail); required for add
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof DnsRecordMutationRecord
|
|
31
|
+
*/
|
|
32
|
+
name?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Record type (e.g. A, AAAA, CNAME, MX, TXT, NS, SRV); required for add
|
|
35
|
+
* @type {string}
|
|
36
|
+
* @memberof DnsRecordMutationRecord
|
|
37
|
+
*/
|
|
38
|
+
type?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Primary record value; required for add and edit. Meaning depends on type — see DnsRecordInfo
|
|
41
|
+
* @type {string}
|
|
42
|
+
* @memberof DnsRecordMutationRecord
|
|
43
|
+
*/
|
|
44
|
+
content?: string;
|
|
45
|
+
/**
|
|
46
|
+
* Time-to-live in seconds; defaults to 3600 on add when omitted
|
|
47
|
+
* @type {number}
|
|
48
|
+
* @memberof DnsRecordMutationRecord
|
|
49
|
+
*/
|
|
50
|
+
ttl?: number;
|
|
51
|
+
/**
|
|
52
|
+
* MX preference when type is MX; SRV priority when type is SRV
|
|
53
|
+
* @type {number}
|
|
54
|
+
* @memberof DnsRecordMutationRecord
|
|
55
|
+
*/
|
|
56
|
+
priority?: number;
|
|
57
|
+
/**
|
|
58
|
+
* SRV weight when type is SRV
|
|
59
|
+
* @type {number}
|
|
60
|
+
* @memberof DnsRecordMutationRecord
|
|
61
|
+
*/
|
|
62
|
+
weight?: number;
|
|
63
|
+
/**
|
|
64
|
+
* SRV port when type is SRV; required for add and edit when type is SRV
|
|
65
|
+
* @type {number}
|
|
66
|
+
* @memberof DnsRecordMutationRecord
|
|
67
|
+
*/
|
|
68
|
+
port?: number;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Check if a given object implements the DnsRecordMutationRecord interface.
|
|
72
|
+
*/
|
|
73
|
+
export declare function instanceOfDnsRecordMutationRecord(value: object): value is DnsRecordMutationRecord;
|
|
74
|
+
export declare function DnsRecordMutationRecordFromJSON(json: any): DnsRecordMutationRecord;
|
|
75
|
+
export declare function DnsRecordMutationRecordFromJSONTyped(json: any, ignoreDiscriminator: boolean): DnsRecordMutationRecord;
|
|
76
|
+
export declare function DnsRecordMutationRecordToJSON(json: any): DnsRecordMutationRecord;
|
|
77
|
+
export declare function DnsRecordMutationRecordToJSONTyped(value?: DnsRecordMutationRecord | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* HostAfricaApi
|
|
5
|
+
* HostAfrica API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.1.0 - 2026-07-16
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the DnsRecordMutationRecord interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfDnsRecordMutationRecord(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function DnsRecordMutationRecordFromJSON(json) {
|
|
21
|
+
return DnsRecordMutationRecordFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function DnsRecordMutationRecordFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
29
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
30
|
+
'type': json['type'] == null ? undefined : json['type'],
|
|
31
|
+
'content': json['content'] == null ? undefined : json['content'],
|
|
32
|
+
'ttl': json['ttl'] == null ? undefined : json['ttl'],
|
|
33
|
+
'priority': json['priority'] == null ? undefined : json['priority'],
|
|
34
|
+
'weight': json['weight'] == null ? undefined : json['weight'],
|
|
35
|
+
'port': json['port'] == null ? undefined : json['port'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
export function DnsRecordMutationRecordToJSON(json) {
|
|
39
|
+
return DnsRecordMutationRecordToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
export function DnsRecordMutationRecordToJSONTyped(value, ignoreDiscriminator = false) {
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'id': value['id'],
|
|
47
|
+
'name': value['name'],
|
|
48
|
+
'type': value['type'],
|
|
49
|
+
'content': value['content'],
|
|
50
|
+
'ttl': value['ttl'],
|
|
51
|
+
'priority': value['priority'],
|
|
52
|
+
'weight': value['weight'],
|
|
53
|
+
'port': value['port'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* HostAfricaApi
|
|
3
|
+
* HostAfrica API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.1.0 - 2026-07-16
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { DomainHostingLink } from './DomainHostingLink.js';
|
|
13
|
+
/**
|
|
14
|
+
* A DNS zone owned by the authenticated client
|
|
15
|
+
* @export
|
|
16
|
+
* @interface DnsZoneInfo
|
|
17
|
+
*/
|
|
18
|
+
export interface DnsZoneInfo {
|
|
19
|
+
/**
|
|
20
|
+
* DNS zone identifier
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof DnsZoneInfo
|
|
23
|
+
*/
|
|
24
|
+
zoneId?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Domain service id when the zone is tied to a domain
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof DnsZoneInfo
|
|
29
|
+
*/
|
|
30
|
+
domainId?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Zone domain name (FQDN)
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof DnsZoneInfo
|
|
35
|
+
*/
|
|
36
|
+
domainName?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Linked hosting service id; omitted when no hosting is linked
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof DnsZoneInfo
|
|
41
|
+
*/
|
|
42
|
+
hostingId?: number;
|
|
43
|
+
/**
|
|
44
|
+
* Zone type: 0=OTHER, 1=DOMAIN, 2=HOSTING, 3=ADDON
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof DnsZoneInfo
|
|
47
|
+
*/
|
|
48
|
+
type?: number;
|
|
49
|
+
/**
|
|
50
|
+
* Zone type key (e.g. other, domain, hosting, addon)
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof DnsZoneInfo
|
|
53
|
+
*/
|
|
54
|
+
typeKey?: string;
|
|
55
|
+
/**
|
|
56
|
+
* Product or package name for the zone
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof DnsZoneInfo
|
|
59
|
+
*/
|
|
60
|
+
packageName?: string;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {DomainHostingLink}
|
|
64
|
+
* @memberof DnsZoneInfo
|
|
65
|
+
*/
|
|
66
|
+
hasHosting?: DomainHostingLink;
|
|
67
|
+
/**
|
|
68
|
+
* Whether a DNS Manager zone exists for this domain name
|
|
69
|
+
* @type {boolean}
|
|
70
|
+
* @memberof DnsZoneInfo
|
|
71
|
+
*/
|
|
72
|
+
hasDnsManagerZone: boolean;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Check if a given object implements the DnsZoneInfo interface.
|
|
76
|
+
*/
|
|
77
|
+
export declare function instanceOfDnsZoneInfo(value: object): value is DnsZoneInfo;
|
|
78
|
+
export declare function DnsZoneInfoFromJSON(json: any): DnsZoneInfo;
|
|
79
|
+
export declare function DnsZoneInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DnsZoneInfo;
|
|
80
|
+
export declare function DnsZoneInfoToJSON(json: any): DnsZoneInfo;
|
|
81
|
+
export declare function DnsZoneInfoToJSONTyped(value?: DnsZoneInfo | null, ignoreDiscriminator?: boolean): any;
|