U wâ’iq“ã@s8dZddlmZddlZddlmZGdd„deƒZdS)a InfluxDB OSS API Service. The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech é)Úabsolute_importN)Ú _BaseServicecsâeZdZdZd5‡fdd„ Zdd„Zdd„Zd d „Zd d „Zd d„Z dd„Z dd„Z dd„Z dd„Z dd„Zdd„Zdd„Zdd„Zdd „Zd!d"„Zd#d$„Zd%d&„Zd'd(„Zd)d*„Zd+d,„Zd-d.„Zd/d0„Zd1d2„Zd3d4„Z‡ZS)6ÚLegacyAuthorizationsServicez‹NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. Ncstƒ |¡dS)z=LegacyAuthorizationsService - a operation defined in OpenAPI.N)ÚsuperÚ__init__)ÚselfÚ api_client©Ú __class__©úf/opt/alt/python38/lib/python3.8/site-packages/influxdb_client/service/legacy_authorizations_service.pyrsz$LegacyAuthorizationsService.__init__cKs6d|d<| d¡r |j|f|ŽS|j|f|Ž}|SdS)aRDelete a legacy authorization. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_legacy_authorizations_id(auth_id, async_req=True) >>> result = thread.get() :param async_req bool :param str auth_id: The ID of the legacy authorization to delete. (required) :param str zap_trace_span: OpenTracing span context :return: None If the method is called asynchronously, returns the request thread. TÚ_return_http_data_onlyÚ async_reqN)ÚgetÚ.delete_legacy_authorizations_id_with_http_info©rÚauth_idÚkwargsÚdatar r r Údelete_legacy_authorizations_id s  z;LegacyAuthorizationsService.delete_legacy_authorizations_idcKsf|j|f|Ž\}}}}}|jjdd||||gidg| d¡| d¡| dd¡| d¡i| d d¡d S) aaDelete a legacy authorization. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_legacy_authorizations_id_with_http_info(auth_id, async_req=True) >>> result = thread.get() :param async_req bool :param str auth_id: The ID of the legacy authorization to delete. (required) :param str zap_trace_span: OpenTracing span context :return: None If the method is called asynchronously, returns the request thread. ú'/private/legacy/authorizations/{authID}ÚDELETENrr Ú_preload_contentTÚ_request_timeoutÚ urlopen_kw© ÚbodyZ post_paramsÚfilesZ response_typeZ auth_settingsrr rrZcollection_formatsr©Ú(_delete_legacy_authorizations_id_preparerÚcall_apir©rrrÚlocal_var_paramsÚ path_paramsÚ query_paramsÚ header_paramsÚ body_paramsr r r r6s( ÿ   ñzJLegacyAuthorizationsService.delete_legacy_authorizations_id_with_http_infocËsl|j|f|Ž\}}}}}|jjdd||||gidg| d¡| d¡| dd¡| d¡i| d d¡d IdHS) aŒDelete a legacy authorization. This method makes an asynchronous HTTP request. :param async_req bool :param str auth_id: The ID of the legacy authorization to delete. (required) :param str zap_trace_span: OpenTracing span context :return: None If the method is called asynchronously, returns the request thread. rrNrr rTrrrrr!r r r Ú%delete_legacy_authorizations_id_asyncYs( ÿ   ñzALegacyAuthorizationsService.delete_legacy_authorizations_id_asyncc Kstƒ}ddg}| d||¡d|ks0|ddkr8tdƒ‚i}d|krP|d|d<g}i}d|krl|d|d<d}|j dg¡|d<|||||fS) NrÚzap_trace_spanrzWMissing the required parameter `auth_id` when calling `delete_legacy_authorizations_id`ÚauthIDúZap-Trace-Spanúapplication/jsonÚAccept©ÚlocalsÚ_check_operation_paramsÚ ValueErrorrÚselect_header_accept© rrrr"Ú all_paramsr#r$r%r&r r r rys& ÿ  ÿzDLegacyAuthorizationsService._delete_legacy_authorizations_id_preparecKs2d|d<| d¡r|jf|ŽS|jf|Ž}|SdS)aList all legacy authorizations. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_legacy_authorizations(async_req=True) >>> result = thread.get() :param async_req bool :param str zap_trace_span: OpenTracing span context :param str user_id: Only show legacy authorizations that belong to a user ID. :param str user: Only show legacy authorizations that belong to a user name. :param str org_id: Only show legacy authorizations that belong to an organization ID. :param str org: Only show legacy authorizations that belong to a organization name. :param str token: Only show legacy authorizations with a specified token (auth name). :param str auth_id: Only show legacy authorizations with a specified auth ID. :return: Authorizations If the method is called asynchronously, returns the request thread. Tr rN)rÚ(get_legacy_authorizations_with_http_info)rrrr r r Úget_legacy_authorizations”s    z5LegacyAuthorizationsService.get_legacy_authorizationscKsd|jf|Ž\}}}}}|jjdd||||gidg| d¡| d¡| dd¡| d¡i| d d ¡d S) a!List all legacy authorizations. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_legacy_authorizations_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool :param str zap_trace_span: OpenTracing span context :param str user_id: Only show legacy authorizations that belong to a user ID. :param str user: Only show legacy authorizations that belong to a user name. :param str org_id: Only show legacy authorizations that belong to an organization ID. :param str org: Only show legacy authorizations that belong to a organization name. :param str token: Only show legacy authorizations with a specified token (auth name). :param str auth_id: Only show legacy authorizations with a specified auth ID. :return: Authorizations If the method is called asynchronously, returns the request thread. ú/private/legacy/authorizationsÚGETÚAuthorizationsrr rTrrNr©Ú"_get_legacy_authorizations_preparerr r©rrr"r#r$r%r&r r r r4¯s( ÿ   ñzDLegacyAuthorizationsService.get_legacy_authorizations_with_http_infocËsj|jf|Ž\}}}}}|jjdd||||gidg| d¡| d¡| dd¡| d¡i| d d ¡d Id HS) a[List all legacy authorizations. This method makes an asynchronous HTTP request. :param async_req bool :param str zap_trace_span: OpenTracing span context :param str user_id: Only show legacy authorizations that belong to a user ID. :param str user: Only show legacy authorizations that belong to a user name. :param str org_id: Only show legacy authorizations that belong to an organization ID. :param str org: Only show legacy authorizations that belong to a organization name. :param str token: Only show legacy authorizations with a specified token (auth name). :param str auth_id: Only show legacy authorizations with a specified auth ID. :return: Authorizations If the method is called asynchronously, returns the request thread. r6r7r8rr rTrrNrr9r;r r r Úget_legacy_authorizations_async×s( ÿ   ñz;LegacyAuthorizationsService.get_legacy_authorizations_asynccKstƒ}dddddddg}| d||¡i}g}d|krH| d |df¡d|krb| d|df¡d|kr|| d |df¡d|kr–| d|df¡d|kr°| d|df¡d|krÊ| d |df¡i}d|krâ|d|d <d}|j d g¡|d<|||||fS)Nr(Zuser_idÚuserZorg_idÚorgÚtokenrr5ZuserIDZorgIDr)r*r+r,)r.r/Úappendrr1)rrr"r3r#r$r%r&r r r r:üs2 ÿz>LegacyAuthorizationsService._get_legacy_authorizations_preparecKs6d|d<| d¡r |j|f|ŽS|j|f|Ž}|SdS)aWRetrieve a legacy authorization. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_legacy_authorizations_id(auth_id, async_req=True) >>> result = thread.get() :param async_req bool :param str auth_id: The ID of the legacy authorization to get. (required) :param str zap_trace_span: OpenTracing span context :return: Authorization If the method is called asynchronously, returns the request thread. Tr rN)rÚ+get_legacy_authorizations_id_with_http_inforr r r Úget_legacy_authorizations_ids  z8LegacyAuthorizationsService.get_legacy_authorizations_idcKsf|j|f|Ž\}}}}}|jjdd||||gidg| d¡| d¡| dd¡| d¡i| d d ¡d S) afRetrieve a legacy authorization. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_legacy_authorizations_id_with_http_info(auth_id, async_req=True) >>> result = thread.get() :param async_req bool :param str auth_id: The ID of the legacy authorization to get. (required) :param str zap_trace_span: OpenTracing span context :return: Authorization If the method is called asynchronously, returns the request thread. rr7Ú Authorizationrr rTrrNr©Ú%_get_legacy_authorizations_id_preparerr rr!r r r rA3s( ÿ   ñzGLegacyAuthorizationsService.get_legacy_authorizations_id_with_http_infocËsl|j|f|Ž\}}}}}|jjdd||||gidg| d¡| d¡| dd¡| d¡i| d d ¡d Id HS) a”Retrieve a legacy authorization. This method makes an asynchronous HTTP request. :param async_req bool :param str auth_id: The ID of the legacy authorization to get. (required) :param str zap_trace_span: OpenTracing span context :return: Authorization If the method is called asynchronously, returns the request thread. rr7rCrr rTrrNrrDr!r r r Ú"get_legacy_authorizations_id_asyncVs( ÿ   ñz>LegacyAuthorizationsService.get_legacy_authorizations_id_asyncc Kstƒ}ddg}| d||¡d|ks0|ddkr8tdƒ‚i}d|krP|d|d<g}i}d|krl|d|d<d}|j dg¡|d<|||||fS) Nrr(rBzTMissing the required parameter `auth_id` when calling `get_legacy_authorizations_id`r)r*r+r,r-r2r r r rEvs& ÿ  ÿzALegacyAuthorizationsService._get_legacy_authorizations_id_preparecKs:d|d<| d¡r"|j||f|ŽS|j||f|Ž}|SdS)aUpdate a legacy authorization to be active or inactive. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_legacy_authorizations_id(auth_id, authorization_update_request, async_req=True) >>> result = thread.get() :param async_req bool :param str auth_id: The ID of the legacy authorization to update. (required) :param AuthorizationUpdateRequest authorization_update_request: Legacy authorization to update (required) :param str zap_trace_span: OpenTracing span context :return: Authorization If the method is called asynchronously, returns the request thread. Tr rN)rÚ-patch_legacy_authorizations_id_with_http_info)rrÚauthorization_update_requestrrr r r Úpatch_legacy_authorizations_id‘s  z:LegacyAuthorizationsService.patch_legacy_authorizations_idc Ksh|j||f|Ž\}}}}}|jjdd||||gidg| d¡| d¡| dd¡| d¡i| d d ¡d S) aUpdate a legacy authorization to be active or inactive. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_legacy_authorizations_id_with_http_info(auth_id, authorization_update_request, async_req=True) >>> result = thread.get() :param async_req bool :param str auth_id: The ID of the legacy authorization to update. (required) :param AuthorizationUpdateRequest authorization_update_request: Legacy authorization to update (required) :param str zap_trace_span: OpenTracing span context :return: Authorization If the method is called asynchronously, returns the request thread. rÚPATCHrCrr rTrrNr©Ú'_patch_legacy_authorizations_id_preparerr r© rrrHrr"r#r$r%r&r r r rG¨s(ÿ   ñzILegacyAuthorizationsService.patch_legacy_authorizations_id_with_http_infoc Ësn|j||f|Ž\}}}}}|jjdd||||gidg| d¡| d¡| dd¡| d¡i| d d ¡d Id HS) a Update a legacy authorization to be active or inactive. This method makes an asynchronous HTTP request. :param async_req bool :param str auth_id: The ID of the legacy authorization to update. (required) :param AuthorizationUpdateRequest authorization_update_request: Legacy authorization to update (required) :param str zap_trace_span: OpenTracing span context :return: Authorization If the method is called asynchronously, returns the request thread. rrJrCrr rTrrNrrKrMr r r Ú$patch_legacy_authorizations_id_asyncÌs(ÿ   ñz@LegacyAuthorizationsService.patch_legacy_authorizations_id_asyncc KsÐtƒ}dddg}| d||¡d|ks2|ddkr:tdƒ‚d|ksN|ddkrVtdƒ‚i}d|krn|d|d<g}i}d|krŠ|d|d<d} d|krž|d} |j d g¡|d <|j d g¡|d <||||| fS) NrrHr(rIzVMissing the required parameter `auth_id` when calling `patch_legacy_authorizations_id`zkMissing the required parameter `authorization_update_request` when calling `patch_legacy_authorizations_id`r)r*r+r,ú Content-Type©r.r/r0rr1Zselect_header_content_type) rrrHrr"r3r#r$r%r&r r r rLís8  ÿ ÿ  ÿÿzCLegacyAuthorizationsService._patch_legacy_authorizations_id_preparecKs6d|d<| d¡r |j|f|ŽS|j|f|Ž}|SdS)a–Create a legacy authorization. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.post_legacy_authorizations(legacy_authorization_post_request, async_req=True) >>> result = thread.get() :param async_req bool :param LegacyAuthorizationPostRequest legacy_authorization_post_request: Legacy authorization to create (required) :param str zap_trace_span: OpenTracing span context :return: Authorization If the method is called asynchronously, returns the request thread. Tr rN)rÚ)post_legacy_authorizations_with_http_info)rÚ!legacy_authorization_post_requestrrr r r Úpost_legacy_authorizationss  z6LegacyAuthorizationsService.post_legacy_authorizationscKsf|j|f|Ž\}}}}}|jjdd||||gidg| d¡| d¡| dd¡| d¡i| d d ¡d S) a¥Create a legacy authorization. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.post_legacy_authorizations_with_http_info(legacy_authorization_post_request, async_req=True) >>> result = thread.get() :param async_req bool :param LegacyAuthorizationPostRequest legacy_authorization_post_request: Legacy authorization to create (required) :param str zap_trace_span: OpenTracing span context :return: Authorization If the method is called asynchronously, returns the request thread. r6ÚPOSTrCrr rTrrNr©Ú#_post_legacy_authorizations_preparerr r©rrRrr"r#r$r%r&r r r rQ(s( ÿ   ñzELegacyAuthorizationsService.post_legacy_authorizations_with_http_infocËsl|j|f|Ž\}}}}}|jjdd||||gidg| d¡| d¡| dd¡| d¡i| d d ¡d Id HS) a»Create a legacy authorization. This method makes an asynchronous HTTP request. :param async_req bool :param LegacyAuthorizationPostRequest legacy_authorization_post_request: Legacy authorization to create (required) :param str zap_trace_span: OpenTracing span context :return: Authorization If the method is called asynchronously, returns the request thread. r6rTrCrr rTrrNrrUrWr r r Ú post_legacy_authorizations_asyncKs( ÿ   ñz>> thread = api.post_legacy_authorizations_id_password(auth_id, password_reset_body, async_req=True) >>> result = thread.get() :param async_req bool :param str auth_id: The ID of the legacy authorization to update. (required) :param PasswordResetBody password_reset_body: New password (required) :param str zap_trace_span: OpenTracing span context :return: None If the method is called asynchronously, returns the request thread. Tr rN)rÚ5post_legacy_authorizations_id_password_with_http_info)rrÚpassword_reset_bodyrrr r r Ú&post_legacy_authorizations_id_passwordŠs  zBLegacyAuthorizationsService.post_legacy_authorizations_id_passwordc Ksh|j||f|Ž\}}}}}|jjdd||||gidg| d¡| d¡| dd¡| d¡i| d d¡d S) aÑSet a legacy authorization password. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.post_legacy_authorizations_id_password_with_http_info(auth_id, password_reset_body, async_req=True) >>> result = thread.get() :param async_req bool :param str auth_id: The ID of the legacy authorization to update. (required) :param PasswordResetBody password_reset_body: New password (required) :param str zap_trace_span: OpenTracing span context :return: None If the method is called asynchronously, returns the request thread. ú0/private/legacy/authorizations/{authID}/passwordrTNrr rTrrr©Ú/_post_legacy_authorizations_id_password_preparerr r© rrrZrr"r#r$r%r&r r r rY¡s(ÿ   ñzQLegacyAuthorizationsService.post_legacy_authorizations_id_password_with_http_infoc Ësn|j||f|Ž\}}}}}|jjdd||||gidg| d¡| d¡| dd¡| d¡i| d d¡d IdHS) aàSet a legacy authorization password. This method makes an asynchronous HTTP request. :param async_req bool :param str auth_id: The ID of the legacy authorization to update. (required) :param PasswordResetBody password_reset_body: New password (required) :param str zap_trace_span: OpenTracing span context :return: None If the method is called asynchronously, returns the request thread. r\rTNrr rTrrrr]r_r r r Ú,post_legacy_authorizations_id_password_asyncÅs(ÿ   ñzHLegacyAuthorizationsService.post_legacy_authorizations_id_password_asyncc KsÐtƒ}dddg}| d||¡d|ks2|ddkr:tdƒ‚d|ksN|ddkrVtdƒ‚i}d|krn|d|d<g}i}d|krŠ|d|d<d} d|krž|d} |j d g¡|d <|j d g¡|d <||||| fS) NrrZr(r[z^Missing the required parameter `auth_id` when calling `post_legacy_authorizations_id_password`zjMissing the required parameter `password_reset_body` when calling `post_legacy_authorizations_id_password`r)r*r+r,rOrP) rrrZrr"r3r#r$r%r&r r r r^æs8  ÿ ÿ  ÿÿzKLegacyAuthorizationsService._post_legacy_authorizations_id_password_prepare)N)Ú__name__Ú __module__Ú __qualname__Ú__doc__rrrr'rr5r4r<r:rBrArFrErIrGrNrLrSrQrXrVr[rYr`r^Ú __classcell__r r r r rs4# (%!# $!%# $!r)rdÚ __future__rÚreZ%influxdb_client.service._base_servicerrr r r r Ús