def create_tenant(self, name, description=None, enabled=True):
        """
        ADMIN ONLY. Creates a new tenant.
        """
        data = {"tenant": {
                "name": name,
                "enabled": enabled,
                }}
        if description:
            data["tenant"]["description"] = description
        resp, resp_body = self.method_post("tenants", data=data)
        return Tenant(self, resp_body)
def create_tenant ( self , name , description = None , enabled = True ) : data = { "tenant" : { "name" : name , "enabled" : enabled , } } if description : data [ "tenant" ] [ "description" ] = description resp , resp_body = self . method_post ( "tenants" , data = data ) return Tenant ( self , resp_body )
ADMIN ONLY. Creates a new tenant.