11"""
22 SoftLayer.search
3- ~~~~~~~~~~~~~~~~~~
3+ ~~~~~~~~~~~~~~~~
44 Search Manager
55
66 :license: MIT, see LICENSE for more details.
77"""
88
99
1010class SearchManager (object ):
11- """Manager to help searcha via the SoftLayer API.
11+ """Manager to help search via the SoftLayer API.
1212
1313 :param SoftLayer.API.BaseClient client: the client instance
1414 """
@@ -18,27 +18,21 @@ def __init__(self, client):
1818 self .search_manager = client ['SoftLayer_Search' ]
1919
2020 def get_object_types (self ):
21- """returns a collection of SoftLayer_Container_Search_ObjectType containers.
22-
23- """
21+ """returns a collection of SoftLayer_Container_Search_ObjectType containers."""
2422 return self .search_manager .getObjectTypes ()
2523
2624 def search (self , search_string ):
27- """allows for searching for SoftLayer resources by simple phrase.
28-
29- """
25+ """allows for searching for SoftLayer resources by simple phrase."""
3026 return self .search_manager .search (search_string )
3127
3228 def advanced (self , search_string ):
33- """allows for searching for SoftLayer resources by simple phrase.
34-
35- """
29+ """Uses the SoftLayer_Search::advancedSearch API. Allows for more complicated search phrases."""
3630 return self .search_manager .advancedSearch (search_string )
3731
3832 def search_instances (self , search_string , mask = None , ** kwargs ):
3933 """Lists VSIs based in the search_string.
4034
41- Also takes in a few search terms as * *kwargs. such as hostname, datacenter, domain and tags
35+ Also takes in a few search terms as \*\ *kwargs. such as hostname, datacenter, domain and tags
4236 """
4337
4438 # This forces the Search API to do a fuzzy search on our term, kinda. Not sure why the ** are
@@ -65,8 +59,8 @@ def search_instances(self, search_string, mask=None, **kwargs):
6559 def search_hadrware_instances (self , search_string , mask = None , ** kwargs ):
6660 """Lists hardwares based in the search_string.
6761
68- Also takes in a few search terms as * *kwargs. such as hostname, datacenter, domain and tags
69- """
62+ Also takes in a few search terms as \*\ *kwargs. such as hostname, datacenter, domain and tags
63+ """
7064
7165 # This forces the Search API to do a fuzzy search on our term, kinda. Not sure why the ** are
7266 # Required but it will do an exact search without them.
0 commit comments