You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by de...@apache.org on 2018/06/26 18:54:58 UTC
[trafficcontrol] 07/15: backward compatability
This is an automated email from the ASF dual-hosted git repository.
dewrich pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficcontrol.git
commit f2118fce50d7844959f89c84dd63d5b89f1be672
Author: Dan Kirkwood <da...@apache.org>
AuthorDate: Thu Jun 21 14:33:19 2018 -0600
backward compatability
---
lib/go-tc/tenants.go | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/lib/go-tc/tenants.go b/lib/go-tc/tenants.go
index c53e707..2448822 100644
--- a/lib/go-tc/tenants.go
+++ b/lib/go-tc/tenants.go
@@ -19,18 +19,24 @@ package tc
* under the License.
*/
-// TenantResponse ...
+// TenantResponse is the response for a request for a single tenant
type TenantResponse struct {
Response Tenant `json:"response"`
Alerts []TenantAlert `json:"alerts"`
}
-// TenantResponse ...
+// GetTenantResponse here to maintain backward compatability
+type GetTenantResponse TenantResponse
+
+// TenantResponse is the response for a request for a group of tenants
type TenantsResponse struct {
Response []Tenant `json:"response"`
Alerts []TenantAlert `json:"alerts"`
}
+// GetTenantsResponse here to maintain backward compatability
+type GetTenantsResponse TenantsResponse
+
// Tenant ...
type Tenant struct {
Active bool `json:"active"`