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,39 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeartifact#Tag``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import TypedDict
|
|
6
|
+
|
|
7
|
+
from capo_codeartifact.errors import DeserializationError
|
|
8
|
+
|
|
9
|
+
if TYPE_CHECKING:
|
|
10
|
+
import capo_codeartifact.types.tag_key
|
|
11
|
+
import capo_codeartifact.types.tag_value
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class Tag(TypedDict, closed=True):
|
|
15
|
+
key: "capo_codeartifact.types.tag_key.TagKey"
|
|
16
|
+
"""<p>The tag key.</p>"""
|
|
17
|
+
value: "capo_codeartifact.types.tag_value.TagValue"
|
|
18
|
+
"""<p>The tag value.</p>"""
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
# --- restJson1 ser/de ---
|
|
22
|
+
def serialize_json(value: Tag) -> dict:
|
|
23
|
+
out: dict = {}
|
|
24
|
+
out["key"] = value["key"]
|
|
25
|
+
out["value"] = value["value"]
|
|
26
|
+
return out
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
def deserialize_json(data: dict) -> Tag:
|
|
30
|
+
out: Tag = {} # type: ignore[typeddict-item]
|
|
31
|
+
if data.get("key") is not None:
|
|
32
|
+
out["key"] = data["key"]
|
|
33
|
+
else:
|
|
34
|
+
raise DeserializationError("Tag.key required")
|
|
35
|
+
if data.get("value") is not None:
|
|
36
|
+
out["value"] = data["value"]
|
|
37
|
+
else:
|
|
38
|
+
raise DeserializationError("Tag.value required")
|
|
39
|
+
return out
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeartifact#TagKeyList``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING, TypeAlias
|
|
4
|
+
|
|
5
|
+
if TYPE_CHECKING:
|
|
6
|
+
import capo_codeartifact.types.tag_key
|
|
7
|
+
|
|
8
|
+
TagKeyList: TypeAlias = list["capo_codeartifact.types.tag_key.TagKey"]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
# --- restJson1 ser/de ---
|
|
12
|
+
def serialize_json(value: TagKeyList) -> list:
|
|
13
|
+
return list(value)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def deserialize_json(data: list) -> TagKeyList:
|
|
17
|
+
return [item for item in data if item is not None]
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeartifact#TagList``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING, TypeAlias
|
|
4
|
+
|
|
5
|
+
if TYPE_CHECKING:
|
|
6
|
+
import capo_codeartifact.types.tag
|
|
7
|
+
|
|
8
|
+
TagList: TypeAlias = list["capo_codeartifact.types.tag.Tag"]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
# --- restJson1 ser/de ---
|
|
12
|
+
def serialize_json(value: TagList) -> list:
|
|
13
|
+
import capo_codeartifact.types.tag
|
|
14
|
+
|
|
15
|
+
out: list = []
|
|
16
|
+
for item in value:
|
|
17
|
+
out.append(capo_codeartifact.types.tag.serialize_json(item))
|
|
18
|
+
return out
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
def deserialize_json(data: list) -> TagList:
|
|
22
|
+
import capo_codeartifact.types.tag
|
|
23
|
+
|
|
24
|
+
out: TagList = []
|
|
25
|
+
for item in data:
|
|
26
|
+
if item is None:
|
|
27
|
+
continue
|
|
28
|
+
out.append(capo_codeartifact.types.tag.deserialize_json(item))
|
|
29
|
+
return out
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeartifact#TagResourceRequest``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import TypedDict
|
|
6
|
+
|
|
7
|
+
from capo_codeartifact.errors import DeserializationError
|
|
8
|
+
|
|
9
|
+
if TYPE_CHECKING:
|
|
10
|
+
import capo_codeartifact.types.arn
|
|
11
|
+
import capo_codeartifact.types.tag_list
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class TagResourceRequest(TypedDict, closed=True):
|
|
15
|
+
resource_arn: "capo_codeartifact.types.arn.Arn"
|
|
16
|
+
"""<p>The Amazon Resource Name (ARN) of the resource that you want to add or update tags for.</p>"""
|
|
17
|
+
tags: "capo_codeartifact.types.tag_list.TagList"
|
|
18
|
+
"""<p>The tags you want to modify or add to the resource.</p>"""
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
# --- restJson1 ser/de ---
|
|
22
|
+
def serialize_json(value: TagResourceRequest) -> dict:
|
|
23
|
+
out: dict = {}
|
|
24
|
+
import capo_codeartifact.types.tag_list
|
|
25
|
+
|
|
26
|
+
out["tags"] = capo_codeartifact.types.tag_list.serialize_json(value["tags"])
|
|
27
|
+
return out
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
def deserialize_json(data: dict) -> TagResourceRequest:
|
|
31
|
+
out: TagResourceRequest = {} # type: ignore[typeddict-item]
|
|
32
|
+
if data.get("tags") is not None:
|
|
33
|
+
import capo_codeartifact.types.tag_list
|
|
34
|
+
|
|
35
|
+
out["tags"] = capo_codeartifact.types.tag_list.deserialize_json(data["tags"])
|
|
36
|
+
else:
|
|
37
|
+
raise DeserializationError("TagResourceRequest.tags required")
|
|
38
|
+
return out
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeartifact#TagResourceResult``."""
|
|
2
|
+
|
|
3
|
+
from typing_extensions import TypedDict
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class TagResourceResult(TypedDict, closed=True):
|
|
7
|
+
pass
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
# --- restJson1 ser/de ---
|
|
11
|
+
def serialize_json(value: TagResourceResult) -> dict:
|
|
12
|
+
out: dict = {}
|
|
13
|
+
return out
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def deserialize_json(data: dict) -> TagResourceResult:
|
|
17
|
+
out: TagResourceResult = {} # type: ignore[typeddict-item]
|
|
18
|
+
return out
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeartifact#Timestamp``."""
|
|
2
|
+
|
|
3
|
+
import datetime
|
|
4
|
+
from typing import TypeAlias
|
|
5
|
+
|
|
6
|
+
Timestamp: TypeAlias = datetime.datetime
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
# --- restJson1 ser/de ---
|
|
10
|
+
def serialize_json(value: Timestamp) -> float:
|
|
11
|
+
value = (
|
|
12
|
+
value.astimezone(datetime.timezone.utc)
|
|
13
|
+
if value.tzinfo
|
|
14
|
+
else value.replace(tzinfo=datetime.timezone.utc)
|
|
15
|
+
)
|
|
16
|
+
return value.timestamp()
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
def deserialize_json(data: float) -> Timestamp:
|
|
20
|
+
return datetime.datetime.fromtimestamp(float(data), tz=datetime.timezone.utc)
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeartifact#UntagResourceRequest``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import TypedDict
|
|
6
|
+
|
|
7
|
+
from capo_codeartifact.errors import DeserializationError
|
|
8
|
+
|
|
9
|
+
if TYPE_CHECKING:
|
|
10
|
+
import capo_codeartifact.types.arn
|
|
11
|
+
import capo_codeartifact.types.tag_key_list
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class UntagResourceRequest(TypedDict, closed=True):
|
|
15
|
+
resource_arn: "capo_codeartifact.types.arn.Arn"
|
|
16
|
+
"""<p>The Amazon Resource Name (ARN) of the resource that you want to remove tags from.</p>"""
|
|
17
|
+
tag_keys: "capo_codeartifact.types.tag_key_list.TagKeyList"
|
|
18
|
+
"""<p>The tag key for each tag that you want to remove from the resource.</p>"""
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
# --- restJson1 ser/de ---
|
|
22
|
+
def serialize_json(value: UntagResourceRequest) -> dict:
|
|
23
|
+
out: dict = {}
|
|
24
|
+
import capo_codeartifact.types.tag_key_list
|
|
25
|
+
|
|
26
|
+
out["tagKeys"] = capo_codeartifact.types.tag_key_list.serialize_json(
|
|
27
|
+
value["tag_keys"]
|
|
28
|
+
)
|
|
29
|
+
return out
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
def deserialize_json(data: dict) -> UntagResourceRequest:
|
|
33
|
+
out: UntagResourceRequest = {} # type: ignore[typeddict-item]
|
|
34
|
+
if data.get("tagKeys") is not None:
|
|
35
|
+
import capo_codeartifact.types.tag_key_list
|
|
36
|
+
|
|
37
|
+
out["tag_keys"] = capo_codeartifact.types.tag_key_list.deserialize_json(
|
|
38
|
+
data["tagKeys"]
|
|
39
|
+
)
|
|
40
|
+
else:
|
|
41
|
+
raise DeserializationError("UntagResourceRequest.tag_keys required")
|
|
42
|
+
return out
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeartifact#UntagResourceResult``."""
|
|
2
|
+
|
|
3
|
+
from typing_extensions import TypedDict
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class UntagResourceResult(TypedDict, closed=True):
|
|
7
|
+
pass
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
# --- restJson1 ser/de ---
|
|
11
|
+
def serialize_json(value: UntagResourceResult) -> dict:
|
|
12
|
+
out: dict = {}
|
|
13
|
+
return out
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def deserialize_json(data: dict) -> UntagResourceResult:
|
|
17
|
+
out: UntagResourceResult = {} # type: ignore[typeddict-item]
|
|
18
|
+
return out
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeartifact#UpdatePackageGroupOriginConfigurationRequest``."""
|
|
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.origin_restrictions
|
|
11
|
+
import capo_codeartifact.types.package_group_allowed_repository_list
|
|
12
|
+
import capo_codeartifact.types.package_group_pattern
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class UpdatePackageGroupOriginConfigurationRequest(TypedDict, closed=True):
|
|
16
|
+
domain: "capo_codeartifact.types.domain_name.DomainName"
|
|
17
|
+
"""<p> The name of the domain which contains the package group for which to update the origin configuration. </p>"""
|
|
18
|
+
domain_owner: NotRequired["capo_codeartifact.types.account_id.AccountId"]
|
|
19
|
+
"""<p> The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. </p>"""
|
|
20
|
+
package_group: "capo_codeartifact.types.package_group_pattern.PackageGroupPattern"
|
|
21
|
+
"""<p> The pattern of the package group for which to update the origin configuration. </p>"""
|
|
22
|
+
restrictions: NotRequired[
|
|
23
|
+
"capo_codeartifact.types.origin_restrictions.OriginRestrictions"
|
|
24
|
+
]
|
|
25
|
+
"""<p> The origin configuration settings that determine how package versions can enter repositories. </p>"""
|
|
26
|
+
add_allowed_repositories: NotRequired[
|
|
27
|
+
"capo_codeartifact.types.package_group_allowed_repository_list.PackageGroupAllowedRepositoryList"
|
|
28
|
+
]
|
|
29
|
+
"""<p>The repository name and restrictions to add to the allowed repository list of the specified package group.</p>"""
|
|
30
|
+
remove_allowed_repositories: NotRequired[
|
|
31
|
+
"capo_codeartifact.types.package_group_allowed_repository_list.PackageGroupAllowedRepositoryList"
|
|
32
|
+
]
|
|
33
|
+
"""<p>The repository name and restrictions to remove from the allowed repository list of the specified package group.</p>"""
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
# --- restJson1 ser/de ---
|
|
37
|
+
def serialize_json(value: UpdatePackageGroupOriginConfigurationRequest) -> dict:
|
|
38
|
+
out: dict = {}
|
|
39
|
+
if "restrictions" in value:
|
|
40
|
+
import capo_codeartifact.types.origin_restrictions
|
|
41
|
+
|
|
42
|
+
out["restrictions"] = (
|
|
43
|
+
capo_codeartifact.types.origin_restrictions.serialize_json(
|
|
44
|
+
value["restrictions"]
|
|
45
|
+
)
|
|
46
|
+
)
|
|
47
|
+
if "add_allowed_repositories" in value:
|
|
48
|
+
import capo_codeartifact.types.package_group_allowed_repository_list
|
|
49
|
+
|
|
50
|
+
out["addAllowedRepositories"] = (
|
|
51
|
+
capo_codeartifact.types.package_group_allowed_repository_list.serialize_json(
|
|
52
|
+
value["add_allowed_repositories"]
|
|
53
|
+
)
|
|
54
|
+
)
|
|
55
|
+
if "remove_allowed_repositories" in value:
|
|
56
|
+
import capo_codeartifact.types.package_group_allowed_repository_list
|
|
57
|
+
|
|
58
|
+
out["removeAllowedRepositories"] = (
|
|
59
|
+
capo_codeartifact.types.package_group_allowed_repository_list.serialize_json(
|
|
60
|
+
value["remove_allowed_repositories"]
|
|
61
|
+
)
|
|
62
|
+
)
|
|
63
|
+
return out
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
def deserialize_json(data: dict) -> UpdatePackageGroupOriginConfigurationRequest:
|
|
67
|
+
out: UpdatePackageGroupOriginConfigurationRequest = {} # type: ignore[typeddict-item]
|
|
68
|
+
if data.get("restrictions") is not None:
|
|
69
|
+
import capo_codeartifact.types.origin_restrictions
|
|
70
|
+
|
|
71
|
+
out["restrictions"] = (
|
|
72
|
+
capo_codeartifact.types.origin_restrictions.deserialize_json(
|
|
73
|
+
data["restrictions"]
|
|
74
|
+
)
|
|
75
|
+
)
|
|
76
|
+
if data.get("addAllowedRepositories") is not None:
|
|
77
|
+
import capo_codeartifact.types.package_group_allowed_repository_list
|
|
78
|
+
|
|
79
|
+
out["add_allowed_repositories"] = (
|
|
80
|
+
capo_codeartifact.types.package_group_allowed_repository_list.deserialize_json(
|
|
81
|
+
data["addAllowedRepositories"]
|
|
82
|
+
)
|
|
83
|
+
)
|
|
84
|
+
if data.get("removeAllowedRepositories") is not None:
|
|
85
|
+
import capo_codeartifact.types.package_group_allowed_repository_list
|
|
86
|
+
|
|
87
|
+
out["remove_allowed_repositories"] = (
|
|
88
|
+
capo_codeartifact.types.package_group_allowed_repository_list.deserialize_json(
|
|
89
|
+
data["removeAllowedRepositories"]
|
|
90
|
+
)
|
|
91
|
+
)
|
|
92
|
+
return out
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeartifact#UpdatePackageGroupOriginConfigurationResult``."""
|
|
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_allowed_repository_updates
|
|
9
|
+
import capo_codeartifact.types.package_group_description
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class UpdatePackageGroupOriginConfigurationResult(TypedDict, closed=True):
|
|
13
|
+
package_group: NotRequired[
|
|
14
|
+
"capo_codeartifact.types.package_group_description.PackageGroupDescription"
|
|
15
|
+
]
|
|
16
|
+
"""<p> The package group and information about it after processing the request. </p>"""
|
|
17
|
+
allowed_repository_updates: NotRequired[
|
|
18
|
+
"capo_codeartifact.types.package_group_allowed_repository_updates.PackageGroupAllowedRepositoryUpdates"
|
|
19
|
+
]
|
|
20
|
+
"""<p>Information about the updated allowed repositories after processing the request.</p>"""
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
# --- restJson1 ser/de ---
|
|
24
|
+
def serialize_json(value: UpdatePackageGroupOriginConfigurationResult) -> dict:
|
|
25
|
+
out: dict = {}
|
|
26
|
+
if "package_group" in value:
|
|
27
|
+
import capo_codeartifact.types.package_group_description
|
|
28
|
+
|
|
29
|
+
out["packageGroup"] = (
|
|
30
|
+
capo_codeartifact.types.package_group_description.serialize_json(
|
|
31
|
+
value["package_group"]
|
|
32
|
+
)
|
|
33
|
+
)
|
|
34
|
+
if "allowed_repository_updates" in value:
|
|
35
|
+
import capo_codeartifact.types.package_group_allowed_repository_updates
|
|
36
|
+
|
|
37
|
+
out["allowedRepositoryUpdates"] = (
|
|
38
|
+
capo_codeartifact.types.package_group_allowed_repository_updates.serialize_json(
|
|
39
|
+
value["allowed_repository_updates"]
|
|
40
|
+
)
|
|
41
|
+
)
|
|
42
|
+
return out
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
def deserialize_json(data: dict) -> UpdatePackageGroupOriginConfigurationResult:
|
|
46
|
+
out: UpdatePackageGroupOriginConfigurationResult = {} # type: ignore[typeddict-item]
|
|
47
|
+
if data.get("packageGroup") is not None:
|
|
48
|
+
import capo_codeartifact.types.package_group_description
|
|
49
|
+
|
|
50
|
+
out["package_group"] = (
|
|
51
|
+
capo_codeartifact.types.package_group_description.deserialize_json(
|
|
52
|
+
data["packageGroup"]
|
|
53
|
+
)
|
|
54
|
+
)
|
|
55
|
+
if data.get("allowedRepositoryUpdates") is not None:
|
|
56
|
+
import capo_codeartifact.types.package_group_allowed_repository_updates
|
|
57
|
+
|
|
58
|
+
out["allowed_repository_updates"] = (
|
|
59
|
+
capo_codeartifact.types.package_group_allowed_repository_updates.deserialize_json(
|
|
60
|
+
data["allowedRepositoryUpdates"]
|
|
61
|
+
)
|
|
62
|
+
)
|
|
63
|
+
return out
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeartifact#UpdatePackageGroupRequest``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import NotRequired, TypedDict
|
|
6
|
+
|
|
7
|
+
from capo_codeartifact.errors import DeserializationError
|
|
8
|
+
|
|
9
|
+
if TYPE_CHECKING:
|
|
10
|
+
import capo_codeartifact.types.account_id
|
|
11
|
+
import capo_codeartifact.types.description
|
|
12
|
+
import capo_codeartifact.types.domain_name
|
|
13
|
+
import capo_codeartifact.types.package_group_contact_info
|
|
14
|
+
import capo_codeartifact.types.package_group_pattern
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class UpdatePackageGroupRequest(TypedDict, closed=True):
|
|
18
|
+
domain: "capo_codeartifact.types.domain_name.DomainName"
|
|
19
|
+
"""<p> The name of the domain which contains the package group to be updated. </p>"""
|
|
20
|
+
domain_owner: NotRequired["capo_codeartifact.types.account_id.AccountId"]
|
|
21
|
+
"""<p> The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. </p>"""
|
|
22
|
+
package_group: "capo_codeartifact.types.package_group_pattern.PackageGroupPattern"
|
|
23
|
+
"""<p> The pattern of the package group to be updated. </p>"""
|
|
24
|
+
contact_info: NotRequired[
|
|
25
|
+
"capo_codeartifact.types.package_group_contact_info.PackageGroupContactInfo"
|
|
26
|
+
]
|
|
27
|
+
"""<p> Contact information which you want to update the requested package group with. </p>"""
|
|
28
|
+
description: NotRequired["capo_codeartifact.types.description.Description"]
|
|
29
|
+
"""<p> The description you want to update the requested package group with. </p>"""
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
# --- restJson1 ser/de ---
|
|
33
|
+
def serialize_json(value: UpdatePackageGroupRequest) -> dict:
|
|
34
|
+
out: dict = {}
|
|
35
|
+
out["packageGroup"] = value["package_group"]
|
|
36
|
+
if "contact_info" in value:
|
|
37
|
+
out["contactInfo"] = value["contact_info"]
|
|
38
|
+
if "description" in value:
|
|
39
|
+
out["description"] = value["description"]
|
|
40
|
+
return out
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
def deserialize_json(data: dict) -> UpdatePackageGroupRequest:
|
|
44
|
+
out: UpdatePackageGroupRequest = {} # type: ignore[typeddict-item]
|
|
45
|
+
if data.get("packageGroup") is not None:
|
|
46
|
+
out["package_group"] = data["packageGroup"]
|
|
47
|
+
else:
|
|
48
|
+
raise DeserializationError("UpdatePackageGroupRequest.package_group required")
|
|
49
|
+
if data.get("contactInfo") is not None:
|
|
50
|
+
out["contact_info"] = data["contactInfo"]
|
|
51
|
+
if data.get("description") is not None:
|
|
52
|
+
out["description"] = data["description"]
|
|
53
|
+
return out
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeartifact#UpdatePackageGroupResult``."""
|
|
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 UpdatePackageGroupResult(TypedDict, closed=True):
|
|
12
|
+
package_group: NotRequired[
|
|
13
|
+
"capo_codeartifact.types.package_group_description.PackageGroupDescription"
|
|
14
|
+
]
|
|
15
|
+
"""<p> The package group and information about it after the request has been processed. </p>"""
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
# --- restJson1 ser/de ---
|
|
19
|
+
def serialize_json(value: UpdatePackageGroupResult) -> 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) -> UpdatePackageGroupResult:
|
|
33
|
+
out: UpdatePackageGroupResult = {} # 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,120 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.codeartifact#UpdatePackageVersionsStatusRequest``."""
|
|
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_revision_map
|
|
17
|
+
import capo_codeartifact.types.package_version_status
|
|
18
|
+
import capo_codeartifact.types.repository_name
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class UpdatePackageVersionsStatusRequest(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 package versions with a status to be updated. </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 repository that contains the package versions with the status you want to update. </p>"""
|
|
28
|
+
format: "capo_codeartifact.types.package_format.PackageFormat"
|
|
29
|
+
"""<p> A format that specifies the type of the package with the statuses to update. </p>"""
|
|
30
|
+
namespace: NotRequired["capo_codeartifact.types.package_namespace.PackageNamespace"]
|
|
31
|
+
"""<p>The namespace of the package version to be updated. 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>"""
|
|
32
|
+
package: "capo_codeartifact.types.package_name.PackageName"
|
|
33
|
+
"""<p> The name of the package with the version statuses to update. </p>"""
|
|
34
|
+
versions: "capo_codeartifact.types.package_version_list.PackageVersionList"
|
|
35
|
+
"""<p> An array of strings that specify the versions of the package with the statuses to update. </p>"""
|
|
36
|
+
version_revisions: NotRequired[
|
|
37
|
+
"capo_codeartifact.types.package_version_revision_map.PackageVersionRevisionMap"
|
|
38
|
+
]
|
|
39
|
+
"""<p> A map of package versions and package version revisions. The map <code>key</code> is the package version (for example, <code>3.5.2</code>), and the map <code>value</code> is the package version revision. </p>"""
|
|
40
|
+
expected_status: NotRequired[
|
|
41
|
+
"capo_codeartifact.types.package_version_status.PackageVersionStatus"
|
|
42
|
+
]
|
|
43
|
+
"""<p> The package version’s expected status before it is updated. If <code>expectedStatus</code> is provided, the package version's status is updated only if its status at the time <code>UpdatePackageVersionsStatus</code> is called matches <code>expectedStatus</code>. </p>"""
|
|
44
|
+
target_status: "capo_codeartifact.types.package_version_status.PackageVersionStatus"
|
|
45
|
+
"""<p> The status you want to change the package version status to. </p>"""
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
# --- restJson1 ser/de ---
|
|
49
|
+
def serialize_json(value: UpdatePackageVersionsStatusRequest) -> dict:
|
|
50
|
+
out: dict = {}
|
|
51
|
+
import capo_codeartifact.types.package_version_list
|
|
52
|
+
|
|
53
|
+
out["versions"] = capo_codeartifact.types.package_version_list.serialize_json(
|
|
54
|
+
value["versions"]
|
|
55
|
+
)
|
|
56
|
+
if "version_revisions" in value:
|
|
57
|
+
import capo_codeartifact.types.package_version_revision_map
|
|
58
|
+
|
|
59
|
+
out["versionRevisions"] = (
|
|
60
|
+
capo_codeartifact.types.package_version_revision_map.serialize_json(
|
|
61
|
+
value["version_revisions"]
|
|
62
|
+
)
|
|
63
|
+
)
|
|
64
|
+
if "expected_status" in value:
|
|
65
|
+
import capo_codeartifact.types.package_version_status
|
|
66
|
+
|
|
67
|
+
out["expectedStatus"] = (
|
|
68
|
+
capo_codeartifact.types.package_version_status.serialize_json(
|
|
69
|
+
value["expected_status"]
|
|
70
|
+
)
|
|
71
|
+
)
|
|
72
|
+
import capo_codeartifact.types.package_version_status
|
|
73
|
+
|
|
74
|
+
out["targetStatus"] = capo_codeartifact.types.package_version_status.serialize_json(
|
|
75
|
+
value["target_status"]
|
|
76
|
+
)
|
|
77
|
+
return out
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
def deserialize_json(data: dict) -> UpdatePackageVersionsStatusRequest:
|
|
81
|
+
out: UpdatePackageVersionsStatusRequest = {} # type: ignore[typeddict-item]
|
|
82
|
+
if data.get("versions") is not None:
|
|
83
|
+
import capo_codeartifact.types.package_version_list
|
|
84
|
+
|
|
85
|
+
out["versions"] = capo_codeartifact.types.package_version_list.deserialize_json(
|
|
86
|
+
data["versions"]
|
|
87
|
+
)
|
|
88
|
+
else:
|
|
89
|
+
raise DeserializationError(
|
|
90
|
+
"UpdatePackageVersionsStatusRequest.versions required"
|
|
91
|
+
)
|
|
92
|
+
if data.get("versionRevisions") is not None:
|
|
93
|
+
import capo_codeartifact.types.package_version_revision_map
|
|
94
|
+
|
|
95
|
+
out["version_revisions"] = (
|
|
96
|
+
capo_codeartifact.types.package_version_revision_map.deserialize_json(
|
|
97
|
+
data["versionRevisions"]
|
|
98
|
+
)
|
|
99
|
+
)
|
|
100
|
+
if data.get("expectedStatus") is not None:
|
|
101
|
+
import capo_codeartifact.types.package_version_status
|
|
102
|
+
|
|
103
|
+
out["expected_status"] = (
|
|
104
|
+
capo_codeartifact.types.package_version_status.deserialize_json(
|
|
105
|
+
data["expectedStatus"]
|
|
106
|
+
)
|
|
107
|
+
)
|
|
108
|
+
if data.get("targetStatus") is not None:
|
|
109
|
+
import capo_codeartifact.types.package_version_status
|
|
110
|
+
|
|
111
|
+
out["target_status"] = (
|
|
112
|
+
capo_codeartifact.types.package_version_status.deserialize_json(
|
|
113
|
+
data["targetStatus"]
|
|
114
|
+
)
|
|
115
|
+
)
|
|
116
|
+
else:
|
|
117
|
+
raise DeserializationError(
|
|
118
|
+
"UpdatePackageVersionsStatusRequest.target_status required"
|
|
119
|
+
)
|
|
120
|
+
return out
|