diff --git a/platform-client-cluster-node-and-agents.patch b/platform-client-cluster-node-and-agents.patch deleted file mode 100644 index 571b3d191..000000000 --- a/platform-client-cluster-node-and-agents.patch +++ /dev/null @@ -1,69 +0,0 @@ -diff --git a/platform-client-cluster-node-and-agents.patch b/platform-client-cluster-node-and-agents.patch -index 62c1b67..e69de29 100644 ---- a/platform-client-cluster-node-and-agents.patch -+++ b/platform-client-cluster-node-and-agents.patch -@@ -1,64 +0,0 @@ --diff --git a/src/resources/Clusters/Cluster.ts b/src/resources/Clusters/Cluster.ts --index 4b7c5ca..bde9c4e 100644 ----- a/src/resources/Clusters/Cluster.ts --+++ b/src/resources/Clusters/Cluster.ts --@@ -1,16 +1,29 @@ -- import API from '../../APICore'; -- import Resource from '../Resource'; ---import {ClusterAgentModel, ClusterModel, ClusterStatusModel} from './ClusterInterfaces'; --+import ClusterAgent from './Agents/ClusterAgent'; --+import {ClusterModel, ClusterStatusModel} from './ClusterInterfaces'; --+import ClusterNode from './Nodes/ClusterNode'; -- -- export default class Cluster extends Resource { -- static baseUrl = `/rest/organizations/${API.orgPlaceholder}/clusters`; -- --+ nodes: ClusterNode; --+ agents: ClusterAgent; --+ --+ constructor(protected api: API) { --+ super(api); --+ --+ this.nodes = new ClusterNode(api); --+ this.agents = new ClusterAgent(api); --+ } --+ -- list() { -- return this.api.get(Cluster.baseUrl); -- } -- --+ // @deprecated use cluster.agents.list instead -- listAgents(id: string) { --- return this.api.get(`${Cluster.baseUrl}/${id}/agents`); --+ return this.agents.list(id); -- } -- -- live() { --diff --git a/src/resources/Clusters/ClusterInterfaces.ts b/src/resources/Clusters/ClusterInterfaces.ts --index 77942ad..16fa222 100644 ----- a/src/resources/Clusters/ClusterInterfaces.ts --+++ b/src/resources/Clusters/ClusterInterfaces.ts --@@ -91,18 +91,14 @@ export interface ClusterModel { -- clusterTopology: ClusterTopologyModel; -- } -- ---export interface ClusterAgentModel { --- id: string; --- name: string; --- description: string; --- platform: string; --- version: string; --- status: ClusterNodeStatusModel; ---} --- -- export interface ClusterNodeStatusModel { -- message: string; -- severity: string; -- status: string; -- timestamp: string; -- } --+ --+export interface ClusterNodeUpgradeDataModel { --+ componentName: string; --+ version: string; --+}