@@ 48-60 (lines=13) @@ | ||
45 | * @param string|null $notification_email ID of the notifier object to use for notifications relating |
|
46 | * to the health status of origins inside this pool. |
|
47 | */ |
|
48 | public function create($organization_identifier, $name, $origins, $description = null, $enabled = null, $monitor = null, $notification_email = null) |
|
49 | { |
|
50 | $data = [ |
|
51 | 'name' => $name, |
|
52 | 'origins' => $origins, |
|
53 | 'description' => $description, |
|
54 | 'enabled' => $enabled, |
|
55 | 'monitor' => $monitor, |
|
56 | 'notification_email' => $notification_email, |
|
57 | ]; |
|
58 | ||
59 | return $this->post('/organizations/'.$organization_identifier.'/load_balancers/pools', $data); |
|
60 | } |
|
61 | ||
62 | /** |
|
63 | * Pool details |
|
@@ 92-104 (lines=13) @@ | ||
89 | * @param string|null $notification_email ID of the notifier object to use for notifications relating |
|
90 | * to the health status of origins inside this pool. |
|
91 | */ |
|
92 | public function update($organization_identifier, $identifier, $name, $origins, $description = null, $enabled = null, $monitor = null, $notification_email = null) |
|
93 | { |
|
94 | $data = [ |
|
95 | 'name' => $name, |
|
96 | 'origins' => $origins, |
|
97 | 'description' => $description, |
|
98 | 'enabled' => $enabled, |
|
99 | 'monitor' => $monitor, |
|
100 | 'notification_email' => $notification_email, |
|
101 | ]; |
|
102 | ||
103 | return $this->patch('/organizations/'.$organization_identifier.'/load_balancers/pools/'.$identifier, $data); |
|
104 | } |
|
105 | ||
106 | /** |
|
107 | * Delete a pool |
@@ 87-99 (lines=13) @@ | ||
84 | * @param string|null $notification_email ID of the notifier object to use for notifications relating |
|
85 | * to the health status of origins inside this pool. |
|
86 | */ |
|
87 | public function update($identifier, $name, $origins, $description = null, $enabled = null, $monitor = null, $notification_email = null) |
|
88 | { |
|
89 | $data = [ |
|
90 | 'name' => $name, |
|
91 | 'origins' => $origins, |
|
92 | 'description' => $description, |
|
93 | 'enabled' => $enabled, |
|
94 | 'monitor' => $monitor, |
|
95 | 'notification_email' => $notification_email, |
|
96 | ]; |
|
97 | ||
98 | return $this->patch('/user/load_balancers/pools/'.$identifier, $data); |
|
99 | } |
|
100 | ||
101 | /** |
|
102 | * Delete a pool |