U wâ’ikÌã@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)Ú _BaseServicecs"eZdZdZdE‡fdd„ Zdd„Zdd„Zd d „Zd d „Zd d„Z dd„Z dd„Z dd„Z dd„Z dd„Zdd„Zdd„Zdd„Zdd „Zd!d"„Zd#d$„Zd%d&„Zd'd(„Zd)d*„Zd+d,„Zd-d.„Zd/d0„Zd1d2„Zd3d4„Zd5d6„Zd7d8„Zd9d:„Zd;d<„Z d=d>„Z!d?d@„Z"dAdB„Z#dCdD„Z$‡Z%S)FÚTemplatesServicez‹NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. Ncstƒ |¡dS)z2TemplatesService - a operation defined in OpenAPI.N)ÚsuperÚ__init__)ÚselfÚ api_client©Ú __class__©úZ/opt/alt/python38/lib/python3.8/site-packages/influxdb_client/service/templates_service.pyrszTemplatesService.__init__cKs6d|d<| d¡r |j|f|ŽS|j|f|Ž}|SdS)uò Apply or dry-run a template. Applies a template to create or update a [stack](https://docs.influxdata.com/influxdb/latest/influxdb-templates/stacks/) of InfluxDB [resources](https://docs.influxdata.com/influxdb/latest/reference/cli/influx/export/all/#resources). The response contains the diff of changes and the stack ID. Use this endpoint to install an InfluxDB template to an organization. Provide template URLs or template objects in your request. To customize which template resources are installed, use the `actions` parameter. By default, when you apply a template, InfluxDB installs the template to create and update stack resources and then generates a diff of the changes. If you pass `dryRun: true` in the request body, InfluxDB validates the template and generates the resource diff, but doesn’t make any changes to your instance. #### Custom values for templates - Some templates may contain [environment references](https://docs.influxdata.com/influxdb/latest/influxdb-templates/create/#include-user-definable-resource-names) for custom metadata. To provide custom values for environment references, pass the _`envRefs`_ property in the request body. For more information and examples, see how to [define environment references](https://docs.influxdata.com/influxdb/latest/influxdb-templates/use/#define-environment-references). - Some templates may contain queries that use [secrets](https://docs.influxdata.com/influxdb/latest/security/secrets/). To provide custom secret values, pass the _`secrets`_ property in the request body. Don't expose secret values in templates. For more information, see [how to pass secrets when installing a template](https://docs.influxdata.com/influxdb/latest/influxdb-templates/use/#pass-secrets-when-installing-a-template). #### Required permissions - `write` permissions for resource types in the template. #### Rate limits (with InfluxDB Cloud) - Adjustable service quotas apply. For more information, see [limits and adjustable quotas](https://docs.influxdata.com/influxdb/cloud/account-management/limits/). #### Related guides - [Use templates](https://docs.influxdata.com/influxdb/latest/influxdb-templates/use/) - [Stacks](https://docs.influxdata.com/influxdb/latest/influxdb-templates/stacks/) This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.apply_template(template_apply, async_req=True) >>> result = thread.get() :param async_req bool :param TemplateApply template_apply: Parameters for applying templates. (required) :return: TemplateSummary If the method is called asynchronously, returns the request thread. TÚ_return_http_data_onlyÚ async_reqN)ÚgetÚapply_template_with_http_info)rÚtemplate_applyÚkwargsÚdatar r r Úapply_template s  zTemplatesService.apply_templatecKsf|j|f|Ž\}}}}}|jjdd||||gidg| d¡| d¡| dd¡| d¡i| d d ¡d S) u Apply or dry-run a template. Applies a template to create or update a [stack](https://docs.influxdata.com/influxdb/latest/influxdb-templates/stacks/) of InfluxDB [resources](https://docs.influxdata.com/influxdb/latest/reference/cli/influx/export/all/#resources). The response contains the diff of changes and the stack ID. Use this endpoint to install an InfluxDB template to an organization. Provide template URLs or template objects in your request. To customize which template resources are installed, use the `actions` parameter. By default, when you apply a template, InfluxDB installs the template to create and update stack resources and then generates a diff of the changes. If you pass `dryRun: true` in the request body, InfluxDB validates the template and generates the resource diff, but doesn’t make any changes to your instance. #### Custom values for templates - Some templates may contain [environment references](https://docs.influxdata.com/influxdb/latest/influxdb-templates/create/#include-user-definable-resource-names) for custom metadata. To provide custom values for environment references, pass the _`envRefs`_ property in the request body. For more information and examples, see how to [define environment references](https://docs.influxdata.com/influxdb/latest/influxdb-templates/use/#define-environment-references). - Some templates may contain queries that use [secrets](https://docs.influxdata.com/influxdb/latest/security/secrets/). To provide custom secret values, pass the _`secrets`_ property in the request body. Don't expose secret values in templates. For more information, see [how to pass secrets when installing a template](https://docs.influxdata.com/influxdb/latest/influxdb-templates/use/#pass-secrets-when-installing-a-template). #### Required permissions - `write` permissions for resource types in the template. #### Rate limits (with InfluxDB Cloud) - Adjustable service quotas apply. For more information, see [limits and adjustable quotas](https://docs.influxdata.com/influxdb/cloud/account-management/limits/). #### Related guides - [Use templates](https://docs.influxdata.com/influxdb/latest/influxdb-templates/use/) - [Stacks](https://docs.influxdata.com/influxdb/latest/influxdb-templates/stacks/) This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.apply_template_with_http_info(template_apply, async_req=True) >>> result = thread.get() :param async_req bool :param TemplateApply template_apply: Parameters for applying templates. (required) :return: TemplateSummary If the method is called asynchronously, returns the request thread. ú/api/v2/templates/applyÚPOSTÚTemplateSummaryrr Ú_preload_contentTÚ_request_timeoutÚ urlopen_kwN© ÚbodyZ post_paramsÚfilesZ response_typeZ auth_settingsrr rrZcollection_formatsr©Ú_apply_template_preparerÚcall_apir©rrrÚlocal_var_paramsÚ path_paramsÚ query_paramsÚ header_paramsÚ body_paramsr r r r6s( ÿ   ñz.TemplatesService.apply_template_with_http_infocËsl|j|f|Ž\}}}}}|jjdd||||gidg| d¡| d¡| dd¡| d¡i| d d ¡d Id HS) u6 Apply or dry-run a template. Applies a template to create or update a [stack](https://docs.influxdata.com/influxdb/latest/influxdb-templates/stacks/) of InfluxDB [resources](https://docs.influxdata.com/influxdb/latest/reference/cli/influx/export/all/#resources). The response contains the diff of changes and the stack ID. Use this endpoint to install an InfluxDB template to an organization. Provide template URLs or template objects in your request. To customize which template resources are installed, use the `actions` parameter. By default, when you apply a template, InfluxDB installs the template to create and update stack resources and then generates a diff of the changes. If you pass `dryRun: true` in the request body, InfluxDB validates the template and generates the resource diff, but doesn’t make any changes to your instance. #### Custom values for templates - Some templates may contain [environment references](https://docs.influxdata.com/influxdb/latest/influxdb-templates/create/#include-user-definable-resource-names) for custom metadata. To provide custom values for environment references, pass the _`envRefs`_ property in the request body. For more information and examples, see how to [define environment references](https://docs.influxdata.com/influxdb/latest/influxdb-templates/use/#define-environment-references). - Some templates may contain queries that use [secrets](https://docs.influxdata.com/influxdb/latest/security/secrets/). To provide custom secret values, pass the _`secrets`_ property in the request body. Don't expose secret values in templates. For more information, see [how to pass secrets when installing a template](https://docs.influxdata.com/influxdb/latest/influxdb-templates/use/#pass-secrets-when-installing-a-template). #### Required permissions - `write` permissions for resource types in the template. #### Rate limits (with InfluxDB Cloud) - Adjustable service quotas apply. For more information, see [limits and adjustable quotas](https://docs.influxdata.com/influxdb/cloud/account-management/limits/). #### Related guides - [Use templates](https://docs.influxdata.com/influxdb/latest/influxdb-templates/use/) - [Stacks](https://docs.influxdata.com/influxdb/latest/influxdb-templates/stacks/) This method makes an asynchronous HTTP request. :param async_req bool :param TemplateApply template_apply: Parameters for applying templates. (required) :return: TemplateSummary If the method is called asynchronously, returns the request thread. rrrrr rTrrNrrr!r r r Úapply_template_asyncYs( ÿ   ñz%TemplatesService.apply_template_asyncc KsŒtƒ}dg}| d||¡d|ks.|ddkr6tdƒ‚i}g}i}d}d|krV|d}|j dg¡|d<|j dddg¡|d<|||||fS) NrrzMMissing the required parameter `template_apply` when calling `apply_template`úapplication/jsonÚAcceptzapplication/x-jsonnetztext/ymlú Content-Type©ÚlocalsÚ_check_operation_paramsÚ ValueErrorrÚselect_header_acceptÚselect_header_content_type) rrrr"Ú all_paramsr#r$r%r&r r r rys( ÿÿÿz(TemplatesService._apply_template_preparecKs2d|d<| d¡r|jf|ŽS|jf|Ž}|SdS)asCreate a stack. Creates or initializes a stack. Use this endpoint to _manually_ initialize a new stack with the following optional information: - Stack name - Stack description - URLs for template manifest files To automatically create a stack when applying templates, use the [/api/v2/templates/apply endpoint](#operation/ApplyTemplate). #### Required permissions - `write` permission for the organization #### Related guides - [Initialize an InfluxDB stack](https://docs.influxdata.com/influxdb/latest/influxdb-templates/stacks/init/). - [Use InfluxDB templates](https://docs.influxdata.com/influxdb/latest/influxdb-templates/use/#apply-templates-to-an-influxdb-instance). This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_stack(async_req=True) >>> result = thread.get() :param async_req bool :param PostStackRequest post_stack_request: :return: Stack If the method is called asynchronously, returns the request thread. Tr rN)rÚcreate_stack_with_http_info©rrrr r r Ú create_stack–s    zTemplatesService.create_stackcKsd|jf|Ž\}}}}}|jjdd||||gidg| d¡| d¡| dd¡| d¡i| d d ¡d S) a‚Create a stack. Creates or initializes a stack. Use this endpoint to _manually_ initialize a new stack with the following optional information: - Stack name - Stack description - URLs for template manifest files To automatically create a stack when applying templates, use the [/api/v2/templates/apply endpoint](#operation/ApplyTemplate). #### Required permissions - `write` permission for the organization #### Related guides - [Initialize an InfluxDB stack](https://docs.influxdata.com/influxdb/latest/influxdb-templates/stacks/init/). - [Use InfluxDB templates](https://docs.influxdata.com/influxdb/latest/influxdb-templates/use/#apply-templates-to-an-influxdb-instance). This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_stack_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool :param PostStackRequest post_stack_request: :return: Stack If the method is called asynchronously, returns the request thread. ú/api/v2/stacksrÚStackrr rTrrNr©Ú_create_stack_preparerr r©rrr"r#r$r%r&r r r r2¬s( ÿ   ñz,TemplatesService.create_stack_with_http_infocËsj|jf|Ž\}}}}}|jjdd||||gidg| d¡| d¡| dd¡| d¡i| d d ¡d Id HS) aÉCreate a stack. Creates or initializes a stack. Use this endpoint to _manually_ initialize a new stack with the following optional information: - Stack name - Stack description - URLs for template manifest files To automatically create a stack when applying templates, use the [/api/v2/templates/apply endpoint](#operation/ApplyTemplate). #### Required permissions - `write` permission for the organization #### Related guides - [Initialize an InfluxDB stack](https://docs.influxdata.com/influxdb/latest/influxdb-templates/stacks/init/). - [Use InfluxDB templates](https://docs.influxdata.com/influxdb/latest/influxdb-templates/use/#apply-templates-to-an-influxdb-instance). This method makes an asynchronous HTTP request. :param async_req bool :param PostStackRequest post_stack_request: :return: Stack If the method is called asynchronously, returns the request thread. r5rr6rr rTrrNrr7r9r r r Úcreate_stack_asyncÏs( ÿ   ñz#TemplatesService.create_stack_asynccKsltƒ}dg}| d||¡i}g}i}d}d|kr:|d}|j dg¡|d<|j dg¡|d<|||||fS)NZpost_stack_requestr4r(r)r*©r,r-rr/r0©rrr"r1r#r$r%r&r r r r8ïs ÿÿz&TemplatesService._create_stack_preparecKs:d|d<| d¡r"|j||f|ŽS|j||f|Ž}|SdS)aPDelete a stack and associated resources. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_stack(stack_id, org_id, async_req=True) >>> result = thread.get() :param async_req bool :param str stack_id: The identifier of the stack. (required) :param str org_id: The identifier of the organization. (required) :return: None If the method is called asynchronously, returns the request thread. Tr rN)rÚdelete_stack_with_http_info)rÚstack_idÚorg_idrrr r r Ú delete_stacks  zTemplatesService.delete_stackc Ksh|j||f|Ž\}}}}}|jjdd||||gidg| d¡| d¡| dd¡| d¡i| d d¡d S) a_Delete a stack and associated resources. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_stack_with_http_info(stack_id, org_id, async_req=True) >>> result = thread.get() :param async_req bool :param str stack_id: The identifier of the stack. (required) :param str org_id: The identifier of the organization. (required) :return: None If the method is called asynchronously, returns the request thread. ú/api/v2/stacks/{stack_id}ÚDELETENrr rTrrr©Ú_delete_stack_preparerr r© rr>r?rr"r#r$r%r&r r r r=s(ÿ   ñz,TemplatesService.delete_stack_with_http_infoc Ësn|j||f|Ž\}}}}}|jjdd||||gidg| d¡| d¡| dd¡| d¡i| d d¡d IdHS) a”Delete a stack and associated resources. This method makes an asynchronous HTTP request. :param async_req bool :param str stack_id: The identifier of the stack. (required) :param str org_id: The identifier of the organization. (required) :return: None If the method is called asynchronously, returns the request thread. rArBNrr rTrrrrCrEr r r Údelete_stack_asyncAs( ÿ   ñz#TemplatesService.delete_stack_asyncc Ks²tƒ}ddg}| d||¡d|ks0|ddkr8tdƒ‚d|ksL|ddkrTtdƒ‚i}d|krl|d|d<g}d|krŠ| d|df¡i}d} |j dg¡|d<||||| fS) Nr>r?r@zEMissing the required parameter `stack_id` when calling `delete_stack`zCMissing the required parameter `org_id` when calling `delete_stack`ÚorgIDr(r)©r,r-r.Úappendrr/) rr>r?rr"r1r#r$r%r&r r r rDas. ÿ ÿ ÿz&TemplatesService._delete_stack_preparecKs2d|d<| d¡r|jf|ŽS|jf|Ž}|SdS)a Export a new template. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.export_template(async_req=True) >>> result = thread.get() :param async_req bool :param TemplateExportByID template_export_by_id: Export resources as an InfluxDB template. :return: list[object] If the method is called asynchronously, returns the request thread. Tr rN)rÚexport_template_with_http_infor3r r r Úexport_template€s    z TemplatesService.export_templatecKsd|jf|Ž\}}}}}|jjdd||||gidg| d¡| d¡| dd¡| d¡i| d d ¡d S) aExport a new template. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.export_template_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool :param TemplateExportByID template_export_by_id: Export resources as an InfluxDB template. :return: list[object] If the method is called asynchronously, returns the request thread. ú/api/v2/templates/exportrú list[object]rr rTrrNr©Ú_export_template_preparerr rr9r r r rJ•s( ÿ   ñz/TemplatesService.export_template_with_http_infocËsj|jf|Ž\}}}}}|jjdd||||gidg| d¡| d¡| dd¡| d¡i| d d ¡d Id HS) a^Export a new template. This method makes an asynchronous HTTP request. :param async_req bool :param TemplateExportByID template_export_by_id: Export resources as an InfluxDB template. :return: list[object] If the method is called asynchronously, returns the request thread. rLrrMrr rTrrNrrNr9r r r Úexport_template_async·s( ÿ   ñz&TemplatesService.export_template_asynccKsntƒ}dg}| d||¡i}g}i}d}d|kr:|d}|j ddg¡|d<|j dg¡|d<|||||fS)NZtemplate_export_by_idrKr(zapplication/x-yamlr)r*r;r<r r r rOÖs ÿÿz)TemplatesService._export_template_preparecKs6d|d<| d¡r |j|f|ŽS|j|f|Ž}|SdS)anList installed stacks. Lists installed InfluxDB stacks. To limit stacks in the response, pass query parameters in your request. If no query parameters are passed, InfluxDB returns all installed stacks for the organization. #### Related guides - [View InfluxDB stacks](https://docs.influxdata.com/influxdb/latest/influxdb-templates/stacks/). This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_stacks(org_id, async_req=True) >>> result = thread.get() :param async_req bool :param str org_id: An organization ID. Only returns stacks owned by the specified [organization](https://docs.influxdata.com/influxdb/latest/reference/glossary/#organization). #### InfluxDB Cloud - Doesn't require this parameter; InfluxDB only returns resources allowed by the API token. (required) :param str name: A stack name. Finds stack `events` with this name and returns the stacks. Repeatable. To filter for more than one stack name, repeat this parameter with each name--for example: - `INFLUX_URL/api/v2/stacks?&orgID=INFLUX_ORG_ID&name=project-stack-0&name=project-stack-1` :param str stack_id: A stack ID. Only returns the specified stack. Repeatable. To filter for more than one stack ID, repeat this parameter with each ID--for example: - `INFLUX_URL/api/v2/stacks?&orgID=INFLUX_ORG_ID&stackID=09bd87cd33be3000&stackID=09bef35081fe3000` :return: ListStacksResponse If the method is called asynchronously, returns the request thread. Tr rN)rÚlist_stacks_with_http_info)rr?rrr r r Ú list_stacksïs  zTemplatesService.list_stackscKsf|j|f|Ž\}}}}}|jjdd||||gidg| d¡| d¡| dd¡| d¡i| d d ¡d S) a}List installed stacks. Lists installed InfluxDB stacks. To limit stacks in the response, pass query parameters in your request. If no query parameters are passed, InfluxDB returns all installed stacks for the organization. #### Related guides - [View InfluxDB stacks](https://docs.influxdata.com/influxdb/latest/influxdb-templates/stacks/). This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_stacks_with_http_info(org_id, async_req=True) >>> result = thread.get() :param async_req bool :param str org_id: An organization ID. Only returns stacks owned by the specified [organization](https://docs.influxdata.com/influxdb/latest/reference/glossary/#organization). #### InfluxDB Cloud - Doesn't require this parameter; InfluxDB only returns resources allowed by the API token. (required) :param str name: A stack name. Finds stack `events` with this name and returns the stacks. Repeatable. To filter for more than one stack name, repeat this parameter with each name--for example: - `INFLUX_URL/api/v2/stacks?&orgID=INFLUX_ORG_ID&name=project-stack-0&name=project-stack-1` :param str stack_id: A stack ID. Only returns the specified stack. Repeatable. To filter for more than one stack ID, repeat this parameter with each ID--for example: - `INFLUX_URL/api/v2/stacks?&orgID=INFLUX_ORG_ID&stackID=09bd87cd33be3000&stackID=09bef35081fe3000` :return: ListStacksResponse If the method is called asynchronously, returns the request thread. r5ÚGETÚListStacksResponserr rTrrNr©Ú_list_stacks_preparerr r©rr?rr"r#r$r%r&r r r rQs( ÿ   ñz+TemplatesService.list_stacks_with_http_infocËsl|j|f|Ž\}}}}}|jjdd||||gidg| d¡| d¡| dd¡| d¡i| d d ¡d Id HS) a½List installed stacks. Lists installed InfluxDB stacks. To limit stacks in the response, pass query parameters in your request. If no query parameters are passed, InfluxDB returns all installed stacks for the organization. #### Related guides - [View InfluxDB stacks](https://docs.influxdata.com/influxdb/latest/influxdb-templates/stacks/). This method makes an asynchronous HTTP request. :param async_req bool :param str org_id: An organization ID. Only returns stacks owned by the specified [organization](https://docs.influxdata.com/influxdb/latest/reference/glossary/#organization). #### InfluxDB Cloud - Doesn't require this parameter; InfluxDB only returns resources allowed by the API token. (required) :param str name: A stack name. Finds stack `events` with this name and returns the stacks. Repeatable. To filter for more than one stack name, repeat this parameter with each name--for example: - `INFLUX_URL/api/v2/stacks?&orgID=INFLUX_ORG_ID&name=project-stack-0&name=project-stack-1` :param str stack_id: A stack ID. Only returns the specified stack. Repeatable. To filter for more than one stack ID, repeat this parameter with each ID--for example: - `INFLUX_URL/api/v2/stacks?&orgID=INFLUX_ORG_ID&stackID=09bd87cd33be3000&stackID=09bef35081fe3000` :return: ListStacksResponse If the method is called asynchronously, returns the request thread. r5rSrTrr rTrrNrrUrWr r r Úlist_stacks_async,s( ÿ   ñz"TemplatesService.list_stacks_asyncc Ks¸tƒ}dddg}| d||¡d|ks2|ddkr:tdƒ‚i}g}d|kr\| d|df¡d|krv| d|df¡d|kr| d|df¡i}d}|j dg¡|d <|||||fS) Nr?Únamer>rRzBMissing the required parameter `org_id` when calling `list_stacks`rGZstackIDr(r)rH) rr?rr"r1r#r$r%r&r r r rVNs*  ÿÿz%TemplatesService._list_stacks_preparecKs6d|d<| d¡r |j|f|ŽS|j|f|Ž}|SdS)aæRetrieve a stack. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_stack(stack_id, async_req=True) >>> result = thread.get() :param async_req bool :param str stack_id: The identifier of the stack. (required) :return: Stack If the method is called asynchronously, returns the request thread. Tr rN)rÚread_stack_with_http_info©rr>rrr r r Ú read_stackks  zTemplatesService.read_stackcKsf|j|f|Ž\}}}}}|jjdd||||gidg| d¡| d¡| dd¡| d¡i| d d ¡d S) aõRetrieve a stack. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.read_stack_with_http_info(stack_id, async_req=True) >>> result = thread.get() :param async_req bool :param str stack_id: The identifier of the stack. (required) :return: Stack If the method is called asynchronously, returns the request thread. rArSr6rr rTrrNr©Ú_read_stack_preparerr r©rr>rr"r#r$r%r&r r r rZ€s( ÿ   ñz*TemplatesService.read_stack_with_http_infocËsl|j|f|Ž\}}}}}|jjdd||||gidg| d¡| d¡| dd¡| d¡i| d d ¡d Id HS) a4Retrieve a stack. This method makes an asynchronous HTTP request. :param async_req bool :param str stack_id: The identifier of the stack. (required) :return: Stack If the method is called asynchronously, returns the request thread. rArSr6rr rTrrNrr]r_r r r Úread_stack_async¢s( ÿ   ñz!TemplatesService.read_stack_asyncc Ksztƒ}dg}| d||¡d|ks.|ddkr6tdƒ‚i}d|krN|d|d<g}i}d}|j dg¡|d<|||||fS)Nr>r\zCMissing the required parameter `stack_id` when calling `read_stack`r(r)©r,r-r.rr/© rr>rr"r1r#r$r%r&r r r r^Ás" ÿ ÿz$TemplatesService._read_stack_preparecKs6d|d<| d¡r |j|f|ŽS|j|f|Ž}|SdS)aìUninstall a stack. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.uninstall_stack(stack_id, async_req=True) >>> result = thread.get() :param async_req bool :param str stack_id: The identifier of the stack. (required) :return: Stack If the method is called asynchronously, returns the request thread. Tr rN)rÚuninstall_stack_with_http_infor[r r r Úuninstall_stackÚs  z TemplatesService.uninstall_stackcKsf|j|f|Ž\}}}}}|jjdd||||gidg| d¡| d¡| dd¡| d¡i| d d ¡d S) aûUninstall a stack. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.uninstall_stack_with_http_info(stack_id, async_req=True) >>> result = thread.get() :param async_req bool :param str stack_id: The identifier of the stack. (required) :return: Stack If the method is called asynchronously, returns the request thread. ú#/api/v2/stacks/{stack_id}/uninstallrr6rr rTrrNr©Ú_uninstall_stack_preparerr rr_r r r rcïs( ÿ   ñz/TemplatesService.uninstall_stack_with_http_infocËsl|j|f|Ž\}}}}}|jjdd||||gidg| d¡| d¡| dd¡| d¡i| d d ¡d Id HS) a5Uninstall a stack. This method makes an asynchronous HTTP request. :param async_req bool :param str stack_id: The identifier of the stack. (required) :return: Stack If the method is called asynchronously, returns the request thread. rerr6rr rTrrNrrfr_r r r Úuninstall_stack_asyncs( ÿ   ñz&TemplatesService.uninstall_stack_asyncc Ksztƒ}dg}| d||¡d|ks.|ddkr6tdƒ‚i}d|krN|d|d<g}i}d}|j dg¡|d<|||||fS)Nr>rdzHMissing the required parameter `stack_id` when calling `uninstall_stack`r(r)rarbr r r rg0s" ÿ ÿz)TemplatesService._uninstall_stack_preparecKs6d|d<| d¡r |j|f|ŽS|j|f|Ž}|SdS)aUpdate a stack. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.update_stack(stack_id, async_req=True) >>> result = thread.get() :param async_req bool :param str stack_id: The identifier of the stack. (required) :param PatchStackRequest patch_stack_request: :return: Stack If the method is called asynchronously, returns the request thread. Tr rN)rÚupdate_stack_with_http_infor[r r r Ú update_stackIs  zTemplatesService.update_stackcKsf|j|f|Ž\}}}}}|jjdd||||gidg| d¡| d¡| dd¡| d¡i| d d ¡d S) a+Update a stack. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.update_stack_with_http_info(stack_id, async_req=True) >>> result = thread.get() :param async_req bool :param str stack_id: The identifier of the stack. (required) :param PatchStackRequest patch_stack_request: :return: Stack If the method is called asynchronously, returns the request thread. rAÚPATCHr6rr rTrrNr©Ú_update_stack_preparerr rr_r r r ri_s( ÿ   ñz,TemplatesService.update_stack_with_http_infocËsl|j|f|Ž\}}}}}|jjdd||||gidg| d¡| d¡| dd¡| d¡i| d d ¡d Id HS) ahUpdate a stack. This method makes an asynchronous HTTP request. :param async_req bool :param str stack_id: The identifier of the stack. (required) :param PatchStackRequest patch_stack_request: :return: Stack If the method is called asynchronously, returns the request thread. rArkr6rr rTrrNrrlr_r r r Úupdate_stack_async‚s( ÿ   ñz#TemplatesService.update_stack_asyncc Ksžtƒ}ddg}| d||¡d|ks0|ddkr8tdƒ‚i}d|krP|d|d<g}i}d}d|krl|d}|j dg¡|d<|j dg¡|d<|||||fS)Nr>Zpatch_stack_requestrjzEMissing the required parameter `stack_id` when calling `update_stack`r(r)r*r+rbr r r rm¢s, ÿ ÿÿz&TemplatesService._update_stack_prepare)N)&Ú__name__Ú __module__Ú __qualname__Ú__doc__rrrr'rr4r2r:r8r@r=rFrDrKrJrPrOrRrQrXrVr\rZr`r^rdrcrhrgrjrirnrmÚ __classcell__r r r r rsD# # # "%"""# r)rrÚ __future__rÚreZ%influxdb_client.service._base_servicerrr r r r Ús