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.
Files changed (213) hide show
  1. test/__init__.py +0 -0
  2. test/test_access201_response.py +52 -0
  3. test/test_access_request.py +54 -0
  4. test/test_access_summary.py +60 -0
  5. test/test_accesses_list.py +63 -0
  6. test/test_account_api.py +79 -0
  7. test/test_add_frontend_grant_request.py +52 -0
  8. test/test_add_namespace_frontend_mapping_request.py +53 -0
  9. test/test_add_namespace_grant_request.py +52 -0
  10. test/test_add_organization_member_request.py +53 -0
  11. test/test_admin_api.py +199 -0
  12. test/test_agent_api.py +85 -0
  13. test/test_auth_user.py +52 -0
  14. test/test_change_password_request.py +53 -0
  15. test/test_client_version_check_request.py +51 -0
  16. test/test_configuration.py +56 -0
  17. test/test_create_frontend201_response.py +51 -0
  18. test/test_create_frontend_request.py +55 -0
  19. test/test_create_identity201_response.py +52 -0
  20. test/test_create_identity_request.py +51 -0
  21. test/test_create_namespace201_response.py +51 -0
  22. test/test_create_namespace_request.py +54 -0
  23. test/test_create_organization201_response.py +51 -0
  24. test/test_create_organization_request.py +51 -0
  25. test/test_create_share_name_request.py +52 -0
  26. test/test_delete_identity_request.py +51 -0
  27. test/test_disable_request.py +51 -0
  28. test/test_enable_request.py +52 -0
  29. test/test_enroll200_response.py +51 -0
  30. test/test_enroll_request.py +51 -0
  31. test/test_environment.py +63 -0
  32. test/test_environment_and_resources.py +96 -0
  33. test/test_environment_api.py +43 -0
  34. test/test_environment_summary.py +60 -0
  35. test/test_environments_list.py +63 -0
  36. test/test_frontend.py +59 -0
  37. test/test_get_sparklines200_response.py +62 -0
  38. test/test_get_sparklines_request.py +57 -0
  39. test/test_invite_request.py +52 -0
  40. test/test_invite_token_generate_request.py +53 -0
  41. test/test_list_frontend_namespace_mappings200_response_inner.py +54 -0
  42. test/test_list_frontends200_response_inner.py +58 -0
  43. test/test_list_memberships200_response.py +56 -0
  44. test/test_list_memberships200_response_memberships_inner.py +53 -0
  45. test/test_list_namespaces200_response_inner.py +56 -0
  46. test/test_list_organization_members200_response.py +55 -0
  47. test/test_list_organization_members200_response_members_inner.py +52 -0
  48. test/test_list_organizations200_response.py +55 -0
  49. test/test_list_organizations200_response_organizations_inner.py +52 -0
  50. test/test_list_share_namespaces200_response_inner.py +53 -0
  51. test/test_login_request.py +52 -0
  52. test/test_metadata_api.py +145 -0
  53. test/test_metrics.py +59 -0
  54. test/test_metrics_sample.py +53 -0
  55. test/test_name.py +56 -0
  56. test/test_name_selection.py +52 -0
  57. test/test_overview.py +110 -0
  58. test/test_overview_names_inner.py +56 -0
  59. test/test_ping200_response.py +51 -0
  60. test/test_principal.py +55 -0
  61. test/test_regenerate_account_token200_response.py +51 -0
  62. test/test_regenerate_account_token_request.py +51 -0
  63. test/test_register_request.py +52 -0
  64. test/test_remote_access_request.py +60 -0
  65. test/test_remote_share200_response.py +54 -0
  66. test/test_remote_share_request.py +74 -0
  67. test/test_remote_status200_response.py +82 -0
  68. test/test_remote_status200_response_accesses_inner.py +62 -0
  69. test/test_remote_status200_response_shares_inner.py +64 -0
  70. test/test_remote_status200_response_shares_inner_failure.py +54 -0
  71. test/test_remote_unaccess_request.py +52 -0
  72. test/test_remote_unshare_request.py +52 -0
  73. test/test_remove_namespace_frontend_mapping_request.py +52 -0
  74. test/test_remove_organization_member_request.py +52 -0
  75. test/test_reset_password_request.py +52 -0
  76. test/test_share.py +67 -0
  77. test/test_share_api.py +103 -0
  78. test/test_share_http_healthcheck200_response.py +52 -0
  79. test/test_share_http_healthcheck_request.py +56 -0
  80. test/test_share_request.py +75 -0
  81. test/test_share_response.py +54 -0
  82. test/test_share_summary.py +62 -0
  83. test/test_shares_list.py +65 -0
  84. test/test_spark_data_sample.py +52 -0
  85. test/test_unaccess_request.py +53 -0
  86. test/test_unshare_request.py +52 -0
  87. test/test_update_access_request.py +53 -0
  88. test/test_update_frontend_request.py +55 -0
  89. test/test_update_namespace_request.py +55 -0
  90. test/test_update_share_name_request.py +53 -0
  91. test/test_update_share_request.py +57 -0
  92. test/test_verify200_response.py +51 -0
  93. test/test_verify_request.py +51 -0
  94. test/test_version_inventory200_response.py +51 -0
  95. zrok/__init__.py +4 -0
  96. zrok/_version.py +21 -0
  97. zrok/access.py +58 -0
  98. zrok/decor.py +33 -0
  99. zrok/dialer.py +10 -0
  100. zrok/environment/__init__.py +1 -0
  101. zrok/environment/dirs.py +32 -0
  102. zrok/environment/root.py +182 -0
  103. zrok/listener.py +29 -0
  104. zrok/model.py +75 -0
  105. zrok/overview.py +77 -0
  106. zrok/proxy.py +203 -0
  107. zrok/share.py +199 -0
  108. zrok2_build_debugging-22.0.2000008.dist-info/METADATA +24 -0
  109. zrok2_build_debugging-22.0.2000008.dist-info/RECORD +213 -0
  110. zrok2_build_debugging-22.0.2000008.dist-info/WHEEL +5 -0
  111. zrok2_build_debugging-22.0.2000008.dist-info/top_level.txt +3 -0
  112. zrok_api/__init__.py +231 -0
  113. zrok_api/api/__init__.py +10 -0
  114. zrok_api/api/account_api.py +2261 -0
  115. zrok_api/api/admin_api.py +7673 -0
  116. zrok_api/api/agent_api.py +2547 -0
  117. zrok_api/api/environment_api.py +589 -0
  118. zrok_api/api/metadata_api.py +5614 -0
  119. zrok_api/api/share_api.py +3321 -0
  120. zrok_api/api_client.py +801 -0
  121. zrok_api/api_response.py +21 -0
  122. zrok_api/configuration.py +602 -0
  123. zrok_api/exceptions.py +216 -0
  124. zrok_api/models/__init__.py +103 -0
  125. zrok_api/models/access201_response.py +89 -0
  126. zrok_api/models/access_request.py +93 -0
  127. zrok_api/models/access_summary.py +105 -0
  128. zrok_api/models/accesses_list.py +95 -0
  129. zrok_api/models/add_frontend_grant_request.py +89 -0
  130. zrok_api/models/add_namespace_frontend_mapping_request.py +91 -0
  131. zrok_api/models/add_namespace_grant_request.py +89 -0
  132. zrok_api/models/add_organization_member_request.py +91 -0
  133. zrok_api/models/auth_user.py +89 -0
  134. zrok_api/models/change_password_request.py +91 -0
  135. zrok_api/models/client_version_check_request.py +87 -0
  136. zrok_api/models/configuration.py +97 -0
  137. zrok_api/models/create_frontend201_response.py +87 -0
  138. zrok_api/models/create_frontend_request.py +105 -0
  139. zrok_api/models/create_identity201_response.py +89 -0
  140. zrok_api/models/create_identity_request.py +87 -0
  141. zrok_api/models/create_namespace201_response.py +87 -0
  142. zrok_api/models/create_namespace_request.py +93 -0
  143. zrok_api/models/create_organization201_response.py +87 -0
  144. zrok_api/models/create_organization_request.py +87 -0
  145. zrok_api/models/create_share_name_request.py +89 -0
  146. zrok_api/models/delete_identity_request.py +87 -0
  147. zrok_api/models/disable_request.py +87 -0
  148. zrok_api/models/enable_request.py +89 -0
  149. zrok_api/models/enroll200_response.py +87 -0
  150. zrok_api/models/enroll_request.py +87 -0
  151. zrok_api/models/environment.py +111 -0
  152. zrok_api/models/environment_and_resources.py +111 -0
  153. zrok_api/models/environment_summary.py +105 -0
  154. zrok_api/models/environments_list.py +95 -0
  155. zrok_api/models/frontend.py +103 -0
  156. zrok_api/models/get_sparklines200_response.py +95 -0
  157. zrok_api/models/get_sparklines_request.py +91 -0
  158. zrok_api/models/invite_request.py +89 -0
  159. zrok_api/models/invite_token_generate_request.py +87 -0
  160. zrok_api/models/list_frontend_namespace_mappings200_response_inner.py +93 -0
  161. zrok_api/models/list_frontends200_response_inner.py +101 -0
  162. zrok_api/models/list_memberships200_response.py +95 -0
  163. zrok_api/models/list_memberships200_response_memberships_inner.py +91 -0
  164. zrok_api/models/list_namespaces200_response_inner.py +97 -0
  165. zrok_api/models/list_organization_members200_response.py +95 -0
  166. zrok_api/models/list_organization_members200_response_members_inner.py +89 -0
  167. zrok_api/models/list_organizations200_response.py +95 -0
  168. zrok_api/models/list_organizations200_response_organizations_inner.py +89 -0
  169. zrok_api/models/list_share_namespaces200_response_inner.py +91 -0
  170. zrok_api/models/login_request.py +89 -0
  171. zrok_api/models/metrics.py +101 -0
  172. zrok_api/models/metrics_sample.py +91 -0
  173. zrok_api/models/name.py +97 -0
  174. zrok_api/models/name_selection.py +89 -0
  175. zrok_api/models/overview.py +117 -0
  176. zrok_api/models/overview_names_inner.py +97 -0
  177. zrok_api/models/ping200_response.py +87 -0
  178. zrok_api/models/principal.py +95 -0
  179. zrok_api/models/regenerate_account_token200_response.py +87 -0
  180. zrok_api/models/regenerate_account_token_request.py +87 -0
  181. zrok_api/models/register_request.py +89 -0
  182. zrok_api/models/remote_access_request.py +102 -0
  183. zrok_api/models/remote_share200_response.py +89 -0
  184. zrok_api/models/remote_share_request.py +141 -0
  185. zrok_api/models/remote_status200_response.py +105 -0
  186. zrok_api/models/remote_status200_response_accesses_inner.py +101 -0
  187. zrok_api/models/remote_status200_response_shares_inner.py +105 -0
  188. zrok_api/models/remote_status200_response_shares_inner_failure.py +93 -0
  189. zrok_api/models/remote_unaccess_request.py +89 -0
  190. zrok_api/models/remote_unshare_request.py +89 -0
  191. zrok_api/models/remove_namespace_frontend_mapping_request.py +89 -0
  192. zrok_api/models/remove_organization_member_request.py +89 -0
  193. zrok_api/models/reset_password_request.py +89 -0
  194. zrok_api/models/share.py +115 -0
  195. zrok_api/models/share_http_healthcheck200_response.py +89 -0
  196. zrok_api/models/share_http_healthcheck_request.py +97 -0
  197. zrok_api/models/share_request.py +157 -0
  198. zrok_api/models/share_response.py +89 -0
  199. zrok_api/models/share_summary.py +105 -0
  200. zrok_api/models/shares_list.py +95 -0
  201. zrok_api/models/spark_data_sample.py +89 -0
  202. zrok_api/models/unaccess_request.py +91 -0
  203. zrok_api/models/unshare_request.py +89 -0
  204. zrok_api/models/update_access_request.py +91 -0
  205. zrok_api/models/update_frontend_request.py +95 -0
  206. zrok_api/models/update_namespace_request.py +95 -0
  207. zrok_api/models/update_share_name_request.py +91 -0
  208. zrok_api/models/update_share_request.py +91 -0
  209. zrok_api/models/verify200_response.py +87 -0
  210. zrok_api/models/verify_request.py +87 -0
  211. zrok_api/models/version_inventory200_response.py +87 -0
  212. zrok_api/py.typed +0 -0
  213. zrok_api/rest.py +258 -0
@@ -0,0 +1,82 @@
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.remote_status200_response import RemoteStatus200Response
18
+
19
+ class TestRemoteStatus200Response(unittest.TestCase):
20
+ """RemoteStatus200Response 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) -> RemoteStatus200Response:
29
+ """Test RemoteStatus200Response
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 `RemoteStatus200Response`
34
+ """
35
+ model = RemoteStatus200Response()
36
+ if include_optional:
37
+ return RemoteStatus200Response(
38
+ shares = [
39
+ zrok_api.models.remote_status_200_response_shares_inner.remoteStatus_200_response_shares_inner(
40
+ token = '',
41
+ share_mode = '',
42
+ backend_mode = '',
43
+ frontend_endpoints = [
44
+ ''
45
+ ],
46
+ backend_endpoint = '',
47
+ open = True,
48
+ status = '',
49
+ failure = zrok_api.models.remote_status_200_response_shares_inner_failure.remoteStatus_200_response_shares_inner_failure(
50
+ id = '',
51
+ count = 56,
52
+ last_error = '',
53
+ next_retry = '', ), )
54
+ ],
55
+ accesses = [
56
+ zrok_api.models.remote_status_200_response_accesses_inner.remoteStatus_200_response_accesses_inner(
57
+ frontend_token = '',
58
+ token = '',
59
+ bind_address = '',
60
+ response_headers = [
61
+ ''
62
+ ],
63
+ status = '',
64
+ failure = zrok_api.models.remote_status_200_response_shares_inner_failure.remoteStatus_200_response_shares_inner_failure(
65
+ id = '',
66
+ count = 56,
67
+ last_error = '',
68
+ next_retry = '', ), )
69
+ ]
70
+ )
71
+ else:
72
+ return RemoteStatus200Response(
73
+ )
74
+ """
75
+
76
+ def testRemoteStatus200Response(self):
77
+ """Test RemoteStatus200Response"""
78
+ # inst_req_only = self.make_instance(include_optional=False)
79
+ # inst_req_and_optional = self.make_instance(include_optional=True)
80
+
81
+ if __name__ == '__main__':
82
+ 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.remote_status200_response_accesses_inner import RemoteStatus200ResponseAccessesInner
18
+
19
+ class TestRemoteStatus200ResponseAccessesInner(unittest.TestCase):
20
+ """RemoteStatus200ResponseAccessesInner 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) -> RemoteStatus200ResponseAccessesInner:
29
+ """Test RemoteStatus200ResponseAccessesInner
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 `RemoteStatus200ResponseAccessesInner`
34
+ """
35
+ model = RemoteStatus200ResponseAccessesInner()
36
+ if include_optional:
37
+ return RemoteStatus200ResponseAccessesInner(
38
+ frontend_token = '',
39
+ token = '',
40
+ bind_address = '',
41
+ response_headers = [
42
+ ''
43
+ ],
44
+ status = '',
45
+ failure = zrok_api.models.remote_status_200_response_shares_inner_failure.remoteStatus_200_response_shares_inner_failure(
46
+ id = '',
47
+ count = 56,
48
+ last_error = '',
49
+ next_retry = '', )
50
+ )
51
+ else:
52
+ return RemoteStatus200ResponseAccessesInner(
53
+ )
54
+ """
55
+
56
+ def testRemoteStatus200ResponseAccessesInner(self):
57
+ """Test RemoteStatus200ResponseAccessesInner"""
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()
@@ -0,0 +1,64 @@
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.remote_status200_response_shares_inner import RemoteStatus200ResponseSharesInner
18
+
19
+ class TestRemoteStatus200ResponseSharesInner(unittest.TestCase):
20
+ """RemoteStatus200ResponseSharesInner 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) -> RemoteStatus200ResponseSharesInner:
29
+ """Test RemoteStatus200ResponseSharesInner
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 `RemoteStatus200ResponseSharesInner`
34
+ """
35
+ model = RemoteStatus200ResponseSharesInner()
36
+ if include_optional:
37
+ return RemoteStatus200ResponseSharesInner(
38
+ token = '',
39
+ share_mode = '',
40
+ backend_mode = '',
41
+ frontend_endpoints = [
42
+ ''
43
+ ],
44
+ backend_endpoint = '',
45
+ open = True,
46
+ status = '',
47
+ failure = zrok_api.models.remote_status_200_response_shares_inner_failure.remoteStatus_200_response_shares_inner_failure(
48
+ id = '',
49
+ count = 56,
50
+ last_error = '',
51
+ next_retry = '', )
52
+ )
53
+ else:
54
+ return RemoteStatus200ResponseSharesInner(
55
+ )
56
+ """
57
+
58
+ def testRemoteStatus200ResponseSharesInner(self):
59
+ """Test RemoteStatus200ResponseSharesInner"""
60
+ # inst_req_only = self.make_instance(include_optional=False)
61
+ # inst_req_and_optional = self.make_instance(include_optional=True)
62
+
63
+ if __name__ == '__main__':
64
+ 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.remote_status200_response_shares_inner_failure import RemoteStatus200ResponseSharesInnerFailure
18
+
19
+ class TestRemoteStatus200ResponseSharesInnerFailure(unittest.TestCase):
20
+ """RemoteStatus200ResponseSharesInnerFailure 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) -> RemoteStatus200ResponseSharesInnerFailure:
29
+ """Test RemoteStatus200ResponseSharesInnerFailure
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 `RemoteStatus200ResponseSharesInnerFailure`
34
+ """
35
+ model = RemoteStatus200ResponseSharesInnerFailure()
36
+ if include_optional:
37
+ return RemoteStatus200ResponseSharesInnerFailure(
38
+ id = '',
39
+ count = 56,
40
+ last_error = '',
41
+ next_retry = ''
42
+ )
43
+ else:
44
+ return RemoteStatus200ResponseSharesInnerFailure(
45
+ )
46
+ """
47
+
48
+ def testRemoteStatus200ResponseSharesInnerFailure(self):
49
+ """Test RemoteStatus200ResponseSharesInnerFailure"""
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,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.remote_unaccess_request import RemoteUnaccessRequest
18
+
19
+ class TestRemoteUnaccessRequest(unittest.TestCase):
20
+ """RemoteUnaccessRequest 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) -> RemoteUnaccessRequest:
29
+ """Test RemoteUnaccessRequest
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 `RemoteUnaccessRequest`
34
+ """
35
+ model = RemoteUnaccessRequest()
36
+ if include_optional:
37
+ return RemoteUnaccessRequest(
38
+ env_zid = '',
39
+ frontend_token = ''
40
+ )
41
+ else:
42
+ return RemoteUnaccessRequest(
43
+ )
44
+ """
45
+
46
+ def testRemoteUnaccessRequest(self):
47
+ """Test RemoteUnaccessRequest"""
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,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.remote_unshare_request import RemoteUnshareRequest
18
+
19
+ class TestRemoteUnshareRequest(unittest.TestCase):
20
+ """RemoteUnshareRequest 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) -> RemoteUnshareRequest:
29
+ """Test RemoteUnshareRequest
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 `RemoteUnshareRequest`
34
+ """
35
+ model = RemoteUnshareRequest()
36
+ if include_optional:
37
+ return RemoteUnshareRequest(
38
+ env_zid = '',
39
+ token = ''
40
+ )
41
+ else:
42
+ return RemoteUnshareRequest(
43
+ )
44
+ """
45
+
46
+ def testRemoteUnshareRequest(self):
47
+ """Test RemoteUnshareRequest"""
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,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.remove_namespace_frontend_mapping_request import RemoveNamespaceFrontendMappingRequest
18
+
19
+ class TestRemoveNamespaceFrontendMappingRequest(unittest.TestCase):
20
+ """RemoveNamespaceFrontendMappingRequest 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) -> RemoveNamespaceFrontendMappingRequest:
29
+ """Test RemoveNamespaceFrontendMappingRequest
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 `RemoveNamespaceFrontendMappingRequest`
34
+ """
35
+ model = RemoveNamespaceFrontendMappingRequest()
36
+ if include_optional:
37
+ return RemoveNamespaceFrontendMappingRequest(
38
+ namespace_token = '',
39
+ frontend_token = ''
40
+ )
41
+ else:
42
+ return RemoveNamespaceFrontendMappingRequest(
43
+ )
44
+ """
45
+
46
+ def testRemoveNamespaceFrontendMappingRequest(self):
47
+ """Test RemoveNamespaceFrontendMappingRequest"""
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,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.remove_organization_member_request import RemoveOrganizationMemberRequest
18
+
19
+ class TestRemoveOrganizationMemberRequest(unittest.TestCase):
20
+ """RemoveOrganizationMemberRequest 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) -> RemoveOrganizationMemberRequest:
29
+ """Test RemoveOrganizationMemberRequest
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 `RemoveOrganizationMemberRequest`
34
+ """
35
+ model = RemoveOrganizationMemberRequest()
36
+ if include_optional:
37
+ return RemoveOrganizationMemberRequest(
38
+ organization_token = '',
39
+ email = ''
40
+ )
41
+ else:
42
+ return RemoveOrganizationMemberRequest(
43
+ )
44
+ """
45
+
46
+ def testRemoveOrganizationMemberRequest(self):
47
+ """Test RemoveOrganizationMemberRequest"""
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,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.reset_password_request import ResetPasswordRequest
18
+
19
+ class TestResetPasswordRequest(unittest.TestCase):
20
+ """ResetPasswordRequest 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) -> ResetPasswordRequest:
29
+ """Test ResetPasswordRequest
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 `ResetPasswordRequest`
34
+ """
35
+ model = ResetPasswordRequest()
36
+ if include_optional:
37
+ return ResetPasswordRequest(
38
+ reset_token = '',
39
+ password = ''
40
+ )
41
+ else:
42
+ return ResetPasswordRequest(
43
+ )
44
+ """
45
+
46
+ def testResetPasswordRequest(self):
47
+ """Test ResetPasswordRequest"""
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()
test/test_share.py ADDED
@@ -0,0 +1,67 @@
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 import Share
18
+
19
+ class TestShare(unittest.TestCase):
20
+ """Share 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) -> Share:
29
+ """Test Share
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 `Share`
34
+ """
35
+ model = Share()
36
+ if include_optional:
37
+ return Share(
38
+ share_token = '',
39
+ z_id = '',
40
+ env_zid = '',
41
+ share_mode = '',
42
+ backend_mode = '',
43
+ frontend_endpoints = [
44
+ ''
45
+ ],
46
+ target = '',
47
+ activity = [
48
+ zrok_api.models.spark_data_sample.sparkDataSample(
49
+ rx = 1.337,
50
+ tx = 1.337, )
51
+ ],
52
+ limited = True,
53
+ created_at = 56,
54
+ updated_at = 56
55
+ )
56
+ else:
57
+ return Share(
58
+ )
59
+ """
60
+
61
+ def testShare(self):
62
+ """Test Share"""
63
+ # inst_req_only = self.make_instance(include_optional=False)
64
+ # inst_req_and_optional = self.make_instance(include_optional=True)
65
+
66
+ if __name__ == '__main__':
67
+ unittest.main()
test/test_share_api.py ADDED
@@ -0,0 +1,103 @@
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.api.share_api import ShareApi
18
+
19
+
20
+ class TestShareApi(unittest.TestCase):
21
+ """ShareApi unit test stubs"""
22
+
23
+ def setUp(self) -> None:
24
+ self.api = ShareApi()
25
+
26
+ def tearDown(self) -> None:
27
+ pass
28
+
29
+ def test_access(self) -> None:
30
+ """Test case for access
31
+
32
+ """
33
+ pass
34
+
35
+ def test_create_share_name(self) -> None:
36
+ """Test case for create_share_name
37
+
38
+ """
39
+ pass
40
+
41
+ def test_delete_share_name(self) -> None:
42
+ """Test case for delete_share_name
43
+
44
+ """
45
+ pass
46
+
47
+ def test_list_all_names(self) -> None:
48
+ """Test case for list_all_names
49
+
50
+ """
51
+ pass
52
+
53
+ def test_list_names_for_namespace(self) -> None:
54
+ """Test case for list_names_for_namespace
55
+
56
+ """
57
+ pass
58
+
59
+ def test_list_share_namespaces(self) -> None:
60
+ """Test case for list_share_namespaces
61
+
62
+ """
63
+ pass
64
+
65
+ def test_share(self) -> None:
66
+ """Test case for share
67
+
68
+ """
69
+ pass
70
+
71
+ def test_unaccess(self) -> None:
72
+ """Test case for unaccess
73
+
74
+ """
75
+ pass
76
+
77
+ def test_unshare(self) -> None:
78
+ """Test case for unshare
79
+
80
+ """
81
+ pass
82
+
83
+ def test_update_access(self) -> None:
84
+ """Test case for update_access
85
+
86
+ """
87
+ pass
88
+
89
+ def test_update_share(self) -> None:
90
+ """Test case for update_share
91
+
92
+ """
93
+ pass
94
+
95
+ def test_update_share_name(self) -> None:
96
+ """Test case for update_share_name
97
+
98
+ """
99
+ pass
100
+
101
+
102
+ if __name__ == '__main__':
103
+ unittest.main()