pilot-platform-common 2.4.0__tar.gz → 2.6.0__tar.gz

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 (57) hide show
  1. {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/PKG-INFO +1 -1
  2. {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/common/project/project_client.py +4 -1
  3. {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/pilot_platform_common.egg-info/PKG-INFO +1 -1
  4. {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/pyproject.toml +1 -1
  5. {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/setup.py +1 -1
  6. {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/README.md +0 -0
  7. {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/common/__init__.py +0 -0
  8. {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/common/geid/__init__.py +0 -0
  9. {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/common/geid/geid_client.py +0 -0
  10. {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/common/jwt_handler/JWTHandler.py +0 -0
  11. {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/common/jwt_handler/__init__.py +0 -0
  12. {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/common/jwt_handler/jwt_handler_exception.py +0 -0
  13. {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/common/jwt_handler/models.py +0 -0
  14. {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/common/logging/__init__.py +0 -0
  15. {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/common/logging/formatter.py +0 -0
  16. {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/common/logging/logger.py +0 -0
  17. {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/common/logging/logging.py +0 -0
  18. {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/common/models/__init__.py +0 -0
  19. {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/common/models/config_center_policy.py +0 -0
  20. {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/common/models/service_id_generator.py +0 -0
  21. {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/common/object_storage_adaptor/__init__.py +0 -0
  22. {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/common/object_storage_adaptor/base_client.py +0 -0
  23. {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/common/object_storage_adaptor/boto3_admin_client.py +0 -0
  24. {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/common/object_storage_adaptor/boto3_client.py +0 -0
  25. {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/common/object_storage_adaptor/minio_policy_client.py +0 -0
  26. {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/common/permissions/__init__.py +0 -0
  27. {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/common/permissions/exceptions.py +0 -0
  28. {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/common/permissions/permissions.py +0 -0
  29. {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/common/permissions/permissions_manager.py +0 -0
  30. {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/common/permissions/schemas.py +0 -0
  31. {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/common/project/__init__.py +0 -0
  32. {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/common/project/project_exceptions.py +0 -0
  33. {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/common/services/__init__.py +0 -0
  34. {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/common/services/auth_client.py +0 -0
  35. {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/common/vault/__init__.py +0 -0
  36. {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/common/vault/vault_client.py +0 -0
  37. {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/common/vault/vault_exception.py +0 -0
  38. {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/pilot_platform_common.egg-info/SOURCES.txt +0 -0
  39. {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/pilot_platform_common.egg-info/dependency_links.txt +0 -0
  40. {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/pilot_platform_common.egg-info/requires.txt +0 -0
  41. {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/pilot_platform_common.egg-info/top_level.txt +0 -0
  42. {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/setup.cfg +0 -0
  43. {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/tests/__init__.py +0 -0
  44. {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/tests/conftest.py +0 -0
  45. {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/tests/fixtures/__init__.py +0 -0
  46. {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/tests/fixtures/fake.py +0 -0
  47. {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/tests/fixtures/metadata.py +0 -0
  48. {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/tests/permissions/__init__.py +0 -0
  49. {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/tests/permissions/test_auth_client.py +0 -0
  50. {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/tests/permissions/test_permissions.py +0 -0
  51. {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/tests/permissions/test_permissions_manager.py +0 -0
  52. {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/tests/test_formatter.py +0 -0
  53. {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/tests/test_geid_client.py +0 -0
  54. {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/tests/test_jwt_handler.py +0 -0
  55. {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/tests/test_logging.py +0 -0
  56. {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/tests/test_project_client.py +0 -0
  57. {pilot_platform_common-2.4.0 → pilot_platform_common-2.6.0}/tests/test_vault_client.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pilot-platform-common
3
- Version: 2.4.0
3
+ Version: 2.6.0
4
4
  Summary: Generates entity ID and connects with Vault (secret engine) to retrieve credentials
5
5
  Author: Indoc Systems
6
6
  Author-email: etaylor@indocresearch.org
@@ -60,6 +60,7 @@ class ProjectObject:
60
60
  system_tags=None,
61
61
  is_discoverable=None,
62
62
  state=None,
63
+ notify_users=None,
63
64
  ):
64
65
  await self.project_client.connect_redis()
65
66
  data = {
@@ -71,6 +72,7 @@ class ProjectObject:
71
72
  'system_tags': system_tags,
72
73
  'is_discoverable': is_discoverable,
73
74
  'state': state,
75
+ 'notify_users': notify_users,
74
76
  }
75
77
  # remove blank items
76
78
  data = {k: v for k, v in data.items() if v is not None}
@@ -204,6 +206,7 @@ class ProjectClient:
204
206
  tags: Union[list[str], None] = None,
205
207
  system_tags: Union[list[str], None] = None,
206
208
  is_discoverable: bool = True,
209
+ version: int = 1,
207
210
  ) -> ProjectObject:
208
211
  if tags is None:
209
212
  tags = []
@@ -224,7 +227,7 @@ class ProjectClient:
224
227
  data = {k: v for k, v in data.items() if v is not None}
225
228
 
226
229
  async with httpx.AsyncClient() as client:
227
- response = await client.post(self.base_url + '/v1/projects/', json=data)
230
+ response = await client.post(self.base_url + f'/v{version}/projects/', json=data)
228
231
  if response.status_code != 200:
229
232
  raise ProjectException(status_code=response.status_code, error_msg=response.json())
230
233
  return self.project_object(response.json(), self)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pilot-platform-common
3
- Version: 2.4.0
3
+ Version: 2.6.0
4
4
  Summary: Generates entity ID and connects with Vault (secret engine) to retrieve credentials
5
5
  Author: Indoc Systems
6
6
  Author-email: etaylor@indocresearch.org
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "common"
3
- version = "2.4.0"
3
+ version = "2.6.0"
4
4
  description = ""
5
5
  authors = ["Indoc Systems"]
6
6
 
@@ -11,7 +11,7 @@ long_description = (this_directory / 'README.md').read_text()
11
11
 
12
12
  setuptools.setup(
13
13
  name='pilot-platform-common',
14
- version='2.4.0',
14
+ version='2.6.0',
15
15
  author='Indoc Systems',
16
16
  author_email='etaylor@indocresearch.org',
17
17
  description='Generates entity ID and connects with Vault (secret engine) to retrieve credentials',