U wimq@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) _BaseServicecseZdZdZd-fdd ZddZddZd d Zd d Zd dZ ddZ ddZ ddZ ddZ ddZddZddZddZdd Zd!d"Zd#d$Zd%d&Zd'd(Zd)d*Zd+d,ZZS).RemoteConnectionsServicezNOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. Ncst|dS)z:RemoteConnectionsService - a operation defined in OpenAPI.N)super__init__)self api_client __class__c/opt/alt/python38/lib/python3.8/site-packages/influxdb_client/service/remote_connections_service.pyrsz!RemoteConnectionsService.__init__cKs6d|d<|dr |j|f|S|j|f|}|SdS)a$Delete a remote connection. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_remote_connection_by_id(remote_id, async_req=True) >>> result = thread.get() :param async_req bool :param str remote_id: (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_remote_connection_by_id_with_http_infor remote_idkwargsdatar r r delete_remote_connection_by_id s  z7RemoteConnectionsService.delete_remote_connection_by_idcKsf|j|f|\}}}}}|jjdd||||gidg|d|d|dd|di|d dd S) a3Delete a remote connection. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_remote_connection_by_id_with_http_info(remote_id, async_req=True) >>> result = thread.get() :param async_req bool :param str remote_id: (required) :param str zap_trace_span: OpenTracing span context :return: None If the method is called asynchronously, returns the request thread. /api/v2/remotes/{remoteID}DELETENrr _preload_contentT_request_timeout urlopen_kw bodyZ post_paramsfilesZ response_typeZ auth_settingsrr rrZcollection_formatsr'_delete_remote_connection_by_id_preparercall_apirrrrlocal_var_params path_params query_params header_params body_paramsr r r r6s(   zFRemoteConnectionsService.delete_remote_connection_by_id_with_http_infocsl|j|f|\}}}}}|jjdd||||gidg|d|d|dd|di|d dd IdHS) a]Delete a remote connection. This method makes an asynchronous HTTP request. :param async_req bool :param str remote_id: (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_remote_connection_by_id_asyncYs(   z=RemoteConnectionsService.delete_remote_connection_by_id_asyncc Kst}ddg}|d||d|ks0|ddkr8tdi}d|krP|d|d<g}i}d|krl|d|d<d}|jdg|d<|||||fS) Nrzap_trace_spanrzXMissing the required parameter `remote_id` when calling `delete_remote_connection_by_id`remoteIDZap-Trace-Spanapplication/jsonAcceptlocals_check_operation_params ValueErrorrselect_header_accept rrrr" all_paramsr#r$r%r&r r r rys&   z@RemoteConnectionsService._delete_remote_connection_by_id_preparecKs6d|d<|dr |j|f|S|j|f|}|SdS)a/Retrieve a remote connection. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_remote_connection_by_id(remote_id, async_req=True) >>> result = thread.get() :param async_req bool :param str remote_id: (required) :param str zap_trace_span: OpenTracing span context :return: RemoteConnection If the method is called asynchronously, returns the request thread. Tr rN)r*get_remote_connection_by_id_with_http_inforr r r get_remote_connection_by_ids  z4RemoteConnectionsService.get_remote_connection_by_idcKsf|j|f|\}}}}}|jjdd||||gidg|d|d|dd|di|d d d S) a>Retrieve a remote connection. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_remote_connection_by_id_with_http_info(remote_id, async_req=True) >>> result = thread.get() :param async_req bool :param str remote_id: (required) :param str zap_trace_span: OpenTracing span context :return: RemoteConnection If the method is called asynchronously, returns the request thread. rGETRemoteConnectionrr rTrrNr$_get_remote_connection_by_id_preparerr rr!r r r r4s(   zCRemoteConnectionsService.get_remote_connection_by_id_with_http_infocsl|j|f|\}}}}}|jjdd||||gidg|d|d|dd|di|d d d Id HS) akRetrieve a remote connection. This method makes an asynchronous HTTP request. :param async_req bool :param str remote_id: (required) :param str zap_trace_span: OpenTracing span context :return: RemoteConnection If the method is called asynchronously, returns the request thread. rr6r7rr rTrrNrr8r!r r r !get_remote_connection_by_id_asyncs(   z:RemoteConnectionsService.get_remote_connection_by_id_asyncc Kst}ddg}|d||d|ks0|ddkr8tdi}d|krP|d|d<g}i}d|krl|d|d<d}|jdg|d<|||||fS) Nrr(r5zUMissing the required parameter `remote_id` when calling `get_remote_connection_by_id`r)r*r+r,r-r2r r r r9s&   z=RemoteConnectionsService._get_remote_connection_by_id_preparecKs6d|d<|dr |j|f|S|j|f|}|SdS)aqList all remote connections. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_remote_connections(org_id, async_req=True) >>> result = thread.get() :param async_req bool :param str org_id: The organization ID. (required) :param str zap_trace_span: OpenTracing span context :param str name: :param str remote_url: :return: RemoteConnections If the method is called asynchronously, returns the request thread. Tr rN)r%get_remote_connections_with_http_info)rorg_idrrr r r get_remote_connectionss  z/RemoteConnectionsService.get_remote_connectionscKsf|j|f|\}}}}}|jjdd||||gidg|d|d|dd|di|d d d S) aList all remote connections. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_remote_connections_with_http_info(org_id, async_req=True) >>> result = thread.get() :param async_req bool :param str org_id: The organization ID. (required) :param str zap_trace_span: OpenTracing span context :param str name: :param str remote_url: :return: RemoteConnections If the method is called asynchronously, returns the request thread. /api/v2/remotesr6RemoteConnectionsrr rTrrNr_get_remote_connections_preparerr rrr<rr"r#r$r%r&r r r r; s(   z>RemoteConnectionsService.get_remote_connections_with_http_infocsl|j|f|\}}}}}|jjdd||||gidg|d|d|dd|di|d d d Id HS) aList all remote connections. This method makes an asynchronous HTTP request. :param async_req bool :param str org_id: The organization ID. (required) :param str zap_trace_span: OpenTracing span context :param str name: :param str remote_url: :return: RemoteConnections If the method is called asynchronously, returns the request thread. r>r6r?rr rTrrNrr@rBr r r get_remote_connections_asyncEs(   z5RemoteConnectionsService.get_remote_connections_asyncc Kst}ddddg}|d||d|ks4|ddkr>> thread = api.patch_remote_connection_by_id(remote_id, remote_connection_update_request, async_req=True) >>> result = thread.get() :param async_req bool :param str remote_id: (required) :param RemoteConnectionUpdateRequest remote_connection_update_request: (required) :param str zap_trace_span: OpenTracing span context :return: RemoteConnection If the method is called asynchronously, returns the request thread. Tr rN)r,patch_remote_connection_by_id_with_http_info)rr remote_connection_update_requestrrr r r patch_remote_connection_by_ids  z6RemoteConnectionsService.patch_remote_connection_by_idc Ksh|j||f|\}}}}}|jjdd||||gidg|d|d|dd|di|d d d S) aUpdate a remote connection. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_remote_connection_by_id_with_http_info(remote_id, remote_connection_update_request, async_req=True) >>> result = thread.get() :param async_req bool :param str remote_id: (required) :param RemoteConnectionUpdateRequest remote_connection_update_request: (required) :param str zap_trace_span: OpenTracing span context :return: RemoteConnection If the method is called asynchronously, returns the request thread. rPATCHr7rr rTrrNr&_patch_remote_connection_by_id_preparerr r rrrHrr"r#r$r%r&r r r rGs(   zERemoteConnectionsService.patch_remote_connection_by_id_with_http_infoc sn|j||f|\}}}}}|jjdd||||gidg|d|d|dd|di|d d d Id HS) aUpdate a remote connection. This method makes an asynchronous HTTP request. :param async_req bool :param str remote_id: (required) :param RemoteConnectionUpdateRequest remote_connection_update_request: (required) :param str zap_trace_span: OpenTracing span context :return: RemoteConnection If the method is called asynchronously, returns the request thread. rrJr7rr rTrrNrrKrMr r r #patch_remote_connection_by_id_asyncs(   z>> thread = api.post_remote_connection(remote_connection_creation_request, async_req=True) >>> result = thread.get() :param async_req bool :param RemoteConnectionCreationRequest remote_connection_creation_request: (required) :return: RemoteConnection If the method is called asynchronously, returns the request thread. Tr rN)r%post_remote_connection_with_http_info)r"remote_connection_creation_requestrrr r r post_remote_connections  z/RemoteConnectionsService.post_remote_connectioncKsf|j|f|\}}}}}|jjdd||||gidg|d|d|dd|di|d d d S) aORegister a new remote connection. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.post_remote_connection_with_http_info(remote_connection_creation_request, async_req=True) >>> result = thread.get() :param async_req bool :param RemoteConnectionCreationRequest remote_connection_creation_request: (required) :return: RemoteConnection If the method is called asynchronously, returns the request thread. r>POSTr7rr rTrrNr_post_remote_connection_preparerr rrrRrr"r#r$r%r&r r r rQs(   z>RemoteConnectionsService.post_remote_connection_with_http_infocsl|j|f|\}}}}}|jjdd||||gidg|d|d|dd|di|d d d Id HS) ahRegister a new remote connection. This method makes an asynchronous HTTP request. :param async_req bool :param RemoteConnectionCreationRequest remote_connection_creation_request: (required) :return: RemoteConnection If the method is called asynchronously, returns the request thread. r>rTr7rr rTrrNrrUrWr r r post_remote_connection_async>s(   z5RemoteConnectionsService.post_remote_connection_asyncc Kst}dg}|d||d|ks.|ddkr6tdi}g}i}d}d|krV|d}|jdg|d<|jdg|d<|||||fS)NrRrSziMissing the required parameter `remote_connection_creation_request` when calling `post_remote_connection`r+r,rOrP) rrRrr"r3r#r$r%r&r r r rV]s( z8RemoteConnectionsService._post_remote_connection_prepare)N)__name__ __module__ __qualname____doc__rrrr'rr5r4r:r9r=r;rCrArIrGrNrLrSrQrXrV __classcell__r r r r rs,# # %"$!%"r)r\ __future__rreZ%influxdb_client.service._base_servicerrr r r r s