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,57 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codecatalyst#CreateSourceRepositoryResponse``."""
|
|
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.source_repository_description_string
|
|
12
|
+
import capo_codecatalyst.types.source_repository_name_string
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class CreateSourceRepositoryResponse(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
|
+
name: "capo_codecatalyst.types.source_repository_name_string.SourceRepositoryNameString"
|
|
21
|
+
"""<p>The name of the source repository.</p>"""
|
|
22
|
+
description: NotRequired[
|
|
23
|
+
"capo_codecatalyst.types.source_repository_description_string.SourceRepositoryDescriptionString"
|
|
24
|
+
]
|
|
25
|
+
"""<p>The description of the source repository.</p>"""
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
# --- restJson1 ser/de ---
|
|
29
|
+
def serialize_json(value: CreateSourceRepositoryResponse) -> dict:
|
|
30
|
+
out: dict = {}
|
|
31
|
+
out["spaceName"] = value["space_name"]
|
|
32
|
+
out["projectName"] = value["project_name"]
|
|
33
|
+
out["name"] = value["name"]
|
|
34
|
+
if "description" in value:
|
|
35
|
+
out["description"] = value["description"]
|
|
36
|
+
return out
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
def deserialize_json(data: dict) -> CreateSourceRepositoryResponse:
|
|
40
|
+
out: CreateSourceRepositoryResponse = {} # type: ignore[typeddict-item]
|
|
41
|
+
if data.get("spaceName") is not None:
|
|
42
|
+
out["space_name"] = data["spaceName"]
|
|
43
|
+
else:
|
|
44
|
+
raise DeserializationError("CreateSourceRepositoryResponse.space_name required")
|
|
45
|
+
if data.get("projectName") is not None:
|
|
46
|
+
out["project_name"] = data["projectName"]
|
|
47
|
+
else:
|
|
48
|
+
raise DeserializationError(
|
|
49
|
+
"CreateSourceRepositoryResponse.project_name required"
|
|
50
|
+
)
|
|
51
|
+
if data.get("name") is not None:
|
|
52
|
+
out["name"] = data["name"]
|
|
53
|
+
else:
|
|
54
|
+
raise DeserializationError("CreateSourceRepositoryResponse.name required")
|
|
55
|
+
if data.get("description") is not None:
|
|
56
|
+
out["description"] = data["description"]
|
|
57
|
+
return out
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codecatalyst#DeleteAccessTokenRequest``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import TypedDict
|
|
6
|
+
|
|
7
|
+
if TYPE_CHECKING:
|
|
8
|
+
import capo_codecatalyst.types.access_token_id
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class DeleteAccessTokenRequest(TypedDict, closed=True):
|
|
12
|
+
id: "capo_codecatalyst.types.access_token_id.AccessTokenId"
|
|
13
|
+
"""<p>The ID of the personal access token to delete. You can find the IDs of all PATs associated with your Amazon Web Services Builder ID in a space by calling <a>ListAccessTokens</a>.</p>"""
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
# --- restJson1 ser/de ---
|
|
17
|
+
def serialize_json(value: DeleteAccessTokenRequest) -> dict:
|
|
18
|
+
out: dict = {}
|
|
19
|
+
return out
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
def deserialize_json(data: dict) -> DeleteAccessTokenRequest:
|
|
23
|
+
out: DeleteAccessTokenRequest = {} # type: ignore[typeddict-item]
|
|
24
|
+
return out
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codecatalyst#DeleteAccessTokenResponse``."""
|
|
2
|
+
|
|
3
|
+
from typing_extensions import TypedDict
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class DeleteAccessTokenResponse(TypedDict, closed=True):
|
|
7
|
+
pass
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
# --- restJson1 ser/de ---
|
|
11
|
+
def serialize_json(value: DeleteAccessTokenResponse) -> dict:
|
|
12
|
+
out: dict = {}
|
|
13
|
+
return out
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def deserialize_json(data: dict) -> DeleteAccessTokenResponse:
|
|
17
|
+
out: DeleteAccessTokenResponse = {} # type: ignore[typeddict-item]
|
|
18
|
+
return out
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codecatalyst#DeleteDevEnvironmentRequest``."""
|
|
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 DeleteDevEnvironmentRequest(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 you want to delete. To retrieve a list of Dev Environment IDs, use <a>ListDevEnvironments</a>.</p>"""
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
# --- restJson1 ser/de ---
|
|
22
|
+
def serialize_json(value: DeleteDevEnvironmentRequest) -> dict:
|
|
23
|
+
out: dict = {}
|
|
24
|
+
return out
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
def deserialize_json(data: dict) -> DeleteDevEnvironmentRequest:
|
|
28
|
+
out: DeleteDevEnvironmentRequest = {} # type: ignore[typeddict-item]
|
|
29
|
+
return out
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codecatalyst#DeleteDevEnvironmentResponse``."""
|
|
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 DeleteDevEnvironmentResponse(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 deleted Dev Environment. </p>"""
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
# --- restJson1 ser/de ---
|
|
24
|
+
def serialize_json(value: DeleteDevEnvironmentResponse) -> dict:
|
|
25
|
+
out: dict = {}
|
|
26
|
+
out["spaceName"] = value["space_name"]
|
|
27
|
+
out["projectName"] = value["project_name"]
|
|
28
|
+
out["id"] = value["id"]
|
|
29
|
+
return out
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
def deserialize_json(data: dict) -> DeleteDevEnvironmentResponse:
|
|
33
|
+
out: DeleteDevEnvironmentResponse = {} # type: ignore[typeddict-item]
|
|
34
|
+
if data.get("spaceName") is not None:
|
|
35
|
+
out["space_name"] = data["spaceName"]
|
|
36
|
+
else:
|
|
37
|
+
raise DeserializationError("DeleteDevEnvironmentResponse.space_name required")
|
|
38
|
+
if data.get("projectName") is not None:
|
|
39
|
+
out["project_name"] = data["projectName"]
|
|
40
|
+
else:
|
|
41
|
+
raise DeserializationError("DeleteDevEnvironmentResponse.project_name required")
|
|
42
|
+
if data.get("id") is not None:
|
|
43
|
+
out["id"] = data["id"]
|
|
44
|
+
else:
|
|
45
|
+
raise DeserializationError("DeleteDevEnvironmentResponse.id required")
|
|
46
|
+
return out
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codecatalyst#DeleteProjectRequest``."""
|
|
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
|
+
|
|
10
|
+
|
|
11
|
+
class DeleteProjectRequest(TypedDict, closed=True):
|
|
12
|
+
space_name: "capo_codecatalyst.types.name_string.NameString"
|
|
13
|
+
"""<p>The name of the space.</p>"""
|
|
14
|
+
name: "capo_codecatalyst.types.name_string.NameString"
|
|
15
|
+
"""<p>The name of the project in the space. To retrieve a list of project names, use <a>ListProjects</a>.</p>"""
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
# --- restJson1 ser/de ---
|
|
19
|
+
def serialize_json(value: DeleteProjectRequest) -> dict:
|
|
20
|
+
out: dict = {}
|
|
21
|
+
return out
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
def deserialize_json(data: dict) -> DeleteProjectRequest:
|
|
25
|
+
out: DeleteProjectRequest = {} # type: ignore[typeddict-item]
|
|
26
|
+
return out
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codecatalyst#DeleteProjectResponse``."""
|
|
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
|
+
|
|
12
|
+
|
|
13
|
+
class DeleteProjectResponse(TypedDict, closed=True):
|
|
14
|
+
space_name: "capo_codecatalyst.types.name_string.NameString"
|
|
15
|
+
"""<p>The name of the space.</p>"""
|
|
16
|
+
name: "capo_codecatalyst.types.name_string.NameString"
|
|
17
|
+
"""<p>The name of the project in the space.</p>"""
|
|
18
|
+
display_name: NotRequired["str"]
|
|
19
|
+
"""<p>The friendly name displayed to users of the project in Amazon CodeCatalyst.</p>"""
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# --- restJson1 ser/de ---
|
|
23
|
+
def serialize_json(value: DeleteProjectResponse) -> dict:
|
|
24
|
+
out: dict = {}
|
|
25
|
+
out["spaceName"] = value["space_name"]
|
|
26
|
+
out["name"] = value["name"]
|
|
27
|
+
if "display_name" in value:
|
|
28
|
+
out["displayName"] = value["display_name"]
|
|
29
|
+
return out
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
def deserialize_json(data: dict) -> DeleteProjectResponse:
|
|
33
|
+
out: DeleteProjectResponse = {} # type: ignore[typeddict-item]
|
|
34
|
+
if data.get("spaceName") is not None:
|
|
35
|
+
out["space_name"] = data["spaceName"]
|
|
36
|
+
else:
|
|
37
|
+
raise DeserializationError("DeleteProjectResponse.space_name required")
|
|
38
|
+
if data.get("name") is not None:
|
|
39
|
+
out["name"] = data["name"]
|
|
40
|
+
else:
|
|
41
|
+
raise DeserializationError("DeleteProjectResponse.name required")
|
|
42
|
+
if data.get("displayName") is not None:
|
|
43
|
+
out["display_name"] = data["displayName"]
|
|
44
|
+
return out
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codecatalyst#DeleteSourceRepositoryRequest``."""
|
|
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.source_repository_name_string
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class DeleteSourceRepositoryRequest(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
|
+
name: "capo_codecatalyst.types.source_repository_name_string.SourceRepositoryNameString"
|
|
18
|
+
"""<p>The name of the source repository.</p>"""
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
# --- restJson1 ser/de ---
|
|
22
|
+
def serialize_json(value: DeleteSourceRepositoryRequest) -> dict:
|
|
23
|
+
out: dict = {}
|
|
24
|
+
return out
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
def deserialize_json(data: dict) -> DeleteSourceRepositoryRequest:
|
|
28
|
+
out: DeleteSourceRepositoryRequest = {} # type: ignore[typeddict-item]
|
|
29
|
+
return out
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codecatalyst#DeleteSourceRepositoryResponse``."""
|
|
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.source_repository_name_string
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class DeleteSourceRepositoryResponse(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
|
+
name: "capo_codecatalyst.types.source_repository_name_string.SourceRepositoryNameString"
|
|
20
|
+
"""<p>The name of the repository.</p>"""
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
# --- restJson1 ser/de ---
|
|
24
|
+
def serialize_json(value: DeleteSourceRepositoryResponse) -> dict:
|
|
25
|
+
out: dict = {}
|
|
26
|
+
out["spaceName"] = value["space_name"]
|
|
27
|
+
out["projectName"] = value["project_name"]
|
|
28
|
+
out["name"] = value["name"]
|
|
29
|
+
return out
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
def deserialize_json(data: dict) -> DeleteSourceRepositoryResponse:
|
|
33
|
+
out: DeleteSourceRepositoryResponse = {} # type: ignore[typeddict-item]
|
|
34
|
+
if data.get("spaceName") is not None:
|
|
35
|
+
out["space_name"] = data["spaceName"]
|
|
36
|
+
else:
|
|
37
|
+
raise DeserializationError("DeleteSourceRepositoryResponse.space_name required")
|
|
38
|
+
if data.get("projectName") is not None:
|
|
39
|
+
out["project_name"] = data["projectName"]
|
|
40
|
+
else:
|
|
41
|
+
raise DeserializationError(
|
|
42
|
+
"DeleteSourceRepositoryResponse.project_name required"
|
|
43
|
+
)
|
|
44
|
+
if data.get("name") is not None:
|
|
45
|
+
out["name"] = data["name"]
|
|
46
|
+
else:
|
|
47
|
+
raise DeserializationError("DeleteSourceRepositoryResponse.name required")
|
|
48
|
+
return out
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codecatalyst#DeleteSpaceRequest``."""
|
|
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
|
+
|
|
10
|
+
|
|
11
|
+
class DeleteSpaceRequest(TypedDict, closed=True):
|
|
12
|
+
name: "capo_codecatalyst.types.name_string.NameString"
|
|
13
|
+
"""<p>The name of the space. To retrieve a list of space names, use <a>ListSpaces</a>.</p>"""
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
# --- restJson1 ser/de ---
|
|
17
|
+
def serialize_json(value: DeleteSpaceRequest) -> dict:
|
|
18
|
+
out: dict = {}
|
|
19
|
+
return out
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
def deserialize_json(data: dict) -> DeleteSpaceRequest:
|
|
23
|
+
out: DeleteSpaceRequest = {} # type: ignore[typeddict-item]
|
|
24
|
+
return out
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codecatalyst#DeleteSpaceResponse``."""
|
|
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
|
+
|
|
12
|
+
|
|
13
|
+
class DeleteSpaceResponse(TypedDict, closed=True):
|
|
14
|
+
name: "capo_codecatalyst.types.name_string.NameString"
|
|
15
|
+
"""<p>The name of the space.</p>"""
|
|
16
|
+
display_name: NotRequired["str"]
|
|
17
|
+
"""<p>The friendly name of the space displayed to users of the space in Amazon CodeCatalyst.</p>"""
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
# --- restJson1 ser/de ---
|
|
21
|
+
def serialize_json(value: DeleteSpaceResponse) -> dict:
|
|
22
|
+
out: dict = {}
|
|
23
|
+
out["name"] = value["name"]
|
|
24
|
+
if "display_name" in value:
|
|
25
|
+
out["displayName"] = value["display_name"]
|
|
26
|
+
return out
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
def deserialize_json(data: dict) -> DeleteSpaceResponse:
|
|
30
|
+
out: DeleteSpaceResponse = {} # type: ignore[typeddict-item]
|
|
31
|
+
if data.get("name") is not None:
|
|
32
|
+
out["name"] = data["name"]
|
|
33
|
+
else:
|
|
34
|
+
raise DeserializationError("DeleteSpaceResponse.name required")
|
|
35
|
+
if data.get("displayName") is not None:
|
|
36
|
+
out["display_name"] = data["displayName"]
|
|
37
|
+
return out
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codecatalyst#DevEnvironmentAccessDetails``."""
|
|
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.sensitive_string
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class DevEnvironmentAccessDetails(TypedDict, closed=True):
|
|
14
|
+
stream_url: "capo_codecatalyst.types.sensitive_string.SensitiveString"
|
|
15
|
+
"""<p>The URL used to send commands to and from the Dev Environment.</p>"""
|
|
16
|
+
token_value: "capo_codecatalyst.types.sensitive_string.SensitiveString"
|
|
17
|
+
"""<p>An encrypted token value that contains session and caller information used to authenticate the connection.</p>"""
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
# --- restJson1 ser/de ---
|
|
21
|
+
def serialize_json(value: DevEnvironmentAccessDetails) -> dict:
|
|
22
|
+
out: dict = {}
|
|
23
|
+
out["streamUrl"] = value["stream_url"]
|
|
24
|
+
out["tokenValue"] = value["token_value"]
|
|
25
|
+
return out
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
def deserialize_json(data: dict) -> DevEnvironmentAccessDetails:
|
|
29
|
+
out: DevEnvironmentAccessDetails = {} # type: ignore[typeddict-item]
|
|
30
|
+
if data.get("streamUrl") is not None:
|
|
31
|
+
out["stream_url"] = data["streamUrl"]
|
|
32
|
+
else:
|
|
33
|
+
raise DeserializationError("DevEnvironmentAccessDetails.stream_url required")
|
|
34
|
+
if data.get("tokenValue") is not None:
|
|
35
|
+
out["token_value"] = data["tokenValue"]
|
|
36
|
+
else:
|
|
37
|
+
raise DeserializationError("DevEnvironmentAccessDetails.token_value required")
|
|
38
|
+
return out
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codecatalyst#DevEnvironmentRepositorySummaries``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING, TypeAlias
|
|
4
|
+
|
|
5
|
+
if TYPE_CHECKING:
|
|
6
|
+
import capo_codecatalyst.types.dev_environment_repository_summary
|
|
7
|
+
|
|
8
|
+
DevEnvironmentRepositorySummaries: TypeAlias = list[
|
|
9
|
+
"capo_codecatalyst.types.dev_environment_repository_summary.DevEnvironmentRepositorySummary"
|
|
10
|
+
]
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
# --- restJson1 ser/de ---
|
|
14
|
+
def serialize_json(value: DevEnvironmentRepositorySummaries) -> list:
|
|
15
|
+
import capo_codecatalyst.types.dev_environment_repository_summary
|
|
16
|
+
|
|
17
|
+
out: list = []
|
|
18
|
+
for item in value:
|
|
19
|
+
out.append(
|
|
20
|
+
capo_codecatalyst.types.dev_environment_repository_summary.serialize_json(
|
|
21
|
+
item
|
|
22
|
+
)
|
|
23
|
+
)
|
|
24
|
+
return out
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
def deserialize_json(data: list) -> DevEnvironmentRepositorySummaries:
|
|
28
|
+
import capo_codecatalyst.types.dev_environment_repository_summary
|
|
29
|
+
|
|
30
|
+
out: DevEnvironmentRepositorySummaries = []
|
|
31
|
+
for item in data:
|
|
32
|
+
if item is None:
|
|
33
|
+
continue
|
|
34
|
+
out.append(
|
|
35
|
+
capo_codecatalyst.types.dev_environment_repository_summary.deserialize_json(
|
|
36
|
+
item
|
|
37
|
+
)
|
|
38
|
+
)
|
|
39
|
+
return out
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codecatalyst#DevEnvironmentRepositorySummary``."""
|
|
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 DevEnvironmentRepositorySummary(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 cloned into the Dev Environment. </p>"""
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
# --- restJson1 ser/de ---
|
|
24
|
+
def serialize_json(value: DevEnvironmentRepositorySummary) -> 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) -> DevEnvironmentRepositorySummary:
|
|
33
|
+
out: DevEnvironmentRepositorySummary = {} # type: ignore[typeddict-item]
|
|
34
|
+
if data.get("repositoryName") is not None:
|
|
35
|
+
out["repository_name"] = data["repositoryName"]
|
|
36
|
+
else:
|
|
37
|
+
raise DeserializationError(
|
|
38
|
+
"DevEnvironmentRepositorySummary.repository_name required"
|
|
39
|
+
)
|
|
40
|
+
if data.get("branchName") is not None:
|
|
41
|
+
out["branch_name"] = data["branchName"]
|
|
42
|
+
return out
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codecatalyst#DevEnvironmentSessionConfiguration``."""
|
|
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_session_type
|
|
11
|
+
import capo_codecatalyst.types.execute_command_session_configuration
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class DevEnvironmentSessionConfiguration(TypedDict, closed=True):
|
|
15
|
+
session_type: (
|
|
16
|
+
"capo_codecatalyst.types.dev_environment_session_type.DevEnvironmentSessionType"
|
|
17
|
+
)
|
|
18
|
+
"""<p>The type of the session.</p>"""
|
|
19
|
+
execute_command_session_configuration: NotRequired[
|
|
20
|
+
"capo_codecatalyst.types.execute_command_session_configuration.ExecuteCommandSessionConfiguration"
|
|
21
|
+
]
|
|
22
|
+
"""<p>Information about optional commands that will be run on the Dev Environment when the SSH session begins.</p>"""
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# --- restJson1 ser/de ---
|
|
26
|
+
def serialize_json(value: DevEnvironmentSessionConfiguration) -> dict:
|
|
27
|
+
out: dict = {}
|
|
28
|
+
out["sessionType"] = value["session_type"]
|
|
29
|
+
if "execute_command_session_configuration" in value:
|
|
30
|
+
import capo_codecatalyst.types.execute_command_session_configuration
|
|
31
|
+
|
|
32
|
+
out["executeCommandSessionConfiguration"] = (
|
|
33
|
+
capo_codecatalyst.types.execute_command_session_configuration.serialize_json(
|
|
34
|
+
value["execute_command_session_configuration"]
|
|
35
|
+
)
|
|
36
|
+
)
|
|
37
|
+
return out
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
def deserialize_json(data: dict) -> DevEnvironmentSessionConfiguration:
|
|
41
|
+
out: DevEnvironmentSessionConfiguration = {} # type: ignore[typeddict-item]
|
|
42
|
+
if data.get("sessionType") is not None:
|
|
43
|
+
out["session_type"] = data["sessionType"]
|
|
44
|
+
else:
|
|
45
|
+
raise DeserializationError(
|
|
46
|
+
"DevEnvironmentSessionConfiguration.session_type required"
|
|
47
|
+
)
|
|
48
|
+
if data.get("executeCommandSessionConfiguration") is not None:
|
|
49
|
+
import capo_codecatalyst.types.execute_command_session_configuration
|
|
50
|
+
|
|
51
|
+
out["execute_command_session_configuration"] = (
|
|
52
|
+
capo_codecatalyst.types.execute_command_session_configuration.deserialize_json(
|
|
53
|
+
data["executeCommandSessionConfiguration"]
|
|
54
|
+
)
|
|
55
|
+
)
|
|
56
|
+
return out
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codecatalyst#DevEnvironmentSessionSummary``."""
|
|
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.timestamp
|
|
12
|
+
import capo_codecatalyst.types.uuid
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class DevEnvironmentSessionSummary(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
|
+
dev_environment_id: "capo_codecatalyst.types.uuid.Uuid"
|
|
21
|
+
"""<p>The system-generated unique ID of the Dev Environment.</p>"""
|
|
22
|
+
started_time: "capo_codecatalyst.types.timestamp.Timestamp"
|
|
23
|
+
r"""<p>The date and time the session started, in coordinated universal time (UTC) timestamp format as specified in <a href=\"https://www.rfc-editor.org/rfc/rfc3339#section-5.6\">RFC 3339</a> </p>"""
|
|
24
|
+
id: "str"
|
|
25
|
+
"""<p>The system-generated unique ID of the Dev Environment session.</p>"""
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
# --- restJson1 ser/de ---
|
|
29
|
+
def serialize_json(value: DevEnvironmentSessionSummary) -> dict:
|
|
30
|
+
out: dict = {}
|
|
31
|
+
out["spaceName"] = value["space_name"]
|
|
32
|
+
out["projectName"] = value["project_name"]
|
|
33
|
+
out["devEnvironmentId"] = value["dev_environment_id"]
|
|
34
|
+
import capo_codecatalyst._protocol.serialize
|
|
35
|
+
|
|
36
|
+
out["startedTime"] = capo_codecatalyst._protocol.serialize.fmt_date_time(
|
|
37
|
+
value["started_time"]
|
|
38
|
+
)
|
|
39
|
+
out["id"] = value["id"]
|
|
40
|
+
return out
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
def deserialize_json(data: dict) -> DevEnvironmentSessionSummary:
|
|
44
|
+
out: DevEnvironmentSessionSummary = {} # type: ignore[typeddict-item]
|
|
45
|
+
if data.get("spaceName") is not None:
|
|
46
|
+
out["space_name"] = data["spaceName"]
|
|
47
|
+
else:
|
|
48
|
+
raise DeserializationError("DevEnvironmentSessionSummary.space_name required")
|
|
49
|
+
if data.get("projectName") is not None:
|
|
50
|
+
out["project_name"] = data["projectName"]
|
|
51
|
+
else:
|
|
52
|
+
raise DeserializationError("DevEnvironmentSessionSummary.project_name required")
|
|
53
|
+
if data.get("devEnvironmentId") is not None:
|
|
54
|
+
out["dev_environment_id"] = data["devEnvironmentId"]
|
|
55
|
+
else:
|
|
56
|
+
raise DeserializationError(
|
|
57
|
+
"DevEnvironmentSessionSummary.dev_environment_id required"
|
|
58
|
+
)
|
|
59
|
+
if data.get("startedTime") is not None:
|
|
60
|
+
import datetime
|
|
61
|
+
|
|
62
|
+
out["started_time"] = datetime.datetime.fromisoformat(
|
|
63
|
+
data["startedTime"].replace("Z", "+00:00")
|
|
64
|
+
)
|
|
65
|
+
else:
|
|
66
|
+
raise DeserializationError("DevEnvironmentSessionSummary.started_time required")
|
|
67
|
+
if data.get("id") is not None:
|
|
68
|
+
out["id"] = data["id"]
|
|
69
|
+
else:
|
|
70
|
+
raise DeserializationError("DevEnvironmentSessionSummary.id required")
|
|
71
|
+
return out
|