across-server-openapi-python 1.3.0__py3-none-any.whl → 1.4.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 +37 -7
- across/sdk/v1/api/__init__.py +2 -0
- across/sdk/v1/api/auth_api.py +1 -1
- 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 +1 -1
- across/sdk/v1/api/group_api.py +12 -12
- across/sdk/v1/api/group_invite_api.py +1 -1
- across/sdk/v1/api/group_role_api.py +7 -7
- across/sdk/v1/api/instrument_api.py +1 -1
- across/sdk/v1/api/internal_api.py +2 -2
- across/sdk/v1/api/observation_api.py +682 -52
- 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 +1 -1
- across/sdk/v1/api/schedule_api.py +1 -1
- across/sdk/v1/api/service_account_api.py +7 -7
- across/sdk/v1/api/telescope_api.py +1 -1
- across/sdk/v1/api/tle_api.py +1 -1
- across/sdk/v1/api/tools_api.py +1 -1
- across/sdk/v1/api/user_api.py +22 -22
- across/sdk/v1/api_client.py +1 -1
- across/sdk/v1/configuration.py +4 -4
- across/sdk/v1/exceptions.py +1 -1
- across/sdk/v1/models/__init__.py +17 -4
- across/sdk/v1/models/access_token_response.py +1 -1
- across/sdk/v1/models/across_server_routes_v1_group_role_schemas_group.py +91 -0
- 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 +7 -7
- across/sdk/v1/models/across_server_routes_v1_group_schemas_user.py +1 -1
- 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_invite.py +1 -1
- across/sdk/v1/models/across_server_routes_v1_user_schemas_group_role.py +105 -0
- 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/broker_alert.py +104 -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 +1 -1
- across/sdk/v1/models/constraint_reason.py +1 -1
- across/sdk/v1/models/constraint_type.py +1 -1
- across/sdk/v1/models/coordinate.py +1 -1
- across/sdk/v1/models/date_range.py +1 -1
- across/sdk/v1/models/depth_unit.py +1 -1
- across/sdk/v1/models/energy_bandpass.py +1 -1
- 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 +1 -1
- 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/group.py +5 -15
- across/sdk/v1/models/group_base.py +91 -0
- across/sdk/v1/models/group_invite.py +1 -1
- 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/group_role.py +37 -6
- across/sdk/v1/models/group_role_create.py +1 -1
- across/sdk/v1/models/group_role_read.py +9 -3
- 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 +1 -1
- 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/localization.py +127 -0
- across/sdk/v1/models/localization_contour_base.py +95 -0
- across/sdk/v1/models/localization_create.py +121 -0
- across/sdk/v1/models/name_resolver.py +1 -1
- across/sdk/v1/models/nullable_date_range.py +1 -1
- across/sdk/v1/models/observation.py +1 -1
- across/sdk/v1/models/observation_create.py +1 -1
- across/sdk/v1/models/observation_footprint.py +1 -1
- across/sdk/v1/models/observation_footprint_create.py +1 -1
- 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/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_broker_alert.py +116 -0
- across/sdk/v1/models/page_broker_event.py +116 -0
- 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 +4 -4
- 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/service_account.py +1 -1
- 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 +1 -1
- 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/user.py +47 -7
- 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 +1 -1
- 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.3.0.dist-info → across_server_openapi_python-1.4.0.dist-info}/METADATA +34 -15
- across_server_openapi_python-1.4.0.dist-info/RECORD +143 -0
- 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-1.4.0.dist-info}/WHEEL +0 -0
- {across_server_openapi_python-1.3.0.dist-info → across_server_openapi_python-1.4.0.dist-info}/licenses/LICENSE +0 -0
- {across_server_openapi_python-1.3.0.dist-info → across_server_openapi_python-1.4.0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,41 @@
|
|
|
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 json
|
|
17
|
+
from enum import Enum
|
|
18
|
+
from typing_extensions import Self
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class BrokerEventType(str, Enum):
|
|
22
|
+
"""
|
|
23
|
+
BrokerEventType
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
"""
|
|
27
|
+
allowed enum values
|
|
28
|
+
"""
|
|
29
|
+
TRANSIENT = 'transient'
|
|
30
|
+
GW = 'gw'
|
|
31
|
+
NEUTRINO = 'neutrino'
|
|
32
|
+
GRB = 'grb'
|
|
33
|
+
FRB = 'frb'
|
|
34
|
+
XRT = 'xrt'
|
|
35
|
+
|
|
36
|
+
@classmethod
|
|
37
|
+
def from_json(cls, json_str: str) -> Self:
|
|
38
|
+
"""Create an instance of BrokerEventType from a JSON string"""
|
|
39
|
+
return cls(json.loads(json_str))
|
|
40
|
+
|
|
41
|
+
|
|
@@ -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: 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: 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: 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: 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: 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: 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: 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: 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.
|
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.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: 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: 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: 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: 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.
|
across/sdk/v1/models/group.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,8 +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.
|
|
23
|
-
from across.sdk.v1.models.across_server_routes_v1_group_schemas_user import AcrossServerRoutesV1GroupSchemasUser
|
|
22
|
+
from across.sdk.v1.models.across_server_routes_v1_user_schemas_group_role import AcrossServerRoutesV1UserSchemasGroupRole
|
|
24
23
|
from typing import Optional, Set
|
|
25
24
|
from typing_extensions import Self
|
|
26
25
|
|
|
@@ -31,9 +30,8 @@ class Group(BaseModel):
|
|
|
31
30
|
id: StrictStr
|
|
32
31
|
name: StrictStr
|
|
33
32
|
short_name: StrictStr
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
__properties: ClassVar[List[str]] = ["id", "name", "short_name", "users", "roles"]
|
|
33
|
+
roles: List[AcrossServerRoutesV1UserSchemasGroupRole]
|
|
34
|
+
__properties: ClassVar[List[str]] = ["id", "name", "short_name", "roles"]
|
|
37
35
|
|
|
38
36
|
model_config = ConfigDict(
|
|
39
37
|
populate_by_name=True,
|
|
@@ -74,13 +72,6 @@ class Group(BaseModel):
|
|
|
74
72
|
exclude=excluded_fields,
|
|
75
73
|
exclude_none=True,
|
|
76
74
|
)
|
|
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
|
|
84
75
|
# override the default output from pydantic by calling `to_dict()` of each item in roles (list)
|
|
85
76
|
_items = []
|
|
86
77
|
if self.roles:
|
|
@@ -103,8 +94,7 @@ class Group(BaseModel):
|
|
|
103
94
|
"id": obj.get("id"),
|
|
104
95
|
"name": obj.get("name"),
|
|
105
96
|
"short_name": obj.get("short_name"),
|
|
106
|
-
"
|
|
107
|
-
"roles": [AcrossServerRoutesV1GroupRoleSchemasGroupRole.from_dict(_item) for _item in obj["roles"]] if obj.get("roles") is not None else None
|
|
97
|
+
"roles": [AcrossServerRoutesV1UserSchemasGroupRole.from_dict(_item) for _item in obj["roles"]] if obj.get("roles") is not None else None
|
|
108
98
|
})
|
|
109
99
|
return _obj
|
|
110
100
|
|
|
@@ -0,0 +1,91 @@
|
|
|
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 GroupBase(BaseModel):
|
|
26
|
+
"""
|
|
27
|
+
GroupBase
|
|
28
|
+
""" # noqa: E501
|
|
29
|
+
id: StrictStr
|
|
30
|
+
name: StrictStr
|
|
31
|
+
short_name: StrictStr
|
|
32
|
+
__properties: ClassVar[List[str]] = ["id", "name", "short_name"]
|
|
33
|
+
|
|
34
|
+
model_config = ConfigDict(
|
|
35
|
+
populate_by_name=True,
|
|
36
|
+
validate_assignment=True,
|
|
37
|
+
protected_namespaces=(),
|
|
38
|
+
)
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
def to_str(self) -> str:
|
|
42
|
+
"""Returns the string representation of the model using alias"""
|
|
43
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
44
|
+
|
|
45
|
+
def to_json(self) -> str:
|
|
46
|
+
"""Returns the JSON representation of the model using alias"""
|
|
47
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
48
|
+
return json.dumps(self.to_dict())
|
|
49
|
+
|
|
50
|
+
@classmethod
|
|
51
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
52
|
+
"""Create an instance of GroupBase from a JSON string"""
|
|
53
|
+
return cls.from_dict(json.loads(json_str))
|
|
54
|
+
|
|
55
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
56
|
+
"""Return the dictionary representation of the model using alias.
|
|
57
|
+
|
|
58
|
+
This has the following differences from calling pydantic's
|
|
59
|
+
`self.model_dump(by_alias=True)`:
|
|
60
|
+
|
|
61
|
+
* `None` is only added to the output dict for nullable fields that
|
|
62
|
+
were set at model initialization. Other fields with value `None`
|
|
63
|
+
are ignored.
|
|
64
|
+
"""
|
|
65
|
+
excluded_fields: Set[str] = set([
|
|
66
|
+
])
|
|
67
|
+
|
|
68
|
+
_dict = self.model_dump(
|
|
69
|
+
by_alias=True,
|
|
70
|
+
exclude=excluded_fields,
|
|
71
|
+
exclude_none=True,
|
|
72
|
+
)
|
|
73
|
+
return _dict
|
|
74
|
+
|
|
75
|
+
@classmethod
|
|
76
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
77
|
+
"""Create an instance of GroupBase from a dict"""
|
|
78
|
+
if obj is None:
|
|
79
|
+
return None
|
|
80
|
+
|
|
81
|
+
if not isinstance(obj, dict):
|
|
82
|
+
return cls.model_validate(obj)
|
|
83
|
+
|
|
84
|
+
_obj = cls.model_validate({
|
|
85
|
+
"id": obj.get("id"),
|
|
86
|
+
"name": obj.get("name"),
|
|
87
|
+
"short_name": obj.get("short_name")
|
|
88
|
+
})
|
|
89
|
+
return _obj
|
|
90
|
+
|
|
91
|
+
|
|
@@ -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: 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: 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: 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: 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.
|
|
@@ -18,8 +18,11 @@ import re # noqa: F401
|
|
|
18
18
|
import json
|
|
19
19
|
|
|
20
20
|
from pydantic import BaseModel, ConfigDict, StrictStr
|
|
21
|
-
from typing import Any, ClassVar, Dict, List
|
|
21
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
+
from across.sdk.v1.models.across_server_routes_v1_group_role_schemas_group import AcrossServerRoutesV1GroupRoleSchemasGroup
|
|
23
|
+
from across.sdk.v1.models.across_server_routes_v1_group_role_schemas_user import AcrossServerRoutesV1GroupRoleSchemasUser
|
|
22
24
|
from across.sdk.v1.models.permission import Permission
|
|
25
|
+
from across.sdk.v1.models.service_account import ServiceAccount
|
|
23
26
|
from typing import Optional, Set
|
|
24
27
|
from typing_extensions import Self
|
|
25
28
|
|
|
@@ -27,10 +30,13 @@ class GroupRole(BaseModel):
|
|
|
27
30
|
"""
|
|
28
31
|
GroupRole
|
|
29
32
|
""" # noqa: E501
|
|
30
|
-
id: StrictStr
|
|
31
33
|
name: StrictStr
|
|
32
34
|
permissions: List[Permission]
|
|
33
|
-
|
|
35
|
+
id: StrictStr
|
|
36
|
+
group: AcrossServerRoutesV1GroupRoleSchemasGroup
|
|
37
|
+
users: List[AcrossServerRoutesV1GroupRoleSchemasUser]
|
|
38
|
+
service_accounts: Optional[List[ServiceAccount]]
|
|
39
|
+
__properties: ClassVar[List[str]] = ["name", "permissions", "id", "group", "users", "service_accounts"]
|
|
34
40
|
|
|
35
41
|
model_config = ConfigDict(
|
|
36
42
|
populate_by_name=True,
|
|
@@ -78,6 +84,28 @@ class GroupRole(BaseModel):
|
|
|
78
84
|
if _item_permissions:
|
|
79
85
|
_items.append(_item_permissions.to_dict())
|
|
80
86
|
_dict['permissions'] = _items
|
|
87
|
+
# override the default output from pydantic by calling `to_dict()` of group
|
|
88
|
+
if self.group:
|
|
89
|
+
_dict['group'] = self.group.to_dict()
|
|
90
|
+
# override the default output from pydantic by calling `to_dict()` of each item in users (list)
|
|
91
|
+
_items = []
|
|
92
|
+
if self.users:
|
|
93
|
+
for _item_users in self.users:
|
|
94
|
+
if _item_users:
|
|
95
|
+
_items.append(_item_users.to_dict())
|
|
96
|
+
_dict['users'] = _items
|
|
97
|
+
# override the default output from pydantic by calling `to_dict()` of each item in service_accounts (list)
|
|
98
|
+
_items = []
|
|
99
|
+
if self.service_accounts:
|
|
100
|
+
for _item_service_accounts in self.service_accounts:
|
|
101
|
+
if _item_service_accounts:
|
|
102
|
+
_items.append(_item_service_accounts.to_dict())
|
|
103
|
+
_dict['service_accounts'] = _items
|
|
104
|
+
# set to None if service_accounts (nullable) is None
|
|
105
|
+
# and model_fields_set contains the field
|
|
106
|
+
if self.service_accounts is None and "service_accounts" in self.model_fields_set:
|
|
107
|
+
_dict['service_accounts'] = None
|
|
108
|
+
|
|
81
109
|
return _dict
|
|
82
110
|
|
|
83
111
|
@classmethod
|
|
@@ -90,9 +118,12 @@ class GroupRole(BaseModel):
|
|
|
90
118
|
return cls.model_validate(obj)
|
|
91
119
|
|
|
92
120
|
_obj = cls.model_validate({
|
|
93
|
-
"id": obj.get("id"),
|
|
94
121
|
"name": obj.get("name"),
|
|
95
|
-
"permissions": [Permission.from_dict(_item) for _item in obj["permissions"]] if obj.get("permissions") is not None else None
|
|
122
|
+
"permissions": [Permission.from_dict(_item) for _item in obj["permissions"]] if obj.get("permissions") is not None else None,
|
|
123
|
+
"id": obj.get("id"),
|
|
124
|
+
"group": AcrossServerRoutesV1GroupRoleSchemasGroup.from_dict(obj["group"]) if obj.get("group") is not None else None,
|
|
125
|
+
"users": [AcrossServerRoutesV1GroupRoleSchemasUser.from_dict(_item) for _item in obj["users"]] if obj.get("users") is not None else None,
|
|
126
|
+
"service_accounts": [ServiceAccount.from_dict(_item) for _item in obj["service_accounts"]] if obj.get("service_accounts") is not None else None
|
|
96
127
|
})
|
|
97
128
|
return _obj
|
|
98
129
|
|
|
@@ -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: 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,6 +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.across_server_routes_v1_group_role_schemas_group import AcrossServerRoutesV1GroupRoleSchemasGroup
|
|
22
23
|
from across.sdk.v1.models.permission import Permission
|
|
23
24
|
from typing import Optional, Set
|
|
24
25
|
from typing_extensions import Self
|
|
@@ -30,7 +31,8 @@ class GroupRoleRead(BaseModel):
|
|
|
30
31
|
name: StrictStr
|
|
31
32
|
permissions: List[Permission]
|
|
32
33
|
id: StrictStr
|
|
33
|
-
|
|
34
|
+
group: AcrossServerRoutesV1GroupRoleSchemasGroup
|
|
35
|
+
__properties: ClassVar[List[str]] = ["name", "permissions", "id", "group"]
|
|
34
36
|
|
|
35
37
|
model_config = ConfigDict(
|
|
36
38
|
populate_by_name=True,
|
|
@@ -78,6 +80,9 @@ class GroupRoleRead(BaseModel):
|
|
|
78
80
|
if _item_permissions:
|
|
79
81
|
_items.append(_item_permissions.to_dict())
|
|
80
82
|
_dict['permissions'] = _items
|
|
83
|
+
# override the default output from pydantic by calling `to_dict()` of group
|
|
84
|
+
if self.group:
|
|
85
|
+
_dict['group'] = self.group.to_dict()
|
|
81
86
|
return _dict
|
|
82
87
|
|
|
83
88
|
@classmethod
|
|
@@ -92,7 +97,8 @@ class GroupRoleRead(BaseModel):
|
|
|
92
97
|
_obj = cls.model_validate({
|
|
93
98
|
"name": obj.get("name"),
|
|
94
99
|
"permissions": [Permission.from_dict(_item) for _item in obj["permissions"]] if obj.get("permissions") is not None else None,
|
|
95
|
-
"id": obj.get("id")
|
|
100
|
+
"id": obj.get("id"),
|
|
101
|
+
"group": AcrossServerRoutesV1GroupRoleSchemasGroup.from_dict(obj["group"]) if obj.get("group") is not None else None
|
|
96
102
|
})
|
|
97
103
|
return _obj
|
|
98
104
|
|
|
@@ -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: 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: 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: 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: 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: 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: 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.
|