U wâ’i.hã@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ÂeZdZdZd-‡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,„Z‡ZS).Ú LabelsServicez‹NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. Ncstƒ |¡dS)z/LabelsService - a operation defined in OpenAPI.N)ÚsuperÚ__init__)ÚselfÚ api_client©Ú __class__©úW/opt/alt/python38/lib/python3.8/site-packages/influxdb_client/service/labels_service.pyrszLabelsService.__init__cKs6d|d<| d¡r |j|f|ŽS|j|f|Ž}|SdS)a'Delete a label. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_labels_id(label_id, async_req=True) >>> result = thread.get() :param async_req bool :param str label_id: The ID of the label 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_labels_id_with_http_info©rÚlabel_idÚkwargsÚdatar r r Údelete_labels_id s  zLabelsService.delete_labels_idcKsf|j|f|Ž\}}}}}|jjdd||||gidg| d¡| d¡| dd¡| d¡i| d d¡d S) a6Delete a label. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_labels_id_with_http_info(label_id, async_req=True) >>> result = thread.get() :param async_req bool :param str label_id: The ID of the label to delete. (required) :param str zap_trace_span: OpenTracing span context :return: None If the method is called asynchronously, returns the request thread. ú/api/v2/labels/{labelID}ÚDELETENrr Ú_preload_contentTÚ_request_timeoutÚ urlopen_kw© ÚbodyZ post_paramsÚfilesZ response_typeZ auth_settingsrr rrZcollection_formatsr©Ú_delete_labels_id_preparerÚcall_apir©rrrÚlocal_var_paramsÚ path_paramsÚ query_paramsÚ header_paramsÚ body_paramsr r r r6s( ÿ   ñz-LabelsService.delete_labels_id_with_http_infocËsl|j|f|Ž\}}}}}|jjdd||||gidg| d¡| d¡| dd¡| d¡i| d d¡d IdHS) aoDelete a label. This method makes an asynchronous HTTP request. :param async_req bool :param str label_id: The ID of the label 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_labels_id_asyncYs( ÿ   ñz$LabelsService.delete_labels_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_spanrzIMissing the required parameter `label_id` when calling `delete_labels_id`ÚlabelIDúZap-Trace-Spanúapplication/jsonÚAccept©ÚlocalsÚ_check_operation_paramsÚ ValueErrorrÚselect_header_accept© rrrr"Ú all_paramsr#r$r%r&r r r rys& ÿ  ÿz'LabelsService._delete_labels_id_preparecKs2d|d<| d¡r|jf|ŽS|jf|Ž}|SdS)a List all labels. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_labels(async_req=True) >>> result = thread.get() :param async_req bool :param str zap_trace_span: OpenTracing span context :param str org_id: The organization ID. :return: LabelsResponse If the method is called asynchronously, returns the request thread. Tr rN)rÚget_labels_with_http_info)rrrr r r Ú get_labels”s    zLabelsService.get_labelscKsd|jf|Ž\}}}}}|jjdd||||gidg| d¡| d¡| dd¡| d¡i| d d ¡d S) aList all labels. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_labels_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool :param str zap_trace_span: OpenTracing span context :param str org_id: The organization ID. :return: LabelsResponse If the method is called asynchronously, returns the request thread. ú/api/v2/labelsÚGETÚLabelsResponserr rTrrNr©Ú_get_labels_preparerr r©rrr"r#r$r%r&r r r r4ªs( ÿ   ñz'LabelsService.get_labels_with_http_infocËsj|jf|Ž\}}}}}|jjdd||||gidg| d¡| d¡| dd¡| d¡i| d d ¡d Id HS) acList all labels. This method makes an asynchronous HTTP request. :param async_req bool :param str zap_trace_span: OpenTracing span context :param str org_id: The organization ID. :return: LabelsResponse If the method is called asynchronously, returns the request thread. r6r7r8rr rTrrNrr9r;r r r Úget_labels_asyncÍs( ÿ   ñzLabelsService.get_labels_asynccKsztƒ}ddg}| d||¡i}g}d|kr>| d|df¡i}d|krV|d|d<d}|j dg¡|d<|||||fS)Nr(Zorg_idr5ZorgIDr*r+r,)r.r/Úappendrr1)rrr"r3r#r$r%r&r r r r:ís ÿz!LabelsService._get_labels_preparecKs6d|d<| d¡r |j|f|ŽS|j|f|Ž}|SdS)a/Retrieve a label. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_labels_id(label_id, async_req=True) >>> result = thread.get() :param async_req bool :param str label_id: The ID of the label to update. (required) :param str zap_trace_span: OpenTracing span context :return: LabelResponse If the method is called asynchronously, returns the request thread. Tr rN)rÚget_labels_id_with_http_inforr r r Ú get_labels_ids  zLabelsService.get_labels_idcKsf|j|f|Ž\}}}}}|jjdd||||gidg| d¡| d¡| dd¡| d¡i| d d ¡d S) a>Retrieve a label. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_labels_id_with_http_info(label_id, async_req=True) >>> result = thread.get() :param async_req bool :param str label_id: The ID of the label to update. (required) :param str zap_trace_span: OpenTracing span context :return: LabelResponse If the method is called asynchronously, returns the request thread. rr7Ú LabelResponserr rTrrNr©Ú_get_labels_id_preparerr rr!r r r r>s( ÿ   ñz*LabelsService.get_labels_id_with_http_infocËsl|j|f|Ž\}}}}}|jjdd||||gidg| d¡| d¡| dd¡| d¡i| d d ¡d Id HS) azRetrieve a label. This method makes an asynchronous HTTP request. :param async_req bool :param str label_id: The ID of the label to update. (required) :param str zap_trace_span: OpenTracing span context :return: LabelResponse If the method is called asynchronously, returns the request thread. rr7r@rr rTrrNrrAr!r r r Úget_labels_id_async=s( ÿ   ñz!LabelsService.get_labels_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(r?zFMissing the required parameter `label_id` when calling `get_labels_id`r)r*r+r,r-r2r r r rB]s& ÿ  ÿz$LabelsService._get_labels_id_preparecKs:d|d<| d¡r"|j||f|ŽS|j||f|Ž}|SdS)aUpdate a label. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_labels_id(label_id, label_update, async_req=True) >>> result = thread.get() :param async_req bool :param str label_id: The ID of the label to update. (required) :param LabelUpdate label_update: A label update. (required) :param str zap_trace_span: OpenTracing span context :return: LabelResponse If the method is called asynchronously, returns the request thread. Tr rN)rÚpatch_labels_id_with_http_info)rrÚ label_updaterrr r r Úpatch_labels_idxs  zLabelsService.patch_labels_idc Ksh|j||f|Ž\}}}}}|jjdd||||gidg| d¡| d¡| dd¡| d¡i| d d ¡d S) aUpdate a label. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_labels_id_with_http_info(label_id, label_update, async_req=True) >>> result = thread.get() :param async_req bool :param str label_id: The ID of the label to update. (required) :param LabelUpdate label_update: A label update. (required) :param str zap_trace_span: OpenTracing span context :return: LabelResponse If the method is called asynchronously, returns the request thread. rÚPATCHr@rr rTrrNr©Ú_patch_labels_id_preparerr r© rrrErr"r#r$r%r&r r r rDs(ÿ   ñz,LabelsService.patch_labels_id_with_http_infoc Ësn|j||f|Ž\}}}}}|jjdd||||gidg| d¡| d¡| dd¡| d¡i| d d ¡d Id HS) a¼Update a label. This method makes an asynchronous HTTP request. :param async_req bool :param str label_id: The ID of the label to update. (required) :param LabelUpdate label_update: A label update. (required) :param str zap_trace_span: OpenTracing span context :return: LabelResponse If the method is called asynchronously, returns the request thread. rrGr@rr rTrrNrrHrJr r r Úpatch_labels_id_async³s(ÿ   ñz#LabelsService.patch_labels_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) NrrEr(rFzHMissing the required parameter `label_id` when calling `patch_labels_id`zLMissing the required parameter `label_update` when calling `patch_labels_id`r)r*r+r,ú Content-Type©r.r/r0rr1Zselect_header_content_type) rrrErr"r3r#r$r%r&r r r rIÔs8  ÿ ÿ  ÿÿz&LabelsService._patch_labels_id_preparecKs6d|d<| d¡r |j|f|ŽS|j|f|Ž}|SdS)a Create a label. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.post_labels(label_create_request, async_req=True) >>> result = thread.get() :param async_req bool :param LabelCreateRequest label_create_request: The label to create. (required) :return: LabelResponse If the method is called asynchronously, returns the request thread. Tr rN)rÚpost_labels_with_http_info)rÚlabel_create_requestrrr r r Ú post_labelsùs  zLabelsService.post_labelscKsf|j|f|Ž\}}}}}|jjdd||||gidg| d¡| d¡| dd¡| d¡i| d d ¡d S) aCreate a label. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.post_labels_with_http_info(label_create_request, async_req=True) >>> result = thread.get() :param async_req bool :param LabelCreateRequest label_create_request: The label to create. (required) :return: LabelResponse If the method is called asynchronously, returns the request thread. r6ÚPOSTr@rr rTrrNr©Ú_post_labels_preparerr r©rrOrr"r#r$r%r&r r r rNs( ÿ   ñz(LabelsService.post_labels_with_http_infocËsl|j|f|Ž\}}}}}|jjdd||||gidg| d¡| d¡| dd¡| d¡i| d d ¡d Id HS) aMCreate a label. This method makes an asynchronous HTTP request. :param async_req bool :param LabelCreateRequest label_create_request: The label to create. (required) :return: LabelResponse If the method is called asynchronously, returns the request thread. r6rQr@rr rTrrNrrRrTr r r Úpost_labels_async0s( ÿ   ñzLabelsService.post_labels_asyncc Ksˆtƒ}dg}| d||¡d|ks.|ddkr6tdƒ‚i}g}i}d}d|krV|d}|j dg¡|d<|j dg¡|d<|||||fS)NrOrPzPMissing the required parameter `label_create_request` when calling `post_labels`r+r,rLrM) rrOrr"r3r#r$r%r&r r r rSOs( ÿÿÿz"LabelsService._post_labels_prepare)N)Ú__name__Ú __module__Ú __qualname__Ú__doc__rrrr'rr5r4r<r:r?r>rCrBrFrDrKrIrPrNrUrSÚ __classcell__r r r r rs,# # # $!%"r)rYÚ __future__rÚreZ%influxdb_client.service._base_servicerrr r r r Ús