예제 #1
0
def update_service(workspace_name, service):
    service_properties = get_service_properties(service)
    return server.update_service(workspace_name, **service_properties)
예제 #2
0
파일: models.py 프로젝트: Sliim/faraday
def update_service(workspace_name, service):
    service_properties = get_service_properties(service)
    return server.update_service(workspace_name, **service_properties)
예제 #3
0
def create_service(workspace_name, service):
    """Take a workspace_name and a service object and save it to the sever.
    Return the server's json response as a dictionary.
    """
    service_properties = get_service_properties(service)
    return server.create_service(workspace_name, **service_properties)
예제 #4
0
파일: models.py 프로젝트: Sliim/faraday
def create_service(workspace_name, service):
    """Take a workspace_name and a service object and save it to the sever.
    Return the server's json response as a dictionary.
    """
    service_properties = get_service_properties(service)
    return server.create_service(workspace_name, **service_properties)