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,39 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codecatalyst#ListSourceRepositoryBranchesItems``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING, TypeAlias
|
|
4
|
+
|
|
5
|
+
if TYPE_CHECKING:
|
|
6
|
+
import capo_codecatalyst.types.list_source_repository_branches_item
|
|
7
|
+
|
|
8
|
+
ListSourceRepositoryBranchesItems: TypeAlias = list[
|
|
9
|
+
"capo_codecatalyst.types.list_source_repository_branches_item.ListSourceRepositoryBranchesItem"
|
|
10
|
+
]
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
# --- restJson1 ser/de ---
|
|
14
|
+
def serialize_json(value: ListSourceRepositoryBranchesItems) -> list:
|
|
15
|
+
import capo_codecatalyst.types.list_source_repository_branches_item
|
|
16
|
+
|
|
17
|
+
out: list = []
|
|
18
|
+
for item in value:
|
|
19
|
+
out.append(
|
|
20
|
+
capo_codecatalyst.types.list_source_repository_branches_item.serialize_json(
|
|
21
|
+
item
|
|
22
|
+
)
|
|
23
|
+
)
|
|
24
|
+
return out
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
def deserialize_json(data: list) -> ListSourceRepositoryBranchesItems:
|
|
28
|
+
import capo_codecatalyst.types.list_source_repository_branches_item
|
|
29
|
+
|
|
30
|
+
out: ListSourceRepositoryBranchesItems = []
|
|
31
|
+
for item in data:
|
|
32
|
+
if item is None:
|
|
33
|
+
continue
|
|
34
|
+
out.append(
|
|
35
|
+
capo_codecatalyst.types.list_source_repository_branches_item.deserialize_json(
|
|
36
|
+
item
|
|
37
|
+
)
|
|
38
|
+
)
|
|
39
|
+
return out
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codecatalyst#ListSourceRepositoryBranchesRequest``."""
|
|
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.source_repository_name_string
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class ListSourceRepositoryBranchesRequest(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
|
+
source_repository_name: "capo_codecatalyst.types.source_repository_name_string.SourceRepositoryNameString"
|
|
18
|
+
"""<p>The name of the source repository.</p>"""
|
|
19
|
+
next_token: NotRequired["str"]
|
|
20
|
+
"""<p>A token returned from a call to this API to indicate the next batch of results to return, if any.</p>"""
|
|
21
|
+
max_results: NotRequired["int"]
|
|
22
|
+
"""<p>The maximum number of results to show in a single call to this API. If the number of results is larger than the number you specified, the response will include a <code>NextToken</code> element, which you can use to obtain additional results.</p>"""
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# --- restJson1 ser/de ---
|
|
26
|
+
def serialize_json(value: ListSourceRepositoryBranchesRequest) -> dict:
|
|
27
|
+
out: dict = {}
|
|
28
|
+
if "next_token" in value:
|
|
29
|
+
out["nextToken"] = value["next_token"]
|
|
30
|
+
if "max_results" in value:
|
|
31
|
+
out["maxResults"] = value["max_results"]
|
|
32
|
+
return out
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
def deserialize_json(data: dict) -> ListSourceRepositoryBranchesRequest:
|
|
36
|
+
out: ListSourceRepositoryBranchesRequest = {} # type: ignore[typeddict-item]
|
|
37
|
+
if data.get("nextToken") is not None:
|
|
38
|
+
out["next_token"] = data["nextToken"]
|
|
39
|
+
if data.get("maxResults") is not None:
|
|
40
|
+
out["max_results"] = data["maxResults"]
|
|
41
|
+
return out
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codecatalyst#ListSourceRepositoryBranchesResponse``."""
|
|
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.list_source_repository_branches_items
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class ListSourceRepositoryBranchesResponse(TypedDict, closed=True):
|
|
14
|
+
next_token: NotRequired["str"]
|
|
15
|
+
"""<p>A token returned from a call to this API to indicate the next batch of results to return, if any.</p>"""
|
|
16
|
+
items: "capo_codecatalyst.types.list_source_repository_branches_items.ListSourceRepositoryBranchesItems"
|
|
17
|
+
"""<p>Information about the source branches.</p>"""
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
# --- restJson1 ser/de ---
|
|
21
|
+
def serialize_json(value: ListSourceRepositoryBranchesResponse) -> dict:
|
|
22
|
+
out: dict = {}
|
|
23
|
+
if "next_token" in value:
|
|
24
|
+
out["nextToken"] = value["next_token"]
|
|
25
|
+
import capo_codecatalyst.types.list_source_repository_branches_items
|
|
26
|
+
|
|
27
|
+
out["items"] = (
|
|
28
|
+
capo_codecatalyst.types.list_source_repository_branches_items.serialize_json(
|
|
29
|
+
value["items"]
|
|
30
|
+
)
|
|
31
|
+
)
|
|
32
|
+
return out
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
def deserialize_json(data: dict) -> ListSourceRepositoryBranchesResponse:
|
|
36
|
+
out: ListSourceRepositoryBranchesResponse = {} # type: ignore[typeddict-item]
|
|
37
|
+
if data.get("nextToken") is not None:
|
|
38
|
+
out["next_token"] = data["nextToken"]
|
|
39
|
+
if data.get("items") is not None:
|
|
40
|
+
import capo_codecatalyst.types.list_source_repository_branches_items
|
|
41
|
+
|
|
42
|
+
out["items"] = (
|
|
43
|
+
capo_codecatalyst.types.list_source_repository_branches_items.deserialize_json(
|
|
44
|
+
data["items"]
|
|
45
|
+
)
|
|
46
|
+
)
|
|
47
|
+
else:
|
|
48
|
+
raise DeserializationError(
|
|
49
|
+
"ListSourceRepositoryBranchesResponse.items required"
|
|
50
|
+
)
|
|
51
|
+
return out
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codecatalyst#ListSpacesRequest``."""
|
|
2
|
+
|
|
3
|
+
from typing_extensions import NotRequired, TypedDict
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class ListSpacesRequest(TypedDict, closed=True):
|
|
7
|
+
next_token: NotRequired["str"]
|
|
8
|
+
"""<p>A token returned from a call to this API to indicate the next batch of results to return, if any.</p>"""
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
# --- restJson1 ser/de ---
|
|
12
|
+
def serialize_json(value: ListSpacesRequest) -> dict:
|
|
13
|
+
out: dict = {}
|
|
14
|
+
if "next_token" in value:
|
|
15
|
+
out["nextToken"] = value["next_token"]
|
|
16
|
+
return out
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
def deserialize_json(data: dict) -> ListSpacesRequest:
|
|
20
|
+
out: ListSpacesRequest = {} # type: ignore[typeddict-item]
|
|
21
|
+
if data.get("nextToken") is not None:
|
|
22
|
+
out["next_token"] = data["nextToken"]
|
|
23
|
+
return out
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codecatalyst#ListSpacesResponse``."""
|
|
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.space_summaries
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class ListSpacesResponse(TypedDict, closed=True):
|
|
12
|
+
next_token: NotRequired["str"]
|
|
13
|
+
"""<p>A token returned from a call to this API to indicate the next batch of results to return, if any.</p>"""
|
|
14
|
+
items: NotRequired["capo_codecatalyst.types.space_summaries.SpaceSummaries"]
|
|
15
|
+
"""<p>Information about the spaces. </p>"""
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
# --- restJson1 ser/de ---
|
|
19
|
+
def serialize_json(value: ListSpacesResponse) -> dict:
|
|
20
|
+
out: dict = {}
|
|
21
|
+
if "next_token" in value:
|
|
22
|
+
out["nextToken"] = value["next_token"]
|
|
23
|
+
if "items" in value:
|
|
24
|
+
import capo_codecatalyst.types.space_summaries
|
|
25
|
+
|
|
26
|
+
out["items"] = capo_codecatalyst.types.space_summaries.serialize_json(
|
|
27
|
+
value["items"]
|
|
28
|
+
)
|
|
29
|
+
return out
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
def deserialize_json(data: dict) -> ListSpacesResponse:
|
|
33
|
+
out: ListSpacesResponse = {} # type: ignore[typeddict-item]
|
|
34
|
+
if data.get("nextToken") is not None:
|
|
35
|
+
out["next_token"] = data["nextToken"]
|
|
36
|
+
if data.get("items") is not None:
|
|
37
|
+
import capo_codecatalyst.types.space_summaries
|
|
38
|
+
|
|
39
|
+
out["items"] = capo_codecatalyst.types.space_summaries.deserialize_json(
|
|
40
|
+
data["items"]
|
|
41
|
+
)
|
|
42
|
+
return out
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codecatalyst#ListWorkflowRunsRequest``."""
|
|
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
|
+
import capo_codecatalyst.types.workflow_run_sort_criteria_list
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class ListWorkflowRunsRequest(TypedDict, closed=True):
|
|
14
|
+
space_name: "capo_codecatalyst.types.name_string.NameString"
|
|
15
|
+
"""<p>The name of the space.</p>"""
|
|
16
|
+
workflow_id: NotRequired["capo_codecatalyst.types.uuid.Uuid"]
|
|
17
|
+
"""<p>The ID of the workflow. To retrieve a list of workflow IDs, use <a>ListWorkflows</a>.</p>"""
|
|
18
|
+
project_name: "capo_codecatalyst.types.name_string.NameString"
|
|
19
|
+
"""<p>The name of the project in the space.</p>"""
|
|
20
|
+
next_token: NotRequired["str"]
|
|
21
|
+
"""<p>A token returned from a call to this API to indicate the next batch of results to return, if any.</p>"""
|
|
22
|
+
max_results: NotRequired["int"]
|
|
23
|
+
"""<p>The maximum number of results to show in a single call to this API. If the number of results is larger than the number you specified, the response will include a <code>NextToken</code> element, which you can use to obtain additional results.</p>"""
|
|
24
|
+
sort_by: NotRequired[
|
|
25
|
+
"capo_codecatalyst.types.workflow_run_sort_criteria_list.WorkflowRunSortCriteriaList"
|
|
26
|
+
]
|
|
27
|
+
"""<p>Information used to sort the items in the returned list.</p>"""
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
# --- restJson1 ser/de ---
|
|
31
|
+
def serialize_json(value: ListWorkflowRunsRequest) -> dict:
|
|
32
|
+
out: dict = {}
|
|
33
|
+
if "sort_by" in value:
|
|
34
|
+
import capo_codecatalyst.types.workflow_run_sort_criteria_list
|
|
35
|
+
|
|
36
|
+
out["sortBy"] = (
|
|
37
|
+
capo_codecatalyst.types.workflow_run_sort_criteria_list.serialize_json(
|
|
38
|
+
value["sort_by"]
|
|
39
|
+
)
|
|
40
|
+
)
|
|
41
|
+
return out
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
def deserialize_json(data: dict) -> ListWorkflowRunsRequest:
|
|
45
|
+
out: ListWorkflowRunsRequest = {} # type: ignore[typeddict-item]
|
|
46
|
+
if data.get("sortBy") is not None:
|
|
47
|
+
import capo_codecatalyst.types.workflow_run_sort_criteria_list
|
|
48
|
+
|
|
49
|
+
out["sort_by"] = (
|
|
50
|
+
capo_codecatalyst.types.workflow_run_sort_criteria_list.deserialize_json(
|
|
51
|
+
data["sortBy"]
|
|
52
|
+
)
|
|
53
|
+
)
|
|
54
|
+
return out
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codecatalyst#ListWorkflowRunsResponse``."""
|
|
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.workflow_run_summaries
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class ListWorkflowRunsResponse(TypedDict, closed=True):
|
|
12
|
+
next_token: NotRequired["str"]
|
|
13
|
+
"""<p>A token returned from a call to this API to indicate the next batch of results to return, if any.</p>"""
|
|
14
|
+
items: NotRequired[
|
|
15
|
+
"capo_codecatalyst.types.workflow_run_summaries.WorkflowRunSummaries"
|
|
16
|
+
]
|
|
17
|
+
"""<p>Information about the runs of a workflow.</p>"""
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
# --- restJson1 ser/de ---
|
|
21
|
+
def serialize_json(value: ListWorkflowRunsResponse) -> dict:
|
|
22
|
+
out: dict = {}
|
|
23
|
+
if "next_token" in value:
|
|
24
|
+
out["nextToken"] = value["next_token"]
|
|
25
|
+
if "items" in value:
|
|
26
|
+
import capo_codecatalyst.types.workflow_run_summaries
|
|
27
|
+
|
|
28
|
+
out["items"] = capo_codecatalyst.types.workflow_run_summaries.serialize_json(
|
|
29
|
+
value["items"]
|
|
30
|
+
)
|
|
31
|
+
return out
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
def deserialize_json(data: dict) -> ListWorkflowRunsResponse:
|
|
35
|
+
out: ListWorkflowRunsResponse = {} # type: ignore[typeddict-item]
|
|
36
|
+
if data.get("nextToken") is not None:
|
|
37
|
+
out["next_token"] = data["nextToken"]
|
|
38
|
+
if data.get("items") is not None:
|
|
39
|
+
import capo_codecatalyst.types.workflow_run_summaries
|
|
40
|
+
|
|
41
|
+
out["items"] = capo_codecatalyst.types.workflow_run_summaries.deserialize_json(
|
|
42
|
+
data["items"]
|
|
43
|
+
)
|
|
44
|
+
return out
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codecatalyst#ListWorkflowsRequest``."""
|
|
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.workflow_sort_criteria_list
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class ListWorkflowsRequest(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
|
+
next_token: NotRequired["str"]
|
|
18
|
+
"""<p>A token returned from a call to this API to indicate the next batch of results to return, if any.</p>"""
|
|
19
|
+
max_results: NotRequired["int"]
|
|
20
|
+
"""<p>The maximum number of results to show in a single call to this API. If the number of results is larger than the number you specified, the response will include a <code>NextToken</code> element, which you can use to obtain additional results.</p>"""
|
|
21
|
+
sort_by: NotRequired[
|
|
22
|
+
"capo_codecatalyst.types.workflow_sort_criteria_list.WorkflowSortCriteriaList"
|
|
23
|
+
]
|
|
24
|
+
"""<p>Information used to sort the items in the returned list.</p>"""
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
# --- restJson1 ser/de ---
|
|
28
|
+
def serialize_json(value: ListWorkflowsRequest) -> dict:
|
|
29
|
+
out: dict = {}
|
|
30
|
+
if "sort_by" in value:
|
|
31
|
+
import capo_codecatalyst.types.workflow_sort_criteria_list
|
|
32
|
+
|
|
33
|
+
out["sortBy"] = (
|
|
34
|
+
capo_codecatalyst.types.workflow_sort_criteria_list.serialize_json(
|
|
35
|
+
value["sort_by"]
|
|
36
|
+
)
|
|
37
|
+
)
|
|
38
|
+
return out
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
def deserialize_json(data: dict) -> ListWorkflowsRequest:
|
|
42
|
+
out: ListWorkflowsRequest = {} # type: ignore[typeddict-item]
|
|
43
|
+
if data.get("sortBy") is not None:
|
|
44
|
+
import capo_codecatalyst.types.workflow_sort_criteria_list
|
|
45
|
+
|
|
46
|
+
out["sort_by"] = (
|
|
47
|
+
capo_codecatalyst.types.workflow_sort_criteria_list.deserialize_json(
|
|
48
|
+
data["sortBy"]
|
|
49
|
+
)
|
|
50
|
+
)
|
|
51
|
+
return out
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codecatalyst#ListWorkflowsResponse``."""
|
|
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.workflow_summaries
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class ListWorkflowsResponse(TypedDict, closed=True):
|
|
12
|
+
next_token: NotRequired["str"]
|
|
13
|
+
"""<p>A token returned from a call to this API to indicate the next batch of results to return, if any.</p>"""
|
|
14
|
+
items: NotRequired["capo_codecatalyst.types.workflow_summaries.WorkflowSummaries"]
|
|
15
|
+
"""<p>Information about the workflows in a project.</p>"""
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
# --- restJson1 ser/de ---
|
|
19
|
+
def serialize_json(value: ListWorkflowsResponse) -> dict:
|
|
20
|
+
out: dict = {}
|
|
21
|
+
if "next_token" in value:
|
|
22
|
+
out["nextToken"] = value["next_token"]
|
|
23
|
+
if "items" in value:
|
|
24
|
+
import capo_codecatalyst.types.workflow_summaries
|
|
25
|
+
|
|
26
|
+
out["items"] = capo_codecatalyst.types.workflow_summaries.serialize_json(
|
|
27
|
+
value["items"]
|
|
28
|
+
)
|
|
29
|
+
return out
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
def deserialize_json(data: dict) -> ListWorkflowsResponse:
|
|
33
|
+
out: ListWorkflowsResponse = {} # type: ignore[typeddict-item]
|
|
34
|
+
if data.get("nextToken") is not None:
|
|
35
|
+
out["next_token"] = data["nextToken"]
|
|
36
|
+
if data.get("items") is not None:
|
|
37
|
+
import capo_codecatalyst.types.workflow_summaries
|
|
38
|
+
|
|
39
|
+
out["items"] = capo_codecatalyst.types.workflow_summaries.deserialize_json(
|
|
40
|
+
data["items"]
|
|
41
|
+
)
|
|
42
|
+
return out
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codecatalyst#PersistentStorage``."""
|
|
2
|
+
|
|
3
|
+
from typing_extensions import TypedDict
|
|
4
|
+
|
|
5
|
+
from capo_codecatalyst.errors import DeserializationError
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class PersistentStorage(TypedDict, closed=True):
|
|
9
|
+
size_in_gi_b: "int"
|
|
10
|
+
"""<p>The size of the persistent storage in gigabytes (specifically GiB).</p> <note> <p>Valid values for storage are based on memory sizes in 16GB increments. Valid values are 16, 32, and 64.</p> </note>"""
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
# --- restJson1 ser/de ---
|
|
14
|
+
def serialize_json(value: PersistentStorage) -> dict:
|
|
15
|
+
out: dict = {}
|
|
16
|
+
out["sizeInGiB"] = value["size_in_gi_b"]
|
|
17
|
+
return out
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
def deserialize_json(data: dict) -> PersistentStorage:
|
|
21
|
+
out: PersistentStorage = {} # type: ignore[typeddict-item]
|
|
22
|
+
if data.get("sizeInGiB") is not None:
|
|
23
|
+
out["size_in_gi_b"] = data["sizeInGiB"]
|
|
24
|
+
else:
|
|
25
|
+
raise DeserializationError("PersistentStorage.size_in_gi_b required")
|
|
26
|
+
return out
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codecatalyst#PersistentStorageConfiguration``."""
|
|
2
|
+
|
|
3
|
+
from typing_extensions import TypedDict
|
|
4
|
+
|
|
5
|
+
from capo_codecatalyst.errors import DeserializationError
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class PersistentStorageConfiguration(TypedDict, closed=True):
|
|
9
|
+
size_in_gi_b: "int"
|
|
10
|
+
"""<p>The size of the persistent storage in gigabytes (specifically GiB).</p> <note> <p>Valid values for storage are based on memory sizes in 16GB increments. Valid values are 16, 32, and 64.</p> </note>"""
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
# --- restJson1 ser/de ---
|
|
14
|
+
def serialize_json(value: PersistentStorageConfiguration) -> dict:
|
|
15
|
+
out: dict = {}
|
|
16
|
+
out["sizeInGiB"] = value["size_in_gi_b"]
|
|
17
|
+
return out
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
def deserialize_json(data: dict) -> PersistentStorageConfiguration:
|
|
21
|
+
out: PersistentStorageConfiguration = {} # type: ignore[typeddict-item]
|
|
22
|
+
if data.get("sizeInGiB") is not None:
|
|
23
|
+
out["size_in_gi_b"] = data["sizeInGiB"]
|
|
24
|
+
else:
|
|
25
|
+
raise DeserializationError(
|
|
26
|
+
"PersistentStorageConfiguration.size_in_gi_b required"
|
|
27
|
+
)
|
|
28
|
+
return out
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codecatalyst#ProjectInformation``."""
|
|
2
|
+
|
|
3
|
+
from typing_extensions import NotRequired, TypedDict
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class ProjectInformation(TypedDict, closed=True):
|
|
7
|
+
name: NotRequired["str"]
|
|
8
|
+
"""<p>The name of the project in the space.</p>"""
|
|
9
|
+
project_id: NotRequired["str"]
|
|
10
|
+
"""<p>The system-generated unique ID of the project.</p>"""
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
# --- restJson1 ser/de ---
|
|
14
|
+
def serialize_json(value: ProjectInformation) -> dict:
|
|
15
|
+
out: dict = {}
|
|
16
|
+
if "name" in value:
|
|
17
|
+
out["name"] = value["name"]
|
|
18
|
+
if "project_id" in value:
|
|
19
|
+
out["projectId"] = value["project_id"]
|
|
20
|
+
return out
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
def deserialize_json(data: dict) -> ProjectInformation:
|
|
24
|
+
out: ProjectInformation = {} # type: ignore[typeddict-item]
|
|
25
|
+
if data.get("name") is not None:
|
|
26
|
+
out["name"] = data["name"]
|
|
27
|
+
if data.get("projectId") is not None:
|
|
28
|
+
out["project_id"] = data["projectId"]
|
|
29
|
+
return out
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codecatalyst#ProjectListFilter``."""
|
|
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.comparison_operator
|
|
11
|
+
import capo_codecatalyst.types.filter_key
|
|
12
|
+
import capo_codecatalyst.types.string_list
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class ProjectListFilter(TypedDict, closed=True):
|
|
16
|
+
key: "capo_codecatalyst.types.filter_key.FilterKey"
|
|
17
|
+
"""<p>A key that can be used to sort results.</p>"""
|
|
18
|
+
values: "capo_codecatalyst.types.string_list.StringList"
|
|
19
|
+
"""<p>The values of the key.</p>"""
|
|
20
|
+
comparison_operator: NotRequired[
|
|
21
|
+
"capo_codecatalyst.types.comparison_operator.ComparisonOperator"
|
|
22
|
+
]
|
|
23
|
+
"""<p>The operator used to compare the fields.</p>"""
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
# --- restJson1 ser/de ---
|
|
27
|
+
def serialize_json(value: ProjectListFilter) -> dict:
|
|
28
|
+
out: dict = {}
|
|
29
|
+
out["key"] = value["key"]
|
|
30
|
+
import capo_codecatalyst.types.string_list
|
|
31
|
+
|
|
32
|
+
out["values"] = capo_codecatalyst.types.string_list.serialize_json(value["values"])
|
|
33
|
+
if "comparison_operator" in value:
|
|
34
|
+
out["comparisonOperator"] = value["comparison_operator"]
|
|
35
|
+
return out
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
def deserialize_json(data: dict) -> ProjectListFilter:
|
|
39
|
+
out: ProjectListFilter = {} # type: ignore[typeddict-item]
|
|
40
|
+
if data.get("key") is not None:
|
|
41
|
+
out["key"] = data["key"]
|
|
42
|
+
else:
|
|
43
|
+
raise DeserializationError("ProjectListFilter.key required")
|
|
44
|
+
if data.get("values") is not None:
|
|
45
|
+
import capo_codecatalyst.types.string_list
|
|
46
|
+
|
|
47
|
+
out["values"] = capo_codecatalyst.types.string_list.deserialize_json(
|
|
48
|
+
data["values"]
|
|
49
|
+
)
|
|
50
|
+
else:
|
|
51
|
+
raise DeserializationError("ProjectListFilter.values required")
|
|
52
|
+
if data.get("comparisonOperator") is not None:
|
|
53
|
+
out["comparison_operator"] = data["comparisonOperator"]
|
|
54
|
+
return out
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codecatalyst#ProjectListFilters``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING, TypeAlias
|
|
4
|
+
|
|
5
|
+
if TYPE_CHECKING:
|
|
6
|
+
import capo_codecatalyst.types.project_list_filter
|
|
7
|
+
|
|
8
|
+
ProjectListFilters: TypeAlias = list[
|
|
9
|
+
"capo_codecatalyst.types.project_list_filter.ProjectListFilter"
|
|
10
|
+
]
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
# --- restJson1 ser/de ---
|
|
14
|
+
def serialize_json(value: ProjectListFilters) -> list:
|
|
15
|
+
import capo_codecatalyst.types.project_list_filter
|
|
16
|
+
|
|
17
|
+
out: list = []
|
|
18
|
+
for item in value:
|
|
19
|
+
out.append(capo_codecatalyst.types.project_list_filter.serialize_json(item))
|
|
20
|
+
return out
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
def deserialize_json(data: list) -> ProjectListFilters:
|
|
24
|
+
import capo_codecatalyst.types.project_list_filter
|
|
25
|
+
|
|
26
|
+
out: ProjectListFilters = []
|
|
27
|
+
for item in data:
|
|
28
|
+
if item is None:
|
|
29
|
+
continue
|
|
30
|
+
out.append(capo_codecatalyst.types.project_list_filter.deserialize_json(item))
|
|
31
|
+
return out
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codecatalyst#ProjectSummaries``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING, TypeAlias
|
|
4
|
+
|
|
5
|
+
if TYPE_CHECKING:
|
|
6
|
+
import capo_codecatalyst.types.project_summary
|
|
7
|
+
|
|
8
|
+
ProjectSummaries: TypeAlias = list[
|
|
9
|
+
"capo_codecatalyst.types.project_summary.ProjectSummary"
|
|
10
|
+
]
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
# --- restJson1 ser/de ---
|
|
14
|
+
def serialize_json(value: ProjectSummaries) -> list:
|
|
15
|
+
import capo_codecatalyst.types.project_summary
|
|
16
|
+
|
|
17
|
+
out: list = []
|
|
18
|
+
for item in value:
|
|
19
|
+
out.append(capo_codecatalyst.types.project_summary.serialize_json(item))
|
|
20
|
+
return out
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
def deserialize_json(data: list) -> ProjectSummaries:
|
|
24
|
+
import capo_codecatalyst.types.project_summary
|
|
25
|
+
|
|
26
|
+
out: ProjectSummaries = []
|
|
27
|
+
for item in data:
|
|
28
|
+
if item is None:
|
|
29
|
+
continue
|
|
30
|
+
out.append(capo_codecatalyst.types.project_summary.deserialize_json(item))
|
|
31
|
+
return out
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codecatalyst#ProjectSummary``."""
|
|
2
|
+
|
|
3
|
+
from typing_extensions import NotRequired, TypedDict
|
|
4
|
+
|
|
5
|
+
from capo_codecatalyst.errors import DeserializationError
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class ProjectSummary(TypedDict, closed=True):
|
|
9
|
+
name: "str"
|
|
10
|
+
"""<p>The name of the project in the space.</p>"""
|
|
11
|
+
display_name: NotRequired["str"]
|
|
12
|
+
"""<p>The friendly name displayed to users of the project in Amazon CodeCatalyst.</p>"""
|
|
13
|
+
description: NotRequired["str"]
|
|
14
|
+
"""<p>The description of the project.</p>"""
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# --- restJson1 ser/de ---
|
|
18
|
+
def serialize_json(value: ProjectSummary) -> dict:
|
|
19
|
+
out: dict = {}
|
|
20
|
+
out["name"] = value["name"]
|
|
21
|
+
if "display_name" in value:
|
|
22
|
+
out["displayName"] = value["display_name"]
|
|
23
|
+
if "description" in value:
|
|
24
|
+
out["description"] = value["description"]
|
|
25
|
+
return out
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
def deserialize_json(data: dict) -> ProjectSummary:
|
|
29
|
+
out: ProjectSummary = {} # type: ignore[typeddict-item]
|
|
30
|
+
if data.get("name") is not None:
|
|
31
|
+
out["name"] = data["name"]
|
|
32
|
+
else:
|
|
33
|
+
raise DeserializationError("ProjectSummary.name required")
|
|
34
|
+
if data.get("displayName") is not None:
|
|
35
|
+
out["display_name"] = data["displayName"]
|
|
36
|
+
if data.get("description") is not None:
|
|
37
|
+
out["description"] = data["description"]
|
|
38
|
+
return out
|