Skip to content

Commit 4835908

Browse files
committed
doc string changes
1 parent 09f9d2c commit 4835908

3 files changed

Lines changed: 15 additions & 15 deletions

File tree

pyatlan/client/group.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,13 +144,13 @@ def get_all(
144144
columns: Optional[List[str]] = None,
145145
) -> GroupResponse:
146146
"""
147-
Retrieve all groups defined in Atlan.
147+
Retrieve a GroupResponse object containing a list of all groups defined in Atlan.
148148
149149
:param limit: maximum number of results to be returned
150150
:param offset: starting point for the list of groups when paging
151151
:param sort: property by which to sort the results, by default : name
152152
:param columns: provides columns projection support for groups endpoint
153-
:returns: a list of all the groups in Atlan
153+
:returns: a GroupResponse object with all groups based on the parameters; results are iterable.
154154
"""
155155
response: GroupResponse = self.get(
156156
offset=offset, limit=limit, sort=sort, columns=columns
@@ -165,15 +165,15 @@ def get_by_name(
165165
offset: int = 0,
166166
) -> Optional[GroupResponse]:
167167
"""
168-
Retrieve all groups with a name that contains the provided string.
168+
Retrieves a GroupResponse object containing a list of groups that match the specified string.
169169
(This could include a complete group name, in which case there should be at most
170170
a single item in the returned list, or could be a partial group name to retrieve
171171
all groups with that naming convention.)
172172
173173
:param alias: name (as it appears in the UI) on which to filter the groups
174174
:param limit: maximum number of groups to retrieve
175175
:param offset: starting point for the list of groups when paging
176-
:returns: all groups whose name (in the UI) contains the provided string
176+
:returns: a GroupResponse object containing a list of groups whose UI names include the given string; the results are iterable.
177177
"""
178178
response: GroupResponse = self.get(
179179
offset=offset,

pyatlan/client/user.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def create(
5555
:param users: the details of the new users
5656
:param return_info: whether to return the details of created users, defaults to `False`
5757
:raises AtlanError: on any API communication issue
58-
:returns: the list of details of created users if `return_info` is `True`, otherwise `None`
58+
:returns: a UserResponse object which contains the list of details of created users if `return_info` is `True`, otherwise `None`
5959
"""
6060
from pyatlan.client.atlan import AtlanClient
6161

@@ -203,12 +203,12 @@ def get_all(
203203
sort: Optional[str] = "username",
204204
) -> UserResponse:
205205
"""
206-
Retrieve all users defined in Atlan.
206+
Retrieve a UserResponse object containing a list of all users defined in Atlan.
207207
208208
:param limit: maximum number of users to retrieve
209209
:param offset: starting point for the list of users when paging
210210
:param sort: property by which to sort the results, by default : `username`
211-
:returns: a list of all the users in Atlan
211+
:returns: a UserResponse object with all users based on the parameters; results are iterable.
212212
"""
213213
response: UserResponse = self.get(offset=offset, limit=limit, sort=sort)
214214
return response
@@ -221,7 +221,7 @@ def get_by_email(
221221
offset: int = 0,
222222
) -> Optional[UserResponse]:
223223
"""
224-
Retrieves all users with email addresses that contain the provided email.
224+
Retrieves a UserResponse object containing a list of users with email addresses that contain the provided email.
225225
(This could include a complete email address, in which case there should be at
226226
most a single item in the returned list, or could be a partial email address
227227
such as "@example.com" to retrieve all users with that domain in their email
@@ -230,7 +230,7 @@ def get_by_email(
230230
:param email: on which to filter the users
231231
:param limit: maximum number of users to retrieve
232232
:param offset: starting point for the list of users when pagin
233-
:returns: all users whose email addresses contain the provided string
233+
:returns: a UserResponse object containing a list of users whose email addresses contain the provided string
234234
"""
235235
response: UserResponse = self.get(
236236
offset=offset,
@@ -247,12 +247,12 @@ def get_by_emails(
247247
offset: int = 0,
248248
) -> Optional[UserResponse]:
249249
"""
250-
Retrieves all users with email addresses that match the provided list of emails.
250+
Retrieves a UserResponse object containing a list of users with email addresses that match the provided list of emails.
251251
252252
:param emails: list of email addresses to filter the users
253253
:param limit: maximum number of users to retrieve
254254
:param offset: starting point for the list of users when paginating
255-
:returns: list of users whose email addresses match the provided list
255+
:returns: a UserResponse object containing a list of users whose email addresses match the provided list
256256
"""
257257
email_filter = '{"email":{"$in":' + dumps(emails or [""]) + "}}"
258258
response: UserResponse = self.get(
@@ -283,12 +283,12 @@ def get_by_usernames(
283283
self, usernames: List[str], limit: int = 5, offset: int = 0
284284
) -> Optional[UserResponse]:
285285
"""
286-
Retrieves users based on their usernames.
286+
Retrieves a UserResponse object containing a list of users based on their usernames.
287287
288288
:param usernames: the list of usernames by which to find the users
289289
:param limit: maximum number of users to retrieve
290290
:param offset: starting point for the list of users when paginating
291-
:returns: the users with the specified usernames
291+
:returns: a UserResponse object containing list of users with the specified usernames
292292
"""
293293
username_filter = '{"username":{"$in":' + dumps(usernames or [""]) + "}}"
294294
response: UserResponse = self.get(

pyatlan/client/workflow.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,14 +169,14 @@ def find_runs_by_status_and_time_range(
169169
size: int = 100,
170170
) -> WorkflowSearchResponse:
171171
"""
172-
Find workflow runs based on their status and time range.
172+
Retrieves a WorkflowSearchResponse object containing workflow runs based on their status and time range.
173173
174174
:param status: list of the workflow statuses to filter
175175
:param started_at: (optional) lower bound on 'status.startedAt' (e.g 'now-2h')
176176
:param finished_at: (optional) lower bound on 'status.finishedAt' (e.g 'now-1h')
177177
:param from_:(optional) starting index of the search results (default: `0`).
178178
:param size: (optional) maximum number of search results to return (default: `100`).
179-
:returns: list of workflows matching the filters
179+
:returns: a WorkflowSearchResponse object containing a list of workflows matching the filters
180180
:raises ValidationError: if inputs are invalid
181181
:raises AtlanError: on any API communication issue
182182
"""

0 commit comments

Comments
 (0)