scope-client 1.4.913__py3-none-any.whl → 1.4.914__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.
@@ -1163,6 +1163,7 @@ class ModelsV1Api:
1163
1163
  order: Annotated[Optional[SortOrder], Field(description="Override the sort order used. Optional.")] = None,
1164
1164
  dataset_id: Annotated[Optional[StrictStr], Field(description="Filter the results for the models that are based on this dataset id. Optional.")] = None,
1165
1165
  name: Annotated[Optional[StrictStr], Field(description="Filter the results for the models with a name similar to this name. Optional.")] = None,
1166
+ onboarding_identifier: Annotated[Optional[StrictStr], Field(description="Filter the results for models whose 'onboarding_identifier' matches the provided string.")] = None,
1166
1167
  page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The page to return starting from 1 up to total_pages.")] = None,
1167
1168
  page_size: Annotated[Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]], Field(description="The number of records per page. The max is 1000.")] = None,
1168
1169
  _request_timeout: Union[
@@ -1192,6 +1193,8 @@ class ModelsV1Api:
1192
1193
  :type dataset_id: str
1193
1194
  :param name: Filter the results for the models with a name similar to this name. Optional.
1194
1195
  :type name: str
1196
+ :param onboarding_identifier: Filter the results for models whose 'onboarding_identifier' matches the provided string.
1197
+ :type onboarding_identifier: str
1195
1198
  :param page: The page to return starting from 1 up to total_pages.
1196
1199
  :type page: int
1197
1200
  :param page_size: The number of records per page. The max is 1000.
@@ -1224,6 +1227,7 @@ class ModelsV1Api:
1224
1227
  order=order,
1225
1228
  dataset_id=dataset_id,
1226
1229
  name=name,
1230
+ onboarding_identifier=onboarding_identifier,
1227
1231
  page=page,
1228
1232
  page_size=page_size,
1229
1233
  _request_auth=_request_auth,
@@ -1257,6 +1261,7 @@ class ModelsV1Api:
1257
1261
  order: Annotated[Optional[SortOrder], Field(description="Override the sort order used. Optional.")] = None,
1258
1262
  dataset_id: Annotated[Optional[StrictStr], Field(description="Filter the results for the models that are based on this dataset id. Optional.")] = None,
1259
1263
  name: Annotated[Optional[StrictStr], Field(description="Filter the results for the models with a name similar to this name. Optional.")] = None,
1264
+ onboarding_identifier: Annotated[Optional[StrictStr], Field(description="Filter the results for models whose 'onboarding_identifier' matches the provided string.")] = None,
1260
1265
  page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The page to return starting from 1 up to total_pages.")] = None,
1261
1266
  page_size: Annotated[Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]], Field(description="The number of records per page. The max is 1000.")] = None,
1262
1267
  _request_timeout: Union[
@@ -1286,6 +1291,8 @@ class ModelsV1Api:
1286
1291
  :type dataset_id: str
1287
1292
  :param name: Filter the results for the models with a name similar to this name. Optional.
1288
1293
  :type name: str
1294
+ :param onboarding_identifier: Filter the results for models whose 'onboarding_identifier' matches the provided string.
1295
+ :type onboarding_identifier: str
1289
1296
  :param page: The page to return starting from 1 up to total_pages.
1290
1297
  :type page: int
1291
1298
  :param page_size: The number of records per page. The max is 1000.
@@ -1318,6 +1325,7 @@ class ModelsV1Api:
1318
1325
  order=order,
1319
1326
  dataset_id=dataset_id,
1320
1327
  name=name,
1328
+ onboarding_identifier=onboarding_identifier,
1321
1329
  page=page,
1322
1330
  page_size=page_size,
1323
1331
  _request_auth=_request_auth,
@@ -1351,6 +1359,7 @@ class ModelsV1Api:
1351
1359
  order: Annotated[Optional[SortOrder], Field(description="Override the sort order used. Optional.")] = None,
1352
1360
  dataset_id: Annotated[Optional[StrictStr], Field(description="Filter the results for the models that are based on this dataset id. Optional.")] = None,
1353
1361
  name: Annotated[Optional[StrictStr], Field(description="Filter the results for the models with a name similar to this name. Optional.")] = None,
1362
+ onboarding_identifier: Annotated[Optional[StrictStr], Field(description="Filter the results for models whose 'onboarding_identifier' matches the provided string.")] = None,
1354
1363
  page: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The page to return starting from 1 up to total_pages.")] = None,
1355
1364
  page_size: Annotated[Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]], Field(description="The number of records per page. The max is 1000.")] = None,
1356
1365
  _request_timeout: Union[
@@ -1380,6 +1389,8 @@ class ModelsV1Api:
1380
1389
  :type dataset_id: str
1381
1390
  :param name: Filter the results for the models with a name similar to this name. Optional.
1382
1391
  :type name: str
1392
+ :param onboarding_identifier: Filter the results for models whose 'onboarding_identifier' matches the provided string.
1393
+ :type onboarding_identifier: str
1383
1394
  :param page: The page to return starting from 1 up to total_pages.
1384
1395
  :type page: int
1385
1396
  :param page_size: The number of records per page. The max is 1000.
@@ -1412,6 +1423,7 @@ class ModelsV1Api:
1412
1423
  order=order,
1413
1424
  dataset_id=dataset_id,
1414
1425
  name=name,
1426
+ onboarding_identifier=onboarding_identifier,
1415
1427
  page=page,
1416
1428
  page_size=page_size,
1417
1429
  _request_auth=_request_auth,
@@ -1440,6 +1452,7 @@ class ModelsV1Api:
1440
1452
  order,
1441
1453
  dataset_id,
1442
1454
  name,
1455
+ onboarding_identifier,
1443
1456
  page,
1444
1457
  page_size,
1445
1458
  _request_auth,
@@ -1482,6 +1495,10 @@ class ModelsV1Api:
1482
1495
 
1483
1496
  _query_params.append(('name', name))
1484
1497
 
1498
+ if onboarding_identifier is not None:
1499
+
1500
+ _query_params.append(('onboarding_identifier', onboarding_identifier))
1501
+
1485
1502
  if page is not None:
1486
1503
 
1487
1504
  _query_params.append(('page', page))
@@ -38,12 +38,13 @@ class Model(BaseModel):
38
38
  project_id: StrictStr = Field(description="ID of the parent project.")
39
39
  name: StrictStr = Field(description="Name of the model.")
40
40
  description: Optional[StrictStr]
41
+ onboarding_identifier: Optional[StrictStr] = None
41
42
  last_updated_by_user: Optional[User] = None
42
43
  metric_config: ModelMetricSpec = Field(description="Metric configuration of the model.")
43
44
  schedule: Optional[ModelMetricsSchedule] = None
44
45
  model_problem_types: List[ModelProblemType] = Field(description="Unique model problem types of associated datasets.")
45
46
  datasets: List[DatasetReference] = Field(description="Datasets for the model.")
46
- __properties: ClassVar[List[str]] = ["created_at", "updated_at", "id", "project_id", "name", "description", "last_updated_by_user", "metric_config", "schedule", "model_problem_types", "datasets"]
47
+ __properties: ClassVar[List[str]] = ["created_at", "updated_at", "id", "project_id", "name", "description", "onboarding_identifier", "last_updated_by_user", "metric_config", "schedule", "model_problem_types", "datasets"]
47
48
 
48
49
  model_config = ConfigDict(
49
50
  populate_by_name=True,
@@ -105,6 +106,11 @@ class Model(BaseModel):
105
106
  if self.description is None and "description" in self.model_fields_set:
106
107
  _dict['description'] = None
107
108
 
109
+ # set to None if onboarding_identifier (nullable) is None
110
+ # and model_fields_set contains the field
111
+ if self.onboarding_identifier is None and "onboarding_identifier" in self.model_fields_set:
112
+ _dict['onboarding_identifier'] = None
113
+
108
114
  # set to None if last_updated_by_user (nullable) is None
109
115
  # and model_fields_set contains the field
110
116
  if self.last_updated_by_user is None and "last_updated_by_user" in self.model_fields_set:
@@ -133,6 +139,7 @@ class Model(BaseModel):
133
139
  "project_id": obj.get("project_id"),
134
140
  "name": obj.get("name"),
135
141
  "description": obj.get("description"),
142
+ "onboarding_identifier": obj.get("onboarding_identifier"),
136
143
  "last_updated_by_user": User.from_dict(obj["last_updated_by_user"]) if obj.get("last_updated_by_user") is not None else None,
137
144
  "metric_config": ModelMetricSpec.from_dict(obj["metric_config"]) if obj.get("metric_config") is not None else None,
138
145
  "schedule": ModelMetricsSchedule.from_dict(obj["schedule"]) if obj.get("schedule") is not None else None,
@@ -19,6 +19,7 @@ import json
19
19
 
20
20
  from pydantic import BaseModel, ConfigDict, Field, StrictStr
21
21
  from typing import Any, ClassVar, Dict, List, Optional
22
+ from typing_extensions import Annotated
22
23
  from scope_client.api_bindings.models.put_model_metric_spec import PutModelMetricSpec
23
24
  from typing import Optional, Set
24
25
  from typing_extensions import Self
@@ -29,9 +30,10 @@ class PostModel(BaseModel):
29
30
  """ # noqa: E501
30
31
  name: StrictStr = Field(description="Name of the model.")
31
32
  description: Optional[StrictStr]
33
+ onboarding_identifier: Optional[Annotated[str, Field(strict=True, max_length=1024)]] = None
32
34
  metric_config: Optional[PutModelMetricSpec] = None
33
35
  dataset_ids: List[StrictStr] = Field(description="IDs of datasets for the model.")
34
- __properties: ClassVar[List[str]] = ["name", "description", "metric_config", "dataset_ids"]
36
+ __properties: ClassVar[List[str]] = ["name", "description", "onboarding_identifier", "metric_config", "dataset_ids"]
35
37
 
36
38
  model_config = ConfigDict(
37
39
  populate_by_name=True,
@@ -80,6 +82,11 @@ class PostModel(BaseModel):
80
82
  if self.description is None and "description" in self.model_fields_set:
81
83
  _dict['description'] = None
82
84
 
85
+ # set to None if onboarding_identifier (nullable) is None
86
+ # and model_fields_set contains the field
87
+ if self.onboarding_identifier is None and "onboarding_identifier" in self.model_fields_set:
88
+ _dict['onboarding_identifier'] = None
89
+
83
90
  # set to None if metric_config (nullable) is None
84
91
  # and model_fields_set contains the field
85
92
  if self.metric_config is None and "metric_config" in self.model_fields_set:
@@ -99,6 +106,7 @@ class PostModel(BaseModel):
99
106
  _obj = cls.model_validate({
100
107
  "name": obj.get("name"),
101
108
  "description": obj.get("description"),
109
+ "onboarding_identifier": obj.get("onboarding_identifier"),
102
110
  "metric_config": PutModelMetricSpec.from_dict(obj["metric_config"]) if obj.get("metric_config") is not None else None,
103
111
  "dataset_ids": obj.get("dataset_ids")
104
112
  })
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: scope_client
3
- Version: 1.4.913
3
+ Version: 1.4.914
4
4
  Summary: Arthur Python API Client Library
5
5
  Author-email: Arthur <info@arthur.ai>
6
6
  License: MIT
@@ -20,7 +20,7 @@ scope_client/api_bindings/api/groups_v1_api.py,sha256=pQhyw03PyGEEWROuqh50ESmWwp
20
20
  scope_client/api_bindings/api/jobs_v1_api.py,sha256=ZdeRvKJLLRf9E9sBxJouXLwkU3XN4Tvhs6Aqak6zypw,162577
21
21
  scope_client/api_bindings/api/metric_functions_v1_api.py,sha256=45LccTGUq20MocyPk5rzbngTtAFRfyIw_Adck4RSP7s,10836
22
22
  scope_client/api_bindings/api/metrics_v1_api.py,sha256=QumpmMptWgGyCRBhNCUU23IQFLHslg3W3gFL4BMxLMI,52522
23
- scope_client/api_bindings/api/models_v1_api.py,sha256=viDIh3SNeqCwWb5e2JeH9OPdNw5KNzleh_uaCbzHxLI,106912
23
+ scope_client/api_bindings/api/models_v1_api.py,sha256=jDB0YnD_GakeprRzpwc2Ywqrq9tA76gb-e_HTWWRoFU,108316
24
24
  scope_client/api_bindings/api/o_auth_v1_api.py,sha256=XCr92645-nAMHQtEa3GdVonWTg4tiRuJ0oxdKgB5888,10708
25
25
  scope_client/api_bindings/api/organizations_v1_api.py,sha256=wCeGjH3bZzP0MNF1ZmAJDyZ2olu_ANsV9Klr4SZgn2s,20469
26
26
  scope_client/api_bindings/api/projects_v1_api.py,sha256=wFqaLcwwxQDrF10VtOgaa8PbOE5VaC6ERNCSrRJaUFQ,59391
@@ -148,7 +148,7 @@ scope_client/api_bindings/models/metrics_upload_metrics_inner.py,sha256=46eRuiOO
148
148
  scope_client/api_bindings/models/metrics_upload_result.py,sha256=1m4F6hEnfqAuUM0vJ3szIzazssQy5fNDNLR2f9KDRxo,3109
149
149
  scope_client/api_bindings/models/metrics_version.py,sha256=fdMhE-G65uU4oo7puz4WjpfzqEA4i51PjpblvHZ6r5I,3436
150
150
  scope_client/api_bindings/models/metrics_versions_sort.py,sha256=_ICvw8KzKmDhscMVob4_rZCFDEFDGXWSmDYDDQDDWCw,851
151
- scope_client/api_bindings/models/model.py,sha256=dMTevkvhtzpWJw-T6OK82gufiayeBvWfXFhppNw9Re4,6216
151
+ scope_client/api_bindings/models/model.py,sha256=u8RIH4RMqEwboT5yRChtr5gGCN2TIdsR1sNywNd8N-Q,6633
152
152
  scope_client/api_bindings/models/model_metric_spec.py,sha256=ToHw_BkX_5AHfuGE6kUJ4Q4keIvy2nsd2bKYXRIwU1o,3313
153
153
  scope_client/api_bindings/models/model_metrics_schedule.py,sha256=XECd_-w6it6yGG8t9gXK_RttPsrNsSLjryutHkiVh_A,3270
154
154
  scope_client/api_bindings/models/model_problem_type.py,sha256=-0Qy3HAcO4DFAMx5hXoAQcijqBOi9397qVdrYVoCf58,862
@@ -205,7 +205,7 @@ scope_client/api_bindings/models/post_metrics_query_result_filter_or_group.py,sh
205
205
  scope_client/api_bindings/models/post_metrics_query_result_filter_or_group_or_inner.py,sha256=DcqJxePk8zc_iB5p8fMyGziBg-eififDNI4_Kdb2ky8,6864
206
206
  scope_client/api_bindings/models/post_metrics_query_time_range.py,sha256=gTOllCTs3OnTzgYLuQc5h7BlH47pCqn4rt8-PCGNHHI,2730
207
207
  scope_client/api_bindings/models/post_metrics_versions.py,sha256=CtnQAw9vkAzAkMASJUOnJPrR-vu3mdDB88rVdMxlB3M,2818
208
- scope_client/api_bindings/models/post_model.py,sha256=2ebvBjPckq27QSLg0RdE8C8Zq5gbO5TtSNbpTUGga_o,3712
208
+ scope_client/api_bindings/models/post_model.py,sha256=QdcSx5vayGT5dhbGK5PRbtENHfxoVkyHv-jnQ09vFWw,4211
209
209
  scope_client/api_bindings/models/post_project.py,sha256=8yrNEepmtdckb75U32g9A9pZrXv4RJV7aG-PsemrmXw,2863
210
210
  scope_client/api_bindings/models/post_role_binding.py,sha256=eaw4eELQLRNlBJoMaK6Sb8WcikYqc7NR1shQKMhr2RE,3173
211
211
  scope_client/api_bindings/models/post_service_account.py,sha256=KaOLpnB_kI0Cj1XMFVV3-HYBBhnMFkU9Q7dIhcIuOug,2551
@@ -291,7 +291,7 @@ scope_client/auth/device_authorizer.py,sha256=bJMIZRjkwQwoSWTLEp7OoXM2MytO3ADSD9
291
291
  scope_client/auth/discovery.py,sha256=hR0MglzRWHdwyi72If5hTnjO50fDJhquP_DD7OzjIQQ,1188
292
292
  scope_client/auth/oauth_api_config.py,sha256=wcEslusOFKr0oTzW0Ku2MhM1mvc-nm4BEJU8LHo1uXA,1347
293
293
  scope_client/auth/session.py,sha256=wCriib5ajfm1e1WTL_QXVCJmEOrGwQg_0v91e5qrC6g,2649
294
- scope_client-1.4.913.dist-info/METADATA,sha256=Nxk_68fDhczfK2VJNFLwhxvG6Rkv8TfgHuiYuKpMWNY,1776
295
- scope_client-1.4.913.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
296
- scope_client-1.4.913.dist-info/top_level.txt,sha256=x6MngS09hi-TUDoUGb3SLzmnf8_cf8IVAVNPSqtTzAY,13
297
- scope_client-1.4.913.dist-info/RECORD,,
294
+ scope_client-1.4.914.dist-info/METADATA,sha256=t9r6nVjsStwnwioFP3isqxidqGridOijQi6hCdEPHKk,1776
295
+ scope_client-1.4.914.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
296
+ scope_client-1.4.914.dist-info/top_level.txt,sha256=x6MngS09hi-TUDoUGb3SLzmnf8_cf8IVAVNPSqtTzAY,13
297
+ scope_client-1.4.914.dist-info/RECORD,,