capo-codecatalyst 0.1.0__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.
- capo_codecatalyst/__init__.py +51 -0
- capo_codecatalyst/_async.py +25 -0
- capo_codecatalyst/_auth/_identity.py +14 -0
- capo_codecatalyst/_auth/_providers.py +154 -0
- capo_codecatalyst/_auth/_signers.py +43 -0
- capo_codecatalyst/_auth/_sigv4.py +434 -0
- capo_codecatalyst/_auth/_zapros_handler.py +80 -0
- capo_codecatalyst/_iter.py +113 -0
- capo_codecatalyst/_operations/code_catalyst/create_access_token.py +153 -0
- capo_codecatalyst/_operations/code_catalyst/create_dev_environment.py +165 -0
- capo_codecatalyst/_operations/code_catalyst/create_project.py +158 -0
- capo_codecatalyst/_operations/code_catalyst/create_source_repository.py +159 -0
- capo_codecatalyst/_operations/code_catalyst/create_source_repository_branch.py +165 -0
- capo_codecatalyst/_operations/code_catalyst/delete_access_token.py +146 -0
- capo_codecatalyst/_operations/code_catalyst/delete_dev_environment.py +159 -0
- capo_codecatalyst/_operations/code_catalyst/delete_project.py +155 -0
- capo_codecatalyst/_operations/code_catalyst/delete_source_repository.py +155 -0
- capo_codecatalyst/_operations/code_catalyst/delete_space.py +152 -0
- capo_codecatalyst/_operations/code_catalyst/get_dev_environment.py +159 -0
- capo_codecatalyst/_operations/code_catalyst/get_project.py +153 -0
- capo_codecatalyst/_operations/code_catalyst/get_source_repository.py +156 -0
- capo_codecatalyst/_operations/code_catalyst/get_source_repository_clone_urls.py +157 -0
- capo_codecatalyst/_operations/code_catalyst/get_space.py +152 -0
- capo_codecatalyst/_operations/code_catalyst/get_subscription.py +155 -0
- capo_codecatalyst/_operations/code_catalyst/get_user_details.py +157 -0
- capo_codecatalyst/_operations/code_catalyst/get_workflow.py +159 -0
- capo_codecatalyst/_operations/code_catalyst/get_workflow_run.py +161 -0
- capo_codecatalyst/_operations/code_catalyst/list_access_tokens.py +153 -0
- capo_codecatalyst/_operations/code_catalyst/list_dev_environment_sessions.py +164 -0
- capo_codecatalyst/_operations/code_catalyst/list_dev_environments.py +156 -0
- capo_codecatalyst/_operations/code_catalyst/list_event_logs.py +160 -0
- capo_codecatalyst/_operations/code_catalyst/list_projects.py +158 -0
- capo_codecatalyst/_operations/code_catalyst/list_source_repositories.py +159 -0
- capo_codecatalyst/_operations/code_catalyst/list_source_repository_branches.py +164 -0
- capo_codecatalyst/_operations/code_catalyst/list_spaces.py +155 -0
- capo_codecatalyst/_operations/code_catalyst/list_workflow_runs.py +166 -0
- capo_codecatalyst/_operations/code_catalyst/list_workflows.py +168 -0
- capo_codecatalyst/_operations/code_catalyst/start_dev_environment.py +160 -0
- capo_codecatalyst/_operations/code_catalyst/start_dev_environment_session.py +163 -0
- capo_codecatalyst/_operations/code_catalyst/start_workflow_run.py +160 -0
- capo_codecatalyst/_operations/code_catalyst/stop_dev_environment.py +155 -0
- capo_codecatalyst/_operations/code_catalyst/stop_dev_environment_session.py +156 -0
- capo_codecatalyst/_operations/code_catalyst/update_dev_environment.py +164 -0
- capo_codecatalyst/_operations/code_catalyst/update_project.py +159 -0
- capo_codecatalyst/_operations/code_catalyst/update_space.py +156 -0
- capo_codecatalyst/_operations/code_catalyst/verify_session.py +146 -0
- capo_codecatalyst/_pagination.py +21 -0
- capo_codecatalyst/_protocol/__init__.py +1 -0
- capo_codecatalyst/_protocol/errors.py +93 -0
- capo_codecatalyst/_protocol/eventstream.py +238 -0
- capo_codecatalyst/_protocol/serialize.py +47 -0
- capo_codecatalyst/_protocol/xml.py +33 -0
- capo_codecatalyst/_resources/code_catalyst/access_token.py +359 -0
- capo_codecatalyst/_resources/code_catalyst/space.py +578 -0
- capo_codecatalyst/_rule_engine/__init__.py +0 -0
- capo_codecatalyst/_rule_engine/_aws_partition.py +160 -0
- capo_codecatalyst/_rule_engine/_endpoint_rule_set.py +98 -0
- capo_codecatalyst/_rule_engine/_endpoint_runtime.py +389 -0
- capo_codecatalyst/_services/_aws_config.py +156 -0
- capo_codecatalyst/_services/_pipeline.py +195 -0
- capo_codecatalyst/_services/async_code_catalyst.py +214 -0
- capo_codecatalyst/_services/code_catalyst.py +212 -0
- capo_codecatalyst/errors/__init__.py +33 -0
- capo_codecatalyst/errors/_base.py +94 -0
- capo_codecatalyst/errors/access_denied_exception.py +47 -0
- capo_codecatalyst/errors/conflict_exception.py +45 -0
- capo_codecatalyst/errors/resource_not_found_exception.py +47 -0
- capo_codecatalyst/errors/service_quota_exceeded_exception.py +49 -0
- capo_codecatalyst/errors/throttling_exception.py +45 -0
- capo_codecatalyst/errors/validation_exception.py +45 -0
- capo_codecatalyst/py.typed +0 -0
- capo_codecatalyst/types/_prelude/blob.py +12 -0
- capo_codecatalyst/types/_prelude/timestamp.py +17 -0
- capo_codecatalyst/types/access_token_id.py +5 -0
- capo_codecatalyst/types/access_token_name.py +5 -0
- capo_codecatalyst/types/access_token_secret.py +5 -0
- capo_codecatalyst/types/access_token_summaries.py +31 -0
- capo_codecatalyst/types/access_token_summary.py +54 -0
- capo_codecatalyst/types/client_token.py +5 -0
- capo_codecatalyst/types/comparison_operator.py +5 -0
- capo_codecatalyst/types/create_access_token_request.py +46 -0
- capo_codecatalyst/types/create_access_token_response.py +63 -0
- capo_codecatalyst/types/create_dev_environment_request.py +123 -0
- capo_codecatalyst/types/create_dev_environment_response.py +52 -0
- capo_codecatalyst/types/create_project_request.py +43 -0
- capo_codecatalyst/types/create_project_response.py +49 -0
- capo_codecatalyst/types/create_source_repository_branch_request.py +38 -0
- capo_codecatalyst/types/create_source_repository_branch_response.py +60 -0
- capo_codecatalyst/types/create_source_repository_request.py +38 -0
- capo_codecatalyst/types/create_source_repository_response.py +57 -0
- capo_codecatalyst/types/delete_access_token_request.py +24 -0
- capo_codecatalyst/types/delete_access_token_response.py +18 -0
- capo_codecatalyst/types/delete_dev_environment_request.py +29 -0
- capo_codecatalyst/types/delete_dev_environment_response.py +46 -0
- capo_codecatalyst/types/delete_project_request.py +26 -0
- capo_codecatalyst/types/delete_project_response.py +44 -0
- capo_codecatalyst/types/delete_source_repository_request.py +29 -0
- capo_codecatalyst/types/delete_source_repository_response.py +48 -0
- capo_codecatalyst/types/delete_space_request.py +24 -0
- capo_codecatalyst/types/delete_space_response.py +37 -0
- capo_codecatalyst/types/dev_environment_access_details.py +38 -0
- capo_codecatalyst/types/dev_environment_repository_summaries.py +39 -0
- capo_codecatalyst/types/dev_environment_repository_summary.py +42 -0
- capo_codecatalyst/types/dev_environment_session_configuration.py +56 -0
- capo_codecatalyst/types/dev_environment_session_summary.py +71 -0
- capo_codecatalyst/types/dev_environment_session_type.py +5 -0
- capo_codecatalyst/types/dev_environment_sessions_summary_list.py +37 -0
- capo_codecatalyst/types/dev_environment_status.py +5 -0
- capo_codecatalyst/types/dev_environment_summary.py +163 -0
- capo_codecatalyst/types/dev_environment_summary_list.py +33 -0
- capo_codecatalyst/types/email_address.py +29 -0
- capo_codecatalyst/types/event_log_entries.py +31 -0
- capo_codecatalyst/types/event_log_entry.py +174 -0
- capo_codecatalyst/types/event_payload.py +29 -0
- capo_codecatalyst/types/execute_command_session_configuration.py +53 -0
- capo_codecatalyst/types/execute_command_session_configuration_arguments.py +14 -0
- capo_codecatalyst/types/filter.py +50 -0
- capo_codecatalyst/types/filter_key.py +5 -0
- capo_codecatalyst/types/filters.py +29 -0
- capo_codecatalyst/types/get_dev_environment_request.py +29 -0
- capo_codecatalyst/types/get_dev_environment_response.py +169 -0
- capo_codecatalyst/types/get_project_request.py +26 -0
- capo_codecatalyst/types/get_project_response.py +49 -0
- capo_codecatalyst/types/get_source_repository_clone_urls_request.py +29 -0
- capo_codecatalyst/types/get_source_repository_clone_urls_response.py +28 -0
- capo_codecatalyst/types/get_source_repository_request.py +29 -0
- capo_codecatalyst/types/get_source_repository_response.py +88 -0
- capo_codecatalyst/types/get_space_request.py +24 -0
- capo_codecatalyst/types/get_space_response.py +51 -0
- capo_codecatalyst/types/get_subscription_request.py +24 -0
- capo_codecatalyst/types/get_subscription_response.py +59 -0
- capo_codecatalyst/types/get_user_details_request.py +21 -0
- capo_codecatalyst/types/get_user_details_response.py +60 -0
- capo_codecatalyst/types/get_workflow_request.py +29 -0
- capo_codecatalyst/types/get_workflow_response.py +136 -0
- capo_codecatalyst/types/get_workflow_run_request.py +29 -0
- capo_codecatalyst/types/get_workflow_run_response.py +127 -0
- capo_codecatalyst/types/ide.py +29 -0
- capo_codecatalyst/types/ide_configuration.py +29 -0
- capo_codecatalyst/types/ide_configuration_list.py +31 -0
- capo_codecatalyst/types/ides.py +29 -0
- capo_codecatalyst/types/inactivity_timeout_minutes.py +5 -0
- capo_codecatalyst/types/instance_type.py +5 -0
- capo_codecatalyst/types/list_access_tokens_request.py +29 -0
- capo_codecatalyst/types/list_access_tokens_response.py +45 -0
- capo_codecatalyst/types/list_dev_environment_sessions_request.py +41 -0
- capo_codecatalyst/types/list_dev_environment_sessions_response.py +49 -0
- capo_codecatalyst/types/list_dev_environments_request.py +57 -0
- capo_codecatalyst/types/list_dev_environments_response.py +49 -0
- capo_codecatalyst/types/list_event_logs_request.py +75 -0
- capo_codecatalyst/types/list_event_logs_response.py +45 -0
- capo_codecatalyst/types/list_projects_request.py +53 -0
- capo_codecatalyst/types/list_projects_response.py +42 -0
- capo_codecatalyst/types/list_source_repositories_item.py +81 -0
- capo_codecatalyst/types/list_source_repositories_items.py +35 -0
- capo_codecatalyst/types/list_source_repositories_request.py +38 -0
- capo_codecatalyst/types/list_source_repositories_response.py +48 -0
- capo_codecatalyst/types/list_source_repository_branches_item.py +60 -0
- capo_codecatalyst/types/list_source_repository_branches_items.py +39 -0
- capo_codecatalyst/types/list_source_repository_branches_request.py +41 -0
- capo_codecatalyst/types/list_source_repository_branches_response.py +51 -0
- capo_codecatalyst/types/list_spaces_request.py +23 -0
- capo_codecatalyst/types/list_spaces_response.py +42 -0
- capo_codecatalyst/types/list_workflow_runs_request.py +54 -0
- capo_codecatalyst/types/list_workflow_runs_response.py +44 -0
- capo_codecatalyst/types/list_workflows_request.py +51 -0
- capo_codecatalyst/types/list_workflows_response.py +42 -0
- capo_codecatalyst/types/name_string.py +5 -0
- capo_codecatalyst/types/operation_type.py +5 -0
- capo_codecatalyst/types/persistent_storage.py +26 -0
- capo_codecatalyst/types/persistent_storage_configuration.py +28 -0
- capo_codecatalyst/types/project_description.py +5 -0
- capo_codecatalyst/types/project_display_name.py +5 -0
- capo_codecatalyst/types/project_information.py +29 -0
- capo_codecatalyst/types/project_list_filter.py +54 -0
- capo_codecatalyst/types/project_list_filters.py +31 -0
- capo_codecatalyst/types/project_summaries.py +31 -0
- capo_codecatalyst/types/project_summary.py +38 -0
- capo_codecatalyst/types/region_string.py +5 -0
- capo_codecatalyst/types/repositories_input.py +31 -0
- capo_codecatalyst/types/repository_input.py +40 -0
- capo_codecatalyst/types/sensitive_string.py +5 -0
- capo_codecatalyst/types/source_repository_branch_ref_string.py +5 -0
- capo_codecatalyst/types/source_repository_branch_string.py +5 -0
- capo_codecatalyst/types/source_repository_description_string.py +5 -0
- capo_codecatalyst/types/source_repository_id_string.py +5 -0
- capo_codecatalyst/types/source_repository_name_string.py +5 -0
- capo_codecatalyst/types/space_description.py +5 -0
- capo_codecatalyst/types/space_summaries.py +29 -0
- capo_codecatalyst/types/space_summary.py +51 -0
- capo_codecatalyst/types/start_dev_environment_request.py +63 -0
- capo_codecatalyst/types/start_dev_environment_response.py +54 -0
- capo_codecatalyst/types/start_dev_environment_session_request.py +52 -0
- capo_codecatalyst/types/start_dev_environment_session_response.py +77 -0
- capo_codecatalyst/types/start_workflow_run_request.py +35 -0
- capo_codecatalyst/types/start_workflow_run_response.py +53 -0
- capo_codecatalyst/types/status_reason.py +5 -0
- capo_codecatalyst/types/stop_dev_environment_request.py +29 -0
- capo_codecatalyst/types/stop_dev_environment_response.py +54 -0
- capo_codecatalyst/types/stop_dev_environment_session_request.py +31 -0
- capo_codecatalyst/types/stop_dev_environment_session_response.py +59 -0
- capo_codecatalyst/types/string_list.py +14 -0
- capo_codecatalyst/types/timestamp.py +20 -0
- capo_codecatalyst/types/update_dev_environment_request.py +76 -0
- capo_codecatalyst/types/update_dev_environment_response.py +93 -0
- capo_codecatalyst/types/update_project_request.py +35 -0
- capo_codecatalyst/types/update_project_response.py +46 -0
- capo_codecatalyst/types/update_space_request.py +33 -0
- capo_codecatalyst/types/update_space_response.py +40 -0
- capo_codecatalyst/types/user_identity.py +50 -0
- capo_codecatalyst/types/user_type.py +5 -0
- capo_codecatalyst/types/uuid.py +5 -0
- capo_codecatalyst/types/verify_session_response.py +23 -0
- capo_codecatalyst/types/workflow_definition.py +26 -0
- capo_codecatalyst/types/workflow_definition_summary.py +26 -0
- capo_codecatalyst/types/workflow_run_mode.py +5 -0
- capo_codecatalyst/types/workflow_run_sort_criteria.py +18 -0
- capo_codecatalyst/types/workflow_run_sort_criteria_list.py +35 -0
- capo_codecatalyst/types/workflow_run_status.py +5 -0
- capo_codecatalyst/types/workflow_run_status_reason.py +18 -0
- capo_codecatalyst/types/workflow_run_status_reasons.py +35 -0
- capo_codecatalyst/types/workflow_run_summaries.py +31 -0
- capo_codecatalyst/types/workflow_run_summary.py +119 -0
- capo_codecatalyst/types/workflow_sort_criteria.py +18 -0
- capo_codecatalyst/types/workflow_sort_criteria_list.py +33 -0
- capo_codecatalyst/types/workflow_status.py +5 -0
- capo_codecatalyst/types/workflow_summaries.py +31 -0
- capo_codecatalyst/types/workflow_summary.py +123 -0
- capo_codecatalyst-0.1.0.dist-info/METADATA +82 -0
- capo_codecatalyst-0.1.0.dist-info/RECORD +233 -0
- capo_codecatalyst-0.1.0.dist-info/WHEEL +5 -0
- capo_codecatalyst-0.1.0.dist-info/licenses/LICENSE +21 -0
- capo_codecatalyst-0.1.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codecatalyst#RepositoriesInput``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING, TypeAlias
|
|
4
|
+
|
|
5
|
+
if TYPE_CHECKING:
|
|
6
|
+
import capo_codecatalyst.types.repository_input
|
|
7
|
+
|
|
8
|
+
RepositoriesInput: TypeAlias = list[
|
|
9
|
+
"capo_codecatalyst.types.repository_input.RepositoryInput"
|
|
10
|
+
]
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
# --- restJson1 ser/de ---
|
|
14
|
+
def serialize_json(value: RepositoriesInput) -> list:
|
|
15
|
+
import capo_codecatalyst.types.repository_input
|
|
16
|
+
|
|
17
|
+
out: list = []
|
|
18
|
+
for item in value:
|
|
19
|
+
out.append(capo_codecatalyst.types.repository_input.serialize_json(item))
|
|
20
|
+
return out
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
def deserialize_json(data: list) -> RepositoriesInput:
|
|
24
|
+
import capo_codecatalyst.types.repository_input
|
|
25
|
+
|
|
26
|
+
out: RepositoriesInput = []
|
|
27
|
+
for item in data:
|
|
28
|
+
if item is None:
|
|
29
|
+
continue
|
|
30
|
+
out.append(capo_codecatalyst.types.repository_input.deserialize_json(item))
|
|
31
|
+
return out
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codecatalyst#RepositoryInput``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import NotRequired, TypedDict
|
|
6
|
+
|
|
7
|
+
from capo_codecatalyst.errors import DeserializationError
|
|
8
|
+
|
|
9
|
+
if TYPE_CHECKING:
|
|
10
|
+
import capo_codecatalyst.types.source_repository_branch_string
|
|
11
|
+
import capo_codecatalyst.types.source_repository_name_string
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class RepositoryInput(TypedDict, closed=True):
|
|
15
|
+
repository_name: "capo_codecatalyst.types.source_repository_name_string.SourceRepositoryNameString"
|
|
16
|
+
"""<p>The name of the source repository.</p>"""
|
|
17
|
+
branch_name: NotRequired[
|
|
18
|
+
"capo_codecatalyst.types.source_repository_branch_string.SourceRepositoryBranchString"
|
|
19
|
+
]
|
|
20
|
+
"""<p>The name of the branch in a source repository.</p>"""
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
# --- restJson1 ser/de ---
|
|
24
|
+
def serialize_json(value: RepositoryInput) -> dict:
|
|
25
|
+
out: dict = {}
|
|
26
|
+
out["repositoryName"] = value["repository_name"]
|
|
27
|
+
if "branch_name" in value:
|
|
28
|
+
out["branchName"] = value["branch_name"]
|
|
29
|
+
return out
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
def deserialize_json(data: dict) -> RepositoryInput:
|
|
33
|
+
out: RepositoryInput = {} # type: ignore[typeddict-item]
|
|
34
|
+
if data.get("repositoryName") is not None:
|
|
35
|
+
out["repository_name"] = data["repositoryName"]
|
|
36
|
+
else:
|
|
37
|
+
raise DeserializationError("RepositoryInput.repository_name required")
|
|
38
|
+
if data.get("branchName") is not None:
|
|
39
|
+
out["branch_name"] = data["branchName"]
|
|
40
|
+
return out
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codecatalyst#SpaceSummaries``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING, TypeAlias
|
|
4
|
+
|
|
5
|
+
if TYPE_CHECKING:
|
|
6
|
+
import capo_codecatalyst.types.space_summary
|
|
7
|
+
|
|
8
|
+
SpaceSummaries: TypeAlias = list["capo_codecatalyst.types.space_summary.SpaceSummary"]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
# --- restJson1 ser/de ---
|
|
12
|
+
def serialize_json(value: SpaceSummaries) -> list:
|
|
13
|
+
import capo_codecatalyst.types.space_summary
|
|
14
|
+
|
|
15
|
+
out: list = []
|
|
16
|
+
for item in value:
|
|
17
|
+
out.append(capo_codecatalyst.types.space_summary.serialize_json(item))
|
|
18
|
+
return out
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
def deserialize_json(data: list) -> SpaceSummaries:
|
|
22
|
+
import capo_codecatalyst.types.space_summary
|
|
23
|
+
|
|
24
|
+
out: SpaceSummaries = []
|
|
25
|
+
for item in data:
|
|
26
|
+
if item is None:
|
|
27
|
+
continue
|
|
28
|
+
out.append(capo_codecatalyst.types.space_summary.deserialize_json(item))
|
|
29
|
+
return out
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codecatalyst#SpaceSummary``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import NotRequired, TypedDict
|
|
6
|
+
|
|
7
|
+
from capo_codecatalyst.errors import DeserializationError
|
|
8
|
+
|
|
9
|
+
if TYPE_CHECKING:
|
|
10
|
+
import capo_codecatalyst.types.name_string
|
|
11
|
+
import capo_codecatalyst.types.region_string
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class SpaceSummary(TypedDict, closed=True):
|
|
15
|
+
name: "capo_codecatalyst.types.name_string.NameString"
|
|
16
|
+
"""<p>The name of the space.</p>"""
|
|
17
|
+
region_name: "capo_codecatalyst.types.region_string.RegionString"
|
|
18
|
+
"""<p>The Amazon Web Services Region where the space exists.</p>"""
|
|
19
|
+
display_name: NotRequired["str"]
|
|
20
|
+
"""<p>The friendly name of the space displayed to users.</p>"""
|
|
21
|
+
description: NotRequired["str"]
|
|
22
|
+
"""<p>The description of the space.</p>"""
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# --- restJson1 ser/de ---
|
|
26
|
+
def serialize_json(value: SpaceSummary) -> dict:
|
|
27
|
+
out: dict = {}
|
|
28
|
+
out["name"] = value["name"]
|
|
29
|
+
out["regionName"] = value["region_name"]
|
|
30
|
+
if "display_name" in value:
|
|
31
|
+
out["displayName"] = value["display_name"]
|
|
32
|
+
if "description" in value:
|
|
33
|
+
out["description"] = value["description"]
|
|
34
|
+
return out
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
def deserialize_json(data: dict) -> SpaceSummary:
|
|
38
|
+
out: SpaceSummary = {} # type: ignore[typeddict-item]
|
|
39
|
+
if data.get("name") is not None:
|
|
40
|
+
out["name"] = data["name"]
|
|
41
|
+
else:
|
|
42
|
+
raise DeserializationError("SpaceSummary.name required")
|
|
43
|
+
if data.get("regionName") is not None:
|
|
44
|
+
out["region_name"] = data["regionName"]
|
|
45
|
+
else:
|
|
46
|
+
raise DeserializationError("SpaceSummary.region_name required")
|
|
47
|
+
if data.get("displayName") is not None:
|
|
48
|
+
out["display_name"] = data["displayName"]
|
|
49
|
+
if data.get("description") is not None:
|
|
50
|
+
out["description"] = data["description"]
|
|
51
|
+
return out
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codecatalyst#StartDevEnvironmentRequest``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import NotRequired, TypedDict
|
|
6
|
+
|
|
7
|
+
if TYPE_CHECKING:
|
|
8
|
+
import capo_codecatalyst.types.ide_configuration_list
|
|
9
|
+
import capo_codecatalyst.types.inactivity_timeout_minutes
|
|
10
|
+
import capo_codecatalyst.types.instance_type
|
|
11
|
+
import capo_codecatalyst.types.name_string
|
|
12
|
+
import capo_codecatalyst.types.uuid
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class StartDevEnvironmentRequest(TypedDict, closed=True):
|
|
16
|
+
space_name: "capo_codecatalyst.types.name_string.NameString"
|
|
17
|
+
"""<p>The name of the space.</p>"""
|
|
18
|
+
project_name: "capo_codecatalyst.types.name_string.NameString"
|
|
19
|
+
"""<p>The name of the project in the space.</p>"""
|
|
20
|
+
id: "capo_codecatalyst.types.uuid.Uuid"
|
|
21
|
+
"""<p>The system-generated unique ID of the Dev Environment. </p>"""
|
|
22
|
+
ides: NotRequired[
|
|
23
|
+
"capo_codecatalyst.types.ide_configuration_list.IdeConfigurationList"
|
|
24
|
+
]
|
|
25
|
+
"""<p>Information about the integrated development environment (IDE) configured for a Dev Environment. </p>"""
|
|
26
|
+
instance_type: NotRequired["capo_codecatalyst.types.instance_type.InstanceType"]
|
|
27
|
+
"""<p>The Amazon EC2 instace type to use for the Dev Environment. </p>"""
|
|
28
|
+
inactivity_timeout_minutes: (
|
|
29
|
+
"capo_codecatalyst.types.inactivity_timeout_minutes.InactivityTimeoutMinutes"
|
|
30
|
+
)
|
|
31
|
+
"""<p>The amount of time the Dev Environment will run without any activity detected before stopping, in minutes. Only whole integers are allowed. Dev Environments consume compute minutes when running.</p>"""
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
# --- restJson1 ser/de ---
|
|
35
|
+
def serialize_json(value: StartDevEnvironmentRequest) -> dict:
|
|
36
|
+
out: dict = {}
|
|
37
|
+
if "ides" in value:
|
|
38
|
+
import capo_codecatalyst.types.ide_configuration_list
|
|
39
|
+
|
|
40
|
+
out["ides"] = capo_codecatalyst.types.ide_configuration_list.serialize_json(
|
|
41
|
+
value["ides"]
|
|
42
|
+
)
|
|
43
|
+
if "instance_type" in value:
|
|
44
|
+
out["instanceType"] = value["instance_type"]
|
|
45
|
+
out["inactivityTimeoutMinutes"] = value.get("inactivity_timeout_minutes", 0)
|
|
46
|
+
return out
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
def deserialize_json(data: dict) -> StartDevEnvironmentRequest:
|
|
50
|
+
out: StartDevEnvironmentRequest = {} # type: ignore[typeddict-item]
|
|
51
|
+
if data.get("ides") is not None:
|
|
52
|
+
import capo_codecatalyst.types.ide_configuration_list
|
|
53
|
+
|
|
54
|
+
out["ides"] = capo_codecatalyst.types.ide_configuration_list.deserialize_json(
|
|
55
|
+
data["ides"]
|
|
56
|
+
)
|
|
57
|
+
if data.get("instanceType") is not None:
|
|
58
|
+
out["instance_type"] = data["instanceType"]
|
|
59
|
+
if data.get("inactivityTimeoutMinutes") is not None:
|
|
60
|
+
out["inactivity_timeout_minutes"] = data["inactivityTimeoutMinutes"]
|
|
61
|
+
else:
|
|
62
|
+
out["inactivity_timeout_minutes"] = 0
|
|
63
|
+
return out
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codecatalyst#StartDevEnvironmentResponse``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import TypedDict
|
|
6
|
+
|
|
7
|
+
from capo_codecatalyst.errors import DeserializationError
|
|
8
|
+
|
|
9
|
+
if TYPE_CHECKING:
|
|
10
|
+
import capo_codecatalyst.types.dev_environment_status
|
|
11
|
+
import capo_codecatalyst.types.name_string
|
|
12
|
+
import capo_codecatalyst.types.uuid
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class StartDevEnvironmentResponse(TypedDict, closed=True):
|
|
16
|
+
space_name: "capo_codecatalyst.types.name_string.NameString"
|
|
17
|
+
"""<p>The name of the space.</p>"""
|
|
18
|
+
project_name: "capo_codecatalyst.types.name_string.NameString"
|
|
19
|
+
"""<p>The name of the project in the space.</p>"""
|
|
20
|
+
id: "capo_codecatalyst.types.uuid.Uuid"
|
|
21
|
+
"""<p>The system-generated unique ID of the Dev Environment. </p>"""
|
|
22
|
+
status: "capo_codecatalyst.types.dev_environment_status.DevEnvironmentStatus"
|
|
23
|
+
"""<p>The status of the Dev Environment. </p>"""
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
# --- restJson1 ser/de ---
|
|
27
|
+
def serialize_json(value: StartDevEnvironmentResponse) -> dict:
|
|
28
|
+
out: dict = {}
|
|
29
|
+
out["spaceName"] = value["space_name"]
|
|
30
|
+
out["projectName"] = value["project_name"]
|
|
31
|
+
out["id"] = value["id"]
|
|
32
|
+
out["status"] = value["status"]
|
|
33
|
+
return out
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
def deserialize_json(data: dict) -> StartDevEnvironmentResponse:
|
|
37
|
+
out: StartDevEnvironmentResponse = {} # type: ignore[typeddict-item]
|
|
38
|
+
if data.get("spaceName") is not None:
|
|
39
|
+
out["space_name"] = data["spaceName"]
|
|
40
|
+
else:
|
|
41
|
+
raise DeserializationError("StartDevEnvironmentResponse.space_name required")
|
|
42
|
+
if data.get("projectName") is not None:
|
|
43
|
+
out["project_name"] = data["projectName"]
|
|
44
|
+
else:
|
|
45
|
+
raise DeserializationError("StartDevEnvironmentResponse.project_name required")
|
|
46
|
+
if data.get("id") is not None:
|
|
47
|
+
out["id"] = data["id"]
|
|
48
|
+
else:
|
|
49
|
+
raise DeserializationError("StartDevEnvironmentResponse.id required")
|
|
50
|
+
if data.get("status") is not None:
|
|
51
|
+
out["status"] = data["status"]
|
|
52
|
+
else:
|
|
53
|
+
raise DeserializationError("StartDevEnvironmentResponse.status required")
|
|
54
|
+
return out
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codecatalyst#StartDevEnvironmentSessionRequest``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import TypedDict
|
|
6
|
+
|
|
7
|
+
from capo_codecatalyst.errors import DeserializationError
|
|
8
|
+
|
|
9
|
+
if TYPE_CHECKING:
|
|
10
|
+
import capo_codecatalyst.types.dev_environment_session_configuration
|
|
11
|
+
import capo_codecatalyst.types.name_string
|
|
12
|
+
import capo_codecatalyst.types.uuid
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class StartDevEnvironmentSessionRequest(TypedDict, closed=True):
|
|
16
|
+
space_name: "capo_codecatalyst.types.name_string.NameString"
|
|
17
|
+
"""<p>The name of the space.</p>"""
|
|
18
|
+
project_name: "capo_codecatalyst.types.name_string.NameString"
|
|
19
|
+
"""<p>The name of the project in the space.</p>"""
|
|
20
|
+
id: "capo_codecatalyst.types.uuid.Uuid"
|
|
21
|
+
"""<p>The system-generated unique ID of the Dev Environment.</p>"""
|
|
22
|
+
session_configuration: "capo_codecatalyst.types.dev_environment_session_configuration.DevEnvironmentSessionConfiguration"
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# --- restJson1 ser/de ---
|
|
26
|
+
def serialize_json(value: StartDevEnvironmentSessionRequest) -> dict:
|
|
27
|
+
out: dict = {}
|
|
28
|
+
import capo_codecatalyst.types.dev_environment_session_configuration
|
|
29
|
+
|
|
30
|
+
out["sessionConfiguration"] = (
|
|
31
|
+
capo_codecatalyst.types.dev_environment_session_configuration.serialize_json(
|
|
32
|
+
value["session_configuration"]
|
|
33
|
+
)
|
|
34
|
+
)
|
|
35
|
+
return out
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
def deserialize_json(data: dict) -> StartDevEnvironmentSessionRequest:
|
|
39
|
+
out: StartDevEnvironmentSessionRequest = {} # type: ignore[typeddict-item]
|
|
40
|
+
if data.get("sessionConfiguration") is not None:
|
|
41
|
+
import capo_codecatalyst.types.dev_environment_session_configuration
|
|
42
|
+
|
|
43
|
+
out["session_configuration"] = (
|
|
44
|
+
capo_codecatalyst.types.dev_environment_session_configuration.deserialize_json(
|
|
45
|
+
data["sessionConfiguration"]
|
|
46
|
+
)
|
|
47
|
+
)
|
|
48
|
+
else:
|
|
49
|
+
raise DeserializationError(
|
|
50
|
+
"StartDevEnvironmentSessionRequest.session_configuration required"
|
|
51
|
+
)
|
|
52
|
+
return out
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codecatalyst#StartDevEnvironmentSessionResponse``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import NotRequired, TypedDict
|
|
6
|
+
|
|
7
|
+
from capo_codecatalyst.errors import DeserializationError
|
|
8
|
+
|
|
9
|
+
if TYPE_CHECKING:
|
|
10
|
+
import capo_codecatalyst.types.dev_environment_access_details
|
|
11
|
+
import capo_codecatalyst.types.name_string
|
|
12
|
+
import capo_codecatalyst.types.uuid
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class StartDevEnvironmentSessionResponse(TypedDict, closed=True):
|
|
16
|
+
access_details: "capo_codecatalyst.types.dev_environment_access_details.DevEnvironmentAccessDetails"
|
|
17
|
+
session_id: NotRequired["str"]
|
|
18
|
+
"""<p>The system-generated unique ID of the Dev Environment session.</p>"""
|
|
19
|
+
space_name: "capo_codecatalyst.types.name_string.NameString"
|
|
20
|
+
"""<p>The name of the space.</p>"""
|
|
21
|
+
project_name: "capo_codecatalyst.types.name_string.NameString"
|
|
22
|
+
"""<p>The name of the project in the space.</p>"""
|
|
23
|
+
id: "capo_codecatalyst.types.uuid.Uuid"
|
|
24
|
+
"""<p>The system-generated unique ID of the Dev Environment.</p>"""
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
# --- restJson1 ser/de ---
|
|
28
|
+
def serialize_json(value: StartDevEnvironmentSessionResponse) -> dict:
|
|
29
|
+
out: dict = {}
|
|
30
|
+
import capo_codecatalyst.types.dev_environment_access_details
|
|
31
|
+
|
|
32
|
+
out["accessDetails"] = (
|
|
33
|
+
capo_codecatalyst.types.dev_environment_access_details.serialize_json(
|
|
34
|
+
value["access_details"]
|
|
35
|
+
)
|
|
36
|
+
)
|
|
37
|
+
if "session_id" in value:
|
|
38
|
+
out["sessionId"] = value["session_id"]
|
|
39
|
+
out["spaceName"] = value["space_name"]
|
|
40
|
+
out["projectName"] = value["project_name"]
|
|
41
|
+
out["id"] = value["id"]
|
|
42
|
+
return out
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
def deserialize_json(data: dict) -> StartDevEnvironmentSessionResponse:
|
|
46
|
+
out: StartDevEnvironmentSessionResponse = {} # type: ignore[typeddict-item]
|
|
47
|
+
if data.get("accessDetails") is not None:
|
|
48
|
+
import capo_codecatalyst.types.dev_environment_access_details
|
|
49
|
+
|
|
50
|
+
out["access_details"] = (
|
|
51
|
+
capo_codecatalyst.types.dev_environment_access_details.deserialize_json(
|
|
52
|
+
data["accessDetails"]
|
|
53
|
+
)
|
|
54
|
+
)
|
|
55
|
+
else:
|
|
56
|
+
raise DeserializationError(
|
|
57
|
+
"StartDevEnvironmentSessionResponse.access_details required"
|
|
58
|
+
)
|
|
59
|
+
if data.get("sessionId") is not None:
|
|
60
|
+
out["session_id"] = data["sessionId"]
|
|
61
|
+
if data.get("spaceName") is not None:
|
|
62
|
+
out["space_name"] = data["spaceName"]
|
|
63
|
+
else:
|
|
64
|
+
raise DeserializationError(
|
|
65
|
+
"StartDevEnvironmentSessionResponse.space_name required"
|
|
66
|
+
)
|
|
67
|
+
if data.get("projectName") is not None:
|
|
68
|
+
out["project_name"] = data["projectName"]
|
|
69
|
+
else:
|
|
70
|
+
raise DeserializationError(
|
|
71
|
+
"StartDevEnvironmentSessionResponse.project_name required"
|
|
72
|
+
)
|
|
73
|
+
if data.get("id") is not None:
|
|
74
|
+
out["id"] = data["id"]
|
|
75
|
+
else:
|
|
76
|
+
raise DeserializationError("StartDevEnvironmentSessionResponse.id required")
|
|
77
|
+
return out
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codecatalyst#StartWorkflowRunRequest``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import NotRequired, TypedDict
|
|
6
|
+
|
|
7
|
+
if TYPE_CHECKING:
|
|
8
|
+
import capo_codecatalyst.types.name_string
|
|
9
|
+
import capo_codecatalyst.types.uuid
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class StartWorkflowRunRequest(TypedDict, closed=True):
|
|
13
|
+
space_name: "capo_codecatalyst.types.name_string.NameString"
|
|
14
|
+
"""<p>The name of the space.</p>"""
|
|
15
|
+
project_name: "capo_codecatalyst.types.name_string.NameString"
|
|
16
|
+
"""<p>The name of the project in the space.</p>"""
|
|
17
|
+
workflow_id: "capo_codecatalyst.types.uuid.Uuid"
|
|
18
|
+
"""<p>The system-generated unique ID of the workflow. To retrieve a list of workflow IDs, use <a>ListWorkflows</a>.</p>"""
|
|
19
|
+
client_token: NotRequired["str"]
|
|
20
|
+
"""<p>A user-specified idempotency token. Idempotency ensures that an API request completes only once. With an idempotent request, if the original request completes successfully, the subsequent retries return the result from the original successful request and have no additional effect.</p>"""
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
# --- restJson1 ser/de ---
|
|
24
|
+
def serialize_json(value: StartWorkflowRunRequest) -> dict:
|
|
25
|
+
out: dict = {}
|
|
26
|
+
if "client_token" in value:
|
|
27
|
+
out["clientToken"] = value["client_token"]
|
|
28
|
+
return out
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
def deserialize_json(data: dict) -> StartWorkflowRunRequest:
|
|
32
|
+
out: StartWorkflowRunRequest = {} # type: ignore[typeddict-item]
|
|
33
|
+
if data.get("clientToken") is not None:
|
|
34
|
+
out["client_token"] = data["clientToken"]
|
|
35
|
+
return out
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codecatalyst#StartWorkflowRunResponse``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import TypedDict
|
|
6
|
+
|
|
7
|
+
from capo_codecatalyst.errors import DeserializationError
|
|
8
|
+
|
|
9
|
+
if TYPE_CHECKING:
|
|
10
|
+
import capo_codecatalyst.types.name_string
|
|
11
|
+
import capo_codecatalyst.types.uuid
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class StartWorkflowRunResponse(TypedDict, closed=True):
|
|
15
|
+
space_name: "capo_codecatalyst.types.name_string.NameString"
|
|
16
|
+
"""<p>The name of the space.</p>"""
|
|
17
|
+
project_name: "capo_codecatalyst.types.name_string.NameString"
|
|
18
|
+
"""<p>The name of the project in the space.</p>"""
|
|
19
|
+
id: "capo_codecatalyst.types.uuid.Uuid"
|
|
20
|
+
"""<p>The system-generated unique ID of the workflow run.</p>"""
|
|
21
|
+
workflow_id: "capo_codecatalyst.types.uuid.Uuid"
|
|
22
|
+
"""<p>The system-generated unique ID of the workflow.</p>"""
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# --- restJson1 ser/de ---
|
|
26
|
+
def serialize_json(value: StartWorkflowRunResponse) -> dict:
|
|
27
|
+
out: dict = {}
|
|
28
|
+
out["spaceName"] = value["space_name"]
|
|
29
|
+
out["projectName"] = value["project_name"]
|
|
30
|
+
out["id"] = value["id"]
|
|
31
|
+
out["workflowId"] = value["workflow_id"]
|
|
32
|
+
return out
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
def deserialize_json(data: dict) -> StartWorkflowRunResponse:
|
|
36
|
+
out: StartWorkflowRunResponse = {} # type: ignore[typeddict-item]
|
|
37
|
+
if data.get("spaceName") is not None:
|
|
38
|
+
out["space_name"] = data["spaceName"]
|
|
39
|
+
else:
|
|
40
|
+
raise DeserializationError("StartWorkflowRunResponse.space_name required")
|
|
41
|
+
if data.get("projectName") is not None:
|
|
42
|
+
out["project_name"] = data["projectName"]
|
|
43
|
+
else:
|
|
44
|
+
raise DeserializationError("StartWorkflowRunResponse.project_name required")
|
|
45
|
+
if data.get("id") is not None:
|
|
46
|
+
out["id"] = data["id"]
|
|
47
|
+
else:
|
|
48
|
+
raise DeserializationError("StartWorkflowRunResponse.id required")
|
|
49
|
+
if data.get("workflowId") is not None:
|
|
50
|
+
out["workflow_id"] = data["workflowId"]
|
|
51
|
+
else:
|
|
52
|
+
raise DeserializationError("StartWorkflowRunResponse.workflow_id required")
|
|
53
|
+
return out
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codecatalyst#StopDevEnvironmentRequest``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import TypedDict
|
|
6
|
+
|
|
7
|
+
if TYPE_CHECKING:
|
|
8
|
+
import capo_codecatalyst.types.name_string
|
|
9
|
+
import capo_codecatalyst.types.uuid
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class StopDevEnvironmentRequest(TypedDict, closed=True):
|
|
13
|
+
space_name: "capo_codecatalyst.types.name_string.NameString"
|
|
14
|
+
"""<p>The name of the space.</p>"""
|
|
15
|
+
project_name: "capo_codecatalyst.types.name_string.NameString"
|
|
16
|
+
"""<p>The name of the project in the space.</p>"""
|
|
17
|
+
id: "capo_codecatalyst.types.uuid.Uuid"
|
|
18
|
+
"""<p>The system-generated unique ID of the Dev Environment. </p>"""
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
# --- restJson1 ser/de ---
|
|
22
|
+
def serialize_json(value: StopDevEnvironmentRequest) -> dict:
|
|
23
|
+
out: dict = {}
|
|
24
|
+
return out
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
def deserialize_json(data: dict) -> StopDevEnvironmentRequest:
|
|
28
|
+
out: StopDevEnvironmentRequest = {} # type: ignore[typeddict-item]
|
|
29
|
+
return out
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codecatalyst#StopDevEnvironmentResponse``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import TypedDict
|
|
6
|
+
|
|
7
|
+
from capo_codecatalyst.errors import DeserializationError
|
|
8
|
+
|
|
9
|
+
if TYPE_CHECKING:
|
|
10
|
+
import capo_codecatalyst.types.dev_environment_status
|
|
11
|
+
import capo_codecatalyst.types.name_string
|
|
12
|
+
import capo_codecatalyst.types.uuid
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class StopDevEnvironmentResponse(TypedDict, closed=True):
|
|
16
|
+
space_name: "capo_codecatalyst.types.name_string.NameString"
|
|
17
|
+
"""<p>The name of the space.</p>"""
|
|
18
|
+
project_name: "capo_codecatalyst.types.name_string.NameString"
|
|
19
|
+
"""<p>The name of the project in the space.</p>"""
|
|
20
|
+
id: "capo_codecatalyst.types.uuid.Uuid"
|
|
21
|
+
"""<p>The system-generated unique ID of the Dev Environment. </p>"""
|
|
22
|
+
status: "capo_codecatalyst.types.dev_environment_status.DevEnvironmentStatus"
|
|
23
|
+
"""<p>The status of the Dev Environment. </p>"""
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
# --- restJson1 ser/de ---
|
|
27
|
+
def serialize_json(value: StopDevEnvironmentResponse) -> dict:
|
|
28
|
+
out: dict = {}
|
|
29
|
+
out["spaceName"] = value["space_name"]
|
|
30
|
+
out["projectName"] = value["project_name"]
|
|
31
|
+
out["id"] = value["id"]
|
|
32
|
+
out["status"] = value["status"]
|
|
33
|
+
return out
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
def deserialize_json(data: dict) -> StopDevEnvironmentResponse:
|
|
37
|
+
out: StopDevEnvironmentResponse = {} # type: ignore[typeddict-item]
|
|
38
|
+
if data.get("spaceName") is not None:
|
|
39
|
+
out["space_name"] = data["spaceName"]
|
|
40
|
+
else:
|
|
41
|
+
raise DeserializationError("StopDevEnvironmentResponse.space_name required")
|
|
42
|
+
if data.get("projectName") is not None:
|
|
43
|
+
out["project_name"] = data["projectName"]
|
|
44
|
+
else:
|
|
45
|
+
raise DeserializationError("StopDevEnvironmentResponse.project_name required")
|
|
46
|
+
if data.get("id") is not None:
|
|
47
|
+
out["id"] = data["id"]
|
|
48
|
+
else:
|
|
49
|
+
raise DeserializationError("StopDevEnvironmentResponse.id required")
|
|
50
|
+
if data.get("status") is not None:
|
|
51
|
+
out["status"] = data["status"]
|
|
52
|
+
else:
|
|
53
|
+
raise DeserializationError("StopDevEnvironmentResponse.status required")
|
|
54
|
+
return out
|