U vi@s4dZddlZddlZddlmZGdddeZdS)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@seZdZdZddddddZddddd dZd!d d ZeddZej ddZeddZ e j ddZ eddZ e j ddZ ddZ ddZ ddZddZdd Zd S)"AuthorizationPostRequestzNOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. strzlist[Permission])org_iduser_id permissionsstatus descriptionZorgIDZuserIDrrr NactivecCsVtj|||dd|_d|_d|_d|_|dk r6||_|dk rD||_|dk rR||_dS)z6AuthorizationPostRequest - a model defined in OpenAPI.)rr N) r__init___org_id_user_id _permissionsZ discriminatorrrr)selfrrrrr rb/opt/alt/python38/lib/python3.8/site-packages/influxdb_client/domain/authorization_post_request.pyr 2sz!AuthorizationPostRequest.__init__cCs|jS)zGet the org_id of this AuthorizationPostRequest. An organization ID. Specifies the organization that owns the authorization. :return: The org_id of this AuthorizationPostRequest. :rtype: str r rrrrrBs zAuthorizationPostRequest.org_idcCs ||_dS)zSet the org_id of this AuthorizationPostRequest. An organization ID. Specifies the organization that owns the authorization. :param org_id: The org_id of this AuthorizationPostRequest. :type: str Nr)rrrrrrMs cCs|jS)azGet the user_id of this AuthorizationPostRequest. A user ID. Specifies the user that the authorization is scoped to. When a user authenticates with username and password, InfluxDB generates a _user session_ with all the permissions specified by all the user's authorizations. :return: The user_id of this AuthorizationPostRequest. :rtype: str r rrrrrXs z AuthorizationPostRequest.user_idcCs ||_dS)aSet the user_id of this AuthorizationPostRequest. A user ID. Specifies the user that the authorization is scoped to. When a user authenticates with username and password, InfluxDB generates a _user session_ with all the permissions specified by all the user's authorizations. :param user_id: The user_id of this AuthorizationPostRequest. :type: str Nr)rrrrrrcs cCs|jS)aGet the permissions of this AuthorizationPostRequest. A list of permissions for an authorization. In the list, provide at least one `permission` object. In a `permission`, the `resource.type` property grants access to all resources of the specified type. To grant access to only a specific resource, specify the `resource.id` property. :return: The permissions of this AuthorizationPostRequest. :rtype: list[Permission] rrrrrrns z$AuthorizationPostRequest.permissionscCs ||_dS)aSet the permissions of this AuthorizationPostRequest. A list of permissions for an authorization. In the list, provide at least one `permission` object. In a `permission`, the `resource.type` property grants access to all resources of the specified type. To grant access to only a specific resource, specify the `resource.id` property. :param permissions: The permissions of this AuthorizationPostRequest. :type: list[Permission] Nr)rrrrrrys 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)xrrrz2AuthorizationPostRequest.to_dict..rcSs&t|ddr"|d|dfS|S)Nrrr)itemrrrrs ) openapi_typesitemsgetattr isinstancelistmaprrdict)rresultattr_valuerrrrs"       z AuthorizationPostRequest.to_dictcCst|S)z.Return the string representation of the model.)pprintpformatrrrrrto_strszAuthorizationPostRequest.to_strcCs|S)zFor `print` and `pprint`.)r+rrrr__repr__sz!AuthorizationPostRequest.__repr__cCst|tsdS|j|jkS)z&Return true if both objects are equal.F)r!r__dict__rotherrrr__eq__s zAuthorizationPostRequest.__eq__cCs ||k S)z*Return true if both objects are not equal.rr.rrr__ne__szAuthorizationPostRequest.__ne__)NNNr N)__name__ __module__ __qualname____doc__rZ attribute_mapr propertyrsetterrrrr+r,r0r1rrrrrs>        r)r5r)reZ3influxdb_client.domain.authorization_update_requestrrrrrrs