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,53 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeartifact#ListPackagesRequest``."""
|
|
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.allow_publish
|
|
10
|
+
import capo_codeartifact.types.allow_upstream
|
|
11
|
+
import capo_codeartifact.types.domain_name
|
|
12
|
+
import capo_codeartifact.types.list_packages_max_results
|
|
13
|
+
import capo_codeartifact.types.package_format
|
|
14
|
+
import capo_codeartifact.types.package_name
|
|
15
|
+
import capo_codeartifact.types.package_namespace
|
|
16
|
+
import capo_codeartifact.types.pagination_token
|
|
17
|
+
import capo_codeartifact.types.repository_name
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class ListPackagesRequest(TypedDict, closed=True):
|
|
21
|
+
domain: "capo_codeartifact.types.domain_name.DomainName"
|
|
22
|
+
"""<p> The name of the domain that contains the repository that contains the requested packages. </p>"""
|
|
23
|
+
domain_owner: NotRequired["capo_codeartifact.types.account_id.AccountId"]
|
|
24
|
+
"""<p> The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. </p>"""
|
|
25
|
+
repository: "capo_codeartifact.types.repository_name.RepositoryName"
|
|
26
|
+
"""<p> The name of the repository that contains the requested packages. </p>"""
|
|
27
|
+
format: NotRequired["capo_codeartifact.types.package_format.PackageFormat"]
|
|
28
|
+
"""<p>The format used to filter requested packages. Only packages from the provided format will be returned.</p>"""
|
|
29
|
+
namespace: NotRequired["capo_codeartifact.types.package_namespace.PackageNamespace"]
|
|
30
|
+
"""<p>The namespace prefix used to filter requested packages. Only packages with a namespace that starts with the provided string value are returned. Note that although this option is called <code>--namespace</code> and not <code>--namespace-prefix</code>, it has prefix-matching behavior.</p> <p>Each package format uses namespace as follows:</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>"""
|
|
31
|
+
package_prefix: NotRequired["capo_codeartifact.types.package_name.PackageName"]
|
|
32
|
+
"""<p> A prefix used to filter requested packages. Only packages with names that start with <code>packagePrefix</code> are returned. </p>"""
|
|
33
|
+
max_results: NotRequired[
|
|
34
|
+
"capo_codeartifact.types.list_packages_max_results.ListPackagesMaxResults"
|
|
35
|
+
]
|
|
36
|
+
"""<p> The maximum number of results to return per page. </p>"""
|
|
37
|
+
next_token: NotRequired["capo_codeartifact.types.pagination_token.PaginationToken"]
|
|
38
|
+
"""<p> The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. </p>"""
|
|
39
|
+
publish: NotRequired["capo_codeartifact.types.allow_publish.AllowPublish"]
|
|
40
|
+
r"""<p>The value of the <code>Publish</code> package origin control restriction used to filter requested packages. Only packages with the provided restriction are returned. For more information, see <a href=\"https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_PackageOriginRestrictions.html\">PackageOriginRestrictions</a>.</p>"""
|
|
41
|
+
upstream: NotRequired["capo_codeartifact.types.allow_upstream.AllowUpstream"]
|
|
42
|
+
r"""<p>The value of the <code>Upstream</code> package origin control restriction used to filter requested packages. Only packages with the provided restriction are returned. For more information, see <a href=\"https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_PackageOriginRestrictions.html\">PackageOriginRestrictions</a>.</p>"""
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
# --- restJson1 ser/de ---
|
|
46
|
+
def serialize_json(value: ListPackagesRequest) -> dict:
|
|
47
|
+
out: dict = {}
|
|
48
|
+
return out
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
def deserialize_json(data: dict) -> ListPackagesRequest:
|
|
52
|
+
out: ListPackagesRequest = {} # type: ignore[typeddict-item]
|
|
53
|
+
return out
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeartifact#ListPackagesResult``."""
|
|
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_summary_list
|
|
9
|
+
import capo_codeartifact.types.pagination_token
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class ListPackagesResult(TypedDict, closed=True):
|
|
13
|
+
packages: NotRequired[
|
|
14
|
+
"capo_codeartifact.types.package_summary_list.PackageSummaryList"
|
|
15
|
+
]
|
|
16
|
+
r"""<p> The list of returned <a href=\"https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_PackageSummary.html\">PackageSummary</a> objects. </p>"""
|
|
17
|
+
next_token: NotRequired["capo_codeartifact.types.pagination_token.PaginationToken"]
|
|
18
|
+
"""<p> If there are additional results, this is the token for the next set of results. </p>"""
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
# --- restJson1 ser/de ---
|
|
22
|
+
def serialize_json(value: ListPackagesResult) -> dict:
|
|
23
|
+
out: dict = {}
|
|
24
|
+
if "packages" in value:
|
|
25
|
+
import capo_codeartifact.types.package_summary_list
|
|
26
|
+
|
|
27
|
+
out["packages"] = capo_codeartifact.types.package_summary_list.serialize_json(
|
|
28
|
+
value["packages"]
|
|
29
|
+
)
|
|
30
|
+
if "next_token" in value:
|
|
31
|
+
out["nextToken"] = value["next_token"]
|
|
32
|
+
return out
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
def deserialize_json(data: dict) -> ListPackagesResult:
|
|
36
|
+
out: ListPackagesResult = {} # type: ignore[typeddict-item]
|
|
37
|
+
if data.get("packages") is not None:
|
|
38
|
+
import capo_codeartifact.types.package_summary_list
|
|
39
|
+
|
|
40
|
+
out["packages"] = capo_codeartifact.types.package_summary_list.deserialize_json(
|
|
41
|
+
data["packages"]
|
|
42
|
+
)
|
|
43
|
+
if data.get("nextToken") is not None:
|
|
44
|
+
out["next_token"] = data["nextToken"]
|
|
45
|
+
return out
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeartifact#ListRepositoriesInDomainRequest``."""
|
|
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.list_repositories_in_domain_max_results
|
|
11
|
+
import capo_codeartifact.types.pagination_token
|
|
12
|
+
import capo_codeartifact.types.repository_name
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class ListRepositoriesInDomainRequest(TypedDict, closed=True):
|
|
16
|
+
domain: "capo_codeartifact.types.domain_name.DomainName"
|
|
17
|
+
"""<p> The name of the domain that contains the returned list of repositories. </p>"""
|
|
18
|
+
domain_owner: NotRequired["capo_codeartifact.types.account_id.AccountId"]
|
|
19
|
+
"""<p> The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. </p>"""
|
|
20
|
+
administrator_account: NotRequired["capo_codeartifact.types.account_id.AccountId"]
|
|
21
|
+
"""<p> Filter the list of repositories to only include those that are managed by the Amazon Web Services account ID. </p>"""
|
|
22
|
+
repository_prefix: NotRequired[
|
|
23
|
+
"capo_codeartifact.types.repository_name.RepositoryName"
|
|
24
|
+
]
|
|
25
|
+
"""<p> A prefix used to filter returned repositories. Only repositories with names that start with <code>repositoryPrefix</code> are returned. </p>"""
|
|
26
|
+
max_results: NotRequired[
|
|
27
|
+
"capo_codeartifact.types.list_repositories_in_domain_max_results.ListRepositoriesInDomainMaxResults"
|
|
28
|
+
]
|
|
29
|
+
"""<p> The maximum number of results to return per page. </p>"""
|
|
30
|
+
next_token: NotRequired["capo_codeartifact.types.pagination_token.PaginationToken"]
|
|
31
|
+
"""<p> The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. </p>"""
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
# --- restJson1 ser/de ---
|
|
35
|
+
def serialize_json(value: ListRepositoriesInDomainRequest) -> dict:
|
|
36
|
+
out: dict = {}
|
|
37
|
+
return out
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
def deserialize_json(data: dict) -> ListRepositoriesInDomainRequest:
|
|
41
|
+
out: ListRepositoriesInDomainRequest = {} # type: ignore[typeddict-item]
|
|
42
|
+
return out
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeartifact#ListRepositoriesInDomainResult``."""
|
|
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.pagination_token
|
|
9
|
+
import capo_codeartifact.types.repository_summary_list
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class ListRepositoriesInDomainResult(TypedDict, closed=True):
|
|
13
|
+
repositories: NotRequired[
|
|
14
|
+
"capo_codeartifact.types.repository_summary_list.RepositorySummaryList"
|
|
15
|
+
]
|
|
16
|
+
"""<p> The returned list of repositories. </p>"""
|
|
17
|
+
next_token: NotRequired["capo_codeartifact.types.pagination_token.PaginationToken"]
|
|
18
|
+
"""<p> If there are additional results, this is the token for the next set of results. </p>"""
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
# --- restJson1 ser/de ---
|
|
22
|
+
def serialize_json(value: ListRepositoriesInDomainResult) -> dict:
|
|
23
|
+
out: dict = {}
|
|
24
|
+
if "repositories" in value:
|
|
25
|
+
import capo_codeartifact.types.repository_summary_list
|
|
26
|
+
|
|
27
|
+
out["repositories"] = (
|
|
28
|
+
capo_codeartifact.types.repository_summary_list.serialize_json(
|
|
29
|
+
value["repositories"]
|
|
30
|
+
)
|
|
31
|
+
)
|
|
32
|
+
if "next_token" in value:
|
|
33
|
+
out["nextToken"] = value["next_token"]
|
|
34
|
+
return out
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
def deserialize_json(data: dict) -> ListRepositoriesInDomainResult:
|
|
38
|
+
out: ListRepositoriesInDomainResult = {} # type: ignore[typeddict-item]
|
|
39
|
+
if data.get("repositories") is not None:
|
|
40
|
+
import capo_codeartifact.types.repository_summary_list
|
|
41
|
+
|
|
42
|
+
out["repositories"] = (
|
|
43
|
+
capo_codeartifact.types.repository_summary_list.deserialize_json(
|
|
44
|
+
data["repositories"]
|
|
45
|
+
)
|
|
46
|
+
)
|
|
47
|
+
if data.get("nextToken") is not None:
|
|
48
|
+
out["next_token"] = data["nextToken"]
|
|
49
|
+
return out
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeartifact#ListRepositoriesRequest``."""
|
|
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.list_repositories_max_results
|
|
9
|
+
import capo_codeartifact.types.pagination_token
|
|
10
|
+
import capo_codeartifact.types.repository_name
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class ListRepositoriesRequest(TypedDict, closed=True):
|
|
14
|
+
repository_prefix: NotRequired[
|
|
15
|
+
"capo_codeartifact.types.repository_name.RepositoryName"
|
|
16
|
+
]
|
|
17
|
+
"""<p> A prefix used to filter returned repositories. Only repositories with names that start with <code>repositoryPrefix</code> are returned.</p>"""
|
|
18
|
+
max_results: NotRequired[
|
|
19
|
+
"capo_codeartifact.types.list_repositories_max_results.ListRepositoriesMaxResults"
|
|
20
|
+
]
|
|
21
|
+
"""<p> The maximum number of results to return per page. </p>"""
|
|
22
|
+
next_token: NotRequired["capo_codeartifact.types.pagination_token.PaginationToken"]
|
|
23
|
+
"""<p> The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. </p>"""
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
# --- restJson1 ser/de ---
|
|
27
|
+
def serialize_json(value: ListRepositoriesRequest) -> dict:
|
|
28
|
+
out: dict = {}
|
|
29
|
+
return out
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
def deserialize_json(data: dict) -> ListRepositoriesRequest:
|
|
33
|
+
out: ListRepositoriesRequest = {} # type: ignore[typeddict-item]
|
|
34
|
+
return out
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeartifact#ListRepositoriesResult``."""
|
|
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.pagination_token
|
|
9
|
+
import capo_codeartifact.types.repository_summary_list
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class ListRepositoriesResult(TypedDict, closed=True):
|
|
13
|
+
repositories: NotRequired[
|
|
14
|
+
"capo_codeartifact.types.repository_summary_list.RepositorySummaryList"
|
|
15
|
+
]
|
|
16
|
+
r"""<p> The returned list of <a href=\"https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_RepositorySummary.html\">RepositorySummary</a> objects. </p>"""
|
|
17
|
+
next_token: NotRequired["capo_codeartifact.types.pagination_token.PaginationToken"]
|
|
18
|
+
"""<p> If there are additional results, this is the token for the next set of results. </p>"""
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
# --- restJson1 ser/de ---
|
|
22
|
+
def serialize_json(value: ListRepositoriesResult) -> dict:
|
|
23
|
+
out: dict = {}
|
|
24
|
+
if "repositories" in value:
|
|
25
|
+
import capo_codeartifact.types.repository_summary_list
|
|
26
|
+
|
|
27
|
+
out["repositories"] = (
|
|
28
|
+
capo_codeartifact.types.repository_summary_list.serialize_json(
|
|
29
|
+
value["repositories"]
|
|
30
|
+
)
|
|
31
|
+
)
|
|
32
|
+
if "next_token" in value:
|
|
33
|
+
out["nextToken"] = value["next_token"]
|
|
34
|
+
return out
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
def deserialize_json(data: dict) -> ListRepositoriesResult:
|
|
38
|
+
out: ListRepositoriesResult = {} # type: ignore[typeddict-item]
|
|
39
|
+
if data.get("repositories") is not None:
|
|
40
|
+
import capo_codeartifact.types.repository_summary_list
|
|
41
|
+
|
|
42
|
+
out["repositories"] = (
|
|
43
|
+
capo_codeartifact.types.repository_summary_list.deserialize_json(
|
|
44
|
+
data["repositories"]
|
|
45
|
+
)
|
|
46
|
+
)
|
|
47
|
+
if data.get("nextToken") is not None:
|
|
48
|
+
out["next_token"] = data["nextToken"]
|
|
49
|
+
return out
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeartifact#ListSubPackageGroupsRequest``."""
|
|
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.list_package_groups_max_results
|
|
11
|
+
import capo_codeartifact.types.package_group_pattern
|
|
12
|
+
import capo_codeartifact.types.pagination_token
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class ListSubPackageGroupsRequest(TypedDict, closed=True):
|
|
16
|
+
domain: "capo_codeartifact.types.domain_name.DomainName"
|
|
17
|
+
"""<p> The name of the domain which contains the package group from which to list sub package groups. </p>"""
|
|
18
|
+
domain_owner: NotRequired["capo_codeartifact.types.account_id.AccountId"]
|
|
19
|
+
"""<p> The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. </p>"""
|
|
20
|
+
package_group: "capo_codeartifact.types.package_group_pattern.PackageGroupPattern"
|
|
21
|
+
"""<p> The pattern of the package group from which to list sub package groups. </p>"""
|
|
22
|
+
max_results: NotRequired[
|
|
23
|
+
"capo_codeartifact.types.list_package_groups_max_results.ListPackageGroupsMaxResults"
|
|
24
|
+
]
|
|
25
|
+
"""<p> The maximum number of results to return per page. </p>"""
|
|
26
|
+
next_token: NotRequired["capo_codeartifact.types.pagination_token.PaginationToken"]
|
|
27
|
+
"""<p> The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. </p>"""
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
# --- restJson1 ser/de ---
|
|
31
|
+
def serialize_json(value: ListSubPackageGroupsRequest) -> dict:
|
|
32
|
+
out: dict = {}
|
|
33
|
+
return out
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
def deserialize_json(data: dict) -> ListSubPackageGroupsRequest:
|
|
37
|
+
out: ListSubPackageGroupsRequest = {} # type: ignore[typeddict-item]
|
|
38
|
+
return out
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeartifact#ListSubPackageGroupsResult``."""
|
|
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_summary_list
|
|
9
|
+
import capo_codeartifact.types.pagination_token
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class ListSubPackageGroupsResult(TypedDict, closed=True):
|
|
13
|
+
package_groups: NotRequired[
|
|
14
|
+
"capo_codeartifact.types.package_group_summary_list.PackageGroupSummaryList"
|
|
15
|
+
]
|
|
16
|
+
"""<p> A list of sub package groups for the requested package group. </p>"""
|
|
17
|
+
next_token: NotRequired["capo_codeartifact.types.pagination_token.PaginationToken"]
|
|
18
|
+
"""<p> If there are additional results, this is the token for the next set of results. </p>"""
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
# --- restJson1 ser/de ---
|
|
22
|
+
def serialize_json(value: ListSubPackageGroupsResult) -> dict:
|
|
23
|
+
out: dict = {}
|
|
24
|
+
if "package_groups" in value:
|
|
25
|
+
import capo_codeartifact.types.package_group_summary_list
|
|
26
|
+
|
|
27
|
+
out["packageGroups"] = (
|
|
28
|
+
capo_codeartifact.types.package_group_summary_list.serialize_json(
|
|
29
|
+
value["package_groups"]
|
|
30
|
+
)
|
|
31
|
+
)
|
|
32
|
+
if "next_token" in value:
|
|
33
|
+
out["nextToken"] = value["next_token"]
|
|
34
|
+
return out
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
def deserialize_json(data: dict) -> ListSubPackageGroupsResult:
|
|
38
|
+
out: ListSubPackageGroupsResult = {} # type: ignore[typeddict-item]
|
|
39
|
+
if data.get("packageGroups") is not None:
|
|
40
|
+
import capo_codeartifact.types.package_group_summary_list
|
|
41
|
+
|
|
42
|
+
out["package_groups"] = (
|
|
43
|
+
capo_codeartifact.types.package_group_summary_list.deserialize_json(
|
|
44
|
+
data["packageGroups"]
|
|
45
|
+
)
|
|
46
|
+
)
|
|
47
|
+
if data.get("nextToken") is not None:
|
|
48
|
+
out["next_token"] = data["nextToken"]
|
|
49
|
+
return out
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeartifact#ListTagsForResourceRequest``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import TypedDict
|
|
6
|
+
|
|
7
|
+
if TYPE_CHECKING:
|
|
8
|
+
import capo_codeartifact.types.arn
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class ListTagsForResourceRequest(TypedDict, closed=True):
|
|
12
|
+
resource_arn: "capo_codeartifact.types.arn.Arn"
|
|
13
|
+
"""<p>The Amazon Resource Name (ARN) of the resource to get tags for.</p>"""
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
# --- restJson1 ser/de ---
|
|
17
|
+
def serialize_json(value: ListTagsForResourceRequest) -> dict:
|
|
18
|
+
out: dict = {}
|
|
19
|
+
return out
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
def deserialize_json(data: dict) -> ListTagsForResourceRequest:
|
|
23
|
+
out: ListTagsForResourceRequest = {} # type: ignore[typeddict-item]
|
|
24
|
+
return out
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeartifact#ListTagsForResourceResult``."""
|
|
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.tag_list
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class ListTagsForResourceResult(TypedDict, closed=True):
|
|
12
|
+
tags: NotRequired["capo_codeartifact.types.tag_list.TagList"]
|
|
13
|
+
"""<p>A list of tag key and value pairs associated with the specified resource.</p>"""
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
# --- restJson1 ser/de ---
|
|
17
|
+
def serialize_json(value: ListTagsForResourceResult) -> dict:
|
|
18
|
+
out: dict = {}
|
|
19
|
+
if "tags" in value:
|
|
20
|
+
import capo_codeartifact.types.tag_list
|
|
21
|
+
|
|
22
|
+
out["tags"] = capo_codeartifact.types.tag_list.serialize_json(value["tags"])
|
|
23
|
+
return out
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
def deserialize_json(data: dict) -> ListTagsForResourceResult:
|
|
27
|
+
out: ListTagsForResourceResult = {} # type: ignore[typeddict-item]
|
|
28
|
+
if data.get("tags") is not None:
|
|
29
|
+
import capo_codeartifact.types.tag_list
|
|
30
|
+
|
|
31
|
+
out["tags"] = capo_codeartifact.types.tag_list.deserialize_json(data["tags"])
|
|
32
|
+
return out
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeartifact#OriginRestrictions``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING, TypeAlias
|
|
4
|
+
|
|
5
|
+
if TYPE_CHECKING:
|
|
6
|
+
import capo_codeartifact.types.package_group_origin_restriction_mode
|
|
7
|
+
import capo_codeartifact.types.package_group_origin_restriction_type
|
|
8
|
+
|
|
9
|
+
OriginRestrictions: TypeAlias = dict[
|
|
10
|
+
"capo_codeartifact.types.package_group_origin_restriction_type.PackageGroupOriginRestrictionType",
|
|
11
|
+
"capo_codeartifact.types.package_group_origin_restriction_mode.PackageGroupOriginRestrictionMode",
|
|
12
|
+
]
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
# --- restJson1 ser/de ---
|
|
16
|
+
def serialize_json(input_to_serialize: OriginRestrictions) -> dict:
|
|
17
|
+
out: dict = {}
|
|
18
|
+
for key, value in input_to_serialize.items():
|
|
19
|
+
import capo_codeartifact.types.package_group_origin_restriction_mode
|
|
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_mode.serialize_json(
|
|
27
|
+
value
|
|
28
|
+
)
|
|
29
|
+
return out
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
def deserialize_json(data: dict) -> OriginRestrictions:
|
|
33
|
+
out: OriginRestrictions = {}
|
|
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_mode
|
|
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_mode.deserialize_json(
|
|
46
|
+
value
|
|
47
|
+
)
|
|
48
|
+
return out
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeartifact#PackageDependency``."""
|
|
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_name
|
|
9
|
+
import capo_codeartifact.types.package_namespace
|
|
10
|
+
import capo_codeartifact.types.string
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class PackageDependency(TypedDict, closed=True):
|
|
14
|
+
namespace: NotRequired["capo_codeartifact.types.package_namespace.PackageNamespace"]
|
|
15
|
+
"""<p>The namespace of the package that this package depends on. 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>"""
|
|
16
|
+
package: NotRequired["capo_codeartifact.types.package_name.PackageName"]
|
|
17
|
+
"""<p> The name of the package that this package depends on. </p>"""
|
|
18
|
+
dependency_type: NotRequired["capo_codeartifact.types.string.String"]
|
|
19
|
+
"""<p> The type of a package dependency. The possible values depend on the package type.</p> <ul> <li> <p>npm: <code>regular</code>, <code>dev</code>, <code>peer</code>, <code>optional</code> </p> </li> <li> <p>maven: <code>optional</code>, <code>parent</code>, <code>compile</code>, <code>runtime</code>, <code>test</code>, <code>system</code>, <code>provided</code>.</p> <note> <p>Note that <code>parent</code> is not a regular Maven dependency type; instead this is extracted from the <code><parent></code> element if one is defined in the package version's POM file.</p> </note> </li> <li> <p>nuget: The <code>dependencyType</code> field is never set for NuGet packages.</p> </li> <li> <p>pypi: <code>Requires-Dist</code> </p> </li> </ul>"""
|
|
20
|
+
version_requirement: NotRequired["capo_codeartifact.types.string.String"]
|
|
21
|
+
"""<p> The required version, or version range, of the package that this package depends on. The version format is specific to the package type. For example, the following are possible valid required versions: <code>1.2.3</code>, <code>^2.3.4</code>, or <code>4.x</code>. </p>"""
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
# --- restJson1 ser/de ---
|
|
25
|
+
def serialize_json(value: PackageDependency) -> dict:
|
|
26
|
+
out: dict = {}
|
|
27
|
+
if "namespace" in value:
|
|
28
|
+
out["namespace"] = value["namespace"]
|
|
29
|
+
if "package" in value:
|
|
30
|
+
out["package"] = value["package"]
|
|
31
|
+
if "dependency_type" in value:
|
|
32
|
+
out["dependencyType"] = value["dependency_type"]
|
|
33
|
+
if "version_requirement" in value:
|
|
34
|
+
out["versionRequirement"] = value["version_requirement"]
|
|
35
|
+
return out
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
def deserialize_json(data: dict) -> PackageDependency:
|
|
39
|
+
out: PackageDependency = {} # type: ignore[typeddict-item]
|
|
40
|
+
if data.get("namespace") is not None:
|
|
41
|
+
out["namespace"] = data["namespace"]
|
|
42
|
+
if data.get("package") is not None:
|
|
43
|
+
out["package"] = data["package"]
|
|
44
|
+
if data.get("dependencyType") is not None:
|
|
45
|
+
out["dependency_type"] = data["dependencyType"]
|
|
46
|
+
if data.get("versionRequirement") is not None:
|
|
47
|
+
out["version_requirement"] = data["versionRequirement"]
|
|
48
|
+
return out
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeartifact#PackageDependencyList``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING, TypeAlias
|
|
4
|
+
|
|
5
|
+
if TYPE_CHECKING:
|
|
6
|
+
import capo_codeartifact.types.package_dependency
|
|
7
|
+
|
|
8
|
+
PackageDependencyList: TypeAlias = list[
|
|
9
|
+
"capo_codeartifact.types.package_dependency.PackageDependency"
|
|
10
|
+
]
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
# --- restJson1 ser/de ---
|
|
14
|
+
def serialize_json(value: PackageDependencyList) -> list:
|
|
15
|
+
import capo_codeartifact.types.package_dependency
|
|
16
|
+
|
|
17
|
+
out: list = []
|
|
18
|
+
for item in value:
|
|
19
|
+
out.append(capo_codeartifact.types.package_dependency.serialize_json(item))
|
|
20
|
+
return out
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
def deserialize_json(data: list) -> PackageDependencyList:
|
|
24
|
+
import capo_codeartifact.types.package_dependency
|
|
25
|
+
|
|
26
|
+
out: PackageDependencyList = []
|
|
27
|
+
for item in data:
|
|
28
|
+
if item is None:
|
|
29
|
+
continue
|
|
30
|
+
out.append(capo_codeartifact.types.package_dependency.deserialize_json(item))
|
|
31
|
+
return out
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeartifact#PackageDescription``."""
|
|
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_name
|
|
10
|
+
import capo_codeartifact.types.package_namespace
|
|
11
|
+
import capo_codeartifact.types.package_origin_configuration
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class PackageDescription(TypedDict, closed=True):
|
|
15
|
+
format: NotRequired["capo_codeartifact.types.package_format.PackageFormat"]
|
|
16
|
+
"""<p>A format that specifies the type of the package.</p>"""
|
|
17
|
+
namespace: NotRequired["capo_codeartifact.types.package_namespace.PackageNamespace"]
|
|
18
|
+
"""<p>The namespace of the 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
|
+
name: NotRequired["capo_codeartifact.types.package_name.PackageName"]
|
|
20
|
+
"""<p>The name of the package.</p>"""
|
|
21
|
+
origin_configuration: NotRequired[
|
|
22
|
+
"capo_codeartifact.types.package_origin_configuration.PackageOriginConfiguration"
|
|
23
|
+
]
|
|
24
|
+
"""<p>The package origin configuration for the package.</p>"""
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
# --- restJson1 ser/de ---
|
|
28
|
+
def serialize_json(value: PackageDescription) -> 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 "name" in value:
|
|
39
|
+
out["name"] = value["name"]
|
|
40
|
+
if "origin_configuration" in value:
|
|
41
|
+
import capo_codeartifact.types.package_origin_configuration
|
|
42
|
+
|
|
43
|
+
out["originConfiguration"] = (
|
|
44
|
+
capo_codeartifact.types.package_origin_configuration.serialize_json(
|
|
45
|
+
value["origin_configuration"]
|
|
46
|
+
)
|
|
47
|
+
)
|
|
48
|
+
return out
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
def deserialize_json(data: dict) -> PackageDescription:
|
|
52
|
+
out: PackageDescription = {} # 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("name") is not None:
|
|
62
|
+
out["name"] = data["name"]
|
|
63
|
+
if data.get("originConfiguration") is not None:
|
|
64
|
+
import capo_codeartifact.types.package_origin_configuration
|
|
65
|
+
|
|
66
|
+
out["origin_configuration"] = (
|
|
67
|
+
capo_codeartifact.types.package_origin_configuration.deserialize_json(
|
|
68
|
+
data["originConfiguration"]
|
|
69
|
+
)
|
|
70
|
+
)
|
|
71
|
+
return out
|