@meshmakers/octo-services 3.3.940 → 3.3.950

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.
@@ -3839,6 +3839,31 @@ class CommunicationService {
3839
3839
  // ============================================================================
3840
3840
  // Pool-Level Adapter Deployment
3841
3841
  // ============================================================================
3842
+ /**
3843
+ * Deploys a pool. For Cloud-environment pools, this triggers the central
3844
+ * Communication Operator to provision the corresponding CommunicationPool
3845
+ * CR and broker secret. Edge-environment pools transition state without
3846
+ * any operator notification.
3847
+ */
3848
+ async deployPool(tenantId, poolRtId) {
3849
+ if (this.communicationServicesUrl) {
3850
+ const params = new HttpParams().set('poolRtId', poolRtId);
3851
+ const uri = `${this.communicationServicesUrl}${tenantId}/v1/pool/deploy`;
3852
+ await firstValueFrom(this.httpClient.post(uri, null, { params, observe: 'response' }));
3853
+ }
3854
+ }
3855
+ /**
3856
+ * Undeploys a pool. For Cloud-environment pools, this notifies the central
3857
+ * Communication Operator to remove the CommunicationPool CR and broker
3858
+ * secret.
3859
+ */
3860
+ async undeployPool(tenantId, poolRtId) {
3861
+ if (this.communicationServicesUrl) {
3862
+ const params = new HttpParams().set('poolRtId', poolRtId);
3863
+ const uri = `${this.communicationServicesUrl}${tenantId}/v1/pool/undeploy`;
3864
+ await firstValueFrom(this.httpClient.post(uri, null, { params, observe: 'response' }));
3865
+ }
3866
+ }
3842
3867
  /**
3843
3868
  * Deploys all adapters of a pool.
3844
3869
  */