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,37 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeartifact#ListDomainsRequest``."""
|
|
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_domains_max_results
|
|
9
|
+
import capo_codeartifact.types.pagination_token
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class ListDomainsRequest(TypedDict, closed=True):
|
|
13
|
+
max_results: NotRequired[
|
|
14
|
+
"capo_codeartifact.types.list_domains_max_results.ListDomainsMaxResults"
|
|
15
|
+
]
|
|
16
|
+
"""<p> The maximum number of results to return per page. </p>"""
|
|
17
|
+
next_token: NotRequired["capo_codeartifact.types.pagination_token.PaginationToken"]
|
|
18
|
+
"""<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>"""
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
# --- restJson1 ser/de ---
|
|
22
|
+
def serialize_json(value: ListDomainsRequest) -> dict:
|
|
23
|
+
out: dict = {}
|
|
24
|
+
if "max_results" in value:
|
|
25
|
+
out["maxResults"] = value["max_results"]
|
|
26
|
+
if "next_token" in value:
|
|
27
|
+
out["nextToken"] = value["next_token"]
|
|
28
|
+
return out
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
def deserialize_json(data: dict) -> ListDomainsRequest:
|
|
32
|
+
out: ListDomainsRequest = {} # type: ignore[typeddict-item]
|
|
33
|
+
if data.get("maxResults") is not None:
|
|
34
|
+
out["max_results"] = data["maxResults"]
|
|
35
|
+
if data.get("nextToken") is not None:
|
|
36
|
+
out["next_token"] = data["nextToken"]
|
|
37
|
+
return out
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeartifact#ListDomainsResult``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import NotRequired, TypedDict
|
|
6
|
+
|
|
7
|
+
if TYPE_CHECKING:
|
|
8
|
+
import capo_codeartifact.types.domain_summary_list
|
|
9
|
+
import capo_codeartifact.types.pagination_token
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class ListDomainsResult(TypedDict, closed=True):
|
|
13
|
+
domains: NotRequired[
|
|
14
|
+
"capo_codeartifact.types.domain_summary_list.DomainSummaryList"
|
|
15
|
+
]
|
|
16
|
+
r"""<p> The returned list of <a href=\"https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_DomainSummary.html\">DomainSummary</a> objects. </p>"""
|
|
17
|
+
next_token: NotRequired["capo_codeartifact.types.pagination_token.PaginationToken"]
|
|
18
|
+
"""<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>"""
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
# --- restJson1 ser/de ---
|
|
22
|
+
def serialize_json(value: ListDomainsResult) -> dict:
|
|
23
|
+
out: dict = {}
|
|
24
|
+
if "domains" in value:
|
|
25
|
+
import capo_codeartifact.types.domain_summary_list
|
|
26
|
+
|
|
27
|
+
out["domains"] = capo_codeartifact.types.domain_summary_list.serialize_json(
|
|
28
|
+
value["domains"]
|
|
29
|
+
)
|
|
30
|
+
if "next_token" in value:
|
|
31
|
+
out["nextToken"] = value["next_token"]
|
|
32
|
+
return out
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
def deserialize_json(data: dict) -> ListDomainsResult:
|
|
36
|
+
out: ListDomainsResult = {} # type: ignore[typeddict-item]
|
|
37
|
+
if data.get("domains") is not None:
|
|
38
|
+
import capo_codeartifact.types.domain_summary_list
|
|
39
|
+
|
|
40
|
+
out["domains"] = capo_codeartifact.types.domain_summary_list.deserialize_json(
|
|
41
|
+
data["domains"]
|
|
42
|
+
)
|
|
43
|
+
if data.get("nextToken") is not None:
|
|
44
|
+
out["next_token"] = data["nextToken"]
|
|
45
|
+
return out
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeartifact#ListPackageGroupsRequest``."""
|
|
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_prefix
|
|
12
|
+
import capo_codeartifact.types.pagination_token
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class ListPackageGroupsRequest(TypedDict, closed=True):
|
|
16
|
+
domain: "capo_codeartifact.types.domain_name.DomainName"
|
|
17
|
+
"""<p> The domain for which you want to list 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
|
+
max_results: NotRequired[
|
|
21
|
+
"capo_codeartifact.types.list_package_groups_max_results.ListPackageGroupsMaxResults"
|
|
22
|
+
]
|
|
23
|
+
"""<p> The maximum number of results to return per page. </p>"""
|
|
24
|
+
next_token: NotRequired["capo_codeartifact.types.pagination_token.PaginationToken"]
|
|
25
|
+
"""<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>"""
|
|
26
|
+
prefix: NotRequired[
|
|
27
|
+
"capo_codeartifact.types.package_group_pattern_prefix.PackageGroupPatternPrefix"
|
|
28
|
+
]
|
|
29
|
+
"""<p> A prefix for which to search package groups. When included, <code>ListPackageGroups</code> will return only package groups with patterns that match the prefix. </p>"""
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
# --- restJson1 ser/de ---
|
|
33
|
+
def serialize_json(value: ListPackageGroupsRequest) -> dict:
|
|
34
|
+
out: dict = {}
|
|
35
|
+
return out
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
def deserialize_json(data: dict) -> ListPackageGroupsRequest:
|
|
39
|
+
out: ListPackageGroupsRequest = {} # type: ignore[typeddict-item]
|
|
40
|
+
return out
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeartifact#ListPackageGroupsResult``."""
|
|
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 ListPackageGroupsResult(TypedDict, closed=True):
|
|
13
|
+
package_groups: NotRequired[
|
|
14
|
+
"capo_codeartifact.types.package_group_summary_list.PackageGroupSummaryList"
|
|
15
|
+
]
|
|
16
|
+
"""<p> The list of package groups in the requested domain. </p>"""
|
|
17
|
+
next_token: NotRequired["capo_codeartifact.types.pagination_token.PaginationToken"]
|
|
18
|
+
"""<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>"""
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
# --- restJson1 ser/de ---
|
|
22
|
+
def serialize_json(value: ListPackageGroupsResult) -> 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) -> ListPackageGroupsResult:
|
|
38
|
+
out: ListPackageGroupsResult = {} # 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,50 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeartifact#ListPackageVersionAssetsRequest``."""
|
|
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_version_assets_max_results
|
|
11
|
+
import capo_codeartifact.types.package_format
|
|
12
|
+
import capo_codeartifact.types.package_name
|
|
13
|
+
import capo_codeartifact.types.package_namespace
|
|
14
|
+
import capo_codeartifact.types.package_version
|
|
15
|
+
import capo_codeartifact.types.pagination_token
|
|
16
|
+
import capo_codeartifact.types.repository_name
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class ListPackageVersionAssetsRequest(TypedDict, closed=True):
|
|
20
|
+
domain: "capo_codeartifact.types.domain_name.DomainName"
|
|
21
|
+
"""<p> The name of the domain that contains the repository associated with the package version assets. </p>"""
|
|
22
|
+
domain_owner: NotRequired["capo_codeartifact.types.account_id.AccountId"]
|
|
23
|
+
"""<p> The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. </p>"""
|
|
24
|
+
repository: "capo_codeartifact.types.repository_name.RepositoryName"
|
|
25
|
+
"""<p> The name of the repository that contains the package that contains the requested package version assets. </p>"""
|
|
26
|
+
format: "capo_codeartifact.types.package_format.PackageFormat"
|
|
27
|
+
"""<p> The format of the package that contains the requested package version assets. </p>"""
|
|
28
|
+
namespace: NotRequired["capo_codeartifact.types.package_namespace.PackageNamespace"]
|
|
29
|
+
"""<p>The namespace of the package version that contains the requested package version assets. The package component that specifies its namespace depends on its type. For example:</p> <note> <p>The namespace is required requesting assets from package versions of the following formats:</p> <ul> <li> <p>Maven</p> </li> <li> <p>Swift</p> </li> <li> <p>generic</p> </li> </ul> </note> <ul> <li> <p> The namespace of a Maven package version is its <code>groupId</code>. </p> </li> <li> <p> The namespace of an npm or Swift package version is its <code>scope</code>. </p> </li> <li> <p>The namespace of a generic package is its <code>namespace</code>.</p> </li> <li> <p> Python, NuGet, Ruby, and Cargo package versions do not contain a corresponding component, package versions of those formats do not have a namespace. </p> </li> </ul>"""
|
|
30
|
+
package: "capo_codeartifact.types.package_name.PackageName"
|
|
31
|
+
"""<p> The name of the package that contains the requested package version assets. </p>"""
|
|
32
|
+
package_version: "capo_codeartifact.types.package_version.PackageVersion"
|
|
33
|
+
"""<p> A string that contains the package version (for example, <code>3.5.2</code>). </p>"""
|
|
34
|
+
max_results: NotRequired[
|
|
35
|
+
"capo_codeartifact.types.list_package_version_assets_max_results.ListPackageVersionAssetsMaxResults"
|
|
36
|
+
]
|
|
37
|
+
"""<p> The maximum number of results to return per page. </p>"""
|
|
38
|
+
next_token: NotRequired["capo_codeartifact.types.pagination_token.PaginationToken"]
|
|
39
|
+
"""<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>"""
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
# --- restJson1 ser/de ---
|
|
43
|
+
def serialize_json(value: ListPackageVersionAssetsRequest) -> dict:
|
|
44
|
+
out: dict = {}
|
|
45
|
+
return out
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
def deserialize_json(data: dict) -> ListPackageVersionAssetsRequest:
|
|
49
|
+
out: ListPackageVersionAssetsRequest = {} # type: ignore[typeddict-item]
|
|
50
|
+
return out
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeartifact#ListPackageVersionAssetsResult``."""
|
|
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.asset_summary_list
|
|
9
|
+
import capo_codeartifact.types.package_format
|
|
10
|
+
import capo_codeartifact.types.package_name
|
|
11
|
+
import capo_codeartifact.types.package_namespace
|
|
12
|
+
import capo_codeartifact.types.package_version
|
|
13
|
+
import capo_codeartifact.types.package_version_revision
|
|
14
|
+
import capo_codeartifact.types.pagination_token
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class ListPackageVersionAssetsResult(TypedDict, closed=True):
|
|
18
|
+
format: NotRequired["capo_codeartifact.types.package_format.PackageFormat"]
|
|
19
|
+
"""<p> The format of the package that contains the requested package version assets. </p>"""
|
|
20
|
+
namespace: NotRequired["capo_codeartifact.types.package_namespace.PackageNamespace"]
|
|
21
|
+
"""<p>The namespace of the package version that contains the requested package version assets. 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>"""
|
|
22
|
+
package: NotRequired["capo_codeartifact.types.package_name.PackageName"]
|
|
23
|
+
"""<p> The name of the package that contains the requested package version assets. </p>"""
|
|
24
|
+
version: NotRequired["capo_codeartifact.types.package_version.PackageVersion"]
|
|
25
|
+
"""<p> The version of the package associated with the requested assets. </p>"""
|
|
26
|
+
version_revision: NotRequired[
|
|
27
|
+
"capo_codeartifact.types.package_version_revision.PackageVersionRevision"
|
|
28
|
+
]
|
|
29
|
+
"""<p> The current revision associated with the package version. </p>"""
|
|
30
|
+
next_token: NotRequired["capo_codeartifact.types.pagination_token.PaginationToken"]
|
|
31
|
+
"""<p> If there are additional results, this is the token for the next set of results. </p>"""
|
|
32
|
+
assets: NotRequired["capo_codeartifact.types.asset_summary_list.AssetSummaryList"]
|
|
33
|
+
r"""<p> The returned list of <a href=\"https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_AssetSummary.html\">AssetSummary</a> objects. </p>"""
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
# --- restJson1 ser/de ---
|
|
37
|
+
def serialize_json(value: ListPackageVersionAssetsResult) -> dict:
|
|
38
|
+
out: dict = {}
|
|
39
|
+
if "format" in value:
|
|
40
|
+
import capo_codeartifact.types.package_format
|
|
41
|
+
|
|
42
|
+
out["format"] = capo_codeartifact.types.package_format.serialize_json(
|
|
43
|
+
value["format"]
|
|
44
|
+
)
|
|
45
|
+
if "namespace" in value:
|
|
46
|
+
out["namespace"] = value["namespace"]
|
|
47
|
+
if "package" in value:
|
|
48
|
+
out["package"] = value["package"]
|
|
49
|
+
if "version" in value:
|
|
50
|
+
out["version"] = value["version"]
|
|
51
|
+
if "version_revision" in value:
|
|
52
|
+
out["versionRevision"] = value["version_revision"]
|
|
53
|
+
if "next_token" in value:
|
|
54
|
+
out["nextToken"] = value["next_token"]
|
|
55
|
+
if "assets" in value:
|
|
56
|
+
import capo_codeartifact.types.asset_summary_list
|
|
57
|
+
|
|
58
|
+
out["assets"] = capo_codeartifact.types.asset_summary_list.serialize_json(
|
|
59
|
+
value["assets"]
|
|
60
|
+
)
|
|
61
|
+
return out
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
def deserialize_json(data: dict) -> ListPackageVersionAssetsResult:
|
|
65
|
+
out: ListPackageVersionAssetsResult = {} # type: ignore[typeddict-item]
|
|
66
|
+
if data.get("format") is not None:
|
|
67
|
+
import capo_codeartifact.types.package_format
|
|
68
|
+
|
|
69
|
+
out["format"] = capo_codeartifact.types.package_format.deserialize_json(
|
|
70
|
+
data["format"]
|
|
71
|
+
)
|
|
72
|
+
if data.get("namespace") is not None:
|
|
73
|
+
out["namespace"] = data["namespace"]
|
|
74
|
+
if data.get("package") is not None:
|
|
75
|
+
out["package"] = data["package"]
|
|
76
|
+
if data.get("version") is not None:
|
|
77
|
+
out["version"] = data["version"]
|
|
78
|
+
if data.get("versionRevision") is not None:
|
|
79
|
+
out["version_revision"] = data["versionRevision"]
|
|
80
|
+
if data.get("nextToken") is not None:
|
|
81
|
+
out["next_token"] = data["nextToken"]
|
|
82
|
+
if data.get("assets") is not None:
|
|
83
|
+
import capo_codeartifact.types.asset_summary_list
|
|
84
|
+
|
|
85
|
+
out["assets"] = capo_codeartifact.types.asset_summary_list.deserialize_json(
|
|
86
|
+
data["assets"]
|
|
87
|
+
)
|
|
88
|
+
return out
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeartifact#ListPackageVersionDependenciesRequest``."""
|
|
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.package_format
|
|
11
|
+
import capo_codeartifact.types.package_name
|
|
12
|
+
import capo_codeartifact.types.package_namespace
|
|
13
|
+
import capo_codeartifact.types.package_version
|
|
14
|
+
import capo_codeartifact.types.pagination_token
|
|
15
|
+
import capo_codeartifact.types.repository_name
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class ListPackageVersionDependenciesRequest(TypedDict, closed=True):
|
|
19
|
+
domain: "capo_codeartifact.types.domain_name.DomainName"
|
|
20
|
+
"""<p> The name of the domain that contains the repository that contains the requested package version dependencies. </p>"""
|
|
21
|
+
domain_owner: NotRequired["capo_codeartifact.types.account_id.AccountId"]
|
|
22
|
+
"""<p> The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. </p>"""
|
|
23
|
+
repository: "capo_codeartifact.types.repository_name.RepositoryName"
|
|
24
|
+
"""<p> The name of the repository that contains the requested package version. </p>"""
|
|
25
|
+
format: "capo_codeartifact.types.package_format.PackageFormat"
|
|
26
|
+
"""<p> The format of the package with the requested dependencies. </p>"""
|
|
27
|
+
namespace: NotRequired["capo_codeartifact.types.package_namespace.PackageNamespace"]
|
|
28
|
+
"""<p>The namespace of the package version with the requested dependencies. The package component that specifies its namespace depends on its type. For example:</p> <note> <p>The namespace is required when listing dependencies from package versions of the following formats:</p> <ul> <li> <p>Maven</p> </li> </ul> </note> <ul> <li> <p> The namespace of a Maven package version is its <code>groupId</code>. </p> </li> <li> <p> The namespace of an npm package version is its <code>scope</code>. </p> </li> <li> <p> Python and NuGet package versions do not contain a corresponding component, package versions of those formats do not have a namespace. </p> </li> </ul>"""
|
|
29
|
+
package: "capo_codeartifact.types.package_name.PackageName"
|
|
30
|
+
"""<p> The name of the package versions' package. </p>"""
|
|
31
|
+
package_version: "capo_codeartifact.types.package_version.PackageVersion"
|
|
32
|
+
"""<p> A string that contains the package version (for example, <code>3.5.2</code>). </p>"""
|
|
33
|
+
next_token: NotRequired["capo_codeartifact.types.pagination_token.PaginationToken"]
|
|
34
|
+
"""<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>"""
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
# --- restJson1 ser/de ---
|
|
38
|
+
def serialize_json(value: ListPackageVersionDependenciesRequest) -> dict:
|
|
39
|
+
out: dict = {}
|
|
40
|
+
return out
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
def deserialize_json(data: dict) -> ListPackageVersionDependenciesRequest:
|
|
44
|
+
out: ListPackageVersionDependenciesRequest = {} # type: ignore[typeddict-item]
|
|
45
|
+
return out
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeartifact#ListPackageVersionDependenciesResult``."""
|
|
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_dependency_list
|
|
9
|
+
import capo_codeartifact.types.package_format
|
|
10
|
+
import capo_codeartifact.types.package_name
|
|
11
|
+
import capo_codeartifact.types.package_namespace
|
|
12
|
+
import capo_codeartifact.types.package_version
|
|
13
|
+
import capo_codeartifact.types.package_version_revision
|
|
14
|
+
import capo_codeartifact.types.pagination_token
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class ListPackageVersionDependenciesResult(TypedDict, closed=True):
|
|
18
|
+
format: NotRequired["capo_codeartifact.types.package_format.PackageFormat"]
|
|
19
|
+
"""<p> A format that specifies the type of the package that contains the returned dependencies. </p>"""
|
|
20
|
+
namespace: NotRequired["capo_codeartifact.types.package_namespace.PackageNamespace"]
|
|
21
|
+
"""<p>The namespace of the package version that contains the returned dependencies. The package component that specifies its namespace depends on its type. For example:</p> <note> <p>The namespace is required when listing dependencies from package versions of the following formats:</p> <ul> <li> <p>Maven</p> </li> </ul> </note> <ul> <li> <p> The namespace of a Maven package version is its <code>groupId</code>. </p> </li> <li> <p> The namespace of an npm package version is its <code>scope</code>. </p> </li> <li> <p> Python and NuGet package versions do not contain a corresponding component, package versions of those formats do not have a namespace. </p> </li> </ul>"""
|
|
22
|
+
package: NotRequired["capo_codeartifact.types.package_name.PackageName"]
|
|
23
|
+
"""<p> The name of the package that contains the returned package versions dependencies. </p>"""
|
|
24
|
+
version: NotRequired["capo_codeartifact.types.package_version.PackageVersion"]
|
|
25
|
+
"""<p> The version of the package that is specified in the request. </p>"""
|
|
26
|
+
version_revision: NotRequired[
|
|
27
|
+
"capo_codeartifact.types.package_version_revision.PackageVersionRevision"
|
|
28
|
+
]
|
|
29
|
+
"""<p> The current revision associated with the package version. </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
|
+
dependencies: NotRequired[
|
|
33
|
+
"capo_codeartifact.types.package_dependency_list.PackageDependencyList"
|
|
34
|
+
]
|
|
35
|
+
r"""<p> The returned list of <a href=\"https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_PackageDependency.html\">PackageDependency</a> objects. </p>"""
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
# --- restJson1 ser/de ---
|
|
39
|
+
def serialize_json(value: ListPackageVersionDependenciesResult) -> dict:
|
|
40
|
+
out: dict = {}
|
|
41
|
+
if "format" in value:
|
|
42
|
+
import capo_codeartifact.types.package_format
|
|
43
|
+
|
|
44
|
+
out["format"] = capo_codeartifact.types.package_format.serialize_json(
|
|
45
|
+
value["format"]
|
|
46
|
+
)
|
|
47
|
+
if "namespace" in value:
|
|
48
|
+
out["namespace"] = value["namespace"]
|
|
49
|
+
if "package" in value:
|
|
50
|
+
out["package"] = value["package"]
|
|
51
|
+
if "version" in value:
|
|
52
|
+
out["version"] = value["version"]
|
|
53
|
+
if "version_revision" in value:
|
|
54
|
+
out["versionRevision"] = value["version_revision"]
|
|
55
|
+
if "next_token" in value:
|
|
56
|
+
out["nextToken"] = value["next_token"]
|
|
57
|
+
if "dependencies" in value:
|
|
58
|
+
import capo_codeartifact.types.package_dependency_list
|
|
59
|
+
|
|
60
|
+
out["dependencies"] = (
|
|
61
|
+
capo_codeartifact.types.package_dependency_list.serialize_json(
|
|
62
|
+
value["dependencies"]
|
|
63
|
+
)
|
|
64
|
+
)
|
|
65
|
+
return out
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
def deserialize_json(data: dict) -> ListPackageVersionDependenciesResult:
|
|
69
|
+
out: ListPackageVersionDependenciesResult = {} # type: ignore[typeddict-item]
|
|
70
|
+
if data.get("format") is not None:
|
|
71
|
+
import capo_codeartifact.types.package_format
|
|
72
|
+
|
|
73
|
+
out["format"] = capo_codeartifact.types.package_format.deserialize_json(
|
|
74
|
+
data["format"]
|
|
75
|
+
)
|
|
76
|
+
if data.get("namespace") is not None:
|
|
77
|
+
out["namespace"] = data["namespace"]
|
|
78
|
+
if data.get("package") is not None:
|
|
79
|
+
out["package"] = data["package"]
|
|
80
|
+
if data.get("version") is not None:
|
|
81
|
+
out["version"] = data["version"]
|
|
82
|
+
if data.get("versionRevision") is not None:
|
|
83
|
+
out["version_revision"] = data["versionRevision"]
|
|
84
|
+
if data.get("nextToken") is not None:
|
|
85
|
+
out["next_token"] = data["nextToken"]
|
|
86
|
+
if data.get("dependencies") is not None:
|
|
87
|
+
import capo_codeartifact.types.package_dependency_list
|
|
88
|
+
|
|
89
|
+
out["dependencies"] = (
|
|
90
|
+
capo_codeartifact.types.package_dependency_list.deserialize_json(
|
|
91
|
+
data["dependencies"]
|
|
92
|
+
)
|
|
93
|
+
)
|
|
94
|
+
return out
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeartifact#ListPackageVersionsRequest``."""
|
|
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_versions_max_results
|
|
11
|
+
import capo_codeartifact.types.package_format
|
|
12
|
+
import capo_codeartifact.types.package_name
|
|
13
|
+
import capo_codeartifact.types.package_namespace
|
|
14
|
+
import capo_codeartifact.types.package_version_origin_type
|
|
15
|
+
import capo_codeartifact.types.package_version_sort_type
|
|
16
|
+
import capo_codeartifact.types.package_version_status
|
|
17
|
+
import capo_codeartifact.types.pagination_token
|
|
18
|
+
import capo_codeartifact.types.repository_name
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class ListPackageVersionsRequest(TypedDict, closed=True):
|
|
22
|
+
domain: "capo_codeartifact.types.domain_name.DomainName"
|
|
23
|
+
"""<p> The name of the domain that contains the repository that contains the requested package versions. </p>"""
|
|
24
|
+
domain_owner: NotRequired["capo_codeartifact.types.account_id.AccountId"]
|
|
25
|
+
"""<p> The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. </p>"""
|
|
26
|
+
repository: "capo_codeartifact.types.repository_name.RepositoryName"
|
|
27
|
+
"""<p> The name of the repository that contains the requested package versions. </p>"""
|
|
28
|
+
format: "capo_codeartifact.types.package_format.PackageFormat"
|
|
29
|
+
"""<p> The format of the package versions you want to list. </p>"""
|
|
30
|
+
namespace: NotRequired["capo_codeartifact.types.package_namespace.PackageNamespace"]
|
|
31
|
+
"""<p>The namespace of the package that contains the requested package versions. The package component that specifies its namespace depends on its type. For example:</p> <note> <p>The namespace is required when deleting package versions of the following formats:</p> <ul> <li> <p>Maven</p> </li> <li> <p>Swift</p> </li> <li> <p>generic</p> </li> </ul> </note> <ul> <li> <p> The namespace of a Maven package version is its <code>groupId</code>. </p> </li> <li> <p> The namespace of an npm or Swift package version is its <code>scope</code>. </p> </li> <li> <p>The namespace of a generic package is its <code>namespace</code>.</p> </li> <li> <p> Python, NuGet, Ruby, and Cargo package versions do not contain a corresponding component, package versions of those formats do not have a namespace. </p> </li> </ul>"""
|
|
32
|
+
package: "capo_codeartifact.types.package_name.PackageName"
|
|
33
|
+
"""<p> The name of the package for which you want to request package versions. </p>"""
|
|
34
|
+
status: NotRequired[
|
|
35
|
+
"capo_codeartifact.types.package_version_status.PackageVersionStatus"
|
|
36
|
+
]
|
|
37
|
+
"""<p> A string that filters the requested package versions by status. </p>"""
|
|
38
|
+
sort_by: NotRequired[
|
|
39
|
+
"capo_codeartifact.types.package_version_sort_type.PackageVersionSortType"
|
|
40
|
+
]
|
|
41
|
+
"""<p> How to sort the requested list of package versions. </p>"""
|
|
42
|
+
max_results: NotRequired[
|
|
43
|
+
"capo_codeartifact.types.list_package_versions_max_results.ListPackageVersionsMaxResults"
|
|
44
|
+
]
|
|
45
|
+
"""<p> The maximum number of results to return per page. </p>"""
|
|
46
|
+
next_token: NotRequired["capo_codeartifact.types.pagination_token.PaginationToken"]
|
|
47
|
+
"""<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>"""
|
|
48
|
+
origin_type: NotRequired[
|
|
49
|
+
"capo_codeartifact.types.package_version_origin_type.PackageVersionOriginType"
|
|
50
|
+
]
|
|
51
|
+
"""<p>The <code>originType</code> used to filter package versions. Only package versions with the provided <code>originType</code> will be returned.</p>"""
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
# --- restJson1 ser/de ---
|
|
55
|
+
def serialize_json(value: ListPackageVersionsRequest) -> dict:
|
|
56
|
+
out: dict = {}
|
|
57
|
+
return out
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
def deserialize_json(data: dict) -> ListPackageVersionsRequest:
|
|
61
|
+
out: ListPackageVersionsRequest = {} # type: ignore[typeddict-item]
|
|
62
|
+
return out
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeartifact#ListPackageVersionsResult``."""
|
|
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_version
|
|
12
|
+
import capo_codeartifact.types.package_version_summary_list
|
|
13
|
+
import capo_codeartifact.types.pagination_token
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class ListPackageVersionsResult(TypedDict, closed=True):
|
|
17
|
+
default_display_version: NotRequired[
|
|
18
|
+
"capo_codeartifact.types.package_version.PackageVersion"
|
|
19
|
+
]
|
|
20
|
+
"""<p> The default package version to display. This depends on the package format: </p> <ul> <li> <p> For Maven and PyPI packages, it's the most recently published package version. </p> </li> <li> <p> For npm packages, it's the version referenced by the <code>latest</code> tag. If the <code>latest</code> tag is not set, it's the most recently published package version. </p> </li> </ul>"""
|
|
21
|
+
format: NotRequired["capo_codeartifact.types.package_format.PackageFormat"]
|
|
22
|
+
"""<p> A format of the package. </p>"""
|
|
23
|
+
namespace: NotRequired["capo_codeartifact.types.package_namespace.PackageNamespace"]
|
|
24
|
+
"""<p>The namespace of the package that contains the requested package versions. 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>"""
|
|
25
|
+
package: NotRequired["capo_codeartifact.types.package_name.PackageName"]
|
|
26
|
+
"""<p> The name of the package. </p>"""
|
|
27
|
+
versions: NotRequired[
|
|
28
|
+
"capo_codeartifact.types.package_version_summary_list.PackageVersionSummaryList"
|
|
29
|
+
]
|
|
30
|
+
r"""<p> The returned list of <a href=\"https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_PackageVersionSummary.html\">PackageVersionSummary</a> objects. </p>"""
|
|
31
|
+
next_token: NotRequired["capo_codeartifact.types.pagination_token.PaginationToken"]
|
|
32
|
+
"""<p> If there are additional results, this is the token for the next set of results. </p>"""
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
# --- restJson1 ser/de ---
|
|
36
|
+
def serialize_json(value: ListPackageVersionsResult) -> dict:
|
|
37
|
+
out: dict = {}
|
|
38
|
+
if "default_display_version" in value:
|
|
39
|
+
out["defaultDisplayVersion"] = value["default_display_version"]
|
|
40
|
+
if "format" in value:
|
|
41
|
+
import capo_codeartifact.types.package_format
|
|
42
|
+
|
|
43
|
+
out["format"] = capo_codeartifact.types.package_format.serialize_json(
|
|
44
|
+
value["format"]
|
|
45
|
+
)
|
|
46
|
+
if "namespace" in value:
|
|
47
|
+
out["namespace"] = value["namespace"]
|
|
48
|
+
if "package" in value:
|
|
49
|
+
out["package"] = value["package"]
|
|
50
|
+
if "versions" in value:
|
|
51
|
+
import capo_codeartifact.types.package_version_summary_list
|
|
52
|
+
|
|
53
|
+
out["versions"] = (
|
|
54
|
+
capo_codeartifact.types.package_version_summary_list.serialize_json(
|
|
55
|
+
value["versions"]
|
|
56
|
+
)
|
|
57
|
+
)
|
|
58
|
+
if "next_token" in value:
|
|
59
|
+
out["nextToken"] = value["next_token"]
|
|
60
|
+
return out
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
def deserialize_json(data: dict) -> ListPackageVersionsResult:
|
|
64
|
+
out: ListPackageVersionsResult = {} # type: ignore[typeddict-item]
|
|
65
|
+
if data.get("defaultDisplayVersion") is not None:
|
|
66
|
+
out["default_display_version"] = data["defaultDisplayVersion"]
|
|
67
|
+
if data.get("format") is not None:
|
|
68
|
+
import capo_codeartifact.types.package_format
|
|
69
|
+
|
|
70
|
+
out["format"] = capo_codeartifact.types.package_format.deserialize_json(
|
|
71
|
+
data["format"]
|
|
72
|
+
)
|
|
73
|
+
if data.get("namespace") is not None:
|
|
74
|
+
out["namespace"] = data["namespace"]
|
|
75
|
+
if data.get("package") is not None:
|
|
76
|
+
out["package"] = data["package"]
|
|
77
|
+
if data.get("versions") is not None:
|
|
78
|
+
import capo_codeartifact.types.package_version_summary_list
|
|
79
|
+
|
|
80
|
+
out["versions"] = (
|
|
81
|
+
capo_codeartifact.types.package_version_summary_list.deserialize_json(
|
|
82
|
+
data["versions"]
|
|
83
|
+
)
|
|
84
|
+
)
|
|
85
|
+
if data.get("nextToken") is not None:
|
|
86
|
+
out["next_token"] = data["nextToken"]
|
|
87
|
+
return out
|