mixpeek 0.13.3__tar.gz → 0.15.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.
- {mixpeek-0.13.3 → mixpeek-0.15.0}/PKG-INFO +50 -5
- {mixpeek-0.13.3 → mixpeek-0.15.0}/README-PYPI.md +49 -4
- {mixpeek-0.13.3 → mixpeek-0.15.0}/pyproject.toml +1 -1
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/_version.py +1 -1
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/assets.py +65 -22
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/basesdk.py +1 -1
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/collections.py +49 -18
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/featureextractors.py +11 -4
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/features.py +45 -14
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/health.py +11 -4
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/ingest.py +31 -12
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/interactions.py +9 -2
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/__init__.py +3 -0
- mixpeek-0.15.0/src/mixpeek/models/internal/__init__.py +5 -0
- mixpeek-0.15.0/src/mixpeek/models/internal/globals.py +22 -0
- mixpeek-0.15.0/src/mixpeek/models/security.py +25 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/namespaces.py +61 -24
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/organizations.py +79 -30
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/sdk.py +21 -2
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/sdkconfiguration.py +8 -4
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/searchinteractions.py +31 -12
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/tasks.py +21 -8
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/utils/__init__.py +3 -1
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/utils/security.py +18 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/py.typed +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/__init__.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/_hooks/__init__.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/_hooks/registration.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/_hooks/sdkhooks.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/_hooks/types.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/httpclient.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/actionusage.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/apierror.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/apikey.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/apikeyupdate.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/assetfeatures.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/assetresponse.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/assets_model_searchquery.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/assetupdate.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/availableindexesresponse.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/availablemodels.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/boolindexparams.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/collectionmodel.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/collectionresult.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/create_api_key_organizations_users_user_email_api_keys_postop.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/create_collection_collections_postop.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/create_interaction_features_search_interactions_postop.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/createcollectionrequest.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/createnamespacerequest.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/datetimeindexparams.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/dateusage.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/db_model_paginationresponse.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/db_model_taskresponse.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/delete_api_key_organizations_users_user_email_api_keys_key_name_deleteop.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/delete_asset_assets_asset_id_deleteop.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/delete_collection_collections_collection_deleteop.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/delete_feature_features_feature_id_deleteop.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/delete_interaction_features_search_interactions_interaction_id_deleteop.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/delete_namespace_namespaces_namespace_deleteop.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/delete_user_organizations_users_user_email_deleteop.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/denseembedding.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/embeddingrequest.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/embeddingresponse.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/errordetail.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/errorresponse.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/facedetectsettings.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/featureextractionembeddingrequest.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/featureresponse.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/features_model_paginationresponse.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/featureupdaterequest.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/filtercondition.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/floatindexparams.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/full_asset_update_assets_asset_id_putop.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/full_feature_update_features_feature_id_putop.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/geoindexparams.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/get_asset_assets_asset_id_getop.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/get_asset_with_features_assets_asset_id_features_getop.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/get_collection_collections_collection_getop.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/get_feature_features_feature_id_getop.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/get_interaction_features_search_interactions_interaction_id_getop.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/get_namespace_namespaces_namespace_getop.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/get_task_tasks_task_id_getop.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/get_user_organizations_users_user_email_getop.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/groupbyoptions.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/groupbyoptionsasset.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/groupedassetdata.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/healthcheckresponse.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/httpvalidationerror.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/imagedescribesettings.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/imagedetectsettings.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/imagereadsettings.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/imagesettings.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/ingest_image_url_ingest_images_url_postop.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/ingest_text_ingest_text_postop.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/ingest_video_url_ingest_videos_url_postop.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/inputtype.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/integerindexparams.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/interactionresponse.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/interactiontype.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/jsonimageoutputsettings.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/jsontextoutputsettings.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/jsonvideooutputsettings.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/keywordindexparams.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/kill_task_tasks_task_id_deleteop.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/list_assets_assets_postop.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/list_collections_collections_getop.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/list_features_features_postop.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/list_interactions_features_search_interactions_getop.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/listassetsrequest.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/listassetsresponse.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/listcollectionsresponse.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/listfeaturesrequest.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/listfeaturesresponse.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/logicaloperator_input.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/logicaloperator_output.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/logodetectsettings.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/modality.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/modeldetails.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/namespaceresponse.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/organizationmodel.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/partial_asset_update_assets_asset_id_patchop.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/payloadindexconfig.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/payloadindextype.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/payloadschematype.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/percolaterequest.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/permission.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/processimageurlinput.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/processtextinput.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/processvideourlinput.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/querysettings.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/rerankingoptions.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/search_assets_assets_search_postop.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/search_features_features_search_postop.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/search_model_searchquery_input.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/searchassetsrequest.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/searchinteraction.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/searchquery_output.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/searchrequestfeatures_input.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/searchrequestfeatures_output.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/sortoption.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/sparseembedding.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/tasks_model_taskresponse.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/taskstatus.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/textindexparams.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/textsettings.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/tokenizertype.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/update_api_key_organizations_users_user_email_api_keys_key_name_patchop.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/update_collection_collections_collection_putop.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/update_namespace_namespaces_namespace_putop.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/updateassetrequest.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/updatenamespacerequest.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/usage.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/usermodel_input.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/usermodel_output.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/uuidindexparams.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/validationerror.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/vectormodel.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/vectortype.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/videodescribesettings.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/videodetectsettings.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/videoreadsettings.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/videosettings.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/models/videotranscriptionsettings.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/py.typed +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/types/__init__.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/types/basemodel.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/utils/annotations.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/utils/enums.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/utils/eventstreaming.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/utils/forms.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/utils/headers.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/utils/logger.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/utils/metadata.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/utils/queryparams.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/utils/requestbodies.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/utils/retries.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/utils/serializers.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/utils/url.py +0 -0
- {mixpeek-0.13.3 → mixpeek-0.15.0}/src/mixpeek/utils/values.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: mixpeek
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.15.0
|
4
4
|
Summary: Python Client SDK Generated by Speakeasy.
|
5
5
|
Home-page: https://github.com/mixpeek/python-sdk.git
|
6
6
|
Author: Speakeasy
|
@@ -38,6 +38,7 @@ Mixpeek API: This is the Mixpeek API, providing access to various endpoints for
|
|
38
38
|
* [SDK Installation](https://github.com/mixpeek/python-sdk/blob/master/#sdk-installation)
|
39
39
|
* [IDE Support](https://github.com/mixpeek/python-sdk/blob/master/#ide-support)
|
40
40
|
* [SDK Example Usage](https://github.com/mixpeek/python-sdk/blob/master/#sdk-example-usage)
|
41
|
+
* [Authentication](https://github.com/mixpeek/python-sdk/blob/master/#authentication)
|
41
42
|
* [Available Resources and Operations](https://github.com/mixpeek/python-sdk/blob/master/#available-resources-and-operations)
|
42
43
|
* [Retries](https://github.com/mixpeek/python-sdk/blob/master/#retries)
|
43
44
|
* [Error Handling](https://github.com/mixpeek/python-sdk/blob/master/#error-handling)
|
@@ -90,8 +91,11 @@ Generally, the SDK will work well with most IDEs out of the box. However, when u
|
|
90
91
|
```python
|
91
92
|
# Synchronous Example
|
92
93
|
from mixpeek import Mixpeek
|
94
|
+
import os
|
93
95
|
|
94
|
-
with Mixpeek(
|
96
|
+
with Mixpeek(
|
97
|
+
token=os.getenv("MIXPEEK_TOKEN", ""),
|
98
|
+
) as mixpeek:
|
95
99
|
|
96
100
|
res = mixpeek.organizations.get()
|
97
101
|
|
@@ -106,9 +110,12 @@ The same SDK client can also be used to make asychronous requests by importing a
|
|
106
110
|
# Asynchronous Example
|
107
111
|
import asyncio
|
108
112
|
from mixpeek import Mixpeek
|
113
|
+
import os
|
109
114
|
|
110
115
|
async def main():
|
111
|
-
async with Mixpeek(
|
116
|
+
async with Mixpeek(
|
117
|
+
token=os.getenv("MIXPEEK_TOKEN", ""),
|
118
|
+
) as mixpeek:
|
112
119
|
|
113
120
|
res = await mixpeek.organizations.get_async()
|
114
121
|
|
@@ -119,6 +126,34 @@ asyncio.run(main())
|
|
119
126
|
```
|
120
127
|
<!-- End SDK Example Usage [usage] -->
|
121
128
|
|
129
|
+
<!-- Start Authentication [security] -->
|
130
|
+
## Authentication
|
131
|
+
|
132
|
+
### Per-Client Security Schemes
|
133
|
+
|
134
|
+
This SDK supports the following security scheme globally:
|
135
|
+
|
136
|
+
| Name | Type | Scheme | Environment Variable |
|
137
|
+
| ------- | ---- | ----------- | -------------------- |
|
138
|
+
| `token` | http | HTTP Bearer | `MIXPEEK_TOKEN` |
|
139
|
+
|
140
|
+
To authenticate with the API the `token` parameter must be set when initializing the SDK client instance. For example:
|
141
|
+
```python
|
142
|
+
from mixpeek import Mixpeek
|
143
|
+
import os
|
144
|
+
|
145
|
+
with Mixpeek(
|
146
|
+
token=os.getenv("MIXPEEK_TOKEN", ""),
|
147
|
+
) as mixpeek:
|
148
|
+
|
149
|
+
res = mixpeek.organizations.get()
|
150
|
+
|
151
|
+
# Handle response
|
152
|
+
print(res)
|
153
|
+
|
154
|
+
```
|
155
|
+
<!-- End Authentication [security] -->
|
156
|
+
|
122
157
|
<!-- Start Available Resources and Operations [operations] -->
|
123
158
|
## Available Resources and Operations
|
124
159
|
|
@@ -213,8 +248,11 @@ To change the default retry strategy for a single API call, simply provide a `Re
|
|
213
248
|
```python
|
214
249
|
from mixpeek import Mixpeek
|
215
250
|
from mixpeek.utils import BackoffStrategy, RetryConfig
|
251
|
+
import os
|
216
252
|
|
217
|
-
with Mixpeek(
|
253
|
+
with Mixpeek(
|
254
|
+
token=os.getenv("MIXPEEK_TOKEN", ""),
|
255
|
+
) as mixpeek:
|
218
256
|
|
219
257
|
res = mixpeek.organizations.get(,
|
220
258
|
RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False))
|
@@ -228,9 +266,11 @@ If you'd like to override the default retry strategy for all operations that sup
|
|
228
266
|
```python
|
229
267
|
from mixpeek import Mixpeek
|
230
268
|
from mixpeek.utils import BackoffStrategy, RetryConfig
|
269
|
+
import os
|
231
270
|
|
232
271
|
with Mixpeek(
|
233
272
|
retry_config=RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False),
|
273
|
+
token=os.getenv("MIXPEEK_TOKEN", ""),
|
234
274
|
) as mixpeek:
|
235
275
|
|
236
276
|
res = mixpeek.organizations.get()
|
@@ -267,8 +307,11 @@ When custom error responses are specified for an operation, the SDK may also rai
|
|
267
307
|
|
268
308
|
```python
|
269
309
|
from mixpeek import Mixpeek, models
|
310
|
+
import os
|
270
311
|
|
271
|
-
with Mixpeek(
|
312
|
+
with Mixpeek(
|
313
|
+
token=os.getenv("MIXPEEK_TOKEN", ""),
|
314
|
+
) as mixpeek:
|
272
315
|
res = None
|
273
316
|
try:
|
274
317
|
|
@@ -297,9 +340,11 @@ with Mixpeek() as mixpeek:
|
|
297
340
|
The default server can also be overridden globally by passing a URL to the `server_url: str` optional parameter when initializing the SDK client instance. For example:
|
298
341
|
```python
|
299
342
|
from mixpeek import Mixpeek
|
343
|
+
import os
|
300
344
|
|
301
345
|
with Mixpeek(
|
302
346
|
server_url="https://api.mixpeek.com/",
|
347
|
+
token=os.getenv("MIXPEEK_TOKEN", ""),
|
303
348
|
) as mixpeek:
|
304
349
|
|
305
350
|
res = mixpeek.organizations.get()
|
@@ -15,6 +15,7 @@ Mixpeek API: This is the Mixpeek API, providing access to various endpoints for
|
|
15
15
|
* [SDK Installation](https://github.com/mixpeek/python-sdk/blob/master/#sdk-installation)
|
16
16
|
* [IDE Support](https://github.com/mixpeek/python-sdk/blob/master/#ide-support)
|
17
17
|
* [SDK Example Usage](https://github.com/mixpeek/python-sdk/blob/master/#sdk-example-usage)
|
18
|
+
* [Authentication](https://github.com/mixpeek/python-sdk/blob/master/#authentication)
|
18
19
|
* [Available Resources and Operations](https://github.com/mixpeek/python-sdk/blob/master/#available-resources-and-operations)
|
19
20
|
* [Retries](https://github.com/mixpeek/python-sdk/blob/master/#retries)
|
20
21
|
* [Error Handling](https://github.com/mixpeek/python-sdk/blob/master/#error-handling)
|
@@ -67,8 +68,11 @@ Generally, the SDK will work well with most IDEs out of the box. However, when u
|
|
67
68
|
```python
|
68
69
|
# Synchronous Example
|
69
70
|
from mixpeek import Mixpeek
|
71
|
+
import os
|
70
72
|
|
71
|
-
with Mixpeek(
|
73
|
+
with Mixpeek(
|
74
|
+
token=os.getenv("MIXPEEK_TOKEN", ""),
|
75
|
+
) as mixpeek:
|
72
76
|
|
73
77
|
res = mixpeek.organizations.get()
|
74
78
|
|
@@ -83,9 +87,12 @@ The same SDK client can also be used to make asychronous requests by importing a
|
|
83
87
|
# Asynchronous Example
|
84
88
|
import asyncio
|
85
89
|
from mixpeek import Mixpeek
|
90
|
+
import os
|
86
91
|
|
87
92
|
async def main():
|
88
|
-
async with Mixpeek(
|
93
|
+
async with Mixpeek(
|
94
|
+
token=os.getenv("MIXPEEK_TOKEN", ""),
|
95
|
+
) as mixpeek:
|
89
96
|
|
90
97
|
res = await mixpeek.organizations.get_async()
|
91
98
|
|
@@ -96,6 +103,34 @@ asyncio.run(main())
|
|
96
103
|
```
|
97
104
|
<!-- End SDK Example Usage [usage] -->
|
98
105
|
|
106
|
+
<!-- Start Authentication [security] -->
|
107
|
+
## Authentication
|
108
|
+
|
109
|
+
### Per-Client Security Schemes
|
110
|
+
|
111
|
+
This SDK supports the following security scheme globally:
|
112
|
+
|
113
|
+
| Name | Type | Scheme | Environment Variable |
|
114
|
+
| ------- | ---- | ----------- | -------------------- |
|
115
|
+
| `token` | http | HTTP Bearer | `MIXPEEK_TOKEN` |
|
116
|
+
|
117
|
+
To authenticate with the API the `token` parameter must be set when initializing the SDK client instance. For example:
|
118
|
+
```python
|
119
|
+
from mixpeek import Mixpeek
|
120
|
+
import os
|
121
|
+
|
122
|
+
with Mixpeek(
|
123
|
+
token=os.getenv("MIXPEEK_TOKEN", ""),
|
124
|
+
) as mixpeek:
|
125
|
+
|
126
|
+
res = mixpeek.organizations.get()
|
127
|
+
|
128
|
+
# Handle response
|
129
|
+
print(res)
|
130
|
+
|
131
|
+
```
|
132
|
+
<!-- End Authentication [security] -->
|
133
|
+
|
99
134
|
<!-- Start Available Resources and Operations [operations] -->
|
100
135
|
## Available Resources and Operations
|
101
136
|
|
@@ -190,8 +225,11 @@ To change the default retry strategy for a single API call, simply provide a `Re
|
|
190
225
|
```python
|
191
226
|
from mixpeek import Mixpeek
|
192
227
|
from mixpeek.utils import BackoffStrategy, RetryConfig
|
228
|
+
import os
|
193
229
|
|
194
|
-
with Mixpeek(
|
230
|
+
with Mixpeek(
|
231
|
+
token=os.getenv("MIXPEEK_TOKEN", ""),
|
232
|
+
) as mixpeek:
|
195
233
|
|
196
234
|
res = mixpeek.organizations.get(,
|
197
235
|
RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False))
|
@@ -205,9 +243,11 @@ If you'd like to override the default retry strategy for all operations that sup
|
|
205
243
|
```python
|
206
244
|
from mixpeek import Mixpeek
|
207
245
|
from mixpeek.utils import BackoffStrategy, RetryConfig
|
246
|
+
import os
|
208
247
|
|
209
248
|
with Mixpeek(
|
210
249
|
retry_config=RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False),
|
250
|
+
token=os.getenv("MIXPEEK_TOKEN", ""),
|
211
251
|
) as mixpeek:
|
212
252
|
|
213
253
|
res = mixpeek.organizations.get()
|
@@ -244,8 +284,11 @@ When custom error responses are specified for an operation, the SDK may also rai
|
|
244
284
|
|
245
285
|
```python
|
246
286
|
from mixpeek import Mixpeek, models
|
287
|
+
import os
|
247
288
|
|
248
|
-
with Mixpeek(
|
289
|
+
with Mixpeek(
|
290
|
+
token=os.getenv("MIXPEEK_TOKEN", ""),
|
291
|
+
) as mixpeek:
|
249
292
|
res = None
|
250
293
|
try:
|
251
294
|
|
@@ -274,9 +317,11 @@ with Mixpeek() as mixpeek:
|
|
274
317
|
The default server can also be overridden globally by passing a URL to the `server_url: str` optional parameter when initializing the SDK client instance. For example:
|
275
318
|
```python
|
276
319
|
from mixpeek import Mixpeek
|
320
|
+
import os
|
277
321
|
|
278
322
|
with Mixpeek(
|
279
323
|
server_url="https://api.mixpeek.com/",
|
324
|
+
token=os.getenv("MIXPEEK_TOKEN", ""),
|
280
325
|
) as mixpeek:
|
281
326
|
|
282
327
|
res = mixpeek.organizations.get()
|
@@ -4,6 +4,7 @@ from .basesdk import BaseSDK
|
|
4
4
|
from mixpeek import models, utils
|
5
5
|
from mixpeek._hooks import HookContext
|
6
6
|
from mixpeek.types import OptionalNullable, UNSET
|
7
|
+
from mixpeek.utils import get_security_from_env
|
7
8
|
from typing import Any, List, Mapping, Optional, Union
|
8
9
|
|
9
10
|
|
@@ -57,6 +58,7 @@ class Assets(BaseSDK):
|
|
57
58
|
user_agent_header="user-agent",
|
58
59
|
accept_header_value="application/json",
|
59
60
|
http_headers=http_headers,
|
61
|
+
security=self.sdk_configuration.security,
|
60
62
|
timeout_ms=timeout_ms,
|
61
63
|
)
|
62
64
|
|
@@ -72,7 +74,9 @@ class Assets(BaseSDK):
|
|
72
74
|
hook_ctx=HookContext(
|
73
75
|
operation_id="get_asset_assets__asset_id__get",
|
74
76
|
oauth2_scopes=[],
|
75
|
-
security_source=
|
77
|
+
security_source=get_security_from_env(
|
78
|
+
self.sdk_configuration.security, models.Security
|
79
|
+
),
|
76
80
|
),
|
77
81
|
request=req,
|
78
82
|
error_status_codes=["400", "401", "403", "404", "422", "4XX", "500", "5XX"],
|
@@ -154,6 +158,7 @@ class Assets(BaseSDK):
|
|
154
158
|
user_agent_header="user-agent",
|
155
159
|
accept_header_value="application/json",
|
156
160
|
http_headers=http_headers,
|
161
|
+
security=self.sdk_configuration.security,
|
157
162
|
timeout_ms=timeout_ms,
|
158
163
|
)
|
159
164
|
|
@@ -169,7 +174,9 @@ class Assets(BaseSDK):
|
|
169
174
|
hook_ctx=HookContext(
|
170
175
|
operation_id="get_asset_assets__asset_id__get",
|
171
176
|
oauth2_scopes=[],
|
172
|
-
security_source=
|
177
|
+
security_source=get_security_from_env(
|
178
|
+
self.sdk_configuration.security, models.Security
|
179
|
+
),
|
173
180
|
),
|
174
181
|
request=req,
|
175
182
|
error_status_codes=["400", "401", "403", "404", "422", "4XX", "500", "5XX"],
|
@@ -242,10 +249,11 @@ class Assets(BaseSDK):
|
|
242
249
|
request=request,
|
243
250
|
request_body_required=False,
|
244
251
|
request_has_path_params=True,
|
245
|
-
request_has_query_params=
|
252
|
+
request_has_query_params=True,
|
246
253
|
user_agent_header="user-agent",
|
247
254
|
accept_header_value="application/json",
|
248
255
|
http_headers=http_headers,
|
256
|
+
security=self.sdk_configuration.security,
|
249
257
|
timeout_ms=timeout_ms,
|
250
258
|
)
|
251
259
|
|
@@ -261,7 +269,9 @@ class Assets(BaseSDK):
|
|
261
269
|
hook_ctx=HookContext(
|
262
270
|
operation_id="delete_asset_assets__asset_id__delete",
|
263
271
|
oauth2_scopes=[],
|
264
|
-
security_source=
|
272
|
+
security_source=get_security_from_env(
|
273
|
+
self.sdk_configuration.security, models.Security
|
274
|
+
),
|
265
275
|
),
|
266
276
|
request=req,
|
267
277
|
error_status_codes=["400", "401", "403", "404", "422", "4XX", "500", "5XX"],
|
@@ -334,10 +344,11 @@ class Assets(BaseSDK):
|
|
334
344
|
request=request,
|
335
345
|
request_body_required=False,
|
336
346
|
request_has_path_params=True,
|
337
|
-
request_has_query_params=
|
347
|
+
request_has_query_params=True,
|
338
348
|
user_agent_header="user-agent",
|
339
349
|
accept_header_value="application/json",
|
340
350
|
http_headers=http_headers,
|
351
|
+
security=self.sdk_configuration.security,
|
341
352
|
timeout_ms=timeout_ms,
|
342
353
|
)
|
343
354
|
|
@@ -353,7 +364,9 @@ class Assets(BaseSDK):
|
|
353
364
|
hook_ctx=HookContext(
|
354
365
|
operation_id="delete_asset_assets__asset_id__delete",
|
355
366
|
oauth2_scopes=[],
|
356
|
-
security_source=
|
367
|
+
security_source=get_security_from_env(
|
368
|
+
self.sdk_configuration.security, models.Security
|
369
|
+
),
|
357
370
|
),
|
358
371
|
request=req,
|
359
372
|
error_status_codes=["400", "401", "403", "404", "422", "4XX", "500", "5XX"],
|
@@ -441,10 +454,11 @@ class Assets(BaseSDK):
|
|
441
454
|
request=request,
|
442
455
|
request_body_required=True,
|
443
456
|
request_has_path_params=True,
|
444
|
-
request_has_query_params=
|
457
|
+
request_has_query_params=True,
|
445
458
|
user_agent_header="user-agent",
|
446
459
|
accept_header_value="application/json",
|
447
460
|
http_headers=http_headers,
|
461
|
+
security=self.sdk_configuration.security,
|
448
462
|
get_serialized_body=lambda: utils.serialize_request_body(
|
449
463
|
request.update_asset_request,
|
450
464
|
False,
|
@@ -467,7 +481,9 @@ class Assets(BaseSDK):
|
|
467
481
|
hook_ctx=HookContext(
|
468
482
|
operation_id="full_asset_update_assets__asset_id__put",
|
469
483
|
oauth2_scopes=[],
|
470
|
-
security_source=
|
484
|
+
security_source=get_security_from_env(
|
485
|
+
self.sdk_configuration.security, models.Security
|
486
|
+
),
|
471
487
|
),
|
472
488
|
request=req,
|
473
489
|
error_status_codes=["400", "401", "403", "404", "422", "4XX", "500", "5XX"],
|
@@ -555,10 +571,11 @@ class Assets(BaseSDK):
|
|
555
571
|
request=request,
|
556
572
|
request_body_required=True,
|
557
573
|
request_has_path_params=True,
|
558
|
-
request_has_query_params=
|
574
|
+
request_has_query_params=True,
|
559
575
|
user_agent_header="user-agent",
|
560
576
|
accept_header_value="application/json",
|
561
577
|
http_headers=http_headers,
|
578
|
+
security=self.sdk_configuration.security,
|
562
579
|
get_serialized_body=lambda: utils.serialize_request_body(
|
563
580
|
request.update_asset_request,
|
564
581
|
False,
|
@@ -581,7 +598,9 @@ class Assets(BaseSDK):
|
|
581
598
|
hook_ctx=HookContext(
|
582
599
|
operation_id="full_asset_update_assets__asset_id__put",
|
583
600
|
oauth2_scopes=[],
|
584
|
-
security_source=
|
601
|
+
security_source=get_security_from_env(
|
602
|
+
self.sdk_configuration.security, models.Security
|
603
|
+
),
|
585
604
|
),
|
586
605
|
request=req,
|
587
606
|
error_status_codes=["400", "401", "403", "404", "422", "4XX", "500", "5XX"],
|
@@ -669,10 +688,11 @@ class Assets(BaseSDK):
|
|
669
688
|
request=request,
|
670
689
|
request_body_required=True,
|
671
690
|
request_has_path_params=True,
|
672
|
-
request_has_query_params=
|
691
|
+
request_has_query_params=True,
|
673
692
|
user_agent_header="user-agent",
|
674
693
|
accept_header_value="application/json",
|
675
694
|
http_headers=http_headers,
|
695
|
+
security=self.sdk_configuration.security,
|
676
696
|
get_serialized_body=lambda: utils.serialize_request_body(
|
677
697
|
request.update_asset_request,
|
678
698
|
False,
|
@@ -695,7 +715,9 @@ class Assets(BaseSDK):
|
|
695
715
|
hook_ctx=HookContext(
|
696
716
|
operation_id="partial_asset_update_assets__asset_id__patch",
|
697
717
|
oauth2_scopes=[],
|
698
|
-
security_source=
|
718
|
+
security_source=get_security_from_env(
|
719
|
+
self.sdk_configuration.security, models.Security
|
720
|
+
),
|
699
721
|
),
|
700
722
|
request=req,
|
701
723
|
error_status_codes=["400", "401", "403", "404", "422", "4XX", "500", "5XX"],
|
@@ -783,10 +805,11 @@ class Assets(BaseSDK):
|
|
783
805
|
request=request,
|
784
806
|
request_body_required=True,
|
785
807
|
request_has_path_params=True,
|
786
|
-
request_has_query_params=
|
808
|
+
request_has_query_params=True,
|
787
809
|
user_agent_header="user-agent",
|
788
810
|
accept_header_value="application/json",
|
789
811
|
http_headers=http_headers,
|
812
|
+
security=self.sdk_configuration.security,
|
790
813
|
get_serialized_body=lambda: utils.serialize_request_body(
|
791
814
|
request.update_asset_request,
|
792
815
|
False,
|
@@ -809,7 +832,9 @@ class Assets(BaseSDK):
|
|
809
832
|
hook_ctx=HookContext(
|
810
833
|
operation_id="partial_asset_update_assets__asset_id__patch",
|
811
834
|
oauth2_scopes=[],
|
812
|
-
security_source=
|
835
|
+
security_source=get_security_from_env(
|
836
|
+
self.sdk_configuration.security, models.Security
|
837
|
+
),
|
813
838
|
),
|
814
839
|
request=req,
|
815
840
|
error_status_codes=["400", "401", "403", "404", "422", "4XX", "500", "5XX"],
|
@@ -891,6 +916,7 @@ class Assets(BaseSDK):
|
|
891
916
|
user_agent_header="user-agent",
|
892
917
|
accept_header_value="application/json",
|
893
918
|
http_headers=http_headers,
|
919
|
+
security=self.sdk_configuration.security,
|
894
920
|
timeout_ms=timeout_ms,
|
895
921
|
)
|
896
922
|
|
@@ -906,7 +932,9 @@ class Assets(BaseSDK):
|
|
906
932
|
hook_ctx=HookContext(
|
907
933
|
operation_id="get_asset_with_features_assets__asset_id__features_get",
|
908
934
|
oauth2_scopes=[],
|
909
|
-
security_source=
|
935
|
+
security_source=get_security_from_env(
|
936
|
+
self.sdk_configuration.security, models.Security
|
937
|
+
),
|
910
938
|
),
|
911
939
|
request=req,
|
912
940
|
error_status_codes=["400", "401", "403", "404", "422", "4XX", "500", "5XX"],
|
@@ -988,6 +1016,7 @@ class Assets(BaseSDK):
|
|
988
1016
|
user_agent_header="user-agent",
|
989
1017
|
accept_header_value="application/json",
|
990
1018
|
http_headers=http_headers,
|
1019
|
+
security=self.sdk_configuration.security,
|
991
1020
|
timeout_ms=timeout_ms,
|
992
1021
|
)
|
993
1022
|
|
@@ -1003,7 +1032,9 @@ class Assets(BaseSDK):
|
|
1003
1032
|
hook_ctx=HookContext(
|
1004
1033
|
operation_id="get_asset_with_features_assets__asset_id__features_get",
|
1005
1034
|
oauth2_scopes=[],
|
1006
|
-
security_source=
|
1035
|
+
security_source=get_security_from_env(
|
1036
|
+
self.sdk_configuration.security, models.Security
|
1037
|
+
),
|
1007
1038
|
),
|
1008
1039
|
request=req,
|
1009
1040
|
error_status_codes=["400", "401", "403", "404", "422", "4XX", "500", "5XX"],
|
@@ -1115,6 +1146,7 @@ class Assets(BaseSDK):
|
|
1115
1146
|
user_agent_header="user-agent",
|
1116
1147
|
accept_header_value="application/json",
|
1117
1148
|
http_headers=http_headers,
|
1149
|
+
security=self.sdk_configuration.security,
|
1118
1150
|
get_serialized_body=lambda: utils.serialize_request_body(
|
1119
1151
|
request.list_assets_request,
|
1120
1152
|
False,
|
@@ -1137,7 +1169,9 @@ class Assets(BaseSDK):
|
|
1137
1169
|
hook_ctx=HookContext(
|
1138
1170
|
operation_id="list_assets_assets_post",
|
1139
1171
|
oauth2_scopes=[],
|
1140
|
-
security_source=
|
1172
|
+
security_source=get_security_from_env(
|
1173
|
+
self.sdk_configuration.security, models.Security
|
1174
|
+
),
|
1141
1175
|
),
|
1142
1176
|
request=req,
|
1143
1177
|
error_status_codes=["400", "401", "403", "404", "422", "4XX", "500", "5XX"],
|
@@ -1249,6 +1283,7 @@ class Assets(BaseSDK):
|
|
1249
1283
|
user_agent_header="user-agent",
|
1250
1284
|
accept_header_value="application/json",
|
1251
1285
|
http_headers=http_headers,
|
1286
|
+
security=self.sdk_configuration.security,
|
1252
1287
|
get_serialized_body=lambda: utils.serialize_request_body(
|
1253
1288
|
request.list_assets_request,
|
1254
1289
|
False,
|
@@ -1271,7 +1306,9 @@ class Assets(BaseSDK):
|
|
1271
1306
|
hook_ctx=HookContext(
|
1272
1307
|
operation_id="list_assets_assets_post",
|
1273
1308
|
oauth2_scopes=[],
|
1274
|
-
security_source=
|
1309
|
+
security_source=get_security_from_env(
|
1310
|
+
self.sdk_configuration.security, models.Security
|
1311
|
+
),
|
1275
1312
|
),
|
1276
1313
|
request=req,
|
1277
1314
|
error_status_codes=["400", "401", "403", "404", "422", "4XX", "500", "5XX"],
|
@@ -1373,10 +1410,11 @@ class Assets(BaseSDK):
|
|
1373
1410
|
request=request,
|
1374
1411
|
request_body_required=True,
|
1375
1412
|
request_has_path_params=False,
|
1376
|
-
request_has_query_params=
|
1413
|
+
request_has_query_params=True,
|
1377
1414
|
user_agent_header="user-agent",
|
1378
1415
|
accept_header_value="application/json",
|
1379
1416
|
http_headers=http_headers,
|
1417
|
+
security=self.sdk_configuration.security,
|
1380
1418
|
get_serialized_body=lambda: utils.serialize_request_body(
|
1381
1419
|
request.search_assets_request,
|
1382
1420
|
False,
|
@@ -1399,7 +1437,9 @@ class Assets(BaseSDK):
|
|
1399
1437
|
hook_ctx=HookContext(
|
1400
1438
|
operation_id="search_assets_assets_search_post",
|
1401
1439
|
oauth2_scopes=[],
|
1402
|
-
security_source=
|
1440
|
+
security_source=get_security_from_env(
|
1441
|
+
self.sdk_configuration.security, models.Security
|
1442
|
+
),
|
1403
1443
|
),
|
1404
1444
|
request=req,
|
1405
1445
|
error_status_codes=["400", "401", "403", "404", "422", "4XX", "500", "5XX"],
|
@@ -1501,10 +1541,11 @@ class Assets(BaseSDK):
|
|
1501
1541
|
request=request,
|
1502
1542
|
request_body_required=True,
|
1503
1543
|
request_has_path_params=False,
|
1504
|
-
request_has_query_params=
|
1544
|
+
request_has_query_params=True,
|
1505
1545
|
user_agent_header="user-agent",
|
1506
1546
|
accept_header_value="application/json",
|
1507
1547
|
http_headers=http_headers,
|
1548
|
+
security=self.sdk_configuration.security,
|
1508
1549
|
get_serialized_body=lambda: utils.serialize_request_body(
|
1509
1550
|
request.search_assets_request,
|
1510
1551
|
False,
|
@@ -1527,7 +1568,9 @@ class Assets(BaseSDK):
|
|
1527
1568
|
hook_ctx=HookContext(
|
1528
1569
|
operation_id="search_assets_assets_search_post",
|
1529
1570
|
oauth2_scopes=[],
|
1530
|
-
security_source=
|
1571
|
+
security_source=get_security_from_env(
|
1572
|
+
self.sdk_configuration.security, models.Security
|
1573
|
+
),
|
1531
1574
|
),
|
1532
1575
|
request=req,
|
1533
1576
|
error_status_codes=["400", "401", "403", "404", "422", "4XX", "500", "5XX"],
|
@@ -161,7 +161,7 @@ class BaseSDK:
|
|
161
161
|
if security is not None:
|
162
162
|
if callable(security):
|
163
163
|
security = security()
|
164
|
-
|
164
|
+
security = utils.get_security_from_env(security, models.Security)
|
165
165
|
if security is not None:
|
166
166
|
security_headers, security_query_params = utils.get_security(security)
|
167
167
|
headers = {**headers, **security_headers}
|