capo-codeartifact 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_codeartifact/__init__.py +72 -0
- capo_codeartifact/_async.py +25 -0
- capo_codeartifact/_auth/_identity.py +16 -0
- capo_codeartifact/_auth/_providers.py +886 -0
- capo_codeartifact/_auth/_signers.py +88 -0
- capo_codeartifact/_auth/_sigv4.py +434 -0
- capo_codeartifact/_auth/_zapros_handler.py +80 -0
- capo_codeartifact/_iter.py +113 -0
- capo_codeartifact/_operations/code_artifact_control_plane_service/associate_external_connection.py +181 -0
- capo_codeartifact/_operations/code_artifact_control_plane_service/copy_package_versions.py +202 -0
- capo_codeartifact/_operations/code_artifact_control_plane_service/create_domain.py +182 -0
- capo_codeartifact/_operations/code_artifact_control_plane_service/create_package_group.py +182 -0
- capo_codeartifact/_operations/code_artifact_control_plane_service/create_repository.py +189 -0
- capo_codeartifact/_operations/code_artifact_control_plane_service/delete_domain.py +169 -0
- capo_codeartifact/_operations/code_artifact_control_plane_service/delete_domain_permissions_policy.py +174 -0
- capo_codeartifact/_operations/code_artifact_control_plane_service/delete_package.py +190 -0
- capo_codeartifact/_operations/code_artifact_control_plane_service/delete_package_group.py +179 -0
- capo_codeartifact/_operations/code_artifact_control_plane_service/delete_package_versions.py +195 -0
- capo_codeartifact/_operations/code_artifact_control_plane_service/delete_repository.py +178 -0
- capo_codeartifact/_operations/code_artifact_control_plane_service/delete_repository_permissions_policy.py +176 -0
- capo_codeartifact/_operations/code_artifact_control_plane_service/describe_domain.py +169 -0
- capo_codeartifact/_operations/code_artifact_control_plane_service/describe_package.py +187 -0
- capo_codeartifact/_operations/code_artifact_control_plane_service/describe_package_group.py +169 -0
- capo_codeartifact/_operations/code_artifact_control_plane_service/describe_package_version.py +194 -0
- capo_codeartifact/_operations/code_artifact_control_plane_service/describe_repository.py +173 -0
- capo_codeartifact/_operations/code_artifact_control_plane_service/disassociate_external_connection.py +181 -0
- capo_codeartifact/_operations/code_artifact_control_plane_service/dispose_package_versions.py +200 -0
- capo_codeartifact/_operations/code_artifact_control_plane_service/get_associated_package_group.py +177 -0
- capo_codeartifact/_operations/code_artifact_control_plane_service/get_authorization_token.py +169 -0
- capo_codeartifact/_operations/code_artifact_control_plane_service/get_domain_permissions_policy.py +167 -0
- capo_codeartifact/_operations/code_artifact_control_plane_service/get_package_version_asset.py +208 -0
- capo_codeartifact/_operations/code_artifact_control_plane_service/get_package_version_readme.py +184 -0
- capo_codeartifact/_operations/code_artifact_control_plane_service/get_repository_endpoint.py +189 -0
- capo_codeartifact/_operations/code_artifact_control_plane_service/get_repository_permissions_policy.py +169 -0
- capo_codeartifact/_operations/code_artifact_control_plane_service/list_allowed_repositories_for_group.py +190 -0
- capo_codeartifact/_operations/code_artifact_control_plane_service/list_associated_packages.py +174 -0
- capo_codeartifact/_operations/code_artifact_control_plane_service/list_domains.py +164 -0
- capo_codeartifact/_operations/code_artifact_control_plane_service/list_package_groups.py +177 -0
- capo_codeartifact/_operations/code_artifact_control_plane_service/list_package_version_assets.py +189 -0
- capo_codeartifact/_operations/code_artifact_control_plane_service/list_package_version_dependencies.py +187 -0
- capo_codeartifact/_operations/code_artifact_control_plane_service/list_package_versions.py +220 -0
- capo_codeartifact/_operations/code_artifact_control_plane_service/list_packages.py +209 -0
- capo_codeartifact/_operations/code_artifact_control_plane_service/list_repositories.py +168 -0
- capo_codeartifact/_operations/code_artifact_control_plane_service/list_repositories_in_domain.py +175 -0
- capo_codeartifact/_operations/code_artifact_control_plane_service/list_sub_package_groups.py +173 -0
- capo_codeartifact/_operations/code_artifact_control_plane_service/list_tags_for_resource.py +160 -0
- capo_codeartifact/_operations/code_artifact_control_plane_service/publish_package_version.py +209 -0
- capo_codeartifact/_operations/code_artifact_control_plane_service/put_domain_permissions_policy.py +179 -0
- capo_codeartifact/_operations/code_artifact_control_plane_service/put_package_origin_configuration.py +190 -0
- capo_codeartifact/_operations/code_artifact_control_plane_service/put_repository_permissions_policy.py +185 -0
- capo_codeartifact/_operations/code_artifact_control_plane_service/tag_resource.py +163 -0
- capo_codeartifact/_operations/code_artifact_control_plane_service/untag_resource.py +158 -0
- capo_codeartifact/_operations/code_artifact_control_plane_service/update_package_group.py +176 -0
- capo_codeartifact/_operations/code_artifact_control_plane_service/update_package_group_origin_configuration.py +183 -0
- capo_codeartifact/_operations/code_artifact_control_plane_service/update_package_versions_status.py +198 -0
- capo_codeartifact/_operations/code_artifact_control_plane_service/update_repository.py +188 -0
- capo_codeartifact/_pagination.py +21 -0
- capo_codeartifact/_protocol/__init__.py +1 -0
- capo_codeartifact/_protocol/errors.py +93 -0
- capo_codeartifact/_protocol/eventstream.py +238 -0
- capo_codeartifact/_protocol/serialize.py +47 -0
- capo_codeartifact/_protocol/xml.py +33 -0
- capo_codeartifact/_rule_engine/__init__.py +0 -0
- capo_codeartifact/_rule_engine/_aws_partition.py +160 -0
- capo_codeartifact/_rule_engine/_endpoint_rule_set.py +138 -0
- capo_codeartifact/_rule_engine/_endpoint_runtime.py +389 -0
- capo_codeartifact/_services/_aws_config.py +160 -0
- capo_codeartifact/_services/_pipeline.py +198 -0
- capo_codeartifact/_services/async_codeartifact.py +3870 -0
- capo_codeartifact/_services/codeartifact.py +3822 -0
- capo_codeartifact/errors/__init__.py +36 -0
- capo_codeartifact/errors/_base.py +94 -0
- capo_codeartifact/errors/access_denied_exception.py +52 -0
- capo_codeartifact/errors/conflict_exception.py +71 -0
- capo_codeartifact/errors/internal_server_exception.py +52 -0
- capo_codeartifact/errors/resource_not_found_exception.py +73 -0
- capo_codeartifact/errors/service_quota_exceeded_exception.py +75 -0
- capo_codeartifact/errors/throttling_exception.py +55 -0
- capo_codeartifact/errors/validation_exception.py +71 -0
- capo_codeartifact/py.typed +0 -0
- capo_codeartifact/types/_prelude/blob.py +12 -0
- capo_codeartifact/types/_prelude/timestamp.py +17 -0
- capo_codeartifact/types/account_id.py +5 -0
- capo_codeartifact/types/allow_publish.py +17 -0
- capo_codeartifact/types/allow_upstream.py +17 -0
- capo_codeartifact/types/arn.py +5 -0
- capo_codeartifact/types/asset.py +7 -0
- capo_codeartifact/types/asset_hashes.py +33 -0
- capo_codeartifact/types/asset_name.py +5 -0
- capo_codeartifact/types/asset_summary.py +53 -0
- capo_codeartifact/types/asset_summary_list.py +29 -0
- capo_codeartifact/types/associate_external_connection_request.py +35 -0
- capo_codeartifact/types/associate_external_connection_result.py +42 -0
- capo_codeartifact/types/associated_package.py +71 -0
- capo_codeartifact/types/associated_package_list.py +31 -0
- capo_codeartifact/types/authorization_token_duration_seconds.py +5 -0
- capo_codeartifact/types/boolean_optional.py +5 -0
- capo_codeartifact/types/copy_package_versions_request.py +96 -0
- capo_codeartifact/types/copy_package_versions_result.py +63 -0
- capo_codeartifact/types/create_domain_request.py +42 -0
- capo_codeartifact/types/create_domain_result.py +36 -0
- capo_codeartifact/types/create_package_group_request.py +64 -0
- capo_codeartifact/types/create_package_group_result.py +42 -0
- capo_codeartifact/types/create_repository_request.py +69 -0
- capo_codeartifact/types/create_repository_result.py +42 -0
- capo_codeartifact/types/delete_domain_permissions_policy_request.py +32 -0
- capo_codeartifact/types/delete_domain_permissions_policy_result.py +36 -0
- capo_codeartifact/types/delete_domain_request.py +27 -0
- capo_codeartifact/types/delete_domain_result.py +36 -0
- capo_codeartifact/types/delete_package_group_request.py +30 -0
- capo_codeartifact/types/delete_package_group_result.py +42 -0
- capo_codeartifact/types/delete_package_request.py +39 -0
- capo_codeartifact/types/delete_package_result.py +39 -0
- capo_codeartifact/types/delete_package_versions_request.py +78 -0
- capo_codeartifact/types/delete_package_versions_result.py +63 -0
- capo_codeartifact/types/delete_repository_permissions_policy_request.py +35 -0
- capo_codeartifact/types/delete_repository_permissions_policy_result.py +36 -0
- capo_codeartifact/types/delete_repository_request.py +30 -0
- capo_codeartifact/types/delete_repository_result.py +42 -0
- capo_codeartifact/types/describe_domain_request.py +27 -0
- capo_codeartifact/types/describe_domain_result.py +35 -0
- capo_codeartifact/types/describe_package_group_request.py +30 -0
- capo_codeartifact/types/describe_package_group_result.py +42 -0
- capo_codeartifact/types/describe_package_request.py +39 -0
- capo_codeartifact/types/describe_package_result.py +39 -0
- capo_codeartifact/types/describe_package_version_request.py +42 -0
- capo_codeartifact/types/describe_package_version_result.py +47 -0
- capo_codeartifact/types/describe_repository_request.py +30 -0
- capo_codeartifact/types/describe_repository_result.py +42 -0
- capo_codeartifact/types/description.py +5 -0
- capo_codeartifact/types/disassociate_external_connection_request.py +35 -0
- capo_codeartifact/types/disassociate_external_connection_result.py +42 -0
- capo_codeartifact/types/dispose_package_versions_request.py +99 -0
- capo_codeartifact/types/dispose_package_versions_result.py +63 -0
- capo_codeartifact/types/domain_description.py +100 -0
- capo_codeartifact/types/domain_entry_point.py +39 -0
- capo_codeartifact/types/domain_name.py +5 -0
- capo_codeartifact/types/domain_status.py +17 -0
- capo_codeartifact/types/domain_summary.py +78 -0
- capo_codeartifact/types/domain_summary_list.py +31 -0
- capo_codeartifact/types/endpoint_type.py +17 -0
- capo_codeartifact/types/error_message.py +5 -0
- capo_codeartifact/types/external_connection_name.py +5 -0
- capo_codeartifact/types/external_connection_status.py +14 -0
- capo_codeartifact/types/get_associated_package_group_request.py +36 -0
- capo_codeartifact/types/get_associated_package_group_result.py +63 -0
- capo_codeartifact/types/get_authorization_token_request.py +32 -0
- capo_codeartifact/types/get_authorization_token_result.py +43 -0
- capo_codeartifact/types/get_domain_permissions_policy_request.py +27 -0
- capo_codeartifact/types/get_domain_permissions_policy_result.py +36 -0
- capo_codeartifact/types/get_package_version_asset_request.py +50 -0
- capo_codeartifact/types/get_package_version_asset_result.py +26 -0
- capo_codeartifact/types/get_package_version_readme_request.py +42 -0
- capo_codeartifact/types/get_package_version_readme_result.py +73 -0
- capo_codeartifact/types/get_repository_endpoint_request.py +36 -0
- capo_codeartifact/types/get_repository_endpoint_result.py +28 -0
- capo_codeartifact/types/get_repository_permissions_policy_request.py +30 -0
- capo_codeartifact/types/get_repository_permissions_policy_result.py +36 -0
- capo_codeartifact/types/hash_algorithm.py +19 -0
- capo_codeartifact/types/hash_value.py +5 -0
- capo_codeartifact/types/integer.py +5 -0
- capo_codeartifact/types/license_info.py +34 -0
- capo_codeartifact/types/license_info_list.py +29 -0
- capo_codeartifact/types/list_allowed_repositories_for_group_max_results.py +5 -0
- capo_codeartifact/types/list_allowed_repositories_for_group_request.py +41 -0
- capo_codeartifact/types/list_allowed_repositories_for_group_result.py +49 -0
- capo_codeartifact/types/list_associated_packages_request.py +41 -0
- capo_codeartifact/types/list_associated_packages_result.py +49 -0
- capo_codeartifact/types/list_domains_max_results.py +5 -0
- capo_codeartifact/types/list_domains_request.py +37 -0
- capo_codeartifact/types/list_domains_result.py +45 -0
- capo_codeartifact/types/list_package_groups_max_results.py +5 -0
- capo_codeartifact/types/list_package_groups_request.py +40 -0
- capo_codeartifact/types/list_package_groups_result.py +49 -0
- capo_codeartifact/types/list_package_version_assets_max_results.py +5 -0
- capo_codeartifact/types/list_package_version_assets_request.py +50 -0
- capo_codeartifact/types/list_package_version_assets_result.py +88 -0
- capo_codeartifact/types/list_package_version_dependencies_request.py +45 -0
- capo_codeartifact/types/list_package_version_dependencies_result.py +94 -0
- capo_codeartifact/types/list_package_versions_max_results.py +5 -0
- capo_codeartifact/types/list_package_versions_request.py +62 -0
- capo_codeartifact/types/list_package_versions_result.py +87 -0
- capo_codeartifact/types/list_packages_max_results.py +5 -0
- capo_codeartifact/types/list_packages_request.py +53 -0
- capo_codeartifact/types/list_packages_result.py +45 -0
- capo_codeartifact/types/list_repositories_in_domain_max_results.py +5 -0
- capo_codeartifact/types/list_repositories_in_domain_request.py +42 -0
- capo_codeartifact/types/list_repositories_in_domain_result.py +49 -0
- capo_codeartifact/types/list_repositories_max_results.py +5 -0
- capo_codeartifact/types/list_repositories_request.py +34 -0
- capo_codeartifact/types/list_repositories_result.py +49 -0
- capo_codeartifact/types/list_sub_package_groups_request.py +38 -0
- capo_codeartifact/types/list_sub_package_groups_result.py +49 -0
- capo_codeartifact/types/list_tags_for_resource_request.py +24 -0
- capo_codeartifact/types/list_tags_for_resource_result.py +32 -0
- capo_codeartifact/types/long.py +5 -0
- capo_codeartifact/types/long_optional.py +5 -0
- capo_codeartifact/types/origin_restrictions.py +48 -0
- capo_codeartifact/types/package_dependency.py +48 -0
- capo_codeartifact/types/package_dependency_list.py +31 -0
- capo_codeartifact/types/package_description.py +71 -0
- capo_codeartifact/types/package_format.py +23 -0
- capo_codeartifact/types/package_group_allowed_repository.py +51 -0
- capo_codeartifact/types/package_group_allowed_repository_list.py +39 -0
- capo_codeartifact/types/package_group_allowed_repository_update.py +44 -0
- capo_codeartifact/types/package_group_allowed_repository_update_type.py +17 -0
- capo_codeartifact/types/package_group_allowed_repository_updates.py +48 -0
- capo_codeartifact/types/package_group_association_type.py +17 -0
- capo_codeartifact/types/package_group_contact_info.py +5 -0
- capo_codeartifact/types/package_group_description.py +122 -0
- capo_codeartifact/types/package_group_origin_configuration.py +42 -0
- capo_codeartifact/types/package_group_origin_restriction.py +92 -0
- capo_codeartifact/types/package_group_origin_restriction_mode.py +19 -0
- capo_codeartifact/types/package_group_origin_restriction_type.py +18 -0
- capo_codeartifact/types/package_group_origin_restrictions.py +48 -0
- capo_codeartifact/types/package_group_pattern.py +5 -0
- capo_codeartifact/types/package_group_pattern_prefix.py +5 -0
- capo_codeartifact/types/package_group_reference.py +37 -0
- capo_codeartifact/types/package_group_summary.py +122 -0
- capo_codeartifact/types/package_group_summary_list.py +31 -0
- capo_codeartifact/types/package_name.py +5 -0
- capo_codeartifact/types/package_namespace.py +5 -0
- capo_codeartifact/types/package_origin_configuration.py +42 -0
- capo_codeartifact/types/package_origin_restrictions.py +55 -0
- capo_codeartifact/types/package_summary.py +71 -0
- capo_codeartifact/types/package_summary_list.py +31 -0
- capo_codeartifact/types/package_version.py +5 -0
- capo_codeartifact/types/package_version_description.py +156 -0
- capo_codeartifact/types/package_version_error.py +49 -0
- capo_codeartifact/types/package_version_error_code.py +21 -0
- capo_codeartifact/types/package_version_error_map.py +33 -0
- capo_codeartifact/types/package_version_list.py +19 -0
- capo_codeartifact/types/package_version_origin.py +63 -0
- capo_codeartifact/types/package_version_origin_type.py +18 -0
- capo_codeartifact/types/package_version_revision.py +5 -0
- capo_codeartifact/types/package_version_revision_map.py +29 -0
- capo_codeartifact/types/package_version_sort_type.py +14 -0
- capo_codeartifact/types/package_version_status.py +21 -0
- capo_codeartifact/types/package_version_summary.py +73 -0
- capo_codeartifact/types/package_version_summary_list.py +33 -0
- capo_codeartifact/types/pagination_token.py +5 -0
- capo_codeartifact/types/policy_document.py +5 -0
- capo_codeartifact/types/policy_revision.py +5 -0
- capo_codeartifact/types/publish_package_version_request.py +43 -0
- capo_codeartifact/types/publish_package_version_result.py +98 -0
- capo_codeartifact/types/put_domain_permissions_policy_request.py +57 -0
- capo_codeartifact/types/put_domain_permissions_policy_result.py +36 -0
- capo_codeartifact/types/put_package_origin_configuration_request.py +65 -0
- capo_codeartifact/types/put_package_origin_configuration_result.py +42 -0
- capo_codeartifact/types/put_repository_permissions_policy_request.py +51 -0
- capo_codeartifact/types/put_repository_permissions_policy_result.py +36 -0
- capo_codeartifact/types/repository_description.py +119 -0
- capo_codeartifact/types/repository_external_connection_info.py +66 -0
- capo_codeartifact/types/repository_external_connection_info_list.py +39 -0
- capo_codeartifact/types/repository_name.py +5 -0
- capo_codeartifact/types/repository_name_list.py +19 -0
- capo_codeartifact/types/repository_summary.py +77 -0
- capo_codeartifact/types/repository_summary_list.py +31 -0
- capo_codeartifact/types/resource_policy.py +42 -0
- capo_codeartifact/types/resource_type.py +20 -0
- capo_codeartifact/types/retry_after_seconds.py +5 -0
- capo_codeartifact/types/sha256.py +5 -0
- capo_codeartifact/types/string.py +5 -0
- capo_codeartifact/types/string255.py +5 -0
- capo_codeartifact/types/successful_package_version_info.py +45 -0
- capo_codeartifact/types/successful_package_version_info_map.py +41 -0
- capo_codeartifact/types/tag.py +39 -0
- capo_codeartifact/types/tag_key.py +5 -0
- capo_codeartifact/types/tag_key_list.py +17 -0
- capo_codeartifact/types/tag_list.py +29 -0
- capo_codeartifact/types/tag_resource_request.py +38 -0
- capo_codeartifact/types/tag_resource_result.py +18 -0
- capo_codeartifact/types/tag_value.py +5 -0
- capo_codeartifact/types/timestamp.py +20 -0
- capo_codeartifact/types/untag_resource_request.py +42 -0
- capo_codeartifact/types/untag_resource_result.py +18 -0
- capo_codeartifact/types/update_package_group_origin_configuration_request.py +92 -0
- capo_codeartifact/types/update_package_group_origin_configuration_result.py +63 -0
- capo_codeartifact/types/update_package_group_request.py +53 -0
- capo_codeartifact/types/update_package_group_result.py +42 -0
- capo_codeartifact/types/update_package_versions_status_request.py +120 -0
- capo_codeartifact/types/update_package_versions_status_result.py +63 -0
- capo_codeartifact/types/update_repository_request.py +58 -0
- capo_codeartifact/types/update_repository_result.py +42 -0
- capo_codeartifact/types/upstream_repository.py +31 -0
- capo_codeartifact/types/upstream_repository_info.py +30 -0
- capo_codeartifact/types/upstream_repository_info_list.py +35 -0
- capo_codeartifact/types/upstream_repository_list.py +31 -0
- capo_codeartifact/types/validation_exception_reason.py +20 -0
- capo_codeartifact-0.1.0.dist-info/METADATA +139 -0
- capo_codeartifact-0.1.0.dist-info/RECORD +294 -0
- capo_codeartifact-0.1.0.dist-info/WHEEL +5 -0
- capo_codeartifact-0.1.0.dist-info/licenses/LICENSE +21 -0
- capo_codeartifact-0.1.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeartifact#AssetHashes``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING, TypeAlias
|
|
4
|
+
|
|
5
|
+
if TYPE_CHECKING:
|
|
6
|
+
import capo_codeartifact.types.hash_algorithm
|
|
7
|
+
import capo_codeartifact.types.hash_value
|
|
8
|
+
|
|
9
|
+
AssetHashes: TypeAlias = dict[
|
|
10
|
+
"capo_codeartifact.types.hash_algorithm.HashAlgorithm",
|
|
11
|
+
"capo_codeartifact.types.hash_value.HashValue",
|
|
12
|
+
]
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
# --- restJson1 ser/de ---
|
|
16
|
+
def serialize_json(input_to_serialize: AssetHashes) -> dict:
|
|
17
|
+
out: dict = {}
|
|
18
|
+
for key, value in input_to_serialize.items():
|
|
19
|
+
import capo_codeartifact.types.hash_algorithm
|
|
20
|
+
|
|
21
|
+
out[capo_codeartifact.types.hash_algorithm.serialize_json(key)] = value
|
|
22
|
+
return out
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
def deserialize_json(data: dict) -> AssetHashes:
|
|
26
|
+
out: AssetHashes = {}
|
|
27
|
+
for key, value in data.items():
|
|
28
|
+
import capo_codeartifact.types.hash_algorithm
|
|
29
|
+
|
|
30
|
+
if value is None:
|
|
31
|
+
continue
|
|
32
|
+
out[capo_codeartifact.types.hash_algorithm.deserialize_json(key)] = value
|
|
33
|
+
return out
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeartifact#AssetSummary``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import NotRequired, TypedDict
|
|
6
|
+
|
|
7
|
+
from capo_codeartifact.errors import DeserializationError
|
|
8
|
+
|
|
9
|
+
if TYPE_CHECKING:
|
|
10
|
+
import capo_codeartifact.types.asset_hashes
|
|
11
|
+
import capo_codeartifact.types.asset_name
|
|
12
|
+
import capo_codeartifact.types.long_optional
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class AssetSummary(TypedDict, closed=True):
|
|
16
|
+
name: "capo_codeartifact.types.asset_name.AssetName"
|
|
17
|
+
"""<p> The name of the asset. </p>"""
|
|
18
|
+
size: NotRequired["capo_codeartifact.types.long_optional.LongOptional"]
|
|
19
|
+
"""<p> The size of the asset. </p>"""
|
|
20
|
+
hashes: NotRequired["capo_codeartifact.types.asset_hashes.AssetHashes"]
|
|
21
|
+
"""<p> The hashes of the asset. </p>"""
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
# --- restJson1 ser/de ---
|
|
25
|
+
def serialize_json(value: AssetSummary) -> dict:
|
|
26
|
+
out: dict = {}
|
|
27
|
+
out["name"] = value["name"]
|
|
28
|
+
if "size" in value:
|
|
29
|
+
out["size"] = value["size"]
|
|
30
|
+
if "hashes" in value:
|
|
31
|
+
import capo_codeartifact.types.asset_hashes
|
|
32
|
+
|
|
33
|
+
out["hashes"] = capo_codeartifact.types.asset_hashes.serialize_json(
|
|
34
|
+
value["hashes"]
|
|
35
|
+
)
|
|
36
|
+
return out
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
def deserialize_json(data: dict) -> AssetSummary:
|
|
40
|
+
out: AssetSummary = {} # type: ignore[typeddict-item]
|
|
41
|
+
if data.get("name") is not None:
|
|
42
|
+
out["name"] = data["name"]
|
|
43
|
+
else:
|
|
44
|
+
raise DeserializationError("AssetSummary.name required")
|
|
45
|
+
if data.get("size") is not None:
|
|
46
|
+
out["size"] = data["size"]
|
|
47
|
+
if data.get("hashes") is not None:
|
|
48
|
+
import capo_codeartifact.types.asset_hashes
|
|
49
|
+
|
|
50
|
+
out["hashes"] = capo_codeartifact.types.asset_hashes.deserialize_json(
|
|
51
|
+
data["hashes"]
|
|
52
|
+
)
|
|
53
|
+
return out
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeartifact#AssetSummaryList``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING, TypeAlias
|
|
4
|
+
|
|
5
|
+
if TYPE_CHECKING:
|
|
6
|
+
import capo_codeartifact.types.asset_summary
|
|
7
|
+
|
|
8
|
+
AssetSummaryList: TypeAlias = list["capo_codeartifact.types.asset_summary.AssetSummary"]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
# --- restJson1 ser/de ---
|
|
12
|
+
def serialize_json(value: AssetSummaryList) -> list:
|
|
13
|
+
import capo_codeartifact.types.asset_summary
|
|
14
|
+
|
|
15
|
+
out: list = []
|
|
16
|
+
for item in value:
|
|
17
|
+
out.append(capo_codeartifact.types.asset_summary.serialize_json(item))
|
|
18
|
+
return out
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
def deserialize_json(data: list) -> AssetSummaryList:
|
|
22
|
+
import capo_codeartifact.types.asset_summary
|
|
23
|
+
|
|
24
|
+
out: AssetSummaryList = []
|
|
25
|
+
for item in data:
|
|
26
|
+
if item is None:
|
|
27
|
+
continue
|
|
28
|
+
out.append(capo_codeartifact.types.asset_summary.deserialize_json(item))
|
|
29
|
+
return out
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeartifact#AssociateExternalConnectionRequest``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import NotRequired, TypedDict
|
|
6
|
+
|
|
7
|
+
if TYPE_CHECKING:
|
|
8
|
+
import capo_codeartifact.types.account_id
|
|
9
|
+
import capo_codeartifact.types.domain_name
|
|
10
|
+
import capo_codeartifact.types.external_connection_name
|
|
11
|
+
import capo_codeartifact.types.repository_name
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class AssociateExternalConnectionRequest(TypedDict, closed=True):
|
|
15
|
+
domain: "capo_codeartifact.types.domain_name.DomainName"
|
|
16
|
+
"""<p>The name of the domain that contains the repository.</p>"""
|
|
17
|
+
domain_owner: NotRequired["capo_codeartifact.types.account_id.AccountId"]
|
|
18
|
+
"""<p> The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. </p>"""
|
|
19
|
+
repository: "capo_codeartifact.types.repository_name.RepositoryName"
|
|
20
|
+
"""<p> The name of the repository to which the external connection is added. </p>"""
|
|
21
|
+
external_connection: (
|
|
22
|
+
"capo_codeartifact.types.external_connection_name.ExternalConnectionName"
|
|
23
|
+
)
|
|
24
|
+
"""<p> The name of the external connection to add to the repository. The following values are supported: </p> <ul> <li> <p> <code>public:npmjs</code> - for the npm public repository. </p> </li> <li> <p> <code>public:nuget-org</code> - for the NuGet Gallery. </p> </li> <li> <p> <code>public:pypi</code> - for the Python Package Index. </p> </li> <li> <p> <code>public:maven-central</code> - for Maven Central. </p> </li> <li> <p> <code>public:maven-googleandroid</code> - for the Google Android repository. </p> </li> <li> <p> <code>public:maven-gradleplugins</code> - for the Gradle plugins repository. </p> </li> <li> <p> <code>public:maven-commonsware</code> - for the CommonsWare Android repository. </p> </li> <li> <p> <code>public:maven-clojars</code> - for the Clojars repository. </p> </li> <li> <p> <code>public:ruby-gems-org</code> - for RubyGems.org. </p> </li> <li> <p> <code>public:crates-io</code> - for Crates.io. </p> </li> </ul>"""
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
# --- restJson1 ser/de ---
|
|
28
|
+
def serialize_json(value: AssociateExternalConnectionRequest) -> dict:
|
|
29
|
+
out: dict = {}
|
|
30
|
+
return out
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
def deserialize_json(data: dict) -> AssociateExternalConnectionRequest:
|
|
34
|
+
out: AssociateExternalConnectionRequest = {} # type: ignore[typeddict-item]
|
|
35
|
+
return out
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeartifact#AssociateExternalConnectionResult``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import NotRequired, TypedDict
|
|
6
|
+
|
|
7
|
+
if TYPE_CHECKING:
|
|
8
|
+
import capo_codeartifact.types.repository_description
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class AssociateExternalConnectionResult(TypedDict, closed=True):
|
|
12
|
+
repository: NotRequired[
|
|
13
|
+
"capo_codeartifact.types.repository_description.RepositoryDescription"
|
|
14
|
+
]
|
|
15
|
+
"""<p> Information about the connected repository after processing the request. </p>"""
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
# --- restJson1 ser/de ---
|
|
19
|
+
def serialize_json(value: AssociateExternalConnectionResult) -> dict:
|
|
20
|
+
out: dict = {}
|
|
21
|
+
if "repository" in value:
|
|
22
|
+
import capo_codeartifact.types.repository_description
|
|
23
|
+
|
|
24
|
+
out["repository"] = (
|
|
25
|
+
capo_codeartifact.types.repository_description.serialize_json(
|
|
26
|
+
value["repository"]
|
|
27
|
+
)
|
|
28
|
+
)
|
|
29
|
+
return out
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
def deserialize_json(data: dict) -> AssociateExternalConnectionResult:
|
|
33
|
+
out: AssociateExternalConnectionResult = {} # type: ignore[typeddict-item]
|
|
34
|
+
if data.get("repository") is not None:
|
|
35
|
+
import capo_codeartifact.types.repository_description
|
|
36
|
+
|
|
37
|
+
out["repository"] = (
|
|
38
|
+
capo_codeartifact.types.repository_description.deserialize_json(
|
|
39
|
+
data["repository"]
|
|
40
|
+
)
|
|
41
|
+
)
|
|
42
|
+
return out
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeartifact#AssociatedPackage``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import NotRequired, TypedDict
|
|
6
|
+
|
|
7
|
+
if TYPE_CHECKING:
|
|
8
|
+
import capo_codeartifact.types.package_format
|
|
9
|
+
import capo_codeartifact.types.package_group_association_type
|
|
10
|
+
import capo_codeartifact.types.package_name
|
|
11
|
+
import capo_codeartifact.types.package_namespace
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class AssociatedPackage(TypedDict, closed=True):
|
|
15
|
+
format: NotRequired["capo_codeartifact.types.package_format.PackageFormat"]
|
|
16
|
+
"""<p>A format that specifies the type of the associated package.</p>"""
|
|
17
|
+
namespace: NotRequired["capo_codeartifact.types.package_namespace.PackageNamespace"]
|
|
18
|
+
"""<p>The namespace of the associated package. The package component that specifies its namespace depends on its type. For example:</p> <ul> <li> <p> The namespace of a Maven package version is its <code>groupId</code>. </p> </li> <li> <p> The namespace of an npm or Swift package version is its <code>scope</code>. </p> </li> <li> <p>The namespace of a generic package is its <code>namespace</code>.</p> </li> <li> <p> Python, NuGet, Ruby, and Cargo package versions do not contain a corresponding component, package versions of those formats do not have a namespace. </p> </li> </ul>"""
|
|
19
|
+
package: NotRequired["capo_codeartifact.types.package_name.PackageName"]
|
|
20
|
+
"""<p> The name of the associated package. </p>"""
|
|
21
|
+
association_type: NotRequired[
|
|
22
|
+
"capo_codeartifact.types.package_group_association_type.PackageGroupAssociationType"
|
|
23
|
+
]
|
|
24
|
+
r"""<p>Describes the strength of the association between the package and package group. A strong match can be thought of as an exact match, and a weak match can be thought of as a variation match, for example, the package name matches a variation of the package group pattern. For more information about package group pattern matching, including strong and weak matches, see <a href=\"https://docs.aws.amazon.com/codeartifact/latest/ug/package-group-definition-syntax-matching-behavior.html\">Package group definition syntax and matching behavior</a> in the <i>CodeArtifact User Guide</i>.</p>"""
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
# --- restJson1 ser/de ---
|
|
28
|
+
def serialize_json(value: AssociatedPackage) -> dict:
|
|
29
|
+
out: dict = {}
|
|
30
|
+
if "format" in value:
|
|
31
|
+
import capo_codeartifact.types.package_format
|
|
32
|
+
|
|
33
|
+
out["format"] = capo_codeartifact.types.package_format.serialize_json(
|
|
34
|
+
value["format"]
|
|
35
|
+
)
|
|
36
|
+
if "namespace" in value:
|
|
37
|
+
out["namespace"] = value["namespace"]
|
|
38
|
+
if "package" in value:
|
|
39
|
+
out["package"] = value["package"]
|
|
40
|
+
if "association_type" in value:
|
|
41
|
+
import capo_codeartifact.types.package_group_association_type
|
|
42
|
+
|
|
43
|
+
out["associationType"] = (
|
|
44
|
+
capo_codeartifact.types.package_group_association_type.serialize_json(
|
|
45
|
+
value["association_type"]
|
|
46
|
+
)
|
|
47
|
+
)
|
|
48
|
+
return out
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
def deserialize_json(data: dict) -> AssociatedPackage:
|
|
52
|
+
out: AssociatedPackage = {} # type: ignore[typeddict-item]
|
|
53
|
+
if data.get("format") is not None:
|
|
54
|
+
import capo_codeartifact.types.package_format
|
|
55
|
+
|
|
56
|
+
out["format"] = capo_codeartifact.types.package_format.deserialize_json(
|
|
57
|
+
data["format"]
|
|
58
|
+
)
|
|
59
|
+
if data.get("namespace") is not None:
|
|
60
|
+
out["namespace"] = data["namespace"]
|
|
61
|
+
if data.get("package") is not None:
|
|
62
|
+
out["package"] = data["package"]
|
|
63
|
+
if data.get("associationType") is not None:
|
|
64
|
+
import capo_codeartifact.types.package_group_association_type
|
|
65
|
+
|
|
66
|
+
out["association_type"] = (
|
|
67
|
+
capo_codeartifact.types.package_group_association_type.deserialize_json(
|
|
68
|
+
data["associationType"]
|
|
69
|
+
)
|
|
70
|
+
)
|
|
71
|
+
return out
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeartifact#AssociatedPackageList``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING, TypeAlias
|
|
4
|
+
|
|
5
|
+
if TYPE_CHECKING:
|
|
6
|
+
import capo_codeartifact.types.associated_package
|
|
7
|
+
|
|
8
|
+
AssociatedPackageList: TypeAlias = list[
|
|
9
|
+
"capo_codeartifact.types.associated_package.AssociatedPackage"
|
|
10
|
+
]
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
# --- restJson1 ser/de ---
|
|
14
|
+
def serialize_json(value: AssociatedPackageList) -> list:
|
|
15
|
+
import capo_codeartifact.types.associated_package
|
|
16
|
+
|
|
17
|
+
out: list = []
|
|
18
|
+
for item in value:
|
|
19
|
+
out.append(capo_codeartifact.types.associated_package.serialize_json(item))
|
|
20
|
+
return out
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
def deserialize_json(data: list) -> AssociatedPackageList:
|
|
24
|
+
import capo_codeartifact.types.associated_package
|
|
25
|
+
|
|
26
|
+
out: AssociatedPackageList = []
|
|
27
|
+
for item in data:
|
|
28
|
+
if item is None:
|
|
29
|
+
continue
|
|
30
|
+
out.append(capo_codeartifact.types.associated_package.deserialize_json(item))
|
|
31
|
+
return out
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeartifact#CopyPackageVersionsRequest``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import NotRequired, TypedDict
|
|
6
|
+
|
|
7
|
+
if TYPE_CHECKING:
|
|
8
|
+
import capo_codeartifact.types.account_id
|
|
9
|
+
import capo_codeartifact.types.boolean_optional
|
|
10
|
+
import capo_codeartifact.types.domain_name
|
|
11
|
+
import capo_codeartifact.types.package_format
|
|
12
|
+
import capo_codeartifact.types.package_name
|
|
13
|
+
import capo_codeartifact.types.package_namespace
|
|
14
|
+
import capo_codeartifact.types.package_version_list
|
|
15
|
+
import capo_codeartifact.types.package_version_revision_map
|
|
16
|
+
import capo_codeartifact.types.repository_name
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class CopyPackageVersionsRequest(TypedDict, closed=True):
|
|
20
|
+
domain: "capo_codeartifact.types.domain_name.DomainName"
|
|
21
|
+
"""<p> The name of the domain that contains the source and destination repositories. </p>"""
|
|
22
|
+
domain_owner: NotRequired["capo_codeartifact.types.account_id.AccountId"]
|
|
23
|
+
"""<p> The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. </p>"""
|
|
24
|
+
source_repository: "capo_codeartifact.types.repository_name.RepositoryName"
|
|
25
|
+
"""<p> The name of the repository that contains the package versions to be copied. </p>"""
|
|
26
|
+
destination_repository: "capo_codeartifact.types.repository_name.RepositoryName"
|
|
27
|
+
"""<p> The name of the repository into which package versions are copied. </p>"""
|
|
28
|
+
format: "capo_codeartifact.types.package_format.PackageFormat"
|
|
29
|
+
"""<p> The format of the package versions to be copied. </p>"""
|
|
30
|
+
namespace: NotRequired["capo_codeartifact.types.package_namespace.PackageNamespace"]
|
|
31
|
+
"""<p>The namespace of the package versions to be copied. The package component that specifies its namespace depends on its type. For example:</p> <note> <p>The namespace is required when copying package versions of the following formats:</p> <ul> <li> <p>Maven</p> </li> <li> <p>Swift</p> </li> <li> <p>generic</p> </li> </ul> </note> <ul> <li> <p> The namespace of a Maven package version is its <code>groupId</code>. </p> </li> <li> <p> The namespace of an npm or Swift package version is its <code>scope</code>. </p> </li> <li> <p>The namespace of a generic package is its <code>namespace</code>.</p> </li> <li> <p> Python, NuGet, Ruby, and Cargo package versions do not contain a corresponding component, package versions of those formats do not have a namespace. </p> </li> </ul>"""
|
|
32
|
+
package: "capo_codeartifact.types.package_name.PackageName"
|
|
33
|
+
"""<p> The name of the package that contains the versions to be copied. </p>"""
|
|
34
|
+
versions: NotRequired[
|
|
35
|
+
"capo_codeartifact.types.package_version_list.PackageVersionList"
|
|
36
|
+
]
|
|
37
|
+
"""<p> The versions of the package to be copied. </p> <note> <p> You must specify <code>versions</code> or <code>versionRevisions</code>. You cannot specify both. </p> </note>"""
|
|
38
|
+
version_revisions: NotRequired[
|
|
39
|
+
"capo_codeartifact.types.package_version_revision_map.PackageVersionRevisionMap"
|
|
40
|
+
]
|
|
41
|
+
"""<p> A list of key-value pairs. The keys are package versions and the values are package version revisions. A <code>CopyPackageVersion</code> operation succeeds if the specified versions in the source repository match the specified package version revision. </p> <note> <p> You must specify <code>versions</code> or <code>versionRevisions</code>. You cannot specify both. </p> </note>"""
|
|
42
|
+
allow_overwrite: NotRequired[
|
|
43
|
+
"capo_codeartifact.types.boolean_optional.BooleanOptional"
|
|
44
|
+
]
|
|
45
|
+
"""<p> Set to true to overwrite a package version that already exists in the destination repository. If set to false and the package version already exists in the destination repository, the package version is returned in the <code>failedVersions</code> field of the response with an <code>ALREADY_EXISTS</code> error code. </p>"""
|
|
46
|
+
include_from_upstream: NotRequired[
|
|
47
|
+
"capo_codeartifact.types.boolean_optional.BooleanOptional"
|
|
48
|
+
]
|
|
49
|
+
r"""<p> Set to true to copy packages from repositories that are upstream from the source repository to the destination repository. The default setting is false. For more information, see <a href=\"https://docs.aws.amazon.com/codeartifact/latest/ug/repos-upstream.html\">Working with upstream repositories</a>. </p>"""
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
# --- restJson1 ser/de ---
|
|
53
|
+
def serialize_json(value: CopyPackageVersionsRequest) -> dict:
|
|
54
|
+
out: dict = {}
|
|
55
|
+
if "versions" in value:
|
|
56
|
+
import capo_codeartifact.types.package_version_list
|
|
57
|
+
|
|
58
|
+
out["versions"] = capo_codeartifact.types.package_version_list.serialize_json(
|
|
59
|
+
value["versions"]
|
|
60
|
+
)
|
|
61
|
+
if "version_revisions" in value:
|
|
62
|
+
import capo_codeartifact.types.package_version_revision_map
|
|
63
|
+
|
|
64
|
+
out["versionRevisions"] = (
|
|
65
|
+
capo_codeartifact.types.package_version_revision_map.serialize_json(
|
|
66
|
+
value["version_revisions"]
|
|
67
|
+
)
|
|
68
|
+
)
|
|
69
|
+
if "allow_overwrite" in value:
|
|
70
|
+
out["allowOverwrite"] = value["allow_overwrite"]
|
|
71
|
+
if "include_from_upstream" in value:
|
|
72
|
+
out["includeFromUpstream"] = value["include_from_upstream"]
|
|
73
|
+
return out
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
def deserialize_json(data: dict) -> CopyPackageVersionsRequest:
|
|
77
|
+
out: CopyPackageVersionsRequest = {} # type: ignore[typeddict-item]
|
|
78
|
+
if data.get("versions") is not None:
|
|
79
|
+
import capo_codeartifact.types.package_version_list
|
|
80
|
+
|
|
81
|
+
out["versions"] = capo_codeartifact.types.package_version_list.deserialize_json(
|
|
82
|
+
data["versions"]
|
|
83
|
+
)
|
|
84
|
+
if data.get("versionRevisions") is not None:
|
|
85
|
+
import capo_codeartifact.types.package_version_revision_map
|
|
86
|
+
|
|
87
|
+
out["version_revisions"] = (
|
|
88
|
+
capo_codeartifact.types.package_version_revision_map.deserialize_json(
|
|
89
|
+
data["versionRevisions"]
|
|
90
|
+
)
|
|
91
|
+
)
|
|
92
|
+
if data.get("allowOverwrite") is not None:
|
|
93
|
+
out["allow_overwrite"] = data["allowOverwrite"]
|
|
94
|
+
if data.get("includeFromUpstream") is not None:
|
|
95
|
+
out["include_from_upstream"] = data["includeFromUpstream"]
|
|
96
|
+
return out
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeartifact#CopyPackageVersionsResult``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import NotRequired, TypedDict
|
|
6
|
+
|
|
7
|
+
if TYPE_CHECKING:
|
|
8
|
+
import capo_codeartifact.types.package_version_error_map
|
|
9
|
+
import capo_codeartifact.types.successful_package_version_info_map
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class CopyPackageVersionsResult(TypedDict, closed=True):
|
|
13
|
+
successful_versions: NotRequired[
|
|
14
|
+
"capo_codeartifact.types.successful_package_version_info_map.SuccessfulPackageVersionInfoMap"
|
|
15
|
+
]
|
|
16
|
+
"""<p> A list of the package versions that were successfully copied to your repository. </p>"""
|
|
17
|
+
failed_versions: NotRequired[
|
|
18
|
+
"capo_codeartifact.types.package_version_error_map.PackageVersionErrorMap"
|
|
19
|
+
]
|
|
20
|
+
"""<p> A map of package versions that failed to copy and their error codes. The possible error codes are in the <code>PackageVersionError</code> data type. They are: </p> <ul> <li> <p> <code>ALREADY_EXISTS</code> </p> </li> <li> <p> <code>MISMATCHED_REVISION</code> </p> </li> <li> <p> <code>MISMATCHED_STATUS</code> </p> </li> <li> <p> <code>NOT_ALLOWED</code> </p> </li> <li> <p> <code>NOT_FOUND</code> </p> </li> <li> <p> <code>SKIPPED</code> </p> </li> </ul>"""
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
# --- restJson1 ser/de ---
|
|
24
|
+
def serialize_json(value: CopyPackageVersionsResult) -> dict:
|
|
25
|
+
out: dict = {}
|
|
26
|
+
if "successful_versions" in value:
|
|
27
|
+
import capo_codeartifact.types.successful_package_version_info_map
|
|
28
|
+
|
|
29
|
+
out["successfulVersions"] = (
|
|
30
|
+
capo_codeartifact.types.successful_package_version_info_map.serialize_json(
|
|
31
|
+
value["successful_versions"]
|
|
32
|
+
)
|
|
33
|
+
)
|
|
34
|
+
if "failed_versions" in value:
|
|
35
|
+
import capo_codeartifact.types.package_version_error_map
|
|
36
|
+
|
|
37
|
+
out["failedVersions"] = (
|
|
38
|
+
capo_codeartifact.types.package_version_error_map.serialize_json(
|
|
39
|
+
value["failed_versions"]
|
|
40
|
+
)
|
|
41
|
+
)
|
|
42
|
+
return out
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
def deserialize_json(data: dict) -> CopyPackageVersionsResult:
|
|
46
|
+
out: CopyPackageVersionsResult = {} # type: ignore[typeddict-item]
|
|
47
|
+
if data.get("successfulVersions") is not None:
|
|
48
|
+
import capo_codeartifact.types.successful_package_version_info_map
|
|
49
|
+
|
|
50
|
+
out["successful_versions"] = (
|
|
51
|
+
capo_codeartifact.types.successful_package_version_info_map.deserialize_json(
|
|
52
|
+
data["successfulVersions"]
|
|
53
|
+
)
|
|
54
|
+
)
|
|
55
|
+
if data.get("failedVersions") is not None:
|
|
56
|
+
import capo_codeartifact.types.package_version_error_map
|
|
57
|
+
|
|
58
|
+
out["failed_versions"] = (
|
|
59
|
+
capo_codeartifact.types.package_version_error_map.deserialize_json(
|
|
60
|
+
data["failedVersions"]
|
|
61
|
+
)
|
|
62
|
+
)
|
|
63
|
+
return out
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeartifact#CreateDomainRequest``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import NotRequired, TypedDict
|
|
6
|
+
|
|
7
|
+
if TYPE_CHECKING:
|
|
8
|
+
import capo_codeartifact.types.arn
|
|
9
|
+
import capo_codeartifact.types.domain_name
|
|
10
|
+
import capo_codeartifact.types.tag_list
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class CreateDomainRequest(TypedDict, closed=True):
|
|
14
|
+
domain: "capo_codeartifact.types.domain_name.DomainName"
|
|
15
|
+
"""<p> The name of the domain to create. All domain names in an Amazon Web Services Region that are in the same Amazon Web Services account must be unique. The domain name is used as the prefix in DNS hostnames. Do not use sensitive information in a domain name because it is publicly discoverable. </p>"""
|
|
16
|
+
encryption_key: NotRequired["capo_codeartifact.types.arn.Arn"]
|
|
17
|
+
r"""<p> The encryption key for the domain. This is used to encrypt content stored in a domain. An encryption key can be a key ID, a key Amazon Resource Name (ARN), a key alias, or a key alias ARN. To specify an <code>encryptionKey</code>, your IAM role must have <code>kms:DescribeKey</code> and <code>kms:CreateGrant</code> permissions on the encryption key that is used. For more information, see <a href=\"https://docs.aws.amazon.com/kms/latest/APIReference/API_DescribeKey.html#API_DescribeKey_RequestSyntax\">DescribeKey</a> in the <i>Key Management Service API Reference</i> and <a href=\"https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html\">Key Management Service API Permissions Reference</a> in the <i>Key Management Service Developer Guide</i>. </p> <important> <p> CodeArtifact supports only symmetric CMKs. Do not associate an asymmetric CMK with your domain. For more information, see <a href=\"https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html\">Using symmetric and asymmetric keys</a> in the <i>Key Management Service Developer Guide</i>. </p> </important>"""
|
|
18
|
+
tags: NotRequired["capo_codeartifact.types.tag_list.TagList"]
|
|
19
|
+
"""<p>One or more tag key-value pairs for the domain.</p>"""
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# --- restJson1 ser/de ---
|
|
23
|
+
def serialize_json(value: CreateDomainRequest) -> dict:
|
|
24
|
+
out: dict = {}
|
|
25
|
+
if "encryption_key" in value:
|
|
26
|
+
out["encryptionKey"] = value["encryption_key"]
|
|
27
|
+
if "tags" in value:
|
|
28
|
+
import capo_codeartifact.types.tag_list
|
|
29
|
+
|
|
30
|
+
out["tags"] = capo_codeartifact.types.tag_list.serialize_json(value["tags"])
|
|
31
|
+
return out
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
def deserialize_json(data: dict) -> CreateDomainRequest:
|
|
35
|
+
out: CreateDomainRequest = {} # type: ignore[typeddict-item]
|
|
36
|
+
if data.get("encryptionKey") is not None:
|
|
37
|
+
out["encryption_key"] = data["encryptionKey"]
|
|
38
|
+
if data.get("tags") is not None:
|
|
39
|
+
import capo_codeartifact.types.tag_list
|
|
40
|
+
|
|
41
|
+
out["tags"] = capo_codeartifact.types.tag_list.deserialize_json(data["tags"])
|
|
42
|
+
return out
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeartifact#CreateDomainResult``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import NotRequired, TypedDict
|
|
6
|
+
|
|
7
|
+
if TYPE_CHECKING:
|
|
8
|
+
import capo_codeartifact.types.domain_description
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class CreateDomainResult(TypedDict, closed=True):
|
|
12
|
+
domain: NotRequired["capo_codeartifact.types.domain_description.DomainDescription"]
|
|
13
|
+
"""<p> Contains information about the created domain after processing the request. </p>"""
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
# --- restJson1 ser/de ---
|
|
17
|
+
def serialize_json(value: CreateDomainResult) -> dict:
|
|
18
|
+
out: dict = {}
|
|
19
|
+
if "domain" in value:
|
|
20
|
+
import capo_codeartifact.types.domain_description
|
|
21
|
+
|
|
22
|
+
out["domain"] = capo_codeartifact.types.domain_description.serialize_json(
|
|
23
|
+
value["domain"]
|
|
24
|
+
)
|
|
25
|
+
return out
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
def deserialize_json(data: dict) -> CreateDomainResult:
|
|
29
|
+
out: CreateDomainResult = {} # type: ignore[typeddict-item]
|
|
30
|
+
if data.get("domain") is not None:
|
|
31
|
+
import capo_codeartifact.types.domain_description
|
|
32
|
+
|
|
33
|
+
out["domain"] = capo_codeartifact.types.domain_description.deserialize_json(
|
|
34
|
+
data["domain"]
|
|
35
|
+
)
|
|
36
|
+
return out
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeartifact#CreatePackageGroupRequest``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import NotRequired, TypedDict
|
|
6
|
+
|
|
7
|
+
from capo_codeartifact.errors import DeserializationError
|
|
8
|
+
|
|
9
|
+
if TYPE_CHECKING:
|
|
10
|
+
import capo_codeartifact.types.account_id
|
|
11
|
+
import capo_codeartifact.types.description
|
|
12
|
+
import capo_codeartifact.types.domain_name
|
|
13
|
+
import capo_codeartifact.types.package_group_contact_info
|
|
14
|
+
import capo_codeartifact.types.package_group_pattern
|
|
15
|
+
import capo_codeartifact.types.tag_list
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class CreatePackageGroupRequest(TypedDict, closed=True):
|
|
19
|
+
domain: "capo_codeartifact.types.domain_name.DomainName"
|
|
20
|
+
"""<p> The name of the domain in which you want to create a package group. </p>"""
|
|
21
|
+
domain_owner: NotRequired["capo_codeartifact.types.account_id.AccountId"]
|
|
22
|
+
"""<p> The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. </p>"""
|
|
23
|
+
package_group: "capo_codeartifact.types.package_group_pattern.PackageGroupPattern"
|
|
24
|
+
"""<p>The pattern of the package group to create. The pattern is also the identifier of the package group. </p>"""
|
|
25
|
+
contact_info: NotRequired[
|
|
26
|
+
"capo_codeartifact.types.package_group_contact_info.PackageGroupContactInfo"
|
|
27
|
+
]
|
|
28
|
+
"""<p> The contact information for the created package group. </p>"""
|
|
29
|
+
description: NotRequired["capo_codeartifact.types.description.Description"]
|
|
30
|
+
"""<p> A description of the package group. </p>"""
|
|
31
|
+
tags: NotRequired["capo_codeartifact.types.tag_list.TagList"]
|
|
32
|
+
"""<p>One or more tag key-value pairs for the package group.</p>"""
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
# --- restJson1 ser/de ---
|
|
36
|
+
def serialize_json(value: CreatePackageGroupRequest) -> dict:
|
|
37
|
+
out: dict = {}
|
|
38
|
+
out["packageGroup"] = value["package_group"]
|
|
39
|
+
if "contact_info" in value:
|
|
40
|
+
out["contactInfo"] = value["contact_info"]
|
|
41
|
+
if "description" in value:
|
|
42
|
+
out["description"] = value["description"]
|
|
43
|
+
if "tags" in value:
|
|
44
|
+
import capo_codeartifact.types.tag_list
|
|
45
|
+
|
|
46
|
+
out["tags"] = capo_codeartifact.types.tag_list.serialize_json(value["tags"])
|
|
47
|
+
return out
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
def deserialize_json(data: dict) -> CreatePackageGroupRequest:
|
|
51
|
+
out: CreatePackageGroupRequest = {} # type: ignore[typeddict-item]
|
|
52
|
+
if data.get("packageGroup") is not None:
|
|
53
|
+
out["package_group"] = data["packageGroup"]
|
|
54
|
+
else:
|
|
55
|
+
raise DeserializationError("CreatePackageGroupRequest.package_group required")
|
|
56
|
+
if data.get("contactInfo") is not None:
|
|
57
|
+
out["contact_info"] = data["contactInfo"]
|
|
58
|
+
if data.get("description") is not None:
|
|
59
|
+
out["description"] = data["description"]
|
|
60
|
+
if data.get("tags") is not None:
|
|
61
|
+
import capo_codeartifact.types.tag_list
|
|
62
|
+
|
|
63
|
+
out["tags"] = capo_codeartifact.types.tag_list.deserialize_json(data["tags"])
|
|
64
|
+
return out
|