diff --git a/CHANGELOG.md b/CHANGELOG.md index ae9a49b..6aac485 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## [v1.0.0] - WebForms API v1.1.0-1.0.2 - 2024-02-14 +## Version 1.0.0 (Initial Release) +- Introducing the SDK based on the OpenAPI specification of DocuSign WebForms APIs. +- This release marks the initial availability of the SDK, providing developers with the necessary tools to interact with DocuSign WebForms APIs seamlessly. +## [v1.0.2rc13] - WebForms API v1.1.0-1.0.2 - 2024-02-13 +### Changed +- Updated the SDK release version. ## [v1.0.2rc12] - WebForms API v1.1.0-1.0.2 - 2024-02-09 ### Breaking Changes diff --git a/README.md b/README.md index aceaf69..edd0c0a 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ The Web Forms API facilitates generating semantic HTML forms around everyday con This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project: - API version: 1.1.0 -- Package version: 1.0.2rc12 +- Package version: 1.0.0 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://developers.docusign.com/](https://developers.docusign.com/) @@ -87,6 +87,7 @@ Class | Method | HTTP request | Description ## Documentation For Models + - [AuthenticationMethod](docs/AuthenticationMethod.md) - [CreateInstanceRequestBody](docs/CreateInstanceRequestBody.md) - [HttpError](docs/HttpError.md) - [HttpSuccess](docs/HttpSuccess.md) diff --git a/docusign_webforms/__init__.py b/docusign_webforms/__init__.py index 6ff246f..e16601d 100644 --- a/docusign_webforms/__init__.py +++ b/docusign_webforms/__init__.py @@ -31,6 +31,7 @@ from .client.auth.oauth import Link # import models into sdk package +from docusign_webforms.models.authentication_method import AuthenticationMethod from docusign_webforms.models.create_instance_request_body import CreateInstanceRequestBody from docusign_webforms.models.http_error import HttpError from docusign_webforms.models.http_success import HttpSuccess diff --git a/docusign_webforms/client/api_client.py b/docusign_webforms/client/api_client.py index c34353d..66e7183 100644 --- a/docusign_webforms/client/api_client.py +++ b/docusign_webforms/client/api_client.py @@ -88,8 +88,9 @@ def __init__(self, host=None, header_name=None, header_value=None, cookie=None, self.host = host self.cookie = cookie - self.oauth_host_name = oauth_host_name self.base_path = base_path + self.set_oauth_host_name(oauth_host_name) + # Set default User-Agent. self.user_agent = config.user_agent @@ -800,9 +801,6 @@ def set_oauth_host_name(self, oauth_host_name=None): self.oauth_host_name = oauth_host_name return - if not oauth_host_name: - raise ArgumentException('oAuthBasePath cannot be empty') - # Derive OAuth Base Path if not given if self.base_path is None or self.base_path.startswith("https://demo") or self.base_path.startswith("http://demo") or self.base_path.startswith("https://apps-d") or self.base_path.startswith("http://apps-d"): self.oauth_host_name = OAuth.DEMO_OAUTH_BASE_PATH diff --git a/docusign_webforms/client/configuration.py b/docusign_webforms/client/configuration.py index 5802c4d..770bf87 100644 --- a/docusign_webforms/client/configuration.py +++ b/docusign_webforms/client/configuration.py @@ -119,9 +119,9 @@ def __init__(self): python_version = platform.python_version() if six.PY3: - self.user_agent = "Swagger-Codegen/1.1.0/1.0.2rc12/python3/" + f"{python_version}" + self.user_agent = "Swagger-Codegen/1.1.0/1.0.0/python3/" + f"{python_version}" else: - self.user_agent = "Swagger-Codegen/1.1.0/1.0.2rc12/python2/" + f"{python_version}" + self.user_agent = "Swagger-Codegen/1.1.0/1.0.0/python2/" + f"{python_version}" @classmethod @@ -277,5 +277,5 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: 1.1.0\n"\ - "SDK Package Version: 1.0.2rc12".\ + "SDK Package Version: 1.0.0".\ format(env=sys.platform, pyversion=sys.version) diff --git a/docusign_webforms/models/__init__.py b/docusign_webforms/models/__init__.py index 3dbe8aa..5e9e258 100644 --- a/docusign_webforms/models/__init__.py +++ b/docusign_webforms/models/__init__.py @@ -15,6 +15,7 @@ from __future__ import absolute_import # import models into model package +from docusign_webforms.models.authentication_method import AuthenticationMethod from docusign_webforms.models.create_instance_request_body import CreateInstanceRequestBody from docusign_webforms.models.http_error import HttpError from docusign_webforms.models.http_success import HttpSuccess diff --git a/docusign_webforms/models/authentication_method.py b/docusign_webforms/models/authentication_method.py index 9c73e65..8bc75df 100644 --- a/docusign_webforms/models/authentication_method.py +++ b/docusign_webforms/models/authentication_method.py @@ -25,6 +25,28 @@ class AuthenticationMethod(object): Do not edit the class manually. """ + """ + allowed enum values + """ + BIOMETRIC = "Biometric" + EMAIL = "Email" + HTTPBASICAUTH = "HTTPBasicAuth" + KERBEROS = "Kerberos" + KNOWLEDGEBASEDAUTH = "KnowledgeBasedAuth" + NONE = "None" + PAPERDOCUMENTS = "PaperDocuments" + PASSWORD = "Password" + RSASECUREID = "RSASecureID" + SINGLESIGNON_CASITEMINDER = "SingleSignOn_CASiteminder" + SINGLESIGNON_INFOCARD = "SingleSignOn_InfoCard" + SINGLESIGNON_MICROSOFTACTIVEDIRECTORY = "SingleSignOn_MicrosoftActiveDirectory" + SINGLESIGNON_OTHER = "SingleSignOn_Other" + SINGLESIGNON_PASSPORT = "SingleSignOn_Passport" + SINGLESIGNON_SAML = "SingleSignOn_SAML" + SMARTCARD = "Smartcard" + SSLMUTUALAUTH = "SSLMutualAuth" + X509CERTIFICATE = "X509Certificate" + """ Attributes: swagger_types (dict): The key is attribute name diff --git a/docusign_webforms/models/create_instance_request_body.py b/docusign_webforms/models/create_instance_request_body.py index 8813d70..9acbe58 100644 --- a/docusign_webforms/models/create_instance_request_body.py +++ b/docusign_webforms/models/create_instance_request_body.py @@ -36,7 +36,7 @@ class CreateInstanceRequestBody(object): 'form_values': 'WebFormValues', 'client_user_id': 'str', 'authentication_instant': 'datetime', - 'authentication_method': 'str', + 'authentication_method': 'AuthenticationMethod', 'assertion_id': 'str', 'security_domain': 'str', 'return_url': 'str', @@ -154,7 +154,7 @@ def authentication_method(self): :return: The authentication_method of this CreateInstanceRequestBody. # noqa: E501 - :rtype: str + :rtype: AuthenticationMethod """ return self._authentication_method @@ -164,7 +164,7 @@ def authentication_method(self, authentication_method): :param authentication_method: The authentication_method of this CreateInstanceRequestBody. # noqa: E501 - :type: str + :type: AuthenticationMethod """ self._authentication_method = authentication_method diff --git a/setup.py b/setup.py index 0ceea8c..e93bb5b 100644 --- a/setup.py +++ b/setup.py @@ -14,7 +14,7 @@ from setuptools import setup, find_packages, Command, os # noqa: H301 NAME = "docusign-webforms" -VERSION = "1.0.2rc12" +VERSION = "1.0.0" # To install the library, run the following # # python setup.py install