Skip to content

Commit c2a893c

Browse files
author
Nathan Beittenmiller
committed
Updating attribute documentation
1 parent 0c323f1 commit c2a893c

File tree

6 files changed

+49
-52
lines changed

6 files changed

+49
-52
lines changed

SoftLayer/managers/cci.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,17 @@
1616
class CCIManager(IdentifierMixin, object):
1717
""" Manage CCIs """
1818
def __init__(self, client):
19+
#: A valid `SoftLayer.API.Client` object that will be used for all
20+
#: actions.
1921
self.client = client
20-
""" A valid `SoftLayer.API.Client` object that will be used for all
21-
actions. """
22+
#: Reference to the SoftLayer_Account API object.
2223
self.account = client['Account']
23-
""" Reference to the SoftLayer_Account API object. """
24+
#: Reference to the SoftLayer_Virtual_Guest API object.
2425
self.guest = client['Virtual_Guest']
25-
""" Reference to the SoftLayer_Virtual_Guest API object. """
26+
#: A list of resolver functions. Used primarily by the CLI to provide
27+
#: a variety of methods for uniquely identifying an object such as
28+
#: hostname and IP address.
2629
self.resolvers = [self._get_ids_from_ip, self._get_ids_from_hostname]
27-
""" A list of resolver functions. Used primarily by the CLI to provide
28-
a variety of methods for uniquely identifying an object such as
29-
hostname and IP address."""
3030

3131
def list_instances(self, hourly=True, monthly=True, tags=None, cpus=None,
3232
memory=None, hostname=None, domain=None,

SoftLayer/managers/dns.py

+12-13
Original file line numberDiff line numberDiff line change
@@ -13,26 +13,25 @@
1313

1414

1515
class DNSManager(IdentifierMixin, object):
16-
""" Manage DNS zones. """
16+
""" DNSManager initialization.
1717
18-
def __init__(self, client):
19-
""" DNSManager initialization.
18+
:param SoftLayer.API.Client client: the client instance
2019
21-
:param SoftLayer.API.Client client: the client instance
20+
"""
2221

23-
"""
22+
def __init__(self, client):
23+
#: A valid `SoftLayer.API.Client` object that will be used for all
24+
#: actions.
2425
self.client = client
25-
""" A valid `SoftLayer.API.Client` object that will be used for all
26-
actions. """
26+
#: Reference to the SoftLayer_Dns_Domain API object.
2727
self.service = self.client['Dns_Domain']
28-
""" Reference to the SoftLayer_Dns_Domain API object. """
28+
#: Reference to the SoftLayer.Dns_Domain_ResourceRecord
29+
#: API object.
2930
self.record = self.client['Dns_Domain_ResourceRecord']
30-
""" Reference to the SoftLayer.Dns_Domain_ResourceRecord
31-
API object. """
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 zone
33+
#: name.
3234
self.resolvers = [self._get_zone_id_from_name]
33-
""" A list of resolver functions. Used primarily by the CLI to provide
34-
a variety of methods for uniquely identifying an object such as zone
35-
name """
3635

3736
def _get_zone_id_from_name(self, name):
3837
results = self.client['Account'].getDomains(

SoftLayer/managers/firewall.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ def has_firewall(vlan):
2424

2525

2626
class FirewallManager(object):
27-
def __init__(self, client):
28-
""" Manages firewalls.
27+
""" Manages firewalls.
2928
30-
:param SoftLayer.API.Client client: the API client instance
29+
:param SoftLayer.API.Client client: the API client instance
3130
32-
"""
31+
"""
32+
def __init__(self, client):
33+
#: A valid `SoftLayer.API.Client` object that will be used for all
34+
#: actions.
3335
self.client = client
34-
""" A valid `SoftLayer.API.Client` object that will be used for all
35-
actions. """
3636

3737
def get_firewalls(self):
3838
""" Returns a list of all firewalls on the account.

SoftLayer/managers/hardware.py

+12-13
Original file line numberDiff line numberDiff line change
@@ -12,25 +12,24 @@
1212

1313

1414
class HardwareManager(IdentifierMixin, object):
15-
""" Manages hardware devices. """
16-
17-
def __init__(self, client):
18-
""" HardwareManager initialization.
15+
"""
16+
Manages hardware devices.
1917
20-
:param SoftLayer.API.Client client: an API client instance
18+
:param SoftLayer.API.Client client: an API client instance
19+
"""
2120

22-
"""
21+
def __init__(self, client):
22+
#: A valid `SoftLayer.API.Client` object that will be used for all
23+
#: actions.
2324
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.
2626
self.hardware = self.client['Hardware_Server']
27-
""" Reference to the SoftLayer_Hardware_Server API object. """
27+
#: Reference to the SoftLayer_Account API object.
2828
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.
3032
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."""
3433

3534
def cancel_hardware(self, id, reason='unneeded', comment=''):
3635
""" Cancels the specified dedicated server.

SoftLayer/managers/network.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@
1313
class NetworkManager(IdentifierMixin, object):
1414
""" Manage Networks """
1515
def __init__(self, client):
16+
#: A valid `SoftLayer.API.Client` object that will be used for all
17+
#: actions.
1618
self.client = client
17-
""" A valid `SoftLayer.API.Client` object that will be used for all
18-
actions. """
19+
#: Reference to the SoftLayer_Account API object.
1920
self.account = client['Account']
20-
""" Reference to the SoftLayer_Account API object. """
21+
#: Reference to the SoftLayer_Network_Vlan object.
2122
self.vlan = client['Network_Vlan']
22-
""" Reference to the SoftLayer_Network_Vlan object. """
2323

2424
def get_vlan(self, id):
2525
""" Returns information about a single VLAN.

SoftLayer/managers/ssl.py

+8-9
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,18 @@
99

1010

1111
class SSLManager(object):
12-
""" Manages SSL certificates. """
12+
"""
13+
Manages SSL certificates.
1314
14-
def __init__(self, client):
15-
""" SSLManager initialization.
16-
17-
:param SoftLayer.API.Client client: an API client instance
15+
:param SoftLayer.API.Client client: an API client instance
16+
"""
1817

19-
"""
18+
def __init__(self, client):
19+
#: A valid `SoftLayer.API.Client` object that will be used for all
20+
#: actions.
2021
self.client = client
21-
""" A valid `SoftLayer.API.Client` object that will be used for all
22-
actions. """
22+
#: Reference to the SoftLayer_Security_Certificate API object.
2323
self.ssl = self.client['Security_Certificate']
24-
""" Reference to the SoftLayer_Security_Certificate API object. """
2524

2625
def list_certs(self, method='all'):
2726
""" List all certificates.

0 commit comments

Comments
 (0)