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,37 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codecatalyst#DevEnvironmentSessionsSummaryList``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING, TypeAlias
|
|
4
|
+
|
|
5
|
+
if TYPE_CHECKING:
|
|
6
|
+
import capo_codecatalyst.types.dev_environment_session_summary
|
|
7
|
+
|
|
8
|
+
DevEnvironmentSessionsSummaryList: TypeAlias = list[
|
|
9
|
+
"capo_codecatalyst.types.dev_environment_session_summary.DevEnvironmentSessionSummary"
|
|
10
|
+
]
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
# --- restJson1 ser/de ---
|
|
14
|
+
def serialize_json(value: DevEnvironmentSessionsSummaryList) -> list:
|
|
15
|
+
import capo_codecatalyst.types.dev_environment_session_summary
|
|
16
|
+
|
|
17
|
+
out: list = []
|
|
18
|
+
for item in value:
|
|
19
|
+
out.append(
|
|
20
|
+
capo_codecatalyst.types.dev_environment_session_summary.serialize_json(item)
|
|
21
|
+
)
|
|
22
|
+
return out
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
def deserialize_json(data: list) -> DevEnvironmentSessionsSummaryList:
|
|
26
|
+
import capo_codecatalyst.types.dev_environment_session_summary
|
|
27
|
+
|
|
28
|
+
out: DevEnvironmentSessionsSummaryList = []
|
|
29
|
+
for item in data:
|
|
30
|
+
if item is None:
|
|
31
|
+
continue
|
|
32
|
+
out.append(
|
|
33
|
+
capo_codecatalyst.types.dev_environment_session_summary.deserialize_json(
|
|
34
|
+
item
|
|
35
|
+
)
|
|
36
|
+
)
|
|
37
|
+
return out
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codecatalyst#DevEnvironmentSummary``."""
|
|
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_repository_summaries
|
|
11
|
+
import capo_codecatalyst.types.dev_environment_status
|
|
12
|
+
import capo_codecatalyst.types.ides
|
|
13
|
+
import capo_codecatalyst.types.inactivity_timeout_minutes
|
|
14
|
+
import capo_codecatalyst.types.instance_type
|
|
15
|
+
import capo_codecatalyst.types.name_string
|
|
16
|
+
import capo_codecatalyst.types.persistent_storage
|
|
17
|
+
import capo_codecatalyst.types.status_reason
|
|
18
|
+
import capo_codecatalyst.types.timestamp
|
|
19
|
+
import capo_codecatalyst.types.uuid
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class DevEnvironmentSummary(TypedDict, closed=True):
|
|
23
|
+
space_name: NotRequired["capo_codecatalyst.types.name_string.NameString"]
|
|
24
|
+
"""<p>The name of the space.</p>"""
|
|
25
|
+
project_name: NotRequired["capo_codecatalyst.types.name_string.NameString"]
|
|
26
|
+
"""<p>The name of the project in the space.</p>"""
|
|
27
|
+
id: "capo_codecatalyst.types.uuid.Uuid"
|
|
28
|
+
"""<p>The system-generated unique ID for the Dev Environment. </p>"""
|
|
29
|
+
last_updated_time: "capo_codecatalyst.types.timestamp.Timestamp"
|
|
30
|
+
r"""<p>The time when the Dev Environment was last updated, 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>"""
|
|
31
|
+
creator_id: "str"
|
|
32
|
+
"""<p>The system-generated unique ID of the user who created the Dev Environment. </p>"""
|
|
33
|
+
status: "capo_codecatalyst.types.dev_environment_status.DevEnvironmentStatus"
|
|
34
|
+
"""<p>The status of the Dev Environment. </p>"""
|
|
35
|
+
status_reason: NotRequired["capo_codecatalyst.types.status_reason.StatusReason"]
|
|
36
|
+
"""<p>The reason for the status.</p>"""
|
|
37
|
+
repositories: "capo_codecatalyst.types.dev_environment_repository_summaries.DevEnvironmentRepositorySummaries"
|
|
38
|
+
"""<p>Information about the repositories that will be cloned into the Dev Environment. If no rvalue is specified, no repository is cloned.</p>"""
|
|
39
|
+
alias: NotRequired["str"]
|
|
40
|
+
"""<p>The user-specified alias for the Dev Environment.</p>"""
|
|
41
|
+
ides: NotRequired["capo_codecatalyst.types.ides.Ides"]
|
|
42
|
+
"""<p>Information about the integrated development environment (IDE) configured for a Dev Environment.</p>"""
|
|
43
|
+
instance_type: "capo_codecatalyst.types.instance_type.InstanceType"
|
|
44
|
+
"""<p>The Amazon EC2 instace type used for the Dev Environment. </p>"""
|
|
45
|
+
inactivity_timeout_minutes: (
|
|
46
|
+
"capo_codecatalyst.types.inactivity_timeout_minutes.InactivityTimeoutMinutes"
|
|
47
|
+
)
|
|
48
|
+
"""<p>The amount of time the Dev Environment will run without any activity detected before stopping, in minutes. Dev Environments consume compute minutes when running.</p>"""
|
|
49
|
+
persistent_storage: "capo_codecatalyst.types.persistent_storage.PersistentStorage"
|
|
50
|
+
"""<p>Information about the configuration of persistent storage for the Dev Environment.</p>"""
|
|
51
|
+
vpc_connection_name: NotRequired["capo_codecatalyst.types.name_string.NameString"]
|
|
52
|
+
"""<p>The name of the connection used to connect to Amazon VPC used when the Dev Environment was created, if any.</p>"""
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
# --- restJson1 ser/de ---
|
|
56
|
+
def serialize_json(value: DevEnvironmentSummary) -> dict:
|
|
57
|
+
out: dict = {}
|
|
58
|
+
if "space_name" in value:
|
|
59
|
+
out["spaceName"] = value["space_name"]
|
|
60
|
+
if "project_name" in value:
|
|
61
|
+
out["projectName"] = value["project_name"]
|
|
62
|
+
out["id"] = value["id"]
|
|
63
|
+
import capo_codecatalyst._protocol.serialize
|
|
64
|
+
|
|
65
|
+
out["lastUpdatedTime"] = capo_codecatalyst._protocol.serialize.fmt_date_time(
|
|
66
|
+
value["last_updated_time"]
|
|
67
|
+
)
|
|
68
|
+
out["creatorId"] = value["creator_id"]
|
|
69
|
+
out["status"] = value["status"]
|
|
70
|
+
if "status_reason" in value:
|
|
71
|
+
out["statusReason"] = value["status_reason"]
|
|
72
|
+
import capo_codecatalyst.types.dev_environment_repository_summaries
|
|
73
|
+
|
|
74
|
+
out["repositories"] = (
|
|
75
|
+
capo_codecatalyst.types.dev_environment_repository_summaries.serialize_json(
|
|
76
|
+
value["repositories"]
|
|
77
|
+
)
|
|
78
|
+
)
|
|
79
|
+
if "alias" in value:
|
|
80
|
+
out["alias"] = value["alias"]
|
|
81
|
+
if "ides" in value:
|
|
82
|
+
import capo_codecatalyst.types.ides
|
|
83
|
+
|
|
84
|
+
out["ides"] = capo_codecatalyst.types.ides.serialize_json(value["ides"])
|
|
85
|
+
out["instanceType"] = value["instance_type"]
|
|
86
|
+
out["inactivityTimeoutMinutes"] = value.get("inactivity_timeout_minutes", 0)
|
|
87
|
+
import capo_codecatalyst.types.persistent_storage
|
|
88
|
+
|
|
89
|
+
out["persistentStorage"] = (
|
|
90
|
+
capo_codecatalyst.types.persistent_storage.serialize_json(
|
|
91
|
+
value["persistent_storage"]
|
|
92
|
+
)
|
|
93
|
+
)
|
|
94
|
+
if "vpc_connection_name" in value:
|
|
95
|
+
out["vpcConnectionName"] = value["vpc_connection_name"]
|
|
96
|
+
return out
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
def deserialize_json(data: dict) -> DevEnvironmentSummary:
|
|
100
|
+
out: DevEnvironmentSummary = {} # type: ignore[typeddict-item]
|
|
101
|
+
if data.get("spaceName") is not None:
|
|
102
|
+
out["space_name"] = data["spaceName"]
|
|
103
|
+
if data.get("projectName") is not None:
|
|
104
|
+
out["project_name"] = data["projectName"]
|
|
105
|
+
if data.get("id") is not None:
|
|
106
|
+
out["id"] = data["id"]
|
|
107
|
+
else:
|
|
108
|
+
raise DeserializationError("DevEnvironmentSummary.id required")
|
|
109
|
+
if data.get("lastUpdatedTime") is not None:
|
|
110
|
+
import datetime
|
|
111
|
+
|
|
112
|
+
out["last_updated_time"] = datetime.datetime.fromisoformat(
|
|
113
|
+
data["lastUpdatedTime"].replace("Z", "+00:00")
|
|
114
|
+
)
|
|
115
|
+
else:
|
|
116
|
+
raise DeserializationError("DevEnvironmentSummary.last_updated_time required")
|
|
117
|
+
if data.get("creatorId") is not None:
|
|
118
|
+
out["creator_id"] = data["creatorId"]
|
|
119
|
+
else:
|
|
120
|
+
raise DeserializationError("DevEnvironmentSummary.creator_id required")
|
|
121
|
+
if data.get("status") is not None:
|
|
122
|
+
out["status"] = data["status"]
|
|
123
|
+
else:
|
|
124
|
+
raise DeserializationError("DevEnvironmentSummary.status required")
|
|
125
|
+
if data.get("statusReason") is not None:
|
|
126
|
+
out["status_reason"] = data["statusReason"]
|
|
127
|
+
if data.get("repositories") is not None:
|
|
128
|
+
import capo_codecatalyst.types.dev_environment_repository_summaries
|
|
129
|
+
|
|
130
|
+
out["repositories"] = (
|
|
131
|
+
capo_codecatalyst.types.dev_environment_repository_summaries.deserialize_json(
|
|
132
|
+
data["repositories"]
|
|
133
|
+
)
|
|
134
|
+
)
|
|
135
|
+
else:
|
|
136
|
+
raise DeserializationError("DevEnvironmentSummary.repositories required")
|
|
137
|
+
if data.get("alias") is not None:
|
|
138
|
+
out["alias"] = data["alias"]
|
|
139
|
+
if data.get("ides") is not None:
|
|
140
|
+
import capo_codecatalyst.types.ides
|
|
141
|
+
|
|
142
|
+
out["ides"] = capo_codecatalyst.types.ides.deserialize_json(data["ides"])
|
|
143
|
+
if data.get("instanceType") is not None:
|
|
144
|
+
out["instance_type"] = data["instanceType"]
|
|
145
|
+
else:
|
|
146
|
+
raise DeserializationError("DevEnvironmentSummary.instance_type required")
|
|
147
|
+
if data.get("inactivityTimeoutMinutes") is not None:
|
|
148
|
+
out["inactivity_timeout_minutes"] = data["inactivityTimeoutMinutes"]
|
|
149
|
+
else:
|
|
150
|
+
out["inactivity_timeout_minutes"] = 0
|
|
151
|
+
if data.get("persistentStorage") is not None:
|
|
152
|
+
import capo_codecatalyst.types.persistent_storage
|
|
153
|
+
|
|
154
|
+
out["persistent_storage"] = (
|
|
155
|
+
capo_codecatalyst.types.persistent_storage.deserialize_json(
|
|
156
|
+
data["persistentStorage"]
|
|
157
|
+
)
|
|
158
|
+
)
|
|
159
|
+
else:
|
|
160
|
+
raise DeserializationError("DevEnvironmentSummary.persistent_storage required")
|
|
161
|
+
if data.get("vpcConnectionName") is not None:
|
|
162
|
+
out["vpc_connection_name"] = data["vpcConnectionName"]
|
|
163
|
+
return out
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codecatalyst#DevEnvironmentSummaryList``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING, TypeAlias
|
|
4
|
+
|
|
5
|
+
if TYPE_CHECKING:
|
|
6
|
+
import capo_codecatalyst.types.dev_environment_summary
|
|
7
|
+
|
|
8
|
+
DevEnvironmentSummaryList: TypeAlias = list[
|
|
9
|
+
"capo_codecatalyst.types.dev_environment_summary.DevEnvironmentSummary"
|
|
10
|
+
]
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
# --- restJson1 ser/de ---
|
|
14
|
+
def serialize_json(value: DevEnvironmentSummaryList) -> list:
|
|
15
|
+
import capo_codecatalyst.types.dev_environment_summary
|
|
16
|
+
|
|
17
|
+
out: list = []
|
|
18
|
+
for item in value:
|
|
19
|
+
out.append(capo_codecatalyst.types.dev_environment_summary.serialize_json(item))
|
|
20
|
+
return out
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
def deserialize_json(data: list) -> DevEnvironmentSummaryList:
|
|
24
|
+
import capo_codecatalyst.types.dev_environment_summary
|
|
25
|
+
|
|
26
|
+
out: DevEnvironmentSummaryList = []
|
|
27
|
+
for item in data:
|
|
28
|
+
if item is None:
|
|
29
|
+
continue
|
|
30
|
+
out.append(
|
|
31
|
+
capo_codecatalyst.types.dev_environment_summary.deserialize_json(item)
|
|
32
|
+
)
|
|
33
|
+
return out
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codecatalyst#EmailAddress``."""
|
|
2
|
+
|
|
3
|
+
from typing_extensions import NotRequired, TypedDict
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class EmailAddress(TypedDict, closed=True):
|
|
7
|
+
email: NotRequired["str"]
|
|
8
|
+
"""<p>The email address.</p>"""
|
|
9
|
+
verified: NotRequired["bool"]
|
|
10
|
+
"""<p>Whether the email address has been verified.</p>"""
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
# --- restJson1 ser/de ---
|
|
14
|
+
def serialize_json(value: EmailAddress) -> dict:
|
|
15
|
+
out: dict = {}
|
|
16
|
+
if "email" in value:
|
|
17
|
+
out["email"] = value["email"]
|
|
18
|
+
if "verified" in value:
|
|
19
|
+
out["verified"] = value["verified"]
|
|
20
|
+
return out
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
def deserialize_json(data: dict) -> EmailAddress:
|
|
24
|
+
out: EmailAddress = {} # type: ignore[typeddict-item]
|
|
25
|
+
if data.get("email") is not None:
|
|
26
|
+
out["email"] = data["email"]
|
|
27
|
+
if data.get("verified") is not None:
|
|
28
|
+
out["verified"] = data["verified"]
|
|
29
|
+
return out
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codecatalyst#EventLogEntries``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING, TypeAlias
|
|
4
|
+
|
|
5
|
+
if TYPE_CHECKING:
|
|
6
|
+
import capo_codecatalyst.types.event_log_entry
|
|
7
|
+
|
|
8
|
+
EventLogEntries: TypeAlias = list[
|
|
9
|
+
"capo_codecatalyst.types.event_log_entry.EventLogEntry"
|
|
10
|
+
]
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
# --- restJson1 ser/de ---
|
|
14
|
+
def serialize_json(value: EventLogEntries) -> list:
|
|
15
|
+
import capo_codecatalyst.types.event_log_entry
|
|
16
|
+
|
|
17
|
+
out: list = []
|
|
18
|
+
for item in value:
|
|
19
|
+
out.append(capo_codecatalyst.types.event_log_entry.serialize_json(item))
|
|
20
|
+
return out
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
def deserialize_json(data: list) -> EventLogEntries:
|
|
24
|
+
import capo_codecatalyst.types.event_log_entry
|
|
25
|
+
|
|
26
|
+
out: EventLogEntries = []
|
|
27
|
+
for item in data:
|
|
28
|
+
if item is None:
|
|
29
|
+
continue
|
|
30
|
+
out.append(capo_codecatalyst.types.event_log_entry.deserialize_json(item))
|
|
31
|
+
return out
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codecatalyst#EventLogEntry``."""
|
|
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.event_payload
|
|
11
|
+
import capo_codecatalyst.types.operation_type
|
|
12
|
+
import capo_codecatalyst.types.project_information
|
|
13
|
+
import capo_codecatalyst.types.timestamp
|
|
14
|
+
import capo_codecatalyst.types.user_identity
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class EventLogEntry(TypedDict, closed=True):
|
|
18
|
+
id: "str"
|
|
19
|
+
"""<p>The system-generated unique ID of the event.</p>"""
|
|
20
|
+
event_name: "str"
|
|
21
|
+
"""<p>The name of the event.</p>"""
|
|
22
|
+
event_type: "str"
|
|
23
|
+
"""<p>The type of the event.</p>"""
|
|
24
|
+
event_category: "str"
|
|
25
|
+
"""<p>The category for the event.</p>"""
|
|
26
|
+
event_source: "str"
|
|
27
|
+
"""<p>The source of the event.</p>"""
|
|
28
|
+
event_time: "capo_codecatalyst.types.timestamp.Timestamp"
|
|
29
|
+
r"""<p>The time the event took place, 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>"""
|
|
30
|
+
operation_type: "capo_codecatalyst.types.operation_type.OperationType"
|
|
31
|
+
"""<p>The type of the event.</p>"""
|
|
32
|
+
user_identity: "capo_codecatalyst.types.user_identity.UserIdentity"
|
|
33
|
+
"""<p>The system-generated unique ID of the user whose actions are recorded in the event.</p>"""
|
|
34
|
+
project_information: NotRequired[
|
|
35
|
+
"capo_codecatalyst.types.project_information.ProjectInformation"
|
|
36
|
+
]
|
|
37
|
+
"""<p>Information about the project where the event occurred.</p>"""
|
|
38
|
+
request_id: NotRequired["str"]
|
|
39
|
+
"""<p>The system-generated unique ID of the request.</p>"""
|
|
40
|
+
request_payload: NotRequired["capo_codecatalyst.types.event_payload.EventPayload"]
|
|
41
|
+
"""<p>Information about the payload of the request.</p>"""
|
|
42
|
+
response_payload: NotRequired["capo_codecatalyst.types.event_payload.EventPayload"]
|
|
43
|
+
"""<p>Information about the payload of the response, if any.</p>"""
|
|
44
|
+
error_code: NotRequired["str"]
|
|
45
|
+
"""<p>The code of the error, if any.</p>"""
|
|
46
|
+
source_ip_address: NotRequired["str"]
|
|
47
|
+
"""<p>The IP address of the user whose actions are recorded in the event.</p>"""
|
|
48
|
+
user_agent: NotRequired["str"]
|
|
49
|
+
"""<p>The user agent whose actions are recorded in the event.</p>"""
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
# --- restJson1 ser/de ---
|
|
53
|
+
def serialize_json(value: EventLogEntry) -> dict:
|
|
54
|
+
out: dict = {}
|
|
55
|
+
out["id"] = value["id"]
|
|
56
|
+
out["eventName"] = value["event_name"]
|
|
57
|
+
out["eventType"] = value["event_type"]
|
|
58
|
+
out["eventCategory"] = value["event_category"]
|
|
59
|
+
out["eventSource"] = value["event_source"]
|
|
60
|
+
import capo_codecatalyst._protocol.serialize
|
|
61
|
+
|
|
62
|
+
out["eventTime"] = capo_codecatalyst._protocol.serialize.fmt_date_time(
|
|
63
|
+
value["event_time"]
|
|
64
|
+
)
|
|
65
|
+
out["operationType"] = value["operation_type"]
|
|
66
|
+
import capo_codecatalyst.types.user_identity
|
|
67
|
+
|
|
68
|
+
out["userIdentity"] = capo_codecatalyst.types.user_identity.serialize_json(
|
|
69
|
+
value["user_identity"]
|
|
70
|
+
)
|
|
71
|
+
if "project_information" in value:
|
|
72
|
+
import capo_codecatalyst.types.project_information
|
|
73
|
+
|
|
74
|
+
out["projectInformation"] = (
|
|
75
|
+
capo_codecatalyst.types.project_information.serialize_json(
|
|
76
|
+
value["project_information"]
|
|
77
|
+
)
|
|
78
|
+
)
|
|
79
|
+
if "request_id" in value:
|
|
80
|
+
out["requestId"] = value["request_id"]
|
|
81
|
+
if "request_payload" in value:
|
|
82
|
+
import capo_codecatalyst.types.event_payload
|
|
83
|
+
|
|
84
|
+
out["requestPayload"] = capo_codecatalyst.types.event_payload.serialize_json(
|
|
85
|
+
value["request_payload"]
|
|
86
|
+
)
|
|
87
|
+
if "response_payload" in value:
|
|
88
|
+
import capo_codecatalyst.types.event_payload
|
|
89
|
+
|
|
90
|
+
out["responsePayload"] = capo_codecatalyst.types.event_payload.serialize_json(
|
|
91
|
+
value["response_payload"]
|
|
92
|
+
)
|
|
93
|
+
if "error_code" in value:
|
|
94
|
+
out["errorCode"] = value["error_code"]
|
|
95
|
+
if "source_ip_address" in value:
|
|
96
|
+
out["sourceIpAddress"] = value["source_ip_address"]
|
|
97
|
+
if "user_agent" in value:
|
|
98
|
+
out["userAgent"] = value["user_agent"]
|
|
99
|
+
return out
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
def deserialize_json(data: dict) -> EventLogEntry:
|
|
103
|
+
out: EventLogEntry = {} # type: ignore[typeddict-item]
|
|
104
|
+
if data.get("id") is not None:
|
|
105
|
+
out["id"] = data["id"]
|
|
106
|
+
else:
|
|
107
|
+
raise DeserializationError("EventLogEntry.id required")
|
|
108
|
+
if data.get("eventName") is not None:
|
|
109
|
+
out["event_name"] = data["eventName"]
|
|
110
|
+
else:
|
|
111
|
+
raise DeserializationError("EventLogEntry.event_name required")
|
|
112
|
+
if data.get("eventType") is not None:
|
|
113
|
+
out["event_type"] = data["eventType"]
|
|
114
|
+
else:
|
|
115
|
+
raise DeserializationError("EventLogEntry.event_type required")
|
|
116
|
+
if data.get("eventCategory") is not None:
|
|
117
|
+
out["event_category"] = data["eventCategory"]
|
|
118
|
+
else:
|
|
119
|
+
raise DeserializationError("EventLogEntry.event_category required")
|
|
120
|
+
if data.get("eventSource") is not None:
|
|
121
|
+
out["event_source"] = data["eventSource"]
|
|
122
|
+
else:
|
|
123
|
+
raise DeserializationError("EventLogEntry.event_source required")
|
|
124
|
+
if data.get("eventTime") is not None:
|
|
125
|
+
import datetime
|
|
126
|
+
|
|
127
|
+
out["event_time"] = datetime.datetime.fromisoformat(
|
|
128
|
+
data["eventTime"].replace("Z", "+00:00")
|
|
129
|
+
)
|
|
130
|
+
else:
|
|
131
|
+
raise DeserializationError("EventLogEntry.event_time required")
|
|
132
|
+
if data.get("operationType") is not None:
|
|
133
|
+
out["operation_type"] = data["operationType"]
|
|
134
|
+
else:
|
|
135
|
+
raise DeserializationError("EventLogEntry.operation_type required")
|
|
136
|
+
if data.get("userIdentity") is not None:
|
|
137
|
+
import capo_codecatalyst.types.user_identity
|
|
138
|
+
|
|
139
|
+
out["user_identity"] = capo_codecatalyst.types.user_identity.deserialize_json(
|
|
140
|
+
data["userIdentity"]
|
|
141
|
+
)
|
|
142
|
+
else:
|
|
143
|
+
raise DeserializationError("EventLogEntry.user_identity required")
|
|
144
|
+
if data.get("projectInformation") is not None:
|
|
145
|
+
import capo_codecatalyst.types.project_information
|
|
146
|
+
|
|
147
|
+
out["project_information"] = (
|
|
148
|
+
capo_codecatalyst.types.project_information.deserialize_json(
|
|
149
|
+
data["projectInformation"]
|
|
150
|
+
)
|
|
151
|
+
)
|
|
152
|
+
if data.get("requestId") is not None:
|
|
153
|
+
out["request_id"] = data["requestId"]
|
|
154
|
+
if data.get("requestPayload") is not None:
|
|
155
|
+
import capo_codecatalyst.types.event_payload
|
|
156
|
+
|
|
157
|
+
out["request_payload"] = capo_codecatalyst.types.event_payload.deserialize_json(
|
|
158
|
+
data["requestPayload"]
|
|
159
|
+
)
|
|
160
|
+
if data.get("responsePayload") is not None:
|
|
161
|
+
import capo_codecatalyst.types.event_payload
|
|
162
|
+
|
|
163
|
+
out["response_payload"] = (
|
|
164
|
+
capo_codecatalyst.types.event_payload.deserialize_json(
|
|
165
|
+
data["responsePayload"]
|
|
166
|
+
)
|
|
167
|
+
)
|
|
168
|
+
if data.get("errorCode") is not None:
|
|
169
|
+
out["error_code"] = data["errorCode"]
|
|
170
|
+
if data.get("sourceIpAddress") is not None:
|
|
171
|
+
out["source_ip_address"] = data["sourceIpAddress"]
|
|
172
|
+
if data.get("userAgent") is not None:
|
|
173
|
+
out["user_agent"] = data["userAgent"]
|
|
174
|
+
return out
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codecatalyst#EventPayload``."""
|
|
2
|
+
|
|
3
|
+
from typing_extensions import NotRequired, TypedDict
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class EventPayload(TypedDict, closed=True):
|
|
7
|
+
content_type: NotRequired["str"]
|
|
8
|
+
"""<p>The type of content in the event payload.</p>"""
|
|
9
|
+
data: NotRequired["str"]
|
|
10
|
+
"""<p>The data included in the event payload.</p>"""
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
# --- restJson1 ser/de ---
|
|
14
|
+
def serialize_json(value: EventPayload) -> dict:
|
|
15
|
+
out: dict = {}
|
|
16
|
+
if "content_type" in value:
|
|
17
|
+
out["contentType"] = value["content_type"]
|
|
18
|
+
if "data" in value:
|
|
19
|
+
out["data"] = value["data"]
|
|
20
|
+
return out
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
def deserialize_json(data: dict) -> EventPayload:
|
|
24
|
+
out: EventPayload = {} # type: ignore[typeddict-item]
|
|
25
|
+
if data.get("contentType") is not None:
|
|
26
|
+
out["content_type"] = data["contentType"]
|
|
27
|
+
if data.get("data") is not None:
|
|
28
|
+
out["data"] = data["data"]
|
|
29
|
+
return out
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codecatalyst#ExecuteCommandSessionConfiguration``."""
|
|
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.execute_command_session_configuration_arguments
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class ExecuteCommandSessionConfiguration(TypedDict, closed=True):
|
|
14
|
+
command: "str"
|
|
15
|
+
"""<p>The command used at the beginning of the SSH session to a Dev Environment.</p>"""
|
|
16
|
+
arguments: NotRequired[
|
|
17
|
+
"capo_codecatalyst.types.execute_command_session_configuration_arguments.ExecuteCommandSessionConfigurationArguments"
|
|
18
|
+
]
|
|
19
|
+
"""<p>An array of arguments containing arguments and members.</p>"""
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# --- restJson1 ser/de ---
|
|
23
|
+
def serialize_json(value: ExecuteCommandSessionConfiguration) -> dict:
|
|
24
|
+
out: dict = {}
|
|
25
|
+
out["command"] = value["command"]
|
|
26
|
+
if "arguments" in value:
|
|
27
|
+
import capo_codecatalyst.types.execute_command_session_configuration_arguments
|
|
28
|
+
|
|
29
|
+
out["arguments"] = (
|
|
30
|
+
capo_codecatalyst.types.execute_command_session_configuration_arguments.serialize_json(
|
|
31
|
+
value["arguments"]
|
|
32
|
+
)
|
|
33
|
+
)
|
|
34
|
+
return out
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
def deserialize_json(data: dict) -> ExecuteCommandSessionConfiguration:
|
|
38
|
+
out: ExecuteCommandSessionConfiguration = {} # type: ignore[typeddict-item]
|
|
39
|
+
if data.get("command") is not None:
|
|
40
|
+
out["command"] = data["command"]
|
|
41
|
+
else:
|
|
42
|
+
raise DeserializationError(
|
|
43
|
+
"ExecuteCommandSessionConfiguration.command required"
|
|
44
|
+
)
|
|
45
|
+
if data.get("arguments") is not None:
|
|
46
|
+
import capo_codecatalyst.types.execute_command_session_configuration_arguments
|
|
47
|
+
|
|
48
|
+
out["arguments"] = (
|
|
49
|
+
capo_codecatalyst.types.execute_command_session_configuration_arguments.deserialize_json(
|
|
50
|
+
data["arguments"]
|
|
51
|
+
)
|
|
52
|
+
)
|
|
53
|
+
return out
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codecatalyst#ExecuteCommandSessionConfigurationArguments``."""
|
|
2
|
+
|
|
3
|
+
from typing import TypeAlias
|
|
4
|
+
|
|
5
|
+
ExecuteCommandSessionConfigurationArguments: TypeAlias = list["str"]
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
# --- restJson1 ser/de ---
|
|
9
|
+
def serialize_json(value: ExecuteCommandSessionConfigurationArguments) -> list:
|
|
10
|
+
return list(value)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def deserialize_json(data: list) -> ExecuteCommandSessionConfigurationArguments:
|
|
14
|
+
return [item for item in data if item is not None]
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codecatalyst#Filter``."""
|
|
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.string_list
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class Filter(TypedDict, closed=True):
|
|
14
|
+
key: "str"
|
|
15
|
+
"""<p>A key that can be used to sort results.</p>"""
|
|
16
|
+
values: "capo_codecatalyst.types.string_list.StringList"
|
|
17
|
+
"""<p>The values of the key.</p>"""
|
|
18
|
+
comparison_operator: NotRequired["str"]
|
|
19
|
+
"""<p>The operator used to compare the fields.</p>"""
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# --- restJson1 ser/de ---
|
|
23
|
+
def serialize_json(value: Filter) -> dict:
|
|
24
|
+
out: dict = {}
|
|
25
|
+
out["key"] = value["key"]
|
|
26
|
+
import capo_codecatalyst.types.string_list
|
|
27
|
+
|
|
28
|
+
out["values"] = capo_codecatalyst.types.string_list.serialize_json(value["values"])
|
|
29
|
+
if "comparison_operator" in value:
|
|
30
|
+
out["comparisonOperator"] = value["comparison_operator"]
|
|
31
|
+
return out
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
def deserialize_json(data: dict) -> Filter:
|
|
35
|
+
out: Filter = {} # type: ignore[typeddict-item]
|
|
36
|
+
if data.get("key") is not None:
|
|
37
|
+
out["key"] = data["key"]
|
|
38
|
+
else:
|
|
39
|
+
raise DeserializationError("Filter.key required")
|
|
40
|
+
if data.get("values") is not None:
|
|
41
|
+
import capo_codecatalyst.types.string_list
|
|
42
|
+
|
|
43
|
+
out["values"] = capo_codecatalyst.types.string_list.deserialize_json(
|
|
44
|
+
data["values"]
|
|
45
|
+
)
|
|
46
|
+
else:
|
|
47
|
+
raise DeserializationError("Filter.values required")
|
|
48
|
+
if data.get("comparisonOperator") is not None:
|
|
49
|
+
out["comparison_operator"] = data["comparisonOperator"]
|
|
50
|
+
return out
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codecatalyst#Filters``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING, TypeAlias
|
|
4
|
+
|
|
5
|
+
if TYPE_CHECKING:
|
|
6
|
+
import capo_codecatalyst.types.filter
|
|
7
|
+
|
|
8
|
+
Filters: TypeAlias = list["capo_codecatalyst.types.filter.Filter"]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
# --- restJson1 ser/de ---
|
|
12
|
+
def serialize_json(value: Filters) -> list:
|
|
13
|
+
import capo_codecatalyst.types.filter
|
|
14
|
+
|
|
15
|
+
out: list = []
|
|
16
|
+
for item in value:
|
|
17
|
+
out.append(capo_codecatalyst.types.filter.serialize_json(item))
|
|
18
|
+
return out
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
def deserialize_json(data: list) -> Filters:
|
|
22
|
+
import capo_codecatalyst.types.filter
|
|
23
|
+
|
|
24
|
+
out: Filters = []
|
|
25
|
+
for item in data:
|
|
26
|
+
if item is None:
|
|
27
|
+
continue
|
|
28
|
+
out.append(capo_codecatalyst.types.filter.deserialize_json(item))
|
|
29
|
+
return out
|