U wiL@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) _BaseServicecseZdZdZdufdd 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/d0Zd1d2Zd3d4Zd5d6Zd7d8Zd9d:Zd;d<Z d=d>Z!d?d@Z"dAdBZ#dCdDZ$dEdFZ%dGdHZ&dIdJZ'dKdLZ(dMdNZ)dOdPZ*dQdRZ+dSdTZ,dUdVZ-dWdXZ.dYdZZ/d[d\Z0d]d^Z1d_d`Z2dadbZ3dcddZ4dedfZ5dgdhZ6didjZ7dkdlZ8dmdnZ9dodpZ:dqdrZ;dsdtZ<Z=S)vScraperTargetsServicezNOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. Ncst|dS)z7ScraperTargetsService - a operation defined in OpenAPI.N)super__init__)self api_client __class__`/opt/alt/python38/lib/python3.8/site-packages/influxdb_client/service/scraper_targets_service.pyrszScraperTargetsService.__init__cKs6d|d<|dr |j|f|S|j|f|}|SdS)aKDelete a scraper target. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_scrapers_id(scraper_target_id, async_req=True) >>> result = thread.get() :param async_req bool :param str scraper_target_id: The identifier of the scraper target. (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_scrapers_id_with_http_inforscraper_target_idkwargsdatar r r delete_scrapers_id s  z(ScraperTargetsService.delete_scrapers_idcKsf|j|f|\}}}}}|jjdd||||gidg|d|d|dd|di|d dd S) aZDelete a scraper target. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_scrapers_id_with_http_info(scraper_target_id, async_req=True) >>> result = thread.get() :param async_req bool :param str scraper_target_id: The identifier of the scraper target. (required) :param str zap_trace_span: OpenTracing span context :return: None If the method is called asynchronously, returns the request thread. "/api/v2/scrapers/{scraperTargetID}DELETENrr _preload_contentT_request_timeout urlopen_kw bodyZ post_paramsfilesZ response_typeZ auth_settingsrr rrZcollection_formatsr_delete_scrapers_id_preparercall_apirrrrlocal_var_params path_params query_params header_params body_paramsr r r r6s(   z7ScraperTargetsService.delete_scrapers_id_with_http_infocsl|j|f|\}}}}}|jjdd||||gidg|d|d|dd|di|d dd IdHS) aDelete a scraper target. This method makes an asynchronous HTTP request. :param async_req bool :param str scraper_target_id: The identifier of the scraper target. (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_scrapers_id_asyncYs(   z.ScraperTargetsService.delete_scrapers_id_asyncc Kst}ddg}|d||d|ks0|ddkr8tdi}d|krP|d|d<g}i}d|krl|d|d<d}|jdg|d<|||||fS) Nrzap_trace_spanrzTMissing the required parameter `scraper_target_id` when calling `delete_scrapers_id`scraperTargetIDZap-Trace-Spanapplication/jsonAcceptlocals_check_operation_params ValueErrorrselect_header_accept rrrr" all_paramsr#r$r%r&r r r rys&   z1ScraperTargetsService._delete_scrapers_id_preparecKs:d|d<|dr"|j||f|S|j||f|}|SdS)aDelete a label from a scraper target. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_scrapers_id_labels_id(scraper_target_id, label_id, async_req=True) >>> result = thread.get() :param async_req bool :param str scraper_target_id: The scraper target ID. (required) :param str label_id: The label ID. (required) :param str zap_trace_span: OpenTracing span context :return: None If the method is called asynchronously, returns the request thread. Tr rN)r+delete_scrapers_id_labels_id_with_http_info)rrlabel_idrrr r r delete_scrapers_id_labels_ids  z2ScraperTargetsService.delete_scrapers_id_labels_idc Ksh|j||f|\}}}}}|jjdd||||gidg|d|d|dd|di|d dd S) aDelete a label from a scraper target. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_scrapers_id_labels_id_with_http_info(scraper_target_id, label_id, async_req=True) >>> result = thread.get() :param async_req bool :param str scraper_target_id: The scraper target ID. (required) :param str label_id: The label ID. (required) :param str zap_trace_span: OpenTracing span context :return: None If the method is called asynchronously, returns the request thread. 3/api/v2/scrapers/{scraperTargetID}/labels/{labelID}rNrr rTrrr%_delete_scrapers_id_labels_id_preparerr r rrr5rr"r#r$r%r&r r r r4s(   zAScraperTargetsService.delete_scrapers_id_labels_id_with_http_infoc sn|j||f|\}}}}}|jjdd||||gidg|d|d|dd|di|d dd IdHS) aDelete a label from a scraper target. This method makes an asynchronous HTTP request. :param async_req bool :param str scraper_target_id: The scraper target ID. (required) :param str label_id: The label ID. (required) :param str zap_trace_span: OpenTracing span context :return: None If the method is called asynchronously, returns the request thread. r7rNrr rTrrrr8r:r r r "delete_scrapers_id_labels_id_asyncs(   z8ScraperTargetsService.delete_scrapers_id_labels_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) Nrr5r(r6z^Missing the required parameter `scraper_target_id` when calling `delete_scrapers_id_labels_id`zUMissing the required parameter `label_id` when calling `delete_scrapers_id_labels_id`r)ZlabelIDr*r+r,r-) rrr5rr"r3r#r$r%r&r r r r9s2      z;ScraperTargetsService._delete_scrapers_id_labels_id_preparecKs:d|d<|dr"|j||f|S|j||f|}|SdS)aRemove a member from a scraper target. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_scrapers_id_members_id(user_id, scraper_target_id, async_req=True) >>> result = thread.get() :param async_req bool :param str user_id: The ID of member to remove. (required) :param str scraper_target_id: The scraper target ID. (required) :param str zap_trace_span: OpenTracing span context :return: None If the method is called asynchronously, returns the request thread. Tr rN)r,delete_scrapers_id_members_id_with_http_inforuser_idrrrr r r delete_scrapers_id_members_ids  z3ScraperTargetsService.delete_scrapers_id_members_idc Ksh|j||f|\}}}}}|jjdd||||gidg|d|d|dd|di|d dd S) aRemove a member from a scraper target. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_scrapers_id_members_id_with_http_info(user_id, scraper_target_id, async_req=True) >>> result = thread.get() :param async_req bool :param str user_id: The ID of member to remove. (required) :param str scraper_target_id: The scraper target ID. (required) :param str zap_trace_span: OpenTracing span context :return: None If the method is called asynchronously, returns the request thread. 3/api/v2/scrapers/{scraperTargetID}/members/{userID}rNrr rTrrr&_delete_scrapers_id_members_id_preparerr r rr>rrr"r#r$r%r&r r r r<(s(   zBScraperTargetsService.delete_scrapers_id_members_id_with_http_infoc sn|j||f|\}}}}}|jjdd||||gidg|d|d|dd|di|d dd IdHS) aRemove a member from a scraper target. This method makes an asynchronous HTTP request. :param async_req bool :param str user_id: The ID of member to remove. (required) :param str scraper_target_id: The scraper target ID. (required) :param str zap_trace_span: OpenTracing span context :return: None If the method is called asynchronously, returns the request thread. r@rNrr rTrrrrArCr r r #delete_scrapers_id_members_id_asyncLs(   z9ScraperTargetsService.delete_scrapers_id_members_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) Nr>rr(r?zUMissing the required parameter `user_id` when calling `delete_scrapers_id_members_id`z_Missing the required parameter `scraper_target_id` when calling `delete_scrapers_id_members_id`userIDr)r*r+r,r- rr>rrr"r3r#r$r%r&r r r rBms2      z>> thread = api.delete_scrapers_id_owners_id(user_id, scraper_target_id, async_req=True) >>> result = thread.get() :param async_req bool :param str user_id: The ID of owner to remove. (required) :param str scraper_target_id: The scraper target ID. (required) :param str zap_trace_span: OpenTracing span context :return: None If the method is called asynchronously, returns the request thread. Tr rN)r+delete_scrapers_id_owners_id_with_http_infor=r r r delete_scrapers_id_owners_ids  z2ScraperTargetsService.delete_scrapers_id_owners_idc Ksh|j||f|\}}}}}|jjdd||||gidg|d|d|dd|di|d dd S) aRemove an owner from a scraper target. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_scrapers_id_owners_id_with_http_info(user_id, scraper_target_id, async_req=True) >>> result = thread.get() :param async_req bool :param str user_id: The ID of owner to remove. (required) :param str scraper_target_id: The scraper target ID. (required) :param str zap_trace_span: OpenTracing span context :return: None If the method is called asynchronously, returns the request thread. 2/api/v2/scrapers/{scraperTargetID}/owners/{userID}rNrr rTrrr%_delete_scrapers_id_owners_id_preparerr rrCr r r rGs(   zAScraperTargetsService.delete_scrapers_id_owners_id_with_http_infoc sn|j||f|\}}}}}|jjdd||||gidg|d|d|dd|di|d dd IdHS) aRemove an owner from a scraper target. This method makes an asynchronous HTTP request. :param async_req bool :param str user_id: The ID of owner to remove. (required) :param str scraper_target_id: The scraper target ID. (required) :param str zap_trace_span: OpenTracing span context :return: None If the method is called asynchronously, returns the request thread. rIrNrr rTrrrrJrCr r r "delete_scrapers_id_owners_id_asyncs(   z8ScraperTargetsService.delete_scrapers_id_owners_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) Nr>rr(rHzTMissing the required parameter `user_id` when calling `delete_scrapers_id_owners_id`z^Missing the required parameter `scraper_target_id` when calling `delete_scrapers_id_owners_id`rEr)r*r+r,r-rFr r r rKs2      z;ScraperTargetsService._delete_scrapers_id_owners_id_preparecKs2d|d<|dr|jf|S|jf|}|SdS)aNList all scraper targets. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_scrapers(async_req=True) >>> result = thread.get() :param async_req bool :param str zap_trace_span: OpenTracing span context :param str name: Specifies the name of the scraper target. :param list[str] id: List of scraper target IDs to return. If both `id` and `owner` are specified, only `id` is used. :param str org_id: Specifies the organization ID of the scraper target. :param str org: Specifies the organization name of the scraper target. :return: ScraperTargetResponses If the method is called asynchronously, returns the request thread. Tr rN)rget_scrapers_with_http_info)rrrr r r get_scrapers s    z"ScraperTargetsService.get_scraperscKsd|jf|\}}}}}|jjdd||||gidg|d|d|dd|di|d d d S) a]List all scraper targets. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_scrapers_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool :param str zap_trace_span: OpenTracing span context :param str name: Specifies the name of the scraper target. :param list[str] id: List of scraper target IDs to return. If both `id` and `owner` are specified, only `id` is used. :param str org_id: Specifies the organization ID of the scraper target. :param str org: Specifies the organization name of the scraper target. :return: ScraperTargetResponses If the method is called asynchronously, returns the request thread. /api/v2/scrapersGETScraperTargetResponsesrr rTrrNr_get_scrapers_preparerr rrrr"r#r$r%r&r r r rM$s(   z1ScraperTargetsService.get_scrapers_with_http_infocsj|jf|\}}}}}|jjdd||||gidg|d|d|dd|di|d d d Id HS) aList all scraper targets. This method makes an asynchronous HTTP request. :param async_req bool :param str zap_trace_span: OpenTracing span context :param str name: Specifies the name of the scraper target. :param list[str] id: List of scraper target IDs to return. If both `id` and `owner` are specified, only `id` is used. :param str org_id: Specifies the organization ID of the scraper target. :param str org: Specifies the organization name of the scraper target. :return: ScraperTargetResponses If the method is called asynchronously, returns the request thread. rOrPrQrr rTrrNrrRrTr r r get_scrapers_asyncJs(   z(ScraperTargetsService.get_scrapers_asynccKst}dddddg}|d||i}g}d|krD|d|dfd|kr^|d|dfd|krx|d|dfd|kr|d|dfi}d|kr|d|d<d}|jd g|d <|||||fS) Nr(nameidZorg_idorgrNZorgIDr*r+r,)r.r/appendrr1)rrr"r3r#r$r%r&r r r rSms* z+ScraperTargetsService._get_scrapers_preparecKs6d|d<|dr |j|f|S|j|f|}|SdS)a[Retrieve a scraper target. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_scrapers_id(scraper_target_id, async_req=True) >>> result = thread.get() :param async_req bool :param str scraper_target_id: The identifier of the scraper target. (required) :param str zap_trace_span: OpenTracing span context :return: ScraperTargetResponse If the method is called asynchronously, returns the request thread. Tr rN)rget_scrapers_id_with_http_inforr r r get_scrapers_ids  z%ScraperTargetsService.get_scrapers_idcKsf|j|f|\}}}}}|jjdd||||gidg|d|d|dd|di|d d d S) ajRetrieve a scraper target. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_scrapers_id_with_http_info(scraper_target_id, async_req=True) >>> result = thread.get() :param async_req bool :param str scraper_target_id: The identifier of the scraper target. (required) :param str zap_trace_span: OpenTracing span context :return: ScraperTargetResponse If the method is called asynchronously, returns the request thread. rrPScraperTargetResponserr rTrrNr_get_scrapers_id_preparerr rr!r r r rZs(   z4ScraperTargetsService.get_scrapers_id_with_http_infocsl|j|f|\}}}}}|jjdd||||gidg|d|d|dd|di|d d d Id HS) aRetrieve a scraper target. This method makes an asynchronous HTTP request. :param async_req bool :param str scraper_target_id: The identifier of the scraper target. (required) :param str zap_trace_span: OpenTracing span context :return: ScraperTargetResponse If the method is called asynchronously, returns the request thread. rrPr\rr rTrrNrr]r!r r r get_scrapers_id_asyncs(   z+ScraperTargetsService.get_scrapers_id_asyncc Kst}ddg}|d||d|ks0|ddkr8tdi}d|krP|d|d<g}i}d|krl|d|d<d}|jdg|d<|||||fS) Nrr(r[zQMissing the required parameter `scraper_target_id` when calling `get_scrapers_id`r)r*r+r,r-r2r r r r^s&   z.ScraperTargetsService._get_scrapers_id_preparecKs6d|d<|dr |j|f|S|j|f|}|SdS)aWList all labels for a scraper target. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_scrapers_id_labels(scraper_target_id, async_req=True) >>> result = thread.get() :param async_req bool :param str scraper_target_id: The scraper target ID. (required) :param str zap_trace_span: OpenTracing span context :return: LabelsResponse If the method is called asynchronously, returns the request thread. Tr rN)r%get_scrapers_id_labels_with_http_inforr r r get_scrapers_id_labelss  z,ScraperTargetsService.get_scrapers_id_labelscKsf|j|f|\}}}}}|jjdd||||gidg|d|d|dd|di|d d d S) afList all labels for a scraper target. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_scrapers_id_labels_with_http_info(scraper_target_id, async_req=True) >>> result = thread.get() :param async_req bool :param str scraper_target_id: The scraper target ID. (required) :param str zap_trace_span: OpenTracing span context :return: LabelsResponse If the method is called asynchronously, returns the request thread. )/api/v2/scrapers/{scraperTargetID}/labelsrPLabelsResponserr rTrrNr_get_scrapers_id_labels_preparerr rr!r r r r`s(   z;ScraperTargetsService.get_scrapers_id_labels_with_http_infocsl|j|f|\}}}}}|jjdd||||gidg|d|d|dd|di|d d d Id HS) aList all labels for a scraper target. This method makes an asynchronous HTTP request. :param async_req bool :param str scraper_target_id: The scraper target ID. (required) :param str zap_trace_span: OpenTracing span context :return: LabelsResponse If the method is called asynchronously, returns the request thread. rbrPrcrr rTrrNrrdr!r r r get_scrapers_id_labels_async7s(   z2ScraperTargetsService.get_scrapers_id_labels_asyncc Kst}ddg}|d||d|ks0|ddkr8tdi}d|krP|d|d<g}i}d|krl|d|d<d}|jdg|d<|||||fS) Nrr(razXMissing the required parameter `scraper_target_id` when calling `get_scrapers_id_labels`r)r*r+r,r-r2r r r reWs&   z5ScraperTargetsService._get_scrapers_id_labels_preparecKs6d|d<|dr |j|f|S|j|f|}|SdS)aoList all users with member privileges for a scraper target. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_scrapers_id_members(scraper_target_id, async_req=True) >>> result = thread.get() :param async_req bool :param str scraper_target_id: The scraper target ID. (required) :param str zap_trace_span: OpenTracing span context :return: ResourceMembers If the method is called asynchronously, returns the request thread. Tr rN)r&get_scrapers_id_members_with_http_inforr r r get_scrapers_id_membersrs  z-ScraperTargetsService.get_scrapers_id_memberscKsf|j|f|\}}}}}|jjdd||||gidg|d|d|dd|di|d d d S) a~List all users with member privileges for a scraper target. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_scrapers_id_members_with_http_info(scraper_target_id, async_req=True) >>> result = thread.get() :param async_req bool :param str scraper_target_id: The scraper target ID. (required) :param str zap_trace_span: OpenTracing span context :return: ResourceMembers If the method is called asynchronously, returns the request thread. */api/v2/scrapers/{scraperTargetID}/membersrPResourceMembersrr rTrrNr _get_scrapers_id_members_preparerr rr!r r r rgs(   z>> thread = api.get_scrapers_id_owners(scraper_target_id, async_req=True) >>> result = thread.get() :param async_req bool :param str scraper_target_id: The scraper target ID. (required) :param str zap_trace_span: OpenTracing span context :return: ResourceOwners If the method is called asynchronously, returns the request thread. Tr rN)r%get_scrapers_id_owners_with_http_inforr r r get_scrapers_id_ownerss  z,ScraperTargetsService.get_scrapers_id_ownerscKsf|j|f|\}}}}}|jjdd||||gidg|d|d|dd|di|d d d S) aeList all owners of a scraper target. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_scrapers_id_owners_with_http_info(scraper_target_id, async_req=True) >>> result = thread.get() :param async_req bool :param str scraper_target_id: The scraper target ID. (required) :param str zap_trace_span: OpenTracing span context :return: ResourceOwners If the method is called asynchronously, returns the request thread. )/api/v2/scrapers/{scraperTargetID}/ownersrPResourceOwnersrr rTrrNr_get_scrapers_id_owners_preparerr rr!r r r rns(   z;ScraperTargetsService.get_scrapers_id_owners_with_http_infocsl|j|f|\}}}}}|jjdd||||gidg|d|d|dd|di|d d d Id HS) aList all owners of a scraper target. This method makes an asynchronous HTTP request. :param async_req bool :param str scraper_target_id: The scraper target ID. (required) :param str zap_trace_span: OpenTracing span context :return: ResourceOwners If the method is called asynchronously, returns the request thread. rprPrqrr rTrrNrrrr!r r r get_scrapers_id_owners_asyncs(   z2ScraperTargetsService.get_scrapers_id_owners_asyncc Kst}ddg}|d||d|ks0|ddkr8tdi}d|krP|d|d<g}i}d|krl|d|d<d}|jdg|d<|||||fS) Nrr(rozXMissing the required parameter `scraper_target_id` when calling `get_scrapers_id_owners`r)r*r+r,r-r2r r r rs?s&   z5ScraperTargetsService._get_scrapers_id_owners_preparecKs:d|d<|dr"|j||f|S|j||f|}|SdS)aUpdate a scraper target. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_scrapers_id(scraper_target_id, scraper_target_request, async_req=True) >>> result = thread.get() :param async_req bool :param str scraper_target_id: The identifier of the scraper target. (required) :param ScraperTargetRequest scraper_target_request: Scraper target update to apply (required) :param str zap_trace_span: OpenTracing span context :return: ScraperTargetResponse If the method is called asynchronously, returns the request thread. Tr rN)r patch_scrapers_id_with_http_info)rrscraper_target_requestrrr r r patch_scrapers_idZs  z'ScraperTargetsService.patch_scrapers_idc Ksh|j||f|\}}}}}|jjdd||||gidg|d|d|dd|di|d d d S) aUpdate a scraper target. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.patch_scrapers_id_with_http_info(scraper_target_id, scraper_target_request, async_req=True) >>> result = thread.get() :param async_req bool :param str scraper_target_id: The identifier of the scraper target. (required) :param ScraperTargetRequest scraper_target_request: Scraper target update to apply (required) :param str zap_trace_span: OpenTracing span context :return: ScraperTargetResponse If the method is called asynchronously, returns the request thread. rPATCHr\rr rTrrNr_patch_scrapers_id_preparerr r rrrvrr"r#r$r%r&r r r ruqs(   z6ScraperTargetsService.patch_scrapers_id_with_http_infoc sn|j||f|\}}}}}|jjdd||||gidg|d|d|dd|di|d d d Id HS) aUpdate a scraper target. This method makes an asynchronous HTTP request. :param async_req bool :param str scraper_target_id: The identifier of the scraper target. (required) :param ScraperTargetRequest scraper_target_request: Scraper target update to apply (required) :param str zap_trace_span: OpenTracing span context :return: ScraperTargetResponse If the method is called asynchronously, returns the request thread. rrxr\rr rTrrNrryr{r r r patch_scrapers_id_asyncs(   z-ScraperTargetsService.patch_scrapers_id_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) Nrrvr(rwzSMissing the required parameter `scraper_target_id` when calling `patch_scrapers_id`zXMissing the required parameter `scraper_target_request` when calling `patch_scrapers_id`r)r*r+r, Content-Typer.r/r0rr1Zselect_header_content_type) rrrvrr"r3r#r$r%r&r r r rzs8     z0ScraperTargetsService._patch_scrapers_id_preparecKs6d|d<|dr |j|f|S|j|f|}|SdS)aeCreate a scraper target. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.post_scrapers(scraper_target_request, async_req=True) >>> result = thread.get() :param async_req bool :param ScraperTargetRequest scraper_target_request: Scraper target to create (required) :param str zap_trace_span: OpenTracing span context :return: ScraperTargetResponse If the method is called asynchronously, returns the request thread. Tr rN)rpost_scrapers_with_http_info)rrvrrr r r post_scraperss  z#ScraperTargetsService.post_scraperscKsf|j|f|\}}}}}|jjdd||||gidg|d|d|dd|di|d d d S) atCreate a scraper target. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.post_scrapers_with_http_info(scraper_target_request, async_req=True) >>> result = thread.get() :param async_req bool :param ScraperTargetRequest scraper_target_request: Scraper target to create (required) :param str zap_trace_span: OpenTracing span context :return: ScraperTargetResponse If the method is called asynchronously, returns the request thread. rOPOSTr\rr rTrrNr_post_scrapers_preparerr rrrvrr"r#r$r%r&r r r rs(   z2ScraperTargetsService.post_scrapers_with_http_infocsl|j|f|\}}}}}|jjdd||||gidg|d|d|dd|di|d d d Id HS) aCreate a scraper target. This method makes an asynchronous HTTP request. :param async_req bool :param ScraperTargetRequest scraper_target_request: Scraper target to create (required) :param str zap_trace_span: OpenTracing span context :return: ScraperTargetResponse If the method is called asynchronously, returns the request thread. rOrr\rr rTrrNrrrr r r post_scrapers_asyncs(   z)ScraperTargetsService.post_scrapers_asyncc Kst}ddg}|d||d|ks0|ddkr8tdi}g}i}d|krX|d|d<d}d|krl|d}|jdg|d<|jdg|d<|||||fS) Nrvr(rzTMissing the required parameter `scraper_target_request` when calling `post_scrapers`r*r+r,r}r~) rrvrr"r3r#r$r%r&r r r r4s,  z,ScraperTargetsService._post_scrapers_preparecKs:d|d<|dr"|j||f|S|j||f|}|SdS)aAdd a label to a scraper target. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.post_scrapers_id_labels(scraper_target_id, label_mapping, async_req=True) >>> result = thread.get() :param async_req bool :param str scraper_target_id: The scraper target ID. (required) :param LabelMapping label_mapping: Label to add (required) :param str zap_trace_span: OpenTracing span context :return: LabelResponse If the method is called asynchronously, returns the request thread. Tr rN)r&post_scrapers_id_labels_with_http_info)rr label_mappingrrr r r post_scrapers_id_labelsSs  z-ScraperTargetsService.post_scrapers_id_labelsc Ksh|j||f|\}}}}}|jjdd||||gidg|d|d|dd|di|d d d S) aAdd a label to a scraper target. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.post_scrapers_id_labels_with_http_info(scraper_target_id, label_mapping, async_req=True) >>> result = thread.get() :param async_req bool :param str scraper_target_id: The scraper target ID. (required) :param LabelMapping label_mapping: Label to add (required) :param str zap_trace_span: OpenTracing span context :return: LabelResponse If the method is called asynchronously, returns the request thread. rbr LabelResponserr rTrrNr _post_scrapers_id_labels_preparerr r rrrrr"r#r$r%r&r r r rjs(   z>> thread = api.post_scrapers_id_members(scraper_target_id, add_resource_member_request_body, async_req=True) >>> result = thread.get() :param async_req bool :param str scraper_target_id: The scraper target ID. (required) :param AddResourceMemberRequestBody add_resource_member_request_body: User to add as member (required) :param str zap_trace_span: OpenTracing span context :return: ResourceMember If the method is called asynchronously, returns the request thread. Tr rN)r'post_scrapers_id_members_with_http_inforr add_resource_member_request_bodyrrr r r post_scrapers_id_memberss  z.ScraperTargetsService.post_scrapers_id_membersc Ksh|j||f|\}}}}}|jjdd||||gidg|d|d|dd|di|d d d S) aAdd a member to a scraper target. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.post_scrapers_id_members_with_http_info(scraper_target_id, add_resource_member_request_body, async_req=True) >>> result = thread.get() :param async_req bool :param str scraper_target_id: The scraper target ID. (required) :param AddResourceMemberRequestBody add_resource_member_request_body: User to add as member (required) :param str zap_trace_span: OpenTracing span context :return: ResourceMember If the method is called asynchronously, returns the request thread. rirResourceMemberrr rTrrNr!_post_scrapers_id_members_preparerr r rrrrr"r#r$r%r&r r r rs(   z=ScraperTargetsService.post_scrapers_id_members_with_http_infoc sn|j||f|\}}}}}|jjdd||||gidg|d|d|dd|di|d d d Id HS) aAdd a member to a scraper target. This method makes an asynchronous HTTP request. :param async_req bool :param str scraper_target_id: The scraper target ID. (required) :param AddResourceMemberRequestBody add_resource_member_request_body: User to add as member (required) :param str zap_trace_span: OpenTracing span context :return: ResourceMember If the method is called asynchronously, returns the request thread. rirrrr rTrrNrrrr r r post_scrapers_id_members_asyncs(   z4ScraperTargetsService.post_scrapers_id_members_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) Nrrr(rzZMissing the required parameter `scraper_target_id` when calling `post_scrapers_id_members`ziMissing the required parameter `add_resource_member_request_body` when calling `post_scrapers_id_members`r)r*r+r,r}r~ rrrrr"r3r#r$r%r&r r r r0s8     z7ScraperTargetsService._post_scrapers_id_members_preparecKs:d|d<|dr"|j||f|S|j||f|}|SdS)aAdd an owner to a scraper target. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.post_scrapers_id_owners(scraper_target_id, add_resource_member_request_body, async_req=True) >>> result = thread.get() :param async_req bool :param str scraper_target_id: The scraper target ID. (required) :param AddResourceMemberRequestBody add_resource_member_request_body: User to add as owner (required) :param str zap_trace_span: OpenTracing span context :return: ResourceOwner If the method is called asynchronously, returns the request thread. Tr rN)r&post_scrapers_id_owners_with_http_inforr r r post_scrapers_id_ownersUs  z-ScraperTargetsService.post_scrapers_id_ownersc Ksh|j||f|\}}}}}|jjdd||||gidg|d|d|dd|di|d d d S) aAdd an owner to a scraper target. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.post_scrapers_id_owners_with_http_info(scraper_target_id, add_resource_member_request_body, async_req=True) >>> result = thread.get() :param async_req bool :param str scraper_target_id: The scraper target ID. (required) :param AddResourceMemberRequestBody add_resource_member_request_body: User to add as owner (required) :param str zap_trace_span: OpenTracing span context :return: ResourceOwner If the method is called asynchronously, returns the request thread. rpr ResourceOwnerrr rTrrNr _post_scrapers_id_owners_preparerr rrr r r rls(   z__name__ __module__ __qualname____doc__rrrr'rr6r4r;r9r?r<rDrBrHrGrLrKrNrMrUrSr[rZr_r^rar`rfrerhrgrmrlrornrtrsrwrur|rzrrrrrrrrrrrrrrrr __classcell__r r r r rst# $!!$!!$!!&## # # # $!%# $!%$!%$!r)r __future__rreZ%influxdb_client.service._base_servicerrr r r r s