Skip to content

Commit ee4b739

Browse files
authored
Added comment to classes: "avalaible as XXX.path" (#225)
Signed-off-by: Alexander Piskun <bigcat88@icloud.com>
1 parent 32bcdec commit ee4b739

File tree

12 files changed

+15
-16
lines changed

12 files changed

+15
-16
lines changed

docs/reference/Files/Shares.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ File Sharing
22
============
33

44
The Shares API is universal for both modes and provides all the necessary methods for working with the Nextcloud Shares system.
5-
Refer to the `Sharing examples <https://github.com/cloud-py-api/nc_py_api/tree/main/examples/as_client/sharing>`_ to see how to use them nicely.
65

76
.. autoclass:: nc_py_api.files.sharing._FilesSharingAPI
87
:members:

nc_py_api/_preferences_ex.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ async def delete(self, keys: str | list[str], not_fail=True) -> None:
106106

107107

108108
class PreferencesExAPI(_BasicAppCfgPref):
109-
"""User specific preferences API, avalaible as **nc.preferences_ex**."""
109+
"""User specific preferences API, avalaible as **nc.preferences_ex.<method>**."""
110110

111111
_url_suffix = "ex-app/preference"
112112

@@ -134,7 +134,7 @@ async def set_value(self, key: str, value: str) -> None:
134134

135135

136136
class AppConfigExAPI(_BasicAppCfgPref):
137-
"""Non-user(App) specific preferences API, avalaible as **nc.appconfig_ex**."""
137+
"""Non-user(App) specific preferences API, avalaible as **nc.appconfig_ex.<method>**."""
138138

139139
_url_suffix = "ex-app/config"
140140

nc_py_api/_talk_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727

2828
class _TalkAPI:
29-
"""Class provides API to work with Nextcloud Talk."""
29+
"""Class provides API to work with Nextcloud Talk, avalaible as **nc.talk.<method>**."""
3030

3131
_ep_base: str = "/ocs/v2.php/apps/spreed"
3232
config_sha: str

nc_py_api/ex_app/providers/speech_to_text.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def __repr__(self):
3737

3838

3939
class _SpeechToTextProviderAPI:
40-
"""API for Speech2Text providers."""
40+
"""API for Speech2Text providers, avalaible as **nc.providers.text_processing.<method>**."""
4141

4242
def __init__(self, session: NcSessionApp):
4343
self._session = session
@@ -83,7 +83,7 @@ def report_result(self, task_id: int, result: str = "", error: str = "") -> None
8383

8484

8585
class _AsyncSpeechToTextProviderAPI:
86-
"""API for Speech2Text providers."""
86+
"""Async API for Speech2Text providers."""
8787

8888
def __init__(self, session: AsyncNcSessionApp):
8989
self._session = session

nc_py_api/ex_app/providers/text_processing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def __repr__(self):
4242

4343

4444
class _TextProcessingProviderAPI:
45-
"""API for TextProcessing providers."""
45+
"""API for TextProcessing providers, avalaible as **nc.providers.speech_to_text.<method>**."""
4646

4747
def __init__(self, session: NcSessionApp):
4848
self._session = session
@@ -89,7 +89,7 @@ def report_result(self, task_id: int, result: str = "", error: str = "") -> None
8989

9090

9191
class _AsyncTextProcessingProviderAPI:
92-
"""API for TextProcessing providers."""
92+
"""Async API for TextProcessing providers."""
9393

9494
def __init__(self, session: AsyncNcSessionApp):
9595
self._session = session

nc_py_api/ex_app/providers/translations.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def __repr__(self):
4747

4848

4949
class _TranslationsProviderAPI:
50-
"""API for Translations providers."""
50+
"""API for Translations providers, avalaible as **nc.providers.translations.<method>**."""
5151

5252
def __init__(self, session: NcSessionApp):
5353
self._session = session
@@ -102,7 +102,7 @@ def report_result(self, task_id: int, result: str = "", error: str = "") -> None
102102

103103

104104
class _AsyncTranslationsProviderAPI:
105-
"""API for Translations providers."""
105+
"""Async API for Translations providers."""
106106

107107
def __init__(self, session: AsyncNcSessionApp):
108108
self._session = session

nc_py_api/ex_app/ui/files_actions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def to_fs_node(self) -> FsNode:
119119

120120

121121
class _UiFilesActionsAPI:
122-
"""API for the drop-down menu in Nextcloud **Files app**."""
122+
"""API for the drop-down menu in Nextcloud **Files app**, avalaible as **nc.ui.files_dropdown_menu.<method>**."""
123123

124124
_ep_suffix: str = "ui/files-actions-menu"
125125

nc_py_api/ex_app/ui/resources.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def __repr__(self):
7777

7878

7979
class _UiResources:
80-
"""API for adding scripts, styles, initial-states to the TopMenu pages."""
80+
"""API for adding scripts, styles, initial-states to the pages, avalaible as **nc.ui.resources.<method>**."""
8181

8282
_ep_suffix_init_state: str = "ui/initial-state"
8383
_ep_suffix_js: str = "ui/script"

nc_py_api/ex_app/ui/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def to_dict(self) -> dict:
115115

116116

117117
class _DeclarativeSettingsAPI:
118-
"""Class providing API for creating UI for the ExApp settings."""
118+
"""Class providing API for creating UI for the ExApp settings, avalaible as **nc.ui.settings.<method>**."""
119119

120120
def __init__(self, session: NcSessionApp):
121121
self._session = session

nc_py_api/ex_app/ui/top_menu.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def __repr__(self):
4444

4545

4646
class _UiTopMenuAPI:
47-
"""API for the top menu app nav bar in Nextcloud."""
47+
"""API for the top menu app nav bar in Nextcloud, avalaible as **nc.ui.top_menu.<method>**."""
4848

4949
_ep_suffix: str = "ui/top-menu"
5050

0 commit comments

Comments
 (0)