U wâ’i»5ã@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 „Zd d„Z dd„Z dd„Z dd„Z ‡Z S)Ú ViewsServicez‹NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. Ncstƒ |¡dS)z.ViewsService - a operation defined in OpenAPI.N)ÚsuperÚ__init__)ÚselfÚ api_client©Ú __class__©úV/opt/alt/python38/lib/python3.8/site-packages/influxdb_client/service/views_service.pyrszViewsService.__init__cKs:d|d<| d¡r"|j||f|ŽS|j||f|Ž}|SdS)a|Retrieve the view for a cell. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_dashboards_id_cells_id_view(dashboard_id, cell_id, async_req=True) >>> result = thread.get() :param async_req bool :param str dashboard_id: The dashboard ID. (required) :param str cell_id: The cell ID. (required) :param str zap_trace_span: OpenTracing span context :return: View If the method is called asynchronously, returns the request thread. TÚ_return_http_data_onlyÚ async_reqN)ÚgetÚ.get_dashboards_id_cells_id_view_with_http_info)rÚ dashboard_idÚcell_idÚkwargsÚdatar r r Úget_dashboards_id_cells_id_view s  z,ViewsService.get_dashboards_id_cells_id_viewc Ksh|j||f|Ž\}}}}}|jjdd||||gidg| d¡| d¡| dd¡| d¡i| d d ¡d S) a‹Retrieve the view for a cell. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_dashboards_id_cells_id_view_with_http_info(dashboard_id, cell_id, async_req=True) >>> result = thread.get() :param async_req bool :param str dashboard_id: The dashboard ID. (required) :param str cell_id: The cell ID. (required) :param str zap_trace_span: OpenTracing span context :return: View If the method is called asynchronously, returns the request thread. ú4/api/v2/dashboards/{dashboardID}/cells/{cellID}/viewÚGETÚViewrr Ú_preload_contentTÚ_request_timeoutÚ urlopen_kwN© ÚbodyZ post_paramsÚfilesZ response_typeZ auth_settingsrr rrZcollection_formatsr©Ú(_get_dashboards_id_cells_id_view_preparerÚcall_apir© rrrrÚlocal_var_paramsÚ path_paramsÚ query_paramsÚ header_paramsÚ body_paramsr r r r7s(ÿ   ñz;ViewsService.get_dashboards_id_cells_id_view_with_http_infoc Ësn|j||f|Ž\}}}}}|jjdd||||gidg| d¡| d¡| dd¡| d¡i| d d ¡d Id HS) a¨Retrieve the view for a cell. This method makes an asynchronous HTTP request. :param async_req bool :param str dashboard_id: The dashboard ID. (required) :param str cell_id: The cell ID. (required) :param str zap_trace_span: OpenTracing span context :return: View If the method is called asynchronously, returns the request thread. rrrrr rTrrNrrr"r r r Ú%get_dashboards_id_cells_id_view_async[s(ÿ   ñz2ViewsService.get_dashboards_id_cells_id_view_asyncc KsÂtƒ}dddg}| d||¡d|ks2|ddkr:tdƒ‚d|ksN|ddkrVtdƒ‚i}d|krn|d|d<d|kr‚|d|d<g}i}d|krž|d|d <d} |j d g¡|d <||||| fS) NrrÚzap_trace_spanrz\Missing the required parameter `dashboard_id` when calling `get_dashboards_id_cells_id_view`zWMissing the required parameter `cell_id` when calling `get_dashboards_id_cells_id_view`Ú dashboardIDÚcellIDúZap-Trace-Spanúapplication/jsonÚAccept)ÚlocalsÚ_check_operation_paramsÚ ValueErrorrÚselect_header_accept) rrrrr#Ú all_paramsr$r%r&r'r r r r |s2  ÿ ÿ   ÿz5ViewsService._get_dashboards_id_cells_id_view_preparecKs>d|d<| d¡r$|j|||f|ŽS|j|||f|Ž}|SdS)aÉUpdate the view for a cell. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_dashboards_id_cells_id_view(dashboard_id, cell_id, view, async_req=True) >>> result = thread.get() :param async_req bool :param str dashboard_id: The ID of the dashboard to update. (required) :param str cell_id: The ID of the cell to update. (required) :param View view: (required) :param str zap_trace_span: OpenTracing span context :return: View If the method is called asynchronously, returns the request thread. Tr rN)rÚ0patch_dashboards_id_cells_id_view_with_http_info)rrrÚviewrrr r r Ú!patch_dashboards_id_cells_id_views  z.ViewsService.patch_dashboards_id_cells_id_viewc Ksj|j|||f|Ž\}}}}} |jjdd|||| gidg| d¡| d¡| dd¡| d¡i| d d ¡d S) aØUpdate the view for a cell. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_dashboards_id_cells_id_view_with_http_info(dashboard_id, cell_id, view, async_req=True) >>> result = thread.get() :param async_req bool :param str dashboard_id: The ID of the dashboard to update. (required) :param str cell_id: The ID of the cell to update. (required) :param View view: (required) :param str zap_trace_span: OpenTracing span context :return: View If the method is called asynchronously, returns the request thread. rÚPATCHrrr rTrrNr©Ú*_patch_dashboards_id_cells_id_view_preparerr!r© rrrr5rr#r$r%r&r'r r r r4µs(ÿ   ñz=ViewsService.patch_dashboards_id_cells_id_view_with_http_infoc Ësp|j|||f|Ž\}}}}} |jjdd|||| gidg| d¡| d¡| dd¡| d¡i| d d ¡d Id HS) aíUpdate the view for a cell. This method makes an asynchronous HTTP request. :param async_req bool :param str dashboard_id: The ID of the dashboard to update. (required) :param str cell_id: The ID of the cell to update. (required) :param View view: (required) :param str zap_trace_span: OpenTracing span context :return: View If the method is called asynchronously, returns the request thread. rr7rrr rTrrNrr8r:r r r Ú'patch_dashboards_id_cells_id_view_asyncÚs(ÿ   ñz4ViewsService.patch_dashboards_id_cells_id_view_asyncc Kstƒ}ddddg}| d||¡d|ks4|ddkrs