├── test ├── __init__.py ├── docs │ └── bulk_import.csv └── keys │ └── private.pem ├── .swagger-codegen └── VERSION ├── MANIFEST.in ├── setup.cfg ├── .gitattributes ├── test-requirements.txt ├── linter.sh ├── requirements.txt ├── tox.ini ├── .travis.yml ├── docusign_admin ├── client │ ├── auth │ │ └── __init__.py │ ├── __init__.py │ └── api_exception.py ├── apis │ └── __init__.py └── models │ ├── user_identity_request.py │ ├── update_response.py │ ├── organization_simple_id_object.py │ ├── update_users_request.py │ ├── org_export_selected_domain.py │ ├── organization_export_domain.py │ ├── users_drilldown_response.py │ ├── update_users_email_request.py │ ├── org_export_selected_account.py │ ├── organization_export_account.py │ ├── delete_membership_request.py │ ├── org_report_list_response.py │ ├── permissions_response.py │ ├── membership_data_redaction_request.py │ ├── organization_exports_response.py │ ├── organization_imports_response.py │ ├── domains_response.py │ ├── organization_accounts_request.py │ ├── organizations_response.py │ ├── ds_group_request.py │ ├── individual_membership_data_redaction_request.py │ ├── ds_group_users_add_request.py │ ├── force_activate_membership_request.py │ ├── org_report_create_response.py │ ├── organization_account_request.py │ ├── delete_memberships_request.py │ ├── identity_providers_response.py │ ├── delete_user_identity_request.py │ ├── asset_group_account_clones.py │ ├── sub_account_create_worker_response.py │ ├── asset_group_accounts_response.py │ ├── link_response.py │ ├── product_permission_profiles_response.py │ ├── permission_profile_response.py │ ├── product_permission_profiles_request.py │ ├── org_report_list_response_requestor.py │ ├── users_update_response.py │ ├── error_details.py │ ├── delete_response.py │ ├── permission_profile_request.py │ ├── oetr_error_details.py │ ├── member_groups_response.py │ ├── delete_membership_response.py │ ├── oasirr_error_details.py │ ├── organization_users_response.py │ └── ds_group_and_users_response.py ├── .gitignore ├── LICENSE ├── .swagger-codegen-ignore ├── setup.py ├── README.md └── CHANGELOG.md /test/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.swagger-codegen/VERSION: -------------------------------------------------------------------------------- 1 | 2.4.21 -------------------------------------------------------------------------------- /MANIFEST.in: -------------------------------------------------------------------------------- 1 | exclude test/* 2 | -------------------------------------------------------------------------------- /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 | pynose>=1.4.8 3 | pluggy>=0.3.1 4 | py>=1.4.31 5 | randomize>=0.13 6 | tox -------------------------------------------------------------------------------- /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>=2.0.0 7 | cryptography>=2.5 8 | -------------------------------------------------------------------------------- /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 | [] -------------------------------------------------------------------------------- /test/docs/bulk_import.csv: -------------------------------------------------------------------------------- 1 | AccountID,AccountName,FirstName,LastName,UserEmail,eSignPermissionProfile,Group,Language,UserTitle,CompanyName,AddressLine1,AddressLine2,City,StateRegionProvince,PostalCode,Phone,LoginPolicy,AutoActivate 2 | ,"""Sample Account""",John,Markson,John@testing.test,"""Account Administrator""",Everyone,en,Mr,Division,"""123 4th St""","""Suite C1""",Seattle,WA,"""81789""","""9980067123""",fedAuthRequired, -------------------------------------------------------------------------------- /.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 | matrix: 16 | allow_failures: 17 | - python: nightly # Allow all tests to fail for nightly 18 | -------------------------------------------------------------------------------- /docusign_admin/client/auth/__init__.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Docusign Admin API 5 | 6 | An API for an organization administrator to manage organizations, accounts and users # noqa: E501 7 | 8 | OpenAPI spec version: v2.1 9 | Contact: devcenter@docusign.com 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | # import auth modules into client package 17 | from .oauth import Account 18 | from .oauth import Organization 19 | from .oauth import Link 20 | from .oauth import OAuth 21 | from .oauth import OAuthToken -------------------------------------------------------------------------------- /docusign_admin/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 .bulk_exports_api import BulkExportsApi 8 | from .bulk_imports_api import BulkImportsApi 9 | from .ds_groups_api import DSGroupsApi 10 | from .identity_providers_api import IdentityProvidersApi 11 | from .organizations_api import OrganizationsApi 12 | from .product_permission_profiles_api import ProductPermissionProfilesApi 13 | from .provision_asset_group_api import ProvisionAssetGroupApi 14 | from .reserved_domains_api import ReservedDomainsApi 15 | from .users_api import UsersApi 16 | -------------------------------------------------------------------------------- /docusign_admin/client/__init__.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Docusign Admin API 5 | 6 | An API for an organization administrator to manage organizations, accounts and users # noqa: E501 7 | 8 | OpenAPI spec version: v2.1 9 | Contact: devcenter@docusign.com 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 15 | 16 | # import auth modules into client package 17 | from .auth.oauth import Account 18 | from .auth.oauth import Organization 19 | from .auth.oauth import Link 20 | from .auth.oauth import OAuth 21 | from .auth.oauth import OAuthToken 22 | from .auth.oauth import OAuthUserInfo 23 | -------------------------------------------------------------------------------- /.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) 2020- 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 | # Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen 3 | 4 | # Use this file to prevent files from being overwritten by the generator. 5 | # The patterns follow closely to .gitignore or .dockerignore. 6 | 7 | # As an example, the C# client generator defines ApiClient.cs. 8 | # You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line: 9 | #ApiClient.cs 10 | 11 | # You can match any string of characters against a directory, file or extension with a single asterisk (*): 12 | #foo/*/qux 13 | # The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux 14 | 15 | # You can recursively match patterns against a directory, file or extension with a double asterisk (**): 16 | #foo/**/qux 17 | # This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux 18 | 19 | # You can also negate patterns with an exclamation (!). 20 | # For example, you can ignore all files in a docs folder with the file extension .md: 21 | #docs/*.md 22 | # Then explicitly reverse the ignore rule for a single file: 23 | #!docs/README.md 24 | 25 | # Swagger and Git files 26 | .swagger-codegen-ignore 27 | git_push.sh 28 | README.md 29 | CHANGELOG.md 30 | 31 | # Project files 32 | .travis.yml 33 | setup.cfg 34 | 35 | # Specific src and test files 36 | docs/ 37 | test/ 38 | -------------------------------------------------------------------------------- /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 Admin API 5 | 6 | An API for an organization administrator to manage organizations, accounts and users # noqa: E501 7 | 8 | OpenAPI spec version: v2.1 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-admin" 17 | VERSION = "2.0.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>=2.0.0", "cryptography>=2.5"] 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 Admin API", 46 | author_email="devcenter@docusign.com", 47 | url="", 48 | keywords=["Swagger", "Docusign Admin API"], 49 | install_requires=REQUIRES, 50 | packages=find_packages(exclude=["test"]), 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_admin/client/api_exception.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Docusign Admin API 5 | 6 | An API for an organization administrator to manage organizations, accounts and users # noqa: E501 7 | 8 | OpenAPI spec version: v2.1 9 | Contact: devcenter@docusign.com 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | 14 | from __future__ import absolute_import 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 | self.trace_token = http_resp.getheader('X-DocuSign-TraceToken') 25 | self.timestamp = http_resp.getheader('date') 26 | self.response = http_resp 27 | else: 28 | self.status = status 29 | self.reason = reason 30 | self.body = None 31 | self.headers = None 32 | 33 | def __str__(self): 34 | """ 35 | Custom error messages for exception 36 | """ 37 | error_message = "({0})\n" \ 38 | "Reason: {1}\n" \ 39 | "Trace-Token: {2}\n" \ 40 | "Timestamp: {3}\n".format(self.status, self.reason, self.trace_token, self.timestamp) 41 | if self.headers: 42 | error_message += "HTTP response headers: {0}\n".format(self.headers) 43 | 44 | if self.body: 45 | error_message += "HTTP response body: {0}\n".format(self.body) 46 | 47 | return error_message 48 | 49 | 50 | class ArgumentException(Exception): 51 | 52 | def __init__(self, *args, **kwargs): 53 | if not args: 54 | super().__init__("argument cannot be empty") 55 | else: 56 | super().__init__(*args, **kwargs) 57 | 58 | 59 | class InvalidBasePath(Exception): 60 | pass 61 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # The Official DocuSign Admin 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_admin) that wraps the DocuSign Admin API 8 | 9 | [Documentation about the DocuSign Admin 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 |
  1. Open the Windows Control Panel.
  2. 44 |
  3. Under the System and Security category, open the System
  4. 45 |
  5. Select Advanced System Settings to open the System Properties dialog box.
  6. 46 |
  7. On the Advanced tab, select the Environmental Variables button at the lower-right corner. 47 |
      48 |
    1. Check if PYTHONPATH has been added as a system variable.
    2. 49 |
    3. If it has not, select New to add it. The variable you add is the path to the site-packages
    4. 50 |
    51 |
  8. 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-admin 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_admin.svg?style=flat 86 | [pypi-url]: https://pypi.python.org/pypi/docusign_admin 87 | [downloads-image]: https://img.shields.io/pypi/dm/docusign_admin.svg?style=flat 88 | [downloads-url]: https://pypi.python.org/pypi/docusign_admin 89 | [travis-image]: https://img.shields.io/travis/docusign/docusign-admin-python-client.svg?style=flat 90 | [travis-url]: https://travis-ci.org/docusign/docusign-admin-python-client 91 | -------------------------------------------------------------------------------- /docusign_admin/models/user_identity_request.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Docusign Admin API 5 | 6 | An API for an organization administrator to manage organizations, accounts and users # noqa: E501 7 | 8 | OpenAPI spec version: v2.1 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_admin.client.configuration import Configuration 20 | 21 | 22 | class UserIdentityRequest(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 | } 38 | 39 | attribute_map = { 40 | 'id': 'id' 41 | } 42 | 43 | def __init__(self, _configuration=None, **kwargs): # noqa: E501 44 | """UserIdentityRequest - a model defined in Swagger""" # noqa: E501 45 | if _configuration is None: 46 | _configuration = Configuration() 47 | self._configuration = _configuration 48 | 49 | self._id = None 50 | self.discriminator = None 51 | 52 | setattr(self, "_{}".format('id'), kwargs.get('id', None)) 53 | 54 | @property 55 | def id(self): 56 | """Gets the id of this UserIdentityRequest. # noqa: E501 57 | 58 | 59 | :return: The id of this UserIdentityRequest. # noqa: E501 60 | :rtype: str 61 | """ 62 | return self._id 63 | 64 | @id.setter 65 | def id(self, id): 66 | """Sets the id of this UserIdentityRequest. 67 | 68 | 69 | :param id: The id of this UserIdentityRequest. # noqa: E501 70 | :type: str 71 | """ 72 | 73 | self._id = 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(UserIdentityRequest, 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, UserIdentityRequest): 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, UserIdentityRequest): 120 | return True 121 | 122 | return self.to_dict() != other.to_dict() 123 | -------------------------------------------------------------------------------- /docusign_admin/models/update_response.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Docusign Admin API 5 | 6 | An API for an organization administrator to manage organizations, accounts and users # noqa: E501 7 | 8 | OpenAPI spec version: v2.1 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_admin.client.configuration import Configuration 20 | 21 | 22 | class UpdateResponse(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 | 'status': 'str' 37 | } 38 | 39 | attribute_map = { 40 | 'status': 'status' 41 | } 42 | 43 | def __init__(self, _configuration=None, **kwargs): # noqa: E501 44 | """UpdateResponse - a model defined in Swagger""" # noqa: E501 45 | if _configuration is None: 46 | _configuration = Configuration() 47 | self._configuration = _configuration 48 | 49 | self._status = None 50 | self.discriminator = None 51 | 52 | setattr(self, "_{}".format('status'), kwargs.get('status', None)) 53 | 54 | @property 55 | def status(self): 56 | """Gets the status of this UpdateResponse. # noqa: E501 57 | 58 | 59 | :return: The status of this UpdateResponse. # noqa: E501 60 | :rtype: str 61 | """ 62 | return self._status 63 | 64 | @status.setter 65 | def status(self, status): 66 | """Sets the status of this UpdateResponse. 67 | 68 | 69 | :param status: The status of this UpdateResponse. # noqa: E501 70 | :type: str 71 | """ 72 | 73 | self._status = status 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(UpdateResponse, 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, UpdateResponse): 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, UpdateResponse): 120 | return True 121 | 122 | return self.to_dict() != other.to_dict() 123 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # DocuSign Admin 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 | ## [v2.0.0] - Admin API v2.1-1.4.1 - 2024-10-28 7 | ### Changed 8 | - Added support for version v2.1-1.4.1 of the DocuSign Admin API. 9 | - Removed the staging base path and OAuth path constant. 10 | - Updated the SDK release version. 11 | 12 | ## [v2.0.0rc2] - Admin API v2.1-1.4.1 - 2024-10-22 13 | ### Changed 14 | - Added support for version v2.1-1.4.1 of the DocuSign Admin API. 15 | - Removed the staging base path and OAuth path constant. 16 | - Updated the SDK release version. 17 | 18 | ## [v2.0.0rc1] - Admin API v2.1-1.4.0 - 2024-08-27 19 | ### Breaking Changes 20 |
21 | API Changes (Click to expand) 22 | 23 |
24 |
25 | 26 | Added new query parameter "include_ds_groups" to the API "/v2/organizations/{organizationId}/users": 27 | 28 |

Added New APIs for Account Creation

29 |
  • GET: get subscription details for organization
  • 30 |
  • POST: initiate Create account request
  • 31 |
  • GET: get ongoing process details by org ID
  • 32 |
  • GET: get individual process details by org ID, asset group ID, asset group work ID
  • 33 | 34 | 35 |
    36 |
    37 | 38 | - Deprecated nose library in favor of pynose. 39 | 40 | ### Other Changes 41 | - Revised the logic to determine the `oauth_host_name` based on the `base_path`. 42 | - Excluded test directories from package distribution. 43 | - Added support for proxy HTTP connections. 44 | - Adjusted the minimum required `PyJWT` package version to `2.0.0`. 45 | - Added support for version v2.1-1.4.0 of the DocuSign Admin API. 46 | - Updated the SDK release version. 47 | 48 | ## [v1.4.1] - Admin API v2.1-1.3.0 - 2023-11-13 49 | ### Changed 50 | - Fixed installation steps in README.md 51 | - Fixed link to API information in README.md 52 | - Updated Travis CI URL in README.md 53 | - Updated Python package URL in README.md 54 | 55 | This commit addresses inconsistencies and outdated information in the documentation, 56 | ensuring accurate and up-to-date details for users and contributors. 57 | 58 | ## [v1.4.0] - Admin API v2.1-1.3.0 - 2023-08-02 59 | ### Changed 60 | - Added support for version v2.1-1.3.0 of the DocuSign Admin API. 61 | - Updated the SDK release version. 62 | 63 | New endpoints: 64 | * `GET /v1/organizations/{organizationId}/assetGroups/accounts` Get asset group accounts for an organization. 65 | * `POST /v1/organizations/{organizationId}/assetGroups/accountClone` Clone an existing DocuSign account. 66 | * `GET /v1/organizations/{organizationId}/assetGroups/accountClones` Gets all asset group account clones for an organization. 67 | * `GET /v1/organizations/{organizationId}/assetGroups/{assetGroupId}/accountClones/{assetGroupWorkId}` Gets information about a single cloned account. 68 | ## [v1.3.0] - Admin API v2.1-1.2.0 - 2023-05-10 69 | ### Changed 70 | - Added support for version v2.1-1.2.0 of the DocuSign Admin API. 71 | - Updated the SDK release version. 72 | 73 | ## [v1.2.0] - Admin API v2.1-1.1.1 - 2023-03-22 74 | ### Changed 75 | - Added support for version v2.1-1.1.1 of the DocuSign Admin API. 76 | - Updated the SDK release version. 77 | 78 | ## [v1.1.1] - Admin API v2.1-1.1.0 - 2022-09-20 79 | ### Changed 80 | - Added support for version v2.1-22.3.00.00 of the DocuSign ESignature API. 81 | - Updated the SDK release version. 82 | ### Fixed 83 | - Fixed missing client side validation flag. 84 | 85 | ## [v1.1.0] - Admin API v2.1-1.1.0 - 2022-04-26 86 | ### Changed 87 | - Added support for version v2.1-1.1.0 of the DocuSign Admin API. 88 | - Updated the SDK release version. 89 | 90 | ## [1.0.0] - Admin API v2.1-1.0.0 - 2021-09-16 91 | ### Changed 92 | - Added support for version v2.1-1.0.0 of the DocuSign Admin API. 93 | - Updated the SDK release version. 94 | 95 | 96 | ## [v1.0.0a0] - OrgAdmin API v2.0-1.0.2 - 2020-06-07 97 | ### Added 98 | - First Alpha version of OrgAdmin API, supports DocuSign OrgAdmin 99 | -------------------------------------------------------------------------------- /docusign_admin/models/organization_simple_id_object.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Docusign Admin API 5 | 6 | An API for an organization administrator to manage organizations, accounts and users # noqa: E501 7 | 8 | OpenAPI spec version: v2.1 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_admin.client.configuration import Configuration 20 | 21 | 22 | class OrganizationSimpleIdObject(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 | } 38 | 39 | attribute_map = { 40 | 'id': 'id' 41 | } 42 | 43 | def __init__(self, _configuration=None, **kwargs): # noqa: E501 44 | """OrganizationSimpleIdObject - a model defined in Swagger""" # noqa: E501 45 | if _configuration is None: 46 | _configuration = Configuration() 47 | self._configuration = _configuration 48 | 49 | self._id = None 50 | self.discriminator = None 51 | 52 | setattr(self, "_{}".format('id'), kwargs.get('id', None)) 53 | 54 | @property 55 | def id(self): 56 | """Gets the id of this OrganizationSimpleIdObject. # noqa: E501 57 | 58 | 59 | :return: The id of this OrganizationSimpleIdObject. # noqa: E501 60 | :rtype: str 61 | """ 62 | return self._id 63 | 64 | @id.setter 65 | def id(self, id): 66 | """Sets the id of this OrganizationSimpleIdObject. 67 | 68 | 69 | :param id: The id of this OrganizationSimpleIdObject. # noqa: E501 70 | :type: str 71 | """ 72 | 73 | self._id = 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(OrganizationSimpleIdObject, 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, OrganizationSimpleIdObject): 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, OrganizationSimpleIdObject): 120 | return True 121 | 122 | return self.to_dict() != other.to_dict() 123 | -------------------------------------------------------------------------------- /docusign_admin/models/update_users_request.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Docusign Admin API 5 | 6 | An API for an organization administrator to manage organizations, accounts and users # noqa: E501 7 | 8 | OpenAPI spec version: v2.1 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_admin.client.configuration import Configuration 20 | 21 | 22 | class UpdateUsersRequest(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 | 'users': 'list[UpdateUserRequest]' 37 | } 38 | 39 | attribute_map = { 40 | 'users': 'users' 41 | } 42 | 43 | def __init__(self, _configuration=None, **kwargs): # noqa: E501 44 | """UpdateUsersRequest - a model defined in Swagger""" # noqa: E501 45 | if _configuration is None: 46 | _configuration = Configuration() 47 | self._configuration = _configuration 48 | 49 | self._users = None 50 | self.discriminator = None 51 | 52 | setattr(self, "_{}".format('users'), kwargs.get('users', None)) 53 | 54 | @property 55 | def users(self): 56 | """Gets the users of this UpdateUsersRequest. # noqa: E501 57 | 58 | 59 | :return: The users of this UpdateUsersRequest. # noqa: E501 60 | :rtype: list[UpdateUserRequest] 61 | """ 62 | return self._users 63 | 64 | @users.setter 65 | def users(self, users): 66 | """Sets the users of this UpdateUsersRequest. 67 | 68 | 69 | :param users: The users of this UpdateUsersRequest. # noqa: E501 70 | :type: list[UpdateUserRequest] 71 | """ 72 | 73 | self._users = users 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(UpdateUsersRequest, 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, UpdateUsersRequest): 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, UpdateUsersRequest): 120 | return True 121 | 122 | return self.to_dict() != other.to_dict() 123 | -------------------------------------------------------------------------------- /docusign_admin/models/org_export_selected_domain.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Docusign Admin API 5 | 6 | An API for an organization administrator to manage organizations, accounts and users # noqa: E501 7 | 8 | OpenAPI spec version: v2.1 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_admin.client.configuration import Configuration 20 | 21 | 22 | class OrgExportSelectedDomain(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 | 'domain': 'str' 37 | } 38 | 39 | attribute_map = { 40 | 'domain': 'domain' 41 | } 42 | 43 | def __init__(self, _configuration=None, **kwargs): # noqa: E501 44 | """OrgExportSelectedDomain - a model defined in Swagger""" # noqa: E501 45 | if _configuration is None: 46 | _configuration = Configuration() 47 | self._configuration = _configuration 48 | 49 | self._domain = None 50 | self.discriminator = None 51 | 52 | setattr(self, "_{}".format('domain'), kwargs.get('domain', None)) 53 | 54 | @property 55 | def domain(self): 56 | """Gets the domain of this OrgExportSelectedDomain. # noqa: E501 57 | 58 | 59 | :return: The domain of this OrgExportSelectedDomain. # noqa: E501 60 | :rtype: str 61 | """ 62 | return self._domain 63 | 64 | @domain.setter 65 | def domain(self, domain): 66 | """Sets the domain of this OrgExportSelectedDomain. 67 | 68 | 69 | :param domain: The domain of this OrgExportSelectedDomain. # noqa: E501 70 | :type: str 71 | """ 72 | 73 | self._domain = domain 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(OrgExportSelectedDomain, 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, OrgExportSelectedDomain): 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, OrgExportSelectedDomain): 120 | return True 121 | 122 | return self.to_dict() != other.to_dict() 123 | -------------------------------------------------------------------------------- /docusign_admin/models/organization_export_domain.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Docusign Admin API 5 | 6 | An API for an organization administrator to manage organizations, accounts and users # noqa: E501 7 | 8 | OpenAPI spec version: v2.1 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_admin.client.configuration import Configuration 20 | 21 | 22 | class OrganizationExportDomain(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 | 'domain': 'str' 37 | } 38 | 39 | attribute_map = { 40 | 'domain': 'domain' 41 | } 42 | 43 | def __init__(self, _configuration=None, **kwargs): # noqa: E501 44 | """OrganizationExportDomain - a model defined in Swagger""" # noqa: E501 45 | if _configuration is None: 46 | _configuration = Configuration() 47 | self._configuration = _configuration 48 | 49 | self._domain = None 50 | self.discriminator = None 51 | 52 | setattr(self, "_{}".format('domain'), kwargs.get('domain', None)) 53 | 54 | @property 55 | def domain(self): 56 | """Gets the domain of this OrganizationExportDomain. # noqa: E501 57 | 58 | 59 | :return: The domain of this OrganizationExportDomain. # noqa: E501 60 | :rtype: str 61 | """ 62 | return self._domain 63 | 64 | @domain.setter 65 | def domain(self, domain): 66 | """Sets the domain of this OrganizationExportDomain. 67 | 68 | 69 | :param domain: The domain of this OrganizationExportDomain. # noqa: E501 70 | :type: str 71 | """ 72 | 73 | self._domain = domain 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(OrganizationExportDomain, 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, OrganizationExportDomain): 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, OrganizationExportDomain): 120 | return True 121 | 122 | return self.to_dict() != other.to_dict() 123 | -------------------------------------------------------------------------------- /docusign_admin/models/users_drilldown_response.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Docusign Admin API 5 | 6 | An API for an organization administrator to manage organizations, accounts and users # noqa: E501 7 | 8 | OpenAPI spec version: v2.1 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_admin.client.configuration import Configuration 20 | 21 | 22 | class UsersDrilldownResponse(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 | 'users': 'list[UserDrilldownResponse]' 37 | } 38 | 39 | attribute_map = { 40 | 'users': 'users' 41 | } 42 | 43 | def __init__(self, _configuration=None, **kwargs): # noqa: E501 44 | """UsersDrilldownResponse - a model defined in Swagger""" # noqa: E501 45 | if _configuration is None: 46 | _configuration = Configuration() 47 | self._configuration = _configuration 48 | 49 | self._users = None 50 | self.discriminator = None 51 | 52 | setattr(self, "_{}".format('users'), kwargs.get('users', None)) 53 | 54 | @property 55 | def users(self): 56 | """Gets the users of this UsersDrilldownResponse. # noqa: E501 57 | 58 | 59 | :return: The users of this UsersDrilldownResponse. # noqa: E501 60 | :rtype: list[UserDrilldownResponse] 61 | """ 62 | return self._users 63 | 64 | @users.setter 65 | def users(self, users): 66 | """Sets the users of this UsersDrilldownResponse. 67 | 68 | 69 | :param users: The users of this UsersDrilldownResponse. # noqa: E501 70 | :type: list[UserDrilldownResponse] 71 | """ 72 | 73 | self._users = users 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(UsersDrilldownResponse, 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, UsersDrilldownResponse): 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, UsersDrilldownResponse): 120 | return True 121 | 122 | return self.to_dict() != other.to_dict() 123 | -------------------------------------------------------------------------------- /docusign_admin/models/update_users_email_request.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Docusign Admin API 5 | 6 | An API for an organization administrator to manage organizations, accounts and users # noqa: E501 7 | 8 | OpenAPI spec version: v2.1 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_admin.client.configuration import Configuration 20 | 21 | 22 | class UpdateUsersEmailRequest(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 | 'users': 'list[UpdateUserEmailRequest]' 37 | } 38 | 39 | attribute_map = { 40 | 'users': 'users' 41 | } 42 | 43 | def __init__(self, _configuration=None, **kwargs): # noqa: E501 44 | """UpdateUsersEmailRequest - a model defined in Swagger""" # noqa: E501 45 | if _configuration is None: 46 | _configuration = Configuration() 47 | self._configuration = _configuration 48 | 49 | self._users = None 50 | self.discriminator = None 51 | 52 | setattr(self, "_{}".format('users'), kwargs.get('users', None)) 53 | 54 | @property 55 | def users(self): 56 | """Gets the users of this UpdateUsersEmailRequest. # noqa: E501 57 | 58 | 59 | :return: The users of this UpdateUsersEmailRequest. # noqa: E501 60 | :rtype: list[UpdateUserEmailRequest] 61 | """ 62 | return self._users 63 | 64 | @users.setter 65 | def users(self, users): 66 | """Sets the users of this UpdateUsersEmailRequest. 67 | 68 | 69 | :param users: The users of this UpdateUsersEmailRequest. # noqa: E501 70 | :type: list[UpdateUserEmailRequest] 71 | """ 72 | 73 | self._users = users 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(UpdateUsersEmailRequest, 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, UpdateUsersEmailRequest): 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, UpdateUsersEmailRequest): 120 | return True 121 | 122 | return self.to_dict() != other.to_dict() 123 | -------------------------------------------------------------------------------- /docusign_admin/models/org_export_selected_account.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Docusign Admin API 5 | 6 | An API for an organization administrator to manage organizations, accounts and users # noqa: E501 7 | 8 | OpenAPI spec version: v2.1 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_admin.client.configuration import Configuration 20 | 21 | 22 | class OrgExportSelectedAccount(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 | 'account_id': 'str' 37 | } 38 | 39 | attribute_map = { 40 | 'account_id': 'account_id' 41 | } 42 | 43 | def __init__(self, _configuration=None, **kwargs): # noqa: E501 44 | """OrgExportSelectedAccount - a model defined in Swagger""" # noqa: E501 45 | if _configuration is None: 46 | _configuration = Configuration() 47 | self._configuration = _configuration 48 | 49 | self._account_id = None 50 | self.discriminator = None 51 | 52 | setattr(self, "_{}".format('account_id'), kwargs.get('account_id', None)) 53 | 54 | @property 55 | def account_id(self): 56 | """Gets the account_id of this OrgExportSelectedAccount. # noqa: E501 57 | 58 | 59 | :return: The account_id of this OrgExportSelectedAccount. # noqa: E501 60 | :rtype: str 61 | """ 62 | return self._account_id 63 | 64 | @account_id.setter 65 | def account_id(self, account_id): 66 | """Sets the account_id of this OrgExportSelectedAccount. 67 | 68 | 69 | :param account_id: The account_id of this OrgExportSelectedAccount. # noqa: E501 70 | :type: str 71 | """ 72 | 73 | self._account_id = account_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(OrgExportSelectedAccount, 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, OrgExportSelectedAccount): 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, OrgExportSelectedAccount): 120 | return True 121 | 122 | return self.to_dict() != other.to_dict() 123 | -------------------------------------------------------------------------------- /docusign_admin/models/organization_export_account.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Docusign Admin API 5 | 6 | An API for an organization administrator to manage organizations, accounts and users # noqa: E501 7 | 8 | OpenAPI spec version: v2.1 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_admin.client.configuration import Configuration 20 | 21 | 22 | class OrganizationExportAccount(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 | 'account_id': 'str' 37 | } 38 | 39 | attribute_map = { 40 | 'account_id': 'account_id' 41 | } 42 | 43 | def __init__(self, _configuration=None, **kwargs): # noqa: E501 44 | """OrganizationExportAccount - a model defined in Swagger""" # noqa: E501 45 | if _configuration is None: 46 | _configuration = Configuration() 47 | self._configuration = _configuration 48 | 49 | self._account_id = None 50 | self.discriminator = None 51 | 52 | setattr(self, "_{}".format('account_id'), kwargs.get('account_id', None)) 53 | 54 | @property 55 | def account_id(self): 56 | """Gets the account_id of this OrganizationExportAccount. # noqa: E501 57 | 58 | 59 | :return: The account_id of this OrganizationExportAccount. # noqa: E501 60 | :rtype: str 61 | """ 62 | return self._account_id 63 | 64 | @account_id.setter 65 | def account_id(self, account_id): 66 | """Sets the account_id of this OrganizationExportAccount. 67 | 68 | 69 | :param account_id: The account_id of this OrganizationExportAccount. # noqa: E501 70 | :type: str 71 | """ 72 | 73 | self._account_id = account_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(OrganizationExportAccount, 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, OrganizationExportAccount): 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, OrganizationExportAccount): 120 | return True 121 | 122 | return self.to_dict() != other.to_dict() 123 | -------------------------------------------------------------------------------- /docusign_admin/models/delete_membership_request.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Docusign Admin API 5 | 6 | An API for an organization administrator to manage organizations, accounts and users # noqa: E501 7 | 8 | OpenAPI spec version: v2.1 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_admin.client.configuration import Configuration 20 | 21 | 22 | class DeleteMembershipRequest(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 | } 38 | 39 | attribute_map = { 40 | 'id': 'id' 41 | } 42 | 43 | def __init__(self, _configuration=None, **kwargs): # noqa: E501 44 | """DeleteMembershipRequest - a model defined in Swagger""" # noqa: E501 45 | if _configuration is None: 46 | _configuration = Configuration() 47 | self._configuration = _configuration 48 | 49 | self._id = None 50 | self.discriminator = None 51 | 52 | setattr(self, "_{}".format('id'), kwargs.get('id', None)) 53 | 54 | @property 55 | def id(self): 56 | """Gets the id of this DeleteMembershipRequest. # noqa: E501 57 | 58 | 59 | :return: The id of this DeleteMembershipRequest. # noqa: E501 60 | :rtype: str 61 | """ 62 | return self._id 63 | 64 | @id.setter 65 | def id(self, id): 66 | """Sets the id of this DeleteMembershipRequest. 67 | 68 | 69 | :param id: The id of this DeleteMembershipRequest. # noqa: E501 70 | :type: str 71 | """ 72 | if self._configuration.client_side_validation and id is None: 73 | raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 74 | 75 | self._id = 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(DeleteMembershipRequest, 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, DeleteMembershipRequest): 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, DeleteMembershipRequest): 122 | return True 123 | 124 | return self.to_dict() != other.to_dict() 125 | -------------------------------------------------------------------------------- /docusign_admin/models/org_report_list_response.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Docusign Admin API 5 | 6 | An API for an organization administrator to manage organizations, accounts and users # noqa: E501 7 | 8 | OpenAPI spec version: v2.1 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_admin.client.configuration import Configuration 20 | 21 | 22 | class OrgReportListResponse(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 | 'reports': 'list[OrgReportListResponseOrgReport]' 37 | } 38 | 39 | attribute_map = { 40 | 'reports': 'reports' 41 | } 42 | 43 | def __init__(self, _configuration=None, **kwargs): # noqa: E501 44 | """OrgReportListResponse - a model defined in Swagger""" # noqa: E501 45 | if _configuration is None: 46 | _configuration = Configuration() 47 | self._configuration = _configuration 48 | 49 | self._reports = None 50 | self.discriminator = None 51 | 52 | setattr(self, "_{}".format('reports'), kwargs.get('reports', None)) 53 | 54 | @property 55 | def reports(self): 56 | """Gets the reports of this OrgReportListResponse. # noqa: E501 57 | 58 | 59 | :return: The reports of this OrgReportListResponse. # noqa: E501 60 | :rtype: list[OrgReportListResponseOrgReport] 61 | """ 62 | return self._reports 63 | 64 | @reports.setter 65 | def reports(self, reports): 66 | """Sets the reports of this OrgReportListResponse. 67 | 68 | 69 | :param reports: The reports of this OrgReportListResponse. # noqa: E501 70 | :type: list[OrgReportListResponseOrgReport] 71 | """ 72 | 73 | self._reports = reports 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(OrgReportListResponse, 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, OrgReportListResponse): 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, OrgReportListResponse): 120 | return True 121 | 122 | return self.to_dict() != other.to_dict() 123 | -------------------------------------------------------------------------------- /docusign_admin/models/permissions_response.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Docusign Admin API 5 | 6 | An API for an organization administrator to manage organizations, accounts and users # noqa: E501 7 | 8 | OpenAPI spec version: v2.1 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_admin.client.configuration import Configuration 20 | 21 | 22 | class PermissionsResponse(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 | 'permissions': 'list[PermissionProfileResponse]' 37 | } 38 | 39 | attribute_map = { 40 | 'permissions': 'permissions' 41 | } 42 | 43 | def __init__(self, _configuration=None, **kwargs): # noqa: E501 44 | """PermissionsResponse - a model defined in Swagger""" # noqa: E501 45 | if _configuration is None: 46 | _configuration = Configuration() 47 | self._configuration = _configuration 48 | 49 | self._permissions = None 50 | self.discriminator = None 51 | 52 | setattr(self, "_{}".format('permissions'), kwargs.get('permissions', None)) 53 | 54 | @property 55 | def permissions(self): 56 | """Gets the permissions of this PermissionsResponse. # noqa: E501 57 | 58 | 59 | :return: The permissions of this PermissionsResponse. # noqa: E501 60 | :rtype: list[PermissionProfileResponse] 61 | """ 62 | return self._permissions 63 | 64 | @permissions.setter 65 | def permissions(self, permissions): 66 | """Sets the permissions of this PermissionsResponse. 67 | 68 | 69 | :param permissions: The permissions of this PermissionsResponse. # noqa: E501 70 | :type: list[PermissionProfileResponse] 71 | """ 72 | 73 | self._permissions = permissions 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(PermissionsResponse, 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, PermissionsResponse): 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, PermissionsResponse): 120 | return True 121 | 122 | return self.to_dict() != other.to_dict() 123 | -------------------------------------------------------------------------------- /docusign_admin/models/membership_data_redaction_request.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Docusign Admin API 5 | 6 | An API for an organization administrator to manage organizations, accounts and users # noqa: E501 7 | 8 | OpenAPI spec version: v2.1 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_admin.client.configuration import Configuration 20 | 21 | 22 | class MembershipDataRedactionRequest(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 | 'account_id': 'str' 37 | } 38 | 39 | attribute_map = { 40 | 'account_id': 'account_id' 41 | } 42 | 43 | def __init__(self, _configuration=None, **kwargs): # noqa: E501 44 | """MembershipDataRedactionRequest - a model defined in Swagger""" # noqa: E501 45 | if _configuration is None: 46 | _configuration = Configuration() 47 | self._configuration = _configuration 48 | 49 | self._account_id = None 50 | self.discriminator = None 51 | 52 | setattr(self, "_{}".format('account_id'), kwargs.get('account_id', None)) 53 | 54 | @property 55 | def account_id(self): 56 | """Gets the account_id of this MembershipDataRedactionRequest. # noqa: E501 57 | 58 | 59 | :return: The account_id of this MembershipDataRedactionRequest. # noqa: E501 60 | :rtype: str 61 | """ 62 | return self._account_id 63 | 64 | @account_id.setter 65 | def account_id(self, account_id): 66 | """Sets the account_id of this MembershipDataRedactionRequest. 67 | 68 | 69 | :param account_id: The account_id of this MembershipDataRedactionRequest. # noqa: E501 70 | :type: str 71 | """ 72 | 73 | self._account_id = account_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(MembershipDataRedactionRequest, 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, MembershipDataRedactionRequest): 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, MembershipDataRedactionRequest): 120 | return True 121 | 122 | return self.to_dict() != other.to_dict() 123 | -------------------------------------------------------------------------------- /docusign_admin/models/organization_exports_response.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Docusign Admin API 5 | 6 | An API for an organization administrator to manage organizations, accounts and users # noqa: E501 7 | 8 | OpenAPI spec version: v2.1 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_admin.client.configuration import Configuration 20 | 21 | 22 | class OrganizationExportsResponse(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 | 'exports': 'list[OrganizationExportResponse]' 37 | } 38 | 39 | attribute_map = { 40 | 'exports': 'exports' 41 | } 42 | 43 | def __init__(self, _configuration=None, **kwargs): # noqa: E501 44 | """OrganizationExportsResponse - a model defined in Swagger""" # noqa: E501 45 | if _configuration is None: 46 | _configuration = Configuration() 47 | self._configuration = _configuration 48 | 49 | self._exports = None 50 | self.discriminator = None 51 | 52 | setattr(self, "_{}".format('exports'), kwargs.get('exports', None)) 53 | 54 | @property 55 | def exports(self): 56 | """Gets the exports of this OrganizationExportsResponse. # noqa: E501 57 | 58 | 59 | :return: The exports of this OrganizationExportsResponse. # noqa: E501 60 | :rtype: list[OrganizationExportResponse] 61 | """ 62 | return self._exports 63 | 64 | @exports.setter 65 | def exports(self, exports): 66 | """Sets the exports of this OrganizationExportsResponse. 67 | 68 | 69 | :param exports: The exports of this OrganizationExportsResponse. # noqa: E501 70 | :type: list[OrganizationExportResponse] 71 | """ 72 | 73 | self._exports = exports 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(OrganizationExportsResponse, 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, OrganizationExportsResponse): 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, OrganizationExportsResponse): 120 | return True 121 | 122 | return self.to_dict() != other.to_dict() 123 | -------------------------------------------------------------------------------- /docusign_admin/models/organization_imports_response.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Docusign Admin API 5 | 6 | An API for an organization administrator to manage organizations, accounts and users # noqa: E501 7 | 8 | OpenAPI spec version: v2.1 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_admin.client.configuration import Configuration 20 | 21 | 22 | class OrganizationImportsResponse(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 | 'imports': 'list[OrganizationImportResponse]' 37 | } 38 | 39 | attribute_map = { 40 | 'imports': 'imports' 41 | } 42 | 43 | def __init__(self, _configuration=None, **kwargs): # noqa: E501 44 | """OrganizationImportsResponse - a model defined in Swagger""" # noqa: E501 45 | if _configuration is None: 46 | _configuration = Configuration() 47 | self._configuration = _configuration 48 | 49 | self._imports = None 50 | self.discriminator = None 51 | 52 | setattr(self, "_{}".format('imports'), kwargs.get('imports', None)) 53 | 54 | @property 55 | def imports(self): 56 | """Gets the imports of this OrganizationImportsResponse. # noqa: E501 57 | 58 | 59 | :return: The imports of this OrganizationImportsResponse. # noqa: E501 60 | :rtype: list[OrganizationImportResponse] 61 | """ 62 | return self._imports 63 | 64 | @imports.setter 65 | def imports(self, imports): 66 | """Sets the imports of this OrganizationImportsResponse. 67 | 68 | 69 | :param imports: The imports of this OrganizationImportsResponse. # noqa: E501 70 | :type: list[OrganizationImportResponse] 71 | """ 72 | 73 | self._imports = imports 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(OrganizationImportsResponse, 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, OrganizationImportsResponse): 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, OrganizationImportsResponse): 120 | return True 121 | 122 | return self.to_dict() != other.to_dict() 123 | -------------------------------------------------------------------------------- /docusign_admin/models/domains_response.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Docusign Admin API 5 | 6 | An API for an organization administrator to manage organizations, accounts and users # noqa: E501 7 | 8 | OpenAPI spec version: v2.1 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_admin.client.configuration import Configuration 20 | 21 | 22 | class DomainsResponse(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 | 'reserved_domains': 'list[DomainResponse]' 37 | } 38 | 39 | attribute_map = { 40 | 'reserved_domains': 'reserved_domains' 41 | } 42 | 43 | def __init__(self, _configuration=None, **kwargs): # noqa: E501 44 | """DomainsResponse - a model defined in Swagger""" # noqa: E501 45 | if _configuration is None: 46 | _configuration = Configuration() 47 | self._configuration = _configuration 48 | 49 | self._reserved_domains = None 50 | self.discriminator = None 51 | 52 | setattr(self, "_{}".format('reserved_domains'), kwargs.get('reserved_domains', None)) 53 | 54 | @property 55 | def reserved_domains(self): 56 | """Gets the reserved_domains of this DomainsResponse. # noqa: E501 57 | 58 | 59 | :return: The reserved_domains of this DomainsResponse. # noqa: E501 60 | :rtype: list[DomainResponse] 61 | """ 62 | return self._reserved_domains 63 | 64 | @reserved_domains.setter 65 | def reserved_domains(self, reserved_domains): 66 | """Sets the reserved_domains of this DomainsResponse. 67 | 68 | 69 | :param reserved_domains: The reserved_domains of this DomainsResponse. # noqa: E501 70 | :type: list[DomainResponse] 71 | """ 72 | 73 | self._reserved_domains = reserved_domains 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(DomainsResponse, 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, DomainsResponse): 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, DomainsResponse): 120 | return True 121 | 122 | return self.to_dict() != other.to_dict() 123 | -------------------------------------------------------------------------------- /docusign_admin/models/organization_accounts_request.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Docusign Admin API 5 | 6 | An API for an organization administrator to manage organizations, accounts and users # noqa: E501 7 | 8 | OpenAPI spec version: v2.1 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_admin.client.configuration import Configuration 20 | 21 | 22 | class OrganizationAccountsRequest(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 | 'accounts': 'list[OrganizationAccountRequest]' 37 | } 38 | 39 | attribute_map = { 40 | 'accounts': 'accounts' 41 | } 42 | 43 | def __init__(self, _configuration=None, **kwargs): # noqa: E501 44 | """OrganizationAccountsRequest - a model defined in Swagger""" # noqa: E501 45 | if _configuration is None: 46 | _configuration = Configuration() 47 | self._configuration = _configuration 48 | 49 | self._accounts = None 50 | self.discriminator = None 51 | 52 | setattr(self, "_{}".format('accounts'), kwargs.get('accounts', None)) 53 | 54 | @property 55 | def accounts(self): 56 | """Gets the accounts of this OrganizationAccountsRequest. # noqa: E501 57 | 58 | 59 | :return: The accounts of this OrganizationAccountsRequest. # noqa: E501 60 | :rtype: list[OrganizationAccountRequest] 61 | """ 62 | return self._accounts 63 | 64 | @accounts.setter 65 | def accounts(self, accounts): 66 | """Sets the accounts of this OrganizationAccountsRequest. 67 | 68 | 69 | :param accounts: The accounts of this OrganizationAccountsRequest. # noqa: E501 70 | :type: list[OrganizationAccountRequest] 71 | """ 72 | 73 | self._accounts = accounts 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(OrganizationAccountsRequest, 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, OrganizationAccountsRequest): 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, OrganizationAccountsRequest): 120 | return True 121 | 122 | return self.to_dict() != other.to_dict() 123 | -------------------------------------------------------------------------------- /docusign_admin/models/organizations_response.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Docusign Admin API 5 | 6 | An API for an organization administrator to manage organizations, accounts and users # noqa: E501 7 | 8 | OpenAPI spec version: v2.1 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_admin.client.configuration import Configuration 20 | 21 | 22 | class OrganizationsResponse(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 | 'organizations': 'list[OrganizationResponse]' 37 | } 38 | 39 | attribute_map = { 40 | 'organizations': 'organizations' 41 | } 42 | 43 | def __init__(self, _configuration=None, **kwargs): # noqa: E501 44 | """OrganizationsResponse - a model defined in Swagger""" # noqa: E501 45 | if _configuration is None: 46 | _configuration = Configuration() 47 | self._configuration = _configuration 48 | 49 | self._organizations = None 50 | self.discriminator = None 51 | 52 | setattr(self, "_{}".format('organizations'), kwargs.get('organizations', None)) 53 | 54 | @property 55 | def organizations(self): 56 | """Gets the organizations of this OrganizationsResponse. # noqa: E501 57 | 58 | 59 | :return: The organizations of this OrganizationsResponse. # noqa: E501 60 | :rtype: list[OrganizationResponse] 61 | """ 62 | return self._organizations 63 | 64 | @organizations.setter 65 | def organizations(self, organizations): 66 | """Sets the organizations of this OrganizationsResponse. 67 | 68 | 69 | :param organizations: The organizations of this OrganizationsResponse. # noqa: E501 70 | :type: list[OrganizationResponse] 71 | """ 72 | 73 | self._organizations = organizations 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(OrganizationsResponse, 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, OrganizationsResponse): 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, OrganizationsResponse): 120 | return True 121 | 122 | return self.to_dict() != other.to_dict() 123 | -------------------------------------------------------------------------------- /docusign_admin/models/ds_group_request.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Docusign Admin API 5 | 6 | An API for an organization administrator to manage organizations, accounts and users # noqa: E501 7 | 8 | OpenAPI spec version: v2.1 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_admin.client.configuration import Configuration 20 | 21 | 22 | class DSGroupRequest(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 | 'ds_group_id': 'str' 37 | } 38 | 39 | attribute_map = { 40 | 'ds_group_id': 'ds_group_id' 41 | } 42 | 43 | def __init__(self, _configuration=None, **kwargs): # noqa: E501 44 | """DSGroupRequest - a model defined in Swagger""" # noqa: E501 45 | if _configuration is None: 46 | _configuration = Configuration() 47 | self._configuration = _configuration 48 | 49 | self._ds_group_id = None 50 | self.discriminator = None 51 | 52 | setattr(self, "_{}".format('ds_group_id'), kwargs.get('ds_group_id', None)) 53 | 54 | @property 55 | def ds_group_id(self): 56 | """Gets the ds_group_id of this DSGroupRequest. # noqa: E501 57 | 58 | 59 | :return: The ds_group_id of this DSGroupRequest. # noqa: E501 60 | :rtype: str 61 | """ 62 | return self._ds_group_id 63 | 64 | @ds_group_id.setter 65 | def ds_group_id(self, ds_group_id): 66 | """Sets the ds_group_id of this DSGroupRequest. 67 | 68 | 69 | :param ds_group_id: The ds_group_id of this DSGroupRequest. # noqa: E501 70 | :type: str 71 | """ 72 | if self._configuration.client_side_validation and ds_group_id is None: 73 | raise ValueError("Invalid value for `ds_group_id`, must not be `None`") # noqa: E501 74 | 75 | self._ds_group_id = ds_group_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(DSGroupRequest, 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, DSGroupRequest): 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, DSGroupRequest): 122 | return True 123 | 124 | return self.to_dict() != other.to_dict() 125 | -------------------------------------------------------------------------------- /docusign_admin/models/individual_membership_data_redaction_request.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Docusign Admin API 5 | 6 | An API for an organization administrator to manage organizations, accounts and users # noqa: E501 7 | 8 | OpenAPI spec version: v2.1 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_admin.client.configuration import Configuration 20 | 21 | 22 | class IndividualMembershipDataRedactionRequest(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': 'str' 37 | } 38 | 39 | attribute_map = { 40 | 'user_id': 'user_id' 41 | } 42 | 43 | def __init__(self, _configuration=None, **kwargs): # noqa: E501 44 | """IndividualMembershipDataRedactionRequest - 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 IndividualMembershipDataRedactionRequest. # noqa: E501 57 | 58 | 59 | :return: The user_id of this IndividualMembershipDataRedactionRequest. # noqa: E501 60 | :rtype: str 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 IndividualMembershipDataRedactionRequest. 67 | 68 | 69 | :param user_id: The user_id of this IndividualMembershipDataRedactionRequest. # noqa: E501 70 | :type: str 71 | """ 72 | 73 | self._user_id = user_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(IndividualMembershipDataRedactionRequest, 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, IndividualMembershipDataRedactionRequest): 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, IndividualMembershipDataRedactionRequest): 120 | return True 121 | 122 | return self.to_dict() != other.to_dict() 123 | -------------------------------------------------------------------------------- /docusign_admin/models/ds_group_users_add_request.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Docusign Admin API 5 | 6 | An API for an organization administrator to manage organizations, accounts and users # noqa: E501 7 | 8 | OpenAPI spec version: v2.1 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_admin.client.configuration import Configuration 20 | 21 | 22 | class DSGroupUsersAddRequest(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_ids': 'list[str]' 37 | } 38 | 39 | attribute_map = { 40 | 'user_ids': 'user_ids' 41 | } 42 | 43 | def __init__(self, _configuration=None, **kwargs): # noqa: E501 44 | """DSGroupUsersAddRequest - a model defined in Swagger""" # noqa: E501 45 | if _configuration is None: 46 | _configuration = Configuration() 47 | self._configuration = _configuration 48 | 49 | self._user_ids = None 50 | self.discriminator = None 51 | 52 | setattr(self, "_{}".format('user_ids'), kwargs.get('user_ids', None)) 53 | 54 | @property 55 | def user_ids(self): 56 | """Gets the user_ids of this DSGroupUsersAddRequest. # noqa: E501 57 | 58 | 59 | :return: The user_ids of this DSGroupUsersAddRequest. # noqa: E501 60 | :rtype: list[str] 61 | """ 62 | return self._user_ids 63 | 64 | @user_ids.setter 65 | def user_ids(self, user_ids): 66 | """Sets the user_ids of this DSGroupUsersAddRequest. 67 | 68 | 69 | :param user_ids: The user_ids of this DSGroupUsersAddRequest. # noqa: E501 70 | :type: list[str] 71 | """ 72 | if self._configuration.client_side_validation and user_ids is None: 73 | raise ValueError("Invalid value for `user_ids`, must not be `None`") # noqa: E501 74 | 75 | self._user_ids = user_ids 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(DSGroupUsersAddRequest, 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, DSGroupUsersAddRequest): 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, DSGroupUsersAddRequest): 122 | return True 123 | 124 | return self.to_dict() != other.to_dict() 125 | -------------------------------------------------------------------------------- /docusign_admin/models/force_activate_membership_request.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Docusign Admin API 5 | 6 | An API for an organization administrator to manage organizations, accounts and users # noqa: E501 7 | 8 | OpenAPI spec version: v2.1 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_admin.client.configuration import Configuration 20 | 21 | 22 | class ForceActivateMembershipRequest(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 | 'site_id': 'int' 37 | } 38 | 39 | attribute_map = { 40 | 'site_id': 'site_id' 41 | } 42 | 43 | def __init__(self, _configuration=None, **kwargs): # noqa: E501 44 | """ForceActivateMembershipRequest - a model defined in Swagger""" # noqa: E501 45 | if _configuration is None: 46 | _configuration = Configuration() 47 | self._configuration = _configuration 48 | 49 | self._site_id = None 50 | self.discriminator = None 51 | 52 | setattr(self, "_{}".format('site_id'), kwargs.get('site_id', None)) 53 | 54 | @property 55 | def site_id(self): 56 | """Gets the site_id of this ForceActivateMembershipRequest. # noqa: E501 57 | 58 | 59 | :return: The site_id of this ForceActivateMembershipRequest. # noqa: E501 60 | :rtype: int 61 | """ 62 | return self._site_id 63 | 64 | @site_id.setter 65 | def site_id(self, site_id): 66 | """Sets the site_id of this ForceActivateMembershipRequest. 67 | 68 | 69 | :param site_id: The site_id of this ForceActivateMembershipRequest. # noqa: E501 70 | :type: int 71 | """ 72 | if self._configuration.client_side_validation and site_id is None: 73 | raise ValueError("Invalid value for `site_id`, must not be `None`") # noqa: E501 74 | 75 | self._site_id = site_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(ForceActivateMembershipRequest, 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, ForceActivateMembershipRequest): 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, ForceActivateMembershipRequest): 122 | return True 123 | 124 | return self.to_dict() != other.to_dict() 125 | -------------------------------------------------------------------------------- /docusign_admin/models/org_report_create_response.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Docusign Admin API 5 | 6 | An API for an organization administrator to manage organizations, accounts and users # noqa: E501 7 | 8 | OpenAPI spec version: v2.1 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_admin.client.configuration import Configuration 20 | 21 | 22 | class OrgReportCreateResponse(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 | 'report_correlation_id': 'str' 37 | } 38 | 39 | attribute_map = { 40 | 'report_correlation_id': 'report_correlation_id' 41 | } 42 | 43 | def __init__(self, _configuration=None, **kwargs): # noqa: E501 44 | """OrgReportCreateResponse - a model defined in Swagger""" # noqa: E501 45 | if _configuration is None: 46 | _configuration = Configuration() 47 | self._configuration = _configuration 48 | 49 | self._report_correlation_id = None 50 | self.discriminator = None 51 | 52 | setattr(self, "_{}".format('report_correlation_id'), kwargs.get('report_correlation_id', None)) 53 | 54 | @property 55 | def report_correlation_id(self): 56 | """Gets the report_correlation_id of this OrgReportCreateResponse. # noqa: E501 57 | 58 | 59 | :return: The report_correlation_id of this OrgReportCreateResponse. # noqa: E501 60 | :rtype: str 61 | """ 62 | return self._report_correlation_id 63 | 64 | @report_correlation_id.setter 65 | def report_correlation_id(self, report_correlation_id): 66 | """Sets the report_correlation_id of this OrgReportCreateResponse. 67 | 68 | 69 | :param report_correlation_id: The report_correlation_id of this OrgReportCreateResponse. # noqa: E501 70 | :type: str 71 | """ 72 | 73 | self._report_correlation_id = report_correlation_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(OrgReportCreateResponse, 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, OrgReportCreateResponse): 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, OrgReportCreateResponse): 120 | return True 121 | 122 | return self.to_dict() != other.to_dict() 123 | -------------------------------------------------------------------------------- /docusign_admin/models/organization_account_request.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Docusign Admin API 5 | 6 | An API for an organization administrator to manage organizations, accounts and users # noqa: E501 7 | 8 | OpenAPI spec version: v2.1 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_admin.client.configuration import Configuration 20 | 21 | 22 | class OrganizationAccountRequest(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 | 'account_id': 'str' 37 | } 38 | 39 | attribute_map = { 40 | 'account_id': 'account_id' 41 | } 42 | 43 | def __init__(self, _configuration=None, **kwargs): # noqa: E501 44 | """OrganizationAccountRequest - a model defined in Swagger""" # noqa: E501 45 | if _configuration is None: 46 | _configuration = Configuration() 47 | self._configuration = _configuration 48 | 49 | self._account_id = None 50 | self.discriminator = None 51 | 52 | setattr(self, "_{}".format('account_id'), kwargs.get('account_id', None)) 53 | 54 | @property 55 | def account_id(self): 56 | """Gets the account_id of this OrganizationAccountRequest. # noqa: E501 57 | 58 | 59 | :return: The account_id of this OrganizationAccountRequest. # noqa: E501 60 | :rtype: str 61 | """ 62 | return self._account_id 63 | 64 | @account_id.setter 65 | def account_id(self, account_id): 66 | """Sets the account_id of this OrganizationAccountRequest. 67 | 68 | 69 | :param account_id: The account_id of this OrganizationAccountRequest. # noqa: E501 70 | :type: str 71 | """ 72 | if self._configuration.client_side_validation and account_id is None: 73 | raise ValueError("Invalid value for `account_id`, must not be `None`") # noqa: E501 74 | 75 | self._account_id = account_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(OrganizationAccountRequest, 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, OrganizationAccountRequest): 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, OrganizationAccountRequest): 122 | return True 123 | 124 | return self.to_dict() != other.to_dict() 125 | -------------------------------------------------------------------------------- /docusign_admin/models/delete_memberships_request.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Docusign Admin API 5 | 6 | An API for an organization administrator to manage organizations, accounts and users # noqa: E501 7 | 8 | OpenAPI spec version: v2.1 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_admin.client.configuration import Configuration 20 | 21 | 22 | class DeleteMembershipsRequest(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 | 'accounts': 'list[DeleteMembershipRequest]' 37 | } 38 | 39 | attribute_map = { 40 | 'accounts': 'accounts' 41 | } 42 | 43 | def __init__(self, _configuration=None, **kwargs): # noqa: E501 44 | """DeleteMembershipsRequest - a model defined in Swagger""" # noqa: E501 45 | if _configuration is None: 46 | _configuration = Configuration() 47 | self._configuration = _configuration 48 | 49 | self._accounts = None 50 | self.discriminator = None 51 | 52 | setattr(self, "_{}".format('accounts'), kwargs.get('accounts', None)) 53 | 54 | @property 55 | def accounts(self): 56 | """Gets the accounts of this DeleteMembershipsRequest. # noqa: E501 57 | 58 | 59 | :return: The accounts of this DeleteMembershipsRequest. # noqa: E501 60 | :rtype: list[DeleteMembershipRequest] 61 | """ 62 | return self._accounts 63 | 64 | @accounts.setter 65 | def accounts(self, accounts): 66 | """Sets the accounts of this DeleteMembershipsRequest. 67 | 68 | 69 | :param accounts: The accounts of this DeleteMembershipsRequest. # noqa: E501 70 | :type: list[DeleteMembershipRequest] 71 | """ 72 | if self._configuration.client_side_validation and accounts is None: 73 | raise ValueError("Invalid value for `accounts`, must not be `None`") # noqa: E501 74 | 75 | self._accounts = accounts 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(DeleteMembershipsRequest, 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, DeleteMembershipsRequest): 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, DeleteMembershipsRequest): 122 | return True 123 | 124 | return self.to_dict() != other.to_dict() 125 | -------------------------------------------------------------------------------- /docusign_admin/models/identity_providers_response.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Docusign Admin API 5 | 6 | An API for an organization administrator to manage organizations, accounts and users # noqa: E501 7 | 8 | OpenAPI spec version: v2.1 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_admin.client.configuration import Configuration 20 | 21 | 22 | class IdentityProvidersResponse(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 | 'identity_providers': 'list[IdentityProviderResponse]' 37 | } 38 | 39 | attribute_map = { 40 | 'identity_providers': 'identity_providers' 41 | } 42 | 43 | def __init__(self, _configuration=None, **kwargs): # noqa: E501 44 | """IdentityProvidersResponse - a model defined in Swagger""" # noqa: E501 45 | if _configuration is None: 46 | _configuration = Configuration() 47 | self._configuration = _configuration 48 | 49 | self._identity_providers = None 50 | self.discriminator = None 51 | 52 | setattr(self, "_{}".format('identity_providers'), kwargs.get('identity_providers', None)) 53 | 54 | @property 55 | def identity_providers(self): 56 | """Gets the identity_providers of this IdentityProvidersResponse. # noqa: E501 57 | 58 | 59 | :return: The identity_providers of this IdentityProvidersResponse. # noqa: E501 60 | :rtype: list[IdentityProviderResponse] 61 | """ 62 | return self._identity_providers 63 | 64 | @identity_providers.setter 65 | def identity_providers(self, identity_providers): 66 | """Sets the identity_providers of this IdentityProvidersResponse. 67 | 68 | 69 | :param identity_providers: The identity_providers of this IdentityProvidersResponse. # noqa: E501 70 | :type: list[IdentityProviderResponse] 71 | """ 72 | 73 | self._identity_providers = identity_providers 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(IdentityProvidersResponse, 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, IdentityProvidersResponse): 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, IdentityProvidersResponse): 120 | return True 121 | 122 | return self.to_dict() != other.to_dict() 123 | -------------------------------------------------------------------------------- /docusign_admin/models/delete_user_identity_request.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Docusign Admin API 5 | 6 | An API for an organization administrator to manage organizations, accounts and users # noqa: E501 7 | 8 | OpenAPI spec version: v2.1 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_admin.client.configuration import Configuration 20 | 21 | 22 | class DeleteUserIdentityRequest(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 | 'identities': 'list[UserIdentityRequest]' 37 | } 38 | 39 | attribute_map = { 40 | 'identities': 'identities' 41 | } 42 | 43 | def __init__(self, _configuration=None, **kwargs): # noqa: E501 44 | """DeleteUserIdentityRequest - a model defined in Swagger""" # noqa: E501 45 | if _configuration is None: 46 | _configuration = Configuration() 47 | self._configuration = _configuration 48 | 49 | self._identities = None 50 | self.discriminator = None 51 | 52 | setattr(self, "_{}".format('identities'), kwargs.get('identities', None)) 53 | 54 | @property 55 | def identities(self): 56 | """Gets the identities of this DeleteUserIdentityRequest. # noqa: E501 57 | 58 | 59 | :return: The identities of this DeleteUserIdentityRequest. # noqa: E501 60 | :rtype: list[UserIdentityRequest] 61 | """ 62 | return self._identities 63 | 64 | @identities.setter 65 | def identities(self, identities): 66 | """Sets the identities of this DeleteUserIdentityRequest. 67 | 68 | 69 | :param identities: The identities of this DeleteUserIdentityRequest. # noqa: E501 70 | :type: list[UserIdentityRequest] 71 | """ 72 | if self._configuration.client_side_validation and identities is None: 73 | raise ValueError("Invalid value for `identities`, must not be `None`") # noqa: E501 74 | 75 | self._identities = identities 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(DeleteUserIdentityRequest, 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, DeleteUserIdentityRequest): 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, DeleteUserIdentityRequest): 122 | return True 123 | 124 | return self.to_dict() != other.to_dict() 125 | -------------------------------------------------------------------------------- /docusign_admin/models/asset_group_account_clones.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Docusign Admin API 5 | 6 | An API for an organization administrator to manage organizations, accounts and users # noqa: E501 7 | 8 | OpenAPI spec version: v2.1 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_admin.client.configuration import Configuration 20 | 21 | 22 | class AssetGroupAccountClones(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 | 'asset_group_works': 'list[AssetGroupAccountClone]' 37 | } 38 | 39 | attribute_map = { 40 | 'asset_group_works': 'assetGroupWorks' 41 | } 42 | 43 | def __init__(self, _configuration=None, **kwargs): # noqa: E501 44 | """AssetGroupAccountClones - a model defined in Swagger""" # noqa: E501 45 | if _configuration is None: 46 | _configuration = Configuration() 47 | self._configuration = _configuration 48 | 49 | self._asset_group_works = None 50 | self.discriminator = None 51 | 52 | setattr(self, "_{}".format('asset_group_works'), kwargs.get('asset_group_works', None)) 53 | 54 | @property 55 | def asset_group_works(self): 56 | """Gets the asset_group_works of this AssetGroupAccountClones. # noqa: E501 57 | 58 | The list of asset group accounts. # noqa: E501 59 | 60 | :return: The asset_group_works of this AssetGroupAccountClones. # noqa: E501 61 | :rtype: list[AssetGroupAccountClone] 62 | """ 63 | return self._asset_group_works 64 | 65 | @asset_group_works.setter 66 | def asset_group_works(self, asset_group_works): 67 | """Sets the asset_group_works of this AssetGroupAccountClones. 68 | 69 | The list of asset group accounts. # noqa: E501 70 | 71 | :param asset_group_works: The asset_group_works of this AssetGroupAccountClones. # noqa: E501 72 | :type: list[AssetGroupAccountClone] 73 | """ 74 | 75 | self._asset_group_works = asset_group_works 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(AssetGroupAccountClones, 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, AssetGroupAccountClones): 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, AssetGroupAccountClones): 122 | return True 123 | 124 | return self.to_dict() != other.to_dict() 125 | -------------------------------------------------------------------------------- /docusign_admin/models/sub_account_create_worker_response.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Docusign Admin API 5 | 6 | An API for an organization administrator to manage organizations, accounts and users # noqa: E501 7 | 8 | OpenAPI spec version: v2.1 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_admin.client.configuration import Configuration 20 | 21 | 22 | class SubAccountCreateWorkerResponse(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 | 'asset_group_works': 'list[SubAccountCreateWorker]' 37 | } 38 | 39 | attribute_map = { 40 | 'asset_group_works': 'assetGroupWorks' 41 | } 42 | 43 | def __init__(self, _configuration=None, **kwargs): # noqa: E501 44 | """SubAccountCreateWorkerResponse - a model defined in Swagger""" # noqa: E501 45 | if _configuration is None: 46 | _configuration = Configuration() 47 | self._configuration = _configuration 48 | 49 | self._asset_group_works = None 50 | self.discriminator = None 51 | 52 | setattr(self, "_{}".format('asset_group_works'), kwargs.get('asset_group_works', None)) 53 | 54 | @property 55 | def asset_group_works(self): 56 | """Gets the asset_group_works of this SubAccountCreateWorkerResponse. # noqa: E501 57 | 58 | The list of create acccount processes # noqa: E501 59 | 60 | :return: The asset_group_works of this SubAccountCreateWorkerResponse. # noqa: E501 61 | :rtype: list[SubAccountCreateWorker] 62 | """ 63 | return self._asset_group_works 64 | 65 | @asset_group_works.setter 66 | def asset_group_works(self, asset_group_works): 67 | """Sets the asset_group_works of this SubAccountCreateWorkerResponse. 68 | 69 | The list of create acccount processes # noqa: E501 70 | 71 | :param asset_group_works: The asset_group_works of this SubAccountCreateWorkerResponse. # noqa: E501 72 | :type: list[SubAccountCreateWorker] 73 | """ 74 | 75 | self._asset_group_works = asset_group_works 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(SubAccountCreateWorkerResponse, 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, SubAccountCreateWorkerResponse): 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, SubAccountCreateWorkerResponse): 122 | return True 123 | 124 | return self.to_dict() != other.to_dict() 125 | -------------------------------------------------------------------------------- /docusign_admin/models/asset_group_accounts_response.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Docusign Admin API 5 | 6 | An API for an organization administrator to manage organizations, accounts and users # noqa: E501 7 | 8 | OpenAPI spec version: v2.1 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_admin.client.configuration import Configuration 20 | 21 | 22 | class AssetGroupAccountsResponse(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 | 'asset_group_accounts': 'list[AssetGroupAccountResponse]' 37 | } 38 | 39 | attribute_map = { 40 | 'asset_group_accounts': 'assetGroupAccounts' 41 | } 42 | 43 | def __init__(self, _configuration=None, **kwargs): # noqa: E501 44 | """AssetGroupAccountsResponse - a model defined in Swagger""" # noqa: E501 45 | if _configuration is None: 46 | _configuration = Configuration() 47 | self._configuration = _configuration 48 | 49 | self._asset_group_accounts = None 50 | self.discriminator = None 51 | 52 | setattr(self, "_{}".format('asset_group_accounts'), kwargs.get('asset_group_accounts', None)) 53 | 54 | @property 55 | def asset_group_accounts(self): 56 | """Gets the asset_group_accounts of this AssetGroupAccountsResponse. # noqa: E501 57 | 58 | The list of asset group accounts. # noqa: E501 59 | 60 | :return: The asset_group_accounts of this AssetGroupAccountsResponse. # noqa: E501 61 | :rtype: list[AssetGroupAccountResponse] 62 | """ 63 | return self._asset_group_accounts 64 | 65 | @asset_group_accounts.setter 66 | def asset_group_accounts(self, asset_group_accounts): 67 | """Sets the asset_group_accounts of this AssetGroupAccountsResponse. 68 | 69 | The list of asset group accounts. # noqa: E501 70 | 71 | :param asset_group_accounts: The asset_group_accounts of this AssetGroupAccountsResponse. # noqa: E501 72 | :type: list[AssetGroupAccountResponse] 73 | """ 74 | 75 | self._asset_group_accounts = asset_group_accounts 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(AssetGroupAccountsResponse, 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, AssetGroupAccountsResponse): 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, AssetGroupAccountsResponse): 122 | return True 123 | 124 | return self.to_dict() != other.to_dict() 125 | -------------------------------------------------------------------------------- /docusign_admin/models/link_response.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Docusign Admin API 5 | 6 | An API for an organization administrator to manage organizations, accounts and users # noqa: E501 7 | 8 | OpenAPI spec version: v2.1 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_admin.client.configuration import Configuration 20 | 21 | 22 | class LinkResponse(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 | 'rel': 'str', 37 | 'href': 'str' 38 | } 39 | 40 | attribute_map = { 41 | 'rel': 'rel', 42 | 'href': 'href' 43 | } 44 | 45 | def __init__(self, _configuration=None, **kwargs): # noqa: E501 46 | """LinkResponse - a model defined in Swagger""" # noqa: E501 47 | if _configuration is None: 48 | _configuration = Configuration() 49 | self._configuration = _configuration 50 | 51 | self._rel = None 52 | self._href = None 53 | self.discriminator = None 54 | 55 | setattr(self, "_{}".format('rel'), kwargs.get('rel', None)) 56 | setattr(self, "_{}".format('href'), kwargs.get('href', None)) 57 | 58 | @property 59 | def rel(self): 60 | """Gets the rel of this LinkResponse. # noqa: E501 61 | 62 | 63 | :return: The rel of this LinkResponse. # noqa: E501 64 | :rtype: str 65 | """ 66 | return self._rel 67 | 68 | @rel.setter 69 | def rel(self, rel): 70 | """Sets the rel of this LinkResponse. 71 | 72 | 73 | :param rel: The rel of this LinkResponse. # noqa: E501 74 | :type: str 75 | """ 76 | 77 | self._rel = rel 78 | 79 | @property 80 | def href(self): 81 | """Gets the href of this LinkResponse. # noqa: E501 82 | 83 | 84 | :return: The href of this LinkResponse. # noqa: E501 85 | :rtype: str 86 | """ 87 | return self._href 88 | 89 | @href.setter 90 | def href(self, href): 91 | """Sets the href of this LinkResponse. 92 | 93 | 94 | :param href: The href of this LinkResponse. # noqa: E501 95 | :type: str 96 | """ 97 | 98 | self._href = href 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(LinkResponse, 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, LinkResponse): 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, LinkResponse): 145 | return True 146 | 147 | return self.to_dict() != other.to_dict() 148 | -------------------------------------------------------------------------------- /docusign_admin/models/product_permission_profiles_response.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Docusign Admin API 5 | 6 | An API for an organization administrator to manage organizations, accounts and users # noqa: E501 7 | 8 | OpenAPI spec version: v2.1 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_admin.client.configuration import Configuration 20 | 21 | 22 | class ProductPermissionProfilesResponse(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 | 'product_permission_profiles': 'list[ProductPermissionProfileResponse]' 37 | } 38 | 39 | attribute_map = { 40 | 'product_permission_profiles': 'product_permission_profiles' 41 | } 42 | 43 | def __init__(self, _configuration=None, **kwargs): # noqa: E501 44 | """ProductPermissionProfilesResponse - a model defined in Swagger""" # noqa: E501 45 | if _configuration is None: 46 | _configuration = Configuration() 47 | self._configuration = _configuration 48 | 49 | self._product_permission_profiles = None 50 | self.discriminator = None 51 | 52 | setattr(self, "_{}".format('product_permission_profiles'), kwargs.get('product_permission_profiles', None)) 53 | 54 | @property 55 | def product_permission_profiles(self): 56 | """Gets the product_permission_profiles of this ProductPermissionProfilesResponse. # noqa: E501 57 | 58 | 59 | :return: The product_permission_profiles of this ProductPermissionProfilesResponse. # noqa: E501 60 | :rtype: list[ProductPermissionProfileResponse] 61 | """ 62 | return self._product_permission_profiles 63 | 64 | @product_permission_profiles.setter 65 | def product_permission_profiles(self, product_permission_profiles): 66 | """Sets the product_permission_profiles of this ProductPermissionProfilesResponse. 67 | 68 | 69 | :param product_permission_profiles: The product_permission_profiles of this ProductPermissionProfilesResponse. # noqa: E501 70 | :type: list[ProductPermissionProfileResponse] 71 | """ 72 | 73 | self._product_permission_profiles = product_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(ProductPermissionProfilesResponse, 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, ProductPermissionProfilesResponse): 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, ProductPermissionProfilesResponse): 120 | return True 121 | 122 | return self.to_dict() != other.to_dict() 123 | -------------------------------------------------------------------------------- /docusign_admin/models/permission_profile_response.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Docusign Admin API 5 | 6 | An API for an organization administrator to manage organizations, accounts and users # noqa: E501 7 | 8 | OpenAPI spec version: v2.1 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_admin.client.configuration import Configuration 20 | 21 | 22 | class PermissionProfileResponse(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': 'int', 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 | """PermissionProfileResponse - 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 PermissionProfileResponse. # noqa: E501 61 | 62 | 63 | :return: The id of this PermissionProfileResponse. # noqa: E501 64 | :rtype: int 65 | """ 66 | return self._id 67 | 68 | @id.setter 69 | def id(self, id): 70 | """Sets the id of this PermissionProfileResponse. 71 | 72 | 73 | :param id: The id of this PermissionProfileResponse. # noqa: E501 74 | :type: int 75 | """ 76 | 77 | self._id = id 78 | 79 | @property 80 | def name(self): 81 | """Gets the name of this PermissionProfileResponse. # noqa: E501 82 | 83 | 84 | :return: The name of this PermissionProfileResponse. # 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 PermissionProfileResponse. 92 | 93 | 94 | :param name: The name of this PermissionProfileResponse. # 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(PermissionProfileResponse, 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, PermissionProfileResponse): 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, PermissionProfileResponse): 145 | return True 146 | 147 | return self.to_dict() != other.to_dict() 148 | -------------------------------------------------------------------------------- /docusign_admin/models/product_permission_profiles_request.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Docusign Admin API 5 | 6 | An API for an organization administrator to manage organizations, accounts and users # noqa: E501 7 | 8 | OpenAPI spec version: v2.1 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_admin.client.configuration import Configuration 20 | 21 | 22 | class ProductPermissionProfilesRequest(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 | 'product_permission_profiles': 'list[ProductPermissionProfileRequest]' 37 | } 38 | 39 | attribute_map = { 40 | 'product_permission_profiles': 'product_permission_profiles' 41 | } 42 | 43 | def __init__(self, _configuration=None, **kwargs): # noqa: E501 44 | """ProductPermissionProfilesRequest - a model defined in Swagger""" # noqa: E501 45 | if _configuration is None: 46 | _configuration = Configuration() 47 | self._configuration = _configuration 48 | 49 | self._product_permission_profiles = None 50 | self.discriminator = None 51 | 52 | setattr(self, "_{}".format('product_permission_profiles'), kwargs.get('product_permission_profiles', None)) 53 | 54 | @property 55 | def product_permission_profiles(self): 56 | """Gets the product_permission_profiles of this ProductPermissionProfilesRequest. # noqa: E501 57 | 58 | 59 | :return: The product_permission_profiles of this ProductPermissionProfilesRequest. # noqa: E501 60 | :rtype: list[ProductPermissionProfileRequest] 61 | """ 62 | return self._product_permission_profiles 63 | 64 | @product_permission_profiles.setter 65 | def product_permission_profiles(self, product_permission_profiles): 66 | """Sets the product_permission_profiles of this ProductPermissionProfilesRequest. 67 | 68 | 69 | :param product_permission_profiles: The product_permission_profiles of this ProductPermissionProfilesRequest. # noqa: E501 70 | :type: list[ProductPermissionProfileRequest] 71 | """ 72 | if self._configuration.client_side_validation and product_permission_profiles is None: 73 | raise ValueError("Invalid value for `product_permission_profiles`, must not be `None`") # noqa: E501 74 | 75 | self._product_permission_profiles = product_permission_profiles 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(ProductPermissionProfilesRequest, 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, ProductPermissionProfilesRequest): 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, ProductPermissionProfilesRequest): 122 | return True 123 | 124 | return self.to_dict() != other.to_dict() 125 | -------------------------------------------------------------------------------- /docusign_admin/models/org_report_list_response_requestor.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Docusign Admin API 5 | 6 | An API for an organization administrator to manage organizations, accounts and users # noqa: E501 7 | 8 | OpenAPI spec version: v2.1 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_admin.client.configuration import Configuration 20 | 21 | 22 | class OrgReportListResponseRequestor(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 | """OrgReportListResponseRequestor - 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 OrgReportListResponseRequestor. # noqa: E501 61 | 62 | 63 | :return: The id of this OrgReportListResponseRequestor. # 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 OrgReportListResponseRequestor. 71 | 72 | 73 | :param id: The id of this OrgReportListResponseRequestor. # noqa: E501 74 | :type: str 75 | """ 76 | 77 | self._id = id 78 | 79 | @property 80 | def name(self): 81 | """Gets the name of this OrgReportListResponseRequestor. # noqa: E501 82 | 83 | 84 | :return: The name of this OrgReportListResponseRequestor. # 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 OrgReportListResponseRequestor. 92 | 93 | 94 | :param name: The name of this OrgReportListResponseRequestor. # 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(OrgReportListResponseRequestor, 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, OrgReportListResponseRequestor): 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, OrgReportListResponseRequestor): 145 | return True 146 | 147 | return self.to_dict() != other.to_dict() 148 | -------------------------------------------------------------------------------- /docusign_admin/models/users_update_response.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Docusign Admin API 5 | 6 | An API for an organization administrator to manage organizations, accounts and users # noqa: E501 7 | 8 | OpenAPI spec version: v2.1 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_admin.client.configuration import Configuration 20 | 21 | 22 | class UsersUpdateResponse(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 | 'success': 'bool', 37 | 'users': 'list[UserUpdateResponse]' 38 | } 39 | 40 | attribute_map = { 41 | 'success': 'success', 42 | 'users': 'users' 43 | } 44 | 45 | def __init__(self, _configuration=None, **kwargs): # noqa: E501 46 | """UsersUpdateResponse - a model defined in Swagger""" # noqa: E501 47 | if _configuration is None: 48 | _configuration = Configuration() 49 | self._configuration = _configuration 50 | 51 | self._success = None 52 | self._users = None 53 | self.discriminator = None 54 | 55 | setattr(self, "_{}".format('success'), kwargs.get('success', None)) 56 | setattr(self, "_{}".format('users'), kwargs.get('users', None)) 57 | 58 | @property 59 | def success(self): 60 | """Gets the success of this UsersUpdateResponse. # noqa: E501 61 | 62 | 63 | :return: The success of this UsersUpdateResponse. # noqa: E501 64 | :rtype: bool 65 | """ 66 | return self._success 67 | 68 | @success.setter 69 | def success(self, success): 70 | """Sets the success of this UsersUpdateResponse. 71 | 72 | 73 | :param success: The success of this UsersUpdateResponse. # noqa: E501 74 | :type: bool 75 | """ 76 | 77 | self._success = success 78 | 79 | @property 80 | def users(self): 81 | """Gets the users of this UsersUpdateResponse. # noqa: E501 82 | 83 | 84 | :return: The users of this UsersUpdateResponse. # noqa: E501 85 | :rtype: list[UserUpdateResponse] 86 | """ 87 | return self._users 88 | 89 | @users.setter 90 | def users(self, users): 91 | """Sets the users of this UsersUpdateResponse. 92 | 93 | 94 | :param users: The users of this UsersUpdateResponse. # noqa: E501 95 | :type: list[UserUpdateResponse] 96 | """ 97 | 98 | self._users = users 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(UsersUpdateResponse, 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, UsersUpdateResponse): 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, UsersUpdateResponse): 145 | return True 146 | 147 | return self.to_dict() != other.to_dict() 148 | -------------------------------------------------------------------------------- /docusign_admin/models/error_details.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Docusign Admin API 5 | 6 | An API for an organization administrator to manage organizations, accounts and users # noqa: E501 7 | 8 | OpenAPI spec version: v2.1 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_admin.client.configuration import Configuration 20 | 21 | 22 | class ErrorDetails(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 | 'error': 'str', 37 | 'error_description': 'str' 38 | } 39 | 40 | attribute_map = { 41 | 'error': 'error', 42 | 'error_description': 'error_description' 43 | } 44 | 45 | def __init__(self, _configuration=None, **kwargs): # noqa: E501 46 | """ErrorDetails - a model defined in Swagger""" # noqa: E501 47 | if _configuration is None: 48 | _configuration = Configuration() 49 | self._configuration = _configuration 50 | 51 | self._error = None 52 | self._error_description = None 53 | self.discriminator = None 54 | 55 | setattr(self, "_{}".format('error'), kwargs.get('error', None)) 56 | setattr(self, "_{}".format('error_description'), kwargs.get('error_description', None)) 57 | 58 | @property 59 | def error(self): 60 | """Gets the error of this ErrorDetails. # noqa: E501 61 | 62 | 63 | :return: The error of this ErrorDetails. # noqa: E501 64 | :rtype: str 65 | """ 66 | return self._error 67 | 68 | @error.setter 69 | def error(self, error): 70 | """Sets the error of this ErrorDetails. 71 | 72 | 73 | :param error: The error of this ErrorDetails. # noqa: E501 74 | :type: str 75 | """ 76 | 77 | self._error = error 78 | 79 | @property 80 | def error_description(self): 81 | """Gets the error_description of this ErrorDetails. # noqa: E501 82 | 83 | 84 | :return: The error_description of this ErrorDetails. # noqa: E501 85 | :rtype: str 86 | """ 87 | return self._error_description 88 | 89 | @error_description.setter 90 | def error_description(self, error_description): 91 | """Sets the error_description of this ErrorDetails. 92 | 93 | 94 | :param error_description: The error_description of this ErrorDetails. # noqa: E501 95 | :type: str 96 | """ 97 | 98 | self._error_description = error_description 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(ErrorDetails, 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, ErrorDetails): 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, ErrorDetails): 145 | return True 146 | 147 | return self.to_dict() != other.to_dict() 148 | -------------------------------------------------------------------------------- /docusign_admin/models/delete_response.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Docusign Admin API 5 | 6 | An API for an organization administrator to manage organizations, accounts and users # noqa: E501 7 | 8 | OpenAPI spec version: v2.1 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_admin.client.configuration import Configuration 20 | 21 | 22 | class DeleteResponse(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 | 'success': 'bool', 37 | 'identities': 'list[UserIdentityResponse]' 38 | } 39 | 40 | attribute_map = { 41 | 'success': 'success', 42 | 'identities': 'identities' 43 | } 44 | 45 | def __init__(self, _configuration=None, **kwargs): # noqa: E501 46 | """DeleteResponse - a model defined in Swagger""" # noqa: E501 47 | if _configuration is None: 48 | _configuration = Configuration() 49 | self._configuration = _configuration 50 | 51 | self._success = None 52 | self._identities = None 53 | self.discriminator = None 54 | 55 | setattr(self, "_{}".format('success'), kwargs.get('success', None)) 56 | setattr(self, "_{}".format('identities'), kwargs.get('identities', None)) 57 | 58 | @property 59 | def success(self): 60 | """Gets the success of this DeleteResponse. # noqa: E501 61 | 62 | 63 | :return: The success of this DeleteResponse. # noqa: E501 64 | :rtype: bool 65 | """ 66 | return self._success 67 | 68 | @success.setter 69 | def success(self, success): 70 | """Sets the success of this DeleteResponse. 71 | 72 | 73 | :param success: The success of this DeleteResponse. # noqa: E501 74 | :type: bool 75 | """ 76 | 77 | self._success = success 78 | 79 | @property 80 | def identities(self): 81 | """Gets the identities of this DeleteResponse. # noqa: E501 82 | 83 | 84 | :return: The identities of this DeleteResponse. # noqa: E501 85 | :rtype: list[UserIdentityResponse] 86 | """ 87 | return self._identities 88 | 89 | @identities.setter 90 | def identities(self, identities): 91 | """Sets the identities of this DeleteResponse. 92 | 93 | 94 | :param identities: The identities of this DeleteResponse. # noqa: E501 95 | :type: list[UserIdentityResponse] 96 | """ 97 | 98 | self._identities = identities 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(DeleteResponse, 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, DeleteResponse): 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, DeleteResponse): 145 | return True 146 | 147 | return self.to_dict() != other.to_dict() 148 | -------------------------------------------------------------------------------- /docusign_admin/models/permission_profile_request.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Docusign Admin API 5 | 6 | An API for an organization administrator to manage organizations, accounts and users # noqa: E501 7 | 8 | OpenAPI spec version: v2.1 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_admin.client.configuration import Configuration 20 | 21 | 22 | class PermissionProfileRequest(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': 'int', 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 | """PermissionProfileRequest - 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 PermissionProfileRequest. # noqa: E501 61 | 62 | 63 | :return: The id of this PermissionProfileRequest. # noqa: E501 64 | :rtype: int 65 | """ 66 | return self._id 67 | 68 | @id.setter 69 | def id(self, id): 70 | """Sets the id of this PermissionProfileRequest. 71 | 72 | 73 | :param id: The id of this PermissionProfileRequest. # noqa: E501 74 | :type: int 75 | """ 76 | if self._configuration.client_side_validation and id is None: 77 | raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 78 | 79 | self._id = id 80 | 81 | @property 82 | def name(self): 83 | """Gets the name of this PermissionProfileRequest. # noqa: E501 84 | 85 | 86 | :return: The name of this PermissionProfileRequest. # noqa: E501 87 | :rtype: str 88 | """ 89 | return self._name 90 | 91 | @name.setter 92 | def name(self, name): 93 | """Sets the name of this PermissionProfileRequest. 94 | 95 | 96 | :param name: The name of this PermissionProfileRequest. # noqa: E501 97 | :type: str 98 | """ 99 | 100 | self._name = name 101 | 102 | def to_dict(self): 103 | """Returns the model properties as a dict""" 104 | result = {} 105 | 106 | for attr, _ in six.iteritems(self.swagger_types): 107 | value = getattr(self, attr) 108 | if isinstance(value, list): 109 | result[attr] = list(map( 110 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 111 | value 112 | )) 113 | elif hasattr(value, "to_dict"): 114 | result[attr] = value.to_dict() 115 | elif isinstance(value, dict): 116 | result[attr] = dict(map( 117 | lambda item: (item[0], item[1].to_dict()) 118 | if hasattr(item[1], "to_dict") else item, 119 | value.items() 120 | )) 121 | else: 122 | result[attr] = value 123 | if issubclass(PermissionProfileRequest, dict): 124 | for key, value in self.items(): 125 | result[key] = value 126 | 127 | return result 128 | 129 | def to_str(self): 130 | """Returns the string representation of the model""" 131 | return pprint.pformat(self.to_dict()) 132 | 133 | def __repr__(self): 134 | """For `print` and `pprint`""" 135 | return self.to_str() 136 | 137 | def __eq__(self, other): 138 | """Returns true if both objects are equal""" 139 | if not isinstance(other, PermissionProfileRequest): 140 | return False 141 | 142 | return self.to_dict() == other.to_dict() 143 | 144 | def __ne__(self, other): 145 | """Returns true if both objects are not equal""" 146 | if not isinstance(other, PermissionProfileRequest): 147 | return True 148 | 149 | return self.to_dict() != other.to_dict() 150 | -------------------------------------------------------------------------------- /docusign_admin/models/oetr_error_details.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Docusign Admin API 5 | 6 | An API for an organization administrator to manage organizations, accounts and users # noqa: E501 7 | 8 | OpenAPI spec version: v2.1 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_admin.client.configuration import Configuration 20 | 21 | 22 | class OETRErrorDetails(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 | 'error': 'str', 37 | 'error_description': 'str' 38 | } 39 | 40 | attribute_map = { 41 | 'error': 'error', 42 | 'error_description': 'error_description' 43 | } 44 | 45 | def __init__(self, _configuration=None, **kwargs): # noqa: E501 46 | """OETRErrorDetails - a model defined in Swagger""" # noqa: E501 47 | if _configuration is None: 48 | _configuration = Configuration() 49 | self._configuration = _configuration 50 | 51 | self._error = None 52 | self._error_description = None 53 | self.discriminator = None 54 | 55 | setattr(self, "_{}".format('error'), kwargs.get('error', None)) 56 | setattr(self, "_{}".format('error_description'), kwargs.get('error_description', None)) 57 | 58 | @property 59 | def error(self): 60 | """Gets the error of this OETRErrorDetails. # noqa: E501 61 | 62 | 63 | :return: The error of this OETRErrorDetails. # noqa: E501 64 | :rtype: str 65 | """ 66 | return self._error 67 | 68 | @error.setter 69 | def error(self, error): 70 | """Sets the error of this OETRErrorDetails. 71 | 72 | 73 | :param error: The error of this OETRErrorDetails. # noqa: E501 74 | :type: str 75 | """ 76 | 77 | self._error = error 78 | 79 | @property 80 | def error_description(self): 81 | """Gets the error_description of this OETRErrorDetails. # noqa: E501 82 | 83 | 84 | :return: The error_description of this OETRErrorDetails. # noqa: E501 85 | :rtype: str 86 | """ 87 | return self._error_description 88 | 89 | @error_description.setter 90 | def error_description(self, error_description): 91 | """Sets the error_description of this OETRErrorDetails. 92 | 93 | 94 | :param error_description: The error_description of this OETRErrorDetails. # noqa: E501 95 | :type: str 96 | """ 97 | 98 | self._error_description = error_description 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(OETRErrorDetails, 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, OETRErrorDetails): 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, OETRErrorDetails): 145 | return True 146 | 147 | return self.to_dict() != other.to_dict() 148 | -------------------------------------------------------------------------------- /docusign_admin/models/member_groups_response.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Docusign Admin API 5 | 6 | An API for an organization administrator to manage organizations, accounts and users # noqa: E501 7 | 8 | OpenAPI spec version: v2.1 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_admin.client.configuration import Configuration 20 | 21 | 22 | class MemberGroupsResponse(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 | 'groups': 'list[MemberGroupResponse]', 37 | 'paging': 'PagingResponseProperties' 38 | } 39 | 40 | attribute_map = { 41 | 'groups': 'groups', 42 | 'paging': 'paging' 43 | } 44 | 45 | def __init__(self, _configuration=None, **kwargs): # noqa: E501 46 | """MemberGroupsResponse - a model defined in Swagger""" # noqa: E501 47 | if _configuration is None: 48 | _configuration = Configuration() 49 | self._configuration = _configuration 50 | 51 | self._groups = None 52 | self._paging = None 53 | self.discriminator = None 54 | 55 | setattr(self, "_{}".format('groups'), kwargs.get('groups', None)) 56 | setattr(self, "_{}".format('paging'), kwargs.get('paging', None)) 57 | 58 | @property 59 | def groups(self): 60 | """Gets the groups of this MemberGroupsResponse. # noqa: E501 61 | 62 | 63 | :return: The groups of this MemberGroupsResponse. # noqa: E501 64 | :rtype: list[MemberGroupResponse] 65 | """ 66 | return self._groups 67 | 68 | @groups.setter 69 | def groups(self, groups): 70 | """Sets the groups of this MemberGroupsResponse. 71 | 72 | 73 | :param groups: The groups of this MemberGroupsResponse. # noqa: E501 74 | :type: list[MemberGroupResponse] 75 | """ 76 | 77 | self._groups = groups 78 | 79 | @property 80 | def paging(self): 81 | """Gets the paging of this MemberGroupsResponse. # noqa: E501 82 | 83 | 84 | :return: The paging of this MemberGroupsResponse. # noqa: E501 85 | :rtype: PagingResponseProperties 86 | """ 87 | return self._paging 88 | 89 | @paging.setter 90 | def paging(self, paging): 91 | """Sets the paging of this MemberGroupsResponse. 92 | 93 | 94 | :param paging: The paging of this MemberGroupsResponse. # noqa: E501 95 | :type: PagingResponseProperties 96 | """ 97 | 98 | self._paging = paging 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(MemberGroupsResponse, 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, MemberGroupsResponse): 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, MemberGroupsResponse): 145 | return True 146 | 147 | return self.to_dict() != other.to_dict() 148 | -------------------------------------------------------------------------------- /docusign_admin/models/delete_membership_response.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Docusign Admin API 5 | 6 | An API for an organization administrator to manage organizations, accounts and users # noqa: E501 7 | 8 | OpenAPI spec version: v2.1 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_admin.client.configuration import Configuration 20 | 21 | 22 | class DeleteMembershipResponse(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 | 'error_details': 'ErrorDetails' 38 | } 39 | 40 | attribute_map = { 41 | 'id': 'id', 42 | 'error_details': 'error_details' 43 | } 44 | 45 | def __init__(self, _configuration=None, **kwargs): # noqa: E501 46 | """DeleteMembershipResponse - 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._error_details = None 53 | self.discriminator = None 54 | 55 | setattr(self, "_{}".format('id'), kwargs.get('id', None)) 56 | setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) 57 | 58 | @property 59 | def id(self): 60 | """Gets the id of this DeleteMembershipResponse. # noqa: E501 61 | 62 | 63 | :return: The id of this DeleteMembershipResponse. # 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 DeleteMembershipResponse. 71 | 72 | 73 | :param id: The id of this DeleteMembershipResponse. # noqa: E501 74 | :type: str 75 | """ 76 | 77 | self._id = id 78 | 79 | @property 80 | def error_details(self): 81 | """Gets the error_details of this DeleteMembershipResponse. # noqa: E501 82 | 83 | 84 | :return: The error_details of this DeleteMembershipResponse. # noqa: E501 85 | :rtype: ErrorDetails 86 | """ 87 | return self._error_details 88 | 89 | @error_details.setter 90 | def error_details(self, error_details): 91 | """Sets the error_details of this DeleteMembershipResponse. 92 | 93 | 94 | :param error_details: The error_details of this DeleteMembershipResponse. # noqa: E501 95 | :type: ErrorDetails 96 | """ 97 | 98 | self._error_details = error_details 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(DeleteMembershipResponse, 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, DeleteMembershipResponse): 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, DeleteMembershipResponse): 145 | return True 146 | 147 | return self.to_dict() != other.to_dict() 148 | -------------------------------------------------------------------------------- /docusign_admin/models/oasirr_error_details.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Docusign Admin API 5 | 6 | An API for an organization administrator to manage organizations, accounts and users # noqa: E501 7 | 8 | OpenAPI spec version: v2.1 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_admin.client.configuration import Configuration 20 | 21 | 22 | class OASIRRErrorDetails(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 | 'error': 'str', 37 | 'error_description': 'str' 38 | } 39 | 40 | attribute_map = { 41 | 'error': 'error', 42 | 'error_description': 'error_description' 43 | } 44 | 45 | def __init__(self, _configuration=None, **kwargs): # noqa: E501 46 | """OASIRRErrorDetails - a model defined in Swagger""" # noqa: E501 47 | if _configuration is None: 48 | _configuration = Configuration() 49 | self._configuration = _configuration 50 | 51 | self._error = None 52 | self._error_description = None 53 | self.discriminator = None 54 | 55 | setattr(self, "_{}".format('error'), kwargs.get('error', None)) 56 | setattr(self, "_{}".format('error_description'), kwargs.get('error_description', None)) 57 | 58 | @property 59 | def error(self): 60 | """Gets the error of this OASIRRErrorDetails. # noqa: E501 61 | 62 | 63 | :return: The error of this OASIRRErrorDetails. # noqa: E501 64 | :rtype: str 65 | """ 66 | return self._error 67 | 68 | @error.setter 69 | def error(self, error): 70 | """Sets the error of this OASIRRErrorDetails. 71 | 72 | 73 | :param error: The error of this OASIRRErrorDetails. # noqa: E501 74 | :type: str 75 | """ 76 | 77 | self._error = error 78 | 79 | @property 80 | def error_description(self): 81 | """Gets the error_description of this OASIRRErrorDetails. # noqa: E501 82 | 83 | 84 | :return: The error_description of this OASIRRErrorDetails. # noqa: E501 85 | :rtype: str 86 | """ 87 | return self._error_description 88 | 89 | @error_description.setter 90 | def error_description(self, error_description): 91 | """Sets the error_description of this OASIRRErrorDetails. 92 | 93 | 94 | :param error_description: The error_description of this OASIRRErrorDetails. # noqa: E501 95 | :type: str 96 | """ 97 | 98 | self._error_description = error_description 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(OASIRRErrorDetails, 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, OASIRRErrorDetails): 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, OASIRRErrorDetails): 145 | return True 146 | 147 | return self.to_dict() != other.to_dict() 148 | -------------------------------------------------------------------------------- /docusign_admin/models/organization_users_response.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Docusign Admin API 5 | 6 | An API for an organization administrator to manage organizations, accounts and users # noqa: E501 7 | 8 | OpenAPI spec version: v2.1 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_admin.client.configuration import Configuration 20 | 21 | 22 | class OrganizationUsersResponse(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 | 'users': 'list[OrganizationUserResponse]', 37 | 'paging': 'PagingResponseProperties' 38 | } 39 | 40 | attribute_map = { 41 | 'users': 'users', 42 | 'paging': 'paging' 43 | } 44 | 45 | def __init__(self, _configuration=None, **kwargs): # noqa: E501 46 | """OrganizationUsersResponse - a model defined in Swagger""" # noqa: E501 47 | if _configuration is None: 48 | _configuration = Configuration() 49 | self._configuration = _configuration 50 | 51 | self._users = None 52 | self._paging = None 53 | self.discriminator = None 54 | 55 | setattr(self, "_{}".format('users'), kwargs.get('users', None)) 56 | setattr(self, "_{}".format('paging'), kwargs.get('paging', None)) 57 | 58 | @property 59 | def users(self): 60 | """Gets the users of this OrganizationUsersResponse. # noqa: E501 61 | 62 | 63 | :return: The users of this OrganizationUsersResponse. # noqa: E501 64 | :rtype: list[OrganizationUserResponse] 65 | """ 66 | return self._users 67 | 68 | @users.setter 69 | def users(self, users): 70 | """Sets the users of this OrganizationUsersResponse. 71 | 72 | 73 | :param users: The users of this OrganizationUsersResponse. # noqa: E501 74 | :type: list[OrganizationUserResponse] 75 | """ 76 | 77 | self._users = users 78 | 79 | @property 80 | def paging(self): 81 | """Gets the paging of this OrganizationUsersResponse. # noqa: E501 82 | 83 | 84 | :return: The paging of this OrganizationUsersResponse. # noqa: E501 85 | :rtype: PagingResponseProperties 86 | """ 87 | return self._paging 88 | 89 | @paging.setter 90 | def paging(self, paging): 91 | """Sets the paging of this OrganizationUsersResponse. 92 | 93 | 94 | :param paging: The paging of this OrganizationUsersResponse. # noqa: E501 95 | :type: PagingResponseProperties 96 | """ 97 | 98 | self._paging = paging 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(OrganizationUsersResponse, 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, OrganizationUsersResponse): 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, OrganizationUsersResponse): 145 | return True 146 | 147 | return self.to_dict() != other.to_dict() 148 | -------------------------------------------------------------------------------- /docusign_admin/models/ds_group_and_users_response.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | Docusign Admin API 5 | 6 | An API for an organization administrator to manage organizations, accounts and users # noqa: E501 7 | 8 | OpenAPI spec version: v2.1 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_admin.client.configuration import Configuration 20 | 21 | 22 | class DSGroupAndUsersResponse(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 | 'group': 'DSGroupResponse', 37 | 'group_users': 'DSGroupUsersResponse' 38 | } 39 | 40 | attribute_map = { 41 | 'group': 'group', 42 | 'group_users': 'group_users' 43 | } 44 | 45 | def __init__(self, _configuration=None, **kwargs): # noqa: E501 46 | """DSGroupAndUsersResponse - a model defined in Swagger""" # noqa: E501 47 | if _configuration is None: 48 | _configuration = Configuration() 49 | self._configuration = _configuration 50 | 51 | self._group = None 52 | self._group_users = None 53 | self.discriminator = None 54 | 55 | setattr(self, "_{}".format('group'), kwargs.get('group', None)) 56 | setattr(self, "_{}".format('group_users'), kwargs.get('group_users', None)) 57 | 58 | @property 59 | def group(self): 60 | """Gets the group of this DSGroupAndUsersResponse. # noqa: E501 61 | 62 | 63 | :return: The group of this DSGroupAndUsersResponse. # noqa: E501 64 | :rtype: DSGroupResponse 65 | """ 66 | return self._group 67 | 68 | @group.setter 69 | def group(self, group): 70 | """Sets the group of this DSGroupAndUsersResponse. 71 | 72 | 73 | :param group: The group of this DSGroupAndUsersResponse. # noqa: E501 74 | :type: DSGroupResponse 75 | """ 76 | 77 | self._group = group 78 | 79 | @property 80 | def group_users(self): 81 | """Gets the group_users of this DSGroupAndUsersResponse. # noqa: E501 82 | 83 | 84 | :return: The group_users of this DSGroupAndUsersResponse. # noqa: E501 85 | :rtype: DSGroupUsersResponse 86 | """ 87 | return self._group_users 88 | 89 | @group_users.setter 90 | def group_users(self, group_users): 91 | """Sets the group_users of this DSGroupAndUsersResponse. 92 | 93 | 94 | :param group_users: The group_users of this DSGroupAndUsersResponse. # noqa: E501 95 | :type: DSGroupUsersResponse 96 | """ 97 | 98 | self._group_users = group_users 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(DSGroupAndUsersResponse, 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, DSGroupAndUsersResponse): 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, DSGroupAndUsersResponse): 145 | return True 146 | 147 | return self.to_dict() != other.to_dict() 148 | --------------------------------------------------------------------------------