aind-metadata-service-async-client 1.1.5__py3-none-any.whl → 2.0.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.

Potentially problematic release.


This version of aind-metadata-service-async-client might be problematic. Click here for more details.

Files changed (31) hide show
  1. aind_metadata_service_async_client/__init__.py +2 -15
  2. aind_metadata_service_async_client/api/default_api.py +437 -175
  3. aind_metadata_service_async_client/api/healthcheck_api.py +2 -2
  4. aind_metadata_service_async_client/api_client.py +2 -2
  5. aind_metadata_service_async_client/configuration.py +3 -3
  6. aind_metadata_service_async_client/exceptions.py +1 -1
  7. aind_metadata_service_async_client/models/__init__.py +1 -14
  8. aind_metadata_service_async_client/models/health_check.py +3 -3
  9. aind_metadata_service_async_client/models/http_validation_error.py +1 -1
  10. aind_metadata_service_async_client/models/slims_workflow.py +1 -1
  11. aind_metadata_service_async_client/models/validation_error.py +1 -1
  12. aind_metadata_service_async_client/models/validation_error_loc_inner.py +1 -1
  13. aind_metadata_service_async_client/rest.py +1 -1
  14. {aind_metadata_service_async_client-1.1.5.dist-info → aind_metadata_service_async_client-2.0.0.dist-info}/METADATA +1 -1
  15. aind_metadata_service_async_client-2.0.0.dist-info/RECORD +20 -0
  16. aind_metadata_service_async_client/models/anyof_schema1_validator.py +0 -144
  17. aind_metadata_service_async_client/models/average_hit_rate.py +0 -144
  18. aind_metadata_service_async_client/models/fov_coordinate_ap.py +0 -144
  19. aind_metadata_service_async_client/models/fov_coordinate_ml.py +0 -112
  20. aind_metadata_service_async_client/models/hit_rate_trials010.py +0 -144
  21. aind_metadata_service_async_client/models/hit_rate_trials2040.py +0 -144
  22. aind_metadata_service_async_client/models/input_source.py +0 -122
  23. aind_metadata_service_async_client/models/job_settings.py +0 -369
  24. aind_metadata_service_async_client/models/job_settings_starting_lickport_position_inner.py +0 -138
  25. aind_metadata_service_async_client/models/output_directory.py +0 -108
  26. aind_metadata_service_async_client/models/total_hits.py +0 -144
  27. aind_metadata_service_async_client/models/trial_num.py +0 -144
  28. aind_metadata_service_async_client/models/user_settings_config_file.py +0 -108
  29. aind_metadata_service_async_client-1.1.5.dist-info/RECORD +0 -33
  30. {aind_metadata_service_async_client-1.1.5.dist-info → aind_metadata_service_async_client-2.0.0.dist-info}/WHEEL +0 -0
  31. {aind_metadata_service_async_client-1.1.5.dist-info → aind_metadata_service_async_client-2.0.0.dist-info}/top_level.txt +0 -0
@@ -1,144 +0,0 @@
1
- # coding: utf-8
2
-
3
- """
4
- aind-metadata-service
5
-
6
- ## aind-metadata-service Service to pull data from example backend.
7
-
8
- The version of the OpenAPI document: 1.1.5
9
- Generated by OpenAPI Generator (https://openapi-generator.tech)
10
-
11
- Do not edit the class manually.
12
- """ # noqa: E501
13
-
14
-
15
- from __future__ import annotations
16
- from inspect import getfullargspec
17
- import json
18
- import pprint
19
- import re # noqa: F401
20
- from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr, ValidationError, field_validator
21
- from typing import Optional, Union
22
- from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict
23
- from typing_extensions import Literal, Self
24
- from pydantic import Field
25
-
26
- TOTALHITS_ANY_OF_SCHEMAS = ["float", "int"]
27
-
28
- class TotalHits(BaseModel):
29
- """
30
- TotalHits
31
- """
32
-
33
- # data type: float
34
- anyof_schema_1_validator: Optional[Union[StrictFloat, StrictInt]] = None
35
- # data type: int
36
- anyof_schema_2_validator: Optional[StrictInt] = None
37
- if TYPE_CHECKING:
38
- actual_instance: Optional[Union[float, int]] = None
39
- else:
40
- actual_instance: Any = None
41
- any_of_schemas: Set[str] = { "float", "int" }
42
-
43
- model_config = {
44
- "validate_assignment": True,
45
- "protected_namespaces": (),
46
- }
47
-
48
- def __init__(self, *args, **kwargs) -> None:
49
- if args:
50
- if len(args) > 1:
51
- raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`")
52
- if kwargs:
53
- raise ValueError("If a position argument is used, keyword arguments cannot be used.")
54
- super().__init__(actual_instance=args[0])
55
- else:
56
- super().__init__(**kwargs)
57
-
58
- @field_validator('actual_instance')
59
- def actual_instance_must_validate_anyof(cls, v):
60
- if v is None:
61
- return v
62
-
63
- instance = TotalHits.model_construct()
64
- error_messages = []
65
- # validate data type: float
66
- try:
67
- instance.anyof_schema_1_validator = v
68
- return v
69
- except (ValidationError, ValueError) as e:
70
- error_messages.append(str(e))
71
- # validate data type: int
72
- try:
73
- instance.anyof_schema_2_validator = v
74
- return v
75
- except (ValidationError, ValueError) as e:
76
- error_messages.append(str(e))
77
- if error_messages:
78
- # no match
79
- raise ValueError("No match found when setting the actual_instance in TotalHits with anyOf schemas: float, int. Details: " + ", ".join(error_messages))
80
- else:
81
- return v
82
-
83
- @classmethod
84
- def from_dict(cls, obj: Dict[str, Any]) -> Self:
85
- return cls.from_json(json.dumps(obj))
86
-
87
- @classmethod
88
- def from_json(cls, json_str: str) -> Self:
89
- """Returns the object represented by the json string"""
90
- instance = cls.model_construct()
91
- if json_str is None:
92
- return instance
93
-
94
- error_messages = []
95
- # deserialize data into float
96
- try:
97
- # validation
98
- instance.anyof_schema_1_validator = json.loads(json_str)
99
- # assign value to actual_instance
100
- instance.actual_instance = instance.anyof_schema_1_validator
101
- return instance
102
- except (ValidationError, ValueError) as e:
103
- error_messages.append(str(e))
104
- # deserialize data into int
105
- try:
106
- # validation
107
- instance.anyof_schema_2_validator = json.loads(json_str)
108
- # assign value to actual_instance
109
- instance.actual_instance = instance.anyof_schema_2_validator
110
- return instance
111
- except (ValidationError, ValueError) as e:
112
- error_messages.append(str(e))
113
-
114
- if error_messages:
115
- # no match
116
- raise ValueError("No match found when deserializing the JSON string into TotalHits with anyOf schemas: float, int. Details: " + ", ".join(error_messages))
117
- else:
118
- return instance
119
-
120
- def to_json(self) -> str:
121
- """Returns the JSON representation of the actual instance"""
122
- if self.actual_instance is None:
123
- return "null"
124
-
125
- if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json):
126
- return self.actual_instance.to_json()
127
- else:
128
- return json.dumps(self.actual_instance)
129
-
130
- def to_dict(self) -> Optional[Union[Dict[str, Any], float, int]]:
131
- """Returns the dict representation of the actual instance"""
132
- if self.actual_instance is None:
133
- return None
134
-
135
- if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict):
136
- return self.actual_instance.to_dict()
137
- else:
138
- return self.actual_instance
139
-
140
- def to_str(self) -> str:
141
- """Returns the string representation of the actual instance"""
142
- return pprint.pformat(self.model_dump())
143
-
144
-
@@ -1,144 +0,0 @@
1
- # coding: utf-8
2
-
3
- """
4
- aind-metadata-service
5
-
6
- ## aind-metadata-service Service to pull data from example backend.
7
-
8
- The version of the OpenAPI document: 1.1.5
9
- Generated by OpenAPI Generator (https://openapi-generator.tech)
10
-
11
- Do not edit the class manually.
12
- """ # noqa: E501
13
-
14
-
15
- from __future__ import annotations
16
- from inspect import getfullargspec
17
- import json
18
- import pprint
19
- import re # noqa: F401
20
- from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr, ValidationError, field_validator
21
- from typing import Optional, Union
22
- from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict
23
- from typing_extensions import Literal, Self
24
- from pydantic import Field
25
-
26
- TRIALNUM_ANY_OF_SCHEMAS = ["float", "int"]
27
-
28
- class TrialNum(BaseModel):
29
- """
30
- TrialNum
31
- """
32
-
33
- # data type: float
34
- anyof_schema_1_validator: Optional[Union[StrictFloat, StrictInt]] = None
35
- # data type: int
36
- anyof_schema_2_validator: Optional[StrictInt] = None
37
- if TYPE_CHECKING:
38
- actual_instance: Optional[Union[float, int]] = None
39
- else:
40
- actual_instance: Any = None
41
- any_of_schemas: Set[str] = { "float", "int" }
42
-
43
- model_config = {
44
- "validate_assignment": True,
45
- "protected_namespaces": (),
46
- }
47
-
48
- def __init__(self, *args, **kwargs) -> None:
49
- if args:
50
- if len(args) > 1:
51
- raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`")
52
- if kwargs:
53
- raise ValueError("If a position argument is used, keyword arguments cannot be used.")
54
- super().__init__(actual_instance=args[0])
55
- else:
56
- super().__init__(**kwargs)
57
-
58
- @field_validator('actual_instance')
59
- def actual_instance_must_validate_anyof(cls, v):
60
- if v is None:
61
- return v
62
-
63
- instance = TrialNum.model_construct()
64
- error_messages = []
65
- # validate data type: float
66
- try:
67
- instance.anyof_schema_1_validator = v
68
- return v
69
- except (ValidationError, ValueError) as e:
70
- error_messages.append(str(e))
71
- # validate data type: int
72
- try:
73
- instance.anyof_schema_2_validator = v
74
- return v
75
- except (ValidationError, ValueError) as e:
76
- error_messages.append(str(e))
77
- if error_messages:
78
- # no match
79
- raise ValueError("No match found when setting the actual_instance in TrialNum with anyOf schemas: float, int. Details: " + ", ".join(error_messages))
80
- else:
81
- return v
82
-
83
- @classmethod
84
- def from_dict(cls, obj: Dict[str, Any]) -> Self:
85
- return cls.from_json(json.dumps(obj))
86
-
87
- @classmethod
88
- def from_json(cls, json_str: str) -> Self:
89
- """Returns the object represented by the json string"""
90
- instance = cls.model_construct()
91
- if json_str is None:
92
- return instance
93
-
94
- error_messages = []
95
- # deserialize data into float
96
- try:
97
- # validation
98
- instance.anyof_schema_1_validator = json.loads(json_str)
99
- # assign value to actual_instance
100
- instance.actual_instance = instance.anyof_schema_1_validator
101
- return instance
102
- except (ValidationError, ValueError) as e:
103
- error_messages.append(str(e))
104
- # deserialize data into int
105
- try:
106
- # validation
107
- instance.anyof_schema_2_validator = json.loads(json_str)
108
- # assign value to actual_instance
109
- instance.actual_instance = instance.anyof_schema_2_validator
110
- return instance
111
- except (ValidationError, ValueError) as e:
112
- error_messages.append(str(e))
113
-
114
- if error_messages:
115
- # no match
116
- raise ValueError("No match found when deserializing the JSON string into TrialNum with anyOf schemas: float, int. Details: " + ", ".join(error_messages))
117
- else:
118
- return instance
119
-
120
- def to_json(self) -> str:
121
- """Returns the JSON representation of the actual instance"""
122
- if self.actual_instance is None:
123
- return "null"
124
-
125
- if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json):
126
- return self.actual_instance.to_json()
127
- else:
128
- return json.dumps(self.actual_instance)
129
-
130
- def to_dict(self) -> Optional[Union[Dict[str, Any], float, int]]:
131
- """Returns the dict representation of the actual instance"""
132
- if self.actual_instance is None:
133
- return None
134
-
135
- if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict):
136
- return self.actual_instance.to_dict()
137
- else:
138
- return self.actual_instance
139
-
140
- def to_str(self) -> str:
141
- """Returns the string representation of the actual instance"""
142
- return pprint.pformat(self.model_dump())
143
-
144
-
@@ -1,108 +0,0 @@
1
- # coding: utf-8
2
-
3
- """
4
- aind-metadata-service
5
-
6
- ## aind-metadata-service Service to pull data from example backend.
7
-
8
- The version of the OpenAPI document: 1.1.5
9
- Generated by OpenAPI Generator (https://openapi-generator.tech)
10
-
11
- Do not edit the class manually.
12
- """ # noqa: E501
13
-
14
-
15
- from __future__ import annotations
16
- import pprint
17
- import re # noqa: F401
18
- import json
19
-
20
- from pydantic import BaseModel, ConfigDict, StrictStr
21
- from typing import Any, ClassVar, Dict, List, Optional
22
- from typing import Optional, Set
23
- from typing_extensions import Self
24
-
25
- class UserSettingsConfigFile(BaseModel):
26
- """
27
- Optionally pull settings from a local config file.
28
- """ # noqa: E501
29
- anyof_schema_1_validator: Optional[StrictStr] = None
30
- anyof_schema_2_validator: Optional[StrictStr] = None
31
- actual_instance: Optional[Any] = None
32
- any_of_schemas: Optional[List[StrictStr]] = None
33
- __properties: ClassVar[List[str]] = ["anyof_schema_1_validator", "anyof_schema_2_validator", "actual_instance", "any_of_schemas"]
34
-
35
- model_config = ConfigDict(
36
- populate_by_name=True,
37
- validate_assignment=True,
38
- protected_namespaces=(),
39
- )
40
-
41
-
42
- def to_str(self) -> str:
43
- """Returns the string representation of the model using alias"""
44
- return pprint.pformat(self.model_dump(by_alias=True))
45
-
46
- def to_json(self) -> str:
47
- """Returns the JSON representation of the model using alias"""
48
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
49
- return json.dumps(self.to_dict())
50
-
51
- @classmethod
52
- def from_json(cls, json_str: str) -> Optional[Self]:
53
- """Create an instance of UserSettingsConfigFile from a JSON string"""
54
- return cls.from_dict(json.loads(json_str))
55
-
56
- def to_dict(self) -> Dict[str, Any]:
57
- """Return the dictionary representation of the model using alias.
58
-
59
- This has the following differences from calling pydantic's
60
- `self.model_dump(by_alias=True)`:
61
-
62
- * `None` is only added to the output dict for nullable fields that
63
- were set at model initialization. Other fields with value `None`
64
- are ignored.
65
- """
66
- excluded_fields: Set[str] = set([
67
- ])
68
-
69
- _dict = self.model_dump(
70
- by_alias=True,
71
- exclude=excluded_fields,
72
- exclude_none=True,
73
- )
74
- # set to None if anyof_schema_1_validator (nullable) is None
75
- # and model_fields_set contains the field
76
- if self.anyof_schema_1_validator is None and "anyof_schema_1_validator" in self.model_fields_set:
77
- _dict['anyof_schema_1_validator'] = None
78
-
79
- # set to None if anyof_schema_2_validator (nullable) is None
80
- # and model_fields_set contains the field
81
- if self.anyof_schema_2_validator is None and "anyof_schema_2_validator" in self.model_fields_set:
82
- _dict['anyof_schema_2_validator'] = None
83
-
84
- # set to None if actual_instance (nullable) is None
85
- # and model_fields_set contains the field
86
- if self.actual_instance is None and "actual_instance" in self.model_fields_set:
87
- _dict['actual_instance'] = None
88
-
89
- return _dict
90
-
91
- @classmethod
92
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
93
- """Create an instance of UserSettingsConfigFile from a dict"""
94
- if obj is None:
95
- return None
96
-
97
- if not isinstance(obj, dict):
98
- return cls.model_validate(obj)
99
-
100
- _obj = cls.model_validate({
101
- "anyof_schema_1_validator": obj.get("anyof_schema_1_validator"),
102
- "anyof_schema_2_validator": obj.get("anyof_schema_2_validator"),
103
- "actual_instance": obj.get("actual_instance"),
104
- "any_of_schemas": obj.get("any_of_schemas")
105
- })
106
- return _obj
107
-
108
-
@@ -1,33 +0,0 @@
1
- aind_metadata_service_async_client/__init__.py,sha256=iBfGfFDBZ5THLIPvkSK32-a1z12mtupcjCRlLiob-yo,2858
2
- aind_metadata_service_async_client/api_client.py,sha256=YBMXc7fGT4e0WQQb9h_N8KREdoZwuD3A5cftRjhBi00,27680
3
- aind_metadata_service_async_client/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
4
- aind_metadata_service_async_client/configuration.py,sha256=gckjLXya4_S-TIe_WLwdJ6nD4XsCAbDeTJG3Oq7GpNQ,17633
5
- aind_metadata_service_async_client/exceptions.py,sha256=FGQNWWwZUukVcKIFw3xtwsIIkZq93HOL690ARX4hpcI,6450
6
- aind_metadata_service_async_client/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
- aind_metadata_service_async_client/rest.py,sha256=_vr5yZjKeSOxR_ajkFm2NJgqGFeo30thDqBTLGiGzYo,7291
8
- aind_metadata_service_async_client/api/__init__.py,sha256=d96ze7sPL5kXXzyh_qEhQY8xwPQP7HlPQzA_hU2u4Ck,204
9
- aind_metadata_service_async_client/api/default_api.py,sha256=YEG6_nqVg2MIN9XGvyvwesjQ2wqQTGqqlNPk1rbe8Lo,145209
10
- aind_metadata_service_async_client/api/healthcheck_api.py,sha256=g-jon7v_pOWMx_iSMJQW5DDf13xhDU0iudDd6Tnb48o,10642
11
- aind_metadata_service_async_client/models/__init__.py,sha256=Eua0OQrnng-4BfQ3bvyi4kIHFqvAqFgygdoybZ59mZk,1978
12
- aind_metadata_service_async_client/models/anyof_schema1_validator.py,sha256=anbss1KD0LpRJrC9AdhV6TbIpKtt99G3UEUrs-6GUbY,5012
13
- aind_metadata_service_async_client/models/average_hit_rate.py,sha256=ZqcR3Y459etrDLDy5wTo2ZqbNX6tRvlEgodtIturh1o,4970
14
- aind_metadata_service_async_client/models/fov_coordinate_ap.py,sha256=LpXIgLxB4V93Esff6gzipZojUBptqGQXqUz0dTXWqCE,4976
15
- aind_metadata_service_async_client/models/fov_coordinate_ml.py,sha256=_8cacE0zyXUvlyv7ocCJLKMkSAXmyHUt0OwK1gl6vFg,4208
16
- aind_metadata_service_async_client/models/health_check.py,sha256=KpAEVnl7mMG1S0C2kxP2NMqF5uyX9EdVhO2Ee2EoJ_c,3059
17
- aind_metadata_service_async_client/models/hit_rate_trials010.py,sha256=ftHcF2-pEqpmbog4hS3VSeWCEwPdebxO-4MsKaHkQ-w,4982
18
- aind_metadata_service_async_client/models/hit_rate_trials2040.py,sha256=bBIy_6wooPv-Dcb37iv1hzM2s3iia3wxzzlLtVH1f9U,4988
19
- aind_metadata_service_async_client/models/http_validation_error.py,sha256=aKCFfI5CzVTWBlBvooGzgoCFwU45IpleYfBE1yxiTu8,3003
20
- aind_metadata_service_async_client/models/input_source.py,sha256=RFOxCNk4Fu80hhrgGH__-yy2hVonqHPVxqIglZ5nPrU,4700
21
- aind_metadata_service_async_client/models/job_settings.py,sha256=q1q2qvQSDzxeZ7mkdnR9XiqX3V8GsXoPDnFCPjDd_FE,19877
22
- aind_metadata_service_async_client/models/job_settings_starting_lickport_position_inner.py,sha256=jCZXKvXD2k3lsyWjttVcWX1feruqHMvlScTmxxuzQV0,5024
23
- aind_metadata_service_async_client/models/output_directory.py,sha256=6dbzJjfVIXDPs1lBhp8GRZsBtw5Zb6rEs-68-OHNLRk,3815
24
- aind_metadata_service_async_client/models/slims_workflow.py,sha256=exbXXLj9sPy8xzpZfGQOwS6GnNyS3ju6_dZ9h-GDjPA,914
25
- aind_metadata_service_async_client/models/total_hits.py,sha256=CdCERdBtJu4Z4R5lcrGhPmdFydaSY7OC_wErjcgeCOY,4940
26
- aind_metadata_service_async_client/models/trial_num.py,sha256=IaQsmrQfvWU61-8B29bOHdS6Tqkgj3JsQIAqLQHGNB8,4934
27
- aind_metadata_service_async_client/models/user_settings_config_file.py,sha256=faMozK3ADJ3N1O6I_gdCDdSirDQ1xcvF_9w4PHTCRIo,3829
28
- aind_metadata_service_async_client/models/validation_error.py,sha256=tvxrbKlPnvO5AojepXgcQRLpX2sbyxusv99F1WmxYTg,3095
29
- aind_metadata_service_async_client/models/validation_error_loc_inner.py,sha256=d8kn6RgsfERCyzRj6OWqKM4k9z4UJzbSnpiN5sVJ5n4,4864
30
- aind_metadata_service_async_client-1.1.5.dist-info/METADATA,sha256=WFeqsQddrElA4PuY6m-fdL3mNswlpBE7MCouNbw528s,732
31
- aind_metadata_service_async_client-1.1.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
32
- aind_metadata_service_async_client-1.1.5.dist-info/top_level.txt,sha256=qZsXHVGh-0uni82lQ-rEHhHR5xE4vTvVjd5Km-m4GJE,35
33
- aind_metadata_service_async_client-1.1.5.dist-info/RECORD,,