def get(self, roleId):
"""Get the details of a Role, by ID.
Args:
roleId(basestring): The ID of the Role to be retrieved.
Returns:
Role: A Role object with the details of the requested Role.
Raises:
TypeError: If the parameter types are incorrect.
SparkApiError: If the Cisco Spark cloud returns an error.
"""
check_type(roleId, basestring, may_be_none=False)
# API request
json_data = self._session.get('roles/' + roleId)
# Return a Role object created from the returned JSON object
return Role(json_data)
评论列表
文章目录