across-server-openapi-python 1.3.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 +76 -17
- across/sdk/v1/api/__init__.py +3 -1
- across/sdk/v1/api/auth_api.py +17 -286
- across/sdk/v1/api/broker_alert_api.py +1017 -0
- across/sdk/v1/api/broker_event_api.py +697 -0
- across/sdk/v1/api/filter_api.py +20 -20
- across/sdk/v1/api/group_api.py +31 -281
- across/sdk/v1/api/group_invite_api.py +65 -66
- across/sdk/v1/api/group_role_api.py +105 -106
- across/sdk/v1/api/instrument_api.py +20 -20
- across/sdk/v1/api/internal_api.py +20 -21
- across/sdk/v1/api/observation_api.py +762 -135
- 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/role_api.py +1 -1
- across/sdk/v1/api/schedule_api.py +84 -86
- across/sdk/v1/api/service_account_api.py +125 -126
- 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 +84 -333
- 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 +36 -9
- 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 +93 -0
- 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_role_schemas_user.py +95 -0
- 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 +106 -0
- 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 +106 -0
- across/sdk/v1/models/broker_alert_create.py +115 -0
- across/sdk/v1/models/broker_alert_data_source.py +39 -0
- across/sdk/v1/models/broker_alert_status.py +41 -0
- across/sdk/v1/models/broker_event.py +115 -0
- across/sdk/v1/models/broker_event_type.py +41 -0
- 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.py +5 -15
- across/sdk/v1/models/group_base.py +93 -0
- across/sdk/v1/models/group_invite.py +1 -1
- 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.py +37 -6
- across/sdk/v1/models/group_role_create.py +7 -5
- across/sdk/v1/models/group_role_read.py +16 -9
- 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 +128 -0
- across/sdk/v1/models/localization_contour_base.py +95 -0
- across/sdk/v1/models/localization_create.py +121 -0
- 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 +116 -0
- across/sdk/v1/models/page_broker_event.py +116 -0
- 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.py +4 -4
- 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.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.py +47 -7
- 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.3.0.dist-info → across_server_openapi_python-2.0.0.dist-info}/METADATA +122 -45
- across_server_openapi_python-2.0.0.dist-info/RECORD +162 -0
- {across_server_openapi_python-1.3.0.dist-info → across_server_openapi_python-2.0.0.dist-info}/WHEEL +1 -1
- across_server_openapi_python-1.3.0.dist-info/RECORD +0 -126
- {across_server_openapi_python-1.3.0.dist-info → across_server_openapi_python-2.0.0.dist-info}/licenses/LICENSE +0 -0
- {across_server_openapi_python-1.3.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,24 +19,27 @@ 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_group_role_schemas_group_role import AcrossServerRoutesV1GroupRoleSchemasGroupRole
|
|
23
|
-
from across.sdk.v1.models.
|
|
24
|
+
from across.sdk.v1.models.across_server_routes_v1_group_schemas_user import AcrossServerRoutesV1GroupSchemasUser
|
|
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 AcrossServerRoutesV1GroupSchemasGroup(BaseModel):
|
|
28
30
|
"""
|
|
29
31
|
AcrossServerRoutesV1GroupSchemasGroup
|
|
30
32
|
""" # noqa: E501
|
|
31
|
-
id:
|
|
33
|
+
id: UUID
|
|
32
34
|
name: StrictStr
|
|
33
35
|
short_name: StrictStr
|
|
34
|
-
users: List[
|
|
36
|
+
users: List[AcrossServerRoutesV1GroupSchemasUser]
|
|
35
37
|
roles: List[AcrossServerRoutesV1GroupRoleSchemasGroupRole]
|
|
36
38
|
__properties: ClassVar[List[str]] = ["id", "name", "short_name", "users", "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 AcrossServerRoutesV1GroupSchemasGroup(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,15 +80,13 @@ class AcrossServerRoutesV1GroupSchemasGroup(BaseModel):
|
|
|
78
80
|
_items = []
|
|
79
81
|
if self.users:
|
|
80
82
|
for _item_users in self.users:
|
|
81
|
-
if _item_users
|
|
82
|
-
_items.append(_item_users.to_dict())
|
|
83
|
+
_items.append(_item_users.to_dict() if _item_users is not None else None)
|
|
83
84
|
_dict['users'] = _items
|
|
84
85
|
# override the default output from pydantic by calling `to_dict()` of each item in roles (list)
|
|
85
86
|
_items = []
|
|
86
87
|
if self.roles:
|
|
87
88
|
for _item_roles in self.roles:
|
|
88
|
-
if _item_roles
|
|
89
|
-
_items.append(_item_roles.to_dict())
|
|
89
|
+
_items.append(_item_roles.to_dict() if _item_roles is not None else None)
|
|
90
90
|
_dict['roles'] = _items
|
|
91
91
|
return _dict
|
|
92
92
|
|
|
@@ -103,7 +103,7 @@ class AcrossServerRoutesV1GroupSchemasGroup(BaseModel):
|
|
|
103
103
|
"id": obj.get("id"),
|
|
104
104
|
"name": obj.get("name"),
|
|
105
105
|
"short_name": obj.get("short_name"),
|
|
106
|
-
"users": [
|
|
106
|
+
"users": [AcrossServerRoutesV1GroupSchemasUser.from_dict(_item) for _item in obj["users"]] if obj.get("users") is not None else None,
|
|
107
107
|
"roles": [AcrossServerRoutesV1GroupRoleSchemasGroupRole.from_dict(_item) for _item in obj["roles"]] if obj.get("roles") is not None else None
|
|
108
108
|
})
|
|
109
109
|
return _obj
|
|
@@ -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
|
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
ACROSS Server
|
|
5
|
+
|
|
6
|
+
Server providing tools and utilities for various NASA missions to aid in coordination of large observation efforts.
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.6.0
|
|
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
|
|
22
|
+
from typing import Optional, Set
|
|
23
|
+
from typing_extensions import Self
|
|
24
|
+
|
|
25
|
+
class AcrossServerRoutesV1RoleSchemasUser(BaseModel):
|
|
26
|
+
"""
|
|
27
|
+
AcrossServerRoutesV1RoleSchemasUser
|
|
28
|
+
""" # noqa: E501
|
|
29
|
+
id: StrictStr
|
|
30
|
+
first_name: StrictStr
|
|
31
|
+
last_name: StrictStr
|
|
32
|
+
username: StrictStr
|
|
33
|
+
email: StrictStr
|
|
34
|
+
__properties: ClassVar[List[str]] = ["id", "first_name", "last_name", "username", "email"]
|
|
35
|
+
|
|
36
|
+
model_config = ConfigDict(
|
|
37
|
+
populate_by_name=True,
|
|
38
|
+
validate_assignment=True,
|
|
39
|
+
protected_namespaces=(),
|
|
40
|
+
)
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
def to_str(self) -> str:
|
|
44
|
+
"""Returns the string representation of the model using alias"""
|
|
45
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
46
|
+
|
|
47
|
+
def to_json(self) -> str:
|
|
48
|
+
"""Returns the JSON representation of the model using alias"""
|
|
49
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
50
|
+
return json.dumps(self.to_dict())
|
|
51
|
+
|
|
52
|
+
@classmethod
|
|
53
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
54
|
+
"""Create an instance of AcrossServerRoutesV1RoleSchemasUser from a JSON string"""
|
|
55
|
+
return cls.from_dict(json.loads(json_str))
|
|
56
|
+
|
|
57
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
58
|
+
"""Return the dictionary representation of the model using alias.
|
|
59
|
+
|
|
60
|
+
This has the following differences from calling pydantic's
|
|
61
|
+
`self.model_dump(by_alias=True)`:
|
|
62
|
+
|
|
63
|
+
* `None` is only added to the output dict for nullable fields that
|
|
64
|
+
were set at model initialization. Other fields with value `None`
|
|
65
|
+
are ignored.
|
|
66
|
+
"""
|
|
67
|
+
excluded_fields: Set[str] = set([
|
|
68
|
+
])
|
|
69
|
+
|
|
70
|
+
_dict = self.model_dump(
|
|
71
|
+
by_alias=True,
|
|
72
|
+
exclude=excluded_fields,
|
|
73
|
+
exclude_none=True,
|
|
74
|
+
)
|
|
75
|
+
return _dict
|
|
76
|
+
|
|
77
|
+
@classmethod
|
|
78
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
79
|
+
"""Create an instance of AcrossServerRoutesV1RoleSchemasUser from a dict"""
|
|
80
|
+
if obj is None:
|
|
81
|
+
return None
|
|
82
|
+
|
|
83
|
+
if not isinstance(obj, dict):
|
|
84
|
+
return cls.model_validate(obj)
|
|
85
|
+
|
|
86
|
+
_obj = cls.model_validate({
|
|
87
|
+
"id": obj.get("id"),
|
|
88
|
+
"first_name": obj.get("first_name"),
|
|
89
|
+
"last_name": obj.get("last_name"),
|
|
90
|
+
"username": obj.get("username"),
|
|
91
|
+
"email": obj.get("email")
|
|
92
|
+
})
|
|
93
|
+
return _obj
|
|
94
|
+
|
|
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.
|
|
@@ -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]:
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
ACROSS Server
|
|
5
|
+
|
|
6
|
+
Server providing tools and utilities for various NASA missions to aid in coordination of large observation efforts.
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 2.0.2
|
|
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
|
|
22
|
+
from uuid import UUID
|
|
23
|
+
from across.sdk.v1.models.group_base import GroupBase
|
|
24
|
+
from across.sdk.v1.models.permission import Permission
|
|
25
|
+
from typing import Optional, Set
|
|
26
|
+
from typing_extensions import Self
|
|
27
|
+
from pydantic_core import to_jsonable_python
|
|
28
|
+
|
|
29
|
+
class AcrossServerRoutesV1UserSchemasGroupRole(BaseModel):
|
|
30
|
+
"""
|
|
31
|
+
AcrossServerRoutesV1UserSchemasGroupRole
|
|
32
|
+
""" # noqa: E501
|
|
33
|
+
id: UUID
|
|
34
|
+
name: StrictStr
|
|
35
|
+
permissions: List[Permission]
|
|
36
|
+
group: GroupBase
|
|
37
|
+
__properties: ClassVar[List[str]] = ["id", "name", "permissions", "group"]
|
|
38
|
+
|
|
39
|
+
model_config = ConfigDict(
|
|
40
|
+
validate_by_name=True,
|
|
41
|
+
validate_by_alias=True,
|
|
42
|
+
validate_assignment=True,
|
|
43
|
+
protected_namespaces=(),
|
|
44
|
+
)
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
def to_str(self) -> str:
|
|
48
|
+
"""Returns the string representation of the model using alias"""
|
|
49
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
50
|
+
|
|
51
|
+
def to_json(self) -> str:
|
|
52
|
+
"""Returns the JSON representation of the model using alias"""
|
|
53
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
54
|
+
|
|
55
|
+
@classmethod
|
|
56
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
57
|
+
"""Create an instance of AcrossServerRoutesV1UserSchemasGroupRole from a JSON string"""
|
|
58
|
+
return cls.from_dict(json.loads(json_str))
|
|
59
|
+
|
|
60
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
61
|
+
"""Return the dictionary representation of the model using alias.
|
|
62
|
+
|
|
63
|
+
This has the following differences from calling pydantic's
|
|
64
|
+
`self.model_dump(by_alias=True)`:
|
|
65
|
+
|
|
66
|
+
* `None` is only added to the output dict for nullable fields that
|
|
67
|
+
were set at model initialization. Other fields with value `None`
|
|
68
|
+
are ignored.
|
|
69
|
+
"""
|
|
70
|
+
excluded_fields: Set[str] = set([
|
|
71
|
+
])
|
|
72
|
+
|
|
73
|
+
_dict = self.model_dump(
|
|
74
|
+
by_alias=True,
|
|
75
|
+
exclude=excluded_fields,
|
|
76
|
+
exclude_none=True,
|
|
77
|
+
)
|
|
78
|
+
# override the default output from pydantic by calling `to_dict()` of each item in permissions (list)
|
|
79
|
+
_items = []
|
|
80
|
+
if self.permissions:
|
|
81
|
+
for _item_permissions in self.permissions:
|
|
82
|
+
_items.append(_item_permissions.to_dict() if _item_permissions is not None else None)
|
|
83
|
+
_dict['permissions'] = _items
|
|
84
|
+
# override the default output from pydantic by calling `to_dict()` of group
|
|
85
|
+
if self.group:
|
|
86
|
+
_dict['group'] = self.group.to_dict()
|
|
87
|
+
return _dict
|
|
88
|
+
|
|
89
|
+
@classmethod
|
|
90
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
91
|
+
"""Create an instance of AcrossServerRoutesV1UserSchemasGroupRole from a dict"""
|
|
92
|
+
if obj is None:
|
|
93
|
+
return None
|
|
94
|
+
|
|
95
|
+
if not isinstance(obj, dict):
|
|
96
|
+
return cls.model_validate(obj)
|
|
97
|
+
|
|
98
|
+
_obj = cls.model_validate({
|
|
99
|
+
"id": obj.get("id"),
|
|
100
|
+
"name": obj.get("name"),
|
|
101
|
+
"permissions": [Permission.from_dict(_item) for _item in obj["permissions"]] if obj.get("permissions") is not None else None,
|
|
102
|
+
"group": GroupBase.from_dict(obj["group"]) if obj.get("group") is not None else None
|
|
103
|
+
})
|
|
104
|
+
return _obj
|
|
105
|
+
|
|
106
|
+
|
|
@@ -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.
|