U wi@s8dZddlmZddlZddlmZGdddeZdS)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) _BaseServicecseZdZdZd5fdd ZddZddZd d Zd d Zd dZ ddZ ddZ ddZ ddZ ddZddZddZddZdd Zd!d"Zd#d$Zd%d&Zd'd(Zd)d*Zd+d,Zd-d.Zd/d0Zd1d2Zd3d4ZZS)6 CellsServicezNOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. Ncst|dS)z.CellsService - a operation defined in OpenAPI.N)super__init__)self api_client __class__V/opt/alt/python38/lib/python3.8/site-packages/influxdb_client/service/cells_service.pyrszCellsService.__init__cKs:d|d<|dr"|j||f|S|j||f|}|SdS)aDelete a dashboard cell. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_dashboards_id_cells_id(dashboard_id, cell_id, async_req=True) >>> result = thread.get() :param async_req bool :param str dashboard_id: The ID of the dashboard to delete. (required) :param str cell_id: The ID of the cell 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_dashboards_id_cells_id_with_http_infor dashboard_idcell_idkwargsdatar r r delete_dashboards_id_cells_id s  z*CellsService.delete_dashboards_id_cells_idc Ksh|j||f|\}}}}}|jjdd||||gidg|d|d|dd|di|d dd S) aDelete a dashboard cell. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_dashboards_id_cells_id_with_http_info(dashboard_id, cell_id, async_req=True) >>> result = thread.get() :param async_req bool :param str dashboard_id: The ID of the dashboard to delete. (required) :param str cell_id: The ID of the cell 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/dashboards/{dashboardID}/cells/{cellID}DELETENrr _preload_contentT_request_timeout urlopen_kw bodyZ post_paramsfilesZ response_typeZ auth_settingsrr rrZcollection_formatsr&_delete_dashboards_id_cells_id_preparercall_apir rrrrlocal_var_params path_params query_params header_params body_paramsr r r r7s(   z9CellsService.delete_dashboards_id_cells_id_with_http_infoc sn|j||f|\}}}}}|jjdd||||gidg|d|d|dd|di|d dd IdHS) aDelete a dashboard cell. This method makes an asynchronous HTTP request. :param async_req bool :param str dashboard_id: The ID of the dashboard to delete. (required) :param str cell_id: The ID of the cell 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_dashboards_id_cells_id_async[s(   z0CellsService.delete_dashboards_id_cells_id_asyncc Kst}dddg}|d||d|ks2|ddkr:tdd|ksN|ddkrVtdi}d|krn|d|d<d|kr|d|d<g}i}d|kr|d|d <d} |jd g|d <||||| fS) Nrrzap_trace_spanrzZMissing the required parameter `dashboard_id` when calling `delete_dashboards_id_cells_id`zUMissing the required parameter `cell_id` when calling `delete_dashboards_id_cells_id` dashboardIDcellIDZap-Trace-Spanapplication/jsonAcceptlocals_check_operation_params ValueErrorrselect_header_accept rrrrr# all_paramsr$r%r&r'r r r r |s2      z3CellsService._delete_dashboards_id_cells_id_preparecKs:d|d<|dr"|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. Tr rN)r.get_dashboards_id_cells_id_view_with_http_inforr r r get_dashboards_id_cells_id_views  z,CellsService.get_dashboards_id_cells_id_viewc Ksh|j||f|\}}}}}|jjdd||||gidg|d|d|dd|di|d d d S) aRetrieve 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}/viewGETViewrr rTrrNr(_get_dashboards_id_cells_id_view_preparerr!rr"r r r r6s(   z;CellsService.get_dashboards_id_cells_id_view_with_http_infoc sn|j||f|\}}}}}|jjdd||||gidg|d|d|dd|di|d d d Id HS) aRetrieve 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. r8r9r:rr rTrrNrr;r"r r r %get_dashboards_id_cells_id_view_asyncs(   z2CellsService.get_dashboards_id_cells_id_view_asyncc Kst}dddg}|d||d|ks2|ddkr:tdd|ksN|ddkrVtdi}d|krn|d|d<d|kr|d|d<g}i}d|kr|d|d <d} |jd g|d <||||| fS) Nrrr)r7z\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`r*r+r,r-r.r/r4r r r r<s2      z5CellsService._get_dashboards_id_cells_id_view_preparecKs>d|d<|dr$|j|||f|S|j|||f|}|SdS)a~Update the non-positional information related to a cell. Updates the non positional information related to a cell. Updates to a single cell's positional data could cause grid conflicts. 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(dashboard_id, cell_id, cell_update, 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 CellUpdate cell_update: (required) :param str zap_trace_span: OpenTracing span context :return: Cell If the method is called asynchronously, returns the request thread. Tr rN)r+patch_dashboards_id_cells_id_with_http_info)rrr cell_updaterrr r r patch_dashboards_id_cells_ids  z)CellsService.patch_dashboards_id_cells_idc Ksj|j|||f|\}}}}} |jjdd|||| gidg|d|d|dd|di|d d d S) aUpdate the non-positional information related to a cell. Updates the non positional information related to a cell. Updates to a single cell's positional data could cause grid conflicts. 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_with_http_info(dashboard_id, cell_id, cell_update, 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 CellUpdate cell_update: (required) :param str zap_trace_span: OpenTracing span context :return: Cell If the method is called asynchronously, returns the request thread. rPATCHCellrr rTrrNr%_patch_dashboards_id_cells_id_preparerr!r rrrr?rr#r$r%r&r'r r r r>3s(   z8CellsService.patch_dashboards_id_cells_id_with_http_infoc sp|j|||f|\}}}}} |jjdd|||| gidg|d|d|dd|di|d d d Id HS) aUpdate the non-positional information related to a cell. Updates the non positional information related to a cell. Updates to a single cell's positional data could cause grid conflicts. 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 CellUpdate cell_update: (required) :param str zap_trace_span: OpenTracing span context :return: Cell If the method is called asynchronously, returns the request thread. rrArBrr rTrrNrrCrEr r r "patch_dashboards_id_cells_id_asyncYs(   z/CellsService.patch_dashboards_id_cells_id_asyncc Kst}ddddg}|d||d|ks4|ddkrd|d<|dr$|j|||f|S|j|||f|}|SdS)aUpdate 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)r0patch_dashboards_id_cells_id_view_with_http_info)rrrviewrrr r r !patch_dashboards_id_cells_id_views  z.CellsService.patch_dashboards_id_cells_id_viewc Ksj|j|||f|\}}}}} |jjdd|||| gidg|d|d|dd|di|d d d S) aUpdate 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. r8rAr:rr rTrrNr*_patch_dashboards_id_cells_id_view_preparerr!r rrrrJrr#r$r%r&r'r r r rIs(   z=CellsService.patch_dashboards_id_cells_id_view_with_http_infoc sp|j|||f|\}}}}} |jjdd|||| gidg|d|d|dd|di|d d d Id HS) aUpdate 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. r8rAr:rr rTrrNrrLrNr r r 'patch_dashboards_id_cells_id_view_asyncs(   z4CellsService.patch_dashboards_id_cells_id_view_asyncc Kst}ddddg}|d||d|ks4|ddkr>> thread = api.post_dashboards_id_cells(dashboard_id, create_cell, async_req=True) >>> result = thread.get() :param async_req bool :param str dashboard_id: The ID of the dashboard to update. (required) :param CreateCell create_cell: Cell that will be added (required) :param str zap_trace_span: OpenTracing span context :return: Cell If the method is called asynchronously, returns the request thread. Tr rN)r'post_dashboards_id_cells_with_http_info)rr create_cellrrr r r post_dashboards_id_cells1s  z%CellsService.post_dashboards_id_cellsc Ksh|j||f|\}}}}}|jjdd||||gidg|d|d|dd|di|d d d S) aCreate a dashboard cell. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.post_dashboards_id_cells_with_http_info(dashboard_id, create_cell, async_req=True) >>> result = thread.get() :param async_req bool :param str dashboard_id: The ID of the dashboard to update. (required) :param CreateCell create_cell: Cell that will be added (required) :param str zap_trace_span: OpenTracing span context :return: Cell If the method is called asynchronously, returns the request thread. &/api/v2/dashboards/{dashboardID}/cellsPOSTrBrr rTrrNr!_post_dashboards_id_cells_preparerr!r rrrQrr#r$r%r&r'r r r rPHs(   z4CellsService.post_dashboards_id_cells_with_http_infoc sn|j||f|\}}}}}|jjdd||||gidg|d|d|dd|di|d d d Id HS) aCreate a dashboard 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 CreateCell create_cell: Cell that will be added (required) :param str zap_trace_span: OpenTracing span context :return: Cell If the method is called asynchronously, returns the request thread. rSrTrBrr rTrrNrrUrWr r r post_dashboards_id_cells_asyncls(   z+CellsService.post_dashboards_id_cells_asyncc Kst}dddg}|d||d|ks2|ddkr:tdd|ksN|ddkrVtdi}d|krn|d|d<g}i}d|kr|d|d<d} d|kr|d} |jd g|d <|jd g|d <||||| fS) NrrQr)rRzUMissing the required parameter `dashboard_id` when calling `post_dashboards_id_cells`zTMissing the required parameter `create_cell` when calling `post_dashboards_id_cells`r*r,r-r.rGrH) rrrQrr#r5r$r%r&r'r r r rVs8     z.CellsService._post_dashboards_id_cells_preparecKs:d|d<|dr"|j||f|S|j||f|}|SdS)aReplace cells in a dashboard. Replaces all cells in a dashboard. This is used primarily to update the positional information of all cells. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.put_dashboards_id_cells(dashboard_id, cell, async_req=True) >>> result = thread.get() :param async_req bool :param str dashboard_id: The ID of the dashboard to update. (required) :param list[Cell] cell: (required) :param str zap_trace_span: OpenTracing span context :return: Dashboard If the method is called asynchronously, returns the request thread. Tr rN)r&put_dashboards_id_cells_with_http_info)rrcellrrr r r put_dashboards_id_cellss  z$CellsService.put_dashboards_id_cellsc Ksh|j||f|\}}}}}|jjdd||||gidg|d|d|dd|di|d d d S) aReplace cells in a dashboard. Replaces all cells in a dashboard. This is used primarily to update the positional information of all cells. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.put_dashboards_id_cells_with_http_info(dashboard_id, cell, async_req=True) >>> result = thread.get() :param async_req bool :param str dashboard_id: The ID of the dashboard to update. (required) :param list[Cell] cell: (required) :param str zap_trace_span: OpenTracing span context :return: Dashboard If the method is called asynchronously, returns the request thread. rSPUT Dashboardrr rTrrNr _put_dashboards_id_cells_preparerr!r rrrZrr#r$r%r&r'r r r rYs(   z3CellsService.put_dashboards_id_cells_with_http_infoc sn|j||f|\}}}}}|jjdd||||gidg|d|d|dd|di|d d d Id HS) a*Replace cells in a dashboard. Replaces all cells in a dashboard. This is used primarily to update the positional information of all cells. This method makes an asynchronous HTTP request. :param async_req bool :param str dashboard_id: The ID of the dashboard to update. (required) :param list[Cell] cell: (required) :param str zap_trace_span: OpenTracing span context :return: Dashboard If the method is called asynchronously, returns the request thread. rSr\r]rr rTrrNrr^r`r r r put_dashboards_id_cells_asyncs(   z*CellsService.put_dashboards_id_cells_asyncc Kst}dddg}|d||d|ks2|ddkr:tdd|ksN|ddkrVtdi}d|krn|d|d<g}i}d|kr|d|d<d} d|kr|d} |jd g|d <|jd g|d <||||| fS) NrrZr)r[zTMissing the required parameter `dashboard_id` when calling `put_dashboards_id_cells`zLMissing the required parameter `cell` when calling `put_dashboards_id_cells`r*r,r-r.rGrH) rrrZrr#r5r$r%r&r'r r r r_s8     z-CellsService._put_dashboards_id_cells_prepare)N)__name__ __module__ __qualname____doc__rrrr(r r7r6r=r<r@r>rFrDrKrIrOrMrRrPrXrVr[rYrar_ __classcell__r r r r rs4$!!$!!&#+%"+$!%%"r)re __future__rreZ%influxdb_client.service._base_servicerrr r r r s