Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
17 changes: 17 additions & 0 deletions src/visier_api/.openapi-generator-ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Ignore folders
docs/
.github/

# Ignore broken unit test for DTO
test/test_sql_like200_response.py

# Ignore files in the root by default
/*

# Allow specific files for PyPI publishing
!setup.py
!setup.cfg
!requirements.txt
!test-requirements.txt
!tox.ini
!pyproject.toml
1,317 changes: 1,317 additions & 0 deletions src/visier_api/.openapi-generator/FILES

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/visier_api/.openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
7.13.0
89 changes: 89 additions & 0 deletions src/visier_api/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
[tool.poetry]
name = "visier_api"
version = "22222222.99201.1892.beta1"
description = "API Reference"
authors = ["Visier <alpine@visier.com>"]
license = "Apache License, Version 2.0"
readme = "README.md"
repository = "https://github.com/GIT_USER_ID/GIT_REPO_ID"
keywords = ["OpenAPI", "OpenAPI-Generator", "API Reference"]
include = ["visier_api/py.typed"]

[tool.poetry.dependencies]
python = "^3.9"

urllib3 = ">= 2.1.0, < 3.0.0"
python-dateutil = ">= 2.8.2"
pydantic = ">= 2"
typing-extensions = ">= 4.7.1"

[tool.poetry.dev-dependencies]
pytest = ">= 7.2.1"
pytest-cov = ">= 2.8.1"
tox = ">= 3.9.0"
flake8 = ">= 4.0.0"
types-python-dateutil = ">= 2.8.19.14"
mypy = ">= 1.5"


[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"

[tool.pylint.'MESSAGES CONTROL']
extension-pkg-whitelist = "pydantic"

[tool.mypy]
files = [
"visier_api",
#"test", # auto-generated tests
"tests", # hand-written tests
]
# TODO: enable "strict" once all these individual checks are passing
# strict = true

# List from: https://mypy.readthedocs.io/en/stable/existing_code.html#introduce-stricter-options
warn_unused_configs = true
warn_redundant_casts = true
warn_unused_ignores = true

## Getting these passing should be easy
strict_equality = true
extra_checks = true

## Strongly recommend enabling this one as soon as you can
check_untyped_defs = true

## These shouldn't be too much additional work, but may be tricky to
## get passing if you use a lot of untyped libraries
disallow_subclassing_any = true
disallow_untyped_decorators = true
disallow_any_generics = true

### These next few are various gradations of forcing use of type annotations
#disallow_untyped_calls = true
#disallow_incomplete_defs = true
#disallow_untyped_defs = true
#
### This one isn't too hard to get passing, but return on investment is lower
#no_implicit_reexport = true
#
### This one can be tricky to get passing if you use a lot of untyped libraries
#warn_return_any = true

[[tool.mypy.overrides]]
module = [
"visier_api.configuration",
]
warn_unused_ignores = true
strict_equality = true
extra_checks = true
check_untyped_defs = true
disallow_subclassing_any = true
disallow_untyped_decorators = true
disallow_any_generics = true
disallow_untyped_calls = true
disallow_incomplete_defs = true
disallow_untyped_defs = true
no_implicit_reexport = true
warn_return_any = true
4 changes: 4 additions & 0 deletions src/visier_api/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
urllib3 >= 2.1.0, < 3.0.0
python_dateutil >= 2.8.2
pydantic >= 2
typing-extensions >= 4.7.1
2 changes: 2 additions & 0 deletions src/visier_api/setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[flake8]
max-line-length=99
51 changes: 51 additions & 0 deletions src/visier_api/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# coding: utf-8

"""
API Reference

Detailed API reference documentation for Visier APIs. Includes all endpoints, headers, path parameters, query parameters, request body schema, response schema, JSON request samples, and JSON response samples.

The version of the OpenAPI document: 22222222.99201.1892
Contact: alpine@visier.com
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
""" # noqa: E501


from setuptools import setup, find_packages # noqa: H301

# To install the library, run the following
#
# python setup.py install
#
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
NAME = "visier-api"
VERSION = "22222222.99201.1892.beta1"
PYTHON_REQUIRES = ">= 3.9"
REQUIRES = [
"urllib3 >= 2.1.0, < 3.0.0",
"python-dateutil >= 2.8.2",
"pydantic >= 2",
"typing-extensions >= 4.7.1",
]

setup(
name=NAME,
version=VERSION,
description="API Reference",
author="Visier",
author_email="alpine@visier.com",
url="",
keywords=["OpenAPI", "OpenAPI-Generator", "API Reference"],
install_requires=REQUIRES,
packages=find_packages(exclude=["test", "tests"]),
include_package_data=True,
license="Apache License, Version 2.0",
long_description_content_type='text/markdown',
long_description="""\
Detailed API reference documentation for Visier APIs. Includes all endpoints, headers, path parameters, query parameters, request body schema, response schema, JSON request samples, and JSON response samples.
""", # noqa: E501
package_data={"visier_api": ["py.typed"]},
)
6 changes: 6 additions & 0 deletions src/visier_api/test-requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
pytest >= 7.2.1
pytest-cov >= 2.8.1
tox >= 3.9.0
flake8 >= 4.0.0
types-python-dateutil >= 2.8.19.14
mypy >= 1.5
Empty file added src/visier_api/test/__init__.py
Empty file.
85 changes: 85 additions & 0 deletions src/visier_api/test/test_admin_all_tenants_status_apidto.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
# coding: utf-8

"""
API Reference

Detailed API reference documentation for Visier APIs. Includes all endpoints, headers, path parameters, query parameters, request body schema, response schema, JSON request samples, and JSON response samples.

The version of the OpenAPI document: 22222222.99201.1892
Contact: alpine@visier.com
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
""" # noqa: E501


import unittest

from visier_api.models.admin_all_tenants_status_apidto import AdminAllTenantsStatusAPIDTO

class TestAdminAllTenantsStatusAPIDTO(unittest.TestCase):
"""AdminAllTenantsStatusAPIDTO unit test stubs"""

def setUp(self):
pass

def tearDown(self):
pass

def make_instance(self, include_optional) -> AdminAllTenantsStatusAPIDTO:
"""Test AdminAllTenantsStatusAPIDTO
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `AdminAllTenantsStatusAPIDTO`
"""
model = AdminAllTenantsStatusAPIDTO()
if include_optional:
return AdminAllTenantsStatusAPIDTO(
tenants = [
visier_api.models.admin/tenant_detail_apidto.admin.TenantDetailAPIDTO(
tenant_code = '',
tenant_display_name = '',
status = '',
provision_date = '',
current_data_version = '',
data_version_date = '',
modules = [
visier_api.models.designer/tenant_module_dto.designer.TenantModuleDTO(
display_name = '',
symbol_name = '',
module_settings = None, )
],
industry_code = 56,
can_administer_other_tenants = True,
embeddable_domains = [
''
],
custom_properties = [
visier_api.models.admin/custom_tenant_property_dto.admin.CustomTenantPropertyDTO(
key = '',
value = '', )
],
sso_instance_issuers = [
''
],
vanity_url_name = '',
allowed_o_auth_idp_url_domains = [
''
], )
],
limit = 56,
start = 56
)
else:
return AdminAllTenantsStatusAPIDTO(
)
"""

def testAdminAllTenantsStatusAPIDTO(self):
"""Test AdminAllTenantsStatusAPIDTO"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)

if __name__ == '__main__':
unittest.main()
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# coding: utf-8

"""
API Reference

Detailed API reference documentation for Visier APIs. Includes all endpoints, headers, path parameters, query parameters, request body schema, response schema, JSON request samples, and JSON response samples.

The version of the OpenAPI document: 22222222.99201.1892
Contact: alpine@visier.com
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
""" # noqa: E501


import unittest

from visier_api.models.admin_assign_connector_credentials_by_tenant_response_dto import AdminAssignConnectorCredentialsByTenantResponseDTO

class TestAdminAssignConnectorCredentialsByTenantResponseDTO(unittest.TestCase):
"""AdminAssignConnectorCredentialsByTenantResponseDTO unit test stubs"""

def setUp(self):
pass

def tearDown(self):
pass

def make_instance(self, include_optional) -> AdminAssignConnectorCredentialsByTenantResponseDTO:
"""Test AdminAssignConnectorCredentialsByTenantResponseDTO
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `AdminAssignConnectorCredentialsByTenantResponseDTO`
"""
model = AdminAssignConnectorCredentialsByTenantResponseDTO()
if include_optional:
return AdminAssignConnectorCredentialsByTenantResponseDTO(
tenant_code = '',
connectors = [
visier_api.models.admin/assign_connector_with_credentials_response_dto.admin.AssignConnectorWithCredentialsResponseDTO(
connector = None,
credential = None, )
],
status = 'Unknown',
message = ''
)
else:
return AdminAssignConnectorCredentialsByTenantResponseDTO(
)
"""

def testAdminAssignConnectorCredentialsByTenantResponseDTO(self):
"""Test AdminAssignConnectorCredentialsByTenantResponseDTO"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)

if __name__ == '__main__':
unittest.main()
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# coding: utf-8

"""
API Reference

Detailed API reference documentation for Visier APIs. Includes all endpoints, headers, path parameters, query parameters, request body schema, response schema, JSON request samples, and JSON response samples.

The version of the OpenAPI document: 22222222.99201.1892
Contact: alpine@visier.com
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
""" # noqa: E501


import unittest

from visier_api.models.admin_assign_connector_credentials_response_dto import AdminAssignConnectorCredentialsResponseDTO

class TestAdminAssignConnectorCredentialsResponseDTO(unittest.TestCase):
"""AdminAssignConnectorCredentialsResponseDTO unit test stubs"""

def setUp(self):
pass

def tearDown(self):
pass

def make_instance(self, include_optional) -> AdminAssignConnectorCredentialsResponseDTO:
"""Test AdminAssignConnectorCredentialsResponseDTO
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `AdminAssignConnectorCredentialsResponseDTO`
"""
model = AdminAssignConnectorCredentialsResponseDTO()
if include_optional:
return AdminAssignConnectorCredentialsResponseDTO(
tenants = [
visier_api.models.admin/assign_connector_credentials_by_tenant_response_dto.admin.AssignConnectorCredentialsByTenantResponseDTO(
tenant_code = '',
connectors = [
visier_api.models.admin/assign_connector_with_credentials_response_dto.admin.AssignConnectorWithCredentialsResponseDTO(
connector = None,
credential = None, )
],
status = 'Unknown',
message = '', )
]
)
else:
return AdminAssignConnectorCredentialsResponseDTO(
)
"""

def testAdminAssignConnectorCredentialsResponseDTO(self):
"""Test AdminAssignConnectorCredentialsResponseDTO"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)

if __name__ == '__main__':
unittest.main()
Loading
Loading