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.
Files changed (128) hide show
  1. across/sdk/v1/__init__.py +23 -21
  2. across/sdk/v1/api/__init__.py +1 -0
  3. across/sdk/v1/api/auth_api.py +269 -1
  4. across/sdk/v1/api/filter_api.py +1 -1
  5. across/sdk/v1/api/group_api.py +256 -7
  6. across/sdk/v1/api/group_invite_api.py +17 -17
  7. across/sdk/v1/api/group_role_api.py +1 -1
  8. across/sdk/v1/api/instrument_api.py +1 -1
  9. across/sdk/v1/api/internal_api.py +1 -1
  10. across/sdk/v1/api/observation_api.py +42 -8
  11. across/sdk/v1/api/observatory_api.py +1 -1
  12. across/sdk/v1/api/permission_api.py +1 -1
  13. across/sdk/v1/api/role_api.py +60 -60
  14. across/sdk/v1/api/schedule_api.py +52 -1
  15. across/sdk/v1/api/service_account_api.py +1 -1
  16. across/sdk/v1/api/telescope_api.py +35 -1
  17. across/sdk/v1/api/tle_api.py +1 -1
  18. across/sdk/v1/api/tools_api.py +538 -1
  19. across/sdk/v1/api/user_api.py +261 -13
  20. across/sdk/v1/api_client.py +1 -1
  21. across/sdk/v1/configuration.py +2 -2
  22. across/sdk/v1/exceptions.py +1 -1
  23. across/sdk/v1/models/__init__.py +11 -11
  24. across/sdk/v1/models/access_token_response.py +1 -1
  25. across/sdk/v1/models/across_server_routes_v1_group_role_schemas_group_role.py +4 -4
  26. across/sdk/v1/models/across_server_routes_v1_group_role_schemas_user.py +1 -1
  27. across/sdk/v1/models/across_server_routes_v1_group_schemas_group.py +4 -4
  28. across/sdk/v1/models/across_server_routes_v1_group_schemas_user.py +1 -1
  29. across/sdk/v1/models/across_server_routes_v1_user_schemas_group.py +4 -4
  30. across/sdk/v1/models/across_server_routes_v1_user_schemas_group_invite.py +1 -1
  31. across/sdk/v1/models/across_server_routes_v1_user_schemas_user.py +4 -4
  32. across/sdk/v1/models/across_server_routes_v1_user_service_account_schemas_service_account.py +1 -1
  33. across/sdk/v1/models/bandpass.py +1 -1
  34. across/sdk/v1/models/bandpass_type.py +1 -1
  35. across/sdk/v1/models/constrained_date.py +1 -1
  36. across/sdk/v1/models/constraint_reason.py +1 -1
  37. across/sdk/v1/models/constraint_type.py +13 -1
  38. across/sdk/v1/models/coordinate.py +1 -1
  39. across/sdk/v1/models/date_range.py +1 -1
  40. across/sdk/v1/models/datetime.py +138 -0
  41. across/sdk/v1/models/depth_unit.py +1 -1
  42. across/sdk/v1/models/energy_bandpass.py +2 -2
  43. across/sdk/v1/models/energy_unit.py +1 -1
  44. across/sdk/v1/models/ephemeris_type.py +1 -1
  45. across/sdk/v1/models/filter.py +1 -1
  46. across/sdk/v1/models/frequency_bandpass.py +2 -2
  47. across/sdk/v1/models/frequency_unit.py +1 -1
  48. across/sdk/v1/models/grant_type.py +1 -1
  49. across/sdk/v1/models/ground_parameters.py +1 -1
  50. across/sdk/v1/models/{system_service_account_secret.py → group.py} +25 -37
  51. across/sdk/v1/models/{across_server_routes_v1_group_invite_schemas_group_invite.py → group_invite.py} +5 -5
  52. across/sdk/v1/models/group_invite_create.py +1 -1
  53. across/sdk/v1/models/group_invite_group_details.py +1 -1
  54. across/sdk/v1/models/group_read.py +1 -1
  55. across/sdk/v1/models/{across_server_routes_v1_user_schemas_group_role.py → group_role.py} +5 -5
  56. across/sdk/v1/models/group_role_create.py +1 -1
  57. across/sdk/v1/models/group_role_read.py +1 -1
  58. across/sdk/v1/models/http_validation_error.py +1 -1
  59. across/sdk/v1/models/id_name_schema.py +1 -1
  60. across/sdk/v1/models/instrument.py +13 -13
  61. across/sdk/v1/models/ivoa_obs_category.py +1 -1
  62. across/sdk/v1/models/ivoa_obs_tracking_type.py +1 -1
  63. across/sdk/v1/models/joint_visibility_result.py +1 -1
  64. across/sdk/v1/models/jpl_parameters.py +1 -1
  65. across/sdk/v1/models/location_inner.py +138 -0
  66. across/sdk/v1/models/{across_server_routes_v1_system_service_account_schemas_service_account_secret.py → name_resolver.py} +16 -17
  67. across/sdk/v1/models/nullable_date_range.py +1 -1
  68. across/sdk/v1/models/observation.py +13 -3
  69. across/sdk/v1/models/observation_create.py +13 -3
  70. across/sdk/v1/models/observation_footprint.py +99 -0
  71. across/sdk/v1/models/{across_server_routes_v1_system_service_account_schemas_service_account.py → observation_footprint_create.py} +19 -14
  72. across/sdk/v1/models/observation_status.py +1 -1
  73. across/sdk/v1/models/observation_strategy.py +37 -0
  74. across/sdk/v1/models/observation_type.py +1 -1
  75. across/sdk/v1/models/observatory.py +1 -1
  76. across/sdk/v1/models/observatory_ephemeris_type.py +1 -1
  77. across/sdk/v1/models/observatory_type.py +1 -1
  78. across/sdk/v1/models/page_observation.py +1 -1
  79. across/sdk/v1/models/page_schedule.py +1 -1
  80. across/sdk/v1/models/parameters.py +1 -1
  81. across/sdk/v1/models/permission.py +1 -1
  82. across/sdk/v1/models/point.py +1 -1
  83. across/sdk/v1/models/role.py +7 -8
  84. across/sdk/v1/models/role_base.py +1 -1
  85. across/sdk/v1/models/schedule.py +1 -1
  86. across/sdk/v1/models/schedule_cadence.py +1 -1
  87. across/sdk/v1/models/schedule_create.py +1 -1
  88. across/sdk/v1/models/schedule_create_many.py +1 -1
  89. across/sdk/v1/models/schedule_fidelity.py +1 -1
  90. across/sdk/v1/models/schedule_status.py +1 -1
  91. across/sdk/v1/models/{across_server_routes_v1_group_role_schemas_service_account.py → service_account.py} +5 -5
  92. across/sdk/v1/models/service_account_create.py +1 -1
  93. across/sdk/v1/models/service_account_secret.py +1 -1
  94. across/sdk/v1/models/service_account_update.py +1 -1
  95. across/sdk/v1/models/spice_parameters.py +1 -1
  96. across/sdk/v1/models/system_service_account.py +1 -1
  97. across/sdk/v1/models/telescope.py +1 -1
  98. across/sdk/v1/models/telescope_instrument.py +13 -13
  99. across/sdk/v1/models/tle.py +1 -1
  100. across/sdk/v1/models/tle_create.py +1 -1
  101. across/sdk/v1/models/tle_parameters.py +1 -1
  102. across/sdk/v1/models/unit_value.py +1 -1
  103. across/sdk/v1/models/{across_server_routes_v1_role_schemas_user.py → user.py} +8 -9
  104. across/sdk/v1/models/user_create.py +1 -1
  105. across/sdk/v1/models/user_info.py +1 -1
  106. across/sdk/v1/models/user_update.py +1 -1
  107. across/sdk/v1/models/validation_error.py +1 -1
  108. across/sdk/v1/models/validation_error_loc_inner.py +1 -1
  109. across/sdk/v1/models/visibility_result.py +1 -1
  110. across/sdk/v1/models/visibility_type.py +1 -1
  111. across/sdk/v1/models/visibility_window.py +1 -1
  112. across/sdk/v1/models/wavelength_bandpass.py +2 -2
  113. across/sdk/v1/models/wavelength_unit.py +1 -1
  114. across/sdk/v1/models/window.py +1 -1
  115. across/sdk/v1/rest.py +1 -1
  116. {across_server_openapi_python-1.1.1.dist-info → across_server_openapi_python-1.3.0.dist-info}/METADATA +25 -27
  117. across_server_openapi_python-1.3.0.dist-info/RECORD +126 -0
  118. {across_server_openapi_python-1.1.1.dist-info → across_server_openapi_python-1.3.0.dist-info}/WHEEL +1 -1
  119. across/sdk/v1/models/across_server_routes_v1_user_service_account_schemas_service_account_secret.py +0 -118
  120. across/sdk/v1/models/alt_az_constraint.py +0 -135
  121. across/sdk/v1/models/earth_limb_constraint.py +0 -124
  122. across/sdk/v1/models/instrument_constraints_inner.py +0 -237
  123. across/sdk/v1/models/moon_angle_constraint.py +0 -124
  124. across/sdk/v1/models/saa_polygon_constraint.py +0 -106
  125. across/sdk/v1/models/sun_angle_constraint.py +0 -124
  126. across_server_openapi_python-1.1.1.dist-info/RECORD +0 -129
  127. {across_server_openapi_python-1.1.1.dist-info → across_server_openapi_python-1.3.0.dist-info}/licenses/LICENSE +0 -0
  128. {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.1.0
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.1.0
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.1.0
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.1.0
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.1.0
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.1.0
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.1.0
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.1.0
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.1.0
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
- FastAPI
4
+ ACROSS Server
5
5
 
6
- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
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: 0.3.2
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.
@@ -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 uuid import UUID
23
- from across.sdk.v1.models.across_server_routes_v1_role_schemas_user import AcrossServerRoutesV1RoleSchemasUser
22
+ from across.sdk.v1.models.user import User
24
23
  from typing import Optional, Set
25
24
  from typing_extensions import Self
26
25
 
@@ -28,9 +27,9 @@ class Role(BaseModel):
28
27
  """
29
28
  Role
30
29
  """ # noqa: E501
31
- id: UUID
30
+ id: StrictStr
32
31
  name: StrictStr
33
- users: List[AcrossServerRoutesV1RoleSchemasUser]
32
+ users: List[User]
34
33
  __properties: ClassVar[List[str]] = ["id", "name", "users"]
35
34
 
36
35
  model_config = ConfigDict(
@@ -93,7 +92,7 @@ class Role(BaseModel):
93
92
  _obj = cls.model_validate({
94
93
  "id": obj.get("id"),
95
94
  "name": obj.get("name"),
96
- "users": [AcrossServerRoutesV1RoleSchemasUser.from_dict(_item) for _item in obj["users"]] if obj.get("users") is not None else None
95
+ "users": [User.from_dict(_item) for _item in obj["users"]] if obj.get("users") is not None else None
97
96
  })
98
97
  return _obj
99
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.1.0
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.1.0
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.1.0
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.1.0
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.1.0
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.1.0
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.1.0
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.1.0
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.across_server_routes_v1_group_role_schemas_user import
23
23
  from typing import Optional, Set
24
24
  from typing_extensions import Self
25
25
 
26
- class AcrossServerRoutesV1GroupRoleSchemasServiceAccount(BaseModel):
26
+ class ServiceAccount(BaseModel):
27
27
  """
28
- AcrossServerRoutesV1GroupRoleSchemasServiceAccount
28
+ ServiceAccount
29
29
  """ # noqa: E501
30
30
  id: StrictStr
31
31
  name: StrictStr
@@ -51,7 +51,7 @@ class AcrossServerRoutesV1GroupRoleSchemasServiceAccount(BaseModel):
51
51
 
52
52
  @classmethod
53
53
  def from_json(cls, json_str: str) -> Optional[Self]:
54
- """Create an instance of AcrossServerRoutesV1GroupRoleSchemasServiceAccount from a JSON string"""
54
+ """Create an instance of ServiceAccount from a JSON string"""
55
55
  return cls.from_dict(json.loads(json_str))
56
56
 
57
57
  def to_dict(self) -> Dict[str, Any]:
@@ -88,7 +88,7 @@ class AcrossServerRoutesV1GroupRoleSchemasServiceAccount(BaseModel):
88
88
 
89
89
  @classmethod
90
90
  def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
91
- """Create an instance of AcrossServerRoutesV1GroupRoleSchemasServiceAccount from a dict"""
91
+ """Create an instance of ServiceAccount from a dict"""
92
92
  if obj is None:
93
93
  return None
94
94
 
@@ -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.1.0
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.1.0
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.1.0
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.1.0
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.1.0
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.1.0
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.1.0
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.
@@ -22,7 +22,7 @@ from pydantic import BaseModel, ConfigDict, StrictStr
22
22
  from typing import Any, ClassVar, Dict, List, Optional
23
23
  from across.sdk.v1.models.filter import Filter
24
24
  from across.sdk.v1.models.id_name_schema import IDNameSchema
25
- from across.sdk.v1.models.instrument_constraints_inner import InstrumentConstraintsInner
25
+ from across.sdk.v1.models.observation_strategy import ObservationStrategy
26
26
  from across.sdk.v1.models.point import Point
27
27
  from across.sdk.v1.models.visibility_type import VisibilityType
28
28
  from typing import Optional, Set
@@ -39,9 +39,10 @@ class TelescopeInstrument(BaseModel):
39
39
  telescope: Optional[IDNameSchema] = None
40
40
  footprints: Optional[List[List[Point]]] = None
41
41
  filters: Optional[List[Filter]] = None
42
- constraints: Optional[List[InstrumentConstraintsInner]] = None
42
+ constraints: Optional[List[Dict[str, Any]]] = None
43
43
  visibility_type: Optional[VisibilityType] = None
44
- __properties: ClassVar[List[str]] = ["id", "created_on", "name", "short_name", "telescope", "footprints", "filters", "constraints", "visibility_type"]
44
+ observation_strategy: Optional[ObservationStrategy] = None
45
+ __properties: ClassVar[List[str]] = ["id", "created_on", "name", "short_name", "telescope", "footprints", "filters", "constraints", "visibility_type", "observation_strategy"]
45
46
 
46
47
  model_config = ConfigDict(
47
48
  populate_by_name=True,
@@ -101,13 +102,6 @@ class TelescopeInstrument(BaseModel):
101
102
  if _item_filters:
102
103
  _items.append(_item_filters.to_dict())
103
104
  _dict['filters'] = _items
104
- # override the default output from pydantic by calling `to_dict()` of each item in constraints (list)
105
- _items = []
106
- if self.constraints:
107
- for _item_constraints in self.constraints:
108
- if _item_constraints:
109
- _items.append(_item_constraints.to_dict())
110
- _dict['constraints'] = _items
111
105
  # set to None if telescope (nullable) is None
112
106
  # and model_fields_set contains the field
113
107
  if self.telescope is None and "telescope" in self.model_fields_set:
@@ -133,6 +127,11 @@ class TelescopeInstrument(BaseModel):
133
127
  if self.visibility_type is None and "visibility_type" in self.model_fields_set:
134
128
  _dict['visibility_type'] = None
135
129
 
130
+ # set to None if observation_strategy (nullable) is None
131
+ # and model_fields_set contains the field
132
+ if self.observation_strategy is None and "observation_strategy" in self.model_fields_set:
133
+ _dict['observation_strategy'] = None
134
+
136
135
  return _dict
137
136
 
138
137
  @classmethod
@@ -155,8 +154,9 @@ class TelescopeInstrument(BaseModel):
155
154
  for _item in obj["footprints"]
156
155
  ] if obj.get("footprints") is not None else None,
157
156
  "filters": [Filter.from_dict(_item) for _item in obj["filters"]] if obj.get("filters") is not None else None,
158
- "constraints": [InstrumentConstraintsInner.from_dict(_item) for _item in obj["constraints"]] if obj.get("constraints") is not None else None,
159
- "visibility_type": obj.get("visibility_type")
157
+ "constraints": obj.get("constraints"),
158
+ "visibility_type": obj.get("visibility_type"),
159
+ "observation_strategy": obj.get("observation_strategy")
160
160
  })
161
161
  return _obj
162
162
 
@@ -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.1.0
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.1.0
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.1.0
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.1.0
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
- FastAPI
4
+ ACROSS Server
5
5
 
6
- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
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: 0.3.2
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.
@@ -19,15 +19,14 @@ import json
19
19
 
20
20
  from pydantic import BaseModel, ConfigDict, StrictStr
21
21
  from typing import Any, ClassVar, Dict, List
22
- from uuid import UUID
23
22
  from typing import Optional, Set
24
23
  from typing_extensions import Self
25
24
 
26
- class AcrossServerRoutesV1RoleSchemasUser(BaseModel):
25
+ class User(BaseModel):
27
26
  """
28
- AcrossServerRoutesV1RoleSchemasUser
27
+ User
29
28
  """ # noqa: E501
30
- id: UUID
29
+ id: StrictStr
31
30
  first_name: StrictStr
32
31
  last_name: StrictStr
33
32
  username: StrictStr
@@ -52,7 +51,7 @@ class AcrossServerRoutesV1RoleSchemasUser(BaseModel):
52
51
 
53
52
  @classmethod
54
53
  def from_json(cls, json_str: str) -> Optional[Self]:
55
- """Create an instance of AcrossServerRoutesV1RoleSchemasUser from a JSON string"""
54
+ """Create an instance of User from a JSON string"""
56
55
  return cls.from_dict(json.loads(json_str))
57
56
 
58
57
  def to_dict(self) -> Dict[str, Any]:
@@ -77,7 +76,7 @@ class AcrossServerRoutesV1RoleSchemasUser(BaseModel):
77
76
 
78
77
  @classmethod
79
78
  def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
80
- """Create an instance of AcrossServerRoutesV1RoleSchemasUser from a dict"""
79
+ """Create an instance of User from a dict"""
81
80
  if obj is None:
82
81
  return None
83
82
 
@@ -5,7 +5,7 @@
5
5
 
6
6
  Server providing tools and utilities for various NASA missions to aid in coordination of large observation efforts.
7
7
 
8
- The version of the OpenAPI document: 1.1.0
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.1.0
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.1.0
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.1.0
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.1.0
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.1.0
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.1.0
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.1.0
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.1.0
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 WavelengthBandpass(BaseModel):
27
27
  """
28
- A class representing a bandpass filter defined in terms of wavelength. Inherits from `BaseBandpass`, this class specializes the filter to operate in the wavelength domain and provides additional functionality for wavelength-based filters. Attributes: type (Literal['WAVELENGTH']): A constant string indicating the type of the bandpass filter. central_wavelength (float | None): The central wavelength of the filter. bandwidth (float | None): The bandwidth of the filter. unit (WavelengthUnit): The unit of measurement for the wavelength. Methods: model_post_init(__context: Any) -> None: Performs validation and calculation of central wavelength and bandwidth based on the min/max range
28
+ A class representing a bandpass filter defined in terms of wavelength. Inherits from `BaseBandpass`, this class specializes the filter to operate in the wavelength domain and provides additional functionality for wavelength-based filters. Attributes ---------- type : Literal['WAVELENGTH'] A constant string indicating the type of the bandpass filter. central_wavelength : float or None The central wavelength of the filter. It is defined as the midpoint between the min and max. bandwidth : float or None The bandwidth of the filter. It is defined as half the difference between the max and min. unit : WavelengthUnit The unit of measurement for the wavelength.
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.1.0
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.1.0
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/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.1.0
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.