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,19 +19,22 @@ 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 typing import Optional, Set
|
|
23
24
|
from typing_extensions import Self
|
|
25
|
+
from pydantic_core import to_jsonable_python
|
|
24
26
|
|
|
25
27
|
class Permission(BaseModel):
|
|
26
28
|
"""
|
|
27
29
|
Permission
|
|
28
30
|
""" # noqa: E501
|
|
29
|
-
id:
|
|
31
|
+
id: UUID
|
|
30
32
|
name: StrictStr
|
|
31
33
|
__properties: ClassVar[List[str]] = ["id", "name"]
|
|
32
34
|
|
|
33
35
|
model_config = ConfigDict(
|
|
34
|
-
|
|
36
|
+
validate_by_name=True,
|
|
37
|
+
validate_by_alias=True,
|
|
35
38
|
validate_assignment=True,
|
|
36
39
|
protected_namespaces=(),
|
|
37
40
|
)
|
|
@@ -43,8 +46,7 @@ class Permission(BaseModel):
|
|
|
43
46
|
|
|
44
47
|
def to_json(self) -> str:
|
|
45
48
|
"""Returns the JSON representation of the model using alias"""
|
|
46
|
-
|
|
47
|
-
return json.dumps(self.to_dict())
|
|
49
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
48
50
|
|
|
49
51
|
@classmethod
|
|
50
52
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
across/sdk/v1/models/point.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.
|
|
@@ -21,6 +21,7 @@ from pydantic import BaseModel, ConfigDict, StrictFloat, StrictInt
|
|
|
21
21
|
from typing import Any, ClassVar, Dict, List, Union
|
|
22
22
|
from typing import Optional, Set
|
|
23
23
|
from typing_extensions import Self
|
|
24
|
+
from pydantic_core import to_jsonable_python
|
|
24
25
|
|
|
25
26
|
class Point(BaseModel):
|
|
26
27
|
"""
|
|
@@ -31,7 +32,8 @@ class Point(BaseModel):
|
|
|
31
32
|
__properties: ClassVar[List[str]] = ["x", "y"]
|
|
32
33
|
|
|
33
34
|
model_config = ConfigDict(
|
|
34
|
-
|
|
35
|
+
validate_by_name=True,
|
|
36
|
+
validate_by_alias=True,
|
|
35
37
|
validate_assignment=True,
|
|
36
38
|
protected_namespaces=(),
|
|
37
39
|
)
|
|
@@ -43,8 +45,7 @@ class Point(BaseModel):
|
|
|
43
45
|
|
|
44
46
|
def to_json(self) -> str:
|
|
45
47
|
"""Returns the JSON representation of the model using alias"""
|
|
46
|
-
|
|
47
|
-
return json.dumps(self.to_dict())
|
|
48
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
48
49
|
|
|
49
50
|
@classmethod
|
|
50
51
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -0,0 +1,93 @@
|
|
|
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, Field, StrictFloat, StrictInt
|
|
21
|
+
from typing import Any, ClassVar, Dict, List, Union
|
|
22
|
+
from typing_extensions import Annotated
|
|
23
|
+
from typing import Optional, Set
|
|
24
|
+
from typing_extensions import Self
|
|
25
|
+
from pydantic_core import to_jsonable_python
|
|
26
|
+
|
|
27
|
+
class ProperMotion(BaseModel):
|
|
28
|
+
"""
|
|
29
|
+
Proper motion describes the apparent motion of a celestial object across the sky. It is represented by right ascension (RA) and declination (Dec), along with an epoch, indicating the reference time for the measurements.
|
|
30
|
+
""" # noqa: E501
|
|
31
|
+
ra: Union[StrictFloat, StrictInt] = Field(description="Component of proper motion in right ascension (RA).")
|
|
32
|
+
dec: Union[StrictFloat, StrictInt] = Field(description="Component of proper motion in declination (dec).")
|
|
33
|
+
epoch: Annotated[str, Field(strict=True, max_length=16)] = Field(description="Epoch of the proper motion measurement, e.g., 'J2000'.")
|
|
34
|
+
__properties: ClassVar[List[str]] = ["ra", "dec", "epoch"]
|
|
35
|
+
|
|
36
|
+
model_config = ConfigDict(
|
|
37
|
+
validate_by_name=True,
|
|
38
|
+
validate_by_alias=True,
|
|
39
|
+
validate_assignment=True,
|
|
40
|
+
protected_namespaces=(),
|
|
41
|
+
)
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
def to_str(self) -> str:
|
|
45
|
+
"""Returns the string representation of the model using alias"""
|
|
46
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
47
|
+
|
|
48
|
+
def to_json(self) -> str:
|
|
49
|
+
"""Returns the JSON representation of the model using alias"""
|
|
50
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
51
|
+
|
|
52
|
+
@classmethod
|
|
53
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
54
|
+
"""Create an instance of ProperMotion 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 ProperMotion 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
|
+
"ra": obj.get("ra"),
|
|
88
|
+
"dec": obj.get("dec"),
|
|
89
|
+
"epoch": obj.get("epoch")
|
|
90
|
+
})
|
|
91
|
+
return _obj
|
|
92
|
+
|
|
93
|
+
|
across/sdk/v1/models/role.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: 1.
|
|
8
|
+
The version of the OpenAPI document: 1.6.0
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
11
|
Do not edit the class manually.
|
|
@@ -19,7 +19,7 @@ import json
|
|
|
19
19
|
|
|
20
20
|
from pydantic import BaseModel, ConfigDict, StrictStr
|
|
21
21
|
from typing import Any, ClassVar, Dict, List
|
|
22
|
-
from across.sdk.v1.models.
|
|
22
|
+
from across.sdk.v1.models.across_server_routes_v1_role_schemas_user import AcrossServerRoutesV1RoleSchemasUser
|
|
23
23
|
from typing import Optional, Set
|
|
24
24
|
from typing_extensions import Self
|
|
25
25
|
|
|
@@ -29,7 +29,7 @@ class Role(BaseModel):
|
|
|
29
29
|
""" # noqa: E501
|
|
30
30
|
id: StrictStr
|
|
31
31
|
name: StrictStr
|
|
32
|
-
users: List[
|
|
32
|
+
users: List[AcrossServerRoutesV1RoleSchemasUser]
|
|
33
33
|
__properties: ClassVar[List[str]] = ["id", "name", "users"]
|
|
34
34
|
|
|
35
35
|
model_config = ConfigDict(
|
|
@@ -92,7 +92,7 @@ class Role(BaseModel):
|
|
|
92
92
|
_obj = cls.model_validate({
|
|
93
93
|
"id": obj.get("id"),
|
|
94
94
|
"name": obj.get("name"),
|
|
95
|
-
"users": [
|
|
95
|
+
"users": [AcrossServerRoutesV1RoleSchemasUser.from_dict(_item) for _item in obj["users"]] if obj.get("users") is not None else None
|
|
96
96
|
})
|
|
97
97
|
return _obj
|
|
98
98
|
|
|
@@ -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,19 +19,22 @@ 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 typing import Optional, Set
|
|
23
24
|
from typing_extensions import Self
|
|
25
|
+
from pydantic_core import to_jsonable_python
|
|
24
26
|
|
|
25
27
|
class RoleBase(BaseModel):
|
|
26
28
|
"""
|
|
27
29
|
RoleBase
|
|
28
30
|
""" # noqa: E501
|
|
29
|
-
id:
|
|
31
|
+
id: UUID
|
|
30
32
|
name: StrictStr
|
|
31
33
|
__properties: ClassVar[List[str]] = ["id", "name"]
|
|
32
34
|
|
|
33
35
|
model_config = ConfigDict(
|
|
34
|
-
|
|
36
|
+
validate_by_name=True,
|
|
37
|
+
validate_by_alias=True,
|
|
35
38
|
validate_assignment=True,
|
|
36
39
|
protected_namespaces=(),
|
|
37
40
|
)
|
|
@@ -43,8 +46,7 @@ class RoleBase(BaseModel):
|
|
|
43
46
|
|
|
44
47
|
def to_json(self) -> str:
|
|
45
48
|
"""Returns the JSON representation of the model using alias"""
|
|
46
|
-
|
|
47
|
-
return json.dumps(self.to_dict())
|
|
49
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
48
50
|
|
|
49
51
|
@classmethod
|
|
50
52
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
across/sdk/v1/models/schedule.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,33 +20,36 @@ 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.date_range import DateRange
|
|
24
25
|
from across.sdk.v1.models.observation import Observation
|
|
25
26
|
from across.sdk.v1.models.schedule_fidelity import ScheduleFidelity
|
|
26
27
|
from across.sdk.v1.models.schedule_status import ScheduleStatus
|
|
27
28
|
from typing import Optional, Set
|
|
28
29
|
from typing_extensions import Self
|
|
30
|
+
from pydantic_core import to_jsonable_python
|
|
29
31
|
|
|
30
32
|
class Schedule(BaseModel):
|
|
31
33
|
"""
|
|
32
34
|
A Pydantic model class representing a created observing schedule for a telescope. Parameters ---------- id : UUID Schedule id observations : list[schemas.Observation] A list of observations for the schedule created_on : datetime Datetime the schedule was created created_by_id : UUID AuthUser id checksum : str Unique string representation of the schedule and observations Notes ----- Inherits from ScheduleBase Methods ------- create_checksum(schedule: ScheduleModel) -> str Static method that creates the checksum from the schedule metadata and observation list metadata from_orm(schedule: ScheduleModel) -> Schedule Static method that instantiates this class from a schedule database record
|
|
33
35
|
""" # noqa: E501
|
|
34
|
-
telescope_id:
|
|
36
|
+
telescope_id: UUID
|
|
35
37
|
name: StrictStr
|
|
36
38
|
date_range: DateRange
|
|
37
39
|
status: ScheduleStatus
|
|
38
40
|
external_id: Optional[StrictStr] = None
|
|
39
41
|
fidelity: Optional[ScheduleFidelity] = None
|
|
40
|
-
id:
|
|
42
|
+
id: UUID
|
|
41
43
|
observations: Optional[List[Observation]]
|
|
42
44
|
observation_count: StrictInt
|
|
43
45
|
created_on: datetime
|
|
44
|
-
created_by_id: Optional[
|
|
46
|
+
created_by_id: Optional[UUID]
|
|
45
47
|
checksum: Optional[StrictStr] = ''
|
|
46
48
|
__properties: ClassVar[List[str]] = ["telescope_id", "name", "date_range", "status", "external_id", "fidelity", "id", "observations", "observation_count", "created_on", "created_by_id", "checksum"]
|
|
47
49
|
|
|
48
50
|
model_config = ConfigDict(
|
|
49
|
-
|
|
51
|
+
validate_by_name=True,
|
|
52
|
+
validate_by_alias=True,
|
|
50
53
|
validate_assignment=True,
|
|
51
54
|
protected_namespaces=(),
|
|
52
55
|
)
|
|
@@ -58,8 +61,7 @@ class Schedule(BaseModel):
|
|
|
58
61
|
|
|
59
62
|
def to_json(self) -> str:
|
|
60
63
|
"""Returns the JSON representation of the model using alias"""
|
|
61
|
-
|
|
62
|
-
return json.dumps(self.to_dict())
|
|
64
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
63
65
|
|
|
64
66
|
@classmethod
|
|
65
67
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -91,8 +93,7 @@ class Schedule(BaseModel):
|
|
|
91
93
|
_items = []
|
|
92
94
|
if self.observations:
|
|
93
95
|
for _item_observations in self.observations:
|
|
94
|
-
if _item_observations
|
|
95
|
-
_items.append(_item_observations.to_dict())
|
|
96
|
+
_items.append(_item_observations.to_dict() if _item_observations is not None else None)
|
|
96
97
|
_dict['observations'] = _items
|
|
97
98
|
# set to None if external_id (nullable) is None
|
|
98
99
|
# and model_fields_set contains the field
|
|
@@ -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, Optional
|
|
22
|
+
from uuid import UUID
|
|
22
23
|
from across.sdk.v1.models.schedule_status import ScheduleStatus
|
|
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 ScheduleCadence(BaseModel):
|
|
27
29
|
"""
|
|
28
30
|
ScheduleCadence
|
|
29
31
|
""" # noqa: E501
|
|
30
|
-
id:
|
|
31
|
-
telescope_id:
|
|
32
|
+
id: UUID
|
|
33
|
+
telescope_id: UUID
|
|
32
34
|
cron: Optional[StrictStr]
|
|
33
35
|
schedule_status: ScheduleStatus
|
|
34
36
|
__properties: ClassVar[List[str]] = ["id", "telescope_id", "cron", "schedule_status"]
|
|
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 ScheduleCadence(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,18 +19,20 @@ import json
|
|
|
19
19
|
|
|
20
20
|
from pydantic import BaseModel, ConfigDict, StrictStr
|
|
21
21
|
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
+
from uuid import UUID
|
|
22
23
|
from across.sdk.v1.models.date_range import DateRange
|
|
23
24
|
from across.sdk.v1.models.observation_create import ObservationCreate
|
|
24
25
|
from across.sdk.v1.models.schedule_fidelity import ScheduleFidelity
|
|
25
26
|
from across.sdk.v1.models.schedule_status import ScheduleStatus
|
|
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 ScheduleCreate(BaseModel):
|
|
30
32
|
"""
|
|
31
33
|
A Pydantic model class representing the a schedule to be created in the database Parameters ---------- observations : list[schemas.Observation] A list of observations for the schedule Notes --------- Inherits from ScheduleBase Methods to_orm(self, created_by_id: UUID) -> ScheduleModel Method that creates the ORM record for a schedule to be serialized into the database. This method does not instantiate the list of observations, the observation schema requires a schedule ID so it is instantiated after the model id is flushed within the service.
|
|
32
34
|
""" # noqa: E501
|
|
33
|
-
telescope_id:
|
|
35
|
+
telescope_id: UUID
|
|
34
36
|
name: StrictStr
|
|
35
37
|
date_range: DateRange
|
|
36
38
|
status: ScheduleStatus
|
|
@@ -40,7 +42,8 @@ class ScheduleCreate(BaseModel):
|
|
|
40
42
|
__properties: ClassVar[List[str]] = ["telescope_id", "name", "date_range", "status", "external_id", "fidelity", "observations"]
|
|
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 ScheduleCreate(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]:
|
|
@@ -85,8 +87,7 @@ class ScheduleCreate(BaseModel):
|
|
|
85
87
|
_items = []
|
|
86
88
|
if self.observations:
|
|
87
89
|
for _item_observations in self.observations:
|
|
88
|
-
if _item_observations
|
|
89
|
-
_items.append(_item_observations.to_dict())
|
|
90
|
+
_items.append(_item_observations.to_dict() if _item_observations is not None else None)
|
|
90
91
|
_dict['observations'] = _items
|
|
91
92
|
# set to None if external_id (nullable) is None
|
|
92
93
|
# and model_fields_set contains the field
|
|
@@ -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,22 +17,25 @@ 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.schedule_create import ScheduleCreate
|
|
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 ScheduleCreateMany(BaseModel):
|
|
27
29
|
"""
|
|
28
30
|
A Pydantic model class representing bulk schedule creation Parameters -------------- schedules: list[ScheduleCreate] A list of ScheduleCreate objects to be added in bulk telescope_id: uuid The ID of the telescope belonging to the schedules
|
|
29
31
|
""" # noqa: E501
|
|
30
32
|
schedules: List[ScheduleCreate]
|
|
31
|
-
telescope_id:
|
|
33
|
+
telescope_id: UUID
|
|
32
34
|
__properties: ClassVar[List[str]] = ["schedules", "telescope_id"]
|
|
33
35
|
|
|
34
36
|
model_config = ConfigDict(
|
|
35
|
-
|
|
37
|
+
validate_by_name=True,
|
|
38
|
+
validate_by_alias=True,
|
|
36
39
|
validate_assignment=True,
|
|
37
40
|
protected_namespaces=(),
|
|
38
41
|
)
|
|
@@ -44,8 +47,7 @@ class ScheduleCreateMany(BaseModel):
|
|
|
44
47
|
|
|
45
48
|
def to_json(self) -> str:
|
|
46
49
|
"""Returns the JSON representation of the model using alias"""
|
|
47
|
-
|
|
48
|
-
return json.dumps(self.to_dict())
|
|
50
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
49
51
|
|
|
50
52
|
@classmethod
|
|
51
53
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -74,8 +76,7 @@ class ScheduleCreateMany(BaseModel):
|
|
|
74
76
|
_items = []
|
|
75
77
|
if self.schedules:
|
|
76
78
|
for _item_schedules in self.schedules:
|
|
77
|
-
if _item_schedules
|
|
78
|
-
_items.append(_item_schedules.to_dict())
|
|
79
|
+
_items.append(_item_schedules.to_dict() if _item_schedules is not None else None)
|
|
79
80
|
_dict['schedules'] = _items
|
|
80
81
|
return _dict
|
|
81
82
|
|
|
@@ -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: 1.
|
|
8
|
+
The version of the OpenAPI document: 1.6.0
|
|
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.
|
|
@@ -21,6 +21,7 @@ from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
|
|
|
21
21
|
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
22
|
from typing import Optional, Set
|
|
23
23
|
from typing_extensions import Self
|
|
24
|
+
from pydantic_core import to_jsonable_python
|
|
24
25
|
|
|
25
26
|
class ServiceAccountCreate(BaseModel):
|
|
26
27
|
"""
|
|
@@ -32,7 +33,8 @@ class ServiceAccountCreate(BaseModel):
|
|
|
32
33
|
__properties: ClassVar[List[str]] = ["name", "description", "expiration_duration"]
|
|
33
34
|
|
|
34
35
|
model_config = ConfigDict(
|
|
35
|
-
|
|
36
|
+
validate_by_name=True,
|
|
37
|
+
validate_by_alias=True,
|
|
36
38
|
validate_assignment=True,
|
|
37
39
|
protected_namespaces=(),
|
|
38
40
|
)
|
|
@@ -44,8 +46,7 @@ class ServiceAccountCreate(BaseModel):
|
|
|
44
46
|
|
|
45
47
|
def to_json(self) -> str:
|
|
46
48
|
"""Returns the JSON representation of the model using alias"""
|
|
47
|
-
|
|
48
|
-
return json.dumps(self.to_dict())
|
|
49
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
49
50
|
|
|
50
51
|
@classmethod
|
|
51
52
|
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.
|
|
@@ -20,14 +20,16 @@ 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 typing import Optional, Set
|
|
24
25
|
from typing_extensions import Self
|
|
26
|
+
from pydantic_core import to_jsonable_python
|
|
25
27
|
|
|
26
28
|
class ServiceAccountSecret(BaseModel):
|
|
27
29
|
"""
|
|
28
30
|
ServiceAccountSecret
|
|
29
31
|
""" # noqa: E501
|
|
30
|
-
id:
|
|
32
|
+
id: UUID
|
|
31
33
|
expiration: datetime
|
|
32
34
|
expiration_duration: StrictInt
|
|
33
35
|
secret_key: StrictStr
|
|
@@ -36,7 +38,8 @@ class ServiceAccountSecret(BaseModel):
|
|
|
36
38
|
__properties: ClassVar[List[str]] = ["id", "expiration", "expiration_duration", "secret_key", "name", "description"]
|
|
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 ServiceAccountSecret(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]:
|
|
@@ -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.
|
|
@@ -21,6 +21,7 @@ from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
|
|
|
21
21
|
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
22
|
from typing import Optional, Set
|
|
23
23
|
from typing_extensions import Self
|
|
24
|
+
from pydantic_core import to_jsonable_python
|
|
24
25
|
|
|
25
26
|
class ServiceAccountUpdate(BaseModel):
|
|
26
27
|
"""
|
|
@@ -32,7 +33,8 @@ class ServiceAccountUpdate(BaseModel):
|
|
|
32
33
|
__properties: ClassVar[List[str]] = ["name", "description", "expiration_duration"]
|
|
33
34
|
|
|
34
35
|
model_config = ConfigDict(
|
|
35
|
-
|
|
36
|
+
validate_by_name=True,
|
|
37
|
+
validate_by_alias=True,
|
|
36
38
|
validate_assignment=True,
|
|
37
39
|
protected_namespaces=(),
|
|
38
40
|
)
|
|
@@ -44,8 +46,7 @@ class ServiceAccountUpdate(BaseModel):
|
|
|
44
46
|
|
|
45
47
|
def to_json(self) -> str:
|
|
46
48
|
"""Returns the JSON representation of the model using alias"""
|
|
47
|
-
|
|
48
|
-
return json.dumps(self.to_dict())
|
|
49
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
49
50
|
|
|
50
51
|
@classmethod
|
|
51
52
|
def from_json(cls, json_str: str) -> Optional[Self]:
|