@scaleway/sdk 2.72.0 → 2.73.0
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/api/account/v3/api.gen.cjs +13 -32
- package/dist/api/account/v3/api.gen.d.ts +17 -36
- package/dist/api/account/v3/api.gen.js +13 -32
- package/dist/api/account/v3/types.gen.d.ts +187 -85
- package/dist/api/applesilicon/v1alpha1/api.gen.cjs +19 -46
- package/dist/api/applesilicon/v1alpha1/api.gen.d.ts +24 -49
- package/dist/api/applesilicon/v1alpha1/api.gen.js +19 -46
- package/dist/api/applesilicon/v1alpha1/types.gen.d.ts +310 -135
- package/dist/api/audit_trail/v1alpha1/api.gen.cjs +2 -5
- package/dist/api/audit_trail/v1alpha1/api.gen.d.ts +4 -8
- package/dist/api/audit_trail/v1alpha1/api.gen.js +2 -5
- package/dist/api/audit_trail/v1alpha1/types.gen.d.ts +110 -82
- package/dist/api/baremetal/v1/api.gen.cjs +28 -61
- package/dist/api/baremetal/v1/api.gen.d.ts +29 -60
- package/dist/api/baremetal/v1/api.gen.js +28 -61
- package/dist/api/baremetal/v1/types.gen.d.ts +802 -315
- package/dist/api/baremetal/v3/api.gen.cjs +7 -14
- package/dist/api/baremetal/v3/api.gen.d.ts +10 -15
- package/dist/api/baremetal/v3/api.gen.js +7 -14
- package/dist/api/baremetal/v3/types.gen.d.ts +82 -32
- package/dist/api/billing/v2beta1/api.gen.cjs +11 -20
- package/dist/api/billing/v2beta1/api.gen.d.ts +9 -19
- package/dist/api/billing/v2beta1/api.gen.js +11 -20
- package/dist/api/billing/v2beta1/types.gen.d.ts +231 -102
- package/dist/api/block/v1/api.gen.cjs +37 -55
- package/dist/api/block/v1/api.gen.d.ts +19 -37
- package/dist/api/block/v1/api.gen.js +37 -55
- package/dist/api/block/v1/types.gen.d.ts +306 -125
- package/dist/api/block/v1alpha1/api.gen.cjs +45 -64
- package/dist/api/block/v1alpha1/api.gen.d.ts +22 -41
- package/dist/api/block/v1alpha1/api.gen.js +45 -64
- package/dist/api/block/v1alpha1/types.gen.d.ts +327 -132
- package/dist/api/cockpit/v1/api.gen.cjs +100 -156
- package/dist/api/cockpit/v1/api.gen.d.ts +53 -112
- package/dist/api/cockpit/v1/api.gen.js +100 -156
- package/dist/api/cockpit/v1/types.gen.d.ts +567 -246
- package/dist/api/container/v1beta1/api.gen.cjs +7 -14
- package/dist/api/container/v1beta1/api.gen.d.ts +9 -16
- package/dist/api/container/v1beta1/api.gen.js +7 -14
- package/dist/api/container/v1beta1/types.gen.d.ts +648 -322
- package/dist/api/dedibox/v1/api.gen.cjs +45 -69
- package/dist/api/dedibox/v1/api.gen.d.ts +52 -62
- package/dist/api/dedibox/v1/api.gen.js +45 -69
- package/dist/api/dedibox/v1/types.gen.d.ts +1765 -645
- package/dist/api/domain/v2beta1/api.gen.cjs +119 -178
- package/dist/api/domain/v2beta1/api.gen.d.ts +71 -130
- package/dist/api/domain/v2beta1/api.gen.js +119 -178
- package/dist/api/domain/v2beta1/content.gen.d.ts +1 -4
- package/dist/api/domain/v2beta1/types.gen.d.ts +411 -199
- package/dist/api/flexibleip/v1alpha1/api.gen.cjs +10 -25
- package/dist/api/flexibleip/v1alpha1/api.gen.d.ts +12 -28
- package/dist/api/flexibleip/v1alpha1/api.gen.js +10 -25
- package/dist/api/flexibleip/v1alpha1/types.gen.d.ts +186 -78
- package/dist/api/inference/v1/api.gen.cjs +8 -11
- package/dist/api/inference/v1/api.gen.d.ts +6 -9
- package/dist/api/inference/v1/api.gen.js +8 -11
- package/dist/api/inference/v1/types.gen.d.ts +330 -150
- package/dist/api/inference/v1beta1/api.gen.cjs +8 -11
- package/dist/api/inference/v1beta1/api.gen.d.ts +6 -9
- package/dist/api/inference/v1beta1/api.gen.js +8 -11
- package/dist/api/inference/v1beta1/types.gen.d.ts +341 -154
- package/dist/api/instance/v1/api.gen.cjs +64 -113
- package/dist/api/instance/v1/api.gen.d.ts +54 -103
- package/dist/api/instance/v1/api.gen.js +64 -113
- package/dist/api/instance/v1/types.gen.d.ts +1351 -598
- package/dist/api/instance/v1/types.private.gen.d.ts +131 -59
- package/dist/api/interlink/v1beta1/api.gen.cjs +21 -67
- package/dist/api/interlink/v1beta1/api.gen.d.ts +23 -70
- package/dist/api/interlink/v1beta1/api.gen.js +21 -67
- package/dist/api/interlink/v1beta1/marshalling.gen.cjs +2 -0
- package/dist/api/interlink/v1beta1/marshalling.gen.js +2 -0
- package/dist/api/interlink/v1beta1/types.gen.d.ts +464 -216
- package/dist/api/interlink/v1beta1/validation-rules.gen.cjs +8 -0
- package/dist/api/interlink/v1beta1/validation-rules.gen.d.ts +8 -0
- package/dist/api/interlink/v1beta1/validation-rules.gen.js +8 -0
- package/dist/api/iot/v1/api.gen.cjs +37 -70
- package/dist/api/iot/v1/api.gen.d.ts +34 -67
- package/dist/api/iot/v1/api.gen.js +37 -70
- package/dist/api/iot/v1/types.gen.d.ts +566 -321
- package/dist/api/ipam/v1/api.gen.cjs +6 -26
- package/dist/api/ipam/v1/api.gen.d.ts +8 -29
- package/dist/api/ipam/v1/api.gen.js +6 -26
- package/dist/api/ipam/v1/types.gen.d.ts +146 -105
- package/dist/api/jobs/v1alpha1/api.gen.cjs +2 -4
- package/dist/api/jobs/v1alpha1/api.gen.d.ts +4 -6
- package/dist/api/jobs/v1alpha1/api.gen.js +2 -4
- package/dist/api/jobs/v1alpha1/types.gen.d.ts +165 -91
- package/dist/api/k8s/v1/api.gen.cjs +33 -78
- package/dist/api/k8s/v1/api.gen.d.ts +27 -72
- package/dist/api/k8s/v1/api.gen.js +33 -78
- package/dist/api/k8s/v1/types.gen.d.ts +743 -506
- package/dist/api/key_manager/v1alpha1/api.gen.cjs +21 -57
- package/dist/api/key_manager/v1alpha1/api.gen.d.ts +19 -56
- package/dist/api/key_manager/v1alpha1/api.gen.js +21 -57
- package/dist/api/key_manager/v1alpha1/types.gen.d.ts +196 -114
- package/dist/api/marketplace/v2/api.gen.cjs +8 -21
- package/dist/api/marketplace/v2/api.gen.d.ts +10 -24
- package/dist/api/marketplace/v2/api.gen.js +8 -21
- package/dist/api/marketplace/v2/types.gen.d.ts +94 -41
- package/dist/api/mnq/v1beta1/api.gen.cjs +24 -76
- package/dist/api/mnq/v1beta1/api.gen.d.ts +30 -82
- package/dist/api/mnq/v1beta1/api.gen.js +24 -76
- package/dist/api/mnq/v1beta1/types.gen.d.ts +342 -169
- package/dist/api/mongodb/v1alpha1/api.gen.cjs +19 -62
- package/dist/api/mongodb/v1alpha1/api.gen.d.ts +21 -64
- package/dist/api/mongodb/v1alpha1/api.gen.js +19 -62
- package/dist/api/mongodb/v1alpha1/types.gen.d.ts +443 -189
- package/dist/api/qaas/v1alpha1/api.gen.cjs +17 -34
- package/dist/api/qaas/v1alpha1/api.gen.d.ts +19 -36
- package/dist/api/qaas/v1alpha1/api.gen.js +17 -34
- package/dist/api/qaas/v1alpha1/types.gen.d.ts +502 -174
- package/dist/api/rdb/v1/api.gen.cjs +62 -202
- package/dist/api/rdb/v1/api.gen.d.ts +60 -201
- package/dist/api/rdb/v1/api.gen.js +62 -202
- package/dist/api/rdb/v1/types.gen.d.ts +1005 -524
- package/dist/api/redis/v1/api.gen.cjs +23 -83
- package/dist/api/redis/v1/api.gen.d.ts +25 -85
- package/dist/api/redis/v1/api.gen.js +23 -83
- package/dist/api/redis/v1/types.gen.d.ts +447 -170
- package/dist/api/registry/v1/api.gen.cjs +12 -40
- package/dist/api/registry/v1/api.gen.d.ts +14 -42
- package/dist/api/registry/v1/api.gen.js +12 -40
- package/dist/api/registry/v1/types.gen.d.ts +200 -116
- package/dist/api/secret/v1beta1/api.gen.cjs +19 -47
- package/dist/api/secret/v1beta1/api.gen.d.ts +21 -51
- package/dist/api/secret/v1beta1/api.gen.js +19 -47
- package/dist/api/secret/v1beta1/types.gen.d.ts +359 -224
- package/dist/api/serverless_sqldb/v1alpha1/api.gen.cjs +9 -27
- package/dist/api/serverless_sqldb/v1alpha1/api.gen.d.ts +11 -29
- package/dist/api/serverless_sqldb/v1alpha1/api.gen.js +9 -27
- package/dist/api/serverless_sqldb/v1alpha1/types.gen.d.ts +168 -76
- package/dist/api/tem/v1alpha1/api.gen.cjs +22 -58
- package/dist/api/tem/v1alpha1/api.gen.d.ts +24 -60
- package/dist/api/tem/v1alpha1/api.gen.js +22 -58
- package/dist/api/tem/v1alpha1/types.gen.d.ts +761 -338
- package/dist/api/test/v1/api.gen.cjs +8 -11
- package/dist/api/test/v1/api.gen.d.ts +6 -9
- package/dist/api/test/v1/api.gen.js +8 -11
- package/dist/api/test/v1/types.gen.d.ts +21 -10
- package/dist/client/dist/package.json.cjs +1 -1
- package/dist/client/dist/package.json.js +1 -1
- package/node_modules/@scaleway/sdk-client/dist/package.json.cjs +1 -1
- package/node_modules/@scaleway/sdk-client/dist/package.json.js +1 -1
- package/node_modules/@scaleway/sdk-client/package.json +1 -2
- package/package.json +2 -2
- package/node_modules/@scaleway/sdk-client/LICENSE +0 -191
|
@@ -20,11 +20,9 @@ class PrivateNetworkAPI extends api.API {
|
|
|
20
20
|
"pl-waw-3"
|
|
21
21
|
];
|
|
22
22
|
/**
|
|
23
|
-
* Add a server to a Private Network. Add an Elastic Metal server to a Private
|
|
24
|
-
* Network.
|
|
23
|
+
* Add a server to a Private Network. Add an Elastic Metal server to a Private Network.
|
|
25
24
|
*
|
|
26
|
-
* @param request - The request
|
|
27
|
-
* {@link PrivateNetworkApiAddServerPrivateNetworkRequest}
|
|
25
|
+
* @param request - The request {@link PrivateNetworkApiAddServerPrivateNetworkRequest}
|
|
28
26
|
* @returns A Promise of ServerPrivateNetwork
|
|
29
27
|
*/
|
|
30
28
|
addServerPrivateNetwork = (request) => this.client.fetch(
|
|
@@ -42,11 +40,9 @@ class PrivateNetworkAPI extends api.API {
|
|
|
42
40
|
marshalling_gen.unmarshalServerPrivateNetwork
|
|
43
41
|
);
|
|
44
42
|
/**
|
|
45
|
-
* Set multiple Private Networks on a server. Configure multiple Private
|
|
46
|
-
* Networks on an Elastic Metal server.
|
|
43
|
+
* Set multiple Private Networks on a server. Configure multiple Private Networks on an Elastic Metal server.
|
|
47
44
|
*
|
|
48
|
-
* @param request - The request
|
|
49
|
-
* {@link PrivateNetworkApiSetServerPrivateNetworksRequest}
|
|
45
|
+
* @param request - The request {@link PrivateNetworkApiSetServerPrivateNetworksRequest}
|
|
50
46
|
* @returns A Promise of SetServerPrivateNetworksResponse
|
|
51
47
|
*/
|
|
52
48
|
setServerPrivateNetworks = (request) => this.client.fetch(
|
|
@@ -84,11 +80,9 @@ class PrivateNetworkAPI extends api.API {
|
|
|
84
80
|
marshalling_gen.unmarshalListServerPrivateNetworksResponse
|
|
85
81
|
);
|
|
86
82
|
/**
|
|
87
|
-
* List the Private Networks of a server. List the Private Networks of an
|
|
88
|
-
* Elastic Metal server.
|
|
83
|
+
* List the Private Networks of a server. List the Private Networks of an Elastic Metal server.
|
|
89
84
|
*
|
|
90
|
-
* @param request - The request
|
|
91
|
-
* {@link PrivateNetworkApiListServerPrivateNetworksRequest}
|
|
85
|
+
* @param request - The request {@link PrivateNetworkApiListServerPrivateNetworksRequest}
|
|
92
86
|
* @returns A Promise of ListServerPrivateNetworksResponse
|
|
93
87
|
*/
|
|
94
88
|
listServerPrivateNetworks = (request = {}) => resourcePaginator.enrichForPagination(
|
|
@@ -99,8 +93,7 @@ class PrivateNetworkAPI extends api.API {
|
|
|
99
93
|
/**
|
|
100
94
|
* Delete a Private Network.
|
|
101
95
|
*
|
|
102
|
-
* @param request - The request
|
|
103
|
-
* {@link PrivateNetworkApiDeleteServerPrivateNetworkRequest}
|
|
96
|
+
* @param request - The request {@link PrivateNetworkApiDeleteServerPrivateNetworkRequest}
|
|
104
97
|
*/
|
|
105
98
|
deleteServerPrivateNetwork = (request) => this.client.fetch({
|
|
106
99
|
method: "DELETE",
|
|
@@ -1,35 +1,31 @@
|
|
|
1
1
|
import { API as ParentAPI } from '@scaleway/sdk-client';
|
|
2
2
|
import type { Zone as ScwZone } from '@scaleway/sdk-client';
|
|
3
3
|
import type { ListServerPrivateNetworksResponse, PrivateNetworkApiAddServerPrivateNetworkRequest, PrivateNetworkApiDeleteServerPrivateNetworkRequest, PrivateNetworkApiListServerPrivateNetworksRequest, PrivateNetworkApiSetServerPrivateNetworksRequest, ServerPrivateNetwork, SetServerPrivateNetworksResponse } from './types.gen';
|
|
4
|
-
/**
|
|
4
|
+
/**
|
|
5
|
+
* Elastic Metal - Private Networks API.
|
|
6
|
+
*/
|
|
5
7
|
export declare class PrivateNetworkAPI extends ParentAPI {
|
|
6
8
|
/** Lists the available zones of the API. */
|
|
7
9
|
static readonly LOCALITIES: ScwZone[];
|
|
8
10
|
/**
|
|
9
|
-
* Add a server to a Private Network. Add an Elastic Metal server to a Private
|
|
10
|
-
* Network.
|
|
11
|
+
* Add a server to a Private Network. Add an Elastic Metal server to a Private Network.
|
|
11
12
|
*
|
|
12
|
-
* @param request - The request
|
|
13
|
-
* {@link PrivateNetworkApiAddServerPrivateNetworkRequest}
|
|
13
|
+
* @param request - The request {@link PrivateNetworkApiAddServerPrivateNetworkRequest}
|
|
14
14
|
* @returns A Promise of ServerPrivateNetwork
|
|
15
15
|
*/
|
|
16
16
|
addServerPrivateNetwork: (request: Readonly<PrivateNetworkApiAddServerPrivateNetworkRequest>) => Promise<ServerPrivateNetwork>;
|
|
17
17
|
/**
|
|
18
|
-
* Set multiple Private Networks on a server. Configure multiple Private
|
|
19
|
-
* Networks on an Elastic Metal server.
|
|
18
|
+
* Set multiple Private Networks on a server. Configure multiple Private Networks on an Elastic Metal server.
|
|
20
19
|
*
|
|
21
|
-
* @param request - The request
|
|
22
|
-
* {@link PrivateNetworkApiSetServerPrivateNetworksRequest}
|
|
20
|
+
* @param request - The request {@link PrivateNetworkApiSetServerPrivateNetworksRequest}
|
|
23
21
|
* @returns A Promise of SetServerPrivateNetworksResponse
|
|
24
22
|
*/
|
|
25
23
|
setServerPrivateNetworks: (request: Readonly<PrivateNetworkApiSetServerPrivateNetworksRequest>) => Promise<SetServerPrivateNetworksResponse>;
|
|
26
24
|
protected pageOfListServerPrivateNetworks: (request?: Readonly<PrivateNetworkApiListServerPrivateNetworksRequest>) => Promise<ListServerPrivateNetworksResponse>;
|
|
27
25
|
/**
|
|
28
|
-
* List the Private Networks of a server. List the Private Networks of an
|
|
29
|
-
* Elastic Metal server.
|
|
26
|
+
* List the Private Networks of a server. List the Private Networks of an Elastic Metal server.
|
|
30
27
|
*
|
|
31
|
-
* @param request - The request
|
|
32
|
-
* {@link PrivateNetworkApiListServerPrivateNetworksRequest}
|
|
28
|
+
* @param request - The request {@link PrivateNetworkApiListServerPrivateNetworksRequest}
|
|
33
29
|
* @returns A Promise of ListServerPrivateNetworksResponse
|
|
34
30
|
*/
|
|
35
31
|
listServerPrivateNetworks: (request?: Readonly<PrivateNetworkApiListServerPrivateNetworksRequest>) => Promise<ListServerPrivateNetworksResponse> & {
|
|
@@ -39,8 +35,7 @@ export declare class PrivateNetworkAPI extends ParentAPI {
|
|
|
39
35
|
/**
|
|
40
36
|
* Delete a Private Network.
|
|
41
37
|
*
|
|
42
|
-
* @param request - The request
|
|
43
|
-
* {@link PrivateNetworkApiDeleteServerPrivateNetworkRequest}
|
|
38
|
+
* @param request - The request {@link PrivateNetworkApiDeleteServerPrivateNetworkRequest}
|
|
44
39
|
*/
|
|
45
40
|
deleteServerPrivateNetwork: (request: Readonly<PrivateNetworkApiDeleteServerPrivateNetworkRequest>) => Promise<void>;
|
|
46
41
|
}
|
|
@@ -18,11 +18,9 @@ class PrivateNetworkAPI extends API$1 {
|
|
|
18
18
|
"pl-waw-3"
|
|
19
19
|
];
|
|
20
20
|
/**
|
|
21
|
-
* Add a server to a Private Network. Add an Elastic Metal server to a Private
|
|
22
|
-
* Network.
|
|
21
|
+
* Add a server to a Private Network. Add an Elastic Metal server to a Private Network.
|
|
23
22
|
*
|
|
24
|
-
* @param request - The request
|
|
25
|
-
* {@link PrivateNetworkApiAddServerPrivateNetworkRequest}
|
|
23
|
+
* @param request - The request {@link PrivateNetworkApiAddServerPrivateNetworkRequest}
|
|
26
24
|
* @returns A Promise of ServerPrivateNetwork
|
|
27
25
|
*/
|
|
28
26
|
addServerPrivateNetwork = (request) => this.client.fetch(
|
|
@@ -40,11 +38,9 @@ class PrivateNetworkAPI extends API$1 {
|
|
|
40
38
|
unmarshalServerPrivateNetwork
|
|
41
39
|
);
|
|
42
40
|
/**
|
|
43
|
-
* Set multiple Private Networks on a server. Configure multiple Private
|
|
44
|
-
* Networks on an Elastic Metal server.
|
|
41
|
+
* Set multiple Private Networks on a server. Configure multiple Private Networks on an Elastic Metal server.
|
|
45
42
|
*
|
|
46
|
-
* @param request - The request
|
|
47
|
-
* {@link PrivateNetworkApiSetServerPrivateNetworksRequest}
|
|
43
|
+
* @param request - The request {@link PrivateNetworkApiSetServerPrivateNetworksRequest}
|
|
48
44
|
* @returns A Promise of SetServerPrivateNetworksResponse
|
|
49
45
|
*/
|
|
50
46
|
setServerPrivateNetworks = (request) => this.client.fetch(
|
|
@@ -82,11 +78,9 @@ class PrivateNetworkAPI extends API$1 {
|
|
|
82
78
|
unmarshalListServerPrivateNetworksResponse
|
|
83
79
|
);
|
|
84
80
|
/**
|
|
85
|
-
* List the Private Networks of a server. List the Private Networks of an
|
|
86
|
-
* Elastic Metal server.
|
|
81
|
+
* List the Private Networks of a server. List the Private Networks of an Elastic Metal server.
|
|
87
82
|
*
|
|
88
|
-
* @param request - The request
|
|
89
|
-
* {@link PrivateNetworkApiListServerPrivateNetworksRequest}
|
|
83
|
+
* @param request - The request {@link PrivateNetworkApiListServerPrivateNetworksRequest}
|
|
90
84
|
* @returns A Promise of ListServerPrivateNetworksResponse
|
|
91
85
|
*/
|
|
92
86
|
listServerPrivateNetworks = (request = {}) => enrichForPagination(
|
|
@@ -97,8 +91,7 @@ class PrivateNetworkAPI extends API$1 {
|
|
|
97
91
|
/**
|
|
98
92
|
* Delete a Private Network.
|
|
99
93
|
*
|
|
100
|
-
* @param request - The request
|
|
101
|
-
* {@link PrivateNetworkApiDeleteServerPrivateNetworkRequest}
|
|
94
|
+
* @param request - The request {@link PrivateNetworkApiDeleteServerPrivateNetworkRequest}
|
|
102
95
|
*/
|
|
103
96
|
deleteServerPrivateNetwork = (request) => this.client.fetch({
|
|
104
97
|
method: "DELETE",
|
|
@@ -2,23 +2,41 @@ import type { Zone as ScwZone } from '@scaleway/sdk-client';
|
|
|
2
2
|
export type ListServerPrivateNetworksRequestOrderBy = 'created_at_asc' | 'created_at_desc' | 'updated_at_asc' | 'updated_at_desc';
|
|
3
3
|
export type ServerPrivateNetworkStatus = 'unknown_status' | 'attaching' | 'attached' | 'error' | 'detaching' | 'locked';
|
|
4
4
|
export interface ServerPrivateNetwork {
|
|
5
|
-
/**
|
|
5
|
+
/**
|
|
6
|
+
* UUID of the Server-to-Private Network mapping.
|
|
7
|
+
*/
|
|
6
8
|
id: string;
|
|
7
|
-
/**
|
|
9
|
+
/**
|
|
10
|
+
* Private Network Project UUID.
|
|
11
|
+
*/
|
|
8
12
|
projectId: string;
|
|
9
|
-
/**
|
|
13
|
+
/**
|
|
14
|
+
* Server UUID.
|
|
15
|
+
*/
|
|
10
16
|
serverId: string;
|
|
11
|
-
/**
|
|
17
|
+
/**
|
|
18
|
+
* Private Network UUID.
|
|
19
|
+
*/
|
|
12
20
|
privateNetworkId: string;
|
|
13
|
-
/**
|
|
21
|
+
/**
|
|
22
|
+
* VLAN UUID associated with the Private Network.
|
|
23
|
+
*/
|
|
14
24
|
vlan?: number;
|
|
15
|
-
/**
|
|
25
|
+
/**
|
|
26
|
+
* Configuration status of the Private Network.
|
|
27
|
+
*/
|
|
16
28
|
status: ServerPrivateNetworkStatus;
|
|
17
|
-
/**
|
|
29
|
+
/**
|
|
30
|
+
* Private Network creation date.
|
|
31
|
+
*/
|
|
18
32
|
createdAt?: Date;
|
|
19
|
-
/**
|
|
33
|
+
/**
|
|
34
|
+
* Date the Private Network was last modified.
|
|
35
|
+
*/
|
|
20
36
|
updatedAt?: Date;
|
|
21
|
-
/**
|
|
37
|
+
/**
|
|
38
|
+
* IPAM IP IDs of the server, if it has any.
|
|
39
|
+
*/
|
|
22
40
|
ipamIpIds: string[];
|
|
23
41
|
}
|
|
24
42
|
export interface ListServerPrivateNetworksResponse {
|
|
@@ -26,54 +44,86 @@ export interface ListServerPrivateNetworksResponse {
|
|
|
26
44
|
totalCount: number;
|
|
27
45
|
}
|
|
28
46
|
export type PrivateNetworkApiAddServerPrivateNetworkRequest = {
|
|
29
|
-
/**
|
|
47
|
+
/**
|
|
48
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
49
|
+
*/
|
|
30
50
|
zone?: ScwZone;
|
|
31
|
-
/**
|
|
51
|
+
/**
|
|
52
|
+
* UUID of the server.
|
|
53
|
+
*/
|
|
32
54
|
serverId: string;
|
|
33
|
-
/**
|
|
55
|
+
/**
|
|
56
|
+
* UUID of the Private Network.
|
|
57
|
+
*/
|
|
34
58
|
privateNetworkId: string;
|
|
35
|
-
/**
|
|
59
|
+
/**
|
|
60
|
+
* IPAM IDs of an IPs to attach to the server.
|
|
61
|
+
*/
|
|
36
62
|
ipamIpIds?: string[];
|
|
37
63
|
};
|
|
38
64
|
export type PrivateNetworkApiDeleteServerPrivateNetworkRequest = {
|
|
39
|
-
/**
|
|
65
|
+
/**
|
|
66
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
67
|
+
*/
|
|
40
68
|
zone?: ScwZone;
|
|
41
|
-
/**
|
|
69
|
+
/**
|
|
70
|
+
* UUID of the server.
|
|
71
|
+
*/
|
|
42
72
|
serverId: string;
|
|
43
|
-
/**
|
|
73
|
+
/**
|
|
74
|
+
* UUID of the Private Network.
|
|
75
|
+
*/
|
|
44
76
|
privateNetworkId: string;
|
|
45
77
|
};
|
|
46
78
|
export type PrivateNetworkApiListServerPrivateNetworksRequest = {
|
|
47
|
-
/**
|
|
79
|
+
/**
|
|
80
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
81
|
+
*/
|
|
48
82
|
zone?: ScwZone;
|
|
49
|
-
/**
|
|
83
|
+
/**
|
|
84
|
+
* Sort order for the returned Private Networks.
|
|
85
|
+
*/
|
|
50
86
|
orderBy?: ListServerPrivateNetworksRequestOrderBy;
|
|
51
|
-
/**
|
|
87
|
+
/**
|
|
88
|
+
* Page number for the returned Private Networks.
|
|
89
|
+
*/
|
|
52
90
|
page?: number;
|
|
53
|
-
/**
|
|
91
|
+
/**
|
|
92
|
+
* Maximum number of Private Networks per page.
|
|
93
|
+
*/
|
|
54
94
|
pageSize?: number;
|
|
55
|
-
/**
|
|
95
|
+
/**
|
|
96
|
+
* Filter Private Networks by server UUID.
|
|
97
|
+
*/
|
|
56
98
|
serverId?: string;
|
|
57
|
-
/**
|
|
99
|
+
/**
|
|
100
|
+
* Filter Private Networks by Private Network UUID.
|
|
101
|
+
*/
|
|
58
102
|
privateNetworkId?: string;
|
|
59
|
-
/**
|
|
103
|
+
/**
|
|
104
|
+
* Filter Private Networks by organization UUID.
|
|
105
|
+
*/
|
|
60
106
|
organizationId?: string;
|
|
61
|
-
/**
|
|
107
|
+
/**
|
|
108
|
+
* Filter Private Networks by project UUID.
|
|
109
|
+
*/
|
|
62
110
|
projectId?: string;
|
|
63
|
-
/**
|
|
111
|
+
/**
|
|
112
|
+
* Filter Private Networks by IPAM IP UUIDs.
|
|
113
|
+
*/
|
|
64
114
|
ipamIpIds?: string[];
|
|
65
115
|
};
|
|
66
116
|
export type PrivateNetworkApiSetServerPrivateNetworksRequest = {
|
|
67
|
-
/**
|
|
117
|
+
/**
|
|
118
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
119
|
+
*/
|
|
68
120
|
zone?: ScwZone;
|
|
69
|
-
/**
|
|
121
|
+
/**
|
|
122
|
+
* UUID of the server.
|
|
123
|
+
*/
|
|
70
124
|
serverId: string;
|
|
71
125
|
/**
|
|
72
|
-
* Object where the keys are the UUIDs of Private Networks and the values are
|
|
73
|
-
* arrays of IPAM IDs representing the IPs to assign to this Elastic Metal
|
|
74
|
-
* server on the Private Network. If the array supplied for a Private Network
|
|
75
|
-
* is empty, the next available IP from the Private Network's CIDR block will
|
|
76
|
-
* automatically be used for attachment.
|
|
126
|
+
* Object where the keys are the UUIDs of Private Networks and the values are arrays of IPAM IDs representing the IPs to assign to this Elastic Metal server on the Private Network. If the array supplied for a Private Network is empty, the next available IP from the Private Network's CIDR block will automatically be used for attachment.
|
|
77
127
|
*/
|
|
78
128
|
perPrivateNetworkIpamIpIds: Record<string, string[]>;
|
|
79
129
|
};
|
|
@@ -39,8 +39,7 @@ class API extends api.API {
|
|
|
39
39
|
marshalling_gen.unmarshalListConsumptionsResponse
|
|
40
40
|
);
|
|
41
41
|
/**
|
|
42
|
-
* Get monthly consumption. Consumption allows you to retrieve your past or
|
|
43
|
-
* current consumption cost, by project or category.
|
|
42
|
+
* Get monthly consumption. Consumption allows you to retrieve your past or current consumption cost, by project or category.
|
|
44
43
|
*
|
|
45
44
|
* @param request - The request {@link ListConsumptionsRequest}
|
|
46
45
|
* @returns A Promise of ListConsumptionsResponse
|
|
@@ -67,8 +66,7 @@ class API extends api.API {
|
|
|
67
66
|
marshalling_gen.unmarshalListTaxesResponse
|
|
68
67
|
);
|
|
69
68
|
/**
|
|
70
|
-
* Get monthly consumption taxes. Consumption Tax allows you to retrieve your
|
|
71
|
-
* past or current tax charges, by project or category.
|
|
69
|
+
* Get monthly consumption taxes. Consumption Tax allows you to retrieve your past or current tax charges, by project or category.
|
|
72
70
|
*
|
|
73
71
|
* @param request - The request {@link ListTaxesRequest}
|
|
74
72
|
* @returns A Promise of ListTaxesResponse
|
|
@@ -94,8 +92,7 @@ class API extends api.API {
|
|
|
94
92
|
marshalling_gen.unmarshalListInvoicesResponse
|
|
95
93
|
);
|
|
96
94
|
/**
|
|
97
|
-
* List invoices. List all your invoices, filtering by `start_date` and
|
|
98
|
-
* `invoice_type`. Each invoice has its own ID.
|
|
95
|
+
* List invoices. List all your invoices, filtering by `start_date` and `invoice_type`. Each invoice has its own ID.
|
|
99
96
|
*
|
|
100
97
|
* @param request - The request {@link ListInvoicesRequest}
|
|
101
98
|
* @returns A Promise of ListInvoicesResponse
|
|
@@ -165,20 +162,14 @@ class API extends api.API {
|
|
|
165
162
|
marshalling_gen.unmarshalListDiscountsResponse
|
|
166
163
|
);
|
|
167
164
|
/**
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
* - If you indicate `the organization_id` of one of your customers, you will
|
|
177
|
-
* list the discounts applied to their Organization.
|
|
178
|
-
*
|
|
179
|
-
* @param request - The request {@link ListDiscountsRequest}
|
|
180
|
-
* @returns A Promise of ListDiscountsResponse
|
|
181
|
-
*/
|
|
165
|
+
* List discounts. List all discounts for your Organization and usable categories, products, offers, references, regions and zones where the discount can be applied. As a reseller:
|
|
166
|
+
- If you do not specify an `organization_id` you will list the discounts applied to your own Organization and your customers
|
|
167
|
+
- If you indicate your `organization_id` you will list only the discounts applied to your Organization
|
|
168
|
+
- If you indicate `the organization_id` of one of your customers, you will list the discounts applied to their Organization.
|
|
169
|
+
*
|
|
170
|
+
* @param request - The request {@link ListDiscountsRequest}
|
|
171
|
+
* @returns A Promise of ListDiscountsResponse
|
|
172
|
+
*/
|
|
182
173
|
listDiscounts = (request = {}) => resourcePaginator.enrichForPagination("discounts", this.pageOfListDiscounts, request);
|
|
183
174
|
}
|
|
184
175
|
exports.API = API;
|
|
@@ -2,15 +2,13 @@ import { API as ParentAPI } from '@scaleway/sdk-client';
|
|
|
2
2
|
import type { DownloadInvoiceRequest, ExportInvoicesRequest, GetInvoiceRequest, Invoice, ListConsumptionsRequest, ListConsumptionsResponse, ListDiscountsRequest, ListDiscountsResponse, ListInvoicesRequest, ListInvoicesResponse, ListTaxesRequest, ListTaxesResponse } from './types.gen';
|
|
3
3
|
/**
|
|
4
4
|
* Billing API.
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
* consumption.
|
|
5
|
+
|
|
6
|
+
This API allows you to manage and query your Scaleway billing and consumption.
|
|
8
7
|
*/
|
|
9
8
|
export declare class API extends ParentAPI {
|
|
10
9
|
protected pageOfListConsumptions: (request?: Readonly<ListConsumptionsRequest>) => Promise<ListConsumptionsResponse>;
|
|
11
10
|
/**
|
|
12
|
-
* Get monthly consumption. Consumption allows you to retrieve your past or
|
|
13
|
-
* current consumption cost, by project or category.
|
|
11
|
+
* Get monthly consumption. Consumption allows you to retrieve your past or current consumption cost, by project or category.
|
|
14
12
|
*
|
|
15
13
|
* @param request - The request {@link ListConsumptionsRequest}
|
|
16
14
|
* @returns A Promise of ListConsumptionsResponse
|
|
@@ -21,8 +19,7 @@ export declare class API extends ParentAPI {
|
|
|
21
19
|
};
|
|
22
20
|
protected pageOfListTaxes: (request?: Readonly<ListTaxesRequest>) => Promise<ListTaxesResponse>;
|
|
23
21
|
/**
|
|
24
|
-
* Get monthly consumption taxes. Consumption Tax allows you to retrieve your
|
|
25
|
-
* past or current tax charges, by project or category.
|
|
22
|
+
* Get monthly consumption taxes. Consumption Tax allows you to retrieve your past or current tax charges, by project or category.
|
|
26
23
|
*
|
|
27
24
|
* @param request - The request {@link ListTaxesRequest}
|
|
28
25
|
* @returns A Promise of ListTaxesResponse
|
|
@@ -33,8 +30,7 @@ export declare class API extends ParentAPI {
|
|
|
33
30
|
};
|
|
34
31
|
protected pageOfListInvoices: (request?: Readonly<ListInvoicesRequest>) => Promise<ListInvoicesResponse>;
|
|
35
32
|
/**
|
|
36
|
-
* List invoices. List all your invoices, filtering by `start_date` and
|
|
37
|
-
* `invoice_type`. Each invoice has its own ID.
|
|
33
|
+
* List invoices. List all your invoices, filtering by `start_date` and `invoice_type`. Each invoice has its own ID.
|
|
38
34
|
*
|
|
39
35
|
* @param request - The request {@link ListInvoicesRequest}
|
|
40
36
|
* @returns A Promise of ListInvoicesResponse
|
|
@@ -66,16 +62,10 @@ export declare class API extends ParentAPI {
|
|
|
66
62
|
downloadInvoice: (request: Readonly<DownloadInvoiceRequest>) => Promise<Blob>;
|
|
67
63
|
protected pageOfListDiscounts: (request?: Readonly<ListDiscountsRequest>) => Promise<ListDiscountsResponse>;
|
|
68
64
|
/**
|
|
69
|
-
* List discounts. List all discounts for your Organization and usable
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
* - If you do not specify an `organization_id` you will list the discounts
|
|
74
|
-
* applied to your own Organization and your customers
|
|
75
|
-
* - If you indicate your `organization_id` you will list only the discounts
|
|
76
|
-
* applied to your Organization
|
|
77
|
-
* - If you indicate `the organization_id` of one of your customers, you will
|
|
78
|
-
* list the discounts applied to their Organization.
|
|
65
|
+
* List discounts. List all discounts for your Organization and usable categories, products, offers, references, regions and zones where the discount can be applied. As a reseller:
|
|
66
|
+
- If you do not specify an `organization_id` you will list the discounts applied to your own Organization and your customers
|
|
67
|
+
- If you indicate your `organization_id` you will list only the discounts applied to your Organization
|
|
68
|
+
- If you indicate `the organization_id` of one of your customers, you will list the discounts applied to their Organization.
|
|
79
69
|
*
|
|
80
70
|
* @param request - The request {@link ListDiscountsRequest}
|
|
81
71
|
* @returns A Promise of ListDiscountsResponse
|
|
@@ -37,8 +37,7 @@ class API extends API$1 {
|
|
|
37
37
|
unmarshalListConsumptionsResponse
|
|
38
38
|
);
|
|
39
39
|
/**
|
|
40
|
-
* Get monthly consumption. Consumption allows you to retrieve your past or
|
|
41
|
-
* current consumption cost, by project or category.
|
|
40
|
+
* Get monthly consumption. Consumption allows you to retrieve your past or current consumption cost, by project or category.
|
|
42
41
|
*
|
|
43
42
|
* @param request - The request {@link ListConsumptionsRequest}
|
|
44
43
|
* @returns A Promise of ListConsumptionsResponse
|
|
@@ -65,8 +64,7 @@ class API extends API$1 {
|
|
|
65
64
|
unmarshalListTaxesResponse
|
|
66
65
|
);
|
|
67
66
|
/**
|
|
68
|
-
* Get monthly consumption taxes. Consumption Tax allows you to retrieve your
|
|
69
|
-
* past or current tax charges, by project or category.
|
|
67
|
+
* Get monthly consumption taxes. Consumption Tax allows you to retrieve your past or current tax charges, by project or category.
|
|
70
68
|
*
|
|
71
69
|
* @param request - The request {@link ListTaxesRequest}
|
|
72
70
|
* @returns A Promise of ListTaxesResponse
|
|
@@ -92,8 +90,7 @@ class API extends API$1 {
|
|
|
92
90
|
unmarshalListInvoicesResponse
|
|
93
91
|
);
|
|
94
92
|
/**
|
|
95
|
-
* List invoices. List all your invoices, filtering by `start_date` and
|
|
96
|
-
* `invoice_type`. Each invoice has its own ID.
|
|
93
|
+
* List invoices. List all your invoices, filtering by `start_date` and `invoice_type`. Each invoice has its own ID.
|
|
97
94
|
*
|
|
98
95
|
* @param request - The request {@link ListInvoicesRequest}
|
|
99
96
|
* @returns A Promise of ListInvoicesResponse
|
|
@@ -163,20 +160,14 @@ class API extends API$1 {
|
|
|
163
160
|
unmarshalListDiscountsResponse
|
|
164
161
|
);
|
|
165
162
|
/**
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
* - If you indicate `the organization_id` of one of your customers, you will
|
|
175
|
-
* list the discounts applied to their Organization.
|
|
176
|
-
*
|
|
177
|
-
* @param request - The request {@link ListDiscountsRequest}
|
|
178
|
-
* @returns A Promise of ListDiscountsResponse
|
|
179
|
-
*/
|
|
163
|
+
* List discounts. List all discounts for your Organization and usable categories, products, offers, references, regions and zones where the discount can be applied. As a reseller:
|
|
164
|
+
- If you do not specify an `organization_id` you will list the discounts applied to your own Organization and your customers
|
|
165
|
+
- If you indicate your `organization_id` you will list only the discounts applied to your Organization
|
|
166
|
+
- If you indicate `the organization_id` of one of your customers, you will list the discounts applied to their Organization.
|
|
167
|
+
*
|
|
168
|
+
* @param request - The request {@link ListDiscountsRequest}
|
|
169
|
+
* @returns A Promise of ListDiscountsResponse
|
|
170
|
+
*/
|
|
180
171
|
listDiscounts = (request = {}) => enrichForPagination("discounts", this.pageOfListDiscounts, request);
|
|
181
172
|
}
|
|
182
173
|
export {
|