diff options
author | Doug Hellmann <doug@doughellmann.com> | 2017-06-29 17:39:22 -0400 |
---|---|---|
committer | Trevor McCasland <TM2086@att.com> | 2017-07-13 10:39:32 -0500 |
commit | e8d306fa2a72f820055eb76d5b9c155dd0e4008e (patch) | |
tree | 249640f3715a6249670e1a89fb523ab1753dd232 /troveclient/apiclient | |
parent | 5ff9b6183ed68b9006dbc904abe7a3567d8a55b5 (diff) | |
download | python-troveclient-e8d306fa2a72f820055eb76d5b9c155dd0e4008e.tar.gz |
turn on warning-is-error for documentation builds
Fix a bunch of formatting issues with docstrings to allow us to turn on
the flag that treats warnings as errors to avoid mal-formed
documentation in the future.
Change-Id: Ic6fb73031e37314c49c41e4621dfd92b9c3f59d5
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
Diffstat (limited to 'troveclient/apiclient')
-rw-r--r-- | troveclient/apiclient/auth.py | 6 | ||||
-rw-r--r-- | troveclient/apiclient/base.py | 4 | ||||
-rw-r--r-- | troveclient/apiclient/client.py | 7 |
3 files changed, 10 insertions, 7 deletions
diff --git a/troveclient/apiclient/auth.py b/troveclient/apiclient/auth.py index 48a096c..cf9d378 100644 --- a/troveclient/apiclient/auth.py +++ b/troveclient/apiclient/auth.py @@ -183,7 +183,7 @@ class BaseAuthPlugin(object): a request to authentication server. :param http_client: client object that needs authentication - :type http_client: HTTPClient + :type http_client: troveclient.client.HTTPClient :raises: AuthorizationFailure """ self.sufficient_options() @@ -213,8 +213,8 @@ class BaseAuthPlugin(object): :type service_type: string :param endpoint_type: Type of endpoint. Possible values: public or publicURL, - internal or internalURL, - admin or adminURL + internal or internalURL, + admin or adminURL :type endpoint_type: string :returns: tuple of token and endpoint strings :raises: EndpointException diff --git a/troveclient/apiclient/base.py b/troveclient/apiclient/base.py index 72ec0c7..1b7e35f 100644 --- a/troveclient/apiclient/base.py +++ b/troveclient/apiclient/base.py @@ -75,8 +75,8 @@ class HookableMixin(object): :param cls: class that registers hooks :param hook_type: hook type, e.g., '__pre_parse_args__' - :param **args: args to be passed to every hook function - :param **kwargs: kwargs to be passed to every hook function + :param args: args to be passed to every hook function + :param kwargs: kwargs to be passed to every hook function """ hook_funcs = cls._hooks_map.get(hook_type) or [] for hook_func in hook_funcs: diff --git a/troveclient/apiclient/client.py b/troveclient/apiclient/client.py index ee15e5b..a95154c 100644 --- a/troveclient/apiclient/client.py +++ b/troveclient/apiclient/client.py @@ -46,6 +46,7 @@ class HTTPClient(object): """This client handles sending HTTP requests to OpenStack servers. Features: + - share authentication information between several clients to different services (e.g., for compute and image clients); - reissue authentication request for expired tokens; @@ -58,6 +59,7 @@ class HTTPClient(object): `http_client.identity` or `http_client.compute`; - log requests and responses in a format that is easy to copy-and-paste into terminal and send the same request with curl. + """ user_agent = "troveclient.apiclient" @@ -151,7 +153,7 @@ class HTTPClient(object): :param method: method of HTTP request :param url: URL of HTTP request :param kwargs: any other parameter that can be passed to -' requests.Session.request (such as `headers`) or `json` + requests.Session.request (such as `headers`) or `json` that will be encoded as JSON and used as `data` argument """ kwargs.setdefault("headers", kwargs.get("headers", {})) @@ -206,7 +208,8 @@ class HTTPClient(object): :param method: method of HTTP request :param url: URL of HTTP request :param kwargs: any other parameter that can be passed to -' `HTTPClient.request` + `HTTPClient.request` + """ filter_args = { |