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,42 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeartifact#CreatePackageGroupResult``."""
|
|
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_description
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class CreatePackageGroupResult(TypedDict, closed=True):
|
|
12
|
+
package_group: NotRequired[
|
|
13
|
+
"capo_codeartifact.types.package_group_description.PackageGroupDescription"
|
|
14
|
+
]
|
|
15
|
+
"""<p> Information about the created package group after processing the request. </p>"""
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
# --- restJson1 ser/de ---
|
|
19
|
+
def serialize_json(value: CreatePackageGroupResult) -> dict:
|
|
20
|
+
out: dict = {}
|
|
21
|
+
if "package_group" in value:
|
|
22
|
+
import capo_codeartifact.types.package_group_description
|
|
23
|
+
|
|
24
|
+
out["packageGroup"] = (
|
|
25
|
+
capo_codeartifact.types.package_group_description.serialize_json(
|
|
26
|
+
value["package_group"]
|
|
27
|
+
)
|
|
28
|
+
)
|
|
29
|
+
return out
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
def deserialize_json(data: dict) -> CreatePackageGroupResult:
|
|
33
|
+
out: CreatePackageGroupResult = {} # type: ignore[typeddict-item]
|
|
34
|
+
if data.get("packageGroup") is not None:
|
|
35
|
+
import capo_codeartifact.types.package_group_description
|
|
36
|
+
|
|
37
|
+
out["package_group"] = (
|
|
38
|
+
capo_codeartifact.types.package_group_description.deserialize_json(
|
|
39
|
+
data["packageGroup"]
|
|
40
|
+
)
|
|
41
|
+
)
|
|
42
|
+
return out
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeartifact#CreateRepositoryRequest``."""
|
|
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.description
|
|
10
|
+
import capo_codeartifact.types.domain_name
|
|
11
|
+
import capo_codeartifact.types.repository_name
|
|
12
|
+
import capo_codeartifact.types.tag_list
|
|
13
|
+
import capo_codeartifact.types.upstream_repository_list
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class CreateRepositoryRequest(TypedDict, closed=True):
|
|
17
|
+
domain: "capo_codeartifact.types.domain_name.DomainName"
|
|
18
|
+
"""<p> The name of the domain that contains the created repository. </p>"""
|
|
19
|
+
domain_owner: NotRequired["capo_codeartifact.types.account_id.AccountId"]
|
|
20
|
+
"""<p> The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. </p>"""
|
|
21
|
+
repository: "capo_codeartifact.types.repository_name.RepositoryName"
|
|
22
|
+
"""<p>The name of the repository to create. </p>"""
|
|
23
|
+
description: NotRequired["capo_codeartifact.types.description.Description"]
|
|
24
|
+
"""<p> A description of the created repository. </p>"""
|
|
25
|
+
upstreams: NotRequired[
|
|
26
|
+
"capo_codeartifact.types.upstream_repository_list.UpstreamRepositoryList"
|
|
27
|
+
]
|
|
28
|
+
r"""<p> A list of upstream repositories to associate with the repository. The order of the upstream repositories in the list determines their priority order when CodeArtifact looks for a requested package version. For more information, see <a href=\"https://docs.aws.amazon.com/codeartifact/latest/ug/repos-upstream.html\">Working with upstream repositories</a>. </p>"""
|
|
29
|
+
tags: NotRequired["capo_codeartifact.types.tag_list.TagList"]
|
|
30
|
+
"""<p>One or more tag key-value pairs for the repository.</p>"""
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
# --- restJson1 ser/de ---
|
|
34
|
+
def serialize_json(value: CreateRepositoryRequest) -> dict:
|
|
35
|
+
out: dict = {}
|
|
36
|
+
if "description" in value:
|
|
37
|
+
out["description"] = value["description"]
|
|
38
|
+
if "upstreams" in value:
|
|
39
|
+
import capo_codeartifact.types.upstream_repository_list
|
|
40
|
+
|
|
41
|
+
out["upstreams"] = (
|
|
42
|
+
capo_codeartifact.types.upstream_repository_list.serialize_json(
|
|
43
|
+
value["upstreams"]
|
|
44
|
+
)
|
|
45
|
+
)
|
|
46
|
+
if "tags" in value:
|
|
47
|
+
import capo_codeartifact.types.tag_list
|
|
48
|
+
|
|
49
|
+
out["tags"] = capo_codeartifact.types.tag_list.serialize_json(value["tags"])
|
|
50
|
+
return out
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
def deserialize_json(data: dict) -> CreateRepositoryRequest:
|
|
54
|
+
out: CreateRepositoryRequest = {} # type: ignore[typeddict-item]
|
|
55
|
+
if data.get("description") is not None:
|
|
56
|
+
out["description"] = data["description"]
|
|
57
|
+
if data.get("upstreams") is not None:
|
|
58
|
+
import capo_codeartifact.types.upstream_repository_list
|
|
59
|
+
|
|
60
|
+
out["upstreams"] = (
|
|
61
|
+
capo_codeartifact.types.upstream_repository_list.deserialize_json(
|
|
62
|
+
data["upstreams"]
|
|
63
|
+
)
|
|
64
|
+
)
|
|
65
|
+
if data.get("tags") is not None:
|
|
66
|
+
import capo_codeartifact.types.tag_list
|
|
67
|
+
|
|
68
|
+
out["tags"] = capo_codeartifact.types.tag_list.deserialize_json(data["tags"])
|
|
69
|
+
return out
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeartifact#CreateRepositoryResult``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import NotRequired, TypedDict
|
|
6
|
+
|
|
7
|
+
if TYPE_CHECKING:
|
|
8
|
+
import capo_codeartifact.types.repository_description
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class CreateRepositoryResult(TypedDict, closed=True):
|
|
12
|
+
repository: NotRequired[
|
|
13
|
+
"capo_codeartifact.types.repository_description.RepositoryDescription"
|
|
14
|
+
]
|
|
15
|
+
"""<p> Information about the created repository after processing the request. </p>"""
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
# --- restJson1 ser/de ---
|
|
19
|
+
def serialize_json(value: CreateRepositoryResult) -> dict:
|
|
20
|
+
out: dict = {}
|
|
21
|
+
if "repository" in value:
|
|
22
|
+
import capo_codeartifact.types.repository_description
|
|
23
|
+
|
|
24
|
+
out["repository"] = (
|
|
25
|
+
capo_codeartifact.types.repository_description.serialize_json(
|
|
26
|
+
value["repository"]
|
|
27
|
+
)
|
|
28
|
+
)
|
|
29
|
+
return out
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
def deserialize_json(data: dict) -> CreateRepositoryResult:
|
|
33
|
+
out: CreateRepositoryResult = {} # type: ignore[typeddict-item]
|
|
34
|
+
if data.get("repository") is not None:
|
|
35
|
+
import capo_codeartifact.types.repository_description
|
|
36
|
+
|
|
37
|
+
out["repository"] = (
|
|
38
|
+
capo_codeartifact.types.repository_description.deserialize_json(
|
|
39
|
+
data["repository"]
|
|
40
|
+
)
|
|
41
|
+
)
|
|
42
|
+
return out
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeartifact#DeleteDomainPermissionsPolicyRequest``."""
|
|
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.policy_revision
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class DeleteDomainPermissionsPolicyRequest(TypedDict, closed=True):
|
|
14
|
+
domain: "capo_codeartifact.types.domain_name.DomainName"
|
|
15
|
+
"""<p> The name of the domain associated with the resource policy to be deleted. </p>"""
|
|
16
|
+
domain_owner: NotRequired["capo_codeartifact.types.account_id.AccountId"]
|
|
17
|
+
"""<p> The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. </p>"""
|
|
18
|
+
policy_revision: NotRequired[
|
|
19
|
+
"capo_codeartifact.types.policy_revision.PolicyRevision"
|
|
20
|
+
]
|
|
21
|
+
"""<p> The current revision of the resource policy to be deleted. This revision is used for optimistic locking, which prevents others from overwriting your changes to the domain's resource policy. </p>"""
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
# --- restJson1 ser/de ---
|
|
25
|
+
def serialize_json(value: DeleteDomainPermissionsPolicyRequest) -> dict:
|
|
26
|
+
out: dict = {}
|
|
27
|
+
return out
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
def deserialize_json(data: dict) -> DeleteDomainPermissionsPolicyRequest:
|
|
31
|
+
out: DeleteDomainPermissionsPolicyRequest = {} # type: ignore[typeddict-item]
|
|
32
|
+
return out
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeartifact#DeleteDomainPermissionsPolicyResult``."""
|
|
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.resource_policy
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class DeleteDomainPermissionsPolicyResult(TypedDict, closed=True):
|
|
12
|
+
policy: NotRequired["capo_codeartifact.types.resource_policy.ResourcePolicy"]
|
|
13
|
+
"""<p> Information about the deleted resource policy after processing the request. </p>"""
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
# --- restJson1 ser/de ---
|
|
17
|
+
def serialize_json(value: DeleteDomainPermissionsPolicyResult) -> dict:
|
|
18
|
+
out: dict = {}
|
|
19
|
+
if "policy" in value:
|
|
20
|
+
import capo_codeartifact.types.resource_policy
|
|
21
|
+
|
|
22
|
+
out["policy"] = capo_codeartifact.types.resource_policy.serialize_json(
|
|
23
|
+
value["policy"]
|
|
24
|
+
)
|
|
25
|
+
return out
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
def deserialize_json(data: dict) -> DeleteDomainPermissionsPolicyResult:
|
|
29
|
+
out: DeleteDomainPermissionsPolicyResult = {} # type: ignore[typeddict-item]
|
|
30
|
+
if data.get("policy") is not None:
|
|
31
|
+
import capo_codeartifact.types.resource_policy
|
|
32
|
+
|
|
33
|
+
out["policy"] = capo_codeartifact.types.resource_policy.deserialize_json(
|
|
34
|
+
data["policy"]
|
|
35
|
+
)
|
|
36
|
+
return out
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeartifact#DeleteDomainRequest``."""
|
|
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
|
+
|
|
11
|
+
|
|
12
|
+
class DeleteDomainRequest(TypedDict, closed=True):
|
|
13
|
+
domain: "capo_codeartifact.types.domain_name.DomainName"
|
|
14
|
+
"""<p> The name of the domain to delete. </p>"""
|
|
15
|
+
domain_owner: NotRequired["capo_codeartifact.types.account_id.AccountId"]
|
|
16
|
+
"""<p> The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. </p>"""
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
# --- restJson1 ser/de ---
|
|
20
|
+
def serialize_json(value: DeleteDomainRequest) -> dict:
|
|
21
|
+
out: dict = {}
|
|
22
|
+
return out
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
def deserialize_json(data: dict) -> DeleteDomainRequest:
|
|
26
|
+
out: DeleteDomainRequest = {} # type: ignore[typeddict-item]
|
|
27
|
+
return out
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeartifact#DeleteDomainResult``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import NotRequired, TypedDict
|
|
6
|
+
|
|
7
|
+
if TYPE_CHECKING:
|
|
8
|
+
import capo_codeartifact.types.domain_description
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class DeleteDomainResult(TypedDict, closed=True):
|
|
12
|
+
domain: NotRequired["capo_codeartifact.types.domain_description.DomainDescription"]
|
|
13
|
+
"""<p> Contains information about the deleted domain after processing the request. </p>"""
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
# --- restJson1 ser/de ---
|
|
17
|
+
def serialize_json(value: DeleteDomainResult) -> dict:
|
|
18
|
+
out: dict = {}
|
|
19
|
+
if "domain" in value:
|
|
20
|
+
import capo_codeartifact.types.domain_description
|
|
21
|
+
|
|
22
|
+
out["domain"] = capo_codeartifact.types.domain_description.serialize_json(
|
|
23
|
+
value["domain"]
|
|
24
|
+
)
|
|
25
|
+
return out
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
def deserialize_json(data: dict) -> DeleteDomainResult:
|
|
29
|
+
out: DeleteDomainResult = {} # type: ignore[typeddict-item]
|
|
30
|
+
if data.get("domain") is not None:
|
|
31
|
+
import capo_codeartifact.types.domain_description
|
|
32
|
+
|
|
33
|
+
out["domain"] = capo_codeartifact.types.domain_description.deserialize_json(
|
|
34
|
+
data["domain"]
|
|
35
|
+
)
|
|
36
|
+
return out
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeartifact#DeletePackageGroupRequest``."""
|
|
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.string
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class DeletePackageGroupRequest(TypedDict, closed=True):
|
|
14
|
+
domain: "capo_codeartifact.types.domain_name.DomainName"
|
|
15
|
+
"""<p> The domain that contains the package group to be deleted. </p>"""
|
|
16
|
+
domain_owner: NotRequired["capo_codeartifact.types.account_id.AccountId"]
|
|
17
|
+
"""<p> The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. </p>"""
|
|
18
|
+
package_group: "capo_codeartifact.types.string.String"
|
|
19
|
+
"""<p>The pattern of the package group to be deleted.</p>"""
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# --- restJson1 ser/de ---
|
|
23
|
+
def serialize_json(value: DeletePackageGroupRequest) -> dict:
|
|
24
|
+
out: dict = {}
|
|
25
|
+
return out
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
def deserialize_json(data: dict) -> DeletePackageGroupRequest:
|
|
29
|
+
out: DeletePackageGroupRequest = {} # type: ignore[typeddict-item]
|
|
30
|
+
return out
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeartifact#DeletePackageGroupResult``."""
|
|
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_description
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class DeletePackageGroupResult(TypedDict, closed=True):
|
|
12
|
+
package_group: NotRequired[
|
|
13
|
+
"capo_codeartifact.types.package_group_description.PackageGroupDescription"
|
|
14
|
+
]
|
|
15
|
+
"""<p> Information about the deleted package group after processing the request. </p>"""
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
# --- restJson1 ser/de ---
|
|
19
|
+
def serialize_json(value: DeletePackageGroupResult) -> dict:
|
|
20
|
+
out: dict = {}
|
|
21
|
+
if "package_group" in value:
|
|
22
|
+
import capo_codeartifact.types.package_group_description
|
|
23
|
+
|
|
24
|
+
out["packageGroup"] = (
|
|
25
|
+
capo_codeartifact.types.package_group_description.serialize_json(
|
|
26
|
+
value["package_group"]
|
|
27
|
+
)
|
|
28
|
+
)
|
|
29
|
+
return out
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
def deserialize_json(data: dict) -> DeletePackageGroupResult:
|
|
33
|
+
out: DeletePackageGroupResult = {} # type: ignore[typeddict-item]
|
|
34
|
+
if data.get("packageGroup") is not None:
|
|
35
|
+
import capo_codeartifact.types.package_group_description
|
|
36
|
+
|
|
37
|
+
out["package_group"] = (
|
|
38
|
+
capo_codeartifact.types.package_group_description.deserialize_json(
|
|
39
|
+
data["packageGroup"]
|
|
40
|
+
)
|
|
41
|
+
)
|
|
42
|
+
return out
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeartifact#DeletePackageRequest``."""
|
|
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.repository_name
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class DeletePackageRequest(TypedDict, closed=True):
|
|
17
|
+
domain: "capo_codeartifact.types.domain_name.DomainName"
|
|
18
|
+
"""<p>The name of the domain that contains the package to delete.</p>"""
|
|
19
|
+
domain_owner: NotRequired["capo_codeartifact.types.account_id.AccountId"]
|
|
20
|
+
"""<p> The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. </p>"""
|
|
21
|
+
repository: "capo_codeartifact.types.repository_name.RepositoryName"
|
|
22
|
+
"""<p>The name of the repository that contains the package to delete.</p>"""
|
|
23
|
+
format: "capo_codeartifact.types.package_format.PackageFormat"
|
|
24
|
+
"""<p>The format of the requested package to delete.</p>"""
|
|
25
|
+
namespace: NotRequired["capo_codeartifact.types.package_namespace.PackageNamespace"]
|
|
26
|
+
"""<p>The namespace of the package to delete. The package component that specifies its namespace depends on its type. For example:</p> <note> <p>The namespace is required when deleting packages 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>"""
|
|
27
|
+
package: "capo_codeartifact.types.package_name.PackageName"
|
|
28
|
+
"""<p>The name of the package to delete.</p>"""
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
# --- restJson1 ser/de ---
|
|
32
|
+
def serialize_json(value: DeletePackageRequest) -> dict:
|
|
33
|
+
out: dict = {}
|
|
34
|
+
return out
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
def deserialize_json(data: dict) -> DeletePackageRequest:
|
|
38
|
+
out: DeletePackageRequest = {} # type: ignore[typeddict-item]
|
|
39
|
+
return out
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeartifact#DeletePackageResult``."""
|
|
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
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class DeletePackageResult(TypedDict, closed=True):
|
|
12
|
+
deleted_package: NotRequired[
|
|
13
|
+
"capo_codeartifact.types.package_summary.PackageSummary"
|
|
14
|
+
]
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# --- restJson1 ser/de ---
|
|
18
|
+
def serialize_json(value: DeletePackageResult) -> dict:
|
|
19
|
+
out: dict = {}
|
|
20
|
+
if "deleted_package" in value:
|
|
21
|
+
import capo_codeartifact.types.package_summary
|
|
22
|
+
|
|
23
|
+
out["deletedPackage"] = capo_codeartifact.types.package_summary.serialize_json(
|
|
24
|
+
value["deleted_package"]
|
|
25
|
+
)
|
|
26
|
+
return out
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
def deserialize_json(data: dict) -> DeletePackageResult:
|
|
30
|
+
out: DeletePackageResult = {} # type: ignore[typeddict-item]
|
|
31
|
+
if data.get("deletedPackage") is not None:
|
|
32
|
+
import capo_codeartifact.types.package_summary
|
|
33
|
+
|
|
34
|
+
out["deleted_package"] = (
|
|
35
|
+
capo_codeartifact.types.package_summary.deserialize_json(
|
|
36
|
+
data["deletedPackage"]
|
|
37
|
+
)
|
|
38
|
+
)
|
|
39
|
+
return out
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeartifact#DeletePackageVersionsRequest``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import NotRequired, TypedDict
|
|
6
|
+
|
|
7
|
+
from capo_codeartifact.errors import DeserializationError
|
|
8
|
+
|
|
9
|
+
if TYPE_CHECKING:
|
|
10
|
+
import capo_codeartifact.types.account_id
|
|
11
|
+
import capo_codeartifact.types.domain_name
|
|
12
|
+
import capo_codeartifact.types.package_format
|
|
13
|
+
import capo_codeartifact.types.package_name
|
|
14
|
+
import capo_codeartifact.types.package_namespace
|
|
15
|
+
import capo_codeartifact.types.package_version_list
|
|
16
|
+
import capo_codeartifact.types.package_version_status
|
|
17
|
+
import capo_codeartifact.types.repository_name
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class DeletePackageVersionsRequest(TypedDict, closed=True):
|
|
21
|
+
domain: "capo_codeartifact.types.domain_name.DomainName"
|
|
22
|
+
"""<p> The name of the domain that contains the package to delete. </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 package versions to delete. </p>"""
|
|
27
|
+
format: "capo_codeartifact.types.package_format.PackageFormat"
|
|
28
|
+
"""<p> The format of the package versions to delete. </p>"""
|
|
29
|
+
namespace: NotRequired["capo_codeartifact.types.package_namespace.PackageNamespace"]
|
|
30
|
+
"""<p>The namespace of the package versions to be deleted. 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>"""
|
|
31
|
+
package: "capo_codeartifact.types.package_name.PackageName"
|
|
32
|
+
"""<p> The name of the package with the versions to delete. </p>"""
|
|
33
|
+
versions: "capo_codeartifact.types.package_version_list.PackageVersionList"
|
|
34
|
+
"""<p> An array of strings that specify the versions of the package to delete. </p>"""
|
|
35
|
+
expected_status: NotRequired[
|
|
36
|
+
"capo_codeartifact.types.package_version_status.PackageVersionStatus"
|
|
37
|
+
]
|
|
38
|
+
"""<p> The expected status of the package version to delete. </p>"""
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
# --- restJson1 ser/de ---
|
|
42
|
+
def serialize_json(value: DeletePackageVersionsRequest) -> dict:
|
|
43
|
+
out: dict = {}
|
|
44
|
+
import capo_codeartifact.types.package_version_list
|
|
45
|
+
|
|
46
|
+
out["versions"] = capo_codeartifact.types.package_version_list.serialize_json(
|
|
47
|
+
value["versions"]
|
|
48
|
+
)
|
|
49
|
+
if "expected_status" in value:
|
|
50
|
+
import capo_codeartifact.types.package_version_status
|
|
51
|
+
|
|
52
|
+
out["expectedStatus"] = (
|
|
53
|
+
capo_codeartifact.types.package_version_status.serialize_json(
|
|
54
|
+
value["expected_status"]
|
|
55
|
+
)
|
|
56
|
+
)
|
|
57
|
+
return out
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
def deserialize_json(data: dict) -> DeletePackageVersionsRequest:
|
|
61
|
+
out: DeletePackageVersionsRequest = {} # type: ignore[typeddict-item]
|
|
62
|
+
if data.get("versions") is not None:
|
|
63
|
+
import capo_codeartifact.types.package_version_list
|
|
64
|
+
|
|
65
|
+
out["versions"] = capo_codeartifact.types.package_version_list.deserialize_json(
|
|
66
|
+
data["versions"]
|
|
67
|
+
)
|
|
68
|
+
else:
|
|
69
|
+
raise DeserializationError("DeletePackageVersionsRequest.versions required")
|
|
70
|
+
if data.get("expectedStatus") is not None:
|
|
71
|
+
import capo_codeartifact.types.package_version_status
|
|
72
|
+
|
|
73
|
+
out["expected_status"] = (
|
|
74
|
+
capo_codeartifact.types.package_version_status.deserialize_json(
|
|
75
|
+
data["expectedStatus"]
|
|
76
|
+
)
|
|
77
|
+
)
|
|
78
|
+
return out
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeartifact#DeletePackageVersionsResult``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import NotRequired, TypedDict
|
|
6
|
+
|
|
7
|
+
if TYPE_CHECKING:
|
|
8
|
+
import capo_codeartifact.types.package_version_error_map
|
|
9
|
+
import capo_codeartifact.types.successful_package_version_info_map
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class DeletePackageVersionsResult(TypedDict, closed=True):
|
|
13
|
+
successful_versions: NotRequired[
|
|
14
|
+
"capo_codeartifact.types.successful_package_version_info_map.SuccessfulPackageVersionInfoMap"
|
|
15
|
+
]
|
|
16
|
+
"""<p> A list of the package versions that were successfully deleted. The status of every successful version will be <code>Deleted</code>. </p>"""
|
|
17
|
+
failed_versions: NotRequired[
|
|
18
|
+
"capo_codeartifact.types.package_version_error_map.PackageVersionErrorMap"
|
|
19
|
+
]
|
|
20
|
+
"""<p> A <code>PackageVersionError</code> object that contains a map of errors codes for the deleted package that failed. The possible error codes are: </p> <ul> <li> <p> <code>ALREADY_EXISTS</code> </p> </li> <li> <p> <code>MISMATCHED_REVISION</code> </p> </li> <li> <p> <code>MISMATCHED_STATUS</code> </p> </li> <li> <p> <code>NOT_ALLOWED</code> </p> </li> <li> <p> <code>NOT_FOUND</code> </p> </li> <li> <p> <code>SKIPPED</code> </p> </li> </ul>"""
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
# --- restJson1 ser/de ---
|
|
24
|
+
def serialize_json(value: DeletePackageVersionsResult) -> dict:
|
|
25
|
+
out: dict = {}
|
|
26
|
+
if "successful_versions" in value:
|
|
27
|
+
import capo_codeartifact.types.successful_package_version_info_map
|
|
28
|
+
|
|
29
|
+
out["successfulVersions"] = (
|
|
30
|
+
capo_codeartifact.types.successful_package_version_info_map.serialize_json(
|
|
31
|
+
value["successful_versions"]
|
|
32
|
+
)
|
|
33
|
+
)
|
|
34
|
+
if "failed_versions" in value:
|
|
35
|
+
import capo_codeartifact.types.package_version_error_map
|
|
36
|
+
|
|
37
|
+
out["failedVersions"] = (
|
|
38
|
+
capo_codeartifact.types.package_version_error_map.serialize_json(
|
|
39
|
+
value["failed_versions"]
|
|
40
|
+
)
|
|
41
|
+
)
|
|
42
|
+
return out
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
def deserialize_json(data: dict) -> DeletePackageVersionsResult:
|
|
46
|
+
out: DeletePackageVersionsResult = {} # type: ignore[typeddict-item]
|
|
47
|
+
if data.get("successfulVersions") is not None:
|
|
48
|
+
import capo_codeartifact.types.successful_package_version_info_map
|
|
49
|
+
|
|
50
|
+
out["successful_versions"] = (
|
|
51
|
+
capo_codeartifact.types.successful_package_version_info_map.deserialize_json(
|
|
52
|
+
data["successfulVersions"]
|
|
53
|
+
)
|
|
54
|
+
)
|
|
55
|
+
if data.get("failedVersions") is not None:
|
|
56
|
+
import capo_codeartifact.types.package_version_error_map
|
|
57
|
+
|
|
58
|
+
out["failed_versions"] = (
|
|
59
|
+
capo_codeartifact.types.package_version_error_map.deserialize_json(
|
|
60
|
+
data["failedVersions"]
|
|
61
|
+
)
|
|
62
|
+
)
|
|
63
|
+
return out
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeartifact#DeleteRepositoryPermissionsPolicyRequest``."""
|
|
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.policy_revision
|
|
11
|
+
import capo_codeartifact.types.repository_name
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class DeleteRepositoryPermissionsPolicyRequest(TypedDict, closed=True):
|
|
15
|
+
domain: "capo_codeartifact.types.domain_name.DomainName"
|
|
16
|
+
"""<p> The name of the domain that contains the repository associated with the resource policy to be deleted. </p>"""
|
|
17
|
+
domain_owner: NotRequired["capo_codeartifact.types.account_id.AccountId"]
|
|
18
|
+
"""<p> The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. </p>"""
|
|
19
|
+
repository: "capo_codeartifact.types.repository_name.RepositoryName"
|
|
20
|
+
"""<p> The name of the repository that is associated with the resource policy to be deleted </p>"""
|
|
21
|
+
policy_revision: NotRequired[
|
|
22
|
+
"capo_codeartifact.types.policy_revision.PolicyRevision"
|
|
23
|
+
]
|
|
24
|
+
"""<p> The revision of the repository's resource policy to be deleted. This revision is used for optimistic locking, which prevents others from accidentally overwriting your changes to the repository's resource policy. </p>"""
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
# --- restJson1 ser/de ---
|
|
28
|
+
def serialize_json(value: DeleteRepositoryPermissionsPolicyRequest) -> dict:
|
|
29
|
+
out: dict = {}
|
|
30
|
+
return out
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
def deserialize_json(data: dict) -> DeleteRepositoryPermissionsPolicyRequest:
|
|
34
|
+
out: DeleteRepositoryPermissionsPolicyRequest = {} # type: ignore[typeddict-item]
|
|
35
|
+
return out
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeartifact#DeleteRepositoryPermissionsPolicyResult``."""
|
|
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.resource_policy
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class DeleteRepositoryPermissionsPolicyResult(TypedDict, closed=True):
|
|
12
|
+
policy: NotRequired["capo_codeartifact.types.resource_policy.ResourcePolicy"]
|
|
13
|
+
"""<p> Information about the deleted policy after processing the request. </p>"""
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
# --- restJson1 ser/de ---
|
|
17
|
+
def serialize_json(value: DeleteRepositoryPermissionsPolicyResult) -> dict:
|
|
18
|
+
out: dict = {}
|
|
19
|
+
if "policy" in value:
|
|
20
|
+
import capo_codeartifact.types.resource_policy
|
|
21
|
+
|
|
22
|
+
out["policy"] = capo_codeartifact.types.resource_policy.serialize_json(
|
|
23
|
+
value["policy"]
|
|
24
|
+
)
|
|
25
|
+
return out
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
def deserialize_json(data: dict) -> DeleteRepositoryPermissionsPolicyResult:
|
|
29
|
+
out: DeleteRepositoryPermissionsPolicyResult = {} # type: ignore[typeddict-item]
|
|
30
|
+
if data.get("policy") is not None:
|
|
31
|
+
import capo_codeartifact.types.resource_policy
|
|
32
|
+
|
|
33
|
+
out["policy"] = capo_codeartifact.types.resource_policy.deserialize_json(
|
|
34
|
+
data["policy"]
|
|
35
|
+
)
|
|
36
|
+
return out
|