Exemplo n.º 1
0
 def __init__(self, **properties):
     Job.__init__(self, "POST", self.target, properties)
Exemplo n.º 2
0
 def __init__(self, entity):
     Job.__init__(self, "DELETE", Target(entity))
Exemplo n.º 3
0
 def __init__(self, node, *labels):
     Job.__init__(self, "POST", Target(node, "labels"), list(LabelSet(labels)))
Exemplo n.º 4
0
 def __init__(self, relationship):
     Job.__init__(self, "GET", Target(relationship))
Exemplo n.º 5
0
 def __init__(self, entity, properties):
     Job.__init__(self, "PUT", Target(entity, "properties"),
                  PropertySet(properties))
Exemplo n.º 6
0
 def __init__(self, start_node, rel, end_node, **properties):
     uri = self.uri_for(start_node, "relationships")
     body = {"type": rel.type, "to": self.uri_for(end_node)}
     if rel.properties or properties:
         body["data"] = dict(rel.properties, **properties)
     Job.__init__(self, "POST", uri, body)
Exemplo n.º 7
0
 def __init__(self, entity):
     Job.__init__(self, "GET", Target(entity, "properties"))
Exemplo n.º 8
0
 def __init__(self, **properties):
     Job.__init__(self, "POST", self.target, properties)
Exemplo n.º 9
0
 def __init__(self, start_node, rel, end_node, **properties):
     body = {"type": rel.type, "to": Target(end_node).uri_string}
     if rel.properties or properties:
         body["data"] = dict(rel.properties, **properties)
     Job.__init__(self, "POST", Target(start_node, "relationships"), body)
Exemplo n.º 10
0
 def __init__(self, entity, key):
     Job.__init__(self, "DELETE", Target(entity, "properties", key))
Exemplo n.º 11
0
 def __init__(self, entity, label):
     Job.__init__(self, "DELETE", Target(entity, "labels", label))
Exemplo n.º 12
0
 def __init__(self, entity):
     Job.__init__(self, "DELETE", Target(entity))
Exemplo n.º 13
0
 def __init__(self, relationship):
     Job.__init__(self, "GET", Target(relationship))
Exemplo n.º 14
0
 def __init__(self, node):
     Job.__init__(self, "GET", Target(node, "labels"))
Exemplo n.º 15
0
 def __init__(self, entity, key):
     Job.__init__(self, "GET", Target(entity, "properties", key))
Exemplo n.º 16
0
 def __init__(self, entity, key, value):
     Job.__init__(self, "PUT", Target(entity, "properties", key), value)
Exemplo n.º 17
0
 def __init__(self, **properties):
     Job.__init__(self, "POST", "node", properties)
Exemplo n.º 18
0
 def __init__(self, entity, properties):
     Job.__init__(self, "PUT", Target(entity, "properties"), PropertySet(properties))
Exemplo n.º 19
0
 def __init__(self, entity):
     uri = self.uri_for(entity)
     Job.__init__(self, "DELETE", uri)
Exemplo n.º 20
0
 def __init__(self, entity, key, value):
     uri = self.uri_for(entity, "properties", key)
     Job.__init__(self, "PUT", uri, value)
Exemplo n.º 21
0
 def __init__(self, node):
     Job.__init__(self, "GET", Target(node, "labels"))
Exemplo n.º 22
0
 def __init__(self, entity, properties):
     uri = self.uri_for(entity, "properties")
     Job.__init__(self, "PUT", uri, PropertySet(properties))
Exemplo n.º 23
0
 def __init__(self, entity, key, value):
     Job.__init__(self, "PUT", Target(entity, "properties", key), value)
Exemplo n.º 24
0
 def __init__(self, entity):
     uri = self.uri_for(entity, "properties")
     Job.__init__(self, "DELETE", uri)
Exemplo n.º 25
0
 def __init__(self, node, labels):
     Job.__init__(self, "PUT", Target(node, "labels"),
                  list(LabelSet(labels)))
Exemplo n.º 26
0
 def __init__(self, node, *labels):
     uri = self.uri_for(node, "labels")
     Job.__init__(self, "POST", uri, list(LabelSet(labels)))
Exemplo n.º 27
0
 def __init__(self, entity):
     Job.__init__(self, "DELETE", Target(entity, "properties"))
Exemplo n.º 28
0
 def __init__(self, entity, label):
     uri = self.uri_for(entity, "labels", label)
     Job.__init__(self, "DELETE", uri)
Exemplo n.º 29
0
 def __init__(self, entity, label):
     Job.__init__(self, "DELETE", Target(entity, "labels", label))
Exemplo n.º 30
0
 def __init__(self, entity, *labels):
     uri = self.uri_for(entity, "labels")
     Job.__init__(self, "PUT", uri, list(LabelSet(labels)))
Exemplo n.º 31
0
 def __init__(self, start_node, rel, end_node, **properties):
     body = {"type": rel.type, "to": Target(end_node).uri_string}
     if rel.properties or properties:
         body["data"] = dict(rel.properties, **properties)
     Job.__init__(self, "POST", Target(start_node, "relationships"), body)
Exemplo n.º 32
0
 def __init__(self, method, entity, *segments, **kwargs):
     self.entity = entity
     uri = self.uri_for(entity, *segments, **kwargs)
     Job.__init__(self, method, uri)