mixpeek 0.15.1__py3-none-any.whl → 0.16.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.
- mixpeek/_hooks/__init__.py +0 -1
- mixpeek/_hooks/sdkhooks.py +0 -2
- mixpeek/_version.py +1 -1
- mixpeek/assets.py +74 -56
- mixpeek/collections.py +46 -40
- mixpeek/{featureextractors.py → feature_extractors.py} +6 -6
- mixpeek/feature_search.py +330 -0
- mixpeek/features.py +44 -356
- mixpeek/health.py +3 -15
- mixpeek/{ingest.py → ingest_assets.py} +43 -25
- mixpeek/models/__init__.py +291 -160
- mixpeek/models/assignmentconfig.py +25 -0
- mixpeek/models/availablemodels.py +2 -1
- mixpeek/models/{availableindexesresponse.py → availablemodelsresponse.py} +8 -4
- mixpeek/models/classificationmatch.py +72 -0
- mixpeek/models/classificationwithfeature.py +73 -0
- mixpeek/models/classify_features_v1_entities_taxonomies_taxonomy_classify_postop.py +73 -0
- mixpeek/models/{create_api_key_organizations_users_user_email_api_keys_postop.py → create_api_key_v1_organizations_users_user_email_api_keys_postop.py} +2 -2
- mixpeek/models/{create_collection_collections_postop.py → create_collection_v1_collections_postop.py} +2 -2
- mixpeek/models/create_taxonomy_v1_entities_taxonomies_postop.py +59 -0
- mixpeek/models/createnamespacerequest.py +2 -2
- mixpeek/models/{delete_api_key_organizations_users_user_email_api_keys_key_name_deleteop.py → delete_api_key_v1_organizations_users_user_email_api_keys_key_name_deleteop.py} +2 -2
- mixpeek/models/{delete_asset_assets_asset_id_deleteop.py → delete_asset_v1_assets_asset_id_deleteop.py} +2 -2
- mixpeek/models/delete_classifications_v1_entities_taxonomies_taxonomy_classifications_classification_id_deleteop.py +70 -0
- mixpeek/models/{delete_collection_collections_collection_deleteop.py → delete_collection_v1_collections_collection_deleteop.py} +2 -2
- mixpeek/models/{delete_feature_features_feature_id_deleteop.py → delete_feature_v1_features_feature_id_deleteop.py} +2 -2
- mixpeek/models/{delete_namespace_namespaces_namespace_deleteop.py → delete_namespace_v1_namespaces_namespace_deleteop.py} +2 -2
- mixpeek/models/delete_taxonomy_v1_entities_taxonomies_taxonomy_deleteop.py +59 -0
- mixpeek/models/{delete_user_organizations_users_user_email_deleteop.py → delete_user_v1_organizations_users_user_email_deleteop.py} +2 -2
- mixpeek/models/discoverrequest.py +74 -0
- mixpeek/models/embeddingconfig.py +33 -0
- mixpeek/models/embeddingrequest.py +40 -7
- mixpeek/models/featureoptions.py +25 -0
- mixpeek/models/{full_asset_update_assets_asset_id_putop.py → full_asset_update_v1_assets_asset_id_putop.py} +2 -2
- mixpeek/models/{full_feature_update_features_feature_id_putop.py → full_feature_update_v1_features_feature_id_putop.py} +2 -2
- mixpeek/models/genericsuccessresponse.py +17 -0
- mixpeek/models/{get_asset_assets_asset_id_getop.py → get_asset_v1_assets_asset_id_getop.py} +2 -2
- mixpeek/models/{get_asset_with_features_assets_asset_id_features_getop.py → get_asset_with_features_v1_assets_asset_id_features_getop.py} +2 -2
- mixpeek/models/{get_collection_collections_collection_getop.py → get_collection_v1_collections_collection_getop.py} +2 -2
- mixpeek/models/{get_feature_features_feature_id_getop.py → get_feature_v1_features_feature_id_getop.py} +2 -2
- mixpeek/models/{get_namespace_namespaces_namespace_getop.py → get_namespace_v1_namespaces_namespace_getop.py} +2 -2
- mixpeek/models/{get_task_tasks_task_id_getop.py → get_task_v1_tasks_task_id_getop.py} +2 -2
- mixpeek/models/get_taxonomy_node_v1_entities_taxonomies_nodes_node_getop.py +59 -0
- mixpeek/models/get_taxonomy_v1_entities_taxonomies_taxonomy_getop.py +59 -0
- mixpeek/models/{get_user_organizations_users_user_email_getop.py → get_user_v1_organizations_users_user_email_getop.py} +2 -2
- mixpeek/models/{ingest_image_url_ingest_images_url_postop.py → ingest_image_url_v1_ingest_images_url_postop.py} +2 -2
- mixpeek/models/{ingest_text_ingest_text_postop.py → ingest_text_v1_ingest_text_postop.py} +2 -2
- mixpeek/models/{ingest_video_url_ingest_videos_url_postop.py → ingest_video_url_v1_ingest_videos_url_postop.py} +2 -2
- mixpeek/models/{kill_task_tasks_task_id_deleteop.py → kill_task_v1_tasks_task_id_deleteop.py} +2 -2
- mixpeek/models/{list_assets_assets_postop.py → list_assets_v1_assets_postop.py} +2 -2
- mixpeek/models/list_classifications_v1_entities_taxonomies_taxonomy_classifications_postop.py +92 -0
- mixpeek/models/{list_collections_collections_getop.py → list_collections_v1_collections_getop.py} +2 -2
- mixpeek/models/{list_features_features_postop.py → list_features_v1_features_postop.py} +2 -2
- mixpeek/models/list_taxonomies_v1_entities_taxonomies_getop.py +67 -0
- mixpeek/models/listclassificationsrequest.py +69 -0
- mixpeek/models/listclassificationsresponse.py +31 -0
- mixpeek/models/listtaxonomiesresponse.py +24 -0
- mixpeek/models/modeldetails.py +9 -5
- mixpeek/models/nodeoptions.py +16 -0
- mixpeek/models/nodeupdate.py +51 -0
- mixpeek/models/{partial_asset_update_assets_asset_id_patchop.py → partial_asset_update_v1_assets_asset_id_patchop.py} +2 -2
- mixpeek/models/permission.py +12 -0
- mixpeek/models/{search_assets_assets_search_postop.py → search_assets_v1_assets_search_postop.py} +2 -2
- mixpeek/models/{search_features_features_search_postop.py → search_features_v1_features_search_postop.py} +4 -4
- mixpeek/models/taxonomycreate.py +20 -0
- mixpeek/models/taxonomymodel.py +27 -0
- mixpeek/models/taxonomynode.py +101 -0
- mixpeek/models/taxonomynodecreate.py +63 -0
- mixpeek/models/taxonomyupdate.py +55 -0
- mixpeek/models/{update_api_key_organizations_users_user_email_api_keys_key_name_patchop.py → update_api_key_v1_organizations_users_user_email_api_keys_key_name_patchop.py} +2 -2
- mixpeek/models/{update_collection_collections_collection_putop.py → update_collection_v1_collections_collection_putop.py} +2 -2
- mixpeek/models/{update_namespace_namespaces_namespace_putop.py → update_namespace_v1_namespaces_namespace_putop.py} +2 -2
- mixpeek/models/update_node_v1_entities_taxonomies_nodes_node_patchop.py +71 -0
- mixpeek/models/update_taxonomy_v1_entities_taxonomies_taxonomy_patchop.py +71 -0
- mixpeek/models/vectormodel.py +1 -0
- mixpeek/namespaces.py +56 -56
- mixpeek/organizations.py +82 -58
- mixpeek/sdk.py +12 -6
- mixpeek/sdkconfiguration.py +4 -4
- mixpeek/tasks.py +22 -16
- mixpeek/taxonomy_entities.py +2214 -0
- {mixpeek-0.15.1.dist-info → mixpeek-0.16.0.dist-info}/METADATA +64 -49
- {mixpeek-0.15.1.dist-info → mixpeek-0.16.0.dist-info}/RECORD +84 -55
- {mixpeek-0.15.1.dist-info → mixpeek-0.16.0.dist-info}/WHEEL +1 -1
mixpeek/_hooks/__init__.py
CHANGED
mixpeek/_hooks/sdkhooks.py
CHANGED
@@ -11,7 +11,6 @@ from .types import (
|
|
11
11
|
AfterErrorHook,
|
12
12
|
Hooks,
|
13
13
|
)
|
14
|
-
from .registration import init_hooks
|
15
14
|
from typing import List, Optional, Tuple
|
16
15
|
from mixpeek.httpclient import HttpClient
|
17
16
|
|
@@ -22,7 +21,6 @@ class SDKHooks(Hooks):
|
|
22
21
|
self.before_request_hooks: List[BeforeRequestHook] = []
|
23
22
|
self.after_success_hooks: List[AfterSuccessHook] = []
|
24
23
|
self.after_error_hooks: List[AfterErrorHook] = []
|
25
|
-
init_hooks(self)
|
26
24
|
|
27
25
|
def register_sdk_init_hook(self, hook: SDKInitHook) -> None:
|
28
26
|
self.sdk_init_hooks.append(hook)
|
mixpeek/_version.py
CHANGED
mixpeek/assets.py
CHANGED
@@ -9,7 +9,7 @@ from typing import Any, List, Mapping, Optional, Union
|
|
9
9
|
|
10
10
|
|
11
11
|
class Assets(BaseSDK):
|
12
|
-
def
|
12
|
+
def get_asset_v1_assets_asset_id_get(
|
13
13
|
self,
|
14
14
|
*,
|
15
15
|
asset_id: str,
|
@@ -40,7 +40,7 @@ class Assets(BaseSDK):
|
|
40
40
|
if server_url is not None:
|
41
41
|
base_url = server_url
|
42
42
|
|
43
|
-
request = models.
|
43
|
+
request = models.GetAssetV1AssetsAssetIDGetRequest(
|
44
44
|
asset_id=asset_id,
|
45
45
|
return_url=return_url,
|
46
46
|
x_namespace=x_namespace,
|
@@ -48,7 +48,7 @@ class Assets(BaseSDK):
|
|
48
48
|
|
49
49
|
req = self._build_request(
|
50
50
|
method="GET",
|
51
|
-
path="/assets/{asset_id}",
|
51
|
+
path="/v1/assets/{asset_id}",
|
52
52
|
base_url=base_url,
|
53
53
|
url_variables=url_variables,
|
54
54
|
request=request,
|
@@ -72,7 +72,7 @@ class Assets(BaseSDK):
|
|
72
72
|
|
73
73
|
http_res = self.do_request(
|
74
74
|
hook_ctx=HookContext(
|
75
|
-
operation_id="
|
75
|
+
operation_id="get_asset_v1_assets__asset_id__get",
|
76
76
|
oauth2_scopes=[],
|
77
77
|
security_source=get_security_from_env(
|
78
78
|
self.sdk_configuration.security, models.Security
|
@@ -109,7 +109,7 @@ class Assets(BaseSDK):
|
|
109
109
|
http_res,
|
110
110
|
)
|
111
111
|
|
112
|
-
async def
|
112
|
+
async def get_asset_v1_assets_asset_id_get_async(
|
113
113
|
self,
|
114
114
|
*,
|
115
115
|
asset_id: str,
|
@@ -140,7 +140,7 @@ class Assets(BaseSDK):
|
|
140
140
|
if server_url is not None:
|
141
141
|
base_url = server_url
|
142
142
|
|
143
|
-
request = models.
|
143
|
+
request = models.GetAssetV1AssetsAssetIDGetRequest(
|
144
144
|
asset_id=asset_id,
|
145
145
|
return_url=return_url,
|
146
146
|
x_namespace=x_namespace,
|
@@ -148,7 +148,7 @@ class Assets(BaseSDK):
|
|
148
148
|
|
149
149
|
req = self._build_request_async(
|
150
150
|
method="GET",
|
151
|
-
path="/assets/{asset_id}",
|
151
|
+
path="/v1/assets/{asset_id}",
|
152
152
|
base_url=base_url,
|
153
153
|
url_variables=url_variables,
|
154
154
|
request=request,
|
@@ -172,7 +172,7 @@ class Assets(BaseSDK):
|
|
172
172
|
|
173
173
|
http_res = await self.do_request_async(
|
174
174
|
hook_ctx=HookContext(
|
175
|
-
operation_id="
|
175
|
+
operation_id="get_asset_v1_assets__asset_id__get",
|
176
176
|
oauth2_scopes=[],
|
177
177
|
security_source=get_security_from_env(
|
178
178
|
self.sdk_configuration.security, models.Security
|
@@ -209,7 +209,7 @@ class Assets(BaseSDK):
|
|
209
209
|
http_res,
|
210
210
|
)
|
211
211
|
|
212
|
-
def
|
212
|
+
def delete_asset_v1_assets_asset_id_delete(
|
213
213
|
self,
|
214
214
|
*,
|
215
215
|
asset_id: str,
|
@@ -221,6 +221,9 @@ class Assets(BaseSDK):
|
|
221
221
|
) -> Any:
|
222
222
|
r"""Delete Asset
|
223
223
|
|
224
|
+
**Requirements:**
|
225
|
+
- Required permissions: write
|
226
|
+
|
224
227
|
:param asset_id:
|
225
228
|
:param x_namespace: Optional namespace for data isolation. This can be a namespace name or namespace ID. Example: 'netflix_prod' or 'ns_1234567890'. To create a namespace, use the /namespaces endpoint.
|
226
229
|
:param retries: Override the default retry configuration for this method
|
@@ -236,14 +239,14 @@ class Assets(BaseSDK):
|
|
236
239
|
if server_url is not None:
|
237
240
|
base_url = server_url
|
238
241
|
|
239
|
-
request = models.
|
242
|
+
request = models.DeleteAssetV1AssetsAssetIDDeleteRequest(
|
240
243
|
asset_id=asset_id,
|
241
244
|
x_namespace=x_namespace,
|
242
245
|
)
|
243
246
|
|
244
247
|
req = self._build_request(
|
245
248
|
method="DELETE",
|
246
|
-
path="/assets/{asset_id}",
|
249
|
+
path="/v1/assets/{asset_id}",
|
247
250
|
base_url=base_url,
|
248
251
|
url_variables=url_variables,
|
249
252
|
request=request,
|
@@ -267,7 +270,7 @@ class Assets(BaseSDK):
|
|
267
270
|
|
268
271
|
http_res = self.do_request(
|
269
272
|
hook_ctx=HookContext(
|
270
|
-
operation_id="
|
273
|
+
operation_id="delete_asset_v1_assets__asset_id__delete",
|
271
274
|
oauth2_scopes=[],
|
272
275
|
security_source=get_security_from_env(
|
273
276
|
self.sdk_configuration.security, models.Security
|
@@ -304,7 +307,7 @@ class Assets(BaseSDK):
|
|
304
307
|
http_res,
|
305
308
|
)
|
306
309
|
|
307
|
-
async def
|
310
|
+
async def delete_asset_v1_assets_asset_id_delete_async(
|
308
311
|
self,
|
309
312
|
*,
|
310
313
|
asset_id: str,
|
@@ -316,6 +319,9 @@ class Assets(BaseSDK):
|
|
316
319
|
) -> Any:
|
317
320
|
r"""Delete Asset
|
318
321
|
|
322
|
+
**Requirements:**
|
323
|
+
- Required permissions: write
|
324
|
+
|
319
325
|
:param asset_id:
|
320
326
|
:param x_namespace: Optional namespace for data isolation. This can be a namespace name or namespace ID. Example: 'netflix_prod' or 'ns_1234567890'. To create a namespace, use the /namespaces endpoint.
|
321
327
|
:param retries: Override the default retry configuration for this method
|
@@ -331,14 +337,14 @@ class Assets(BaseSDK):
|
|
331
337
|
if server_url is not None:
|
332
338
|
base_url = server_url
|
333
339
|
|
334
|
-
request = models.
|
340
|
+
request = models.DeleteAssetV1AssetsAssetIDDeleteRequest(
|
335
341
|
asset_id=asset_id,
|
336
342
|
x_namespace=x_namespace,
|
337
343
|
)
|
338
344
|
|
339
345
|
req = self._build_request_async(
|
340
346
|
method="DELETE",
|
341
|
-
path="/assets/{asset_id}",
|
347
|
+
path="/v1/assets/{asset_id}",
|
342
348
|
base_url=base_url,
|
343
349
|
url_variables=url_variables,
|
344
350
|
request=request,
|
@@ -362,7 +368,7 @@ class Assets(BaseSDK):
|
|
362
368
|
|
363
369
|
http_res = await self.do_request_async(
|
364
370
|
hook_ctx=HookContext(
|
365
|
-
operation_id="
|
371
|
+
operation_id="delete_asset_v1_assets__asset_id__delete",
|
366
372
|
oauth2_scopes=[],
|
367
373
|
security_source=get_security_from_env(
|
368
374
|
self.sdk_configuration.security, models.Security
|
@@ -399,7 +405,7 @@ class Assets(BaseSDK):
|
|
399
405
|
http_res,
|
400
406
|
)
|
401
407
|
|
402
|
-
def
|
408
|
+
def full_asset_update_v1_assets_asset_id_put(
|
403
409
|
self,
|
404
410
|
*,
|
405
411
|
asset_id: str,
|
@@ -418,6 +424,9 @@ class Assets(BaseSDK):
|
|
418
424
|
) -> models.AssetResponse:
|
419
425
|
r"""Full Asset Update
|
420
426
|
|
427
|
+
**Requirements:**
|
428
|
+
- Required permissions: write
|
429
|
+
|
421
430
|
:param asset_id:
|
422
431
|
:param x_namespace: Optional namespace for data isolation. This can be a namespace name or namespace ID. Example: 'netflix_prod' or 'ns_1234567890'. To create a namespace, use the /namespaces endpoint.
|
423
432
|
:param propagate_features: If True, the features will be propagated to all assets with the same asset_id
|
@@ -435,7 +444,7 @@ class Assets(BaseSDK):
|
|
435
444
|
if server_url is not None:
|
436
445
|
base_url = server_url
|
437
446
|
|
438
|
-
request = models.
|
447
|
+
request = models.FullAssetUpdateV1AssetsAssetIDPutRequest(
|
439
448
|
asset_id=asset_id,
|
440
449
|
x_namespace=x_namespace,
|
441
450
|
update_asset_request=models.UpdateAssetRequest(
|
@@ -448,7 +457,7 @@ class Assets(BaseSDK):
|
|
448
457
|
|
449
458
|
req = self._build_request(
|
450
459
|
method="PUT",
|
451
|
-
path="/assets/{asset_id}",
|
460
|
+
path="/v1/assets/{asset_id}",
|
452
461
|
base_url=base_url,
|
453
462
|
url_variables=url_variables,
|
454
463
|
request=request,
|
@@ -479,7 +488,7 @@ class Assets(BaseSDK):
|
|
479
488
|
|
480
489
|
http_res = self.do_request(
|
481
490
|
hook_ctx=HookContext(
|
482
|
-
operation_id="
|
491
|
+
operation_id="full_asset_update_v1_assets__asset_id__put",
|
483
492
|
oauth2_scopes=[],
|
484
493
|
security_source=get_security_from_env(
|
485
494
|
self.sdk_configuration.security, models.Security
|
@@ -516,7 +525,7 @@ class Assets(BaseSDK):
|
|
516
525
|
http_res,
|
517
526
|
)
|
518
527
|
|
519
|
-
async def
|
528
|
+
async def full_asset_update_v1_assets_asset_id_put_async(
|
520
529
|
self,
|
521
530
|
*,
|
522
531
|
asset_id: str,
|
@@ -535,6 +544,9 @@ class Assets(BaseSDK):
|
|
535
544
|
) -> models.AssetResponse:
|
536
545
|
r"""Full Asset Update
|
537
546
|
|
547
|
+
**Requirements:**
|
548
|
+
- Required permissions: write
|
549
|
+
|
538
550
|
:param asset_id:
|
539
551
|
:param x_namespace: Optional namespace for data isolation. This can be a namespace name or namespace ID. Example: 'netflix_prod' or 'ns_1234567890'. To create a namespace, use the /namespaces endpoint.
|
540
552
|
:param propagate_features: If True, the features will be propagated to all assets with the same asset_id
|
@@ -552,7 +564,7 @@ class Assets(BaseSDK):
|
|
552
564
|
if server_url is not None:
|
553
565
|
base_url = server_url
|
554
566
|
|
555
|
-
request = models.
|
567
|
+
request = models.FullAssetUpdateV1AssetsAssetIDPutRequest(
|
556
568
|
asset_id=asset_id,
|
557
569
|
x_namespace=x_namespace,
|
558
570
|
update_asset_request=models.UpdateAssetRequest(
|
@@ -565,7 +577,7 @@ class Assets(BaseSDK):
|
|
565
577
|
|
566
578
|
req = self._build_request_async(
|
567
579
|
method="PUT",
|
568
|
-
path="/assets/{asset_id}",
|
580
|
+
path="/v1/assets/{asset_id}",
|
569
581
|
base_url=base_url,
|
570
582
|
url_variables=url_variables,
|
571
583
|
request=request,
|
@@ -596,7 +608,7 @@ class Assets(BaseSDK):
|
|
596
608
|
|
597
609
|
http_res = await self.do_request_async(
|
598
610
|
hook_ctx=HookContext(
|
599
|
-
operation_id="
|
611
|
+
operation_id="full_asset_update_v1_assets__asset_id__put",
|
600
612
|
oauth2_scopes=[],
|
601
613
|
security_source=get_security_from_env(
|
602
614
|
self.sdk_configuration.security, models.Security
|
@@ -633,7 +645,7 @@ class Assets(BaseSDK):
|
|
633
645
|
http_res,
|
634
646
|
)
|
635
647
|
|
636
|
-
def
|
648
|
+
def partial_asset_update_v1_assets_asset_id_patch(
|
637
649
|
self,
|
638
650
|
*,
|
639
651
|
asset_id: str,
|
@@ -652,6 +664,9 @@ class Assets(BaseSDK):
|
|
652
664
|
) -> models.AssetResponse:
|
653
665
|
r"""Partial Asset Update
|
654
666
|
|
667
|
+
**Requirements:**
|
668
|
+
- Required permissions: write
|
669
|
+
|
655
670
|
:param asset_id:
|
656
671
|
:param x_namespace: Optional namespace for data isolation. This can be a namespace name or namespace ID. Example: 'netflix_prod' or 'ns_1234567890'. To create a namespace, use the /namespaces endpoint.
|
657
672
|
:param propagate_features: If True, the features will be propagated to all assets with the same asset_id
|
@@ -669,7 +684,7 @@ class Assets(BaseSDK):
|
|
669
684
|
if server_url is not None:
|
670
685
|
base_url = server_url
|
671
686
|
|
672
|
-
request = models.
|
687
|
+
request = models.PartialAssetUpdateV1AssetsAssetIDPatchRequest(
|
673
688
|
asset_id=asset_id,
|
674
689
|
x_namespace=x_namespace,
|
675
690
|
update_asset_request=models.UpdateAssetRequest(
|
@@ -682,7 +697,7 @@ class Assets(BaseSDK):
|
|
682
697
|
|
683
698
|
req = self._build_request(
|
684
699
|
method="PATCH",
|
685
|
-
path="/assets/{asset_id}",
|
700
|
+
path="/v1/assets/{asset_id}",
|
686
701
|
base_url=base_url,
|
687
702
|
url_variables=url_variables,
|
688
703
|
request=request,
|
@@ -713,7 +728,7 @@ class Assets(BaseSDK):
|
|
713
728
|
|
714
729
|
http_res = self.do_request(
|
715
730
|
hook_ctx=HookContext(
|
716
|
-
operation_id="
|
731
|
+
operation_id="partial_asset_update_v1_assets__asset_id__patch",
|
717
732
|
oauth2_scopes=[],
|
718
733
|
security_source=get_security_from_env(
|
719
734
|
self.sdk_configuration.security, models.Security
|
@@ -750,7 +765,7 @@ class Assets(BaseSDK):
|
|
750
765
|
http_res,
|
751
766
|
)
|
752
767
|
|
753
|
-
async def
|
768
|
+
async def partial_asset_update_v1_assets_asset_id_patch_async(
|
754
769
|
self,
|
755
770
|
*,
|
756
771
|
asset_id: str,
|
@@ -769,6 +784,9 @@ class Assets(BaseSDK):
|
|
769
784
|
) -> models.AssetResponse:
|
770
785
|
r"""Partial Asset Update
|
771
786
|
|
787
|
+
**Requirements:**
|
788
|
+
- Required permissions: write
|
789
|
+
|
772
790
|
:param asset_id:
|
773
791
|
:param x_namespace: Optional namespace for data isolation. This can be a namespace name or namespace ID. Example: 'netflix_prod' or 'ns_1234567890'. To create a namespace, use the /namespaces endpoint.
|
774
792
|
:param propagate_features: If True, the features will be propagated to all assets with the same asset_id
|
@@ -786,7 +804,7 @@ class Assets(BaseSDK):
|
|
786
804
|
if server_url is not None:
|
787
805
|
base_url = server_url
|
788
806
|
|
789
|
-
request = models.
|
807
|
+
request = models.PartialAssetUpdateV1AssetsAssetIDPatchRequest(
|
790
808
|
asset_id=asset_id,
|
791
809
|
x_namespace=x_namespace,
|
792
810
|
update_asset_request=models.UpdateAssetRequest(
|
@@ -799,7 +817,7 @@ class Assets(BaseSDK):
|
|
799
817
|
|
800
818
|
req = self._build_request_async(
|
801
819
|
method="PATCH",
|
802
|
-
path="/assets/{asset_id}",
|
820
|
+
path="/v1/assets/{asset_id}",
|
803
821
|
base_url=base_url,
|
804
822
|
url_variables=url_variables,
|
805
823
|
request=request,
|
@@ -830,7 +848,7 @@ class Assets(BaseSDK):
|
|
830
848
|
|
831
849
|
http_res = await self.do_request_async(
|
832
850
|
hook_ctx=HookContext(
|
833
|
-
operation_id="
|
851
|
+
operation_id="partial_asset_update_v1_assets__asset_id__patch",
|
834
852
|
oauth2_scopes=[],
|
835
853
|
security_source=get_security_from_env(
|
836
854
|
self.sdk_configuration.security, models.Security
|
@@ -867,7 +885,7 @@ class Assets(BaseSDK):
|
|
867
885
|
http_res,
|
868
886
|
)
|
869
887
|
|
870
|
-
def
|
888
|
+
def get_asset_with_features_v1_assets_asset_id_features_get(
|
871
889
|
self,
|
872
890
|
*,
|
873
891
|
asset_id: str,
|
@@ -898,7 +916,7 @@ class Assets(BaseSDK):
|
|
898
916
|
if server_url is not None:
|
899
917
|
base_url = server_url
|
900
918
|
|
901
|
-
request = models.
|
919
|
+
request = models.GetAssetWithFeaturesV1AssetsAssetIDFeaturesGetRequest(
|
902
920
|
asset_id=asset_id,
|
903
921
|
return_url=return_url,
|
904
922
|
x_namespace=x_namespace,
|
@@ -906,7 +924,7 @@ class Assets(BaseSDK):
|
|
906
924
|
|
907
925
|
req = self._build_request(
|
908
926
|
method="GET",
|
909
|
-
path="/assets/{asset_id}/features",
|
927
|
+
path="/v1/assets/{asset_id}/features",
|
910
928
|
base_url=base_url,
|
911
929
|
url_variables=url_variables,
|
912
930
|
request=request,
|
@@ -930,7 +948,7 @@ class Assets(BaseSDK):
|
|
930
948
|
|
931
949
|
http_res = self.do_request(
|
932
950
|
hook_ctx=HookContext(
|
933
|
-
operation_id="
|
951
|
+
operation_id="get_asset_with_features_v1_assets__asset_id__features_get",
|
934
952
|
oauth2_scopes=[],
|
935
953
|
security_source=get_security_from_env(
|
936
954
|
self.sdk_configuration.security, models.Security
|
@@ -967,7 +985,7 @@ class Assets(BaseSDK):
|
|
967
985
|
http_res,
|
968
986
|
)
|
969
987
|
|
970
|
-
async def
|
988
|
+
async def get_asset_with_features_v1_assets_asset_id_features_get_async(
|
971
989
|
self,
|
972
990
|
*,
|
973
991
|
asset_id: str,
|
@@ -998,7 +1016,7 @@ class Assets(BaseSDK):
|
|
998
1016
|
if server_url is not None:
|
999
1017
|
base_url = server_url
|
1000
1018
|
|
1001
|
-
request = models.
|
1019
|
+
request = models.GetAssetWithFeaturesV1AssetsAssetIDFeaturesGetRequest(
|
1002
1020
|
asset_id=asset_id,
|
1003
1021
|
return_url=return_url,
|
1004
1022
|
x_namespace=x_namespace,
|
@@ -1006,7 +1024,7 @@ class Assets(BaseSDK):
|
|
1006
1024
|
|
1007
1025
|
req = self._build_request_async(
|
1008
1026
|
method="GET",
|
1009
|
-
path="/assets/{asset_id}/features",
|
1027
|
+
path="/v1/assets/{asset_id}/features",
|
1010
1028
|
base_url=base_url,
|
1011
1029
|
url_variables=url_variables,
|
1012
1030
|
request=request,
|
@@ -1030,7 +1048,7 @@ class Assets(BaseSDK):
|
|
1030
1048
|
|
1031
1049
|
http_res = await self.do_request_async(
|
1032
1050
|
hook_ctx=HookContext(
|
1033
|
-
operation_id="
|
1051
|
+
operation_id="get_asset_with_features_v1_assets__asset_id__features_get",
|
1034
1052
|
oauth2_scopes=[],
|
1035
1053
|
security_source=get_security_from_env(
|
1036
1054
|
self.sdk_configuration.security, models.Security
|
@@ -1067,7 +1085,7 @@ class Assets(BaseSDK):
|
|
1067
1085
|
http_res,
|
1068
1086
|
)
|
1069
1087
|
|
1070
|
-
def
|
1088
|
+
def list_assets_v1_assets_post(
|
1071
1089
|
self,
|
1072
1090
|
*,
|
1073
1091
|
collections: List[str],
|
@@ -1114,7 +1132,7 @@ class Assets(BaseSDK):
|
|
1114
1132
|
if server_url is not None:
|
1115
1133
|
base_url = server_url
|
1116
1134
|
|
1117
|
-
request = models.
|
1135
|
+
request = models.ListAssetsV1AssetsPostRequest(
|
1118
1136
|
page=page,
|
1119
1137
|
page_size=page_size,
|
1120
1138
|
x_namespace=x_namespace,
|
@@ -1136,7 +1154,7 @@ class Assets(BaseSDK):
|
|
1136
1154
|
|
1137
1155
|
req = self._build_request(
|
1138
1156
|
method="POST",
|
1139
|
-
path="/assets",
|
1157
|
+
path="/v1/assets",
|
1140
1158
|
base_url=base_url,
|
1141
1159
|
url_variables=url_variables,
|
1142
1160
|
request=request,
|
@@ -1167,7 +1185,7 @@ class Assets(BaseSDK):
|
|
1167
1185
|
|
1168
1186
|
http_res = self.do_request(
|
1169
1187
|
hook_ctx=HookContext(
|
1170
|
-
operation_id="
|
1188
|
+
operation_id="list_assets_v1_assets_post",
|
1171
1189
|
oauth2_scopes=[],
|
1172
1190
|
security_source=get_security_from_env(
|
1173
1191
|
self.sdk_configuration.security, models.Security
|
@@ -1204,7 +1222,7 @@ class Assets(BaseSDK):
|
|
1204
1222
|
http_res,
|
1205
1223
|
)
|
1206
1224
|
|
1207
|
-
async def
|
1225
|
+
async def list_assets_v1_assets_post_async(
|
1208
1226
|
self,
|
1209
1227
|
*,
|
1210
1228
|
collections: List[str],
|
@@ -1251,7 +1269,7 @@ class Assets(BaseSDK):
|
|
1251
1269
|
if server_url is not None:
|
1252
1270
|
base_url = server_url
|
1253
1271
|
|
1254
|
-
request = models.
|
1272
|
+
request = models.ListAssetsV1AssetsPostRequest(
|
1255
1273
|
page=page,
|
1256
1274
|
page_size=page_size,
|
1257
1275
|
x_namespace=x_namespace,
|
@@ -1273,7 +1291,7 @@ class Assets(BaseSDK):
|
|
1273
1291
|
|
1274
1292
|
req = self._build_request_async(
|
1275
1293
|
method="POST",
|
1276
|
-
path="/assets",
|
1294
|
+
path="/v1/assets",
|
1277
1295
|
base_url=base_url,
|
1278
1296
|
url_variables=url_variables,
|
1279
1297
|
request=request,
|
@@ -1304,7 +1322,7 @@ class Assets(BaseSDK):
|
|
1304
1322
|
|
1305
1323
|
http_res = await self.do_request_async(
|
1306
1324
|
hook_ctx=HookContext(
|
1307
|
-
operation_id="
|
1325
|
+
operation_id="list_assets_v1_assets_post",
|
1308
1326
|
oauth2_scopes=[],
|
1309
1327
|
security_source=get_security_from_env(
|
1310
1328
|
self.sdk_configuration.security, models.Security
|
@@ -1341,7 +1359,7 @@ class Assets(BaseSDK):
|
|
1341
1359
|
http_res,
|
1342
1360
|
)
|
1343
1361
|
|
1344
|
-
def
|
1362
|
+
def search_assets_v1_assets_search_post(
|
1345
1363
|
self,
|
1346
1364
|
*,
|
1347
1365
|
collections: List[str],
|
@@ -1384,7 +1402,7 @@ class Assets(BaseSDK):
|
|
1384
1402
|
if server_url is not None:
|
1385
1403
|
base_url = server_url
|
1386
1404
|
|
1387
|
-
request = models.
|
1405
|
+
request = models.SearchAssetsV1AssetsSearchPostRequest(
|
1388
1406
|
x_namespace=x_namespace,
|
1389
1407
|
search_assets_request=models.SearchAssetsRequest(
|
1390
1408
|
query=utils.get_pydantic_model(
|
@@ -1404,7 +1422,7 @@ class Assets(BaseSDK):
|
|
1404
1422
|
|
1405
1423
|
req = self._build_request(
|
1406
1424
|
method="POST",
|
1407
|
-
path="/assets/search",
|
1425
|
+
path="/v1/assets/search",
|
1408
1426
|
base_url=base_url,
|
1409
1427
|
url_variables=url_variables,
|
1410
1428
|
request=request,
|
@@ -1435,7 +1453,7 @@ class Assets(BaseSDK):
|
|
1435
1453
|
|
1436
1454
|
http_res = self.do_request(
|
1437
1455
|
hook_ctx=HookContext(
|
1438
|
-
operation_id="
|
1456
|
+
operation_id="search_assets_v1_assets_search_post",
|
1439
1457
|
oauth2_scopes=[],
|
1440
1458
|
security_source=get_security_from_env(
|
1441
1459
|
self.sdk_configuration.security, models.Security
|
@@ -1472,7 +1490,7 @@ class Assets(BaseSDK):
|
|
1472
1490
|
http_res,
|
1473
1491
|
)
|
1474
1492
|
|
1475
|
-
async def
|
1493
|
+
async def search_assets_v1_assets_search_post_async(
|
1476
1494
|
self,
|
1477
1495
|
*,
|
1478
1496
|
collections: List[str],
|
@@ -1515,7 +1533,7 @@ class Assets(BaseSDK):
|
|
1515
1533
|
if server_url is not None:
|
1516
1534
|
base_url = server_url
|
1517
1535
|
|
1518
|
-
request = models.
|
1536
|
+
request = models.SearchAssetsV1AssetsSearchPostRequest(
|
1519
1537
|
x_namespace=x_namespace,
|
1520
1538
|
search_assets_request=models.SearchAssetsRequest(
|
1521
1539
|
query=utils.get_pydantic_model(
|
@@ -1535,7 +1553,7 @@ class Assets(BaseSDK):
|
|
1535
1553
|
|
1536
1554
|
req = self._build_request_async(
|
1537
1555
|
method="POST",
|
1538
|
-
path="/assets/search",
|
1556
|
+
path="/v1/assets/search",
|
1539
1557
|
base_url=base_url,
|
1540
1558
|
url_variables=url_variables,
|
1541
1559
|
request=request,
|
@@ -1566,7 +1584,7 @@ class Assets(BaseSDK):
|
|
1566
1584
|
|
1567
1585
|
http_res = await self.do_request_async(
|
1568
1586
|
hook_ctx=HookContext(
|
1569
|
-
operation_id="
|
1587
|
+
operation_id="search_assets_v1_assets_search_post",
|
1570
1588
|
oauth2_scopes=[],
|
1571
1589
|
security_source=get_security_from_env(
|
1572
1590
|
self.sdk_configuration.security, models.Security
|