@scaleway/sdk 1.1.0 → 1.4.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/v2/api.gen.js +16 -6
- package/dist/api/applesilicon/v1alpha1/api.gen.js +31 -13
- package/dist/api/baremetal/v1/api.gen.js +59 -45
- package/dist/api/cockpit/v1beta1/api.gen.js +35 -15
- package/dist/api/container/v1beta1/api.gen.js +34 -27
- package/dist/api/domain/v2beta1/api.gen.js +89 -78
- package/dist/api/flexibleip/v1alpha1/api.gen.js +11 -11
- package/dist/api/function/v1beta1/api.gen.js +39 -30
- package/dist/api/iam/v1alpha1/api.gen.js +200 -35
- package/dist/api/iam/v1alpha1/marshalling.gen.js +44 -1
- package/dist/api/iam/v1alpha1/validation-rules.gen.js +24 -1
- package/dist/api/instance/v1/api.gen.js +72 -61
- package/dist/api/iot/v1/api.gen.js +37 -37
- package/dist/api/k8s/index.js +2 -2
- package/dist/api/k8s/v1/api.gen.js +52 -45
- package/dist/api/k8s/v1/api.utils.js +16 -0
- package/dist/api/k8s/v1/{index.gen.js → index.js} +1 -3
- package/dist/api/lb/v1/api.gen.js +231 -110
- package/dist/api/lb/v1/marshalling.gen.js +16 -2
- package/dist/api/marketplace/v1/api.gen.js +2 -2
- package/dist/api/marketplace/v2/api.gen.js +3 -3
- package/dist/api/mnq/v1alpha1/api.gen.js +11 -10
- package/dist/api/rdb/v1/api.gen.js +207 -63
- package/dist/api/rdb/v1/marshalling.gen.js +20 -3
- package/dist/api/redis/v1/api.gen.js +26 -25
- package/dist/api/registry/v1/api.gen.js +15 -13
- package/dist/api/secret/v1alpha1/api.gen.js +18 -17
- package/dist/api/tem/v1alpha1/api.gen.js +12 -12
- package/dist/api/tem/v1alpha1/marshalling.gen.js +2 -0
- package/dist/api/test/v1/api.gen.js +11 -10
- package/dist/api/vpc/v1/api.gen.js +5 -5
- package/dist/api/vpcgw/v1/api.gen.js +130 -41
- package/dist/api/vpcgw/v1/marshalling.gen.js +18 -15
- package/dist/api/webhosting/index.js +2 -0
- package/dist/api/webhosting/v1alpha1/api.gen.js +131 -0
- package/dist/api/webhosting/v1alpha1/content.gen.js +7 -0
- package/dist/api/webhosting/v1alpha1/index.gen.js +6 -0
- package/dist/api/webhosting/v1alpha1/marshalling.gen.js +142 -0
- package/dist/api/webhosting/v1alpha1/validation-rules.gen.js +14 -0
- package/dist/index.cjs +2227 -1191
- package/dist/index.d.ts +9164 -6899
- package/dist/index.js +2 -0
- package/dist/scw/constants.js +1 -1
- package/package.json +2 -2
|
@@ -11,7 +11,7 @@ const jsonContentHeaders = {
|
|
|
11
11
|
/**
|
|
12
12
|
* Account API.
|
|
13
13
|
*
|
|
14
|
-
* This API allows you to manage projects.
|
|
14
|
+
* User related data. This API allows you to manage projects.
|
|
15
15
|
*/
|
|
16
16
|
class API extends API$1 {
|
|
17
17
|
constructor() {
|
|
@@ -19,7 +19,8 @@ class API extends API$1 {
|
|
|
19
19
|
super(...arguments);
|
|
20
20
|
_this = this;
|
|
21
21
|
/**
|
|
22
|
-
* Create
|
|
22
|
+
* Create a new Project for an Organization. Generate a new Project for an
|
|
23
|
+
* Organization, specifying its configuration including name and description.
|
|
23
24
|
*
|
|
24
25
|
* @param request - The request {@link CreateProjectRequest}
|
|
25
26
|
* @returns A Promise of Project
|
|
@@ -41,7 +42,10 @@ class API extends API$1 {
|
|
|
41
42
|
}, unmarshalListProjectsResponse);
|
|
42
43
|
};
|
|
43
44
|
/**
|
|
44
|
-
* List
|
|
45
|
+
* List all Projects of an Organization. List all Projects of an Organization.
|
|
46
|
+
* The response will include the total number of Projects as well as their
|
|
47
|
+
* associated Organizations, names and IDs. Other information include the
|
|
48
|
+
* creation and update date of the Project.
|
|
45
49
|
*
|
|
46
50
|
* @param request - The request {@link ListProjectsRequest}
|
|
47
51
|
* @returns A Promise of ListProjectsResponse
|
|
@@ -53,7 +57,9 @@ class API extends API$1 {
|
|
|
53
57
|
return enrichForPagination('projects', _this.pageOfListProjects, request);
|
|
54
58
|
};
|
|
55
59
|
/**
|
|
56
|
-
* Get
|
|
60
|
+
* Get an existing Project. Retrieve information about an existing Project,
|
|
61
|
+
* specified by its Project ID. Its full details, including ID, name and
|
|
62
|
+
* description, are returned in the response object.
|
|
57
63
|
*
|
|
58
64
|
* @param request - The request {@link GetProjectRequest}
|
|
59
65
|
* @returns A Promise of Project
|
|
@@ -68,7 +74,10 @@ class API extends API$1 {
|
|
|
68
74
|
}, unmarshalProject);
|
|
69
75
|
};
|
|
70
76
|
/**
|
|
71
|
-
* Delete
|
|
77
|
+
* Delete an existing Project. Delete an existing Project, specified by its
|
|
78
|
+
* Project ID. The Project needs to be empty (meaning there are no resources
|
|
79
|
+
* left in it) to be deleted effectively. Note that deleting a Project is
|
|
80
|
+
* permanent, and cannot be undone.
|
|
72
81
|
*
|
|
73
82
|
* @param request - The request {@link DeleteProjectRequest}
|
|
74
83
|
*/
|
|
@@ -82,7 +91,8 @@ class API extends API$1 {
|
|
|
82
91
|
});
|
|
83
92
|
};
|
|
84
93
|
/**
|
|
85
|
-
* Update
|
|
94
|
+
* Update Project. Update the parameters of an existing Project, specified by
|
|
95
|
+
* its Project ID. These parameters include the name and description.
|
|
86
96
|
*
|
|
87
97
|
* @param request - The request {@link UpdateProjectRequest}
|
|
88
98
|
* @returns A Promise of Project
|
|
@@ -13,8 +13,8 @@ const jsonContentHeaders = {
|
|
|
13
13
|
/**
|
|
14
14
|
* Apple silicon.
|
|
15
15
|
*
|
|
16
|
-
* Scaleway Apple silicon
|
|
17
|
-
* of Apple Mac mini hardware (fifth generation).
|
|
16
|
+
* Apple Mac mini as a service. Scaleway Apple silicon as-a-Service is built
|
|
17
|
+
* using the latest generation of Apple Mac mini hardware (fifth generation).
|
|
18
18
|
*
|
|
19
19
|
* These dedicated Mac mini M1s are designed for developing, building, testing,
|
|
20
20
|
* and signing applications for Apple devices, including iPhones, iPads, Mac
|
|
@@ -37,7 +37,9 @@ class API extends API$1 {
|
|
|
37
37
|
super(...arguments);
|
|
38
38
|
_this = this;
|
|
39
39
|
/**
|
|
40
|
-
* List
|
|
40
|
+
* List server types. List all technical details about Apple silicon server
|
|
41
|
+
* types available in the specified zone. Since there is only one Availability
|
|
42
|
+
* Zone for Apple silicon servers, the targeted value is `fr-par-3`.
|
|
41
43
|
*
|
|
42
44
|
* @param request - The request {@link ListServerTypesRequest}
|
|
43
45
|
* @returns A Promise of ListServerTypesResponse
|
|
@@ -52,7 +54,7 @@ class API extends API$1 {
|
|
|
52
54
|
}, unmarshalListServerTypesResponse);
|
|
53
55
|
};
|
|
54
56
|
/**
|
|
55
|
-
* Get a server technical details.
|
|
57
|
+
* Get a server type. Get a server technical details.
|
|
56
58
|
*
|
|
57
59
|
* @param request - The request {@link GetServerTypeRequest}
|
|
58
60
|
* @returns A Promise of ServerType
|
|
@@ -62,7 +64,8 @@ class API extends API$1 {
|
|
|
62
64
|
path: `/apple-silicon/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/server-type/${validatePathParam('serverType', request.serverType)}`
|
|
63
65
|
}, unmarshalServerType);
|
|
64
66
|
/**
|
|
65
|
-
* Create a server.
|
|
67
|
+
* Create a server. Create a new server in the targeted zone, specifying its
|
|
68
|
+
* configuration including name and type.
|
|
66
69
|
*
|
|
67
70
|
* @param request - The request {@link CreateServerRequest}
|
|
68
71
|
* @returns A Promise of Server
|
|
@@ -84,7 +87,9 @@ class API extends API$1 {
|
|
|
84
87
|
}, unmarshalListServersResponse);
|
|
85
88
|
};
|
|
86
89
|
/**
|
|
87
|
-
* List all servers.
|
|
90
|
+
* List all servers. List all servers in the specified zone. By default,
|
|
91
|
+
* returned servers in the list are ordered by creation date in ascending
|
|
92
|
+
* order, though this can be modified via the `order_by` field.
|
|
88
93
|
*
|
|
89
94
|
* @param request - The request {@link ListServersRequest}
|
|
90
95
|
* @returns A Promise of ListServersResponse
|
|
@@ -106,7 +111,9 @@ class API extends API$1 {
|
|
|
106
111
|
}, unmarshalListOSResponse);
|
|
107
112
|
};
|
|
108
113
|
/**
|
|
109
|
-
* List all Operating System (OS).
|
|
114
|
+
* List all Operating System (OS). List all Operating System (OS). The
|
|
115
|
+
* response will include the total number of OS as well as their associated
|
|
116
|
+
* IDs, names and labels.
|
|
110
117
|
*
|
|
111
118
|
* @param request - The request {@link ListOSRequest}
|
|
112
119
|
* @returns A Promise of ListOSResponse
|
|
@@ -118,7 +125,8 @@ class API extends API$1 {
|
|
|
118
125
|
return enrichForPagination('os', _this.pageOfListOS, request);
|
|
119
126
|
};
|
|
120
127
|
/**
|
|
121
|
-
* Get an Operating System (OS).
|
|
128
|
+
* Get an Operating System (OS). Get an Operating System (OS). The response
|
|
129
|
+
* will include the OS's unique ID as well as its name and label.
|
|
122
130
|
*
|
|
123
131
|
* @param request - The request {@link GetOSRequest}
|
|
124
132
|
* @returns A Promise of OS
|
|
@@ -128,7 +136,9 @@ class API extends API$1 {
|
|
|
128
136
|
path: `/apple-silicon/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/os/${validatePathParam('osId', request.osId)}`
|
|
129
137
|
}, unmarshalOS);
|
|
130
138
|
/**
|
|
131
|
-
* Get a server.
|
|
139
|
+
* Get a server. Retrieve information about an existing Apple silicon server,
|
|
140
|
+
* specified by its server ID. Its full details, including name, status and IP
|
|
141
|
+
* address, are returned in the response object.
|
|
132
142
|
*
|
|
133
143
|
* @param request - The request {@link GetServerRequest}
|
|
134
144
|
* @returns A Promise of Server
|
|
@@ -146,7 +156,8 @@ class API extends API$1 {
|
|
|
146
156
|
*/
|
|
147
157
|
this.waitForServer = (request, options) => waitForResource((options == null ? void 0 : options.stop) ?? (res => Promise.resolve(!SERVER_TRANSIENT_STATUSES.includes(res.status))), this.getServer, request, options);
|
|
148
158
|
/**
|
|
149
|
-
* Update a server.
|
|
159
|
+
* Update a server. Update the parameters of an existing Apple silicon server,
|
|
160
|
+
* specified by its server ID.
|
|
150
161
|
*
|
|
151
162
|
* @param request - The request {@link UpdateServerRequest}
|
|
152
163
|
* @returns A Promise of Server
|
|
@@ -158,7 +169,10 @@ class API extends API$1 {
|
|
|
158
169
|
path: `/apple-silicon/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}`
|
|
159
170
|
}, unmarshalServer);
|
|
160
171
|
/**
|
|
161
|
-
* Delete a server.
|
|
172
|
+
* Delete a server. Delete an existing Apple silicon server, specified by its
|
|
173
|
+
* server ID. Deleting a server is permanent, and cannot be undone. Note that
|
|
174
|
+
* the minimum allocation period for Apple silicon-as-a-service is 24 hours,
|
|
175
|
+
* meaning you cannot delete your server prior to that.
|
|
162
176
|
*
|
|
163
177
|
* @param request - The request {@link DeleteServerRequest}
|
|
164
178
|
*/
|
|
@@ -167,7 +181,8 @@ class API extends API$1 {
|
|
|
167
181
|
path: `/apple-silicon/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}`
|
|
168
182
|
});
|
|
169
183
|
/**
|
|
170
|
-
* Reboot a server.
|
|
184
|
+
* Reboot a server. Reboot an existing Apple silicon server, specified by its
|
|
185
|
+
* server ID.
|
|
171
186
|
*
|
|
172
187
|
* @param request - The request {@link RebootServerRequest}
|
|
173
188
|
* @returns A Promise of Server
|
|
@@ -179,7 +194,10 @@ class API extends API$1 {
|
|
|
179
194
|
path: `/apple-silicon/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/reboot`
|
|
180
195
|
}, unmarshalServer);
|
|
181
196
|
/**
|
|
182
|
-
* Reinstall a server.
|
|
197
|
+
* Reinstall a server. Reinstall an existing Apple silicon server (specified
|
|
198
|
+
* by its server ID) from a new image (OS). All the data on the disk is
|
|
199
|
+
* deleted and all configuration is reset to the defailt configuration values
|
|
200
|
+
* of the image (OS).
|
|
183
201
|
*
|
|
184
202
|
* @param request - The request {@link ReinstallServerRequest}
|
|
185
203
|
* @returns A Promise of Server
|
|
@@ -11,9 +11,9 @@ const jsonContentHeaders = {
|
|
|
11
11
|
};
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
|
-
* Elastic
|
|
14
|
+
* Elastic Metal API.
|
|
15
15
|
*
|
|
16
|
-
* This API allows to manage your
|
|
16
|
+
* This API allows to manage your Elastic Metal server. Elastic Metal API.
|
|
17
17
|
*/
|
|
18
18
|
class API extends API$1 {
|
|
19
19
|
constructor() {
|
|
@@ -31,7 +31,8 @@ class API extends API$1 {
|
|
|
31
31
|
}, unmarshalListServersResponse);
|
|
32
32
|
};
|
|
33
33
|
/**
|
|
34
|
-
* List
|
|
34
|
+
* List Elastic Metal servers for an organization. List Elastic Metal servers
|
|
35
|
+
* for a specific organization.
|
|
35
36
|
*
|
|
36
37
|
* @param request - The request {@link ListServersRequest}
|
|
37
38
|
* @returns A Promise of ListServersResponse
|
|
@@ -43,7 +44,8 @@ class API extends API$1 {
|
|
|
43
44
|
return enrichForPagination('servers', _this.pageOfListServers, request);
|
|
44
45
|
};
|
|
45
46
|
/**
|
|
46
|
-
* Get
|
|
47
|
+
* Get a specific Elastic Metal server. Get full details of an existing
|
|
48
|
+
* Elastic Metal server associated with the ID.
|
|
47
49
|
*
|
|
48
50
|
* @param request - The request {@link GetServerRequest}
|
|
49
51
|
* @returns A Promise of Server
|
|
@@ -61,8 +63,8 @@ class API extends API$1 {
|
|
|
61
63
|
*/
|
|
62
64
|
this.waitForServer = (request, options) => waitForResource((options == null ? void 0 : options.stop) ?? (res => Promise.resolve(!SERVER_TRANSIENT_STATUSES.includes(res.status))), this.getServer, request, options);
|
|
63
65
|
/**
|
|
64
|
-
* Create a new
|
|
65
|
-
*
|
|
66
|
+
* Create an Elastic Metal server. Create a new Elastic Metal server. Once the
|
|
67
|
+
* server is created, proceed with the [installation of an OS](#post-3e949e).
|
|
66
68
|
*
|
|
67
69
|
* @param request - The request {@link CreateServerRequest}
|
|
68
70
|
* @returns A Promise of Server
|
|
@@ -74,7 +76,9 @@ class API extends API$1 {
|
|
|
74
76
|
path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers`
|
|
75
77
|
}, unmarshalServer);
|
|
76
78
|
/**
|
|
77
|
-
* Update the server associated with the
|
|
79
|
+
* Update an Elastic Metal server. Update the server associated with the ID.
|
|
80
|
+
* You can update parameters such as the server's name, tags and description.
|
|
81
|
+
* Any parameters left null in the request body are not updated.
|
|
78
82
|
*
|
|
79
83
|
* @param request - The request {@link UpdateServerRequest}
|
|
80
84
|
* @returns A Promise of Server
|
|
@@ -86,7 +90,8 @@ class API extends API$1 {
|
|
|
86
90
|
path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}`
|
|
87
91
|
}, unmarshalServer);
|
|
88
92
|
/**
|
|
89
|
-
* Install an
|
|
93
|
+
* Install an Elastic Metal server. Install an Operating System (OS) on the
|
|
94
|
+
* Elastic Metal server with a specific ID.
|
|
90
95
|
*
|
|
91
96
|
* @param request - The request {@link InstallServerRequest}
|
|
92
97
|
* @returns A Promise of Server
|
|
@@ -98,7 +103,8 @@ class API extends API$1 {
|
|
|
98
103
|
path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/install`
|
|
99
104
|
}, unmarshalServer);
|
|
100
105
|
/**
|
|
101
|
-
*
|
|
106
|
+
* Return server metrics. Get the ping status of the server associated with
|
|
107
|
+
* the ID.
|
|
102
108
|
*
|
|
103
109
|
* @param request - The request {@link GetServerMetricsRequest}
|
|
104
110
|
* @returns A Promise of GetServerMetricsResponse
|
|
@@ -108,7 +114,7 @@ class API extends API$1 {
|
|
|
108
114
|
path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/metrics`
|
|
109
115
|
}, unmarshalGetServerMetricsResponse);
|
|
110
116
|
/**
|
|
111
|
-
* Delete the server associated with the
|
|
117
|
+
* Delete an Elastic Metal server. Delete the server associated with the ID.
|
|
112
118
|
*
|
|
113
119
|
* @param request - The request {@link DeleteServerRequest}
|
|
114
120
|
* @returns A Promise of Server
|
|
@@ -118,8 +124,9 @@ class API extends API$1 {
|
|
|
118
124
|
path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}`
|
|
119
125
|
}, unmarshalServer);
|
|
120
126
|
/**
|
|
121
|
-
* Reboot
|
|
122
|
-
* rescue
|
|
127
|
+
* Reboot an Elastic Metal server. Reboot the Elastic Metal server associated
|
|
128
|
+
* with the ID, use the `boot_type` `rescue` to reboot the server in rescue
|
|
129
|
+
* mode.
|
|
123
130
|
*
|
|
124
131
|
* @param request - The request {@link RebootServerRequest}
|
|
125
132
|
* @returns A Promise of Server
|
|
@@ -131,7 +138,7 @@ class API extends API$1 {
|
|
|
131
138
|
path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/reboot`
|
|
132
139
|
}, unmarshalServer);
|
|
133
140
|
/**
|
|
134
|
-
* Start the server associated with the
|
|
141
|
+
* Start an Elastic Metal server. Start the server associated with the ID.
|
|
135
142
|
*
|
|
136
143
|
* @param request - The request {@link StartServerRequest}
|
|
137
144
|
* @returns A Promise of Server
|
|
@@ -143,7 +150,9 @@ class API extends API$1 {
|
|
|
143
150
|
path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/start`
|
|
144
151
|
}, unmarshalServer);
|
|
145
152
|
/**
|
|
146
|
-
* Stop the server associated with the
|
|
153
|
+
* Stop an Elastic Metal server. Stop the server associated with the ID. The
|
|
154
|
+
* server remains allocated to your account and all data remains on the local
|
|
155
|
+
* storage of the server.
|
|
147
156
|
*
|
|
148
157
|
* @param request - The request {@link StopServerRequest}
|
|
149
158
|
* @returns A Promise of Server
|
|
@@ -160,24 +169,26 @@ class API extends API$1 {
|
|
|
160
169
|
urlParams: urlParams(['order_by', request.orderBy ?? 'created_at_asc'], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
|
|
161
170
|
}, unmarshalListServerEventsResponse);
|
|
162
171
|
/**
|
|
163
|
-
* List events associated to the
|
|
172
|
+
* List server events. List event (i.e. start/stop/reboot) associated to the
|
|
173
|
+
* server ID.
|
|
164
174
|
*
|
|
165
175
|
* @param request - The request {@link ListServerEventsRequest}
|
|
166
176
|
* @returns A Promise of ListServerEventsResponse
|
|
167
177
|
*/
|
|
168
178
|
this.listServerEvents = request => enrichForPagination('events', this.pageOfListServerEvents, request);
|
|
169
179
|
/**
|
|
170
|
-
* Start BMC (Baseboard Management Controller) access
|
|
171
|
-
*
|
|
172
|
-
* hour after the installation of the server. You need first to
|
|
173
|
-
* option Remote Access. You will find the ID and the price with a
|
|
174
|
-
* listOffers
|
|
180
|
+
* Start BMC access. Start BMC (Baseboard Management Controller) access
|
|
181
|
+
* associated with the ID. The BMC (Baseboard Management Controller) access is
|
|
182
|
+
* available one hour after the installation of the server. You need first to
|
|
183
|
+
* create an option Remote Access. You will find the ID and the price with a
|
|
184
|
+
* call to listOffers
|
|
175
185
|
* (https://developers.scaleway.com/en/products/baremetal/api/#get-78db92).
|
|
176
|
-
* Then
|
|
177
|
-
* https://developers.scaleway.com/en/products/baremetal/api/#post-b14abd.
|
|
178
|
-
*
|
|
179
|
-
*
|
|
180
|
-
* https://developers.scaleway.com/en/products/baremetal/api/#get-cefc0f.
|
|
186
|
+
* Then add the option
|
|
187
|
+
* https://developers.scaleway.com/en/products/baremetal/api/#post-b14abd.
|
|
188
|
+
* After adding the BMC option, you need to Get Remote Access to get the
|
|
189
|
+
* login/password
|
|
190
|
+
* https://developers.scaleway.com/en/products/baremetal/api/#get-cefc0f. Do
|
|
191
|
+
* not forget to delete the Option after use.
|
|
181
192
|
*
|
|
182
193
|
* @param request - The request {@link StartBMCAccessRequest}
|
|
183
194
|
* @returns A Promise of BMCAccess
|
|
@@ -189,8 +200,9 @@ class API extends API$1 {
|
|
|
189
200
|
path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/bmc-access`
|
|
190
201
|
}, unmarshalBMCAccess);
|
|
191
202
|
/**
|
|
192
|
-
* Get the BMC (Baseboard Management Controller) access
|
|
193
|
-
*
|
|
203
|
+
* Get BMC access. Get the BMC (Baseboard Management Controller) access
|
|
204
|
+
* associated with the ID, including the URL and login information needed to
|
|
205
|
+
* connect.
|
|
194
206
|
*
|
|
195
207
|
* @param request - The request {@link GetBMCAccessRequest}
|
|
196
208
|
* @returns A Promise of BMCAccess
|
|
@@ -200,8 +212,8 @@ class API extends API$1 {
|
|
|
200
212
|
path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/bmc-access`
|
|
201
213
|
}, unmarshalBMCAccess);
|
|
202
214
|
/**
|
|
203
|
-
* Stop BMC (Baseboard Management Controller) access
|
|
204
|
-
* ID.
|
|
215
|
+
* Stop BMC access. Stop BMC (Baseboard Management Controller) access
|
|
216
|
+
* associated with the ID.
|
|
205
217
|
*
|
|
206
218
|
* @param request - The request {@link StopBMCAccessRequest}
|
|
207
219
|
*/
|
|
@@ -210,8 +222,8 @@ class API extends API$1 {
|
|
|
210
222
|
path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/bmc-access`
|
|
211
223
|
});
|
|
212
224
|
/**
|
|
213
|
-
* Configure
|
|
214
|
-
* method to set a reverse
|
|
225
|
+
* Update IP. Configure the IP address associated with the server ID and IP
|
|
226
|
+
* ID. You can use this method to set a reverse DNS for an IP address.
|
|
215
227
|
*
|
|
216
228
|
* @param request - The request {@link UpdateIPRequest}
|
|
217
229
|
* @returns A Promise of IP
|
|
@@ -223,7 +235,8 @@ class API extends API$1 {
|
|
|
223
235
|
path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/ips/${validatePathParam('ipId', request.ipId)}`
|
|
224
236
|
}, unmarshalIP);
|
|
225
237
|
/**
|
|
226
|
-
* Add an option to a specific
|
|
238
|
+
* Add server option. Add an option, such as Private Networks, to a specific
|
|
239
|
+
* server.
|
|
227
240
|
*
|
|
228
241
|
* @param request - The request {@link AddOptionServerRequest}
|
|
229
242
|
* @returns A Promise of Server
|
|
@@ -235,7 +248,7 @@ class API extends API$1 {
|
|
|
235
248
|
path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/options/${validatePathParam('optionId', request.optionId)}`
|
|
236
249
|
}, unmarshalServer);
|
|
237
250
|
/**
|
|
238
|
-
* Delete an option from a specific server.
|
|
251
|
+
* Delete server option. Delete an option from a specific server.
|
|
239
252
|
*
|
|
240
253
|
* @param request - The request {@link DeleteOptionServerRequest}
|
|
241
254
|
* @returns A Promise of Server
|
|
@@ -255,7 +268,7 @@ class API extends API$1 {
|
|
|
255
268
|
}, unmarshalListOffersResponse);
|
|
256
269
|
};
|
|
257
270
|
/**
|
|
258
|
-
* List all available server
|
|
271
|
+
* List offers. List all available Elastic Metal server configurations.
|
|
259
272
|
*
|
|
260
273
|
* @param request - The request {@link ListOffersRequest}
|
|
261
274
|
* @returns A Promise of ListOffersResponse
|
|
@@ -267,7 +280,7 @@ class API extends API$1 {
|
|
|
267
280
|
return enrichForPagination('offers', _this.pageOfListOffers, request);
|
|
268
281
|
};
|
|
269
282
|
/**
|
|
270
|
-
*
|
|
283
|
+
* Get offer. Get details of an offer identified by its offer ID.
|
|
271
284
|
*
|
|
272
285
|
* @param request - The request {@link GetOfferRequest}
|
|
273
286
|
* @returns A Promise of Offer
|
|
@@ -277,7 +290,7 @@ class API extends API$1 {
|
|
|
277
290
|
path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/offers/${validatePathParam('offerId', request.offerId)}`
|
|
278
291
|
}, unmarshalOffer);
|
|
279
292
|
/**
|
|
280
|
-
* Return specific option for the
|
|
293
|
+
* Get option. Return specific option for the ID.
|
|
281
294
|
*
|
|
282
295
|
* @param request - The request {@link GetOptionRequest}
|
|
283
296
|
* @returns A Promise of Option
|
|
@@ -297,7 +310,7 @@ class API extends API$1 {
|
|
|
297
310
|
}, unmarshalListOptionsResponse);
|
|
298
311
|
};
|
|
299
312
|
/**
|
|
300
|
-
* List all options matching with filters.
|
|
313
|
+
* List options. List all options matching with filters.
|
|
301
314
|
*
|
|
302
315
|
* @param request - The request {@link ListOptionsRequest}
|
|
303
316
|
* @returns A Promise of ListOptionsResponse
|
|
@@ -319,7 +332,7 @@ class API extends API$1 {
|
|
|
319
332
|
}, unmarshalListSettingsResponse);
|
|
320
333
|
};
|
|
321
334
|
/**
|
|
322
|
-
* Return all settings for a project ID.
|
|
335
|
+
* List all settings. Return all settings for a project ID.
|
|
323
336
|
*
|
|
324
337
|
* @param request - The request {@link ListSettingsRequest}
|
|
325
338
|
* @returns A Promise of ListSettingsResponse
|
|
@@ -331,7 +344,7 @@ class API extends API$1 {
|
|
|
331
344
|
return enrichForPagination('settings', _this.pageOfListSettings, request);
|
|
332
345
|
};
|
|
333
346
|
/**
|
|
334
|
-
* Update a setting for a project ID (enable or disable).
|
|
347
|
+
* Update setting. Update a setting for a project ID (enable or disable).
|
|
335
348
|
*
|
|
336
349
|
* @param request - The request {@link UpdateSettingRequest}
|
|
337
350
|
* @returns A Promise of Setting
|
|
@@ -353,7 +366,8 @@ class API extends API$1 {
|
|
|
353
366
|
}, unmarshalListOSResponse);
|
|
354
367
|
};
|
|
355
368
|
/**
|
|
356
|
-
* List
|
|
369
|
+
* List available OSes. List all OSes that are available for installation on
|
|
370
|
+
* Elastic Metal servers.
|
|
357
371
|
*
|
|
358
372
|
* @param request - The request {@link ListOSRequest}
|
|
359
373
|
* @returns A Promise of ListOSResponse
|
|
@@ -365,7 +379,7 @@ class API extends API$1 {
|
|
|
365
379
|
return enrichForPagination('os', _this.pageOfListOS, request);
|
|
366
380
|
};
|
|
367
381
|
/**
|
|
368
|
-
* Return specific OS for the
|
|
382
|
+
* Get an OS with an ID. Return specific OS for the ID.
|
|
369
383
|
*
|
|
370
384
|
* @param request - The request {@link GetOSRequest}
|
|
371
385
|
* @returns A Promise of OS
|
|
@@ -386,7 +400,7 @@ class PrivateNetworkAPI extends API$1 {
|
|
|
386
400
|
super(...arguments);
|
|
387
401
|
_this2 = this;
|
|
388
402
|
/**
|
|
389
|
-
* Add a server to a
|
|
403
|
+
* Add a server to a Private Network.
|
|
390
404
|
*
|
|
391
405
|
* @param request - The request
|
|
392
406
|
* {@link PrivateNetworkApiAddServerPrivateNetworkRequest}
|
|
@@ -399,7 +413,7 @@ class PrivateNetworkAPI extends API$1 {
|
|
|
399
413
|
path: `/baremetal/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/private-networks`
|
|
400
414
|
}, unmarshalServerPrivateNetwork);
|
|
401
415
|
/**
|
|
402
|
-
* Set multiple
|
|
416
|
+
* Set multiple Private Networks on a server.
|
|
403
417
|
*
|
|
404
418
|
* @param request - The request
|
|
405
419
|
* {@link PrivateNetworkApiSetServerPrivateNetworksRequest}
|
|
@@ -422,7 +436,7 @@ class PrivateNetworkAPI extends API$1 {
|
|
|
422
436
|
}, unmarshalListServerPrivateNetworksResponse);
|
|
423
437
|
};
|
|
424
438
|
/**
|
|
425
|
-
* List the
|
|
439
|
+
* List the Private Networks of a server.
|
|
426
440
|
*
|
|
427
441
|
* @param request - The request
|
|
428
442
|
* {@link PrivateNetworkApiListServerPrivateNetworksRequest}
|
|
@@ -435,7 +449,7 @@ class PrivateNetworkAPI extends API$1 {
|
|
|
435
449
|
return enrichForPagination('serverPrivateNetworks', _this2.pageOfListServerPrivateNetworks, request);
|
|
436
450
|
};
|
|
437
451
|
/**
|
|
438
|
-
* Delete a
|
|
452
|
+
* Delete a Private Network.
|
|
439
453
|
*
|
|
440
454
|
* @param request - The request
|
|
441
455
|
* {@link PrivateNetworkApiDeleteServerPrivateNetworkRequest}
|
|
@@ -13,13 +13,20 @@ const jsonContentHeaders = {
|
|
|
13
13
|
/**
|
|
14
14
|
* Cockpit API.
|
|
15
15
|
*
|
|
16
|
-
* This API allows to manage Cockpits.
|
|
16
|
+
* This API allows to manage Cockpits. Cockpit API.
|
|
17
17
|
*/
|
|
18
18
|
class API extends API$1 {
|
|
19
19
|
constructor() {
|
|
20
20
|
var _this;
|
|
21
21
|
super(...arguments);
|
|
22
22
|
_this = this;
|
|
23
|
+
/**
|
|
24
|
+
* Activate a cockpit. Activate a cockpit associated with the given project
|
|
25
|
+
* ID.
|
|
26
|
+
*
|
|
27
|
+
* @param request - The request {@link ActivateCockpitRequest}
|
|
28
|
+
* @returns A Promise of Cockpit
|
|
29
|
+
*/
|
|
23
30
|
this.activateCockpit = function (request) {
|
|
24
31
|
if (request === void 0) {
|
|
25
32
|
request = {};
|
|
@@ -32,7 +39,7 @@ class API extends API$1 {
|
|
|
32
39
|
}, unmarshalCockpit);
|
|
33
40
|
};
|
|
34
41
|
/**
|
|
35
|
-
* Get the cockpit associated with the given project ID.
|
|
42
|
+
* Get cockpit. Get the cockpit associated with the given project ID.
|
|
36
43
|
*
|
|
37
44
|
* @param request - The request {@link GetCockpitRequest}
|
|
38
45
|
* @returns A Promise of Cockpit
|
|
@@ -60,6 +67,13 @@ class API extends API$1 {
|
|
|
60
67
|
}
|
|
61
68
|
return waitForResource((options == null ? void 0 : options.stop) ?? (res => Promise.resolve(!COCKPIT_TRANSIENT_STATUSES.includes(res.status))), _this.getCockpit, request, options);
|
|
62
69
|
};
|
|
70
|
+
/**
|
|
71
|
+
* Deactivate a cockpit. Deactivate a cockpit associated with the given
|
|
72
|
+
* project ID.
|
|
73
|
+
*
|
|
74
|
+
* @param request - The request {@link DeactivateCockpitRequest}
|
|
75
|
+
* @returns A Promise of Cockpit
|
|
76
|
+
*/
|
|
63
77
|
this.deactivateCockpit = function (request) {
|
|
64
78
|
if (request === void 0) {
|
|
65
79
|
request = {};
|
|
@@ -72,7 +86,8 @@ class API extends API$1 {
|
|
|
72
86
|
}, unmarshalCockpit);
|
|
73
87
|
};
|
|
74
88
|
/**
|
|
75
|
-
* Reset the Grafana your cockpit associated with the given
|
|
89
|
+
* Reset Grafana. Reset the Grafana of your cockpit associated with the given
|
|
90
|
+
* project ID.
|
|
76
91
|
*
|
|
77
92
|
* @param request - The request {@link ResetCockpitGrafanaRequest}
|
|
78
93
|
* @returns A Promise of Cockpit
|
|
@@ -89,7 +104,7 @@ class API extends API$1 {
|
|
|
89
104
|
}, unmarshalCockpit);
|
|
90
105
|
};
|
|
91
106
|
/**
|
|
92
|
-
* Create token associated with the given project ID.
|
|
107
|
+
* Create a token. Create a token associated with the given project ID.
|
|
93
108
|
*
|
|
94
109
|
* @param request - The request {@link CreateTokenRequest}
|
|
95
110
|
* @returns A Promise of Token
|
|
@@ -111,7 +126,7 @@ class API extends API$1 {
|
|
|
111
126
|
}, unmarshalListTokensResponse);
|
|
112
127
|
};
|
|
113
128
|
/**
|
|
114
|
-
* List tokens associated with the given project ID.
|
|
129
|
+
* List tokens. List tokens associated with the given project ID.
|
|
115
130
|
*
|
|
116
131
|
* @param request - The request {@link ListTokensRequest}
|
|
117
132
|
* @returns A Promise of ListTokensResponse
|
|
@@ -123,7 +138,7 @@ class API extends API$1 {
|
|
|
123
138
|
return enrichForPagination('tokens', _this.pageOfListTokens, request);
|
|
124
139
|
};
|
|
125
140
|
/**
|
|
126
|
-
* Get the token associated with the given ID.
|
|
141
|
+
* Get token. Get the token associated with the given ID.
|
|
127
142
|
*
|
|
128
143
|
* @param request - The request {@link GetTokenRequest}
|
|
129
144
|
* @returns A Promise of Token
|
|
@@ -133,7 +148,7 @@ class API extends API$1 {
|
|
|
133
148
|
path: `/cockpit/v1beta1/tokens/${validatePathParam('tokenId', request.tokenId)}`
|
|
134
149
|
}, unmarshalToken);
|
|
135
150
|
/**
|
|
136
|
-
* Delete the token associated with the given ID.
|
|
151
|
+
* Delete token. Delete the token associated with the given ID.
|
|
137
152
|
*
|
|
138
153
|
* @param request - The request {@link DeleteTokenRequest}
|
|
139
154
|
*/
|
|
@@ -142,7 +157,8 @@ class API extends API$1 {
|
|
|
142
157
|
path: `/cockpit/v1beta1/tokens/${validatePathParam('tokenId', request.tokenId)}`
|
|
143
158
|
});
|
|
144
159
|
/**
|
|
145
|
-
* Create an alert contact point for the
|
|
160
|
+
* Create an alert contact point. Create an alert contact point for the
|
|
161
|
+
* default receiver.
|
|
146
162
|
*
|
|
147
163
|
* @param request - The request {@link CreateContactPointRequest}
|
|
148
164
|
* @returns A Promise of ContactPoint
|
|
@@ -169,7 +185,8 @@ class API extends API$1 {
|
|
|
169
185
|
}, unmarshalListContactPointsResponse);
|
|
170
186
|
};
|
|
171
187
|
/**
|
|
172
|
-
* List alert contact points associated with the
|
|
188
|
+
* List alert contact points. List alert contact points associated with the
|
|
189
|
+
* given cockpit ID.
|
|
173
190
|
*
|
|
174
191
|
* @param request - The request {@link ListContactPointsRequest}
|
|
175
192
|
* @returns A Promise of ListContactPointsResponse
|
|
@@ -181,7 +198,8 @@ class API extends API$1 {
|
|
|
181
198
|
return enrichForPagination('contactPoints', _this.pageOfListContactPoints, request);
|
|
182
199
|
};
|
|
183
200
|
/**
|
|
184
|
-
* Delete an alert contact point for the
|
|
201
|
+
* Delete an alert contact point. Delete an alert contact point for the
|
|
202
|
+
* default receiver.
|
|
185
203
|
*
|
|
186
204
|
* @param request - The request {@link DeleteContactPointRequest}
|
|
187
205
|
*/
|
|
@@ -229,7 +247,7 @@ class API extends API$1 {
|
|
|
229
247
|
});
|
|
230
248
|
};
|
|
231
249
|
/**
|
|
232
|
-
* Trigger a test alert to all receivers.
|
|
250
|
+
* Trigger a test alert. Trigger a test alert to all receivers.
|
|
233
251
|
*
|
|
234
252
|
* @param request - The request {@link TriggerTestAlertRequest}
|
|
235
253
|
*/
|
|
@@ -245,7 +263,7 @@ class API extends API$1 {
|
|
|
245
263
|
});
|
|
246
264
|
};
|
|
247
265
|
/**
|
|
248
|
-
* Create a grafana user for your grafana instance.
|
|
266
|
+
* Create a grafana user. Create a grafana user for your grafana instance.
|
|
249
267
|
*
|
|
250
268
|
* @param request - The request {@link CreateGrafanaUserRequest}
|
|
251
269
|
* @returns A Promise of GrafanaUser
|
|
@@ -267,7 +285,8 @@ class API extends API$1 {
|
|
|
267
285
|
}, unmarshalListGrafanaUsersResponse);
|
|
268
286
|
};
|
|
269
287
|
/**
|
|
270
|
-
* List grafana users who are able to connect to your
|
|
288
|
+
* List grafana users. List grafana users who are able to connect to your
|
|
289
|
+
* grafana instance.
|
|
271
290
|
*
|
|
272
291
|
* @param request - The request {@link ListGrafanaUsersRequest}
|
|
273
292
|
* @returns A Promise of ListGrafanaUsersResponse
|
|
@@ -279,7 +298,7 @@ class API extends API$1 {
|
|
|
279
298
|
return enrichForPagination('grafanaUsers', _this.pageOfListGrafanaUsers, request);
|
|
280
299
|
};
|
|
281
300
|
/**
|
|
282
|
-
* Delete a grafana user from your grafana instance.
|
|
301
|
+
* Delete a grafana user. Delete a grafana user from your grafana instance.
|
|
283
302
|
*
|
|
284
303
|
* @param request - The request {@link DeleteGrafanaUserRequest}
|
|
285
304
|
*/
|
|
@@ -290,7 +309,8 @@ class API extends API$1 {
|
|
|
290
309
|
path: `/cockpit/v1beta1/grafana-users/${validatePathParam('grafanaUserId', request.grafanaUserId)}/delete`
|
|
291
310
|
});
|
|
292
311
|
/**
|
|
293
|
-
* Reset the Grafana user password from your
|
|
312
|
+
* Reset Grafana user password. Reset the Grafana user password from your
|
|
313
|
+
* grafana instance.
|
|
294
314
|
*
|
|
295
315
|
* @param request - The request {@link ResetGrafanaUserPasswordRequest}
|
|
296
316
|
* @returns A Promise of GrafanaUser
|