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.
Files changed (133) hide show
  1. across/sdk/v1/__init__.py +37 -7
  2. across/sdk/v1/api/__init__.py +2 -0
  3. across/sdk/v1/api/auth_api.py +1 -1
  4. across/sdk/v1/api/broker_alert_api.py +1017 -0
  5. across/sdk/v1/api/broker_event_api.py +697 -0
  6. across/sdk/v1/api/filter_api.py +1 -1
  7. across/sdk/v1/api/group_api.py +12 -12
  8. across/sdk/v1/api/group_invite_api.py +1 -1
  9. across/sdk/v1/api/group_role_api.py +7 -7
  10. across/sdk/v1/api/instrument_api.py +1 -1
  11. across/sdk/v1/api/internal_api.py +2 -2
  12. across/sdk/v1/api/observation_api.py +682 -52
  13. across/sdk/v1/api/observatory_api.py +1 -1
  14. across/sdk/v1/api/permission_api.py +1 -1
  15. across/sdk/v1/api/role_api.py +1 -1
  16. across/sdk/v1/api/schedule_api.py +1 -1
  17. across/sdk/v1/api/service_account_api.py +7 -7
  18. across/sdk/v1/api/telescope_api.py +1 -1
  19. across/sdk/v1/api/tle_api.py +1 -1
  20. across/sdk/v1/api/tools_api.py +1 -1
  21. across/sdk/v1/api/user_api.py +22 -22
  22. across/sdk/v1/api_client.py +1 -1
  23. across/sdk/v1/configuration.py +4 -4
  24. across/sdk/v1/exceptions.py +1 -1
  25. across/sdk/v1/models/__init__.py +17 -4
  26. across/sdk/v1/models/access_token_response.py +1 -1
  27. across/sdk/v1/models/across_server_routes_v1_group_role_schemas_group.py +91 -0
  28. across/sdk/v1/models/across_server_routes_v1_group_role_schemas_user.py +1 -1
  29. across/sdk/v1/models/across_server_routes_v1_group_schemas_group.py +7 -7
  30. across/sdk/v1/models/across_server_routes_v1_group_schemas_user.py +1 -1
  31. across/sdk/v1/models/across_server_routes_v1_role_schemas_user.py +95 -0
  32. across/sdk/v1/models/across_server_routes_v1_user_schemas_group_invite.py +1 -1
  33. across/sdk/v1/models/across_server_routes_v1_user_schemas_group_role.py +105 -0
  34. across/sdk/v1/models/across_server_routes_v1_user_service_account_schemas_service_account.py +1 -1
  35. across/sdk/v1/models/bandpass.py +1 -1
  36. across/sdk/v1/models/bandpass_type.py +1 -1
  37. across/sdk/v1/models/broker_alert.py +104 -0
  38. across/sdk/v1/models/broker_alert_create.py +115 -0
  39. across/sdk/v1/models/broker_alert_data_source.py +39 -0
  40. across/sdk/v1/models/broker_alert_status.py +41 -0
  41. across/sdk/v1/models/broker_event.py +115 -0
  42. across/sdk/v1/models/broker_event_type.py +41 -0
  43. across/sdk/v1/models/constrained_date.py +1 -1
  44. across/sdk/v1/models/constraint_reason.py +1 -1
  45. across/sdk/v1/models/constraint_type.py +1 -1
  46. across/sdk/v1/models/coordinate.py +1 -1
  47. across/sdk/v1/models/date_range.py +1 -1
  48. across/sdk/v1/models/depth_unit.py +1 -1
  49. across/sdk/v1/models/energy_bandpass.py +1 -1
  50. across/sdk/v1/models/energy_unit.py +1 -1
  51. across/sdk/v1/models/ephemeris_type.py +1 -1
  52. across/sdk/v1/models/filter.py +1 -1
  53. across/sdk/v1/models/frequency_bandpass.py +1 -1
  54. across/sdk/v1/models/frequency_unit.py +1 -1
  55. across/sdk/v1/models/grant_type.py +1 -1
  56. across/sdk/v1/models/ground_parameters.py +1 -1
  57. across/sdk/v1/models/group.py +5 -15
  58. across/sdk/v1/models/group_base.py +91 -0
  59. across/sdk/v1/models/group_invite.py +1 -1
  60. across/sdk/v1/models/group_invite_create.py +1 -1
  61. across/sdk/v1/models/group_invite_group_details.py +1 -1
  62. across/sdk/v1/models/group_read.py +1 -1
  63. across/sdk/v1/models/group_role.py +37 -6
  64. across/sdk/v1/models/group_role_create.py +1 -1
  65. across/sdk/v1/models/group_role_read.py +9 -3
  66. across/sdk/v1/models/http_validation_error.py +1 -1
  67. across/sdk/v1/models/id_name_schema.py +1 -1
  68. across/sdk/v1/models/instrument.py +1 -1
  69. across/sdk/v1/models/ivoa_obs_category.py +1 -1
  70. across/sdk/v1/models/ivoa_obs_tracking_type.py +1 -1
  71. across/sdk/v1/models/joint_visibility_result.py +1 -1
  72. across/sdk/v1/models/jpl_parameters.py +1 -1
  73. across/sdk/v1/models/localization.py +127 -0
  74. across/sdk/v1/models/localization_contour_base.py +95 -0
  75. across/sdk/v1/models/localization_create.py +121 -0
  76. across/sdk/v1/models/name_resolver.py +1 -1
  77. across/sdk/v1/models/nullable_date_range.py +1 -1
  78. across/sdk/v1/models/observation.py +1 -1
  79. across/sdk/v1/models/observation_create.py +1 -1
  80. across/sdk/v1/models/observation_footprint.py +1 -1
  81. across/sdk/v1/models/observation_footprint_create.py +1 -1
  82. across/sdk/v1/models/observation_status.py +1 -1
  83. across/sdk/v1/models/observation_strategy.py +1 -1
  84. across/sdk/v1/models/observation_type.py +1 -1
  85. across/sdk/v1/models/observatory.py +1 -1
  86. across/sdk/v1/models/observatory_ephemeris_type.py +1 -1
  87. across/sdk/v1/models/observatory_type.py +1 -1
  88. across/sdk/v1/models/page_broker_alert.py +116 -0
  89. across/sdk/v1/models/page_broker_event.py +116 -0
  90. across/sdk/v1/models/page_observation.py +1 -1
  91. across/sdk/v1/models/page_schedule.py +1 -1
  92. across/sdk/v1/models/parameters.py +1 -1
  93. across/sdk/v1/models/permission.py +1 -1
  94. across/sdk/v1/models/point.py +1 -1
  95. across/sdk/v1/models/role.py +4 -4
  96. across/sdk/v1/models/role_base.py +1 -1
  97. across/sdk/v1/models/schedule.py +1 -1
  98. across/sdk/v1/models/schedule_cadence.py +1 -1
  99. across/sdk/v1/models/schedule_create.py +1 -1
  100. across/sdk/v1/models/schedule_create_many.py +1 -1
  101. across/sdk/v1/models/schedule_fidelity.py +1 -1
  102. across/sdk/v1/models/schedule_status.py +1 -1
  103. across/sdk/v1/models/service_account.py +1 -1
  104. across/sdk/v1/models/service_account_create.py +1 -1
  105. across/sdk/v1/models/service_account_secret.py +1 -1
  106. across/sdk/v1/models/service_account_update.py +1 -1
  107. across/sdk/v1/models/spice_parameters.py +1 -1
  108. across/sdk/v1/models/system_service_account.py +1 -1
  109. across/sdk/v1/models/telescope.py +1 -1
  110. across/sdk/v1/models/telescope_instrument.py +1 -1
  111. across/sdk/v1/models/tle.py +1 -1
  112. across/sdk/v1/models/tle_create.py +1 -1
  113. across/sdk/v1/models/tle_parameters.py +1 -1
  114. across/sdk/v1/models/unit_value.py +1 -1
  115. across/sdk/v1/models/user.py +47 -7
  116. across/sdk/v1/models/user_create.py +1 -1
  117. across/sdk/v1/models/user_info.py +1 -1
  118. across/sdk/v1/models/user_update.py +1 -1
  119. across/sdk/v1/models/validation_error.py +1 -1
  120. across/sdk/v1/models/validation_error_loc_inner.py +1 -1
  121. across/sdk/v1/models/visibility_result.py +1 -1
  122. across/sdk/v1/models/visibility_type.py +1 -1
  123. across/sdk/v1/models/visibility_window.py +1 -1
  124. across/sdk/v1/models/wavelength_bandpass.py +1 -1
  125. across/sdk/v1/models/wavelength_unit.py +1 -1
  126. across/sdk/v1/models/window.py +1 -1
  127. across/sdk/v1/rest.py +1 -1
  128. {across_server_openapi_python-1.3.0.dist-info → across_server_openapi_python-1.4.0.dist-info}/METADATA +34 -15
  129. across_server_openapi_python-1.4.0.dist-info/RECORD +143 -0
  130. across_server_openapi_python-1.3.0.dist-info/RECORD +0 -126
  131. {across_server_openapi_python-1.3.0.dist-info → across_server_openapi_python-1.4.0.dist-info}/WHEEL +0 -0
  132. {across_server_openapi_python-1.3.0.dist-info → across_server_openapi_python-1.4.0.dist-info}/licenses/LICENSE +0 -0
  133. {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,116 @@
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, StrictInt
21
+ from typing import Any, ClassVar, Dict, List, Optional
22
+ from across.sdk.v1.models.broker_event import BrokerEvent
23
+ from typing import Optional, Set
24
+ from typing_extensions import Self
25
+
26
+ class PageBrokerEvent(BaseModel):
27
+ """
28
+ PageBrokerEvent
29
+ """ # noqa: E501
30
+ total_number: Optional[StrictInt]
31
+ page: Optional[StrictInt]
32
+ page_limit: Optional[StrictInt]
33
+ items: List[BrokerEvent]
34
+ __properties: ClassVar[List[str]] = ["total_number", "page", "page_limit", "items"]
35
+
36
+ model_config = ConfigDict(
37
+ populate_by_name=True,
38
+ validate_assignment=True,
39
+ protected_namespaces=(),
40
+ )
41
+
42
+
43
+ def to_str(self) -> str:
44
+ """Returns the string representation of the model using alias"""
45
+ return pprint.pformat(self.model_dump(by_alias=True))
46
+
47
+ def to_json(self) -> str:
48
+ """Returns the JSON representation of the model using alias"""
49
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
50
+ return json.dumps(self.to_dict())
51
+
52
+ @classmethod
53
+ def from_json(cls, json_str: str) -> Optional[Self]:
54
+ """Create an instance of PageBrokerEvent 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
+ # override the default output from pydantic by calling `to_dict()` of each item in items (list)
76
+ _items = []
77
+ if self.items:
78
+ for _item_items in self.items:
79
+ if _item_items:
80
+ _items.append(_item_items.to_dict())
81
+ _dict['items'] = _items
82
+ # set to None if total_number (nullable) is None
83
+ # and model_fields_set contains the field
84
+ if self.total_number is None and "total_number" in self.model_fields_set:
85
+ _dict['total_number'] = None
86
+
87
+ # set to None if page (nullable) is None
88
+ # and model_fields_set contains the field
89
+ if self.page is None and "page" in self.model_fields_set:
90
+ _dict['page'] = None
91
+
92
+ # set to None if page_limit (nullable) is None
93
+ # and model_fields_set contains the field
94
+ if self.page_limit is None and "page_limit" in self.model_fields_set:
95
+ _dict['page_limit'] = None
96
+
97
+ return _dict
98
+
99
+ @classmethod
100
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
101
+ """Create an instance of PageBrokerEvent from a dict"""
102
+ if obj is None:
103
+ return None
104
+
105
+ if not isinstance(obj, dict):
106
+ return cls.model_validate(obj)
107
+
108
+ _obj = cls.model_validate({
109
+ "total_number": obj.get("total_number"),
110
+ "page": obj.get("page"),
111
+ "page_limit": obj.get("page_limit"),
112
+ "items": [BrokerEvent.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None
113
+ })
114
+ return _obj
115
+
116
+
@@ -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.4.0
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.4.0
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.4.0
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.4.0
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.4.0
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.4.0
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.user import User
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[User]
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": [User.from_dict(_item) for _item in obj["users"]] if obj.get("users") is not None else None
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: 1.4.0
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.4.0
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.4.0
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.4.0
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.4.0
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.4.0
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.4.0
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.4.0
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.4.0
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.4.0
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.4.0
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.4.0
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.4.0
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.4.0
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.4.0
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.4.0
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.4.0
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.4.0
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.4.0
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.4.0
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,10 @@ 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_user_schemas_group_invite import AcrossServerRoutesV1UserSchemasGroupInvite
23
+ from across.sdk.v1.models.across_server_routes_v1_user_schemas_group_role import AcrossServerRoutesV1UserSchemasGroupRole
24
+ from across.sdk.v1.models.group import Group
25
+ from across.sdk.v1.models.role_base import RoleBase
22
26
  from typing import Optional, Set
23
27
  from typing_extensions import Self
24
28
 
@@ -26,12 +30,16 @@ class User(BaseModel):
26
30
  """
27
31
  User
28
32
  """ # noqa: E501
29
- id: StrictStr
33
+ username: StrictStr
30
34
  first_name: StrictStr
31
35
  last_name: StrictStr
32
- username: StrictStr
33
36
  email: StrictStr
34
- __properties: ClassVar[List[str]] = ["id", "first_name", "last_name", "username", "email"]
37
+ id: StrictStr
38
+ groups: List[Group]
39
+ roles: List[RoleBase]
40
+ group_roles: List[AcrossServerRoutesV1UserSchemasGroupRole]
41
+ received_invites: List[AcrossServerRoutesV1UserSchemasGroupInvite]
42
+ __properties: ClassVar[List[str]] = ["username", "first_name", "last_name", "email", "id", "groups", "roles", "group_roles", "received_invites"]
35
43
 
36
44
  model_config = ConfigDict(
37
45
  populate_by_name=True,
@@ -72,6 +80,34 @@ class User(BaseModel):
72
80
  exclude=excluded_fields,
73
81
  exclude_none=True,
74
82
  )
83
+ # override the default output from pydantic by calling `to_dict()` of each item in groups (list)
84
+ _items = []
85
+ if self.groups:
86
+ for _item_groups in self.groups:
87
+ if _item_groups:
88
+ _items.append(_item_groups.to_dict())
89
+ _dict['groups'] = _items
90
+ # override the default output from pydantic by calling `to_dict()` of each item in roles (list)
91
+ _items = []
92
+ if self.roles:
93
+ for _item_roles in self.roles:
94
+ if _item_roles:
95
+ _items.append(_item_roles.to_dict())
96
+ _dict['roles'] = _items
97
+ # override the default output from pydantic by calling `to_dict()` of each item in group_roles (list)
98
+ _items = []
99
+ if self.group_roles:
100
+ for _item_group_roles in self.group_roles:
101
+ if _item_group_roles:
102
+ _items.append(_item_group_roles.to_dict())
103
+ _dict['group_roles'] = _items
104
+ # override the default output from pydantic by calling `to_dict()` of each item in received_invites (list)
105
+ _items = []
106
+ if self.received_invites:
107
+ for _item_received_invites in self.received_invites:
108
+ if _item_received_invites:
109
+ _items.append(_item_received_invites.to_dict())
110
+ _dict['received_invites'] = _items
75
111
  return _dict
76
112
 
77
113
  @classmethod
@@ -84,11 +120,15 @@ class User(BaseModel):
84
120
  return cls.model_validate(obj)
85
121
 
86
122
  _obj = cls.model_validate({
87
- "id": obj.get("id"),
123
+ "username": obj.get("username"),
88
124
  "first_name": obj.get("first_name"),
89
125
  "last_name": obj.get("last_name"),
90
- "username": obj.get("username"),
91
- "email": obj.get("email")
126
+ "email": obj.get("email"),
127
+ "id": obj.get("id"),
128
+ "groups": [Group.from_dict(_item) for _item in obj["groups"]] if obj.get("groups") is not None else None,
129
+ "roles": [RoleBase.from_dict(_item) for _item in obj["roles"]] if obj.get("roles") is not None else None,
130
+ "group_roles": [AcrossServerRoutesV1UserSchemasGroupRole.from_dict(_item) for _item in obj["group_roles"]] if obj.get("group_roles") is not None else None,
131
+ "received_invites": [AcrossServerRoutesV1UserSchemasGroupInvite.from_dict(_item) for _item in obj["received_invites"]] if obj.get("received_invites") is not None else None
92
132
  })
93
133
  return _obj
94
134
 
@@ -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.4.0
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.4.0
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.4.0
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.4.0
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.4.0
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.4.0
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.4.0
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.4.0
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.4.0
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.4.0
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.4.0
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/rest.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.4.0
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.