registration, invite, and organization tokens (#820, #834)

This commit is contained in:
Michael Quigley
2025-02-04 14:35:23 -05:00
parent 598bfcc571
commit 3a08a840e3
36 changed files with 150 additions and 154 deletions

View File

@ -3,7 +3,7 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**token** | **str** | | [optional]
**organization_token** | **str** | | [optional]
**description** | **str** | | [optional]
**admin** | **bool** | | [optional]

View File

@ -3,7 +3,7 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**token** | **str** | | [optional]
**organization_token** | **str** | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -3,7 +3,7 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**tokens** | **list[str]** | | [optional]
**invite_tokens** | **list[str]** | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -3,7 +3,7 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**token** | **str** | | [optional]
**registration_token** | **str** | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -28,50 +28,50 @@ class InlineResponse2005Memberships(object):
and the value is json key in definition.
"""
swagger_types = {
'token': 'str',
'organization_token': 'str',
'description': 'str',
'admin': 'bool'
}
attribute_map = {
'token': 'token',
'organization_token': 'organizationToken',
'description': 'description',
'admin': 'admin'
}
def __init__(self, token=None, description=None, admin=None): # noqa: E501
def __init__(self, organization_token=None, description=None, admin=None): # noqa: E501
"""InlineResponse2005Memberships - a model defined in Swagger""" # noqa: E501
self._token = None
self._organization_token = None
self._description = None
self._admin = None
self.discriminator = None
if token is not None:
self.token = token
if organization_token is not None:
self.organization_token = organization_token
if description is not None:
self.description = description
if admin is not None:
self.admin = admin
@property
def token(self):
"""Gets the token of this InlineResponse2005Memberships. # noqa: E501
def organization_token(self):
"""Gets the organization_token of this InlineResponse2005Memberships. # noqa: E501
:return: The token of this InlineResponse2005Memberships. # noqa: E501
:return: The organization_token of this InlineResponse2005Memberships. # noqa: E501
:rtype: str
"""
return self._token
return self._organization_token
@token.setter
def token(self, token):
"""Sets the token of this InlineResponse2005Memberships.
@organization_token.setter
def organization_token(self, organization_token):
"""Sets the organization_token of this InlineResponse2005Memberships.
:param token: The token of this InlineResponse2005Memberships. # noqa: E501
:param organization_token: The organization_token of this InlineResponse2005Memberships. # noqa: E501
:type: str
"""
self._token = token
self._organization_token = organization_token
@property
def description(self):

View File

@ -28,40 +28,40 @@ class OrganizationListBody(object):
and the value is json key in definition.
"""
swagger_types = {
'token': 'str'
'organization_token': 'str'
}
attribute_map = {
'token': 'token'
'organization_token': 'organizationToken'
}
def __init__(self, token=None): # noqa: E501
def __init__(self, organization_token=None): # noqa: E501
"""OrganizationListBody - a model defined in Swagger""" # noqa: E501
self._token = None
self._organization_token = None
self.discriminator = None
if token is not None:
self.token = token
if organization_token is not None:
self.organization_token = organization_token
@property
def token(self):
"""Gets the token of this OrganizationListBody. # noqa: E501
def organization_token(self):
"""Gets the organization_token of this OrganizationListBody. # noqa: E501
:return: The token of this OrganizationListBody. # noqa: E501
:return: The organization_token of this OrganizationListBody. # noqa: E501
:rtype: str
"""
return self._token
return self._organization_token
@token.setter
def token(self, token):
"""Sets the token of this OrganizationListBody.
@organization_token.setter
def organization_token(self, organization_token):
"""Sets the organization_token of this OrganizationListBody.
:param token: The token of this OrganizationListBody. # noqa: E501
:param organization_token: The organization_token of this OrganizationListBody. # noqa: E501
:type: str
"""
self._token = token
self._organization_token = organization_token
def to_dict(self):
"""Returns the model properties as a dict"""

View File

@ -28,40 +28,40 @@ class TokenGenerateBody(object):
and the value is json key in definition.
"""
swagger_types = {
'tokens': 'list[str]'
'invite_tokens': 'list[str]'
}
attribute_map = {
'tokens': 'tokens'
'invite_tokens': 'inviteTokens'
}
def __init__(self, tokens=None): # noqa: E501
def __init__(self, invite_tokens=None): # noqa: E501
"""TokenGenerateBody - a model defined in Swagger""" # noqa: E501
self._tokens = None
self._invite_tokens = None
self.discriminator = None
if tokens is not None:
self.tokens = tokens
if invite_tokens is not None:
self.invite_tokens = invite_tokens
@property
def tokens(self):
"""Gets the tokens of this TokenGenerateBody. # noqa: E501
def invite_tokens(self):
"""Gets the invite_tokens of this TokenGenerateBody. # noqa: E501
:return: The tokens of this TokenGenerateBody. # noqa: E501
:return: The invite_tokens of this TokenGenerateBody. # noqa: E501
:rtype: list[str]
"""
return self._tokens
return self._invite_tokens
@tokens.setter
def tokens(self, tokens):
"""Sets the tokens of this TokenGenerateBody.
@invite_tokens.setter
def invite_tokens(self, invite_tokens):
"""Sets the invite_tokens of this TokenGenerateBody.
:param tokens: The tokens of this TokenGenerateBody. # noqa: E501
:param invite_tokens: The invite_tokens of this TokenGenerateBody. # noqa: E501
:type: list[str]
"""
self._tokens = tokens
self._invite_tokens = invite_tokens
def to_dict(self):
"""Returns the model properties as a dict"""

View File

@ -28,40 +28,40 @@ class VerifyBody(object):
and the value is json key in definition.
"""
swagger_types = {
'token': 'str'
'registration_token': 'str'
}
attribute_map = {
'token': 'token'
'registration_token': 'registrationToken'
}
def __init__(self, token=None): # noqa: E501
def __init__(self, registration_token=None): # noqa: E501
"""VerifyBody - a model defined in Swagger""" # noqa: E501
self._token = None
self._registration_token = None
self.discriminator = None
if token is not None:
self.token = token
if registration_token is not None:
self.registration_token = registration_token
@property
def token(self):
"""Gets the token of this VerifyBody. # noqa: E501
def registration_token(self):
"""Gets the registration_token of this VerifyBody. # noqa: E501
:return: The token of this VerifyBody. # noqa: E501
:return: The registration_token of this VerifyBody. # noqa: E501
:rtype: str
"""
return self._token
return self._registration_token
@token.setter
def token(self, token):
"""Sets the token of this VerifyBody.
@registration_token.setter
def registration_token(self, registration_token):
"""Sets the registration_token of this VerifyBody.
:param token: The token of this VerifyBody. # noqa: E501
:param registration_token: The registration_token of this VerifyBody. # noqa: E501
:type: str
"""
self._token = token
self._registration_token = registration_token
def to_dict(self):
"""Returns the model properties as a dict"""