U vâ’iÛ-ã@s4dZddlZddlZddlmZGdd„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 éN)ÚAuthorizationUpdateRequestc @s‚eZdZdZdddddddddddddœ Zddd d d d d ddddddœ Zd?dd„Zedd„ƒZej dd„ƒZedd„ƒZ e j dd„ƒZ edd„ƒZ e j dd„ƒZ ed d!„ƒZ e j d"d!„ƒZ ed#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„ƒZed2d3„ƒZej d4d3„ƒZd5d6„Zd7d8„Zd9d:„Zd;d<„Zd=d>„ZdS)@Ú Authorizationz‹NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. ÚdatetimeÚstrzlist[Permission]Úobject) Ú created_atÚ updated_atÚorg_idÚ permissionsÚidÚtokenÚuser_idÚuserÚorgÚlinksÚstatusÚ descriptionZ createdAtZ updatedAtZorgIDr r r ZuserIDrrrrrNÚactivec Cstj|| | dd|_d|_d|_d|_d|_d|_d|_d|_ d|_ d|_ d|_ |dk r`||_ |dk rn||_|dk rŽt|tƒsˆtdƒ‚||_|dk r®t|tƒs¨tdƒ‚||_|dk r¼||_|dk rÊ||_|dk rØ||_|dk ræ||_| dk rô| |_| dk r| |_dS)z+Authorization - a model defined in OpenAPI.)rrNzorg_id must be a string.zpermissions must be a list.)rÚ__init__Ú _created_atÚ _updated_atÚ_org_idÚ _permissionsÚ_idÚ_tokenÚ_user_idÚ_userÚ_orgÚ_linksZ discriminatorrrÚ isinstancerÚ TypeErrorr Úlistr r r r rrr) Úselfrrr r r r r rrrrr©r#úU/opt/alt/python38/lib/python3.8/site-packages/influxdb_client/domain/authorization.pyr@sH   zAuthorization.__init__cCs|jS)zƒGet the created_at of this Authorization. :return: The created_at of this Authorization. :rtype: datetime ©r©r"r#r#r$riszAuthorization.created_atcCs ||_dS)zŒSet the created_at of this Authorization. :param created_at: The created_at of this Authorization. :type: datetime Nr%)r"rr#r#r$rrscCs|jS)zƒGet the updated_at of this Authorization. :return: The updated_at of this Authorization. :rtype: datetime ©rr&r#r#r$r{szAuthorization.updated_atcCs ||_dS)zŒSet the updated_at of this Authorization. :param updated_at: The updated_at of this Authorization. :type: datetime Nr')r"rr#r#r$r„scCs|jS)a$Get the org_id of this Authorization. The organization ID. Specifies the [organization](https://docs.influxdata.com/influxdb/latest/reference/glossary/#organization) that the authorization is scoped to. :return: The org_id of this Authorization. :rtype: str ©rr&r#r#r$r s zAuthorization.org_idcCs ||_dS)a)Set the org_id of this Authorization. The organization ID. Specifies the [organization](https://docs.influxdata.com/influxdb/latest/reference/glossary/#organization) that the authorization is scoped to. :param org_id: The org_id of this Authorization. :type: str Nr()r"r r#r#r$r ˜s cCs|jS)zãGet the permissions of this Authorization. The list of permissions. An authorization must have at least one permission. :return: The permissions of this Authorization. :rtype: list[Permission] ©rr&r#r#r$r £s zAuthorization.permissionscCs ||_dS)zíSet the permissions of this Authorization. The list of permissions. An authorization must have at least one permission. :param permissions: The permissions of this Authorization. :type: list[Permission] Nr))r"r r#r#r$r ®s cCs|jS)zGet the id of this Authorization. The authorization ID. :return: The id of this Authorization. :rtype: str ©rr&r#r#r$r ¹s zAuthorization.idcCs ||_dS)zŽSet the id of this Authorization. The authorization ID. :param id: The id of this Authorization. :type: str Nr*)r"r r#r#r$r Äs cCs|jS)açGet the token of this Authorization. The API token. The token value is unique to the authorization. [API tokens](https://docs.influxdata.com/influxdb/latest/reference/glossary/#token) are used to authenticate and authorize InfluxDB API requests and `influx` CLI commands--after receiving the request, InfluxDB checks that the token is valid and that the `permissions` allow the requested action(s). :return: The token of this Authorization. :rtype: str ©rr&r#r#r$r Ïs zAuthorization.tokencCs ||_dS)aëSet the token of this Authorization. The API token. The token value is unique to the authorization. [API tokens](https://docs.influxdata.com/influxdb/latest/reference/glossary/#token) are used to authenticate and authorize InfluxDB API requests and `influx` CLI commands--after receiving the request, InfluxDB checks that the token is valid and that the `permissions` allow the requested action(s). :param token: The token of this Authorization. :type: str Nr+)r"r r#r#r$r Ús cCs|jS)anGet the user_id of this Authorization. The user ID. Specifies the [user](https://docs.influxdata.com/influxdb/latest/reference/glossary/#user) that owns the authorization. If _scoped_, the user that the authorization is scoped to; otherwise, the creator of the authorization. :return: The user_id of this Authorization. :rtype: str ©rr&r#r#r$r ås zAuthorization.user_idcCs ||_dS)atSet the user_id of this Authorization. The user ID. Specifies the [user](https://docs.influxdata.com/influxdb/latest/reference/glossary/#user) that owns the authorization. If _scoped_, the user that the authorization is scoped to; otherwise, the creator of the authorization. :param user_id: The user_id of this Authorization. :type: str Nr,)r"r r#r#r$r ðs cCs|jS)aeGet the user of this Authorization. The user name. Specifies the [user](https://docs.influxdata.com/influxdb/latest/reference/glossary/#user) that owns the authorization. If the authorization is _scoped_ to a user, the user; otherwise, the creator of the authorization. :return: The user of this Authorization. :rtype: str ©rr&r#r#r$rûs zAuthorization.usercCs ||_dS)ahSet the user of this Authorization. The user name. Specifies the [user](https://docs.influxdata.com/influxdb/latest/reference/glossary/#user) that owns the authorization. If the authorization is _scoped_ to a user, the user; otherwise, the creator of the authorization. :param user: The user of this Authorization. :type: str Nr-)r"rr#r#r$rs cCs|jS)aGet the org of this Authorization. The organization name. Specifies the [organization](https://docs.influxdata.com/influxdb/latest/reference/glossary/#organization) that the token is scoped to. :return: The org of this Authorization. :rtype: str ©rr&r#r#r$rs zAuthorization.orgcCs ||_dS)aSet the org of this Authorization. The organization name. Specifies the [organization](https://docs.influxdata.com/influxdb/latest/reference/glossary/#organization) that the token is scoped to. :param org: The org of this Authorization. :type: str Nr.)r"rr#r#r$rs cCs|jS)zwGet the links of this Authorization. :return: The links of this Authorization. :rtype: object ©rr&r#r#r$r'szAuthorization.linkscCs ||_dS)z{Set the links of this Authorization. :param links: The links of this Authorization. :type: object Nr/)r"rr#r#r$r0scCsŽi}|j ¡D]z\}}t||ƒ}t|tƒrBttdd„|ƒƒ||<qt|dƒrZ| ¡||<qt|tƒr€ttdd„| ¡ƒƒ||<q|||<q|S)z&Return the model properties as a dict.cSst|dƒr| ¡S|S)NÚto_dict©Úhasattrr0)Úxr#r#r$ÚAóz'Authorization.to_dict..r0cSs&t|ddƒr"|d|d ¡fS|S)Nér0rr1)Úitemr#r#r$r4Hs ÿ) Ú openapi_typesÚitemsÚgetattrrr!Úmapr2r0Údict)r"ÚresultÚattrÚ_Úvaluer#r#r$r09s"  þ   ý  zAuthorization.to_dictcCst | ¡¡S)z.Return the string representation of the model.)ÚpprintÚpformatr0r&r#r#r$Úto_strQszAuthorization.to_strcCs| ¡S)zFor `print` and `pprint`.)rCr&r#r#r$Ú__repr__UszAuthorization.__repr__cCst|tƒsdS|j|jkS)z&Return true if both objects are equal.F)rrÚ__dict__©r"Úotherr#r#r$Ú__eq__Ys zAuthorization.__eq__cCs ||k S)z*Return true if both objects are not equal.r#rFr#r#r$Ú__ne__`szAuthorization.__ne__) NNNNNNNNNNrN)Ú__name__Ú __module__Ú __qualname__Ú__doc__r8Z attribute_maprÚpropertyrÚsetterrr r r r r rrrr0rCrDrHrIr#r#r#r$rs’ôô )                    r)rMrAÚreZ3influxdb_client.domain.authorization_update_requestrrr#r#r#r$Ús