across-server-openapi-python 1.4.0__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.
- across/sdk/v1/__init__.py +48 -19
- across/sdk/v1/api/__init__.py +1 -1
- across/sdk/v1/api/auth_api.py +17 -286
- across/sdk/v1/api/broker_alert_api.py +36 -36
- across/sdk/v1/api/broker_event_api.py +20 -20
- across/sdk/v1/api/filter_api.py +20 -20
- across/sdk/v1/api/group_api.py +25 -275
- across/sdk/v1/api/group_invite_api.py +65 -66
- across/sdk/v1/api/group_role_api.py +111 -112
- across/sdk/v1/api/instrument_api.py +20 -20
- across/sdk/v1/api/internal_api.py +19 -20
- across/sdk/v1/api/observation_api.py +106 -109
- across/sdk/v1/api/observation_request_api.py +2108 -0
- across/sdk/v1/api/observatory_api.py +24 -25
- across/sdk/v1/api/permission_api.py +5 -6
- across/sdk/v1/api/schedule_api.py +84 -86
- across/sdk/v1/api/service_account_api.py +121 -122
- across/sdk/v1/api/telescope_api.py +26 -26
- across/sdk/v1/api/tle_api.py +7 -8
- across/sdk/v1/api/tools_api.py +55 -55
- across/sdk/v1/api/user_api.py +100 -349
- across/sdk/v1/api_client.py +111 -47
- across/sdk/v1/configuration.py +106 -33
- across/sdk/v1/exceptions.py +8 -6
- across/sdk/v1/models/__init__.py +24 -10
- across/sdk/v1/models/access_token_response.py +5 -4
- across/sdk/v1/models/across_server_routes_v1_group_invite_schemas_group_invite.py +106 -0
- across/sdk/v1/models/across_server_routes_v1_group_role_schemas_group.py +7 -5
- across/sdk/v1/models/across_server_routes_v1_group_role_schemas_group_role.py +20 -15
- across/sdk/v1/models/across_server_routes_v1_group_role_schemas_service_account.py +107 -0
- across/sdk/v1/models/across_server_routes_v1_group_role_schemas_user.py +7 -5
- across/sdk/v1/models/across_server_routes_v1_group_schemas_group.py +12 -12
- across/sdk/v1/models/across_server_routes_v1_group_schemas_user.py +8 -7
- across/sdk/v1/models/across_server_routes_v1_user_schemas_group.py +11 -10
- across/sdk/v1/models/across_server_routes_v1_user_schemas_group_invite.py +8 -6
- across/sdk/v1/models/across_server_routes_v1_user_schemas_group_role.py +8 -7
- across/sdk/v1/models/across_server_routes_v1_user_schemas_user.py +14 -16
- across/sdk/v1/models/across_server_routes_v1_user_service_account_schemas_service_account.py +8 -7
- across/sdk/v1/models/bandpass.py +1 -1
- across/sdk/v1/models/bandpass_type.py +1 -1
- across/sdk/v1/models/broker_alert.py +8 -6
- across/sdk/v1/models/broker_alert_create.py +6 -6
- across/sdk/v1/models/broker_alert_data_source.py +1 -1
- across/sdk/v1/models/broker_alert_status.py +1 -1
- across/sdk/v1/models/broker_event.py +9 -9
- across/sdk/v1/models/broker_event_type.py +1 -1
- across/sdk/v1/models/constrained_date.py +8 -6
- across/sdk/v1/models/constraint_reason.py +5 -4
- across/sdk/v1/models/constraint_type.py +1 -1
- across/sdk/v1/models/coordinate.py +5 -4
- across/sdk/v1/models/date_range.py +5 -4
- across/sdk/v1/models/date_range_create.py +96 -0
- across/sdk/v1/models/depth_unit.py +1 -1
- across/sdk/v1/models/energy_bandpass.py +5 -4
- across/sdk/v1/models/energy_unit.py +1 -1
- across/sdk/v1/models/ephemeris_type.py +1 -1
- across/sdk/v1/models/filter.py +8 -6
- across/sdk/v1/models/frequency_bandpass.py +5 -4
- across/sdk/v1/models/frequency_unit.py +1 -1
- across/sdk/v1/models/grant_type.py +1 -1
- across/sdk/v1/models/ground_parameters.py +5 -4
- across/sdk/v1/models/group_base.py +7 -5
- across/sdk/v1/models/group_invite_create.py +5 -4
- across/sdk/v1/models/group_invite_group_details.py +7 -5
- across/sdk/v1/models/group_read.py +7 -5
- across/sdk/v1/models/group_role_create.py +7 -5
- across/sdk/v1/models/group_role_read.py +8 -7
- across/sdk/v1/models/http_validation_error.py +6 -6
- across/sdk/v1/models/id_name_schema.py +7 -5
- across/sdk/v1/models/instrument.py +31 -15
- across/sdk/v1/models/ivoa_obs_category.py +1 -1
- across/sdk/v1/models/ivoa_obs_tracking_type.py +1 -1
- across/sdk/v1/models/joint_visibility_result.py +23 -23
- across/sdk/v1/models/jpl_parameters.py +5 -4
- across/sdk/v1/models/localization.py +11 -10
- across/sdk/v1/models/localization_contour_base.py +6 -6
- across/sdk/v1/models/localization_create.py +6 -6
- across/sdk/v1/models/location_inner.py +1 -1
- across/sdk/v1/models/name_resolver.py +5 -4
- across/sdk/v1/models/nullable_date_range.py +5 -4
- across/sdk/v1/models/nullable_end_date_range.py +96 -0
- across/sdk/v1/models/observation.py +11 -10
- across/sdk/v1/models/observation_create.py +9 -8
- across/sdk/v1/models/observation_footprint.py +10 -9
- across/sdk/v1/models/observation_footprint_create.py +6 -6
- across/sdk/v1/models/observation_request.py +202 -0
- across/sdk/v1/models/observation_request_create.py +148 -0
- across/sdk/v1/models/observation_request_create_many.py +95 -0
- across/sdk/v1/models/observation_request_status.py +40 -0
- across/sdk/v1/models/observation_request_update.py +213 -0
- across/sdk/v1/models/observation_request_version.py +99 -0
- across/sdk/v1/models/observation_status.py +1 -1
- across/sdk/v1/models/observation_strategy.py +1 -1
- across/sdk/v1/models/observation_type.py +1 -1
- across/sdk/v1/models/observation_window.py +134 -0
- across/sdk/v1/models/observation_window1.py +140 -0
- across/sdk/v1/models/observatory.py +9 -9
- across/sdk/v1/models/observatory_ephemeris_type.py +5 -4
- across/sdk/v1/models/observatory_type.py +1 -1
- across/sdk/v1/models/observing_proposal.py +93 -0
- across/sdk/v1/models/observing_proposal_create.py +98 -0
- across/sdk/v1/models/page_broker_alert.py +6 -6
- across/sdk/v1/models/page_broker_event.py +6 -6
- across/sdk/v1/models/page_observation.py +6 -6
- across/sdk/v1/models/page_observation_request.py +116 -0
- across/sdk/v1/models/page_schedule.py +6 -6
- across/sdk/v1/models/parameters.py +1 -1
- across/sdk/v1/models/permission.py +7 -5
- across/sdk/v1/models/point.py +5 -4
- across/sdk/v1/models/proper_motion.py +93 -0
- across/sdk/v1/models/role_base.py +7 -5
- across/sdk/v1/models/schedule.py +10 -9
- across/sdk/v1/models/schedule_cadence.py +8 -6
- across/sdk/v1/models/schedule_create.py +8 -7
- across/sdk/v1/models/schedule_create_many.py +9 -8
- across/sdk/v1/models/schedule_fidelity.py +1 -1
- across/sdk/v1/models/schedule_status.py +1 -1
- across/sdk/v1/models/service_account_create.py +5 -4
- across/sdk/v1/models/service_account_secret.py +7 -5
- across/sdk/v1/models/service_account_update.py +5 -4
- across/sdk/v1/models/setting.py +100 -0
- across/sdk/v1/models/setting_type.py +39 -0
- across/sdk/v1/models/spice_parameters.py +5 -4
- across/sdk/v1/models/system_service_account.py +9 -9
- across/sdk/v1/models/telescope.py +9 -9
- across/sdk/v1/models/telescope_instrument.py +31 -15
- across/sdk/v1/models/tle.py +5 -4
- across/sdk/v1/models/tle_create.py +5 -4
- across/sdk/v1/models/tle_parameters.py +5 -4
- across/sdk/v1/models/unit_value.py +5 -4
- across/sdk/v1/models/user_create.py +5 -4
- across/sdk/v1/models/user_info.py +7 -5
- across/sdk/v1/models/user_update.py +5 -4
- across/sdk/v1/models/validation_error.py +21 -12
- across/sdk/v1/models/validation_error_loc_inner.py +1 -1
- across/sdk/v1/models/visibility_result.py +14 -11
- across/sdk/v1/models/visibility_type.py +1 -1
- across/sdk/v1/models/visibility_window.py +5 -4
- across/sdk/v1/models/wavelength_bandpass.py +5 -4
- across/sdk/v1/models/wavelength_unit.py +1 -1
- across/sdk/v1/models/window.py +5 -4
- across/sdk/v1/rest.py +88 -12
- {across_server_openapi_python-1.4.0.dist-info → across_server_openapi_python-2.0.0.dist-info}/METADATA +103 -45
- across_server_openapi_python-2.0.0.dist-info/RECORD +162 -0
- {across_server_openapi_python-1.4.0.dist-info → across_server_openapi_python-2.0.0.dist-info}/WHEEL +1 -1
- across_server_openapi_python-1.4.0.dist-info/RECORD +0 -143
- {across_server_openapi_python-1.4.0.dist-info → across_server_openapi_python-2.0.0.dist-info}/licenses/LICENSE +0 -0
- {across_server_openapi_python-1.4.0.dist-info → across_server_openapi_python-2.0.0.dist-info}/top_level.txt +0 -0
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Server providing tools and utilities for various NASA missions to aid in coordination of large observation efforts.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document:
|
|
8
|
+
The version of the OpenAPI document: 2.0.2
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
11
|
Do not edit the class manually.
|
|
@@ -19,15 +19,17 @@ import json
|
|
|
19
19
|
|
|
20
20
|
from pydantic import BaseModel, ConfigDict, StrictStr
|
|
21
21
|
from typing import Any, ClassVar, Dict, List
|
|
22
|
+
from uuid import UUID
|
|
22
23
|
from across.sdk.v1.models.group_role_read import GroupRoleRead
|
|
23
24
|
from typing import Optional, Set
|
|
24
25
|
from typing_extensions import Self
|
|
26
|
+
from pydantic_core import to_jsonable_python
|
|
25
27
|
|
|
26
28
|
class AcrossServerRoutesV1GroupSchemasUser(BaseModel):
|
|
27
29
|
"""
|
|
28
30
|
AcrossServerRoutesV1GroupSchemasUser
|
|
29
31
|
""" # noqa: E501
|
|
30
|
-
id:
|
|
32
|
+
id: UUID
|
|
31
33
|
username: StrictStr
|
|
32
34
|
first_name: StrictStr
|
|
33
35
|
last_name: StrictStr
|
|
@@ -36,7 +38,8 @@ class AcrossServerRoutesV1GroupSchemasUser(BaseModel):
|
|
|
36
38
|
__properties: ClassVar[List[str]] = ["id", "username", "first_name", "last_name", "email", "group_roles"]
|
|
37
39
|
|
|
38
40
|
model_config = ConfigDict(
|
|
39
|
-
|
|
41
|
+
validate_by_name=True,
|
|
42
|
+
validate_by_alias=True,
|
|
40
43
|
validate_assignment=True,
|
|
41
44
|
protected_namespaces=(),
|
|
42
45
|
)
|
|
@@ -48,8 +51,7 @@ class AcrossServerRoutesV1GroupSchemasUser(BaseModel):
|
|
|
48
51
|
|
|
49
52
|
def to_json(self) -> str:
|
|
50
53
|
"""Returns the JSON representation of the model using alias"""
|
|
51
|
-
|
|
52
|
-
return json.dumps(self.to_dict())
|
|
54
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
53
55
|
|
|
54
56
|
@classmethod
|
|
55
57
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -78,8 +80,7 @@ class AcrossServerRoutesV1GroupSchemasUser(BaseModel):
|
|
|
78
80
|
_items = []
|
|
79
81
|
if self.group_roles:
|
|
80
82
|
for _item_group_roles in self.group_roles:
|
|
81
|
-
if _item_group_roles
|
|
82
|
-
_items.append(_item_group_roles.to_dict())
|
|
83
|
+
_items.append(_item_group_roles.to_dict() if _item_group_roles is not None else None)
|
|
83
84
|
_dict['group_roles'] = _items
|
|
84
85
|
return _dict
|
|
85
86
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Server providing tools and utilities for various NASA missions to aid in coordination of large observation efforts.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document:
|
|
8
|
+
The version of the OpenAPI document: 2.0.2
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
11
|
Do not edit the class manually.
|
|
@@ -19,22 +19,25 @@ import json
|
|
|
19
19
|
|
|
20
20
|
from pydantic import BaseModel, ConfigDict, StrictStr
|
|
21
21
|
from typing import Any, ClassVar, Dict, List
|
|
22
|
-
from
|
|
22
|
+
from uuid import UUID
|
|
23
|
+
from across.sdk.v1.models.across_server_routes_v1_user_schemas_group_role import AcrossServerRoutesV1UserSchemasGroupRole
|
|
23
24
|
from typing import Optional, Set
|
|
24
25
|
from typing_extensions import Self
|
|
26
|
+
from pydantic_core import to_jsonable_python
|
|
25
27
|
|
|
26
28
|
class AcrossServerRoutesV1UserSchemasGroup(BaseModel):
|
|
27
29
|
"""
|
|
28
30
|
AcrossServerRoutesV1UserSchemasGroup
|
|
29
31
|
""" # noqa: E501
|
|
30
|
-
id:
|
|
32
|
+
id: UUID
|
|
31
33
|
name: StrictStr
|
|
32
34
|
short_name: StrictStr
|
|
33
|
-
roles: List[
|
|
35
|
+
roles: List[AcrossServerRoutesV1UserSchemasGroupRole]
|
|
34
36
|
__properties: ClassVar[List[str]] = ["id", "name", "short_name", "roles"]
|
|
35
37
|
|
|
36
38
|
model_config = ConfigDict(
|
|
37
|
-
|
|
39
|
+
validate_by_name=True,
|
|
40
|
+
validate_by_alias=True,
|
|
38
41
|
validate_assignment=True,
|
|
39
42
|
protected_namespaces=(),
|
|
40
43
|
)
|
|
@@ -46,8 +49,7 @@ class AcrossServerRoutesV1UserSchemasGroup(BaseModel):
|
|
|
46
49
|
|
|
47
50
|
def to_json(self) -> str:
|
|
48
51
|
"""Returns the JSON representation of the model using alias"""
|
|
49
|
-
|
|
50
|
-
return json.dumps(self.to_dict())
|
|
52
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
51
53
|
|
|
52
54
|
@classmethod
|
|
53
55
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -76,8 +78,7 @@ class AcrossServerRoutesV1UserSchemasGroup(BaseModel):
|
|
|
76
78
|
_items = []
|
|
77
79
|
if self.roles:
|
|
78
80
|
for _item_roles in self.roles:
|
|
79
|
-
if _item_roles
|
|
80
|
-
_items.append(_item_roles.to_dict())
|
|
81
|
+
_items.append(_item_roles.to_dict() if _item_roles is not None else None)
|
|
81
82
|
_dict['roles'] = _items
|
|
82
83
|
return _dict
|
|
83
84
|
|
|
@@ -94,7 +95,7 @@ class AcrossServerRoutesV1UserSchemasGroup(BaseModel):
|
|
|
94
95
|
"id": obj.get("id"),
|
|
95
96
|
"name": obj.get("name"),
|
|
96
97
|
"short_name": obj.get("short_name"),
|
|
97
|
-
"roles": [
|
|
98
|
+
"roles": [AcrossServerRoutesV1UserSchemasGroupRole.from_dict(_item) for _item in obj["roles"]] if obj.get("roles") is not None else None
|
|
98
99
|
})
|
|
99
100
|
return _obj
|
|
100
101
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Server providing tools and utilities for various NASA missions to aid in coordination of large observation efforts.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document:
|
|
8
|
+
The version of the OpenAPI document: 2.0.2
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
11
|
Do not edit the class manually.
|
|
@@ -17,24 +17,27 @@ import pprint
|
|
|
17
17
|
import re # noqa: F401
|
|
18
18
|
import json
|
|
19
19
|
|
|
20
|
-
from pydantic import BaseModel, ConfigDict
|
|
20
|
+
from pydantic import BaseModel, ConfigDict
|
|
21
21
|
from typing import Any, ClassVar, Dict, List
|
|
22
|
+
from uuid import UUID
|
|
22
23
|
from across.sdk.v1.models.group_invite_group_details import GroupInviteGroupDetails
|
|
23
24
|
from across.sdk.v1.models.user_info import UserInfo
|
|
24
25
|
from typing import Optional, Set
|
|
25
26
|
from typing_extensions import Self
|
|
27
|
+
from pydantic_core import to_jsonable_python
|
|
26
28
|
|
|
27
29
|
class AcrossServerRoutesV1UserSchemasGroupInvite(BaseModel):
|
|
28
30
|
"""
|
|
29
31
|
AcrossServerRoutesV1UserSchemasGroupInvite
|
|
30
32
|
""" # noqa: E501
|
|
31
|
-
id:
|
|
33
|
+
id: UUID
|
|
32
34
|
group: GroupInviteGroupDetails
|
|
33
35
|
sender: UserInfo
|
|
34
36
|
__properties: ClassVar[List[str]] = ["id", "group", "sender"]
|
|
35
37
|
|
|
36
38
|
model_config = ConfigDict(
|
|
37
|
-
|
|
39
|
+
validate_by_name=True,
|
|
40
|
+
validate_by_alias=True,
|
|
38
41
|
validate_assignment=True,
|
|
39
42
|
protected_namespaces=(),
|
|
40
43
|
)
|
|
@@ -46,8 +49,7 @@ class AcrossServerRoutesV1UserSchemasGroupInvite(BaseModel):
|
|
|
46
49
|
|
|
47
50
|
def to_json(self) -> str:
|
|
48
51
|
"""Returns the JSON representation of the model using alias"""
|
|
49
|
-
|
|
50
|
-
return json.dumps(self.to_dict())
|
|
52
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
51
53
|
|
|
52
54
|
@classmethod
|
|
53
55
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Server providing tools and utilities for various NASA missions to aid in coordination of large observation efforts.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document:
|
|
8
|
+
The version of the OpenAPI document: 2.0.2
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
11
|
Do not edit the class manually.
|
|
@@ -19,23 +19,26 @@ import json
|
|
|
19
19
|
|
|
20
20
|
from pydantic import BaseModel, ConfigDict, StrictStr
|
|
21
21
|
from typing import Any, ClassVar, Dict, List
|
|
22
|
+
from uuid import UUID
|
|
22
23
|
from across.sdk.v1.models.group_base import GroupBase
|
|
23
24
|
from across.sdk.v1.models.permission import Permission
|
|
24
25
|
from typing import Optional, Set
|
|
25
26
|
from typing_extensions import Self
|
|
27
|
+
from pydantic_core import to_jsonable_python
|
|
26
28
|
|
|
27
29
|
class AcrossServerRoutesV1UserSchemasGroupRole(BaseModel):
|
|
28
30
|
"""
|
|
29
31
|
AcrossServerRoutesV1UserSchemasGroupRole
|
|
30
32
|
""" # noqa: E501
|
|
31
|
-
id:
|
|
33
|
+
id: UUID
|
|
32
34
|
name: StrictStr
|
|
33
35
|
permissions: List[Permission]
|
|
34
36
|
group: GroupBase
|
|
35
37
|
__properties: ClassVar[List[str]] = ["id", "name", "permissions", "group"]
|
|
36
38
|
|
|
37
39
|
model_config = ConfigDict(
|
|
38
|
-
|
|
40
|
+
validate_by_name=True,
|
|
41
|
+
validate_by_alias=True,
|
|
39
42
|
validate_assignment=True,
|
|
40
43
|
protected_namespaces=(),
|
|
41
44
|
)
|
|
@@ -47,8 +50,7 @@ class AcrossServerRoutesV1UserSchemasGroupRole(BaseModel):
|
|
|
47
50
|
|
|
48
51
|
def to_json(self) -> str:
|
|
49
52
|
"""Returns the JSON representation of the model using alias"""
|
|
50
|
-
|
|
51
|
-
return json.dumps(self.to_dict())
|
|
53
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
52
54
|
|
|
53
55
|
@classmethod
|
|
54
56
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -77,8 +79,7 @@ class AcrossServerRoutesV1UserSchemasGroupRole(BaseModel):
|
|
|
77
79
|
_items = []
|
|
78
80
|
if self.permissions:
|
|
79
81
|
for _item_permissions in self.permissions:
|
|
80
|
-
if _item_permissions
|
|
81
|
-
_items.append(_item_permissions.to_dict())
|
|
82
|
+
_items.append(_item_permissions.to_dict() if _item_permissions is not None else None)
|
|
82
83
|
_dict['permissions'] = _items
|
|
83
84
|
# override the default output from pydantic by calling `to_dict()` of group
|
|
84
85
|
if self.group:
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Server providing tools and utilities for various NASA missions to aid in coordination of large observation efforts.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document:
|
|
8
|
+
The version of the OpenAPI document: 2.0.2
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
11
|
Do not edit the class manually.
|
|
@@ -19,12 +19,14 @@ import json
|
|
|
19
19
|
|
|
20
20
|
from pydantic import BaseModel, ConfigDict, StrictStr
|
|
21
21
|
from typing import Any, ClassVar, Dict, List
|
|
22
|
+
from uuid import UUID
|
|
22
23
|
from across.sdk.v1.models.across_server_routes_v1_user_schemas_group import AcrossServerRoutesV1UserSchemasGroup
|
|
23
24
|
from across.sdk.v1.models.across_server_routes_v1_user_schemas_group_invite import AcrossServerRoutesV1UserSchemasGroupInvite
|
|
24
|
-
from across.sdk.v1.models.
|
|
25
|
+
from across.sdk.v1.models.across_server_routes_v1_user_schemas_group_role import AcrossServerRoutesV1UserSchemasGroupRole
|
|
25
26
|
from across.sdk.v1.models.role_base import RoleBase
|
|
26
27
|
from typing import Optional, Set
|
|
27
28
|
from typing_extensions import Self
|
|
29
|
+
from pydantic_core import to_jsonable_python
|
|
28
30
|
|
|
29
31
|
class AcrossServerRoutesV1UserSchemasUser(BaseModel):
|
|
30
32
|
"""
|
|
@@ -34,15 +36,16 @@ class AcrossServerRoutesV1UserSchemasUser(BaseModel):
|
|
|
34
36
|
first_name: StrictStr
|
|
35
37
|
last_name: StrictStr
|
|
36
38
|
email: StrictStr
|
|
37
|
-
id:
|
|
39
|
+
id: UUID
|
|
38
40
|
groups: List[AcrossServerRoutesV1UserSchemasGroup]
|
|
39
41
|
roles: List[RoleBase]
|
|
40
|
-
group_roles: List[
|
|
42
|
+
group_roles: List[AcrossServerRoutesV1UserSchemasGroupRole]
|
|
41
43
|
received_invites: List[AcrossServerRoutesV1UserSchemasGroupInvite]
|
|
42
44
|
__properties: ClassVar[List[str]] = ["username", "first_name", "last_name", "email", "id", "groups", "roles", "group_roles", "received_invites"]
|
|
43
45
|
|
|
44
46
|
model_config = ConfigDict(
|
|
45
|
-
|
|
47
|
+
validate_by_name=True,
|
|
48
|
+
validate_by_alias=True,
|
|
46
49
|
validate_assignment=True,
|
|
47
50
|
protected_namespaces=(),
|
|
48
51
|
)
|
|
@@ -54,8 +57,7 @@ class AcrossServerRoutesV1UserSchemasUser(BaseModel):
|
|
|
54
57
|
|
|
55
58
|
def to_json(self) -> str:
|
|
56
59
|
"""Returns the JSON representation of the model using alias"""
|
|
57
|
-
|
|
58
|
-
return json.dumps(self.to_dict())
|
|
60
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
59
61
|
|
|
60
62
|
@classmethod
|
|
61
63
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -84,29 +86,25 @@ class AcrossServerRoutesV1UserSchemasUser(BaseModel):
|
|
|
84
86
|
_items = []
|
|
85
87
|
if self.groups:
|
|
86
88
|
for _item_groups in self.groups:
|
|
87
|
-
if _item_groups
|
|
88
|
-
_items.append(_item_groups.to_dict())
|
|
89
|
+
_items.append(_item_groups.to_dict() if _item_groups is not None else None)
|
|
89
90
|
_dict['groups'] = _items
|
|
90
91
|
# override the default output from pydantic by calling `to_dict()` of each item in roles (list)
|
|
91
92
|
_items = []
|
|
92
93
|
if self.roles:
|
|
93
94
|
for _item_roles in self.roles:
|
|
94
|
-
if _item_roles
|
|
95
|
-
_items.append(_item_roles.to_dict())
|
|
95
|
+
_items.append(_item_roles.to_dict() if _item_roles is not None else None)
|
|
96
96
|
_dict['roles'] = _items
|
|
97
97
|
# override the default output from pydantic by calling `to_dict()` of each item in group_roles (list)
|
|
98
98
|
_items = []
|
|
99
99
|
if self.group_roles:
|
|
100
100
|
for _item_group_roles in self.group_roles:
|
|
101
|
-
if _item_group_roles
|
|
102
|
-
_items.append(_item_group_roles.to_dict())
|
|
101
|
+
_items.append(_item_group_roles.to_dict() if _item_group_roles is not None else None)
|
|
103
102
|
_dict['group_roles'] = _items
|
|
104
103
|
# override the default output from pydantic by calling `to_dict()` of each item in received_invites (list)
|
|
105
104
|
_items = []
|
|
106
105
|
if self.received_invites:
|
|
107
106
|
for _item_received_invites in self.received_invites:
|
|
108
|
-
if _item_received_invites
|
|
109
|
-
_items.append(_item_received_invites.to_dict())
|
|
107
|
+
_items.append(_item_received_invites.to_dict() if _item_received_invites is not None else None)
|
|
110
108
|
_dict['received_invites'] = _items
|
|
111
109
|
return _dict
|
|
112
110
|
|
|
@@ -127,7 +125,7 @@ class AcrossServerRoutesV1UserSchemasUser(BaseModel):
|
|
|
127
125
|
"id": obj.get("id"),
|
|
128
126
|
"groups": [AcrossServerRoutesV1UserSchemasGroup.from_dict(_item) for _item in obj["groups"]] if obj.get("groups") is not None else None,
|
|
129
127
|
"roles": [RoleBase.from_dict(_item) for _item in obj["roles"]] if obj.get("roles") is not None else None,
|
|
130
|
-
"group_roles": [
|
|
128
|
+
"group_roles": [AcrossServerRoutesV1UserSchemasGroupRole.from_dict(_item) for _item in obj["group_roles"]] if obj.get("group_roles") is not None else None,
|
|
131
129
|
"received_invites": [AcrossServerRoutesV1UserSchemasGroupInvite.from_dict(_item) for _item in obj["received_invites"]] if obj.get("received_invites") is not None else None
|
|
132
130
|
})
|
|
133
131
|
return _obj
|
across/sdk/v1/models/across_server_routes_v1_user_service_account_schemas_service_account.py
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Server providing tools and utilities for various NASA missions to aid in coordination of large observation efforts.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document:
|
|
8
|
+
The version of the OpenAPI document: 2.0.2
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
11
|
Do not edit the class manually.
|
|
@@ -20,15 +20,17 @@ import json
|
|
|
20
20
|
from datetime import datetime
|
|
21
21
|
from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
|
|
22
22
|
from typing import Any, ClassVar, Dict, List, Optional
|
|
23
|
+
from uuid import UUID
|
|
23
24
|
from across.sdk.v1.models.group_role_read import GroupRoleRead
|
|
24
25
|
from typing import Optional, Set
|
|
25
26
|
from typing_extensions import Self
|
|
27
|
+
from pydantic_core import to_jsonable_python
|
|
26
28
|
|
|
27
29
|
class AcrossServerRoutesV1UserServiceAccountSchemasServiceAccount(BaseModel):
|
|
28
30
|
"""
|
|
29
31
|
AcrossServerRoutesV1UserServiceAccountSchemasServiceAccount
|
|
30
32
|
""" # noqa: E501
|
|
31
|
-
id:
|
|
33
|
+
id: UUID
|
|
32
34
|
name: StrictStr
|
|
33
35
|
description: Optional[StrictStr]
|
|
34
36
|
expiration: datetime
|
|
@@ -37,7 +39,8 @@ class AcrossServerRoutesV1UserServiceAccountSchemasServiceAccount(BaseModel):
|
|
|
37
39
|
__properties: ClassVar[List[str]] = ["id", "name", "description", "expiration", "expiration_duration", "group_roles"]
|
|
38
40
|
|
|
39
41
|
model_config = ConfigDict(
|
|
40
|
-
|
|
42
|
+
validate_by_name=True,
|
|
43
|
+
validate_by_alias=True,
|
|
41
44
|
validate_assignment=True,
|
|
42
45
|
protected_namespaces=(),
|
|
43
46
|
)
|
|
@@ -49,8 +52,7 @@ class AcrossServerRoutesV1UserServiceAccountSchemasServiceAccount(BaseModel):
|
|
|
49
52
|
|
|
50
53
|
def to_json(self) -> str:
|
|
51
54
|
"""Returns the JSON representation of the model using alias"""
|
|
52
|
-
|
|
53
|
-
return json.dumps(self.to_dict())
|
|
55
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
54
56
|
|
|
55
57
|
@classmethod
|
|
56
58
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -79,8 +81,7 @@ class AcrossServerRoutesV1UserServiceAccountSchemasServiceAccount(BaseModel):
|
|
|
79
81
|
_items = []
|
|
80
82
|
if self.group_roles:
|
|
81
83
|
for _item_group_roles in self.group_roles:
|
|
82
|
-
if _item_group_roles
|
|
83
|
-
_items.append(_item_group_roles.to_dict())
|
|
84
|
+
_items.append(_item_group_roles.to_dict() if _item_group_roles is not None else None)
|
|
84
85
|
_dict['group_roles'] = _items
|
|
85
86
|
# set to None if description (nullable) is None
|
|
86
87
|
# and model_fields_set contains the field
|
across/sdk/v1/models/bandpass.py
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Server providing tools and utilities for various NASA missions to aid in coordination of large observation efforts.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document:
|
|
8
|
+
The version of the OpenAPI document: 2.0.2
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
11
|
Do not edit the class manually.
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Server providing tools and utilities for various NASA missions to aid in coordination of large observation efforts.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document:
|
|
8
|
+
The version of the OpenAPI document: 2.0.2
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
11
|
Do not edit the class manually.
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Server providing tools and utilities for various NASA missions to aid in coordination of large observation efforts.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document:
|
|
8
|
+
The version of the OpenAPI document: 2.0.2
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
11
|
Do not edit the class manually.
|
|
@@ -20,27 +20,30 @@ import json
|
|
|
20
20
|
from datetime import datetime
|
|
21
21
|
from pydantic import BaseModel, ConfigDict, StrictStr
|
|
22
22
|
from typing import Any, ClassVar, Dict, List
|
|
23
|
+
from uuid import UUID
|
|
23
24
|
from across.sdk.v1.models.broker_alert_data_source import BrokerAlertDataSource
|
|
24
25
|
from across.sdk.v1.models.broker_alert_status import BrokerAlertStatus
|
|
25
26
|
from typing import Optional, Set
|
|
26
27
|
from typing_extensions import Self
|
|
28
|
+
from pydantic_core import to_jsonable_python
|
|
27
29
|
|
|
28
30
|
class BrokerAlert(BaseModel):
|
|
29
31
|
"""
|
|
30
32
|
A Pydantic model class representing a BrokerAlert in the ACROSS system. Parameters ---------- id : UUID Broker alert id status : BrokerAlertStatus Status of the alert broker_name : str Name of the broker issuing the alert data_source : BrokerAlertDataSource Source of the alert external_event_id: str External name of the BrokerEvent associated with this alert broker_event_id: uuid ID of the associated BrokerEvent in the ACROSS system broker_received_on: datetime Datetime the broker received this alert payload: dict The alert payload, containing unstructured data about the event
|
|
31
33
|
""" # noqa: E501
|
|
32
|
-
id:
|
|
34
|
+
id: UUID
|
|
33
35
|
status: BrokerAlertStatus
|
|
34
36
|
broker_name: StrictStr
|
|
35
37
|
data_source: BrokerAlertDataSource
|
|
36
38
|
external_event_id: StrictStr
|
|
37
|
-
broker_event_id:
|
|
39
|
+
broker_event_id: UUID
|
|
38
40
|
broker_received_on: datetime
|
|
39
41
|
payload: Dict[str, Any]
|
|
40
42
|
__properties: ClassVar[List[str]] = ["id", "status", "broker_name", "data_source", "external_event_id", "broker_event_id", "broker_received_on", "payload"]
|
|
41
43
|
|
|
42
44
|
model_config = ConfigDict(
|
|
43
|
-
|
|
45
|
+
validate_by_name=True,
|
|
46
|
+
validate_by_alias=True,
|
|
44
47
|
validate_assignment=True,
|
|
45
48
|
protected_namespaces=(),
|
|
46
49
|
)
|
|
@@ -52,8 +55,7 @@ class BrokerAlert(BaseModel):
|
|
|
52
55
|
|
|
53
56
|
def to_json(self) -> str:
|
|
54
57
|
"""Returns the JSON representation of the model using alias"""
|
|
55
|
-
|
|
56
|
-
return json.dumps(self.to_dict())
|
|
58
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
57
59
|
|
|
58
60
|
@classmethod
|
|
59
61
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Server providing tools and utilities for various NASA missions to aid in coordination of large observation efforts.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document:
|
|
8
|
+
The version of the OpenAPI document: 2.0.2
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
11
|
Do not edit the class manually.
|
|
@@ -26,6 +26,7 @@ from across.sdk.v1.models.broker_event_type import BrokerEventType
|
|
|
26
26
|
from across.sdk.v1.models.localization_create import LocalizationCreate
|
|
27
27
|
from typing import Optional, Set
|
|
28
28
|
from typing_extensions import Self
|
|
29
|
+
from pydantic_core import to_jsonable_python
|
|
29
30
|
|
|
30
31
|
class BrokerAlertCreate(BaseModel):
|
|
31
32
|
"""
|
|
@@ -43,7 +44,8 @@ class BrokerAlertCreate(BaseModel):
|
|
|
43
44
|
__properties: ClassVar[List[str]] = ["status", "broker_name", "data_source", "broker_received_on", "payload", "broker_event_datetime", "broker_event_type", "broker_event_name", "localizations"]
|
|
44
45
|
|
|
45
46
|
model_config = ConfigDict(
|
|
46
|
-
|
|
47
|
+
validate_by_name=True,
|
|
48
|
+
validate_by_alias=True,
|
|
47
49
|
validate_assignment=True,
|
|
48
50
|
protected_namespaces=(),
|
|
49
51
|
)
|
|
@@ -55,8 +57,7 @@ class BrokerAlertCreate(BaseModel):
|
|
|
55
57
|
|
|
56
58
|
def to_json(self) -> str:
|
|
57
59
|
"""Returns the JSON representation of the model using alias"""
|
|
58
|
-
|
|
59
|
-
return json.dumps(self.to_dict())
|
|
60
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
60
61
|
|
|
61
62
|
@classmethod
|
|
62
63
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -85,8 +86,7 @@ class BrokerAlertCreate(BaseModel):
|
|
|
85
86
|
_items = []
|
|
86
87
|
if self.localizations:
|
|
87
88
|
for _item_localizations in self.localizations:
|
|
88
|
-
if _item_localizations
|
|
89
|
-
_items.append(_item_localizations.to_dict())
|
|
89
|
+
_items.append(_item_localizations.to_dict() if _item_localizations is not None else None)
|
|
90
90
|
_dict['localizations'] = _items
|
|
91
91
|
return _dict
|
|
92
92
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Server providing tools and utilities for various NASA missions to aid in coordination of large observation efforts.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document:
|
|
8
|
+
The version of the OpenAPI document: 2.0.2
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
11
|
Do not edit the class manually.
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Server providing tools and utilities for various NASA missions to aid in coordination of large observation efforts.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document:
|
|
8
|
+
The version of the OpenAPI document: 2.0.2
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
11
|
Do not edit the class manually.
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Server providing tools and utilities for various NASA missions to aid in coordination of large observation efforts.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document:
|
|
8
|
+
The version of the OpenAPI document: 2.0.2
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
11
|
Do not edit the class manually.
|
|
@@ -20,17 +20,19 @@ import json
|
|
|
20
20
|
from datetime import datetime
|
|
21
21
|
from pydantic import BaseModel, ConfigDict, StrictStr
|
|
22
22
|
from typing import Any, ClassVar, Dict, List
|
|
23
|
+
from uuid import UUID
|
|
23
24
|
from across.sdk.v1.models.broker_alert import BrokerAlert
|
|
24
25
|
from across.sdk.v1.models.broker_event_type import BrokerEventType
|
|
25
26
|
from across.sdk.v1.models.localization import Localization
|
|
26
27
|
from typing import Optional, Set
|
|
27
28
|
from typing_extensions import Self
|
|
29
|
+
from pydantic_core import to_jsonable_python
|
|
28
30
|
|
|
29
31
|
class BrokerEvent(BaseModel):
|
|
30
32
|
"""
|
|
31
33
|
A Pydantic model class representing a BrokerEvent in the ACROSS system. Parameters ---------- localizations : list[Localization] Localizations associated with this event alerts : list[BrokerAlert] Alerts associated with this event Methods -------- from_orm: Converts ORM BrokerEvent model to a schemas.BrokerEvent object
|
|
32
34
|
""" # noqa: E501
|
|
33
|
-
id:
|
|
35
|
+
id: UUID
|
|
34
36
|
event_datetime: datetime
|
|
35
37
|
type: BrokerEventType
|
|
36
38
|
name: StrictStr
|
|
@@ -39,7 +41,8 @@ class BrokerEvent(BaseModel):
|
|
|
39
41
|
__properties: ClassVar[List[str]] = ["id", "event_datetime", "type", "name", "localizations", "broker_alerts"]
|
|
40
42
|
|
|
41
43
|
model_config = ConfigDict(
|
|
42
|
-
|
|
44
|
+
validate_by_name=True,
|
|
45
|
+
validate_by_alias=True,
|
|
43
46
|
validate_assignment=True,
|
|
44
47
|
protected_namespaces=(),
|
|
45
48
|
)
|
|
@@ -51,8 +54,7 @@ class BrokerEvent(BaseModel):
|
|
|
51
54
|
|
|
52
55
|
def to_json(self) -> str:
|
|
53
56
|
"""Returns the JSON representation of the model using alias"""
|
|
54
|
-
|
|
55
|
-
return json.dumps(self.to_dict())
|
|
57
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
56
58
|
|
|
57
59
|
@classmethod
|
|
58
60
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -81,15 +83,13 @@ class BrokerEvent(BaseModel):
|
|
|
81
83
|
_items = []
|
|
82
84
|
if self.localizations:
|
|
83
85
|
for _item_localizations in self.localizations:
|
|
84
|
-
if _item_localizations
|
|
85
|
-
_items.append(_item_localizations.to_dict())
|
|
86
|
+
_items.append(_item_localizations.to_dict() if _item_localizations is not None else None)
|
|
86
87
|
_dict['localizations'] = _items
|
|
87
88
|
# override the default output from pydantic by calling `to_dict()` of each item in broker_alerts (list)
|
|
88
89
|
_items = []
|
|
89
90
|
if self.broker_alerts:
|
|
90
91
|
for _item_broker_alerts in self.broker_alerts:
|
|
91
|
-
if _item_broker_alerts
|
|
92
|
-
_items.append(_item_broker_alerts.to_dict())
|
|
92
|
+
_items.append(_item_broker_alerts.to_dict() if _item_broker_alerts is not None else None)
|
|
93
93
|
_dict['broker_alerts'] = _items
|
|
94
94
|
return _dict
|
|
95
95
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Server providing tools and utilities for various NASA missions to aid in coordination of large observation efforts.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document:
|
|
8
|
+
The version of the OpenAPI document: 2.0.2
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
11
|
Do not edit the class manually.
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Server providing tools and utilities for various NASA missions to aid in coordination of large observation efforts.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document:
|
|
8
|
+
The version of the OpenAPI document: 2.0.2
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
11
|
Do not edit the class manually.
|
|
@@ -18,11 +18,13 @@ import re # noqa: F401
|
|
|
18
18
|
import json
|
|
19
19
|
|
|
20
20
|
from datetime import datetime
|
|
21
|
-
from pydantic import BaseModel, ConfigDict
|
|
21
|
+
from pydantic import BaseModel, ConfigDict
|
|
22
22
|
from typing import Any, ClassVar, Dict, List
|
|
23
|
+
from uuid import UUID
|
|
23
24
|
from across.sdk.v1.models.constraint_type import ConstraintType
|
|
24
25
|
from typing import Optional, Set
|
|
25
26
|
from typing_extensions import Self
|
|
27
|
+
from pydantic_core import to_jsonable_python
|
|
26
28
|
|
|
27
29
|
class ConstrainedDate(BaseModel):
|
|
28
30
|
"""
|
|
@@ -30,11 +32,12 @@ class ConstrainedDate(BaseModel):
|
|
|
30
32
|
""" # noqa: E501
|
|
31
33
|
datetime: datetime
|
|
32
34
|
constraint: ConstraintType
|
|
33
|
-
observatory_id:
|
|
35
|
+
observatory_id: UUID
|
|
34
36
|
__properties: ClassVar[List[str]] = ["datetime", "constraint", "observatory_id"]
|
|
35
37
|
|
|
36
38
|
model_config = ConfigDict(
|
|
37
|
-
|
|
39
|
+
validate_by_name=True,
|
|
40
|
+
validate_by_alias=True,
|
|
38
41
|
validate_assignment=True,
|
|
39
42
|
protected_namespaces=(),
|
|
40
43
|
)
|
|
@@ -46,8 +49,7 @@ class ConstrainedDate(BaseModel):
|
|
|
46
49
|
|
|
47
50
|
def to_json(self) -> str:
|
|
48
51
|
"""Returns the JSON representation of the model using alias"""
|
|
49
|
-
|
|
50
|
-
return json.dumps(self.to_dict())
|
|
52
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
51
53
|
|
|
52
54
|
@classmethod
|
|
53
55
|
def from_json(cls, json_str: str) -> Optional[Self]:
|