We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c69175 commit ad3f414Copy full SHA for ad3f414
src/Endpoint/Networks.php
@@ -37,4 +37,34 @@ public function info($name)
37
{
38
return $this->get($this->getEndpoint().$name);
39
}
40
+
41
+ /**
42
+ * Create a network
43
+ *
44
+ * @param string $name name of network
45
+ * @param array $config configuration of the network (Optional)
46
+ * @return object
47
+ */
48
+ public function create(string $name, string $description = "", array $config = [])
49
+ {
50
+ $data = [];
51
52
+ $data["name"] = $name;
53
+ $data["description"] = $description;
54
+ if (!empty($config)) {
55
+ $data["config"] = $config;
56
+ }
57
58
+ return $this->post($this->getEndpoint(), $data);
59
60
61
62
+ * Delete network
63
64
65
66
+ public function remove($name)
67
68
+ return $this->delete($this->getEndpoint().$name);
69
70
0 commit comments