Inspect the swarm on the server and store the response in :py:attr:`attrs`. Raises: :py:class:`docker.errors.APIError` If the server returns an error.
(self)
| 142 | leave.__doc__ = APIClient.leave_swarm.__doc__ |
| 143 | |
| 144 | def reload(self): |
| 145 | """ |
| 146 | Inspect the swarm on the server and store the response in |
| 147 | :py:attr:`attrs`. |
| 148 | |
| 149 | Raises: |
| 150 | :py:class:`docker.errors.APIError` |
| 151 | If the server returns an error. |
| 152 | """ |
| 153 | self.attrs = self.client.api.inspect_swarm() |
| 154 | |
| 155 | def unlock(self, key): |
| 156 | return self.client.api.unlock_swarm(key) |