brooklyn-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rich...@apache.org
Subject [05/50] [abbrv] brooklyn-client git commit: fixes Tree command to use applications/fetch api endpoint
Date Tue, 08 Mar 2016 13:19:38 GMT
fixes Tree command to use applications/fetch api endpoint


Project: http://git-wip-us.apache.org/repos/asf/brooklyn-client/repo
Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-client/commit/cee54b9e
Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-client/tree/cee54b9e
Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-client/diff/cee54b9e

Branch: refs/heads/master
Commit: cee54b9efbcb796864c6caf3e8b74f6bb24da02b
Parents: 63d33d4
Author: Robert Moss <robert.moss@cloudsoftcorp.com>
Authored: Thu Feb 11 13:35:08 2016 +0000
Committer: Robert Moss <robert.moss@cloudsoftcorp.com>
Committed: Thu Feb 11 13:35:08 2016 +0000

----------------------------------------------------------------------
 api/application/applications.go |  2 +-
 models/applications.go          | 14 ++++++++------
 2 files changed, 9 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/brooklyn-client/blob/cee54b9e/api/application/applications.go
----------------------------------------------------------------------
diff --git a/api/application/applications.go b/api/application/applications.go
index 007706a..1c69625 100644
--- a/api/application/applications.go
+++ b/api/application/applications.go
@@ -77,7 +77,7 @@ func DescendantsSensor(network *net.Network, app, sensor string) (string,
error)
 }
 
 func Tree(network *net.Network) ([]models.Tree, error) {
-	url := "/v1/applications/tree"
+	url := "/v1/applications/fetch"
 	var tree []models.Tree
 	body, err := network.SendGetRequest(url)
 	if err != nil {

http://git-wip-us.apache.org/repos/asf/brooklyn-client/blob/cee54b9e/models/applications.go
----------------------------------------------------------------------
diff --git a/models/applications.go b/models/applications.go
index cac09dd..36ecff0 100644
--- a/models/applications.go
+++ b/models/applications.go
@@ -1,12 +1,14 @@
 package models
 
 type Tree struct {
-	Name         string `json:"name"`
-	Id           string `json:"id"`
-	Type         string `json:"type"`
-	ServiceUp    bool   `json:"serviceUp"`
-	ServiceState string `json:"serviceState"`
-	Children     []Tree `json:"children"`
+	Id            string   `json:"id"`
+	ParentId      string   `json:"parentId"`
+	Name          string   `json:"name"`
+	Type          string   `json:"type"`
+	CatalogItemId string   `json:"catalogItemId"`
+	Children      []Tree   `json:"children"`
+	GroupIds      []string `json:"groupIds"`
+	Members       []string `json:"members"`
 }
 
 type TaskSummary struct {


Mime
View raw message