|
12 | 12 |
|
13 | 13 |
|
14 | 14 | class HardwareManager(IdentifierMixin, object):
|
15 |
| - """ Manages hardware devices. """ |
16 |
| - |
17 |
| - def __init__(self, client): |
18 |
| - """ HardwareManager initialization. |
| 15 | + """ |
| 16 | + Manages hardware devices. |
19 | 17 |
|
20 |
| - :param SoftLayer.API.Client client: an API client instance |
| 18 | + :param SoftLayer.API.Client client: an API client instance |
| 19 | + """ |
21 | 20 |
|
22 |
| - """ |
| 21 | + def __init__(self, client): |
| 22 | + #: A valid `SoftLayer.API.Client` object that will be used for all |
| 23 | + #: actions. |
23 | 24 | self.client = client
|
24 |
| - """ A valid `SoftLayer.API.Client` object that will be used for all |
25 |
| - actions. """ |
| 25 | + #: Reference to the SoftLayer_Hardware_Server API object. |
26 | 26 | self.hardware = self.client['Hardware_Server']
|
27 |
| - """ Reference to the SoftLayer_Hardware_Server API object. """ |
| 27 | + #: Reference to the SoftLayer_Account API object. |
28 | 28 | self.account = self.client['Account']
|
29 |
| - """ Reference to the SoftLayer_Account API object. """ |
| 29 | + #: A list of resolver functions. Used primarily by the CLI to provide |
| 30 | + #: a variety of methods for uniquely identifying an object such as |
| 31 | + #: hostname and IP address. |
30 | 32 | self.resolvers = [self._get_ids_from_ip, self._get_ids_from_hostname]
|
31 |
| - """ A list of resolver functions. Used primarily by the CLI to provide |
32 |
| - a variety of methods for uniquely identifying an object such as |
33 |
| - hostname and IP address.""" |
34 | 33 |
|
35 | 34 | def cancel_hardware(self, id, reason='unneeded', comment=''):
|
36 | 35 | """ Cancels the specified dedicated server.
|
|
0 commit comments