amsdal 0.1.26__cp311-cp311-win_amd64.whl → 0.2.0__cp311-cp311-win_amd64.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.

Potentially problematic release.


This version of amsdal might be problematic. Click here for more details.

Files changed (163) hide show
  1. amsdal/__about__.py +1 -1
  2. amsdal/cloud/__init__.cp311-win_amd64.pyd +0 -0
  3. amsdal/cloud/client.cp311-win_amd64.pyd +0 -0
  4. amsdal/cloud/client.pyi +46 -2
  5. amsdal/cloud/constants.cp311-win_amd64.pyd +0 -0
  6. amsdal/cloud/enums.cp311-win_amd64.pyd +0 -0
  7. amsdal/cloud/enums.pyi +46 -0
  8. amsdal/cloud/models/__init__.cp311-win_amd64.pyd +0 -0
  9. amsdal/cloud/models/base.cp311-win_amd64.pyd +0 -0
  10. amsdal/cloud/models/base.pyi +156 -0
  11. amsdal/cloud/services/__init__.cp311-win_amd64.pyd +0 -0
  12. amsdal/cloud/services/actions/__init__.cp311-win_amd64.pyd +0 -0
  13. amsdal/cloud/services/actions/add_allowlist_ip.cp311-win_amd64.pyd +0 -0
  14. amsdal/cloud/services/actions/add_allowlist_ip.pyi +16 -1
  15. amsdal/cloud/services/actions/add_basic_auth.cp311-win_amd64.pyd +0 -0
  16. amsdal/cloud/services/actions/add_basic_auth.pyi +17 -1
  17. amsdal/cloud/services/actions/add_dependency.cp311-win_amd64.pyd +0 -0
  18. amsdal/cloud/services/actions/add_dependency.pyi +16 -1
  19. amsdal/cloud/services/actions/add_secret.cp311-win_amd64.pyd +0 -0
  20. amsdal/cloud/services/actions/add_secret.pyi +17 -1
  21. amsdal/cloud/services/actions/base.cp311-win_amd64.pyd +0 -0
  22. amsdal/cloud/services/actions/base.pyi +71 -3
  23. amsdal/cloud/services/actions/create_deploy.cp311-win_amd64.pyd +0 -0
  24. amsdal/cloud/services/actions/create_deploy.pyi +33 -3
  25. amsdal/cloud/services/actions/create_env.cp311-win_amd64.pyd +0 -0
  26. amsdal/cloud/services/actions/create_env.pyi +15 -1
  27. amsdal/cloud/services/actions/create_session.cp311-win_amd64.pyd +0 -0
  28. amsdal/cloud/services/actions/create_session.pyi +13 -1
  29. amsdal/cloud/services/actions/delete_allowlist_ip.cp311-win_amd64.pyd +0 -0
  30. amsdal/cloud/services/actions/delete_allowlist_ip.pyi +16 -1
  31. amsdal/cloud/services/actions/delete_basic_auth.cp311-win_amd64.pyd +0 -0
  32. amsdal/cloud/services/actions/delete_basic_auth.pyi +17 -1
  33. amsdal/cloud/services/actions/delete_dependency.cp311-win_amd64.pyd +0 -0
  34. amsdal/cloud/services/actions/delete_dependency.pyi +18 -1
  35. amsdal/cloud/services/actions/delete_env.cp311-win_amd64.pyd +0 -0
  36. amsdal/cloud/services/actions/delete_env.pyi +17 -1
  37. amsdal/cloud/services/actions/delete_secret.cp311-win_amd64.pyd +0 -0
  38. amsdal/cloud/services/actions/delete_secret.pyi +18 -1
  39. amsdal/cloud/services/actions/destroy_deploy.cp311-win_amd64.pyd +0 -0
  40. amsdal/cloud/services/actions/destroy_deploy.pyi +15 -1
  41. amsdal/cloud/services/actions/expose_db.cp311-win_amd64.pyd +0 -0
  42. amsdal/cloud/services/actions/expose_db.pyi +18 -1
  43. amsdal/cloud/services/actions/get_basic_auth_credentials.cp311-win_amd64.pyd +0 -0
  44. amsdal/cloud/services/actions/get_basic_auth_credentials.pyi +17 -1
  45. amsdal/cloud/services/actions/get_monitoring_info.cp311-win_amd64.pyd +0 -0
  46. amsdal/cloud/services/actions/get_monitoring_info.pyi +17 -1
  47. amsdal/cloud/services/actions/list_dependencies.cp311-win_amd64.pyd +0 -0
  48. amsdal/cloud/services/actions/list_dependencies.pyi +17 -1
  49. amsdal/cloud/services/actions/list_deploys.cp311-win_amd64.pyd +0 -0
  50. amsdal/cloud/services/actions/list_deploys.pyi +15 -1
  51. amsdal/cloud/services/actions/list_envs.cp311-win_amd64.pyd +0 -0
  52. amsdal/cloud/services/actions/list_envs.pyi +16 -1
  53. amsdal/cloud/services/actions/list_secrets.cp311-win_amd64.pyd +0 -0
  54. amsdal/cloud/services/actions/list_secrets.pyi +18 -1
  55. amsdal/cloud/services/actions/manager.cp311-win_amd64.pyd +0 -0
  56. amsdal/cloud/services/actions/manager.pyi +254 -20
  57. amsdal/cloud/services/actions/signup_action.cp311-win_amd64.pyd +0 -0
  58. amsdal/cloud/services/actions/signup_action.pyi +16 -1
  59. amsdal/cloud/services/actions/update_deploy.cp311-win_amd64.pyd +0 -0
  60. amsdal/cloud/services/actions/update_deploy.pyi +15 -1
  61. amsdal/cloud/services/auth/__init__.cp311-win_amd64.pyd +0 -0
  62. amsdal/cloud/services/auth/base.cp311-win_amd64.pyd +0 -0
  63. amsdal/cloud/services/auth/credentials.cp311-win_amd64.pyd +0 -0
  64. amsdal/cloud/services/auth/credentials.pyi +12 -1
  65. amsdal/cloud/services/auth/manager.cp311-win_amd64.pyd +0 -0
  66. amsdal/cloud/services/auth/manager.pyi +15 -1
  67. amsdal/cloud/services/auth/signup_service.cp311-win_amd64.pyd +0 -0
  68. amsdal/cloud/services/auth/signup_service.pyi +16 -1
  69. amsdal/cloud/services/auth/token.cp311-win_amd64.pyd +0 -0
  70. amsdal/cloud/services/auth/token.pyi +15 -1
  71. amsdal/configs/constants.py +10 -0
  72. amsdal/configs/constants.pyi +11 -1
  73. amsdal/configs/main.py +132 -19
  74. amsdal/configs/main.pyi +140 -10
  75. amsdal/context/manager.py +39 -0
  76. amsdal/context/manager.pyi +41 -3
  77. amsdal/contrib/__init__.cp311-win_amd64.pyd +0 -0
  78. amsdal/contrib/auth/app.py +12 -0
  79. amsdal/contrib/auth/app.pyi +12 -1
  80. amsdal/contrib/auth/lifecycle/consumer.py +53 -0
  81. amsdal/contrib/auth/lifecycle/consumer.pyi +53 -3
  82. amsdal/contrib/auth/models/login_session/hooks/pre_init.py +13 -0
  83. amsdal/contrib/auth/models/login_session/modifiers/display_name.py +8 -0
  84. amsdal/contrib/auth/models/permission/modifiers/display_name.py +8 -0
  85. amsdal/contrib/auth/models/user/hooks/post_init.py +13 -0
  86. amsdal/contrib/auth/models/user/hooks/pre_create.py +6 -0
  87. amsdal/contrib/auth/models/user/modifiers/display_name.py +8 -0
  88. amsdal/contrib/auth/settings.py +15 -0
  89. amsdal/contrib/auth/settings.pyi +14 -0
  90. amsdal/contrib/frontend_configs/app.py +14 -0
  91. amsdal/contrib/frontend_configs/app.pyi +14 -1
  92. amsdal/contrib/frontend_configs/conversion/convert.py +14 -0
  93. amsdal/contrib/frontend_configs/conversion/convert.pyi +15 -1
  94. amsdal/contrib/frontend_configs/lifecycle/consumer.py +75 -3
  95. amsdal/contrib/frontend_configs/lifecycle/consumer.pyi +77 -6
  96. amsdal/contrib/frontend_configs/models/frontent_config_control_action/properties/action_validate.py +16 -0
  97. amsdal/contrib/frontend_configs/utils.py +12 -1
  98. amsdal/contrib/frontend_configs/utils.pyi +12 -1
  99. amsdal/fixtures/__init__.cp311-win_amd64.pyd +0 -0
  100. amsdal/fixtures/manager.cp311-win_amd64.pyd +0 -0
  101. amsdal/fixtures/manager.pyi +90 -8
  102. amsdal/manager.cp311-win_amd64.pyd +0 -0
  103. amsdal/manager.pyi +113 -25
  104. amsdal/migration/__init__.cp311-win_amd64.pyd +0 -0
  105. amsdal/migration/base_migration_schemas.cp311-win_amd64.pyd +0 -0
  106. amsdal/migration/base_migration_schemas.pyi +84 -8
  107. amsdal/migration/data_classes.cp311-win_amd64.pyd +0 -0
  108. amsdal/migration/data_classes.pyi +104 -4
  109. amsdal/migration/executors/__init__.cp311-win_amd64.pyd +0 -0
  110. amsdal/migration/executors/base.cp311-win_amd64.pyd +0 -0
  111. amsdal/migration/executors/base.pyi +75 -5
  112. amsdal/migration/executors/default_executor.cp311-win_amd64.pyd +0 -0
  113. amsdal/migration/executors/default_executor.pyi +82 -10
  114. amsdal/migration/executors/state_executor.cp311-win_amd64.pyd +0 -0
  115. amsdal/migration/executors/state_executor.pyi +69 -5
  116. amsdal/migration/file_migration_executor.cp311-win_amd64.pyd +0 -0
  117. amsdal/migration/file_migration_executor.pyi +34 -2
  118. amsdal/migration/file_migration_generator.cp311-win_amd64.pyd +0 -0
  119. amsdal/migration/file_migration_generator.pyi +102 -10
  120. amsdal/migration/file_migration_store.cp311-win_amd64.pyd +0 -0
  121. amsdal/migration/file_migration_store.pyi +36 -8
  122. amsdal/migration/file_migration_writer.cp311-win_amd64.pyd +0 -0
  123. amsdal/migration/file_migration_writer.pyi +60 -5
  124. amsdal/migration/migrations.cp311-win_amd64.pyd +0 -0
  125. amsdal/migration/migrations.pyi +111 -6
  126. amsdal/migration/migrations_loader.cp311-win_amd64.pyd +0 -0
  127. amsdal/migration/migrations_loader.pyi +17 -2
  128. amsdal/migration/schemas_loaders.cp311-win_amd64.pyd +0 -0
  129. amsdal/migration/schemas_loaders.pyi +15 -2
  130. amsdal/migration/utils.cp311-win_amd64.pyd +0 -0
  131. amsdal/migration/utils.pyi +46 -6
  132. amsdal/mixins/__init__.cp311-win_amd64.pyd +0 -0
  133. amsdal/mixins/build_mixin.cp311-win_amd64.pyd +0 -0
  134. amsdal/mixins/build_mixin.pyi +60 -8
  135. amsdal/mixins/class_versions_mixin.cp311-win_amd64.pyd +0 -0
  136. amsdal/mixins/class_versions_mixin.pyi +3 -7
  137. amsdal/schemas/core/class_object/properties/display_name.py +6 -0
  138. amsdal/schemas/core/file/hooks/pre_create.py +9 -0
  139. amsdal/schemas/core/file/hooks/pre_update.py +9 -0
  140. amsdal/schemas/core/file/properties/from_file.py +12 -0
  141. amsdal/schemas/core/file/properties/mimetype.py +8 -0
  142. amsdal/schemas/core/file/properties/to_file.py +12 -0
  143. amsdal/schemas/core/file/properties/validate_data.py +13 -0
  144. amsdal/schemas/manager.cp311-win_amd64.pyd +0 -0
  145. amsdal/schemas/manager.py +53 -2
  146. amsdal/schemas/manager.pyi +55 -5
  147. amsdal/services/__init__.cp311-win_amd64.pyd +0 -0
  148. amsdal/services/transaction_execution.cp311-win_amd64.pyd +0 -0
  149. amsdal/services/transaction_execution.pyi +52 -3
  150. amsdal/utils/contrib_paths.py +10 -0
  151. amsdal/utils/contrib_paths.pyi +11 -1
  152. amsdal/utils/tests/helpers.py +5 -7
  153. {amsdal-0.1.26.dist-info → amsdal-0.2.0.dist-info}/METADATA +4 -6
  154. amsdal-0.2.0.dist-info/RECORD +254 -0
  155. amsdal/operations/__init__.cp311-win_amd64.pyd +0 -0
  156. amsdal/operations/__init__.pyi +0 -0
  157. amsdal/operations/manager.cp311-win_amd64.pyd +0 -0
  158. amsdal/operations/manager.pyi +0 -24
  159. amsdal-0.1.26.dist-info/RECORD +0 -258
  160. {amsdal-0.1.26.dist-info → amsdal-0.2.0.dist-info}/LICENSE.txt +0 -0
  161. {amsdal-0.1.26.dist-info → amsdal-0.2.0.dist-info}/WHEEL +0 -0
  162. {amsdal-0.1.26.dist-info → amsdal-0.2.0.dist-info}/license_check.py +0 -0
  163. {amsdal-0.1.26.dist-info → amsdal-0.2.0.dist-info}/top_level.txt +0 -0
@@ -2,4 +2,16 @@ from amsdal.cloud.models.base import CreateSessionDetails as CreateSessionDetail
2
2
  from amsdal.cloud.services.actions.base import CloudActionBase as CloudActionBase
3
3
 
4
4
  class CreateSessionAction(CloudActionBase):
5
- def action(self, encrypted_data: bytes) -> CreateSessionDetails: ...
5
+ """
6
+ Class to handle the creation of a client session.
7
+ """
8
+ def action(self, encrypted_data: bytes) -> CreateSessionDetails:
9
+ """
10
+ Executes the client session creation action with the given encrypted data.
11
+
12
+ Args:
13
+ encrypted_data (bytes): The encrypted data required for session creation.
14
+
15
+ Returns:
16
+ CreateSessionDetails: The response model containing the details of the created session.
17
+ """
@@ -1,4 +1,19 @@
1
1
  from amsdal.cloud.services.actions.base import CloudActionBase as CloudActionBase
2
2
 
3
3
  class DeleteAllowlistIPAction(CloudActionBase):
4
- def action(self, env_name: str, ip_address: str | None = None, application_name: str | None = None, application_uuid: str | None = None) -> bool: ...
4
+ """
5
+ Class to handle the deletion of an allowlist IP action.
6
+ """
7
+ def action(self, env_name: str, ip_address: str | None = None, application_name: str | None = None, application_uuid: str | None = None) -> bool:
8
+ """
9
+ Executes the allowlist IP deletion action with the given parameters.
10
+
11
+ Args:
12
+ env_name (str): The name of the environment.
13
+ ip_address (str | None, optional): The IP address to remove from the allowlist. Defaults to None.
14
+ application_name (str | None, optional): The name of the application. Defaults to None.
15
+ application_uuid (str | None, optional): The UUID of the application. Defaults to None.
16
+
17
+ Returns:
18
+ bool: True if the allowlist IP deletion action was successful.
19
+ """
@@ -1,4 +1,20 @@
1
1
  from amsdal.cloud.services.actions.base import CloudActionBase as CloudActionBase
2
2
 
3
3
  class DeleteBasicAuthAction(CloudActionBase):
4
- def action(self, env_name: str, application_name: str | None = None, application_uuid: str | None = None) -> bool: ...
4
+ """
5
+ Class to handle the deletion of basic authentication.
6
+
7
+ This class provides functionality to remove basic authentication for a given environment and application.
8
+ """
9
+ def action(self, env_name: str, application_name: str | None = None, application_uuid: str | None = None) -> bool:
10
+ """
11
+ Executes the basic authentication deletion action with the given parameters.
12
+
13
+ Args:
14
+ env_name (str): The name of the environment.
15
+ application_name (str | None, optional): The name of the application. Defaults to None.
16
+ application_uuid (str | None, optional): The UUID of the application. Defaults to None.
17
+
18
+ Returns:
19
+ bool: True if the basic authentication deletion action was successful.
20
+ """
@@ -1,4 +1,21 @@
1
1
  from amsdal.cloud.services.actions.base import CloudActionBase as CloudActionBase
2
2
 
3
3
  class DeleteDepenencyAction(CloudActionBase):
4
- def action(self, dependency_name: str, env_name: str, application_name: str | None = None, application_uuid: str | None = None) -> bool: ...
4
+ """
5
+ Class to handle the deletion of an application dependency.
6
+
7
+ This class provides functionality to remove a specified dependency for a given environment and application.
8
+ """
9
+ def action(self, dependency_name: str, env_name: str, application_name: str | None = None, application_uuid: str | None = None) -> bool:
10
+ """
11
+ Executes the application dependency deletion action with the given parameters.
12
+
13
+ Args:
14
+ dependency_name (str): The name of the dependency to remove.
15
+ env_name (str): The name of the environment.
16
+ application_name (str | None, optional): The name of the application. Defaults to None.
17
+ application_uuid (str | None, optional): The UUID of the application. Defaults to None.
18
+
19
+ Returns:
20
+ bool: True if the application dependency deletion action was successful.
21
+ """
@@ -2,4 +2,20 @@ from amsdal.cloud.models.base import CreateEnvResponse as CreateEnvResponse
2
2
  from amsdal.cloud.services.actions.base import CloudActionBase as CloudActionBase
3
3
 
4
4
  class DeleteEnvAction(CloudActionBase):
5
- def action(self, *, env_name: str, application_name: str | None = None, application_uuid: str | None = None) -> CreateEnvResponse: ...
5
+ """
6
+ Class to handle the deletion of an environment.
7
+
8
+ This class provides functionality to remove an environment for a given application.
9
+ """
10
+ def action(self, *, env_name: str, application_name: str | None = None, application_uuid: str | None = None) -> CreateEnvResponse:
11
+ """
12
+ Executes the environment deletion action with the given parameters.
13
+
14
+ Args:
15
+ env_name (str): The name of the environment.
16
+ application_name (str | None, optional): The name of the application. Defaults to None.
17
+ application_uuid (str | None, optional): The UUID of the application. Defaults to None.
18
+
19
+ Returns:
20
+ CreateEnvResponse: The response data after the environment deletion action.
21
+ """
@@ -1,4 +1,21 @@
1
1
  from amsdal.cloud.services.actions.base import CloudActionBase as CloudActionBase
2
2
 
3
3
  class DeleteSecretAction(CloudActionBase):
4
- def action(self, secret_name: str, env_name: str, application_uuid: str | None = None, application_name: str | None = None) -> bool: ...
4
+ """
5
+ Class to handle the deletion of a secret.
6
+
7
+ This class provides functionality to remove a specified secret for a given environment and application.
8
+ """
9
+ def action(self, secret_name: str, env_name: str, application_uuid: str | None = None, application_name: str | None = None) -> bool:
10
+ """
11
+ Executes the secret deletion action with the given parameters.
12
+
13
+ Args:
14
+ secret_name (str): The name of the secret to remove.
15
+ env_name (str): The name of the environment.
16
+ application_uuid (str | None, optional): The UUID of the application. Defaults to None.
17
+ application_name (str | None, optional): The name of the application. Defaults to None.
18
+
19
+ Returns:
20
+ bool: True if the secret deletion action was successful.
21
+ """
@@ -1,4 +1,18 @@
1
1
  from amsdal.cloud.services.actions.base import CloudActionBase as CloudActionBase
2
2
 
3
3
  class DestroyDeployAction(CloudActionBase):
4
- def action(self, deployment_id: str) -> bool: ...
4
+ """
5
+ Class to handle the destruction of a deployment.
6
+
7
+ This class provides functionality to remove a specified deployment by its ID.
8
+ """
9
+ def action(self, deployment_id: str) -> bool:
10
+ """
11
+ Executes the deployment destruction action with the given parameters.
12
+
13
+ Args:
14
+ deployment_id (str): The ID of the deployment to remove.
15
+
16
+ Returns:
17
+ bool: True if the deployment destruction action was successful.
18
+ """
@@ -2,4 +2,21 @@ from amsdal.cloud.services.actions.base import CloudActionBase as CloudActionBas
2
2
  from typing import Any
3
3
 
4
4
  class ExposeDBAction(CloudActionBase):
5
- def action(self, env_name: str, application_name: str | None = None, application_uuid: str | None = None, ip_address: str | None = None) -> dict[str, Any]: ...
5
+ """
6
+ Class to handle the exposure of a database.
7
+
8
+ This class provides functionality to expose a database for a given environment and application.
9
+ """
10
+ def action(self, env_name: str, application_name: str | None = None, application_uuid: str | None = None, ip_address: str | None = None) -> dict[str, Any]:
11
+ """
12
+ Executes the database exposure action with the given parameters.
13
+
14
+ Args:
15
+ env_name (str): The name of the environment.
16
+ application_name (str | None, optional): The name of the application. Defaults to None.
17
+ application_uuid (str | None, optional): The UUID of the application. Defaults to None.
18
+ ip_address (str | None, optional): The IP address to expose the database to. Defaults to None.
19
+
20
+ Returns:
21
+ dict[str, Any]: The response details after the database exposure action.
22
+ """
@@ -2,4 +2,20 @@ from amsdal.cloud.models.base import AddBasicAuthResponse as AddBasicAuthRespons
2
2
  from amsdal.cloud.services.actions.base import CloudActionBase as CloudActionBase
3
3
 
4
4
  class GetBasicAuthCredentialsAction(CloudActionBase):
5
- def action(self, env_name: str, application_name: str | None = None, application_uuid: str | None = None) -> AddBasicAuthResponse: ...
5
+ """
6
+ Class to handle the retrieval of basic authentication credentials.
7
+
8
+ This class provides functionality to get basic authentication credentials for a given environment and application.
9
+ """
10
+ def action(self, env_name: str, application_name: str | None = None, application_uuid: str | None = None) -> AddBasicAuthResponse:
11
+ """
12
+ Executes the action to retrieve basic authentication credentials with the given parameters.
13
+
14
+ Args:
15
+ env_name (str): The name of the environment.
16
+ application_name (str | None, optional): The name of the application. Defaults to None.
17
+ application_uuid (str | None, optional): The UUID of the application. Defaults to None.
18
+
19
+ Returns:
20
+ AddBasicAuthResponse: The response containing the basic authentication credentials.
21
+ """
@@ -2,4 +2,20 @@ from amsdal.cloud.models.base import GetMonitoringInfoResponse as GetMonitoringI
2
2
  from amsdal.cloud.services.actions.base import CloudActionBase as CloudActionBase
3
3
 
4
4
  class GetMonitoringInfoAction(CloudActionBase):
5
- def action(self, env_name: str, application_name: str | None = None, application_uuid: str | None = None) -> GetMonitoringInfoResponse: ...
5
+ """
6
+ Class to handle the retrieval of monitoring information.
7
+
8
+ This class provides functionality to get monitoring information for a given environment and application.
9
+ """
10
+ def action(self, env_name: str, application_name: str | None = None, application_uuid: str | None = None) -> GetMonitoringInfoResponse:
11
+ """
12
+ Executes the action to retrieve monitoring information with the given parameters.
13
+
14
+ Args:
15
+ env_name (str): The name of the environment.
16
+ application_name (str | None, optional): The name of the application. Defaults to None.
17
+ application_uuid (str | None, optional): The UUID of the application. Defaults to None.
18
+
19
+ Returns:
20
+ GetMonitoringInfoResponse: The response containing the monitoring information.
21
+ """
@@ -2,4 +2,20 @@ from amsdal.cloud.models.base import ListDependenciesDetails as ListDependencies
2
2
  from amsdal.cloud.services.actions.base import CloudActionBase as CloudActionBase
3
3
 
4
4
  class ListDependenciesAction(CloudActionBase):
5
- def action(self, env_name: str, application_name: str | None = None, application_uuid: str | None = None) -> ListDependenciesDetails: ...
5
+ """
6
+ Class to handle the listing of application dependencies.
7
+
8
+ This class provides functionality to list dependencies for a given environment and application.
9
+ """
10
+ def action(self, env_name: str, application_name: str | None = None, application_uuid: str | None = None) -> ListDependenciesDetails:
11
+ """
12
+ Executes the action to list application dependencies with the given parameters.
13
+
14
+ Args:
15
+ env_name (str): The name of the environment.
16
+ application_name (str | None, optional): The name of the application. Defaults to None.
17
+ application_uuid (str | None, optional): The UUID of the application. Defaults to None.
18
+
19
+ Returns:
20
+ ListDependenciesDetails: The response containing the list of application dependencies.
21
+ """
@@ -2,4 +2,18 @@ from amsdal.cloud.models.base import ListDeployResponse as ListDeployResponse
2
2
  from amsdal.cloud.services.actions.base import CloudActionBase as CloudActionBase
3
3
 
4
4
  class ListDeploysAction(CloudActionBase):
5
- def action(self, *, list_all: bool = True) -> ListDeployResponse: ...
5
+ """
6
+ Class to handle the listing of deployments.
7
+
8
+ This class provides functionality to list deployments for a given environment.
9
+ """
10
+ def action(self, *, list_all: bool = True) -> ListDeployResponse:
11
+ """
12
+ Executes the action to list deployments with the given parameters.
13
+
14
+ Args:
15
+ list_all (bool, optional): Whether to list all deployments. Defaults to True.
16
+
17
+ Returns:
18
+ ListDeployResponse: The response containing the list of deployments.
19
+ """
@@ -2,4 +2,19 @@ from amsdal.cloud.models.base import ListEnvsResponse as ListEnvsResponse
2
2
  from amsdal.cloud.services.actions.base import CloudActionBase as CloudActionBase
3
3
 
4
4
  class ListEnvsAction(CloudActionBase):
5
- def action(self, *, application_name: str | None = None, application_uuid: str | None = None) -> ListEnvsResponse: ...
5
+ """
6
+ Class to handle the listing of environments.
7
+
8
+ This class provides functionality to list environments for a given application.
9
+ """
10
+ def action(self, *, application_name: str | None = None, application_uuid: str | None = None) -> ListEnvsResponse:
11
+ """
12
+ Executes the action to list environments with the given parameters.
13
+
14
+ Args:
15
+ application_name (str | None, optional): The name of the application. Defaults to None.
16
+ application_uuid (str | None, optional): The UUID of the application. Defaults to None.
17
+
18
+ Returns:
19
+ ListEnvsResponse: The response containing the list of environments.
20
+ """
@@ -2,4 +2,21 @@ from amsdal.cloud.models.base import ListSecretsDetails as ListSecretsDetails
2
2
  from amsdal.cloud.services.actions.base import CloudActionBase as CloudActionBase
3
3
 
4
4
  class ListSecretsAction(CloudActionBase):
5
- def action(self, env_name: str, application_uuid: str | None = None, application_name: str | None = None, *, with_values: bool = False) -> ListSecretsDetails: ...
5
+ """
6
+ Class to handle the listing of secrets.
7
+
8
+ This class provides functionality to list secrets for a given environment and application.
9
+ """
10
+ def action(self, env_name: str, application_uuid: str | None = None, application_name: str | None = None, *, with_values: bool = False) -> ListSecretsDetails:
11
+ """
12
+ Executes the action to list secrets with the given parameters.
13
+
14
+ Args:
15
+ env_name (str): The name of the environment.
16
+ application_uuid (str | None, optional): The UUID of the application. Defaults to None.
17
+ application_name (str | None, optional): The name of the application. Defaults to None.
18
+ with_values (bool, optional): Whether to include secret values. Defaults to False.
19
+
20
+ Returns:
21
+ ListSecretsDetails: The response containing the list of secrets.
22
+ """
@@ -22,23 +22,257 @@ from amsdal.cloud.services.actions.update_deploy import UpdateDeployAction as Up
22
22
  from typing import Any
23
23
 
24
24
  class CloudActionsManager:
25
- def create_deploy(self, deploy_type: str, lakehouse_type: str, env_name: str, from_env: str | None = None, application_uuid: str | None = None, application_name: str | None = None, *, no_input: bool = False) -> bool: ...
26
- def list_deploys(self, *, list_all: bool = True) -> ListDeployResponse: ...
27
- def destroy_deploy(self, deployment_id: str) -> bool: ...
28
- def update_deploy(self, deployment_id: str) -> UpdateDeployStatusResponse: ...
29
- def add_secret(self, secret_name: str, secret_value: str, env_name: str, application_uuid: str | None = None, application_name: str | None = None) -> bool: ...
30
- def list_secrets(self, env_name: str, application_uuid: str | None = None, application_name: str | None = None, *, with_values: bool = False) -> ListSecretsDetails: ...
31
- def delete_secret(self, secret_name: str, env_name: str, application_uuid: str | None = None, application_name: str | None = None) -> bool: ...
32
- def add_dependency(self, dependency_name: str, env_name: str, application_uuid: str | None = None, application_name: str | None = None) -> bool: ...
33
- def delete_dependency(self, dependency_name: str, env_name: str, application_uuid: str | None = None, application_name: str | None = None) -> bool: ...
34
- def list_dependencies(self, env_name: str, application_uuid: str | None = None, application_name: str | None = None) -> ListDependenciesDetails: ...
35
- def expose_db(self, env_name: str, application_uuid: str | None = None, application_name: str | None = None, ip_address: str | None = None) -> dict[str, Any]: ...
36
- def get_monitoring_info(self, env_name: str, application_uuid: str | None = None, application_name: str | None = None) -> GetMonitoringInfoResponse: ...
37
- def add_allowlist_ip(self, env_name: str, ip_address: str | None = None, application_uuid: str | None = None, application_name: str | None = None) -> bool: ...
38
- def delete_allowlist_ip(self, env_name: str, ip_address: str | None = None, application_uuid: str | None = None, application_name: str | None = None) -> bool: ...
39
- def add_basic_auth(self, env_name: str, username: str | None = None, password: str | None = None, application_uuid: str | None = None, application_name: str | None = None) -> AddBasicAuthResponse: ...
40
- def delete_basic_auth(self, env_name: str, application_uuid: str | None = None, application_name: str | None = None) -> bool: ...
41
- def get_basic_auth_credentials(self, env_name: str, application_uuid: str | None = None, application_name: str | None = None) -> AddBasicAuthResponse: ...
42
- def list_envs(self, application_uuid: str | None = None, application_name: str | None = None) -> ListEnvsResponse: ...
43
- def create_env(self, env_name: str, application_name: str | None = None, application_uuid: str | None = None) -> CreateEnvResponse: ...
44
- def delete_env(self, env_name: str, application_name: str | None = None, application_uuid: str | None = None) -> CreateEnvResponse: ...
25
+ """
26
+ Manager class to handle various cloud actions.
27
+
28
+ This class provides methods to perform actions such as creating, listing, and deleting deployments,
29
+ environments, secrets, and dependencies.
30
+ """
31
+ def create_deploy(self, deploy_type: str, lakehouse_type: str, env_name: str, from_env: str | None = None, application_uuid: str | None = None, application_name: str | None = None, *, no_input: bool = False) -> bool:
32
+ """
33
+ Creates a new deployment with the given parameters.
34
+
35
+ Args:
36
+ deploy_type (str): The type of deployment.
37
+ lakehouse_type (str): The type of lakehouse.
38
+ env_name (str): The name of the environment.
39
+ from_env (str | None, optional): The source environment. Defaults to None.
40
+ application_uuid (str | None, optional): The UUID of the application. Defaults to None.
41
+ application_name (str | None, optional): The name of the application. Defaults to None.
42
+ no_input (bool, optional): Whether to disable input prompts. Defaults to False.
43
+
44
+ Returns:
45
+ bool: True if the deployment was created successfully, False otherwise.
46
+ """
47
+ def list_deploys(self, *, list_all: bool = True) -> ListDeployResponse:
48
+ """
49
+ Lists deployments with the given parameters.
50
+
51
+ Args:
52
+ list_all (bool, optional): Whether to list all deployments. Defaults to True.
53
+
54
+ Returns:
55
+ ListDeployResponse: The response containing the list of deployments.
56
+ """
57
+ def destroy_deploy(self, deployment_id: str) -> bool:
58
+ """
59
+ Destroys a deployment with the given deployment ID.
60
+
61
+ Args:
62
+ deployment_id (str): The ID of the deployment to be destroyed.
63
+
64
+ Returns:
65
+ bool: True if the deployment was destroyed successfully, False otherwise.
66
+ """
67
+ def update_deploy(self, deployment_id: str) -> UpdateDeployStatusResponse:
68
+ """
69
+ Updates the status of a deployment with the given deployment ID.
70
+
71
+ Args:
72
+ deployment_id (str): The ID of the deployment to be updated.
73
+
74
+ Returns:
75
+ UpdateDeployStatusResponse: The response containing the updated deployment status.
76
+ """
77
+ def add_secret(self, secret_name: str, secret_value: str, env_name: str, application_uuid: str | None = None, application_name: str | None = None) -> bool:
78
+ """
79
+ Adds a secret with the given parameters.
80
+
81
+ Args:
82
+ secret_name (str): The name of the secret.
83
+ secret_value (str): The value of the secret.
84
+ env_name (str): The name of the environment.
85
+ application_uuid (str | None, optional): The UUID of the application. Defaults to None.
86
+ application_name (str | None, optional): The name of the application. Defaults to None.
87
+
88
+ Returns:
89
+ bool: True if the secret was added successfully, False otherwise.
90
+ """
91
+ def list_secrets(self, env_name: str, application_uuid: str | None = None, application_name: str | None = None, *, with_values: bool = False) -> ListSecretsDetails:
92
+ """
93
+ Lists secrets with the given parameters.
94
+
95
+ Args:
96
+ env_name (str): The name of the environment.
97
+ application_uuid (str | None, optional): The UUID of the application. Defaults to None.
98
+ application_name (str | None, optional): The name of the application. Defaults to None.
99
+ with_values (bool, optional): Whether to include secret values. Defaults to False.
100
+
101
+ Returns:
102
+ ListSecretsDetails: The response containing the list of secrets.
103
+ """
104
+ def delete_secret(self, secret_name: str, env_name: str, application_uuid: str | None = None, application_name: str | None = None) -> bool:
105
+ """
106
+ Deletes a secret with the given parameters.
107
+
108
+ Args:
109
+ secret_name (str): The name of the secret.
110
+ env_name (str): The name of the environment.
111
+ application_uuid (str | None, optional): The UUID of the application. Defaults to None.
112
+ application_name (str | None, optional): The name of the application. Defaults to None.
113
+
114
+ Returns:
115
+ bool: True if the secret was deleted successfully, False otherwise.
116
+ """
117
+ def add_dependency(self, dependency_name: str, env_name: str, application_uuid: str | None = None, application_name: str | None = None) -> bool:
118
+ """
119
+ Adds a dependency with the given parameters.
120
+
121
+ Args:
122
+ dependency_name (str): The name of the dependency.
123
+ env_name (str): The name of the environment.
124
+ application_uuid (str | None, optional): The UUID of the application. Defaults to None.
125
+ application_name (str | None, optional): The name of the application. Defaults to None.
126
+
127
+ Returns:
128
+ bool: True if the dependency was added successfully, False otherwise.
129
+ """
130
+ def delete_dependency(self, dependency_name: str, env_name: str, application_uuid: str | None = None, application_name: str | None = None) -> bool:
131
+ """
132
+ Deletes a dependency with the given parameters.
133
+
134
+ Args:
135
+ dependency_name (str): The name of the dependency.
136
+ env_name (str): The name of the environment.
137
+ application_uuid (str | None, optional): The UUID of the application. Defaults to None.
138
+ application_name (str | None, optional): The name of the application. Defaults to None.
139
+
140
+ Returns:
141
+ bool: True if the dependency was deleted successfully, False otherwise.
142
+ """
143
+ def list_dependencies(self, env_name: str, application_uuid: str | None = None, application_name: str | None = None) -> ListDependenciesDetails:
144
+ """
145
+ Lists dependencies with the given parameters.
146
+
147
+ Args:
148
+ env_name (str): The name of the environment.
149
+ application_uuid (str | None, optional): The UUID of the application. Defaults to None.
150
+ application_name (str | None, optional): The name of the application. Defaults to None.
151
+
152
+ Returns:
153
+ ListDependenciesDetails: The response containing the list of dependencies.
154
+ """
155
+ def expose_db(self, env_name: str, application_uuid: str | None = None, application_name: str | None = None, ip_address: str | None = None) -> dict[str, Any]:
156
+ """
157
+ Exposes the database with the given parameters.
158
+
159
+ Args:
160
+ env_name (str): The name of the environment.
161
+ application_uuid (str | None, optional): The UUID of the application. Defaults to None.
162
+ application_name (str | None, optional): The name of the application. Defaults to None.
163
+ ip_address (str | None, optional): The IP address to expose the database to. Defaults to None.
164
+
165
+ Returns:
166
+ dict[str, Any]: The response containing the database exposure details.
167
+ """
168
+ def get_monitoring_info(self, env_name: str, application_uuid: str | None = None, application_name: str | None = None) -> GetMonitoringInfoResponse:
169
+ """
170
+ Gets monitoring information with the given parameters.
171
+
172
+ Args:
173
+ env_name (str): The name of the environment.
174
+ application_uuid (str | None, optional): The UUID of the application. Defaults to None.
175
+ application_name (str | None, optional): The name of the application. Defaults to None.
176
+
177
+ Returns:
178
+ GetMonitoringInfoResponse: The response containing the monitoring information.
179
+ """
180
+ def add_allowlist_ip(self, env_name: str, ip_address: str | None = None, application_uuid: str | None = None, application_name: str | None = None) -> bool:
181
+ """
182
+ Adds an IP address to the allowlist with the given parameters.
183
+
184
+ Args:
185
+ env_name (str): The name of the environment.
186
+ ip_address (str | None, optional): The IP address to be added to the allowlist. Defaults to None.
187
+ application_uuid (str | None, optional): The UUID of the application. Defaults to None.
188
+ application_name (str | None, optional): The name of the application. Defaults to None.
189
+
190
+ Returns:
191
+ bool: True if the IP address was added to the allowlist successfully, False otherwise.
192
+ """
193
+ def delete_allowlist_ip(self, env_name: str, ip_address: str | None = None, application_uuid: str | None = None, application_name: str | None = None) -> bool:
194
+ """
195
+ Deletes an IP address from the allowlist with the given parameters.
196
+
197
+ Args:
198
+ env_name (str): The name of the environment.
199
+ ip_address (str | None, optional): The IP address to be deleted from the allowlist. Defaults to None.
200
+ application_uuid (str | None, optional): The UUID of the application. Defaults to None.
201
+ application_name (str | None, optional): The name of the application. Defaults to None.
202
+
203
+ Returns:
204
+ bool: True if the IP address was deleted from the allowlist successfully, False otherwise.
205
+ """
206
+ def add_basic_auth(self, env_name: str, username: str | None = None, password: str | None = None, application_uuid: str | None = None, application_name: str | None = None) -> AddBasicAuthResponse:
207
+ """
208
+ Adds basic authentication credentials with the given parameters.
209
+
210
+ Args:
211
+ env_name (str): The name of the environment.
212
+ username (str | None, optional): The username for basic authentication. Defaults to None.
213
+ password (str | None, optional): The password for basic authentication. Defaults to None.
214
+ application_uuid (str | None, optional): The UUID of the application. Defaults to None.
215
+ application_name (str | None, optional): The name of the application. Defaults to None.
216
+
217
+ Returns:
218
+ AddBasicAuthResponse: The response containing the added basic authentication credentials.
219
+ """
220
+ def delete_basic_auth(self, env_name: str, application_uuid: str | None = None, application_name: str | None = None) -> bool:
221
+ """
222
+ Deletes basic authentication credentials with the given parameters.
223
+
224
+ Args:
225
+ env_name (str): The name of the environment.
226
+ application_uuid (str | None, optional): The UUID of the application. Defaults to None.
227
+ application_name (str | None, optional): The name of the application. Defaults to None.
228
+
229
+ Returns:
230
+ bool: True if the basic authentication credentials were deleted successfully, False otherwise.
231
+ """
232
+ def get_basic_auth_credentials(self, env_name: str, application_uuid: str | None = None, application_name: str | None = None) -> AddBasicAuthResponse:
233
+ """
234
+ Gets basic authentication credentials with the given parameters.
235
+
236
+ Args:
237
+ env_name (str): The name of the environment.
238
+ application_uuid (str | None, optional): The UUID of the application. Defaults to None.
239
+ application_name (str | None, optional): The name of the application. Defaults to None.
240
+
241
+ Returns:
242
+ AddBasicAuthResponse: The response containing the basic authentication credentials.
243
+ """
244
+ def list_envs(self, application_uuid: str | None = None, application_name: str | None = None) -> ListEnvsResponse:
245
+ """
246
+ Lists environments with the given parameters.
247
+
248
+ Args:
249
+ application_uuid (str | None, optional): The UUID of the application. Defaults to None.
250
+ application_name (str | None, optional): The name of the application. Defaults to None.
251
+
252
+ Returns:
253
+ ListEnvsResponse: The response containing the list of environments.
254
+ """
255
+ def create_env(self, env_name: str, application_name: str | None = None, application_uuid: str | None = None) -> CreateEnvResponse:
256
+ """
257
+ Creates an environment with the given parameters.
258
+
259
+ Args:
260
+ env_name (str): The name of the environment.
261
+ application_name (str | None, optional): The name of the application. Defaults to None.
262
+ application_uuid (str | None, optional): The UUID of the application. Defaults to None.
263
+
264
+ Returns:
265
+ CreateEnvResponse: The response containing the created environment details.
266
+ """
267
+ def delete_env(self, env_name: str, application_name: str | None = None, application_uuid: str | None = None) -> CreateEnvResponse:
268
+ """
269
+ Deletes an environment with the given parameters.
270
+
271
+ Args:
272
+ env_name (str): The name of the environment.
273
+ application_name (str | None, optional): The name of the application. Defaults to None.
274
+ application_uuid (str | None, optional): The UUID of the application. Defaults to None.
275
+
276
+ Returns:
277
+ CreateEnvResponse: The response containing the deleted environment details.
278
+ """