Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto-generated SDK release-22222222.99201.1474 #81

Merged
merged 1 commit into from
Sep 6, 2024
Merged
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
  •  
  •  
  •  
18 changes: 18 additions & 0 deletions src/visier_api_administration/.openapi-generator-ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Ignore folders
docs/
.github/

# Ignore core library .py files
visier_api*/*.py
!visier_api*/__init__.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
385 changes: 385 additions & 0 deletions src/visier_api_administration/.openapi-generator/FILES

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/visier_api_administration/.openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
7.8.0
68 changes: 68 additions & 0 deletions src/visier_api_administration/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
[tool.poetry]
name = "visier_api_administration"
version = "22222222.99201.1474"
description = "Visier Administration APIs"
authors = ["OpenAPI Generator Community <[email protected]>"]
license = "Apache License, Version 2.0"
readme = "README.md"
repository = "https://github.com/GIT_USER_ID/GIT_REPO_ID"
keywords = ["OpenAPI", "OpenAPI-Generator", "Visier Administration APIs"]
include = ["visier_api_administration/py.typed"]

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

visier-api-core = "~= 22222222.99201.1474"

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


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

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

[tool.mypy]
files = [
"visier_api_administration",
#"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
strict_concatenate = 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
1 change: 1 addition & 0 deletions src/visier_api_administration/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
visier-api-core ~= 22222222.99201.1474
2 changes: 2 additions & 0 deletions src/visier_api_administration/setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[flake8]
max-line-length=99
47 changes: 47 additions & 0 deletions src/visier_api_administration/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# coding: utf-8

"""
Visier Administration APIs

Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.<br>**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint.

The version of the OpenAPI document: 22222222.99201.1474
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-administration"
VERSION = "22222222.99201.1474"
PYTHON_REQUIRES = ">=3.8"
REQUIRES = [
"visier-api-core ~= 22222222.99201.1474",
]

setup(
name=NAME,
version=VERSION,
description="Visier Administration APIs",
author="OpenAPI Generator community",
author_email="[email protected]",
url="",
keywords=["OpenAPI", "OpenAPI-Generator", "Visier Administration APIs"],
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="""\
Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.&lt;br&gt;**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the &#x60;ProjectID&#x60; request header to make changes in a project, if &#x60;ProjectID&#x60; is available for the API endpoint.
""", # noqa: E501
package_data={"visier_api_administration": ["py.typed"]},
)
5 changes: 5 additions & 0 deletions src/visier_api_administration/test-requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pytest~=7.1.3
pytest-cov>=2.8.1
pytest-randomly>=3.12.0
mypy>=1.4.1
types-python-dateutil>=2.8.19
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# coding: utf-8

"""
Visier Administration APIs

Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.<br>**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint.

The version of the OpenAPI document: 22222222.99201.1474
Generated by OpenAPI Generator (https://openapi-generator.tech)

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


import unittest

from visier_api_administration.models.accessible_tenant_profile_assignment_request_dto import AccessibleTenantProfileAssignmentRequestDTO

class TestAccessibleTenantProfileAssignmentRequestDTO(unittest.TestCase):
"""AccessibleTenantProfileAssignmentRequestDTO unit test stubs"""

def setUp(self):
pass

def tearDown(self):
pass

def make_instance(self, include_optional) -> AccessibleTenantProfileAssignmentRequestDTO:
"""Test AccessibleTenantProfileAssignmentRequestDTO
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 `AccessibleTenantProfileAssignmentRequestDTO`
"""
model = AccessibleTenantProfileAssignmentRequestDTO()
if include_optional:
return AccessibleTenantProfileAssignmentRequestDTO(
target_tenant_codes = [
visier_api_administration.models.target_tenant_code_dto.TargetTenantCodeDTO(
for_all_children = True,
tenant_code = '', )
],
target_user_ids = [
''
],
validity_end_time = '',
validity_start_time = ''
)
else:
return AccessibleTenantProfileAssignmentRequestDTO(
)
"""

def testAccessibleTenantProfileAssignmentRequestDTO(self):
"""Test AccessibleTenantProfileAssignmentRequestDTO"""
# 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,75 @@
# coding: utf-8

"""
Visier Administration APIs

Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.<br>**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint.

The version of the OpenAPI document: 22222222.99201.1474
Generated by OpenAPI Generator (https://openapi-generator.tech)

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


import unittest

from visier_api_administration.models.accessible_tenant_profile_assignment_response_dto import AccessibleTenantProfileAssignmentResponseDTO

class TestAccessibleTenantProfileAssignmentResponseDTO(unittest.TestCase):
"""AccessibleTenantProfileAssignmentResponseDTO unit test stubs"""

def setUp(self):
pass

def tearDown(self):
pass

def make_instance(self, include_optional) -> AccessibleTenantProfileAssignmentResponseDTO:
"""Test AccessibleTenantProfileAssignmentResponseDTO
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 `AccessibleTenantProfileAssignmentResponseDTO`
"""
model = AccessibleTenantProfileAssignmentResponseDTO()
if include_optional:
return AccessibleTenantProfileAssignmentResponseDTO(
bad_tenant_codes = [
visier_api_administration.models.tenant_code_error_dto.TenantCodeErrorDTO(
error = null,
for_all_children = True,
tenant_code = '', )
],
bad_user_ids = [
visier_api_administration.models.user_id_error_dto.UserIdErrorDTO(
error = null,
user_id = '', )
],
errors = True,
failed_assignments = [
visier_api_administration.models.failed_accessible_tenant_profile_assignment_dto.FailedAccessibleTenantProfileAssignmentDTO(
error = null,
for_all_children = True,
tenant_code = '',
user_id = '', )
],
successful_assignments = [
visier_api_administration.models.successful_accessible_tenant_profile_assignment_dto.SuccessfulAccessibleTenantProfileAssignmentDTO(
for_all_children = True,
tenant_code = '',
user_id = '', )
]
)
else:
return AccessibleTenantProfileAssignmentResponseDTO(
)
"""

def testAccessibleTenantProfileAssignmentResponseDTO(self):
"""Test AccessibleTenantProfileAssignmentResponseDTO"""
# 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,58 @@
# coding: utf-8

"""
Visier Administration APIs

Visier APIs for managing your tenant or tenants in Visier. You can programmatically manage user accounts in Visier, the profiles and permissions assigned to users, and to make changes in projects and publish projects to production. Administrating tenant users can use administration APIs to manage their analytic tenants and consolidated analytics tenants.<br>**Note:** If you submit API requests for changes that cause a project to publish to production (such as assigning permissions to users or updating permissions), each request is individually published to production, resulting in hundreds or thousands of production versions. We recommend that you use the `ProjectID` request header to make changes in a project, if `ProjectID` is available for the API endpoint.

The version of the OpenAPI document: 22222222.99201.1474
Generated by OpenAPI Generator (https://openapi-generator.tech)

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


import unittest

from visier_api_administration.models.accessible_tenant_profile_revoke_request_dto import AccessibleTenantProfileRevokeRequestDTO

class TestAccessibleTenantProfileRevokeRequestDTO(unittest.TestCase):
"""AccessibleTenantProfileRevokeRequestDTO unit test stubs"""

def setUp(self):
pass

def tearDown(self):
pass

def make_instance(self, include_optional) -> AccessibleTenantProfileRevokeRequestDTO:
"""Test AccessibleTenantProfileRevokeRequestDTO
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 `AccessibleTenantProfileRevokeRequestDTO`
"""
model = AccessibleTenantProfileRevokeRequestDTO()
if include_optional:
return AccessibleTenantProfileRevokeRequestDTO(
target_tenant_codes = [
visier_api_administration.models.target_tenant_code_dto.TargetTenantCodeDTO(
for_all_children = True,
tenant_code = '', )
],
target_user_ids = [
''
]
)
else:
return AccessibleTenantProfileRevokeRequestDTO(
)
"""

def testAccessibleTenantProfileRevokeRequestDTO(self):
"""Test AccessibleTenantProfileRevokeRequestDTO"""
# 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