U vi @ s4 d Z ddlZddlZddlmZ G 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 N)AuthorizationUpdateRequestc @ s e Zd ZdZddddddZddddd dZd!dd Zedd Zej dd Zedd Z e j dd Z edd Zej dd Zdd Zdd Z dd Zdd Zdd 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_idpermissionsstatusdescriptionZorgIDZuserIDr r r Nactivec C sV t j| ||d d| _d| _d| _d| _|dk r6|| _|dk rD|| _|dk rR|| _dS )z6AuthorizationPostRequest - a model defined in OpenAPI.)r r N) r __init___org_id_user_id_permissionsZ discriminatorr r r )selfr r r r r r b/opt/alt/python38/lib/python3.8/site-packages/influxdb_client/domain/authorization_post_request.pyr 2 s z!AuthorizationPostRequest.__init__c C s | j S )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 r r r r r B s zAuthorizationPostRequest.org_idc C s || _ 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 )r r r r r r M s c C s | j S )az Get 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 r r r r r X s z AuthorizationPostRequest.user_idc C s || _ dS )a Set 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 )r r r r r r c s c C s | j S )a Get 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] r r r r r r n s z$AuthorizationPostRequest.permissionsc C s || _ dS )a Set 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 )r r r r r r y s c C s i }| j D ]z\}}t| |}t|trBttdd |||<