Skip to content

Commit a453d85

Browse files
author
Itay Neeman
committed
Fixup docstrings
1 parent 80664e4 commit a453d85

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

splunklib/client.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3532,7 +3532,7 @@ def __init__(self, service):
35323532
Collection.__init__(self, service, 'storage/collections/config', item=KVStoreCollection)
35333533

35343534
def create(self, name, indexes = {}, fields = {}, **kwargs):
3535-
"""Creates a KV Store Collection
3535+
"""Creates a KV Store Collection.
35363536
35373537
:param name: name of collection to create
35383538
:type name: ``string``
@@ -3556,14 +3556,14 @@ def create(self, name, indexes = {}, fields = {}, **kwargs):
35563556
class KVStoreCollection(Entity):
35573557
@property
35583558
def data(self):
3559-
"""Returns data object for this Collection
3559+
"""Returns data object for this Collection.
35603560
35613561
:rtype: :class:`KVStoreData`
35623562
"""
35633563
return KVStoreCollectionData(self)
35643564

35653565
def update_index(self, name, value):
3566-
"""Changes the definition of a KV Store index
3566+
"""Changes the definition of a KV Store index.
35673567
35683568
:param name: name of index to change
35693569
:type name: ``string``
@@ -3577,7 +3577,7 @@ def update_index(self, name, value):
35773577
return self.post(**kwargs)
35783578

35793579
def update_field(self, name, value):
3580-
"""Changes the definition of a KV Store field
3580+
"""Changes the definition of a KV Store field.
35813581
35823582
:param name: name of field to change
35833583
:type name: ``string``
@@ -3614,7 +3614,7 @@ def _delete(self, url, **kwargs):
36143614

36153615
def query(self, **query):
36163616
"""
3617-
Gets the results of query, with optional parameters sort, limit, skip, and fields
3617+
Gets the results of query, with optional parameters sort, limit, skip, and fields.
36183618
36193619
:param query: Optional parameters. Valid options are sort, limit, skip, and fields
36203620
:type query: ``dict``
@@ -3626,7 +3626,7 @@ def query(self, **query):
36263626

36273627
def query_by_id(self, id):
36283628
"""
3629-
Return object with _id = id
3629+
Returns object with _id = id.
36303630
36313631
:param id: Value for ID. If not a string will be coerced to string.
36323632
:type id: ``string``
@@ -3650,7 +3650,7 @@ def insert(self, data):
36503650

36513651
def delete(self, query=None):
36523652
"""
3653-
Deletes all data in collection if query is absent. Else, delete all data matched by query.
3653+
Deletes all data in collection if query is absent. Otherwise, deletes all data matched by query.
36543654
36553655
:param query: Query to select documents to delete
36563656
:type query: ``string``
@@ -3661,7 +3661,7 @@ def delete(self, query=None):
36613661

36623662
def delete_by_id(self, id):
36633663
"""
3664-
Deletes document that has _id = id
3664+
Deletes document that has _id = id.
36653665
36663666
:param id: id of document to delete
36673667
:type id: ``string``
@@ -3672,7 +3672,7 @@ def delete_by_id(self, id):
36723672

36733673
def update(self, id, data):
36743674
"""
3675-
Replaces document with _id = id with data
3675+
Replaces document with _id = id with data.
36763676
36773677
:param id: _id of document to update
36783678
:type id: ``string``
@@ -3686,7 +3686,7 @@ def update(self, id, data):
36863686

36873687
def batch_find(self, *dbqueries):
36883688
"""
3689-
Returns array of results from queries dbqueries
3689+
Returns array of results from queries dbqueries.
36903690
36913691
:param dbqueries: Array of individual queries as dictionaries
36923692
:type dbqueries: ``array`` of ``dict``
@@ -3703,7 +3703,7 @@ def batch_find(self, *dbqueries):
37033703

37043704
def batch_save(self, *documents):
37053705
"""
3706-
Inserts or updates every document specified in documents
3706+
Inserts or updates every document specified in documents.
37073707
37083708
:param documents: Array of documents to save as dictionaries
37093709
:type documents: ``array`` of ``dict``

0 commit comments

Comments
 (0)