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,29 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codecatalyst#GetDevEnvironmentRequest``."""
|
|
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 GetDevEnvironmentRequest(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 for which you want to view information. To retrieve a list of Dev Environment IDs, use <a>ListDevEnvironments</a>.</p>"""
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
# --- restJson1 ser/de ---
|
|
22
|
+
def serialize_json(value: GetDevEnvironmentRequest) -> dict:
|
|
23
|
+
out: dict = {}
|
|
24
|
+
return out
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
def deserialize_json(data: dict) -> GetDevEnvironmentRequest:
|
|
28
|
+
out: GetDevEnvironmentRequest = {} # type: ignore[typeddict-item]
|
|
29
|
+
return out
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codecatalyst#GetDevEnvironmentResponse``."""
|
|
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 GetDevEnvironmentResponse(TypedDict, closed=True):
|
|
23
|
+
space_name: "capo_codecatalyst.types.name_string.NameString"
|
|
24
|
+
"""<p>The name of the space.</p>"""
|
|
25
|
+
project_name: "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 of 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 current 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>The source repository that contains the branch cloned into the Dev Environment. </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 the Dev Environment. </p>"""
|
|
43
|
+
instance_type: "capo_codecatalyst.types.instance_type.InstanceType"
|
|
44
|
+
"""<p>The Amazon EC2 instace type to use 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.</p>"""
|
|
49
|
+
persistent_storage: "capo_codecatalyst.types.persistent_storage.PersistentStorage"
|
|
50
|
+
"""<p>Information about the amount of storage allocated to the Dev Environment. By default, a Dev Environment is configured to have 16GB of persistent storage.</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: GetDevEnvironmentResponse) -> dict:
|
|
57
|
+
out: dict = {}
|
|
58
|
+
out["spaceName"] = value["space_name"]
|
|
59
|
+
out["projectName"] = value["project_name"]
|
|
60
|
+
out["id"] = value["id"]
|
|
61
|
+
import capo_codecatalyst._protocol.serialize
|
|
62
|
+
|
|
63
|
+
out["lastUpdatedTime"] = capo_codecatalyst._protocol.serialize.fmt_date_time(
|
|
64
|
+
value["last_updated_time"]
|
|
65
|
+
)
|
|
66
|
+
out["creatorId"] = value["creator_id"]
|
|
67
|
+
out["status"] = value["status"]
|
|
68
|
+
if "status_reason" in value:
|
|
69
|
+
out["statusReason"] = value["status_reason"]
|
|
70
|
+
import capo_codecatalyst.types.dev_environment_repository_summaries
|
|
71
|
+
|
|
72
|
+
out["repositories"] = (
|
|
73
|
+
capo_codecatalyst.types.dev_environment_repository_summaries.serialize_json(
|
|
74
|
+
value["repositories"]
|
|
75
|
+
)
|
|
76
|
+
)
|
|
77
|
+
if "alias" in value:
|
|
78
|
+
out["alias"] = value["alias"]
|
|
79
|
+
if "ides" in value:
|
|
80
|
+
import capo_codecatalyst.types.ides
|
|
81
|
+
|
|
82
|
+
out["ides"] = capo_codecatalyst.types.ides.serialize_json(value["ides"])
|
|
83
|
+
out["instanceType"] = value["instance_type"]
|
|
84
|
+
out["inactivityTimeoutMinutes"] = value.get("inactivity_timeout_minutes", 0)
|
|
85
|
+
import capo_codecatalyst.types.persistent_storage
|
|
86
|
+
|
|
87
|
+
out["persistentStorage"] = (
|
|
88
|
+
capo_codecatalyst.types.persistent_storage.serialize_json(
|
|
89
|
+
value["persistent_storage"]
|
|
90
|
+
)
|
|
91
|
+
)
|
|
92
|
+
if "vpc_connection_name" in value:
|
|
93
|
+
out["vpcConnectionName"] = value["vpc_connection_name"]
|
|
94
|
+
return out
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
def deserialize_json(data: dict) -> GetDevEnvironmentResponse:
|
|
98
|
+
out: GetDevEnvironmentResponse = {} # type: ignore[typeddict-item]
|
|
99
|
+
if data.get("spaceName") is not None:
|
|
100
|
+
out["space_name"] = data["spaceName"]
|
|
101
|
+
else:
|
|
102
|
+
raise DeserializationError("GetDevEnvironmentResponse.space_name required")
|
|
103
|
+
if data.get("projectName") is not None:
|
|
104
|
+
out["project_name"] = data["projectName"]
|
|
105
|
+
else:
|
|
106
|
+
raise DeserializationError("GetDevEnvironmentResponse.project_name required")
|
|
107
|
+
if data.get("id") is not None:
|
|
108
|
+
out["id"] = data["id"]
|
|
109
|
+
else:
|
|
110
|
+
raise DeserializationError("GetDevEnvironmentResponse.id required")
|
|
111
|
+
if data.get("lastUpdatedTime") is not None:
|
|
112
|
+
import datetime
|
|
113
|
+
|
|
114
|
+
out["last_updated_time"] = datetime.datetime.fromisoformat(
|
|
115
|
+
data["lastUpdatedTime"].replace("Z", "+00:00")
|
|
116
|
+
)
|
|
117
|
+
else:
|
|
118
|
+
raise DeserializationError(
|
|
119
|
+
"GetDevEnvironmentResponse.last_updated_time required"
|
|
120
|
+
)
|
|
121
|
+
if data.get("creatorId") is not None:
|
|
122
|
+
out["creator_id"] = data["creatorId"]
|
|
123
|
+
else:
|
|
124
|
+
raise DeserializationError("GetDevEnvironmentResponse.creator_id required")
|
|
125
|
+
if data.get("status") is not None:
|
|
126
|
+
out["status"] = data["status"]
|
|
127
|
+
else:
|
|
128
|
+
raise DeserializationError("GetDevEnvironmentResponse.status required")
|
|
129
|
+
if data.get("statusReason") is not None:
|
|
130
|
+
out["status_reason"] = data["statusReason"]
|
|
131
|
+
if data.get("repositories") is not None:
|
|
132
|
+
import capo_codecatalyst.types.dev_environment_repository_summaries
|
|
133
|
+
|
|
134
|
+
out["repositories"] = (
|
|
135
|
+
capo_codecatalyst.types.dev_environment_repository_summaries.deserialize_json(
|
|
136
|
+
data["repositories"]
|
|
137
|
+
)
|
|
138
|
+
)
|
|
139
|
+
else:
|
|
140
|
+
raise DeserializationError("GetDevEnvironmentResponse.repositories required")
|
|
141
|
+
if data.get("alias") is not None:
|
|
142
|
+
out["alias"] = data["alias"]
|
|
143
|
+
if data.get("ides") is not None:
|
|
144
|
+
import capo_codecatalyst.types.ides
|
|
145
|
+
|
|
146
|
+
out["ides"] = capo_codecatalyst.types.ides.deserialize_json(data["ides"])
|
|
147
|
+
if data.get("instanceType") is not None:
|
|
148
|
+
out["instance_type"] = data["instanceType"]
|
|
149
|
+
else:
|
|
150
|
+
raise DeserializationError("GetDevEnvironmentResponse.instance_type required")
|
|
151
|
+
if data.get("inactivityTimeoutMinutes") is not None:
|
|
152
|
+
out["inactivity_timeout_minutes"] = data["inactivityTimeoutMinutes"]
|
|
153
|
+
else:
|
|
154
|
+
out["inactivity_timeout_minutes"] = 0
|
|
155
|
+
if data.get("persistentStorage") is not None:
|
|
156
|
+
import capo_codecatalyst.types.persistent_storage
|
|
157
|
+
|
|
158
|
+
out["persistent_storage"] = (
|
|
159
|
+
capo_codecatalyst.types.persistent_storage.deserialize_json(
|
|
160
|
+
data["persistentStorage"]
|
|
161
|
+
)
|
|
162
|
+
)
|
|
163
|
+
else:
|
|
164
|
+
raise DeserializationError(
|
|
165
|
+
"GetDevEnvironmentResponse.persistent_storage required"
|
|
166
|
+
)
|
|
167
|
+
if data.get("vpcConnectionName") is not None:
|
|
168
|
+
out["vpc_connection_name"] = data["vpcConnectionName"]
|
|
169
|
+
return out
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codecatalyst#GetProjectRequest``."""
|
|
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 GetProjectRequest(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.</p>"""
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
# --- restJson1 ser/de ---
|
|
19
|
+
def serialize_json(value: GetProjectRequest) -> dict:
|
|
20
|
+
out: dict = {}
|
|
21
|
+
return out
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
def deserialize_json(data: dict) -> GetProjectRequest:
|
|
25
|
+
out: GetProjectRequest = {} # type: ignore[typeddict-item]
|
|
26
|
+
return out
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codecatalyst#GetProjectResponse``."""
|
|
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 GetProjectResponse(TypedDict, closed=True):
|
|
14
|
+
space_name: NotRequired["capo_codecatalyst.types.name_string.NameString"]
|
|
15
|
+
"""<p>The name of the space.</p>"""
|
|
16
|
+
name: "str"
|
|
17
|
+
"""<p>The name of the project in the space.</p>"""
|
|
18
|
+
display_name: NotRequired["str"]
|
|
19
|
+
"""<p>The friendly name of the project displayed to users in Amazon CodeCatalyst.</p>"""
|
|
20
|
+
description: NotRequired["str"]
|
|
21
|
+
"""<p>The description of the project.</p>"""
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
# --- restJson1 ser/de ---
|
|
25
|
+
def serialize_json(value: GetProjectResponse) -> dict:
|
|
26
|
+
out: dict = {}
|
|
27
|
+
if "space_name" in value:
|
|
28
|
+
out["spaceName"] = value["space_name"]
|
|
29
|
+
out["name"] = value["name"]
|
|
30
|
+
if "display_name" in value:
|
|
31
|
+
out["displayName"] = value["display_name"]
|
|
32
|
+
if "description" in value:
|
|
33
|
+
out["description"] = value["description"]
|
|
34
|
+
return out
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
def deserialize_json(data: dict) -> GetProjectResponse:
|
|
38
|
+
out: GetProjectResponse = {} # type: ignore[typeddict-item]
|
|
39
|
+
if data.get("spaceName") is not None:
|
|
40
|
+
out["space_name"] = data["spaceName"]
|
|
41
|
+
if data.get("name") is not None:
|
|
42
|
+
out["name"] = data["name"]
|
|
43
|
+
else:
|
|
44
|
+
raise DeserializationError("GetProjectResponse.name required")
|
|
45
|
+
if data.get("displayName") is not None:
|
|
46
|
+
out["display_name"] = data["displayName"]
|
|
47
|
+
if data.get("description") is not None:
|
|
48
|
+
out["description"] = data["description"]
|
|
49
|
+
return out
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codecatalyst#GetSourceRepositoryCloneUrlsRequest``."""
|
|
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 GetSourceRepositoryCloneUrlsRequest(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
|
+
|
|
20
|
+
|
|
21
|
+
# --- restJson1 ser/de ---
|
|
22
|
+
def serialize_json(value: GetSourceRepositoryCloneUrlsRequest) -> dict:
|
|
23
|
+
out: dict = {}
|
|
24
|
+
return out
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
def deserialize_json(data: dict) -> GetSourceRepositoryCloneUrlsRequest:
|
|
28
|
+
out: GetSourceRepositoryCloneUrlsRequest = {} # type: ignore[typeddict-item]
|
|
29
|
+
return out
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codecatalyst#GetSourceRepositoryCloneUrlsResponse``."""
|
|
2
|
+
|
|
3
|
+
from typing_extensions import TypedDict
|
|
4
|
+
|
|
5
|
+
from capo_codecatalyst.errors import DeserializationError
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class GetSourceRepositoryCloneUrlsResponse(TypedDict, closed=True):
|
|
9
|
+
https: "str"
|
|
10
|
+
"""<p>The HTTPS URL to use when cloning the source repository.</p>"""
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
# --- restJson1 ser/de ---
|
|
14
|
+
def serialize_json(value: GetSourceRepositoryCloneUrlsResponse) -> dict:
|
|
15
|
+
out: dict = {}
|
|
16
|
+
out["https"] = value["https"]
|
|
17
|
+
return out
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
def deserialize_json(data: dict) -> GetSourceRepositoryCloneUrlsResponse:
|
|
21
|
+
out: GetSourceRepositoryCloneUrlsResponse = {} # type: ignore[typeddict-item]
|
|
22
|
+
if data.get("https") is not None:
|
|
23
|
+
out["https"] = data["https"]
|
|
24
|
+
else:
|
|
25
|
+
raise DeserializationError(
|
|
26
|
+
"GetSourceRepositoryCloneUrlsResponse.https required"
|
|
27
|
+
)
|
|
28
|
+
return out
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codecatalyst#GetSourceRepositoryRequest``."""
|
|
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 GetSourceRepositoryRequest(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: GetSourceRepositoryRequest) -> dict:
|
|
23
|
+
out: dict = {}
|
|
24
|
+
return out
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
def deserialize_json(data: dict) -> GetSourceRepositoryRequest:
|
|
28
|
+
out: GetSourceRepositoryRequest = {} # type: ignore[typeddict-item]
|
|
29
|
+
return out
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codecatalyst#GetSourceRepositoryResponse``."""
|
|
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
|
+
import capo_codecatalyst.types.timestamp
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class GetSourceRepositoryResponse(TypedDict, closed=True):
|
|
17
|
+
space_name: "capo_codecatalyst.types.name_string.NameString"
|
|
18
|
+
"""<p>The name of the space.</p>"""
|
|
19
|
+
project_name: "capo_codecatalyst.types.name_string.NameString"
|
|
20
|
+
"""<p>The name of the project in the space.</p>"""
|
|
21
|
+
name: "capo_codecatalyst.types.source_repository_name_string.SourceRepositoryNameString"
|
|
22
|
+
"""<p>The name of the source repository.</p>"""
|
|
23
|
+
description: NotRequired[
|
|
24
|
+
"capo_codecatalyst.types.source_repository_description_string.SourceRepositoryDescriptionString"
|
|
25
|
+
]
|
|
26
|
+
"""<p>The description of the source repository.</p>"""
|
|
27
|
+
last_updated_time: "capo_codecatalyst.types.timestamp.Timestamp"
|
|
28
|
+
r"""<p>The time the source repository 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>"""
|
|
29
|
+
created_time: "capo_codecatalyst.types.timestamp.Timestamp"
|
|
30
|
+
r"""<p>The time the source repository was created, 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
|
+
|
|
32
|
+
|
|
33
|
+
# --- restJson1 ser/de ---
|
|
34
|
+
def serialize_json(value: GetSourceRepositoryResponse) -> dict:
|
|
35
|
+
out: dict = {}
|
|
36
|
+
out["spaceName"] = value["space_name"]
|
|
37
|
+
out["projectName"] = value["project_name"]
|
|
38
|
+
out["name"] = value["name"]
|
|
39
|
+
if "description" in value:
|
|
40
|
+
out["description"] = value["description"]
|
|
41
|
+
import capo_codecatalyst.types.timestamp
|
|
42
|
+
|
|
43
|
+
out["lastUpdatedTime"] = capo_codecatalyst.types.timestamp.serialize_json(
|
|
44
|
+
value["last_updated_time"]
|
|
45
|
+
)
|
|
46
|
+
import capo_codecatalyst.types.timestamp
|
|
47
|
+
|
|
48
|
+
out["createdTime"] = capo_codecatalyst.types.timestamp.serialize_json(
|
|
49
|
+
value["created_time"]
|
|
50
|
+
)
|
|
51
|
+
return out
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
def deserialize_json(data: dict) -> GetSourceRepositoryResponse:
|
|
55
|
+
out: GetSourceRepositoryResponse = {} # type: ignore[typeddict-item]
|
|
56
|
+
if data.get("spaceName") is not None:
|
|
57
|
+
out["space_name"] = data["spaceName"]
|
|
58
|
+
else:
|
|
59
|
+
raise DeserializationError("GetSourceRepositoryResponse.space_name required")
|
|
60
|
+
if data.get("projectName") is not None:
|
|
61
|
+
out["project_name"] = data["projectName"]
|
|
62
|
+
else:
|
|
63
|
+
raise DeserializationError("GetSourceRepositoryResponse.project_name required")
|
|
64
|
+
if data.get("name") is not None:
|
|
65
|
+
out["name"] = data["name"]
|
|
66
|
+
else:
|
|
67
|
+
raise DeserializationError("GetSourceRepositoryResponse.name required")
|
|
68
|
+
if data.get("description") is not None:
|
|
69
|
+
out["description"] = data["description"]
|
|
70
|
+
if data.get("lastUpdatedTime") is not None:
|
|
71
|
+
import capo_codecatalyst.types.timestamp
|
|
72
|
+
|
|
73
|
+
out["last_updated_time"] = capo_codecatalyst.types.timestamp.deserialize_json(
|
|
74
|
+
data["lastUpdatedTime"]
|
|
75
|
+
)
|
|
76
|
+
else:
|
|
77
|
+
raise DeserializationError(
|
|
78
|
+
"GetSourceRepositoryResponse.last_updated_time required"
|
|
79
|
+
)
|
|
80
|
+
if data.get("createdTime") is not None:
|
|
81
|
+
import capo_codecatalyst.types.timestamp
|
|
82
|
+
|
|
83
|
+
out["created_time"] = capo_codecatalyst.types.timestamp.deserialize_json(
|
|
84
|
+
data["createdTime"]
|
|
85
|
+
)
|
|
86
|
+
else:
|
|
87
|
+
raise DeserializationError("GetSourceRepositoryResponse.created_time required")
|
|
88
|
+
return out
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codecatalyst#GetSpaceRequest``."""
|
|
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 GetSpaceRequest(TypedDict, closed=True):
|
|
12
|
+
name: "capo_codecatalyst.types.name_string.NameString"
|
|
13
|
+
"""<p>The name of the space.</p>"""
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
# --- restJson1 ser/de ---
|
|
17
|
+
def serialize_json(value: GetSpaceRequest) -> dict:
|
|
18
|
+
out: dict = {}
|
|
19
|
+
return out
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
def deserialize_json(data: dict) -> GetSpaceRequest:
|
|
23
|
+
out: GetSpaceRequest = {} # type: ignore[typeddict-item]
|
|
24
|
+
return out
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codecatalyst#GetSpaceResponse``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import NotRequired, TypedDict
|
|
6
|
+
|
|
7
|
+
from capo_codecatalyst.errors import DeserializationError
|
|
8
|
+
|
|
9
|
+
if TYPE_CHECKING:
|
|
10
|
+
import capo_codecatalyst.types.name_string
|
|
11
|
+
import capo_codecatalyst.types.region_string
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class GetSpaceResponse(TypedDict, closed=True):
|
|
15
|
+
name: "capo_codecatalyst.types.name_string.NameString"
|
|
16
|
+
"""<p>The name of the space.</p>"""
|
|
17
|
+
region_name: "capo_codecatalyst.types.region_string.RegionString"
|
|
18
|
+
"""<p>The Amazon Web Services Region where the space exists.</p>"""
|
|
19
|
+
display_name: NotRequired["str"]
|
|
20
|
+
"""<p>The friendly name of the space displayed to users.</p>"""
|
|
21
|
+
description: NotRequired["str"]
|
|
22
|
+
"""<p>The description of the space.</p>"""
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# --- restJson1 ser/de ---
|
|
26
|
+
def serialize_json(value: GetSpaceResponse) -> dict:
|
|
27
|
+
out: dict = {}
|
|
28
|
+
out["name"] = value["name"]
|
|
29
|
+
out["regionName"] = value["region_name"]
|
|
30
|
+
if "display_name" in value:
|
|
31
|
+
out["displayName"] = value["display_name"]
|
|
32
|
+
if "description" in value:
|
|
33
|
+
out["description"] = value["description"]
|
|
34
|
+
return out
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
def deserialize_json(data: dict) -> GetSpaceResponse:
|
|
38
|
+
out: GetSpaceResponse = {} # type: ignore[typeddict-item]
|
|
39
|
+
if data.get("name") is not None:
|
|
40
|
+
out["name"] = data["name"]
|
|
41
|
+
else:
|
|
42
|
+
raise DeserializationError("GetSpaceResponse.name required")
|
|
43
|
+
if data.get("regionName") is not None:
|
|
44
|
+
out["region_name"] = data["regionName"]
|
|
45
|
+
else:
|
|
46
|
+
raise DeserializationError("GetSpaceResponse.region_name required")
|
|
47
|
+
if data.get("displayName") is not None:
|
|
48
|
+
out["display_name"] = data["displayName"]
|
|
49
|
+
if data.get("description") is not None:
|
|
50
|
+
out["description"] = data["description"]
|
|
51
|
+
return out
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codecatalyst#GetSubscriptionRequest``."""
|
|
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 GetSubscriptionRequest(TypedDict, closed=True):
|
|
12
|
+
space_name: "capo_codecatalyst.types.name_string.NameString"
|
|
13
|
+
"""<p>The name of the space.</p>"""
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
# --- restJson1 ser/de ---
|
|
17
|
+
def serialize_json(value: GetSubscriptionRequest) -> dict:
|
|
18
|
+
out: dict = {}
|
|
19
|
+
return out
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
def deserialize_json(data: dict) -> GetSubscriptionRequest:
|
|
23
|
+
out: GetSubscriptionRequest = {} # type: ignore[typeddict-item]
|
|
24
|
+
return out
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codecatalyst#GetSubscriptionResponse``."""
|
|
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.timestamp
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class GetSubscriptionResponse(TypedDict, closed=True):
|
|
13
|
+
subscription_type: NotRequired["str"]
|
|
14
|
+
"""<p>The type of the billing plan for the space.</p>"""
|
|
15
|
+
aws_account_name: NotRequired["capo_codecatalyst.types.name_string.NameString"]
|
|
16
|
+
"""<p>The display name of the Amazon Web Services account used for billing for the space.</p>"""
|
|
17
|
+
pending_subscription_type: NotRequired["str"]
|
|
18
|
+
r"""<p>The type of the billing plan that the space will be changed to at the start of the next billing cycle. This applies only to changes that reduce the functionality available for the space. Billing plan changes that increase functionality are applied immediately. For more information, see <a href=\"https://codecatalyst.aws/explore/pricing\">Pricing</a>.</p>"""
|
|
19
|
+
pending_subscription_start_time: NotRequired[
|
|
20
|
+
"capo_codecatalyst.types.timestamp.Timestamp"
|
|
21
|
+
]
|
|
22
|
+
r"""<p>The day and time the pending change will be applied to the space, 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>"""
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# --- restJson1 ser/de ---
|
|
26
|
+
def serialize_json(value: GetSubscriptionResponse) -> dict:
|
|
27
|
+
out: dict = {}
|
|
28
|
+
if "subscription_type" in value:
|
|
29
|
+
out["subscriptionType"] = value["subscription_type"]
|
|
30
|
+
if "aws_account_name" in value:
|
|
31
|
+
out["awsAccountName"] = value["aws_account_name"]
|
|
32
|
+
if "pending_subscription_type" in value:
|
|
33
|
+
out["pendingSubscriptionType"] = value["pending_subscription_type"]
|
|
34
|
+
if "pending_subscription_start_time" in value:
|
|
35
|
+
import capo_codecatalyst._protocol.serialize
|
|
36
|
+
|
|
37
|
+
out["pendingSubscriptionStartTime"] = (
|
|
38
|
+
capo_codecatalyst._protocol.serialize.fmt_date_time(
|
|
39
|
+
value["pending_subscription_start_time"]
|
|
40
|
+
)
|
|
41
|
+
)
|
|
42
|
+
return out
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
def deserialize_json(data: dict) -> GetSubscriptionResponse:
|
|
46
|
+
out: GetSubscriptionResponse = {} # type: ignore[typeddict-item]
|
|
47
|
+
if data.get("subscriptionType") is not None:
|
|
48
|
+
out["subscription_type"] = data["subscriptionType"]
|
|
49
|
+
if data.get("awsAccountName") is not None:
|
|
50
|
+
out["aws_account_name"] = data["awsAccountName"]
|
|
51
|
+
if data.get("pendingSubscriptionType") is not None:
|
|
52
|
+
out["pending_subscription_type"] = data["pendingSubscriptionType"]
|
|
53
|
+
if data.get("pendingSubscriptionStartTime") is not None:
|
|
54
|
+
import datetime
|
|
55
|
+
|
|
56
|
+
out["pending_subscription_start_time"] = datetime.datetime.fromisoformat(
|
|
57
|
+
data["pendingSubscriptionStartTime"].replace("Z", "+00:00")
|
|
58
|
+
)
|
|
59
|
+
return out
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codecatalyst#GetUserDetailsRequest``."""
|
|
2
|
+
|
|
3
|
+
from typing_extensions import NotRequired, TypedDict
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class GetUserDetailsRequest(TypedDict, closed=True):
|
|
7
|
+
id: NotRequired["str"]
|
|
8
|
+
"""<p>The system-generated unique ID of the user. </p>"""
|
|
9
|
+
user_name: NotRequired["str"]
|
|
10
|
+
"""<p>The name of the user as displayed in Amazon CodeCatalyst.</p>"""
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
# --- restJson1 ser/de ---
|
|
14
|
+
def serialize_json(value: GetUserDetailsRequest) -> dict:
|
|
15
|
+
out: dict = {}
|
|
16
|
+
return out
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
def deserialize_json(data: dict) -> GetUserDetailsRequest:
|
|
20
|
+
out: GetUserDetailsRequest = {} # type: ignore[typeddict-item]
|
|
21
|
+
return out
|