Square one.
[osm/N2VC.git] / juju / service.py
1 class Service(object):
2 def add_relation(self):
3 """Add a relation to another service.
4
5 """
6 pass
7
8 def add_unit(self):
9 """Add one or more units to this service.
10
11 """
12 pass
13 add_units = add_unit
14
15 def allocate(self):
16 """Allocate budget to this service.
17
18 """
19 pass
20
21 def attach(self):
22 """Upload a file as a resource for this service.
23
24 """
25 pass
26
27 def collect_metrics(self):
28 """Collect metrics on this service.
29
30 """
31 pass
32
33 def destroy_relation(self):
34 """Remove a relation to another service.
35
36 """
37 pass
38 remove_relation = destroy_relation
39
40 def destroy(self):
41 """Remove this service from the model.
42
43 """
44 pass
45 remove = destroy
46
47 def expose(self):
48 """Make this service publicly available over the network.
49
50 """
51 pass
52
53 def get_config(self):
54 """Return the configuration settings for this service.
55
56 """
57 pass
58
59 def get_constraints(self):
60 """Return the machine constraints for this service.
61
62 """
63 pass
64
65 def get_actions(self):
66 """Get actions defined for this service.
67
68 """
69 pass
70
71 def get_resources(self):
72 """Return resources for this service.
73
74 """
75 pass
76
77 def run(self):
78 """Run command on all units for this service.
79
80 """
81 pass
82
83 def set_config(self):
84 """Set configuration options for this service.
85
86 """
87 pass
88
89 def set_constraints(self):
90 """Set machine constraints for this service.
91
92 """
93 pass
94
95 def set_meter_status(self):
96 """Set the meter status on this status.
97
98 """
99 pass
100
101 def set_plan(self):
102 """Set the plan for this service, effective immediately.
103
104 """
105 pass
106
107 def unexpose(self):
108 """Remove public availability over the network for this service.
109
110 """
111 pass
112
113 def update_allocation(self):
114 """Update existing allocation for this service.
115
116 """
117 pass
118
119 def upgrade_charm(self):
120 """Upgrade the charm for this service.
121
122 """
123 pass