diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2019-01-03 22:08:47 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2019-01-03 22:08:47 -0800 |
commit | ab4e1bbf2bb9bb67d6639b90a10970b54dd1aa03 (patch) | |
tree | 52f014e934471206baa51e3850ae5649d87787ab /python/fatcat_client | |
parent | 03df0b8a6d1285fa4aa17e6c4216dd2716a9ac47 (diff) | |
download | fatcat-ab4e1bbf2bb9bb67d6639b90a10970b54dd1aa03.tar.gz fatcat-ab4e1bbf2bb9bb67d6639b90a10970b54dd1aa03.zip |
allow passing prefered_username in oidc signup/login
Diffstat (limited to 'python/fatcat_client')
-rw-r--r-- | python/fatcat_client/models/auth_oidc.py | 33 |
1 files changed, 30 insertions, 3 deletions
diff --git a/python/fatcat_client/models/auth_oidc.py b/python/fatcat_client/models/auth_oidc.py index 871cc23d..1ee4c429 100644 --- a/python/fatcat_client/models/auth_oidc.py +++ b/python/fatcat_client/models/auth_oidc.py @@ -33,26 +33,30 @@ class AuthOidc(object): swagger_types = { 'provider': 'str', 'sub': 'str', - 'iss': 'str' + 'iss': 'str', + 'preferred_username': 'str' } attribute_map = { 'provider': 'provider', 'sub': 'sub', - 'iss': 'iss' + 'iss': 'iss', + 'preferred_username': 'preferred_username' } - def __init__(self, provider=None, sub=None, iss=None): # noqa: E501 + def __init__(self, provider=None, sub=None, iss=None, preferred_username=None): # noqa: E501 """AuthOidc - a model defined in Swagger""" # noqa: E501 self._provider = None self._sub = None self._iss = None + self._preferred_username = None self.discriminator = None self.provider = provider self.sub = sub self.iss = iss + self.preferred_username = preferred_username @property def provider(self): @@ -123,6 +127,29 @@ class AuthOidc(object): self._iss = iss + @property + def preferred_username(self): + """Gets the preferred_username of this AuthOidc. # noqa: E501 + + + :return: The preferred_username of this AuthOidc. # noqa: E501 + :rtype: str + """ + return self._preferred_username + + @preferred_username.setter + def preferred_username(self, preferred_username): + """Sets the preferred_username of this AuthOidc. + + + :param preferred_username: The preferred_username of this AuthOidc. # noqa: E501 + :type: str + """ + if preferred_username is None: + raise ValueError("Invalid value for `preferred_username`, must not be `None`") # noqa: E501 + + self._preferred_username = preferred_username + def to_dict(self): """Returns the model properties as a dict""" result = {} |