Skip to content

Commit

Permalink
[api] OPSAPS-13725: Add entityStatus to ApiRole/Service/Host
Browse files Browse the repository at this point in the history
We introduced ApiEntityStatus in cm api. This change adds the same field to our
python client.
  • Loading branch information
Xiaobin Zheng committed May 14, 2015
1 parent 7959787 commit 2da9220
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions python/src/cm_api/endpoints/hosts.py
Expand Up @@ -81,6 +81,7 @@ class ApiHost(BaseApiResource):
'numCores' : ROAttr(),
'numPhysicalCores' : ROAttr(),
'totalPhysMemBytes' : ROAttr(),
'entityStatus' : ROAttr(),
}

def __init__(self, resource_root, hostId=None, hostname=None,
Expand Down
1 change: 1 addition & 0 deletions python/src/cm_api/endpoints/roles.py
Expand Up @@ -122,6 +122,7 @@ class ApiRole(BaseApiResource):
'maintenanceOwners' : ROAttr(),
'roleConfigGroupRef' : ROAttr(ApiRoleConfigGroupRef),
'zooKeeperServerMode' : ROAttr(),
'entityStatus' : ROAttr(),
}

def __init__(self, resource_root, name=None, type=None, hostRef=None):
Expand Down
1 change: 1 addition & 0 deletions python/src/cm_api/endpoints/services.py
Expand Up @@ -95,6 +95,7 @@ class ApiService(BaseApiResource):
'serviceUrl' : ROAttr(),
'maintenanceMode' : ROAttr(),
'maintenanceOwners' : ROAttr(),
'entityStatus' : ROAttr(),
}

def __init__(self, resource_root, name=None, type=None):
Expand Down

0 comments on commit 2da9220

Please sign in to comment.