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 ZdZddddddZddddddZd%d dZedd Zej dd Zedd Z e j dd Z edd Zej dd Zedd Zej dd Zedd Z e j dd Z dd Zdd Zdd Zd!d" Zd#d$ Zd S )&PermissionResourcezNOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. str)typeidnameorg_idorgr r r ZorgIDr Nc C sf d| _ d| _d| _d| _d| _d| _|| _|dk r8|| _|dk rF|| _|dk rT|| _ |dk rb|| _ dS )z0PermissionResource - a model defined in OpenAPI.N)_type_id_name_org_id_orgZ discriminatorr r r r r )selfr r r r r r [/opt/alt/python38/lib/python3.8/site-packages/influxdb_client/domain/permission_resource.py__init__0 s zPermissionResource.__init__c C s | j S )zGet the type of this PermissionResource. A resource type. Identifies the API resource's type (or _kind_). :return: The type of this PermissionResource. :rtype: str )r r r r r r C s zPermissionResource.typec C s |dkrt d|| _dS )zSet the type of this PermissionResource. A resource type. Identifies the API resource's type (or _kind_). :param type: The type of this PermissionResource. :type: str Nz,Invalid value for `type`, must not be `None`) ValueErrorr )r r r r r r N s c C s | j S )zGet the id of this PermissionResource. A resource ID. Identifies a specific resource. :return: The id of this PermissionResource. :rtype: str r r r r r r [ s zPermissionResource.idc C s || _ dS )zSet the id of this PermissionResource. A resource ID. Identifies a specific resource. :param id: The id of this PermissionResource. :type: str Nr )r r r r r r f s c C s | j S )zGet the name of this PermissionResource. The name of the resource. _Note: not all resource types have a `name` property_. :return: The name of this PermissionResource. :rtype: str r r r r r r q s zPermissionResource.namec C s || _ dS )zSet the name of this PermissionResource. The name of the resource. _Note: not all resource types have a `name` property_. :param name: The name of this PermissionResource. :type: str Nr )r r r r r r | s c C s | j S )zGet the org_id of this PermissionResource. An organization ID. Identifies the organization that owns the resource. :return: The org_id of this PermissionResource. :rtype: str r r r r r r s zPermissionResource.org_idc C s || _ dS )zSet the org_id of this PermissionResource. An organization ID. Identifies the organization that owns the resource. :param org_id: The org_id of this PermissionResource. :type: str Nr )r r r r r r s c C s | j S )zGet the org of this PermissionResource. An organization name. The organization that owns the resource. :return: The org of this PermissionResource. :rtype: str r r r r r r s zPermissionResource.orgc C s || _ dS )zSet the org of this PermissionResource. An organization name. The organization that owns the resource. :param org: The org of this PermissionResource. :type: str Nr )r r r r r r s c C s i }| j D ]z\}}t| |}t|trBttdd |||<