across-server-openapi-python 1.1.1__py3-none-any.whl → 1.3.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 +23 -21
- across/sdk/v1/api/__init__.py +1 -0
- across/sdk/v1/api/auth_api.py +269 -1
- across/sdk/v1/api/filter_api.py +1 -1
- across/sdk/v1/api/group_api.py +256 -7
- across/sdk/v1/api/group_invite_api.py +17 -17
- across/sdk/v1/api/group_role_api.py +1 -1
- across/sdk/v1/api/instrument_api.py +1 -1
- across/sdk/v1/api/internal_api.py +1 -1
- across/sdk/v1/api/observation_api.py +42 -8
- across/sdk/v1/api/observatory_api.py +1 -1
- across/sdk/v1/api/permission_api.py +1 -1
- across/sdk/v1/api/role_api.py +60 -60
- across/sdk/v1/api/schedule_api.py +52 -1
- across/sdk/v1/api/service_account_api.py +1 -1
- across/sdk/v1/api/telescope_api.py +35 -1
- across/sdk/v1/api/tle_api.py +1 -1
- across/sdk/v1/api/tools_api.py +538 -1
- across/sdk/v1/api/user_api.py +261 -13
- across/sdk/v1/api_client.py +1 -1
- across/sdk/v1/configuration.py +2 -2
- across/sdk/v1/exceptions.py +1 -1
- across/sdk/v1/models/__init__.py +11 -11
- across/sdk/v1/models/access_token_response.py +1 -1
- across/sdk/v1/models/across_server_routes_v1_group_role_schemas_group_role.py +4 -4
- across/sdk/v1/models/across_server_routes_v1_group_role_schemas_user.py +1 -1
- across/sdk/v1/models/across_server_routes_v1_group_schemas_group.py +4 -4
- across/sdk/v1/models/across_server_routes_v1_group_schemas_user.py +1 -1
- across/sdk/v1/models/across_server_routes_v1_user_schemas_group.py +4 -4
- across/sdk/v1/models/across_server_routes_v1_user_schemas_group_invite.py +1 -1
- across/sdk/v1/models/across_server_routes_v1_user_schemas_user.py +4 -4
- across/sdk/v1/models/across_server_routes_v1_user_service_account_schemas_service_account.py +1 -1
- across/sdk/v1/models/bandpass.py +1 -1
- across/sdk/v1/models/bandpass_type.py +1 -1
- across/sdk/v1/models/constrained_date.py +1 -1
- across/sdk/v1/models/constraint_reason.py +1 -1
- across/sdk/v1/models/constraint_type.py +13 -1
- across/sdk/v1/models/coordinate.py +1 -1
- across/sdk/v1/models/date_range.py +1 -1
- across/sdk/v1/models/datetime.py +138 -0
- across/sdk/v1/models/depth_unit.py +1 -1
- across/sdk/v1/models/energy_bandpass.py +2 -2
- across/sdk/v1/models/energy_unit.py +1 -1
- across/sdk/v1/models/ephemeris_type.py +1 -1
- across/sdk/v1/models/filter.py +1 -1
- across/sdk/v1/models/frequency_bandpass.py +2 -2
- 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 +1 -1
- across/sdk/v1/models/{system_service_account_secret.py → group.py} +25 -37
- across/sdk/v1/models/{across_server_routes_v1_group_invite_schemas_group_invite.py → group_invite.py} +5 -5
- across/sdk/v1/models/group_invite_create.py +1 -1
- across/sdk/v1/models/group_invite_group_details.py +1 -1
- across/sdk/v1/models/group_read.py +1 -1
- across/sdk/v1/models/{across_server_routes_v1_user_schemas_group_role.py → group_role.py} +5 -5
- across/sdk/v1/models/group_role_create.py +1 -1
- across/sdk/v1/models/group_role_read.py +1 -1
- across/sdk/v1/models/http_validation_error.py +1 -1
- across/sdk/v1/models/id_name_schema.py +1 -1
- across/sdk/v1/models/instrument.py +13 -13
- 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 +1 -1
- across/sdk/v1/models/jpl_parameters.py +1 -1
- across/sdk/v1/models/location_inner.py +138 -0
- across/sdk/v1/models/{across_server_routes_v1_system_service_account_schemas_service_account_secret.py → name_resolver.py} +16 -17
- across/sdk/v1/models/nullable_date_range.py +1 -1
- across/sdk/v1/models/observation.py +13 -3
- across/sdk/v1/models/observation_create.py +13 -3
- across/sdk/v1/models/observation_footprint.py +99 -0
- across/sdk/v1/models/{across_server_routes_v1_system_service_account_schemas_service_account.py → observation_footprint_create.py} +19 -14
- across/sdk/v1/models/observation_status.py +1 -1
- across/sdk/v1/models/observation_strategy.py +37 -0
- across/sdk/v1/models/observation_type.py +1 -1
- across/sdk/v1/models/observatory.py +1 -1
- across/sdk/v1/models/observatory_ephemeris_type.py +1 -1
- across/sdk/v1/models/observatory_type.py +1 -1
- across/sdk/v1/models/page_observation.py +1 -1
- across/sdk/v1/models/page_schedule.py +1 -1
- across/sdk/v1/models/parameters.py +1 -1
- across/sdk/v1/models/permission.py +1 -1
- across/sdk/v1/models/point.py +1 -1
- across/sdk/v1/models/role.py +7 -8
- across/sdk/v1/models/role_base.py +1 -1
- across/sdk/v1/models/schedule.py +1 -1
- across/sdk/v1/models/schedule_cadence.py +1 -1
- across/sdk/v1/models/schedule_create.py +1 -1
- across/sdk/v1/models/schedule_create_many.py +1 -1
- across/sdk/v1/models/schedule_fidelity.py +1 -1
- across/sdk/v1/models/schedule_status.py +1 -1
- across/sdk/v1/models/{across_server_routes_v1_group_role_schemas_service_account.py → service_account.py} +5 -5
- across/sdk/v1/models/service_account_create.py +1 -1
- across/sdk/v1/models/service_account_secret.py +1 -1
- across/sdk/v1/models/service_account_update.py +1 -1
- across/sdk/v1/models/spice_parameters.py +1 -1
- across/sdk/v1/models/system_service_account.py +1 -1
- across/sdk/v1/models/telescope.py +1 -1
- across/sdk/v1/models/telescope_instrument.py +13 -13
- across/sdk/v1/models/tle.py +1 -1
- across/sdk/v1/models/tle_create.py +1 -1
- across/sdk/v1/models/tle_parameters.py +1 -1
- across/sdk/v1/models/unit_value.py +1 -1
- across/sdk/v1/models/{across_server_routes_v1_role_schemas_user.py → user.py} +8 -9
- across/sdk/v1/models/user_create.py +1 -1
- across/sdk/v1/models/user_info.py +1 -1
- across/sdk/v1/models/user_update.py +1 -1
- across/sdk/v1/models/validation_error.py +1 -1
- across/sdk/v1/models/validation_error_loc_inner.py +1 -1
- across/sdk/v1/models/visibility_result.py +1 -1
- across/sdk/v1/models/visibility_type.py +1 -1
- across/sdk/v1/models/visibility_window.py +1 -1
- across/sdk/v1/models/wavelength_bandpass.py +2 -2
- across/sdk/v1/models/wavelength_unit.py +1 -1
- across/sdk/v1/models/window.py +1 -1
- across/sdk/v1/rest.py +1 -1
- {across_server_openapi_python-1.1.1.dist-info → across_server_openapi_python-1.3.0.dist-info}/METADATA +25 -27
- across_server_openapi_python-1.3.0.dist-info/RECORD +126 -0
- {across_server_openapi_python-1.1.1.dist-info → across_server_openapi_python-1.3.0.dist-info}/WHEEL +1 -1
- across/sdk/v1/models/across_server_routes_v1_user_service_account_schemas_service_account_secret.py +0 -118
- across/sdk/v1/models/alt_az_constraint.py +0 -135
- across/sdk/v1/models/earth_limb_constraint.py +0 -124
- across/sdk/v1/models/instrument_constraints_inner.py +0 -237
- across/sdk/v1/models/moon_angle_constraint.py +0 -124
- across/sdk/v1/models/saa_polygon_constraint.py +0 -106
- across/sdk/v1/models/sun_angle_constraint.py +0 -124
- across_server_openapi_python-1.1.1.dist-info/RECORD +0 -129
- {across_server_openapi_python-1.1.1.dist-info → across_server_openapi_python-1.3.0.dist-info}/licenses/LICENSE +0 -0
- {across_server_openapi_python-1.1.1.dist-info → across_server_openapi_python-1.3.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: 1.
|
|
8
|
+
The version of the OpenAPI document: 1.4.0
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
11
|
Do not edit the class manually.
|
|
@@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, StrictStr
|
|
|
21
21
|
from typing import Any, ClassVar, Dict, List
|
|
22
22
|
from across.sdk.v1.models.across_server_routes_v1_user_schemas_group import AcrossServerRoutesV1UserSchemasGroup
|
|
23
23
|
from across.sdk.v1.models.across_server_routes_v1_user_schemas_group_invite import AcrossServerRoutesV1UserSchemasGroupInvite
|
|
24
|
-
from across.sdk.v1.models.
|
|
24
|
+
from across.sdk.v1.models.group_role import GroupRole
|
|
25
25
|
from across.sdk.v1.models.role_base import RoleBase
|
|
26
26
|
from typing import Optional, Set
|
|
27
27
|
from typing_extensions import Self
|
|
@@ -37,7 +37,7 @@ class AcrossServerRoutesV1UserSchemasUser(BaseModel):
|
|
|
37
37
|
id: StrictStr
|
|
38
38
|
groups: List[AcrossServerRoutesV1UserSchemasGroup]
|
|
39
39
|
roles: List[RoleBase]
|
|
40
|
-
group_roles: List[
|
|
40
|
+
group_roles: List[GroupRole]
|
|
41
41
|
received_invites: List[AcrossServerRoutesV1UserSchemasGroupInvite]
|
|
42
42
|
__properties: ClassVar[List[str]] = ["username", "first_name", "last_name", "email", "id", "groups", "roles", "group_roles", "received_invites"]
|
|
43
43
|
|
|
@@ -127,7 +127,7 @@ class AcrossServerRoutesV1UserSchemasUser(BaseModel):
|
|
|
127
127
|
"id": obj.get("id"),
|
|
128
128
|
"groups": [AcrossServerRoutesV1UserSchemasGroup.from_dict(_item) for _item in obj["groups"]] if obj.get("groups") is not None else None,
|
|
129
129
|
"roles": [RoleBase.from_dict(_item) for _item in obj["roles"]] if obj.get("roles") is not None else None,
|
|
130
|
-
"group_roles": [
|
|
130
|
+
"group_roles": [GroupRole.from_dict(_item) for _item in obj["group_roles"]] if obj.get("group_roles") is not None else None,
|
|
131
131
|
"received_invites": [AcrossServerRoutesV1UserSchemasGroupInvite.from_dict(_item) for _item in obj["received_invites"]] if obj.get("received_invites") is not None else None
|
|
132
132
|
})
|
|
133
133
|
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: 1.
|
|
8
|
+
The version of the OpenAPI document: 1.4.0
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
11
|
Do not edit the class manually.
|
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: 1.
|
|
8
|
+
The version of the OpenAPI document: 1.4.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: 1.
|
|
8
|
+
The version of the OpenAPI document: 1.4.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: 1.
|
|
8
|
+
The version of the OpenAPI document: 1.4.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: 1.
|
|
8
|
+
The version of the OpenAPI document: 1.4.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: 1.
|
|
8
|
+
The version of the OpenAPI document: 1.4.0
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
11
|
Do not edit the class manually.
|
|
@@ -33,7 +33,19 @@ class ConstraintType(str, Enum):
|
|
|
33
33
|
UNKNOWN = 'Unknown'
|
|
34
34
|
SOUTH_ATLANTIC_ANOMALY = 'South Atlantic Anomaly'
|
|
35
35
|
ALTITUDE_SLASH_AZIMUTH_AVOIDANCE = 'Altitude/Azimuth Avoidance'
|
|
36
|
+
GALACTIC_PLANE_AVOIDANCE = 'Galactic Plane Avoidance'
|
|
37
|
+
BRIGHT_STAR_AVOIDANCE = 'Bright Star Avoidance'
|
|
38
|
+
AIRMASS_LIMIT = 'Airmass Limit'
|
|
39
|
+
ECLIPTIC_LATITUDE = 'Ecliptic Latitude'
|
|
40
|
+
GALACTIC_BULGE_AVOIDANCE = 'Galactic Bulge Avoidance'
|
|
41
|
+
SOLAR_SYSTEM_OBJECT_AVOIDANCE = 'Solar System Object Avoidance'
|
|
42
|
+
DAYTIME_AVOIDANCE = 'Daytime Avoidance'
|
|
36
43
|
TEST_CONSTRAINT = 'Test Constraint'
|
|
44
|
+
AND = 'And'
|
|
45
|
+
OR = 'Or'
|
|
46
|
+
NOT = 'Not'
|
|
47
|
+
XOR = 'Xor'
|
|
48
|
+
POINTING = 'Pointing'
|
|
37
49
|
|
|
38
50
|
@classmethod
|
|
39
51
|
def from_json(cls, json_str: str) -> 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: 1.
|
|
8
|
+
The version of the OpenAPI document: 1.4.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: 1.
|
|
8
|
+
The version of the OpenAPI document: 1.4.0
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
11
|
Do not edit the class manually.
|
|
@@ -0,0 +1,138 @@
|
|
|
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.3.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
|
+
from inspect import getfullargspec
|
|
17
|
+
import json
|
|
18
|
+
import pprint
|
|
19
|
+
import re # noqa: F401
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator
|
|
21
|
+
from typing import List, Optional
|
|
22
|
+
from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict
|
|
23
|
+
from typing_extensions import Literal, Self
|
|
24
|
+
from pydantic import Field
|
|
25
|
+
|
|
26
|
+
DATETIME_ANY_OF_SCHEMAS = ["List[str]", "str"]
|
|
27
|
+
|
|
28
|
+
class Datetime(BaseModel):
|
|
29
|
+
"""
|
|
30
|
+
Datetime
|
|
31
|
+
"""
|
|
32
|
+
|
|
33
|
+
# data type: str
|
|
34
|
+
anyof_schema_1_validator: Optional[StrictStr] = None
|
|
35
|
+
# data type: List[str]
|
|
36
|
+
anyof_schema_2_validator: Optional[List[StrictStr]] = None
|
|
37
|
+
if TYPE_CHECKING:
|
|
38
|
+
actual_instance: Optional[Union[List[str], str]] = None
|
|
39
|
+
else:
|
|
40
|
+
actual_instance: Any = None
|
|
41
|
+
any_of_schemas: Set[str] = { "List[str]", "str" }
|
|
42
|
+
|
|
43
|
+
model_config = {
|
|
44
|
+
"validate_assignment": True,
|
|
45
|
+
"protected_namespaces": (),
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
def __init__(self, *args, **kwargs) -> None:
|
|
49
|
+
if args:
|
|
50
|
+
if len(args) > 1:
|
|
51
|
+
raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`")
|
|
52
|
+
if kwargs:
|
|
53
|
+
raise ValueError("If a position argument is used, keyword arguments cannot be used.")
|
|
54
|
+
super().__init__(actual_instance=args[0])
|
|
55
|
+
else:
|
|
56
|
+
super().__init__(**kwargs)
|
|
57
|
+
|
|
58
|
+
@field_validator('actual_instance')
|
|
59
|
+
def actual_instance_must_validate_anyof(cls, v):
|
|
60
|
+
instance = Datetime.model_construct()
|
|
61
|
+
error_messages = []
|
|
62
|
+
# validate data type: str
|
|
63
|
+
try:
|
|
64
|
+
instance.anyof_schema_1_validator = v
|
|
65
|
+
return v
|
|
66
|
+
except (ValidationError, ValueError) as e:
|
|
67
|
+
error_messages.append(str(e))
|
|
68
|
+
# validate data type: List[str]
|
|
69
|
+
try:
|
|
70
|
+
instance.anyof_schema_2_validator = v
|
|
71
|
+
return v
|
|
72
|
+
except (ValidationError, ValueError) as e:
|
|
73
|
+
error_messages.append(str(e))
|
|
74
|
+
if error_messages:
|
|
75
|
+
# no match
|
|
76
|
+
raise ValueError("No match found when setting the actual_instance in Datetime with anyOf schemas: List[str], str. Details: " + ", ".join(error_messages))
|
|
77
|
+
else:
|
|
78
|
+
return v
|
|
79
|
+
|
|
80
|
+
@classmethod
|
|
81
|
+
def from_dict(cls, obj: Dict[str, Any]) -> Self:
|
|
82
|
+
return cls.from_json(json.dumps(obj))
|
|
83
|
+
|
|
84
|
+
@classmethod
|
|
85
|
+
def from_json(cls, json_str: str) -> Self:
|
|
86
|
+
"""Returns the object represented by the json string"""
|
|
87
|
+
instance = cls.model_construct()
|
|
88
|
+
error_messages = []
|
|
89
|
+
# deserialize data into str
|
|
90
|
+
try:
|
|
91
|
+
# validation
|
|
92
|
+
instance.anyof_schema_1_validator = json.loads(json_str)
|
|
93
|
+
# assign value to actual_instance
|
|
94
|
+
instance.actual_instance = instance.anyof_schema_1_validator
|
|
95
|
+
return instance
|
|
96
|
+
except (ValidationError, ValueError) as e:
|
|
97
|
+
error_messages.append(str(e))
|
|
98
|
+
# deserialize data into List[str]
|
|
99
|
+
try:
|
|
100
|
+
# validation
|
|
101
|
+
instance.anyof_schema_2_validator = json.loads(json_str)
|
|
102
|
+
# assign value to actual_instance
|
|
103
|
+
instance.actual_instance = instance.anyof_schema_2_validator
|
|
104
|
+
return instance
|
|
105
|
+
except (ValidationError, ValueError) as e:
|
|
106
|
+
error_messages.append(str(e))
|
|
107
|
+
|
|
108
|
+
if error_messages:
|
|
109
|
+
# no match
|
|
110
|
+
raise ValueError("No match found when deserializing the JSON string into Datetime with anyOf schemas: List[str], str. Details: " + ", ".join(error_messages))
|
|
111
|
+
else:
|
|
112
|
+
return instance
|
|
113
|
+
|
|
114
|
+
def to_json(self) -> str:
|
|
115
|
+
"""Returns the JSON representation of the actual instance"""
|
|
116
|
+
if self.actual_instance is None:
|
|
117
|
+
return "null"
|
|
118
|
+
|
|
119
|
+
if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json):
|
|
120
|
+
return self.actual_instance.to_json()
|
|
121
|
+
else:
|
|
122
|
+
return json.dumps(self.actual_instance)
|
|
123
|
+
|
|
124
|
+
def to_dict(self) -> Optional[Union[Dict[str, Any], List[str], str]]:
|
|
125
|
+
"""Returns the dict representation of the actual instance"""
|
|
126
|
+
if self.actual_instance is None:
|
|
127
|
+
return None
|
|
128
|
+
|
|
129
|
+
if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict):
|
|
130
|
+
return self.actual_instance.to_dict()
|
|
131
|
+
else:
|
|
132
|
+
return self.actual_instance
|
|
133
|
+
|
|
134
|
+
def to_str(self) -> str:
|
|
135
|
+
"""Returns the string representation of the actual instance"""
|
|
136
|
+
return pprint.pformat(self.model_dump())
|
|
137
|
+
|
|
138
|
+
|
|
@@ -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.4.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: 1.
|
|
8
|
+
The version of the OpenAPI document: 1.4.0
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
11
|
Do not edit the class manually.
|
|
@@ -25,7 +25,7 @@ from typing_extensions import Self
|
|
|
25
25
|
|
|
26
26
|
class EnergyBandpass(BaseModel):
|
|
27
27
|
"""
|
|
28
|
-
A class representing a bandpass filter defined in terms of energy. Inherits from `BaseBandpass`, this class specializes the filter to operate in the energy domain. Attributes
|
|
28
|
+
A class representing a bandpass filter defined in terms of energy. Inherits from `BaseBandpass`, this class specializes the filter to operate in the energy domain. Attributes ---------- type : Literal['ENERGY'] A constant string indicating the type of the bandpass filter. unit : EnergyUnit The unit of measurement for the energy.
|
|
29
29
|
""" # noqa: E501
|
|
30
30
|
filter_name: Optional[StrictStr] = None
|
|
31
31
|
min: Optional[Union[StrictFloat, StrictInt]] = None
|
|
@@ -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.4.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: 1.
|
|
8
|
+
The version of the OpenAPI document: 1.4.0
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
11
|
Do not edit the class manually.
|
across/sdk/v1/models/filter.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.4.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: 1.
|
|
8
|
+
The version of the OpenAPI document: 1.4.0
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
11
|
Do not edit the class manually.
|
|
@@ -25,7 +25,7 @@ from typing_extensions import Self
|
|
|
25
25
|
|
|
26
26
|
class FrequencyBandpass(BaseModel):
|
|
27
27
|
"""
|
|
28
|
-
A class representing a bandpass filter defined in terms of frequency. Inherits from `BaseBandpass`, this class specializes the filter to operate in the frequency domain. Attributes
|
|
28
|
+
A class representing a bandpass filter defined in terms of frequency. Inherits from `BaseBandpass`, this class specializes the filter to operate in the frequency domain. Attributes ---------- type : Literal['FREQUENCY'] A constant string indicating the type of the bandpass filter. unit : FrequencyUnit The unit of measurement for the frequency.
|
|
29
29
|
""" # noqa: E501
|
|
30
30
|
filter_name: Optional[StrictStr] = None
|
|
31
31
|
min: Optional[Union[StrictFloat, StrictInt]] = None
|
|
@@ -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.4.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: 1.
|
|
8
|
+
The version of the OpenAPI document: 1.4.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: 1.
|
|
8
|
+
The version of the OpenAPI document: 1.4.0
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
11
|
Do not edit the class manually.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
# coding: utf-8
|
|
2
2
|
|
|
3
3
|
"""
|
|
4
|
-
|
|
4
|
+
ACROSS Server
|
|
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: 1.4.0
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
11
|
Do not edit the class manually.
|
|
@@ -17,27 +17,23 @@ import pprint
|
|
|
17
17
|
import re # noqa: F401
|
|
18
18
|
import json
|
|
19
19
|
|
|
20
|
-
from
|
|
21
|
-
from
|
|
22
|
-
from
|
|
23
|
-
from across.sdk.v1.models.
|
|
24
|
-
from across.sdk.v1.models.role_base import RoleBase
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, StrictStr
|
|
21
|
+
from typing import Any, ClassVar, Dict, List
|
|
22
|
+
from across.sdk.v1.models.across_server_routes_v1_group_role_schemas_group_role import AcrossServerRoutesV1GroupRoleSchemasGroupRole
|
|
23
|
+
from across.sdk.v1.models.across_server_routes_v1_group_schemas_user import AcrossServerRoutesV1GroupSchemasUser
|
|
25
24
|
from typing import Optional, Set
|
|
26
25
|
from typing_extensions import Self
|
|
27
26
|
|
|
28
|
-
class
|
|
27
|
+
class Group(BaseModel):
|
|
29
28
|
"""
|
|
30
|
-
|
|
29
|
+
Group
|
|
31
30
|
""" # noqa: E501
|
|
32
31
|
id: StrictStr
|
|
33
32
|
name: StrictStr
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
group_roles: List[GroupRoleRead]
|
|
39
|
-
secret_key: StrictStr
|
|
40
|
-
__properties: ClassVar[List[str]] = ["id", "name", "description", "expiration", "expiration_duration", "roles", "group_roles", "secret_key"]
|
|
33
|
+
short_name: StrictStr
|
|
34
|
+
users: List[AcrossServerRoutesV1GroupSchemasUser]
|
|
35
|
+
roles: List[AcrossServerRoutesV1GroupRoleSchemasGroupRole]
|
|
36
|
+
__properties: ClassVar[List[str]] = ["id", "name", "short_name", "users", "roles"]
|
|
41
37
|
|
|
42
38
|
model_config = ConfigDict(
|
|
43
39
|
populate_by_name=True,
|
|
@@ -57,7 +53,7 @@ class SystemServiceAccountSecret(BaseModel):
|
|
|
57
53
|
|
|
58
54
|
@classmethod
|
|
59
55
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
60
|
-
"""Create an instance of
|
|
56
|
+
"""Create an instance of Group from a JSON string"""
|
|
61
57
|
return cls.from_dict(json.loads(json_str))
|
|
62
58
|
|
|
63
59
|
def to_dict(self) -> Dict[str, Any]:
|
|
@@ -78,6 +74,13 @@ class SystemServiceAccountSecret(BaseModel):
|
|
|
78
74
|
exclude=excluded_fields,
|
|
79
75
|
exclude_none=True,
|
|
80
76
|
)
|
|
77
|
+
# override the default output from pydantic by calling `to_dict()` of each item in users (list)
|
|
78
|
+
_items = []
|
|
79
|
+
if self.users:
|
|
80
|
+
for _item_users in self.users:
|
|
81
|
+
if _item_users:
|
|
82
|
+
_items.append(_item_users.to_dict())
|
|
83
|
+
_dict['users'] = _items
|
|
81
84
|
# override the default output from pydantic by calling `to_dict()` of each item in roles (list)
|
|
82
85
|
_items = []
|
|
83
86
|
if self.roles:
|
|
@@ -85,23 +88,11 @@ class SystemServiceAccountSecret(BaseModel):
|
|
|
85
88
|
if _item_roles:
|
|
86
89
|
_items.append(_item_roles.to_dict())
|
|
87
90
|
_dict['roles'] = _items
|
|
88
|
-
# override the default output from pydantic by calling `to_dict()` of each item in group_roles (list)
|
|
89
|
-
_items = []
|
|
90
|
-
if self.group_roles:
|
|
91
|
-
for _item_group_roles in self.group_roles:
|
|
92
|
-
if _item_group_roles:
|
|
93
|
-
_items.append(_item_group_roles.to_dict())
|
|
94
|
-
_dict['group_roles'] = _items
|
|
95
|
-
# set to None if description (nullable) is None
|
|
96
|
-
# and model_fields_set contains the field
|
|
97
|
-
if self.description is None and "description" in self.model_fields_set:
|
|
98
|
-
_dict['description'] = None
|
|
99
|
-
|
|
100
91
|
return _dict
|
|
101
92
|
|
|
102
93
|
@classmethod
|
|
103
94
|
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
104
|
-
"""Create an instance of
|
|
95
|
+
"""Create an instance of Group from a dict"""
|
|
105
96
|
if obj is None:
|
|
106
97
|
return None
|
|
107
98
|
|
|
@@ -111,12 +102,9 @@ class SystemServiceAccountSecret(BaseModel):
|
|
|
111
102
|
_obj = cls.model_validate({
|
|
112
103
|
"id": obj.get("id"),
|
|
113
104
|
"name": obj.get("name"),
|
|
114
|
-
"
|
|
115
|
-
"
|
|
116
|
-
"
|
|
117
|
-
"roles": [RoleBase.from_dict(_item) for _item in obj["roles"]] if obj.get("roles") is not None else None,
|
|
118
|
-
"group_roles": [GroupRoleRead.from_dict(_item) for _item in obj["group_roles"]] if obj.get("group_roles") is not None else None,
|
|
119
|
-
"secret_key": obj.get("secret_key")
|
|
105
|
+
"short_name": obj.get("short_name"),
|
|
106
|
+
"users": [AcrossServerRoutesV1GroupSchemasUser.from_dict(_item) for _item in obj["users"]] if obj.get("users") is not None else None,
|
|
107
|
+
"roles": [AcrossServerRoutesV1GroupRoleSchemasGroupRole.from_dict(_item) for _item in obj["roles"]] if obj.get("roles") is not None else None
|
|
120
108
|
})
|
|
121
109
|
return _obj
|
|
122
110
|
|
|
@@ -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.4.0
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
11
|
Do not edit the class manually.
|
|
@@ -24,9 +24,9 @@ from across.sdk.v1.models.user_info import UserInfo
|
|
|
24
24
|
from typing import Optional, Set
|
|
25
25
|
from typing_extensions import Self
|
|
26
26
|
|
|
27
|
-
class
|
|
27
|
+
class GroupInvite(BaseModel):
|
|
28
28
|
"""
|
|
29
|
-
|
|
29
|
+
GroupInvite
|
|
30
30
|
""" # noqa: E501
|
|
31
31
|
id: StrictStr
|
|
32
32
|
group: GroupRead
|
|
@@ -52,7 +52,7 @@ class AcrossServerRoutesV1GroupInviteSchemasGroupInvite(BaseModel):
|
|
|
52
52
|
|
|
53
53
|
@classmethod
|
|
54
54
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
55
|
-
"""Create an instance of
|
|
55
|
+
"""Create an instance of GroupInvite from a JSON string"""
|
|
56
56
|
return cls.from_dict(json.loads(json_str))
|
|
57
57
|
|
|
58
58
|
def to_dict(self) -> Dict[str, Any]:
|
|
@@ -86,7 +86,7 @@ class AcrossServerRoutesV1GroupInviteSchemasGroupInvite(BaseModel):
|
|
|
86
86
|
|
|
87
87
|
@classmethod
|
|
88
88
|
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
89
|
-
"""Create an instance of
|
|
89
|
+
"""Create an instance of GroupInvite from a dict"""
|
|
90
90
|
if obj is None:
|
|
91
91
|
return None
|
|
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: 1.
|
|
8
|
+
The version of the OpenAPI document: 1.4.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: 1.
|
|
8
|
+
The version of the OpenAPI document: 1.4.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: 1.
|
|
8
|
+
The version of the OpenAPI document: 1.4.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: 1.
|
|
8
|
+
The version of the OpenAPI document: 1.4.0
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
11
|
Do not edit the class manually.
|
|
@@ -23,9 +23,9 @@ from across.sdk.v1.models.permission import Permission
|
|
|
23
23
|
from typing import Optional, Set
|
|
24
24
|
from typing_extensions import Self
|
|
25
25
|
|
|
26
|
-
class
|
|
26
|
+
class GroupRole(BaseModel):
|
|
27
27
|
"""
|
|
28
|
-
|
|
28
|
+
GroupRole
|
|
29
29
|
""" # noqa: E501
|
|
30
30
|
id: StrictStr
|
|
31
31
|
name: StrictStr
|
|
@@ -50,7 +50,7 @@ class AcrossServerRoutesV1UserSchemasGroupRole(BaseModel):
|
|
|
50
50
|
|
|
51
51
|
@classmethod
|
|
52
52
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
53
|
-
"""Create an instance of
|
|
53
|
+
"""Create an instance of GroupRole from a JSON string"""
|
|
54
54
|
return cls.from_dict(json.loads(json_str))
|
|
55
55
|
|
|
56
56
|
def to_dict(self) -> Dict[str, Any]:
|
|
@@ -82,7 +82,7 @@ class AcrossServerRoutesV1UserSchemasGroupRole(BaseModel):
|
|
|
82
82
|
|
|
83
83
|
@classmethod
|
|
84
84
|
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
85
|
-
"""Create an instance of
|
|
85
|
+
"""Create an instance of GroupRole from a dict"""
|
|
86
86
|
if obj is None:
|
|
87
87
|
return None
|
|
88
88
|
|
|
@@ -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.4.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: 1.
|
|
8
|
+
The version of the OpenAPI document: 1.4.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: 1.
|
|
8
|
+
The version of the OpenAPI document: 1.4.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: 1.
|
|
8
|
+
The version of the OpenAPI document: 1.4.0
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
10
|
|
|
11
11
|
Do not edit the class manually.
|