hcloud-sdk 22.51.1 → 22.53.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/changelog.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
## [22.
|
|
1
|
+
## [22.53.0](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/compare/v22.52.0...v22.53.0) (2026-10-09)
|
|
2
2
|
|
|
3
|
-
###
|
|
3
|
+
### Features
|
|
4
4
|
|
|
5
|
-
* add
|
|
5
|
+
* add asset count to spacedto ([361dc8b](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/361dc8b2e8c46d09f50faee77a4425e1dbdfa3f6))
|
|
@@ -134,4 +134,16 @@ export declare class CosmoSpace extends Base {
|
|
|
134
134
|
updateTrashbinPolicy<R extends boolean = false>(orgName: string, spaceName: string, policy: TrashPolicy, raw?: {
|
|
135
135
|
raw: R;
|
|
136
136
|
}): Promise<MaybeRaw<R, ICosmoSpace>>;
|
|
137
|
+
/**
|
|
138
|
+
* Change the Storage of a Space. Only possible as long as the Space contains no media assets.
|
|
139
|
+
* @remarks
|
|
140
|
+
* ** Under development, breaking changes possible**
|
|
141
|
+
* @param orgName Name of the Organization
|
|
142
|
+
* @param spaceName Name of the Space
|
|
143
|
+
* @param storageId ID of the Storage to use for the Space, or "default" for the default Storage
|
|
144
|
+
* @returns The updated Space
|
|
145
|
+
*/
|
|
146
|
+
updateStorage<R extends boolean = false>(orgName: string, spaceName: string, storageId: string, raw?: {
|
|
147
|
+
raw: R;
|
|
148
|
+
}): Promise<MaybeRaw<R, ICosmoSpace>>;
|
|
137
149
|
}
|
|
@@ -191,5 +191,20 @@ class CosmoSpace extends Base_1.default {
|
|
|
191
191
|
return ((raw === null || raw === void 0 ? void 0 : raw.raw) ? resp : resp.data);
|
|
192
192
|
});
|
|
193
193
|
}
|
|
194
|
+
/**
|
|
195
|
+
* Change the Storage of a Space. Only possible as long as the Space contains no media assets.
|
|
196
|
+
* @remarks
|
|
197
|
+
* ** Under development, breaking changes possible**
|
|
198
|
+
* @param orgName Name of the Organization
|
|
199
|
+
* @param spaceName Name of the Space
|
|
200
|
+
* @param storageId ID of the Storage to use for the Space, or "default" for the default Storage
|
|
201
|
+
* @returns The updated Space
|
|
202
|
+
*/
|
|
203
|
+
updateStorage(orgName, spaceName, storageId, raw) {
|
|
204
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
205
|
+
const resp = yield this.axios.patch(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/storage/${storageId}`));
|
|
206
|
+
return ((raw === null || raw === void 0 ? void 0 : raw.raw) ? resp : resp.data);
|
|
207
|
+
});
|
|
208
|
+
}
|
|
194
209
|
}
|
|
195
210
|
exports.CosmoSpace = CosmoSpace;
|