hcloud-sdk 22.51.1 → 22.52.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.51.1](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/compare/v22.51.0...v22.51.1) (2026-10-08)
1
+ ## [22.52.0](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/compare/v22.51.1...v22.52.0) (2026-10-08)
2
2
 
3
- ### Bug Fixes
3
+ ### Features
4
4
 
5
- * add missing storageId parameter to create space endpoint ([8991813](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/8991813e74d767775efb9b541ede7f6f8cb15268))
5
+ * add cosmo patch storage of space endpoint ([6a792f5](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/6a792f5a96d2f84d30be2374810a7016a049d354))
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hcloud-sdk",
3
- "version": "22.51.1",
3
+ "version": "22.52.0",
4
4
  "description": "hcloud platform sdk",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",