U wâ’ißã@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)Ú _BaseServicecsBeZdZdZd ‡fdd„ Zdd„Zdd„Zd d „Zd d „Z‡Z S)Ú RulesServicez‹NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. Ncstƒ |¡dS)z.RulesService - a operation defined in OpenAPI.N)ÚsuperÚ__init__)ÚselfÚ api_client©Ú __class__©úV/opt/alt/python38/lib/python3.8/site-packages/influxdb_client/service/rules_service.pyrszRulesService.__init__cKs6d|d<| d¡r |j|f|ŽS|j|f|Ž}|SdS)aKRetrieve a notification rule query. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_notification_rules_id_query(rule_id, async_req=True) >>> result = thread.get() :param async_req bool :param str rule_id: The notification rule ID. (required) :param str zap_trace_span: OpenTracing span context :return: FluxResponse If the method is called asynchronously, returns the request thread. TÚ_return_http_data_onlyÚ async_reqN)ÚgetÚ.get_notification_rules_id_query_with_http_info)rÚrule_idÚkwargsÚdatar r r Úget_notification_rules_id_query s  z,RulesService.get_notification_rules_id_querycKsf|j|f|Ž\}}}}}|jjdd||||gidg| d¡| d¡| dd¡| d¡i| d d ¡d S) aZRetrieve a notification rule query. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_notification_rules_id_query_with_http_info(rule_id, async_req=True) >>> result = thread.get() :param async_req bool :param str rule_id: The notification rule ID. (required) :param str zap_trace_span: OpenTracing span context :return: FluxResponse If the method is called asynchronously, returns the request thread. ú(/api/v2/notificationRules/{ruleID}/queryÚGETÚ FluxResponserr Ú_preload_contentTÚ_request_timeoutÚ urlopen_kwN© ÚbodyZ post_paramsÚfilesZ response_typeZ auth_settingsrr rrZcollection_formatsr©Ú(_get_notification_rules_id_query_preparerZcall_apir©rrrÚlocal_var_paramsÚ path_paramsÚ query_paramsÚ header_paramsÚ body_paramsr r r r6s( ÿ   ñz;RulesService.get_notification_rules_id_query_with_http_infocËsl|j|f|Ž\}}}}}|jjdd||||gidg| d¡| d¡| dd¡| d¡i| d d ¡d Id HS) a…Retrieve a notification rule query. This method makes an asynchronous HTTP request. :param async_req bool :param str rule_id: The notification rule ID. (required) :param str zap_trace_span: OpenTracing span context :return: FluxResponse If the method is called asynchronously, returns the request thread. rrrrr rTrrNrrr r r r Ú%get_notification_rules_id_query_asyncYs( ÿ   ñz2RulesService.get_notification_rules_id_query_asyncc Kstƒ}ddg}| d||¡d|ks0|ddkr8tdƒ‚i}d|krP|d|d<g}i}d|krl|d|d<d}|j dg¡|d<|||||fS) NrZzap_trace_spanrzWMissing the required parameter `rule_id` when calling `get_notification_rules_id_query`ZruleIDzZap-Trace-Spanzapplication/jsonÚAccept)ÚlocalsZ_check_operation_paramsÚ ValueErrorrZselect_header_accept) rrrr!Ú all_paramsr"r#r$r%r r r rys& ÿ  ÿz5RulesService._get_notification_rules_id_query_prepare)N) Ú__name__Ú __module__Ú __qualname__Ú__doc__rrrr&rÚ __classcell__r r r r rs # r)r.Ú __future__rÚreZ%influxdb_client.service._base_servicerrr r r r Ús