U wi @ s( d Z ddlZddlZG dd deZdS )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 ZdZdddddddddZdddd d ddd dZd4ddZedd Zej dd Zedd Z e j dd Z edd Zej dd Zedd Zej dd Zedd Z e j d d Z ed!d" Zej d#d" Zed$d% Zej d&d% Zed'd( Zej d)d( Zd*d+ Zd,d- Zd.d/ Zd0d1 Zd2d3 ZdS )5OrganizationzNOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. ZOrganizationLinksstrdatetime)linksidnamedefault_storage_typedescription created_at updated_atstatusr r r ZdefaultStorageTyper Z createdAtZ updatedAtr Nactivec C s d| _ d| _d| _d| _d| _d| _d| _d| _d| _|dk rD|| _ |dk rR|| _ || _|dk rf|| _|dk rt|| _ |dk r|| _|dk r|| _|dk r|| _dS )z*Organization - a model defined in OpenAPI.N)_links_id_name_default_storage_type_description_created_at_updated_at_statusZ discriminatorr r r r r r r r ) selfr r r r r r r r r T/opt/alt/python38/lib/python3.8/site-packages/influxdb_client/domain/organization.py__init__6 s0 zOrganization.__init__c C s | j S )zGet the links of this Organization. :return: The links of this Organization. :rtype: OrganizationLinks r r r r r r R s zOrganization.linksc C s || _ dS )zSet the links of this Organization. :param links: The links of this Organization. :type: OrganizationLinks Nr )r r r r r r [ s c C s | j S )zlGet the id of this Organization. :return: The id of this Organization. :rtype: str r r r r r r d s zOrganization.idc C s || _ dS )zmSet the id of this Organization. :param id: The id of this Organization. :type: str Nr )r r r r r r m s c C s | j S )zpGet the name of this Organization. :return: The name of this Organization. :rtype: str )r r r r r r v s zOrganization.namec C s |dkrt d|| _dS )zsSet the name of this Organization. :param name: The name of this Organization. :type: str Nz,Invalid value for `name`, must not be `None`) ValueErrorr )r r r r r r s c C s | j S )zGet the default_storage_type of this Organization. Discloses whether the organization uses TSM or IOx. :return: The default_storage_type of this Organization. :rtype: str r r r r r r s z!Organization.default_storage_typec C s || _ dS )zSet the default_storage_type of this Organization. Discloses whether the organization uses TSM or IOx. :param default_storage_type: The default_storage_type of this Organization. :type: str Nr )r r r r r r s c C s | j S )z~Get the description of this Organization. :return: The description of this Organization. :rtype: str r r r r r r s zOrganization.descriptionc C s || _ dS )zSet the description of this Organization. :param description: The description of this Organization. :type: str Nr )r r r r r r s c C s | j S )zGet the created_at of this Organization. :return: The created_at of this Organization. :rtype: datetime r r r r r r s zOrganization.created_atc C s || _ dS )zSet the created_at of this Organization. :param created_at: The created_at of this Organization. :type: datetime Nr )r r r r r r s c C s | j S )zGet the updated_at of this Organization. :return: The updated_at of this Organization. :rtype: datetime r r r r r r s zOrganization.updated_atc C s || _ dS )zSet the updated_at of this Organization. :param updated_at: The updated_at of this Organization. :type: datetime Nr! )r r r r r r s c C s | j S )zGet the status of this Organization. If inactive, the organization is inactive. :return: The status of this Organization. :rtype: str r r r r r r s zOrganization.statusc C s || _ dS )zSet the status of this Organization. If inactive, the organization is inactive. :param status: The status of this Organization. :type: str Nr" )r r r r r r s c C s i }| j D ]z\}}t| |}t|trBttdd |||<