capo-elementalinference 0.7.0__tar.gz → 0.9.0__tar.gz
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_elementalinference-0.7.0/src/capo_elementalinference.egg-info → capo_elementalinference-0.9.0}/PKG-INFO +10 -2
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/README.md +5 -1
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/pyproject.toml +7 -1
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/__init__.py +12 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/_auth/_providers.py +118 -19
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/errors/access_denied_exception.py +2 -2
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/errors/conflict_exception.py +2 -2
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/errors/gateway_timed_out_exception.py +2 -2
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/errors/internal_server_error_exception.py +2 -2
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/errors/resource_not_found_exception.py +2 -2
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/errors/service_quota_exceeded_exception.py +2 -2
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/errors/service_unavailable_exception.py +2 -2
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/errors/too_many_request_exception.py +2 -2
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/errors/validation_exception.py +2 -2
- capo_elementalinference-0.9.0/src/capo_elementalinference/types/_unknown.py +34 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/aspect_ratio.py +2 -4
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/associate_feed_request.py +6 -11
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/associate_feed_response.py +2 -4
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/create_dictionary_request.py +6 -4
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/create_dictionary_response.py +13 -7
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/create_feed_request.py +2 -4
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/create_feed_response.py +10 -8
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/create_output.py +11 -5
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/data_source_configuration.py +1 -3
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/delete_dictionary_response.py +7 -5
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/delete_feed_response.py +7 -5
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/dictionary_summary.py +13 -7
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/disassociate_feed_request.py +5 -10
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/disassociate_feed_response.py +2 -4
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/feed_association.py +1 -3
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/feed_summary.py +8 -6
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/fixture_summary.py +4 -6
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/get_dictionary_response.py +13 -7
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/get_feed_policy_response.py +1 -3
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/get_feed_response.py +10 -8
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/get_fixture_response.py +4 -6
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/get_output.py +11 -5
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/list_dictionaries_response.py +1 -3
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/list_feeds_response.py +1 -3
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/output_config.py +12 -1
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/put_feed_policy_request.py +1 -3
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/search_filter.py +6 -4
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/search_fixtures_request.py +6 -4
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/search_fixtures_response.py +1 -3
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/subtitling_config.py +6 -3
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/tag_resource_request.py +1 -3
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/template_group.py +2 -4
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/update_dictionary_response.py +13 -7
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/update_feed_request.py +2 -4
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/update_feed_response.py +10 -8
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/update_output.py +11 -5
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0/src/capo_elementalinference.egg-info}/PKG-INFO +10 -2
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference.egg-info/SOURCES.txt +1 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/LICENSE +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/setup.cfg +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/_async.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/_auth/_identity.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/_auth/_signers.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/_auth/_sigv4.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/_auth/_zapros_handler.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/_aws.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/_body.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/_iter.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/_operations/elemental_inference/associate_feed.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/_operations/elemental_inference/create_dictionary.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/_operations/elemental_inference/create_feed.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/_operations/elemental_inference/delete_dictionary.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/_operations/elemental_inference/delete_feed.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/_operations/elemental_inference/delete_feed_policy.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/_operations/elemental_inference/disassociate_feed.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/_operations/elemental_inference/export_dictionary_entries.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/_operations/elemental_inference/get_dictionary.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/_operations/elemental_inference/get_feed.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/_operations/elemental_inference/get_feed_policy.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/_operations/elemental_inference/get_fixture.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/_operations/elemental_inference/list_dictionaries.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/_operations/elemental_inference/list_feeds.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/_operations/elemental_inference/list_tags_for_resource.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/_operations/elemental_inference/put_feed_policy.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/_operations/elemental_inference/search_fixtures.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/_operations/elemental_inference/tag_resource.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/_operations/elemental_inference/untag_resource.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/_operations/elemental_inference/update_dictionary.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/_operations/elemental_inference/update_feed.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/_pagination.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/_protocol/__init__.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/_protocol/errors.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/_protocol/eventstream.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/_protocol/serialize.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/_protocol/xml.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/_resources/elemental_inference/dictionary_resource.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/_resources/elemental_inference/feed_resource.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/_rule_engine/__init__.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/_rule_engine/_aws_partition.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/_rule_engine/_endpoint_rule_set.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/_rule_engine/_endpoint_runtime.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/_services/_aws_config.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/_services/_pipeline.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/_services/async_elemental_inference.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/_services/elemental_inference.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/errors/__init__.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/errors/_base.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/py.typed +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/_prelude/blob.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/_prelude/timestamp.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/associated_resource_name.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/clipping_config.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/competitor.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/competitor_list.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/contextual_metadata_config.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/create_output_list.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/cropping_config.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/data_source_sport.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/delete_dictionary_request.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/delete_feed_policy_request.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/delete_feed_request.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/dictionary_arn.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/dictionary_entries_payload.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/dictionary_id.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/dictionary_language.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/dictionary_status.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/dictionary_summary_list.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/export_dictionary_entries_request.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/export_dictionary_entries_response.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/extended_analysis_mode.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/feed_arn.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/feed_id.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/feed_references.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/feed_status.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/feed_summary_list.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/filter_name.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/filter_value.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/filter_value_list.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/fixture_date.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/fixture_id.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/fixture_summary_list.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/get_dictionary_request.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/get_feed_policy_request.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/get_feed_request.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/get_fixture_request.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/get_output_list.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/iam_role_arn.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/list_dictionaries_request.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/list_feeds_request.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/list_tags_for_resource_request.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/list_tags_for_resource_response.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/output_status.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/policy_document.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/profanity_filter_mode.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/put_feed_policy_response.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/resource_arn.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/resource_description.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/resource_name.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/s3_uri.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/search_filter_list.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/string_list.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/summary_generation_mode.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/tag_key.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/tag_key_list.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/tag_map.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/tag_value.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/template_group_list.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/template_uri_list.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/transcription_language.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/untag_resource_request.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/update_dictionary_request.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference/types/update_output_list.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference.egg-info/dependency_links.txt +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference.egg-info/requires.txt +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/src/capo_elementalinference.egg-info/top_level.txt +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/tests/test_body.py +0 -0
- {capo_elementalinference-0.7.0 → capo_elementalinference-0.9.0}/tests/test_sigv4.py +0 -0
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: capo-elementalinference
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.9.0
|
|
4
4
|
Summary: Python SDK for AWS Elementalinference.
|
|
5
|
+
Project-URL: Homepage, https://capo-sdk.dev/
|
|
6
|
+
Project-URL: Documentation, https://capo-sdk.dev/services/elementalinference/
|
|
7
|
+
Project-URL: Repository, https://github.com/kap-sh/capo/tree/main/services/elementalinference
|
|
8
|
+
Project-URL: Changelog, https://github.com/kap-sh/capo/blob/main/services/elementalinference/CHANGELOG.md
|
|
5
9
|
Classifier: Development Status :: 4 - Beta
|
|
6
10
|
Classifier: Intended Audience :: Developers
|
|
7
11
|
Classifier: License :: OSI Approved :: MIT License
|
|
@@ -27,7 +31,11 @@ Requires-Dist: capo-sso-oidc>=0.2.0; extra == "sso"
|
|
|
27
31
|
Requires-Dist: capo-sts>=0.3.0; extra == "sso"
|
|
28
32
|
Dynamic: license-file
|
|
29
33
|
|
|
30
|
-
#
|
|
34
|
+
# capo-elementalinference: typed, async Python SDK for AWS Elementalinference
|
|
35
|
+
|
|
36
|
+
`capo-elementalinference` is a typed Python SDK for AWS Elementalinference. It has an async client, `AsyncElementalInferenceClient`, for asyncio and trio, and a sync client, `ElementalInferenceClient`, with the same methods. Requests and responses are typed with TypedDicts, so your editor and type checker know every field.
|
|
37
|
+
|
|
38
|
+
It is part of [capo](https://capo-sdk.dev/), a community-driven alternative to boto3 and aioboto3, built on its own HTTP stack instead of botocore and generated from the official AWS Smithy models. Documentation: [https://capo-sdk.dev/services/elementalinference/](https://capo-sdk.dev/services/elementalinference/)
|
|
31
39
|
|
|
32
40
|
## Installation
|
|
33
41
|
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
#
|
|
1
|
+
# capo-elementalinference: typed, async Python SDK for AWS Elementalinference
|
|
2
|
+
|
|
3
|
+
`capo-elementalinference` is a typed Python SDK for AWS Elementalinference. It has an async client, `AsyncElementalInferenceClient`, for asyncio and trio, and a sync client, `ElementalInferenceClient`, with the same methods. Requests and responses are typed with TypedDicts, so your editor and type checker know every field.
|
|
4
|
+
|
|
5
|
+
It is part of [capo](https://capo-sdk.dev/), a community-driven alternative to boto3 and aioboto3, built on its own HTTP stack instead of botocore and generated from the official AWS Smithy models. Documentation: [https://capo-sdk.dev/services/elementalinference/](https://capo-sdk.dev/services/elementalinference/)
|
|
2
6
|
|
|
3
7
|
## Installation
|
|
4
8
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "capo-elementalinference"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.9.0"
|
|
4
4
|
description = "Python SDK for AWS Elementalinference."
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
requires-python = ">=3.10"
|
|
@@ -23,6 +23,12 @@ dependencies = [
|
|
|
23
23
|
"zapros>=0.21.0",
|
|
24
24
|
]
|
|
25
25
|
|
|
26
|
+
[project.urls]
|
|
27
|
+
Homepage = "https://capo-sdk.dev/"
|
|
28
|
+
Documentation = "https://capo-sdk.dev/services/elementalinference/"
|
|
29
|
+
Repository = "https://github.com/kap-sh/capo/tree/main/services/elementalinference"
|
|
30
|
+
Changelog = "https://github.com/kap-sh/capo/blob/main/services/elementalinference/CHANGELOG.md"
|
|
31
|
+
|
|
26
32
|
[project.optional-dependencies]
|
|
27
33
|
# Async file request bodies via Body.async_from_path
|
|
28
34
|
anyio = ["anyio>=3.0"]
|
|
@@ -16,6 +16,9 @@ from ._auth._providers import (
|
|
|
16
16
|
from ._auth._providers import (
|
|
17
17
|
ChainedProvider as ChainedProvider,
|
|
18
18
|
)
|
|
19
|
+
from ._auth._providers import (
|
|
20
|
+
CredentialProcessError as CredentialProcessError,
|
|
21
|
+
)
|
|
19
22
|
from ._auth._providers import (
|
|
20
23
|
CredentialsProvider as CredentialsProvider,
|
|
21
24
|
)
|
|
@@ -31,6 +34,9 @@ from ._auth._providers import (
|
|
|
31
34
|
from ._auth._providers import (
|
|
32
35
|
MissingDependencyError as MissingDependencyError,
|
|
33
36
|
)
|
|
37
|
+
from ._auth._providers import (
|
|
38
|
+
ProcessCredentialsProvider as ProcessCredentialsProvider,
|
|
39
|
+
)
|
|
34
40
|
from ._auth._providers import (
|
|
35
41
|
ProfileCredentialsProvider as ProfileCredentialsProvider,
|
|
36
42
|
)
|
|
@@ -73,3 +79,9 @@ from ._services.async_elemental_inference import (
|
|
|
73
79
|
from ._services.elemental_inference import (
|
|
74
80
|
ElementalInferenceClient as ElementalInferenceClient,
|
|
75
81
|
)
|
|
82
|
+
from .types._unknown import (
|
|
83
|
+
UnknownEvent as UnknownEvent,
|
|
84
|
+
)
|
|
85
|
+
from .types._unknown import (
|
|
86
|
+
UnknownUnionMember as UnknownUnionMember,
|
|
87
|
+
)
|
|
@@ -4,6 +4,7 @@ import configparser
|
|
|
4
4
|
import hashlib
|
|
5
5
|
import json
|
|
6
6
|
import os
|
|
7
|
+
import subprocess
|
|
7
8
|
import time
|
|
8
9
|
from abc import abstractmethod
|
|
9
10
|
from dataclasses import dataclass
|
|
@@ -59,6 +60,10 @@ class IdentityNotFound(Exception):
|
|
|
59
60
|
"""Raised when a provider cannot resolve an identity. Chain continues."""
|
|
60
61
|
|
|
61
62
|
|
|
63
|
+
class CredentialProcessError(Exception):
|
|
64
|
+
"""Raised when a profile's `credential_process` fails or prints unusable output. Chain stops."""
|
|
65
|
+
|
|
66
|
+
|
|
62
67
|
class MissingDependencyError(Exception):
|
|
63
68
|
"""Raised when a provider needs the `sso` extra but it is not installed."""
|
|
64
69
|
|
|
@@ -186,13 +191,27 @@ class ProfileCredentialsProvider(CredentialsProvider):
|
|
|
186
191
|
self, credentials_file: Path | None = None, profile: str | None = None
|
|
187
192
|
) -> None:
|
|
188
193
|
self._profile = profile or active_profile()
|
|
189
|
-
self._cred_file = credentials_file or
|
|
190
|
-
os.environ.get("AWS_SHARED_CREDENTIALS_FILE")
|
|
191
|
-
or Path.home() / ".aws" / "credentials"
|
|
192
|
-
)
|
|
194
|
+
self._cred_file = credentials_file or _shared_credentials_file()
|
|
193
195
|
|
|
194
196
|
def resolve_identity(self) -> Credentials:
|
|
195
|
-
|
|
197
|
+
from_config, _ = _load_profile(self._profile)
|
|
198
|
+
from_credentials_file = _credentials_file_section(
|
|
199
|
+
self._profile, self._cred_file
|
|
200
|
+
)
|
|
201
|
+
section = {**from_config, **from_credentials_file}
|
|
202
|
+
if not section:
|
|
203
|
+
raise IdentityNotFound(
|
|
204
|
+
f"profile {self._profile!r} not found in credentials/config files"
|
|
205
|
+
)
|
|
206
|
+
# botocore's order: keys from the credentials file, then credential_process, then keys from the
|
|
207
|
+
# config file, so a profile with a process only takes its keys from the credentials file
|
|
208
|
+
if "credential_process" in section and not (
|
|
209
|
+
from_credentials_file.get("aws_access_key_id")
|
|
210
|
+
and from_credentials_file.get("aws_secret_access_key")
|
|
211
|
+
):
|
|
212
|
+
raise IdentityNotFound(
|
|
213
|
+
f"profile {self._profile!r}: credential_process comes before the keys in the config file"
|
|
214
|
+
)
|
|
196
215
|
ak = section.get("aws_access_key_id")
|
|
197
216
|
sk = section.get("aws_secret_access_key")
|
|
198
217
|
if not ak or not sk:
|
|
@@ -205,19 +224,94 @@ class ProfileCredentialsProvider(CredentialsProvider):
|
|
|
205
224
|
out["session_token"] = token
|
|
206
225
|
return out
|
|
207
226
|
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
227
|
+
|
|
228
|
+
class ProcessCredentialsProvider(CredentialsProvider):
|
|
229
|
+
"""Run the profile's ``credential_process`` command and read the credentials it prints.
|
|
230
|
+
|
|
231
|
+
This is how helpers such as ``aws-sso-cli`` hand out short-term credentials. The command
|
|
232
|
+
runs through the system shell, as in the Rust, Kotlin and Swift SDKs, so a quoted Windows path
|
|
233
|
+
works as written, and it must print the JSON document the AWS SDKs define (``Version`` 1).
|
|
234
|
+
The key is read from the credentials file as well as the config file. A profile without
|
|
235
|
+
``credential_process`` is skipped; a command that fails or outlives the timeout stops the chain.
|
|
236
|
+
"""
|
|
237
|
+
|
|
238
|
+
def __init__(
|
|
239
|
+
self,
|
|
240
|
+
credentials_file: Path | None = None,
|
|
241
|
+
profile: str | None = None,
|
|
242
|
+
timeout: float = 60.0,
|
|
243
|
+
) -> None:
|
|
244
|
+
self._profile = profile or active_profile()
|
|
245
|
+
self._cred_file = credentials_file or _shared_credentials_file()
|
|
246
|
+
self._timeout = timeout
|
|
247
|
+
|
|
248
|
+
def resolve_identity(self) -> Credentials:
|
|
249
|
+
section = _load_merged_profile(self._profile, self._cred_file)
|
|
250
|
+
command = section.get("credential_process")
|
|
251
|
+
if not command:
|
|
252
|
+
raise IdentityNotFound(f"profile {self._profile!r}: no credential_process")
|
|
253
|
+
try:
|
|
254
|
+
# the shell is sh -c on POSIX and cmd.exe /c on Windows, which parses the path natively
|
|
255
|
+
result = subprocess.run(
|
|
256
|
+
command,
|
|
257
|
+
shell=True,
|
|
258
|
+
capture_output=True,
|
|
259
|
+
text=True,
|
|
260
|
+
check=False,
|
|
261
|
+
timeout=self._timeout,
|
|
262
|
+
)
|
|
263
|
+
except subprocess.TimeoutExpired:
|
|
264
|
+
raise CredentialProcessError(
|
|
265
|
+
f"profile {self._profile!r}: credential_process did not finish within {self._timeout} seconds"
|
|
266
|
+
) from None
|
|
267
|
+
except OSError as e:
|
|
268
|
+
raise CredentialProcessError(f"profile {self._profile!r}: {e}") from e
|
|
269
|
+
# stdout carries the secret, so only stderr ever goes into an error message
|
|
270
|
+
if result.returncode != 0:
|
|
271
|
+
raise CredentialProcessError(
|
|
272
|
+
f"profile {self._profile!r}: credential_process exited with {result.returncode}: {result.stderr.strip()}"
|
|
273
|
+
)
|
|
274
|
+
try:
|
|
275
|
+
data = json.loads(result.stdout)
|
|
276
|
+
except ValueError:
|
|
277
|
+
raise CredentialProcessError(
|
|
278
|
+
f"profile {self._profile!r}: credential_process did not print JSON"
|
|
279
|
+
) from None
|
|
280
|
+
if not isinstance(data, dict) or data.get("Version") != 1:
|
|
281
|
+
raise CredentialProcessError(
|
|
282
|
+
f"profile {self._profile!r}: credential_process output must be a JSON object with Version 1"
|
|
219
283
|
)
|
|
220
|
-
|
|
284
|
+
try:
|
|
285
|
+
return _credentials_from_json(data, token_key="SessionToken")
|
|
286
|
+
except IdentityNotFound as e:
|
|
287
|
+
raise CredentialProcessError(f"profile {self._profile!r}: {e}") from None
|
|
288
|
+
except ValueError:
|
|
289
|
+
raise CredentialProcessError(
|
|
290
|
+
f"profile {self._profile!r}: credential_process printed an invalid Expiration"
|
|
291
|
+
) from None
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
def _shared_credentials_file() -> Path:
|
|
295
|
+
return Path(
|
|
296
|
+
os.environ.get("AWS_SHARED_CREDENTIALS_FILE")
|
|
297
|
+
or Path.home() / ".aws" / "credentials"
|
|
298
|
+
)
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
def _load_merged_profile(profile: str, credentials_file: Path) -> dict[str, str]:
|
|
302
|
+
"""The profile's keys from the config file, overlaid by the credentials file, as the AWS SDKs merge them."""
|
|
303
|
+
# config-file profile reuses the loader from _services/_aws_config
|
|
304
|
+
merged, _ = _load_profile(profile)
|
|
305
|
+
merged.update(_credentials_file_section(profile, credentials_file))
|
|
306
|
+
return merged
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
def _credentials_file_section(profile: str, credentials_file: Path) -> dict[str, str]:
|
|
310
|
+
if not credentials_file.is_file():
|
|
311
|
+
return {}
|
|
312
|
+
cfg = configparser.ConfigParser(interpolation=None)
|
|
313
|
+
cfg.read(credentials_file)
|
|
314
|
+
return dict(cfg.items(profile)) if cfg.has_section(profile) else {}
|
|
221
315
|
|
|
222
316
|
|
|
223
317
|
class EcsContainerCredentialsProvider(CredentialsProvider):
|
|
@@ -721,6 +815,7 @@ class AssumeRoleCredentialsProvider(CredentialsProvider):
|
|
|
721
815
|
),
|
|
722
816
|
SsoCredentialsProvider(self._client, source_profile),
|
|
723
817
|
ProfileCredentialsProvider(profile=source_profile),
|
|
818
|
+
ProcessCredentialsProvider(profile=source_profile),
|
|
724
819
|
)
|
|
725
820
|
|
|
726
821
|
|
|
@@ -853,7 +948,10 @@ def _parse_iso8601(value: str) -> datetime:
|
|
|
853
948
|
return datetime.fromisoformat(value.replace("Z", "+00:00"))
|
|
854
949
|
|
|
855
950
|
|
|
856
|
-
def _credentials_from_json(
|
|
951
|
+
def _credentials_from_json(
|
|
952
|
+
data: dict[str, object], *, token_key: str = "Token"
|
|
953
|
+
) -> Credentials:
|
|
954
|
+
# ECS and IMDS name the session token Token; credential_process names it SessionToken
|
|
857
955
|
ak = data.get("AccessKeyId")
|
|
858
956
|
sk = data.get("SecretAccessKey")
|
|
859
957
|
if not isinstance(ak, str) or not isinstance(sk, str):
|
|
@@ -861,7 +959,7 @@ def _credentials_from_json(data: dict[str, object]) -> Credentials:
|
|
|
861
959
|
"credentials response missing AccessKeyId/SecretAccessKey"
|
|
862
960
|
)
|
|
863
961
|
out: Credentials = {"access_key": ak, "secret_key": sk}
|
|
864
|
-
token = data.get(
|
|
962
|
+
token = data.get(token_key)
|
|
865
963
|
if isinstance(token, str):
|
|
866
964
|
out["session_token"] = token
|
|
867
965
|
exp = data.get("Expiration")
|
|
@@ -880,6 +978,7 @@ def default_aws_credentials_chain(
|
|
|
880
978
|
WebIdentityCredentialsProvider(client),
|
|
881
979
|
SsoCredentialsProvider(client),
|
|
882
980
|
ProfileCredentialsProvider(),
|
|
981
|
+
ProcessCredentialsProvider(),
|
|
883
982
|
EcsContainerCredentialsProvider(client),
|
|
884
983
|
Ec2InstanceMetadataProvider(client),
|
|
885
984
|
)
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import zapros
|
|
4
4
|
from typing_extensions import TypedDict
|
|
5
5
|
|
|
6
|
-
from capo_elementalinference.errors import
|
|
6
|
+
from capo_elementalinference.errors import ServiceError
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
class AccessDeniedException_(TypedDict, closed=True):
|
|
@@ -22,7 +22,7 @@ def deserialize_json(data: dict) -> AccessDeniedException_:
|
|
|
22
22
|
if data.get("message") is not None:
|
|
23
23
|
out["message"] = data["message"]
|
|
24
24
|
else:
|
|
25
|
-
|
|
25
|
+
out["message"] = ""
|
|
26
26
|
return out
|
|
27
27
|
|
|
28
28
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import zapros
|
|
4
4
|
from typing_extensions import TypedDict
|
|
5
5
|
|
|
6
|
-
from capo_elementalinference.errors import
|
|
6
|
+
from capo_elementalinference.errors import ServiceError
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
class ConflictException_(TypedDict, closed=True):
|
|
@@ -22,7 +22,7 @@ def deserialize_json(data: dict) -> ConflictException_:
|
|
|
22
22
|
if data.get("message") is not None:
|
|
23
23
|
out["message"] = data["message"]
|
|
24
24
|
else:
|
|
25
|
-
|
|
25
|
+
out["message"] = ""
|
|
26
26
|
return out
|
|
27
27
|
|
|
28
28
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import zapros
|
|
4
4
|
from typing_extensions import TypedDict
|
|
5
5
|
|
|
6
|
-
from capo_elementalinference.errors import
|
|
6
|
+
from capo_elementalinference.errors import ServiceError
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
class GatewayTimedOutException_(TypedDict, closed=True):
|
|
@@ -22,7 +22,7 @@ def deserialize_json(data: dict) -> GatewayTimedOutException_:
|
|
|
22
22
|
if data.get("message") is not None:
|
|
23
23
|
out["message"] = data["message"]
|
|
24
24
|
else:
|
|
25
|
-
|
|
25
|
+
out["message"] = ""
|
|
26
26
|
return out
|
|
27
27
|
|
|
28
28
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import zapros
|
|
4
4
|
from typing_extensions import TypedDict
|
|
5
5
|
|
|
6
|
-
from capo_elementalinference.errors import
|
|
6
|
+
from capo_elementalinference.errors import ServiceError
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
class InternalServerErrorException_(TypedDict, closed=True):
|
|
@@ -22,7 +22,7 @@ def deserialize_json(data: dict) -> InternalServerErrorException_:
|
|
|
22
22
|
if data.get("message") is not None:
|
|
23
23
|
out["message"] = data["message"]
|
|
24
24
|
else:
|
|
25
|
-
|
|
25
|
+
out["message"] = ""
|
|
26
26
|
return out
|
|
27
27
|
|
|
28
28
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import zapros
|
|
4
4
|
from typing_extensions import TypedDict
|
|
5
5
|
|
|
6
|
-
from capo_elementalinference.errors import
|
|
6
|
+
from capo_elementalinference.errors import ServiceError
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
class ResourceNotFoundException_(TypedDict, closed=True):
|
|
@@ -22,7 +22,7 @@ def deserialize_json(data: dict) -> ResourceNotFoundException_:
|
|
|
22
22
|
if data.get("message") is not None:
|
|
23
23
|
out["message"] = data["message"]
|
|
24
24
|
else:
|
|
25
|
-
|
|
25
|
+
out["message"] = ""
|
|
26
26
|
return out
|
|
27
27
|
|
|
28
28
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import zapros
|
|
4
4
|
from typing_extensions import TypedDict
|
|
5
5
|
|
|
6
|
-
from capo_elementalinference.errors import
|
|
6
|
+
from capo_elementalinference.errors import ServiceError
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
class ServiceQuotaExceededException_(TypedDict, closed=True):
|
|
@@ -22,7 +22,7 @@ def deserialize_json(data: dict) -> ServiceQuotaExceededException_:
|
|
|
22
22
|
if data.get("message") is not None:
|
|
23
23
|
out["message"] = data["message"]
|
|
24
24
|
else:
|
|
25
|
-
|
|
25
|
+
out["message"] = ""
|
|
26
26
|
return out
|
|
27
27
|
|
|
28
28
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import zapros
|
|
4
4
|
from typing_extensions import TypedDict
|
|
5
5
|
|
|
6
|
-
from capo_elementalinference.errors import
|
|
6
|
+
from capo_elementalinference.errors import ServiceError
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
class ServiceUnavailableException_(TypedDict, closed=True):
|
|
@@ -22,7 +22,7 @@ def deserialize_json(data: dict) -> ServiceUnavailableException_:
|
|
|
22
22
|
if data.get("message") is not None:
|
|
23
23
|
out["message"] = data["message"]
|
|
24
24
|
else:
|
|
25
|
-
|
|
25
|
+
out["message"] = ""
|
|
26
26
|
return out
|
|
27
27
|
|
|
28
28
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import zapros
|
|
4
4
|
from typing_extensions import TypedDict
|
|
5
5
|
|
|
6
|
-
from capo_elementalinference.errors import
|
|
6
|
+
from capo_elementalinference.errors import ServiceError
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
class TooManyRequestException_(TypedDict, closed=True):
|
|
@@ -22,7 +22,7 @@ def deserialize_json(data: dict) -> TooManyRequestException_:
|
|
|
22
22
|
if data.get("message") is not None:
|
|
23
23
|
out["message"] = data["message"]
|
|
24
24
|
else:
|
|
25
|
-
|
|
25
|
+
out["message"] = ""
|
|
26
26
|
return out
|
|
27
27
|
|
|
28
28
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import zapros
|
|
4
4
|
from typing_extensions import TypedDict
|
|
5
5
|
|
|
6
|
-
from capo_elementalinference.errors import
|
|
6
|
+
from capo_elementalinference.errors import ServiceError
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
class ValidationException_(TypedDict, closed=True):
|
|
@@ -22,7 +22,7 @@ def deserialize_json(data: dict) -> ValidationException_:
|
|
|
22
22
|
if data.get("message") is not None:
|
|
23
23
|
out["message"] = data["message"]
|
|
24
24
|
else:
|
|
25
|
-
|
|
25
|
+
out["message"] = ""
|
|
26
26
|
return out
|
|
27
27
|
|
|
28
28
|
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"""Stand-ins for union variants and events this client doesn't know about.
|
|
2
|
+
|
|
3
|
+
A service may add a union member or an event after the client was generated.
|
|
4
|
+
Smithy asks clients not to fail on those, so deserialization returns one of
|
|
5
|
+
these instead of raising.
|
|
6
|
+
"""
|
|
7
|
+
|
|
8
|
+
from __future__ import annotations
|
|
9
|
+
|
|
10
|
+
from dataclasses import dataclass
|
|
11
|
+
|
|
12
|
+
from .._protocol.eventstream import Message
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
@dataclass(frozen=True)
|
|
16
|
+
class UnknownUnionMember:
|
|
17
|
+
"""A union variant the service sent that this client has no member for."""
|
|
18
|
+
|
|
19
|
+
name: str
|
|
20
|
+
"""The variant's name on the wire."""
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
@dataclass(frozen=True)
|
|
24
|
+
class UnknownEvent:
|
|
25
|
+
"""An event-stream event whose ``:event-type`` this client doesn't know."""
|
|
26
|
+
|
|
27
|
+
event_type: str
|
|
28
|
+
"""The event's ``:event-type`` header."""
|
|
29
|
+
|
|
30
|
+
message: Message
|
|
31
|
+
"""The raw message, headers and undecoded payload."""
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
__all__ = ["UnknownEvent", "UnknownUnionMember"]
|
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
from typing_extensions import TypedDict
|
|
4
4
|
|
|
5
|
-
from capo_elementalinference.errors import DeserializationError
|
|
6
|
-
|
|
7
5
|
|
|
8
6
|
class AspectRatio(TypedDict, closed=True):
|
|
9
7
|
width: "int"
|
|
@@ -25,9 +23,9 @@ def deserialize_json(data: dict) -> AspectRatio:
|
|
|
25
23
|
if data.get("width") is not None:
|
|
26
24
|
out["width"] = data["width"]
|
|
27
25
|
else:
|
|
28
|
-
|
|
26
|
+
out["width"] = 0
|
|
29
27
|
if data.get("height") is not None:
|
|
30
28
|
out["height"] = data["height"]
|
|
31
29
|
else:
|
|
32
|
-
|
|
30
|
+
out["height"] = 0
|
|
33
31
|
return out
|
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
from typing import TYPE_CHECKING
|
|
4
4
|
|
|
5
|
-
from typing_extensions import TypedDict
|
|
6
|
-
|
|
7
|
-
from capo_elementalinference.errors import DeserializationError
|
|
5
|
+
from typing_extensions import NotRequired, TypedDict
|
|
8
6
|
|
|
9
7
|
if TYPE_CHECKING:
|
|
10
8
|
import capo_elementalinference.types.associated_resource_name
|
|
@@ -21,7 +19,7 @@ class AssociateFeedRequest(TypedDict, closed=True):
|
|
|
21
19
|
"""<p>An identifier for the resource. This name must not resemble an ARN.</p> <p>The resource is the source media that the feed will process. The name you assign should help you to later identify the source media that belongs to the feed. In this way, you will know which source media to push to the feed (using PutMedia). </p>"""
|
|
22
20
|
outputs: "capo_elementalinference.types.create_output_list.CreateOutputList"
|
|
23
21
|
"""<p>An array of one or more outputs that you want to add to this feed now, to supplement any outputs that you specified when you created or updated the feed. </p>"""
|
|
24
|
-
dry_run: "bool"
|
|
22
|
+
dry_run: NotRequired["bool"]
|
|
25
23
|
"""<p>Set to true if you want to do a dry run of the associate action.</p> <p>Elemental Inference will validate that the real request would succeed without actually making any changes. A dry run catches errors such as missing IAM permissions, quota limits exceeded, conflicting outputs, and so on. If the dry run fails, the action returns a 4xx error code. After you've fixed the errors, resubmit the request. </p>"""
|
|
26
24
|
|
|
27
25
|
|
|
@@ -34,7 +32,8 @@ def serialize_json(value: AssociateFeedRequest) -> dict:
|
|
|
34
32
|
out["outputs"] = capo_elementalinference.types.create_output_list.serialize_json(
|
|
35
33
|
value["outputs"]
|
|
36
34
|
)
|
|
37
|
-
|
|
35
|
+
if "dry_run" in value:
|
|
36
|
+
out["dryRun"] = value["dry_run"]
|
|
38
37
|
return out
|
|
39
38
|
|
|
40
39
|
|
|
@@ -43,9 +42,7 @@ def deserialize_json(data: dict) -> AssociateFeedRequest:
|
|
|
43
42
|
if data.get("associatedResourceName") is not None:
|
|
44
43
|
out["associated_resource_name"] = data["associatedResourceName"]
|
|
45
44
|
else:
|
|
46
|
-
|
|
47
|
-
"AssociateFeedRequest.associated_resource_name required"
|
|
48
|
-
)
|
|
45
|
+
out["associated_resource_name"] = ""
|
|
49
46
|
if data.get("outputs") is not None:
|
|
50
47
|
import capo_elementalinference.types.create_output_list
|
|
51
48
|
|
|
@@ -55,9 +52,7 @@ def deserialize_json(data: dict) -> AssociateFeedRequest:
|
|
|
55
52
|
)
|
|
56
53
|
)
|
|
57
54
|
else:
|
|
58
|
-
|
|
55
|
+
out["outputs"] = []
|
|
59
56
|
if data.get("dryRun") is not None:
|
|
60
57
|
out["dry_run"] = data["dryRun"]
|
|
61
|
-
else:
|
|
62
|
-
out["dry_run"] = False
|
|
63
58
|
return out
|
|
@@ -4,8 +4,6 @@ from typing import TYPE_CHECKING
|
|
|
4
4
|
|
|
5
5
|
from typing_extensions import TypedDict
|
|
6
6
|
|
|
7
|
-
from capo_elementalinference.errors import DeserializationError
|
|
8
|
-
|
|
9
7
|
if TYPE_CHECKING:
|
|
10
8
|
import capo_elementalinference.types.feed_arn
|
|
11
9
|
import capo_elementalinference.types.feed_id
|
|
@@ -31,9 +29,9 @@ def deserialize_json(data: dict) -> AssociateFeedResponse:
|
|
|
31
29
|
if data.get("arn") is not None:
|
|
32
30
|
out["arn"] = data["arn"]
|
|
33
31
|
else:
|
|
34
|
-
|
|
32
|
+
out["arn"] = ""
|
|
35
33
|
if data.get("id") is not None:
|
|
36
34
|
out["id"] = data["id"]
|
|
37
35
|
else:
|
|
38
|
-
|
|
36
|
+
out["id"] = ""
|
|
39
37
|
return out
|
|
@@ -4,8 +4,6 @@ from typing import TYPE_CHECKING
|
|
|
4
4
|
|
|
5
5
|
from typing_extensions import NotRequired, TypedDict
|
|
6
6
|
|
|
7
|
-
from capo_elementalinference.errors import DeserializationError
|
|
8
|
-
|
|
9
7
|
if TYPE_CHECKING:
|
|
10
8
|
import capo_elementalinference.types.dictionary_entries_payload
|
|
11
9
|
import capo_elementalinference.types.dictionary_language
|
|
@@ -51,7 +49,7 @@ def deserialize_json(data: dict) -> CreateDictionaryRequest:
|
|
|
51
49
|
if data.get("name") is not None:
|
|
52
50
|
out["name"] = data["name"]
|
|
53
51
|
else:
|
|
54
|
-
|
|
52
|
+
out["name"] = ""
|
|
55
53
|
if data.get("language") is not None:
|
|
56
54
|
import capo_elementalinference.types.dictionary_language
|
|
57
55
|
|
|
@@ -61,7 +59,11 @@ def deserialize_json(data: dict) -> CreateDictionaryRequest:
|
|
|
61
59
|
)
|
|
62
60
|
)
|
|
63
61
|
else:
|
|
64
|
-
|
|
62
|
+
import typing
|
|
63
|
+
|
|
64
|
+
out["language"] = typing.cast(
|
|
65
|
+
"capo_elementalinference.types.dictionary_language.DictionaryLanguage", ""
|
|
66
|
+
)
|
|
65
67
|
if data.get("entries") is not None:
|
|
66
68
|
out["entries"] = data["entries"]
|
|
67
69
|
if data.get("tags") is not None:
|