U wi@s(dZddlZddlZGdddeZdS)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@seZdZdZddddddZddddddZd%d d Zed d Zej dd ZeddZ e j ddZ eddZ e j ddZ eddZ e j ddZ eddZ e j ddZ ddZddZdd 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_idorgrrrZorgIDrNcCsfd|_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 discriminatorrrrrr)selfrrrrrr[/opt/alt/python38/lib/python3.8/site-packages/influxdb_client/domain/permission_resource.py__init__0szPermissionResource.__init__cCs|jS)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 rrrrrCs zPermissionResource.typecCs|dkrtd||_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 )rrrrrrNs cCs|jS)zGet the id of this PermissionResource. A resource ID. Identifies a specific resource. :return: The id of this PermissionResource. :rtype: str r rrrrr[s zPermissionResource.idcCs ||_dS)zSet the id of this PermissionResource. A resource ID. Identifies a specific resource. :param id: The id of this PermissionResource. :type: str Nr)rrrrrrfs cCs|jS)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 rrrrrqs zPermissionResource.namecCs ||_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)rrrrrr|s cCs|jS)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 rrrrrs zPermissionResource.org_idcCs ||_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)rrrrrrs cCs|jS)zGet the org of this PermissionResource. An organization name. The organization that owns the resource. :return: The org of this PermissionResource. :rtype: str r rrrrrs zPermissionResource.orgcCs ||_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)rrrrrrs cCsi}|jD]z\}}t||}t|trBttdd|||<qt|drZ|||<qt|trttdd|||<q|||<q|S)z&Return the model properties as a dict.cSst|dr|S|S)Nto_dicthasattrr)xrrrz,PermissionResource.to_dict..rcSs&t|ddr"|d|dfS|S)Nrrr)itemrrrrs ) openapi_typesitemsgetattr isinstancelistmaprrdict)rresultattr_valuerrrrs"       zPermissionResource.to_dictcCst|S)z.Return the string representation of the model.)pprintpformatrrrrrto_strszPermissionResource.to_strcCs|S)zFor `print` and `pprint`.)r-rrrr__repr__szPermissionResource.__repr__cCst|tsdS|j|jkS)z&Return true if both objects are equal.F)r#r__dict__rotherrrr__eq__s zPermissionResource.__eq__cCs ||k S)z*Return true if both objects are not equal.rr0rrr__ne__szPermissionResource.__ne__)NNNNN)__name__ __module__ __qualname____doc__r Z attribute_maprpropertyrsetterrrrrrr-r.r2r3rrrrrsN            r)r7r+reobjectrrrrrs