hostinger-api-sdk 0.0.8 → 0.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/api.ts +1911 -180
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +1218 -170
- package/dist/api.js +1277 -37
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +2 -2
- package/dist/esm/api.d.ts +1218 -170
- package/dist/esm/api.js +1258 -31
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +2 -2
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/BillingCatalogApi.md +54 -0
- package/docs/BillingOrdersApi.md +63 -0
- package/docs/BillingPaymentMethodsApi.md +162 -0
- package/docs/BillingSubscriptionsApi.md +113 -0
- package/docs/BillingV1CatalogCatalogItemPriceResource.md +32 -0
- package/docs/BillingV1CatalogCatalogItemResource.md +26 -0
- package/docs/BillingV1OrderOrderBillingAddressResource.md +40 -0
- package/docs/BillingV1OrderOrderResource.md +36 -0
- package/docs/BillingV1OrderStoreRequest.md +24 -0
- package/docs/BillingV1OrderStoreRequestItemsInner.md +22 -0
- package/docs/BillingV1PaymentMethodPaymentMethodResource.md +36 -0
- package/docs/BillingV1SubscriptionCancelRequest.md +22 -0
- package/docs/BillingV1SubscriptionSubscriptionResource.md +42 -0
- package/docs/CommonSchemaErrorResponseSchema.md +22 -0
- package/docs/CommonSchemaPaginationMetaSchema.md +24 -0
- package/docs/CommonSchemaUnauthorizedResponseSchema.md +22 -0
- package/docs/CommonSchemaUnprocessableContentResponseSchema.md +24 -0
- package/docs/CommonSchemaUnprocessableContentResponseSchemaErrors.md +22 -0
- package/docs/CommonSuccessEmptyResource.md +20 -0
- package/docs/DNSSnapshotApi.md +175 -0
- package/docs/DNSV1SnapshotSnapshotResource.md +24 -0
- package/docs/DNSV1SnapshotSnapshotWithContentResource.md +26 -0
- package/docs/DNSV1ZoneDestroyRequest.md +20 -0
- package/docs/DNSV1ZoneDestroyRequestFiltersInner.md +22 -0
- package/docs/DNSV1ZoneNameRecordResource.md +22 -0
- package/docs/DNSV1ZoneRecordResource.md +26 -0
- package/docs/DNSV1ZoneResetRequest.md +24 -0
- package/docs/DNSV1ZoneUpdateRequest.md +22 -0
- package/docs/DNSV1ZoneUpdateRequestZoneInner.md +26 -0
- package/docs/DNSV1ZoneUpdateRequestZoneInnerRecordsInner.md +20 -0
- package/docs/DNSZoneApi.md +297 -0
- package/docs/DomainsAvailabilityApi.md +63 -0
- package/docs/DomainsForwardingApi.md +171 -0
- package/docs/DomainsPortfolioApi.md +439 -0
- package/docs/DomainsV1AvailabilityAvailabilityRequest.md +24 -0
- package/docs/DomainsV1AvailabilityAvailabilityResource.md +26 -0
- package/docs/DomainsV1DomainDomainExtendedResource.md +48 -0
- package/docs/DomainsV1DomainDomainExtendedResourceDomainContacts.md +27 -0
- package/docs/DomainsV1DomainDomainExtendedResourceNameServers.md +23 -0
- package/docs/DomainsV1DomainDomainResource.md +30 -0
- package/docs/DomainsV1ForwardingForwardingResource.md +28 -0
- package/docs/DomainsV1ForwardingStoreRequest.md +24 -0
- package/docs/DomainsV1PortfolioPurchaseRequest.md +30 -0
- package/docs/DomainsV1PortfolioPurchaseRequestDomainContacts.md +27 -0
- package/docs/DomainsV1PortfolioUpdateNameserversRequest.md +26 -0
- package/docs/DomainsV1WHOISProfileResource.md +34 -0
- package/docs/DomainsV1WHOISStoreRequest.md +28 -0
- package/docs/DomainsWHOISApi.md +279 -0
- package/docs/VPSActionsApi.md +121 -0
- package/docs/VPSBackupsApi.md +178 -0
- package/docs/VPSDataCentersApi.md +54 -0
- package/docs/VPSFirewallApi.md +577 -0
- package/docs/VPSGetActionListV1200Response.md +22 -0
- package/docs/VPSGetBackupListV1200Response.md +22 -0
- package/docs/VPSGetFirewallListV1200Response.md +22 -0
- package/docs/VPSGetPostInstallScriptListV1200Response.md +22 -0
- package/docs/VPSGetPublicKeyListV1200Response.md +22 -0
- package/docs/VPSMalwareScannerApi.md +172 -0
- package/docs/VPSOSTemplatesApi.md +108 -0
- package/docs/VPSPTRRecordsApi.md +115 -0
- package/docs/VPSPostInstallScriptsApi.md +284 -0
- package/docs/VPSPublicKeysApi.md +230 -0
- package/docs/VPSRecoveryApi.md +120 -0
- package/docs/VPSSnapshotsApi.md +223 -0
- package/docs/VPSV1ActionActionResource.md +28 -0
- package/docs/VPSV1BackupBackupResource.md +24 -0
- package/docs/VPSV1DataCenterDataCenterResource.md +28 -0
- package/docs/VPSV1FirewallFirewallResource.md +30 -0
- package/docs/VPSV1FirewallFirewallRuleResource.md +30 -0
- package/docs/VPSV1FirewallRulesStoreRequest.md +26 -0
- package/docs/VPSV1FirewallStoreRequest.md +20 -0
- package/docs/VPSV1IPAddressIPAddressResource.md +24 -0
- package/docs/VPSV1MalwareMetricsResource.md +30 -0
- package/docs/VPSV1MetricsMetricsCollection.md +30 -0
- package/docs/VPSV1MetricsMetricsResource.md +22 -0
- package/docs/VPSV1PostInstallScriptPostInstallScriptResource.md +28 -0
- package/docs/VPSV1PostInstallScriptStoreRequest.md +22 -0
- package/docs/VPSV1PublicKeyAttachRequest.md +20 -0
- package/docs/VPSV1PublicKeyPublicKeyResource.md +24 -0
- package/docs/VPSV1PublicKeyStoreRequest.md +22 -0
- package/docs/VPSV1SnapshotSnapshotResource.md +24 -0
- package/docs/VPSV1TemplateTemplateResource.md +26 -0
- package/docs/VPSV1VirtualMachineHostnameUpdateRequest.md +20 -0
- package/docs/VPSV1VirtualMachineNameserversUpdateRequest.md +22 -0
- package/docs/VPSV1VirtualMachinePanelPasswordUpdateRequest.md +20 -0
- package/docs/VPSV1VirtualMachineRecoveryStartRequest.md +20 -0
- package/docs/VPSV1VirtualMachineRecreateRequest.md +24 -0
- package/docs/VPSV1VirtualMachineRootPasswordUpdateRequest.md +20 -0
- package/docs/VPSV1VirtualMachineSetupRequest.md +38 -0
- package/docs/VPSV1VirtualMachineSetupRequestPublicKey.md +22 -0
- package/docs/VPSV1VirtualMachineVirtualMachineResource.md +52 -0
- package/docs/VPSVirtualMachineApi.md +796 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 0.0.
|
|
6
|
+
* API Version: 0.0.37
|
|
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
|
|
@@ -279,7 +279,7 @@ export interface BillingV1OrderStoreRequest {
|
|
|
279
279
|
*/
|
|
280
280
|
'items': Array<BillingV1OrderStoreRequestItemsInner>;
|
|
281
281
|
/**
|
|
282
|
-
*
|
|
282
|
+
* Discount coupon codes
|
|
283
283
|
* @type {Array<any>}
|
|
284
284
|
* @memberof BillingV1OrderStoreRequest
|
|
285
285
|
*/
|
|
@@ -455,7 +455,7 @@ export interface BillingV1SubscriptionSubscriptionResource {
|
|
|
455
455
|
* @type {boolean}
|
|
456
456
|
* @memberof BillingV1SubscriptionSubscriptionResource
|
|
457
457
|
*/
|
|
458
|
-
'
|
|
458
|
+
'is_auto_renewed': boolean;
|
|
459
459
|
/**
|
|
460
460
|
*
|
|
461
461
|
* @type {string}
|
|
@@ -729,7 +729,7 @@ export interface DNSV1ZoneNameRecordResource {
|
|
|
729
729
|
* @type {boolean}
|
|
730
730
|
* @memberof DNSV1ZoneNameRecordResource
|
|
731
731
|
*/
|
|
732
|
-
'
|
|
732
|
+
'is_disabled': boolean;
|
|
733
733
|
}
|
|
734
734
|
/**
|
|
735
735
|
*
|
|
@@ -882,6 +882,220 @@ export interface DNSV1ZoneUpdateRequestZoneInnerRecordsInner {
|
|
|
882
882
|
*/
|
|
883
883
|
'content': string;
|
|
884
884
|
}
|
|
885
|
+
/**
|
|
886
|
+
*
|
|
887
|
+
* @export
|
|
888
|
+
* @interface DomainsV1AvailabilityAvailabilityRequest
|
|
889
|
+
*/
|
|
890
|
+
export interface DomainsV1AvailabilityAvailabilityRequest {
|
|
891
|
+
/**
|
|
892
|
+
* Domain name without TLD
|
|
893
|
+
* @type {string}
|
|
894
|
+
* @memberof DomainsV1AvailabilityAvailabilityRequest
|
|
895
|
+
*/
|
|
896
|
+
'domain': string;
|
|
897
|
+
/**
|
|
898
|
+
* TLDs to check (without trailing dot)
|
|
899
|
+
* @type {Array<string>}
|
|
900
|
+
* @memberof DomainsV1AvailabilityAvailabilityRequest
|
|
901
|
+
*/
|
|
902
|
+
'tlds': Array<string>;
|
|
903
|
+
/**
|
|
904
|
+
* Should response include alternatives
|
|
905
|
+
* @type {boolean}
|
|
906
|
+
* @memberof DomainsV1AvailabilityAvailabilityRequest
|
|
907
|
+
*/
|
|
908
|
+
'with_alternatives': boolean;
|
|
909
|
+
}
|
|
910
|
+
/**
|
|
911
|
+
*
|
|
912
|
+
* @export
|
|
913
|
+
* @interface DomainsV1AvailabilityAvailabilityResource
|
|
914
|
+
*/
|
|
915
|
+
export interface DomainsV1AvailabilityAvailabilityResource {
|
|
916
|
+
/**
|
|
917
|
+
* Domain name, `null` when not claimed free domain
|
|
918
|
+
* @type {string}
|
|
919
|
+
* @memberof DomainsV1AvailabilityAvailabilityResource
|
|
920
|
+
*/
|
|
921
|
+
'domain': string | null;
|
|
922
|
+
/**
|
|
923
|
+
* `true` if domain is available for registration
|
|
924
|
+
* @type {boolean}
|
|
925
|
+
* @memberof DomainsV1AvailabilityAvailabilityResource
|
|
926
|
+
*/
|
|
927
|
+
'is_available': boolean;
|
|
928
|
+
/**
|
|
929
|
+
* `true` if domain is provided as an alternative
|
|
930
|
+
* @type {boolean}
|
|
931
|
+
* @memberof DomainsV1AvailabilityAvailabilityResource
|
|
932
|
+
*/
|
|
933
|
+
'is_alternative': boolean;
|
|
934
|
+
/**
|
|
935
|
+
* Special rules and/or restrictions applied for registering TLD
|
|
936
|
+
* @type {string}
|
|
937
|
+
* @memberof DomainsV1AvailabilityAvailabilityResource
|
|
938
|
+
*/
|
|
939
|
+
'restriction': string | null;
|
|
940
|
+
}
|
|
941
|
+
/**
|
|
942
|
+
*
|
|
943
|
+
* @export
|
|
944
|
+
* @interface DomainsV1DomainDomainExtendedResource
|
|
945
|
+
*/
|
|
946
|
+
export interface DomainsV1DomainDomainExtendedResource {
|
|
947
|
+
/**
|
|
948
|
+
* Domain name
|
|
949
|
+
* @type {string}
|
|
950
|
+
* @memberof DomainsV1DomainDomainExtendedResource
|
|
951
|
+
*/
|
|
952
|
+
'domain': string;
|
|
953
|
+
/**
|
|
954
|
+
* Status of the domain
|
|
955
|
+
* @type {string}
|
|
956
|
+
* @memberof DomainsV1DomainDomainExtendedResource
|
|
957
|
+
*/
|
|
958
|
+
'status': DomainsV1DomainDomainExtendedResourceStatusEnum;
|
|
959
|
+
/**
|
|
960
|
+
*
|
|
961
|
+
* @type {string}
|
|
962
|
+
* @memberof DomainsV1DomainDomainExtendedResource
|
|
963
|
+
*/
|
|
964
|
+
'message': string | null;
|
|
965
|
+
/**
|
|
966
|
+
* Is privacy protection allowed for the domain
|
|
967
|
+
* @type {boolean}
|
|
968
|
+
* @memberof DomainsV1DomainDomainExtendedResource
|
|
969
|
+
*/
|
|
970
|
+
'is_privacy_protection_allowed': boolean;
|
|
971
|
+
/**
|
|
972
|
+
* Is privacy protection enabled for the domain
|
|
973
|
+
* @type {boolean}
|
|
974
|
+
* @memberof DomainsV1DomainDomainExtendedResource
|
|
975
|
+
*/
|
|
976
|
+
'is_privacy_protected': boolean;
|
|
977
|
+
/**
|
|
978
|
+
* Is domain allowed to be locked
|
|
979
|
+
* @type {boolean}
|
|
980
|
+
* @memberof DomainsV1DomainDomainExtendedResource
|
|
981
|
+
*/
|
|
982
|
+
'is_lockable': boolean;
|
|
983
|
+
/**
|
|
984
|
+
* Is domain locked
|
|
985
|
+
* @type {boolean}
|
|
986
|
+
* @memberof DomainsV1DomainDomainExtendedResource
|
|
987
|
+
*/
|
|
988
|
+
'is_locked': boolean;
|
|
989
|
+
/**
|
|
990
|
+
*
|
|
991
|
+
* @type {DomainsV1DomainDomainExtendedResourceNameServers}
|
|
992
|
+
* @memberof DomainsV1DomainDomainExtendedResource
|
|
993
|
+
*/
|
|
994
|
+
'name_servers': DomainsV1DomainDomainExtendedResourceNameServers;
|
|
995
|
+
/**
|
|
996
|
+
* Child name servers
|
|
997
|
+
* @type {Array<Array<string>>}
|
|
998
|
+
* @memberof DomainsV1DomainDomainExtendedResource
|
|
999
|
+
*/
|
|
1000
|
+
'child_name_servers': Array<Array<string>>;
|
|
1001
|
+
/**
|
|
1002
|
+
*
|
|
1003
|
+
* @type {DomainsV1DomainDomainExtendedResourceDomainContacts}
|
|
1004
|
+
* @memberof DomainsV1DomainDomainExtendedResource
|
|
1005
|
+
*/
|
|
1006
|
+
'domain_contacts': DomainsV1DomainDomainExtendedResourceDomainContacts;
|
|
1007
|
+
/**
|
|
1008
|
+
*
|
|
1009
|
+
* @type {string}
|
|
1010
|
+
* @memberof DomainsV1DomainDomainExtendedResource
|
|
1011
|
+
*/
|
|
1012
|
+
'created_at': string;
|
|
1013
|
+
/**
|
|
1014
|
+
*
|
|
1015
|
+
* @type {string}
|
|
1016
|
+
* @memberof DomainsV1DomainDomainExtendedResource
|
|
1017
|
+
*/
|
|
1018
|
+
'updated_at': string;
|
|
1019
|
+
/**
|
|
1020
|
+
*
|
|
1021
|
+
* @type {string}
|
|
1022
|
+
* @memberof DomainsV1DomainDomainExtendedResource
|
|
1023
|
+
*/
|
|
1024
|
+
'60_days_lock_expires_at': string | null;
|
|
1025
|
+
/**
|
|
1026
|
+
*
|
|
1027
|
+
* @type {string}
|
|
1028
|
+
* @memberof DomainsV1DomainDomainExtendedResource
|
|
1029
|
+
*/
|
|
1030
|
+
'registered_at': string | null;
|
|
1031
|
+
/**
|
|
1032
|
+
*
|
|
1033
|
+
* @type {string}
|
|
1034
|
+
* @memberof DomainsV1DomainDomainExtendedResource
|
|
1035
|
+
*/
|
|
1036
|
+
'expires_at': string | null;
|
|
1037
|
+
}
|
|
1038
|
+
|
|
1039
|
+
export const DomainsV1DomainDomainExtendedResourceStatusEnum = {
|
|
1040
|
+
Active: 'active',
|
|
1041
|
+
PendingSetup: 'pending_setup',
|
|
1042
|
+
Expired: 'expired',
|
|
1043
|
+
Requested: 'requested',
|
|
1044
|
+
PendingVerification: 'pending_verification'
|
|
1045
|
+
} as const;
|
|
1046
|
+
|
|
1047
|
+
export type DomainsV1DomainDomainExtendedResourceStatusEnum = typeof DomainsV1DomainDomainExtendedResourceStatusEnum[keyof typeof DomainsV1DomainDomainExtendedResourceStatusEnum];
|
|
1048
|
+
|
|
1049
|
+
/**
|
|
1050
|
+
* WHOIS profiles
|
|
1051
|
+
* @export
|
|
1052
|
+
* @interface DomainsV1DomainDomainExtendedResourceDomainContacts
|
|
1053
|
+
*/
|
|
1054
|
+
export interface DomainsV1DomainDomainExtendedResourceDomainContacts {
|
|
1055
|
+
/**
|
|
1056
|
+
* Admin WHOIS profile ID
|
|
1057
|
+
* @type {number}
|
|
1058
|
+
* @memberof DomainsV1DomainDomainExtendedResourceDomainContacts
|
|
1059
|
+
*/
|
|
1060
|
+
'admin_id': number;
|
|
1061
|
+
/**
|
|
1062
|
+
* Owner WHOIS profile ID
|
|
1063
|
+
* @type {number}
|
|
1064
|
+
* @memberof DomainsV1DomainDomainExtendedResourceDomainContacts
|
|
1065
|
+
*/
|
|
1066
|
+
'owner_id': number;
|
|
1067
|
+
/**
|
|
1068
|
+
* Billing WHOIS profile ID
|
|
1069
|
+
* @type {number}
|
|
1070
|
+
* @memberof DomainsV1DomainDomainExtendedResourceDomainContacts
|
|
1071
|
+
*/
|
|
1072
|
+
'billing_id': number;
|
|
1073
|
+
/**
|
|
1074
|
+
* Technician WHOIS profile ID
|
|
1075
|
+
* @type {number}
|
|
1076
|
+
* @memberof DomainsV1DomainDomainExtendedResourceDomainContacts
|
|
1077
|
+
*/
|
|
1078
|
+
'tech_id': number;
|
|
1079
|
+
}
|
|
1080
|
+
/**
|
|
1081
|
+
* Name servers
|
|
1082
|
+
* @export
|
|
1083
|
+
* @interface DomainsV1DomainDomainExtendedResourceNameServers
|
|
1084
|
+
*/
|
|
1085
|
+
export interface DomainsV1DomainDomainExtendedResourceNameServers {
|
|
1086
|
+
/**
|
|
1087
|
+
* Name server 1
|
|
1088
|
+
* @type {string}
|
|
1089
|
+
* @memberof DomainsV1DomainDomainExtendedResourceNameServers
|
|
1090
|
+
*/
|
|
1091
|
+
'ns1': string;
|
|
1092
|
+
/**
|
|
1093
|
+
* Name server 2
|
|
1094
|
+
* @type {string}
|
|
1095
|
+
* @memberof DomainsV1DomainDomainExtendedResourceNameServers
|
|
1096
|
+
*/
|
|
1097
|
+
'ns2': string;
|
|
1098
|
+
}
|
|
885
1099
|
/**
|
|
886
1100
|
*
|
|
887
1101
|
* @export
|
|
@@ -899,7 +1113,7 @@ export interface DomainsV1DomainDomainResource {
|
|
|
899
1113
|
* @type {string}
|
|
900
1114
|
* @memberof DomainsV1DomainDomainResource
|
|
901
1115
|
*/
|
|
902
|
-
'
|
|
1116
|
+
'domain': string | null;
|
|
903
1117
|
/**
|
|
904
1118
|
*
|
|
905
1119
|
* @type {string}
|
|
@@ -935,7 +1149,9 @@ export type DomainsV1DomainDomainResourceTypeEnum = typeof DomainsV1DomainDomain
|
|
|
935
1149
|
export const DomainsV1DomainDomainResourceStatusEnum = {
|
|
936
1150
|
Active: 'active',
|
|
937
1151
|
PendingSetup: 'pending_setup',
|
|
938
|
-
Expired: 'expired'
|
|
1152
|
+
Expired: 'expired',
|
|
1153
|
+
Requested: 'requested',
|
|
1154
|
+
PendingVerification: 'pending_verification'
|
|
939
1155
|
} as const;
|
|
940
1156
|
|
|
941
1157
|
export type DomainsV1DomainDomainResourceStatusEnum = typeof DomainsV1DomainDomainResourceStatusEnum[keyof typeof DomainsV1DomainDomainResourceStatusEnum];
|
|
@@ -943,126 +1159,417 @@ export type DomainsV1DomainDomainResourceStatusEnum = typeof DomainsV1DomainDoma
|
|
|
943
1159
|
/**
|
|
944
1160
|
*
|
|
945
1161
|
* @export
|
|
946
|
-
* @interface
|
|
1162
|
+
* @interface DomainsV1ForwardingForwardingResource
|
|
947
1163
|
*/
|
|
948
|
-
export interface
|
|
1164
|
+
export interface DomainsV1ForwardingForwardingResource {
|
|
949
1165
|
/**
|
|
950
|
-
*
|
|
951
|
-
* @type {
|
|
952
|
-
* @memberof
|
|
1166
|
+
* Domain name
|
|
1167
|
+
* @type {string}
|
|
1168
|
+
* @memberof DomainsV1ForwardingForwardingResource
|
|
953
1169
|
*/
|
|
954
|
-
'
|
|
1170
|
+
'domain': string | null;
|
|
1171
|
+
/**
|
|
1172
|
+
* Redirect type
|
|
1173
|
+
* @type {string}
|
|
1174
|
+
* @memberof DomainsV1ForwardingForwardingResource
|
|
1175
|
+
*/
|
|
1176
|
+
'redirect_type': DomainsV1ForwardingForwardingResourceRedirectTypeEnum;
|
|
1177
|
+
/**
|
|
1178
|
+
* URL domain is forwarded to
|
|
1179
|
+
* @type {string}
|
|
1180
|
+
* @memberof DomainsV1ForwardingForwardingResource
|
|
1181
|
+
*/
|
|
1182
|
+
'redirect_url': string;
|
|
955
1183
|
/**
|
|
956
1184
|
*
|
|
957
|
-
* @type {
|
|
958
|
-
* @memberof
|
|
1185
|
+
* @type {string}
|
|
1186
|
+
* @memberof DomainsV1ForwardingForwardingResource
|
|
959
1187
|
*/
|
|
960
|
-
'
|
|
1188
|
+
'created_at': string;
|
|
1189
|
+
/**
|
|
1190
|
+
*
|
|
1191
|
+
* @type {string}
|
|
1192
|
+
* @memberof DomainsV1ForwardingForwardingResource
|
|
1193
|
+
*/
|
|
1194
|
+
'updated_at': string | null;
|
|
961
1195
|
}
|
|
1196
|
+
|
|
1197
|
+
export const DomainsV1ForwardingForwardingResourceRedirectTypeEnum = {
|
|
1198
|
+
_301: '301',
|
|
1199
|
+
_302: '302'
|
|
1200
|
+
} as const;
|
|
1201
|
+
|
|
1202
|
+
export type DomainsV1ForwardingForwardingResourceRedirectTypeEnum = typeof DomainsV1ForwardingForwardingResourceRedirectTypeEnum[keyof typeof DomainsV1ForwardingForwardingResourceRedirectTypeEnum];
|
|
1203
|
+
|
|
962
1204
|
/**
|
|
963
1205
|
*
|
|
964
1206
|
* @export
|
|
965
|
-
* @interface
|
|
1207
|
+
* @interface DomainsV1ForwardingStoreRequest
|
|
966
1208
|
*/
|
|
967
|
-
export interface
|
|
1209
|
+
export interface DomainsV1ForwardingStoreRequest {
|
|
968
1210
|
/**
|
|
969
|
-
*
|
|
970
|
-
* @type {
|
|
971
|
-
* @memberof
|
|
1211
|
+
* Domain name
|
|
1212
|
+
* @type {string}
|
|
1213
|
+
* @memberof DomainsV1ForwardingStoreRequest
|
|
972
1214
|
*/
|
|
973
|
-
'
|
|
1215
|
+
'domain': string;
|
|
974
1216
|
/**
|
|
975
|
-
*
|
|
976
|
-
* @type {
|
|
977
|
-
* @memberof
|
|
1217
|
+
* Redirect type
|
|
1218
|
+
* @type {string}
|
|
1219
|
+
* @memberof DomainsV1ForwardingStoreRequest
|
|
978
1220
|
*/
|
|
979
|
-
'
|
|
1221
|
+
'redirect_type': DomainsV1ForwardingStoreRequestRedirectTypeEnum;
|
|
1222
|
+
/**
|
|
1223
|
+
* URL to forward domain to
|
|
1224
|
+
* @type {string}
|
|
1225
|
+
* @memberof DomainsV1ForwardingStoreRequest
|
|
1226
|
+
*/
|
|
1227
|
+
'redirect_url': string;
|
|
980
1228
|
}
|
|
1229
|
+
|
|
1230
|
+
export const DomainsV1ForwardingStoreRequestRedirectTypeEnum = {
|
|
1231
|
+
_301: '301',
|
|
1232
|
+
_302: '302'
|
|
1233
|
+
} as const;
|
|
1234
|
+
|
|
1235
|
+
export type DomainsV1ForwardingStoreRequestRedirectTypeEnum = typeof DomainsV1ForwardingStoreRequestRedirectTypeEnum[keyof typeof DomainsV1ForwardingStoreRequestRedirectTypeEnum];
|
|
1236
|
+
|
|
981
1237
|
/**
|
|
982
1238
|
*
|
|
983
1239
|
* @export
|
|
984
|
-
* @interface
|
|
1240
|
+
* @interface DomainsV1PortfolioPurchaseRequest
|
|
985
1241
|
*/
|
|
986
|
-
export interface
|
|
1242
|
+
export interface DomainsV1PortfolioPurchaseRequest {
|
|
987
1243
|
/**
|
|
988
|
-
*
|
|
989
|
-
* @type {
|
|
990
|
-
* @memberof
|
|
1244
|
+
* Domain name
|
|
1245
|
+
* @type {string}
|
|
1246
|
+
* @memberof DomainsV1PortfolioPurchaseRequest
|
|
991
1247
|
*/
|
|
992
|
-
'
|
|
1248
|
+
'domain': string;
|
|
1249
|
+
/**
|
|
1250
|
+
* Catalog price item ID
|
|
1251
|
+
* @type {string}
|
|
1252
|
+
* @memberof DomainsV1PortfolioPurchaseRequest
|
|
1253
|
+
*/
|
|
1254
|
+
'item_id': string;
|
|
1255
|
+
/**
|
|
1256
|
+
* Payment method ID
|
|
1257
|
+
* @type {number}
|
|
1258
|
+
* @memberof DomainsV1PortfolioPurchaseRequest
|
|
1259
|
+
*/
|
|
1260
|
+
'payment_method_id': number;
|
|
993
1261
|
/**
|
|
994
1262
|
*
|
|
995
|
-
* @type {
|
|
996
|
-
* @memberof
|
|
1263
|
+
* @type {DomainsV1PortfolioPurchaseRequestDomainContacts}
|
|
1264
|
+
* @memberof DomainsV1PortfolioPurchaseRequest
|
|
997
1265
|
*/
|
|
998
|
-
'
|
|
1266
|
+
'domain_contacts': DomainsV1PortfolioPurchaseRequestDomainContacts;
|
|
1267
|
+
/**
|
|
1268
|
+
* Additional registration data, possible values depends on TLD
|
|
1269
|
+
* @type {object}
|
|
1270
|
+
* @memberof DomainsV1PortfolioPurchaseRequest
|
|
1271
|
+
*/
|
|
1272
|
+
'additional_details': object;
|
|
1273
|
+
/**
|
|
1274
|
+
* Discount coupon codes
|
|
1275
|
+
* @type {Array<any>}
|
|
1276
|
+
* @memberof DomainsV1PortfolioPurchaseRequest
|
|
1277
|
+
*/
|
|
1278
|
+
'coupons': Array<any>;
|
|
999
1279
|
}
|
|
1000
1280
|
/**
|
|
1001
|
-
*
|
|
1281
|
+
* Domain contact information
|
|
1002
1282
|
* @export
|
|
1003
|
-
* @interface
|
|
1283
|
+
* @interface DomainsV1PortfolioPurchaseRequestDomainContacts
|
|
1004
1284
|
*/
|
|
1005
|
-
export interface
|
|
1285
|
+
export interface DomainsV1PortfolioPurchaseRequestDomainContacts {
|
|
1006
1286
|
/**
|
|
1007
|
-
*
|
|
1008
|
-
* @type {
|
|
1009
|
-
* @memberof
|
|
1287
|
+
* Owner contact WHOIS record ID
|
|
1288
|
+
* @type {number}
|
|
1289
|
+
* @memberof DomainsV1PortfolioPurchaseRequestDomainContacts
|
|
1010
1290
|
*/
|
|
1011
|
-
'
|
|
1291
|
+
'owner_id': number;
|
|
1012
1292
|
/**
|
|
1013
|
-
*
|
|
1014
|
-
* @type {
|
|
1015
|
-
* @memberof
|
|
1293
|
+
* Administrative contact WHOIS record ID
|
|
1294
|
+
* @type {number}
|
|
1295
|
+
* @memberof DomainsV1PortfolioPurchaseRequestDomainContacts
|
|
1016
1296
|
*/
|
|
1017
|
-
'
|
|
1297
|
+
'admin_id': number;
|
|
1298
|
+
/**
|
|
1299
|
+
* Billing contact WHOIS record ID
|
|
1300
|
+
* @type {number}
|
|
1301
|
+
* @memberof DomainsV1PortfolioPurchaseRequestDomainContacts
|
|
1302
|
+
*/
|
|
1303
|
+
'billing_id': number;
|
|
1304
|
+
/**
|
|
1305
|
+
* Technical contact WHOIS record ID
|
|
1306
|
+
* @type {number}
|
|
1307
|
+
* @memberof DomainsV1PortfolioPurchaseRequestDomainContacts
|
|
1308
|
+
*/
|
|
1309
|
+
'tech_id': number;
|
|
1018
1310
|
}
|
|
1019
1311
|
/**
|
|
1020
1312
|
*
|
|
1021
1313
|
* @export
|
|
1022
|
-
* @interface
|
|
1314
|
+
* @interface DomainsV1PortfolioUpdateNameserversRequest
|
|
1023
1315
|
*/
|
|
1024
|
-
export interface
|
|
1316
|
+
export interface DomainsV1PortfolioUpdateNameserversRequest {
|
|
1025
1317
|
/**
|
|
1026
|
-
*
|
|
1027
|
-
* @type {
|
|
1028
|
-
* @memberof
|
|
1318
|
+
* First name server
|
|
1319
|
+
* @type {string}
|
|
1320
|
+
* @memberof DomainsV1PortfolioUpdateNameserversRequest
|
|
1029
1321
|
*/
|
|
1030
|
-
'
|
|
1322
|
+
'ns1': string;
|
|
1031
1323
|
/**
|
|
1032
|
-
*
|
|
1033
|
-
* @type {
|
|
1034
|
-
* @memberof
|
|
1324
|
+
* Second name server
|
|
1325
|
+
* @type {string}
|
|
1326
|
+
* @memberof DomainsV1PortfolioUpdateNameserversRequest
|
|
1035
1327
|
*/
|
|
1036
|
-
'
|
|
1328
|
+
'ns2': string;
|
|
1329
|
+
/**
|
|
1330
|
+
* Third name server
|
|
1331
|
+
* @type {string}
|
|
1332
|
+
* @memberof DomainsV1PortfolioUpdateNameserversRequest
|
|
1333
|
+
*/
|
|
1334
|
+
'ns3': string;
|
|
1335
|
+
/**
|
|
1336
|
+
* Fourth name server
|
|
1337
|
+
* @type {string}
|
|
1338
|
+
* @memberof DomainsV1PortfolioUpdateNameserversRequest
|
|
1339
|
+
*/
|
|
1340
|
+
'ns4': string;
|
|
1037
1341
|
}
|
|
1038
1342
|
/**
|
|
1039
1343
|
*
|
|
1040
1344
|
* @export
|
|
1041
|
-
* @interface
|
|
1345
|
+
* @interface DomainsV1WHOISProfileResource
|
|
1042
1346
|
*/
|
|
1043
|
-
export interface
|
|
1347
|
+
export interface DomainsV1WHOISProfileResource {
|
|
1044
1348
|
/**
|
|
1045
|
-
*
|
|
1349
|
+
* WHOIS Profile ID
|
|
1046
1350
|
* @type {number}
|
|
1047
|
-
* @memberof
|
|
1351
|
+
* @memberof DomainsV1WHOISProfileResource
|
|
1048
1352
|
*/
|
|
1049
1353
|
'id': number;
|
|
1050
1354
|
/**
|
|
1051
|
-
*
|
|
1355
|
+
* TLD to which contact profile can be applied to
|
|
1052
1356
|
* @type {string}
|
|
1053
|
-
* @memberof
|
|
1357
|
+
* @memberof DomainsV1WHOISProfileResource
|
|
1054
1358
|
*/
|
|
1055
|
-
'
|
|
1359
|
+
'tld': string;
|
|
1056
1360
|
/**
|
|
1057
|
-
*
|
|
1361
|
+
* ISO 3166 2-letter country code
|
|
1058
1362
|
* @type {string}
|
|
1059
|
-
* @memberof
|
|
1363
|
+
* @memberof DomainsV1WHOISProfileResource
|
|
1060
1364
|
*/
|
|
1061
|
-
'
|
|
1365
|
+
'country': string;
|
|
1366
|
+
/**
|
|
1367
|
+
* WHOIS profile entity type
|
|
1368
|
+
* @type {string}
|
|
1369
|
+
* @memberof DomainsV1WHOISProfileResource
|
|
1370
|
+
*/
|
|
1371
|
+
'entity_type': DomainsV1WHOISProfileResourceEntityTypeEnum;
|
|
1372
|
+
/**
|
|
1373
|
+
* WHOIS profile details
|
|
1374
|
+
* @type {object}
|
|
1375
|
+
* @memberof DomainsV1WHOISProfileResource
|
|
1376
|
+
*/
|
|
1377
|
+
'whois_details': object;
|
|
1378
|
+
/**
|
|
1379
|
+
* TLD details
|
|
1380
|
+
* @type {object}
|
|
1381
|
+
* @memberof DomainsV1WHOISProfileResource
|
|
1382
|
+
*/
|
|
1383
|
+
'tld_details': object;
|
|
1062
1384
|
/**
|
|
1063
1385
|
*
|
|
1064
1386
|
* @type {string}
|
|
1065
|
-
* @memberof
|
|
1387
|
+
* @memberof DomainsV1WHOISProfileResource
|
|
1388
|
+
*/
|
|
1389
|
+
'created_at': string;
|
|
1390
|
+
/**
|
|
1391
|
+
*
|
|
1392
|
+
* @type {string}
|
|
1393
|
+
* @memberof DomainsV1WHOISProfileResource
|
|
1394
|
+
*/
|
|
1395
|
+
'updated_at': string;
|
|
1396
|
+
}
|
|
1397
|
+
|
|
1398
|
+
export const DomainsV1WHOISProfileResourceEntityTypeEnum = {
|
|
1399
|
+
Individual: 'individual',
|
|
1400
|
+
Organization: 'organization'
|
|
1401
|
+
} as const;
|
|
1402
|
+
|
|
1403
|
+
export type DomainsV1WHOISProfileResourceEntityTypeEnum = typeof DomainsV1WHOISProfileResourceEntityTypeEnum[keyof typeof DomainsV1WHOISProfileResourceEntityTypeEnum];
|
|
1404
|
+
|
|
1405
|
+
/**
|
|
1406
|
+
*
|
|
1407
|
+
* @export
|
|
1408
|
+
* @interface DomainsV1WHOISStoreRequest
|
|
1409
|
+
*/
|
|
1410
|
+
export interface DomainsV1WHOISStoreRequest {
|
|
1411
|
+
/**
|
|
1412
|
+
* TLD of the domain (without trailing dot)
|
|
1413
|
+
* @type {string}
|
|
1414
|
+
* @memberof DomainsV1WHOISStoreRequest
|
|
1415
|
+
*/
|
|
1416
|
+
'tld': string;
|
|
1417
|
+
/**
|
|
1418
|
+
* ISO 3166 2-letter country code
|
|
1419
|
+
* @type {string}
|
|
1420
|
+
* @memberof DomainsV1WHOISStoreRequest
|
|
1421
|
+
*/
|
|
1422
|
+
'country': string;
|
|
1423
|
+
/**
|
|
1424
|
+
* Legal entity type
|
|
1425
|
+
* @type {string}
|
|
1426
|
+
* @memberof DomainsV1WHOISStoreRequest
|
|
1427
|
+
*/
|
|
1428
|
+
'entity_type': DomainsV1WHOISStoreRequestEntityTypeEnum;
|
|
1429
|
+
/**
|
|
1430
|
+
* TLD details
|
|
1431
|
+
* @type {object}
|
|
1432
|
+
* @memberof DomainsV1WHOISStoreRequest
|
|
1433
|
+
*/
|
|
1434
|
+
'tld_details': object;
|
|
1435
|
+
/**
|
|
1436
|
+
* WHOIS details
|
|
1437
|
+
* @type {object}
|
|
1438
|
+
* @memberof DomainsV1WHOISStoreRequest
|
|
1439
|
+
*/
|
|
1440
|
+
'whois_details': object;
|
|
1441
|
+
}
|
|
1442
|
+
|
|
1443
|
+
export const DomainsV1WHOISStoreRequestEntityTypeEnum = {
|
|
1444
|
+
Individual: 'individual',
|
|
1445
|
+
Organization: 'organization'
|
|
1446
|
+
} as const;
|
|
1447
|
+
|
|
1448
|
+
export type DomainsV1WHOISStoreRequestEntityTypeEnum = typeof DomainsV1WHOISStoreRequestEntityTypeEnum[keyof typeof DomainsV1WHOISStoreRequestEntityTypeEnum];
|
|
1449
|
+
|
|
1450
|
+
/**
|
|
1451
|
+
*
|
|
1452
|
+
* @export
|
|
1453
|
+
* @interface VPSGetActionListV1200Response
|
|
1454
|
+
*/
|
|
1455
|
+
export interface VPSGetActionListV1200Response {
|
|
1456
|
+
/**
|
|
1457
|
+
* Array of [`VPS.V1.Action.ActionResource`](#model/vpsv1actionactionresource)
|
|
1458
|
+
* @type {Array<VPSV1ActionActionResource>}
|
|
1459
|
+
* @memberof VPSGetActionListV1200Response
|
|
1460
|
+
*/
|
|
1461
|
+
'data': Array<VPSV1ActionActionResource>;
|
|
1462
|
+
/**
|
|
1463
|
+
*
|
|
1464
|
+
* @type {CommonSchemaPaginationMetaSchema}
|
|
1465
|
+
* @memberof VPSGetActionListV1200Response
|
|
1466
|
+
*/
|
|
1467
|
+
'meta': CommonSchemaPaginationMetaSchema;
|
|
1468
|
+
}
|
|
1469
|
+
/**
|
|
1470
|
+
*
|
|
1471
|
+
* @export
|
|
1472
|
+
* @interface VPSGetBackupListV1200Response
|
|
1473
|
+
*/
|
|
1474
|
+
export interface VPSGetBackupListV1200Response {
|
|
1475
|
+
/**
|
|
1476
|
+
* Array of [`VPS.V1.Backup.BackupResource`](#model/vpsv1backupbackupresource)
|
|
1477
|
+
* @type {Array<VPSV1BackupBackupResource>}
|
|
1478
|
+
* @memberof VPSGetBackupListV1200Response
|
|
1479
|
+
*/
|
|
1480
|
+
'data': Array<VPSV1BackupBackupResource>;
|
|
1481
|
+
/**
|
|
1482
|
+
*
|
|
1483
|
+
* @type {CommonSchemaPaginationMetaSchema}
|
|
1484
|
+
* @memberof VPSGetBackupListV1200Response
|
|
1485
|
+
*/
|
|
1486
|
+
'meta': CommonSchemaPaginationMetaSchema;
|
|
1487
|
+
}
|
|
1488
|
+
/**
|
|
1489
|
+
*
|
|
1490
|
+
* @export
|
|
1491
|
+
* @interface VPSGetFirewallListV1200Response
|
|
1492
|
+
*/
|
|
1493
|
+
export interface VPSGetFirewallListV1200Response {
|
|
1494
|
+
/**
|
|
1495
|
+
* Array of [`VPS.V1.Firewall.FirewallResource`](#model/vpsv1firewallfirewallresource)
|
|
1496
|
+
* @type {Array<VPSV1FirewallFirewallResource>}
|
|
1497
|
+
* @memberof VPSGetFirewallListV1200Response
|
|
1498
|
+
*/
|
|
1499
|
+
'data': Array<VPSV1FirewallFirewallResource>;
|
|
1500
|
+
/**
|
|
1501
|
+
*
|
|
1502
|
+
* @type {CommonSchemaPaginationMetaSchema}
|
|
1503
|
+
* @memberof VPSGetFirewallListV1200Response
|
|
1504
|
+
*/
|
|
1505
|
+
'meta': CommonSchemaPaginationMetaSchema;
|
|
1506
|
+
}
|
|
1507
|
+
/**
|
|
1508
|
+
*
|
|
1509
|
+
* @export
|
|
1510
|
+
* @interface VPSGetPostInstallScriptListV1200Response
|
|
1511
|
+
*/
|
|
1512
|
+
export interface VPSGetPostInstallScriptListV1200Response {
|
|
1513
|
+
/**
|
|
1514
|
+
* Array of [`VPS.V1.PostInstallScript.PostInstallScriptResource`](#model/vpsv1postinstallscriptpostinstallscriptresource)
|
|
1515
|
+
* @type {Array<VPSV1PostInstallScriptPostInstallScriptResource>}
|
|
1516
|
+
* @memberof VPSGetPostInstallScriptListV1200Response
|
|
1517
|
+
*/
|
|
1518
|
+
'data': Array<VPSV1PostInstallScriptPostInstallScriptResource>;
|
|
1519
|
+
/**
|
|
1520
|
+
*
|
|
1521
|
+
* @type {CommonSchemaPaginationMetaSchema}
|
|
1522
|
+
* @memberof VPSGetPostInstallScriptListV1200Response
|
|
1523
|
+
*/
|
|
1524
|
+
'meta': CommonSchemaPaginationMetaSchema;
|
|
1525
|
+
}
|
|
1526
|
+
/**
|
|
1527
|
+
*
|
|
1528
|
+
* @export
|
|
1529
|
+
* @interface VPSGetPublicKeyListV1200Response
|
|
1530
|
+
*/
|
|
1531
|
+
export interface VPSGetPublicKeyListV1200Response {
|
|
1532
|
+
/**
|
|
1533
|
+
* Array of [`VPS.V1.PublicKey.PublicKeyResource`](#model/vpsv1publickeypublickeyresource)
|
|
1534
|
+
* @type {Array<VPSV1PublicKeyPublicKeyResource>}
|
|
1535
|
+
* @memberof VPSGetPublicKeyListV1200Response
|
|
1536
|
+
*/
|
|
1537
|
+
'data': Array<VPSV1PublicKeyPublicKeyResource>;
|
|
1538
|
+
/**
|
|
1539
|
+
*
|
|
1540
|
+
* @type {CommonSchemaPaginationMetaSchema}
|
|
1541
|
+
* @memberof VPSGetPublicKeyListV1200Response
|
|
1542
|
+
*/
|
|
1543
|
+
'meta': CommonSchemaPaginationMetaSchema;
|
|
1544
|
+
}
|
|
1545
|
+
/**
|
|
1546
|
+
*
|
|
1547
|
+
* @export
|
|
1548
|
+
* @interface VPSV1ActionActionResource
|
|
1549
|
+
*/
|
|
1550
|
+
export interface VPSV1ActionActionResource {
|
|
1551
|
+
/**
|
|
1552
|
+
* Action ID
|
|
1553
|
+
* @type {number}
|
|
1554
|
+
* @memberof VPSV1ActionActionResource
|
|
1555
|
+
*/
|
|
1556
|
+
'id': number;
|
|
1557
|
+
/**
|
|
1558
|
+
* Action name
|
|
1559
|
+
* @type {string}
|
|
1560
|
+
* @memberof VPSV1ActionActionResource
|
|
1561
|
+
*/
|
|
1562
|
+
'name': string;
|
|
1563
|
+
/**
|
|
1564
|
+
* Action state
|
|
1565
|
+
* @type {string}
|
|
1566
|
+
* @memberof VPSV1ActionActionResource
|
|
1567
|
+
*/
|
|
1568
|
+
'state': VPSV1ActionActionResourceStateEnum;
|
|
1569
|
+
/**
|
|
1570
|
+
*
|
|
1571
|
+
* @type {string}
|
|
1572
|
+
* @memberof VPSV1ActionActionResource
|
|
1066
1573
|
*/
|
|
1067
1574
|
'created_at': string;
|
|
1068
1575
|
/**
|
|
@@ -1168,7 +1675,7 @@ export interface VPSV1FirewallFirewallResource {
|
|
|
1168
1675
|
* @type {boolean}
|
|
1169
1676
|
* @memberof VPSV1FirewallFirewallResource
|
|
1170
1677
|
*/
|
|
1171
|
-
'
|
|
1678
|
+
'is_synced': boolean;
|
|
1172
1679
|
/**
|
|
1173
1680
|
* Array of [`VPS.V1.Firewall.FirewallRuleResource`](#model/vpsv1firewallfirewallruleresource)
|
|
1174
1681
|
* @type {Array<VPSV1FirewallFirewallRuleResource>}
|
|
@@ -1401,83 +1908,41 @@ export interface VPSV1MalwareMetricsResource {
|
|
|
1401
1908
|
export interface VPSV1MetricsMetricsCollection {
|
|
1402
1909
|
/**
|
|
1403
1910
|
*
|
|
1404
|
-
* @type {
|
|
1911
|
+
* @type {VPSV1MetricsMetricsResource}
|
|
1405
1912
|
* @memberof VPSV1MetricsMetricsCollection
|
|
1406
1913
|
*/
|
|
1407
|
-
'cpu_usage':
|
|
1914
|
+
'cpu_usage': VPSV1MetricsMetricsResource | null;
|
|
1408
1915
|
/**
|
|
1409
1916
|
*
|
|
1410
|
-
* @type {
|
|
1917
|
+
* @type {VPSV1MetricsMetricsResource}
|
|
1411
1918
|
* @memberof VPSV1MetricsMetricsCollection
|
|
1412
1919
|
*/
|
|
1413
|
-
'ram_usage':
|
|
1920
|
+
'ram_usage': VPSV1MetricsMetricsResource | null;
|
|
1414
1921
|
/**
|
|
1415
1922
|
*
|
|
1416
|
-
* @type {
|
|
1923
|
+
* @type {VPSV1MetricsMetricsResource}
|
|
1417
1924
|
* @memberof VPSV1MetricsMetricsCollection
|
|
1418
1925
|
*/
|
|
1419
|
-
'disk_space':
|
|
1926
|
+
'disk_space': VPSV1MetricsMetricsResource | null;
|
|
1420
1927
|
/**
|
|
1421
1928
|
*
|
|
1422
|
-
* @type {
|
|
1929
|
+
* @type {VPSV1MetricsMetricsResource}
|
|
1423
1930
|
* @memberof VPSV1MetricsMetricsCollection
|
|
1424
1931
|
*/
|
|
1425
|
-
'outgoing_traffic':
|
|
1932
|
+
'outgoing_traffic': VPSV1MetricsMetricsResource | null;
|
|
1426
1933
|
/**
|
|
1427
1934
|
*
|
|
1428
|
-
* @type {
|
|
1935
|
+
* @type {VPSV1MetricsMetricsResource}
|
|
1429
1936
|
* @memberof VPSV1MetricsMetricsCollection
|
|
1430
1937
|
*/
|
|
1431
|
-
'incoming_traffic':
|
|
1938
|
+
'incoming_traffic': VPSV1MetricsMetricsResource | null;
|
|
1432
1939
|
/**
|
|
1433
1940
|
*
|
|
1434
|
-
* @type {
|
|
1941
|
+
* @type {VPSV1MetricsMetricsResource}
|
|
1435
1942
|
* @memberof VPSV1MetricsMetricsCollection
|
|
1436
1943
|
*/
|
|
1437
|
-
'uptime':
|
|
1944
|
+
'uptime': VPSV1MetricsMetricsResource | null;
|
|
1438
1945
|
}
|
|
1439
|
-
/**
|
|
1440
|
-
* @type VPSV1MetricsMetricsCollectionCpuUsage
|
|
1441
|
-
* CPU usage in percentage, 0 - 100%
|
|
1442
|
-
* @export
|
|
1443
|
-
*/
|
|
1444
|
-
export type VPSV1MetricsMetricsCollectionCpuUsage = VPSV1MetricsMetricsResource;
|
|
1445
|
-
|
|
1446
|
-
/**
|
|
1447
|
-
* @type VPSV1MetricsMetricsCollectionDiskSpace
|
|
1448
|
-
* Disk space usage in bytes
|
|
1449
|
-
* @export
|
|
1450
|
-
*/
|
|
1451
|
-
export type VPSV1MetricsMetricsCollectionDiskSpace = VPSV1MetricsMetricsResource;
|
|
1452
|
-
|
|
1453
|
-
/**
|
|
1454
|
-
* @type VPSV1MetricsMetricsCollectionIncomingTraffic
|
|
1455
|
-
* Incoming traffic in bytes
|
|
1456
|
-
* @export
|
|
1457
|
-
*/
|
|
1458
|
-
export type VPSV1MetricsMetricsCollectionIncomingTraffic = VPSV1MetricsMetricsResource;
|
|
1459
|
-
|
|
1460
|
-
/**
|
|
1461
|
-
* @type VPSV1MetricsMetricsCollectionOutgoingTraffic
|
|
1462
|
-
* Outgoing traffic in bytes
|
|
1463
|
-
* @export
|
|
1464
|
-
*/
|
|
1465
|
-
export type VPSV1MetricsMetricsCollectionOutgoingTraffic = VPSV1MetricsMetricsResource;
|
|
1466
|
-
|
|
1467
|
-
/**
|
|
1468
|
-
* @type VPSV1MetricsMetricsCollectionRamUsage
|
|
1469
|
-
* RAM usage in bytes
|
|
1470
|
-
* @export
|
|
1471
|
-
*/
|
|
1472
|
-
export type VPSV1MetricsMetricsCollectionRamUsage = VPSV1MetricsMetricsResource;
|
|
1473
|
-
|
|
1474
|
-
/**
|
|
1475
|
-
* @type VPSV1MetricsMetricsCollectionUptime
|
|
1476
|
-
* Uptime in milliseconds
|
|
1477
|
-
* @export
|
|
1478
|
-
*/
|
|
1479
|
-
export type VPSV1MetricsMetricsCollectionUptime = VPSV1MetricsMetricsResource;
|
|
1480
|
-
|
|
1481
1946
|
/**
|
|
1482
1947
|
*
|
|
1483
1948
|
* @export
|
|
@@ -1933,23 +2398,23 @@ export interface VPSV1VirtualMachineVirtualMachineResource {
|
|
|
1933
2398
|
*/
|
|
1934
2399
|
'ns2': string | null;
|
|
1935
2400
|
/**
|
|
1936
|
-
*
|
|
1937
|
-
* @type {
|
|
2401
|
+
* Array of [`VPS.V1.IPAddress.IPAddressResource`](#model/vpsv1ipaddressipaddressresource)
|
|
2402
|
+
* @type {Array<VPSV1IPAddressIPAddressResource>}
|
|
1938
2403
|
* @memberof VPSV1VirtualMachineVirtualMachineResource
|
|
1939
2404
|
*/
|
|
1940
|
-
'ipv4':
|
|
2405
|
+
'ipv4': Array<VPSV1IPAddressIPAddressResource>;
|
|
1941
2406
|
/**
|
|
1942
|
-
*
|
|
1943
|
-
* @type {
|
|
2407
|
+
* Array of [`VPS.V1.IPAddress.IPAddressResource`](#model/vpsv1ipaddressipaddressresource)
|
|
2408
|
+
* @type {Array<VPSV1IPAddressIPAddressResource>}
|
|
1944
2409
|
* @memberof VPSV1VirtualMachineVirtualMachineResource
|
|
1945
2410
|
*/
|
|
1946
|
-
'ipv6':
|
|
2411
|
+
'ipv6': Array<VPSV1IPAddressIPAddressResource>;
|
|
1947
2412
|
/**
|
|
1948
2413
|
*
|
|
1949
|
-
* @type {
|
|
2414
|
+
* @type {VPSV1TemplateTemplateResource}
|
|
1950
2415
|
* @memberof VPSV1VirtualMachineVirtualMachineResource
|
|
1951
2416
|
*/
|
|
1952
|
-
'template':
|
|
2417
|
+
'template': VPSV1TemplateTemplateResource | null;
|
|
1953
2418
|
/**
|
|
1954
2419
|
*
|
|
1955
2420
|
* @type {string}
|
|
@@ -1985,27 +2450,6 @@ export const VPSV1VirtualMachineVirtualMachineResourceActionsLockEnum = {
|
|
|
1985
2450
|
|
|
1986
2451
|
export type VPSV1VirtualMachineVirtualMachineResourceActionsLockEnum = typeof VPSV1VirtualMachineVirtualMachineResourceActionsLockEnum[keyof typeof VPSV1VirtualMachineVirtualMachineResourceActionsLockEnum];
|
|
1987
2452
|
|
|
1988
|
-
/**
|
|
1989
|
-
* @type VPSV1VirtualMachineVirtualMachineResourceIpv4
|
|
1990
|
-
* IPv4 address of virtual machine
|
|
1991
|
-
* @export
|
|
1992
|
-
*/
|
|
1993
|
-
export type VPSV1VirtualMachineVirtualMachineResourceIpv4 = Array<VPSV1IPAddressIPAddressResource>;
|
|
1994
|
-
|
|
1995
|
-
/**
|
|
1996
|
-
* @type VPSV1VirtualMachineVirtualMachineResourceIpv6
|
|
1997
|
-
* IPv6 address of virtual machine, `null` if not assigned
|
|
1998
|
-
* @export
|
|
1999
|
-
*/
|
|
2000
|
-
export type VPSV1VirtualMachineVirtualMachineResourceIpv6 = Array<VPSV1IPAddressIPAddressResource>;
|
|
2001
|
-
|
|
2002
|
-
/**
|
|
2003
|
-
* @type VPSV1VirtualMachineVirtualMachineResourceTemplate
|
|
2004
|
-
* OS template installed in virtual machine
|
|
2005
|
-
* @export
|
|
2006
|
-
*/
|
|
2007
|
-
export type VPSV1VirtualMachineVirtualMachineResourceTemplate = VPSV1TemplateTemplateResource;
|
|
2008
|
-
|
|
2009
2453
|
|
|
2010
2454
|
/**
|
|
2011
2455
|
* BillingCatalogApi - axios parameter creator
|
|
@@ -3362,19 +3806,22 @@ export class DNSZoneApi extends BaseAPI {
|
|
|
3362
3806
|
|
|
3363
3807
|
|
|
3364
3808
|
/**
|
|
3365
|
-
*
|
|
3809
|
+
* DomainsAvailabilityApi - axios parameter creator
|
|
3366
3810
|
* @export
|
|
3367
3811
|
*/
|
|
3368
|
-
export const
|
|
3812
|
+
export const DomainsAvailabilityApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
3369
3813
|
return {
|
|
3370
3814
|
/**
|
|
3371
|
-
* This endpoint
|
|
3372
|
-
* @summary
|
|
3815
|
+
* This endpoint checks the availability of a domain name. Multiple TLDs can be checked at once. Endpoint has rate limit of 10 requests per minute.
|
|
3816
|
+
* @summary Check domain availability
|
|
3817
|
+
* @param {DomainsV1AvailabilityAvailabilityRequest} domainsV1AvailabilityAvailabilityRequest
|
|
3373
3818
|
* @param {*} [options] Override http request option.
|
|
3374
3819
|
* @throws {RequiredError}
|
|
3375
3820
|
*/
|
|
3376
|
-
|
|
3377
|
-
|
|
3821
|
+
checkDomainAvailabilityV1: async (domainsV1AvailabilityAvailabilityRequest: DomainsV1AvailabilityAvailabilityRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3822
|
+
// verify required parameter 'domainsV1AvailabilityAvailabilityRequest' is not null or undefined
|
|
3823
|
+
assertParamExists('checkDomainAvailabilityV1', 'domainsV1AvailabilityAvailabilityRequest', domainsV1AvailabilityAvailabilityRequest)
|
|
3824
|
+
const localVarPath = `/api/domains/v1/availability`;
|
|
3378
3825
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3379
3826
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3380
3827
|
let baseOptions;
|
|
@@ -3382,7 +3829,7 @@ export const DomainsPortfolioApiAxiosParamCreator = function (configuration?: Co
|
|
|
3382
3829
|
baseOptions = configuration.baseOptions;
|
|
3383
3830
|
}
|
|
3384
3831
|
|
|
3385
|
-
const localVarRequestOptions = { method: '
|
|
3832
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
3386
3833
|
const localVarHeaderParameter = {} as any;
|
|
3387
3834
|
const localVarQueryParameter = {} as any;
|
|
3388
3835
|
|
|
@@ -3392,9 +3839,12 @@ export const DomainsPortfolioApiAxiosParamCreator = function (configuration?: Co
|
|
|
3392
3839
|
|
|
3393
3840
|
|
|
3394
3841
|
|
|
3842
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3843
|
+
|
|
3395
3844
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3396
3845
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3397
3846
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3847
|
+
localVarRequestOptions.data = serializeDataIfNeeded(domainsV1AvailabilityAvailabilityRequest, localVarRequestOptions, configuration)
|
|
3398
3848
|
|
|
3399
3849
|
return {
|
|
3400
3850
|
url: toPathString(localVarUrlObj),
|
|
@@ -3405,61 +3855,1342 @@ export const DomainsPortfolioApiAxiosParamCreator = function (configuration?: Co
|
|
|
3405
3855
|
};
|
|
3406
3856
|
|
|
3407
3857
|
/**
|
|
3408
|
-
*
|
|
3858
|
+
* DomainsAvailabilityApi - functional programming interface
|
|
3409
3859
|
* @export
|
|
3410
3860
|
*/
|
|
3411
|
-
export const
|
|
3412
|
-
const localVarAxiosParamCreator =
|
|
3861
|
+
export const DomainsAvailabilityApiFp = function(configuration?: Configuration) {
|
|
3862
|
+
const localVarAxiosParamCreator = DomainsAvailabilityApiAxiosParamCreator(configuration)
|
|
3413
3863
|
return {
|
|
3414
3864
|
/**
|
|
3415
|
-
* This endpoint
|
|
3416
|
-
* @summary
|
|
3865
|
+
* This endpoint checks the availability of a domain name. Multiple TLDs can be checked at once. Endpoint has rate limit of 10 requests per minute.
|
|
3866
|
+
* @summary Check domain availability
|
|
3867
|
+
* @param {DomainsV1AvailabilityAvailabilityRequest} domainsV1AvailabilityAvailabilityRequest
|
|
3417
3868
|
* @param {*} [options] Override http request option.
|
|
3418
3869
|
* @throws {RequiredError}
|
|
3419
3870
|
*/
|
|
3420
|
-
async
|
|
3421
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
3422
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
3871
|
+
async checkDomainAvailabilityV1(domainsV1AvailabilityAvailabilityRequest: DomainsV1AvailabilityAvailabilityRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<DomainsV1AvailabilityAvailabilityResource>>> {
|
|
3872
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.checkDomainAvailabilityV1(domainsV1AvailabilityAvailabilityRequest, options);
|
|
3873
|
+
const localVarOperationServerBasePath = operationServerMap['DomainsAvailabilityApi.checkDomainAvailabilityV1']?.[0]?.url;
|
|
3423
3874
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3424
3875
|
},
|
|
3425
3876
|
}
|
|
3426
3877
|
};
|
|
3427
3878
|
|
|
3428
3879
|
/**
|
|
3429
|
-
*
|
|
3880
|
+
* DomainsAvailabilityApi - factory interface
|
|
3430
3881
|
* @export
|
|
3431
3882
|
*/
|
|
3432
|
-
export const
|
|
3433
|
-
const localVarFp =
|
|
3883
|
+
export const DomainsAvailabilityApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
3884
|
+
const localVarFp = DomainsAvailabilityApiFp(configuration)
|
|
3434
3885
|
return {
|
|
3435
3886
|
/**
|
|
3436
|
-
* This endpoint
|
|
3437
|
-
* @summary
|
|
3887
|
+
* This endpoint checks the availability of a domain name. Multiple TLDs can be checked at once. Endpoint has rate limit of 10 requests per minute.
|
|
3888
|
+
* @summary Check domain availability
|
|
3889
|
+
* @param {DomainsV1AvailabilityAvailabilityRequest} domainsV1AvailabilityAvailabilityRequest
|
|
3438
3890
|
* @param {*} [options] Override http request option.
|
|
3439
3891
|
* @throws {RequiredError}
|
|
3440
3892
|
*/
|
|
3441
|
-
|
|
3442
|
-
return localVarFp.
|
|
3893
|
+
checkDomainAvailabilityV1(domainsV1AvailabilityAvailabilityRequest: DomainsV1AvailabilityAvailabilityRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<DomainsV1AvailabilityAvailabilityResource>> {
|
|
3894
|
+
return localVarFp.checkDomainAvailabilityV1(domainsV1AvailabilityAvailabilityRequest, options).then((request) => request(axios, basePath));
|
|
3443
3895
|
},
|
|
3444
3896
|
};
|
|
3445
3897
|
};
|
|
3446
3898
|
|
|
3447
3899
|
/**
|
|
3448
|
-
*
|
|
3900
|
+
* DomainsAvailabilityApi - object-oriented interface
|
|
3449
3901
|
* @export
|
|
3450
|
-
* @class
|
|
3902
|
+
* @class DomainsAvailabilityApi
|
|
3451
3903
|
* @extends {BaseAPI}
|
|
3452
3904
|
*/
|
|
3453
|
-
export class
|
|
3905
|
+
export class DomainsAvailabilityApi extends BaseAPI {
|
|
3454
3906
|
/**
|
|
3455
|
-
* This endpoint
|
|
3456
|
-
* @summary
|
|
3907
|
+
* This endpoint checks the availability of a domain name. Multiple TLDs can be checked at once. Endpoint has rate limit of 10 requests per minute.
|
|
3908
|
+
* @summary Check domain availability
|
|
3909
|
+
* @param {DomainsV1AvailabilityAvailabilityRequest} domainsV1AvailabilityAvailabilityRequest
|
|
3457
3910
|
* @param {*} [options] Override http request option.
|
|
3458
3911
|
* @throws {RequiredError}
|
|
3459
|
-
* @memberof
|
|
3912
|
+
* @memberof DomainsAvailabilityApi
|
|
3460
3913
|
*/
|
|
3461
|
-
public
|
|
3462
|
-
return
|
|
3914
|
+
public checkDomainAvailabilityV1(domainsV1AvailabilityAvailabilityRequest: DomainsV1AvailabilityAvailabilityRequest, options?: RawAxiosRequestConfig) {
|
|
3915
|
+
return DomainsAvailabilityApiFp(this.configuration).checkDomainAvailabilityV1(domainsV1AvailabilityAvailabilityRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3916
|
+
}
|
|
3917
|
+
}
|
|
3918
|
+
|
|
3919
|
+
|
|
3920
|
+
|
|
3921
|
+
/**
|
|
3922
|
+
* DomainsForwardingApi - axios parameter creator
|
|
3923
|
+
* @export
|
|
3924
|
+
*/
|
|
3925
|
+
export const DomainsForwardingApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
3926
|
+
return {
|
|
3927
|
+
/**
|
|
3928
|
+
* This endpoint creates domain forwarding data.
|
|
3929
|
+
* @summary Create forwarding data
|
|
3930
|
+
* @param {DomainsV1ForwardingStoreRequest} domainsV1ForwardingStoreRequest
|
|
3931
|
+
* @param {*} [options] Override http request option.
|
|
3932
|
+
* @throws {RequiredError}
|
|
3933
|
+
*/
|
|
3934
|
+
createForwardingDataV1: async (domainsV1ForwardingStoreRequest: DomainsV1ForwardingStoreRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3935
|
+
// verify required parameter 'domainsV1ForwardingStoreRequest' is not null or undefined
|
|
3936
|
+
assertParamExists('createForwardingDataV1', 'domainsV1ForwardingStoreRequest', domainsV1ForwardingStoreRequest)
|
|
3937
|
+
const localVarPath = `/api/domains/v1/forwarding`;
|
|
3938
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3939
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3940
|
+
let baseOptions;
|
|
3941
|
+
if (configuration) {
|
|
3942
|
+
baseOptions = configuration.baseOptions;
|
|
3943
|
+
}
|
|
3944
|
+
|
|
3945
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
3946
|
+
const localVarHeaderParameter = {} as any;
|
|
3947
|
+
const localVarQueryParameter = {} as any;
|
|
3948
|
+
|
|
3949
|
+
// authentication apiToken required
|
|
3950
|
+
// http bearer authentication required
|
|
3951
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
3952
|
+
|
|
3953
|
+
|
|
3954
|
+
|
|
3955
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3956
|
+
|
|
3957
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3958
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3959
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3960
|
+
localVarRequestOptions.data = serializeDataIfNeeded(domainsV1ForwardingStoreRequest, localVarRequestOptions, configuration)
|
|
3961
|
+
|
|
3962
|
+
return {
|
|
3963
|
+
url: toPathString(localVarUrlObj),
|
|
3964
|
+
options: localVarRequestOptions,
|
|
3965
|
+
};
|
|
3966
|
+
},
|
|
3967
|
+
/**
|
|
3968
|
+
* This endpoint deletes domain forwarding data.
|
|
3969
|
+
* @summary Delete forwarding data
|
|
3970
|
+
* @param {string} domain Domain name
|
|
3971
|
+
* @param {*} [options] Override http request option.
|
|
3972
|
+
* @throws {RequiredError}
|
|
3973
|
+
*/
|
|
3974
|
+
deleteForwardingDataV1: async (domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3975
|
+
// verify required parameter 'domain' is not null or undefined
|
|
3976
|
+
assertParamExists('deleteForwardingDataV1', 'domain', domain)
|
|
3977
|
+
const localVarPath = `/api/domains/v1/forwarding/{domain}`
|
|
3978
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
3979
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3980
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3981
|
+
let baseOptions;
|
|
3982
|
+
if (configuration) {
|
|
3983
|
+
baseOptions = configuration.baseOptions;
|
|
3984
|
+
}
|
|
3985
|
+
|
|
3986
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
3987
|
+
const localVarHeaderParameter = {} as any;
|
|
3988
|
+
const localVarQueryParameter = {} as any;
|
|
3989
|
+
|
|
3990
|
+
// authentication apiToken required
|
|
3991
|
+
// http bearer authentication required
|
|
3992
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
3993
|
+
|
|
3994
|
+
|
|
3995
|
+
|
|
3996
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3997
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3998
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3999
|
+
|
|
4000
|
+
return {
|
|
4001
|
+
url: toPathString(localVarUrlObj),
|
|
4002
|
+
options: localVarRequestOptions,
|
|
4003
|
+
};
|
|
4004
|
+
},
|
|
4005
|
+
/**
|
|
4006
|
+
* This endpoint retrieves domain forwarding data.
|
|
4007
|
+
* @summary Get forwarding data
|
|
4008
|
+
* @param {string} domain Domain name
|
|
4009
|
+
* @param {*} [options] Override http request option.
|
|
4010
|
+
* @throws {RequiredError}
|
|
4011
|
+
*/
|
|
4012
|
+
getForwardingDataV1: async (domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4013
|
+
// verify required parameter 'domain' is not null or undefined
|
|
4014
|
+
assertParamExists('getForwardingDataV1', 'domain', domain)
|
|
4015
|
+
const localVarPath = `/api/domains/v1/forwarding/{domain}`
|
|
4016
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
4017
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4018
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4019
|
+
let baseOptions;
|
|
4020
|
+
if (configuration) {
|
|
4021
|
+
baseOptions = configuration.baseOptions;
|
|
4022
|
+
}
|
|
4023
|
+
|
|
4024
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
4025
|
+
const localVarHeaderParameter = {} as any;
|
|
4026
|
+
const localVarQueryParameter = {} as any;
|
|
4027
|
+
|
|
4028
|
+
// authentication apiToken required
|
|
4029
|
+
// http bearer authentication required
|
|
4030
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
4031
|
+
|
|
4032
|
+
|
|
4033
|
+
|
|
4034
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4035
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4036
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4037
|
+
|
|
4038
|
+
return {
|
|
4039
|
+
url: toPathString(localVarUrlObj),
|
|
4040
|
+
options: localVarRequestOptions,
|
|
4041
|
+
};
|
|
4042
|
+
},
|
|
4043
|
+
}
|
|
4044
|
+
};
|
|
4045
|
+
|
|
4046
|
+
/**
|
|
4047
|
+
* DomainsForwardingApi - functional programming interface
|
|
4048
|
+
* @export
|
|
4049
|
+
*/
|
|
4050
|
+
export const DomainsForwardingApiFp = function(configuration?: Configuration) {
|
|
4051
|
+
const localVarAxiosParamCreator = DomainsForwardingApiAxiosParamCreator(configuration)
|
|
4052
|
+
return {
|
|
4053
|
+
/**
|
|
4054
|
+
* This endpoint creates domain forwarding data.
|
|
4055
|
+
* @summary Create forwarding data
|
|
4056
|
+
* @param {DomainsV1ForwardingStoreRequest} domainsV1ForwardingStoreRequest
|
|
4057
|
+
* @param {*} [options] Override http request option.
|
|
4058
|
+
* @throws {RequiredError}
|
|
4059
|
+
*/
|
|
4060
|
+
async createForwardingDataV1(domainsV1ForwardingStoreRequest: DomainsV1ForwardingStoreRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DomainsV1ForwardingForwardingResource>> {
|
|
4061
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createForwardingDataV1(domainsV1ForwardingStoreRequest, options);
|
|
4062
|
+
const localVarOperationServerBasePath = operationServerMap['DomainsForwardingApi.createForwardingDataV1']?.[0]?.url;
|
|
4063
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4064
|
+
},
|
|
4065
|
+
/**
|
|
4066
|
+
* This endpoint deletes domain forwarding data.
|
|
4067
|
+
* @summary Delete forwarding data
|
|
4068
|
+
* @param {string} domain Domain name
|
|
4069
|
+
* @param {*} [options] Override http request option.
|
|
4070
|
+
* @throws {RequiredError}
|
|
4071
|
+
*/
|
|
4072
|
+
async deleteForwardingDataV1(domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
|
|
4073
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteForwardingDataV1(domain, options);
|
|
4074
|
+
const localVarOperationServerBasePath = operationServerMap['DomainsForwardingApi.deleteForwardingDataV1']?.[0]?.url;
|
|
4075
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4076
|
+
},
|
|
4077
|
+
/**
|
|
4078
|
+
* This endpoint retrieves domain forwarding data.
|
|
4079
|
+
* @summary Get forwarding data
|
|
4080
|
+
* @param {string} domain Domain name
|
|
4081
|
+
* @param {*} [options] Override http request option.
|
|
4082
|
+
* @throws {RequiredError}
|
|
4083
|
+
*/
|
|
4084
|
+
async getForwardingDataV1(domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DomainsV1ForwardingForwardingResource>> {
|
|
4085
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getForwardingDataV1(domain, options);
|
|
4086
|
+
const localVarOperationServerBasePath = operationServerMap['DomainsForwardingApi.getForwardingDataV1']?.[0]?.url;
|
|
4087
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4088
|
+
},
|
|
4089
|
+
}
|
|
4090
|
+
};
|
|
4091
|
+
|
|
4092
|
+
/**
|
|
4093
|
+
* DomainsForwardingApi - factory interface
|
|
4094
|
+
* @export
|
|
4095
|
+
*/
|
|
4096
|
+
export const DomainsForwardingApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
4097
|
+
const localVarFp = DomainsForwardingApiFp(configuration)
|
|
4098
|
+
return {
|
|
4099
|
+
/**
|
|
4100
|
+
* This endpoint creates domain forwarding data.
|
|
4101
|
+
* @summary Create forwarding data
|
|
4102
|
+
* @param {DomainsV1ForwardingStoreRequest} domainsV1ForwardingStoreRequest
|
|
4103
|
+
* @param {*} [options] Override http request option.
|
|
4104
|
+
* @throws {RequiredError}
|
|
4105
|
+
*/
|
|
4106
|
+
createForwardingDataV1(domainsV1ForwardingStoreRequest: DomainsV1ForwardingStoreRequest, options?: RawAxiosRequestConfig): AxiosPromise<DomainsV1ForwardingForwardingResource> {
|
|
4107
|
+
return localVarFp.createForwardingDataV1(domainsV1ForwardingStoreRequest, options).then((request) => request(axios, basePath));
|
|
4108
|
+
},
|
|
4109
|
+
/**
|
|
4110
|
+
* This endpoint deletes domain forwarding data.
|
|
4111
|
+
* @summary Delete forwarding data
|
|
4112
|
+
* @param {string} domain Domain name
|
|
4113
|
+
* @param {*} [options] Override http request option.
|
|
4114
|
+
* @throws {RequiredError}
|
|
4115
|
+
*/
|
|
4116
|
+
deleteForwardingDataV1(domain: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
|
|
4117
|
+
return localVarFp.deleteForwardingDataV1(domain, options).then((request) => request(axios, basePath));
|
|
4118
|
+
},
|
|
4119
|
+
/**
|
|
4120
|
+
* This endpoint retrieves domain forwarding data.
|
|
4121
|
+
* @summary Get forwarding data
|
|
4122
|
+
* @param {string} domain Domain name
|
|
4123
|
+
* @param {*} [options] Override http request option.
|
|
4124
|
+
* @throws {RequiredError}
|
|
4125
|
+
*/
|
|
4126
|
+
getForwardingDataV1(domain: string, options?: RawAxiosRequestConfig): AxiosPromise<DomainsV1ForwardingForwardingResource> {
|
|
4127
|
+
return localVarFp.getForwardingDataV1(domain, options).then((request) => request(axios, basePath));
|
|
4128
|
+
},
|
|
4129
|
+
};
|
|
4130
|
+
};
|
|
4131
|
+
|
|
4132
|
+
/**
|
|
4133
|
+
* DomainsForwardingApi - object-oriented interface
|
|
4134
|
+
* @export
|
|
4135
|
+
* @class DomainsForwardingApi
|
|
4136
|
+
* @extends {BaseAPI}
|
|
4137
|
+
*/
|
|
4138
|
+
export class DomainsForwardingApi extends BaseAPI {
|
|
4139
|
+
/**
|
|
4140
|
+
* This endpoint creates domain forwarding data.
|
|
4141
|
+
* @summary Create forwarding data
|
|
4142
|
+
* @param {DomainsV1ForwardingStoreRequest} domainsV1ForwardingStoreRequest
|
|
4143
|
+
* @param {*} [options] Override http request option.
|
|
4144
|
+
* @throws {RequiredError}
|
|
4145
|
+
* @memberof DomainsForwardingApi
|
|
4146
|
+
*/
|
|
4147
|
+
public createForwardingDataV1(domainsV1ForwardingStoreRequest: DomainsV1ForwardingStoreRequest, options?: RawAxiosRequestConfig) {
|
|
4148
|
+
return DomainsForwardingApiFp(this.configuration).createForwardingDataV1(domainsV1ForwardingStoreRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4149
|
+
}
|
|
4150
|
+
|
|
4151
|
+
/**
|
|
4152
|
+
* This endpoint deletes domain forwarding data.
|
|
4153
|
+
* @summary Delete forwarding data
|
|
4154
|
+
* @param {string} domain Domain name
|
|
4155
|
+
* @param {*} [options] Override http request option.
|
|
4156
|
+
* @throws {RequiredError}
|
|
4157
|
+
* @memberof DomainsForwardingApi
|
|
4158
|
+
*/
|
|
4159
|
+
public deleteForwardingDataV1(domain: string, options?: RawAxiosRequestConfig) {
|
|
4160
|
+
return DomainsForwardingApiFp(this.configuration).deleteForwardingDataV1(domain, options).then((request) => request(this.axios, this.basePath));
|
|
4161
|
+
}
|
|
4162
|
+
|
|
4163
|
+
/**
|
|
4164
|
+
* This endpoint retrieves domain forwarding data.
|
|
4165
|
+
* @summary Get forwarding data
|
|
4166
|
+
* @param {string} domain Domain name
|
|
4167
|
+
* @param {*} [options] Override http request option.
|
|
4168
|
+
* @throws {RequiredError}
|
|
4169
|
+
* @memberof DomainsForwardingApi
|
|
4170
|
+
*/
|
|
4171
|
+
public getForwardingDataV1(domain: string, options?: RawAxiosRequestConfig) {
|
|
4172
|
+
return DomainsForwardingApiFp(this.configuration).getForwardingDataV1(domain, options).then((request) => request(this.axios, this.basePath));
|
|
4173
|
+
}
|
|
4174
|
+
}
|
|
4175
|
+
|
|
4176
|
+
|
|
4177
|
+
|
|
4178
|
+
/**
|
|
4179
|
+
* DomainsPortfolioApi - axios parameter creator
|
|
4180
|
+
* @export
|
|
4181
|
+
*/
|
|
4182
|
+
export const DomainsPortfolioApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
4183
|
+
return {
|
|
4184
|
+
/**
|
|
4185
|
+
* This endpoint disables domain lock for the domain. Domain lock needs to be disabled before transferring the domain to another registrar.
|
|
4186
|
+
* @summary Disable domain lock
|
|
4187
|
+
* @param {string} domain Domain name
|
|
4188
|
+
* @param {*} [options] Override http request option.
|
|
4189
|
+
* @throws {RequiredError}
|
|
4190
|
+
*/
|
|
4191
|
+
disableDomainLockV1: async (domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4192
|
+
// verify required parameter 'domain' is not null or undefined
|
|
4193
|
+
assertParamExists('disableDomainLockV1', 'domain', domain)
|
|
4194
|
+
const localVarPath = `/api/domains/v1/portfolio/{domain}/domain-lock`
|
|
4195
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
4196
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4197
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4198
|
+
let baseOptions;
|
|
4199
|
+
if (configuration) {
|
|
4200
|
+
baseOptions = configuration.baseOptions;
|
|
4201
|
+
}
|
|
4202
|
+
|
|
4203
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
4204
|
+
const localVarHeaderParameter = {} as any;
|
|
4205
|
+
const localVarQueryParameter = {} as any;
|
|
4206
|
+
|
|
4207
|
+
// authentication apiToken required
|
|
4208
|
+
// http bearer authentication required
|
|
4209
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
4210
|
+
|
|
4211
|
+
|
|
4212
|
+
|
|
4213
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4214
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4215
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4216
|
+
|
|
4217
|
+
return {
|
|
4218
|
+
url: toPathString(localVarUrlObj),
|
|
4219
|
+
options: localVarRequestOptions,
|
|
4220
|
+
};
|
|
4221
|
+
},
|
|
4222
|
+
/**
|
|
4223
|
+
* This endpoint disables privacy protection for the domain. When privacy protection is disabled, the domain owner\'s personal information is visible in the public WHOIS database.
|
|
4224
|
+
* @summary Disable privacy protection
|
|
4225
|
+
* @param {string} domain Domain name
|
|
4226
|
+
* @param {*} [options] Override http request option.
|
|
4227
|
+
* @throws {RequiredError}
|
|
4228
|
+
*/
|
|
4229
|
+
disablePrivacyProtectionV1: async (domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4230
|
+
// verify required parameter 'domain' is not null or undefined
|
|
4231
|
+
assertParamExists('disablePrivacyProtectionV1', 'domain', domain)
|
|
4232
|
+
const localVarPath = `/api/domains/v1/portfolio/{domain}/privacy-protection`
|
|
4233
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
4234
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4235
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4236
|
+
let baseOptions;
|
|
4237
|
+
if (configuration) {
|
|
4238
|
+
baseOptions = configuration.baseOptions;
|
|
4239
|
+
}
|
|
4240
|
+
|
|
4241
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
4242
|
+
const localVarHeaderParameter = {} as any;
|
|
4243
|
+
const localVarQueryParameter = {} as any;
|
|
4244
|
+
|
|
4245
|
+
// authentication apiToken required
|
|
4246
|
+
// http bearer authentication required
|
|
4247
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
4248
|
+
|
|
4249
|
+
|
|
4250
|
+
|
|
4251
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4252
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4253
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4254
|
+
|
|
4255
|
+
return {
|
|
4256
|
+
url: toPathString(localVarUrlObj),
|
|
4257
|
+
options: localVarRequestOptions,
|
|
4258
|
+
};
|
|
4259
|
+
},
|
|
4260
|
+
/**
|
|
4261
|
+
* This endpoint enables domain lock for the domain. When domain lock is enabled, the domain cannot be transferred to another registrar without first disabling the lock.
|
|
4262
|
+
* @summary Enable domain lock
|
|
4263
|
+
* @param {string} domain Domain name
|
|
4264
|
+
* @param {*} [options] Override http request option.
|
|
4265
|
+
* @throws {RequiredError}
|
|
4266
|
+
*/
|
|
4267
|
+
enableDomainLockV1: async (domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4268
|
+
// verify required parameter 'domain' is not null or undefined
|
|
4269
|
+
assertParamExists('enableDomainLockV1', 'domain', domain)
|
|
4270
|
+
const localVarPath = `/api/domains/v1/portfolio/{domain}/domain-lock`
|
|
4271
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
4272
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4273
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4274
|
+
let baseOptions;
|
|
4275
|
+
if (configuration) {
|
|
4276
|
+
baseOptions = configuration.baseOptions;
|
|
4277
|
+
}
|
|
4278
|
+
|
|
4279
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
4280
|
+
const localVarHeaderParameter = {} as any;
|
|
4281
|
+
const localVarQueryParameter = {} as any;
|
|
4282
|
+
|
|
4283
|
+
// authentication apiToken required
|
|
4284
|
+
// http bearer authentication required
|
|
4285
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
4286
|
+
|
|
4287
|
+
|
|
4288
|
+
|
|
4289
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4290
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4291
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4292
|
+
|
|
4293
|
+
return {
|
|
4294
|
+
url: toPathString(localVarUrlObj),
|
|
4295
|
+
options: localVarRequestOptions,
|
|
4296
|
+
};
|
|
4297
|
+
},
|
|
4298
|
+
/**
|
|
4299
|
+
* This endpoint enables privacy protection for the domain. When privacy protection is enabled, the domain owner\'s personal information is hidden from the public WHOIS database.
|
|
4300
|
+
* @summary Enable privacy protection
|
|
4301
|
+
* @param {string} domain Domain name
|
|
4302
|
+
* @param {*} [options] Override http request option.
|
|
4303
|
+
* @throws {RequiredError}
|
|
4304
|
+
*/
|
|
4305
|
+
enablePrivacyProtectionV1: async (domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4306
|
+
// verify required parameter 'domain' is not null or undefined
|
|
4307
|
+
assertParamExists('enablePrivacyProtectionV1', 'domain', domain)
|
|
4308
|
+
const localVarPath = `/api/domains/v1/portfolio/{domain}/privacy-protection`
|
|
4309
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
4310
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4311
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4312
|
+
let baseOptions;
|
|
4313
|
+
if (configuration) {
|
|
4314
|
+
baseOptions = configuration.baseOptions;
|
|
4315
|
+
}
|
|
4316
|
+
|
|
4317
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
4318
|
+
const localVarHeaderParameter = {} as any;
|
|
4319
|
+
const localVarQueryParameter = {} as any;
|
|
4320
|
+
|
|
4321
|
+
// authentication apiToken required
|
|
4322
|
+
// http bearer authentication required
|
|
4323
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
4324
|
+
|
|
4325
|
+
|
|
4326
|
+
|
|
4327
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4328
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4329
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4330
|
+
|
|
4331
|
+
return {
|
|
4332
|
+
url: toPathString(localVarUrlObj),
|
|
4333
|
+
options: localVarRequestOptions,
|
|
4334
|
+
};
|
|
4335
|
+
},
|
|
4336
|
+
/**
|
|
4337
|
+
* This endpoint retrieves a list of all domains associated with your account.
|
|
4338
|
+
* @summary Get domain list
|
|
4339
|
+
* @param {*} [options] Override http request option.
|
|
4340
|
+
* @throws {RequiredError}
|
|
4341
|
+
*/
|
|
4342
|
+
getDomainListV1: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4343
|
+
const localVarPath = `/api/domains/v1/portfolio`;
|
|
4344
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4345
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4346
|
+
let baseOptions;
|
|
4347
|
+
if (configuration) {
|
|
4348
|
+
baseOptions = configuration.baseOptions;
|
|
4349
|
+
}
|
|
4350
|
+
|
|
4351
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
4352
|
+
const localVarHeaderParameter = {} as any;
|
|
4353
|
+
const localVarQueryParameter = {} as any;
|
|
4354
|
+
|
|
4355
|
+
// authentication apiToken required
|
|
4356
|
+
// http bearer authentication required
|
|
4357
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
4358
|
+
|
|
4359
|
+
|
|
4360
|
+
|
|
4361
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4362
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4363
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4364
|
+
|
|
4365
|
+
return {
|
|
4366
|
+
url: toPathString(localVarUrlObj),
|
|
4367
|
+
options: localVarRequestOptions,
|
|
4368
|
+
};
|
|
4369
|
+
},
|
|
4370
|
+
/**
|
|
4371
|
+
* This endpoint retrieves details for specified domain.
|
|
4372
|
+
* @summary Get domain
|
|
4373
|
+
* @param {string} domain Domain name
|
|
4374
|
+
* @param {*} [options] Override http request option.
|
|
4375
|
+
* @throws {RequiredError}
|
|
4376
|
+
*/
|
|
4377
|
+
getDomainV1: async (domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4378
|
+
// verify required parameter 'domain' is not null or undefined
|
|
4379
|
+
assertParamExists('getDomainV1', 'domain', domain)
|
|
4380
|
+
const localVarPath = `/api/domains/v1/portfolio/{domain}`
|
|
4381
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
4382
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4383
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4384
|
+
let baseOptions;
|
|
4385
|
+
if (configuration) {
|
|
4386
|
+
baseOptions = configuration.baseOptions;
|
|
4387
|
+
}
|
|
4388
|
+
|
|
4389
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
4390
|
+
const localVarHeaderParameter = {} as any;
|
|
4391
|
+
const localVarQueryParameter = {} as any;
|
|
4392
|
+
|
|
4393
|
+
// authentication apiToken required
|
|
4394
|
+
// http bearer authentication required
|
|
4395
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
4396
|
+
|
|
4397
|
+
|
|
4398
|
+
|
|
4399
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4400
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4401
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4402
|
+
|
|
4403
|
+
return {
|
|
4404
|
+
url: toPathString(localVarUrlObj),
|
|
4405
|
+
options: localVarRequestOptions,
|
|
4406
|
+
};
|
|
4407
|
+
},
|
|
4408
|
+
/**
|
|
4409
|
+
* This endpoint purchases and registers new domain. If registration fails, login to hPanel and check the domain registration status. If no payment method is provided, default will be used. If no WHOIS information is provided, default for that TLD will be used. Before making request make sure that WHOIS information for TLD exists. Some TLDs require `additional_details` to be provided and will be validated before making purchase.
|
|
4410
|
+
* @summary Purchase new domain
|
|
4411
|
+
* @param {DomainsV1PortfolioPurchaseRequest} domainsV1PortfolioPurchaseRequest
|
|
4412
|
+
* @param {*} [options] Override http request option.
|
|
4413
|
+
* @throws {RequiredError}
|
|
4414
|
+
*/
|
|
4415
|
+
purchaseNewDomainV1: async (domainsV1PortfolioPurchaseRequest: DomainsV1PortfolioPurchaseRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4416
|
+
// verify required parameter 'domainsV1PortfolioPurchaseRequest' is not null or undefined
|
|
4417
|
+
assertParamExists('purchaseNewDomainV1', 'domainsV1PortfolioPurchaseRequest', domainsV1PortfolioPurchaseRequest)
|
|
4418
|
+
const localVarPath = `/api/domains/v1/portfolio`;
|
|
4419
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4420
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4421
|
+
let baseOptions;
|
|
4422
|
+
if (configuration) {
|
|
4423
|
+
baseOptions = configuration.baseOptions;
|
|
4424
|
+
}
|
|
4425
|
+
|
|
4426
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
4427
|
+
const localVarHeaderParameter = {} as any;
|
|
4428
|
+
const localVarQueryParameter = {} as any;
|
|
4429
|
+
|
|
4430
|
+
// authentication apiToken required
|
|
4431
|
+
// http bearer authentication required
|
|
4432
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
4433
|
+
|
|
4434
|
+
|
|
4435
|
+
|
|
4436
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4437
|
+
|
|
4438
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4439
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4440
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4441
|
+
localVarRequestOptions.data = serializeDataIfNeeded(domainsV1PortfolioPurchaseRequest, localVarRequestOptions, configuration)
|
|
4442
|
+
|
|
4443
|
+
return {
|
|
4444
|
+
url: toPathString(localVarUrlObj),
|
|
4445
|
+
options: localVarRequestOptions,
|
|
4446
|
+
};
|
|
4447
|
+
},
|
|
4448
|
+
/**
|
|
4449
|
+
* This endpoint sets the nameservers for a specified domain. Be aware, that improper nameserver configuration can lead to the domain being unresolvable or unavailable.
|
|
4450
|
+
* @summary Update nameservers
|
|
4451
|
+
* @param {string} domain Domain name
|
|
4452
|
+
* @param {DomainsV1PortfolioUpdateNameserversRequest} domainsV1PortfolioUpdateNameserversRequest
|
|
4453
|
+
* @param {*} [options] Override http request option.
|
|
4454
|
+
* @throws {RequiredError}
|
|
4455
|
+
*/
|
|
4456
|
+
updateNameserversV1: async (domain: string, domainsV1PortfolioUpdateNameserversRequest: DomainsV1PortfolioUpdateNameserversRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4457
|
+
// verify required parameter 'domain' is not null or undefined
|
|
4458
|
+
assertParamExists('updateNameserversV1', 'domain', domain)
|
|
4459
|
+
// verify required parameter 'domainsV1PortfolioUpdateNameserversRequest' is not null or undefined
|
|
4460
|
+
assertParamExists('updateNameserversV1', 'domainsV1PortfolioUpdateNameserversRequest', domainsV1PortfolioUpdateNameserversRequest)
|
|
4461
|
+
const localVarPath = `/api/domains/v1/portfolio/{domain}/nameservers`
|
|
4462
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
4463
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4464
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4465
|
+
let baseOptions;
|
|
4466
|
+
if (configuration) {
|
|
4467
|
+
baseOptions = configuration.baseOptions;
|
|
4468
|
+
}
|
|
4469
|
+
|
|
4470
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
4471
|
+
const localVarHeaderParameter = {} as any;
|
|
4472
|
+
const localVarQueryParameter = {} as any;
|
|
4473
|
+
|
|
4474
|
+
// authentication apiToken required
|
|
4475
|
+
// http bearer authentication required
|
|
4476
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
4477
|
+
|
|
4478
|
+
|
|
4479
|
+
|
|
4480
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4481
|
+
|
|
4482
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4483
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4484
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4485
|
+
localVarRequestOptions.data = serializeDataIfNeeded(domainsV1PortfolioUpdateNameserversRequest, localVarRequestOptions, configuration)
|
|
4486
|
+
|
|
4487
|
+
return {
|
|
4488
|
+
url: toPathString(localVarUrlObj),
|
|
4489
|
+
options: localVarRequestOptions,
|
|
4490
|
+
};
|
|
4491
|
+
},
|
|
4492
|
+
}
|
|
4493
|
+
};
|
|
4494
|
+
|
|
4495
|
+
/**
|
|
4496
|
+
* DomainsPortfolioApi - functional programming interface
|
|
4497
|
+
* @export
|
|
4498
|
+
*/
|
|
4499
|
+
export const DomainsPortfolioApiFp = function(configuration?: Configuration) {
|
|
4500
|
+
const localVarAxiosParamCreator = DomainsPortfolioApiAxiosParamCreator(configuration)
|
|
4501
|
+
return {
|
|
4502
|
+
/**
|
|
4503
|
+
* This endpoint disables domain lock for the domain. Domain lock needs to be disabled before transferring the domain to another registrar.
|
|
4504
|
+
* @summary Disable domain lock
|
|
4505
|
+
* @param {string} domain Domain name
|
|
4506
|
+
* @param {*} [options] Override http request option.
|
|
4507
|
+
* @throws {RequiredError}
|
|
4508
|
+
*/
|
|
4509
|
+
async disableDomainLockV1(domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
|
|
4510
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.disableDomainLockV1(domain, options);
|
|
4511
|
+
const localVarOperationServerBasePath = operationServerMap['DomainsPortfolioApi.disableDomainLockV1']?.[0]?.url;
|
|
4512
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4513
|
+
},
|
|
4514
|
+
/**
|
|
4515
|
+
* This endpoint disables privacy protection for the domain. When privacy protection is disabled, the domain owner\'s personal information is visible in the public WHOIS database.
|
|
4516
|
+
* @summary Disable privacy protection
|
|
4517
|
+
* @param {string} domain Domain name
|
|
4518
|
+
* @param {*} [options] Override http request option.
|
|
4519
|
+
* @throws {RequiredError}
|
|
4520
|
+
*/
|
|
4521
|
+
async disablePrivacyProtectionV1(domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
|
|
4522
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.disablePrivacyProtectionV1(domain, options);
|
|
4523
|
+
const localVarOperationServerBasePath = operationServerMap['DomainsPortfolioApi.disablePrivacyProtectionV1']?.[0]?.url;
|
|
4524
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4525
|
+
},
|
|
4526
|
+
/**
|
|
4527
|
+
* This endpoint enables domain lock for the domain. When domain lock is enabled, the domain cannot be transferred to another registrar without first disabling the lock.
|
|
4528
|
+
* @summary Enable domain lock
|
|
4529
|
+
* @param {string} domain Domain name
|
|
4530
|
+
* @param {*} [options] Override http request option.
|
|
4531
|
+
* @throws {RequiredError}
|
|
4532
|
+
*/
|
|
4533
|
+
async enableDomainLockV1(domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
|
|
4534
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.enableDomainLockV1(domain, options);
|
|
4535
|
+
const localVarOperationServerBasePath = operationServerMap['DomainsPortfolioApi.enableDomainLockV1']?.[0]?.url;
|
|
4536
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4537
|
+
},
|
|
4538
|
+
/**
|
|
4539
|
+
* This endpoint enables privacy protection for the domain. When privacy protection is enabled, the domain owner\'s personal information is hidden from the public WHOIS database.
|
|
4540
|
+
* @summary Enable privacy protection
|
|
4541
|
+
* @param {string} domain Domain name
|
|
4542
|
+
* @param {*} [options] Override http request option.
|
|
4543
|
+
* @throws {RequiredError}
|
|
4544
|
+
*/
|
|
4545
|
+
async enablePrivacyProtectionV1(domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
|
|
4546
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.enablePrivacyProtectionV1(domain, options);
|
|
4547
|
+
const localVarOperationServerBasePath = operationServerMap['DomainsPortfolioApi.enablePrivacyProtectionV1']?.[0]?.url;
|
|
4548
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4549
|
+
},
|
|
4550
|
+
/**
|
|
4551
|
+
* This endpoint retrieves a list of all domains associated with your account.
|
|
4552
|
+
* @summary Get domain list
|
|
4553
|
+
* @param {*} [options] Override http request option.
|
|
4554
|
+
* @throws {RequiredError}
|
|
4555
|
+
*/
|
|
4556
|
+
async getDomainListV1(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<DomainsV1DomainDomainResource>>> {
|
|
4557
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getDomainListV1(options);
|
|
4558
|
+
const localVarOperationServerBasePath = operationServerMap['DomainsPortfolioApi.getDomainListV1']?.[0]?.url;
|
|
4559
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4560
|
+
},
|
|
4561
|
+
/**
|
|
4562
|
+
* This endpoint retrieves details for specified domain.
|
|
4563
|
+
* @summary Get domain
|
|
4564
|
+
* @param {string} domain Domain name
|
|
4565
|
+
* @param {*} [options] Override http request option.
|
|
4566
|
+
* @throws {RequiredError}
|
|
4567
|
+
*/
|
|
4568
|
+
async getDomainV1(domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DomainsV1DomainDomainExtendedResource>> {
|
|
4569
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getDomainV1(domain, options);
|
|
4570
|
+
const localVarOperationServerBasePath = operationServerMap['DomainsPortfolioApi.getDomainV1']?.[0]?.url;
|
|
4571
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4572
|
+
},
|
|
4573
|
+
/**
|
|
4574
|
+
* This endpoint purchases and registers new domain. If registration fails, login to hPanel and check the domain registration status. If no payment method is provided, default will be used. If no WHOIS information is provided, default for that TLD will be used. Before making request make sure that WHOIS information for TLD exists. Some TLDs require `additional_details` to be provided and will be validated before making purchase.
|
|
4575
|
+
* @summary Purchase new domain
|
|
4576
|
+
* @param {DomainsV1PortfolioPurchaseRequest} domainsV1PortfolioPurchaseRequest
|
|
4577
|
+
* @param {*} [options] Override http request option.
|
|
4578
|
+
* @throws {RequiredError}
|
|
4579
|
+
*/
|
|
4580
|
+
async purchaseNewDomainV1(domainsV1PortfolioPurchaseRequest: DomainsV1PortfolioPurchaseRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BillingV1OrderOrderResource>> {
|
|
4581
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.purchaseNewDomainV1(domainsV1PortfolioPurchaseRequest, options);
|
|
4582
|
+
const localVarOperationServerBasePath = operationServerMap['DomainsPortfolioApi.purchaseNewDomainV1']?.[0]?.url;
|
|
4583
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4584
|
+
},
|
|
4585
|
+
/**
|
|
4586
|
+
* This endpoint sets the nameservers for a specified domain. Be aware, that improper nameserver configuration can lead to the domain being unresolvable or unavailable.
|
|
4587
|
+
* @summary Update nameservers
|
|
4588
|
+
* @param {string} domain Domain name
|
|
4589
|
+
* @param {DomainsV1PortfolioUpdateNameserversRequest} domainsV1PortfolioUpdateNameserversRequest
|
|
4590
|
+
* @param {*} [options] Override http request option.
|
|
4591
|
+
* @throws {RequiredError}
|
|
4592
|
+
*/
|
|
4593
|
+
async updateNameserversV1(domain: string, domainsV1PortfolioUpdateNameserversRequest: DomainsV1PortfolioUpdateNameserversRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
|
|
4594
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateNameserversV1(domain, domainsV1PortfolioUpdateNameserversRequest, options);
|
|
4595
|
+
const localVarOperationServerBasePath = operationServerMap['DomainsPortfolioApi.updateNameserversV1']?.[0]?.url;
|
|
4596
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4597
|
+
},
|
|
4598
|
+
}
|
|
4599
|
+
};
|
|
4600
|
+
|
|
4601
|
+
/**
|
|
4602
|
+
* DomainsPortfolioApi - factory interface
|
|
4603
|
+
* @export
|
|
4604
|
+
*/
|
|
4605
|
+
export const DomainsPortfolioApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
4606
|
+
const localVarFp = DomainsPortfolioApiFp(configuration)
|
|
4607
|
+
return {
|
|
4608
|
+
/**
|
|
4609
|
+
* This endpoint disables domain lock for the domain. Domain lock needs to be disabled before transferring the domain to another registrar.
|
|
4610
|
+
* @summary Disable domain lock
|
|
4611
|
+
* @param {string} domain Domain name
|
|
4612
|
+
* @param {*} [options] Override http request option.
|
|
4613
|
+
* @throws {RequiredError}
|
|
4614
|
+
*/
|
|
4615
|
+
disableDomainLockV1(domain: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
|
|
4616
|
+
return localVarFp.disableDomainLockV1(domain, options).then((request) => request(axios, basePath));
|
|
4617
|
+
},
|
|
4618
|
+
/**
|
|
4619
|
+
* This endpoint disables privacy protection for the domain. When privacy protection is disabled, the domain owner\'s personal information is visible in the public WHOIS database.
|
|
4620
|
+
* @summary Disable privacy protection
|
|
4621
|
+
* @param {string} domain Domain name
|
|
4622
|
+
* @param {*} [options] Override http request option.
|
|
4623
|
+
* @throws {RequiredError}
|
|
4624
|
+
*/
|
|
4625
|
+
disablePrivacyProtectionV1(domain: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
|
|
4626
|
+
return localVarFp.disablePrivacyProtectionV1(domain, options).then((request) => request(axios, basePath));
|
|
4627
|
+
},
|
|
4628
|
+
/**
|
|
4629
|
+
* This endpoint enables domain lock for the domain. When domain lock is enabled, the domain cannot be transferred to another registrar without first disabling the lock.
|
|
4630
|
+
* @summary Enable domain lock
|
|
4631
|
+
* @param {string} domain Domain name
|
|
4632
|
+
* @param {*} [options] Override http request option.
|
|
4633
|
+
* @throws {RequiredError}
|
|
4634
|
+
*/
|
|
4635
|
+
enableDomainLockV1(domain: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
|
|
4636
|
+
return localVarFp.enableDomainLockV1(domain, options).then((request) => request(axios, basePath));
|
|
4637
|
+
},
|
|
4638
|
+
/**
|
|
4639
|
+
* This endpoint enables privacy protection for the domain. When privacy protection is enabled, the domain owner\'s personal information is hidden from the public WHOIS database.
|
|
4640
|
+
* @summary Enable privacy protection
|
|
4641
|
+
* @param {string} domain Domain name
|
|
4642
|
+
* @param {*} [options] Override http request option.
|
|
4643
|
+
* @throws {RequiredError}
|
|
4644
|
+
*/
|
|
4645
|
+
enablePrivacyProtectionV1(domain: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
|
|
4646
|
+
return localVarFp.enablePrivacyProtectionV1(domain, options).then((request) => request(axios, basePath));
|
|
4647
|
+
},
|
|
4648
|
+
/**
|
|
4649
|
+
* This endpoint retrieves a list of all domains associated with your account.
|
|
4650
|
+
* @summary Get domain list
|
|
4651
|
+
* @param {*} [options] Override http request option.
|
|
4652
|
+
* @throws {RequiredError}
|
|
4653
|
+
*/
|
|
4654
|
+
getDomainListV1(options?: RawAxiosRequestConfig): AxiosPromise<Array<DomainsV1DomainDomainResource>> {
|
|
4655
|
+
return localVarFp.getDomainListV1(options).then((request) => request(axios, basePath));
|
|
4656
|
+
},
|
|
4657
|
+
/**
|
|
4658
|
+
* This endpoint retrieves details for specified domain.
|
|
4659
|
+
* @summary Get domain
|
|
4660
|
+
* @param {string} domain Domain name
|
|
4661
|
+
* @param {*} [options] Override http request option.
|
|
4662
|
+
* @throws {RequiredError}
|
|
4663
|
+
*/
|
|
4664
|
+
getDomainV1(domain: string, options?: RawAxiosRequestConfig): AxiosPromise<DomainsV1DomainDomainExtendedResource> {
|
|
4665
|
+
return localVarFp.getDomainV1(domain, options).then((request) => request(axios, basePath));
|
|
4666
|
+
},
|
|
4667
|
+
/**
|
|
4668
|
+
* This endpoint purchases and registers new domain. If registration fails, login to hPanel and check the domain registration status. If no payment method is provided, default will be used. If no WHOIS information is provided, default for that TLD will be used. Before making request make sure that WHOIS information for TLD exists. Some TLDs require `additional_details` to be provided and will be validated before making purchase.
|
|
4669
|
+
* @summary Purchase new domain
|
|
4670
|
+
* @param {DomainsV1PortfolioPurchaseRequest} domainsV1PortfolioPurchaseRequest
|
|
4671
|
+
* @param {*} [options] Override http request option.
|
|
4672
|
+
* @throws {RequiredError}
|
|
4673
|
+
*/
|
|
4674
|
+
purchaseNewDomainV1(domainsV1PortfolioPurchaseRequest: DomainsV1PortfolioPurchaseRequest, options?: RawAxiosRequestConfig): AxiosPromise<BillingV1OrderOrderResource> {
|
|
4675
|
+
return localVarFp.purchaseNewDomainV1(domainsV1PortfolioPurchaseRequest, options).then((request) => request(axios, basePath));
|
|
4676
|
+
},
|
|
4677
|
+
/**
|
|
4678
|
+
* This endpoint sets the nameservers for a specified domain. Be aware, that improper nameserver configuration can lead to the domain being unresolvable or unavailable.
|
|
4679
|
+
* @summary Update nameservers
|
|
4680
|
+
* @param {string} domain Domain name
|
|
4681
|
+
* @param {DomainsV1PortfolioUpdateNameserversRequest} domainsV1PortfolioUpdateNameserversRequest
|
|
4682
|
+
* @param {*} [options] Override http request option.
|
|
4683
|
+
* @throws {RequiredError}
|
|
4684
|
+
*/
|
|
4685
|
+
updateNameserversV1(domain: string, domainsV1PortfolioUpdateNameserversRequest: DomainsV1PortfolioUpdateNameserversRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
|
|
4686
|
+
return localVarFp.updateNameserversV1(domain, domainsV1PortfolioUpdateNameserversRequest, options).then((request) => request(axios, basePath));
|
|
4687
|
+
},
|
|
4688
|
+
};
|
|
4689
|
+
};
|
|
4690
|
+
|
|
4691
|
+
/**
|
|
4692
|
+
* DomainsPortfolioApi - object-oriented interface
|
|
4693
|
+
* @export
|
|
4694
|
+
* @class DomainsPortfolioApi
|
|
4695
|
+
* @extends {BaseAPI}
|
|
4696
|
+
*/
|
|
4697
|
+
export class DomainsPortfolioApi extends BaseAPI {
|
|
4698
|
+
/**
|
|
4699
|
+
* This endpoint disables domain lock for the domain. Domain lock needs to be disabled before transferring the domain to another registrar.
|
|
4700
|
+
* @summary Disable domain lock
|
|
4701
|
+
* @param {string} domain Domain name
|
|
4702
|
+
* @param {*} [options] Override http request option.
|
|
4703
|
+
* @throws {RequiredError}
|
|
4704
|
+
* @memberof DomainsPortfolioApi
|
|
4705
|
+
*/
|
|
4706
|
+
public disableDomainLockV1(domain: string, options?: RawAxiosRequestConfig) {
|
|
4707
|
+
return DomainsPortfolioApiFp(this.configuration).disableDomainLockV1(domain, options).then((request) => request(this.axios, this.basePath));
|
|
4708
|
+
}
|
|
4709
|
+
|
|
4710
|
+
/**
|
|
4711
|
+
* This endpoint disables privacy protection for the domain. When privacy protection is disabled, the domain owner\'s personal information is visible in the public WHOIS database.
|
|
4712
|
+
* @summary Disable privacy protection
|
|
4713
|
+
* @param {string} domain Domain name
|
|
4714
|
+
* @param {*} [options] Override http request option.
|
|
4715
|
+
* @throws {RequiredError}
|
|
4716
|
+
* @memberof DomainsPortfolioApi
|
|
4717
|
+
*/
|
|
4718
|
+
public disablePrivacyProtectionV1(domain: string, options?: RawAxiosRequestConfig) {
|
|
4719
|
+
return DomainsPortfolioApiFp(this.configuration).disablePrivacyProtectionV1(domain, options).then((request) => request(this.axios, this.basePath));
|
|
4720
|
+
}
|
|
4721
|
+
|
|
4722
|
+
/**
|
|
4723
|
+
* This endpoint enables domain lock for the domain. When domain lock is enabled, the domain cannot be transferred to another registrar without first disabling the lock.
|
|
4724
|
+
* @summary Enable domain lock
|
|
4725
|
+
* @param {string} domain Domain name
|
|
4726
|
+
* @param {*} [options] Override http request option.
|
|
4727
|
+
* @throws {RequiredError}
|
|
4728
|
+
* @memberof DomainsPortfolioApi
|
|
4729
|
+
*/
|
|
4730
|
+
public enableDomainLockV1(domain: string, options?: RawAxiosRequestConfig) {
|
|
4731
|
+
return DomainsPortfolioApiFp(this.configuration).enableDomainLockV1(domain, options).then((request) => request(this.axios, this.basePath));
|
|
4732
|
+
}
|
|
4733
|
+
|
|
4734
|
+
/**
|
|
4735
|
+
* This endpoint enables privacy protection for the domain. When privacy protection is enabled, the domain owner\'s personal information is hidden from the public WHOIS database.
|
|
4736
|
+
* @summary Enable privacy protection
|
|
4737
|
+
* @param {string} domain Domain name
|
|
4738
|
+
* @param {*} [options] Override http request option.
|
|
4739
|
+
* @throws {RequiredError}
|
|
4740
|
+
* @memberof DomainsPortfolioApi
|
|
4741
|
+
*/
|
|
4742
|
+
public enablePrivacyProtectionV1(domain: string, options?: RawAxiosRequestConfig) {
|
|
4743
|
+
return DomainsPortfolioApiFp(this.configuration).enablePrivacyProtectionV1(domain, options).then((request) => request(this.axios, this.basePath));
|
|
4744
|
+
}
|
|
4745
|
+
|
|
4746
|
+
/**
|
|
4747
|
+
* This endpoint retrieves a list of all domains associated with your account.
|
|
4748
|
+
* @summary Get domain list
|
|
4749
|
+
* @param {*} [options] Override http request option.
|
|
4750
|
+
* @throws {RequiredError}
|
|
4751
|
+
* @memberof DomainsPortfolioApi
|
|
4752
|
+
*/
|
|
4753
|
+
public getDomainListV1(options?: RawAxiosRequestConfig) {
|
|
4754
|
+
return DomainsPortfolioApiFp(this.configuration).getDomainListV1(options).then((request) => request(this.axios, this.basePath));
|
|
4755
|
+
}
|
|
4756
|
+
|
|
4757
|
+
/**
|
|
4758
|
+
* This endpoint retrieves details for specified domain.
|
|
4759
|
+
* @summary Get domain
|
|
4760
|
+
* @param {string} domain Domain name
|
|
4761
|
+
* @param {*} [options] Override http request option.
|
|
4762
|
+
* @throws {RequiredError}
|
|
4763
|
+
* @memberof DomainsPortfolioApi
|
|
4764
|
+
*/
|
|
4765
|
+
public getDomainV1(domain: string, options?: RawAxiosRequestConfig) {
|
|
4766
|
+
return DomainsPortfolioApiFp(this.configuration).getDomainV1(domain, options).then((request) => request(this.axios, this.basePath));
|
|
4767
|
+
}
|
|
4768
|
+
|
|
4769
|
+
/**
|
|
4770
|
+
* This endpoint purchases and registers new domain. If registration fails, login to hPanel and check the domain registration status. If no payment method is provided, default will be used. If no WHOIS information is provided, default for that TLD will be used. Before making request make sure that WHOIS information for TLD exists. Some TLDs require `additional_details` to be provided and will be validated before making purchase.
|
|
4771
|
+
* @summary Purchase new domain
|
|
4772
|
+
* @param {DomainsV1PortfolioPurchaseRequest} domainsV1PortfolioPurchaseRequest
|
|
4773
|
+
* @param {*} [options] Override http request option.
|
|
4774
|
+
* @throws {RequiredError}
|
|
4775
|
+
* @memberof DomainsPortfolioApi
|
|
4776
|
+
*/
|
|
4777
|
+
public purchaseNewDomainV1(domainsV1PortfolioPurchaseRequest: DomainsV1PortfolioPurchaseRequest, options?: RawAxiosRequestConfig) {
|
|
4778
|
+
return DomainsPortfolioApiFp(this.configuration).purchaseNewDomainV1(domainsV1PortfolioPurchaseRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4779
|
+
}
|
|
4780
|
+
|
|
4781
|
+
/**
|
|
4782
|
+
* This endpoint sets the nameservers for a specified domain. Be aware, that improper nameserver configuration can lead to the domain being unresolvable or unavailable.
|
|
4783
|
+
* @summary Update nameservers
|
|
4784
|
+
* @param {string} domain Domain name
|
|
4785
|
+
* @param {DomainsV1PortfolioUpdateNameserversRequest} domainsV1PortfolioUpdateNameserversRequest
|
|
4786
|
+
* @param {*} [options] Override http request option.
|
|
4787
|
+
* @throws {RequiredError}
|
|
4788
|
+
* @memberof DomainsPortfolioApi
|
|
4789
|
+
*/
|
|
4790
|
+
public updateNameserversV1(domain: string, domainsV1PortfolioUpdateNameserversRequest: DomainsV1PortfolioUpdateNameserversRequest, options?: RawAxiosRequestConfig) {
|
|
4791
|
+
return DomainsPortfolioApiFp(this.configuration).updateNameserversV1(domain, domainsV1PortfolioUpdateNameserversRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4792
|
+
}
|
|
4793
|
+
}
|
|
4794
|
+
|
|
4795
|
+
|
|
4796
|
+
|
|
4797
|
+
/**
|
|
4798
|
+
* DomainsWHOISApi - axios parameter creator
|
|
4799
|
+
* @export
|
|
4800
|
+
*/
|
|
4801
|
+
export const DomainsWHOISApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
4802
|
+
return {
|
|
4803
|
+
/**
|
|
4804
|
+
* This endpoint creates WHOIS contact profile.
|
|
4805
|
+
* @summary Create WHOIS profile
|
|
4806
|
+
* @param {DomainsV1WHOISStoreRequest} domainsV1WHOISStoreRequest
|
|
4807
|
+
* @param {*} [options] Override http request option.
|
|
4808
|
+
* @throws {RequiredError}
|
|
4809
|
+
*/
|
|
4810
|
+
createWHOISProfileV1: async (domainsV1WHOISStoreRequest: DomainsV1WHOISStoreRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4811
|
+
// verify required parameter 'domainsV1WHOISStoreRequest' is not null or undefined
|
|
4812
|
+
assertParamExists('createWHOISProfileV1', 'domainsV1WHOISStoreRequest', domainsV1WHOISStoreRequest)
|
|
4813
|
+
const localVarPath = `/api/domains/v1/whois`;
|
|
4814
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4815
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4816
|
+
let baseOptions;
|
|
4817
|
+
if (configuration) {
|
|
4818
|
+
baseOptions = configuration.baseOptions;
|
|
4819
|
+
}
|
|
4820
|
+
|
|
4821
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
4822
|
+
const localVarHeaderParameter = {} as any;
|
|
4823
|
+
const localVarQueryParameter = {} as any;
|
|
4824
|
+
|
|
4825
|
+
// authentication apiToken required
|
|
4826
|
+
// http bearer authentication required
|
|
4827
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
4828
|
+
|
|
4829
|
+
|
|
4830
|
+
|
|
4831
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4832
|
+
|
|
4833
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4834
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4835
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4836
|
+
localVarRequestOptions.data = serializeDataIfNeeded(domainsV1WHOISStoreRequest, localVarRequestOptions, configuration)
|
|
4837
|
+
|
|
4838
|
+
return {
|
|
4839
|
+
url: toPathString(localVarUrlObj),
|
|
4840
|
+
options: localVarRequestOptions,
|
|
4841
|
+
};
|
|
4842
|
+
},
|
|
4843
|
+
/**
|
|
4844
|
+
* This endpoint deletes WHOIS contact profile.
|
|
4845
|
+
* @summary Delete WHOIS profile
|
|
4846
|
+
* @param {number} whoisId WHOIS ID
|
|
4847
|
+
* @param {*} [options] Override http request option.
|
|
4848
|
+
* @throws {RequiredError}
|
|
4849
|
+
*/
|
|
4850
|
+
deleteWHOISProfileV1: async (whoisId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4851
|
+
// verify required parameter 'whoisId' is not null or undefined
|
|
4852
|
+
assertParamExists('deleteWHOISProfileV1', 'whoisId', whoisId)
|
|
4853
|
+
const localVarPath = `/api/domains/v1/whois/{whoisId}`
|
|
4854
|
+
.replace(`{${"whoisId"}}`, encodeURIComponent(String(whoisId)));
|
|
4855
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4856
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4857
|
+
let baseOptions;
|
|
4858
|
+
if (configuration) {
|
|
4859
|
+
baseOptions = configuration.baseOptions;
|
|
4860
|
+
}
|
|
4861
|
+
|
|
4862
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
4863
|
+
const localVarHeaderParameter = {} as any;
|
|
4864
|
+
const localVarQueryParameter = {} as any;
|
|
4865
|
+
|
|
4866
|
+
// authentication apiToken required
|
|
4867
|
+
// http bearer authentication required
|
|
4868
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
4869
|
+
|
|
4870
|
+
|
|
4871
|
+
|
|
4872
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4873
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4874
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4875
|
+
|
|
4876
|
+
return {
|
|
4877
|
+
url: toPathString(localVarUrlObj),
|
|
4878
|
+
options: localVarRequestOptions,
|
|
4879
|
+
};
|
|
4880
|
+
},
|
|
4881
|
+
/**
|
|
4882
|
+
* This endpoint retrieves a list of WHOIS contact profiles.
|
|
4883
|
+
* @summary Get WHOIS profile list
|
|
4884
|
+
* @param {string} [tld] Filter by TLD (without trailing dot)
|
|
4885
|
+
* @param {*} [options] Override http request option.
|
|
4886
|
+
* @throws {RequiredError}
|
|
4887
|
+
*/
|
|
4888
|
+
getWHOISProfileListV1: async (tld?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4889
|
+
const localVarPath = `/api/domains/v1/whois`;
|
|
4890
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4891
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4892
|
+
let baseOptions;
|
|
4893
|
+
if (configuration) {
|
|
4894
|
+
baseOptions = configuration.baseOptions;
|
|
4895
|
+
}
|
|
4896
|
+
|
|
4897
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
4898
|
+
const localVarHeaderParameter = {} as any;
|
|
4899
|
+
const localVarQueryParameter = {} as any;
|
|
4900
|
+
|
|
4901
|
+
// authentication apiToken required
|
|
4902
|
+
// http bearer authentication required
|
|
4903
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
4904
|
+
|
|
4905
|
+
if (tld !== undefined) {
|
|
4906
|
+
localVarQueryParameter['tld'] = tld;
|
|
4907
|
+
}
|
|
4908
|
+
|
|
4909
|
+
|
|
4910
|
+
|
|
4911
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4912
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4913
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4914
|
+
|
|
4915
|
+
return {
|
|
4916
|
+
url: toPathString(localVarUrlObj),
|
|
4917
|
+
options: localVarRequestOptions,
|
|
4918
|
+
};
|
|
4919
|
+
},
|
|
4920
|
+
/**
|
|
4921
|
+
* This endpoint retrieves a domain list where provided WHOIS contact profile is used.
|
|
4922
|
+
* @summary Get WHOIS profile usage
|
|
4923
|
+
* @param {number} whoisId WHOIS ID
|
|
4924
|
+
* @param {*} [options] Override http request option.
|
|
4925
|
+
* @throws {RequiredError}
|
|
4926
|
+
*/
|
|
4927
|
+
getWHOISProfileUsageV1: async (whoisId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4928
|
+
// verify required parameter 'whoisId' is not null or undefined
|
|
4929
|
+
assertParamExists('getWHOISProfileUsageV1', 'whoisId', whoisId)
|
|
4930
|
+
const localVarPath = `/api/domains/v1/whois/{whoisId}/usage`
|
|
4931
|
+
.replace(`{${"whoisId"}}`, encodeURIComponent(String(whoisId)));
|
|
4932
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4933
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4934
|
+
let baseOptions;
|
|
4935
|
+
if (configuration) {
|
|
4936
|
+
baseOptions = configuration.baseOptions;
|
|
4937
|
+
}
|
|
4938
|
+
|
|
4939
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
4940
|
+
const localVarHeaderParameter = {} as any;
|
|
4941
|
+
const localVarQueryParameter = {} as any;
|
|
4942
|
+
|
|
4943
|
+
// authentication apiToken required
|
|
4944
|
+
// http bearer authentication required
|
|
4945
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
4946
|
+
|
|
4947
|
+
|
|
4948
|
+
|
|
4949
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4950
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4951
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4952
|
+
|
|
4953
|
+
return {
|
|
4954
|
+
url: toPathString(localVarUrlObj),
|
|
4955
|
+
options: localVarRequestOptions,
|
|
4956
|
+
};
|
|
4957
|
+
},
|
|
4958
|
+
/**
|
|
4959
|
+
* This endpoint retrieves a WHOIS contact profile.
|
|
4960
|
+
* @summary Get WHOIS profile
|
|
4961
|
+
* @param {number} whoisId WHOIS ID
|
|
4962
|
+
* @param {*} [options] Override http request option.
|
|
4963
|
+
* @throws {RequiredError}
|
|
4964
|
+
*/
|
|
4965
|
+
getWHOISProfileV1: async (whoisId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4966
|
+
// verify required parameter 'whoisId' is not null or undefined
|
|
4967
|
+
assertParamExists('getWHOISProfileV1', 'whoisId', whoisId)
|
|
4968
|
+
const localVarPath = `/api/domains/v1/whois/{whoisId}`
|
|
4969
|
+
.replace(`{${"whoisId"}}`, encodeURIComponent(String(whoisId)));
|
|
4970
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4971
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4972
|
+
let baseOptions;
|
|
4973
|
+
if (configuration) {
|
|
4974
|
+
baseOptions = configuration.baseOptions;
|
|
4975
|
+
}
|
|
4976
|
+
|
|
4977
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
4978
|
+
const localVarHeaderParameter = {} as any;
|
|
4979
|
+
const localVarQueryParameter = {} as any;
|
|
4980
|
+
|
|
4981
|
+
// authentication apiToken required
|
|
4982
|
+
// http bearer authentication required
|
|
4983
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
4984
|
+
|
|
4985
|
+
|
|
4986
|
+
|
|
4987
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4988
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4989
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4990
|
+
|
|
4991
|
+
return {
|
|
4992
|
+
url: toPathString(localVarUrlObj),
|
|
4993
|
+
options: localVarRequestOptions,
|
|
4994
|
+
};
|
|
4995
|
+
},
|
|
4996
|
+
}
|
|
4997
|
+
};
|
|
4998
|
+
|
|
4999
|
+
/**
|
|
5000
|
+
* DomainsWHOISApi - functional programming interface
|
|
5001
|
+
* @export
|
|
5002
|
+
*/
|
|
5003
|
+
export const DomainsWHOISApiFp = function(configuration?: Configuration) {
|
|
5004
|
+
const localVarAxiosParamCreator = DomainsWHOISApiAxiosParamCreator(configuration)
|
|
5005
|
+
return {
|
|
5006
|
+
/**
|
|
5007
|
+
* This endpoint creates WHOIS contact profile.
|
|
5008
|
+
* @summary Create WHOIS profile
|
|
5009
|
+
* @param {DomainsV1WHOISStoreRequest} domainsV1WHOISStoreRequest
|
|
5010
|
+
* @param {*} [options] Override http request option.
|
|
5011
|
+
* @throws {RequiredError}
|
|
5012
|
+
*/
|
|
5013
|
+
async createWHOISProfileV1(domainsV1WHOISStoreRequest: DomainsV1WHOISStoreRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DomainsV1WHOISProfileResource>> {
|
|
5014
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createWHOISProfileV1(domainsV1WHOISStoreRequest, options);
|
|
5015
|
+
const localVarOperationServerBasePath = operationServerMap['DomainsWHOISApi.createWHOISProfileV1']?.[0]?.url;
|
|
5016
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5017
|
+
},
|
|
5018
|
+
/**
|
|
5019
|
+
* This endpoint deletes WHOIS contact profile.
|
|
5020
|
+
* @summary Delete WHOIS profile
|
|
5021
|
+
* @param {number} whoisId WHOIS ID
|
|
5022
|
+
* @param {*} [options] Override http request option.
|
|
5023
|
+
* @throws {RequiredError}
|
|
5024
|
+
*/
|
|
5025
|
+
async deleteWHOISProfileV1(whoisId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
|
|
5026
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteWHOISProfileV1(whoisId, options);
|
|
5027
|
+
const localVarOperationServerBasePath = operationServerMap['DomainsWHOISApi.deleteWHOISProfileV1']?.[0]?.url;
|
|
5028
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5029
|
+
},
|
|
5030
|
+
/**
|
|
5031
|
+
* This endpoint retrieves a list of WHOIS contact profiles.
|
|
5032
|
+
* @summary Get WHOIS profile list
|
|
5033
|
+
* @param {string} [tld] Filter by TLD (without trailing dot)
|
|
5034
|
+
* @param {*} [options] Override http request option.
|
|
5035
|
+
* @throws {RequiredError}
|
|
5036
|
+
*/
|
|
5037
|
+
async getWHOISProfileListV1(tld?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<DomainsV1WHOISProfileResource>>> {
|
|
5038
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getWHOISProfileListV1(tld, options);
|
|
5039
|
+
const localVarOperationServerBasePath = operationServerMap['DomainsWHOISApi.getWHOISProfileListV1']?.[0]?.url;
|
|
5040
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5041
|
+
},
|
|
5042
|
+
/**
|
|
5043
|
+
* This endpoint retrieves a domain list where provided WHOIS contact profile is used.
|
|
5044
|
+
* @summary Get WHOIS profile usage
|
|
5045
|
+
* @param {number} whoisId WHOIS ID
|
|
5046
|
+
* @param {*} [options] Override http request option.
|
|
5047
|
+
* @throws {RequiredError}
|
|
5048
|
+
*/
|
|
5049
|
+
async getWHOISProfileUsageV1(whoisId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
|
|
5050
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getWHOISProfileUsageV1(whoisId, options);
|
|
5051
|
+
const localVarOperationServerBasePath = operationServerMap['DomainsWHOISApi.getWHOISProfileUsageV1']?.[0]?.url;
|
|
5052
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5053
|
+
},
|
|
5054
|
+
/**
|
|
5055
|
+
* This endpoint retrieves a WHOIS contact profile.
|
|
5056
|
+
* @summary Get WHOIS profile
|
|
5057
|
+
* @param {number} whoisId WHOIS ID
|
|
5058
|
+
* @param {*} [options] Override http request option.
|
|
5059
|
+
* @throws {RequiredError}
|
|
5060
|
+
*/
|
|
5061
|
+
async getWHOISProfileV1(whoisId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DomainsV1WHOISProfileResource>> {
|
|
5062
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getWHOISProfileV1(whoisId, options);
|
|
5063
|
+
const localVarOperationServerBasePath = operationServerMap['DomainsWHOISApi.getWHOISProfileV1']?.[0]?.url;
|
|
5064
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5065
|
+
},
|
|
5066
|
+
}
|
|
5067
|
+
};
|
|
5068
|
+
|
|
5069
|
+
/**
|
|
5070
|
+
* DomainsWHOISApi - factory interface
|
|
5071
|
+
* @export
|
|
5072
|
+
*/
|
|
5073
|
+
export const DomainsWHOISApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
5074
|
+
const localVarFp = DomainsWHOISApiFp(configuration)
|
|
5075
|
+
return {
|
|
5076
|
+
/**
|
|
5077
|
+
* This endpoint creates WHOIS contact profile.
|
|
5078
|
+
* @summary Create WHOIS profile
|
|
5079
|
+
* @param {DomainsV1WHOISStoreRequest} domainsV1WHOISStoreRequest
|
|
5080
|
+
* @param {*} [options] Override http request option.
|
|
5081
|
+
* @throws {RequiredError}
|
|
5082
|
+
*/
|
|
5083
|
+
createWHOISProfileV1(domainsV1WHOISStoreRequest: DomainsV1WHOISStoreRequest, options?: RawAxiosRequestConfig): AxiosPromise<DomainsV1WHOISProfileResource> {
|
|
5084
|
+
return localVarFp.createWHOISProfileV1(domainsV1WHOISStoreRequest, options).then((request) => request(axios, basePath));
|
|
5085
|
+
},
|
|
5086
|
+
/**
|
|
5087
|
+
* This endpoint deletes WHOIS contact profile.
|
|
5088
|
+
* @summary Delete WHOIS profile
|
|
5089
|
+
* @param {number} whoisId WHOIS ID
|
|
5090
|
+
* @param {*} [options] Override http request option.
|
|
5091
|
+
* @throws {RequiredError}
|
|
5092
|
+
*/
|
|
5093
|
+
deleteWHOISProfileV1(whoisId: number, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
|
|
5094
|
+
return localVarFp.deleteWHOISProfileV1(whoisId, options).then((request) => request(axios, basePath));
|
|
5095
|
+
},
|
|
5096
|
+
/**
|
|
5097
|
+
* This endpoint retrieves a list of WHOIS contact profiles.
|
|
5098
|
+
* @summary Get WHOIS profile list
|
|
5099
|
+
* @param {string} [tld] Filter by TLD (without trailing dot)
|
|
5100
|
+
* @param {*} [options] Override http request option.
|
|
5101
|
+
* @throws {RequiredError}
|
|
5102
|
+
*/
|
|
5103
|
+
getWHOISProfileListV1(tld?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<DomainsV1WHOISProfileResource>> {
|
|
5104
|
+
return localVarFp.getWHOISProfileListV1(tld, options).then((request) => request(axios, basePath));
|
|
5105
|
+
},
|
|
5106
|
+
/**
|
|
5107
|
+
* This endpoint retrieves a domain list where provided WHOIS contact profile is used.
|
|
5108
|
+
* @summary Get WHOIS profile usage
|
|
5109
|
+
* @param {number} whoisId WHOIS ID
|
|
5110
|
+
* @param {*} [options] Override http request option.
|
|
5111
|
+
* @throws {RequiredError}
|
|
5112
|
+
*/
|
|
5113
|
+
getWHOISProfileUsageV1(whoisId: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<string>> {
|
|
5114
|
+
return localVarFp.getWHOISProfileUsageV1(whoisId, options).then((request) => request(axios, basePath));
|
|
5115
|
+
},
|
|
5116
|
+
/**
|
|
5117
|
+
* This endpoint retrieves a WHOIS contact profile.
|
|
5118
|
+
* @summary Get WHOIS profile
|
|
5119
|
+
* @param {number} whoisId WHOIS ID
|
|
5120
|
+
* @param {*} [options] Override http request option.
|
|
5121
|
+
* @throws {RequiredError}
|
|
5122
|
+
*/
|
|
5123
|
+
getWHOISProfileV1(whoisId: number, options?: RawAxiosRequestConfig): AxiosPromise<DomainsV1WHOISProfileResource> {
|
|
5124
|
+
return localVarFp.getWHOISProfileV1(whoisId, options).then((request) => request(axios, basePath));
|
|
5125
|
+
},
|
|
5126
|
+
};
|
|
5127
|
+
};
|
|
5128
|
+
|
|
5129
|
+
/**
|
|
5130
|
+
* DomainsWHOISApi - object-oriented interface
|
|
5131
|
+
* @export
|
|
5132
|
+
* @class DomainsWHOISApi
|
|
5133
|
+
* @extends {BaseAPI}
|
|
5134
|
+
*/
|
|
5135
|
+
export class DomainsWHOISApi extends BaseAPI {
|
|
5136
|
+
/**
|
|
5137
|
+
* This endpoint creates WHOIS contact profile.
|
|
5138
|
+
* @summary Create WHOIS profile
|
|
5139
|
+
* @param {DomainsV1WHOISStoreRequest} domainsV1WHOISStoreRequest
|
|
5140
|
+
* @param {*} [options] Override http request option.
|
|
5141
|
+
* @throws {RequiredError}
|
|
5142
|
+
* @memberof DomainsWHOISApi
|
|
5143
|
+
*/
|
|
5144
|
+
public createWHOISProfileV1(domainsV1WHOISStoreRequest: DomainsV1WHOISStoreRequest, options?: RawAxiosRequestConfig) {
|
|
5145
|
+
return DomainsWHOISApiFp(this.configuration).createWHOISProfileV1(domainsV1WHOISStoreRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5146
|
+
}
|
|
5147
|
+
|
|
5148
|
+
/**
|
|
5149
|
+
* This endpoint deletes WHOIS contact profile.
|
|
5150
|
+
* @summary Delete WHOIS profile
|
|
5151
|
+
* @param {number} whoisId WHOIS ID
|
|
5152
|
+
* @param {*} [options] Override http request option.
|
|
5153
|
+
* @throws {RequiredError}
|
|
5154
|
+
* @memberof DomainsWHOISApi
|
|
5155
|
+
*/
|
|
5156
|
+
public deleteWHOISProfileV1(whoisId: number, options?: RawAxiosRequestConfig) {
|
|
5157
|
+
return DomainsWHOISApiFp(this.configuration).deleteWHOISProfileV1(whoisId, options).then((request) => request(this.axios, this.basePath));
|
|
5158
|
+
}
|
|
5159
|
+
|
|
5160
|
+
/**
|
|
5161
|
+
* This endpoint retrieves a list of WHOIS contact profiles.
|
|
5162
|
+
* @summary Get WHOIS profile list
|
|
5163
|
+
* @param {string} [tld] Filter by TLD (without trailing dot)
|
|
5164
|
+
* @param {*} [options] Override http request option.
|
|
5165
|
+
* @throws {RequiredError}
|
|
5166
|
+
* @memberof DomainsWHOISApi
|
|
5167
|
+
*/
|
|
5168
|
+
public getWHOISProfileListV1(tld?: string, options?: RawAxiosRequestConfig) {
|
|
5169
|
+
return DomainsWHOISApiFp(this.configuration).getWHOISProfileListV1(tld, options).then((request) => request(this.axios, this.basePath));
|
|
5170
|
+
}
|
|
5171
|
+
|
|
5172
|
+
/**
|
|
5173
|
+
* This endpoint retrieves a domain list where provided WHOIS contact profile is used.
|
|
5174
|
+
* @summary Get WHOIS profile usage
|
|
5175
|
+
* @param {number} whoisId WHOIS ID
|
|
5176
|
+
* @param {*} [options] Override http request option.
|
|
5177
|
+
* @throws {RequiredError}
|
|
5178
|
+
* @memberof DomainsWHOISApi
|
|
5179
|
+
*/
|
|
5180
|
+
public getWHOISProfileUsageV1(whoisId: number, options?: RawAxiosRequestConfig) {
|
|
5181
|
+
return DomainsWHOISApiFp(this.configuration).getWHOISProfileUsageV1(whoisId, options).then((request) => request(this.axios, this.basePath));
|
|
5182
|
+
}
|
|
5183
|
+
|
|
5184
|
+
/**
|
|
5185
|
+
* This endpoint retrieves a WHOIS contact profile.
|
|
5186
|
+
* @summary Get WHOIS profile
|
|
5187
|
+
* @param {number} whoisId WHOIS ID
|
|
5188
|
+
* @param {*} [options] Override http request option.
|
|
5189
|
+
* @throws {RequiredError}
|
|
5190
|
+
* @memberof DomainsWHOISApi
|
|
5191
|
+
*/
|
|
5192
|
+
public getWHOISProfileV1(whoisId: number, options?: RawAxiosRequestConfig) {
|
|
5193
|
+
return DomainsWHOISApiFp(this.configuration).getWHOISProfileV1(whoisId, options).then((request) => request(this.axios, this.basePath));
|
|
3463
5194
|
}
|
|
3464
5195
|
}
|
|
3465
5196
|
|