Skip to content
This repository was archived by the owner on Jan 20, 2020. It is now read-only.

Commit 5665601

Browse files
committed
support swarm api
1 parent 957af1c commit 5665601

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

dockercloud/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
from dockercloud.api.exceptions import ApiError, AuthError, ObjectNotFound, NonUniqueIdentifier
2424
from dockercloud.api.utils import Utils
2525
from dockercloud.api.events import Events
26+
from dockercloud.api.swarm import Swarm
2627
from dockercloud.api.nodeaz import AZ
2728

2829
__version__ = '1.0.9'

dockercloud/api/swarm.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
from __future__ import absolute_import
2+
3+
from .base import Mutable
4+
5+
class Swarm(Mutable):
6+
subsystem = "infra"
7+
endpoint = "/swarm"
8+
9+
def save(self):
10+
raise AttributeError("'save' is not supported in 'Swarm'")

0 commit comments

Comments
 (0)