zrok2-build-debugging 22.0.2000008__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- test/__init__.py +0 -0
- test/test_access201_response.py +52 -0
- test/test_access_request.py +54 -0
- test/test_access_summary.py +60 -0
- test/test_accesses_list.py +63 -0
- test/test_account_api.py +79 -0
- test/test_add_frontend_grant_request.py +52 -0
- test/test_add_namespace_frontend_mapping_request.py +53 -0
- test/test_add_namespace_grant_request.py +52 -0
- test/test_add_organization_member_request.py +53 -0
- test/test_admin_api.py +199 -0
- test/test_agent_api.py +85 -0
- test/test_auth_user.py +52 -0
- test/test_change_password_request.py +53 -0
- test/test_client_version_check_request.py +51 -0
- test/test_configuration.py +56 -0
- test/test_create_frontend201_response.py +51 -0
- test/test_create_frontend_request.py +55 -0
- test/test_create_identity201_response.py +52 -0
- test/test_create_identity_request.py +51 -0
- test/test_create_namespace201_response.py +51 -0
- test/test_create_namespace_request.py +54 -0
- test/test_create_organization201_response.py +51 -0
- test/test_create_organization_request.py +51 -0
- test/test_create_share_name_request.py +52 -0
- test/test_delete_identity_request.py +51 -0
- test/test_disable_request.py +51 -0
- test/test_enable_request.py +52 -0
- test/test_enroll200_response.py +51 -0
- test/test_enroll_request.py +51 -0
- test/test_environment.py +63 -0
- test/test_environment_and_resources.py +96 -0
- test/test_environment_api.py +43 -0
- test/test_environment_summary.py +60 -0
- test/test_environments_list.py +63 -0
- test/test_frontend.py +59 -0
- test/test_get_sparklines200_response.py +62 -0
- test/test_get_sparklines_request.py +57 -0
- test/test_invite_request.py +52 -0
- test/test_invite_token_generate_request.py +53 -0
- test/test_list_frontend_namespace_mappings200_response_inner.py +54 -0
- test/test_list_frontends200_response_inner.py +58 -0
- test/test_list_memberships200_response.py +56 -0
- test/test_list_memberships200_response_memberships_inner.py +53 -0
- test/test_list_namespaces200_response_inner.py +56 -0
- test/test_list_organization_members200_response.py +55 -0
- test/test_list_organization_members200_response_members_inner.py +52 -0
- test/test_list_organizations200_response.py +55 -0
- test/test_list_organizations200_response_organizations_inner.py +52 -0
- test/test_list_share_namespaces200_response_inner.py +53 -0
- test/test_login_request.py +52 -0
- test/test_metadata_api.py +145 -0
- test/test_metrics.py +59 -0
- test/test_metrics_sample.py +53 -0
- test/test_name.py +56 -0
- test/test_name_selection.py +52 -0
- test/test_overview.py +110 -0
- test/test_overview_names_inner.py +56 -0
- test/test_ping200_response.py +51 -0
- test/test_principal.py +55 -0
- test/test_regenerate_account_token200_response.py +51 -0
- test/test_regenerate_account_token_request.py +51 -0
- test/test_register_request.py +52 -0
- test/test_remote_access_request.py +60 -0
- test/test_remote_share200_response.py +54 -0
- test/test_remote_share_request.py +74 -0
- test/test_remote_status200_response.py +82 -0
- test/test_remote_status200_response_accesses_inner.py +62 -0
- test/test_remote_status200_response_shares_inner.py +64 -0
- test/test_remote_status200_response_shares_inner_failure.py +54 -0
- test/test_remote_unaccess_request.py +52 -0
- test/test_remote_unshare_request.py +52 -0
- test/test_remove_namespace_frontend_mapping_request.py +52 -0
- test/test_remove_organization_member_request.py +52 -0
- test/test_reset_password_request.py +52 -0
- test/test_share.py +67 -0
- test/test_share_api.py +103 -0
- test/test_share_http_healthcheck200_response.py +52 -0
- test/test_share_http_healthcheck_request.py +56 -0
- test/test_share_request.py +75 -0
- test/test_share_response.py +54 -0
- test/test_share_summary.py +62 -0
- test/test_shares_list.py +65 -0
- test/test_spark_data_sample.py +52 -0
- test/test_unaccess_request.py +53 -0
- test/test_unshare_request.py +52 -0
- test/test_update_access_request.py +53 -0
- test/test_update_frontend_request.py +55 -0
- test/test_update_namespace_request.py +55 -0
- test/test_update_share_name_request.py +53 -0
- test/test_update_share_request.py +57 -0
- test/test_verify200_response.py +51 -0
- test/test_verify_request.py +51 -0
- test/test_version_inventory200_response.py +51 -0
- zrok/__init__.py +4 -0
- zrok/_version.py +21 -0
- zrok/access.py +58 -0
- zrok/decor.py +33 -0
- zrok/dialer.py +10 -0
- zrok/environment/__init__.py +1 -0
- zrok/environment/dirs.py +32 -0
- zrok/environment/root.py +182 -0
- zrok/listener.py +29 -0
- zrok/model.py +75 -0
- zrok/overview.py +77 -0
- zrok/proxy.py +203 -0
- zrok/share.py +199 -0
- zrok2_build_debugging-22.0.2000008.dist-info/METADATA +24 -0
- zrok2_build_debugging-22.0.2000008.dist-info/RECORD +213 -0
- zrok2_build_debugging-22.0.2000008.dist-info/WHEEL +5 -0
- zrok2_build_debugging-22.0.2000008.dist-info/top_level.txt +3 -0
- zrok_api/__init__.py +231 -0
- zrok_api/api/__init__.py +10 -0
- zrok_api/api/account_api.py +2261 -0
- zrok_api/api/admin_api.py +7673 -0
- zrok_api/api/agent_api.py +2547 -0
- zrok_api/api/environment_api.py +589 -0
- zrok_api/api/metadata_api.py +5614 -0
- zrok_api/api/share_api.py +3321 -0
- zrok_api/api_client.py +801 -0
- zrok_api/api_response.py +21 -0
- zrok_api/configuration.py +602 -0
- zrok_api/exceptions.py +216 -0
- zrok_api/models/__init__.py +103 -0
- zrok_api/models/access201_response.py +89 -0
- zrok_api/models/access_request.py +93 -0
- zrok_api/models/access_summary.py +105 -0
- zrok_api/models/accesses_list.py +95 -0
- zrok_api/models/add_frontend_grant_request.py +89 -0
- zrok_api/models/add_namespace_frontend_mapping_request.py +91 -0
- zrok_api/models/add_namespace_grant_request.py +89 -0
- zrok_api/models/add_organization_member_request.py +91 -0
- zrok_api/models/auth_user.py +89 -0
- zrok_api/models/change_password_request.py +91 -0
- zrok_api/models/client_version_check_request.py +87 -0
- zrok_api/models/configuration.py +97 -0
- zrok_api/models/create_frontend201_response.py +87 -0
- zrok_api/models/create_frontend_request.py +105 -0
- zrok_api/models/create_identity201_response.py +89 -0
- zrok_api/models/create_identity_request.py +87 -0
- zrok_api/models/create_namespace201_response.py +87 -0
- zrok_api/models/create_namespace_request.py +93 -0
- zrok_api/models/create_organization201_response.py +87 -0
- zrok_api/models/create_organization_request.py +87 -0
- zrok_api/models/create_share_name_request.py +89 -0
- zrok_api/models/delete_identity_request.py +87 -0
- zrok_api/models/disable_request.py +87 -0
- zrok_api/models/enable_request.py +89 -0
- zrok_api/models/enroll200_response.py +87 -0
- zrok_api/models/enroll_request.py +87 -0
- zrok_api/models/environment.py +111 -0
- zrok_api/models/environment_and_resources.py +111 -0
- zrok_api/models/environment_summary.py +105 -0
- zrok_api/models/environments_list.py +95 -0
- zrok_api/models/frontend.py +103 -0
- zrok_api/models/get_sparklines200_response.py +95 -0
- zrok_api/models/get_sparklines_request.py +91 -0
- zrok_api/models/invite_request.py +89 -0
- zrok_api/models/invite_token_generate_request.py +87 -0
- zrok_api/models/list_frontend_namespace_mappings200_response_inner.py +93 -0
- zrok_api/models/list_frontends200_response_inner.py +101 -0
- zrok_api/models/list_memberships200_response.py +95 -0
- zrok_api/models/list_memberships200_response_memberships_inner.py +91 -0
- zrok_api/models/list_namespaces200_response_inner.py +97 -0
- zrok_api/models/list_organization_members200_response.py +95 -0
- zrok_api/models/list_organization_members200_response_members_inner.py +89 -0
- zrok_api/models/list_organizations200_response.py +95 -0
- zrok_api/models/list_organizations200_response_organizations_inner.py +89 -0
- zrok_api/models/list_share_namespaces200_response_inner.py +91 -0
- zrok_api/models/login_request.py +89 -0
- zrok_api/models/metrics.py +101 -0
- zrok_api/models/metrics_sample.py +91 -0
- zrok_api/models/name.py +97 -0
- zrok_api/models/name_selection.py +89 -0
- zrok_api/models/overview.py +117 -0
- zrok_api/models/overview_names_inner.py +97 -0
- zrok_api/models/ping200_response.py +87 -0
- zrok_api/models/principal.py +95 -0
- zrok_api/models/regenerate_account_token200_response.py +87 -0
- zrok_api/models/regenerate_account_token_request.py +87 -0
- zrok_api/models/register_request.py +89 -0
- zrok_api/models/remote_access_request.py +102 -0
- zrok_api/models/remote_share200_response.py +89 -0
- zrok_api/models/remote_share_request.py +141 -0
- zrok_api/models/remote_status200_response.py +105 -0
- zrok_api/models/remote_status200_response_accesses_inner.py +101 -0
- zrok_api/models/remote_status200_response_shares_inner.py +105 -0
- zrok_api/models/remote_status200_response_shares_inner_failure.py +93 -0
- zrok_api/models/remote_unaccess_request.py +89 -0
- zrok_api/models/remote_unshare_request.py +89 -0
- zrok_api/models/remove_namespace_frontend_mapping_request.py +89 -0
- zrok_api/models/remove_organization_member_request.py +89 -0
- zrok_api/models/reset_password_request.py +89 -0
- zrok_api/models/share.py +115 -0
- zrok_api/models/share_http_healthcheck200_response.py +89 -0
- zrok_api/models/share_http_healthcheck_request.py +97 -0
- zrok_api/models/share_request.py +157 -0
- zrok_api/models/share_response.py +89 -0
- zrok_api/models/share_summary.py +105 -0
- zrok_api/models/shares_list.py +95 -0
- zrok_api/models/spark_data_sample.py +89 -0
- zrok_api/models/unaccess_request.py +91 -0
- zrok_api/models/unshare_request.py +89 -0
- zrok_api/models/update_access_request.py +91 -0
- zrok_api/models/update_frontend_request.py +95 -0
- zrok_api/models/update_namespace_request.py +95 -0
- zrok_api/models/update_share_name_request.py +91 -0
- zrok_api/models/update_share_request.py +91 -0
- zrok_api/models/verify200_response.py +87 -0
- zrok_api/models/verify_request.py +87 -0
- zrok_api/models/version_inventory200_response.py +87 -0
- zrok_api/py.typed +0 -0
- zrok_api/rest.py +258 -0
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
zrok
|
|
5
|
+
|
|
6
|
+
zrok client access
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 2.0.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
import unittest
|
|
16
|
+
|
|
17
|
+
from zrok_api.models.share_http_healthcheck200_response import ShareHttpHealthcheck200Response
|
|
18
|
+
|
|
19
|
+
class TestShareHttpHealthcheck200Response(unittest.TestCase):
|
|
20
|
+
"""ShareHttpHealthcheck200Response unit test stubs"""
|
|
21
|
+
|
|
22
|
+
def setUp(self):
|
|
23
|
+
pass
|
|
24
|
+
|
|
25
|
+
def tearDown(self):
|
|
26
|
+
pass
|
|
27
|
+
|
|
28
|
+
def make_instance(self, include_optional) -> ShareHttpHealthcheck200Response:
|
|
29
|
+
"""Test ShareHttpHealthcheck200Response
|
|
30
|
+
include_optional is a boolean, when False only required
|
|
31
|
+
params are included, when True both required and
|
|
32
|
+
optional params are included """
|
|
33
|
+
# uncomment below to create an instance of `ShareHttpHealthcheck200Response`
|
|
34
|
+
"""
|
|
35
|
+
model = ShareHttpHealthcheck200Response()
|
|
36
|
+
if include_optional:
|
|
37
|
+
return ShareHttpHealthcheck200Response(
|
|
38
|
+
healthy = True,
|
|
39
|
+
error = ''
|
|
40
|
+
)
|
|
41
|
+
else:
|
|
42
|
+
return ShareHttpHealthcheck200Response(
|
|
43
|
+
)
|
|
44
|
+
"""
|
|
45
|
+
|
|
46
|
+
def testShareHttpHealthcheck200Response(self):
|
|
47
|
+
"""Test ShareHttpHealthcheck200Response"""
|
|
48
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
49
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
50
|
+
|
|
51
|
+
if __name__ == '__main__':
|
|
52
|
+
unittest.main()
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
zrok
|
|
5
|
+
|
|
6
|
+
zrok client access
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 2.0.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
import unittest
|
|
16
|
+
|
|
17
|
+
from zrok_api.models.share_http_healthcheck_request import ShareHttpHealthcheckRequest
|
|
18
|
+
|
|
19
|
+
class TestShareHttpHealthcheckRequest(unittest.TestCase):
|
|
20
|
+
"""ShareHttpHealthcheckRequest unit test stubs"""
|
|
21
|
+
|
|
22
|
+
def setUp(self):
|
|
23
|
+
pass
|
|
24
|
+
|
|
25
|
+
def tearDown(self):
|
|
26
|
+
pass
|
|
27
|
+
|
|
28
|
+
def make_instance(self, include_optional) -> ShareHttpHealthcheckRequest:
|
|
29
|
+
"""Test ShareHttpHealthcheckRequest
|
|
30
|
+
include_optional is a boolean, when False only required
|
|
31
|
+
params are included, when True both required and
|
|
32
|
+
optional params are included """
|
|
33
|
+
# uncomment below to create an instance of `ShareHttpHealthcheckRequest`
|
|
34
|
+
"""
|
|
35
|
+
model = ShareHttpHealthcheckRequest()
|
|
36
|
+
if include_optional:
|
|
37
|
+
return ShareHttpHealthcheckRequest(
|
|
38
|
+
env_zid = '',
|
|
39
|
+
share_token = '',
|
|
40
|
+
http_verb = '',
|
|
41
|
+
endpoint = '',
|
|
42
|
+
expected_http_response = 1.337,
|
|
43
|
+
timeout_ms = 1.337
|
|
44
|
+
)
|
|
45
|
+
else:
|
|
46
|
+
return ShareHttpHealthcheckRequest(
|
|
47
|
+
)
|
|
48
|
+
"""
|
|
49
|
+
|
|
50
|
+
def testShareHttpHealthcheckRequest(self):
|
|
51
|
+
"""Test ShareHttpHealthcheckRequest"""
|
|
52
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
53
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
54
|
+
|
|
55
|
+
if __name__ == '__main__':
|
|
56
|
+
unittest.main()
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
zrok
|
|
5
|
+
|
|
6
|
+
zrok client access
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 2.0.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
import unittest
|
|
16
|
+
|
|
17
|
+
from zrok_api.models.share_request import ShareRequest
|
|
18
|
+
|
|
19
|
+
class TestShareRequest(unittest.TestCase):
|
|
20
|
+
"""ShareRequest unit test stubs"""
|
|
21
|
+
|
|
22
|
+
def setUp(self):
|
|
23
|
+
pass
|
|
24
|
+
|
|
25
|
+
def tearDown(self):
|
|
26
|
+
pass
|
|
27
|
+
|
|
28
|
+
def make_instance(self, include_optional) -> ShareRequest:
|
|
29
|
+
"""Test ShareRequest
|
|
30
|
+
include_optional is a boolean, when False only required
|
|
31
|
+
params are included, when True both required and
|
|
32
|
+
optional params are included """
|
|
33
|
+
# uncomment below to create an instance of `ShareRequest`
|
|
34
|
+
"""
|
|
35
|
+
model = ShareRequest()
|
|
36
|
+
if include_optional:
|
|
37
|
+
return ShareRequest(
|
|
38
|
+
env_zid = '',
|
|
39
|
+
share_mode = 'public',
|
|
40
|
+
name_selections = [
|
|
41
|
+
zrok_api.models.name_selection.nameSelection(
|
|
42
|
+
namespace_token = '',
|
|
43
|
+
name = '', )
|
|
44
|
+
],
|
|
45
|
+
private_share_token = '',
|
|
46
|
+
backend_mode = 'proxy',
|
|
47
|
+
target = '',
|
|
48
|
+
auth_scheme = '',
|
|
49
|
+
basic_auth_users = [
|
|
50
|
+
zrok_api.models.auth_user.authUser(
|
|
51
|
+
username = '',
|
|
52
|
+
password = '', )
|
|
53
|
+
],
|
|
54
|
+
oauth_provider = '',
|
|
55
|
+
oauth_email_domains = [
|
|
56
|
+
''
|
|
57
|
+
],
|
|
58
|
+
oauth_refresh_interval = '',
|
|
59
|
+
permission_mode = 'open',
|
|
60
|
+
access_grants = [
|
|
61
|
+
''
|
|
62
|
+
]
|
|
63
|
+
)
|
|
64
|
+
else:
|
|
65
|
+
return ShareRequest(
|
|
66
|
+
)
|
|
67
|
+
"""
|
|
68
|
+
|
|
69
|
+
def testShareRequest(self):
|
|
70
|
+
"""Test ShareRequest"""
|
|
71
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
72
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
73
|
+
|
|
74
|
+
if __name__ == '__main__':
|
|
75
|
+
unittest.main()
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
zrok
|
|
5
|
+
|
|
6
|
+
zrok client access
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 2.0.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
import unittest
|
|
16
|
+
|
|
17
|
+
from zrok_api.models.share_response import ShareResponse
|
|
18
|
+
|
|
19
|
+
class TestShareResponse(unittest.TestCase):
|
|
20
|
+
"""ShareResponse unit test stubs"""
|
|
21
|
+
|
|
22
|
+
def setUp(self):
|
|
23
|
+
pass
|
|
24
|
+
|
|
25
|
+
def tearDown(self):
|
|
26
|
+
pass
|
|
27
|
+
|
|
28
|
+
def make_instance(self, include_optional) -> ShareResponse:
|
|
29
|
+
"""Test ShareResponse
|
|
30
|
+
include_optional is a boolean, when False only required
|
|
31
|
+
params are included, when True both required and
|
|
32
|
+
optional params are included """
|
|
33
|
+
# uncomment below to create an instance of `ShareResponse`
|
|
34
|
+
"""
|
|
35
|
+
model = ShareResponse()
|
|
36
|
+
if include_optional:
|
|
37
|
+
return ShareResponse(
|
|
38
|
+
frontend_proxy_endpoints = [
|
|
39
|
+
''
|
|
40
|
+
],
|
|
41
|
+
share_token = ''
|
|
42
|
+
)
|
|
43
|
+
else:
|
|
44
|
+
return ShareResponse(
|
|
45
|
+
)
|
|
46
|
+
"""
|
|
47
|
+
|
|
48
|
+
def testShareResponse(self):
|
|
49
|
+
"""Test ShareResponse"""
|
|
50
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
51
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
52
|
+
|
|
53
|
+
if __name__ == '__main__':
|
|
54
|
+
unittest.main()
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
zrok
|
|
5
|
+
|
|
6
|
+
zrok client access
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 2.0.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
import unittest
|
|
16
|
+
|
|
17
|
+
from zrok_api.models.share_summary import ShareSummary
|
|
18
|
+
|
|
19
|
+
class TestShareSummary(unittest.TestCase):
|
|
20
|
+
"""ShareSummary unit test stubs"""
|
|
21
|
+
|
|
22
|
+
def setUp(self):
|
|
23
|
+
pass
|
|
24
|
+
|
|
25
|
+
def tearDown(self):
|
|
26
|
+
pass
|
|
27
|
+
|
|
28
|
+
def make_instance(self, include_optional) -> ShareSummary:
|
|
29
|
+
"""Test ShareSummary
|
|
30
|
+
include_optional is a boolean, when False only required
|
|
31
|
+
params are included, when True both required and
|
|
32
|
+
optional params are included """
|
|
33
|
+
# uncomment below to create an instance of `ShareSummary`
|
|
34
|
+
"""
|
|
35
|
+
model = ShareSummary()
|
|
36
|
+
if include_optional:
|
|
37
|
+
return ShareSummary(
|
|
38
|
+
share_token = '',
|
|
39
|
+
z_id = '',
|
|
40
|
+
env_zid = '',
|
|
41
|
+
share_mode = '',
|
|
42
|
+
backend_mode = '',
|
|
43
|
+
frontend_endpoints = [
|
|
44
|
+
''
|
|
45
|
+
],
|
|
46
|
+
target = '',
|
|
47
|
+
limited = True,
|
|
48
|
+
created_at = 56,
|
|
49
|
+
updated_at = 56
|
|
50
|
+
)
|
|
51
|
+
else:
|
|
52
|
+
return ShareSummary(
|
|
53
|
+
)
|
|
54
|
+
"""
|
|
55
|
+
|
|
56
|
+
def testShareSummary(self):
|
|
57
|
+
"""Test ShareSummary"""
|
|
58
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
59
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
60
|
+
|
|
61
|
+
if __name__ == '__main__':
|
|
62
|
+
unittest.main()
|
test/test_shares_list.py
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
zrok
|
|
5
|
+
|
|
6
|
+
zrok client access
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 2.0.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
import unittest
|
|
16
|
+
|
|
17
|
+
from zrok_api.models.shares_list import SharesList
|
|
18
|
+
|
|
19
|
+
class TestSharesList(unittest.TestCase):
|
|
20
|
+
"""SharesList unit test stubs"""
|
|
21
|
+
|
|
22
|
+
def setUp(self):
|
|
23
|
+
pass
|
|
24
|
+
|
|
25
|
+
def tearDown(self):
|
|
26
|
+
pass
|
|
27
|
+
|
|
28
|
+
def make_instance(self, include_optional) -> SharesList:
|
|
29
|
+
"""Test SharesList
|
|
30
|
+
include_optional is a boolean, when False only required
|
|
31
|
+
params are included, when True both required and
|
|
32
|
+
optional params are included """
|
|
33
|
+
# uncomment below to create an instance of `SharesList`
|
|
34
|
+
"""
|
|
35
|
+
model = SharesList()
|
|
36
|
+
if include_optional:
|
|
37
|
+
return SharesList(
|
|
38
|
+
shares = [
|
|
39
|
+
zrok_api.models.share_summary.shareSummary(
|
|
40
|
+
share_token = '',
|
|
41
|
+
z_id = '',
|
|
42
|
+
env_zid = '',
|
|
43
|
+
share_mode = '',
|
|
44
|
+
backend_mode = '',
|
|
45
|
+
frontend_endpoints = [
|
|
46
|
+
''
|
|
47
|
+
],
|
|
48
|
+
target = '',
|
|
49
|
+
limited = True,
|
|
50
|
+
created_at = 56,
|
|
51
|
+
updated_at = 56, )
|
|
52
|
+
]
|
|
53
|
+
)
|
|
54
|
+
else:
|
|
55
|
+
return SharesList(
|
|
56
|
+
)
|
|
57
|
+
"""
|
|
58
|
+
|
|
59
|
+
def testSharesList(self):
|
|
60
|
+
"""Test SharesList"""
|
|
61
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
62
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
63
|
+
|
|
64
|
+
if __name__ == '__main__':
|
|
65
|
+
unittest.main()
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
zrok
|
|
5
|
+
|
|
6
|
+
zrok client access
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 2.0.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
import unittest
|
|
16
|
+
|
|
17
|
+
from zrok_api.models.spark_data_sample import SparkDataSample
|
|
18
|
+
|
|
19
|
+
class TestSparkDataSample(unittest.TestCase):
|
|
20
|
+
"""SparkDataSample unit test stubs"""
|
|
21
|
+
|
|
22
|
+
def setUp(self):
|
|
23
|
+
pass
|
|
24
|
+
|
|
25
|
+
def tearDown(self):
|
|
26
|
+
pass
|
|
27
|
+
|
|
28
|
+
def make_instance(self, include_optional) -> SparkDataSample:
|
|
29
|
+
"""Test SparkDataSample
|
|
30
|
+
include_optional is a boolean, when False only required
|
|
31
|
+
params are included, when True both required and
|
|
32
|
+
optional params are included """
|
|
33
|
+
# uncomment below to create an instance of `SparkDataSample`
|
|
34
|
+
"""
|
|
35
|
+
model = SparkDataSample()
|
|
36
|
+
if include_optional:
|
|
37
|
+
return SparkDataSample(
|
|
38
|
+
rx = 1.337,
|
|
39
|
+
tx = 1.337
|
|
40
|
+
)
|
|
41
|
+
else:
|
|
42
|
+
return SparkDataSample(
|
|
43
|
+
)
|
|
44
|
+
"""
|
|
45
|
+
|
|
46
|
+
def testSparkDataSample(self):
|
|
47
|
+
"""Test SparkDataSample"""
|
|
48
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
49
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
50
|
+
|
|
51
|
+
if __name__ == '__main__':
|
|
52
|
+
unittest.main()
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
zrok
|
|
5
|
+
|
|
6
|
+
zrok client access
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 2.0.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
import unittest
|
|
16
|
+
|
|
17
|
+
from zrok_api.models.unaccess_request import UnaccessRequest
|
|
18
|
+
|
|
19
|
+
class TestUnaccessRequest(unittest.TestCase):
|
|
20
|
+
"""UnaccessRequest unit test stubs"""
|
|
21
|
+
|
|
22
|
+
def setUp(self):
|
|
23
|
+
pass
|
|
24
|
+
|
|
25
|
+
def tearDown(self):
|
|
26
|
+
pass
|
|
27
|
+
|
|
28
|
+
def make_instance(self, include_optional) -> UnaccessRequest:
|
|
29
|
+
"""Test UnaccessRequest
|
|
30
|
+
include_optional is a boolean, when False only required
|
|
31
|
+
params are included, when True both required and
|
|
32
|
+
optional params are included """
|
|
33
|
+
# uncomment below to create an instance of `UnaccessRequest`
|
|
34
|
+
"""
|
|
35
|
+
model = UnaccessRequest()
|
|
36
|
+
if include_optional:
|
|
37
|
+
return UnaccessRequest(
|
|
38
|
+
frontend_token = '',
|
|
39
|
+
env_zid = '',
|
|
40
|
+
share_token = ''
|
|
41
|
+
)
|
|
42
|
+
else:
|
|
43
|
+
return UnaccessRequest(
|
|
44
|
+
)
|
|
45
|
+
"""
|
|
46
|
+
|
|
47
|
+
def testUnaccessRequest(self):
|
|
48
|
+
"""Test UnaccessRequest"""
|
|
49
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
50
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
51
|
+
|
|
52
|
+
if __name__ == '__main__':
|
|
53
|
+
unittest.main()
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
zrok
|
|
5
|
+
|
|
6
|
+
zrok client access
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 2.0.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
import unittest
|
|
16
|
+
|
|
17
|
+
from zrok_api.models.unshare_request import UnshareRequest
|
|
18
|
+
|
|
19
|
+
class TestUnshareRequest(unittest.TestCase):
|
|
20
|
+
"""UnshareRequest unit test stubs"""
|
|
21
|
+
|
|
22
|
+
def setUp(self):
|
|
23
|
+
pass
|
|
24
|
+
|
|
25
|
+
def tearDown(self):
|
|
26
|
+
pass
|
|
27
|
+
|
|
28
|
+
def make_instance(self, include_optional) -> UnshareRequest:
|
|
29
|
+
"""Test UnshareRequest
|
|
30
|
+
include_optional is a boolean, when False only required
|
|
31
|
+
params are included, when True both required and
|
|
32
|
+
optional params are included """
|
|
33
|
+
# uncomment below to create an instance of `UnshareRequest`
|
|
34
|
+
"""
|
|
35
|
+
model = UnshareRequest()
|
|
36
|
+
if include_optional:
|
|
37
|
+
return UnshareRequest(
|
|
38
|
+
env_zid = '',
|
|
39
|
+
share_token = ''
|
|
40
|
+
)
|
|
41
|
+
else:
|
|
42
|
+
return UnshareRequest(
|
|
43
|
+
)
|
|
44
|
+
"""
|
|
45
|
+
|
|
46
|
+
def testUnshareRequest(self):
|
|
47
|
+
"""Test UnshareRequest"""
|
|
48
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
49
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
50
|
+
|
|
51
|
+
if __name__ == '__main__':
|
|
52
|
+
unittest.main()
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
zrok
|
|
5
|
+
|
|
6
|
+
zrok client access
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 2.0.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
import unittest
|
|
16
|
+
|
|
17
|
+
from zrok_api.models.update_access_request import UpdateAccessRequest
|
|
18
|
+
|
|
19
|
+
class TestUpdateAccessRequest(unittest.TestCase):
|
|
20
|
+
"""UpdateAccessRequest unit test stubs"""
|
|
21
|
+
|
|
22
|
+
def setUp(self):
|
|
23
|
+
pass
|
|
24
|
+
|
|
25
|
+
def tearDown(self):
|
|
26
|
+
pass
|
|
27
|
+
|
|
28
|
+
def make_instance(self, include_optional) -> UpdateAccessRequest:
|
|
29
|
+
"""Test UpdateAccessRequest
|
|
30
|
+
include_optional is a boolean, when False only required
|
|
31
|
+
params are included, when True both required and
|
|
32
|
+
optional params are included """
|
|
33
|
+
# uncomment below to create an instance of `UpdateAccessRequest`
|
|
34
|
+
"""
|
|
35
|
+
model = UpdateAccessRequest()
|
|
36
|
+
if include_optional:
|
|
37
|
+
return UpdateAccessRequest(
|
|
38
|
+
frontend_token = '',
|
|
39
|
+
bind_address = '',
|
|
40
|
+
description = ''
|
|
41
|
+
)
|
|
42
|
+
else:
|
|
43
|
+
return UpdateAccessRequest(
|
|
44
|
+
)
|
|
45
|
+
"""
|
|
46
|
+
|
|
47
|
+
def testUpdateAccessRequest(self):
|
|
48
|
+
"""Test UpdateAccessRequest"""
|
|
49
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
50
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
51
|
+
|
|
52
|
+
if __name__ == '__main__':
|
|
53
|
+
unittest.main()
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
zrok
|
|
5
|
+
|
|
6
|
+
zrok client access
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 2.0.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
import unittest
|
|
16
|
+
|
|
17
|
+
from zrok_api.models.update_frontend_request import UpdateFrontendRequest
|
|
18
|
+
|
|
19
|
+
class TestUpdateFrontendRequest(unittest.TestCase):
|
|
20
|
+
"""UpdateFrontendRequest unit test stubs"""
|
|
21
|
+
|
|
22
|
+
def setUp(self):
|
|
23
|
+
pass
|
|
24
|
+
|
|
25
|
+
def tearDown(self):
|
|
26
|
+
pass
|
|
27
|
+
|
|
28
|
+
def make_instance(self, include_optional) -> UpdateFrontendRequest:
|
|
29
|
+
"""Test UpdateFrontendRequest
|
|
30
|
+
include_optional is a boolean, when False only required
|
|
31
|
+
params are included, when True both required and
|
|
32
|
+
optional params are included """
|
|
33
|
+
# uncomment below to create an instance of `UpdateFrontendRequest`
|
|
34
|
+
"""
|
|
35
|
+
model = UpdateFrontendRequest()
|
|
36
|
+
if include_optional:
|
|
37
|
+
return UpdateFrontendRequest(
|
|
38
|
+
frontend_token = '',
|
|
39
|
+
public_name = '',
|
|
40
|
+
url_template = '',
|
|
41
|
+
dynamic = True,
|
|
42
|
+
dynamic_set = True
|
|
43
|
+
)
|
|
44
|
+
else:
|
|
45
|
+
return UpdateFrontendRequest(
|
|
46
|
+
)
|
|
47
|
+
"""
|
|
48
|
+
|
|
49
|
+
def testUpdateFrontendRequest(self):
|
|
50
|
+
"""Test UpdateFrontendRequest"""
|
|
51
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
52
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
53
|
+
|
|
54
|
+
if __name__ == '__main__':
|
|
55
|
+
unittest.main()
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
zrok
|
|
5
|
+
|
|
6
|
+
zrok client access
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 2.0.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
import unittest
|
|
16
|
+
|
|
17
|
+
from zrok_api.models.update_namespace_request import UpdateNamespaceRequest
|
|
18
|
+
|
|
19
|
+
class TestUpdateNamespaceRequest(unittest.TestCase):
|
|
20
|
+
"""UpdateNamespaceRequest unit test stubs"""
|
|
21
|
+
|
|
22
|
+
def setUp(self):
|
|
23
|
+
pass
|
|
24
|
+
|
|
25
|
+
def tearDown(self):
|
|
26
|
+
pass
|
|
27
|
+
|
|
28
|
+
def make_instance(self, include_optional) -> UpdateNamespaceRequest:
|
|
29
|
+
"""Test UpdateNamespaceRequest
|
|
30
|
+
include_optional is a boolean, when False only required
|
|
31
|
+
params are included, when True both required and
|
|
32
|
+
optional params are included """
|
|
33
|
+
# uncomment below to create an instance of `UpdateNamespaceRequest`
|
|
34
|
+
"""
|
|
35
|
+
model = UpdateNamespaceRequest()
|
|
36
|
+
if include_optional:
|
|
37
|
+
return UpdateNamespaceRequest(
|
|
38
|
+
namespace_token = '',
|
|
39
|
+
name = '',
|
|
40
|
+
description = '',
|
|
41
|
+
open = True,
|
|
42
|
+
open_set = True
|
|
43
|
+
)
|
|
44
|
+
else:
|
|
45
|
+
return UpdateNamespaceRequest(
|
|
46
|
+
)
|
|
47
|
+
"""
|
|
48
|
+
|
|
49
|
+
def testUpdateNamespaceRequest(self):
|
|
50
|
+
"""Test UpdateNamespaceRequest"""
|
|
51
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
52
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
53
|
+
|
|
54
|
+
if __name__ == '__main__':
|
|
55
|
+
unittest.main()
|