├── test
├── __init__.py
├── keys
│ └── private.pem
└── unit_tests.py
├── .swagger-codegen
└── VERSION
├── setup.cfg
├── .gitattributes
├── test-requirements.txt
├── linter.sh
├── requirements.txt
├── tox.ini
├── docusign_rooms
├── client
│ ├── auth
│ │ └── __init__.py
│ ├── __init__.py
│ └── api_exception.py
├── apis
│ └── __init__.py
└── models
│ ├── product_version.py
│ ├── listing_type.py
│ ├── account_status.py
│ ├── room_status.py
│ ├── access_level.py
│ ├── fields_custom_data_filter_type.py
│ ├── member_sorting_option.py
│ ├── roles_filter_context_types.py
│ ├── room_user_sorting_option.py
│ ├── nullable_field_data.py
│ ├── room_picture.py
│ ├── field_data.py
│ ├── global_states.py
│ ├── external_form_fill_session.py
│ ├── field_data_for_create.py
│ ├── field_data_for_update.py
│ ├── global_countries.py
│ ├── global_time_zones.py
│ ├── global_currencies.py
│ ├── envelope.py
│ ├── form_for_add.py
│ ├── form_group_for_create.py
│ ├── form_group_for_update.py
│ ├── locked_out_details.py
│ ├── global_contact_sides.py
│ ├── global_task_statuses.py
│ ├── global_activity_types.py
│ ├── global_property_types.py
│ ├── room_user_removal_detail.py
│ ├── designated_office.py
│ ├── designated_region.py
│ ├── global_task_date_types.py
│ ├── document_user_for_create.py
│ ├── global_financing_types.py
│ ├── global_origins_of_leads.py
│ ├── global_closing_statuses.py
│ ├── task_list_for_create.py
│ ├── global_transaction_sides.py
│ ├── task_list_summary_list.py
│ ├── global_room_contact_types.py
│ ├── region_reference_count_list.py
│ ├── office_reference_count_list.py
│ ├── user_for_update.py
│ ├── e_sign_account_role_settings.py
│ ├── e_sign_permission_profile_list.py
│ ├── global_seller_decision_types.py
│ ├── global_task_responsibility_types.py
│ ├── global_special_circumstance_types.py
│ ├── state.py
│ └── room_contact_type.py
├── .travis.yml
├── CHANGELOG.md
├── .gitignore
├── LICENSE
├── .swagger-codegen-ignore
├── setup.py
└── README.md
/test/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/.swagger-codegen/VERSION:
--------------------------------------------------------------------------------
1 | 2.4.21-SNAPSHOT
--------------------------------------------------------------------------------
/setup.cfg:
--------------------------------------------------------------------------------
1 | [metadata]
2 | description-file = README.md
3 |
--------------------------------------------------------------------------------
/.gitattributes:
--------------------------------------------------------------------------------
1 | # Auto detect text files and perform LF normalization
2 | * text=auto
3 |
--------------------------------------------------------------------------------
/test-requirements.txt:
--------------------------------------------------------------------------------
1 | coverage>=4.0.3
2 | nose>=1.3.7
3 | pluggy>=0.3.1
4 | py>=1.4.31
5 | randomize>=0.13
6 | tox
7 |
--------------------------------------------------------------------------------
/linter.sh:
--------------------------------------------------------------------------------
1 | autopep8 --in-place --aggressive --recursive docusign_esign && pycodestyle --ignore=E501,W504,W503 -v docusign_esign
--------------------------------------------------------------------------------
/requirements.txt:
--------------------------------------------------------------------------------
1 | certifi >= 14.05.14
2 | six >= 1.8.0
3 | python_dateutil >= 2.5.3
4 | setuptools >= 21.0.0
5 | urllib3 >= 1.15
6 | PyJWT>=1.7.1,<2
7 | cryptography>=2.5
8 | nose>=1.3.7
9 |
--------------------------------------------------------------------------------
/tox.ini:
--------------------------------------------------------------------------------
1 | [tox]
2 | envlist = py27, py3
3 |
4 | [testenv]
5 | deps=-r{toxinidir}/requirements.txt
6 | -r{toxinidir}/test-requirements.txt
7 |
8 | commands=
9 | nosetests -s \
10 | []
--------------------------------------------------------------------------------
/docusign_rooms/client/auth/__init__.py:
--------------------------------------------------------------------------------
1 | from __future__ import absolute_import
2 |
3 | # import auth modules into client package
4 | from .oauth import Account
5 | from .oauth import Organization
6 | from .oauth import Link
7 | from .oauth import OAuth
8 | from .oauth import OAuthToken
--------------------------------------------------------------------------------
/docusign_rooms/client/__init__.py:
--------------------------------------------------------------------------------
1 | from __future__ import absolute_import
2 |
3 | # import auth modules into client package
4 | from .auth.oauth import Account
5 | from .auth.oauth import Organization
6 | from .auth.oauth import Link
7 | from .auth.oauth import OAuth
8 | from .auth.oauth import OAuthToken
9 | from .auth.oauth import OAuthUserInfo
10 |
--------------------------------------------------------------------------------
/.travis.yml:
--------------------------------------------------------------------------------
1 | branches:
2 | only:
3 | - master
4 | language: python
5 | python:
6 | - "2.7"
7 | - "3.7"
8 | - "nightly" # points to the latest development branch e.g. 3.7-dev
9 | # command to install dependencies
10 | install:
11 | - pip install -r requirements.txt
12 | - pip install -r test-requirements.txt
13 | # command to run tests
14 | script: nosetests -s
15 |
--------------------------------------------------------------------------------
/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | # DocuSign Rooms Python Client Changelog
2 | All notable changes to this project will be documented in this file.
3 |
4 | See [DocuSign Support Center](https://support.docusign.com/en/releasenotes/) for Product Release Notes.
5 |
6 | ## [v1.3.0] - Rooms API v2-1.1.0 - 2023-01-30
7 | ### Changed
8 | - Added support for version v2-1.1.0 of the DocuSign Rooms API.
9 | - Updated the SDK release version.
10 |
11 | ## [1.2.0rc1] - Rooms API v2-1.0.9 - 2021-10-04
12 | ### Changed
13 | - Added support for version v2-1.0.9 of the DocuSign Rooms API.
14 | - Updated the SDK release version.
15 |
16 |
17 | ## [1.1.0] - Rooms API v2-1.0.8 - 2021-03-25
18 | ### Changed
19 | * Releasing GA version with PyJWT fixes
20 |
21 | ## [1.0.0] - Rooms API v2-1.0.7 - 2020-10-15
22 | ### Added
23 | * Added first version of the DocuSign Rooms API.
24 |
25 | ## [1.0.0b1] - Rooms API v2-1.0.7 - 2020-09-25
26 | ### Added
27 | * Added first beta version of the DocuSign Rooms API.
28 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Byte-compiled / optimized / DLL files
2 | __pycache__/
3 | *.py[cod]
4 | *$py.class
5 |
6 | # C extensions
7 | *.so
8 |
9 | # Distribution / packaging
10 | .Python
11 | env/
12 | build/
13 | develop-eggs/
14 | dist/
15 | downloads/
16 | eggs/
17 | .eggs/
18 | lib/
19 | lib64/
20 | parts/
21 | sdist/
22 | var/
23 | *.egg-info/
24 | .installed.cfg
25 | *.egg
26 |
27 | # PyInstaller
28 | # Usually these files are written by a python script from a template
29 | # before PyInstaller builds the exe, so as to inject date/other infos into it.
30 | *.manifest
31 | *.spec
32 |
33 | # Installer logs
34 | pip-log.txt
35 | pip-delete-this-directory.txt
36 |
37 | # Unit test / coverage reports
38 | htmlcov/
39 | .tox/
40 | .coverage
41 | .coverage.*
42 | .cache
43 | nosetests.xml
44 | coverage.xml
45 | *,cover
46 | .hypothesis/
47 | venv/
48 | .python-version
49 |
50 | # Translations
51 | *.mo
52 | *.pot
53 |
54 | # Django stuff:
55 | *.log
56 |
57 | # Sphinx documentation
58 | docs/_build/
59 |
60 | # PyBuilder
61 | target/
62 |
63 | #Ipython Notebook
64 | .ipynb_checkpoints
65 |
66 | #Idea IDEs
67 | .idea
68 |
69 | # Local files
70 | *.DS_Store
71 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License
2 |
3 | Copyright (c) 2017- DocuSign, Inc. (https://www.docusign.com)
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
--------------------------------------------------------------------------------
/.swagger-codegen-ignore:
--------------------------------------------------------------------------------
1 | # Swagger Codegen Ignore
2 |
3 | # Use this file to prevent files from being overwritten by the generator.
4 | # The patterns follow closely to .gitignore or .dockerignore.
5 |
6 | # As an example, the C# client generator defines ApiClient.cs.
7 | # You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line:
8 | #ApiClient.cs
9 |
10 | # You can match any string of characters against a directory, file or extension with a single asterisk (*):
11 | #foo/*/qux
12 | # The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
13 |
14 | # You can recursively match patterns against a directory, file or extension with a double asterisk (**):
15 | #foo/**/qux
16 | # This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
17 |
18 | # You can also negate patterns with an exclamation (!).
19 | # For example, you can ignore all files in a docs folder with the file extension .md:
20 | #docs/*.md
21 | # Then explicitly reverse the ignore rule for a single file:
22 | #!docs/README.md
23 |
24 | # Swagger and Git files
25 | .swagger-codegen-ignore
26 | git_push.sh
27 | .gitignore
28 | README.md
29 | CHANGELOG.md
30 | best_practices.md
31 |
32 |
33 | # Project files
34 | LICENSE
35 | .travis.yml
36 | requirements.txt
37 | test-requirements.txt
38 | setup.cfg
39 | #setup.py
40 |
41 |
42 | # Specific src and test files
43 | tox.ini
44 | docs/
45 | test/
46 | docusign_rooms/client/
47 | #docusign_rooms/__init__.py
48 | docusign_rooms/api_client.py
49 | docusign_rooms/configuration.py
50 | docusign_rooms/rest.py
51 |
--------------------------------------------------------------------------------
/docusign_rooms/client/api_exception.py:
--------------------------------------------------------------------------------
1 | # coding: utf-8
2 |
3 | """
4 | DocuSign REST API
5 |
6 | The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign.
7 |
8 | OpenAPI spec version: v2
9 | Contact: devcenter@docusign.com
10 | Generated by: https://github.com/swagger-api/swagger-codegen.git
11 | """
12 |
13 | from __future__ import absolute_import
14 |
15 |
16 | class ApiException(Exception):
17 |
18 | def __init__(self, status=None, reason=None, http_resp=None):
19 | if http_resp:
20 | self.status = http_resp.status
21 | self.reason = http_resp.reason
22 | self.body = http_resp.data
23 | self.headers = http_resp.getheaders()
24 | else:
25 | self.status = status
26 | self.reason = reason
27 | self.body = None
28 | self.headers = None
29 |
30 | def __str__(self):
31 | """
32 | Custom error messages for exception
33 | """
34 | error_message = "({0})\n"\
35 | "Reason: {1}\n".format(self.status, self.reason)
36 | if self.headers:
37 | error_message += "HTTP response headers: {0}\n".format(self.headers)
38 |
39 | if self.body:
40 | error_message += "HTTP response body: {0}\n".format(self.body)
41 |
42 | return error_message
43 |
44 |
45 | class ArgumentException(Exception):
46 |
47 | def __init__(self, *args, **kwargs):
48 | if not args:
49 | super(Exception).__init__("argument cannot be empty")
50 | else:
51 | super(Exception).__init__(*args, **kwargs)
52 |
53 |
54 | class InvalidBasePath(Exception):
55 | pass
56 |
--------------------------------------------------------------------------------
/test/keys/private.pem:
--------------------------------------------------------------------------------
1 | -----BEGIN RSA PRIVATE KEY-----
2 | MIIEogIBAAKCAQEAh0VLAZe6m36tbthAom/IRzxvm/i66mEpow9AsrFP3EAybtVw
3 | 2s13RJ1f0ZJA4sB7SbOtRymIxLlVUWkZLW4NqtECrObqOuke+G2ROWfOhcAyMuiB
4 | lW44mvl8Gil+n6Lwif2+OtUQ88iwPuE6I7jKnBV82lNGDx3H1hqHl7wpQZRyRPCd
5 | zPCrh6TRHj1D40mvrUwqAptj5m71QKA9tWVAQQ1DGKJZVZI4mdz3+I1XCinF8zrx
6 | IUJyEtaJfCHiS086XF3Sw7DkU2o/QIIYbpxlf9Zdjr1QT6/ow7pwJbX2/GSQW2mV
7 | GSY0KSiPFVjbpjKBpVpd4vgnQqn10BzLvLNySwIDAQABAoIBAA2opAm9oeSYlneW
8 | U3RzeBQlWJm1tF39QKCL5jsE52z0eIMzfylAzPW7NFUrgOzEhc5r26fPXFWM5z4I
9 | sDejoLKqVyxRRr57EpsAKUVUI4ji3s7AJnGJxyJy5aKYpQYGhGZSnlY/dG5BSfaX
10 | dHDt9FttWgWLmgvltGt8k0txfvL1nYEQxXxE5gMKNKKoBXE8QF05BmpajApd+hhL
11 | rGLicYpqsrliXr818HvFEKS8ODYfN856osLsvBJDANEW9+OiRQ9QQs5qdStrA5IX
12 | 35DktfSs5Tvr8ZkJksQyfIO4WmEVSJIkm00BL1oSWHAM0Zqv23u6H7HtmCBnvbpw
13 | DY33t+ECgYEA4r9rjODMNhuGgrktDsBE+IQcvoWiYiV00OipZzx0l1q3HmRB51Jo
14 | C/pQ+X6YHT3qZN263VksmlbzpvRQTeL97narhpW8ZdW/L0e6g9sOBchewItftfAJ
15 | CdXmzaaPHEzVu56YGwtS1QC6IVdomxgmXNNuUYgyHt6KgDpVuHBi3usCgYEAmLi/
16 | cLSnIHPT42WFf2IgQWxT7vcBxe4pL0zjzC4NSi8m//g/F/MpQfgsSjreEx5hE6+4
17 | tAh6J2MZwcejbdCgV6eES84fEGDDYGT3GV9qwCTp6Z374hjP+0ZeGcFnzZLsrPPc
18 | T5K/uaIH7n2dPzNe3aLCslnpStVIUz60mnusoiECgYAUk2A0EXYWdtr248zV6NaZ
19 | YoulMkUw+Msn5eTxbEf8MAwr4tckIZM1ewp8CWPOS38IliJN0bi9bKSBguwClVWL
20 | nRMljFLjPskxhiXDr04PckY+3KbbwKNhVBq0kKet3r8KXnLZCWcD0yQQwHjKkh9x
21 | DvKUzXIW4QTaa/C5YuFl7wKBgHDF68fD/q1+GncOXnfj88GbxpbtGwgXh53//y6k
22 | yvd+viPCIoUC7/Jg2gOuWJJxmmm5FoEKyXkQOtLXIp1SszRG5PA9Mr8bVOp3Y+f+
23 | h4t/NqNmH7ujauE34wDNymMJHW/RW1v/F0hyl7zKUTV8L48mQvMEZbr2p8OgyChT
24 | LvVBAoGAFPjp50Q3vaZ1aghIjCfSoi0eU5tVbMCAXpwrjLkCGkw8r6U1ILQyMvqw
25 | E57cqoj2hsZ3P7qgQvZox1L7THnAKNYIdM/tj444QmsYudC5wp5hZBEzmmwbIeq8
26 | 3h4V9F7T/1PamwfRhZC3t4wf327HEMu0pZlwARWpuxh4eaXumYM=
27 | -----END RSA PRIVATE KEY-----
--------------------------------------------------------------------------------
/setup.py:
--------------------------------------------------------------------------------
1 | # coding: utf-8
2 |
3 | """
4 | DocuSign Rooms API - v2
5 |
6 | An API for an integrator to access the features of DocuSign Rooms # noqa: E501
7 |
8 | OpenAPI spec version: v2
9 | Contact: devcenter@docusign.com
10 | Generated by: https://github.com/swagger-api/swagger-codegen.git
11 | """
12 |
13 |
14 | from setuptools import setup, find_packages, Command, os # noqa: H301
15 |
16 | NAME = "docusign-rooms"
17 | VERSION = "1.3.0"
18 | # To install the library, run the following
19 | #
20 | # python setup.py install
21 | #
22 | # prerequisite: setuptools
23 | # http://pypi.python.org/pypi/setuptools
24 |
25 | REQUIRES = ["urllib3 >= 1.15", "six >= 1.8.0", "certifi >= 14.05.14", "python-dateutil >= 2.5.3", "setuptools >= 21.0.0", "PyJWT>=1.7.1", "cryptography>=2.5", "nose>=1.3.7"]
26 |
27 | class CleanCommand(Command):
28 | """Custom clean command to tidy up the project root."""
29 | user_options = []
30 | def initialize_options(self):
31 | pass
32 | def finalize_options(self):
33 | pass
34 | def run(self):
35 | os.system('rm -vrf ./build ./dist ./*.pyc ./*.tgz ./*.egg-info')
36 |
37 | this_directory = os.path.abspath(os.path.dirname(__file__))
38 | with open(os.path.join(this_directory, 'README.md'), encoding='utf-8') as f:
39 | long_description = f.read()
40 |
41 |
42 | setup(
43 | name=NAME,
44 | version=VERSION,
45 | description="DocuSign Rooms API - v2",
46 | author_email="devcenter@docusign.com",
47 | url="",
48 | keywords=["Swagger", "DocuSign Rooms API - v2"],
49 | install_requires=REQUIRES,
50 | packages=find_packages(),
51 | include_package_data=True,
52 | cmdclass={
53 | 'clean': CleanCommand,
54 | },
55 | long_description=long_description,
56 | long_description_content_type='text/markdown'
57 | )
58 |
--------------------------------------------------------------------------------
/docusign_rooms/apis/__init__.py:
--------------------------------------------------------------------------------
1 | from __future__ import absolute_import
2 |
3 | # flake8: noqa
4 |
5 | # import apis into api package
6 | from .accounts_api import AccountsApi
7 | from .activity_types_api import ActivityTypesApi
8 | from .closing_statuses_api import ClosingStatusesApi
9 | from .contact_sides_api import ContactSidesApi
10 | from .countries_api import CountriesApi
11 | from .currencies_api import CurrenciesApi
12 | from .documents_api import DocumentsApi
13 | from .e_sign_permission_profiles_api import ESignPermissionProfilesApi
14 | from .external_form_fill_sessions_api import ExternalFormFillSessionsApi
15 | from .fields_api import FieldsApi
16 | from .financing_types_api import FinancingTypesApi
17 | from .form_details_api import FormDetailsApi
18 | from .form_group_forms_api import FormGroupFormsApi
19 | from .form_groups_api import FormGroupsApi
20 | from .form_libraries_api import FormLibrariesApi
21 | from .form_provider_associations_api import FormProviderAssociationsApi
22 | from .offices_api import OfficesApi
23 | from .origins_of_leads_api import OriginsOfLeadsApi
24 | from .property_types_api import PropertyTypesApi
25 | from .regions_api import RegionsApi
26 | from .roles_api import RolesApi
27 | from .room_contact_types_api import RoomContactTypesApi
28 | from .room_envelopes_api import RoomEnvelopesApi
29 | from .room_folders_api import RoomFoldersApi
30 | from .room_templates_api import RoomTemplatesApi
31 | from .rooms_api import RoomsApi
32 | from .seller_decision_types_api import SellerDecisionTypesApi
33 | from .special_circumstance_types_api import SpecialCircumstanceTypesApi
34 | from .states_api import StatesApi
35 | from .task_date_types_api import TaskDateTypesApi
36 | from .task_list_templates_api import TaskListTemplatesApi
37 | from .task_lists_api import TaskListsApi
38 | from .task_responsibility_types_api import TaskResponsibilityTypesApi
39 | from .task_statuses_api import TaskStatusesApi
40 | from .time_zones_api import TimeZonesApi
41 | from .transaction_sides_api import TransactionSidesApi
42 | from .users_api import UsersApi
43 |
--------------------------------------------------------------------------------
/test/unit_tests.py:
--------------------------------------------------------------------------------
1 | # coding: utf-8
2 |
3 | from __future__ import absolute_import, print_function
4 | from docusign_rooms import RoomsApi, ApiException
5 |
6 | import base64
7 | import os
8 | import unittest
9 | import docusign_rooms as docusign
10 |
11 | Username = os.environ.get("USER_NAME")
12 | IntegratorKey = os.environ.get("INTEGRATOR_KEY_JWT")
13 | BaseUrl = "https://demo.rooms.docusign.com/restapi"
14 | OauthHostName = "account-d.docusign.com"
15 | SignTest1File = "{}/docs/SignTest1.pdf".format(os.path.dirname(os.path.abspath(__file__)))
16 | TemplateId = os.environ.get("TEMPLATE_ID")
17 | UserId = os.environ.get("USER_ID")
18 | PrivateKeyBytes = base64.b64decode(os.environ.get("PRIVATE_KEY"))
19 |
20 |
21 | class SdkUnitTests(unittest.TestCase):
22 |
23 | def setUp(self):
24 | self.api_client = docusign.ApiClient(base_path=BaseUrl, oauth_host_name=OauthHostName)
25 | self.api_client.rest_client.pool_manager.clear()
26 |
27 | docusign.configuration.api_client = self.api_client
28 | try:
29 | self.api_client.host = BaseUrl
30 | token = (self.api_client.request_jwt_user_token(client_id=IntegratorKey,
31 | user_id=UserId,
32 | oauth_host_name=OauthHostName,
33 | private_key_bytes=PrivateKeyBytes,
34 | expires_in=3600,
35 | scopes=["signature", "impersonation",
36 | "dtr.rooms.read", "dtr.rooms.write",
37 | "dtr.company.read","dtr.company.write"]))
38 | self.user_info = self.api_client.get_user_info(token.access_token)
39 | self.api_client.rest_client.pool_manager.clear()
40 | docusign.configuration.api_client = self.api_client
41 |
42 | except ApiException as e:
43 | print("\nException when setting up DocuSign Rooms API: %s" % e)
44 | self.api_client.rest_client.pool_manager.clear()
45 |
46 | def tearDown(self):
47 | self.api_client.rest_client.pool_manager.clear()
48 |
49 | def testGetRooms(self):
50 | # Testing for the UserInfo which is true if auth is successful
51 | print(self.user_info)
52 | self.assertIsNotNone(self.user_info)
53 | self.assertTrue(len(self.user_info.accounts) > 0)
54 | self.assertIsNotNone(self.user_info.accounts[0].account_id)
55 |
56 | # Get the active room
57 | accountId = self.user_info.accounts[0].account_id
58 | rooms = RoomsApi()
59 | activeRoom = rooms.get_rooms(accountId)
60 |
61 | self.assertIsNotNone(activeRoom)
62 | self.assertTrue(len(activeRoom.rooms) > 0)
63 | self.assertIsNotNone(activeRoom.rooms[0].room_id)
64 |
65 | if __name__ == '__main__':
66 | unittest.main()
67 |
--------------------------------------------------------------------------------
/docusign_rooms/models/product_version.py:
--------------------------------------------------------------------------------
1 | # coding: utf-8
2 |
3 | """
4 | DocuSign Rooms API - v2
5 |
6 | An API for an integrator to access the features of DocuSign Rooms # noqa: E501
7 |
8 | OpenAPI spec version: v2
9 | Contact: devcenter@docusign.com
10 | Generated by: https://github.com/swagger-api/swagger-codegen.git
11 | """
12 |
13 |
14 | import pprint
15 | import re # noqa: F401
16 |
17 | import six
18 |
19 | from docusign_rooms.client.configuration import Configuration
20 |
21 |
22 | class ProductVersion(object):
23 | """NOTE: This class is auto generated by the swagger code generator program.
24 |
25 | Do not edit the class manually.
26 | """
27 |
28 | """
29 | allowed enum values
30 | """
31 | V5 = "v5"
32 | V6 = "v6"
33 |
34 | """
35 | Attributes:
36 | swagger_types (dict): The key is attribute name
37 | and the value is attribute type.
38 | attribute_map (dict): The key is attribute name
39 | and the value is json key in definition.
40 | """
41 | swagger_types = {
42 | }
43 |
44 | attribute_map = {
45 | }
46 |
47 | def __init__(self, _configuration=None, **kwargs): # noqa: E501
48 | """ProductVersion - a model defined in Swagger""" # noqa: E501
49 | if _configuration is None:
50 | _configuration = Configuration()
51 | self._configuration = _configuration
52 | self.discriminator = None
53 |
54 | def to_dict(self):
55 | """Returns the model properties as a dict"""
56 | result = {}
57 |
58 | for attr, _ in six.iteritems(self.swagger_types):
59 | value = getattr(self, attr)
60 | if isinstance(value, list):
61 | result[attr] = list(map(
62 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
63 | value
64 | ))
65 | elif hasattr(value, "to_dict"):
66 | result[attr] = value.to_dict()
67 | elif isinstance(value, dict):
68 | result[attr] = dict(map(
69 | lambda item: (item[0], item[1].to_dict())
70 | if hasattr(item[1], "to_dict") else item,
71 | value.items()
72 | ))
73 | else:
74 | result[attr] = value
75 | if issubclass(ProductVersion, dict):
76 | for key, value in self.items():
77 | result[key] = value
78 |
79 | return result
80 |
81 | def to_str(self):
82 | """Returns the string representation of the model"""
83 | return pprint.pformat(self.to_dict())
84 |
85 | def __repr__(self):
86 | """For `print` and `pprint`"""
87 | return self.to_str()
88 |
89 | def __eq__(self, other):
90 | """Returns true if both objects are equal"""
91 | if not isinstance(other, ProductVersion):
92 | return False
93 |
94 | return self.to_dict() == other.to_dict()
95 |
96 | def __ne__(self, other):
97 | """Returns true if both objects are not equal"""
98 | if not isinstance(other, ProductVersion):
99 | return True
100 |
101 | return self.to_dict() != other.to_dict()
102 |
--------------------------------------------------------------------------------
/docusign_rooms/models/listing_type.py:
--------------------------------------------------------------------------------
1 | # coding: utf-8
2 |
3 | """
4 | DocuSign Rooms API - v2
5 |
6 | An API for an integrator to access the features of DocuSign Rooms # noqa: E501
7 |
8 | OpenAPI spec version: v2
9 | Contact: devcenter@docusign.com
10 | Generated by: https://github.com/swagger-api/swagger-codegen.git
11 | """
12 |
13 |
14 | import pprint
15 | import re # noqa: F401
16 |
17 | import six
18 |
19 | from docusign_rooms.client.configuration import Configuration
20 |
21 |
22 | class ListingType(object):
23 | """NOTE: This class is auto generated by the swagger code generator program.
24 |
25 | Do not edit the class manually.
26 | """
27 |
28 | """
29 | allowed enum values
30 | """
31 | PUBLICRECORDS = "PublicRecords"
32 | MLS = "MLS"
33 |
34 | """
35 | Attributes:
36 | swagger_types (dict): The key is attribute name
37 | and the value is attribute type.
38 | attribute_map (dict): The key is attribute name
39 | and the value is json key in definition.
40 | """
41 | swagger_types = {
42 | }
43 |
44 | attribute_map = {
45 | }
46 |
47 | def __init__(self, _configuration=None, **kwargs): # noqa: E501
48 | """ListingType - a model defined in Swagger""" # noqa: E501
49 | if _configuration is None:
50 | _configuration = Configuration()
51 | self._configuration = _configuration
52 | self.discriminator = None
53 |
54 | def to_dict(self):
55 | """Returns the model properties as a dict"""
56 | result = {}
57 |
58 | for attr, _ in six.iteritems(self.swagger_types):
59 | value = getattr(self, attr)
60 | if isinstance(value, list):
61 | result[attr] = list(map(
62 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
63 | value
64 | ))
65 | elif hasattr(value, "to_dict"):
66 | result[attr] = value.to_dict()
67 | elif isinstance(value, dict):
68 | result[attr] = dict(map(
69 | lambda item: (item[0], item[1].to_dict())
70 | if hasattr(item[1], "to_dict") else item,
71 | value.items()
72 | ))
73 | else:
74 | result[attr] = value
75 | if issubclass(ListingType, dict):
76 | for key, value in self.items():
77 | result[key] = value
78 |
79 | return result
80 |
81 | def to_str(self):
82 | """Returns the string representation of the model"""
83 | return pprint.pformat(self.to_dict())
84 |
85 | def __repr__(self):
86 | """For `print` and `pprint`"""
87 | return self.to_str()
88 |
89 | def __eq__(self, other):
90 | """Returns true if both objects are equal"""
91 | if not isinstance(other, ListingType):
92 | return False
93 |
94 | return self.to_dict() == other.to_dict()
95 |
96 | def __ne__(self, other):
97 | """Returns true if both objects are not equal"""
98 | if not isinstance(other, ListingType):
99 | return True
100 |
101 | return self.to_dict() != other.to_dict()
102 |
--------------------------------------------------------------------------------
/docusign_rooms/models/account_status.py:
--------------------------------------------------------------------------------
1 | # coding: utf-8
2 |
3 | """
4 | DocuSign Rooms API - v2
5 |
6 | An API for an integrator to access the features of DocuSign Rooms # noqa: E501
7 |
8 | OpenAPI spec version: v2
9 | Contact: devcenter@docusign.com
10 | Generated by: https://github.com/swagger-api/swagger-codegen.git
11 | """
12 |
13 |
14 | import pprint
15 | import re # noqa: F401
16 |
17 | import six
18 |
19 | from docusign_rooms.client.configuration import Configuration
20 |
21 |
22 | class AccountStatus(object):
23 | """NOTE: This class is auto generated by the swagger code generator program.
24 |
25 | Do not edit the class manually.
26 | """
27 |
28 | """
29 | allowed enum values
30 | """
31 | ACTIVE = "Active"
32 | PENDING = "Pending"
33 |
34 | """
35 | Attributes:
36 | swagger_types (dict): The key is attribute name
37 | and the value is attribute type.
38 | attribute_map (dict): The key is attribute name
39 | and the value is json key in definition.
40 | """
41 | swagger_types = {
42 | }
43 |
44 | attribute_map = {
45 | }
46 |
47 | def __init__(self, _configuration=None, **kwargs): # noqa: E501
48 | """AccountStatus - a model defined in Swagger""" # noqa: E501
49 | if _configuration is None:
50 | _configuration = Configuration()
51 | self._configuration = _configuration
52 | self.discriminator = None
53 |
54 | def to_dict(self):
55 | """Returns the model properties as a dict"""
56 | result = {}
57 |
58 | for attr, _ in six.iteritems(self.swagger_types):
59 | value = getattr(self, attr)
60 | if isinstance(value, list):
61 | result[attr] = list(map(
62 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
63 | value
64 | ))
65 | elif hasattr(value, "to_dict"):
66 | result[attr] = value.to_dict()
67 | elif isinstance(value, dict):
68 | result[attr] = dict(map(
69 | lambda item: (item[0], item[1].to_dict())
70 | if hasattr(item[1], "to_dict") else item,
71 | value.items()
72 | ))
73 | else:
74 | result[attr] = value
75 | if issubclass(AccountStatus, dict):
76 | for key, value in self.items():
77 | result[key] = value
78 |
79 | return result
80 |
81 | def to_str(self):
82 | """Returns the string representation of the model"""
83 | return pprint.pformat(self.to_dict())
84 |
85 | def __repr__(self):
86 | """For `print` and `pprint`"""
87 | return self.to_str()
88 |
89 | def __eq__(self, other):
90 | """Returns true if both objects are equal"""
91 | if not isinstance(other, AccountStatus):
92 | return False
93 |
94 | return self.to_dict() == other.to_dict()
95 |
96 | def __ne__(self, other):
97 | """Returns true if both objects are not equal"""
98 | if not isinstance(other, AccountStatus):
99 | return True
100 |
101 | return self.to_dict() != other.to_dict()
102 |
--------------------------------------------------------------------------------
/docusign_rooms/models/room_status.py:
--------------------------------------------------------------------------------
1 | # coding: utf-8
2 |
3 | """
4 | DocuSign Rooms API - v2
5 |
6 | An API for an integrator to access the features of DocuSign Rooms # noqa: E501
7 |
8 | OpenAPI spec version: v2
9 | Contact: devcenter@docusign.com
10 | Generated by: https://github.com/swagger-api/swagger-codegen.git
11 | """
12 |
13 |
14 | import pprint
15 | import re # noqa: F401
16 |
17 | import six
18 |
19 | from docusign_rooms.client.configuration import Configuration
20 |
21 |
22 | class RoomStatus(object):
23 | """NOTE: This class is auto generated by the swagger code generator program.
24 |
25 | Do not edit the class manually.
26 | """
27 |
28 | """
29 | allowed enum values
30 | """
31 | ACTIVE = "Active"
32 | PENDING = "Pending"
33 | CLOSED = "Closed"
34 | OPEN = "Open"
35 |
36 | """
37 | Attributes:
38 | swagger_types (dict): The key is attribute name
39 | and the value is attribute type.
40 | attribute_map (dict): The key is attribute name
41 | and the value is json key in definition.
42 | """
43 | swagger_types = {
44 | }
45 |
46 | attribute_map = {
47 | }
48 |
49 | def __init__(self, _configuration=None, **kwargs): # noqa: E501
50 | """RoomStatus - a model defined in Swagger""" # noqa: E501
51 | if _configuration is None:
52 | _configuration = Configuration()
53 | self._configuration = _configuration
54 | self.discriminator = None
55 |
56 | def to_dict(self):
57 | """Returns the model properties as a dict"""
58 | result = {}
59 |
60 | for attr, _ in six.iteritems(self.swagger_types):
61 | value = getattr(self, attr)
62 | if isinstance(value, list):
63 | result[attr] = list(map(
64 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
65 | value
66 | ))
67 | elif hasattr(value, "to_dict"):
68 | result[attr] = value.to_dict()
69 | elif isinstance(value, dict):
70 | result[attr] = dict(map(
71 | lambda item: (item[0], item[1].to_dict())
72 | if hasattr(item[1], "to_dict") else item,
73 | value.items()
74 | ))
75 | else:
76 | result[attr] = value
77 | if issubclass(RoomStatus, dict):
78 | for key, value in self.items():
79 | result[key] = value
80 |
81 | return result
82 |
83 | def to_str(self):
84 | """Returns the string representation of the model"""
85 | return pprint.pformat(self.to_dict())
86 |
87 | def __repr__(self):
88 | """For `print` and `pprint`"""
89 | return self.to_str()
90 |
91 | def __eq__(self, other):
92 | """Returns true if both objects are equal"""
93 | if not isinstance(other, RoomStatus):
94 | return False
95 |
96 | return self.to_dict() == other.to_dict()
97 |
98 | def __ne__(self, other):
99 | """Returns true if both objects are not equal"""
100 | if not isinstance(other, RoomStatus):
101 | return True
102 |
103 | return self.to_dict() != other.to_dict()
104 |
--------------------------------------------------------------------------------
/docusign_rooms/models/access_level.py:
--------------------------------------------------------------------------------
1 | # coding: utf-8
2 |
3 | """
4 | DocuSign Rooms API - v2
5 |
6 | An API for an integrator to access the features of DocuSign Rooms # noqa: E501
7 |
8 | OpenAPI spec version: v2
9 | Contact: devcenter@docusign.com
10 | Generated by: https://github.com/swagger-api/swagger-codegen.git
11 | """
12 |
13 |
14 | import pprint
15 | import re # noqa: F401
16 |
17 | import six
18 |
19 | from docusign_rooms.client.configuration import Configuration
20 |
21 |
22 | class AccessLevel(object):
23 | """NOTE: This class is auto generated by the swagger code generator program.
24 |
25 | Do not edit the class manually.
26 | """
27 |
28 | """
29 | allowed enum values
30 | """
31 | CONTRIBUTOR = "Contributor"
32 | OFFICE = "Office"
33 | REGION = "Region"
34 | COMPANY = "Company"
35 | ADMIN = "Admin"
36 |
37 | """
38 | Attributes:
39 | swagger_types (dict): The key is attribute name
40 | and the value is attribute type.
41 | attribute_map (dict): The key is attribute name
42 | and the value is json key in definition.
43 | """
44 | swagger_types = {
45 | }
46 |
47 | attribute_map = {
48 | }
49 |
50 | def __init__(self, _configuration=None, **kwargs): # noqa: E501
51 | """AccessLevel - a model defined in Swagger""" # noqa: E501
52 | if _configuration is None:
53 | _configuration = Configuration()
54 | self._configuration = _configuration
55 | self.discriminator = None
56 |
57 | def to_dict(self):
58 | """Returns the model properties as a dict"""
59 | result = {}
60 |
61 | for attr, _ in six.iteritems(self.swagger_types):
62 | value = getattr(self, attr)
63 | if isinstance(value, list):
64 | result[attr] = list(map(
65 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
66 | value
67 | ))
68 | elif hasattr(value, "to_dict"):
69 | result[attr] = value.to_dict()
70 | elif isinstance(value, dict):
71 | result[attr] = dict(map(
72 | lambda item: (item[0], item[1].to_dict())
73 | if hasattr(item[1], "to_dict") else item,
74 | value.items()
75 | ))
76 | else:
77 | result[attr] = value
78 | if issubclass(AccessLevel, dict):
79 | for key, value in self.items():
80 | result[key] = value
81 |
82 | return result
83 |
84 | def to_str(self):
85 | """Returns the string representation of the model"""
86 | return pprint.pformat(self.to_dict())
87 |
88 | def __repr__(self):
89 | """For `print` and `pprint`"""
90 | return self.to_str()
91 |
92 | def __eq__(self, other):
93 | """Returns true if both objects are equal"""
94 | if not isinstance(other, AccessLevel):
95 | return False
96 |
97 | return self.to_dict() == other.to_dict()
98 |
99 | def __ne__(self, other):
100 | """Returns true if both objects are not equal"""
101 | if not isinstance(other, AccessLevel):
102 | return True
103 |
104 | return self.to_dict() != other.to_dict()
105 |
--------------------------------------------------------------------------------
/docusign_rooms/models/fields_custom_data_filter_type.py:
--------------------------------------------------------------------------------
1 | # coding: utf-8
2 |
3 | """
4 | DocuSign Rooms API - v2
5 |
6 | An API for an integrator to access the features of DocuSign Rooms # noqa: E501
7 |
8 | OpenAPI spec version: v2
9 | Contact: devcenter@docusign.com
10 | Generated by: https://github.com/swagger-api/swagger-codegen.git
11 | """
12 |
13 |
14 | import pprint
15 | import re # noqa: F401
16 |
17 | import six
18 |
19 | from docusign_rooms.client.configuration import Configuration
20 |
21 |
22 | class FieldsCustomDataFilterType(object):
23 | """NOTE: This class is auto generated by the swagger code generator program.
24 |
25 | Do not edit the class manually.
26 | """
27 |
28 | """
29 | allowed enum values
30 | """
31 | NONE = "None"
32 | ISREQUIREDONCREATE = "IsRequiredOnCreate"
33 | ISREQUIREDONSUBMIT = "IsRequiredOnSubmit"
34 |
35 | """
36 | Attributes:
37 | swagger_types (dict): The key is attribute name
38 | and the value is attribute type.
39 | attribute_map (dict): The key is attribute name
40 | and the value is json key in definition.
41 | """
42 | swagger_types = {
43 | }
44 |
45 | attribute_map = {
46 | }
47 |
48 | def __init__(self, _configuration=None, **kwargs): # noqa: E501
49 | """FieldsCustomDataFilterType - a model defined in Swagger""" # noqa: E501
50 | if _configuration is None:
51 | _configuration = Configuration()
52 | self._configuration = _configuration
53 | self.discriminator = None
54 |
55 | def to_dict(self):
56 | """Returns the model properties as a dict"""
57 | result = {}
58 |
59 | for attr, _ in six.iteritems(self.swagger_types):
60 | value = getattr(self, attr)
61 | if isinstance(value, list):
62 | result[attr] = list(map(
63 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
64 | value
65 | ))
66 | elif hasattr(value, "to_dict"):
67 | result[attr] = value.to_dict()
68 | elif isinstance(value, dict):
69 | result[attr] = dict(map(
70 | lambda item: (item[0], item[1].to_dict())
71 | if hasattr(item[1], "to_dict") else item,
72 | value.items()
73 | ))
74 | else:
75 | result[attr] = value
76 | if issubclass(FieldsCustomDataFilterType, dict):
77 | for key, value in self.items():
78 | result[key] = value
79 |
80 | return result
81 |
82 | def to_str(self):
83 | """Returns the string representation of the model"""
84 | return pprint.pformat(self.to_dict())
85 |
86 | def __repr__(self):
87 | """For `print` and `pprint`"""
88 | return self.to_str()
89 |
90 | def __eq__(self, other):
91 | """Returns true if both objects are equal"""
92 | if not isinstance(other, FieldsCustomDataFilterType):
93 | return False
94 |
95 | return self.to_dict() == other.to_dict()
96 |
97 | def __ne__(self, other):
98 | """Returns true if both objects are not equal"""
99 | if not isinstance(other, FieldsCustomDataFilterType):
100 | return True
101 |
102 | return self.to_dict() != other.to_dict()
103 |
--------------------------------------------------------------------------------
/docusign_rooms/models/member_sorting_option.py:
--------------------------------------------------------------------------------
1 | # coding: utf-8
2 |
3 | """
4 | DocuSign Rooms API - v2
5 |
6 | An API for an integrator to access the features of DocuSign Rooms # noqa: E501
7 |
8 | OpenAPI spec version: v2
9 | Contact: devcenter@docusign.com
10 | Generated by: https://github.com/swagger-api/swagger-codegen.git
11 | """
12 |
13 |
14 | import pprint
15 | import re # noqa: F401
16 |
17 | import six
18 |
19 | from docusign_rooms.client.configuration import Configuration
20 |
21 |
22 | class MemberSortingOption(object):
23 | """NOTE: This class is auto generated by the swagger code generator program.
24 |
25 | Do not edit the class manually.
26 | """
27 |
28 | """
29 | allowed enum values
30 | """
31 | FIRSTNAMEASC = "FirstNameAsc"
32 | LASTNAMEASC = "LastNameAsc"
33 | EMAILASC = "EmailAsc"
34 | FIRSTNAMEDESC = "FirstNameDesc"
35 | LASTNAMEDESC = "LastNameDesc"
36 | EMAILDESC = "EmailDesc"
37 |
38 | """
39 | Attributes:
40 | swagger_types (dict): The key is attribute name
41 | and the value is attribute type.
42 | attribute_map (dict): The key is attribute name
43 | and the value is json key in definition.
44 | """
45 | swagger_types = {
46 | }
47 |
48 | attribute_map = {
49 | }
50 |
51 | def __init__(self, _configuration=None, **kwargs): # noqa: E501
52 | """MemberSortingOption - a model defined in Swagger""" # noqa: E501
53 | if _configuration is None:
54 | _configuration = Configuration()
55 | self._configuration = _configuration
56 | self.discriminator = None
57 |
58 | def to_dict(self):
59 | """Returns the model properties as a dict"""
60 | result = {}
61 |
62 | for attr, _ in six.iteritems(self.swagger_types):
63 | value = getattr(self, attr)
64 | if isinstance(value, list):
65 | result[attr] = list(map(
66 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
67 | value
68 | ))
69 | elif hasattr(value, "to_dict"):
70 | result[attr] = value.to_dict()
71 | elif isinstance(value, dict):
72 | result[attr] = dict(map(
73 | lambda item: (item[0], item[1].to_dict())
74 | if hasattr(item[1], "to_dict") else item,
75 | value.items()
76 | ))
77 | else:
78 | result[attr] = value
79 | if issubclass(MemberSortingOption, dict):
80 | for key, value in self.items():
81 | result[key] = value
82 |
83 | return result
84 |
85 | def to_str(self):
86 | """Returns the string representation of the model"""
87 | return pprint.pformat(self.to_dict())
88 |
89 | def __repr__(self):
90 | """For `print` and `pprint`"""
91 | return self.to_str()
92 |
93 | def __eq__(self, other):
94 | """Returns true if both objects are equal"""
95 | if not isinstance(other, MemberSortingOption):
96 | return False
97 |
98 | return self.to_dict() == other.to_dict()
99 |
100 | def __ne__(self, other):
101 | """Returns true if both objects are not equal"""
102 | if not isinstance(other, MemberSortingOption):
103 | return True
104 |
105 | return self.to_dict() != other.to_dict()
106 |
--------------------------------------------------------------------------------
/docusign_rooms/models/roles_filter_context_types.py:
--------------------------------------------------------------------------------
1 | # coding: utf-8
2 |
3 | """
4 | DocuSign Rooms API - v2
5 |
6 | An API for an integrator to access the features of DocuSign Rooms # noqa: E501
7 |
8 | OpenAPI spec version: v2
9 | Contact: devcenter@docusign.com
10 | Generated by: https://github.com/swagger-api/swagger-codegen.git
11 | """
12 |
13 |
14 | import pprint
15 | import re # noqa: F401
16 |
17 | import six
18 |
19 | from docusign_rooms.client.configuration import Configuration
20 |
21 |
22 | class RolesFilterContextTypes(object):
23 | """NOTE: This class is auto generated by the swagger code generator program.
24 |
25 | Do not edit the class manually.
26 | """
27 |
28 | """
29 | allowed enum values
30 | """
31 | ALLROLES = "AllRoles"
32 | ASSIGNABLEROLESBASEDONCOMPANYPERMISSIONS = "AssignableRolesBasedOnCompanyPermissions"
33 | ASSIGNABLEROLESBASEDONALLPERMISSIONS = "AssignableRolesBasedOnAllPermissions"
34 |
35 | """
36 | Attributes:
37 | swagger_types (dict): The key is attribute name
38 | and the value is attribute type.
39 | attribute_map (dict): The key is attribute name
40 | and the value is json key in definition.
41 | """
42 | swagger_types = {
43 | }
44 |
45 | attribute_map = {
46 | }
47 |
48 | def __init__(self, _configuration=None, **kwargs): # noqa: E501
49 | """RolesFilterContextTypes - a model defined in Swagger""" # noqa: E501
50 | if _configuration is None:
51 | _configuration = Configuration()
52 | self._configuration = _configuration
53 | self.discriminator = None
54 |
55 | def to_dict(self):
56 | """Returns the model properties as a dict"""
57 | result = {}
58 |
59 | for attr, _ in six.iteritems(self.swagger_types):
60 | value = getattr(self, attr)
61 | if isinstance(value, list):
62 | result[attr] = list(map(
63 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
64 | value
65 | ))
66 | elif hasattr(value, "to_dict"):
67 | result[attr] = value.to_dict()
68 | elif isinstance(value, dict):
69 | result[attr] = dict(map(
70 | lambda item: (item[0], item[1].to_dict())
71 | if hasattr(item[1], "to_dict") else item,
72 | value.items()
73 | ))
74 | else:
75 | result[attr] = value
76 | if issubclass(RolesFilterContextTypes, dict):
77 | for key, value in self.items():
78 | result[key] = value
79 |
80 | return result
81 |
82 | def to_str(self):
83 | """Returns the string representation of the model"""
84 | return pprint.pformat(self.to_dict())
85 |
86 | def __repr__(self):
87 | """For `print` and `pprint`"""
88 | return self.to_str()
89 |
90 | def __eq__(self, other):
91 | """Returns true if both objects are equal"""
92 | if not isinstance(other, RolesFilterContextTypes):
93 | return False
94 |
95 | return self.to_dict() == other.to_dict()
96 |
97 | def __ne__(self, other):
98 | """Returns true if both objects are not equal"""
99 | if not isinstance(other, RolesFilterContextTypes):
100 | return True
101 |
102 | return self.to_dict() != other.to_dict()
103 |
--------------------------------------------------------------------------------
/docusign_rooms/models/room_user_sorting_option.py:
--------------------------------------------------------------------------------
1 | # coding: utf-8
2 |
3 | """
4 | DocuSign Rooms API - v2
5 |
6 | An API for an integrator to access the features of DocuSign Rooms # noqa: E501
7 |
8 | OpenAPI spec version: v2
9 | Contact: devcenter@docusign.com
10 | Generated by: https://github.com/swagger-api/swagger-codegen.git
11 | """
12 |
13 |
14 | import pprint
15 | import re # noqa: F401
16 |
17 | import six
18 |
19 | from docusign_rooms.client.configuration import Configuration
20 |
21 |
22 | class RoomUserSortingOption(object):
23 | """NOTE: This class is auto generated by the swagger code generator program.
24 |
25 | Do not edit the class manually.
26 | """
27 |
28 | """
29 | allowed enum values
30 | """
31 | FIRSTNAMEASC = "FirstNameAsc"
32 | LASTNAMEASC = "LastNameAsc"
33 | EMAILASC = "EmailAsc"
34 | FIRSTNAMEDESC = "FirstNameDesc"
35 | LASTNAMEDESC = "LastNameDesc"
36 | EMAILDESC = "EmailDesc"
37 |
38 | """
39 | Attributes:
40 | swagger_types (dict): The key is attribute name
41 | and the value is attribute type.
42 | attribute_map (dict): The key is attribute name
43 | and the value is json key in definition.
44 | """
45 | swagger_types = {
46 | }
47 |
48 | attribute_map = {
49 | }
50 |
51 | def __init__(self, _configuration=None, **kwargs): # noqa: E501
52 | """RoomUserSortingOption - a model defined in Swagger""" # noqa: E501
53 | if _configuration is None:
54 | _configuration = Configuration()
55 | self._configuration = _configuration
56 | self.discriminator = None
57 |
58 | def to_dict(self):
59 | """Returns the model properties as a dict"""
60 | result = {}
61 |
62 | for attr, _ in six.iteritems(self.swagger_types):
63 | value = getattr(self, attr)
64 | if isinstance(value, list):
65 | result[attr] = list(map(
66 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
67 | value
68 | ))
69 | elif hasattr(value, "to_dict"):
70 | result[attr] = value.to_dict()
71 | elif isinstance(value, dict):
72 | result[attr] = dict(map(
73 | lambda item: (item[0], item[1].to_dict())
74 | if hasattr(item[1], "to_dict") else item,
75 | value.items()
76 | ))
77 | else:
78 | result[attr] = value
79 | if issubclass(RoomUserSortingOption, dict):
80 | for key, value in self.items():
81 | result[key] = value
82 |
83 | return result
84 |
85 | def to_str(self):
86 | """Returns the string representation of the model"""
87 | return pprint.pformat(self.to_dict())
88 |
89 | def __repr__(self):
90 | """For `print` and `pprint`"""
91 | return self.to_str()
92 |
93 | def __eq__(self, other):
94 | """Returns true if both objects are equal"""
95 | if not isinstance(other, RoomUserSortingOption):
96 | return False
97 |
98 | return self.to_dict() == other.to_dict()
99 |
100 | def __ne__(self, other):
101 | """Returns true if both objects are not equal"""
102 | if not isinstance(other, RoomUserSortingOption):
103 | return True
104 |
105 | return self.to_dict() != other.to_dict()
106 |
--------------------------------------------------------------------------------
/docusign_rooms/models/nullable_field_data.py:
--------------------------------------------------------------------------------
1 | # coding: utf-8
2 |
3 | """
4 | DocuSign Rooms API - v2
5 |
6 | An API for an integrator to access the features of DocuSign Rooms # noqa: E501
7 |
8 | OpenAPI spec version: v2
9 | Contact: devcenter@docusign.com
10 | Generated by: https://github.com/swagger-api/swagger-codegen.git
11 | """
12 |
13 |
14 | import pprint
15 | import re # noqa: F401
16 |
17 | import six
18 |
19 |
20 | class NullableFieldData(object):
21 | """NOTE: This class is auto generated by the swagger code generator program.
22 |
23 | Do not edit the class manually.
24 | """
25 |
26 | """
27 | Attributes:
28 | swagger_types (dict): The key is attribute name
29 | and the value is attribute type.
30 | attribute_map (dict): The key is attribute name
31 | and the value is json key in definition.
32 | """
33 | swagger_types = {
34 | 'data': 'dict(str, object)'
35 | }
36 |
37 | attribute_map = {
38 | 'data': 'data'
39 | }
40 |
41 | def __init__(self, data=None): # noqa: E501
42 | """NullableFieldData - a model defined in Swagger""" # noqa: E501
43 |
44 | self._data = None
45 | self.discriminator = None
46 |
47 | if data is not None:
48 | self.data = data
49 |
50 | @property
51 | def data(self):
52 | """Gets the data of this NullableFieldData. # noqa: E501
53 |
54 |
55 | :return: The data of this NullableFieldData. # noqa: E501
56 | :rtype: dict(str, object)
57 | """
58 | return self._data
59 |
60 | @data.setter
61 | def data(self, data):
62 | """Sets the data of this NullableFieldData.
63 |
64 |
65 | :param data: The data of this NullableFieldData. # noqa: E501
66 | :type: dict(str, object)
67 | """
68 |
69 | self._data = data
70 |
71 | def to_dict(self):
72 | """Returns the model properties as a dict"""
73 | result = {}
74 |
75 | for attr, _ in six.iteritems(self.swagger_types):
76 | value = getattr(self, attr)
77 | if isinstance(value, list):
78 | result[attr] = list(map(
79 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
80 | value
81 | ))
82 | elif hasattr(value, "to_dict"):
83 | result[attr] = value.to_dict()
84 | elif isinstance(value, dict):
85 | result[attr] = dict(map(
86 | lambda item: (item[0], item[1].to_dict())
87 | if hasattr(item[1], "to_dict") else item,
88 | value.items()
89 | ))
90 | else:
91 | result[attr] = value
92 | if issubclass(NullableFieldData, dict):
93 | for key, value in self.items():
94 | result[key] = value
95 |
96 | return result
97 |
98 | def to_str(self):
99 | """Returns the string representation of the model"""
100 | return pprint.pformat(self.to_dict())
101 |
102 | def __repr__(self):
103 | """For `print` and `pprint`"""
104 | return self.to_str()
105 |
106 | def __eq__(self, other):
107 | """Returns true if both objects are equal"""
108 | if not isinstance(other, NullableFieldData):
109 | return False
110 |
111 | return self.__dict__ == other.__dict__
112 |
113 | def __ne__(self, other):
114 | """Returns true if both objects are not equal"""
115 | return not self == other
116 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # The Official DocuSign Rooms Python Client
2 |
3 | [![PyPI version][pypi-image]][pypi-url]
4 |
5 | [![Build status][travis-image]][travis-url]
6 |
7 | [PyPI module](https://pypi.python.org/pypi/docusign_rooms) that wraps the DocuSign Rooms API
8 |
9 | [Documentation about the DocuSign Rooms API](https://developers.docusign.com/)
10 |
11 | ## Requirements
12 |
13 | - Python 2.7 (3.7+ recommended)
14 | - Free [Developer Sandbox](https://go.docusign.com/sandbox/productshot/?elqCampaignId=16531)
15 |
16 | ## Compatibility
17 |
18 | - Python 2.7+
19 |
20 | ## Installation
21 |
22 | ### Path Setup:
23 |
24 | 1. Locate your Python installation, also referred to as a **site-packages** folder. This folder is usually labeled in a format of Python{VersionNumber}.
25 |
26 | **Examples:**
27 |
28 | - **Unix/Linux:** /usr/lib/python2.7
29 | - **Mac:** /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
30 | - **Windows:** C:\Users\{username}\AppData\Local\Programs\Python\Python37
31 |
32 | 1. Add the path to your Python folder as an environment variable.
33 |
34 | **Unix/Linux:**
35 |
36 | - Type the following command into your console:
37 | **export PYTHONPATH = "${PYTHONPATH}:.:/path/to/site-packages"**
38 | - Optionally, you can add this command to your system profile, which will run the command each time Python is launched.
39 |
40 | **Windows:**
41 |
42 |
43 | - Open the Windows Control Panel.
44 | - Under the System and Security category, open the System
45 | - Select Advanced System Settings to open the System Properties dialog box.
46 | - On the Advanced tab, select the Environmental Variables button at the lower-right corner.
47 |
48 | - Check if PYTHONPATH has been added as a system variable.
49 | - If it has not, select New to add it. The variable you add is the path to the site-packages
50 |
51 |
52 |
53 |
54 | **Note:** If you are still unable to reference python or pip via your command console,you can also add the path to the site-packages folder to the built-in environment variable labeled **Path** , which will take effect the next time you start your machine.
55 |
56 | ### Install via PIP:
57 |
58 | 1. In your command console, type:
59 | pip install docusign-rooms
60 |
61 | Note: This may require the command console be elevated. You can accomplish this via sudoin Unix/Linux, or by running the command console as an administrator in Windows.
62 |
63 | ## Dependencies
64 |
65 | This client has the following external dependencies:
66 |
67 | - certifi v14.05.14+
68 | - six v1.8.0+
69 | - python\_dateutil v2.5.3+
70 | - setuptools v21.0.0+
71 | - urllib3 v1.15.1+
72 | - jwcrypto v0.4.2+
73 | - py-oauth2 v0.0.10+
74 |
75 |
76 | ## Support
77 |
78 | Log issues against this client through GitHub. We also have an [active developer community on Stack Overflow](https://stackoverflow.com/questions/tagged/docusignapi).
79 |
80 | ## License
81 |
82 | The DocuSign Python Client is licensed under the [MIT License](https://github.com/docusign/docusign-python-client/blob/master/LICENSE).
83 |
84 |
85 | [pypi-image]: https://img.shields.io/pypi/v/docusign_rooms.svg?style=flat
86 | [pypi-url]: https://pypi.python.org/pypi/docusign_rooms
87 | [downloads-image]: https://img.shields.io/pypi/dm/docusign_rooms.svg?style=flat
88 | [downloads-url]: https://pypi.python.org/pypi/docusign_rooms
89 | [travis-image]: https://img.shields.io/travis/docusign/docusign-rooms-python-client.svg?style=flat
90 | [travis-url]: https://travis-ci.org/docusign/docusign-rooms-python-client
91 |
--------------------------------------------------------------------------------
/docusign_rooms/models/room_picture.py:
--------------------------------------------------------------------------------
1 | # coding: utf-8
2 |
3 | """
4 | DocuSign Rooms API - v2
5 |
6 | An API for an integrator to access the features of DocuSign Rooms # noqa: E501
7 |
8 | OpenAPI spec version: v2
9 | Contact: devcenter@docusign.com
10 | Generated by: https://github.com/swagger-api/swagger-codegen.git
11 | """
12 |
13 |
14 | import pprint
15 | import re # noqa: F401
16 |
17 | import six
18 |
19 | from docusign_rooms.client.configuration import Configuration
20 |
21 |
22 | class RoomPicture(object):
23 | """NOTE: This class is auto generated by the swagger code generator program.
24 |
25 | Do not edit the class manually.
26 | """
27 |
28 | """
29 | Attributes:
30 | swagger_types (dict): The key is attribute name
31 | and the value is attribute type.
32 | attribute_map (dict): The key is attribute name
33 | and the value is json key in definition.
34 | """
35 | swagger_types = {
36 | 'url': 'str'
37 | }
38 |
39 | attribute_map = {
40 | 'url': 'url'
41 | }
42 |
43 | def __init__(self, _configuration=None, **kwargs): # noqa: E501
44 | """RoomPicture - a model defined in Swagger""" # noqa: E501
45 | if _configuration is None:
46 | _configuration = Configuration()
47 | self._configuration = _configuration
48 |
49 | self._url = None
50 | self.discriminator = None
51 |
52 | setattr(self, "_{}".format('url'), kwargs.get('url', None))
53 |
54 | @property
55 | def url(self):
56 | """Gets the url of this RoomPicture. # noqa: E501
57 |
58 |
59 | :return: The url of this RoomPicture. # noqa: E501
60 | :rtype: str
61 | """
62 | return self._url
63 |
64 | @url.setter
65 | def url(self, url):
66 | """Sets the url of this RoomPicture.
67 |
68 |
69 | :param url: The url of this RoomPicture. # noqa: E501
70 | :type: str
71 | """
72 |
73 | self._url = url
74 |
75 | def to_dict(self):
76 | """Returns the model properties as a dict"""
77 | result = {}
78 |
79 | for attr, _ in six.iteritems(self.swagger_types):
80 | value = getattr(self, attr)
81 | if isinstance(value, list):
82 | result[attr] = list(map(
83 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
84 | value
85 | ))
86 | elif hasattr(value, "to_dict"):
87 | result[attr] = value.to_dict()
88 | elif isinstance(value, dict):
89 | result[attr] = dict(map(
90 | lambda item: (item[0], item[1].to_dict())
91 | if hasattr(item[1], "to_dict") else item,
92 | value.items()
93 | ))
94 | else:
95 | result[attr] = value
96 | if issubclass(RoomPicture, dict):
97 | for key, value in self.items():
98 | result[key] = value
99 |
100 | return result
101 |
102 | def to_str(self):
103 | """Returns the string representation of the model"""
104 | return pprint.pformat(self.to_dict())
105 |
106 | def __repr__(self):
107 | """For `print` and `pprint`"""
108 | return self.to_str()
109 |
110 | def __eq__(self, other):
111 | """Returns true if both objects are equal"""
112 | if not isinstance(other, RoomPicture):
113 | return False
114 |
115 | return self.to_dict() == other.to_dict()
116 |
117 | def __ne__(self, other):
118 | """Returns true if both objects are not equal"""
119 | if not isinstance(other, RoomPicture):
120 | return True
121 |
122 | return self.to_dict() != other.to_dict()
123 |
--------------------------------------------------------------------------------
/docusign_rooms/models/field_data.py:
--------------------------------------------------------------------------------
1 | # coding: utf-8
2 |
3 | """
4 | DocuSign Rooms API - v2
5 |
6 | An API for an integrator to access the features of DocuSign Rooms # noqa: E501
7 |
8 | OpenAPI spec version: v2
9 | Contact: devcenter@docusign.com
10 | Generated by: https://github.com/swagger-api/swagger-codegen.git
11 | """
12 |
13 |
14 | import pprint
15 | import re # noqa: F401
16 |
17 | import six
18 |
19 | from docusign_rooms.client.configuration import Configuration
20 |
21 |
22 | class FieldData(object):
23 | """NOTE: This class is auto generated by the swagger code generator program.
24 |
25 | Do not edit the class manually.
26 | """
27 |
28 | """
29 | Attributes:
30 | swagger_types (dict): The key is attribute name
31 | and the value is attribute type.
32 | attribute_map (dict): The key is attribute name
33 | and the value is json key in definition.
34 | """
35 | swagger_types = {
36 | 'data': 'dict(str, object)'
37 | }
38 |
39 | attribute_map = {
40 | 'data': 'data'
41 | }
42 |
43 | def __init__(self, _configuration=None, **kwargs): # noqa: E501
44 | """FieldData - a model defined in Swagger""" # noqa: E501
45 | if _configuration is None:
46 | _configuration = Configuration()
47 | self._configuration = _configuration
48 |
49 | self._data = None
50 | self.discriminator = None
51 |
52 | setattr(self, "_{}".format('data'), kwargs.get('data', None))
53 |
54 | @property
55 | def data(self):
56 | """Gets the data of this FieldData. # noqa: E501
57 |
58 |
59 | :return: The data of this FieldData. # noqa: E501
60 | :rtype: dict(str, object)
61 | """
62 | return self._data
63 |
64 | @data.setter
65 | def data(self, data):
66 | """Sets the data of this FieldData.
67 |
68 |
69 | :param data: The data of this FieldData. # noqa: E501
70 | :type: dict(str, object)
71 | """
72 |
73 | self._data = data
74 |
75 | def to_dict(self):
76 | """Returns the model properties as a dict"""
77 | result = {}
78 |
79 | for attr, _ in six.iteritems(self.swagger_types):
80 | value = getattr(self, attr)
81 | if isinstance(value, list):
82 | result[attr] = list(map(
83 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
84 | value
85 | ))
86 | elif hasattr(value, "to_dict"):
87 | result[attr] = value.to_dict()
88 | elif isinstance(value, dict):
89 | result[attr] = dict(map(
90 | lambda item: (item[0], item[1].to_dict())
91 | if hasattr(item[1], "to_dict") else item,
92 | value.items()
93 | ))
94 | else:
95 | result[attr] = value
96 | if issubclass(FieldData, dict):
97 | for key, value in self.items():
98 | result[key] = value
99 |
100 | return result
101 |
102 | def to_str(self):
103 | """Returns the string representation of the model"""
104 | return pprint.pformat(self.to_dict())
105 |
106 | def __repr__(self):
107 | """For `print` and `pprint`"""
108 | return self.to_str()
109 |
110 | def __eq__(self, other):
111 | """Returns true if both objects are equal"""
112 | if not isinstance(other, FieldData):
113 | return False
114 |
115 | return self.to_dict() == other.to_dict()
116 |
117 | def __ne__(self, other):
118 | """Returns true if both objects are not equal"""
119 | if not isinstance(other, FieldData):
120 | return True
121 |
122 | return self.to_dict() != other.to_dict()
123 |
--------------------------------------------------------------------------------
/docusign_rooms/models/global_states.py:
--------------------------------------------------------------------------------
1 | # coding: utf-8
2 |
3 | """
4 | DocuSign Rooms API - v2
5 |
6 | An API for an integrator to access the features of DocuSign Rooms # noqa: E501
7 |
8 | OpenAPI spec version: v2
9 | Contact: devcenter@docusign.com
10 | Generated by: https://github.com/swagger-api/swagger-codegen.git
11 | """
12 |
13 |
14 | import pprint
15 | import re # noqa: F401
16 |
17 | import six
18 |
19 | from docusign_rooms.client.configuration import Configuration
20 |
21 |
22 | class GlobalStates(object):
23 | """NOTE: This class is auto generated by the swagger code generator program.
24 |
25 | Do not edit the class manually.
26 | """
27 |
28 | """
29 | Attributes:
30 | swagger_types (dict): The key is attribute name
31 | and the value is attribute type.
32 | attribute_map (dict): The key is attribute name
33 | and the value is json key in definition.
34 | """
35 | swagger_types = {
36 | 'states': 'list[State]'
37 | }
38 |
39 | attribute_map = {
40 | 'states': 'states'
41 | }
42 |
43 | def __init__(self, _configuration=None, **kwargs): # noqa: E501
44 | """GlobalStates - a model defined in Swagger""" # noqa: E501
45 | if _configuration is None:
46 | _configuration = Configuration()
47 | self._configuration = _configuration
48 |
49 | self._states = None
50 | self.discriminator = None
51 |
52 | setattr(self, "_{}".format('states'), kwargs.get('states', None))
53 |
54 | @property
55 | def states(self):
56 | """Gets the states of this GlobalStates. # noqa: E501
57 |
58 |
59 | :return: The states of this GlobalStates. # noqa: E501
60 | :rtype: list[State]
61 | """
62 | return self._states
63 |
64 | @states.setter
65 | def states(self, states):
66 | """Sets the states of this GlobalStates.
67 |
68 |
69 | :param states: The states of this GlobalStates. # noqa: E501
70 | :type: list[State]
71 | """
72 |
73 | self._states = states
74 |
75 | def to_dict(self):
76 | """Returns the model properties as a dict"""
77 | result = {}
78 |
79 | for attr, _ in six.iteritems(self.swagger_types):
80 | value = getattr(self, attr)
81 | if isinstance(value, list):
82 | result[attr] = list(map(
83 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
84 | value
85 | ))
86 | elif hasattr(value, "to_dict"):
87 | result[attr] = value.to_dict()
88 | elif isinstance(value, dict):
89 | result[attr] = dict(map(
90 | lambda item: (item[0], item[1].to_dict())
91 | if hasattr(item[1], "to_dict") else item,
92 | value.items()
93 | ))
94 | else:
95 | result[attr] = value
96 | if issubclass(GlobalStates, dict):
97 | for key, value in self.items():
98 | result[key] = value
99 |
100 | return result
101 |
102 | def to_str(self):
103 | """Returns the string representation of the model"""
104 | return pprint.pformat(self.to_dict())
105 |
106 | def __repr__(self):
107 | """For `print` and `pprint`"""
108 | return self.to_str()
109 |
110 | def __eq__(self, other):
111 | """Returns true if both objects are equal"""
112 | if not isinstance(other, GlobalStates):
113 | return False
114 |
115 | return self.to_dict() == other.to_dict()
116 |
117 | def __ne__(self, other):
118 | """Returns true if both objects are not equal"""
119 | if not isinstance(other, GlobalStates):
120 | return True
121 |
122 | return self.to_dict() != other.to_dict()
123 |
--------------------------------------------------------------------------------
/docusign_rooms/models/external_form_fill_session.py:
--------------------------------------------------------------------------------
1 | # coding: utf-8
2 |
3 | """
4 | DocuSign Rooms API - v2
5 |
6 | An API for an integrator to access the features of DocuSign Rooms # noqa: E501
7 |
8 | OpenAPI spec version: v2
9 | Contact: devcenter@docusign.com
10 | Generated by: https://github.com/swagger-api/swagger-codegen.git
11 | """
12 |
13 |
14 | import pprint
15 | import re # noqa: F401
16 |
17 | import six
18 |
19 | from docusign_rooms.client.configuration import Configuration
20 |
21 |
22 | class ExternalFormFillSession(object):
23 | """NOTE: This class is auto generated by the swagger code generator program.
24 |
25 | Do not edit the class manually.
26 | """
27 |
28 | """
29 | Attributes:
30 | swagger_types (dict): The key is attribute name
31 | and the value is attribute type.
32 | attribute_map (dict): The key is attribute name
33 | and the value is json key in definition.
34 | """
35 | swagger_types = {
36 | 'url': 'str'
37 | }
38 |
39 | attribute_map = {
40 | 'url': 'url'
41 | }
42 |
43 | def __init__(self, _configuration=None, **kwargs): # noqa: E501
44 | """ExternalFormFillSession - a model defined in Swagger""" # noqa: E501
45 | if _configuration is None:
46 | _configuration = Configuration()
47 | self._configuration = _configuration
48 |
49 | self._url = None
50 | self.discriminator = None
51 |
52 | setattr(self, "_{}".format('url'), kwargs.get('url', None))
53 |
54 | @property
55 | def url(self):
56 | """Gets the url of this ExternalFormFillSession. # noqa: E501
57 |
58 |
59 | :return: The url of this ExternalFormFillSession. # noqa: E501
60 | :rtype: str
61 | """
62 | return self._url
63 |
64 | @url.setter
65 | def url(self, url):
66 | """Sets the url of this ExternalFormFillSession.
67 |
68 |
69 | :param url: The url of this ExternalFormFillSession. # noqa: E501
70 | :type: str
71 | """
72 |
73 | self._url = url
74 |
75 | def to_dict(self):
76 | """Returns the model properties as a dict"""
77 | result = {}
78 |
79 | for attr, _ in six.iteritems(self.swagger_types):
80 | value = getattr(self, attr)
81 | if isinstance(value, list):
82 | result[attr] = list(map(
83 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
84 | value
85 | ))
86 | elif hasattr(value, "to_dict"):
87 | result[attr] = value.to_dict()
88 | elif isinstance(value, dict):
89 | result[attr] = dict(map(
90 | lambda item: (item[0], item[1].to_dict())
91 | if hasattr(item[1], "to_dict") else item,
92 | value.items()
93 | ))
94 | else:
95 | result[attr] = value
96 | if issubclass(ExternalFormFillSession, dict):
97 | for key, value in self.items():
98 | result[key] = value
99 |
100 | return result
101 |
102 | def to_str(self):
103 | """Returns the string representation of the model"""
104 | return pprint.pformat(self.to_dict())
105 |
106 | def __repr__(self):
107 | """For `print` and `pprint`"""
108 | return self.to_str()
109 |
110 | def __eq__(self, other):
111 | """Returns true if both objects are equal"""
112 | if not isinstance(other, ExternalFormFillSession):
113 | return False
114 |
115 | return self.to_dict() == other.to_dict()
116 |
117 | def __ne__(self, other):
118 | """Returns true if both objects are not equal"""
119 | if not isinstance(other, ExternalFormFillSession):
120 | return True
121 |
122 | return self.to_dict() != other.to_dict()
123 |
--------------------------------------------------------------------------------
/docusign_rooms/models/field_data_for_create.py:
--------------------------------------------------------------------------------
1 | # coding: utf-8
2 |
3 | """
4 | DocuSign Rooms API - v2
5 |
6 | An API for an integrator to access the features of DocuSign Rooms # noqa: E501
7 |
8 | OpenAPI spec version: v2
9 | Contact: devcenter@docusign.com
10 | Generated by: https://github.com/swagger-api/swagger-codegen.git
11 | """
12 |
13 |
14 | import pprint
15 | import re # noqa: F401
16 |
17 | import six
18 |
19 | from docusign_rooms.client.configuration import Configuration
20 |
21 |
22 | class FieldDataForCreate(object):
23 | """NOTE: This class is auto generated by the swagger code generator program.
24 |
25 | Do not edit the class manually.
26 | """
27 |
28 | """
29 | Attributes:
30 | swagger_types (dict): The key is attribute name
31 | and the value is attribute type.
32 | attribute_map (dict): The key is attribute name
33 | and the value is json key in definition.
34 | """
35 | swagger_types = {
36 | 'data': 'dict(str, object)'
37 | }
38 |
39 | attribute_map = {
40 | 'data': 'data'
41 | }
42 |
43 | def __init__(self, _configuration=None, **kwargs): # noqa: E501
44 | """FieldDataForCreate - a model defined in Swagger""" # noqa: E501
45 | if _configuration is None:
46 | _configuration = Configuration()
47 | self._configuration = _configuration
48 |
49 | self._data = None
50 | self.discriminator = None
51 |
52 | setattr(self, "_{}".format('data'), kwargs.get('data', None))
53 |
54 | @property
55 | def data(self):
56 | """Gets the data of this FieldDataForCreate. # noqa: E501
57 |
58 |
59 | :return: The data of this FieldDataForCreate. # noqa: E501
60 | :rtype: dict(str, object)
61 | """
62 | return self._data
63 |
64 | @data.setter
65 | def data(self, data):
66 | """Sets the data of this FieldDataForCreate.
67 |
68 |
69 | :param data: The data of this FieldDataForCreate. # noqa: E501
70 | :type: dict(str, object)
71 | """
72 |
73 | self._data = data
74 |
75 | def to_dict(self):
76 | """Returns the model properties as a dict"""
77 | result = {}
78 |
79 | for attr, _ in six.iteritems(self.swagger_types):
80 | value = getattr(self, attr)
81 | if isinstance(value, list):
82 | result[attr] = list(map(
83 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
84 | value
85 | ))
86 | elif hasattr(value, "to_dict"):
87 | result[attr] = value.to_dict()
88 | elif isinstance(value, dict):
89 | result[attr] = dict(map(
90 | lambda item: (item[0], item[1].to_dict())
91 | if hasattr(item[1], "to_dict") else item,
92 | value.items()
93 | ))
94 | else:
95 | result[attr] = value
96 | if issubclass(FieldDataForCreate, dict):
97 | for key, value in self.items():
98 | result[key] = value
99 |
100 | return result
101 |
102 | def to_str(self):
103 | """Returns the string representation of the model"""
104 | return pprint.pformat(self.to_dict())
105 |
106 | def __repr__(self):
107 | """For `print` and `pprint`"""
108 | return self.to_str()
109 |
110 | def __eq__(self, other):
111 | """Returns true if both objects are equal"""
112 | if not isinstance(other, FieldDataForCreate):
113 | return False
114 |
115 | return self.to_dict() == other.to_dict()
116 |
117 | def __ne__(self, other):
118 | """Returns true if both objects are not equal"""
119 | if not isinstance(other, FieldDataForCreate):
120 | return True
121 |
122 | return self.to_dict() != other.to_dict()
123 |
--------------------------------------------------------------------------------
/docusign_rooms/models/field_data_for_update.py:
--------------------------------------------------------------------------------
1 | # coding: utf-8
2 |
3 | """
4 | DocuSign Rooms API - v2
5 |
6 | An API for an integrator to access the features of DocuSign Rooms # noqa: E501
7 |
8 | OpenAPI spec version: v2
9 | Contact: devcenter@docusign.com
10 | Generated by: https://github.com/swagger-api/swagger-codegen.git
11 | """
12 |
13 |
14 | import pprint
15 | import re # noqa: F401
16 |
17 | import six
18 |
19 | from docusign_rooms.client.configuration import Configuration
20 |
21 |
22 | class FieldDataForUpdate(object):
23 | """NOTE: This class is auto generated by the swagger code generator program.
24 |
25 | Do not edit the class manually.
26 | """
27 |
28 | """
29 | Attributes:
30 | swagger_types (dict): The key is attribute name
31 | and the value is attribute type.
32 | attribute_map (dict): The key is attribute name
33 | and the value is json key in definition.
34 | """
35 | swagger_types = {
36 | 'data': 'dict(str, object)'
37 | }
38 |
39 | attribute_map = {
40 | 'data': 'data'
41 | }
42 |
43 | def __init__(self, _configuration=None, **kwargs): # noqa: E501
44 | """FieldDataForUpdate - a model defined in Swagger""" # noqa: E501
45 | if _configuration is None:
46 | _configuration = Configuration()
47 | self._configuration = _configuration
48 |
49 | self._data = None
50 | self.discriminator = None
51 |
52 | setattr(self, "_{}".format('data'), kwargs.get('data', None))
53 |
54 | @property
55 | def data(self):
56 | """Gets the data of this FieldDataForUpdate. # noqa: E501
57 |
58 |
59 | :return: The data of this FieldDataForUpdate. # noqa: E501
60 | :rtype: dict(str, object)
61 | """
62 | return self._data
63 |
64 | @data.setter
65 | def data(self, data):
66 | """Sets the data of this FieldDataForUpdate.
67 |
68 |
69 | :param data: The data of this FieldDataForUpdate. # noqa: E501
70 | :type: dict(str, object)
71 | """
72 |
73 | self._data = data
74 |
75 | def to_dict(self):
76 | """Returns the model properties as a dict"""
77 | result = {}
78 |
79 | for attr, _ in six.iteritems(self.swagger_types):
80 | value = getattr(self, attr)
81 | if isinstance(value, list):
82 | result[attr] = list(map(
83 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
84 | value
85 | ))
86 | elif hasattr(value, "to_dict"):
87 | result[attr] = value.to_dict()
88 | elif isinstance(value, dict):
89 | result[attr] = dict(map(
90 | lambda item: (item[0], item[1].to_dict())
91 | if hasattr(item[1], "to_dict") else item,
92 | value.items()
93 | ))
94 | else:
95 | result[attr] = value
96 | if issubclass(FieldDataForUpdate, dict):
97 | for key, value in self.items():
98 | result[key] = value
99 |
100 | return result
101 |
102 | def to_str(self):
103 | """Returns the string representation of the model"""
104 | return pprint.pformat(self.to_dict())
105 |
106 | def __repr__(self):
107 | """For `print` and `pprint`"""
108 | return self.to_str()
109 |
110 | def __eq__(self, other):
111 | """Returns true if both objects are equal"""
112 | if not isinstance(other, FieldDataForUpdate):
113 | return False
114 |
115 | return self.to_dict() == other.to_dict()
116 |
117 | def __ne__(self, other):
118 | """Returns true if both objects are not equal"""
119 | if not isinstance(other, FieldDataForUpdate):
120 | return True
121 |
122 | return self.to_dict() != other.to_dict()
123 |
--------------------------------------------------------------------------------
/docusign_rooms/models/global_countries.py:
--------------------------------------------------------------------------------
1 | # coding: utf-8
2 |
3 | """
4 | DocuSign Rooms API - v2
5 |
6 | An API for an integrator to access the features of DocuSign Rooms # noqa: E501
7 |
8 | OpenAPI spec version: v2
9 | Contact: devcenter@docusign.com
10 | Generated by: https://github.com/swagger-api/swagger-codegen.git
11 | """
12 |
13 |
14 | import pprint
15 | import re # noqa: F401
16 |
17 | import six
18 |
19 | from docusign_rooms.client.configuration import Configuration
20 |
21 |
22 | class GlobalCountries(object):
23 | """NOTE: This class is auto generated by the swagger code generator program.
24 |
25 | Do not edit the class manually.
26 | """
27 |
28 | """
29 | Attributes:
30 | swagger_types (dict): The key is attribute name
31 | and the value is attribute type.
32 | attribute_map (dict): The key is attribute name
33 | and the value is json key in definition.
34 | """
35 | swagger_types = {
36 | 'countries': 'list[Country]'
37 | }
38 |
39 | attribute_map = {
40 | 'countries': 'countries'
41 | }
42 |
43 | def __init__(self, _configuration=None, **kwargs): # noqa: E501
44 | """GlobalCountries - a model defined in Swagger""" # noqa: E501
45 | if _configuration is None:
46 | _configuration = Configuration()
47 | self._configuration = _configuration
48 |
49 | self._countries = None
50 | self.discriminator = None
51 |
52 | setattr(self, "_{}".format('countries'), kwargs.get('countries', None))
53 |
54 | @property
55 | def countries(self):
56 | """Gets the countries of this GlobalCountries. # noqa: E501
57 |
58 |
59 | :return: The countries of this GlobalCountries. # noqa: E501
60 | :rtype: list[Country]
61 | """
62 | return self._countries
63 |
64 | @countries.setter
65 | def countries(self, countries):
66 | """Sets the countries of this GlobalCountries.
67 |
68 |
69 | :param countries: The countries of this GlobalCountries. # noqa: E501
70 | :type: list[Country]
71 | """
72 |
73 | self._countries = countries
74 |
75 | def to_dict(self):
76 | """Returns the model properties as a dict"""
77 | result = {}
78 |
79 | for attr, _ in six.iteritems(self.swagger_types):
80 | value = getattr(self, attr)
81 | if isinstance(value, list):
82 | result[attr] = list(map(
83 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
84 | value
85 | ))
86 | elif hasattr(value, "to_dict"):
87 | result[attr] = value.to_dict()
88 | elif isinstance(value, dict):
89 | result[attr] = dict(map(
90 | lambda item: (item[0], item[1].to_dict())
91 | if hasattr(item[1], "to_dict") else item,
92 | value.items()
93 | ))
94 | else:
95 | result[attr] = value
96 | if issubclass(GlobalCountries, dict):
97 | for key, value in self.items():
98 | result[key] = value
99 |
100 | return result
101 |
102 | def to_str(self):
103 | """Returns the string representation of the model"""
104 | return pprint.pformat(self.to_dict())
105 |
106 | def __repr__(self):
107 | """For `print` and `pprint`"""
108 | return self.to_str()
109 |
110 | def __eq__(self, other):
111 | """Returns true if both objects are equal"""
112 | if not isinstance(other, GlobalCountries):
113 | return False
114 |
115 | return self.to_dict() == other.to_dict()
116 |
117 | def __ne__(self, other):
118 | """Returns true if both objects are not equal"""
119 | if not isinstance(other, GlobalCountries):
120 | return True
121 |
122 | return self.to_dict() != other.to_dict()
123 |
--------------------------------------------------------------------------------
/docusign_rooms/models/global_time_zones.py:
--------------------------------------------------------------------------------
1 | # coding: utf-8
2 |
3 | """
4 | DocuSign Rooms API - v2
5 |
6 | An API for an integrator to access the features of DocuSign Rooms # noqa: E501
7 |
8 | OpenAPI spec version: v2
9 | Contact: devcenter@docusign.com
10 | Generated by: https://github.com/swagger-api/swagger-codegen.git
11 | """
12 |
13 |
14 | import pprint
15 | import re # noqa: F401
16 |
17 | import six
18 |
19 | from docusign_rooms.client.configuration import Configuration
20 |
21 |
22 | class GlobalTimeZones(object):
23 | """NOTE: This class is auto generated by the swagger code generator program.
24 |
25 | Do not edit the class manually.
26 | """
27 |
28 | """
29 | Attributes:
30 | swagger_types (dict): The key is attribute name
31 | and the value is attribute type.
32 | attribute_map (dict): The key is attribute name
33 | and the value is json key in definition.
34 | """
35 | swagger_types = {
36 | 'time_zones': 'list[TimeZone]'
37 | }
38 |
39 | attribute_map = {
40 | 'time_zones': 'timeZones'
41 | }
42 |
43 | def __init__(self, _configuration=None, **kwargs): # noqa: E501
44 | """GlobalTimeZones - a model defined in Swagger""" # noqa: E501
45 | if _configuration is None:
46 | _configuration = Configuration()
47 | self._configuration = _configuration
48 |
49 | self._time_zones = None
50 | self.discriminator = None
51 |
52 | setattr(self, "_{}".format('time_zones'), kwargs.get('time_zones', None))
53 |
54 | @property
55 | def time_zones(self):
56 | """Gets the time_zones of this GlobalTimeZones. # noqa: E501
57 |
58 |
59 | :return: The time_zones of this GlobalTimeZones. # noqa: E501
60 | :rtype: list[TimeZone]
61 | """
62 | return self._time_zones
63 |
64 | @time_zones.setter
65 | def time_zones(self, time_zones):
66 | """Sets the time_zones of this GlobalTimeZones.
67 |
68 |
69 | :param time_zones: The time_zones of this GlobalTimeZones. # noqa: E501
70 | :type: list[TimeZone]
71 | """
72 |
73 | self._time_zones = time_zones
74 |
75 | def to_dict(self):
76 | """Returns the model properties as a dict"""
77 | result = {}
78 |
79 | for attr, _ in six.iteritems(self.swagger_types):
80 | value = getattr(self, attr)
81 | if isinstance(value, list):
82 | result[attr] = list(map(
83 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
84 | value
85 | ))
86 | elif hasattr(value, "to_dict"):
87 | result[attr] = value.to_dict()
88 | elif isinstance(value, dict):
89 | result[attr] = dict(map(
90 | lambda item: (item[0], item[1].to_dict())
91 | if hasattr(item[1], "to_dict") else item,
92 | value.items()
93 | ))
94 | else:
95 | result[attr] = value
96 | if issubclass(GlobalTimeZones, dict):
97 | for key, value in self.items():
98 | result[key] = value
99 |
100 | return result
101 |
102 | def to_str(self):
103 | """Returns the string representation of the model"""
104 | return pprint.pformat(self.to_dict())
105 |
106 | def __repr__(self):
107 | """For `print` and `pprint`"""
108 | return self.to_str()
109 |
110 | def __eq__(self, other):
111 | """Returns true if both objects are equal"""
112 | if not isinstance(other, GlobalTimeZones):
113 | return False
114 |
115 | return self.to_dict() == other.to_dict()
116 |
117 | def __ne__(self, other):
118 | """Returns true if both objects are not equal"""
119 | if not isinstance(other, GlobalTimeZones):
120 | return True
121 |
122 | return self.to_dict() != other.to_dict()
123 |
--------------------------------------------------------------------------------
/docusign_rooms/models/global_currencies.py:
--------------------------------------------------------------------------------
1 | # coding: utf-8
2 |
3 | """
4 | DocuSign Rooms API - v2
5 |
6 | An API for an integrator to access the features of DocuSign Rooms # noqa: E501
7 |
8 | OpenAPI spec version: v2
9 | Contact: devcenter@docusign.com
10 | Generated by: https://github.com/swagger-api/swagger-codegen.git
11 | """
12 |
13 |
14 | import pprint
15 | import re # noqa: F401
16 |
17 | import six
18 |
19 | from docusign_rooms.client.configuration import Configuration
20 |
21 |
22 | class GlobalCurrencies(object):
23 | """NOTE: This class is auto generated by the swagger code generator program.
24 |
25 | Do not edit the class manually.
26 | """
27 |
28 | """
29 | Attributes:
30 | swagger_types (dict): The key is attribute name
31 | and the value is attribute type.
32 | attribute_map (dict): The key is attribute name
33 | and the value is json key in definition.
34 | """
35 | swagger_types = {
36 | 'currencies': 'list[Currency]'
37 | }
38 |
39 | attribute_map = {
40 | 'currencies': 'currencies'
41 | }
42 |
43 | def __init__(self, _configuration=None, **kwargs): # noqa: E501
44 | """GlobalCurrencies - a model defined in Swagger""" # noqa: E501
45 | if _configuration is None:
46 | _configuration = Configuration()
47 | self._configuration = _configuration
48 |
49 | self._currencies = None
50 | self.discriminator = None
51 |
52 | setattr(self, "_{}".format('currencies'), kwargs.get('currencies', None))
53 |
54 | @property
55 | def currencies(self):
56 | """Gets the currencies of this GlobalCurrencies. # noqa: E501
57 |
58 |
59 | :return: The currencies of this GlobalCurrencies. # noqa: E501
60 | :rtype: list[Currency]
61 | """
62 | return self._currencies
63 |
64 | @currencies.setter
65 | def currencies(self, currencies):
66 | """Sets the currencies of this GlobalCurrencies.
67 |
68 |
69 | :param currencies: The currencies of this GlobalCurrencies. # noqa: E501
70 | :type: list[Currency]
71 | """
72 |
73 | self._currencies = currencies
74 |
75 | def to_dict(self):
76 | """Returns the model properties as a dict"""
77 | result = {}
78 |
79 | for attr, _ in six.iteritems(self.swagger_types):
80 | value = getattr(self, attr)
81 | if isinstance(value, list):
82 | result[attr] = list(map(
83 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
84 | value
85 | ))
86 | elif hasattr(value, "to_dict"):
87 | result[attr] = value.to_dict()
88 | elif isinstance(value, dict):
89 | result[attr] = dict(map(
90 | lambda item: (item[0], item[1].to_dict())
91 | if hasattr(item[1], "to_dict") else item,
92 | value.items()
93 | ))
94 | else:
95 | result[attr] = value
96 | if issubclass(GlobalCurrencies, dict):
97 | for key, value in self.items():
98 | result[key] = value
99 |
100 | return result
101 |
102 | def to_str(self):
103 | """Returns the string representation of the model"""
104 | return pprint.pformat(self.to_dict())
105 |
106 | def __repr__(self):
107 | """For `print` and `pprint`"""
108 | return self.to_str()
109 |
110 | def __eq__(self, other):
111 | """Returns true if both objects are equal"""
112 | if not isinstance(other, GlobalCurrencies):
113 | return False
114 |
115 | return self.to_dict() == other.to_dict()
116 |
117 | def __ne__(self, other):
118 | """Returns true if both objects are not equal"""
119 | if not isinstance(other, GlobalCurrencies):
120 | return True
121 |
122 | return self.to_dict() != other.to_dict()
123 |
--------------------------------------------------------------------------------
/docusign_rooms/models/envelope.py:
--------------------------------------------------------------------------------
1 | # coding: utf-8
2 |
3 | """
4 | DocuSign Rooms API - v2
5 |
6 | An API for an integrator to access the features of DocuSign Rooms # noqa: E501
7 |
8 | OpenAPI spec version: v2
9 | Contact: devcenter@docusign.com
10 | Generated by: https://github.com/swagger-api/swagger-codegen.git
11 | """
12 |
13 |
14 | import pprint
15 | import re # noqa: F401
16 |
17 | import six
18 |
19 | from docusign_rooms.client.configuration import Configuration
20 |
21 |
22 | class Envelope(object):
23 | """NOTE: This class is auto generated by the swagger code generator program.
24 |
25 | Do not edit the class manually.
26 | """
27 |
28 | """
29 | Attributes:
30 | swagger_types (dict): The key is attribute name
31 | and the value is attribute type.
32 | attribute_map (dict): The key is attribute name
33 | and the value is json key in definition.
34 | """
35 | swagger_types = {
36 | 'e_sign_envelope_id': 'str'
37 | }
38 |
39 | attribute_map = {
40 | 'e_sign_envelope_id': 'eSignEnvelopeId'
41 | }
42 |
43 | def __init__(self, _configuration=None, **kwargs): # noqa: E501
44 | """Envelope - a model defined in Swagger""" # noqa: E501
45 | if _configuration is None:
46 | _configuration = Configuration()
47 | self._configuration = _configuration
48 |
49 | self._e_sign_envelope_id = None
50 | self.discriminator = None
51 |
52 | setattr(self, "_{}".format('e_sign_envelope_id'), kwargs.get('e_sign_envelope_id', None))
53 |
54 | @property
55 | def e_sign_envelope_id(self):
56 | """Gets the e_sign_envelope_id of this Envelope. # noqa: E501
57 |
58 |
59 | :return: The e_sign_envelope_id of this Envelope. # noqa: E501
60 | :rtype: str
61 | """
62 | return self._e_sign_envelope_id
63 |
64 | @e_sign_envelope_id.setter
65 | def e_sign_envelope_id(self, e_sign_envelope_id):
66 | """Sets the e_sign_envelope_id of this Envelope.
67 |
68 |
69 | :param e_sign_envelope_id: The e_sign_envelope_id of this Envelope. # noqa: E501
70 | :type: str
71 | """
72 |
73 | self._e_sign_envelope_id = e_sign_envelope_id
74 |
75 | def to_dict(self):
76 | """Returns the model properties as a dict"""
77 | result = {}
78 |
79 | for attr, _ in six.iteritems(self.swagger_types):
80 | value = getattr(self, attr)
81 | if isinstance(value, list):
82 | result[attr] = list(map(
83 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
84 | value
85 | ))
86 | elif hasattr(value, "to_dict"):
87 | result[attr] = value.to_dict()
88 | elif isinstance(value, dict):
89 | result[attr] = dict(map(
90 | lambda item: (item[0], item[1].to_dict())
91 | if hasattr(item[1], "to_dict") else item,
92 | value.items()
93 | ))
94 | else:
95 | result[attr] = value
96 | if issubclass(Envelope, dict):
97 | for key, value in self.items():
98 | result[key] = value
99 |
100 | return result
101 |
102 | def to_str(self):
103 | """Returns the string representation of the model"""
104 | return pprint.pformat(self.to_dict())
105 |
106 | def __repr__(self):
107 | """For `print` and `pprint`"""
108 | return self.to_str()
109 |
110 | def __eq__(self, other):
111 | """Returns true if both objects are equal"""
112 | if not isinstance(other, Envelope):
113 | return False
114 |
115 | return self.to_dict() == other.to_dict()
116 |
117 | def __ne__(self, other):
118 | """Returns true if both objects are not equal"""
119 | if not isinstance(other, Envelope):
120 | return True
121 |
122 | return self.to_dict() != other.to_dict()
123 |
--------------------------------------------------------------------------------
/docusign_rooms/models/form_for_add.py:
--------------------------------------------------------------------------------
1 | # coding: utf-8
2 |
3 | """
4 | DocuSign Rooms API - v2
5 |
6 | An API for an integrator to access the features of DocuSign Rooms # noqa: E501
7 |
8 | OpenAPI spec version: v2
9 | Contact: devcenter@docusign.com
10 | Generated by: https://github.com/swagger-api/swagger-codegen.git
11 | """
12 |
13 |
14 | import pprint
15 | import re # noqa: F401
16 |
17 | import six
18 |
19 | from docusign_rooms.client.configuration import Configuration
20 |
21 |
22 | class FormForAdd(object):
23 | """NOTE: This class is auto generated by the swagger code generator program.
24 |
25 | Do not edit the class manually.
26 | """
27 |
28 | """
29 | Attributes:
30 | swagger_types (dict): The key is attribute name
31 | and the value is attribute type.
32 | attribute_map (dict): The key is attribute name
33 | and the value is json key in definition.
34 | """
35 | swagger_types = {
36 | 'form_id': 'str'
37 | }
38 |
39 | attribute_map = {
40 | 'form_id': 'formId'
41 | }
42 |
43 | def __init__(self, _configuration=None, **kwargs): # noqa: E501
44 | """FormForAdd - a model defined in Swagger""" # noqa: E501
45 | if _configuration is None:
46 | _configuration = Configuration()
47 | self._configuration = _configuration
48 |
49 | self._form_id = None
50 | self.discriminator = None
51 |
52 | setattr(self, "_{}".format('form_id'), kwargs.get('form_id', None))
53 |
54 | @property
55 | def form_id(self):
56 | """Gets the form_id of this FormForAdd. # noqa: E501
57 |
58 |
59 | :return: The form_id of this FormForAdd. # noqa: E501
60 | :rtype: str
61 | """
62 | return self._form_id
63 |
64 | @form_id.setter
65 | def form_id(self, form_id):
66 | """Sets the form_id of this FormForAdd.
67 |
68 |
69 | :param form_id: The form_id of this FormForAdd. # noqa: E501
70 | :type: str
71 | """
72 | if self._configuration.client_side_validation and form_id is None:
73 | raise ValueError("Invalid value for `form_id`, must not be `None`") # noqa: E501
74 |
75 | self._form_id = form_id
76 |
77 | def to_dict(self):
78 | """Returns the model properties as a dict"""
79 | result = {}
80 |
81 | for attr, _ in six.iteritems(self.swagger_types):
82 | value = getattr(self, attr)
83 | if isinstance(value, list):
84 | result[attr] = list(map(
85 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
86 | value
87 | ))
88 | elif hasattr(value, "to_dict"):
89 | result[attr] = value.to_dict()
90 | elif isinstance(value, dict):
91 | result[attr] = dict(map(
92 | lambda item: (item[0], item[1].to_dict())
93 | if hasattr(item[1], "to_dict") else item,
94 | value.items()
95 | ))
96 | else:
97 | result[attr] = value
98 | if issubclass(FormForAdd, dict):
99 | for key, value in self.items():
100 | result[key] = value
101 |
102 | return result
103 |
104 | def to_str(self):
105 | """Returns the string representation of the model"""
106 | return pprint.pformat(self.to_dict())
107 |
108 | def __repr__(self):
109 | """For `print` and `pprint`"""
110 | return self.to_str()
111 |
112 | def __eq__(self, other):
113 | """Returns true if both objects are equal"""
114 | if not isinstance(other, FormForAdd):
115 | return False
116 |
117 | return self.to_dict() == other.to_dict()
118 |
119 | def __ne__(self, other):
120 | """Returns true if both objects are not equal"""
121 | if not isinstance(other, FormForAdd):
122 | return True
123 |
124 | return self.to_dict() != other.to_dict()
125 |
--------------------------------------------------------------------------------
/docusign_rooms/models/form_group_for_create.py:
--------------------------------------------------------------------------------
1 | # coding: utf-8
2 |
3 | """
4 | DocuSign Rooms API - v2
5 |
6 | An API for an integrator to access the features of DocuSign Rooms # noqa: E501
7 |
8 | OpenAPI spec version: v2
9 | Contact: devcenter@docusign.com
10 | Generated by: https://github.com/swagger-api/swagger-codegen.git
11 | """
12 |
13 |
14 | import pprint
15 | import re # noqa: F401
16 |
17 | import six
18 |
19 | from docusign_rooms.client.configuration import Configuration
20 |
21 |
22 | class FormGroupForCreate(object):
23 | """NOTE: This class is auto generated by the swagger code generator program.
24 |
25 | Do not edit the class manually.
26 | """
27 |
28 | """
29 | Attributes:
30 | swagger_types (dict): The key is attribute name
31 | and the value is attribute type.
32 | attribute_map (dict): The key is attribute name
33 | and the value is json key in definition.
34 | """
35 | swagger_types = {
36 | 'name': 'str'
37 | }
38 |
39 | attribute_map = {
40 | 'name': 'name'
41 | }
42 |
43 | def __init__(self, _configuration=None, **kwargs): # noqa: E501
44 | """FormGroupForCreate - a model defined in Swagger""" # noqa: E501
45 | if _configuration is None:
46 | _configuration = Configuration()
47 | self._configuration = _configuration
48 |
49 | self._name = None
50 | self.discriminator = None
51 |
52 | setattr(self, "_{}".format('name'), kwargs.get('name', None))
53 |
54 | @property
55 | def name(self):
56 | """Gets the name of this FormGroupForCreate. # noqa: E501
57 |
58 |
59 | :return: The name of this FormGroupForCreate. # noqa: E501
60 | :rtype: str
61 | """
62 | return self._name
63 |
64 | @name.setter
65 | def name(self, name):
66 | """Sets the name of this FormGroupForCreate.
67 |
68 |
69 | :param name: The name of this FormGroupForCreate. # noqa: E501
70 | :type: str
71 | """
72 | if self._configuration.client_side_validation and name is None:
73 | raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
74 |
75 | self._name = name
76 |
77 | def to_dict(self):
78 | """Returns the model properties as a dict"""
79 | result = {}
80 |
81 | for attr, _ in six.iteritems(self.swagger_types):
82 | value = getattr(self, attr)
83 | if isinstance(value, list):
84 | result[attr] = list(map(
85 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
86 | value
87 | ))
88 | elif hasattr(value, "to_dict"):
89 | result[attr] = value.to_dict()
90 | elif isinstance(value, dict):
91 | result[attr] = dict(map(
92 | lambda item: (item[0], item[1].to_dict())
93 | if hasattr(item[1], "to_dict") else item,
94 | value.items()
95 | ))
96 | else:
97 | result[attr] = value
98 | if issubclass(FormGroupForCreate, dict):
99 | for key, value in self.items():
100 | result[key] = value
101 |
102 | return result
103 |
104 | def to_str(self):
105 | """Returns the string representation of the model"""
106 | return pprint.pformat(self.to_dict())
107 |
108 | def __repr__(self):
109 | """For `print` and `pprint`"""
110 | return self.to_str()
111 |
112 | def __eq__(self, other):
113 | """Returns true if both objects are equal"""
114 | if not isinstance(other, FormGroupForCreate):
115 | return False
116 |
117 | return self.to_dict() == other.to_dict()
118 |
119 | def __ne__(self, other):
120 | """Returns true if both objects are not equal"""
121 | if not isinstance(other, FormGroupForCreate):
122 | return True
123 |
124 | return self.to_dict() != other.to_dict()
125 |
--------------------------------------------------------------------------------
/docusign_rooms/models/form_group_for_update.py:
--------------------------------------------------------------------------------
1 | # coding: utf-8
2 |
3 | """
4 | DocuSign Rooms API - v2
5 |
6 | An API for an integrator to access the features of DocuSign Rooms # noqa: E501
7 |
8 | OpenAPI spec version: v2
9 | Contact: devcenter@docusign.com
10 | Generated by: https://github.com/swagger-api/swagger-codegen.git
11 | """
12 |
13 |
14 | import pprint
15 | import re # noqa: F401
16 |
17 | import six
18 |
19 | from docusign_rooms.client.configuration import Configuration
20 |
21 |
22 | class FormGroupForUpdate(object):
23 | """NOTE: This class is auto generated by the swagger code generator program.
24 |
25 | Do not edit the class manually.
26 | """
27 |
28 | """
29 | Attributes:
30 | swagger_types (dict): The key is attribute name
31 | and the value is attribute type.
32 | attribute_map (dict): The key is attribute name
33 | and the value is json key in definition.
34 | """
35 | swagger_types = {
36 | 'name': 'str'
37 | }
38 |
39 | attribute_map = {
40 | 'name': 'name'
41 | }
42 |
43 | def __init__(self, _configuration=None, **kwargs): # noqa: E501
44 | """FormGroupForUpdate - a model defined in Swagger""" # noqa: E501
45 | if _configuration is None:
46 | _configuration = Configuration()
47 | self._configuration = _configuration
48 |
49 | self._name = None
50 | self.discriminator = None
51 |
52 | setattr(self, "_{}".format('name'), kwargs.get('name', None))
53 |
54 | @property
55 | def name(self):
56 | """Gets the name of this FormGroupForUpdate. # noqa: E501
57 |
58 |
59 | :return: The name of this FormGroupForUpdate. # noqa: E501
60 | :rtype: str
61 | """
62 | return self._name
63 |
64 | @name.setter
65 | def name(self, name):
66 | """Sets the name of this FormGroupForUpdate.
67 |
68 |
69 | :param name: The name of this FormGroupForUpdate. # noqa: E501
70 | :type: str
71 | """
72 | if self._configuration.client_side_validation and name is None:
73 | raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
74 |
75 | self._name = name
76 |
77 | def to_dict(self):
78 | """Returns the model properties as a dict"""
79 | result = {}
80 |
81 | for attr, _ in six.iteritems(self.swagger_types):
82 | value = getattr(self, attr)
83 | if isinstance(value, list):
84 | result[attr] = list(map(
85 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
86 | value
87 | ))
88 | elif hasattr(value, "to_dict"):
89 | result[attr] = value.to_dict()
90 | elif isinstance(value, dict):
91 | result[attr] = dict(map(
92 | lambda item: (item[0], item[1].to_dict())
93 | if hasattr(item[1], "to_dict") else item,
94 | value.items()
95 | ))
96 | else:
97 | result[attr] = value
98 | if issubclass(FormGroupForUpdate, dict):
99 | for key, value in self.items():
100 | result[key] = value
101 |
102 | return result
103 |
104 | def to_str(self):
105 | """Returns the string representation of the model"""
106 | return pprint.pformat(self.to_dict())
107 |
108 | def __repr__(self):
109 | """For `print` and `pprint`"""
110 | return self.to_str()
111 |
112 | def __eq__(self, other):
113 | """Returns true if both objects are equal"""
114 | if not isinstance(other, FormGroupForUpdate):
115 | return False
116 |
117 | return self.to_dict() == other.to_dict()
118 |
119 | def __ne__(self, other):
120 | """Returns true if both objects are not equal"""
121 | if not isinstance(other, FormGroupForUpdate):
122 | return True
123 |
124 | return self.to_dict() != other.to_dict()
125 |
--------------------------------------------------------------------------------
/docusign_rooms/models/locked_out_details.py:
--------------------------------------------------------------------------------
1 | # coding: utf-8
2 |
3 | """
4 | DocuSign Rooms API - v2
5 |
6 | An API for an integrator to access the features of DocuSign Rooms # noqa: E501
7 |
8 | OpenAPI spec version: v2
9 | Contact: devcenter@docusign.com
10 | Generated by: https://github.com/swagger-api/swagger-codegen.git
11 | """
12 |
13 |
14 | import pprint
15 | import re # noqa: F401
16 |
17 | import six
18 |
19 | from docusign_rooms.client.configuration import Configuration
20 |
21 |
22 | class LockedOutDetails(object):
23 | """NOTE: This class is auto generated by the swagger code generator program.
24 |
25 | Do not edit the class manually.
26 | """
27 |
28 | """
29 | Attributes:
30 | swagger_types (dict): The key is attribute name
31 | and the value is attribute type.
32 | attribute_map (dict): The key is attribute name
33 | and the value is json key in definition.
34 | """
35 | swagger_types = {
36 | 'reason': 'str'
37 | }
38 |
39 | attribute_map = {
40 | 'reason': 'reason'
41 | }
42 |
43 | def __init__(self, _configuration=None, **kwargs): # noqa: E501
44 | """LockedOutDetails - a model defined in Swagger""" # noqa: E501
45 | if _configuration is None:
46 | _configuration = Configuration()
47 | self._configuration = _configuration
48 |
49 | self._reason = None
50 | self.discriminator = None
51 |
52 | setattr(self, "_{}".format('reason'), kwargs.get('reason', None))
53 |
54 | @property
55 | def reason(self):
56 | """Gets the reason of this LockedOutDetails. # noqa: E501
57 |
58 |
59 | :return: The reason of this LockedOutDetails. # noqa: E501
60 | :rtype: str
61 | """
62 | return self._reason
63 |
64 | @reason.setter
65 | def reason(self, reason):
66 | """Sets the reason of this LockedOutDetails.
67 |
68 |
69 | :param reason: The reason of this LockedOutDetails. # noqa: E501
70 | :type: str
71 | """
72 | if self._configuration.client_side_validation and reason is None:
73 | raise ValueError("Invalid value for `reason`, must not be `None`") # noqa: E501
74 |
75 | self._reason = reason
76 |
77 | def to_dict(self):
78 | """Returns the model properties as a dict"""
79 | result = {}
80 |
81 | for attr, _ in six.iteritems(self.swagger_types):
82 | value = getattr(self, attr)
83 | if isinstance(value, list):
84 | result[attr] = list(map(
85 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
86 | value
87 | ))
88 | elif hasattr(value, "to_dict"):
89 | result[attr] = value.to_dict()
90 | elif isinstance(value, dict):
91 | result[attr] = dict(map(
92 | lambda item: (item[0], item[1].to_dict())
93 | if hasattr(item[1], "to_dict") else item,
94 | value.items()
95 | ))
96 | else:
97 | result[attr] = value
98 | if issubclass(LockedOutDetails, dict):
99 | for key, value in self.items():
100 | result[key] = value
101 |
102 | return result
103 |
104 | def to_str(self):
105 | """Returns the string representation of the model"""
106 | return pprint.pformat(self.to_dict())
107 |
108 | def __repr__(self):
109 | """For `print` and `pprint`"""
110 | return self.to_str()
111 |
112 | def __eq__(self, other):
113 | """Returns true if both objects are equal"""
114 | if not isinstance(other, LockedOutDetails):
115 | return False
116 |
117 | return self.to_dict() == other.to_dict()
118 |
119 | def __ne__(self, other):
120 | """Returns true if both objects are not equal"""
121 | if not isinstance(other, LockedOutDetails):
122 | return True
123 |
124 | return self.to_dict() != other.to_dict()
125 |
--------------------------------------------------------------------------------
/docusign_rooms/models/global_contact_sides.py:
--------------------------------------------------------------------------------
1 | # coding: utf-8
2 |
3 | """
4 | DocuSign Rooms API - v2
5 |
6 | An API for an integrator to access the features of DocuSign Rooms # noqa: E501
7 |
8 | OpenAPI spec version: v2
9 | Contact: devcenter@docusign.com
10 | Generated by: https://github.com/swagger-api/swagger-codegen.git
11 | """
12 |
13 |
14 | import pprint
15 | import re # noqa: F401
16 |
17 | import six
18 |
19 | from docusign_rooms.client.configuration import Configuration
20 |
21 |
22 | class GlobalContactSides(object):
23 | """NOTE: This class is auto generated by the swagger code generator program.
24 |
25 | Do not edit the class manually.
26 | """
27 |
28 | """
29 | Attributes:
30 | swagger_types (dict): The key is attribute name
31 | and the value is attribute type.
32 | attribute_map (dict): The key is attribute name
33 | and the value is json key in definition.
34 | """
35 | swagger_types = {
36 | 'contact_sides': 'list[ContactSide]'
37 | }
38 |
39 | attribute_map = {
40 | 'contact_sides': 'contactSides'
41 | }
42 |
43 | def __init__(self, _configuration=None, **kwargs): # noqa: E501
44 | """GlobalContactSides - a model defined in Swagger""" # noqa: E501
45 | if _configuration is None:
46 | _configuration = Configuration()
47 | self._configuration = _configuration
48 |
49 | self._contact_sides = None
50 | self.discriminator = None
51 |
52 | setattr(self, "_{}".format('contact_sides'), kwargs.get('contact_sides', None))
53 |
54 | @property
55 | def contact_sides(self):
56 | """Gets the contact_sides of this GlobalContactSides. # noqa: E501
57 |
58 |
59 | :return: The contact_sides of this GlobalContactSides. # noqa: E501
60 | :rtype: list[ContactSide]
61 | """
62 | return self._contact_sides
63 |
64 | @contact_sides.setter
65 | def contact_sides(self, contact_sides):
66 | """Sets the contact_sides of this GlobalContactSides.
67 |
68 |
69 | :param contact_sides: The contact_sides of this GlobalContactSides. # noqa: E501
70 | :type: list[ContactSide]
71 | """
72 |
73 | self._contact_sides = contact_sides
74 |
75 | def to_dict(self):
76 | """Returns the model properties as a dict"""
77 | result = {}
78 |
79 | for attr, _ in six.iteritems(self.swagger_types):
80 | value = getattr(self, attr)
81 | if isinstance(value, list):
82 | result[attr] = list(map(
83 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
84 | value
85 | ))
86 | elif hasattr(value, "to_dict"):
87 | result[attr] = value.to_dict()
88 | elif isinstance(value, dict):
89 | result[attr] = dict(map(
90 | lambda item: (item[0], item[1].to_dict())
91 | if hasattr(item[1], "to_dict") else item,
92 | value.items()
93 | ))
94 | else:
95 | result[attr] = value
96 | if issubclass(GlobalContactSides, dict):
97 | for key, value in self.items():
98 | result[key] = value
99 |
100 | return result
101 |
102 | def to_str(self):
103 | """Returns the string representation of the model"""
104 | return pprint.pformat(self.to_dict())
105 |
106 | def __repr__(self):
107 | """For `print` and `pprint`"""
108 | return self.to_str()
109 |
110 | def __eq__(self, other):
111 | """Returns true if both objects are equal"""
112 | if not isinstance(other, GlobalContactSides):
113 | return False
114 |
115 | return self.to_dict() == other.to_dict()
116 |
117 | def __ne__(self, other):
118 | """Returns true if both objects are not equal"""
119 | if not isinstance(other, GlobalContactSides):
120 | return True
121 |
122 | return self.to_dict() != other.to_dict()
123 |
--------------------------------------------------------------------------------
/docusign_rooms/models/global_task_statuses.py:
--------------------------------------------------------------------------------
1 | # coding: utf-8
2 |
3 | """
4 | DocuSign Rooms API - v2
5 |
6 | An API for an integrator to access the features of DocuSign Rooms # noqa: E501
7 |
8 | OpenAPI spec version: v2
9 | Contact: devcenter@docusign.com
10 | Generated by: https://github.com/swagger-api/swagger-codegen.git
11 | """
12 |
13 |
14 | import pprint
15 | import re # noqa: F401
16 |
17 | import six
18 |
19 | from docusign_rooms.client.configuration import Configuration
20 |
21 |
22 | class GlobalTaskStatuses(object):
23 | """NOTE: This class is auto generated by the swagger code generator program.
24 |
25 | Do not edit the class manually.
26 | """
27 |
28 | """
29 | Attributes:
30 | swagger_types (dict): The key is attribute name
31 | and the value is attribute type.
32 | attribute_map (dict): The key is attribute name
33 | and the value is json key in definition.
34 | """
35 | swagger_types = {
36 | 'task_statuses': 'list[TaskStatus]'
37 | }
38 |
39 | attribute_map = {
40 | 'task_statuses': 'taskStatuses'
41 | }
42 |
43 | def __init__(self, _configuration=None, **kwargs): # noqa: E501
44 | """GlobalTaskStatuses - a model defined in Swagger""" # noqa: E501
45 | if _configuration is None:
46 | _configuration = Configuration()
47 | self._configuration = _configuration
48 |
49 | self._task_statuses = None
50 | self.discriminator = None
51 |
52 | setattr(self, "_{}".format('task_statuses'), kwargs.get('task_statuses', None))
53 |
54 | @property
55 | def task_statuses(self):
56 | """Gets the task_statuses of this GlobalTaskStatuses. # noqa: E501
57 |
58 |
59 | :return: The task_statuses of this GlobalTaskStatuses. # noqa: E501
60 | :rtype: list[TaskStatus]
61 | """
62 | return self._task_statuses
63 |
64 | @task_statuses.setter
65 | def task_statuses(self, task_statuses):
66 | """Sets the task_statuses of this GlobalTaskStatuses.
67 |
68 |
69 | :param task_statuses: The task_statuses of this GlobalTaskStatuses. # noqa: E501
70 | :type: list[TaskStatus]
71 | """
72 |
73 | self._task_statuses = task_statuses
74 |
75 | def to_dict(self):
76 | """Returns the model properties as a dict"""
77 | result = {}
78 |
79 | for attr, _ in six.iteritems(self.swagger_types):
80 | value = getattr(self, attr)
81 | if isinstance(value, list):
82 | result[attr] = list(map(
83 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
84 | value
85 | ))
86 | elif hasattr(value, "to_dict"):
87 | result[attr] = value.to_dict()
88 | elif isinstance(value, dict):
89 | result[attr] = dict(map(
90 | lambda item: (item[0], item[1].to_dict())
91 | if hasattr(item[1], "to_dict") else item,
92 | value.items()
93 | ))
94 | else:
95 | result[attr] = value
96 | if issubclass(GlobalTaskStatuses, dict):
97 | for key, value in self.items():
98 | result[key] = value
99 |
100 | return result
101 |
102 | def to_str(self):
103 | """Returns the string representation of the model"""
104 | return pprint.pformat(self.to_dict())
105 |
106 | def __repr__(self):
107 | """For `print` and `pprint`"""
108 | return self.to_str()
109 |
110 | def __eq__(self, other):
111 | """Returns true if both objects are equal"""
112 | if not isinstance(other, GlobalTaskStatuses):
113 | return False
114 |
115 | return self.to_dict() == other.to_dict()
116 |
117 | def __ne__(self, other):
118 | """Returns true if both objects are not equal"""
119 | if not isinstance(other, GlobalTaskStatuses):
120 | return True
121 |
122 | return self.to_dict() != other.to_dict()
123 |
--------------------------------------------------------------------------------
/docusign_rooms/models/global_activity_types.py:
--------------------------------------------------------------------------------
1 | # coding: utf-8
2 |
3 | """
4 | DocuSign Rooms API - v2
5 |
6 | An API for an integrator to access the features of DocuSign Rooms # noqa: E501
7 |
8 | OpenAPI spec version: v2
9 | Contact: devcenter@docusign.com
10 | Generated by: https://github.com/swagger-api/swagger-codegen.git
11 | """
12 |
13 |
14 | import pprint
15 | import re # noqa: F401
16 |
17 | import six
18 |
19 | from docusign_rooms.client.configuration import Configuration
20 |
21 |
22 | class GlobalActivityTypes(object):
23 | """NOTE: This class is auto generated by the swagger code generator program.
24 |
25 | Do not edit the class manually.
26 | """
27 |
28 | """
29 | Attributes:
30 | swagger_types (dict): The key is attribute name
31 | and the value is attribute type.
32 | attribute_map (dict): The key is attribute name
33 | and the value is json key in definition.
34 | """
35 | swagger_types = {
36 | 'activity_types': 'list[ActivityType]'
37 | }
38 |
39 | attribute_map = {
40 | 'activity_types': 'activityTypes'
41 | }
42 |
43 | def __init__(self, _configuration=None, **kwargs): # noqa: E501
44 | """GlobalActivityTypes - a model defined in Swagger""" # noqa: E501
45 | if _configuration is None:
46 | _configuration = Configuration()
47 | self._configuration = _configuration
48 |
49 | self._activity_types = None
50 | self.discriminator = None
51 |
52 | setattr(self, "_{}".format('activity_types'), kwargs.get('activity_types', None))
53 |
54 | @property
55 | def activity_types(self):
56 | """Gets the activity_types of this GlobalActivityTypes. # noqa: E501
57 |
58 |
59 | :return: The activity_types of this GlobalActivityTypes. # noqa: E501
60 | :rtype: list[ActivityType]
61 | """
62 | return self._activity_types
63 |
64 | @activity_types.setter
65 | def activity_types(self, activity_types):
66 | """Sets the activity_types of this GlobalActivityTypes.
67 |
68 |
69 | :param activity_types: The activity_types of this GlobalActivityTypes. # noqa: E501
70 | :type: list[ActivityType]
71 | """
72 |
73 | self._activity_types = activity_types
74 |
75 | def to_dict(self):
76 | """Returns the model properties as a dict"""
77 | result = {}
78 |
79 | for attr, _ in six.iteritems(self.swagger_types):
80 | value = getattr(self, attr)
81 | if isinstance(value, list):
82 | result[attr] = list(map(
83 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
84 | value
85 | ))
86 | elif hasattr(value, "to_dict"):
87 | result[attr] = value.to_dict()
88 | elif isinstance(value, dict):
89 | result[attr] = dict(map(
90 | lambda item: (item[0], item[1].to_dict())
91 | if hasattr(item[1], "to_dict") else item,
92 | value.items()
93 | ))
94 | else:
95 | result[attr] = value
96 | if issubclass(GlobalActivityTypes, dict):
97 | for key, value in self.items():
98 | result[key] = value
99 |
100 | return result
101 |
102 | def to_str(self):
103 | """Returns the string representation of the model"""
104 | return pprint.pformat(self.to_dict())
105 |
106 | def __repr__(self):
107 | """For `print` and `pprint`"""
108 | return self.to_str()
109 |
110 | def __eq__(self, other):
111 | """Returns true if both objects are equal"""
112 | if not isinstance(other, GlobalActivityTypes):
113 | return False
114 |
115 | return self.to_dict() == other.to_dict()
116 |
117 | def __ne__(self, other):
118 | """Returns true if both objects are not equal"""
119 | if not isinstance(other, GlobalActivityTypes):
120 | return True
121 |
122 | return self.to_dict() != other.to_dict()
123 |
--------------------------------------------------------------------------------
/docusign_rooms/models/global_property_types.py:
--------------------------------------------------------------------------------
1 | # coding: utf-8
2 |
3 | """
4 | DocuSign Rooms API - v2
5 |
6 | An API for an integrator to access the features of DocuSign Rooms # noqa: E501
7 |
8 | OpenAPI spec version: v2
9 | Contact: devcenter@docusign.com
10 | Generated by: https://github.com/swagger-api/swagger-codegen.git
11 | """
12 |
13 |
14 | import pprint
15 | import re # noqa: F401
16 |
17 | import six
18 |
19 | from docusign_rooms.client.configuration import Configuration
20 |
21 |
22 | class GlobalPropertyTypes(object):
23 | """NOTE: This class is auto generated by the swagger code generator program.
24 |
25 | Do not edit the class manually.
26 | """
27 |
28 | """
29 | Attributes:
30 | swagger_types (dict): The key is attribute name
31 | and the value is attribute type.
32 | attribute_map (dict): The key is attribute name
33 | and the value is json key in definition.
34 | """
35 | swagger_types = {
36 | 'property_types': 'list[PropertyType]'
37 | }
38 |
39 | attribute_map = {
40 | 'property_types': 'propertyTypes'
41 | }
42 |
43 | def __init__(self, _configuration=None, **kwargs): # noqa: E501
44 | """GlobalPropertyTypes - a model defined in Swagger""" # noqa: E501
45 | if _configuration is None:
46 | _configuration = Configuration()
47 | self._configuration = _configuration
48 |
49 | self._property_types = None
50 | self.discriminator = None
51 |
52 | setattr(self, "_{}".format('property_types'), kwargs.get('property_types', None))
53 |
54 | @property
55 | def property_types(self):
56 | """Gets the property_types of this GlobalPropertyTypes. # noqa: E501
57 |
58 |
59 | :return: The property_types of this GlobalPropertyTypes. # noqa: E501
60 | :rtype: list[PropertyType]
61 | """
62 | return self._property_types
63 |
64 | @property_types.setter
65 | def property_types(self, property_types):
66 | """Sets the property_types of this GlobalPropertyTypes.
67 |
68 |
69 | :param property_types: The property_types of this GlobalPropertyTypes. # noqa: E501
70 | :type: list[PropertyType]
71 | """
72 |
73 | self._property_types = property_types
74 |
75 | def to_dict(self):
76 | """Returns the model properties as a dict"""
77 | result = {}
78 |
79 | for attr, _ in six.iteritems(self.swagger_types):
80 | value = getattr(self, attr)
81 | if isinstance(value, list):
82 | result[attr] = list(map(
83 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
84 | value
85 | ))
86 | elif hasattr(value, "to_dict"):
87 | result[attr] = value.to_dict()
88 | elif isinstance(value, dict):
89 | result[attr] = dict(map(
90 | lambda item: (item[0], item[1].to_dict())
91 | if hasattr(item[1], "to_dict") else item,
92 | value.items()
93 | ))
94 | else:
95 | result[attr] = value
96 | if issubclass(GlobalPropertyTypes, dict):
97 | for key, value in self.items():
98 | result[key] = value
99 |
100 | return result
101 |
102 | def to_str(self):
103 | """Returns the string representation of the model"""
104 | return pprint.pformat(self.to_dict())
105 |
106 | def __repr__(self):
107 | """For `print` and `pprint`"""
108 | return self.to_str()
109 |
110 | def __eq__(self, other):
111 | """Returns true if both objects are equal"""
112 | if not isinstance(other, GlobalPropertyTypes):
113 | return False
114 |
115 | return self.to_dict() == other.to_dict()
116 |
117 | def __ne__(self, other):
118 | """Returns true if both objects are not equal"""
119 | if not isinstance(other, GlobalPropertyTypes):
120 | return True
121 |
122 | return self.to_dict() != other.to_dict()
123 |
--------------------------------------------------------------------------------
/docusign_rooms/models/room_user_removal_detail.py:
--------------------------------------------------------------------------------
1 | # coding: utf-8
2 |
3 | """
4 | DocuSign Rooms API - v2
5 |
6 | An API for an integrator to access the features of DocuSign Rooms # noqa: E501
7 |
8 | OpenAPI spec version: v2
9 | Contact: devcenter@docusign.com
10 | Generated by: https://github.com/swagger-api/swagger-codegen.git
11 | """
12 |
13 |
14 | import pprint
15 | import re # noqa: F401
16 |
17 | import six
18 |
19 | from docusign_rooms.client.configuration import Configuration
20 |
21 |
22 | class RoomUserRemovalDetail(object):
23 | """NOTE: This class is auto generated by the swagger code generator program.
24 |
25 | Do not edit the class manually.
26 | """
27 |
28 | """
29 | Attributes:
30 | swagger_types (dict): The key is attribute name
31 | and the value is attribute type.
32 | attribute_map (dict): The key is attribute name
33 | and the value is json key in definition.
34 | """
35 | swagger_types = {
36 | 'revocation_date': 'datetime'
37 | }
38 |
39 | attribute_map = {
40 | 'revocation_date': 'revocationDate'
41 | }
42 |
43 | def __init__(self, _configuration=None, **kwargs): # noqa: E501
44 | """RoomUserRemovalDetail - a model defined in Swagger""" # noqa: E501
45 | if _configuration is None:
46 | _configuration = Configuration()
47 | self._configuration = _configuration
48 |
49 | self._revocation_date = None
50 | self.discriminator = None
51 |
52 | setattr(self, "_{}".format('revocation_date'), kwargs.get('revocation_date', None))
53 |
54 | @property
55 | def revocation_date(self):
56 | """Gets the revocation_date of this RoomUserRemovalDetail. # noqa: E501
57 |
58 |
59 | :return: The revocation_date of this RoomUserRemovalDetail. # noqa: E501
60 | :rtype: datetime
61 | """
62 | return self._revocation_date
63 |
64 | @revocation_date.setter
65 | def revocation_date(self, revocation_date):
66 | """Sets the revocation_date of this RoomUserRemovalDetail.
67 |
68 |
69 | :param revocation_date: The revocation_date of this RoomUserRemovalDetail. # noqa: E501
70 | :type: datetime
71 | """
72 |
73 | self._revocation_date = revocation_date
74 |
75 | def to_dict(self):
76 | """Returns the model properties as a dict"""
77 | result = {}
78 |
79 | for attr, _ in six.iteritems(self.swagger_types):
80 | value = getattr(self, attr)
81 | if isinstance(value, list):
82 | result[attr] = list(map(
83 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
84 | value
85 | ))
86 | elif hasattr(value, "to_dict"):
87 | result[attr] = value.to_dict()
88 | elif isinstance(value, dict):
89 | result[attr] = dict(map(
90 | lambda item: (item[0], item[1].to_dict())
91 | if hasattr(item[1], "to_dict") else item,
92 | value.items()
93 | ))
94 | else:
95 | result[attr] = value
96 | if issubclass(RoomUserRemovalDetail, dict):
97 | for key, value in self.items():
98 | result[key] = value
99 |
100 | return result
101 |
102 | def to_str(self):
103 | """Returns the string representation of the model"""
104 | return pprint.pformat(self.to_dict())
105 |
106 | def __repr__(self):
107 | """For `print` and `pprint`"""
108 | return self.to_str()
109 |
110 | def __eq__(self, other):
111 | """Returns true if both objects are equal"""
112 | if not isinstance(other, RoomUserRemovalDetail):
113 | return False
114 |
115 | return self.to_dict() == other.to_dict()
116 |
117 | def __ne__(self, other):
118 | """Returns true if both objects are not equal"""
119 | if not isinstance(other, RoomUserRemovalDetail):
120 | return True
121 |
122 | return self.to_dict() != other.to_dict()
123 |
--------------------------------------------------------------------------------
/docusign_rooms/models/designated_office.py:
--------------------------------------------------------------------------------
1 | # coding: utf-8
2 |
3 | """
4 | DocuSign Rooms API - v2
5 |
6 | An API for an integrator to access the features of DocuSign Rooms # noqa: E501
7 |
8 | OpenAPI spec version: v2
9 | Contact: devcenter@docusign.com
10 | Generated by: https://github.com/swagger-api/swagger-codegen.git
11 | """
12 |
13 |
14 | import pprint
15 | import re # noqa: F401
16 |
17 | import six
18 |
19 | from docusign_rooms.client.configuration import Configuration
20 |
21 |
22 | class DesignatedOffice(object):
23 | """NOTE: This class is auto generated by the swagger code generator program.
24 |
25 | Do not edit the class manually.
26 | """
27 |
28 | """
29 | Attributes:
30 | swagger_types (dict): The key is attribute name
31 | and the value is attribute type.
32 | attribute_map (dict): The key is attribute name
33 | and the value is json key in definition.
34 | """
35 | swagger_types = {
36 | 'office_id': 'int'
37 | }
38 |
39 | attribute_map = {
40 | 'office_id': 'officeId'
41 | }
42 |
43 | def __init__(self, _configuration=None, **kwargs): # noqa: E501
44 | """DesignatedOffice - a model defined in Swagger""" # noqa: E501
45 | if _configuration is None:
46 | _configuration = Configuration()
47 | self._configuration = _configuration
48 |
49 | self._office_id = None
50 | self.discriminator = None
51 |
52 | setattr(self, "_{}".format('office_id'), kwargs.get('office_id', None))
53 |
54 | @property
55 | def office_id(self):
56 | """Gets the office_id of this DesignatedOffice. # noqa: E501
57 |
58 |
59 | :return: The office_id of this DesignatedOffice. # noqa: E501
60 | :rtype: int
61 | """
62 | return self._office_id
63 |
64 | @office_id.setter
65 | def office_id(self, office_id):
66 | """Sets the office_id of this DesignatedOffice.
67 |
68 |
69 | :param office_id: The office_id of this DesignatedOffice. # noqa: E501
70 | :type: int
71 | """
72 | if self._configuration.client_side_validation and office_id is None:
73 | raise ValueError("Invalid value for `office_id`, must not be `None`") # noqa: E501
74 |
75 | self._office_id = office_id
76 |
77 | def to_dict(self):
78 | """Returns the model properties as a dict"""
79 | result = {}
80 |
81 | for attr, _ in six.iteritems(self.swagger_types):
82 | value = getattr(self, attr)
83 | if isinstance(value, list):
84 | result[attr] = list(map(
85 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
86 | value
87 | ))
88 | elif hasattr(value, "to_dict"):
89 | result[attr] = value.to_dict()
90 | elif isinstance(value, dict):
91 | result[attr] = dict(map(
92 | lambda item: (item[0], item[1].to_dict())
93 | if hasattr(item[1], "to_dict") else item,
94 | value.items()
95 | ))
96 | else:
97 | result[attr] = value
98 | if issubclass(DesignatedOffice, dict):
99 | for key, value in self.items():
100 | result[key] = value
101 |
102 | return result
103 |
104 | def to_str(self):
105 | """Returns the string representation of the model"""
106 | return pprint.pformat(self.to_dict())
107 |
108 | def __repr__(self):
109 | """For `print` and `pprint`"""
110 | return self.to_str()
111 |
112 | def __eq__(self, other):
113 | """Returns true if both objects are equal"""
114 | if not isinstance(other, DesignatedOffice):
115 | return False
116 |
117 | return self.to_dict() == other.to_dict()
118 |
119 | def __ne__(self, other):
120 | """Returns true if both objects are not equal"""
121 | if not isinstance(other, DesignatedOffice):
122 | return True
123 |
124 | return self.to_dict() != other.to_dict()
125 |
--------------------------------------------------------------------------------
/docusign_rooms/models/designated_region.py:
--------------------------------------------------------------------------------
1 | # coding: utf-8
2 |
3 | """
4 | DocuSign Rooms API - v2
5 |
6 | An API for an integrator to access the features of DocuSign Rooms # noqa: E501
7 |
8 | OpenAPI spec version: v2
9 | Contact: devcenter@docusign.com
10 | Generated by: https://github.com/swagger-api/swagger-codegen.git
11 | """
12 |
13 |
14 | import pprint
15 | import re # noqa: F401
16 |
17 | import six
18 |
19 | from docusign_rooms.client.configuration import Configuration
20 |
21 |
22 | class DesignatedRegion(object):
23 | """NOTE: This class is auto generated by the swagger code generator program.
24 |
25 | Do not edit the class manually.
26 | """
27 |
28 | """
29 | Attributes:
30 | swagger_types (dict): The key is attribute name
31 | and the value is attribute type.
32 | attribute_map (dict): The key is attribute name
33 | and the value is json key in definition.
34 | """
35 | swagger_types = {
36 | 'region_id': 'int'
37 | }
38 |
39 | attribute_map = {
40 | 'region_id': 'regionId'
41 | }
42 |
43 | def __init__(self, _configuration=None, **kwargs): # noqa: E501
44 | """DesignatedRegion - a model defined in Swagger""" # noqa: E501
45 | if _configuration is None:
46 | _configuration = Configuration()
47 | self._configuration = _configuration
48 |
49 | self._region_id = None
50 | self.discriminator = None
51 |
52 | setattr(self, "_{}".format('region_id'), kwargs.get('region_id', None))
53 |
54 | @property
55 | def region_id(self):
56 | """Gets the region_id of this DesignatedRegion. # noqa: E501
57 |
58 |
59 | :return: The region_id of this DesignatedRegion. # noqa: E501
60 | :rtype: int
61 | """
62 | return self._region_id
63 |
64 | @region_id.setter
65 | def region_id(self, region_id):
66 | """Sets the region_id of this DesignatedRegion.
67 |
68 |
69 | :param region_id: The region_id of this DesignatedRegion. # noqa: E501
70 | :type: int
71 | """
72 | if self._configuration.client_side_validation and region_id is None:
73 | raise ValueError("Invalid value for `region_id`, must not be `None`") # noqa: E501
74 |
75 | self._region_id = region_id
76 |
77 | def to_dict(self):
78 | """Returns the model properties as a dict"""
79 | result = {}
80 |
81 | for attr, _ in six.iteritems(self.swagger_types):
82 | value = getattr(self, attr)
83 | if isinstance(value, list):
84 | result[attr] = list(map(
85 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
86 | value
87 | ))
88 | elif hasattr(value, "to_dict"):
89 | result[attr] = value.to_dict()
90 | elif isinstance(value, dict):
91 | result[attr] = dict(map(
92 | lambda item: (item[0], item[1].to_dict())
93 | if hasattr(item[1], "to_dict") else item,
94 | value.items()
95 | ))
96 | else:
97 | result[attr] = value
98 | if issubclass(DesignatedRegion, dict):
99 | for key, value in self.items():
100 | result[key] = value
101 |
102 | return result
103 |
104 | def to_str(self):
105 | """Returns the string representation of the model"""
106 | return pprint.pformat(self.to_dict())
107 |
108 | def __repr__(self):
109 | """For `print` and `pprint`"""
110 | return self.to_str()
111 |
112 | def __eq__(self, other):
113 | """Returns true if both objects are equal"""
114 | if not isinstance(other, DesignatedRegion):
115 | return False
116 |
117 | return self.to_dict() == other.to_dict()
118 |
119 | def __ne__(self, other):
120 | """Returns true if both objects are not equal"""
121 | if not isinstance(other, DesignatedRegion):
122 | return True
123 |
124 | return self.to_dict() != other.to_dict()
125 |
--------------------------------------------------------------------------------
/docusign_rooms/models/global_task_date_types.py:
--------------------------------------------------------------------------------
1 | # coding: utf-8
2 |
3 | """
4 | DocuSign Rooms API - v2
5 |
6 | An API for an integrator to access the features of DocuSign Rooms # noqa: E501
7 |
8 | OpenAPI spec version: v2
9 | Contact: devcenter@docusign.com
10 | Generated by: https://github.com/swagger-api/swagger-codegen.git
11 | """
12 |
13 |
14 | import pprint
15 | import re # noqa: F401
16 |
17 | import six
18 |
19 | from docusign_rooms.client.configuration import Configuration
20 |
21 |
22 | class GlobalTaskDateTypes(object):
23 | """NOTE: This class is auto generated by the swagger code generator program.
24 |
25 | Do not edit the class manually.
26 | """
27 |
28 | """
29 | Attributes:
30 | swagger_types (dict): The key is attribute name
31 | and the value is attribute type.
32 | attribute_map (dict): The key is attribute name
33 | and the value is json key in definition.
34 | """
35 | swagger_types = {
36 | 'task_date_types': 'list[TaskDateType]'
37 | }
38 |
39 | attribute_map = {
40 | 'task_date_types': 'taskDateTypes'
41 | }
42 |
43 | def __init__(self, _configuration=None, **kwargs): # noqa: E501
44 | """GlobalTaskDateTypes - a model defined in Swagger""" # noqa: E501
45 | if _configuration is None:
46 | _configuration = Configuration()
47 | self._configuration = _configuration
48 |
49 | self._task_date_types = None
50 | self.discriminator = None
51 |
52 | setattr(self, "_{}".format('task_date_types'), kwargs.get('task_date_types', None))
53 |
54 | @property
55 | def task_date_types(self):
56 | """Gets the task_date_types of this GlobalTaskDateTypes. # noqa: E501
57 |
58 |
59 | :return: The task_date_types of this GlobalTaskDateTypes. # noqa: E501
60 | :rtype: list[TaskDateType]
61 | """
62 | return self._task_date_types
63 |
64 | @task_date_types.setter
65 | def task_date_types(self, task_date_types):
66 | """Sets the task_date_types of this GlobalTaskDateTypes.
67 |
68 |
69 | :param task_date_types: The task_date_types of this GlobalTaskDateTypes. # noqa: E501
70 | :type: list[TaskDateType]
71 | """
72 |
73 | self._task_date_types = task_date_types
74 |
75 | def to_dict(self):
76 | """Returns the model properties as a dict"""
77 | result = {}
78 |
79 | for attr, _ in six.iteritems(self.swagger_types):
80 | value = getattr(self, attr)
81 | if isinstance(value, list):
82 | result[attr] = list(map(
83 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
84 | value
85 | ))
86 | elif hasattr(value, "to_dict"):
87 | result[attr] = value.to_dict()
88 | elif isinstance(value, dict):
89 | result[attr] = dict(map(
90 | lambda item: (item[0], item[1].to_dict())
91 | if hasattr(item[1], "to_dict") else item,
92 | value.items()
93 | ))
94 | else:
95 | result[attr] = value
96 | if issubclass(GlobalTaskDateTypes, dict):
97 | for key, value in self.items():
98 | result[key] = value
99 |
100 | return result
101 |
102 | def to_str(self):
103 | """Returns the string representation of the model"""
104 | return pprint.pformat(self.to_dict())
105 |
106 | def __repr__(self):
107 | """For `print` and `pprint`"""
108 | return self.to_str()
109 |
110 | def __eq__(self, other):
111 | """Returns true if both objects are equal"""
112 | if not isinstance(other, GlobalTaskDateTypes):
113 | return False
114 |
115 | return self.to_dict() == other.to_dict()
116 |
117 | def __ne__(self, other):
118 | """Returns true if both objects are not equal"""
119 | if not isinstance(other, GlobalTaskDateTypes):
120 | return True
121 |
122 | return self.to_dict() != other.to_dict()
123 |
--------------------------------------------------------------------------------
/docusign_rooms/models/document_user_for_create.py:
--------------------------------------------------------------------------------
1 | # coding: utf-8
2 |
3 | """
4 | DocuSign Rooms API - v2
5 |
6 | An API for an integrator to access the features of DocuSign Rooms # noqa: E501
7 |
8 | OpenAPI spec version: v2
9 | Contact: devcenter@docusign.com
10 | Generated by: https://github.com/swagger-api/swagger-codegen.git
11 | """
12 |
13 |
14 | import pprint
15 | import re # noqa: F401
16 |
17 | import six
18 |
19 | from docusign_rooms.client.configuration import Configuration
20 |
21 |
22 | class DocumentUserForCreate(object):
23 | """NOTE: This class is auto generated by the swagger code generator program.
24 |
25 | Do not edit the class manually.
26 | """
27 |
28 | """
29 | Attributes:
30 | swagger_types (dict): The key is attribute name
31 | and the value is attribute type.
32 | attribute_map (dict): The key is attribute name
33 | and the value is json key in definition.
34 | """
35 | swagger_types = {
36 | 'user_id': 'int'
37 | }
38 |
39 | attribute_map = {
40 | 'user_id': 'userId'
41 | }
42 |
43 | def __init__(self, _configuration=None, **kwargs): # noqa: E501
44 | """DocumentUserForCreate - a model defined in Swagger""" # noqa: E501
45 | if _configuration is None:
46 | _configuration = Configuration()
47 | self._configuration = _configuration
48 |
49 | self._user_id = None
50 | self.discriminator = None
51 |
52 | setattr(self, "_{}".format('user_id'), kwargs.get('user_id', None))
53 |
54 | @property
55 | def user_id(self):
56 | """Gets the user_id of this DocumentUserForCreate. # noqa: E501
57 |
58 |
59 | :return: The user_id of this DocumentUserForCreate. # noqa: E501
60 | :rtype: int
61 | """
62 | return self._user_id
63 |
64 | @user_id.setter
65 | def user_id(self, user_id):
66 | """Sets the user_id of this DocumentUserForCreate.
67 |
68 |
69 | :param user_id: The user_id of this DocumentUserForCreate. # noqa: E501
70 | :type: int
71 | """
72 | if self._configuration.client_side_validation and user_id is None:
73 | raise ValueError("Invalid value for `user_id`, must not be `None`") # noqa: E501
74 |
75 | self._user_id = user_id
76 |
77 | def to_dict(self):
78 | """Returns the model properties as a dict"""
79 | result = {}
80 |
81 | for attr, _ in six.iteritems(self.swagger_types):
82 | value = getattr(self, attr)
83 | if isinstance(value, list):
84 | result[attr] = list(map(
85 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
86 | value
87 | ))
88 | elif hasattr(value, "to_dict"):
89 | result[attr] = value.to_dict()
90 | elif isinstance(value, dict):
91 | result[attr] = dict(map(
92 | lambda item: (item[0], item[1].to_dict())
93 | if hasattr(item[1], "to_dict") else item,
94 | value.items()
95 | ))
96 | else:
97 | result[attr] = value
98 | if issubclass(DocumentUserForCreate, dict):
99 | for key, value in self.items():
100 | result[key] = value
101 |
102 | return result
103 |
104 | def to_str(self):
105 | """Returns the string representation of the model"""
106 | return pprint.pformat(self.to_dict())
107 |
108 | def __repr__(self):
109 | """For `print` and `pprint`"""
110 | return self.to_str()
111 |
112 | def __eq__(self, other):
113 | """Returns true if both objects are equal"""
114 | if not isinstance(other, DocumentUserForCreate):
115 | return False
116 |
117 | return self.to_dict() == other.to_dict()
118 |
119 | def __ne__(self, other):
120 | """Returns true if both objects are not equal"""
121 | if not isinstance(other, DocumentUserForCreate):
122 | return True
123 |
124 | return self.to_dict() != other.to_dict()
125 |
--------------------------------------------------------------------------------
/docusign_rooms/models/global_financing_types.py:
--------------------------------------------------------------------------------
1 | # coding: utf-8
2 |
3 | """
4 | DocuSign Rooms API - v2
5 |
6 | An API for an integrator to access the features of DocuSign Rooms # noqa: E501
7 |
8 | OpenAPI spec version: v2
9 | Contact: devcenter@docusign.com
10 | Generated by: https://github.com/swagger-api/swagger-codegen.git
11 | """
12 |
13 |
14 | import pprint
15 | import re # noqa: F401
16 |
17 | import six
18 |
19 | from docusign_rooms.client.configuration import Configuration
20 |
21 |
22 | class GlobalFinancingTypes(object):
23 | """NOTE: This class is auto generated by the swagger code generator program.
24 |
25 | Do not edit the class manually.
26 | """
27 |
28 | """
29 | Attributes:
30 | swagger_types (dict): The key is attribute name
31 | and the value is attribute type.
32 | attribute_map (dict): The key is attribute name
33 | and the value is json key in definition.
34 | """
35 | swagger_types = {
36 | 'financing_types': 'list[FinancingType]'
37 | }
38 |
39 | attribute_map = {
40 | 'financing_types': 'financingTypes'
41 | }
42 |
43 | def __init__(self, _configuration=None, **kwargs): # noqa: E501
44 | """GlobalFinancingTypes - a model defined in Swagger""" # noqa: E501
45 | if _configuration is None:
46 | _configuration = Configuration()
47 | self._configuration = _configuration
48 |
49 | self._financing_types = None
50 | self.discriminator = None
51 |
52 | setattr(self, "_{}".format('financing_types'), kwargs.get('financing_types', None))
53 |
54 | @property
55 | def financing_types(self):
56 | """Gets the financing_types of this GlobalFinancingTypes. # noqa: E501
57 |
58 |
59 | :return: The financing_types of this GlobalFinancingTypes. # noqa: E501
60 | :rtype: list[FinancingType]
61 | """
62 | return self._financing_types
63 |
64 | @financing_types.setter
65 | def financing_types(self, financing_types):
66 | """Sets the financing_types of this GlobalFinancingTypes.
67 |
68 |
69 | :param financing_types: The financing_types of this GlobalFinancingTypes. # noqa: E501
70 | :type: list[FinancingType]
71 | """
72 |
73 | self._financing_types = financing_types
74 |
75 | def to_dict(self):
76 | """Returns the model properties as a dict"""
77 | result = {}
78 |
79 | for attr, _ in six.iteritems(self.swagger_types):
80 | value = getattr(self, attr)
81 | if isinstance(value, list):
82 | result[attr] = list(map(
83 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
84 | value
85 | ))
86 | elif hasattr(value, "to_dict"):
87 | result[attr] = value.to_dict()
88 | elif isinstance(value, dict):
89 | result[attr] = dict(map(
90 | lambda item: (item[0], item[1].to_dict())
91 | if hasattr(item[1], "to_dict") else item,
92 | value.items()
93 | ))
94 | else:
95 | result[attr] = value
96 | if issubclass(GlobalFinancingTypes, dict):
97 | for key, value in self.items():
98 | result[key] = value
99 |
100 | return result
101 |
102 | def to_str(self):
103 | """Returns the string representation of the model"""
104 | return pprint.pformat(self.to_dict())
105 |
106 | def __repr__(self):
107 | """For `print` and `pprint`"""
108 | return self.to_str()
109 |
110 | def __eq__(self, other):
111 | """Returns true if both objects are equal"""
112 | if not isinstance(other, GlobalFinancingTypes):
113 | return False
114 |
115 | return self.to_dict() == other.to_dict()
116 |
117 | def __ne__(self, other):
118 | """Returns true if both objects are not equal"""
119 | if not isinstance(other, GlobalFinancingTypes):
120 | return True
121 |
122 | return self.to_dict() != other.to_dict()
123 |
--------------------------------------------------------------------------------
/docusign_rooms/models/global_origins_of_leads.py:
--------------------------------------------------------------------------------
1 | # coding: utf-8
2 |
3 | """
4 | DocuSign Rooms API - v2
5 |
6 | An API for an integrator to access the features of DocuSign Rooms # noqa: E501
7 |
8 | OpenAPI spec version: v2
9 | Contact: devcenter@docusign.com
10 | Generated by: https://github.com/swagger-api/swagger-codegen.git
11 | """
12 |
13 |
14 | import pprint
15 | import re # noqa: F401
16 |
17 | import six
18 |
19 | from docusign_rooms.client.configuration import Configuration
20 |
21 |
22 | class GlobalOriginsOfLeads(object):
23 | """NOTE: This class is auto generated by the swagger code generator program.
24 |
25 | Do not edit the class manually.
26 | """
27 |
28 | """
29 | Attributes:
30 | swagger_types (dict): The key is attribute name
31 | and the value is attribute type.
32 | attribute_map (dict): The key is attribute name
33 | and the value is json key in definition.
34 | """
35 | swagger_types = {
36 | 'origins_of_leads': 'list[OriginOfLead]'
37 | }
38 |
39 | attribute_map = {
40 | 'origins_of_leads': 'originsOfLeads'
41 | }
42 |
43 | def __init__(self, _configuration=None, **kwargs): # noqa: E501
44 | """GlobalOriginsOfLeads - a model defined in Swagger""" # noqa: E501
45 | if _configuration is None:
46 | _configuration = Configuration()
47 | self._configuration = _configuration
48 |
49 | self._origins_of_leads = None
50 | self.discriminator = None
51 |
52 | setattr(self, "_{}".format('origins_of_leads'), kwargs.get('origins_of_leads', None))
53 |
54 | @property
55 | def origins_of_leads(self):
56 | """Gets the origins_of_leads of this GlobalOriginsOfLeads. # noqa: E501
57 |
58 |
59 | :return: The origins_of_leads of this GlobalOriginsOfLeads. # noqa: E501
60 | :rtype: list[OriginOfLead]
61 | """
62 | return self._origins_of_leads
63 |
64 | @origins_of_leads.setter
65 | def origins_of_leads(self, origins_of_leads):
66 | """Sets the origins_of_leads of this GlobalOriginsOfLeads.
67 |
68 |
69 | :param origins_of_leads: The origins_of_leads of this GlobalOriginsOfLeads. # noqa: E501
70 | :type: list[OriginOfLead]
71 | """
72 |
73 | self._origins_of_leads = origins_of_leads
74 |
75 | def to_dict(self):
76 | """Returns the model properties as a dict"""
77 | result = {}
78 |
79 | for attr, _ in six.iteritems(self.swagger_types):
80 | value = getattr(self, attr)
81 | if isinstance(value, list):
82 | result[attr] = list(map(
83 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
84 | value
85 | ))
86 | elif hasattr(value, "to_dict"):
87 | result[attr] = value.to_dict()
88 | elif isinstance(value, dict):
89 | result[attr] = dict(map(
90 | lambda item: (item[0], item[1].to_dict())
91 | if hasattr(item[1], "to_dict") else item,
92 | value.items()
93 | ))
94 | else:
95 | result[attr] = value
96 | if issubclass(GlobalOriginsOfLeads, dict):
97 | for key, value in self.items():
98 | result[key] = value
99 |
100 | return result
101 |
102 | def to_str(self):
103 | """Returns the string representation of the model"""
104 | return pprint.pformat(self.to_dict())
105 |
106 | def __repr__(self):
107 | """For `print` and `pprint`"""
108 | return self.to_str()
109 |
110 | def __eq__(self, other):
111 | """Returns true if both objects are equal"""
112 | if not isinstance(other, GlobalOriginsOfLeads):
113 | return False
114 |
115 | return self.to_dict() == other.to_dict()
116 |
117 | def __ne__(self, other):
118 | """Returns true if both objects are not equal"""
119 | if not isinstance(other, GlobalOriginsOfLeads):
120 | return True
121 |
122 | return self.to_dict() != other.to_dict()
123 |
--------------------------------------------------------------------------------
/docusign_rooms/models/global_closing_statuses.py:
--------------------------------------------------------------------------------
1 | # coding: utf-8
2 |
3 | """
4 | DocuSign Rooms API - v2
5 |
6 | An API for an integrator to access the features of DocuSign Rooms # noqa: E501
7 |
8 | OpenAPI spec version: v2
9 | Contact: devcenter@docusign.com
10 | Generated by: https://github.com/swagger-api/swagger-codegen.git
11 | """
12 |
13 |
14 | import pprint
15 | import re # noqa: F401
16 |
17 | import six
18 |
19 | from docusign_rooms.client.configuration import Configuration
20 |
21 |
22 | class GlobalClosingStatuses(object):
23 | """NOTE: This class is auto generated by the swagger code generator program.
24 |
25 | Do not edit the class manually.
26 | """
27 |
28 | """
29 | Attributes:
30 | swagger_types (dict): The key is attribute name
31 | and the value is attribute type.
32 | attribute_map (dict): The key is attribute name
33 | and the value is json key in definition.
34 | """
35 | swagger_types = {
36 | 'closing_statuses': 'list[ClosingStatus]'
37 | }
38 |
39 | attribute_map = {
40 | 'closing_statuses': 'closingStatuses'
41 | }
42 |
43 | def __init__(self, _configuration=None, **kwargs): # noqa: E501
44 | """GlobalClosingStatuses - a model defined in Swagger""" # noqa: E501
45 | if _configuration is None:
46 | _configuration = Configuration()
47 | self._configuration = _configuration
48 |
49 | self._closing_statuses = None
50 | self.discriminator = None
51 |
52 | setattr(self, "_{}".format('closing_statuses'), kwargs.get('closing_statuses', None))
53 |
54 | @property
55 | def closing_statuses(self):
56 | """Gets the closing_statuses of this GlobalClosingStatuses. # noqa: E501
57 |
58 |
59 | :return: The closing_statuses of this GlobalClosingStatuses. # noqa: E501
60 | :rtype: list[ClosingStatus]
61 | """
62 | return self._closing_statuses
63 |
64 | @closing_statuses.setter
65 | def closing_statuses(self, closing_statuses):
66 | """Sets the closing_statuses of this GlobalClosingStatuses.
67 |
68 |
69 | :param closing_statuses: The closing_statuses of this GlobalClosingStatuses. # noqa: E501
70 | :type: list[ClosingStatus]
71 | """
72 |
73 | self._closing_statuses = closing_statuses
74 |
75 | def to_dict(self):
76 | """Returns the model properties as a dict"""
77 | result = {}
78 |
79 | for attr, _ in six.iteritems(self.swagger_types):
80 | value = getattr(self, attr)
81 | if isinstance(value, list):
82 | result[attr] = list(map(
83 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
84 | value
85 | ))
86 | elif hasattr(value, "to_dict"):
87 | result[attr] = value.to_dict()
88 | elif isinstance(value, dict):
89 | result[attr] = dict(map(
90 | lambda item: (item[0], item[1].to_dict())
91 | if hasattr(item[1], "to_dict") else item,
92 | value.items()
93 | ))
94 | else:
95 | result[attr] = value
96 | if issubclass(GlobalClosingStatuses, dict):
97 | for key, value in self.items():
98 | result[key] = value
99 |
100 | return result
101 |
102 | def to_str(self):
103 | """Returns the string representation of the model"""
104 | return pprint.pformat(self.to_dict())
105 |
106 | def __repr__(self):
107 | """For `print` and `pprint`"""
108 | return self.to_str()
109 |
110 | def __eq__(self, other):
111 | """Returns true if both objects are equal"""
112 | if not isinstance(other, GlobalClosingStatuses):
113 | return False
114 |
115 | return self.to_dict() == other.to_dict()
116 |
117 | def __ne__(self, other):
118 | """Returns true if both objects are not equal"""
119 | if not isinstance(other, GlobalClosingStatuses):
120 | return True
121 |
122 | return self.to_dict() != other.to_dict()
123 |
--------------------------------------------------------------------------------
/docusign_rooms/models/task_list_for_create.py:
--------------------------------------------------------------------------------
1 | # coding: utf-8
2 |
3 | """
4 | DocuSign Rooms API - v2
5 |
6 | An API for an integrator to access the features of DocuSign Rooms # noqa: E501
7 |
8 | OpenAPI spec version: v2
9 | Contact: devcenter@docusign.com
10 | Generated by: https://github.com/swagger-api/swagger-codegen.git
11 | """
12 |
13 |
14 | import pprint
15 | import re # noqa: F401
16 |
17 | import six
18 |
19 | from docusign_rooms.client.configuration import Configuration
20 |
21 |
22 | class TaskListForCreate(object):
23 | """NOTE: This class is auto generated by the swagger code generator program.
24 |
25 | Do not edit the class manually.
26 | """
27 |
28 | """
29 | Attributes:
30 | swagger_types (dict): The key is attribute name
31 | and the value is attribute type.
32 | attribute_map (dict): The key is attribute name
33 | and the value is json key in definition.
34 | """
35 | swagger_types = {
36 | 'task_list_template_id': 'int'
37 | }
38 |
39 | attribute_map = {
40 | 'task_list_template_id': 'taskListTemplateId'
41 | }
42 |
43 | def __init__(self, _configuration=None, **kwargs): # noqa: E501
44 | """TaskListForCreate - a model defined in Swagger""" # noqa: E501
45 | if _configuration is None:
46 | _configuration = Configuration()
47 | self._configuration = _configuration
48 |
49 | self._task_list_template_id = None
50 | self.discriminator = None
51 |
52 | setattr(self, "_{}".format('task_list_template_id'), kwargs.get('task_list_template_id', None))
53 |
54 | @property
55 | def task_list_template_id(self):
56 | """Gets the task_list_template_id of this TaskListForCreate. # noqa: E501
57 |
58 |
59 | :return: The task_list_template_id of this TaskListForCreate. # noqa: E501
60 | :rtype: int
61 | """
62 | return self._task_list_template_id
63 |
64 | @task_list_template_id.setter
65 | def task_list_template_id(self, task_list_template_id):
66 | """Sets the task_list_template_id of this TaskListForCreate.
67 |
68 |
69 | :param task_list_template_id: The task_list_template_id of this TaskListForCreate. # noqa: E501
70 | :type: int
71 | """
72 |
73 | self._task_list_template_id = task_list_template_id
74 |
75 | def to_dict(self):
76 | """Returns the model properties as a dict"""
77 | result = {}
78 |
79 | for attr, _ in six.iteritems(self.swagger_types):
80 | value = getattr(self, attr)
81 | if isinstance(value, list):
82 | result[attr] = list(map(
83 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
84 | value
85 | ))
86 | elif hasattr(value, "to_dict"):
87 | result[attr] = value.to_dict()
88 | elif isinstance(value, dict):
89 | result[attr] = dict(map(
90 | lambda item: (item[0], item[1].to_dict())
91 | if hasattr(item[1], "to_dict") else item,
92 | value.items()
93 | ))
94 | else:
95 | result[attr] = value
96 | if issubclass(TaskListForCreate, dict):
97 | for key, value in self.items():
98 | result[key] = value
99 |
100 | return result
101 |
102 | def to_str(self):
103 | """Returns the string representation of the model"""
104 | return pprint.pformat(self.to_dict())
105 |
106 | def __repr__(self):
107 | """For `print` and `pprint`"""
108 | return self.to_str()
109 |
110 | def __eq__(self, other):
111 | """Returns true if both objects are equal"""
112 | if not isinstance(other, TaskListForCreate):
113 | return False
114 |
115 | return self.to_dict() == other.to_dict()
116 |
117 | def __ne__(self, other):
118 | """Returns true if both objects are not equal"""
119 | if not isinstance(other, TaskListForCreate):
120 | return True
121 |
122 | return self.to_dict() != other.to_dict()
123 |
--------------------------------------------------------------------------------
/docusign_rooms/models/global_transaction_sides.py:
--------------------------------------------------------------------------------
1 | # coding: utf-8
2 |
3 | """
4 | DocuSign Rooms API - v2
5 |
6 | An API for an integrator to access the features of DocuSign Rooms # noqa: E501
7 |
8 | OpenAPI spec version: v2
9 | Contact: devcenter@docusign.com
10 | Generated by: https://github.com/swagger-api/swagger-codegen.git
11 | """
12 |
13 |
14 | import pprint
15 | import re # noqa: F401
16 |
17 | import six
18 |
19 | from docusign_rooms.client.configuration import Configuration
20 |
21 |
22 | class GlobalTransactionSides(object):
23 | """NOTE: This class is auto generated by the swagger code generator program.
24 |
25 | Do not edit the class manually.
26 | """
27 |
28 | """
29 | Attributes:
30 | swagger_types (dict): The key is attribute name
31 | and the value is attribute type.
32 | attribute_map (dict): The key is attribute name
33 | and the value is json key in definition.
34 | """
35 | swagger_types = {
36 | 'transaction_sides': 'list[TransactionSide]'
37 | }
38 |
39 | attribute_map = {
40 | 'transaction_sides': 'transactionSides'
41 | }
42 |
43 | def __init__(self, _configuration=None, **kwargs): # noqa: E501
44 | """GlobalTransactionSides - a model defined in Swagger""" # noqa: E501
45 | if _configuration is None:
46 | _configuration = Configuration()
47 | self._configuration = _configuration
48 |
49 | self._transaction_sides = None
50 | self.discriminator = None
51 |
52 | setattr(self, "_{}".format('transaction_sides'), kwargs.get('transaction_sides', None))
53 |
54 | @property
55 | def transaction_sides(self):
56 | """Gets the transaction_sides of this GlobalTransactionSides. # noqa: E501
57 |
58 |
59 | :return: The transaction_sides of this GlobalTransactionSides. # noqa: E501
60 | :rtype: list[TransactionSide]
61 | """
62 | return self._transaction_sides
63 |
64 | @transaction_sides.setter
65 | def transaction_sides(self, transaction_sides):
66 | """Sets the transaction_sides of this GlobalTransactionSides.
67 |
68 |
69 | :param transaction_sides: The transaction_sides of this GlobalTransactionSides. # noqa: E501
70 | :type: list[TransactionSide]
71 | """
72 |
73 | self._transaction_sides = transaction_sides
74 |
75 | def to_dict(self):
76 | """Returns the model properties as a dict"""
77 | result = {}
78 |
79 | for attr, _ in six.iteritems(self.swagger_types):
80 | value = getattr(self, attr)
81 | if isinstance(value, list):
82 | result[attr] = list(map(
83 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
84 | value
85 | ))
86 | elif hasattr(value, "to_dict"):
87 | result[attr] = value.to_dict()
88 | elif isinstance(value, dict):
89 | result[attr] = dict(map(
90 | lambda item: (item[0], item[1].to_dict())
91 | if hasattr(item[1], "to_dict") else item,
92 | value.items()
93 | ))
94 | else:
95 | result[attr] = value
96 | if issubclass(GlobalTransactionSides, dict):
97 | for key, value in self.items():
98 | result[key] = value
99 |
100 | return result
101 |
102 | def to_str(self):
103 | """Returns the string representation of the model"""
104 | return pprint.pformat(self.to_dict())
105 |
106 | def __repr__(self):
107 | """For `print` and `pprint`"""
108 | return self.to_str()
109 |
110 | def __eq__(self, other):
111 | """Returns true if both objects are equal"""
112 | if not isinstance(other, GlobalTransactionSides):
113 | return False
114 |
115 | return self.to_dict() == other.to_dict()
116 |
117 | def __ne__(self, other):
118 | """Returns true if both objects are not equal"""
119 | if not isinstance(other, GlobalTransactionSides):
120 | return True
121 |
122 | return self.to_dict() != other.to_dict()
123 |
--------------------------------------------------------------------------------
/docusign_rooms/models/task_list_summary_list.py:
--------------------------------------------------------------------------------
1 | # coding: utf-8
2 |
3 | """
4 | DocuSign Rooms API - v2
5 |
6 | An API for an integrator to access the features of DocuSign Rooms # noqa: E501
7 |
8 | OpenAPI spec version: v2
9 | Contact: devcenter@docusign.com
10 | Generated by: https://github.com/swagger-api/swagger-codegen.git
11 | """
12 |
13 |
14 | import pprint
15 | import re # noqa: F401
16 |
17 | import six
18 |
19 | from docusign_rooms.client.configuration import Configuration
20 |
21 |
22 | class TaskListSummaryList(object):
23 | """NOTE: This class is auto generated by the swagger code generator program.
24 |
25 | Do not edit the class manually.
26 | """
27 |
28 | """
29 | Attributes:
30 | swagger_types (dict): The key is attribute name
31 | and the value is attribute type.
32 | attribute_map (dict): The key is attribute name
33 | and the value is json key in definition.
34 | """
35 | swagger_types = {
36 | 'task_list_summaries': 'list[TaskListSummary]'
37 | }
38 |
39 | attribute_map = {
40 | 'task_list_summaries': 'taskListSummaries'
41 | }
42 |
43 | def __init__(self, _configuration=None, **kwargs): # noqa: E501
44 | """TaskListSummaryList - a model defined in Swagger""" # noqa: E501
45 | if _configuration is None:
46 | _configuration = Configuration()
47 | self._configuration = _configuration
48 |
49 | self._task_list_summaries = None
50 | self.discriminator = None
51 |
52 | setattr(self, "_{}".format('task_list_summaries'), kwargs.get('task_list_summaries', None))
53 |
54 | @property
55 | def task_list_summaries(self):
56 | """Gets the task_list_summaries of this TaskListSummaryList. # noqa: E501
57 |
58 |
59 | :return: The task_list_summaries of this TaskListSummaryList. # noqa: E501
60 | :rtype: list[TaskListSummary]
61 | """
62 | return self._task_list_summaries
63 |
64 | @task_list_summaries.setter
65 | def task_list_summaries(self, task_list_summaries):
66 | """Sets the task_list_summaries of this TaskListSummaryList.
67 |
68 |
69 | :param task_list_summaries: The task_list_summaries of this TaskListSummaryList. # noqa: E501
70 | :type: list[TaskListSummary]
71 | """
72 |
73 | self._task_list_summaries = task_list_summaries
74 |
75 | def to_dict(self):
76 | """Returns the model properties as a dict"""
77 | result = {}
78 |
79 | for attr, _ in six.iteritems(self.swagger_types):
80 | value = getattr(self, attr)
81 | if isinstance(value, list):
82 | result[attr] = list(map(
83 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
84 | value
85 | ))
86 | elif hasattr(value, "to_dict"):
87 | result[attr] = value.to_dict()
88 | elif isinstance(value, dict):
89 | result[attr] = dict(map(
90 | lambda item: (item[0], item[1].to_dict())
91 | if hasattr(item[1], "to_dict") else item,
92 | value.items()
93 | ))
94 | else:
95 | result[attr] = value
96 | if issubclass(TaskListSummaryList, dict):
97 | for key, value in self.items():
98 | result[key] = value
99 |
100 | return result
101 |
102 | def to_str(self):
103 | """Returns the string representation of the model"""
104 | return pprint.pformat(self.to_dict())
105 |
106 | def __repr__(self):
107 | """For `print` and `pprint`"""
108 | return self.to_str()
109 |
110 | def __eq__(self, other):
111 | """Returns true if both objects are equal"""
112 | if not isinstance(other, TaskListSummaryList):
113 | return False
114 |
115 | return self.to_dict() == other.to_dict()
116 |
117 | def __ne__(self, other):
118 | """Returns true if both objects are not equal"""
119 | if not isinstance(other, TaskListSummaryList):
120 | return True
121 |
122 | return self.to_dict() != other.to_dict()
123 |
--------------------------------------------------------------------------------
/docusign_rooms/models/global_room_contact_types.py:
--------------------------------------------------------------------------------
1 | # coding: utf-8
2 |
3 | """
4 | DocuSign Rooms API - v2
5 |
6 | An API for an integrator to access the features of DocuSign Rooms # noqa: E501
7 |
8 | OpenAPI spec version: v2
9 | Contact: devcenter@docusign.com
10 | Generated by: https://github.com/swagger-api/swagger-codegen.git
11 | """
12 |
13 |
14 | import pprint
15 | import re # noqa: F401
16 |
17 | import six
18 |
19 | from docusign_rooms.client.configuration import Configuration
20 |
21 |
22 | class GlobalRoomContactTypes(object):
23 | """NOTE: This class is auto generated by the swagger code generator program.
24 |
25 | Do not edit the class manually.
26 | """
27 |
28 | """
29 | Attributes:
30 | swagger_types (dict): The key is attribute name
31 | and the value is attribute type.
32 | attribute_map (dict): The key is attribute name
33 | and the value is json key in definition.
34 | """
35 | swagger_types = {
36 | 'room_contact_types': 'list[RoomContactType]'
37 | }
38 |
39 | attribute_map = {
40 | 'room_contact_types': 'roomContactTypes'
41 | }
42 |
43 | def __init__(self, _configuration=None, **kwargs): # noqa: E501
44 | """GlobalRoomContactTypes - a model defined in Swagger""" # noqa: E501
45 | if _configuration is None:
46 | _configuration = Configuration()
47 | self._configuration = _configuration
48 |
49 | self._room_contact_types = None
50 | self.discriminator = None
51 |
52 | setattr(self, "_{}".format('room_contact_types'), kwargs.get('room_contact_types', None))
53 |
54 | @property
55 | def room_contact_types(self):
56 | """Gets the room_contact_types of this GlobalRoomContactTypes. # noqa: E501
57 |
58 |
59 | :return: The room_contact_types of this GlobalRoomContactTypes. # noqa: E501
60 | :rtype: list[RoomContactType]
61 | """
62 | return self._room_contact_types
63 |
64 | @room_contact_types.setter
65 | def room_contact_types(self, room_contact_types):
66 | """Sets the room_contact_types of this GlobalRoomContactTypes.
67 |
68 |
69 | :param room_contact_types: The room_contact_types of this GlobalRoomContactTypes. # noqa: E501
70 | :type: list[RoomContactType]
71 | """
72 |
73 | self._room_contact_types = room_contact_types
74 |
75 | def to_dict(self):
76 | """Returns the model properties as a dict"""
77 | result = {}
78 |
79 | for attr, _ in six.iteritems(self.swagger_types):
80 | value = getattr(self, attr)
81 | if isinstance(value, list):
82 | result[attr] = list(map(
83 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
84 | value
85 | ))
86 | elif hasattr(value, "to_dict"):
87 | result[attr] = value.to_dict()
88 | elif isinstance(value, dict):
89 | result[attr] = dict(map(
90 | lambda item: (item[0], item[1].to_dict())
91 | if hasattr(item[1], "to_dict") else item,
92 | value.items()
93 | ))
94 | else:
95 | result[attr] = value
96 | if issubclass(GlobalRoomContactTypes, dict):
97 | for key, value in self.items():
98 | result[key] = value
99 |
100 | return result
101 |
102 | def to_str(self):
103 | """Returns the string representation of the model"""
104 | return pprint.pformat(self.to_dict())
105 |
106 | def __repr__(self):
107 | """For `print` and `pprint`"""
108 | return self.to_str()
109 |
110 | def __eq__(self, other):
111 | """Returns true if both objects are equal"""
112 | if not isinstance(other, GlobalRoomContactTypes):
113 | return False
114 |
115 | return self.to_dict() == other.to_dict()
116 |
117 | def __ne__(self, other):
118 | """Returns true if both objects are not equal"""
119 | if not isinstance(other, GlobalRoomContactTypes):
120 | return True
121 |
122 | return self.to_dict() != other.to_dict()
123 |
--------------------------------------------------------------------------------
/docusign_rooms/models/region_reference_count_list.py:
--------------------------------------------------------------------------------
1 | # coding: utf-8
2 |
3 | """
4 | DocuSign Rooms API - v2
5 |
6 | An API for an integrator to access the features of DocuSign Rooms # noqa: E501
7 |
8 | OpenAPI spec version: v2
9 | Contact: devcenter@docusign.com
10 | Generated by: https://github.com/swagger-api/swagger-codegen.git
11 | """
12 |
13 |
14 | import pprint
15 | import re # noqa: F401
16 |
17 | import six
18 |
19 | from docusign_rooms.client.configuration import Configuration
20 |
21 |
22 | class RegionReferenceCountList(object):
23 | """NOTE: This class is auto generated by the swagger code generator program.
24 |
25 | Do not edit the class manually.
26 | """
27 |
28 | """
29 | Attributes:
30 | swagger_types (dict): The key is attribute name
31 | and the value is attribute type.
32 | attribute_map (dict): The key is attribute name
33 | and the value is json key in definition.
34 | """
35 | swagger_types = {
36 | 'reference_counts': 'list[RegionReferenceCount]'
37 | }
38 |
39 | attribute_map = {
40 | 'reference_counts': 'referenceCounts'
41 | }
42 |
43 | def __init__(self, _configuration=None, **kwargs): # noqa: E501
44 | """RegionReferenceCountList - a model defined in Swagger""" # noqa: E501
45 | if _configuration is None:
46 | _configuration = Configuration()
47 | self._configuration = _configuration
48 |
49 | self._reference_counts = None
50 | self.discriminator = None
51 |
52 | setattr(self, "_{}".format('reference_counts'), kwargs.get('reference_counts', None))
53 |
54 | @property
55 | def reference_counts(self):
56 | """Gets the reference_counts of this RegionReferenceCountList. # noqa: E501
57 |
58 |
59 | :return: The reference_counts of this RegionReferenceCountList. # noqa: E501
60 | :rtype: list[RegionReferenceCount]
61 | """
62 | return self._reference_counts
63 |
64 | @reference_counts.setter
65 | def reference_counts(self, reference_counts):
66 | """Sets the reference_counts of this RegionReferenceCountList.
67 |
68 |
69 | :param reference_counts: The reference_counts of this RegionReferenceCountList. # noqa: E501
70 | :type: list[RegionReferenceCount]
71 | """
72 |
73 | self._reference_counts = reference_counts
74 |
75 | def to_dict(self):
76 | """Returns the model properties as a dict"""
77 | result = {}
78 |
79 | for attr, _ in six.iteritems(self.swagger_types):
80 | value = getattr(self, attr)
81 | if isinstance(value, list):
82 | result[attr] = list(map(
83 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
84 | value
85 | ))
86 | elif hasattr(value, "to_dict"):
87 | result[attr] = value.to_dict()
88 | elif isinstance(value, dict):
89 | result[attr] = dict(map(
90 | lambda item: (item[0], item[1].to_dict())
91 | if hasattr(item[1], "to_dict") else item,
92 | value.items()
93 | ))
94 | else:
95 | result[attr] = value
96 | if issubclass(RegionReferenceCountList, dict):
97 | for key, value in self.items():
98 | result[key] = value
99 |
100 | return result
101 |
102 | def to_str(self):
103 | """Returns the string representation of the model"""
104 | return pprint.pformat(self.to_dict())
105 |
106 | def __repr__(self):
107 | """For `print` and `pprint`"""
108 | return self.to_str()
109 |
110 | def __eq__(self, other):
111 | """Returns true if both objects are equal"""
112 | if not isinstance(other, RegionReferenceCountList):
113 | return False
114 |
115 | return self.to_dict() == other.to_dict()
116 |
117 | def __ne__(self, other):
118 | """Returns true if both objects are not equal"""
119 | if not isinstance(other, RegionReferenceCountList):
120 | return True
121 |
122 | return self.to_dict() != other.to_dict()
123 |
--------------------------------------------------------------------------------
/docusign_rooms/models/office_reference_count_list.py:
--------------------------------------------------------------------------------
1 | # coding: utf-8
2 |
3 | """
4 | DocuSign Rooms API - v2
5 |
6 | An API for an integrator to access the features of DocuSign Rooms # noqa: E501
7 |
8 | OpenAPI spec version: v2
9 | Contact: devcenter@docusign.com
10 | Generated by: https://github.com/swagger-api/swagger-codegen.git
11 | """
12 |
13 |
14 | import pprint
15 | import re # noqa: F401
16 |
17 | import six
18 |
19 | from docusign_rooms.client.configuration import Configuration
20 |
21 |
22 | class OfficeReferenceCountList(object):
23 | """NOTE: This class is auto generated by the swagger code generator program.
24 |
25 | Do not edit the class manually.
26 | """
27 |
28 | """
29 | Attributes:
30 | swagger_types (dict): The key is attribute name
31 | and the value is attribute type.
32 | attribute_map (dict): The key is attribute name
33 | and the value is json key in definition.
34 | """
35 | swagger_types = {
36 | 'references_counts': 'list[OfficeReferenceCount]'
37 | }
38 |
39 | attribute_map = {
40 | 'references_counts': 'referencesCounts'
41 | }
42 |
43 | def __init__(self, _configuration=None, **kwargs): # noqa: E501
44 | """OfficeReferenceCountList - a model defined in Swagger""" # noqa: E501
45 | if _configuration is None:
46 | _configuration = Configuration()
47 | self._configuration = _configuration
48 |
49 | self._references_counts = None
50 | self.discriminator = None
51 |
52 | setattr(self, "_{}".format('references_counts'), kwargs.get('references_counts', None))
53 |
54 | @property
55 | def references_counts(self):
56 | """Gets the references_counts of this OfficeReferenceCountList. # noqa: E501
57 |
58 |
59 | :return: The references_counts of this OfficeReferenceCountList. # noqa: E501
60 | :rtype: list[OfficeReferenceCount]
61 | """
62 | return self._references_counts
63 |
64 | @references_counts.setter
65 | def references_counts(self, references_counts):
66 | """Sets the references_counts of this OfficeReferenceCountList.
67 |
68 |
69 | :param references_counts: The references_counts of this OfficeReferenceCountList. # noqa: E501
70 | :type: list[OfficeReferenceCount]
71 | """
72 |
73 | self._references_counts = references_counts
74 |
75 | def to_dict(self):
76 | """Returns the model properties as a dict"""
77 | result = {}
78 |
79 | for attr, _ in six.iteritems(self.swagger_types):
80 | value = getattr(self, attr)
81 | if isinstance(value, list):
82 | result[attr] = list(map(
83 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
84 | value
85 | ))
86 | elif hasattr(value, "to_dict"):
87 | result[attr] = value.to_dict()
88 | elif isinstance(value, dict):
89 | result[attr] = dict(map(
90 | lambda item: (item[0], item[1].to_dict())
91 | if hasattr(item[1], "to_dict") else item,
92 | value.items()
93 | ))
94 | else:
95 | result[attr] = value
96 | if issubclass(OfficeReferenceCountList, dict):
97 | for key, value in self.items():
98 | result[key] = value
99 |
100 | return result
101 |
102 | def to_str(self):
103 | """Returns the string representation of the model"""
104 | return pprint.pformat(self.to_dict())
105 |
106 | def __repr__(self):
107 | """For `print` and `pprint`"""
108 | return self.to_str()
109 |
110 | def __eq__(self, other):
111 | """Returns true if both objects are equal"""
112 | if not isinstance(other, OfficeReferenceCountList):
113 | return False
114 |
115 | return self.to_dict() == other.to_dict()
116 |
117 | def __ne__(self, other):
118 | """Returns true if both objects are not equal"""
119 | if not isinstance(other, OfficeReferenceCountList):
120 | return True
121 |
122 | return self.to_dict() != other.to_dict()
123 |
--------------------------------------------------------------------------------
/docusign_rooms/models/user_for_update.py:
--------------------------------------------------------------------------------
1 | # coding: utf-8
2 |
3 | """
4 | DocuSign Rooms API - v2
5 |
6 | An API for an integrator to access the features of DocuSign Rooms # noqa: E501
7 |
8 | OpenAPI spec version: v2
9 | Contact: devcenter@docusign.com
10 | Generated by: https://github.com/swagger-api/swagger-codegen.git
11 | """
12 |
13 |
14 | import pprint
15 | import re # noqa: F401
16 |
17 | import six
18 |
19 | from docusign_rooms.client.configuration import Configuration
20 |
21 |
22 | class UserForUpdate(object):
23 | """NOTE: This class is auto generated by the swagger code generator program.
24 |
25 | Do not edit the class manually.
26 | """
27 |
28 | """
29 | Attributes:
30 | swagger_types (dict): The key is attribute name
31 | and the value is attribute type.
32 | attribute_map (dict): The key is attribute name
33 | and the value is json key in definition.
34 | """
35 | swagger_types = {
36 | 'default_office_id': 'int'
37 | }
38 |
39 | attribute_map = {
40 | 'default_office_id': 'defaultOfficeId'
41 | }
42 |
43 | def __init__(self, _configuration=None, **kwargs): # noqa: E501
44 | """UserForUpdate - a model defined in Swagger""" # noqa: E501
45 | if _configuration is None:
46 | _configuration = Configuration()
47 | self._configuration = _configuration
48 |
49 | self._default_office_id = None
50 | self.discriminator = None
51 |
52 | setattr(self, "_{}".format('default_office_id'), kwargs.get('default_office_id', None))
53 |
54 | @property
55 | def default_office_id(self):
56 | """Gets the default_office_id of this UserForUpdate. # noqa: E501
57 |
58 |
59 | :return: The default_office_id of this UserForUpdate. # noqa: E501
60 | :rtype: int
61 | """
62 | return self._default_office_id
63 |
64 | @default_office_id.setter
65 | def default_office_id(self, default_office_id):
66 | """Sets the default_office_id of this UserForUpdate.
67 |
68 |
69 | :param default_office_id: The default_office_id of this UserForUpdate. # noqa: E501
70 | :type: int
71 | """
72 | if self._configuration.client_side_validation and default_office_id is None:
73 | raise ValueError("Invalid value for `default_office_id`, must not be `None`") # noqa: E501
74 |
75 | self._default_office_id = default_office_id
76 |
77 | def to_dict(self):
78 | """Returns the model properties as a dict"""
79 | result = {}
80 |
81 | for attr, _ in six.iteritems(self.swagger_types):
82 | value = getattr(self, attr)
83 | if isinstance(value, list):
84 | result[attr] = list(map(
85 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
86 | value
87 | ))
88 | elif hasattr(value, "to_dict"):
89 | result[attr] = value.to_dict()
90 | elif isinstance(value, dict):
91 | result[attr] = dict(map(
92 | lambda item: (item[0], item[1].to_dict())
93 | if hasattr(item[1], "to_dict") else item,
94 | value.items()
95 | ))
96 | else:
97 | result[attr] = value
98 | if issubclass(UserForUpdate, dict):
99 | for key, value in self.items():
100 | result[key] = value
101 |
102 | return result
103 |
104 | def to_str(self):
105 | """Returns the string representation of the model"""
106 | return pprint.pformat(self.to_dict())
107 |
108 | def __repr__(self):
109 | """For `print` and `pprint`"""
110 | return self.to_str()
111 |
112 | def __eq__(self, other):
113 | """Returns true if both objects are equal"""
114 | if not isinstance(other, UserForUpdate):
115 | return False
116 |
117 | return self.to_dict() == other.to_dict()
118 |
119 | def __ne__(self, other):
120 | """Returns true if both objects are not equal"""
121 | if not isinstance(other, UserForUpdate):
122 | return True
123 |
124 | return self.to_dict() != other.to_dict()
125 |
--------------------------------------------------------------------------------
/docusign_rooms/models/e_sign_account_role_settings.py:
--------------------------------------------------------------------------------
1 | # coding: utf-8
2 |
3 | """
4 | DocuSign Rooms API - v2
5 |
6 | An API for an integrator to access the features of DocuSign Rooms # noqa: E501
7 |
8 | OpenAPI spec version: v2
9 | Contact: devcenter@docusign.com
10 | Generated by: https://github.com/swagger-api/swagger-codegen.git
11 | """
12 |
13 |
14 | import pprint
15 | import re # noqa: F401
16 |
17 | import six
18 |
19 | from docusign_rooms.client.configuration import Configuration
20 |
21 |
22 | class ESignAccountRoleSettings(object):
23 | """NOTE: This class is auto generated by the swagger code generator program.
24 |
25 | Do not edit the class manually.
26 | """
27 |
28 | """
29 | Attributes:
30 | swagger_types (dict): The key is attribute name
31 | and the value is attribute type.
32 | attribute_map (dict): The key is attribute name
33 | and the value is json key in definition.
34 | """
35 | swagger_types = {
36 | 'allow_account_management': 'bool'
37 | }
38 |
39 | attribute_map = {
40 | 'allow_account_management': 'allowAccountManagement'
41 | }
42 |
43 | def __init__(self, _configuration=None, **kwargs): # noqa: E501
44 | """ESignAccountRoleSettings - a model defined in Swagger""" # noqa: E501
45 | if _configuration is None:
46 | _configuration = Configuration()
47 | self._configuration = _configuration
48 |
49 | self._allow_account_management = None
50 | self.discriminator = None
51 |
52 | setattr(self, "_{}".format('allow_account_management'), kwargs.get('allow_account_management', None))
53 |
54 | @property
55 | def allow_account_management(self):
56 | """Gets the allow_account_management of this ESignAccountRoleSettings. # noqa: E501
57 |
58 |
59 | :return: The allow_account_management of this ESignAccountRoleSettings. # noqa: E501
60 | :rtype: bool
61 | """
62 | return self._allow_account_management
63 |
64 | @allow_account_management.setter
65 | def allow_account_management(self, allow_account_management):
66 | """Sets the allow_account_management of this ESignAccountRoleSettings.
67 |
68 |
69 | :param allow_account_management: The allow_account_management of this ESignAccountRoleSettings. # noqa: E501
70 | :type: bool
71 | """
72 |
73 | self._allow_account_management = allow_account_management
74 |
75 | def to_dict(self):
76 | """Returns the model properties as a dict"""
77 | result = {}
78 |
79 | for attr, _ in six.iteritems(self.swagger_types):
80 | value = getattr(self, attr)
81 | if isinstance(value, list):
82 | result[attr] = list(map(
83 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
84 | value
85 | ))
86 | elif hasattr(value, "to_dict"):
87 | result[attr] = value.to_dict()
88 | elif isinstance(value, dict):
89 | result[attr] = dict(map(
90 | lambda item: (item[0], item[1].to_dict())
91 | if hasattr(item[1], "to_dict") else item,
92 | value.items()
93 | ))
94 | else:
95 | result[attr] = value
96 | if issubclass(ESignAccountRoleSettings, dict):
97 | for key, value in self.items():
98 | result[key] = value
99 |
100 | return result
101 |
102 | def to_str(self):
103 | """Returns the string representation of the model"""
104 | return pprint.pformat(self.to_dict())
105 |
106 | def __repr__(self):
107 | """For `print` and `pprint`"""
108 | return self.to_str()
109 |
110 | def __eq__(self, other):
111 | """Returns true if both objects are equal"""
112 | if not isinstance(other, ESignAccountRoleSettings):
113 | return False
114 |
115 | return self.to_dict() == other.to_dict()
116 |
117 | def __ne__(self, other):
118 | """Returns true if both objects are not equal"""
119 | if not isinstance(other, ESignAccountRoleSettings):
120 | return True
121 |
122 | return self.to_dict() != other.to_dict()
123 |
--------------------------------------------------------------------------------
/docusign_rooms/models/e_sign_permission_profile_list.py:
--------------------------------------------------------------------------------
1 | # coding: utf-8
2 |
3 | """
4 | DocuSign Rooms API - v2
5 |
6 | An API for an integrator to access the features of DocuSign Rooms # noqa: E501
7 |
8 | OpenAPI spec version: v2
9 | Contact: devcenter@docusign.com
10 | Generated by: https://github.com/swagger-api/swagger-codegen.git
11 | """
12 |
13 |
14 | import pprint
15 | import re # noqa: F401
16 |
17 | import six
18 |
19 | from docusign_rooms.client.configuration import Configuration
20 |
21 |
22 | class ESignPermissionProfileList(object):
23 | """NOTE: This class is auto generated by the swagger code generator program.
24 |
25 | Do not edit the class manually.
26 | """
27 |
28 | """
29 | Attributes:
30 | swagger_types (dict): The key is attribute name
31 | and the value is attribute type.
32 | attribute_map (dict): The key is attribute name
33 | and the value is json key in definition.
34 | """
35 | swagger_types = {
36 | 'permission_profiles': 'list[ESignPermissionProfile]'
37 | }
38 |
39 | attribute_map = {
40 | 'permission_profiles': 'permissionProfiles'
41 | }
42 |
43 | def __init__(self, _configuration=None, **kwargs): # noqa: E501
44 | """ESignPermissionProfileList - a model defined in Swagger""" # noqa: E501
45 | if _configuration is None:
46 | _configuration = Configuration()
47 | self._configuration = _configuration
48 |
49 | self._permission_profiles = None
50 | self.discriminator = None
51 |
52 | setattr(self, "_{}".format('permission_profiles'), kwargs.get('permission_profiles', None))
53 |
54 | @property
55 | def permission_profiles(self):
56 | """Gets the permission_profiles of this ESignPermissionProfileList. # noqa: E501
57 |
58 |
59 | :return: The permission_profiles of this ESignPermissionProfileList. # noqa: E501
60 | :rtype: list[ESignPermissionProfile]
61 | """
62 | return self._permission_profiles
63 |
64 | @permission_profiles.setter
65 | def permission_profiles(self, permission_profiles):
66 | """Sets the permission_profiles of this ESignPermissionProfileList.
67 |
68 |
69 | :param permission_profiles: The permission_profiles of this ESignPermissionProfileList. # noqa: E501
70 | :type: list[ESignPermissionProfile]
71 | """
72 |
73 | self._permission_profiles = permission_profiles
74 |
75 | def to_dict(self):
76 | """Returns the model properties as a dict"""
77 | result = {}
78 |
79 | for attr, _ in six.iteritems(self.swagger_types):
80 | value = getattr(self, attr)
81 | if isinstance(value, list):
82 | result[attr] = list(map(
83 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
84 | value
85 | ))
86 | elif hasattr(value, "to_dict"):
87 | result[attr] = value.to_dict()
88 | elif isinstance(value, dict):
89 | result[attr] = dict(map(
90 | lambda item: (item[0], item[1].to_dict())
91 | if hasattr(item[1], "to_dict") else item,
92 | value.items()
93 | ))
94 | else:
95 | result[attr] = value
96 | if issubclass(ESignPermissionProfileList, dict):
97 | for key, value in self.items():
98 | result[key] = value
99 |
100 | return result
101 |
102 | def to_str(self):
103 | """Returns the string representation of the model"""
104 | return pprint.pformat(self.to_dict())
105 |
106 | def __repr__(self):
107 | """For `print` and `pprint`"""
108 | return self.to_str()
109 |
110 | def __eq__(self, other):
111 | """Returns true if both objects are equal"""
112 | if not isinstance(other, ESignPermissionProfileList):
113 | return False
114 |
115 | return self.to_dict() == other.to_dict()
116 |
117 | def __ne__(self, other):
118 | """Returns true if both objects are not equal"""
119 | if not isinstance(other, ESignPermissionProfileList):
120 | return True
121 |
122 | return self.to_dict() != other.to_dict()
123 |
--------------------------------------------------------------------------------
/docusign_rooms/models/global_seller_decision_types.py:
--------------------------------------------------------------------------------
1 | # coding: utf-8
2 |
3 | """
4 | DocuSign Rooms API - v2
5 |
6 | An API for an integrator to access the features of DocuSign Rooms # noqa: E501
7 |
8 | OpenAPI spec version: v2
9 | Contact: devcenter@docusign.com
10 | Generated by: https://github.com/swagger-api/swagger-codegen.git
11 | """
12 |
13 |
14 | import pprint
15 | import re # noqa: F401
16 |
17 | import six
18 |
19 | from docusign_rooms.client.configuration import Configuration
20 |
21 |
22 | class GlobalSellerDecisionTypes(object):
23 | """NOTE: This class is auto generated by the swagger code generator program.
24 |
25 | Do not edit the class manually.
26 | """
27 |
28 | """
29 | Attributes:
30 | swagger_types (dict): The key is attribute name
31 | and the value is attribute type.
32 | attribute_map (dict): The key is attribute name
33 | and the value is json key in definition.
34 | """
35 | swagger_types = {
36 | 'seller_decision_types': 'list[SellerDecisionType]'
37 | }
38 |
39 | attribute_map = {
40 | 'seller_decision_types': 'sellerDecisionTypes'
41 | }
42 |
43 | def __init__(self, _configuration=None, **kwargs): # noqa: E501
44 | """GlobalSellerDecisionTypes - a model defined in Swagger""" # noqa: E501
45 | if _configuration is None:
46 | _configuration = Configuration()
47 | self._configuration = _configuration
48 |
49 | self._seller_decision_types = None
50 | self.discriminator = None
51 |
52 | setattr(self, "_{}".format('seller_decision_types'), kwargs.get('seller_decision_types', None))
53 |
54 | @property
55 | def seller_decision_types(self):
56 | """Gets the seller_decision_types of this GlobalSellerDecisionTypes. # noqa: E501
57 |
58 |
59 | :return: The seller_decision_types of this GlobalSellerDecisionTypes. # noqa: E501
60 | :rtype: list[SellerDecisionType]
61 | """
62 | return self._seller_decision_types
63 |
64 | @seller_decision_types.setter
65 | def seller_decision_types(self, seller_decision_types):
66 | """Sets the seller_decision_types of this GlobalSellerDecisionTypes.
67 |
68 |
69 | :param seller_decision_types: The seller_decision_types of this GlobalSellerDecisionTypes. # noqa: E501
70 | :type: list[SellerDecisionType]
71 | """
72 |
73 | self._seller_decision_types = seller_decision_types
74 |
75 | def to_dict(self):
76 | """Returns the model properties as a dict"""
77 | result = {}
78 |
79 | for attr, _ in six.iteritems(self.swagger_types):
80 | value = getattr(self, attr)
81 | if isinstance(value, list):
82 | result[attr] = list(map(
83 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
84 | value
85 | ))
86 | elif hasattr(value, "to_dict"):
87 | result[attr] = value.to_dict()
88 | elif isinstance(value, dict):
89 | result[attr] = dict(map(
90 | lambda item: (item[0], item[1].to_dict())
91 | if hasattr(item[1], "to_dict") else item,
92 | value.items()
93 | ))
94 | else:
95 | result[attr] = value
96 | if issubclass(GlobalSellerDecisionTypes, dict):
97 | for key, value in self.items():
98 | result[key] = value
99 |
100 | return result
101 |
102 | def to_str(self):
103 | """Returns the string representation of the model"""
104 | return pprint.pformat(self.to_dict())
105 |
106 | def __repr__(self):
107 | """For `print` and `pprint`"""
108 | return self.to_str()
109 |
110 | def __eq__(self, other):
111 | """Returns true if both objects are equal"""
112 | if not isinstance(other, GlobalSellerDecisionTypes):
113 | return False
114 |
115 | return self.to_dict() == other.to_dict()
116 |
117 | def __ne__(self, other):
118 | """Returns true if both objects are not equal"""
119 | if not isinstance(other, GlobalSellerDecisionTypes):
120 | return True
121 |
122 | return self.to_dict() != other.to_dict()
123 |
--------------------------------------------------------------------------------
/docusign_rooms/models/global_task_responsibility_types.py:
--------------------------------------------------------------------------------
1 | # coding: utf-8
2 |
3 | """
4 | DocuSign Rooms API - v2
5 |
6 | An API for an integrator to access the features of DocuSign Rooms # noqa: E501
7 |
8 | OpenAPI spec version: v2
9 | Contact: devcenter@docusign.com
10 | Generated by: https://github.com/swagger-api/swagger-codegen.git
11 | """
12 |
13 |
14 | import pprint
15 | import re # noqa: F401
16 |
17 | import six
18 |
19 | from docusign_rooms.client.configuration import Configuration
20 |
21 |
22 | class GlobalTaskResponsibilityTypes(object):
23 | """NOTE: This class is auto generated by the swagger code generator program.
24 |
25 | Do not edit the class manually.
26 | """
27 |
28 | """
29 | Attributes:
30 | swagger_types (dict): The key is attribute name
31 | and the value is attribute type.
32 | attribute_map (dict): The key is attribute name
33 | and the value is json key in definition.
34 | """
35 | swagger_types = {
36 | 'task_responsibility_types': 'list[TaskResponsibilityType]'
37 | }
38 |
39 | attribute_map = {
40 | 'task_responsibility_types': 'taskResponsibilityTypes'
41 | }
42 |
43 | def __init__(self, _configuration=None, **kwargs): # noqa: E501
44 | """GlobalTaskResponsibilityTypes - a model defined in Swagger""" # noqa: E501
45 | if _configuration is None:
46 | _configuration = Configuration()
47 | self._configuration = _configuration
48 |
49 | self._task_responsibility_types = None
50 | self.discriminator = None
51 |
52 | setattr(self, "_{}".format('task_responsibility_types'), kwargs.get('task_responsibility_types', None))
53 |
54 | @property
55 | def task_responsibility_types(self):
56 | """Gets the task_responsibility_types of this GlobalTaskResponsibilityTypes. # noqa: E501
57 |
58 |
59 | :return: The task_responsibility_types of this GlobalTaskResponsibilityTypes. # noqa: E501
60 | :rtype: list[TaskResponsibilityType]
61 | """
62 | return self._task_responsibility_types
63 |
64 | @task_responsibility_types.setter
65 | def task_responsibility_types(self, task_responsibility_types):
66 | """Sets the task_responsibility_types of this GlobalTaskResponsibilityTypes.
67 |
68 |
69 | :param task_responsibility_types: The task_responsibility_types of this GlobalTaskResponsibilityTypes. # noqa: E501
70 | :type: list[TaskResponsibilityType]
71 | """
72 |
73 | self._task_responsibility_types = task_responsibility_types
74 |
75 | def to_dict(self):
76 | """Returns the model properties as a dict"""
77 | result = {}
78 |
79 | for attr, _ in six.iteritems(self.swagger_types):
80 | value = getattr(self, attr)
81 | if isinstance(value, list):
82 | result[attr] = list(map(
83 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
84 | value
85 | ))
86 | elif hasattr(value, "to_dict"):
87 | result[attr] = value.to_dict()
88 | elif isinstance(value, dict):
89 | result[attr] = dict(map(
90 | lambda item: (item[0], item[1].to_dict())
91 | if hasattr(item[1], "to_dict") else item,
92 | value.items()
93 | ))
94 | else:
95 | result[attr] = value
96 | if issubclass(GlobalTaskResponsibilityTypes, dict):
97 | for key, value in self.items():
98 | result[key] = value
99 |
100 | return result
101 |
102 | def to_str(self):
103 | """Returns the string representation of the model"""
104 | return pprint.pformat(self.to_dict())
105 |
106 | def __repr__(self):
107 | """For `print` and `pprint`"""
108 | return self.to_str()
109 |
110 | def __eq__(self, other):
111 | """Returns true if both objects are equal"""
112 | if not isinstance(other, GlobalTaskResponsibilityTypes):
113 | return False
114 |
115 | return self.to_dict() == other.to_dict()
116 |
117 | def __ne__(self, other):
118 | """Returns true if both objects are not equal"""
119 | if not isinstance(other, GlobalTaskResponsibilityTypes):
120 | return True
121 |
122 | return self.to_dict() != other.to_dict()
123 |
--------------------------------------------------------------------------------
/docusign_rooms/models/global_special_circumstance_types.py:
--------------------------------------------------------------------------------
1 | # coding: utf-8
2 |
3 | """
4 | DocuSign Rooms API - v2
5 |
6 | An API for an integrator to access the features of DocuSign Rooms # noqa: E501
7 |
8 | OpenAPI spec version: v2
9 | Contact: devcenter@docusign.com
10 | Generated by: https://github.com/swagger-api/swagger-codegen.git
11 | """
12 |
13 |
14 | import pprint
15 | import re # noqa: F401
16 |
17 | import six
18 |
19 | from docusign_rooms.client.configuration import Configuration
20 |
21 |
22 | class GlobalSpecialCircumstanceTypes(object):
23 | """NOTE: This class is auto generated by the swagger code generator program.
24 |
25 | Do not edit the class manually.
26 | """
27 |
28 | """
29 | Attributes:
30 | swagger_types (dict): The key is attribute name
31 | and the value is attribute type.
32 | attribute_map (dict): The key is attribute name
33 | and the value is json key in definition.
34 | """
35 | swagger_types = {
36 | 'special_circumstance_types': 'list[SpecialCircumstanceType]'
37 | }
38 |
39 | attribute_map = {
40 | 'special_circumstance_types': 'specialCircumstanceTypes'
41 | }
42 |
43 | def __init__(self, _configuration=None, **kwargs): # noqa: E501
44 | """GlobalSpecialCircumstanceTypes - a model defined in Swagger""" # noqa: E501
45 | if _configuration is None:
46 | _configuration = Configuration()
47 | self._configuration = _configuration
48 |
49 | self._special_circumstance_types = None
50 | self.discriminator = None
51 |
52 | setattr(self, "_{}".format('special_circumstance_types'), kwargs.get('special_circumstance_types', None))
53 |
54 | @property
55 | def special_circumstance_types(self):
56 | """Gets the special_circumstance_types of this GlobalSpecialCircumstanceTypes. # noqa: E501
57 |
58 |
59 | :return: The special_circumstance_types of this GlobalSpecialCircumstanceTypes. # noqa: E501
60 | :rtype: list[SpecialCircumstanceType]
61 | """
62 | return self._special_circumstance_types
63 |
64 | @special_circumstance_types.setter
65 | def special_circumstance_types(self, special_circumstance_types):
66 | """Sets the special_circumstance_types of this GlobalSpecialCircumstanceTypes.
67 |
68 |
69 | :param special_circumstance_types: The special_circumstance_types of this GlobalSpecialCircumstanceTypes. # noqa: E501
70 | :type: list[SpecialCircumstanceType]
71 | """
72 |
73 | self._special_circumstance_types = special_circumstance_types
74 |
75 | def to_dict(self):
76 | """Returns the model properties as a dict"""
77 | result = {}
78 |
79 | for attr, _ in six.iteritems(self.swagger_types):
80 | value = getattr(self, attr)
81 | if isinstance(value, list):
82 | result[attr] = list(map(
83 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
84 | value
85 | ))
86 | elif hasattr(value, "to_dict"):
87 | result[attr] = value.to_dict()
88 | elif isinstance(value, dict):
89 | result[attr] = dict(map(
90 | lambda item: (item[0], item[1].to_dict())
91 | if hasattr(item[1], "to_dict") else item,
92 | value.items()
93 | ))
94 | else:
95 | result[attr] = value
96 | if issubclass(GlobalSpecialCircumstanceTypes, dict):
97 | for key, value in self.items():
98 | result[key] = value
99 |
100 | return result
101 |
102 | def to_str(self):
103 | """Returns the string representation of the model"""
104 | return pprint.pformat(self.to_dict())
105 |
106 | def __repr__(self):
107 | """For `print` and `pprint`"""
108 | return self.to_str()
109 |
110 | def __eq__(self, other):
111 | """Returns true if both objects are equal"""
112 | if not isinstance(other, GlobalSpecialCircumstanceTypes):
113 | return False
114 |
115 | return self.to_dict() == other.to_dict()
116 |
117 | def __ne__(self, other):
118 | """Returns true if both objects are not equal"""
119 | if not isinstance(other, GlobalSpecialCircumstanceTypes):
120 | return True
121 |
122 | return self.to_dict() != other.to_dict()
123 |
--------------------------------------------------------------------------------
/docusign_rooms/models/state.py:
--------------------------------------------------------------------------------
1 | # coding: utf-8
2 |
3 | """
4 | DocuSign Rooms API - v2
5 |
6 | An API for an integrator to access the features of DocuSign Rooms # noqa: E501
7 |
8 | OpenAPI spec version: v2
9 | Contact: devcenter@docusign.com
10 | Generated by: https://github.com/swagger-api/swagger-codegen.git
11 | """
12 |
13 |
14 | import pprint
15 | import re # noqa: F401
16 |
17 | import six
18 |
19 | from docusign_rooms.client.configuration import Configuration
20 |
21 |
22 | class State(object):
23 | """NOTE: This class is auto generated by the swagger code generator program.
24 |
25 | Do not edit the class manually.
26 | """
27 |
28 | """
29 | Attributes:
30 | swagger_types (dict): The key is attribute name
31 | and the value is attribute type.
32 | attribute_map (dict): The key is attribute name
33 | and the value is json key in definition.
34 | """
35 | swagger_types = {
36 | 'state_id': 'str',
37 | 'name': 'str'
38 | }
39 |
40 | attribute_map = {
41 | 'state_id': 'stateId',
42 | 'name': 'name'
43 | }
44 |
45 | def __init__(self, _configuration=None, **kwargs): # noqa: E501
46 | """State - a model defined in Swagger""" # noqa: E501
47 | if _configuration is None:
48 | _configuration = Configuration()
49 | self._configuration = _configuration
50 |
51 | self._state_id = None
52 | self._name = None
53 | self.discriminator = None
54 |
55 | setattr(self, "_{}".format('state_id'), kwargs.get('state_id', None))
56 | setattr(self, "_{}".format('name'), kwargs.get('name', None))
57 |
58 | @property
59 | def state_id(self):
60 | """Gets the state_id of this State. # noqa: E501
61 |
62 |
63 | :return: The state_id of this State. # noqa: E501
64 | :rtype: str
65 | """
66 | return self._state_id
67 |
68 | @state_id.setter
69 | def state_id(self, state_id):
70 | """Sets the state_id of this State.
71 |
72 |
73 | :param state_id: The state_id of this State. # noqa: E501
74 | :type: str
75 | """
76 |
77 | self._state_id = state_id
78 |
79 | @property
80 | def name(self):
81 | """Gets the name of this State. # noqa: E501
82 |
83 |
84 | :return: The name of this State. # noqa: E501
85 | :rtype: str
86 | """
87 | return self._name
88 |
89 | @name.setter
90 | def name(self, name):
91 | """Sets the name of this State.
92 |
93 |
94 | :param name: The name of this State. # noqa: E501
95 | :type: str
96 | """
97 |
98 | self._name = name
99 |
100 | def to_dict(self):
101 | """Returns the model properties as a dict"""
102 | result = {}
103 |
104 | for attr, _ in six.iteritems(self.swagger_types):
105 | value = getattr(self, attr)
106 | if isinstance(value, list):
107 | result[attr] = list(map(
108 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
109 | value
110 | ))
111 | elif hasattr(value, "to_dict"):
112 | result[attr] = value.to_dict()
113 | elif isinstance(value, dict):
114 | result[attr] = dict(map(
115 | lambda item: (item[0], item[1].to_dict())
116 | if hasattr(item[1], "to_dict") else item,
117 | value.items()
118 | ))
119 | else:
120 | result[attr] = value
121 | if issubclass(State, dict):
122 | for key, value in self.items():
123 | result[key] = value
124 |
125 | return result
126 |
127 | def to_str(self):
128 | """Returns the string representation of the model"""
129 | return pprint.pformat(self.to_dict())
130 |
131 | def __repr__(self):
132 | """For `print` and `pprint`"""
133 | return self.to_str()
134 |
135 | def __eq__(self, other):
136 | """Returns true if both objects are equal"""
137 | if not isinstance(other, State):
138 | return False
139 |
140 | return self.to_dict() == other.to_dict()
141 |
142 | def __ne__(self, other):
143 | """Returns true if both objects are not equal"""
144 | if not isinstance(other, State):
145 | return True
146 |
147 | return self.to_dict() != other.to_dict()
148 |
--------------------------------------------------------------------------------
/docusign_rooms/models/room_contact_type.py:
--------------------------------------------------------------------------------
1 | # coding: utf-8
2 |
3 | """
4 | DocuSign Rooms API - v2
5 |
6 | An API for an integrator to access the features of DocuSign Rooms # noqa: E501
7 |
8 | OpenAPI spec version: v2
9 | Contact: devcenter@docusign.com
10 | Generated by: https://github.com/swagger-api/swagger-codegen.git
11 | """
12 |
13 |
14 | import pprint
15 | import re # noqa: F401
16 |
17 | import six
18 |
19 | from docusign_rooms.client.configuration import Configuration
20 |
21 |
22 | class RoomContactType(object):
23 | """NOTE: This class is auto generated by the swagger code generator program.
24 |
25 | Do not edit the class manually.
26 | """
27 |
28 | """
29 | Attributes:
30 | swagger_types (dict): The key is attribute name
31 | and the value is attribute type.
32 | attribute_map (dict): The key is attribute name
33 | and the value is json key in definition.
34 | """
35 | swagger_types = {
36 | 'id': 'str',
37 | 'name': 'str'
38 | }
39 |
40 | attribute_map = {
41 | 'id': 'id',
42 | 'name': 'name'
43 | }
44 |
45 | def __init__(self, _configuration=None, **kwargs): # noqa: E501
46 | """RoomContactType - a model defined in Swagger""" # noqa: E501
47 | if _configuration is None:
48 | _configuration = Configuration()
49 | self._configuration = _configuration
50 |
51 | self._id = None
52 | self._name = None
53 | self.discriminator = None
54 |
55 | setattr(self, "_{}".format('id'), kwargs.get('id', None))
56 | setattr(self, "_{}".format('name'), kwargs.get('name', None))
57 |
58 | @property
59 | def id(self):
60 | """Gets the id of this RoomContactType. # noqa: E501
61 |
62 |
63 | :return: The id of this RoomContactType. # noqa: E501
64 | :rtype: str
65 | """
66 | return self._id
67 |
68 | @id.setter
69 | def id(self, id):
70 | """Sets the id of this RoomContactType.
71 |
72 |
73 | :param id: The id of this RoomContactType. # noqa: E501
74 | :type: str
75 | """
76 |
77 | self._id = id
78 |
79 | @property
80 | def name(self):
81 | """Gets the name of this RoomContactType. # noqa: E501
82 |
83 |
84 | :return: The name of this RoomContactType. # noqa: E501
85 | :rtype: str
86 | """
87 | return self._name
88 |
89 | @name.setter
90 | def name(self, name):
91 | """Sets the name of this RoomContactType.
92 |
93 |
94 | :param name: The name of this RoomContactType. # noqa: E501
95 | :type: str
96 | """
97 |
98 | self._name = name
99 |
100 | def to_dict(self):
101 | """Returns the model properties as a dict"""
102 | result = {}
103 |
104 | for attr, _ in six.iteritems(self.swagger_types):
105 | value = getattr(self, attr)
106 | if isinstance(value, list):
107 | result[attr] = list(map(
108 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
109 | value
110 | ))
111 | elif hasattr(value, "to_dict"):
112 | result[attr] = value.to_dict()
113 | elif isinstance(value, dict):
114 | result[attr] = dict(map(
115 | lambda item: (item[0], item[1].to_dict())
116 | if hasattr(item[1], "to_dict") else item,
117 | value.items()
118 | ))
119 | else:
120 | result[attr] = value
121 | if issubclass(RoomContactType, dict):
122 | for key, value in self.items():
123 | result[key] = value
124 |
125 | return result
126 |
127 | def to_str(self):
128 | """Returns the string representation of the model"""
129 | return pprint.pformat(self.to_dict())
130 |
131 | def __repr__(self):
132 | """For `print` and `pprint`"""
133 | return self.to_str()
134 |
135 | def __eq__(self, other):
136 | """Returns true if both objects are equal"""
137 | if not isinstance(other, RoomContactType):
138 | return False
139 |
140 | return self.to_dict() == other.to_dict()
141 |
142 | def __ne__(self, other):
143 | """Returns true if both objects are not equal"""
144 | if not isinstance(other, RoomContactType):
145 | return True
146 |
147 | return self.to_dict() != other.to_dict()
148 |
--------------------------------------------------------------------------------