| Server IP : 35.236.43.222 / Your IP : 216.73.216.143 Web Server : Apache System : Linux order-form-vm-001 5.10.0-37-cloud-amd64 #1 SMP Debian 5.10.247-1 (2025-12-11) x86_64 User : deploy ( 1002) PHP Version : 8.1.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /usr/lib/google-cloud-sdk/lib/googlecloudsdk/appengine/api/__pycache__/ |
Upload File : |
�
��h+ � � � d Z ddlmZ ddgZddlZddlmZ ddlmZ ddlm Z dd l
mZ G d
� de� � Z
G d� d
e
� � Z G d� de
� � Z G d� de
� � Z G d� de� � Z dd�ZeZdd�ZeZd� ZeZd� ZeZdS )zDThe User Python datastore class to be used as a datastore data type.� )�absolute_importz!jonmac@google.com (Jon McAlister)zryanb@google.com (Ryan Barrett)N)�
six_subset)�apiproxy_stub_map)�user_service_pb)�apiproxy_errorsc � � e Zd ZdZdS )�ErrorzBase User error type.N��__name__�
__module__�__qualname__�__doc__� � �)lib/googlecloudsdk/appengine/api/users.pyr r $ s � � � � � ����r r c � � e Zd ZdZdS )�UserNotFoundErrorz:No email argument was specified, and no user is logged in.Nr
r r r r r ( s � � � � � �B�B�B�Br r c � � e Zd ZdZdS )�RedirectTooLongErrorz(The generated redirect URL was too long.Nr
r r r r r , s � � � � � �0�0�0�0r r c � � e Zd ZdZdS )�NotAllowedErrorz*The requested redirect URL is not allowed.Nr
r r r r r 0 s � � � � � �2�2�2�2r r c �n � e Zd ZdZdZdZdZ dd�Zd� Zd� Z d� Z
d� Zd � Zd
� Z
d� Zd� Zd
� Zd� Zd� ZdS )�Usera� Provides the email address, nickname, and ID for a user.
A nickname is a human-readable string that uniquely identifies a Google user,
akin to a username. For some users, this nickname is an email address, but for
other users, a different nickname is used.
A user is a Google Accounts user.
`federated_identity` and `federated_provider` are decommissioned and should
not be used.
NTc �� � |�t j � d� � }|sJ �|��|��t j � d|� � }t j � d|� � }t j � d|� � }t j � d|� � }|�d}|s|s |rt �|| _ || _ || _ || _ |pd| _ dS )a� Constructor.
Args:
email: An optional string of the user's email address. It defaults to
the current user's email address.
federated_identity: Decommissioned, don't use.
federated_provider: Decommissioned, don't use.
Raises:
UserNotFoundError: If the user is not logged in and both `email` and
`federated_identity` are empty.
N�AUTH_DOMAIN�
USER_EMAIL�USER_ID�FEDERATED_IDENTITY�FEDERATED_PROVIDER� ) �os�environ�getr �_User__email�_User__federated_identity�_User__federated_provider�_User__auth_domain�_User__user_id)�self�email�_auth_domain�_user_id�federated_identity�federated_provider�_strict_modes r �__init__z
User.__init__I s� � �, ���Z�^�^�M�2�2�l����<��}�+�3��j�n�n�\�5�1�1�e����� �8�4�4�h��:�>�>�*>�*<�>� >���:�>�>�*>�*<�>� >��
�}��e�� �+� �� �
���D�L� 2�D�� 2�D��%�D���%��D�N�N�Nr c �� � | j rP| j rI| j � d| j z � � r't | j � � dz }| j d| � S | j r| j S | j S )a+ Returns the user's nickname.
The nickname will be a unique, human readable identifier for this user with
respect to this application. It will be an email address for some users,
and part of the email address for some users.
Returns:
The nickname of the user as a string.
�@� N)r$ r'