arthur-client 1.4.1295__py3-none-any.whl → 1.4.1297__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.
@@ -62,7 +62,7 @@ class CustomAggregationsV1Api:
62
62
  ) -> None:
63
63
  """Delete Custom Aggregation.
64
64
 
65
- Requires custom_aggregation_delete permission.
65
+ Requires custom_aggregation_delete permission. Aggregation will no longer be available to execute but will still be available to read.
66
66
 
67
67
  :param custom_aggregation_id: (required)
68
68
  :type custom_aggregation_id: str
@@ -132,7 +132,7 @@ class CustomAggregationsV1Api:
132
132
  ) -> ApiResponse[None]:
133
133
  """Delete Custom Aggregation.
134
134
 
135
- Requires custom_aggregation_delete permission.
135
+ Requires custom_aggregation_delete permission. Aggregation will no longer be available to execute but will still be available to read.
136
136
 
137
137
  :param custom_aggregation_id: (required)
138
138
  :type custom_aggregation_id: str
@@ -202,7 +202,7 @@ class CustomAggregationsV1Api:
202
202
  ) -> RESTResponseType:
203
203
  """Delete Custom Aggregation.
204
204
 
205
- Requires custom_aggregation_delete permission.
205
+ Requires custom_aggregation_delete permission. Aggregation will no longer be available to execute but will still be available to read.
206
206
 
207
207
  :param custom_aggregation_id: (required)
208
208
  :type custom_aggregation_id: str
@@ -11,6 +11,8 @@ Name | Type | Description | Notes
11
11
  **workspace_id** | **str** | Unique identifier of the custom aggregation's parent workspace. |
12
12
  **versions** | [**List[CustomAggregationVersionSpecSchema]**](CustomAggregationVersionSpecSchema.md) | List of versions of the custom aggregation configuration. |
13
13
  **latest_version** | **int** | Max/latest version of the custom aggregation that exists. This version may or may not be included in the list of versions depending on applied filters. |
14
+ **deleted_at** | **datetime** | | [optional]
15
+ **is_deleted** | **bool** | Flag indicating if the aggregation has been soft deleted. | [optional] [default to False]
14
16
 
15
17
  ## Example
16
18
 
@@ -17,7 +17,7 @@ Method | HTTP request | Description
17
17
 
18
18
  Delete Custom Aggregation.
19
19
 
20
- Requires custom_aggregation_delete permission.
20
+ Requires custom_aggregation_delete permission. Aggregation will no longer be available to execute but will still be available to read.
21
21
 
22
22
  ### Example
23
23
 
@@ -17,7 +17,8 @@ import pprint
17
17
  import re # noqa: F401
18
18
  import json
19
19
 
20
- from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
20
+ from datetime import datetime
21
+ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr
21
22
  from typing import Any, ClassVar, Dict, List, Optional
22
23
  from arthur_client.api_bindings.models.custom_aggregation_version_spec_schema import CustomAggregationVersionSpecSchema
23
24
  from typing import Optional, Set
@@ -33,7 +34,9 @@ class CustomAggregationSpecSchema(BaseModel):
33
34
  workspace_id: StrictStr = Field(description="Unique identifier of the custom aggregation's parent workspace.")
34
35
  versions: List[CustomAggregationVersionSpecSchema] = Field(description="List of versions of the custom aggregation configuration.")
35
36
  latest_version: StrictInt = Field(description="Max/latest version of the custom aggregation that exists. This version may or may not be included in the list of versions depending on applied filters.")
36
- __properties: ClassVar[List[str]] = ["id", "name", "description", "workspace_id", "versions", "latest_version"]
37
+ deleted_at: Optional[datetime] = None
38
+ is_deleted: Optional[StrictBool] = Field(default=False, description="Flag indicating if the aggregation has been soft deleted.")
39
+ __properties: ClassVar[List[str]] = ["id", "name", "description", "workspace_id", "versions", "latest_version", "deleted_at", "is_deleted"]
37
40
 
38
41
  model_config = ConfigDict(
39
42
  populate_by_name=True,
@@ -86,6 +89,11 @@ class CustomAggregationSpecSchema(BaseModel):
86
89
  if self.description is None and "description" in self.model_fields_set:
87
90
  _dict['description'] = None
88
91
 
92
+ # set to None if deleted_at (nullable) is None
93
+ # and model_fields_set contains the field
94
+ if self.deleted_at is None and "deleted_at" in self.model_fields_set:
95
+ _dict['deleted_at'] = None
96
+
89
97
  return _dict
90
98
 
91
99
  @classmethod
@@ -103,7 +111,9 @@ class CustomAggregationSpecSchema(BaseModel):
103
111
  "description": obj.get("description"),
104
112
  "workspace_id": obj.get("workspace_id"),
105
113
  "versions": [CustomAggregationVersionSpecSchema.from_dict(_item) for _item in obj["versions"]] if obj.get("versions") is not None else None,
106
- "latest_version": obj.get("latest_version")
114
+ "latest_version": obj.get("latest_version"),
115
+ "deleted_at": obj.get("deleted_at"),
116
+ "is_deleted": obj.get("is_deleted") if obj.get("is_deleted") is not None else False
107
117
  })
108
118
  return _obj
109
119
 
@@ -73,7 +73,9 @@ class TestCustomAggregationSpecSchema(unittest.TestCase):
73
73
  ],
74
74
  sql = '', )
75
75
  ],
76
- latest_version = 56
76
+ latest_version = 56,
77
+ deleted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
78
+ is_deleted = True
77
79
  )
78
80
  else:
79
81
  return CustomAggregationSpecSchema(
@@ -75,7 +75,9 @@ class TestResourceListCustomAggregationSpecSchema(unittest.TestCase):
75
75
  ],
76
76
  sql = '', )
77
77
  ],
78
- latest_version = 56, )
78
+ latest_version = 56,
79
+ deleted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
80
+ is_deleted = True, )
79
81
  ],
80
82
  pagination = arthur_client.api_bindings.models.pagination.Pagination(
81
83
  page = 56,
@@ -125,7 +127,9 @@ class TestResourceListCustomAggregationSpecSchema(unittest.TestCase):
125
127
  ],
126
128
  sql = '', )
127
129
  ],
128
- latest_version = 56, )
130
+ latest_version = 56,
131
+ deleted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
132
+ is_deleted = True, )
129
133
  ],
130
134
  pagination = arthur_client.api_bindings.models.pagination.Pagination(
131
135
  page = 56,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: arthur-client
3
- Version: 1.4.1295
3
+ Version: 1.4.1297
4
4
  Summary: Arthur Python API Client Library
5
5
  License: MIT
6
6
  Keywords: api arthur client ArthurAI sdk ml model monitoring
@@ -7,7 +7,7 @@ arthur_client/api_bindings/api/alerts_v1_api.py,sha256=RVP4gZUK70I7rn2B9xSeN3CRJ
7
7
  arthur_client/api_bindings/api/authorization_v1_api.py,sha256=lLy6XudG2GmSXAQXgPsrYfFII5VFqnVYLYwD9uEQO1U,168399
8
8
  arthur_client/api_bindings/api/connector_schemas_v1_api.py,sha256=i6lDybpWt4OTaG95n8KSrBixP1Bu1JRuk8Tk2760sRM,21818
9
9
  arthur_client/api_bindings/api/connectors_v1_api.py,sha256=RvPRetrR0n7d8eoyUorqtzpsS5sqUZkhS4dQwIte6Pc,87533
10
- arthur_client/api_bindings/api/custom_aggregations_v1_api.py,sha256=4RxlzHikRFiPUXTh4TAx2d5faJy6nTwWos1-wvjn2hU,73853
10
+ arthur_client/api_bindings/api/custom_aggregations_v1_api.py,sha256=_EIoQe1Q48nITgL_Siyfo9zAma7KwuGn9_tn9IrozJ4,74117
11
11
  arthur_client/api_bindings/api/data_plane_associations_v1_api.py,sha256=16sLHbpsgOO2TtUqLpXsHO5dbLkjHw8R0p6zir-61z0,72612
12
12
  arthur_client/api_bindings/api/data_planes_v1_api.py,sha256=v-1GgCyTa3r1ns3l-vWN1eoVzueOdZOQRfaca0BY9WI,72069
13
13
  arthur_client/api_bindings/api/data_retrieval_v1_api.py,sha256=jzxN8pcdtbgJN9SnwhCCmGhN4FOlkCdmFmW1WLkv0R8,97319
@@ -84,10 +84,10 @@ arthur_client/api_bindings/docs/CreateModelLinkTaskJobSpec.md,sha256=op1mnZnm6xU
84
84
  arthur_client/api_bindings/docs/CreateModelTaskJobSpec.md,sha256=Heeg9RL2MPc8KIs2W0o_pW7K9LCZGFi3DSfl4dzSevU,1594
85
85
  arthur_client/api_bindings/docs/CreatedAlerts.md,sha256=7Bd0IKW-OhLLMT3PB_ta9WQp-VS-x-gCoFh9AAg4t14,1019
86
86
  arthur_client/api_bindings/docs/Credentials.md,sha256=QEShs4tAwQUpULYbYFKMjsg94TWdw_PjzXX5IiwZGvc,1023
87
- arthur_client/api_bindings/docs/CustomAggregationSpecSchema.md,sha256=5vyH8JYGUaigXoGf2ejtd5UjFna8GgMhmTSBxtFsN5k,1684
87
+ arthur_client/api_bindings/docs/CustomAggregationSpecSchema.md,sha256=zXp48Z-ZSCTzMaSyCiPmjjh9iwmT68QxKjhNsH8ds6M,1849
88
88
  arthur_client/api_bindings/docs/CustomAggregationVersionSpecSchema.md,sha256=fUQoc5uZdjgGSmQAYCtYI8jHMrINzeDXndePwhb2Ugw,1850
89
89
  arthur_client/api_bindings/docs/CustomAggregationVersionSpecSchemaAggregateArgsInner.md,sha256=XMeXdYAgBuur7E52g3kAD6dRjloB31U_h6RcC3DtwTI,2443
90
- arthur_client/api_bindings/docs/CustomAggregationsV1Api.md,sha256=dolMDQsGoGviY_oPEoEwiF-1kmTNGqCEQs9ycK-nJYw,18905
90
+ arthur_client/api_bindings/docs/CustomAggregationsV1Api.md,sha256=Kw1ZstpKDS8sNQS_TNSGf-GZBsYXhhy1UV4IlJ6VBx4,18993
91
91
  arthur_client/api_bindings/docs/DType.md,sha256=SGDBKxZMAyuKluZciLOLK5u9vP_OcJkUBtvPGPbyn48,483
92
92
  arthur_client/api_bindings/docs/DataPlane.md,sha256=TQ6TTMJ5KgaP27NvtrVRAD9klwJ4TPddRVrhUzV2-cM,1356
93
93
  arthur_client/api_bindings/docs/DataPlaneAssociation.md,sha256=j79bQmqthx-3CQiCaxmXXsfLxxXmsaWvYxnnvyrv_Rg,1353
@@ -404,7 +404,7 @@ arthur_client/api_bindings/models/create_model_link_task_job_spec.py,sha256=i3zJ
404
404
  arthur_client/api_bindings/models/create_model_task_job_spec.py,sha256=ORAUE93tAR7X0QnKgjmtNEhmOHJblgfbxSsasuVM1QM,5408
405
405
  arthur_client/api_bindings/models/created_alerts.py,sha256=VpMIFjZJONB41YTMTdyHrFwi330Ijsvp1e3tMJmLDJY,3951
406
406
  arthur_client/api_bindings/models/credentials.py,sha256=LV3hHfzAKsH52pv4hClJJTUhveybeFz1qAzfpmNjoaI,5120
407
- arthur_client/api_bindings/models/custom_aggregation_spec_schema.py,sha256=7L0hGZviygz7d5KeGXzbyVzykznEaW0O1LS-qA2G9Zo,4317
407
+ arthur_client/api_bindings/models/custom_aggregation_spec_schema.py,sha256=koZrr-S9ciLtMgaiU9888l_KxKJ2Qj0ewHlVqoYxTA0,4931
408
408
  arthur_client/api_bindings/models/custom_aggregation_version_spec_schema.py,sha256=HfgPAQSbc9QEAMKRkYSEEbLY98hSJb1K-tdpTSOqIQk,5642
409
409
  arthur_client/api_bindings/models/custom_aggregation_version_spec_schema_aggregate_args_inner.py,sha256=FFwKdGe-XLGs3DPOuI_ZG5Qyy_jknYdFunyrk-GKees,6473
410
410
  arthur_client/api_bindings/models/d_type.py,sha256=DkkurJHk6BAYxilYGXvr3Okw59-jMiFd6BqREi0fi4E,889
@@ -707,7 +707,7 @@ arthur_client/api_bindings/test/test_create_model_link_task_job_spec.py,sha256=i
707
707
  arthur_client/api_bindings/test/test_create_model_task_job_spec.py,sha256=em-dqNJTtXZZWxI5UzR8xMd31COznWg2-WQ0WZx651w,3473
708
708
  arthur_client/api_bindings/test/test_created_alerts.py,sha256=rclyfnHDkLFY7syziyTbGqIwMQV87WzhmH-hKf2Z-z4,4440
709
709
  arthur_client/api_bindings/test/test_credentials.py,sha256=On6gHmoXdPMBHI9LfSjurRuvaqkRrozffz4JcbN7Hps,1532
710
- arthur_client/api_bindings/test/test_custom_aggregation_spec_schema.py,sha256=D7GT2iO3srj9BM7F_52ZoEezX5i0Ds-lq_lkUl8CuU4,5649
710
+ arthur_client/api_bindings/test/test_custom_aggregation_spec_schema.py,sha256=tkUkezHmiLbc4MyNM8v_-5g42DfaZ6axOwIVGQeWWnI,5791
711
711
  arthur_client/api_bindings/test/test_custom_aggregation_version_spec_schema.py,sha256=SbsnhfaeG8W-5BuRP6FAQ2ez7HWMHT7qrzNuO_CB16Q,4578
712
712
  arthur_client/api_bindings/test/test_custom_aggregation_version_spec_schema_aggregate_args_inner.py,sha256=iSSd2eAM62aW_We0ffrSajwtgI5xirnXTlKFgn0QF-w,2557
713
713
  arthur_client/api_bindings/test/test_custom_aggregations_v1_api.py,sha256=EMLcKM2Yt99AMn3M1T4gC09wnhKvydzP_CHFcSCXV94,1748
@@ -908,7 +908,7 @@ arthur_client/api_bindings/test/test_resource_list_alert_rule.py,sha256=M2mfPs68
908
908
  arthur_client/api_bindings/test/test_resource_list_available_dataset.py,sha256=cpQk91vzjLRg60XRMWLWdyHrKo67-Ij_b6dYkNw5v6A,6967
909
909
  arthur_client/api_bindings/test/test_resource_list_connector_spec.py,sha256=TdAHCROu_6B7DDo-WCC7nZsoukVpn8Hu1sp8Qjxcnx8,6091
910
910
  arthur_client/api_bindings/test/test_resource_list_connector_type.py,sha256=js4V1ZEAM_oinXZ3oYeTGxqv20dNp08hO1KcGfRwV-c,2139
911
- arthur_client/api_bindings/test/test_resource_list_custom_aggregation_spec_schema.py,sha256=NIRoUggPE5LWAO4mxKHYU23Ft9ZIbCKZhk9dFcCHe9Y,7271
911
+ arthur_client/api_bindings/test/test_resource_list_custom_aggregation_spec_schema.py,sha256=RqlTJaLHai-vobg0wl-t3Q6acHQdO6m9d9C4L01_6Xc,7591
912
912
  arthur_client/api_bindings/test/test_resource_list_data_plane.py,sha256=wFTUYqkrMCD-4GIMWW0GkJrksS5QrGCB_D3qogckOy4,3641
913
913
  arthur_client/api_bindings/test/test_resource_list_data_plane_association.py,sha256=y1qSKZtdKvw0aeFvW4cL8Svxma33KasfA3tEE7Ooq7Y,5902
914
914
  arthur_client/api_bindings/test/test_resource_list_dataset.py,sha256=P0Q9byKWOR9S2ivuAw4atdInIL8l8MJ3D-su5VMFWI8,7218
@@ -985,6 +985,6 @@ arthur_client/auth/device_authorizer.py,sha256=bJMIZRjkwQwoSWTLEp7OoXM2MytO3ADSD
985
985
  arthur_client/auth/discovery.py,sha256=hR0MglzRWHdwyi72If5hTnjO50fDJhquP_DD7OzjIQQ,1188
986
986
  arthur_client/auth/oauth_api_config.py,sha256=MB-bwm6Qo_USZD_4KVId6d_v5OtLBphwBjMjslVjTlo,1348
987
987
  arthur_client/auth/session.py,sha256=wCriib5ajfm1e1WTL_QXVCJmEOrGwQg_0v91e5qrC6g,2649
988
- arthur_client-1.4.1295.dist-info/METADATA,sha256=gi0-qHmr75YQuG1fGJd1DtW1E4_-QEJhXv7PasNn6e4,1730
989
- arthur_client-1.4.1295.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
990
- arthur_client-1.4.1295.dist-info/RECORD,,
988
+ arthur_client-1.4.1297.dist-info/METADATA,sha256=zrIxPGBbPehcSl4xFVnYAmRG7Igb1k8eRvc2jFw9wPQ,1730
989
+ arthur_client-1.4.1297.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
990
+ arthur_client-1.4.1297.dist-info/RECORD,,