@scaleway/sdk-webhosting 1.1.2 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/v1/api.gen.cjs +56 -48
- package/dist/v1/api.gen.d.ts +41 -17
- package/dist/v1/api.gen.js +58 -50
- package/package.json +4 -4
package/dist/v1/api.gen.cjs
CHANGED
|
@@ -7,12 +7,13 @@ const jsonContentHeaders = {
|
|
|
7
7
|
"Content-Type": "application/json; charset=utf-8"
|
|
8
8
|
};
|
|
9
9
|
class ControlPanelAPI extends sdkClient.API {
|
|
10
|
-
/**
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
/**
|
|
11
|
+
* Locality of this API.
|
|
12
|
+
* type ∈ {'zone','region','global','unspecified'}
|
|
13
|
+
*/
|
|
14
|
+
static LOCALITY = sdkClient.toApiLocality({
|
|
15
|
+
regions: ["fr-par", "nl-ams", "pl-waw"]
|
|
16
|
+
});
|
|
16
17
|
pageOfListControlPanels = (request = {}) => this.client.fetch(
|
|
17
18
|
{
|
|
18
19
|
method: "GET",
|
|
@@ -36,12 +37,13 @@ class ControlPanelAPI extends sdkClient.API {
|
|
|
36
37
|
listControlPanels = (request = {}) => sdkClient.enrichForPagination("controlPanels", this.pageOfListControlPanels, request);
|
|
37
38
|
}
|
|
38
39
|
class DatabaseAPI extends sdkClient.API {
|
|
39
|
-
/**
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
40
|
+
/**
|
|
41
|
+
* Locality of this API.
|
|
42
|
+
* type ∈ {'zone','region','global','unspecified'}
|
|
43
|
+
*/
|
|
44
|
+
static LOCALITY = sdkClient.toApiLocality({
|
|
45
|
+
regions: ["fr-par", "nl-ams", "pl-waw"]
|
|
46
|
+
});
|
|
45
47
|
/**
|
|
46
48
|
* "Create a new database within your hosting plan".
|
|
47
49
|
*
|
|
@@ -240,12 +242,13 @@ class DatabaseAPI extends sdkClient.API {
|
|
|
240
242
|
);
|
|
241
243
|
}
|
|
242
244
|
class DnsAPI extends sdkClient.API {
|
|
243
|
-
/**
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
245
|
+
/**
|
|
246
|
+
* Locality of this API.
|
|
247
|
+
* type ∈ {'zone','region','global','unspecified'}
|
|
248
|
+
*/
|
|
249
|
+
static LOCALITY = sdkClient.toApiLocality({
|
|
250
|
+
regions: ["fr-par", "nl-ams", "pl-waw"]
|
|
251
|
+
});
|
|
249
252
|
/**
|
|
250
253
|
* Get DNS records. Get the set of DNS records of a specified domain associated with a Web Hosting plan's domain.
|
|
251
254
|
*
|
|
@@ -353,12 +356,13 @@ class DnsAPI extends sdkClient.API {
|
|
|
353
356
|
);
|
|
354
357
|
}
|
|
355
358
|
class OfferAPI extends sdkClient.API {
|
|
356
|
-
/**
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
359
|
+
/**
|
|
360
|
+
* Locality of this API.
|
|
361
|
+
* type ∈ {'zone','region','global','unspecified'}
|
|
362
|
+
*/
|
|
363
|
+
static LOCALITY = sdkClient.toApiLocality({
|
|
364
|
+
regions: ["fr-par", "nl-ams", "pl-waw"]
|
|
365
|
+
});
|
|
362
366
|
pageOfListOffers = (request = {}) => this.client.fetch(
|
|
363
367
|
{
|
|
364
368
|
method: "GET",
|
|
@@ -385,12 +389,13 @@ class OfferAPI extends sdkClient.API {
|
|
|
385
389
|
listOffers = (request = {}) => sdkClient.enrichForPagination("offers", this.pageOfListOffers, request);
|
|
386
390
|
}
|
|
387
391
|
class HostingAPI extends sdkClient.API {
|
|
388
|
-
/**
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
392
|
+
/**
|
|
393
|
+
* Locality of this API.
|
|
394
|
+
* type ∈ {'zone','region','global','unspecified'}
|
|
395
|
+
*/
|
|
396
|
+
static LOCALITY = sdkClient.toApiLocality({
|
|
397
|
+
regions: ["fr-par", "nl-ams", "pl-waw"]
|
|
398
|
+
});
|
|
394
399
|
/**
|
|
395
400
|
* Order a Web Hosting plan. Order a Web Hosting plan, specifying the offer type required via the `offer_id` parameter.
|
|
396
401
|
*
|
|
@@ -539,12 +544,13 @@ class HostingAPI extends sdkClient.API {
|
|
|
539
544
|
);
|
|
540
545
|
}
|
|
541
546
|
class FtpAccountAPI extends sdkClient.API {
|
|
542
|
-
/**
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
547
|
+
/**
|
|
548
|
+
* Locality of this API.
|
|
549
|
+
* type ∈ {'zone','region','global','unspecified'}
|
|
550
|
+
*/
|
|
551
|
+
static LOCALITY = sdkClient.toApiLocality({
|
|
552
|
+
regions: ["fr-par", "nl-ams", "pl-waw"]
|
|
553
|
+
});
|
|
548
554
|
/**
|
|
549
555
|
* Create a new FTP account within your hosting plan.. Create a new FTP account within your hosting plan.
|
|
550
556
|
*
|
|
@@ -617,12 +623,13 @@ class FtpAccountAPI extends sdkClient.API {
|
|
|
617
623
|
);
|
|
618
624
|
}
|
|
619
625
|
class MailAccountAPI extends sdkClient.API {
|
|
620
|
-
/**
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
+
/**
|
|
627
|
+
* Locality of this API.
|
|
628
|
+
* type ∈ {'zone','region','global','unspecified'}
|
|
629
|
+
*/
|
|
630
|
+
static LOCALITY = sdkClient.toApiLocality({
|
|
631
|
+
regions: ["fr-par", "nl-ams", "pl-waw"]
|
|
632
|
+
});
|
|
626
633
|
/**
|
|
627
634
|
* Create a new mail account within your hosting plan.. Create a new mail account within your hosting plan.
|
|
628
635
|
*
|
|
@@ -708,12 +715,13 @@ class MailAccountAPI extends sdkClient.API {
|
|
|
708
715
|
);
|
|
709
716
|
}
|
|
710
717
|
class WebsiteAPI extends sdkClient.API {
|
|
711
|
-
/**
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
718
|
+
/**
|
|
719
|
+
* Locality of this API.
|
|
720
|
+
* type ∈ {'zone','region','global','unspecified'}
|
|
721
|
+
*/
|
|
722
|
+
static LOCALITY = sdkClient.toApiLocality({
|
|
723
|
+
regions: ["fr-par", "nl-ams", "pl-waw"]
|
|
724
|
+
});
|
|
717
725
|
pageOfListWebsites = (request) => this.client.fetch(
|
|
718
726
|
{
|
|
719
727
|
method: "GET",
|
package/dist/v1/api.gen.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { API as ParentAPI } from '@scaleway/sdk-client';
|
|
2
|
-
import type {
|
|
2
|
+
import type { ApiLocality, WaitForOptions } from '@scaleway/sdk-client';
|
|
3
3
|
import type { CheckUserOwnsDomainResponse, ControlPanelApiListControlPanelsRequest, Database, DatabaseApiAssignDatabaseUserRequest, DatabaseApiChangeDatabaseUserPasswordRequest, DatabaseApiCreateDatabaseRequest, DatabaseApiCreateDatabaseUserRequest, DatabaseApiDeleteDatabaseRequest, DatabaseApiDeleteDatabaseUserRequest, DatabaseApiGetDatabaseRequest, DatabaseApiGetDatabaseUserRequest, DatabaseApiListDatabaseUsersRequest, DatabaseApiListDatabasesRequest, DatabaseApiUnassignDatabaseUserRequest, DatabaseUser, DnsApiCheckUserOwnsDomainRequest, DnsApiGetDomainDnsRecordsRequest, DnsApiGetDomainRequest, DnsApiSearchDomainsRequest, DnsApiSyncDomainDnsRecordsRequest, DnsRecords, Domain, FtpAccount, FtpAccountApiChangeFtpAccountPasswordRequest, FtpAccountApiCreateFtpAccountRequest, FtpAccountApiListFtpAccountsRequest, FtpAccountApiRemoveFtpAccountRequest, Hosting, HostingApiCreateHostingRequest, HostingApiCreateSessionRequest, HostingApiDeleteHostingRequest, HostingApiGetHostingRequest, HostingApiGetResourceSummaryRequest, HostingApiListHostingsRequest, HostingApiResetHostingPasswordRequest, HostingApiUpdateHostingRequest, ListControlPanelsResponse, ListDatabaseUsersResponse, ListDatabasesResponse, ListFtpAccountsResponse, ListHostingsResponse, ListMailAccountsResponse, ListOffersResponse, ListWebsitesResponse, MailAccount, MailAccountApiChangeMailAccountPasswordRequest, MailAccountApiCreateMailAccountRequest, MailAccountApiListMailAccountsRequest, MailAccountApiRemoveMailAccountRequest, OfferApiListOffersRequest, ResetHostingPasswordResponse, ResourceSummary, SearchDomainsResponse, Session, WebsiteApiListWebsitesRequest } from './types.gen';
|
|
4
4
|
/**
|
|
5
5
|
* Web Hosting Control Panel API.
|
|
@@ -7,8 +7,11 @@ import type { CheckUserOwnsDomainResponse, ControlPanelApiListControlPanelsReque
|
|
|
7
7
|
This API allows you to manage your Web Hosting services.
|
|
8
8
|
*/
|
|
9
9
|
export declare class ControlPanelAPI extends ParentAPI {
|
|
10
|
-
/**
|
|
11
|
-
|
|
10
|
+
/**
|
|
11
|
+
* Locality of this API.
|
|
12
|
+
* type ∈ {'zone','region','global','unspecified'}
|
|
13
|
+
*/
|
|
14
|
+
static readonly LOCALITY: ApiLocality;
|
|
12
15
|
protected pageOfListControlPanels: (request?: Readonly<ControlPanelApiListControlPanelsRequest>) => Promise<ListControlPanelsResponse>;
|
|
13
16
|
/**
|
|
14
17
|
* "List the control panels type: cpanel or plesk.".
|
|
@@ -27,8 +30,11 @@ export declare class ControlPanelAPI extends ParentAPI {
|
|
|
27
30
|
This API allows you to manage your databases and database users for your Web Hosting services.
|
|
28
31
|
*/
|
|
29
32
|
export declare class DatabaseAPI extends ParentAPI {
|
|
30
|
-
/**
|
|
31
|
-
|
|
33
|
+
/**
|
|
34
|
+
* Locality of this API.
|
|
35
|
+
* type ∈ {'zone','region','global','unspecified'}
|
|
36
|
+
*/
|
|
37
|
+
static readonly LOCALITY: ApiLocality;
|
|
32
38
|
/**
|
|
33
39
|
* "Create a new database within your hosting plan".
|
|
34
40
|
*
|
|
@@ -121,8 +127,11 @@ export declare class DatabaseAPI extends ParentAPI {
|
|
|
121
127
|
This API allows you to manage your Web Hosting services.
|
|
122
128
|
*/
|
|
123
129
|
export declare class DnsAPI extends ParentAPI {
|
|
124
|
-
/**
|
|
125
|
-
|
|
130
|
+
/**
|
|
131
|
+
* Locality of this API.
|
|
132
|
+
* type ∈ {'zone','region','global','unspecified'}
|
|
133
|
+
*/
|
|
134
|
+
static readonly LOCALITY: ApiLocality;
|
|
126
135
|
/**
|
|
127
136
|
* Get DNS records. Get the set of DNS records of a specified domain associated with a Web Hosting plan's domain.
|
|
128
137
|
*
|
|
@@ -173,8 +182,11 @@ export declare class DnsAPI extends ParentAPI {
|
|
|
173
182
|
This API allows you to manage your offer for your Web Hosting services.
|
|
174
183
|
*/
|
|
175
184
|
export declare class OfferAPI extends ParentAPI {
|
|
176
|
-
/**
|
|
177
|
-
|
|
185
|
+
/**
|
|
186
|
+
* Locality of this API.
|
|
187
|
+
* type ∈ {'zone','region','global','unspecified'}
|
|
188
|
+
*/
|
|
189
|
+
static readonly LOCALITY: ApiLocality;
|
|
178
190
|
protected pageOfListOffers: (request?: Readonly<OfferApiListOffersRequest>) => Promise<ListOffersResponse>;
|
|
179
191
|
/**
|
|
180
192
|
* List all available hosting offers along with their specific options.. List all available hosting offers along with their specific options.
|
|
@@ -193,8 +205,11 @@ export declare class OfferAPI extends ParentAPI {
|
|
|
193
205
|
This API allows you to manage your Web Hosting services.
|
|
194
206
|
*/
|
|
195
207
|
export declare class HostingAPI extends ParentAPI {
|
|
196
|
-
/**
|
|
197
|
-
|
|
208
|
+
/**
|
|
209
|
+
* Locality of this API.
|
|
210
|
+
* type ∈ {'zone','region','global','unspecified'}
|
|
211
|
+
*/
|
|
212
|
+
static readonly LOCALITY: ApiLocality;
|
|
198
213
|
/**
|
|
199
214
|
* Order a Web Hosting plan. Order a Web Hosting plan, specifying the offer type required via the `offer_id` parameter.
|
|
200
215
|
*
|
|
@@ -270,8 +285,11 @@ export declare class HostingAPI extends ParentAPI {
|
|
|
270
285
|
This API allows you to manage your FTP accounts for your Web Hosting services.
|
|
271
286
|
*/
|
|
272
287
|
export declare class FtpAccountAPI extends ParentAPI {
|
|
273
|
-
/**
|
|
274
|
-
|
|
288
|
+
/**
|
|
289
|
+
* Locality of this API.
|
|
290
|
+
* type ∈ {'zone','region','global','unspecified'}
|
|
291
|
+
*/
|
|
292
|
+
static readonly LOCALITY: ApiLocality;
|
|
275
293
|
/**
|
|
276
294
|
* Create a new FTP account within your hosting plan.. Create a new FTP account within your hosting plan.
|
|
277
295
|
*
|
|
@@ -305,8 +323,11 @@ export declare class FtpAccountAPI extends ParentAPI {
|
|
|
305
323
|
This API allows you to manage your mail accounts for your Web Hosting services.
|
|
306
324
|
*/
|
|
307
325
|
export declare class MailAccountAPI extends ParentAPI {
|
|
308
|
-
/**
|
|
309
|
-
|
|
326
|
+
/**
|
|
327
|
+
* Locality of this API.
|
|
328
|
+
* type ∈ {'zone','region','global','unspecified'}
|
|
329
|
+
*/
|
|
330
|
+
static readonly LOCALITY: ApiLocality;
|
|
310
331
|
/**
|
|
311
332
|
* Create a new mail account within your hosting plan.. Create a new mail account within your hosting plan.
|
|
312
333
|
*
|
|
@@ -346,8 +367,11 @@ export declare class MailAccountAPI extends ParentAPI {
|
|
|
346
367
|
This API allows you to manage your websites for your Web Hosting services.
|
|
347
368
|
*/
|
|
348
369
|
export declare class WebsiteAPI extends ParentAPI {
|
|
349
|
-
/**
|
|
350
|
-
|
|
370
|
+
/**
|
|
371
|
+
* Locality of this API.
|
|
372
|
+
* type ∈ {'zone','region','global','unspecified'}
|
|
373
|
+
*/
|
|
374
|
+
static readonly LOCALITY: ApiLocality;
|
|
351
375
|
protected pageOfListWebsites: (request: Readonly<WebsiteApiListWebsitesRequest>) => Promise<ListWebsitesResponse>;
|
|
352
376
|
/**
|
|
353
377
|
* List all websites for a specific hosting.. List all websites for a specific hosting.
|
package/dist/v1/api.gen.js
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { API, urlParams, validatePathParam, enrichForPagination, waitForResource } from "@scaleway/sdk-client";
|
|
1
|
+
import { API, toApiLocality, urlParams, validatePathParam, enrichForPagination, waitForResource } from "@scaleway/sdk-client";
|
|
2
2
|
import { DOMAIN_TRANSIENT_STATUSES, HOSTING_TRANSIENT_STATUSES } from "./content.gen.js";
|
|
3
|
-
import { unmarshalListControlPanelsResponse, marshalDatabaseApiCreateDatabaseRequest, unmarshalDatabase, unmarshalListDatabasesResponse, marshalDatabaseApiCreateDatabaseUserRequest, unmarshalDatabaseUser, unmarshalListDatabaseUsersResponse, marshalDatabaseApiChangeDatabaseUserPasswordRequest, marshalDatabaseApiAssignDatabaseUserRequest, marshalDatabaseApiUnassignDatabaseUserRequest, unmarshalDnsRecords, marshalDnsApiCheckUserOwnsDomainRequest, unmarshalCheckUserOwnsDomainResponse, marshalDnsApiSyncDomainDnsRecordsRequest, unmarshalSearchDomainsResponse, unmarshalDomain,
|
|
3
|
+
import { unmarshalListControlPanelsResponse, marshalDatabaseApiCreateDatabaseRequest, unmarshalDatabase, unmarshalListDatabasesResponse, marshalDatabaseApiCreateDatabaseUserRequest, unmarshalDatabaseUser, unmarshalListDatabaseUsersResponse, marshalDatabaseApiChangeDatabaseUserPasswordRequest, marshalDatabaseApiAssignDatabaseUserRequest, marshalDatabaseApiUnassignDatabaseUserRequest, unmarshalDnsRecords, marshalDnsApiCheckUserOwnsDomainRequest, unmarshalCheckUserOwnsDomainResponse, marshalDnsApiSyncDomainDnsRecordsRequest, unmarshalSearchDomainsResponse, unmarshalDomain, unmarshalListOffersResponse, marshalHostingApiCreateHostingRequest, unmarshalHosting, unmarshalListHostingsResponse, marshalHostingApiUpdateHostingRequest, unmarshalSession, unmarshalResetHostingPasswordResponse, unmarshalResourceSummary, marshalFtpAccountApiCreateFtpAccountRequest, unmarshalFtpAccount, unmarshalListFtpAccountsResponse, marshalFtpAccountApiChangeFtpAccountPasswordRequest, marshalMailAccountApiCreateMailAccountRequest, unmarshalMailAccount, unmarshalListMailAccountsResponse, marshalMailAccountApiRemoveMailAccountRequest, marshalMailAccountApiChangeMailAccountPasswordRequest, unmarshalListWebsitesResponse } from "./marshalling.gen.js";
|
|
4
4
|
const jsonContentHeaders = {
|
|
5
5
|
"Content-Type": "application/json; charset=utf-8"
|
|
6
6
|
};
|
|
7
7
|
class ControlPanelAPI extends API {
|
|
8
|
-
/**
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
/**
|
|
9
|
+
* Locality of this API.
|
|
10
|
+
* type ∈ {'zone','region','global','unspecified'}
|
|
11
|
+
*/
|
|
12
|
+
static LOCALITY = toApiLocality({
|
|
13
|
+
regions: ["fr-par", "nl-ams", "pl-waw"]
|
|
14
|
+
});
|
|
14
15
|
pageOfListControlPanels = (request = {}) => this.client.fetch(
|
|
15
16
|
{
|
|
16
17
|
method: "GET",
|
|
@@ -34,12 +35,13 @@ class ControlPanelAPI extends API {
|
|
|
34
35
|
listControlPanels = (request = {}) => enrichForPagination("controlPanels", this.pageOfListControlPanels, request);
|
|
35
36
|
}
|
|
36
37
|
class DatabaseAPI extends API {
|
|
37
|
-
/**
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
38
|
+
/**
|
|
39
|
+
* Locality of this API.
|
|
40
|
+
* type ∈ {'zone','region','global','unspecified'}
|
|
41
|
+
*/
|
|
42
|
+
static LOCALITY = toApiLocality({
|
|
43
|
+
regions: ["fr-par", "nl-ams", "pl-waw"]
|
|
44
|
+
});
|
|
43
45
|
/**
|
|
44
46
|
* "Create a new database within your hosting plan".
|
|
45
47
|
*
|
|
@@ -238,12 +240,13 @@ class DatabaseAPI extends API {
|
|
|
238
240
|
);
|
|
239
241
|
}
|
|
240
242
|
class DnsAPI extends API {
|
|
241
|
-
/**
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
243
|
+
/**
|
|
244
|
+
* Locality of this API.
|
|
245
|
+
* type ∈ {'zone','region','global','unspecified'}
|
|
246
|
+
*/
|
|
247
|
+
static LOCALITY = toApiLocality({
|
|
248
|
+
regions: ["fr-par", "nl-ams", "pl-waw"]
|
|
249
|
+
});
|
|
247
250
|
/**
|
|
248
251
|
* Get DNS records. Get the set of DNS records of a specified domain associated with a Web Hosting plan's domain.
|
|
249
252
|
*
|
|
@@ -351,12 +354,13 @@ class DnsAPI extends API {
|
|
|
351
354
|
);
|
|
352
355
|
}
|
|
353
356
|
class OfferAPI extends API {
|
|
354
|
-
/**
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
357
|
+
/**
|
|
358
|
+
* Locality of this API.
|
|
359
|
+
* type ∈ {'zone','region','global','unspecified'}
|
|
360
|
+
*/
|
|
361
|
+
static LOCALITY = toApiLocality({
|
|
362
|
+
regions: ["fr-par", "nl-ams", "pl-waw"]
|
|
363
|
+
});
|
|
360
364
|
pageOfListOffers = (request = {}) => this.client.fetch(
|
|
361
365
|
{
|
|
362
366
|
method: "GET",
|
|
@@ -383,12 +387,13 @@ class OfferAPI extends API {
|
|
|
383
387
|
listOffers = (request = {}) => enrichForPagination("offers", this.pageOfListOffers, request);
|
|
384
388
|
}
|
|
385
389
|
class HostingAPI extends API {
|
|
386
|
-
/**
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
390
|
+
/**
|
|
391
|
+
* Locality of this API.
|
|
392
|
+
* type ∈ {'zone','region','global','unspecified'}
|
|
393
|
+
*/
|
|
394
|
+
static LOCALITY = toApiLocality({
|
|
395
|
+
regions: ["fr-par", "nl-ams", "pl-waw"]
|
|
396
|
+
});
|
|
392
397
|
/**
|
|
393
398
|
* Order a Web Hosting plan. Order a Web Hosting plan, specifying the offer type required via the `offer_id` parameter.
|
|
394
399
|
*
|
|
@@ -537,12 +542,13 @@ class HostingAPI extends API {
|
|
|
537
542
|
);
|
|
538
543
|
}
|
|
539
544
|
class FtpAccountAPI extends API {
|
|
540
|
-
/**
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
545
|
+
/**
|
|
546
|
+
* Locality of this API.
|
|
547
|
+
* type ∈ {'zone','region','global','unspecified'}
|
|
548
|
+
*/
|
|
549
|
+
static LOCALITY = toApiLocality({
|
|
550
|
+
regions: ["fr-par", "nl-ams", "pl-waw"]
|
|
551
|
+
});
|
|
546
552
|
/**
|
|
547
553
|
* Create a new FTP account within your hosting plan.. Create a new FTP account within your hosting plan.
|
|
548
554
|
*
|
|
@@ -615,12 +621,13 @@ class FtpAccountAPI extends API {
|
|
|
615
621
|
);
|
|
616
622
|
}
|
|
617
623
|
class MailAccountAPI extends API {
|
|
618
|
-
/**
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
+
/**
|
|
625
|
+
* Locality of this API.
|
|
626
|
+
* type ∈ {'zone','region','global','unspecified'}
|
|
627
|
+
*/
|
|
628
|
+
static LOCALITY = toApiLocality({
|
|
629
|
+
regions: ["fr-par", "nl-ams", "pl-waw"]
|
|
630
|
+
});
|
|
624
631
|
/**
|
|
625
632
|
* Create a new mail account within your hosting plan.. Create a new mail account within your hosting plan.
|
|
626
633
|
*
|
|
@@ -706,12 +713,13 @@ class MailAccountAPI extends API {
|
|
|
706
713
|
);
|
|
707
714
|
}
|
|
708
715
|
class WebsiteAPI extends API {
|
|
709
|
-
/**
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
716
|
+
/**
|
|
717
|
+
* Locality of this API.
|
|
718
|
+
* type ∈ {'zone','region','global','unspecified'}
|
|
719
|
+
*/
|
|
720
|
+
static LOCALITY = toApiLocality({
|
|
721
|
+
regions: ["fr-par", "nl-ams", "pl-waw"]
|
|
722
|
+
});
|
|
715
723
|
pageOfListWebsites = (request) => this.client.fetch(
|
|
716
724
|
{
|
|
717
725
|
method: "GET",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleway/sdk-webhosting",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.3",
|
|
4
4
|
"description": "Scaleway SDK webhosting",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"files": [
|
|
@@ -30,13 +30,13 @@
|
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@scaleway/random-name": "5.1.1",
|
|
33
|
-
"@scaleway/sdk-std": "1.0.
|
|
33
|
+
"@scaleway/sdk-std": "1.0.5"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"@scaleway/sdk-client": "^1.
|
|
36
|
+
"@scaleway/sdk-client": "^1.3.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@scaleway/sdk-client": "^1.
|
|
39
|
+
"@scaleway/sdk-client": "^1.3.0"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
42
|
"package:check": "pnpm publint",
|