From a24473f3c89cc9682f781a25247cec3fc7e1b312 Mon Sep 17 00:00:00 2001 From: Giriharan Date: Tue, 5 Nov 2024 19:25:44 +0530 Subject: [PATCH] fix: address self review comments --- nisystemlink/clients/feeds/_feeds_client.py | 4 ++-- nisystemlink/clients/feeds/models/__init__.py | 2 +- .../feeds/models/{_create_feeds.py => _create_feed.py} | 0 nisystemlink/clients/feeds/utilities.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) rename nisystemlink/clients/feeds/models/{_create_feeds.py => _create_feed.py} (100%) diff --git a/nisystemlink/clients/feeds/_feeds_client.py b/nisystemlink/clients/feeds/_feeds_client.py index f67f62f0..df4d6ac5 100644 --- a/nisystemlink/clients/feeds/_feeds_client.py +++ b/nisystemlink/clients/feeds/_feeds_client.py @@ -49,7 +49,7 @@ def __query_feeds( platform: Optional[str] = None, workspace: Optional[str] = None, ) -> models.QueryFeedsResponse: - """Available feeds for the Platform `platform` under the Workspace `workspace` + """Lists available feeds for the Platform `platform` under the Workspace `workspace`. Args: platform (Optional[str]): Information about system platform. Defaults to None. @@ -103,7 +103,7 @@ def __upload_package( Args: feed_id (str): ID of the feed. - package (Part): Package file as a form data. + package (Part): Package file to be uploaded. overwrite (Query): Set to True, to overwrite the package if it already exists.\ Defaults to False. diff --git a/nisystemlink/clients/feeds/models/__init__.py b/nisystemlink/clients/feeds/models/__init__.py index b1bdfeff..84c1df08 100644 --- a/nisystemlink/clients/feeds/models/__init__.py +++ b/nisystemlink/clients/feeds/models/__init__.py @@ -1,4 +1,4 @@ -from ._create_feeds import CreateFeedRequest +from ._create_feed import CreateFeedRequest from ._feed import Feed from ._package import Package from ._platform import Platform diff --git a/nisystemlink/clients/feeds/models/_create_feeds.py b/nisystemlink/clients/feeds/models/_create_feed.py similarity index 100% rename from nisystemlink/clients/feeds/models/_create_feeds.py rename to nisystemlink/clients/feeds/models/_create_feed.py diff --git a/nisystemlink/clients/feeds/utilities.py b/nisystemlink/clients/feeds/utilities.py index e56fc647..4b1a5776 100644 --- a/nisystemlink/clients/feeds/utilities.py +++ b/nisystemlink/clients/feeds/utilities.py @@ -9,7 +9,7 @@ def get_feed_by_name( feeds: List[Feed], name: str, ) -> Optional[Feed]: - """Get feed id from the list of feeds using `name`. + """Get feed information from the list of feeds using `name`. Args: feeds (List[Feed]): List of feeds.