Skip to content

Commit dbc6371

Browse files
authored
Improves doc blocks for all managers with links to product information (softlayer#756)
1 parent 5262d0c commit dbc6371

21 files changed

Lines changed: 124 additions & 49 deletions

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
We are happy to accept contributions to softlayer-python. Please follow the
44
guidelines below.
55

6-
* Sign our contributor agreement (CLA) You can find the [CLA here](./docs/cla-individual.md).
6+
* Sign our contributor agreement (CLA) You can find the [CLA here](./docs/dev/cla-individual.md).
77

8-
* If you're contributing on behalf of your employer we'll need a signed copy of our corporate contributor agreement (CCLA) as well. You can find the [CCLA here](./docs/cla-corporate.md).
8+
* If you're contributing on behalf of your employer we'll need a signed copy of our corporate contributor agreement (CCLA) as well. You can find the [CCLA here](./docs/dev/cla-corporate.md).
99

1010
* Fork the repo, make your changes, and open a pull request.
1111

SoftLayer/managers/block.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,12 @@
1111

1212

1313
class BlockStorageManager(utils.IdentifierMixin, object):
14-
"""Manages Block Storage volumes."""
14+
"""Manages SoftLayer Block Storage volumes.
15+
16+
See product information here: http://www.softlayer.com/block-storage
17+
18+
:param SoftLayer.API.BaseClient client: the client instance
19+
"""
1520

1621
def __init__(self, client):
1722
self.configuration = {}

SoftLayer/managers/cdn.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,13 @@
1515

1616

1717
class CDNManager(utils.IdentifierMixin, object):
18-
"""Manage CDN accounts."""
18+
"""Manage CDN accounts and content.
19+
20+
See product information here:
21+
http://www.softlayer.com/content-delivery-network
22+
23+
:param SoftLayer.API.BaseClient client: the client instance
24+
"""
1925

2026
def __init__(self, client):
2127
self.client = client

SoftLayer/managers/dns.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@
1111

1212

1313
class DNSManager(utils.IdentifierMixin, object):
14-
"""Domain Name System manager.
14+
"""Manage SoftLayer DNS.
1515
16-
:param SoftLayer.API.Client client: the client instance
16+
See product information here: http://www.softlayer.com/DOMAIN-SERVICES
17+
18+
:param SoftLayer.API.BaseClient client: the client instance
1719
1820
"""
1921

SoftLayer/managers/firewall.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,11 @@ def has_firewall(vlan):
2929

3030

3131
class FirewallManager(utils.IdentifierMixin, object):
32-
"""Manages firewalls.
32+
"""Manages SoftLayer firewalls
3333
34-
:param SoftLayer.API.Client client: the API client instance
34+
See product information here: http://www.softlayer.com/firewalls
35+
36+
:param SoftLayer.API.BaseClient client: the client instance
3537
3638
"""
3739

SoftLayer/managers/hardware.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020

2121
class HardwareManager(utils.IdentifierMixin, object):
22-
"""Manage hardware devices.
22+
"""Manage SoftLayer hardware servers.
2323
2424
Example::
2525
@@ -32,7 +32,9 @@ class HardwareManager(utils.IdentifierMixin, object):
3232
client = SoftLayer.Client()
3333
mgr = SoftLayer.HardwareManager(client)
3434
35-
:param SoftLayer.API.Client client: an API client instance
35+
See product information here: http://www.softlayer.com/bare-metal-servers
36+
37+
:param SoftLayer.API.BaseClient client: the client instance
3638
:param SoftLayer.managers.OrderingManager ordering_manager: an optional
3739
manager to handle ordering.
3840
If none is provided, one will be

SoftLayer/managers/image.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,12 @@
1313

1414

1515
class ImageManager(utils.IdentifierMixin, object):
16-
"""Manages server images.
16+
"""Manages SoftLayer server images.
1717
18-
:param SoftLayer.API.Client client: an API client instance
18+
See product information here:
19+
https://knowledgelayer.softlayer.com/topic/image-templates
20+
21+
:param SoftLayer.API.BaseClient client: the client instance
1922
"""
2023

2124
def __init__(self, client):

SoftLayer/managers/iscsi.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,14 @@
1010

1111

1212
class ISCSIManager(utils.IdentifierMixin, object):
13-
"""Manages iSCSI storages."""
13+
"""Manages SoftLayer iSCSI storage accounts.
14+
15+
See product information here:
16+
https://knowledgelayer.softlayer.com/topic/iscsi
17+
18+
:param SoftLayer.API.BaseClient client: the client instance
19+
20+
"""
1421

1522
def __init__(self, client):
1623
self.configuration = {}

SoftLayer/managers/load_balancer.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,12 @@
99

1010

1111
class LoadBalancerManager(utils.IdentifierMixin, object):
12-
"""Manages load balancers.
12+
"""Manages SoftLayer load balancers.
13+
14+
See product information here: http://www.softlayer.com/load-balancing
15+
16+
:param SoftLayer.API.BaseClient client: the client instance
1317
14-
:param SoftLayer.API.Client client: the API client instance
1518
"""
1619

1720
def __init__(self, client):

SoftLayer/managers/messaging.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424

2525
class QueueAuth(requests.auth.AuthBase):
26-
"""Message Queue authentication for requests.
26+
"""SoftLayer Message Queue authentication for requests.
2727
2828
:param endpoint: endpoint URL
2929
:param username: SoftLayer username
@@ -72,7 +72,13 @@ def __call__(self, resp):
7272

7373

7474
class MessagingManager(object):
75-
"""Manage SoftLayer Message Queue."""
75+
"""Manage SoftLayer Message Queue accounts.
76+
77+
See product information here: http://www.softlayer.com/message-queue
78+
79+
:param SoftLayer.API.BaseClient client: the client instance
80+
81+
"""
7682
def __init__(self, client):
7783
self.client = client
7884

0 commit comments

Comments
 (0)