hostinger-api-sdk 0.0.9 → 0.0.11
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 +2038 -238
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +1434 -325
- package/dist/api.js +1371 -140
- 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 +1434 -325
- package/dist/esm/api.js +1342 -120
- 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/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.68
|
|
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
|
|
@@ -20,6 +20,88 @@ import type { RequestArgs } from './base';
|
|
|
20
20
|
// @ts-ignore
|
|
21
21
|
import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base';
|
|
22
22
|
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface BillingCreateNewServiceOrderV1422Response
|
|
27
|
+
*/
|
|
28
|
+
export interface BillingCreateNewServiceOrderV1422Response {
|
|
29
|
+
/**
|
|
30
|
+
* Validation error message
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof BillingCreateNewServiceOrderV1422Response
|
|
33
|
+
*/
|
|
34
|
+
'message': string;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {BillingCreateNewServiceOrderV1422ResponseErrors}
|
|
38
|
+
* @memberof BillingCreateNewServiceOrderV1422Response
|
|
39
|
+
*/
|
|
40
|
+
'errors': BillingCreateNewServiceOrderV1422ResponseErrors;
|
|
41
|
+
/**
|
|
42
|
+
* Request correlation ID
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof BillingCreateNewServiceOrderV1422Response
|
|
45
|
+
*/
|
|
46
|
+
'correlation_id': string;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Object of detailed errors for each field
|
|
50
|
+
* @export
|
|
51
|
+
* @interface BillingCreateNewServiceOrderV1422ResponseErrors
|
|
52
|
+
*/
|
|
53
|
+
export interface BillingCreateNewServiceOrderV1422ResponseErrors {
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {Array<any>}
|
|
57
|
+
* @memberof BillingCreateNewServiceOrderV1422ResponseErrors
|
|
58
|
+
*/
|
|
59
|
+
'field_1': Array<any>;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {Array<any>}
|
|
63
|
+
* @memberof BillingCreateNewServiceOrderV1422ResponseErrors
|
|
64
|
+
*/
|
|
65
|
+
'field_2': Array<any>;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @export
|
|
70
|
+
* @interface BillingGetCatalogItemListV1401Response
|
|
71
|
+
*/
|
|
72
|
+
export interface BillingGetCatalogItemListV1401Response {
|
|
73
|
+
/**
|
|
74
|
+
* Message of the error
|
|
75
|
+
* @type {string}
|
|
76
|
+
* @memberof BillingGetCatalogItemListV1401Response
|
|
77
|
+
*/
|
|
78
|
+
'message': string;
|
|
79
|
+
/**
|
|
80
|
+
* Request correlation ID
|
|
81
|
+
* @type {string}
|
|
82
|
+
* @memberof BillingGetCatalogItemListV1401Response
|
|
83
|
+
*/
|
|
84
|
+
'correlation_id': string;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* @export
|
|
89
|
+
* @interface BillingGetCatalogItemListV1500Response
|
|
90
|
+
*/
|
|
91
|
+
export interface BillingGetCatalogItemListV1500Response {
|
|
92
|
+
/**
|
|
93
|
+
* Message of the error
|
|
94
|
+
* @type {string}
|
|
95
|
+
* @memberof BillingGetCatalogItemListV1500Response
|
|
96
|
+
*/
|
|
97
|
+
'message': string;
|
|
98
|
+
/**
|
|
99
|
+
* Request correlation ID
|
|
100
|
+
* @type {string}
|
|
101
|
+
* @memberof BillingGetCatalogItemListV1500Response
|
|
102
|
+
*/
|
|
103
|
+
'correlation_id': string;
|
|
104
|
+
}
|
|
23
105
|
/**
|
|
24
106
|
*
|
|
25
107
|
* @export
|
|
@@ -279,7 +361,7 @@ export interface BillingV1OrderStoreRequest {
|
|
|
279
361
|
*/
|
|
280
362
|
'items': Array<BillingV1OrderStoreRequestItemsInner>;
|
|
281
363
|
/**
|
|
282
|
-
*
|
|
364
|
+
* Discount coupon codes
|
|
283
365
|
* @type {Array<any>}
|
|
284
366
|
* @memberof BillingV1OrderStoreRequest
|
|
285
367
|
*/
|
|
@@ -304,6 +386,25 @@ export interface BillingV1OrderStoreRequestItemsInner {
|
|
|
304
386
|
*/
|
|
305
387
|
'quantity': number;
|
|
306
388
|
}
|
|
389
|
+
/**
|
|
390
|
+
*
|
|
391
|
+
* @export
|
|
392
|
+
* @interface BillingV1OrderVirtualMachineOrderResource
|
|
393
|
+
*/
|
|
394
|
+
export interface BillingV1OrderVirtualMachineOrderResource {
|
|
395
|
+
/**
|
|
396
|
+
*
|
|
397
|
+
* @type {BillingV1OrderOrderResource}
|
|
398
|
+
* @memberof BillingV1OrderVirtualMachineOrderResource
|
|
399
|
+
*/
|
|
400
|
+
'order': BillingV1OrderOrderResource;
|
|
401
|
+
/**
|
|
402
|
+
*
|
|
403
|
+
* @type {VPSV1VirtualMachineVirtualMachineResource}
|
|
404
|
+
* @memberof BillingV1OrderVirtualMachineOrderResource
|
|
405
|
+
*/
|
|
406
|
+
'virtual_machine': VPSV1VirtualMachineVirtualMachineResource;
|
|
407
|
+
}
|
|
307
408
|
/**
|
|
308
409
|
*
|
|
309
410
|
* @export
|
|
@@ -488,25 +589,6 @@ export const BillingV1SubscriptionSubscriptionResourceStatusEnum = {
|
|
|
488
589
|
|
|
489
590
|
export type BillingV1SubscriptionSubscriptionResourceStatusEnum = typeof BillingV1SubscriptionSubscriptionResourceStatusEnum[keyof typeof BillingV1SubscriptionSubscriptionResourceStatusEnum];
|
|
490
591
|
|
|
491
|
-
/**
|
|
492
|
-
*
|
|
493
|
-
* @export
|
|
494
|
-
* @interface CommonSchemaErrorResponseSchema
|
|
495
|
-
*/
|
|
496
|
-
export interface CommonSchemaErrorResponseSchema {
|
|
497
|
-
/**
|
|
498
|
-
*
|
|
499
|
-
* @type {string}
|
|
500
|
-
* @memberof CommonSchemaErrorResponseSchema
|
|
501
|
-
*/
|
|
502
|
-
'message': string;
|
|
503
|
-
/**
|
|
504
|
-
*
|
|
505
|
-
* @type {string}
|
|
506
|
-
* @memberof CommonSchemaErrorResponseSchema
|
|
507
|
-
*/
|
|
508
|
-
'correlation_id': string;
|
|
509
|
-
}
|
|
510
592
|
/**
|
|
511
593
|
*
|
|
512
594
|
* @export
|
|
@@ -532,69 +614,6 @@ export interface CommonSchemaPaginationMetaSchema {
|
|
|
532
614
|
*/
|
|
533
615
|
'total': number;
|
|
534
616
|
}
|
|
535
|
-
/**
|
|
536
|
-
*
|
|
537
|
-
* @export
|
|
538
|
-
* @interface CommonSchemaUnauthorizedResponseSchema
|
|
539
|
-
*/
|
|
540
|
-
export interface CommonSchemaUnauthorizedResponseSchema {
|
|
541
|
-
/**
|
|
542
|
-
*
|
|
543
|
-
* @type {string}
|
|
544
|
-
* @memberof CommonSchemaUnauthorizedResponseSchema
|
|
545
|
-
*/
|
|
546
|
-
'message': string;
|
|
547
|
-
/**
|
|
548
|
-
*
|
|
549
|
-
* @type {string}
|
|
550
|
-
* @memberof CommonSchemaUnauthorizedResponseSchema
|
|
551
|
-
*/
|
|
552
|
-
'correlation_id': string;
|
|
553
|
-
}
|
|
554
|
-
/**
|
|
555
|
-
*
|
|
556
|
-
* @export
|
|
557
|
-
* @interface CommonSchemaUnprocessableContentResponseSchema
|
|
558
|
-
*/
|
|
559
|
-
export interface CommonSchemaUnprocessableContentResponseSchema {
|
|
560
|
-
/**
|
|
561
|
-
* Validation error message
|
|
562
|
-
* @type {string}
|
|
563
|
-
* @memberof CommonSchemaUnprocessableContentResponseSchema
|
|
564
|
-
*/
|
|
565
|
-
'message': string;
|
|
566
|
-
/**
|
|
567
|
-
*
|
|
568
|
-
* @type {CommonSchemaUnprocessableContentResponseSchemaErrors}
|
|
569
|
-
* @memberof CommonSchemaUnprocessableContentResponseSchema
|
|
570
|
-
*/
|
|
571
|
-
'errors': CommonSchemaUnprocessableContentResponseSchemaErrors;
|
|
572
|
-
/**
|
|
573
|
-
*
|
|
574
|
-
* @type {string}
|
|
575
|
-
* @memberof CommonSchemaUnprocessableContentResponseSchema
|
|
576
|
-
*/
|
|
577
|
-
'correlation_id': string;
|
|
578
|
-
}
|
|
579
|
-
/**
|
|
580
|
-
*
|
|
581
|
-
* @export
|
|
582
|
-
* @interface CommonSchemaUnprocessableContentResponseSchemaErrors
|
|
583
|
-
*/
|
|
584
|
-
export interface CommonSchemaUnprocessableContentResponseSchemaErrors {
|
|
585
|
-
/**
|
|
586
|
-
*
|
|
587
|
-
* @type {Array<any>}
|
|
588
|
-
* @memberof CommonSchemaUnprocessableContentResponseSchemaErrors
|
|
589
|
-
*/
|
|
590
|
-
'field_1': Array<any>;
|
|
591
|
-
/**
|
|
592
|
-
*
|
|
593
|
-
* @type {Array<any>}
|
|
594
|
-
* @memberof CommonSchemaUnprocessableContentResponseSchemaErrors
|
|
595
|
-
*/
|
|
596
|
-
'field_2': Array<any>;
|
|
597
|
-
}
|
|
598
617
|
/**
|
|
599
618
|
*
|
|
600
619
|
* @export
|
|
@@ -889,19 +908,19 @@ export interface DNSV1ZoneUpdateRequestZoneInnerRecordsInner {
|
|
|
889
908
|
*/
|
|
890
909
|
export interface DomainsV1AvailabilityAvailabilityRequest {
|
|
891
910
|
/**
|
|
892
|
-
*
|
|
911
|
+
* Domain name (without TLD)
|
|
893
912
|
* @type {string}
|
|
894
913
|
* @memberof DomainsV1AvailabilityAvailabilityRequest
|
|
895
914
|
*/
|
|
896
915
|
'domain': string;
|
|
897
916
|
/**
|
|
898
|
-
*
|
|
917
|
+
* TLDs list
|
|
899
918
|
* @type {Array<string>}
|
|
900
919
|
* @memberof DomainsV1AvailabilityAvailabilityRequest
|
|
901
920
|
*/
|
|
902
921
|
'tlds': Array<string>;
|
|
903
922
|
/**
|
|
904
|
-
*
|
|
923
|
+
* Should response include alternatives
|
|
905
924
|
* @type {boolean}
|
|
906
925
|
* @memberof DomainsV1AvailabilityAvailabilityRequest
|
|
907
926
|
*/
|
|
@@ -920,24 +939,182 @@ export interface DomainsV1AvailabilityAvailabilityResource {
|
|
|
920
939
|
*/
|
|
921
940
|
'domain': string | null;
|
|
922
941
|
/**
|
|
923
|
-
*
|
|
942
|
+
* `true` if domain is available for registration
|
|
924
943
|
* @type {boolean}
|
|
925
944
|
* @memberof DomainsV1AvailabilityAvailabilityResource
|
|
926
945
|
*/
|
|
927
946
|
'is_available': boolean;
|
|
928
947
|
/**
|
|
929
|
-
*
|
|
948
|
+
* `true` if domain is provided as an alternative
|
|
930
949
|
* @type {boolean}
|
|
931
950
|
* @memberof DomainsV1AvailabilityAvailabilityResource
|
|
932
951
|
*/
|
|
933
952
|
'is_alternative': boolean;
|
|
934
953
|
/**
|
|
935
|
-
*
|
|
954
|
+
* Special rules and/or restrictions applied for registering TLD
|
|
936
955
|
* @type {string}
|
|
937
956
|
* @memberof DomainsV1AvailabilityAvailabilityResource
|
|
938
957
|
*/
|
|
939
958
|
'restriction': string | null;
|
|
940
959
|
}
|
|
960
|
+
/**
|
|
961
|
+
*
|
|
962
|
+
* @export
|
|
963
|
+
* @interface DomainsV1DomainDomainExtendedResource
|
|
964
|
+
*/
|
|
965
|
+
export interface DomainsV1DomainDomainExtendedResource {
|
|
966
|
+
/**
|
|
967
|
+
* Domain name
|
|
968
|
+
* @type {string}
|
|
969
|
+
* @memberof DomainsV1DomainDomainExtendedResource
|
|
970
|
+
*/
|
|
971
|
+
'domain': string;
|
|
972
|
+
/**
|
|
973
|
+
* Status of the domain
|
|
974
|
+
* @type {string}
|
|
975
|
+
* @memberof DomainsV1DomainDomainExtendedResource
|
|
976
|
+
*/
|
|
977
|
+
'status': DomainsV1DomainDomainExtendedResourceStatusEnum;
|
|
978
|
+
/**
|
|
979
|
+
*
|
|
980
|
+
* @type {string}
|
|
981
|
+
* @memberof DomainsV1DomainDomainExtendedResource
|
|
982
|
+
*/
|
|
983
|
+
'message': string | null;
|
|
984
|
+
/**
|
|
985
|
+
* Is privacy protection allowed for the domain
|
|
986
|
+
* @type {boolean}
|
|
987
|
+
* @memberof DomainsV1DomainDomainExtendedResource
|
|
988
|
+
*/
|
|
989
|
+
'is_privacy_protection_allowed': boolean;
|
|
990
|
+
/**
|
|
991
|
+
* Is privacy protection enabled for the domain
|
|
992
|
+
* @type {boolean}
|
|
993
|
+
* @memberof DomainsV1DomainDomainExtendedResource
|
|
994
|
+
*/
|
|
995
|
+
'is_privacy_protected': boolean;
|
|
996
|
+
/**
|
|
997
|
+
* Is domain allowed to be locked
|
|
998
|
+
* @type {boolean}
|
|
999
|
+
* @memberof DomainsV1DomainDomainExtendedResource
|
|
1000
|
+
*/
|
|
1001
|
+
'is_lockable': boolean;
|
|
1002
|
+
/**
|
|
1003
|
+
* Is domain locked
|
|
1004
|
+
* @type {boolean}
|
|
1005
|
+
* @memberof DomainsV1DomainDomainExtendedResource
|
|
1006
|
+
*/
|
|
1007
|
+
'is_locked': boolean;
|
|
1008
|
+
/**
|
|
1009
|
+
*
|
|
1010
|
+
* @type {DomainsV1DomainDomainExtendedResourceNameServers}
|
|
1011
|
+
* @memberof DomainsV1DomainDomainExtendedResource
|
|
1012
|
+
*/
|
|
1013
|
+
'name_servers': DomainsV1DomainDomainExtendedResourceNameServers;
|
|
1014
|
+
/**
|
|
1015
|
+
* Child name servers
|
|
1016
|
+
* @type {Array<Array<string>>}
|
|
1017
|
+
* @memberof DomainsV1DomainDomainExtendedResource
|
|
1018
|
+
*/
|
|
1019
|
+
'child_name_servers': Array<Array<string>>;
|
|
1020
|
+
/**
|
|
1021
|
+
*
|
|
1022
|
+
* @type {DomainsV1DomainDomainExtendedResourceDomainContacts}
|
|
1023
|
+
* @memberof DomainsV1DomainDomainExtendedResource
|
|
1024
|
+
*/
|
|
1025
|
+
'domain_contacts': DomainsV1DomainDomainExtendedResourceDomainContacts;
|
|
1026
|
+
/**
|
|
1027
|
+
*
|
|
1028
|
+
* @type {string}
|
|
1029
|
+
* @memberof DomainsV1DomainDomainExtendedResource
|
|
1030
|
+
*/
|
|
1031
|
+
'created_at': string;
|
|
1032
|
+
/**
|
|
1033
|
+
*
|
|
1034
|
+
* @type {string}
|
|
1035
|
+
* @memberof DomainsV1DomainDomainExtendedResource
|
|
1036
|
+
*/
|
|
1037
|
+
'updated_at': string;
|
|
1038
|
+
/**
|
|
1039
|
+
*
|
|
1040
|
+
* @type {string}
|
|
1041
|
+
* @memberof DomainsV1DomainDomainExtendedResource
|
|
1042
|
+
*/
|
|
1043
|
+
'60_days_lock_expires_at': string | null;
|
|
1044
|
+
/**
|
|
1045
|
+
*
|
|
1046
|
+
* @type {string}
|
|
1047
|
+
* @memberof DomainsV1DomainDomainExtendedResource
|
|
1048
|
+
*/
|
|
1049
|
+
'registered_at': string | null;
|
|
1050
|
+
/**
|
|
1051
|
+
*
|
|
1052
|
+
* @type {string}
|
|
1053
|
+
* @memberof DomainsV1DomainDomainExtendedResource
|
|
1054
|
+
*/
|
|
1055
|
+
'expires_at': string | null;
|
|
1056
|
+
}
|
|
1057
|
+
|
|
1058
|
+
export const DomainsV1DomainDomainExtendedResourceStatusEnum = {
|
|
1059
|
+
Active: 'active',
|
|
1060
|
+
PendingSetup: 'pending_setup',
|
|
1061
|
+
Expired: 'expired',
|
|
1062
|
+
Requested: 'requested',
|
|
1063
|
+
PendingVerification: 'pending_verification'
|
|
1064
|
+
} as const;
|
|
1065
|
+
|
|
1066
|
+
export type DomainsV1DomainDomainExtendedResourceStatusEnum = typeof DomainsV1DomainDomainExtendedResourceStatusEnum[keyof typeof DomainsV1DomainDomainExtendedResourceStatusEnum];
|
|
1067
|
+
|
|
1068
|
+
/**
|
|
1069
|
+
* WHOIS profiles
|
|
1070
|
+
* @export
|
|
1071
|
+
* @interface DomainsV1DomainDomainExtendedResourceDomainContacts
|
|
1072
|
+
*/
|
|
1073
|
+
export interface DomainsV1DomainDomainExtendedResourceDomainContacts {
|
|
1074
|
+
/**
|
|
1075
|
+
* Admin WHOIS profile ID
|
|
1076
|
+
* @type {number}
|
|
1077
|
+
* @memberof DomainsV1DomainDomainExtendedResourceDomainContacts
|
|
1078
|
+
*/
|
|
1079
|
+
'admin_id': number;
|
|
1080
|
+
/**
|
|
1081
|
+
* Owner WHOIS profile ID
|
|
1082
|
+
* @type {number}
|
|
1083
|
+
* @memberof DomainsV1DomainDomainExtendedResourceDomainContacts
|
|
1084
|
+
*/
|
|
1085
|
+
'owner_id': number;
|
|
1086
|
+
/**
|
|
1087
|
+
* Billing WHOIS profile ID
|
|
1088
|
+
* @type {number}
|
|
1089
|
+
* @memberof DomainsV1DomainDomainExtendedResourceDomainContacts
|
|
1090
|
+
*/
|
|
1091
|
+
'billing_id': number;
|
|
1092
|
+
/**
|
|
1093
|
+
* Technician WHOIS profile ID
|
|
1094
|
+
* @type {number}
|
|
1095
|
+
* @memberof DomainsV1DomainDomainExtendedResourceDomainContacts
|
|
1096
|
+
*/
|
|
1097
|
+
'tech_id': number;
|
|
1098
|
+
}
|
|
1099
|
+
/**
|
|
1100
|
+
* Name servers
|
|
1101
|
+
* @export
|
|
1102
|
+
* @interface DomainsV1DomainDomainExtendedResourceNameServers
|
|
1103
|
+
*/
|
|
1104
|
+
export interface DomainsV1DomainDomainExtendedResourceNameServers {
|
|
1105
|
+
/**
|
|
1106
|
+
* Name server 1
|
|
1107
|
+
* @type {string}
|
|
1108
|
+
* @memberof DomainsV1DomainDomainExtendedResourceNameServers
|
|
1109
|
+
*/
|
|
1110
|
+
'ns1': string;
|
|
1111
|
+
/**
|
|
1112
|
+
* Name server 2
|
|
1113
|
+
* @type {string}
|
|
1114
|
+
* @memberof DomainsV1DomainDomainExtendedResourceNameServers
|
|
1115
|
+
*/
|
|
1116
|
+
'ns2': string;
|
|
1117
|
+
}
|
|
941
1118
|
/**
|
|
942
1119
|
*
|
|
943
1120
|
* @export
|
|
@@ -955,7 +1132,7 @@ export interface DomainsV1DomainDomainResource {
|
|
|
955
1132
|
* @type {string}
|
|
956
1133
|
* @memberof DomainsV1DomainDomainResource
|
|
957
1134
|
*/
|
|
958
|
-
'
|
|
1135
|
+
'domain': string | null;
|
|
959
1136
|
/**
|
|
960
1137
|
*
|
|
961
1138
|
* @type {string}
|
|
@@ -991,7 +1168,9 @@ export type DomainsV1DomainDomainResourceTypeEnum = typeof DomainsV1DomainDomain
|
|
|
991
1168
|
export const DomainsV1DomainDomainResourceStatusEnum = {
|
|
992
1169
|
Active: 'active',
|
|
993
1170
|
PendingSetup: 'pending_setup',
|
|
994
|
-
Expired: 'expired'
|
|
1171
|
+
Expired: 'expired',
|
|
1172
|
+
Requested: 'requested',
|
|
1173
|
+
PendingVerification: 'pending_verification'
|
|
995
1174
|
} as const;
|
|
996
1175
|
|
|
997
1176
|
export type DomainsV1DomainDomainResourceStatusEnum = typeof DomainsV1DomainDomainResourceStatusEnum[keyof typeof DomainsV1DomainDomainResourceStatusEnum];
|
|
@@ -999,21 +1178,312 @@ export type DomainsV1DomainDomainResourceStatusEnum = typeof DomainsV1DomainDoma
|
|
|
999
1178
|
/**
|
|
1000
1179
|
*
|
|
1001
1180
|
* @export
|
|
1002
|
-
* @interface
|
|
1181
|
+
* @interface DomainsV1ForwardingForwardingResource
|
|
1003
1182
|
*/
|
|
1004
|
-
export interface
|
|
1183
|
+
export interface DomainsV1ForwardingForwardingResource {
|
|
1005
1184
|
/**
|
|
1006
|
-
*
|
|
1007
|
-
* @type {
|
|
1008
|
-
* @memberof
|
|
1185
|
+
* Domain name
|
|
1186
|
+
* @type {string}
|
|
1187
|
+
* @memberof DomainsV1ForwardingForwardingResource
|
|
1009
1188
|
*/
|
|
1010
|
-
'
|
|
1189
|
+
'domain': string | null;
|
|
1190
|
+
/**
|
|
1191
|
+
* Redirect type
|
|
1192
|
+
* @type {string}
|
|
1193
|
+
* @memberof DomainsV1ForwardingForwardingResource
|
|
1194
|
+
*/
|
|
1195
|
+
'redirect_type': DomainsV1ForwardingForwardingResourceRedirectTypeEnum;
|
|
1196
|
+
/**
|
|
1197
|
+
* URL domain is forwarded to
|
|
1198
|
+
* @type {string}
|
|
1199
|
+
* @memberof DomainsV1ForwardingForwardingResource
|
|
1200
|
+
*/
|
|
1201
|
+
'redirect_url': string;
|
|
1011
1202
|
/**
|
|
1012
1203
|
*
|
|
1013
|
-
* @type {
|
|
1014
|
-
* @memberof
|
|
1204
|
+
* @type {string}
|
|
1205
|
+
* @memberof DomainsV1ForwardingForwardingResource
|
|
1015
1206
|
*/
|
|
1016
|
-
'
|
|
1207
|
+
'created_at': string;
|
|
1208
|
+
/**
|
|
1209
|
+
*
|
|
1210
|
+
* @type {string}
|
|
1211
|
+
* @memberof DomainsV1ForwardingForwardingResource
|
|
1212
|
+
*/
|
|
1213
|
+
'updated_at': string | null;
|
|
1214
|
+
}
|
|
1215
|
+
|
|
1216
|
+
export const DomainsV1ForwardingForwardingResourceRedirectTypeEnum = {
|
|
1217
|
+
_301: '301',
|
|
1218
|
+
_302: '302'
|
|
1219
|
+
} as const;
|
|
1220
|
+
|
|
1221
|
+
export type DomainsV1ForwardingForwardingResourceRedirectTypeEnum = typeof DomainsV1ForwardingForwardingResourceRedirectTypeEnum[keyof typeof DomainsV1ForwardingForwardingResourceRedirectTypeEnum];
|
|
1222
|
+
|
|
1223
|
+
/**
|
|
1224
|
+
*
|
|
1225
|
+
* @export
|
|
1226
|
+
* @interface DomainsV1ForwardingStoreRequest
|
|
1227
|
+
*/
|
|
1228
|
+
export interface DomainsV1ForwardingStoreRequest {
|
|
1229
|
+
/**
|
|
1230
|
+
* Domain name
|
|
1231
|
+
* @type {string}
|
|
1232
|
+
* @memberof DomainsV1ForwardingStoreRequest
|
|
1233
|
+
*/
|
|
1234
|
+
'domain': string;
|
|
1235
|
+
/**
|
|
1236
|
+
* Redirect type
|
|
1237
|
+
* @type {string}
|
|
1238
|
+
* @memberof DomainsV1ForwardingStoreRequest
|
|
1239
|
+
*/
|
|
1240
|
+
'redirect_type': DomainsV1ForwardingStoreRequestRedirectTypeEnum;
|
|
1241
|
+
/**
|
|
1242
|
+
* URL to forward domain to
|
|
1243
|
+
* @type {string}
|
|
1244
|
+
* @memberof DomainsV1ForwardingStoreRequest
|
|
1245
|
+
*/
|
|
1246
|
+
'redirect_url': string;
|
|
1247
|
+
}
|
|
1248
|
+
|
|
1249
|
+
export const DomainsV1ForwardingStoreRequestRedirectTypeEnum = {
|
|
1250
|
+
_301: '301',
|
|
1251
|
+
_302: '302'
|
|
1252
|
+
} as const;
|
|
1253
|
+
|
|
1254
|
+
export type DomainsV1ForwardingStoreRequestRedirectTypeEnum = typeof DomainsV1ForwardingStoreRequestRedirectTypeEnum[keyof typeof DomainsV1ForwardingStoreRequestRedirectTypeEnum];
|
|
1255
|
+
|
|
1256
|
+
/**
|
|
1257
|
+
*
|
|
1258
|
+
* @export
|
|
1259
|
+
* @interface DomainsV1PortfolioPurchaseRequest
|
|
1260
|
+
*/
|
|
1261
|
+
export interface DomainsV1PortfolioPurchaseRequest {
|
|
1262
|
+
/**
|
|
1263
|
+
* Domain name
|
|
1264
|
+
* @type {string}
|
|
1265
|
+
* @memberof DomainsV1PortfolioPurchaseRequest
|
|
1266
|
+
*/
|
|
1267
|
+
'domain': string;
|
|
1268
|
+
/**
|
|
1269
|
+
* Catalog price item ID
|
|
1270
|
+
* @type {string}
|
|
1271
|
+
* @memberof DomainsV1PortfolioPurchaseRequest
|
|
1272
|
+
*/
|
|
1273
|
+
'item_id': string;
|
|
1274
|
+
/**
|
|
1275
|
+
* Payment method ID, default will be used if not provided
|
|
1276
|
+
* @type {number}
|
|
1277
|
+
* @memberof DomainsV1PortfolioPurchaseRequest
|
|
1278
|
+
*/
|
|
1279
|
+
'payment_method_id': number;
|
|
1280
|
+
/**
|
|
1281
|
+
*
|
|
1282
|
+
* @type {DomainsV1PortfolioPurchaseRequestDomainContacts}
|
|
1283
|
+
* @memberof DomainsV1PortfolioPurchaseRequest
|
|
1284
|
+
*/
|
|
1285
|
+
'domain_contacts': DomainsV1PortfolioPurchaseRequestDomainContacts;
|
|
1286
|
+
/**
|
|
1287
|
+
* Additional registration data, possible values depends on TLD
|
|
1288
|
+
* @type {object}
|
|
1289
|
+
* @memberof DomainsV1PortfolioPurchaseRequest
|
|
1290
|
+
*/
|
|
1291
|
+
'additional_details': object;
|
|
1292
|
+
/**
|
|
1293
|
+
* Discount coupon codes
|
|
1294
|
+
* @type {Array<any>}
|
|
1295
|
+
* @memberof DomainsV1PortfolioPurchaseRequest
|
|
1296
|
+
*/
|
|
1297
|
+
'coupons': Array<any>;
|
|
1298
|
+
}
|
|
1299
|
+
/**
|
|
1300
|
+
* Domain contact information
|
|
1301
|
+
* @export
|
|
1302
|
+
* @interface DomainsV1PortfolioPurchaseRequestDomainContacts
|
|
1303
|
+
*/
|
|
1304
|
+
export interface DomainsV1PortfolioPurchaseRequestDomainContacts {
|
|
1305
|
+
/**
|
|
1306
|
+
* Owner contact WHOIS record ID
|
|
1307
|
+
* @type {number}
|
|
1308
|
+
* @memberof DomainsV1PortfolioPurchaseRequestDomainContacts
|
|
1309
|
+
*/
|
|
1310
|
+
'owner_id': number;
|
|
1311
|
+
/**
|
|
1312
|
+
* Administrative contact WHOIS record ID
|
|
1313
|
+
* @type {number}
|
|
1314
|
+
* @memberof DomainsV1PortfolioPurchaseRequestDomainContacts
|
|
1315
|
+
*/
|
|
1316
|
+
'admin_id': number;
|
|
1317
|
+
/**
|
|
1318
|
+
* Billing contact WHOIS record ID
|
|
1319
|
+
* @type {number}
|
|
1320
|
+
* @memberof DomainsV1PortfolioPurchaseRequestDomainContacts
|
|
1321
|
+
*/
|
|
1322
|
+
'billing_id': number;
|
|
1323
|
+
/**
|
|
1324
|
+
* Technical contact WHOIS record ID
|
|
1325
|
+
* @type {number}
|
|
1326
|
+
* @memberof DomainsV1PortfolioPurchaseRequestDomainContacts
|
|
1327
|
+
*/
|
|
1328
|
+
'tech_id': number;
|
|
1329
|
+
}
|
|
1330
|
+
/**
|
|
1331
|
+
*
|
|
1332
|
+
* @export
|
|
1333
|
+
* @interface DomainsV1PortfolioUpdateNameserversRequest
|
|
1334
|
+
*/
|
|
1335
|
+
export interface DomainsV1PortfolioUpdateNameserversRequest {
|
|
1336
|
+
/**
|
|
1337
|
+
* First name server
|
|
1338
|
+
* @type {string}
|
|
1339
|
+
* @memberof DomainsV1PortfolioUpdateNameserversRequest
|
|
1340
|
+
*/
|
|
1341
|
+
'ns1': string;
|
|
1342
|
+
/**
|
|
1343
|
+
* Second name server
|
|
1344
|
+
* @type {string}
|
|
1345
|
+
* @memberof DomainsV1PortfolioUpdateNameserversRequest
|
|
1346
|
+
*/
|
|
1347
|
+
'ns2': string;
|
|
1348
|
+
/**
|
|
1349
|
+
* Third name server
|
|
1350
|
+
* @type {string}
|
|
1351
|
+
* @memberof DomainsV1PortfolioUpdateNameserversRequest
|
|
1352
|
+
*/
|
|
1353
|
+
'ns3': string;
|
|
1354
|
+
/**
|
|
1355
|
+
* Fourth name server
|
|
1356
|
+
* @type {string}
|
|
1357
|
+
* @memberof DomainsV1PortfolioUpdateNameserversRequest
|
|
1358
|
+
*/
|
|
1359
|
+
'ns4': string;
|
|
1360
|
+
}
|
|
1361
|
+
/**
|
|
1362
|
+
*
|
|
1363
|
+
* @export
|
|
1364
|
+
* @interface DomainsV1WHOISProfileResource
|
|
1365
|
+
*/
|
|
1366
|
+
export interface DomainsV1WHOISProfileResource {
|
|
1367
|
+
/**
|
|
1368
|
+
* WHOIS Profile ID
|
|
1369
|
+
* @type {number}
|
|
1370
|
+
* @memberof DomainsV1WHOISProfileResource
|
|
1371
|
+
*/
|
|
1372
|
+
'id': number;
|
|
1373
|
+
/**
|
|
1374
|
+
* TLD to which contact profile can be applied to
|
|
1375
|
+
* @type {string}
|
|
1376
|
+
* @memberof DomainsV1WHOISProfileResource
|
|
1377
|
+
*/
|
|
1378
|
+
'tld': string;
|
|
1379
|
+
/**
|
|
1380
|
+
* ISO 3166 2-letter country code
|
|
1381
|
+
* @type {string}
|
|
1382
|
+
* @memberof DomainsV1WHOISProfileResource
|
|
1383
|
+
*/
|
|
1384
|
+
'country': string;
|
|
1385
|
+
/**
|
|
1386
|
+
* WHOIS profile entity type
|
|
1387
|
+
* @type {string}
|
|
1388
|
+
* @memberof DomainsV1WHOISProfileResource
|
|
1389
|
+
*/
|
|
1390
|
+
'entity_type': DomainsV1WHOISProfileResourceEntityTypeEnum;
|
|
1391
|
+
/**
|
|
1392
|
+
* WHOIS profile details
|
|
1393
|
+
* @type {object}
|
|
1394
|
+
* @memberof DomainsV1WHOISProfileResource
|
|
1395
|
+
*/
|
|
1396
|
+
'whois_details': object;
|
|
1397
|
+
/**
|
|
1398
|
+
* TLD details
|
|
1399
|
+
* @type {object}
|
|
1400
|
+
* @memberof DomainsV1WHOISProfileResource
|
|
1401
|
+
*/
|
|
1402
|
+
'tld_details': object;
|
|
1403
|
+
/**
|
|
1404
|
+
*
|
|
1405
|
+
* @type {string}
|
|
1406
|
+
* @memberof DomainsV1WHOISProfileResource
|
|
1407
|
+
*/
|
|
1408
|
+
'created_at': string;
|
|
1409
|
+
/**
|
|
1410
|
+
*
|
|
1411
|
+
* @type {string}
|
|
1412
|
+
* @memberof DomainsV1WHOISProfileResource
|
|
1413
|
+
*/
|
|
1414
|
+
'updated_at': string;
|
|
1415
|
+
}
|
|
1416
|
+
|
|
1417
|
+
export const DomainsV1WHOISProfileResourceEntityTypeEnum = {
|
|
1418
|
+
Individual: 'individual',
|
|
1419
|
+
Organization: 'organization'
|
|
1420
|
+
} as const;
|
|
1421
|
+
|
|
1422
|
+
export type DomainsV1WHOISProfileResourceEntityTypeEnum = typeof DomainsV1WHOISProfileResourceEntityTypeEnum[keyof typeof DomainsV1WHOISProfileResourceEntityTypeEnum];
|
|
1423
|
+
|
|
1424
|
+
/**
|
|
1425
|
+
*
|
|
1426
|
+
* @export
|
|
1427
|
+
* @interface DomainsV1WHOISStoreRequest
|
|
1428
|
+
*/
|
|
1429
|
+
export interface DomainsV1WHOISStoreRequest {
|
|
1430
|
+
/**
|
|
1431
|
+
* TLD of the domain (without leading dot)
|
|
1432
|
+
* @type {string}
|
|
1433
|
+
* @memberof DomainsV1WHOISStoreRequest
|
|
1434
|
+
*/
|
|
1435
|
+
'tld': string;
|
|
1436
|
+
/**
|
|
1437
|
+
* ISO 3166 2-letter country code
|
|
1438
|
+
* @type {string}
|
|
1439
|
+
* @memberof DomainsV1WHOISStoreRequest
|
|
1440
|
+
*/
|
|
1441
|
+
'country': string;
|
|
1442
|
+
/**
|
|
1443
|
+
* Legal entity type
|
|
1444
|
+
* @type {string}
|
|
1445
|
+
* @memberof DomainsV1WHOISStoreRequest
|
|
1446
|
+
*/
|
|
1447
|
+
'entity_type': DomainsV1WHOISStoreRequestEntityTypeEnum;
|
|
1448
|
+
/**
|
|
1449
|
+
* TLD details
|
|
1450
|
+
* @type {object}
|
|
1451
|
+
* @memberof DomainsV1WHOISStoreRequest
|
|
1452
|
+
*/
|
|
1453
|
+
'tld_details': object;
|
|
1454
|
+
/**
|
|
1455
|
+
* WHOIS details
|
|
1456
|
+
* @type {object}
|
|
1457
|
+
* @memberof DomainsV1WHOISStoreRequest
|
|
1458
|
+
*/
|
|
1459
|
+
'whois_details': object;
|
|
1460
|
+
}
|
|
1461
|
+
|
|
1462
|
+
export const DomainsV1WHOISStoreRequestEntityTypeEnum = {
|
|
1463
|
+
Individual: 'individual',
|
|
1464
|
+
Organization: 'organization'
|
|
1465
|
+
} as const;
|
|
1466
|
+
|
|
1467
|
+
export type DomainsV1WHOISStoreRequestEntityTypeEnum = typeof DomainsV1WHOISStoreRequestEntityTypeEnum[keyof typeof DomainsV1WHOISStoreRequestEntityTypeEnum];
|
|
1468
|
+
|
|
1469
|
+
/**
|
|
1470
|
+
*
|
|
1471
|
+
* @export
|
|
1472
|
+
* @interface VPSGetActionListV1200Response
|
|
1473
|
+
*/
|
|
1474
|
+
export interface VPSGetActionListV1200Response {
|
|
1475
|
+
/**
|
|
1476
|
+
* Array of [`VPS.V1.Action.ActionResource`](#model/vpsv1actionactionresource)
|
|
1477
|
+
* @type {Array<VPSV1ActionActionResource>}
|
|
1478
|
+
* @memberof VPSGetActionListV1200Response
|
|
1479
|
+
*/
|
|
1480
|
+
'data': Array<VPSV1ActionActionResource>;
|
|
1481
|
+
/**
|
|
1482
|
+
*
|
|
1483
|
+
* @type {CommonSchemaPaginationMetaSchema}
|
|
1484
|
+
* @memberof VPSGetActionListV1200Response
|
|
1485
|
+
*/
|
|
1486
|
+
'meta': CommonSchemaPaginationMetaSchema;
|
|
1017
1487
|
}
|
|
1018
1488
|
/**
|
|
1019
1489
|
*
|
|
@@ -1735,6 +2205,25 @@ export interface VPSV1VirtualMachineHostnameUpdateRequest {
|
|
|
1735
2205
|
*/
|
|
1736
2206
|
'hostname': string;
|
|
1737
2207
|
}
|
|
2208
|
+
/**
|
|
2209
|
+
*
|
|
2210
|
+
* @export
|
|
2211
|
+
* @interface VPSV1VirtualMachineMetricGetRequest
|
|
2212
|
+
*/
|
|
2213
|
+
export interface VPSV1VirtualMachineMetricGetRequest {
|
|
2214
|
+
/**
|
|
2215
|
+
*
|
|
2216
|
+
* @type {string}
|
|
2217
|
+
* @memberof VPSV1VirtualMachineMetricGetRequest
|
|
2218
|
+
*/
|
|
2219
|
+
'date_from': string;
|
|
2220
|
+
/**
|
|
2221
|
+
*
|
|
2222
|
+
* @type {string}
|
|
2223
|
+
* @memberof VPSV1VirtualMachineMetricGetRequest
|
|
2224
|
+
*/
|
|
2225
|
+
'date_to': string;
|
|
2226
|
+
}
|
|
1738
2227
|
/**
|
|
1739
2228
|
*
|
|
1740
2229
|
* @export
|
|
@@ -1767,6 +2256,37 @@ export interface VPSV1VirtualMachinePanelPasswordUpdateRequest {
|
|
|
1767
2256
|
*/
|
|
1768
2257
|
'password': string;
|
|
1769
2258
|
}
|
|
2259
|
+
/**
|
|
2260
|
+
*
|
|
2261
|
+
* @export
|
|
2262
|
+
* @interface VPSV1VirtualMachinePurchaseRequest
|
|
2263
|
+
*/
|
|
2264
|
+
export interface VPSV1VirtualMachinePurchaseRequest {
|
|
2265
|
+
/**
|
|
2266
|
+
* Catalog price item ID
|
|
2267
|
+
* @type {string}
|
|
2268
|
+
* @memberof VPSV1VirtualMachinePurchaseRequest
|
|
2269
|
+
*/
|
|
2270
|
+
'item_id': string;
|
|
2271
|
+
/**
|
|
2272
|
+
* Payment method ID, default will be used if not provided
|
|
2273
|
+
* @type {number}
|
|
2274
|
+
* @memberof VPSV1VirtualMachinePurchaseRequest
|
|
2275
|
+
*/
|
|
2276
|
+
'payment_method_id': number;
|
|
2277
|
+
/**
|
|
2278
|
+
*
|
|
2279
|
+
* @type {VPSV1VirtualMachineSetupRequest}
|
|
2280
|
+
* @memberof VPSV1VirtualMachinePurchaseRequest
|
|
2281
|
+
*/
|
|
2282
|
+
'setup': VPSV1VirtualMachineSetupRequest;
|
|
2283
|
+
/**
|
|
2284
|
+
* Discount coupon codes
|
|
2285
|
+
* @type {Array<any>}
|
|
2286
|
+
* @memberof VPSV1VirtualMachinePurchaseRequest
|
|
2287
|
+
*/
|
|
2288
|
+
'coupons': Array<any>;
|
|
2289
|
+
}
|
|
1770
2290
|
/**
|
|
1771
2291
|
*
|
|
1772
2292
|
* @export
|
|
@@ -1867,13 +2387,13 @@ export interface VPSV1VirtualMachineSetupRequest {
|
|
|
1867
2387
|
*/
|
|
1868
2388
|
'enable_backups': boolean;
|
|
1869
2389
|
/**
|
|
1870
|
-
*
|
|
2390
|
+
* Name server 1
|
|
1871
2391
|
* @type {string}
|
|
1872
2392
|
* @memberof VPSV1VirtualMachineSetupRequest
|
|
1873
2393
|
*/
|
|
1874
2394
|
'ns1': string;
|
|
1875
2395
|
/**
|
|
1876
|
-
*
|
|
2396
|
+
* Name server 2
|
|
1877
2397
|
* @type {string}
|
|
1878
2398
|
* @memberof VPSV1VirtualMachineSetupRequest
|
|
1879
2399
|
*/
|
|
@@ -1886,7 +2406,7 @@ export interface VPSV1VirtualMachineSetupRequest {
|
|
|
1886
2406
|
'public_key': VPSV1VirtualMachineSetupRequestPublicKey;
|
|
1887
2407
|
}
|
|
1888
2408
|
/**
|
|
1889
|
-
*
|
|
2409
|
+
* Use SSH key
|
|
1890
2410
|
* @export
|
|
1891
2411
|
* @interface VPSV1VirtualMachineSetupRequestPublicKey
|
|
1892
2412
|
*/
|
|
@@ -1898,7 +2418,7 @@ export interface VPSV1VirtualMachineSetupRequestPublicKey {
|
|
|
1898
2418
|
*/
|
|
1899
2419
|
'name': string;
|
|
1900
2420
|
/**
|
|
1901
|
-
* SSH
|
|
2421
|
+
* Contents of the SSH key
|
|
1902
2422
|
* @type {string}
|
|
1903
2423
|
* @memberof VPSV1VirtualMachineSetupRequestPublicKey
|
|
1904
2424
|
*/
|
|
@@ -2072,10 +2592,12 @@ export const BillingCatalogApiAxiosParamCreator = function (configuration?: Conf
|
|
|
2072
2592
|
/**
|
|
2073
2593
|
* This endpoint retrieves a list of catalog items available for order. Prices in catalog items is displayed as cents (without floating point), e.g: float `17.99` is displayed as integer `1799`.
|
|
2074
2594
|
* @summary Get catalog item list
|
|
2595
|
+
* @param {GetCatalogItemListV1CategoryEnum} [category] Filter catalog items by category
|
|
2596
|
+
* @param {string} [name] Filter catalog items by name. Use `*` for wildcard search, e.g. `.COM*` to find .com domain
|
|
2075
2597
|
* @param {*} [options] Override http request option.
|
|
2076
2598
|
* @throws {RequiredError}
|
|
2077
2599
|
*/
|
|
2078
|
-
getCatalogItemListV1: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2600
|
+
getCatalogItemListV1: async (category?: GetCatalogItemListV1CategoryEnum, name?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2079
2601
|
const localVarPath = `/api/billing/v1/catalog`;
|
|
2080
2602
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2081
2603
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -2092,6 +2614,14 @@ export const BillingCatalogApiAxiosParamCreator = function (configuration?: Conf
|
|
|
2092
2614
|
// http bearer authentication required
|
|
2093
2615
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
2094
2616
|
|
|
2617
|
+
if (category !== undefined) {
|
|
2618
|
+
localVarQueryParameter['category'] = category;
|
|
2619
|
+
}
|
|
2620
|
+
|
|
2621
|
+
if (name !== undefined) {
|
|
2622
|
+
localVarQueryParameter['name'] = name;
|
|
2623
|
+
}
|
|
2624
|
+
|
|
2095
2625
|
|
|
2096
2626
|
|
|
2097
2627
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -2116,11 +2646,13 @@ export const BillingCatalogApiFp = function(configuration?: Configuration) {
|
|
|
2116
2646
|
/**
|
|
2117
2647
|
* This endpoint retrieves a list of catalog items available for order. Prices in catalog items is displayed as cents (without floating point), e.g: float `17.99` is displayed as integer `1799`.
|
|
2118
2648
|
* @summary Get catalog item list
|
|
2649
|
+
* @param {GetCatalogItemListV1CategoryEnum} [category] Filter catalog items by category
|
|
2650
|
+
* @param {string} [name] Filter catalog items by name. Use `*` for wildcard search, e.g. `.COM*` to find .com domain
|
|
2119
2651
|
* @param {*} [options] Override http request option.
|
|
2120
2652
|
* @throws {RequiredError}
|
|
2121
2653
|
*/
|
|
2122
|
-
async getCatalogItemListV1(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BillingV1CatalogCatalogItemResource>>> {
|
|
2123
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getCatalogItemListV1(options);
|
|
2654
|
+
async getCatalogItemListV1(category?: GetCatalogItemListV1CategoryEnum, name?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BillingV1CatalogCatalogItemResource>>> {
|
|
2655
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCatalogItemListV1(category, name, options);
|
|
2124
2656
|
const localVarOperationServerBasePath = operationServerMap['BillingCatalogApi.getCatalogItemListV1']?.[0]?.url;
|
|
2125
2657
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2126
2658
|
},
|
|
@@ -2137,11 +2669,13 @@ export const BillingCatalogApiFactory = function (configuration?: Configuration,
|
|
|
2137
2669
|
/**
|
|
2138
2670
|
* This endpoint retrieves a list of catalog items available for order. Prices in catalog items is displayed as cents (without floating point), e.g: float `17.99` is displayed as integer `1799`.
|
|
2139
2671
|
* @summary Get catalog item list
|
|
2672
|
+
* @param {GetCatalogItemListV1CategoryEnum} [category] Filter catalog items by category
|
|
2673
|
+
* @param {string} [name] Filter catalog items by name. Use `*` for wildcard search, e.g. `.COM*` to find .com domain
|
|
2140
2674
|
* @param {*} [options] Override http request option.
|
|
2141
2675
|
* @throws {RequiredError}
|
|
2142
2676
|
*/
|
|
2143
|
-
getCatalogItemListV1(options?: RawAxiosRequestConfig): AxiosPromise<Array<BillingV1CatalogCatalogItemResource>> {
|
|
2144
|
-
return localVarFp.getCatalogItemListV1(options).then((request) => request(axios, basePath));
|
|
2677
|
+
getCatalogItemListV1(category?: GetCatalogItemListV1CategoryEnum, name?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<BillingV1CatalogCatalogItemResource>> {
|
|
2678
|
+
return localVarFp.getCatalogItemListV1(category, name, options).then((request) => request(axios, basePath));
|
|
2145
2679
|
},
|
|
2146
2680
|
};
|
|
2147
2681
|
};
|
|
@@ -2156,15 +2690,25 @@ export class BillingCatalogApi extends BaseAPI {
|
|
|
2156
2690
|
/**
|
|
2157
2691
|
* This endpoint retrieves a list of catalog items available for order. Prices in catalog items is displayed as cents (without floating point), e.g: float `17.99` is displayed as integer `1799`.
|
|
2158
2692
|
* @summary Get catalog item list
|
|
2693
|
+
* @param {GetCatalogItemListV1CategoryEnum} [category] Filter catalog items by category
|
|
2694
|
+
* @param {string} [name] Filter catalog items by name. Use `*` for wildcard search, e.g. `.COM*` to find .com domain
|
|
2159
2695
|
* @param {*} [options] Override http request option.
|
|
2160
2696
|
* @throws {RequiredError}
|
|
2161
2697
|
* @memberof BillingCatalogApi
|
|
2162
2698
|
*/
|
|
2163
|
-
public getCatalogItemListV1(options?: RawAxiosRequestConfig) {
|
|
2164
|
-
return BillingCatalogApiFp(this.configuration).getCatalogItemListV1(options).then((request) => request(this.axios, this.basePath));
|
|
2699
|
+
public getCatalogItemListV1(category?: GetCatalogItemListV1CategoryEnum, name?: string, options?: RawAxiosRequestConfig) {
|
|
2700
|
+
return BillingCatalogApiFp(this.configuration).getCatalogItemListV1(category, name, options).then((request) => request(this.axios, this.basePath));
|
|
2165
2701
|
}
|
|
2166
2702
|
}
|
|
2167
2703
|
|
|
2704
|
+
/**
|
|
2705
|
+
* @export
|
|
2706
|
+
*/
|
|
2707
|
+
export const GetCatalogItemListV1CategoryEnum = {
|
|
2708
|
+
Domain: 'DOMAIN',
|
|
2709
|
+
Vps: 'VPS'
|
|
2710
|
+
} as const;
|
|
2711
|
+
export type GetCatalogItemListV1CategoryEnum = typeof GetCatalogItemListV1CategoryEnum[keyof typeof GetCatalogItemListV1CategoryEnum];
|
|
2168
2712
|
|
|
2169
2713
|
|
|
2170
2714
|
/**
|
|
@@ -2174,10 +2718,11 @@ export class BillingCatalogApi extends BaseAPI {
|
|
|
2174
2718
|
export const BillingOrdersApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
2175
2719
|
return {
|
|
2176
2720
|
/**
|
|
2177
|
-
* This endpoint creates a new service order. To place order, you need to provide payment method ID and list of price items from the catalog endpoint together with quantity. Coupons also can be provided during order creation. Orders created using this endpoint will be set for automatic renewal. Some `credit_card` payments might need additional verification, rendering purchase unprocessed. We recommend use other payment methods than `credit_card` if you encounter this issue.
|
|
2721
|
+
* This endpoint creates a new service order. **DEPRECATED** To purchase a domain, use [`POST /api/domains/v1/portfolio`](/#tag/domains-portfolio/POST/api/domains/v1/portfolio) instead. To purchase a VPS, use [`POST /api/vps/v1/virtual-machines`](/#tag/vps-virtual-machine/POST/api/vps/v1/virtual-machines) instead. To place order, you need to provide payment method ID and list of price items from the catalog endpoint together with quantity. Coupons also can be provided during order creation. Orders created using this endpoint will be set for automatic renewal. Some `credit_card` payments might need additional verification, rendering purchase unprocessed. We recommend use other payment methods than `credit_card` if you encounter this issue.
|
|
2178
2722
|
* @summary Create new service order
|
|
2179
2723
|
* @param {BillingV1OrderStoreRequest} billingV1OrderStoreRequest
|
|
2180
2724
|
* @param {*} [options] Override http request option.
|
|
2725
|
+
* @deprecated
|
|
2181
2726
|
* @throws {RequiredError}
|
|
2182
2727
|
*/
|
|
2183
2728
|
createNewServiceOrderV1: async (billingV1OrderStoreRequest: BillingV1OrderStoreRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
@@ -2224,10 +2769,11 @@ export const BillingOrdersApiFp = function(configuration?: Configuration) {
|
|
|
2224
2769
|
const localVarAxiosParamCreator = BillingOrdersApiAxiosParamCreator(configuration)
|
|
2225
2770
|
return {
|
|
2226
2771
|
/**
|
|
2227
|
-
* This endpoint creates a new service order. To place order, you need to provide payment method ID and list of price items from the catalog endpoint together with quantity. Coupons also can be provided during order creation. Orders created using this endpoint will be set for automatic renewal. Some `credit_card` payments might need additional verification, rendering purchase unprocessed. We recommend use other payment methods than `credit_card` if you encounter this issue.
|
|
2772
|
+
* This endpoint creates a new service order. **DEPRECATED** To purchase a domain, use [`POST /api/domains/v1/portfolio`](/#tag/domains-portfolio/POST/api/domains/v1/portfolio) instead. To purchase a VPS, use [`POST /api/vps/v1/virtual-machines`](/#tag/vps-virtual-machine/POST/api/vps/v1/virtual-machines) instead. To place order, you need to provide payment method ID and list of price items from the catalog endpoint together with quantity. Coupons also can be provided during order creation. Orders created using this endpoint will be set for automatic renewal. Some `credit_card` payments might need additional verification, rendering purchase unprocessed. We recommend use other payment methods than `credit_card` if you encounter this issue.
|
|
2228
2773
|
* @summary Create new service order
|
|
2229
2774
|
* @param {BillingV1OrderStoreRequest} billingV1OrderStoreRequest
|
|
2230
2775
|
* @param {*} [options] Override http request option.
|
|
2776
|
+
* @deprecated
|
|
2231
2777
|
* @throws {RequiredError}
|
|
2232
2778
|
*/
|
|
2233
2779
|
async createNewServiceOrderV1(billingV1OrderStoreRequest: BillingV1OrderStoreRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BillingV1OrderOrderResource>> {
|
|
@@ -2246,10 +2792,11 @@ export const BillingOrdersApiFactory = function (configuration?: Configuration,
|
|
|
2246
2792
|
const localVarFp = BillingOrdersApiFp(configuration)
|
|
2247
2793
|
return {
|
|
2248
2794
|
/**
|
|
2249
|
-
* This endpoint creates a new service order. To place order, you need to provide payment method ID and list of price items from the catalog endpoint together with quantity. Coupons also can be provided during order creation. Orders created using this endpoint will be set for automatic renewal. Some `credit_card` payments might need additional verification, rendering purchase unprocessed. We recommend use other payment methods than `credit_card` if you encounter this issue.
|
|
2795
|
+
* This endpoint creates a new service order. **DEPRECATED** To purchase a domain, use [`POST /api/domains/v1/portfolio`](/#tag/domains-portfolio/POST/api/domains/v1/portfolio) instead. To purchase a VPS, use [`POST /api/vps/v1/virtual-machines`](/#tag/vps-virtual-machine/POST/api/vps/v1/virtual-machines) instead. To place order, you need to provide payment method ID and list of price items from the catalog endpoint together with quantity. Coupons also can be provided during order creation. Orders created using this endpoint will be set for automatic renewal. Some `credit_card` payments might need additional verification, rendering purchase unprocessed. We recommend use other payment methods than `credit_card` if you encounter this issue.
|
|
2250
2796
|
* @summary Create new service order
|
|
2251
2797
|
* @param {BillingV1OrderStoreRequest} billingV1OrderStoreRequest
|
|
2252
2798
|
* @param {*} [options] Override http request option.
|
|
2799
|
+
* @deprecated
|
|
2253
2800
|
* @throws {RequiredError}
|
|
2254
2801
|
*/
|
|
2255
2802
|
createNewServiceOrderV1(billingV1OrderStoreRequest: BillingV1OrderStoreRequest, options?: RawAxiosRequestConfig): AxiosPromise<BillingV1OrderOrderResource> {
|
|
@@ -2266,10 +2813,11 @@ export const BillingOrdersApiFactory = function (configuration?: Configuration,
|
|
|
2266
2813
|
*/
|
|
2267
2814
|
export class BillingOrdersApi extends BaseAPI {
|
|
2268
2815
|
/**
|
|
2269
|
-
* This endpoint creates a new service order. To place order, you need to provide payment method ID and list of price items from the catalog endpoint together with quantity. Coupons also can be provided during order creation. Orders created using this endpoint will be set for automatic renewal. Some `credit_card` payments might need additional verification, rendering purchase unprocessed. We recommend use other payment methods than `credit_card` if you encounter this issue.
|
|
2816
|
+
* This endpoint creates a new service order. **DEPRECATED** To purchase a domain, use [`POST /api/domains/v1/portfolio`](/#tag/domains-portfolio/POST/api/domains/v1/portfolio) instead. To purchase a VPS, use [`POST /api/vps/v1/virtual-machines`](/#tag/vps-virtual-machine/POST/api/vps/v1/virtual-machines) instead. To place order, you need to provide payment method ID and list of price items from the catalog endpoint together with quantity. Coupons also can be provided during order creation. Orders created using this endpoint will be set for automatic renewal. Some `credit_card` payments might need additional verification, rendering purchase unprocessed. We recommend use other payment methods than `credit_card` if you encounter this issue.
|
|
2270
2817
|
* @summary Create new service order
|
|
2271
2818
|
* @param {BillingV1OrderStoreRequest} billingV1OrderStoreRequest
|
|
2272
2819
|
* @param {*} [options] Override http request option.
|
|
2820
|
+
* @deprecated
|
|
2273
2821
|
* @throws {RequiredError}
|
|
2274
2822
|
* @memberof BillingOrdersApi
|
|
2275
2823
|
*/
|
|
@@ -3417,23 +3965,1088 @@ export class DNSZoneApi extends BaseAPI {
|
|
|
3417
3965
|
|
|
3418
3966
|
|
|
3419
3967
|
|
|
3420
|
-
/**
|
|
3421
|
-
* DomainsAvailabilityApi - axios parameter creator
|
|
3422
|
-
* @export
|
|
3423
|
-
*/
|
|
3424
|
-
export const DomainsAvailabilityApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
3425
|
-
return {
|
|
3968
|
+
/**
|
|
3969
|
+
* DomainsAvailabilityApi - axios parameter creator
|
|
3970
|
+
* @export
|
|
3971
|
+
*/
|
|
3972
|
+
export const DomainsAvailabilityApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
3973
|
+
return {
|
|
3974
|
+
/**
|
|
3975
|
+
* This endpoint checks the availability of a domain name. Multiple TLDs can be checked at once. If you want to get alternative domains with response, provide only one TLD in the request and set `with_alternatives` to `true`. TLDs should be provided without the leading dot (e.g. `com`, `net`, `org`). Endpoint has rate limit of 10 requests per minute.
|
|
3976
|
+
* @summary Check domain availability
|
|
3977
|
+
* @param {DomainsV1AvailabilityAvailabilityRequest} domainsV1AvailabilityAvailabilityRequest
|
|
3978
|
+
* @param {*} [options] Override http request option.
|
|
3979
|
+
* @throws {RequiredError}
|
|
3980
|
+
*/
|
|
3981
|
+
checkDomainAvailabilityV1: async (domainsV1AvailabilityAvailabilityRequest: DomainsV1AvailabilityAvailabilityRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3982
|
+
// verify required parameter 'domainsV1AvailabilityAvailabilityRequest' is not null or undefined
|
|
3983
|
+
assertParamExists('checkDomainAvailabilityV1', 'domainsV1AvailabilityAvailabilityRequest', domainsV1AvailabilityAvailabilityRequest)
|
|
3984
|
+
const localVarPath = `/api/domains/v1/availability`;
|
|
3985
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3986
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3987
|
+
let baseOptions;
|
|
3988
|
+
if (configuration) {
|
|
3989
|
+
baseOptions = configuration.baseOptions;
|
|
3990
|
+
}
|
|
3991
|
+
|
|
3992
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
3993
|
+
const localVarHeaderParameter = {} as any;
|
|
3994
|
+
const localVarQueryParameter = {} as any;
|
|
3995
|
+
|
|
3996
|
+
// authentication apiToken required
|
|
3997
|
+
// http bearer authentication required
|
|
3998
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
3999
|
+
|
|
4000
|
+
|
|
4001
|
+
|
|
4002
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4003
|
+
|
|
4004
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4005
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4006
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4007
|
+
localVarRequestOptions.data = serializeDataIfNeeded(domainsV1AvailabilityAvailabilityRequest, localVarRequestOptions, configuration)
|
|
4008
|
+
|
|
4009
|
+
return {
|
|
4010
|
+
url: toPathString(localVarUrlObj),
|
|
4011
|
+
options: localVarRequestOptions,
|
|
4012
|
+
};
|
|
4013
|
+
},
|
|
4014
|
+
}
|
|
4015
|
+
};
|
|
4016
|
+
|
|
4017
|
+
/**
|
|
4018
|
+
* DomainsAvailabilityApi - functional programming interface
|
|
4019
|
+
* @export
|
|
4020
|
+
*/
|
|
4021
|
+
export const DomainsAvailabilityApiFp = function(configuration?: Configuration) {
|
|
4022
|
+
const localVarAxiosParamCreator = DomainsAvailabilityApiAxiosParamCreator(configuration)
|
|
4023
|
+
return {
|
|
4024
|
+
/**
|
|
4025
|
+
* This endpoint checks the availability of a domain name. Multiple TLDs can be checked at once. If you want to get alternative domains with response, provide only one TLD in the request and set `with_alternatives` to `true`. TLDs should be provided without the leading dot (e.g. `com`, `net`, `org`). Endpoint has rate limit of 10 requests per minute.
|
|
4026
|
+
* @summary Check domain availability
|
|
4027
|
+
* @param {DomainsV1AvailabilityAvailabilityRequest} domainsV1AvailabilityAvailabilityRequest
|
|
4028
|
+
* @param {*} [options] Override http request option.
|
|
4029
|
+
* @throws {RequiredError}
|
|
4030
|
+
*/
|
|
4031
|
+
async checkDomainAvailabilityV1(domainsV1AvailabilityAvailabilityRequest: DomainsV1AvailabilityAvailabilityRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<DomainsV1AvailabilityAvailabilityResource>>> {
|
|
4032
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.checkDomainAvailabilityV1(domainsV1AvailabilityAvailabilityRequest, options);
|
|
4033
|
+
const localVarOperationServerBasePath = operationServerMap['DomainsAvailabilityApi.checkDomainAvailabilityV1']?.[0]?.url;
|
|
4034
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4035
|
+
},
|
|
4036
|
+
}
|
|
4037
|
+
};
|
|
4038
|
+
|
|
4039
|
+
/**
|
|
4040
|
+
* DomainsAvailabilityApi - factory interface
|
|
4041
|
+
* @export
|
|
4042
|
+
*/
|
|
4043
|
+
export const DomainsAvailabilityApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
4044
|
+
const localVarFp = DomainsAvailabilityApiFp(configuration)
|
|
4045
|
+
return {
|
|
4046
|
+
/**
|
|
4047
|
+
* This endpoint checks the availability of a domain name. Multiple TLDs can be checked at once. If you want to get alternative domains with response, provide only one TLD in the request and set `with_alternatives` to `true`. TLDs should be provided without the leading dot (e.g. `com`, `net`, `org`). Endpoint has rate limit of 10 requests per minute.
|
|
4048
|
+
* @summary Check domain availability
|
|
4049
|
+
* @param {DomainsV1AvailabilityAvailabilityRequest} domainsV1AvailabilityAvailabilityRequest
|
|
4050
|
+
* @param {*} [options] Override http request option.
|
|
4051
|
+
* @throws {RequiredError}
|
|
4052
|
+
*/
|
|
4053
|
+
checkDomainAvailabilityV1(domainsV1AvailabilityAvailabilityRequest: DomainsV1AvailabilityAvailabilityRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<DomainsV1AvailabilityAvailabilityResource>> {
|
|
4054
|
+
return localVarFp.checkDomainAvailabilityV1(domainsV1AvailabilityAvailabilityRequest, options).then((request) => request(axios, basePath));
|
|
4055
|
+
},
|
|
4056
|
+
};
|
|
4057
|
+
};
|
|
4058
|
+
|
|
4059
|
+
/**
|
|
4060
|
+
* DomainsAvailabilityApi - object-oriented interface
|
|
4061
|
+
* @export
|
|
4062
|
+
* @class DomainsAvailabilityApi
|
|
4063
|
+
* @extends {BaseAPI}
|
|
4064
|
+
*/
|
|
4065
|
+
export class DomainsAvailabilityApi extends BaseAPI {
|
|
4066
|
+
/**
|
|
4067
|
+
* This endpoint checks the availability of a domain name. Multiple TLDs can be checked at once. If you want to get alternative domains with response, provide only one TLD in the request and set `with_alternatives` to `true`. TLDs should be provided without the leading dot (e.g. `com`, `net`, `org`). Endpoint has rate limit of 10 requests per minute.
|
|
4068
|
+
* @summary Check domain availability
|
|
4069
|
+
* @param {DomainsV1AvailabilityAvailabilityRequest} domainsV1AvailabilityAvailabilityRequest
|
|
4070
|
+
* @param {*} [options] Override http request option.
|
|
4071
|
+
* @throws {RequiredError}
|
|
4072
|
+
* @memberof DomainsAvailabilityApi
|
|
4073
|
+
*/
|
|
4074
|
+
public checkDomainAvailabilityV1(domainsV1AvailabilityAvailabilityRequest: DomainsV1AvailabilityAvailabilityRequest, options?: RawAxiosRequestConfig) {
|
|
4075
|
+
return DomainsAvailabilityApiFp(this.configuration).checkDomainAvailabilityV1(domainsV1AvailabilityAvailabilityRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4076
|
+
}
|
|
4077
|
+
}
|
|
4078
|
+
|
|
4079
|
+
|
|
4080
|
+
|
|
4081
|
+
/**
|
|
4082
|
+
* DomainsForwardingApi - axios parameter creator
|
|
4083
|
+
* @export
|
|
4084
|
+
*/
|
|
4085
|
+
export const DomainsForwardingApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
4086
|
+
return {
|
|
4087
|
+
/**
|
|
4088
|
+
* This endpoint creates domain forwarding data.
|
|
4089
|
+
* @summary Create forwarding data
|
|
4090
|
+
* @param {DomainsV1ForwardingStoreRequest} domainsV1ForwardingStoreRequest
|
|
4091
|
+
* @param {*} [options] Override http request option.
|
|
4092
|
+
* @throws {RequiredError}
|
|
4093
|
+
*/
|
|
4094
|
+
createForwardingDataV1: async (domainsV1ForwardingStoreRequest: DomainsV1ForwardingStoreRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4095
|
+
// verify required parameter 'domainsV1ForwardingStoreRequest' is not null or undefined
|
|
4096
|
+
assertParamExists('createForwardingDataV1', 'domainsV1ForwardingStoreRequest', domainsV1ForwardingStoreRequest)
|
|
4097
|
+
const localVarPath = `/api/domains/v1/forwarding`;
|
|
4098
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4099
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4100
|
+
let baseOptions;
|
|
4101
|
+
if (configuration) {
|
|
4102
|
+
baseOptions = configuration.baseOptions;
|
|
4103
|
+
}
|
|
4104
|
+
|
|
4105
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
4106
|
+
const localVarHeaderParameter = {} as any;
|
|
4107
|
+
const localVarQueryParameter = {} as any;
|
|
4108
|
+
|
|
4109
|
+
// authentication apiToken required
|
|
4110
|
+
// http bearer authentication required
|
|
4111
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
4112
|
+
|
|
4113
|
+
|
|
4114
|
+
|
|
4115
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4116
|
+
|
|
4117
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4118
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4119
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4120
|
+
localVarRequestOptions.data = serializeDataIfNeeded(domainsV1ForwardingStoreRequest, localVarRequestOptions, configuration)
|
|
4121
|
+
|
|
4122
|
+
return {
|
|
4123
|
+
url: toPathString(localVarUrlObj),
|
|
4124
|
+
options: localVarRequestOptions,
|
|
4125
|
+
};
|
|
4126
|
+
},
|
|
4127
|
+
/**
|
|
4128
|
+
* This endpoint deletes domain forwarding data.
|
|
4129
|
+
* @summary Delete forwarding data
|
|
4130
|
+
* @param {string} domain Domain name
|
|
4131
|
+
* @param {*} [options] Override http request option.
|
|
4132
|
+
* @throws {RequiredError}
|
|
4133
|
+
*/
|
|
4134
|
+
deleteForwardingDataV1: async (domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4135
|
+
// verify required parameter 'domain' is not null or undefined
|
|
4136
|
+
assertParamExists('deleteForwardingDataV1', 'domain', domain)
|
|
4137
|
+
const localVarPath = `/api/domains/v1/forwarding/{domain}`
|
|
4138
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
4139
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4140
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4141
|
+
let baseOptions;
|
|
4142
|
+
if (configuration) {
|
|
4143
|
+
baseOptions = configuration.baseOptions;
|
|
4144
|
+
}
|
|
4145
|
+
|
|
4146
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
4147
|
+
const localVarHeaderParameter = {} as any;
|
|
4148
|
+
const localVarQueryParameter = {} as any;
|
|
4149
|
+
|
|
4150
|
+
// authentication apiToken required
|
|
4151
|
+
// http bearer authentication required
|
|
4152
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
4153
|
+
|
|
4154
|
+
|
|
4155
|
+
|
|
4156
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4157
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4158
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4159
|
+
|
|
4160
|
+
return {
|
|
4161
|
+
url: toPathString(localVarUrlObj),
|
|
4162
|
+
options: localVarRequestOptions,
|
|
4163
|
+
};
|
|
4164
|
+
},
|
|
4165
|
+
/**
|
|
4166
|
+
* This endpoint retrieves domain forwarding data.
|
|
4167
|
+
* @summary Get forwarding data
|
|
4168
|
+
* @param {string} domain Domain name
|
|
4169
|
+
* @param {*} [options] Override http request option.
|
|
4170
|
+
* @throws {RequiredError}
|
|
4171
|
+
*/
|
|
4172
|
+
getForwardingDataV1: async (domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4173
|
+
// verify required parameter 'domain' is not null or undefined
|
|
4174
|
+
assertParamExists('getForwardingDataV1', 'domain', domain)
|
|
4175
|
+
const localVarPath = `/api/domains/v1/forwarding/{domain}`
|
|
4176
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
4177
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4178
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4179
|
+
let baseOptions;
|
|
4180
|
+
if (configuration) {
|
|
4181
|
+
baseOptions = configuration.baseOptions;
|
|
4182
|
+
}
|
|
4183
|
+
|
|
4184
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
4185
|
+
const localVarHeaderParameter = {} as any;
|
|
4186
|
+
const localVarQueryParameter = {} as any;
|
|
4187
|
+
|
|
4188
|
+
// authentication apiToken required
|
|
4189
|
+
// http bearer authentication required
|
|
4190
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
4191
|
+
|
|
4192
|
+
|
|
4193
|
+
|
|
4194
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4195
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4196
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4197
|
+
|
|
4198
|
+
return {
|
|
4199
|
+
url: toPathString(localVarUrlObj),
|
|
4200
|
+
options: localVarRequestOptions,
|
|
4201
|
+
};
|
|
4202
|
+
},
|
|
4203
|
+
}
|
|
4204
|
+
};
|
|
4205
|
+
|
|
4206
|
+
/**
|
|
4207
|
+
* DomainsForwardingApi - functional programming interface
|
|
4208
|
+
* @export
|
|
4209
|
+
*/
|
|
4210
|
+
export const DomainsForwardingApiFp = function(configuration?: Configuration) {
|
|
4211
|
+
const localVarAxiosParamCreator = DomainsForwardingApiAxiosParamCreator(configuration)
|
|
4212
|
+
return {
|
|
4213
|
+
/**
|
|
4214
|
+
* This endpoint creates domain forwarding data.
|
|
4215
|
+
* @summary Create forwarding data
|
|
4216
|
+
* @param {DomainsV1ForwardingStoreRequest} domainsV1ForwardingStoreRequest
|
|
4217
|
+
* @param {*} [options] Override http request option.
|
|
4218
|
+
* @throws {RequiredError}
|
|
4219
|
+
*/
|
|
4220
|
+
async createForwardingDataV1(domainsV1ForwardingStoreRequest: DomainsV1ForwardingStoreRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DomainsV1ForwardingForwardingResource>> {
|
|
4221
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createForwardingDataV1(domainsV1ForwardingStoreRequest, options);
|
|
4222
|
+
const localVarOperationServerBasePath = operationServerMap['DomainsForwardingApi.createForwardingDataV1']?.[0]?.url;
|
|
4223
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4224
|
+
},
|
|
4225
|
+
/**
|
|
4226
|
+
* This endpoint deletes domain forwarding data.
|
|
4227
|
+
* @summary Delete forwarding data
|
|
4228
|
+
* @param {string} domain Domain name
|
|
4229
|
+
* @param {*} [options] Override http request option.
|
|
4230
|
+
* @throws {RequiredError}
|
|
4231
|
+
*/
|
|
4232
|
+
async deleteForwardingDataV1(domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
|
|
4233
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteForwardingDataV1(domain, options);
|
|
4234
|
+
const localVarOperationServerBasePath = operationServerMap['DomainsForwardingApi.deleteForwardingDataV1']?.[0]?.url;
|
|
4235
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4236
|
+
},
|
|
4237
|
+
/**
|
|
4238
|
+
* This endpoint retrieves domain forwarding data.
|
|
4239
|
+
* @summary Get forwarding data
|
|
4240
|
+
* @param {string} domain Domain name
|
|
4241
|
+
* @param {*} [options] Override http request option.
|
|
4242
|
+
* @throws {RequiredError}
|
|
4243
|
+
*/
|
|
4244
|
+
async getForwardingDataV1(domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DomainsV1ForwardingForwardingResource>> {
|
|
4245
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getForwardingDataV1(domain, options);
|
|
4246
|
+
const localVarOperationServerBasePath = operationServerMap['DomainsForwardingApi.getForwardingDataV1']?.[0]?.url;
|
|
4247
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4248
|
+
},
|
|
4249
|
+
}
|
|
4250
|
+
};
|
|
4251
|
+
|
|
4252
|
+
/**
|
|
4253
|
+
* DomainsForwardingApi - factory interface
|
|
4254
|
+
* @export
|
|
4255
|
+
*/
|
|
4256
|
+
export const DomainsForwardingApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
4257
|
+
const localVarFp = DomainsForwardingApiFp(configuration)
|
|
4258
|
+
return {
|
|
4259
|
+
/**
|
|
4260
|
+
* This endpoint creates domain forwarding data.
|
|
4261
|
+
* @summary Create forwarding data
|
|
4262
|
+
* @param {DomainsV1ForwardingStoreRequest} domainsV1ForwardingStoreRequest
|
|
4263
|
+
* @param {*} [options] Override http request option.
|
|
4264
|
+
* @throws {RequiredError}
|
|
4265
|
+
*/
|
|
4266
|
+
createForwardingDataV1(domainsV1ForwardingStoreRequest: DomainsV1ForwardingStoreRequest, options?: RawAxiosRequestConfig): AxiosPromise<DomainsV1ForwardingForwardingResource> {
|
|
4267
|
+
return localVarFp.createForwardingDataV1(domainsV1ForwardingStoreRequest, options).then((request) => request(axios, basePath));
|
|
4268
|
+
},
|
|
4269
|
+
/**
|
|
4270
|
+
* This endpoint deletes domain forwarding data.
|
|
4271
|
+
* @summary Delete forwarding data
|
|
4272
|
+
* @param {string} domain Domain name
|
|
4273
|
+
* @param {*} [options] Override http request option.
|
|
4274
|
+
* @throws {RequiredError}
|
|
4275
|
+
*/
|
|
4276
|
+
deleteForwardingDataV1(domain: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
|
|
4277
|
+
return localVarFp.deleteForwardingDataV1(domain, options).then((request) => request(axios, basePath));
|
|
4278
|
+
},
|
|
4279
|
+
/**
|
|
4280
|
+
* This endpoint retrieves domain forwarding data.
|
|
4281
|
+
* @summary Get forwarding data
|
|
4282
|
+
* @param {string} domain Domain name
|
|
4283
|
+
* @param {*} [options] Override http request option.
|
|
4284
|
+
* @throws {RequiredError}
|
|
4285
|
+
*/
|
|
4286
|
+
getForwardingDataV1(domain: string, options?: RawAxiosRequestConfig): AxiosPromise<DomainsV1ForwardingForwardingResource> {
|
|
4287
|
+
return localVarFp.getForwardingDataV1(domain, options).then((request) => request(axios, basePath));
|
|
4288
|
+
},
|
|
4289
|
+
};
|
|
4290
|
+
};
|
|
4291
|
+
|
|
4292
|
+
/**
|
|
4293
|
+
* DomainsForwardingApi - object-oriented interface
|
|
4294
|
+
* @export
|
|
4295
|
+
* @class DomainsForwardingApi
|
|
4296
|
+
* @extends {BaseAPI}
|
|
4297
|
+
*/
|
|
4298
|
+
export class DomainsForwardingApi extends BaseAPI {
|
|
4299
|
+
/**
|
|
4300
|
+
* This endpoint creates domain forwarding data.
|
|
4301
|
+
* @summary Create forwarding data
|
|
4302
|
+
* @param {DomainsV1ForwardingStoreRequest} domainsV1ForwardingStoreRequest
|
|
4303
|
+
* @param {*} [options] Override http request option.
|
|
4304
|
+
* @throws {RequiredError}
|
|
4305
|
+
* @memberof DomainsForwardingApi
|
|
4306
|
+
*/
|
|
4307
|
+
public createForwardingDataV1(domainsV1ForwardingStoreRequest: DomainsV1ForwardingStoreRequest, options?: RawAxiosRequestConfig) {
|
|
4308
|
+
return DomainsForwardingApiFp(this.configuration).createForwardingDataV1(domainsV1ForwardingStoreRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4309
|
+
}
|
|
4310
|
+
|
|
4311
|
+
/**
|
|
4312
|
+
* This endpoint deletes domain forwarding data.
|
|
4313
|
+
* @summary Delete forwarding data
|
|
4314
|
+
* @param {string} domain Domain name
|
|
4315
|
+
* @param {*} [options] Override http request option.
|
|
4316
|
+
* @throws {RequiredError}
|
|
4317
|
+
* @memberof DomainsForwardingApi
|
|
4318
|
+
*/
|
|
4319
|
+
public deleteForwardingDataV1(domain: string, options?: RawAxiosRequestConfig) {
|
|
4320
|
+
return DomainsForwardingApiFp(this.configuration).deleteForwardingDataV1(domain, options).then((request) => request(this.axios, this.basePath));
|
|
4321
|
+
}
|
|
4322
|
+
|
|
4323
|
+
/**
|
|
4324
|
+
* This endpoint retrieves domain forwarding data.
|
|
4325
|
+
* @summary Get forwarding data
|
|
4326
|
+
* @param {string} domain Domain name
|
|
4327
|
+
* @param {*} [options] Override http request option.
|
|
4328
|
+
* @throws {RequiredError}
|
|
4329
|
+
* @memberof DomainsForwardingApi
|
|
4330
|
+
*/
|
|
4331
|
+
public getForwardingDataV1(domain: string, options?: RawAxiosRequestConfig) {
|
|
4332
|
+
return DomainsForwardingApiFp(this.configuration).getForwardingDataV1(domain, options).then((request) => request(this.axios, this.basePath));
|
|
4333
|
+
}
|
|
4334
|
+
}
|
|
4335
|
+
|
|
4336
|
+
|
|
4337
|
+
|
|
4338
|
+
/**
|
|
4339
|
+
* DomainsPortfolioApi - axios parameter creator
|
|
4340
|
+
* @export
|
|
4341
|
+
*/
|
|
4342
|
+
export const DomainsPortfolioApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
4343
|
+
return {
|
|
4344
|
+
/**
|
|
4345
|
+
* This endpoint disables domain lock for the domain. Domain lock needs to be disabled before transferring the domain to another registrar.
|
|
4346
|
+
* @summary Disable domain lock
|
|
4347
|
+
* @param {string} domain Domain name
|
|
4348
|
+
* @param {*} [options] Override http request option.
|
|
4349
|
+
* @throws {RequiredError}
|
|
4350
|
+
*/
|
|
4351
|
+
disableDomainLockV1: async (domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4352
|
+
// verify required parameter 'domain' is not null or undefined
|
|
4353
|
+
assertParamExists('disableDomainLockV1', 'domain', domain)
|
|
4354
|
+
const localVarPath = `/api/domains/v1/portfolio/{domain}/domain-lock`
|
|
4355
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
4356
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4357
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4358
|
+
let baseOptions;
|
|
4359
|
+
if (configuration) {
|
|
4360
|
+
baseOptions = configuration.baseOptions;
|
|
4361
|
+
}
|
|
4362
|
+
|
|
4363
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
4364
|
+
const localVarHeaderParameter = {} as any;
|
|
4365
|
+
const localVarQueryParameter = {} as any;
|
|
4366
|
+
|
|
4367
|
+
// authentication apiToken required
|
|
4368
|
+
// http bearer authentication required
|
|
4369
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
4370
|
+
|
|
4371
|
+
|
|
4372
|
+
|
|
4373
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4374
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4375
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4376
|
+
|
|
4377
|
+
return {
|
|
4378
|
+
url: toPathString(localVarUrlObj),
|
|
4379
|
+
options: localVarRequestOptions,
|
|
4380
|
+
};
|
|
4381
|
+
},
|
|
4382
|
+
/**
|
|
4383
|
+
* 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.
|
|
4384
|
+
* @summary Disable privacy protection
|
|
4385
|
+
* @param {string} domain Domain name
|
|
4386
|
+
* @param {*} [options] Override http request option.
|
|
4387
|
+
* @throws {RequiredError}
|
|
4388
|
+
*/
|
|
4389
|
+
disablePrivacyProtectionV1: async (domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4390
|
+
// verify required parameter 'domain' is not null or undefined
|
|
4391
|
+
assertParamExists('disablePrivacyProtectionV1', 'domain', domain)
|
|
4392
|
+
const localVarPath = `/api/domains/v1/portfolio/{domain}/privacy-protection`
|
|
4393
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
4394
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4395
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4396
|
+
let baseOptions;
|
|
4397
|
+
if (configuration) {
|
|
4398
|
+
baseOptions = configuration.baseOptions;
|
|
4399
|
+
}
|
|
4400
|
+
|
|
4401
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
4402
|
+
const localVarHeaderParameter = {} as any;
|
|
4403
|
+
const localVarQueryParameter = {} as any;
|
|
4404
|
+
|
|
4405
|
+
// authentication apiToken required
|
|
4406
|
+
// http bearer authentication required
|
|
4407
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
4408
|
+
|
|
4409
|
+
|
|
4410
|
+
|
|
4411
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4412
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4413
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4414
|
+
|
|
4415
|
+
return {
|
|
4416
|
+
url: toPathString(localVarUrlObj),
|
|
4417
|
+
options: localVarRequestOptions,
|
|
4418
|
+
};
|
|
4419
|
+
},
|
|
4420
|
+
/**
|
|
4421
|
+
* 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.
|
|
4422
|
+
* @summary Enable domain lock
|
|
4423
|
+
* @param {string} domain Domain name
|
|
4424
|
+
* @param {*} [options] Override http request option.
|
|
4425
|
+
* @throws {RequiredError}
|
|
4426
|
+
*/
|
|
4427
|
+
enableDomainLockV1: async (domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4428
|
+
// verify required parameter 'domain' is not null or undefined
|
|
4429
|
+
assertParamExists('enableDomainLockV1', 'domain', domain)
|
|
4430
|
+
const localVarPath = `/api/domains/v1/portfolio/{domain}/domain-lock`
|
|
4431
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
4432
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4433
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4434
|
+
let baseOptions;
|
|
4435
|
+
if (configuration) {
|
|
4436
|
+
baseOptions = configuration.baseOptions;
|
|
4437
|
+
}
|
|
4438
|
+
|
|
4439
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
4440
|
+
const localVarHeaderParameter = {} as any;
|
|
4441
|
+
const localVarQueryParameter = {} as any;
|
|
4442
|
+
|
|
4443
|
+
// authentication apiToken required
|
|
4444
|
+
// http bearer authentication required
|
|
4445
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
4446
|
+
|
|
4447
|
+
|
|
4448
|
+
|
|
4449
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4450
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4451
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4452
|
+
|
|
4453
|
+
return {
|
|
4454
|
+
url: toPathString(localVarUrlObj),
|
|
4455
|
+
options: localVarRequestOptions,
|
|
4456
|
+
};
|
|
4457
|
+
},
|
|
4458
|
+
/**
|
|
4459
|
+
* 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.
|
|
4460
|
+
* @summary Enable privacy protection
|
|
4461
|
+
* @param {string} domain Domain name
|
|
4462
|
+
* @param {*} [options] Override http request option.
|
|
4463
|
+
* @throws {RequiredError}
|
|
4464
|
+
*/
|
|
4465
|
+
enablePrivacyProtectionV1: async (domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4466
|
+
// verify required parameter 'domain' is not null or undefined
|
|
4467
|
+
assertParamExists('enablePrivacyProtectionV1', 'domain', domain)
|
|
4468
|
+
const localVarPath = `/api/domains/v1/portfolio/{domain}/privacy-protection`
|
|
4469
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
4470
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4471
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4472
|
+
let baseOptions;
|
|
4473
|
+
if (configuration) {
|
|
4474
|
+
baseOptions = configuration.baseOptions;
|
|
4475
|
+
}
|
|
4476
|
+
|
|
4477
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
4478
|
+
const localVarHeaderParameter = {} as any;
|
|
4479
|
+
const localVarQueryParameter = {} as any;
|
|
4480
|
+
|
|
4481
|
+
// authentication apiToken required
|
|
4482
|
+
// http bearer authentication required
|
|
4483
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
4484
|
+
|
|
4485
|
+
|
|
4486
|
+
|
|
4487
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4488
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4489
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4490
|
+
|
|
4491
|
+
return {
|
|
4492
|
+
url: toPathString(localVarUrlObj),
|
|
4493
|
+
options: localVarRequestOptions,
|
|
4494
|
+
};
|
|
4495
|
+
},
|
|
4496
|
+
/**
|
|
4497
|
+
* This endpoint retrieves a list of all domains associated with your account.
|
|
4498
|
+
* @summary Get domain list
|
|
4499
|
+
* @param {*} [options] Override http request option.
|
|
4500
|
+
* @throws {RequiredError}
|
|
4501
|
+
*/
|
|
4502
|
+
getDomainListV1: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4503
|
+
const localVarPath = `/api/domains/v1/portfolio`;
|
|
4504
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4505
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4506
|
+
let baseOptions;
|
|
4507
|
+
if (configuration) {
|
|
4508
|
+
baseOptions = configuration.baseOptions;
|
|
4509
|
+
}
|
|
4510
|
+
|
|
4511
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
4512
|
+
const localVarHeaderParameter = {} as any;
|
|
4513
|
+
const localVarQueryParameter = {} as any;
|
|
4514
|
+
|
|
4515
|
+
// authentication apiToken required
|
|
4516
|
+
// http bearer authentication required
|
|
4517
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
4518
|
+
|
|
4519
|
+
|
|
4520
|
+
|
|
4521
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4522
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4523
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4524
|
+
|
|
4525
|
+
return {
|
|
4526
|
+
url: toPathString(localVarUrlObj),
|
|
4527
|
+
options: localVarRequestOptions,
|
|
4528
|
+
};
|
|
4529
|
+
},
|
|
4530
|
+
/**
|
|
4531
|
+
* This endpoint retrieves details for specified domain.
|
|
4532
|
+
* @summary Get domain
|
|
4533
|
+
* @param {string} domain Domain name
|
|
4534
|
+
* @param {*} [options] Override http request option.
|
|
4535
|
+
* @throws {RequiredError}
|
|
4536
|
+
*/
|
|
4537
|
+
getDomainV1: async (domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4538
|
+
// verify required parameter 'domain' is not null or undefined
|
|
4539
|
+
assertParamExists('getDomainV1', 'domain', domain)
|
|
4540
|
+
const localVarPath = `/api/domains/v1/portfolio/{domain}`
|
|
4541
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
4542
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4543
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4544
|
+
let baseOptions;
|
|
4545
|
+
if (configuration) {
|
|
4546
|
+
baseOptions = configuration.baseOptions;
|
|
4547
|
+
}
|
|
4548
|
+
|
|
4549
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
4550
|
+
const localVarHeaderParameter = {} as any;
|
|
4551
|
+
const localVarQueryParameter = {} as any;
|
|
4552
|
+
|
|
4553
|
+
// authentication apiToken required
|
|
4554
|
+
// http bearer authentication required
|
|
4555
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
4556
|
+
|
|
4557
|
+
|
|
4558
|
+
|
|
4559
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4560
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4561
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4562
|
+
|
|
4563
|
+
return {
|
|
4564
|
+
url: toPathString(localVarUrlObj),
|
|
4565
|
+
options: localVarRequestOptions,
|
|
4566
|
+
};
|
|
4567
|
+
},
|
|
4568
|
+
/**
|
|
4569
|
+
* This endpoint allows you to buy (purchase) and register a new domain name. If registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check the domain registration status. If no payment method is provided, your default payment method will be used automatically. If no WHOIS information is provided, the default contact information for that TLD (Top-Level Domain) will be used. Before making a request, ensure that WHOIS information for the desired TLD exists in your account. Some TLDs require `additional_details` to be provided and these will be validated before completing the purchase. The required additional details vary by TLD.
|
|
4570
|
+
* @summary Purchase new domain
|
|
4571
|
+
* @param {DomainsV1PortfolioPurchaseRequest} domainsV1PortfolioPurchaseRequest
|
|
4572
|
+
* @param {*} [options] Override http request option.
|
|
4573
|
+
* @throws {RequiredError}
|
|
4574
|
+
*/
|
|
4575
|
+
purchaseNewDomainV1: async (domainsV1PortfolioPurchaseRequest: DomainsV1PortfolioPurchaseRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4576
|
+
// verify required parameter 'domainsV1PortfolioPurchaseRequest' is not null or undefined
|
|
4577
|
+
assertParamExists('purchaseNewDomainV1', 'domainsV1PortfolioPurchaseRequest', domainsV1PortfolioPurchaseRequest)
|
|
4578
|
+
const localVarPath = `/api/domains/v1/portfolio`;
|
|
4579
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4580
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4581
|
+
let baseOptions;
|
|
4582
|
+
if (configuration) {
|
|
4583
|
+
baseOptions = configuration.baseOptions;
|
|
4584
|
+
}
|
|
4585
|
+
|
|
4586
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
4587
|
+
const localVarHeaderParameter = {} as any;
|
|
4588
|
+
const localVarQueryParameter = {} as any;
|
|
4589
|
+
|
|
4590
|
+
// authentication apiToken required
|
|
4591
|
+
// http bearer authentication required
|
|
4592
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
4593
|
+
|
|
4594
|
+
|
|
4595
|
+
|
|
4596
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4597
|
+
|
|
4598
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4599
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4600
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4601
|
+
localVarRequestOptions.data = serializeDataIfNeeded(domainsV1PortfolioPurchaseRequest, localVarRequestOptions, configuration)
|
|
4602
|
+
|
|
4603
|
+
return {
|
|
4604
|
+
url: toPathString(localVarUrlObj),
|
|
4605
|
+
options: localVarRequestOptions,
|
|
4606
|
+
};
|
|
4607
|
+
},
|
|
4608
|
+
/**
|
|
4609
|
+
* This endpoint sets the nameservers for a specified domain. Be aware, that improper nameserver configuration can lead to the domain being unresolvable or unavailable.
|
|
4610
|
+
* @summary Update nameservers
|
|
4611
|
+
* @param {string} domain Domain name
|
|
4612
|
+
* @param {DomainsV1PortfolioUpdateNameserversRequest} domainsV1PortfolioUpdateNameserversRequest
|
|
4613
|
+
* @param {*} [options] Override http request option.
|
|
4614
|
+
* @throws {RequiredError}
|
|
4615
|
+
*/
|
|
4616
|
+
updateNameserversV1: async (domain: string, domainsV1PortfolioUpdateNameserversRequest: DomainsV1PortfolioUpdateNameserversRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4617
|
+
// verify required parameter 'domain' is not null or undefined
|
|
4618
|
+
assertParamExists('updateNameserversV1', 'domain', domain)
|
|
4619
|
+
// verify required parameter 'domainsV1PortfolioUpdateNameserversRequest' is not null or undefined
|
|
4620
|
+
assertParamExists('updateNameserversV1', 'domainsV1PortfolioUpdateNameserversRequest', domainsV1PortfolioUpdateNameserversRequest)
|
|
4621
|
+
const localVarPath = `/api/domains/v1/portfolio/{domain}/nameservers`
|
|
4622
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
4623
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4624
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4625
|
+
let baseOptions;
|
|
4626
|
+
if (configuration) {
|
|
4627
|
+
baseOptions = configuration.baseOptions;
|
|
4628
|
+
}
|
|
4629
|
+
|
|
4630
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
4631
|
+
const localVarHeaderParameter = {} as any;
|
|
4632
|
+
const localVarQueryParameter = {} as any;
|
|
4633
|
+
|
|
4634
|
+
// authentication apiToken required
|
|
4635
|
+
// http bearer authentication required
|
|
4636
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
4637
|
+
|
|
4638
|
+
|
|
4639
|
+
|
|
4640
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4641
|
+
|
|
4642
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4643
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4644
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4645
|
+
localVarRequestOptions.data = serializeDataIfNeeded(domainsV1PortfolioUpdateNameserversRequest, localVarRequestOptions, configuration)
|
|
4646
|
+
|
|
4647
|
+
return {
|
|
4648
|
+
url: toPathString(localVarUrlObj),
|
|
4649
|
+
options: localVarRequestOptions,
|
|
4650
|
+
};
|
|
4651
|
+
},
|
|
4652
|
+
}
|
|
4653
|
+
};
|
|
4654
|
+
|
|
4655
|
+
/**
|
|
4656
|
+
* DomainsPortfolioApi - functional programming interface
|
|
4657
|
+
* @export
|
|
4658
|
+
*/
|
|
4659
|
+
export const DomainsPortfolioApiFp = function(configuration?: Configuration) {
|
|
4660
|
+
const localVarAxiosParamCreator = DomainsPortfolioApiAxiosParamCreator(configuration)
|
|
4661
|
+
return {
|
|
4662
|
+
/**
|
|
4663
|
+
* This endpoint disables domain lock for the domain. Domain lock needs to be disabled before transferring the domain to another registrar.
|
|
4664
|
+
* @summary Disable domain lock
|
|
4665
|
+
* @param {string} domain Domain name
|
|
4666
|
+
* @param {*} [options] Override http request option.
|
|
4667
|
+
* @throws {RequiredError}
|
|
4668
|
+
*/
|
|
4669
|
+
async disableDomainLockV1(domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
|
|
4670
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.disableDomainLockV1(domain, options);
|
|
4671
|
+
const localVarOperationServerBasePath = operationServerMap['DomainsPortfolioApi.disableDomainLockV1']?.[0]?.url;
|
|
4672
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4673
|
+
},
|
|
4674
|
+
/**
|
|
4675
|
+
* 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.
|
|
4676
|
+
* @summary Disable privacy protection
|
|
4677
|
+
* @param {string} domain Domain name
|
|
4678
|
+
* @param {*} [options] Override http request option.
|
|
4679
|
+
* @throws {RequiredError}
|
|
4680
|
+
*/
|
|
4681
|
+
async disablePrivacyProtectionV1(domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
|
|
4682
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.disablePrivacyProtectionV1(domain, options);
|
|
4683
|
+
const localVarOperationServerBasePath = operationServerMap['DomainsPortfolioApi.disablePrivacyProtectionV1']?.[0]?.url;
|
|
4684
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4685
|
+
},
|
|
4686
|
+
/**
|
|
4687
|
+
* 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.
|
|
4688
|
+
* @summary Enable domain lock
|
|
4689
|
+
* @param {string} domain Domain name
|
|
4690
|
+
* @param {*} [options] Override http request option.
|
|
4691
|
+
* @throws {RequiredError}
|
|
4692
|
+
*/
|
|
4693
|
+
async enableDomainLockV1(domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
|
|
4694
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.enableDomainLockV1(domain, options);
|
|
4695
|
+
const localVarOperationServerBasePath = operationServerMap['DomainsPortfolioApi.enableDomainLockV1']?.[0]?.url;
|
|
4696
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4697
|
+
},
|
|
4698
|
+
/**
|
|
4699
|
+
* 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.
|
|
4700
|
+
* @summary Enable privacy protection
|
|
4701
|
+
* @param {string} domain Domain name
|
|
4702
|
+
* @param {*} [options] Override http request option.
|
|
4703
|
+
* @throws {RequiredError}
|
|
4704
|
+
*/
|
|
4705
|
+
async enablePrivacyProtectionV1(domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
|
|
4706
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.enablePrivacyProtectionV1(domain, options);
|
|
4707
|
+
const localVarOperationServerBasePath = operationServerMap['DomainsPortfolioApi.enablePrivacyProtectionV1']?.[0]?.url;
|
|
4708
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4709
|
+
},
|
|
4710
|
+
/**
|
|
4711
|
+
* This endpoint retrieves a list of all domains associated with your account.
|
|
4712
|
+
* @summary Get domain list
|
|
4713
|
+
* @param {*} [options] Override http request option.
|
|
4714
|
+
* @throws {RequiredError}
|
|
4715
|
+
*/
|
|
4716
|
+
async getDomainListV1(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<DomainsV1DomainDomainResource>>> {
|
|
4717
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getDomainListV1(options);
|
|
4718
|
+
const localVarOperationServerBasePath = operationServerMap['DomainsPortfolioApi.getDomainListV1']?.[0]?.url;
|
|
4719
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4720
|
+
},
|
|
4721
|
+
/**
|
|
4722
|
+
* This endpoint retrieves details for specified domain.
|
|
4723
|
+
* @summary Get domain
|
|
4724
|
+
* @param {string} domain Domain name
|
|
4725
|
+
* @param {*} [options] Override http request option.
|
|
4726
|
+
* @throws {RequiredError}
|
|
4727
|
+
*/
|
|
4728
|
+
async getDomainV1(domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DomainsV1DomainDomainExtendedResource>> {
|
|
4729
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getDomainV1(domain, options);
|
|
4730
|
+
const localVarOperationServerBasePath = operationServerMap['DomainsPortfolioApi.getDomainV1']?.[0]?.url;
|
|
4731
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4732
|
+
},
|
|
4733
|
+
/**
|
|
4734
|
+
* This endpoint allows you to buy (purchase) and register a new domain name. If registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check the domain registration status. If no payment method is provided, your default payment method will be used automatically. If no WHOIS information is provided, the default contact information for that TLD (Top-Level Domain) will be used. Before making a request, ensure that WHOIS information for the desired TLD exists in your account. Some TLDs require `additional_details` to be provided and these will be validated before completing the purchase. The required additional details vary by TLD.
|
|
4735
|
+
* @summary Purchase new domain
|
|
4736
|
+
* @param {DomainsV1PortfolioPurchaseRequest} domainsV1PortfolioPurchaseRequest
|
|
4737
|
+
* @param {*} [options] Override http request option.
|
|
4738
|
+
* @throws {RequiredError}
|
|
4739
|
+
*/
|
|
4740
|
+
async purchaseNewDomainV1(domainsV1PortfolioPurchaseRequest: DomainsV1PortfolioPurchaseRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BillingV1OrderOrderResource>> {
|
|
4741
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.purchaseNewDomainV1(domainsV1PortfolioPurchaseRequest, options);
|
|
4742
|
+
const localVarOperationServerBasePath = operationServerMap['DomainsPortfolioApi.purchaseNewDomainV1']?.[0]?.url;
|
|
4743
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4744
|
+
},
|
|
4745
|
+
/**
|
|
4746
|
+
* This endpoint sets the nameservers for a specified domain. Be aware, that improper nameserver configuration can lead to the domain being unresolvable or unavailable.
|
|
4747
|
+
* @summary Update nameservers
|
|
4748
|
+
* @param {string} domain Domain name
|
|
4749
|
+
* @param {DomainsV1PortfolioUpdateNameserversRequest} domainsV1PortfolioUpdateNameserversRequest
|
|
4750
|
+
* @param {*} [options] Override http request option.
|
|
4751
|
+
* @throws {RequiredError}
|
|
4752
|
+
*/
|
|
4753
|
+
async updateNameserversV1(domain: string, domainsV1PortfolioUpdateNameserversRequest: DomainsV1PortfolioUpdateNameserversRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
|
|
4754
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateNameserversV1(domain, domainsV1PortfolioUpdateNameserversRequest, options);
|
|
4755
|
+
const localVarOperationServerBasePath = operationServerMap['DomainsPortfolioApi.updateNameserversV1']?.[0]?.url;
|
|
4756
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4757
|
+
},
|
|
4758
|
+
}
|
|
4759
|
+
};
|
|
4760
|
+
|
|
4761
|
+
/**
|
|
4762
|
+
* DomainsPortfolioApi - factory interface
|
|
4763
|
+
* @export
|
|
4764
|
+
*/
|
|
4765
|
+
export const DomainsPortfolioApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
4766
|
+
const localVarFp = DomainsPortfolioApiFp(configuration)
|
|
4767
|
+
return {
|
|
4768
|
+
/**
|
|
4769
|
+
* This endpoint disables domain lock for the domain. Domain lock needs to be disabled before transferring the domain to another registrar.
|
|
4770
|
+
* @summary Disable domain lock
|
|
4771
|
+
* @param {string} domain Domain name
|
|
4772
|
+
* @param {*} [options] Override http request option.
|
|
4773
|
+
* @throws {RequiredError}
|
|
4774
|
+
*/
|
|
4775
|
+
disableDomainLockV1(domain: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
|
|
4776
|
+
return localVarFp.disableDomainLockV1(domain, options).then((request) => request(axios, basePath));
|
|
4777
|
+
},
|
|
4778
|
+
/**
|
|
4779
|
+
* 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.
|
|
4780
|
+
* @summary Disable privacy protection
|
|
4781
|
+
* @param {string} domain Domain name
|
|
4782
|
+
* @param {*} [options] Override http request option.
|
|
4783
|
+
* @throws {RequiredError}
|
|
4784
|
+
*/
|
|
4785
|
+
disablePrivacyProtectionV1(domain: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
|
|
4786
|
+
return localVarFp.disablePrivacyProtectionV1(domain, options).then((request) => request(axios, basePath));
|
|
4787
|
+
},
|
|
4788
|
+
/**
|
|
4789
|
+
* 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.
|
|
4790
|
+
* @summary Enable domain lock
|
|
4791
|
+
* @param {string} domain Domain name
|
|
4792
|
+
* @param {*} [options] Override http request option.
|
|
4793
|
+
* @throws {RequiredError}
|
|
4794
|
+
*/
|
|
4795
|
+
enableDomainLockV1(domain: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
|
|
4796
|
+
return localVarFp.enableDomainLockV1(domain, options).then((request) => request(axios, basePath));
|
|
4797
|
+
},
|
|
4798
|
+
/**
|
|
4799
|
+
* 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.
|
|
4800
|
+
* @summary Enable privacy protection
|
|
4801
|
+
* @param {string} domain Domain name
|
|
4802
|
+
* @param {*} [options] Override http request option.
|
|
4803
|
+
* @throws {RequiredError}
|
|
4804
|
+
*/
|
|
4805
|
+
enablePrivacyProtectionV1(domain: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
|
|
4806
|
+
return localVarFp.enablePrivacyProtectionV1(domain, options).then((request) => request(axios, basePath));
|
|
4807
|
+
},
|
|
4808
|
+
/**
|
|
4809
|
+
* This endpoint retrieves a list of all domains associated with your account.
|
|
4810
|
+
* @summary Get domain list
|
|
4811
|
+
* @param {*} [options] Override http request option.
|
|
4812
|
+
* @throws {RequiredError}
|
|
4813
|
+
*/
|
|
4814
|
+
getDomainListV1(options?: RawAxiosRequestConfig): AxiosPromise<Array<DomainsV1DomainDomainResource>> {
|
|
4815
|
+
return localVarFp.getDomainListV1(options).then((request) => request(axios, basePath));
|
|
4816
|
+
},
|
|
4817
|
+
/**
|
|
4818
|
+
* This endpoint retrieves details for specified domain.
|
|
4819
|
+
* @summary Get domain
|
|
4820
|
+
* @param {string} domain Domain name
|
|
4821
|
+
* @param {*} [options] Override http request option.
|
|
4822
|
+
* @throws {RequiredError}
|
|
4823
|
+
*/
|
|
4824
|
+
getDomainV1(domain: string, options?: RawAxiosRequestConfig): AxiosPromise<DomainsV1DomainDomainExtendedResource> {
|
|
4825
|
+
return localVarFp.getDomainV1(domain, options).then((request) => request(axios, basePath));
|
|
4826
|
+
},
|
|
4827
|
+
/**
|
|
4828
|
+
* This endpoint allows you to buy (purchase) and register a new domain name. If registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check the domain registration status. If no payment method is provided, your default payment method will be used automatically. If no WHOIS information is provided, the default contact information for that TLD (Top-Level Domain) will be used. Before making a request, ensure that WHOIS information for the desired TLD exists in your account. Some TLDs require `additional_details` to be provided and these will be validated before completing the purchase. The required additional details vary by TLD.
|
|
4829
|
+
* @summary Purchase new domain
|
|
4830
|
+
* @param {DomainsV1PortfolioPurchaseRequest} domainsV1PortfolioPurchaseRequest
|
|
4831
|
+
* @param {*} [options] Override http request option.
|
|
4832
|
+
* @throws {RequiredError}
|
|
4833
|
+
*/
|
|
4834
|
+
purchaseNewDomainV1(domainsV1PortfolioPurchaseRequest: DomainsV1PortfolioPurchaseRequest, options?: RawAxiosRequestConfig): AxiosPromise<BillingV1OrderOrderResource> {
|
|
4835
|
+
return localVarFp.purchaseNewDomainV1(domainsV1PortfolioPurchaseRequest, options).then((request) => request(axios, basePath));
|
|
4836
|
+
},
|
|
4837
|
+
/**
|
|
4838
|
+
* This endpoint sets the nameservers for a specified domain. Be aware, that improper nameserver configuration can lead to the domain being unresolvable or unavailable.
|
|
4839
|
+
* @summary Update nameservers
|
|
4840
|
+
* @param {string} domain Domain name
|
|
4841
|
+
* @param {DomainsV1PortfolioUpdateNameserversRequest} domainsV1PortfolioUpdateNameserversRequest
|
|
4842
|
+
* @param {*} [options] Override http request option.
|
|
4843
|
+
* @throws {RequiredError}
|
|
4844
|
+
*/
|
|
4845
|
+
updateNameserversV1(domain: string, domainsV1PortfolioUpdateNameserversRequest: DomainsV1PortfolioUpdateNameserversRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
|
|
4846
|
+
return localVarFp.updateNameserversV1(domain, domainsV1PortfolioUpdateNameserversRequest, options).then((request) => request(axios, basePath));
|
|
4847
|
+
},
|
|
4848
|
+
};
|
|
4849
|
+
};
|
|
4850
|
+
|
|
4851
|
+
/**
|
|
4852
|
+
* DomainsPortfolioApi - object-oriented interface
|
|
4853
|
+
* @export
|
|
4854
|
+
* @class DomainsPortfolioApi
|
|
4855
|
+
* @extends {BaseAPI}
|
|
4856
|
+
*/
|
|
4857
|
+
export class DomainsPortfolioApi extends BaseAPI {
|
|
4858
|
+
/**
|
|
4859
|
+
* This endpoint disables domain lock for the domain. Domain lock needs to be disabled before transferring the domain to another registrar.
|
|
4860
|
+
* @summary Disable domain lock
|
|
4861
|
+
* @param {string} domain Domain name
|
|
4862
|
+
* @param {*} [options] Override http request option.
|
|
4863
|
+
* @throws {RequiredError}
|
|
4864
|
+
* @memberof DomainsPortfolioApi
|
|
4865
|
+
*/
|
|
4866
|
+
public disableDomainLockV1(domain: string, options?: RawAxiosRequestConfig) {
|
|
4867
|
+
return DomainsPortfolioApiFp(this.configuration).disableDomainLockV1(domain, options).then((request) => request(this.axios, this.basePath));
|
|
4868
|
+
}
|
|
4869
|
+
|
|
4870
|
+
/**
|
|
4871
|
+
* 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.
|
|
4872
|
+
* @summary Disable privacy protection
|
|
4873
|
+
* @param {string} domain Domain name
|
|
4874
|
+
* @param {*} [options] Override http request option.
|
|
4875
|
+
* @throws {RequiredError}
|
|
4876
|
+
* @memberof DomainsPortfolioApi
|
|
4877
|
+
*/
|
|
4878
|
+
public disablePrivacyProtectionV1(domain: string, options?: RawAxiosRequestConfig) {
|
|
4879
|
+
return DomainsPortfolioApiFp(this.configuration).disablePrivacyProtectionV1(domain, options).then((request) => request(this.axios, this.basePath));
|
|
4880
|
+
}
|
|
4881
|
+
|
|
4882
|
+
/**
|
|
4883
|
+
* 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.
|
|
4884
|
+
* @summary Enable domain lock
|
|
4885
|
+
* @param {string} domain Domain name
|
|
4886
|
+
* @param {*} [options] Override http request option.
|
|
4887
|
+
* @throws {RequiredError}
|
|
4888
|
+
* @memberof DomainsPortfolioApi
|
|
4889
|
+
*/
|
|
4890
|
+
public enableDomainLockV1(domain: string, options?: RawAxiosRequestConfig) {
|
|
4891
|
+
return DomainsPortfolioApiFp(this.configuration).enableDomainLockV1(domain, options).then((request) => request(this.axios, this.basePath));
|
|
4892
|
+
}
|
|
4893
|
+
|
|
4894
|
+
/**
|
|
4895
|
+
* 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.
|
|
4896
|
+
* @summary Enable privacy protection
|
|
4897
|
+
* @param {string} domain Domain name
|
|
4898
|
+
* @param {*} [options] Override http request option.
|
|
4899
|
+
* @throws {RequiredError}
|
|
4900
|
+
* @memberof DomainsPortfolioApi
|
|
4901
|
+
*/
|
|
4902
|
+
public enablePrivacyProtectionV1(domain: string, options?: RawAxiosRequestConfig) {
|
|
4903
|
+
return DomainsPortfolioApiFp(this.configuration).enablePrivacyProtectionV1(domain, options).then((request) => request(this.axios, this.basePath));
|
|
4904
|
+
}
|
|
4905
|
+
|
|
4906
|
+
/**
|
|
4907
|
+
* This endpoint retrieves a list of all domains associated with your account.
|
|
4908
|
+
* @summary Get domain list
|
|
4909
|
+
* @param {*} [options] Override http request option.
|
|
4910
|
+
* @throws {RequiredError}
|
|
4911
|
+
* @memberof DomainsPortfolioApi
|
|
4912
|
+
*/
|
|
4913
|
+
public getDomainListV1(options?: RawAxiosRequestConfig) {
|
|
4914
|
+
return DomainsPortfolioApiFp(this.configuration).getDomainListV1(options).then((request) => request(this.axios, this.basePath));
|
|
4915
|
+
}
|
|
4916
|
+
|
|
4917
|
+
/**
|
|
4918
|
+
* This endpoint retrieves details for specified domain.
|
|
4919
|
+
* @summary Get domain
|
|
4920
|
+
* @param {string} domain Domain name
|
|
4921
|
+
* @param {*} [options] Override http request option.
|
|
4922
|
+
* @throws {RequiredError}
|
|
4923
|
+
* @memberof DomainsPortfolioApi
|
|
4924
|
+
*/
|
|
4925
|
+
public getDomainV1(domain: string, options?: RawAxiosRequestConfig) {
|
|
4926
|
+
return DomainsPortfolioApiFp(this.configuration).getDomainV1(domain, options).then((request) => request(this.axios, this.basePath));
|
|
4927
|
+
}
|
|
4928
|
+
|
|
4929
|
+
/**
|
|
4930
|
+
* This endpoint allows you to buy (purchase) and register a new domain name. If registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check the domain registration status. If no payment method is provided, your default payment method will be used automatically. If no WHOIS information is provided, the default contact information for that TLD (Top-Level Domain) will be used. Before making a request, ensure that WHOIS information for the desired TLD exists in your account. Some TLDs require `additional_details` to be provided and these will be validated before completing the purchase. The required additional details vary by TLD.
|
|
4931
|
+
* @summary Purchase new domain
|
|
4932
|
+
* @param {DomainsV1PortfolioPurchaseRequest} domainsV1PortfolioPurchaseRequest
|
|
4933
|
+
* @param {*} [options] Override http request option.
|
|
4934
|
+
* @throws {RequiredError}
|
|
4935
|
+
* @memberof DomainsPortfolioApi
|
|
4936
|
+
*/
|
|
4937
|
+
public purchaseNewDomainV1(domainsV1PortfolioPurchaseRequest: DomainsV1PortfolioPurchaseRequest, options?: RawAxiosRequestConfig) {
|
|
4938
|
+
return DomainsPortfolioApiFp(this.configuration).purchaseNewDomainV1(domainsV1PortfolioPurchaseRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4939
|
+
}
|
|
4940
|
+
|
|
4941
|
+
/**
|
|
4942
|
+
* This endpoint sets the nameservers for a specified domain. Be aware, that improper nameserver configuration can lead to the domain being unresolvable or unavailable.
|
|
4943
|
+
* @summary Update nameservers
|
|
4944
|
+
* @param {string} domain Domain name
|
|
4945
|
+
* @param {DomainsV1PortfolioUpdateNameserversRequest} domainsV1PortfolioUpdateNameserversRequest
|
|
4946
|
+
* @param {*} [options] Override http request option.
|
|
4947
|
+
* @throws {RequiredError}
|
|
4948
|
+
* @memberof DomainsPortfolioApi
|
|
4949
|
+
*/
|
|
4950
|
+
public updateNameserversV1(domain: string, domainsV1PortfolioUpdateNameserversRequest: DomainsV1PortfolioUpdateNameserversRequest, options?: RawAxiosRequestConfig) {
|
|
4951
|
+
return DomainsPortfolioApiFp(this.configuration).updateNameserversV1(domain, domainsV1PortfolioUpdateNameserversRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4952
|
+
}
|
|
4953
|
+
}
|
|
4954
|
+
|
|
4955
|
+
|
|
4956
|
+
|
|
4957
|
+
/**
|
|
4958
|
+
* DomainsWHOISApi - axios parameter creator
|
|
4959
|
+
* @export
|
|
4960
|
+
*/
|
|
4961
|
+
export const DomainsWHOISApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
4962
|
+
return {
|
|
4963
|
+
/**
|
|
4964
|
+
* This endpoint creates WHOIS contact profile.
|
|
4965
|
+
* @summary Create WHOIS profile
|
|
4966
|
+
* @param {DomainsV1WHOISStoreRequest} domainsV1WHOISStoreRequest
|
|
4967
|
+
* @param {*} [options] Override http request option.
|
|
4968
|
+
* @throws {RequiredError}
|
|
4969
|
+
*/
|
|
4970
|
+
createWHOISProfileV1: async (domainsV1WHOISStoreRequest: DomainsV1WHOISStoreRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4971
|
+
// verify required parameter 'domainsV1WHOISStoreRequest' is not null or undefined
|
|
4972
|
+
assertParamExists('createWHOISProfileV1', 'domainsV1WHOISStoreRequest', domainsV1WHOISStoreRequest)
|
|
4973
|
+
const localVarPath = `/api/domains/v1/whois`;
|
|
4974
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4975
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4976
|
+
let baseOptions;
|
|
4977
|
+
if (configuration) {
|
|
4978
|
+
baseOptions = configuration.baseOptions;
|
|
4979
|
+
}
|
|
4980
|
+
|
|
4981
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
4982
|
+
const localVarHeaderParameter = {} as any;
|
|
4983
|
+
const localVarQueryParameter = {} as any;
|
|
4984
|
+
|
|
4985
|
+
// authentication apiToken required
|
|
4986
|
+
// http bearer authentication required
|
|
4987
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
4988
|
+
|
|
4989
|
+
|
|
4990
|
+
|
|
4991
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4992
|
+
|
|
4993
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4994
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4995
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4996
|
+
localVarRequestOptions.data = serializeDataIfNeeded(domainsV1WHOISStoreRequest, localVarRequestOptions, configuration)
|
|
4997
|
+
|
|
4998
|
+
return {
|
|
4999
|
+
url: toPathString(localVarUrlObj),
|
|
5000
|
+
options: localVarRequestOptions,
|
|
5001
|
+
};
|
|
5002
|
+
},
|
|
5003
|
+
/**
|
|
5004
|
+
* This endpoint deletes WHOIS contact profile.
|
|
5005
|
+
* @summary Delete WHOIS profile
|
|
5006
|
+
* @param {number} whoisId WHOIS ID
|
|
5007
|
+
* @param {*} [options] Override http request option.
|
|
5008
|
+
* @throws {RequiredError}
|
|
5009
|
+
*/
|
|
5010
|
+
deleteWHOISProfileV1: async (whoisId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5011
|
+
// verify required parameter 'whoisId' is not null or undefined
|
|
5012
|
+
assertParamExists('deleteWHOISProfileV1', 'whoisId', whoisId)
|
|
5013
|
+
const localVarPath = `/api/domains/v1/whois/{whoisId}`
|
|
5014
|
+
.replace(`{${"whoisId"}}`, encodeURIComponent(String(whoisId)));
|
|
5015
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5016
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5017
|
+
let baseOptions;
|
|
5018
|
+
if (configuration) {
|
|
5019
|
+
baseOptions = configuration.baseOptions;
|
|
5020
|
+
}
|
|
5021
|
+
|
|
5022
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
5023
|
+
const localVarHeaderParameter = {} as any;
|
|
5024
|
+
const localVarQueryParameter = {} as any;
|
|
5025
|
+
|
|
5026
|
+
// authentication apiToken required
|
|
5027
|
+
// http bearer authentication required
|
|
5028
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
5029
|
+
|
|
5030
|
+
|
|
5031
|
+
|
|
5032
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5033
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5034
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5035
|
+
|
|
5036
|
+
return {
|
|
5037
|
+
url: toPathString(localVarUrlObj),
|
|
5038
|
+
options: localVarRequestOptions,
|
|
5039
|
+
};
|
|
5040
|
+
},
|
|
3426
5041
|
/**
|
|
3427
|
-
* This endpoint
|
|
3428
|
-
* @summary
|
|
3429
|
-
* @param {
|
|
5042
|
+
* This endpoint retrieves a list of WHOIS contact profiles.
|
|
5043
|
+
* @summary Get WHOIS profile list
|
|
5044
|
+
* @param {string} [tld] Filter by TLD (without leading dot)
|
|
3430
5045
|
* @param {*} [options] Override http request option.
|
|
3431
5046
|
* @throws {RequiredError}
|
|
3432
5047
|
*/
|
|
3433
|
-
|
|
3434
|
-
|
|
3435
|
-
assertParamExists('checkDomainAvailabilityV1', 'domainsV1AvailabilityAvailabilityRequest', domainsV1AvailabilityAvailabilityRequest)
|
|
3436
|
-
const localVarPath = `/api/domains/v1/availability`;
|
|
5048
|
+
getWHOISProfileListV1: async (tld?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5049
|
+
const localVarPath = `/api/domains/v1/whois`;
|
|
3437
5050
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3438
5051
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3439
5052
|
let baseOptions;
|
|
@@ -3441,7 +5054,7 @@ export const DomainsAvailabilityApiAxiosParamCreator = function (configuration?:
|
|
|
3441
5054
|
baseOptions = configuration.baseOptions;
|
|
3442
5055
|
}
|
|
3443
5056
|
|
|
3444
|
-
const localVarRequestOptions = { method: '
|
|
5057
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
3445
5058
|
const localVarHeaderParameter = {} as any;
|
|
3446
5059
|
const localVarQueryParameter = {} as any;
|
|
3447
5060
|
|
|
@@ -3449,101 +5062,71 @@ export const DomainsAvailabilityApiAxiosParamCreator = function (configuration?:
|
|
|
3449
5062
|
// http bearer authentication required
|
|
3450
5063
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
3451
5064
|
|
|
5065
|
+
if (tld !== undefined) {
|
|
5066
|
+
localVarQueryParameter['tld'] = tld;
|
|
5067
|
+
}
|
|
5068
|
+
|
|
3452
5069
|
|
|
3453
5070
|
|
|
3454
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3455
|
-
|
|
3456
5071
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3457
5072
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3458
5073
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3459
|
-
localVarRequestOptions.data = serializeDataIfNeeded(domainsV1AvailabilityAvailabilityRequest, localVarRequestOptions, configuration)
|
|
3460
5074
|
|
|
3461
5075
|
return {
|
|
3462
5076
|
url: toPathString(localVarUrlObj),
|
|
3463
5077
|
options: localVarRequestOptions,
|
|
3464
5078
|
};
|
|
3465
5079
|
},
|
|
3466
|
-
}
|
|
3467
|
-
};
|
|
3468
|
-
|
|
3469
|
-
/**
|
|
3470
|
-
* DomainsAvailabilityApi - functional programming interface
|
|
3471
|
-
* @export
|
|
3472
|
-
*/
|
|
3473
|
-
export const DomainsAvailabilityApiFp = function(configuration?: Configuration) {
|
|
3474
|
-
const localVarAxiosParamCreator = DomainsAvailabilityApiAxiosParamCreator(configuration)
|
|
3475
|
-
return {
|
|
3476
5080
|
/**
|
|
3477
|
-
* This endpoint
|
|
3478
|
-
* @summary
|
|
3479
|
-
* @param {
|
|
5081
|
+
* This endpoint retrieves a domain list where provided WHOIS contact profile is used.
|
|
5082
|
+
* @summary Get WHOIS profile usage
|
|
5083
|
+
* @param {number} whoisId WHOIS ID
|
|
3480
5084
|
* @param {*} [options] Override http request option.
|
|
3481
5085
|
* @throws {RequiredError}
|
|
3482
5086
|
*/
|
|
3483
|
-
async
|
|
3484
|
-
|
|
3485
|
-
|
|
3486
|
-
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
|
|
5087
|
+
getWHOISProfileUsageV1: async (whoisId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5088
|
+
// verify required parameter 'whoisId' is not null or undefined
|
|
5089
|
+
assertParamExists('getWHOISProfileUsageV1', 'whoisId', whoisId)
|
|
5090
|
+
const localVarPath = `/api/domains/v1/whois/{whoisId}/usage`
|
|
5091
|
+
.replace(`{${"whoisId"}}`, encodeURIComponent(String(whoisId)));
|
|
5092
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5093
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5094
|
+
let baseOptions;
|
|
5095
|
+
if (configuration) {
|
|
5096
|
+
baseOptions = configuration.baseOptions;
|
|
5097
|
+
}
|
|
3490
5098
|
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
|
|
3494
|
-
*/
|
|
3495
|
-
export const DomainsAvailabilityApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
3496
|
-
const localVarFp = DomainsAvailabilityApiFp(configuration)
|
|
3497
|
-
return {
|
|
3498
|
-
/**
|
|
3499
|
-
* 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.
|
|
3500
|
-
* @summary Check domain availability
|
|
3501
|
-
* @param {DomainsV1AvailabilityAvailabilityRequest} domainsV1AvailabilityAvailabilityRequest
|
|
3502
|
-
* @param {*} [options] Override http request option.
|
|
3503
|
-
* @throws {RequiredError}
|
|
3504
|
-
*/
|
|
3505
|
-
checkDomainAvailabilityV1(domainsV1AvailabilityAvailabilityRequest: DomainsV1AvailabilityAvailabilityRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<DomainsV1AvailabilityAvailabilityResource>> {
|
|
3506
|
-
return localVarFp.checkDomainAvailabilityV1(domainsV1AvailabilityAvailabilityRequest, options).then((request) => request(axios, basePath));
|
|
3507
|
-
},
|
|
3508
|
-
};
|
|
3509
|
-
};
|
|
5099
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
5100
|
+
const localVarHeaderParameter = {} as any;
|
|
5101
|
+
const localVarQueryParameter = {} as any;
|
|
3510
5102
|
|
|
3511
|
-
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
* @class DomainsAvailabilityApi
|
|
3515
|
-
* @extends {BaseAPI}
|
|
3516
|
-
*/
|
|
3517
|
-
export class DomainsAvailabilityApi extends BaseAPI {
|
|
3518
|
-
/**
|
|
3519
|
-
* 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.
|
|
3520
|
-
* @summary Check domain availability
|
|
3521
|
-
* @param {DomainsV1AvailabilityAvailabilityRequest} domainsV1AvailabilityAvailabilityRequest
|
|
3522
|
-
* @param {*} [options] Override http request option.
|
|
3523
|
-
* @throws {RequiredError}
|
|
3524
|
-
* @memberof DomainsAvailabilityApi
|
|
3525
|
-
*/
|
|
3526
|
-
public checkDomainAvailabilityV1(domainsV1AvailabilityAvailabilityRequest: DomainsV1AvailabilityAvailabilityRequest, options?: RawAxiosRequestConfig) {
|
|
3527
|
-
return DomainsAvailabilityApiFp(this.configuration).checkDomainAvailabilityV1(domainsV1AvailabilityAvailabilityRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3528
|
-
}
|
|
3529
|
-
}
|
|
5103
|
+
// authentication apiToken required
|
|
5104
|
+
// http bearer authentication required
|
|
5105
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
3530
5106
|
|
|
3531
5107
|
|
|
5108
|
+
|
|
5109
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5110
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5111
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3532
5112
|
|
|
3533
|
-
|
|
3534
|
-
|
|
3535
|
-
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
return {
|
|
5113
|
+
return {
|
|
5114
|
+
url: toPathString(localVarUrlObj),
|
|
5115
|
+
options: localVarRequestOptions,
|
|
5116
|
+
};
|
|
5117
|
+
},
|
|
3539
5118
|
/**
|
|
3540
|
-
* This endpoint retrieves a
|
|
3541
|
-
* @summary Get
|
|
5119
|
+
* This endpoint retrieves a WHOIS contact profile.
|
|
5120
|
+
* @summary Get WHOIS profile
|
|
5121
|
+
* @param {number} whoisId WHOIS ID
|
|
3542
5122
|
* @param {*} [options] Override http request option.
|
|
3543
5123
|
* @throws {RequiredError}
|
|
3544
5124
|
*/
|
|
3545
|
-
|
|
3546
|
-
|
|
5125
|
+
getWHOISProfileV1: async (whoisId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5126
|
+
// verify required parameter 'whoisId' is not null or undefined
|
|
5127
|
+
assertParamExists('getWHOISProfileV1', 'whoisId', whoisId)
|
|
5128
|
+
const localVarPath = `/api/domains/v1/whois/{whoisId}`
|
|
5129
|
+
.replace(`{${"whoisId"}}`, encodeURIComponent(String(whoisId)));
|
|
3547
5130
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3548
5131
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3549
5132
|
let baseOptions;
|
|
@@ -3574,61 +5157,200 @@ export const DomainsPortfolioApiAxiosParamCreator = function (configuration?: Co
|
|
|
3574
5157
|
};
|
|
3575
5158
|
|
|
3576
5159
|
/**
|
|
3577
|
-
*
|
|
5160
|
+
* DomainsWHOISApi - functional programming interface
|
|
3578
5161
|
* @export
|
|
3579
5162
|
*/
|
|
3580
|
-
export const
|
|
3581
|
-
const localVarAxiosParamCreator =
|
|
5163
|
+
export const DomainsWHOISApiFp = function(configuration?: Configuration) {
|
|
5164
|
+
const localVarAxiosParamCreator = DomainsWHOISApiAxiosParamCreator(configuration)
|
|
3582
5165
|
return {
|
|
3583
5166
|
/**
|
|
3584
|
-
* This endpoint
|
|
3585
|
-
* @summary
|
|
5167
|
+
* This endpoint creates WHOIS contact profile.
|
|
5168
|
+
* @summary Create WHOIS profile
|
|
5169
|
+
* @param {DomainsV1WHOISStoreRequest} domainsV1WHOISStoreRequest
|
|
3586
5170
|
* @param {*} [options] Override http request option.
|
|
3587
5171
|
* @throws {RequiredError}
|
|
3588
5172
|
*/
|
|
3589
|
-
async
|
|
3590
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
3591
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
5173
|
+
async createWHOISProfileV1(domainsV1WHOISStoreRequest: DomainsV1WHOISStoreRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DomainsV1WHOISProfileResource>> {
|
|
5174
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createWHOISProfileV1(domainsV1WHOISStoreRequest, options);
|
|
5175
|
+
const localVarOperationServerBasePath = operationServerMap['DomainsWHOISApi.createWHOISProfileV1']?.[0]?.url;
|
|
5176
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5177
|
+
},
|
|
5178
|
+
/**
|
|
5179
|
+
* This endpoint deletes WHOIS contact profile.
|
|
5180
|
+
* @summary Delete WHOIS profile
|
|
5181
|
+
* @param {number} whoisId WHOIS ID
|
|
5182
|
+
* @param {*} [options] Override http request option.
|
|
5183
|
+
* @throws {RequiredError}
|
|
5184
|
+
*/
|
|
5185
|
+
async deleteWHOISProfileV1(whoisId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
|
|
5186
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteWHOISProfileV1(whoisId, options);
|
|
5187
|
+
const localVarOperationServerBasePath = operationServerMap['DomainsWHOISApi.deleteWHOISProfileV1']?.[0]?.url;
|
|
5188
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5189
|
+
},
|
|
5190
|
+
/**
|
|
5191
|
+
* This endpoint retrieves a list of WHOIS contact profiles.
|
|
5192
|
+
* @summary Get WHOIS profile list
|
|
5193
|
+
* @param {string} [tld] Filter by TLD (without leading dot)
|
|
5194
|
+
* @param {*} [options] Override http request option.
|
|
5195
|
+
* @throws {RequiredError}
|
|
5196
|
+
*/
|
|
5197
|
+
async getWHOISProfileListV1(tld?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<DomainsV1WHOISProfileResource>>> {
|
|
5198
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getWHOISProfileListV1(tld, options);
|
|
5199
|
+
const localVarOperationServerBasePath = operationServerMap['DomainsWHOISApi.getWHOISProfileListV1']?.[0]?.url;
|
|
5200
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5201
|
+
},
|
|
5202
|
+
/**
|
|
5203
|
+
* This endpoint retrieves a domain list where provided WHOIS contact profile is used.
|
|
5204
|
+
* @summary Get WHOIS profile usage
|
|
5205
|
+
* @param {number} whoisId WHOIS ID
|
|
5206
|
+
* @param {*} [options] Override http request option.
|
|
5207
|
+
* @throws {RequiredError}
|
|
5208
|
+
*/
|
|
5209
|
+
async getWHOISProfileUsageV1(whoisId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
|
|
5210
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getWHOISProfileUsageV1(whoisId, options);
|
|
5211
|
+
const localVarOperationServerBasePath = operationServerMap['DomainsWHOISApi.getWHOISProfileUsageV1']?.[0]?.url;
|
|
5212
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5213
|
+
},
|
|
5214
|
+
/**
|
|
5215
|
+
* This endpoint retrieves a WHOIS contact profile.
|
|
5216
|
+
* @summary Get WHOIS profile
|
|
5217
|
+
* @param {number} whoisId WHOIS ID
|
|
5218
|
+
* @param {*} [options] Override http request option.
|
|
5219
|
+
* @throws {RequiredError}
|
|
5220
|
+
*/
|
|
5221
|
+
async getWHOISProfileV1(whoisId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DomainsV1WHOISProfileResource>> {
|
|
5222
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getWHOISProfileV1(whoisId, options);
|
|
5223
|
+
const localVarOperationServerBasePath = operationServerMap['DomainsWHOISApi.getWHOISProfileV1']?.[0]?.url;
|
|
3592
5224
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3593
5225
|
},
|
|
3594
5226
|
}
|
|
3595
5227
|
};
|
|
3596
5228
|
|
|
3597
5229
|
/**
|
|
3598
|
-
*
|
|
5230
|
+
* DomainsWHOISApi - factory interface
|
|
3599
5231
|
* @export
|
|
3600
5232
|
*/
|
|
3601
|
-
export const
|
|
3602
|
-
const localVarFp =
|
|
5233
|
+
export const DomainsWHOISApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
5234
|
+
const localVarFp = DomainsWHOISApiFp(configuration)
|
|
3603
5235
|
return {
|
|
3604
5236
|
/**
|
|
3605
|
-
* This endpoint
|
|
3606
|
-
* @summary
|
|
5237
|
+
* This endpoint creates WHOIS contact profile.
|
|
5238
|
+
* @summary Create WHOIS profile
|
|
5239
|
+
* @param {DomainsV1WHOISStoreRequest} domainsV1WHOISStoreRequest
|
|
3607
5240
|
* @param {*} [options] Override http request option.
|
|
3608
5241
|
* @throws {RequiredError}
|
|
3609
5242
|
*/
|
|
3610
|
-
|
|
3611
|
-
return localVarFp.
|
|
5243
|
+
createWHOISProfileV1(domainsV1WHOISStoreRequest: DomainsV1WHOISStoreRequest, options?: RawAxiosRequestConfig): AxiosPromise<DomainsV1WHOISProfileResource> {
|
|
5244
|
+
return localVarFp.createWHOISProfileV1(domainsV1WHOISStoreRequest, options).then((request) => request(axios, basePath));
|
|
5245
|
+
},
|
|
5246
|
+
/**
|
|
5247
|
+
* This endpoint deletes WHOIS contact profile.
|
|
5248
|
+
* @summary Delete WHOIS profile
|
|
5249
|
+
* @param {number} whoisId WHOIS ID
|
|
5250
|
+
* @param {*} [options] Override http request option.
|
|
5251
|
+
* @throws {RequiredError}
|
|
5252
|
+
*/
|
|
5253
|
+
deleteWHOISProfileV1(whoisId: number, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
|
|
5254
|
+
return localVarFp.deleteWHOISProfileV1(whoisId, options).then((request) => request(axios, basePath));
|
|
5255
|
+
},
|
|
5256
|
+
/**
|
|
5257
|
+
* This endpoint retrieves a list of WHOIS contact profiles.
|
|
5258
|
+
* @summary Get WHOIS profile list
|
|
5259
|
+
* @param {string} [tld] Filter by TLD (without leading dot)
|
|
5260
|
+
* @param {*} [options] Override http request option.
|
|
5261
|
+
* @throws {RequiredError}
|
|
5262
|
+
*/
|
|
5263
|
+
getWHOISProfileListV1(tld?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<DomainsV1WHOISProfileResource>> {
|
|
5264
|
+
return localVarFp.getWHOISProfileListV1(tld, options).then((request) => request(axios, basePath));
|
|
5265
|
+
},
|
|
5266
|
+
/**
|
|
5267
|
+
* This endpoint retrieves a domain list where provided WHOIS contact profile is used.
|
|
5268
|
+
* @summary Get WHOIS profile usage
|
|
5269
|
+
* @param {number} whoisId WHOIS ID
|
|
5270
|
+
* @param {*} [options] Override http request option.
|
|
5271
|
+
* @throws {RequiredError}
|
|
5272
|
+
*/
|
|
5273
|
+
getWHOISProfileUsageV1(whoisId: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<string>> {
|
|
5274
|
+
return localVarFp.getWHOISProfileUsageV1(whoisId, options).then((request) => request(axios, basePath));
|
|
5275
|
+
},
|
|
5276
|
+
/**
|
|
5277
|
+
* This endpoint retrieves a WHOIS contact profile.
|
|
5278
|
+
* @summary Get WHOIS profile
|
|
5279
|
+
* @param {number} whoisId WHOIS ID
|
|
5280
|
+
* @param {*} [options] Override http request option.
|
|
5281
|
+
* @throws {RequiredError}
|
|
5282
|
+
*/
|
|
5283
|
+
getWHOISProfileV1(whoisId: number, options?: RawAxiosRequestConfig): AxiosPromise<DomainsV1WHOISProfileResource> {
|
|
5284
|
+
return localVarFp.getWHOISProfileV1(whoisId, options).then((request) => request(axios, basePath));
|
|
3612
5285
|
},
|
|
3613
5286
|
};
|
|
3614
5287
|
};
|
|
3615
5288
|
|
|
3616
5289
|
/**
|
|
3617
|
-
*
|
|
5290
|
+
* DomainsWHOISApi - object-oriented interface
|
|
3618
5291
|
* @export
|
|
3619
|
-
* @class
|
|
5292
|
+
* @class DomainsWHOISApi
|
|
3620
5293
|
* @extends {BaseAPI}
|
|
3621
5294
|
*/
|
|
3622
|
-
export class
|
|
5295
|
+
export class DomainsWHOISApi extends BaseAPI {
|
|
3623
5296
|
/**
|
|
3624
|
-
* This endpoint
|
|
3625
|
-
* @summary
|
|
5297
|
+
* This endpoint creates WHOIS contact profile.
|
|
5298
|
+
* @summary Create WHOIS profile
|
|
5299
|
+
* @param {DomainsV1WHOISStoreRequest} domainsV1WHOISStoreRequest
|
|
3626
5300
|
* @param {*} [options] Override http request option.
|
|
3627
5301
|
* @throws {RequiredError}
|
|
3628
|
-
* @memberof
|
|
5302
|
+
* @memberof DomainsWHOISApi
|
|
3629
5303
|
*/
|
|
3630
|
-
public
|
|
3631
|
-
return
|
|
5304
|
+
public createWHOISProfileV1(domainsV1WHOISStoreRequest: DomainsV1WHOISStoreRequest, options?: RawAxiosRequestConfig) {
|
|
5305
|
+
return DomainsWHOISApiFp(this.configuration).createWHOISProfileV1(domainsV1WHOISStoreRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5306
|
+
}
|
|
5307
|
+
|
|
5308
|
+
/**
|
|
5309
|
+
* This endpoint deletes WHOIS contact profile.
|
|
5310
|
+
* @summary Delete WHOIS profile
|
|
5311
|
+
* @param {number} whoisId WHOIS ID
|
|
5312
|
+
* @param {*} [options] Override http request option.
|
|
5313
|
+
* @throws {RequiredError}
|
|
5314
|
+
* @memberof DomainsWHOISApi
|
|
5315
|
+
*/
|
|
5316
|
+
public deleteWHOISProfileV1(whoisId: number, options?: RawAxiosRequestConfig) {
|
|
5317
|
+
return DomainsWHOISApiFp(this.configuration).deleteWHOISProfileV1(whoisId, options).then((request) => request(this.axios, this.basePath));
|
|
5318
|
+
}
|
|
5319
|
+
|
|
5320
|
+
/**
|
|
5321
|
+
* This endpoint retrieves a list of WHOIS contact profiles.
|
|
5322
|
+
* @summary Get WHOIS profile list
|
|
5323
|
+
* @param {string} [tld] Filter by TLD (without leading dot)
|
|
5324
|
+
* @param {*} [options] Override http request option.
|
|
5325
|
+
* @throws {RequiredError}
|
|
5326
|
+
* @memberof DomainsWHOISApi
|
|
5327
|
+
*/
|
|
5328
|
+
public getWHOISProfileListV1(tld?: string, options?: RawAxiosRequestConfig) {
|
|
5329
|
+
return DomainsWHOISApiFp(this.configuration).getWHOISProfileListV1(tld, options).then((request) => request(this.axios, this.basePath));
|
|
5330
|
+
}
|
|
5331
|
+
|
|
5332
|
+
/**
|
|
5333
|
+
* This endpoint retrieves a domain list where provided WHOIS contact profile is used.
|
|
5334
|
+
* @summary Get WHOIS profile usage
|
|
5335
|
+
* @param {number} whoisId WHOIS ID
|
|
5336
|
+
* @param {*} [options] Override http request option.
|
|
5337
|
+
* @throws {RequiredError}
|
|
5338
|
+
* @memberof DomainsWHOISApi
|
|
5339
|
+
*/
|
|
5340
|
+
public getWHOISProfileUsageV1(whoisId: number, options?: RawAxiosRequestConfig) {
|
|
5341
|
+
return DomainsWHOISApiFp(this.configuration).getWHOISProfileUsageV1(whoisId, options).then((request) => request(this.axios, this.basePath));
|
|
5342
|
+
}
|
|
5343
|
+
|
|
5344
|
+
/**
|
|
5345
|
+
* This endpoint retrieves a WHOIS contact profile.
|
|
5346
|
+
* @summary Get WHOIS profile
|
|
5347
|
+
* @param {number} whoisId WHOIS ID
|
|
5348
|
+
* @param {*} [options] Override http request option.
|
|
5349
|
+
* @throws {RequiredError}
|
|
5350
|
+
* @memberof DomainsWHOISApi
|
|
5351
|
+
*/
|
|
5352
|
+
public getWHOISProfileV1(whoisId: number, options?: RawAxiosRequestConfig) {
|
|
5353
|
+
return DomainsWHOISApiFp(this.configuration).getWHOISProfileV1(whoisId, options).then((request) => request(this.axios, this.basePath));
|
|
3632
5354
|
}
|
|
3633
5355
|
}
|
|
3634
5356
|
|
|
@@ -6964,8 +8686,8 @@ export const VPSVirtualMachineApiAxiosParamCreator = function (configuration?: C
|
|
|
6964
8686
|
* This endpoint retrieves the historical metrics for a specified virtual machine. It includes the following metrics: - CPU usage - Memory usage - Disk usage - Network usage - Uptime
|
|
6965
8687
|
* @summary Get metrics
|
|
6966
8688
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
6967
|
-
* @param {string} dateFrom
|
|
6968
|
-
* @param {string} dateTo
|
|
8689
|
+
* @param {string} dateFrom
|
|
8690
|
+
* @param {string} dateTo
|
|
6969
8691
|
* @param {*} [options] Override http request option.
|
|
6970
8692
|
* @throws {RequiredError}
|
|
6971
8693
|
*/
|
|
@@ -6994,11 +8716,15 @@ export const VPSVirtualMachineApiAxiosParamCreator = function (configuration?: C
|
|
|
6994
8716
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
6995
8717
|
|
|
6996
8718
|
if (dateFrom !== undefined) {
|
|
6997
|
-
localVarQueryParameter['date_from'] = dateFrom
|
|
8719
|
+
localVarQueryParameter['date_from'] = (dateFrom as any instanceof Date) ?
|
|
8720
|
+
(dateFrom as any).toISOString() :
|
|
8721
|
+
dateFrom;
|
|
6998
8722
|
}
|
|
6999
8723
|
|
|
7000
8724
|
if (dateTo !== undefined) {
|
|
7001
|
-
localVarQueryParameter['date_to'] = dateTo
|
|
8725
|
+
localVarQueryParameter['date_to'] = (dateTo as any instanceof Date) ?
|
|
8726
|
+
(dateTo as any).toISOString() :
|
|
8727
|
+
dateTo;
|
|
7002
8728
|
}
|
|
7003
8729
|
|
|
7004
8730
|
|
|
@@ -7084,6 +8810,46 @@ export const VPSVirtualMachineApiAxiosParamCreator = function (configuration?: C
|
|
|
7084
8810
|
options: localVarRequestOptions,
|
|
7085
8811
|
};
|
|
7086
8812
|
},
|
|
8813
|
+
/**
|
|
8814
|
+
* This endpoint allows you to buy (purchase) and setup a new virtual machine. If virtual machine setup fails for any reason, login to [hPanel](https://hpanel.hostinger.com/) and complete the setup manually. If no payment method is provided, your default payment method will be used automatically.
|
|
8815
|
+
* @summary Purchase new virtual machine
|
|
8816
|
+
* @param {VPSV1VirtualMachinePurchaseRequest} vPSV1VirtualMachinePurchaseRequest
|
|
8817
|
+
* @param {*} [options] Override http request option.
|
|
8818
|
+
* @throws {RequiredError}
|
|
8819
|
+
*/
|
|
8820
|
+
purchaseNewVirtualMachineV1: async (vPSV1VirtualMachinePurchaseRequest: VPSV1VirtualMachinePurchaseRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
8821
|
+
// verify required parameter 'vPSV1VirtualMachinePurchaseRequest' is not null or undefined
|
|
8822
|
+
assertParamExists('purchaseNewVirtualMachineV1', 'vPSV1VirtualMachinePurchaseRequest', vPSV1VirtualMachinePurchaseRequest)
|
|
8823
|
+
const localVarPath = `/api/vps/v1/virtual-machines`;
|
|
8824
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8825
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8826
|
+
let baseOptions;
|
|
8827
|
+
if (configuration) {
|
|
8828
|
+
baseOptions = configuration.baseOptions;
|
|
8829
|
+
}
|
|
8830
|
+
|
|
8831
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
8832
|
+
const localVarHeaderParameter = {} as any;
|
|
8833
|
+
const localVarQueryParameter = {} as any;
|
|
8834
|
+
|
|
8835
|
+
// authentication apiToken required
|
|
8836
|
+
// http bearer authentication required
|
|
8837
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
8838
|
+
|
|
8839
|
+
|
|
8840
|
+
|
|
8841
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8842
|
+
|
|
8843
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8844
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8845
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
8846
|
+
localVarRequestOptions.data = serializeDataIfNeeded(vPSV1VirtualMachinePurchaseRequest, localVarRequestOptions, configuration)
|
|
8847
|
+
|
|
8848
|
+
return {
|
|
8849
|
+
url: toPathString(localVarUrlObj),
|
|
8850
|
+
options: localVarRequestOptions,
|
|
8851
|
+
};
|
|
8852
|
+
},
|
|
7087
8853
|
/**
|
|
7088
8854
|
* This endpoint will recreate a virtual machine from scratch. The recreation process involves reinstalling the operating system and resetting the virtual machine to its initial state. Snapshots, if there are any, will be deleted. ## Password Requirements Password will be checked against leaked password databases. Requirements for the password are: - At least 8 characters long - At least one uppercase letter - At least one lowercase letter - At least one number - Is not leaked publicly **This operation is irreversible and will result in the loss of all data stored on the virtual machine!**
|
|
7089
8855
|
* @summary Recreate virtual machine
|
|
@@ -7381,7 +9147,7 @@ export const VPSVirtualMachineApiAxiosParamCreator = function (configuration?: C
|
|
|
7381
9147
|
};
|
|
7382
9148
|
},
|
|
7383
9149
|
/**
|
|
7384
|
-
* This endpoint will setup newly purchased virtual machine
|
|
9150
|
+
* This endpoint will setup newly purchased virtual machine with `initial` state.
|
|
7385
9151
|
* @summary Setup new virtual machine
|
|
7386
9152
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
7387
9153
|
* @param {VPSV1VirtualMachineSetupRequest} vPSV1VirtualMachineSetupRequest
|
|
@@ -7527,8 +9293,8 @@ export const VPSVirtualMachineApiFp = function(configuration?: Configuration) {
|
|
|
7527
9293
|
* This endpoint retrieves the historical metrics for a specified virtual machine. It includes the following metrics: - CPU usage - Memory usage - Disk usage - Network usage - Uptime
|
|
7528
9294
|
* @summary Get metrics
|
|
7529
9295
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
7530
|
-
* @param {string} dateFrom
|
|
7531
|
-
* @param {string} dateTo
|
|
9296
|
+
* @param {string} dateFrom
|
|
9297
|
+
* @param {string} dateTo
|
|
7532
9298
|
* @param {*} [options] Override http request option.
|
|
7533
9299
|
* @throws {RequiredError}
|
|
7534
9300
|
*/
|
|
@@ -7560,6 +9326,18 @@ export const VPSVirtualMachineApiFp = function(configuration?: Configuration) {
|
|
|
7560
9326
|
const localVarOperationServerBasePath = operationServerMap['VPSVirtualMachineApi.getVirtualMachineV1']?.[0]?.url;
|
|
7561
9327
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7562
9328
|
},
|
|
9329
|
+
/**
|
|
9330
|
+
* This endpoint allows you to buy (purchase) and setup a new virtual machine. If virtual machine setup fails for any reason, login to [hPanel](https://hpanel.hostinger.com/) and complete the setup manually. If no payment method is provided, your default payment method will be used automatically.
|
|
9331
|
+
* @summary Purchase new virtual machine
|
|
9332
|
+
* @param {VPSV1VirtualMachinePurchaseRequest} vPSV1VirtualMachinePurchaseRequest
|
|
9333
|
+
* @param {*} [options] Override http request option.
|
|
9334
|
+
* @throws {RequiredError}
|
|
9335
|
+
*/
|
|
9336
|
+
async purchaseNewVirtualMachineV1(vPSV1VirtualMachinePurchaseRequest: VPSV1VirtualMachinePurchaseRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BillingV1OrderOrderResource>> {
|
|
9337
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.purchaseNewVirtualMachineV1(vPSV1VirtualMachinePurchaseRequest, options);
|
|
9338
|
+
const localVarOperationServerBasePath = operationServerMap['VPSVirtualMachineApi.purchaseNewVirtualMachineV1']?.[0]?.url;
|
|
9339
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9340
|
+
},
|
|
7563
9341
|
/**
|
|
7564
9342
|
* This endpoint will recreate a virtual machine from scratch. The recreation process involves reinstalling the operating system and resetting the virtual machine to its initial state. Snapshots, if there are any, will be deleted. ## Password Requirements Password will be checked against leaked password databases. Requirements for the password are: - At least 8 characters long - At least one uppercase letter - At least one lowercase letter - At least one number - Is not leaked publicly **This operation is irreversible and will result in the loss of all data stored on the virtual machine!**
|
|
7565
9343
|
* @summary Recreate virtual machine
|
|
@@ -7650,7 +9428,7 @@ export const VPSVirtualMachineApiFp = function(configuration?: Configuration) {
|
|
|
7650
9428
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7651
9429
|
},
|
|
7652
9430
|
/**
|
|
7653
|
-
* This endpoint will setup newly purchased virtual machine
|
|
9431
|
+
* This endpoint will setup newly purchased virtual machine with `initial` state.
|
|
7654
9432
|
* @summary Setup new virtual machine
|
|
7655
9433
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
7656
9434
|
* @param {VPSV1VirtualMachineSetupRequest} vPSV1VirtualMachineSetupRequest
|
|
@@ -7711,8 +9489,8 @@ export const VPSVirtualMachineApiFactory = function (configuration?: Configurati
|
|
|
7711
9489
|
* This endpoint retrieves the historical metrics for a specified virtual machine. It includes the following metrics: - CPU usage - Memory usage - Disk usage - Network usage - Uptime
|
|
7712
9490
|
* @summary Get metrics
|
|
7713
9491
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
7714
|
-
* @param {string} dateFrom
|
|
7715
|
-
* @param {string} dateTo
|
|
9492
|
+
* @param {string} dateFrom
|
|
9493
|
+
* @param {string} dateTo
|
|
7716
9494
|
* @param {*} [options] Override http request option.
|
|
7717
9495
|
* @throws {RequiredError}
|
|
7718
9496
|
*/
|
|
@@ -7738,6 +9516,16 @@ export const VPSVirtualMachineApiFactory = function (configuration?: Configurati
|
|
|
7738
9516
|
getVirtualMachineV1(virtualMachineId: number, options?: RawAxiosRequestConfig): AxiosPromise<VPSV1VirtualMachineVirtualMachineResource> {
|
|
7739
9517
|
return localVarFp.getVirtualMachineV1(virtualMachineId, options).then((request) => request(axios, basePath));
|
|
7740
9518
|
},
|
|
9519
|
+
/**
|
|
9520
|
+
* This endpoint allows you to buy (purchase) and setup a new virtual machine. If virtual machine setup fails for any reason, login to [hPanel](https://hpanel.hostinger.com/) and complete the setup manually. If no payment method is provided, your default payment method will be used automatically.
|
|
9521
|
+
* @summary Purchase new virtual machine
|
|
9522
|
+
* @param {VPSV1VirtualMachinePurchaseRequest} vPSV1VirtualMachinePurchaseRequest
|
|
9523
|
+
* @param {*} [options] Override http request option.
|
|
9524
|
+
* @throws {RequiredError}
|
|
9525
|
+
*/
|
|
9526
|
+
purchaseNewVirtualMachineV1(vPSV1VirtualMachinePurchaseRequest: VPSV1VirtualMachinePurchaseRequest, options?: RawAxiosRequestConfig): AxiosPromise<BillingV1OrderOrderResource> {
|
|
9527
|
+
return localVarFp.purchaseNewVirtualMachineV1(vPSV1VirtualMachinePurchaseRequest, options).then((request) => request(axios, basePath));
|
|
9528
|
+
},
|
|
7741
9529
|
/**
|
|
7742
9530
|
* This endpoint will recreate a virtual machine from scratch. The recreation process involves reinstalling the operating system and resetting the virtual machine to its initial state. Snapshots, if there are any, will be deleted. ## Password Requirements Password will be checked against leaked password databases. Requirements for the password are: - At least 8 characters long - At least one uppercase letter - At least one lowercase letter - At least one number - Is not leaked publicly **This operation is irreversible and will result in the loss of all data stored on the virtual machine!**
|
|
7743
9531
|
* @summary Recreate virtual machine
|
|
@@ -7814,7 +9602,7 @@ export const VPSVirtualMachineApiFactory = function (configuration?: Configurati
|
|
|
7814
9602
|
return localVarFp.setRootPasswordV1(virtualMachineId, vPSV1VirtualMachineRootPasswordUpdateRequest, options).then((request) => request(axios, basePath));
|
|
7815
9603
|
},
|
|
7816
9604
|
/**
|
|
7817
|
-
* This endpoint will setup newly purchased virtual machine
|
|
9605
|
+
* This endpoint will setup newly purchased virtual machine with `initial` state.
|
|
7818
9606
|
* @summary Setup new virtual machine
|
|
7819
9607
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
7820
9608
|
* @param {VPSV1VirtualMachineSetupRequest} vPSV1VirtualMachineSetupRequest
|
|
@@ -7871,8 +9659,8 @@ export class VPSVirtualMachineApi extends BaseAPI {
|
|
|
7871
9659
|
* This endpoint retrieves the historical metrics for a specified virtual machine. It includes the following metrics: - CPU usage - Memory usage - Disk usage - Network usage - Uptime
|
|
7872
9660
|
* @summary Get metrics
|
|
7873
9661
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
7874
|
-
* @param {string} dateFrom
|
|
7875
|
-
* @param {string} dateTo
|
|
9662
|
+
* @param {string} dateFrom
|
|
9663
|
+
* @param {string} dateTo
|
|
7876
9664
|
* @param {*} [options] Override http request option.
|
|
7877
9665
|
* @throws {RequiredError}
|
|
7878
9666
|
* @memberof VPSVirtualMachineApi
|
|
@@ -7904,6 +9692,18 @@ export class VPSVirtualMachineApi extends BaseAPI {
|
|
|
7904
9692
|
return VPSVirtualMachineApiFp(this.configuration).getVirtualMachineV1(virtualMachineId, options).then((request) => request(this.axios, this.basePath));
|
|
7905
9693
|
}
|
|
7906
9694
|
|
|
9695
|
+
/**
|
|
9696
|
+
* This endpoint allows you to buy (purchase) and setup a new virtual machine. If virtual machine setup fails for any reason, login to [hPanel](https://hpanel.hostinger.com/) and complete the setup manually. If no payment method is provided, your default payment method will be used automatically.
|
|
9697
|
+
* @summary Purchase new virtual machine
|
|
9698
|
+
* @param {VPSV1VirtualMachinePurchaseRequest} vPSV1VirtualMachinePurchaseRequest
|
|
9699
|
+
* @param {*} [options] Override http request option.
|
|
9700
|
+
* @throws {RequiredError}
|
|
9701
|
+
* @memberof VPSVirtualMachineApi
|
|
9702
|
+
*/
|
|
9703
|
+
public purchaseNewVirtualMachineV1(vPSV1VirtualMachinePurchaseRequest: VPSV1VirtualMachinePurchaseRequest, options?: RawAxiosRequestConfig) {
|
|
9704
|
+
return VPSVirtualMachineApiFp(this.configuration).purchaseNewVirtualMachineV1(vPSV1VirtualMachinePurchaseRequest, options).then((request) => request(this.axios, this.basePath));
|
|
9705
|
+
}
|
|
9706
|
+
|
|
7907
9707
|
/**
|
|
7908
9708
|
* This endpoint will recreate a virtual machine from scratch. The recreation process involves reinstalling the operating system and resetting the virtual machine to its initial state. Snapshots, if there are any, will be deleted. ## Password Requirements Password will be checked against leaked password databases. Requirements for the password are: - At least 8 characters long - At least one uppercase letter - At least one lowercase letter - At least one number - Is not leaked publicly **This operation is irreversible and will result in the loss of all data stored on the virtual machine!**
|
|
7909
9709
|
* @summary Recreate virtual machine
|
|
@@ -7994,7 +9794,7 @@ export class VPSVirtualMachineApi extends BaseAPI {
|
|
|
7994
9794
|
}
|
|
7995
9795
|
|
|
7996
9796
|
/**
|
|
7997
|
-
* This endpoint will setup newly purchased virtual machine
|
|
9797
|
+
* This endpoint will setup newly purchased virtual machine with `initial` state.
|
|
7998
9798
|
* @summary Setup new virtual machine
|
|
7999
9799
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
8000
9800
|
* @param {VPSV1VirtualMachineSetupRequest} vPSV1VirtualMachineSetupRequest
|