@hostafrica/ha-sdk-typescript 1.1.2 → 1.1.4
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/apis/VPSManagementApi.d.ts +18 -3
- package/dist/apis/VPSManagementApi.js +49 -2
- 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/apis/VPSManagementApi.d.ts +18 -3
- package/dist/esm/apis/VPSManagementApi.js +50 -3
- 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/EncryptedPasswordResponseData.d.ts +45 -0
- package/dist/esm/models/EncryptedPasswordResponseData.js +52 -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/GetEncryptedPasswordRequestContent.d.ts +38 -0
- package/dist/esm/models/GetEncryptedPasswordRequestContent.js +47 -0
- package/dist/esm/models/GetEncryptedPasswordResponseContent.d.ts +40 -0
- package/dist/esm/models/GetEncryptedPasswordResponseContent.js +49 -0
- 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/NoVncConsoleDetails.d.ts +19 -1
- package/dist/esm/models/NoVncConsoleDetails.js +7 -3
- package/dist/esm/models/PasswordEncryptionInfo.d.ts +50 -0
- package/dist/esm/models/PasswordEncryptionInfo.js +55 -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/VpsCredentials.d.ts +1 -1
- package/dist/esm/models/VpsDetailsResponse.d.ts +4 -3
- package/dist/esm/models/VpsDetailsResponse.js +3 -2
- package/dist/esm/models/VpsIpAddressDetail.d.ts +56 -0
- package/dist/esm/models/VpsIpAddressDetail.js +51 -0
- package/dist/esm/models/VpsVmInfo.d.ts +3 -3
- package/dist/esm/models/index.d.ts +42 -0
- package/dist/esm/models/index.js +42 -0
- package/dist/esm/retryablePaths.js +5 -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/EncryptedPasswordResponseData.d.ts +45 -0
- package/dist/models/EncryptedPasswordResponseData.js +59 -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/GetEncryptedPasswordRequestContent.d.ts +38 -0
- package/dist/models/GetEncryptedPasswordRequestContent.js +54 -0
- package/dist/models/GetEncryptedPasswordResponseContent.d.ts +40 -0
- package/dist/models/GetEncryptedPasswordResponseContent.js +56 -0
- 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/NoVncConsoleDetails.d.ts +19 -1
- package/dist/models/NoVncConsoleDetails.js +7 -3
- package/dist/models/PasswordEncryptionInfo.d.ts +50 -0
- package/dist/models/PasswordEncryptionInfo.js +62 -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/VpsCredentials.d.ts +1 -1
- package/dist/models/VpsDetailsResponse.d.ts +4 -3
- package/dist/models/VpsDetailsResponse.js +3 -2
- package/dist/models/VpsIpAddressDetail.d.ts +56 -0
- package/dist/models/VpsIpAddressDetail.js +58 -0
- package/dist/models/VpsVmInfo.d.ts +3 -3
- package/dist/models/index.d.ts +42 -0
- package/dist/models/index.js +42 -0
- package/dist/retryablePaths.js +5 -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/EncryptedPasswordResponseData.md +39 -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/GetEncryptedPasswordRequestContent.md +36 -0
- package/docs/GetEncryptedPasswordResponseContent.md +36 -0
- 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/NoVncConsoleDetails.md +6 -0
- package/docs/PasswordEncryptionInfo.md +41 -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/docs/VPSManagementApi.md +81 -1
- package/docs/VpsDetailsResponse.md +1 -1
- package/docs/VpsIpAddressDetail.md +43 -0
- package/docs/VpsVmInfo.md +1 -1
- 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/apis/VPSManagementApi.ts +67 -2
- 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/EncryptedPasswordResponseData.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/GetEncryptedPasswordRequestContent.ts +75 -0
- package/src/models/GetEncryptedPasswordResponseContent.ts +92 -0
- 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/NoVncConsoleDetails.ts +26 -3
- package/src/models/PasswordEncryptionInfo.ts +93 -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/VpsCredentials.ts +1 -1
- package/src/models/VpsDetailsResponse.ts +12 -5
- package/src/models/VpsIpAddressDetail.ts +98 -0
- package/src/models/VpsVmInfo.ts +3 -3
- package/src/models/index.ts +42 -0
- package/src/retryablePaths.ts +5 -0
|
@@ -197,7 +197,7 @@ export class ServiceManagementApi extends runtime.BaseAPI {
|
|
|
197
197
|
}
|
|
198
198
|
|
|
199
199
|
/**
|
|
200
|
-
* Creates an order
|
|
200
|
+
* Creates an order for a VPS service. Returns payment status; on failure also includes payment_error with code and message.
|
|
201
201
|
*/
|
|
202
202
|
async createOrderRaw(requestParameters: CreateOrderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateOrderResponseContent>> {
|
|
203
203
|
const requestOptions = await this.createOrderRequestOpts(requestParameters);
|
|
@@ -207,7 +207,7 @@ export class ServiceManagementApi extends runtime.BaseAPI {
|
|
|
207
207
|
}
|
|
208
208
|
|
|
209
209
|
/**
|
|
210
|
-
* Creates an order
|
|
210
|
+
* Creates an order for a VPS service. Returns payment status; on failure also includes payment_error with code and message.
|
|
211
211
|
*/
|
|
212
212
|
async createOrder(requestParameters: CreateOrderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateOrderResponseContent> {
|
|
213
213
|
const response = await this.createOrderRaw(requestParameters, initOverrides);
|
|
@@ -400,7 +400,7 @@ export class ServiceManagementApi extends runtime.BaseAPI {
|
|
|
400
400
|
}
|
|
401
401
|
|
|
402
402
|
/**
|
|
403
|
-
* Validates pricing for one or more products, returning per-product breakdown and order summary
|
|
403
|
+
* Validates pricing for one or more VPC service products, returning per-product breakdown and order summary
|
|
404
404
|
*/
|
|
405
405
|
async validatePricingRaw(requestParameters: ValidatePricingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ValidatePricingResponseContent>> {
|
|
406
406
|
const requestOptions = await this.validatePricingRequestOpts(requestParameters);
|
|
@@ -410,7 +410,7 @@ export class ServiceManagementApi extends runtime.BaseAPI {
|
|
|
410
410
|
}
|
|
411
411
|
|
|
412
412
|
/**
|
|
413
|
-
* Validates pricing for one or more products, returning per-product breakdown and order summary
|
|
413
|
+
* Validates pricing for one or more VPC service products, returning per-product breakdown and order summary
|
|
414
414
|
*/
|
|
415
415
|
async validatePricing(requestParameters: ValidatePricingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ValidatePricingResponseContent> {
|
|
416
416
|
const response = await this.validatePricingRaw(requestParameters, initOverrides);
|
package/src/apis/SnapshotsApi.ts
CHANGED
|
@@ -231,7 +231,7 @@ export class SnapshotsApi extends runtime.BaseAPI {
|
|
|
231
231
|
}
|
|
232
232
|
|
|
233
233
|
/**
|
|
234
|
-
*
|
|
234
|
+
* Creates a new snapshot job for a VPS service. Use period=\'hourly\' with run_every, or period=\'daily\' with days and start_time.
|
|
235
235
|
*/
|
|
236
236
|
async createSnapshotJobRaw(requestParameters: CreateSnapshotJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateSnapshotJobResponseContent>> {
|
|
237
237
|
const requestOptions = await this.createSnapshotJobRequestOpts(requestParameters);
|
|
@@ -241,7 +241,7 @@ export class SnapshotsApi extends runtime.BaseAPI {
|
|
|
241
241
|
}
|
|
242
242
|
|
|
243
243
|
/**
|
|
244
|
-
*
|
|
244
|
+
* Creates a new snapshot job for a VPS service. Use period=\'hourly\' with run_every, or period=\'daily\' with days and start_time.
|
|
245
245
|
*/
|
|
246
246
|
async createSnapshotJob(requestParameters: CreateSnapshotJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateSnapshotJobResponseContent> {
|
|
247
247
|
const response = await this.createSnapshotJobRaw(requestParameters, initOverrides);
|
|
@@ -341,7 +341,7 @@ export class SnapshotsApi extends runtime.BaseAPI {
|
|
|
341
341
|
}
|
|
342
342
|
|
|
343
343
|
/**
|
|
344
|
-
*
|
|
344
|
+
* Deletes a snapshot job from a VPS service
|
|
345
345
|
*/
|
|
346
346
|
async deleteSnapshotJobRaw(requestParameters: DeleteSnapshotJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeleteSnapshotJobResponseContent>> {
|
|
347
347
|
const requestOptions = await this.deleteSnapshotJobRequestOpts(requestParameters);
|
|
@@ -351,7 +351,7 @@ export class SnapshotsApi extends runtime.BaseAPI {
|
|
|
351
351
|
}
|
|
352
352
|
|
|
353
353
|
/**
|
|
354
|
-
*
|
|
354
|
+
* Deletes a snapshot job from a VPS service
|
|
355
355
|
*/
|
|
356
356
|
async deleteSnapshotJob(requestParameters: DeleteSnapshotJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeleteSnapshotJobResponseContent> {
|
|
357
357
|
const response = await this.deleteSnapshotJobRaw(requestParameters, initOverrides);
|
|
@@ -396,7 +396,7 @@ export class SnapshotsApi extends runtime.BaseAPI {
|
|
|
396
396
|
}
|
|
397
397
|
|
|
398
398
|
/**
|
|
399
|
-
*
|
|
399
|
+
* Retrieves the list of snapshot jobs for a VPS service
|
|
400
400
|
*/
|
|
401
401
|
async listSnapshotJobsRaw(requestParameters: ListSnapshotJobsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListSnapshotJobsResponseContent>> {
|
|
402
402
|
const requestOptions = await this.listSnapshotJobsRequestOpts(requestParameters);
|
|
@@ -406,7 +406,7 @@ export class SnapshotsApi extends runtime.BaseAPI {
|
|
|
406
406
|
}
|
|
407
407
|
|
|
408
408
|
/**
|
|
409
|
-
*
|
|
409
|
+
* Retrieves the list of snapshot jobs for a VPS service
|
|
410
410
|
*/
|
|
411
411
|
async listSnapshotJobs(requestParameters: ListSnapshotJobsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListSnapshotJobsResponseContent> {
|
|
412
412
|
const response = await this.listSnapshotJobsRaw(requestParameters, initOverrides);
|
|
@@ -616,7 +616,7 @@ export class SnapshotsApi extends runtime.BaseAPI {
|
|
|
616
616
|
}
|
|
617
617
|
|
|
618
618
|
/**
|
|
619
|
-
*
|
|
619
|
+
* Updates an existing snapshot job. Only provide fields you want to change.
|
|
620
620
|
*/
|
|
621
621
|
async updateSnapshotJobRaw(requestParameters: UpdateSnapshotJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UpdateSnapshotJobResponseContent>> {
|
|
622
622
|
const requestOptions = await this.updateSnapshotJobRequestOpts(requestParameters);
|
|
@@ -626,7 +626,7 @@ export class SnapshotsApi extends runtime.BaseAPI {
|
|
|
626
626
|
}
|
|
627
627
|
|
|
628
628
|
/**
|
|
629
|
-
*
|
|
629
|
+
* Updates an existing snapshot job. Only provide fields you want to change.
|
|
630
630
|
*/
|
|
631
631
|
async updateSnapshotJob(requestParameters: UpdateSnapshotJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UpdateSnapshotJobResponseContent> {
|
|
632
632
|
const response = await this.updateSnapshotJobRaw(requestParameters, initOverrides);
|
|
@@ -17,6 +17,8 @@ import * as runtime from '../runtime.js';
|
|
|
17
17
|
import type {
|
|
18
18
|
BadRequestErrorResponseContent,
|
|
19
19
|
ForbiddenErrorResponseContent,
|
|
20
|
+
GetEncryptedPasswordRequestContent,
|
|
21
|
+
GetEncryptedPasswordResponseContent,
|
|
20
22
|
GetVpsConfigRequestContent,
|
|
21
23
|
GetVpsConfigResponseContent,
|
|
22
24
|
GetVpsDetailsRequestContent,
|
|
@@ -45,6 +47,10 @@ import {
|
|
|
45
47
|
BadRequestErrorResponseContentToJSON,
|
|
46
48
|
ForbiddenErrorResponseContentFromJSON,
|
|
47
49
|
ForbiddenErrorResponseContentToJSON,
|
|
50
|
+
GetEncryptedPasswordRequestContentFromJSON,
|
|
51
|
+
GetEncryptedPasswordRequestContentToJSON,
|
|
52
|
+
GetEncryptedPasswordResponseContentFromJSON,
|
|
53
|
+
GetEncryptedPasswordResponseContentToJSON,
|
|
48
54
|
GetVpsConfigRequestContentFromJSON,
|
|
49
55
|
GetVpsConfigRequestContentToJSON,
|
|
50
56
|
GetVpsConfigResponseContentFromJSON,
|
|
@@ -91,6 +97,10 @@ import {
|
|
|
91
97
|
ValidationErrorResponseContentToJSON,
|
|
92
98
|
} from '../models/index.js';
|
|
93
99
|
|
|
100
|
+
export interface GetEncryptedPasswordRequest {
|
|
101
|
+
getEncryptedPasswordRequestContent: GetEncryptedPasswordRequestContent;
|
|
102
|
+
}
|
|
103
|
+
|
|
94
104
|
export interface GetVpsConfigRequest {
|
|
95
105
|
getVpsConfigRequestContent: GetVpsConfigRequestContent;
|
|
96
106
|
}
|
|
@@ -124,6 +134,61 @@ export interface UpdateVpsConfigRequest {
|
|
|
124
134
|
*/
|
|
125
135
|
export class VPSManagementApi extends runtime.BaseAPI {
|
|
126
136
|
|
|
137
|
+
/**
|
|
138
|
+
* Creates request options for getEncryptedPassword without sending the request
|
|
139
|
+
*/
|
|
140
|
+
async getEncryptedPasswordRequestOpts(requestParameters: GetEncryptedPasswordRequest): Promise<runtime.RequestOpts> {
|
|
141
|
+
if (requestParameters['getEncryptedPasswordRequestContent'] == null) {
|
|
142
|
+
throw new runtime.RequiredError(
|
|
143
|
+
'getEncryptedPasswordRequestContent',
|
|
144
|
+
'Required parameter "getEncryptedPasswordRequestContent" was null or undefined when calling getEncryptedPassword().'
|
|
145
|
+
);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
const queryParameters: any = {};
|
|
149
|
+
|
|
150
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
151
|
+
|
|
152
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
153
|
+
|
|
154
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
155
|
+
const token = this.configuration.accessToken;
|
|
156
|
+
const tokenString = await token("BearerAuth", []);
|
|
157
|
+
|
|
158
|
+
if (tokenString) {
|
|
159
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
let urlPath = `/vps/get-encrypted-password`;
|
|
164
|
+
|
|
165
|
+
return {
|
|
166
|
+
path: urlPath,
|
|
167
|
+
method: 'POST',
|
|
168
|
+
headers: headerParameters,
|
|
169
|
+
query: queryParameters,
|
|
170
|
+
body: GetEncryptedPasswordRequestContentToJSON(requestParameters['getEncryptedPasswordRequestContent']),
|
|
171
|
+
};
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* Retrieves the VPS username and root password without exposing plaintext over the API. Send a PEM-encoded RSA 4096-bit public key; the API encrypts the password with RSA-OAEP (SHA-256), and returns base64 ciphertext plus encryption metadata. Never send the private key. Invalid or non-4096-bit keys return HTTP 422 ValidationError. Generate a key with: openssl genrsa -out private.pem 4096 && openssl rsa -in private.pem -pubout -out public.pem. Decrypt with: echo CIPHERTEXT | base64 -d | openssl pkeyutl -decrypt -inkey private.pem -pkeyopt rsa_padding_mode:oaep -pkeyopt rsa_oaep_md:sha256 -pkeyopt rsa_mgf1_md:sha256 (macOS: base64 -D).
|
|
176
|
+
*/
|
|
177
|
+
async getEncryptedPasswordRaw(requestParameters: GetEncryptedPasswordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetEncryptedPasswordResponseContent>> {
|
|
178
|
+
const requestOptions = await this.getEncryptedPasswordRequestOpts(requestParameters);
|
|
179
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
180
|
+
|
|
181
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetEncryptedPasswordResponseContentFromJSON(jsonValue));
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Retrieves the VPS username and root password without exposing plaintext over the API. Send a PEM-encoded RSA 4096-bit public key; the API encrypts the password with RSA-OAEP (SHA-256), and returns base64 ciphertext plus encryption metadata. Never send the private key. Invalid or non-4096-bit keys return HTTP 422 ValidationError. Generate a key with: openssl genrsa -out private.pem 4096 && openssl rsa -in private.pem -pubout -out public.pem. Decrypt with: echo CIPHERTEXT | base64 -d | openssl pkeyutl -decrypt -inkey private.pem -pkeyopt rsa_padding_mode:oaep -pkeyopt rsa_oaep_md:sha256 -pkeyopt rsa_mgf1_md:sha256 (macOS: base64 -D).
|
|
186
|
+
*/
|
|
187
|
+
async getEncryptedPassword(requestParameters: GetEncryptedPasswordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetEncryptedPasswordResponseContent> {
|
|
188
|
+
const response = await this.getEncryptedPasswordRaw(requestParameters, initOverrides);
|
|
189
|
+
return await response.value();
|
|
190
|
+
}
|
|
191
|
+
|
|
127
192
|
/**
|
|
128
193
|
* Creates request options for getVpsConfig without sending the request
|
|
129
194
|
*/
|
|
@@ -217,7 +282,7 @@ export class VPSManagementApi extends runtime.BaseAPI {
|
|
|
217
282
|
}
|
|
218
283
|
|
|
219
284
|
/**
|
|
220
|
-
* Gets detailed information about a VPS service including configuration, network settings, and statistics
|
|
285
|
+
* Gets detailed information about a VPS service including configuration, network settings, and statistics. Credentials.password is always \"<redacted>\"; plaintext passwords are never returned. To retrieve the password securely, use GetEncryptedPassword (/vps/get-encrypted-password).
|
|
221
286
|
*/
|
|
222
287
|
async getVpsDetailsRaw(requestParameters: GetVpsDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetVpsDetailsResponseContent>> {
|
|
223
288
|
const requestOptions = await this.getVpsDetailsRequestOpts(requestParameters);
|
|
@@ -227,7 +292,7 @@ export class VPSManagementApi extends runtime.BaseAPI {
|
|
|
227
292
|
}
|
|
228
293
|
|
|
229
294
|
/**
|
|
230
|
-
* Gets detailed information about a VPS service including configuration, network settings, and statistics
|
|
295
|
+
* Gets detailed information about a VPS service including configuration, network settings, and statistics. Credentials.password is always \"<redacted>\"; plaintext passwords are never returned. To retrieve the password securely, use GetEncryptedPassword (/vps/get-encrypted-password).
|
|
231
296
|
*/
|
|
232
297
|
async getVpsDetails(requestParameters: GetVpsDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetVpsDetailsResponseContent> {
|
|
233
298
|
const response = await this.getVpsDetailsRaw(requestParameters, initOverrides);
|
|
@@ -0,0 +1,91 @@
|
|
|
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
|
+
import { mapValues } from '../runtime.js';
|
|
16
|
+
import type { DnsRecordMutationRecord } from './DnsRecordMutationRecord.js';
|
|
17
|
+
import {
|
|
18
|
+
DnsRecordMutationRecordFromJSON,
|
|
19
|
+
DnsRecordMutationRecordFromJSONTyped,
|
|
20
|
+
DnsRecordMutationRecordToJSON,
|
|
21
|
+
DnsRecordMutationRecordToJSONTyped,
|
|
22
|
+
} from './DnsRecordMutationRecord.js';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface AddDnsRecordRequestContent
|
|
28
|
+
*/
|
|
29
|
+
export interface AddDnsRecordRequestContent {
|
|
30
|
+
/**
|
|
31
|
+
* DNS zone domain name (FQDN); optional when zone_id is provided
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof AddDnsRecordRequestContent
|
|
34
|
+
*/
|
|
35
|
+
domainName?: string;
|
|
36
|
+
/**
|
|
37
|
+
* DNS zone identifier from list-dns-zones or get-dns-zone-details
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof AddDnsRecordRequestContent
|
|
40
|
+
*/
|
|
41
|
+
zoneId: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {DnsRecordMutationRecord}
|
|
45
|
+
* @memberof AddDnsRecordRequestContent
|
|
46
|
+
*/
|
|
47
|
+
record: DnsRecordMutationRecord;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the AddDnsRecordRequestContent interface.
|
|
52
|
+
*/
|
|
53
|
+
export function instanceOfAddDnsRecordRequestContent(value: object): value is AddDnsRecordRequestContent {
|
|
54
|
+
if (!('zoneId' in value) || value['zoneId'] === undefined) return false;
|
|
55
|
+
if (!('record' in value) || value['record'] === undefined) return false;
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function AddDnsRecordRequestContentFromJSON(json: any): AddDnsRecordRequestContent {
|
|
60
|
+
return AddDnsRecordRequestContentFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function AddDnsRecordRequestContentFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddDnsRecordRequestContent {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'domainName': json['domain_name'] == null ? undefined : json['domain_name'],
|
|
70
|
+
'zoneId': json['zone_id'],
|
|
71
|
+
'record': DnsRecordMutationRecordFromJSON(json['record']),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function AddDnsRecordRequestContentToJSON(json: any): AddDnsRecordRequestContent {
|
|
76
|
+
return AddDnsRecordRequestContentToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function AddDnsRecordRequestContentToJSONTyped(value?: AddDnsRecordRequestContent | null, ignoreDiscriminator: boolean = false): any {
|
|
80
|
+
if (value == null) {
|
|
81
|
+
return value;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
return {
|
|
85
|
+
|
|
86
|
+
'domain_name': value['domainName'],
|
|
87
|
+
'zone_id': value['zoneId'],
|
|
88
|
+
'record': DnsRecordMutationRecordToJSON(value['record']),
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
@@ -0,0 +1,92 @@
|
|
|
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
|
+
import { mapValues } from '../runtime.js';
|
|
16
|
+
import type { DnsRecordMutationData } from './DnsRecordMutationData.js';
|
|
17
|
+
import {
|
|
18
|
+
DnsRecordMutationDataFromJSON,
|
|
19
|
+
DnsRecordMutationDataFromJSONTyped,
|
|
20
|
+
DnsRecordMutationDataToJSON,
|
|
21
|
+
DnsRecordMutationDataToJSONTyped,
|
|
22
|
+
} from './DnsRecordMutationData.js';
|
|
23
|
+
import type { OperationStatus } from './OperationStatus.js';
|
|
24
|
+
import {
|
|
25
|
+
OperationStatusFromJSON,
|
|
26
|
+
OperationStatusFromJSONTyped,
|
|
27
|
+
OperationStatusToJSON,
|
|
28
|
+
OperationStatusToJSONTyped,
|
|
29
|
+
} from './OperationStatus.js';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface AddDnsRecordResponseContent
|
|
35
|
+
*/
|
|
36
|
+
export interface AddDnsRecordResponseContent {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {OperationStatus}
|
|
40
|
+
* @memberof AddDnsRecordResponseContent
|
|
41
|
+
*/
|
|
42
|
+
status: OperationStatus;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {DnsRecordMutationData}
|
|
46
|
+
* @memberof AddDnsRecordResponseContent
|
|
47
|
+
*/
|
|
48
|
+
data: DnsRecordMutationData;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Check if a given object implements the AddDnsRecordResponseContent interface.
|
|
55
|
+
*/
|
|
56
|
+
export function instanceOfAddDnsRecordResponseContent(value: object): value is AddDnsRecordResponseContent {
|
|
57
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
58
|
+
if (!('data' in value) || value['data'] === undefined) return false;
|
|
59
|
+
return true;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function AddDnsRecordResponseContentFromJSON(json: any): AddDnsRecordResponseContent {
|
|
63
|
+
return AddDnsRecordResponseContentFromJSONTyped(json, false);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function AddDnsRecordResponseContentFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddDnsRecordResponseContent {
|
|
67
|
+
if (json == null) {
|
|
68
|
+
return json;
|
|
69
|
+
}
|
|
70
|
+
return {
|
|
71
|
+
|
|
72
|
+
'status': OperationStatusFromJSON(json['status']),
|
|
73
|
+
'data': DnsRecordMutationDataFromJSON(json['data']),
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function AddDnsRecordResponseContentToJSON(json: any): AddDnsRecordResponseContent {
|
|
78
|
+
return AddDnsRecordResponseContentToJSONTyped(json, false);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function AddDnsRecordResponseContentToJSONTyped(value?: AddDnsRecordResponseContent | null, ignoreDiscriminator: boolean = false): any {
|
|
82
|
+
if (value == null) {
|
|
83
|
+
return value;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
return {
|
|
87
|
+
|
|
88
|
+
'status': OperationStatusToJSON(value['status']),
|
|
89
|
+
'data': DnsRecordMutationDataToJSON(value['data']),
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
@@ -0,0 +1,91 @@
|
|
|
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
|
+
import { mapValues } from '../runtime.js';
|
|
16
|
+
import type { DnsRecordMutationRecord } from './DnsRecordMutationRecord.js';
|
|
17
|
+
import {
|
|
18
|
+
DnsRecordMutationRecordFromJSON,
|
|
19
|
+
DnsRecordMutationRecordFromJSONTyped,
|
|
20
|
+
DnsRecordMutationRecordToJSON,
|
|
21
|
+
DnsRecordMutationRecordToJSONTyped,
|
|
22
|
+
} from './DnsRecordMutationRecord.js';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface DeleteDnsRecordRequestContent
|
|
28
|
+
*/
|
|
29
|
+
export interface DeleteDnsRecordRequestContent {
|
|
30
|
+
/**
|
|
31
|
+
* DNS zone domain name (FQDN); optional when zone_id is provided
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof DeleteDnsRecordRequestContent
|
|
34
|
+
*/
|
|
35
|
+
domainName?: string;
|
|
36
|
+
/**
|
|
37
|
+
* DNS zone identifier from list-dns-zones or get-dns-zone-details
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof DeleteDnsRecordRequestContent
|
|
40
|
+
*/
|
|
41
|
+
zoneId: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {DnsRecordMutationRecord}
|
|
45
|
+
* @memberof DeleteDnsRecordRequestContent
|
|
46
|
+
*/
|
|
47
|
+
record: DnsRecordMutationRecord;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the DeleteDnsRecordRequestContent interface.
|
|
52
|
+
*/
|
|
53
|
+
export function instanceOfDeleteDnsRecordRequestContent(value: object): value is DeleteDnsRecordRequestContent {
|
|
54
|
+
if (!('zoneId' in value) || value['zoneId'] === undefined) return false;
|
|
55
|
+
if (!('record' in value) || value['record'] === undefined) return false;
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function DeleteDnsRecordRequestContentFromJSON(json: any): DeleteDnsRecordRequestContent {
|
|
60
|
+
return DeleteDnsRecordRequestContentFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function DeleteDnsRecordRequestContentFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteDnsRecordRequestContent {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'domainName': json['domain_name'] == null ? undefined : json['domain_name'],
|
|
70
|
+
'zoneId': json['zone_id'],
|
|
71
|
+
'record': DnsRecordMutationRecordFromJSON(json['record']),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function DeleteDnsRecordRequestContentToJSON(json: any): DeleteDnsRecordRequestContent {
|
|
76
|
+
return DeleteDnsRecordRequestContentToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function DeleteDnsRecordRequestContentToJSONTyped(value?: DeleteDnsRecordRequestContent | null, ignoreDiscriminator: boolean = false): any {
|
|
80
|
+
if (value == null) {
|
|
81
|
+
return value;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
return {
|
|
85
|
+
|
|
86
|
+
'domain_name': value['domainName'],
|
|
87
|
+
'zone_id': value['zoneId'],
|
|
88
|
+
'record': DnsRecordMutationRecordToJSON(value['record']),
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
@@ -0,0 +1,92 @@
|
|
|
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
|
+
import { mapValues } from '../runtime.js';
|
|
16
|
+
import type { DnsRecordMutationData } from './DnsRecordMutationData.js';
|
|
17
|
+
import {
|
|
18
|
+
DnsRecordMutationDataFromJSON,
|
|
19
|
+
DnsRecordMutationDataFromJSONTyped,
|
|
20
|
+
DnsRecordMutationDataToJSON,
|
|
21
|
+
DnsRecordMutationDataToJSONTyped,
|
|
22
|
+
} from './DnsRecordMutationData.js';
|
|
23
|
+
import type { OperationStatus } from './OperationStatus.js';
|
|
24
|
+
import {
|
|
25
|
+
OperationStatusFromJSON,
|
|
26
|
+
OperationStatusFromJSONTyped,
|
|
27
|
+
OperationStatusToJSON,
|
|
28
|
+
OperationStatusToJSONTyped,
|
|
29
|
+
} from './OperationStatus.js';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface DeleteDnsRecordResponseContent
|
|
35
|
+
*/
|
|
36
|
+
export interface DeleteDnsRecordResponseContent {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {OperationStatus}
|
|
40
|
+
* @memberof DeleteDnsRecordResponseContent
|
|
41
|
+
*/
|
|
42
|
+
status: OperationStatus;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {DnsRecordMutationData}
|
|
46
|
+
* @memberof DeleteDnsRecordResponseContent
|
|
47
|
+
*/
|
|
48
|
+
data: DnsRecordMutationData;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Check if a given object implements the DeleteDnsRecordResponseContent interface.
|
|
55
|
+
*/
|
|
56
|
+
export function instanceOfDeleteDnsRecordResponseContent(value: object): value is DeleteDnsRecordResponseContent {
|
|
57
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
58
|
+
if (!('data' in value) || value['data'] === undefined) return false;
|
|
59
|
+
return true;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function DeleteDnsRecordResponseContentFromJSON(json: any): DeleteDnsRecordResponseContent {
|
|
63
|
+
return DeleteDnsRecordResponseContentFromJSONTyped(json, false);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function DeleteDnsRecordResponseContentFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteDnsRecordResponseContent {
|
|
67
|
+
if (json == null) {
|
|
68
|
+
return json;
|
|
69
|
+
}
|
|
70
|
+
return {
|
|
71
|
+
|
|
72
|
+
'status': OperationStatusFromJSON(json['status']),
|
|
73
|
+
'data': DnsRecordMutationDataFromJSON(json['data']),
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function DeleteDnsRecordResponseContentToJSON(json: any): DeleteDnsRecordResponseContent {
|
|
78
|
+
return DeleteDnsRecordResponseContentToJSONTyped(json, false);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function DeleteDnsRecordResponseContentToJSONTyped(value?: DeleteDnsRecordResponseContent | null, ignoreDiscriminator: boolean = false): any {
|
|
82
|
+
if (value == null) {
|
|
83
|
+
return value;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
return {
|
|
87
|
+
|
|
88
|
+
'status': OperationStatusToJSON(value['status']),
|
|
89
|
+
'data': DnsRecordMutationDataToJSON(value['data']),
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
@@ -0,0 +1,97 @@
|
|
|
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
|
+
import { mapValues } from '../runtime.js';
|
|
16
|
+
/**
|
|
17
|
+
* A domain or service eligible for DNS zone creation
|
|
18
|
+
* @export
|
|
19
|
+
* @interface DnsCreateCandidateInfo
|
|
20
|
+
*/
|
|
21
|
+
export interface DnsCreateCandidateInfo {
|
|
22
|
+
/**
|
|
23
|
+
* Domain name when the candidate is a domain
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof DnsCreateCandidateInfo
|
|
26
|
+
*/
|
|
27
|
+
domainName?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Domain service id when the candidate is a domain
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof DnsCreateCandidateInfo
|
|
32
|
+
*/
|
|
33
|
+
domainId?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Related service id when the candidate is a hosting or addon service
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof DnsCreateCandidateInfo
|
|
38
|
+
*/
|
|
39
|
+
relid?: number;
|
|
40
|
+
/**
|
|
41
|
+
* Zone type: 0=OTHER, 1=DOMAIN, 2=HOSTING, 3=ADDON
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof DnsCreateCandidateInfo
|
|
44
|
+
*/
|
|
45
|
+
type?: number;
|
|
46
|
+
/**
|
|
47
|
+
* Display name for the candidate
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof DnsCreateCandidateInfo
|
|
50
|
+
*/
|
|
51
|
+
name?: string;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the DnsCreateCandidateInfo interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfDnsCreateCandidateInfo(value: object): value is DnsCreateCandidateInfo {
|
|
58
|
+
return true;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function DnsCreateCandidateInfoFromJSON(json: any): DnsCreateCandidateInfo {
|
|
62
|
+
return DnsCreateCandidateInfoFromJSONTyped(json, false);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function DnsCreateCandidateInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DnsCreateCandidateInfo {
|
|
66
|
+
if (json == null) {
|
|
67
|
+
return json;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'domainName': json['domain_name'] == null ? undefined : json['domain_name'],
|
|
72
|
+
'domainId': json['domain_id'] == null ? undefined : json['domain_id'],
|
|
73
|
+
'relid': json['relid'] == null ? undefined : json['relid'],
|
|
74
|
+
'type': json['type'] == null ? undefined : json['type'],
|
|
75
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function DnsCreateCandidateInfoToJSON(json: any): DnsCreateCandidateInfo {
|
|
80
|
+
return DnsCreateCandidateInfoToJSONTyped(json, false);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function DnsCreateCandidateInfoToJSONTyped(value?: DnsCreateCandidateInfo | null, ignoreDiscriminator: boolean = false): any {
|
|
84
|
+
if (value == null) {
|
|
85
|
+
return value;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
return {
|
|
89
|
+
|
|
90
|
+
'domain_name': value['domainName'],
|
|
91
|
+
'domain_id': value['domainId'],
|
|
92
|
+
'relid': value['relid'],
|
|
93
|
+
'type': value['type'],
|
|
94
|
+
'name': value['name'],
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
|