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,23 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeartifact#PackageFormat``."""
|
|
2
|
+
|
|
3
|
+
from typing import Literal, TypeAlias, cast
|
|
4
|
+
|
|
5
|
+
PackageFormat: TypeAlias = Literal[
|
|
6
|
+
"npm",
|
|
7
|
+
"pypi",
|
|
8
|
+
"maven",
|
|
9
|
+
"nuget",
|
|
10
|
+
"generic",
|
|
11
|
+
"ruby",
|
|
12
|
+
"swift",
|
|
13
|
+
"cargo",
|
|
14
|
+
]
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# --- restJson1 ser/de ---
|
|
18
|
+
def serialize_json(value: PackageFormat) -> str:
|
|
19
|
+
return value
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
def deserialize_json(data: str) -> PackageFormat:
|
|
23
|
+
return cast(PackageFormat, data)
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeartifact#PackageGroupAllowedRepository``."""
|
|
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_group_origin_restriction_type
|
|
9
|
+
import capo_codeartifact.types.repository_name
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class PackageGroupAllowedRepository(TypedDict, closed=True):
|
|
13
|
+
repository_name: NotRequired[
|
|
14
|
+
"capo_codeartifact.types.repository_name.RepositoryName"
|
|
15
|
+
]
|
|
16
|
+
"""<p> The name of the allowed repository. </p>"""
|
|
17
|
+
origin_restriction_type: NotRequired[
|
|
18
|
+
"capo_codeartifact.types.package_group_origin_restriction_type.PackageGroupOriginRestrictionType"
|
|
19
|
+
]
|
|
20
|
+
"""<p>The origin configuration restriction type of the allowed repository.</p>"""
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
# --- restJson1 ser/de ---
|
|
24
|
+
def serialize_json(value: PackageGroupAllowedRepository) -> dict:
|
|
25
|
+
out: dict = {}
|
|
26
|
+
if "repository_name" in value:
|
|
27
|
+
out["repositoryName"] = value["repository_name"]
|
|
28
|
+
if "origin_restriction_type" in value:
|
|
29
|
+
import capo_codeartifact.types.package_group_origin_restriction_type
|
|
30
|
+
|
|
31
|
+
out["originRestrictionType"] = (
|
|
32
|
+
capo_codeartifact.types.package_group_origin_restriction_type.serialize_json(
|
|
33
|
+
value["origin_restriction_type"]
|
|
34
|
+
)
|
|
35
|
+
)
|
|
36
|
+
return out
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
def deserialize_json(data: dict) -> PackageGroupAllowedRepository:
|
|
40
|
+
out: PackageGroupAllowedRepository = {} # type: ignore[typeddict-item]
|
|
41
|
+
if data.get("repositoryName") is not None:
|
|
42
|
+
out["repository_name"] = data["repositoryName"]
|
|
43
|
+
if data.get("originRestrictionType") is not None:
|
|
44
|
+
import capo_codeartifact.types.package_group_origin_restriction_type
|
|
45
|
+
|
|
46
|
+
out["origin_restriction_type"] = (
|
|
47
|
+
capo_codeartifact.types.package_group_origin_restriction_type.deserialize_json(
|
|
48
|
+
data["originRestrictionType"]
|
|
49
|
+
)
|
|
50
|
+
)
|
|
51
|
+
return out
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeartifact#PackageGroupAllowedRepositoryList``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING, TypeAlias
|
|
4
|
+
|
|
5
|
+
if TYPE_CHECKING:
|
|
6
|
+
import capo_codeartifact.types.package_group_allowed_repository
|
|
7
|
+
|
|
8
|
+
PackageGroupAllowedRepositoryList: TypeAlias = list[
|
|
9
|
+
"capo_codeartifact.types.package_group_allowed_repository.PackageGroupAllowedRepository"
|
|
10
|
+
]
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
# --- restJson1 ser/de ---
|
|
14
|
+
def serialize_json(value: PackageGroupAllowedRepositoryList) -> list:
|
|
15
|
+
import capo_codeartifact.types.package_group_allowed_repository
|
|
16
|
+
|
|
17
|
+
out: list = []
|
|
18
|
+
for item in value:
|
|
19
|
+
out.append(
|
|
20
|
+
capo_codeartifact.types.package_group_allowed_repository.serialize_json(
|
|
21
|
+
item
|
|
22
|
+
)
|
|
23
|
+
)
|
|
24
|
+
return out
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
def deserialize_json(data: list) -> PackageGroupAllowedRepositoryList:
|
|
28
|
+
import capo_codeartifact.types.package_group_allowed_repository
|
|
29
|
+
|
|
30
|
+
out: PackageGroupAllowedRepositoryList = []
|
|
31
|
+
for item in data:
|
|
32
|
+
if item is None:
|
|
33
|
+
continue
|
|
34
|
+
out.append(
|
|
35
|
+
capo_codeartifact.types.package_group_allowed_repository.deserialize_json(
|
|
36
|
+
item
|
|
37
|
+
)
|
|
38
|
+
)
|
|
39
|
+
return out
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeartifact#PackageGroupAllowedRepositoryUpdate``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING, TypeAlias
|
|
4
|
+
|
|
5
|
+
if TYPE_CHECKING:
|
|
6
|
+
import capo_codeartifact.types.package_group_allowed_repository_update_type
|
|
7
|
+
import capo_codeartifact.types.repository_name_list
|
|
8
|
+
|
|
9
|
+
PackageGroupAllowedRepositoryUpdate: TypeAlias = dict[
|
|
10
|
+
"capo_codeartifact.types.package_group_allowed_repository_update_type.PackageGroupAllowedRepositoryUpdateType",
|
|
11
|
+
"capo_codeartifact.types.repository_name_list.RepositoryNameList",
|
|
12
|
+
]
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
# --- restJson1 ser/de ---
|
|
16
|
+
def serialize_json(input_to_serialize: PackageGroupAllowedRepositoryUpdate) -> dict:
|
|
17
|
+
out: dict = {}
|
|
18
|
+
for key, value in input_to_serialize.items():
|
|
19
|
+
import capo_codeartifact.types.package_group_allowed_repository_update_type
|
|
20
|
+
import capo_codeartifact.types.repository_name_list
|
|
21
|
+
|
|
22
|
+
out[
|
|
23
|
+
capo_codeartifact.types.package_group_allowed_repository_update_type.serialize_json(
|
|
24
|
+
key
|
|
25
|
+
)
|
|
26
|
+
] = capo_codeartifact.types.repository_name_list.serialize_json(value)
|
|
27
|
+
return out
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
def deserialize_json(data: dict) -> PackageGroupAllowedRepositoryUpdate:
|
|
31
|
+
out: PackageGroupAllowedRepositoryUpdate = {}
|
|
32
|
+
for key, value in data.items():
|
|
33
|
+
import capo_codeartifact.types.package_group_allowed_repository_update_type
|
|
34
|
+
|
|
35
|
+
if value is None:
|
|
36
|
+
continue
|
|
37
|
+
import capo_codeartifact.types.repository_name_list
|
|
38
|
+
|
|
39
|
+
out[
|
|
40
|
+
capo_codeartifact.types.package_group_allowed_repository_update_type.deserialize_json(
|
|
41
|
+
key
|
|
42
|
+
)
|
|
43
|
+
] = capo_codeartifact.types.repository_name_list.deserialize_json(value)
|
|
44
|
+
return out
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeartifact#PackageGroupAllowedRepositoryUpdateType``."""
|
|
2
|
+
|
|
3
|
+
from typing import Literal, TypeAlias, cast
|
|
4
|
+
|
|
5
|
+
PackageGroupAllowedRepositoryUpdateType: TypeAlias = Literal[
|
|
6
|
+
"ADDED",
|
|
7
|
+
"REMOVED",
|
|
8
|
+
]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
# --- restJson1 ser/de ---
|
|
12
|
+
def serialize_json(value: PackageGroupAllowedRepositoryUpdateType) -> str:
|
|
13
|
+
return value
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def deserialize_json(data: str) -> PackageGroupAllowedRepositoryUpdateType:
|
|
17
|
+
return cast(PackageGroupAllowedRepositoryUpdateType, data)
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeartifact#PackageGroupAllowedRepositoryUpdates``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING, TypeAlias
|
|
4
|
+
|
|
5
|
+
if TYPE_CHECKING:
|
|
6
|
+
import capo_codeartifact.types.package_group_allowed_repository_update
|
|
7
|
+
import capo_codeartifact.types.package_group_origin_restriction_type
|
|
8
|
+
|
|
9
|
+
PackageGroupAllowedRepositoryUpdates: TypeAlias = dict[
|
|
10
|
+
"capo_codeartifact.types.package_group_origin_restriction_type.PackageGroupOriginRestrictionType",
|
|
11
|
+
"capo_codeartifact.types.package_group_allowed_repository_update.PackageGroupAllowedRepositoryUpdate",
|
|
12
|
+
]
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
# --- restJson1 ser/de ---
|
|
16
|
+
def serialize_json(input_to_serialize: PackageGroupAllowedRepositoryUpdates) -> dict:
|
|
17
|
+
out: dict = {}
|
|
18
|
+
for key, value in input_to_serialize.items():
|
|
19
|
+
import capo_codeartifact.types.package_group_allowed_repository_update
|
|
20
|
+
import capo_codeartifact.types.package_group_origin_restriction_type
|
|
21
|
+
|
|
22
|
+
out[
|
|
23
|
+
capo_codeartifact.types.package_group_origin_restriction_type.serialize_json(
|
|
24
|
+
key
|
|
25
|
+
)
|
|
26
|
+
] = capo_codeartifact.types.package_group_allowed_repository_update.serialize_json(
|
|
27
|
+
value
|
|
28
|
+
)
|
|
29
|
+
return out
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
def deserialize_json(data: dict) -> PackageGroupAllowedRepositoryUpdates:
|
|
33
|
+
out: PackageGroupAllowedRepositoryUpdates = {}
|
|
34
|
+
for key, value in data.items():
|
|
35
|
+
import capo_codeartifact.types.package_group_origin_restriction_type
|
|
36
|
+
|
|
37
|
+
if value is None:
|
|
38
|
+
continue
|
|
39
|
+
import capo_codeartifact.types.package_group_allowed_repository_update
|
|
40
|
+
|
|
41
|
+
out[
|
|
42
|
+
capo_codeartifact.types.package_group_origin_restriction_type.deserialize_json(
|
|
43
|
+
key
|
|
44
|
+
)
|
|
45
|
+
] = capo_codeartifact.types.package_group_allowed_repository_update.deserialize_json(
|
|
46
|
+
value
|
|
47
|
+
)
|
|
48
|
+
return out
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeartifact#PackageGroupAssociationType``."""
|
|
2
|
+
|
|
3
|
+
from typing import Literal, TypeAlias, cast
|
|
4
|
+
|
|
5
|
+
PackageGroupAssociationType: TypeAlias = Literal[
|
|
6
|
+
"STRONG",
|
|
7
|
+
"WEAK",
|
|
8
|
+
]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
# --- restJson1 ser/de ---
|
|
12
|
+
def serialize_json(value: PackageGroupAssociationType) -> str:
|
|
13
|
+
return value
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def deserialize_json(data: str) -> PackageGroupAssociationType:
|
|
17
|
+
return cast(PackageGroupAssociationType, data)
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeartifact#PackageGroupDescription``."""
|
|
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.arn
|
|
10
|
+
import capo_codeartifact.types.description
|
|
11
|
+
import capo_codeartifact.types.domain_name
|
|
12
|
+
import capo_codeartifact.types.package_group_contact_info
|
|
13
|
+
import capo_codeartifact.types.package_group_origin_configuration
|
|
14
|
+
import capo_codeartifact.types.package_group_pattern
|
|
15
|
+
import capo_codeartifact.types.package_group_reference
|
|
16
|
+
import capo_codeartifact.types.timestamp
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class PackageGroupDescription(TypedDict, closed=True):
|
|
20
|
+
arn: NotRequired["capo_codeartifact.types.arn.Arn"]
|
|
21
|
+
"""<p> The ARN of the package group. </p>"""
|
|
22
|
+
pattern: NotRequired[
|
|
23
|
+
"capo_codeartifact.types.package_group_pattern.PackageGroupPattern"
|
|
24
|
+
]
|
|
25
|
+
"""<p> The pattern of the package group. The pattern determines which packages are associated with the package group. </p>"""
|
|
26
|
+
domain_name: NotRequired["capo_codeartifact.types.domain_name.DomainName"]
|
|
27
|
+
"""<p> The name of the domain that contains the package group. </p>"""
|
|
28
|
+
domain_owner: NotRequired["capo_codeartifact.types.account_id.AccountId"]
|
|
29
|
+
"""<p> The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. </p>"""
|
|
30
|
+
created_time: NotRequired["capo_codeartifact.types.timestamp.Timestamp"]
|
|
31
|
+
"""<p>A timestamp that represents the date and time the package group was created.</p>"""
|
|
32
|
+
contact_info: NotRequired[
|
|
33
|
+
"capo_codeartifact.types.package_group_contact_info.PackageGroupContactInfo"
|
|
34
|
+
]
|
|
35
|
+
"""<p> The contact information of the package group. </p>"""
|
|
36
|
+
description: NotRequired["capo_codeartifact.types.description.Description"]
|
|
37
|
+
"""<p> The description of the package group. </p>"""
|
|
38
|
+
origin_configuration: NotRequired[
|
|
39
|
+
"capo_codeartifact.types.package_group_origin_configuration.PackageGroupOriginConfiguration"
|
|
40
|
+
]
|
|
41
|
+
"""<p>The package group origin configuration that determines how package versions can enter repositories.</p>"""
|
|
42
|
+
parent: NotRequired[
|
|
43
|
+
"capo_codeartifact.types.package_group_reference.PackageGroupReference"
|
|
44
|
+
]
|
|
45
|
+
"""<p> The direct parent package group of the package group. </p>"""
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
# --- restJson1 ser/de ---
|
|
49
|
+
def serialize_json(value: PackageGroupDescription) -> dict:
|
|
50
|
+
out: dict = {}
|
|
51
|
+
if "arn" in value:
|
|
52
|
+
out["arn"] = value["arn"]
|
|
53
|
+
if "pattern" in value:
|
|
54
|
+
out["pattern"] = value["pattern"]
|
|
55
|
+
if "domain_name" in value:
|
|
56
|
+
out["domainName"] = value["domain_name"]
|
|
57
|
+
if "domain_owner" in value:
|
|
58
|
+
out["domainOwner"] = value["domain_owner"]
|
|
59
|
+
if "created_time" in value:
|
|
60
|
+
import capo_codeartifact.types.timestamp
|
|
61
|
+
|
|
62
|
+
out["createdTime"] = capo_codeartifact.types.timestamp.serialize_json(
|
|
63
|
+
value["created_time"]
|
|
64
|
+
)
|
|
65
|
+
if "contact_info" in value:
|
|
66
|
+
out["contactInfo"] = value["contact_info"]
|
|
67
|
+
if "description" in value:
|
|
68
|
+
out["description"] = value["description"]
|
|
69
|
+
if "origin_configuration" in value:
|
|
70
|
+
import capo_codeartifact.types.package_group_origin_configuration
|
|
71
|
+
|
|
72
|
+
out["originConfiguration"] = (
|
|
73
|
+
capo_codeartifact.types.package_group_origin_configuration.serialize_json(
|
|
74
|
+
value["origin_configuration"]
|
|
75
|
+
)
|
|
76
|
+
)
|
|
77
|
+
if "parent" in value:
|
|
78
|
+
import capo_codeartifact.types.package_group_reference
|
|
79
|
+
|
|
80
|
+
out["parent"] = capo_codeartifact.types.package_group_reference.serialize_json(
|
|
81
|
+
value["parent"]
|
|
82
|
+
)
|
|
83
|
+
return out
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
def deserialize_json(data: dict) -> PackageGroupDescription:
|
|
87
|
+
out: PackageGroupDescription = {} # type: ignore[typeddict-item]
|
|
88
|
+
if data.get("arn") is not None:
|
|
89
|
+
out["arn"] = data["arn"]
|
|
90
|
+
if data.get("pattern") is not None:
|
|
91
|
+
out["pattern"] = data["pattern"]
|
|
92
|
+
if data.get("domainName") is not None:
|
|
93
|
+
out["domain_name"] = data["domainName"]
|
|
94
|
+
if data.get("domainOwner") is not None:
|
|
95
|
+
out["domain_owner"] = data["domainOwner"]
|
|
96
|
+
if data.get("createdTime") is not None:
|
|
97
|
+
import capo_codeartifact.types.timestamp
|
|
98
|
+
|
|
99
|
+
out["created_time"] = capo_codeartifact.types.timestamp.deserialize_json(
|
|
100
|
+
data["createdTime"]
|
|
101
|
+
)
|
|
102
|
+
if data.get("contactInfo") is not None:
|
|
103
|
+
out["contact_info"] = data["contactInfo"]
|
|
104
|
+
if data.get("description") is not None:
|
|
105
|
+
out["description"] = data["description"]
|
|
106
|
+
if data.get("originConfiguration") is not None:
|
|
107
|
+
import capo_codeartifact.types.package_group_origin_configuration
|
|
108
|
+
|
|
109
|
+
out["origin_configuration"] = (
|
|
110
|
+
capo_codeartifact.types.package_group_origin_configuration.deserialize_json(
|
|
111
|
+
data["originConfiguration"]
|
|
112
|
+
)
|
|
113
|
+
)
|
|
114
|
+
if data.get("parent") is not None:
|
|
115
|
+
import capo_codeartifact.types.package_group_reference
|
|
116
|
+
|
|
117
|
+
out["parent"] = (
|
|
118
|
+
capo_codeartifact.types.package_group_reference.deserialize_json(
|
|
119
|
+
data["parent"]
|
|
120
|
+
)
|
|
121
|
+
)
|
|
122
|
+
return out
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeartifact#PackageGroupOriginConfiguration``."""
|
|
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_group_origin_restrictions
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class PackageGroupOriginConfiguration(TypedDict, closed=True):
|
|
12
|
+
restrictions: NotRequired[
|
|
13
|
+
"capo_codeartifact.types.package_group_origin_restrictions.PackageGroupOriginRestrictions"
|
|
14
|
+
]
|
|
15
|
+
"""<p>The origin configuration settings that determine how package versions can enter repositories.</p>"""
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
# --- restJson1 ser/de ---
|
|
19
|
+
def serialize_json(value: PackageGroupOriginConfiguration) -> dict:
|
|
20
|
+
out: dict = {}
|
|
21
|
+
if "restrictions" in value:
|
|
22
|
+
import capo_codeartifact.types.package_group_origin_restrictions
|
|
23
|
+
|
|
24
|
+
out["restrictions"] = (
|
|
25
|
+
capo_codeartifact.types.package_group_origin_restrictions.serialize_json(
|
|
26
|
+
value["restrictions"]
|
|
27
|
+
)
|
|
28
|
+
)
|
|
29
|
+
return out
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
def deserialize_json(data: dict) -> PackageGroupOriginConfiguration:
|
|
33
|
+
out: PackageGroupOriginConfiguration = {} # type: ignore[typeddict-item]
|
|
34
|
+
if data.get("restrictions") is not None:
|
|
35
|
+
import capo_codeartifact.types.package_group_origin_restrictions
|
|
36
|
+
|
|
37
|
+
out["restrictions"] = (
|
|
38
|
+
capo_codeartifact.types.package_group_origin_restrictions.deserialize_json(
|
|
39
|
+
data["restrictions"]
|
|
40
|
+
)
|
|
41
|
+
)
|
|
42
|
+
return out
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeartifact#PackageGroupOriginRestriction``."""
|
|
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.long_optional
|
|
9
|
+
import capo_codeartifact.types.package_group_origin_restriction_mode
|
|
10
|
+
import capo_codeartifact.types.package_group_reference
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class PackageGroupOriginRestriction(TypedDict, closed=True):
|
|
14
|
+
mode: NotRequired[
|
|
15
|
+
"capo_codeartifact.types.package_group_origin_restriction_mode.PackageGroupOriginRestrictionMode"
|
|
16
|
+
]
|
|
17
|
+
"""<p>The package group origin restriction setting. If the value of <code>mode</code> is <code>ALLOW</code>, <code>ALLOW_SPECIFIC_REPOSITORIES</code>, or <code>BLOCK</code>, then the value of <code>effectiveMode</code> is the same. Otherwise, when the value is <code>INHERIT</code>, then the value of <code>effectiveMode</code> is the value of <code>mode</code> of the first parent group which does not have a value of <code>INHERIT</code>.</p>"""
|
|
18
|
+
effective_mode: NotRequired[
|
|
19
|
+
"capo_codeartifact.types.package_group_origin_restriction_mode.PackageGroupOriginRestrictionMode"
|
|
20
|
+
]
|
|
21
|
+
"""<p>The effective package group origin restriction setting. If the value of <code>mode</code> is <code>ALLOW</code>, <code>ALLOW_SPECIFIC_REPOSITORIES</code>, or <code>BLOCK</code>, then the value of <code>effectiveMode</code> is the same. Otherwise, when the value of <code>mode</code> is <code>INHERIT</code>, then the value of <code>effectiveMode</code> is the value of <code>mode</code> of the first parent group which does not have a value of <code>INHERIT</code>.</p>"""
|
|
22
|
+
inherited_from: NotRequired[
|
|
23
|
+
"capo_codeartifact.types.package_group_reference.PackageGroupReference"
|
|
24
|
+
]
|
|
25
|
+
"""<p>The parent package group that the package group origin restrictions are inherited from.</p>"""
|
|
26
|
+
repositories_count: NotRequired[
|
|
27
|
+
"capo_codeartifact.types.long_optional.LongOptional"
|
|
28
|
+
]
|
|
29
|
+
"""<p>The number of repositories in the allowed repository list.</p>"""
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
# --- restJson1 ser/de ---
|
|
33
|
+
def serialize_json(value: PackageGroupOriginRestriction) -> dict:
|
|
34
|
+
out: dict = {}
|
|
35
|
+
if "mode" in value:
|
|
36
|
+
import capo_codeartifact.types.package_group_origin_restriction_mode
|
|
37
|
+
|
|
38
|
+
out["mode"] = (
|
|
39
|
+
capo_codeartifact.types.package_group_origin_restriction_mode.serialize_json(
|
|
40
|
+
value["mode"]
|
|
41
|
+
)
|
|
42
|
+
)
|
|
43
|
+
if "effective_mode" in value:
|
|
44
|
+
import capo_codeartifact.types.package_group_origin_restriction_mode
|
|
45
|
+
|
|
46
|
+
out["effectiveMode"] = (
|
|
47
|
+
capo_codeartifact.types.package_group_origin_restriction_mode.serialize_json(
|
|
48
|
+
value["effective_mode"]
|
|
49
|
+
)
|
|
50
|
+
)
|
|
51
|
+
if "inherited_from" in value:
|
|
52
|
+
import capo_codeartifact.types.package_group_reference
|
|
53
|
+
|
|
54
|
+
out["inheritedFrom"] = (
|
|
55
|
+
capo_codeartifact.types.package_group_reference.serialize_json(
|
|
56
|
+
value["inherited_from"]
|
|
57
|
+
)
|
|
58
|
+
)
|
|
59
|
+
if "repositories_count" in value:
|
|
60
|
+
out["repositoriesCount"] = value["repositories_count"]
|
|
61
|
+
return out
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
def deserialize_json(data: dict) -> PackageGroupOriginRestriction:
|
|
65
|
+
out: PackageGroupOriginRestriction = {} # type: ignore[typeddict-item]
|
|
66
|
+
if data.get("mode") is not None:
|
|
67
|
+
import capo_codeartifact.types.package_group_origin_restriction_mode
|
|
68
|
+
|
|
69
|
+
out["mode"] = (
|
|
70
|
+
capo_codeartifact.types.package_group_origin_restriction_mode.deserialize_json(
|
|
71
|
+
data["mode"]
|
|
72
|
+
)
|
|
73
|
+
)
|
|
74
|
+
if data.get("effectiveMode") is not None:
|
|
75
|
+
import capo_codeartifact.types.package_group_origin_restriction_mode
|
|
76
|
+
|
|
77
|
+
out["effective_mode"] = (
|
|
78
|
+
capo_codeartifact.types.package_group_origin_restriction_mode.deserialize_json(
|
|
79
|
+
data["effectiveMode"]
|
|
80
|
+
)
|
|
81
|
+
)
|
|
82
|
+
if data.get("inheritedFrom") is not None:
|
|
83
|
+
import capo_codeartifact.types.package_group_reference
|
|
84
|
+
|
|
85
|
+
out["inherited_from"] = (
|
|
86
|
+
capo_codeartifact.types.package_group_reference.deserialize_json(
|
|
87
|
+
data["inheritedFrom"]
|
|
88
|
+
)
|
|
89
|
+
)
|
|
90
|
+
if data.get("repositoriesCount") is not None:
|
|
91
|
+
out["repositories_count"] = data["repositoriesCount"]
|
|
92
|
+
return out
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeartifact#PackageGroupOriginRestrictionMode``."""
|
|
2
|
+
|
|
3
|
+
from typing import Literal, TypeAlias, cast
|
|
4
|
+
|
|
5
|
+
PackageGroupOriginRestrictionMode: TypeAlias = Literal[
|
|
6
|
+
"ALLOW",
|
|
7
|
+
"ALLOW_SPECIFIC_REPOSITORIES",
|
|
8
|
+
"BLOCK",
|
|
9
|
+
"INHERIT",
|
|
10
|
+
]
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
# --- restJson1 ser/de ---
|
|
14
|
+
def serialize_json(value: PackageGroupOriginRestrictionMode) -> str:
|
|
15
|
+
return value
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
def deserialize_json(data: str) -> PackageGroupOriginRestrictionMode:
|
|
19
|
+
return cast(PackageGroupOriginRestrictionMode, data)
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeartifact#PackageGroupOriginRestrictionType``."""
|
|
2
|
+
|
|
3
|
+
from typing import Literal, TypeAlias, cast
|
|
4
|
+
|
|
5
|
+
PackageGroupOriginRestrictionType: TypeAlias = Literal[
|
|
6
|
+
"EXTERNAL_UPSTREAM",
|
|
7
|
+
"INTERNAL_UPSTREAM",
|
|
8
|
+
"PUBLISH",
|
|
9
|
+
]
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
# --- restJson1 ser/de ---
|
|
13
|
+
def serialize_json(value: PackageGroupOriginRestrictionType) -> str:
|
|
14
|
+
return value
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
def deserialize_json(data: str) -> PackageGroupOriginRestrictionType:
|
|
18
|
+
return cast(PackageGroupOriginRestrictionType, data)
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeartifact#PackageGroupOriginRestrictions``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING, TypeAlias
|
|
4
|
+
|
|
5
|
+
if TYPE_CHECKING:
|
|
6
|
+
import capo_codeartifact.types.package_group_origin_restriction
|
|
7
|
+
import capo_codeartifact.types.package_group_origin_restriction_type
|
|
8
|
+
|
|
9
|
+
PackageGroupOriginRestrictions: TypeAlias = dict[
|
|
10
|
+
"capo_codeartifact.types.package_group_origin_restriction_type.PackageGroupOriginRestrictionType",
|
|
11
|
+
"capo_codeartifact.types.package_group_origin_restriction.PackageGroupOriginRestriction",
|
|
12
|
+
]
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
# --- restJson1 ser/de ---
|
|
16
|
+
def serialize_json(input_to_serialize: PackageGroupOriginRestrictions) -> dict:
|
|
17
|
+
out: dict = {}
|
|
18
|
+
for key, value in input_to_serialize.items():
|
|
19
|
+
import capo_codeartifact.types.package_group_origin_restriction
|
|
20
|
+
import capo_codeartifact.types.package_group_origin_restriction_type
|
|
21
|
+
|
|
22
|
+
out[
|
|
23
|
+
capo_codeartifact.types.package_group_origin_restriction_type.serialize_json(
|
|
24
|
+
key
|
|
25
|
+
)
|
|
26
|
+
] = capo_codeartifact.types.package_group_origin_restriction.serialize_json(
|
|
27
|
+
value
|
|
28
|
+
)
|
|
29
|
+
return out
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
def deserialize_json(data: dict) -> PackageGroupOriginRestrictions:
|
|
33
|
+
out: PackageGroupOriginRestrictions = {}
|
|
34
|
+
for key, value in data.items():
|
|
35
|
+
import capo_codeartifact.types.package_group_origin_restriction_type
|
|
36
|
+
|
|
37
|
+
if value is None:
|
|
38
|
+
continue
|
|
39
|
+
import capo_codeartifact.types.package_group_origin_restriction
|
|
40
|
+
|
|
41
|
+
out[
|
|
42
|
+
capo_codeartifact.types.package_group_origin_restriction_type.deserialize_json(
|
|
43
|
+
key
|
|
44
|
+
)
|
|
45
|
+
] = capo_codeartifact.types.package_group_origin_restriction.deserialize_json(
|
|
46
|
+
value
|
|
47
|
+
)
|
|
48
|
+
return out
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeartifact#PackageGroupReference``."""
|
|
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.package_group_pattern
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class PackageGroupReference(TypedDict, closed=True):
|
|
13
|
+
arn: NotRequired["capo_codeartifact.types.arn.Arn"]
|
|
14
|
+
"""<p> The ARN of the package group. </p>"""
|
|
15
|
+
pattern: NotRequired[
|
|
16
|
+
"capo_codeartifact.types.package_group_pattern.PackageGroupPattern"
|
|
17
|
+
]
|
|
18
|
+
"""<p> The pattern of the package group. The pattern determines which packages are associated with the package group, and is also the identifier of the package group. </p>"""
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
# --- restJson1 ser/de ---
|
|
22
|
+
def serialize_json(value: PackageGroupReference) -> dict:
|
|
23
|
+
out: dict = {}
|
|
24
|
+
if "arn" in value:
|
|
25
|
+
out["arn"] = value["arn"]
|
|
26
|
+
if "pattern" in value:
|
|
27
|
+
out["pattern"] = value["pattern"]
|
|
28
|
+
return out
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
def deserialize_json(data: dict) -> PackageGroupReference:
|
|
32
|
+
out: PackageGroupReference = {} # type: ignore[typeddict-item]
|
|
33
|
+
if data.get("arn") is not None:
|
|
34
|
+
out["arn"] = data["arn"]
|
|
35
|
+
if data.get("pattern") is not None:
|
|
36
|
+
out["pattern"] = data["pattern"]
|
|
37
|
+
return out
|