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.
@@ -17,7 +17,7 @@ from typing import Any, Dict, List, Optional, Tuple, Union
17
17
  from typing_extensions import Annotated
18
18
 
19
19
  from datetime import datetime
20
- from pydantic import Field, StrictFloat, StrictInt, StrictStr
20
+ from pydantic import Field, StrictBool, StrictFloat, StrictInt, StrictStr
21
21
  from typing import Any, List, Optional, Union
22
22
  from typing_extensions import Annotated
23
23
  from across.sdk.v1.models.depth_unit import DepthUnit
@@ -48,6 +48,7 @@ class ObservationApi:
48
48
  def get_observation(
49
49
  self,
50
50
  observation_id: StrictStr,
51
+ include_footprints: Optional[StrictBool] = None,
51
52
  _request_timeout: Union[
52
53
  None,
53
54
  Annotated[StrictFloat, Field(gt=0)],
@@ -67,6 +68,8 @@ class ObservationApi:
67
68
 
68
69
  :param observation_id: (required)
69
70
  :type observation_id: str
71
+ :param include_footprints:
72
+ :type include_footprints: bool
70
73
  :param _request_timeout: timeout setting for this request. If one
71
74
  number provided, it will be total request
72
75
  timeout. It can also be a pair (tuple) of
@@ -91,6 +94,7 @@ class ObservationApi:
91
94
 
92
95
  _param = self._get_observation_serialize(
93
96
  observation_id=observation_id,
97
+ include_footprints=include_footprints,
94
98
  _request_auth=_request_auth,
95
99
  _content_type=_content_type,
96
100
  _headers=_headers,
@@ -117,6 +121,7 @@ class ObservationApi:
117
121
  def get_observation_with_http_info(
118
122
  self,
119
123
  observation_id: StrictStr,
124
+ include_footprints: Optional[StrictBool] = None,
120
125
  _request_timeout: Union[
121
126
  None,
122
127
  Annotated[StrictFloat, Field(gt=0)],
@@ -136,6 +141,8 @@ class ObservationApi:
136
141
 
137
142
  :param observation_id: (required)
138
143
  :type observation_id: str
144
+ :param include_footprints:
145
+ :type include_footprints: bool
139
146
  :param _request_timeout: timeout setting for this request. If one
140
147
  number provided, it will be total request
141
148
  timeout. It can also be a pair (tuple) of
@@ -160,6 +167,7 @@ class ObservationApi:
160
167
 
161
168
  _param = self._get_observation_serialize(
162
169
  observation_id=observation_id,
170
+ include_footprints=include_footprints,
163
171
  _request_auth=_request_auth,
164
172
  _content_type=_content_type,
165
173
  _headers=_headers,
@@ -186,6 +194,7 @@ class ObservationApi:
186
194
  def get_observation_without_preload_content(
187
195
  self,
188
196
  observation_id: StrictStr,
197
+ include_footprints: Optional[StrictBool] = None,
189
198
  _request_timeout: Union[
190
199
  None,
191
200
  Annotated[StrictFloat, Field(gt=0)],
@@ -205,6 +214,8 @@ class ObservationApi:
205
214
 
206
215
  :param observation_id: (required)
207
216
  :type observation_id: str
217
+ :param include_footprints:
218
+ :type include_footprints: bool
208
219
  :param _request_timeout: timeout setting for this request. If one
209
220
  number provided, it will be total request
210
221
  timeout. It can also be a pair (tuple) of
@@ -229,6 +240,7 @@ class ObservationApi:
229
240
 
230
241
  _param = self._get_observation_serialize(
231
242
  observation_id=observation_id,
243
+ include_footprints=include_footprints,
232
244
  _request_auth=_request_auth,
233
245
  _content_type=_content_type,
234
246
  _headers=_headers,
@@ -250,6 +262,7 @@ class ObservationApi:
250
262
  def _get_observation_serialize(
251
263
  self,
252
264
  observation_id,
265
+ include_footprints,
253
266
  _request_auth,
254
267
  _content_type,
255
268
  _headers,
@@ -274,6 +287,10 @@ class ObservationApi:
274
287
  if observation_id is not None:
275
288
  _path_params['observation_id'] = observation_id
276
289
  # process the query parameters
290
+ if include_footprints is not None:
291
+
292
+ _query_params.append(('include_footprints', include_footprints))
293
+
277
294
  # process the header parameters
278
295
  # process the form parameters
279
296
  # process the body parameter
@@ -328,12 +345,13 @@ class ObservationApi:
328
345
  bandpass_min: Optional[Union[StrictFloat, StrictInt]] = None,
329
346
  bandpass_max: Optional[Union[StrictFloat, StrictInt]] = None,
330
347
  bandpass_type: Optional[Any] = None,
331
- cone_search_ra: Optional[Union[StrictFloat, StrictInt]] = None,
332
- cone_search_dec: Optional[Union[StrictFloat, StrictInt]] = None,
348
+ cone_search_ra: Optional[Union[Annotated[float, Field(strict=True, ge=0.0)], Annotated[int, Field(strict=True, ge=0)]]] = None,
349
+ cone_search_dec: Optional[Union[Annotated[float, Field(le=90.0, strict=True, ge=-90.0)], Annotated[int, Field(le=90, strict=True, ge=-90)]]] = None,
333
350
  cone_search_radius: Optional[Union[StrictFloat, StrictInt]] = None,
334
351
  type: Optional[ObservationType] = None,
335
352
  depth_value: Optional[Union[StrictFloat, StrictInt]] = None,
336
353
  depth_unit: Optional[DepthUnit] = None,
354
+ include_footprints: Optional[StrictBool] = None,
337
355
  _request_timeout: Union[
338
356
  None,
339
357
  Annotated[StrictFloat, Field(gt=0)],
@@ -393,6 +411,8 @@ class ObservationApi:
393
411
  :type depth_value: float
394
412
  :param depth_unit:
395
413
  :type depth_unit: DepthUnit
414
+ :param include_footprints:
415
+ :type include_footprints: bool
396
416
  :param _request_timeout: timeout setting for this request. If one
397
417
  number provided, it will be total request
398
418
  timeout. It can also be a pair (tuple) of
@@ -437,6 +457,7 @@ class ObservationApi:
437
457
  type=type,
438
458
  depth_value=depth_value,
439
459
  depth_unit=depth_unit,
460
+ include_footprints=include_footprints,
440
461
  _request_auth=_request_auth,
441
462
  _content_type=_content_type,
442
463
  _headers=_headers,
@@ -477,12 +498,13 @@ class ObservationApi:
477
498
  bandpass_min: Optional[Union[StrictFloat, StrictInt]] = None,
478
499
  bandpass_max: Optional[Union[StrictFloat, StrictInt]] = None,
479
500
  bandpass_type: Optional[Any] = None,
480
- cone_search_ra: Optional[Union[StrictFloat, StrictInt]] = None,
481
- cone_search_dec: Optional[Union[StrictFloat, StrictInt]] = None,
501
+ cone_search_ra: Optional[Union[Annotated[float, Field(strict=True, ge=0.0)], Annotated[int, Field(strict=True, ge=0)]]] = None,
502
+ cone_search_dec: Optional[Union[Annotated[float, Field(le=90.0, strict=True, ge=-90.0)], Annotated[int, Field(le=90, strict=True, ge=-90)]]] = None,
482
503
  cone_search_radius: Optional[Union[StrictFloat, StrictInt]] = None,
483
504
  type: Optional[ObservationType] = None,
484
505
  depth_value: Optional[Union[StrictFloat, StrictInt]] = None,
485
506
  depth_unit: Optional[DepthUnit] = None,
507
+ include_footprints: Optional[StrictBool] = None,
486
508
  _request_timeout: Union[
487
509
  None,
488
510
  Annotated[StrictFloat, Field(gt=0)],
@@ -542,6 +564,8 @@ class ObservationApi:
542
564
  :type depth_value: float
543
565
  :param depth_unit:
544
566
  :type depth_unit: DepthUnit
567
+ :param include_footprints:
568
+ :type include_footprints: bool
545
569
  :param _request_timeout: timeout setting for this request. If one
546
570
  number provided, it will be total request
547
571
  timeout. It can also be a pair (tuple) of
@@ -586,6 +610,7 @@ class ObservationApi:
586
610
  type=type,
587
611
  depth_value=depth_value,
588
612
  depth_unit=depth_unit,
613
+ include_footprints=include_footprints,
589
614
  _request_auth=_request_auth,
590
615
  _content_type=_content_type,
591
616
  _headers=_headers,
@@ -626,12 +651,13 @@ class ObservationApi:
626
651
  bandpass_min: Optional[Union[StrictFloat, StrictInt]] = None,
627
652
  bandpass_max: Optional[Union[StrictFloat, StrictInt]] = None,
628
653
  bandpass_type: Optional[Any] = None,
629
- cone_search_ra: Optional[Union[StrictFloat, StrictInt]] = None,
630
- cone_search_dec: Optional[Union[StrictFloat, StrictInt]] = None,
654
+ cone_search_ra: Optional[Union[Annotated[float, Field(strict=True, ge=0.0)], Annotated[int, Field(strict=True, ge=0)]]] = None,
655
+ cone_search_dec: Optional[Union[Annotated[float, Field(le=90.0, strict=True, ge=-90.0)], Annotated[int, Field(le=90, strict=True, ge=-90)]]] = None,
631
656
  cone_search_radius: Optional[Union[StrictFloat, StrictInt]] = None,
632
657
  type: Optional[ObservationType] = None,
633
658
  depth_value: Optional[Union[StrictFloat, StrictInt]] = None,
634
659
  depth_unit: Optional[DepthUnit] = None,
660
+ include_footprints: Optional[StrictBool] = None,
635
661
  _request_timeout: Union[
636
662
  None,
637
663
  Annotated[StrictFloat, Field(gt=0)],
@@ -691,6 +717,8 @@ class ObservationApi:
691
717
  :type depth_value: float
692
718
  :param depth_unit:
693
719
  :type depth_unit: DepthUnit
720
+ :param include_footprints:
721
+ :type include_footprints: bool
694
722
  :param _request_timeout: timeout setting for this request. If one
695
723
  number provided, it will be total request
696
724
  timeout. It can also be a pair (tuple) of
@@ -735,6 +763,7 @@ class ObservationApi:
735
763
  type=type,
736
764
  depth_value=depth_value,
737
765
  depth_unit=depth_unit,
766
+ include_footprints=include_footprints,
738
767
  _request_auth=_request_auth,
739
768
  _content_type=_content_type,
740
769
  _headers=_headers,
@@ -776,6 +805,7 @@ class ObservationApi:
776
805
  type,
777
806
  depth_value,
778
807
  depth_unit,
808
+ include_footprints,
779
809
  _request_auth,
780
810
  _content_type,
781
811
  _headers,
@@ -904,6 +934,10 @@ class ObservationApi:
904
934
 
905
935
  _query_params.append(('depth_unit', depth_unit.value))
906
936
 
937
+ if include_footprints is not None:
938
+
939
+ _query_params.append(('include_footprints', include_footprints))
940
+
907
941
  # process the header parameters
908
942
  # process the form parameters
909
943
  # process the body parameter
@@ -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.
@@ -16,8 +16,8 @@ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
16
16
  from typing import Any, Dict, List, Optional, Tuple, Union
17
17
  from typing_extensions import Annotated
18
18
 
19
+ from pydantic import StrictStr
19
20
  from typing import List
20
- from uuid import UUID
21
21
  from across.sdk.v1.models.role import Role
22
22
 
23
23
  from across.sdk.v1.api_client import ApiClient, RequestSerialized
@@ -39,9 +39,8 @@ class RoleApi:
39
39
 
40
40
 
41
41
  @validate_call
42
- def get_role(
42
+ def get_many_role_get(
43
43
  self,
44
- role_id: UUID,
45
44
  _request_timeout: Union[
46
45
  None,
47
46
  Annotated[StrictFloat, Field(gt=0)],
@@ -54,13 +53,11 @@ class RoleApi:
54
53
  _content_type: Optional[StrictStr] = None,
55
54
  _headers: Optional[Dict[StrictStr, Any]] = None,
56
55
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
57
- ) -> Role:
58
- """Read a role
56
+ ) -> List[Role]:
57
+ """Read roles
59
58
 
60
- Read a role by role ID.
59
+ Read many roles
61
60
 
62
- :param role_id: (required)
63
- :type role_id: str
64
61
  :param _request_timeout: timeout setting for this request. If one
65
62
  number provided, it will be total request
66
63
  timeout. It can also be a pair (tuple) of
@@ -83,8 +80,7 @@ class RoleApi:
83
80
  :return: Returns the result object.
84
81
  """ # noqa: E501
85
82
 
86
- _param = self._get_role_serialize(
87
- role_id=role_id,
83
+ _param = self._get_many_role_get_serialize(
88
84
  _request_auth=_request_auth,
89
85
  _content_type=_content_type,
90
86
  _headers=_headers,
@@ -92,9 +88,8 @@ class RoleApi:
92
88
  )
93
89
 
94
90
  _response_types_map: Dict[str, Optional[str]] = {
95
- '200': "Role",
91
+ '200': "List[Role]",
96
92
  '404': None,
97
- '422': "HTTPValidationError",
98
93
  }
99
94
  response_data = self.api_client.call_api(
100
95
  *_param,
@@ -108,9 +103,8 @@ class RoleApi:
108
103
 
109
104
 
110
105
  @validate_call
111
- def get_role_with_http_info(
106
+ def get_many_role_get_with_http_info(
112
107
  self,
113
- role_id: UUID,
114
108
  _request_timeout: Union[
115
109
  None,
116
110
  Annotated[StrictFloat, Field(gt=0)],
@@ -123,13 +117,11 @@ class RoleApi:
123
117
  _content_type: Optional[StrictStr] = None,
124
118
  _headers: Optional[Dict[StrictStr, Any]] = None,
125
119
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
126
- ) -> ApiResponse[Role]:
127
- """Read a role
120
+ ) -> ApiResponse[List[Role]]:
121
+ """Read roles
128
122
 
129
- Read a role by role ID.
123
+ Read many roles
130
124
 
131
- :param role_id: (required)
132
- :type role_id: str
133
125
  :param _request_timeout: timeout setting for this request. If one
134
126
  number provided, it will be total request
135
127
  timeout. It can also be a pair (tuple) of
@@ -152,8 +144,7 @@ class RoleApi:
152
144
  :return: Returns the result object.
153
145
  """ # noqa: E501
154
146
 
155
- _param = self._get_role_serialize(
156
- role_id=role_id,
147
+ _param = self._get_many_role_get_serialize(
157
148
  _request_auth=_request_auth,
158
149
  _content_type=_content_type,
159
150
  _headers=_headers,
@@ -161,9 +152,8 @@ class RoleApi:
161
152
  )
162
153
 
163
154
  _response_types_map: Dict[str, Optional[str]] = {
164
- '200': "Role",
155
+ '200': "List[Role]",
165
156
  '404': None,
166
- '422': "HTTPValidationError",
167
157
  }
168
158
  response_data = self.api_client.call_api(
169
159
  *_param,
@@ -177,9 +167,8 @@ class RoleApi:
177
167
 
178
168
 
179
169
  @validate_call
180
- def get_role_without_preload_content(
170
+ def get_many_role_get_without_preload_content(
181
171
  self,
182
- role_id: UUID,
183
172
  _request_timeout: Union[
184
173
  None,
185
174
  Annotated[StrictFloat, Field(gt=0)],
@@ -193,12 +182,10 @@ class RoleApi:
193
182
  _headers: Optional[Dict[StrictStr, Any]] = None,
194
183
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
195
184
  ) -> RESTResponseType:
196
- """Read a role
185
+ """Read roles
197
186
 
198
- Read a role by role ID.
187
+ Read many roles
199
188
 
200
- :param role_id: (required)
201
- :type role_id: str
202
189
  :param _request_timeout: timeout setting for this request. If one
203
190
  number provided, it will be total request
204
191
  timeout. It can also be a pair (tuple) of
@@ -221,8 +208,7 @@ class RoleApi:
221
208
  :return: Returns the result object.
222
209
  """ # noqa: E501
223
210
 
224
- _param = self._get_role_serialize(
225
- role_id=role_id,
211
+ _param = self._get_many_role_get_serialize(
226
212
  _request_auth=_request_auth,
227
213
  _content_type=_content_type,
228
214
  _headers=_headers,
@@ -230,9 +216,8 @@ class RoleApi:
230
216
  )
231
217
 
232
218
  _response_types_map: Dict[str, Optional[str]] = {
233
- '200': "Role",
219
+ '200': "List[Role]",
234
220
  '404': None,
235
- '422': "HTTPValidationError",
236
221
  }
237
222
  response_data = self.api_client.call_api(
238
223
  *_param,
@@ -241,9 +226,8 @@ class RoleApi:
241
226
  return response_data.response
242
227
 
243
228
 
244
- def _get_role_serialize(
229
+ def _get_many_role_get_serialize(
245
230
  self,
246
- role_id,
247
231
  _request_auth,
248
232
  _content_type,
249
233
  _headers,
@@ -265,8 +249,6 @@ class RoleApi:
265
249
  _body_params: Optional[bytes] = None
266
250
 
267
251
  # process the path parameters
268
- if role_id is not None:
269
- _path_params['role_id'] = role_id
270
252
  # process the query parameters
271
253
  # process the header parameters
272
254
  # process the form parameters
@@ -288,7 +270,7 @@ class RoleApi:
288
270
 
289
271
  return self.api_client.param_serialize(
290
272
  method='GET',
291
- resource_path='/role/{role_id}',
273
+ resource_path='/role/',
292
274
  path_params=_path_params,
293
275
  query_params=_query_params,
294
276
  header_params=_header_params,
@@ -305,8 +287,9 @@ class RoleApi:
305
287
 
306
288
 
307
289
  @validate_call
308
- def get_roles(
290
+ def get_role_role_id_get(
309
291
  self,
292
+ role_id: StrictStr,
310
293
  _request_timeout: Union[
311
294
  None,
312
295
  Annotated[StrictFloat, Field(gt=0)],
@@ -319,11 +302,13 @@ class RoleApi:
319
302
  _content_type: Optional[StrictStr] = None,
320
303
  _headers: Optional[Dict[StrictStr, Any]] = None,
321
304
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
322
- ) -> List[Role]:
323
- """Read roles
305
+ ) -> Role:
306
+ """Read a role
324
307
 
325
- Read many roles.
308
+ Read a role by role ID.
326
309
 
310
+ :param role_id: (required)
311
+ :type role_id: str
327
312
  :param _request_timeout: timeout setting for this request. If one
328
313
  number provided, it will be total request
329
314
  timeout. It can also be a pair (tuple) of
@@ -346,7 +331,8 @@ class RoleApi:
346
331
  :return: Returns the result object.
347
332
  """ # noqa: E501
348
333
 
349
- _param = self._get_roles_serialize(
334
+ _param = self._get_role_role_id_get_serialize(
335
+ role_id=role_id,
350
336
  _request_auth=_request_auth,
351
337
  _content_type=_content_type,
352
338
  _headers=_headers,
@@ -354,8 +340,9 @@ class RoleApi:
354
340
  )
355
341
 
356
342
  _response_types_map: Dict[str, Optional[str]] = {
357
- '200': "List[Role]",
343
+ '200': "Role",
358
344
  '404': None,
345
+ '422': "HTTPValidationError",
359
346
  }
360
347
  response_data = self.api_client.call_api(
361
348
  *_param,
@@ -369,8 +356,9 @@ class RoleApi:
369
356
 
370
357
 
371
358
  @validate_call
372
- def get_roles_with_http_info(
359
+ def get_role_role_id_get_with_http_info(
373
360
  self,
361
+ role_id: StrictStr,
374
362
  _request_timeout: Union[
375
363
  None,
376
364
  Annotated[StrictFloat, Field(gt=0)],
@@ -383,11 +371,13 @@ class RoleApi:
383
371
  _content_type: Optional[StrictStr] = None,
384
372
  _headers: Optional[Dict[StrictStr, Any]] = None,
385
373
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
386
- ) -> ApiResponse[List[Role]]:
387
- """Read roles
374
+ ) -> ApiResponse[Role]:
375
+ """Read a role
388
376
 
389
- Read many roles.
377
+ Read a role by role ID.
390
378
 
379
+ :param role_id: (required)
380
+ :type role_id: str
391
381
  :param _request_timeout: timeout setting for this request. If one
392
382
  number provided, it will be total request
393
383
  timeout. It can also be a pair (tuple) of
@@ -410,7 +400,8 @@ class RoleApi:
410
400
  :return: Returns the result object.
411
401
  """ # noqa: E501
412
402
 
413
- _param = self._get_roles_serialize(
403
+ _param = self._get_role_role_id_get_serialize(
404
+ role_id=role_id,
414
405
  _request_auth=_request_auth,
415
406
  _content_type=_content_type,
416
407
  _headers=_headers,
@@ -418,8 +409,9 @@ class RoleApi:
418
409
  )
419
410
 
420
411
  _response_types_map: Dict[str, Optional[str]] = {
421
- '200': "List[Role]",
412
+ '200': "Role",
422
413
  '404': None,
414
+ '422': "HTTPValidationError",
423
415
  }
424
416
  response_data = self.api_client.call_api(
425
417
  *_param,
@@ -433,8 +425,9 @@ class RoleApi:
433
425
 
434
426
 
435
427
  @validate_call
436
- def get_roles_without_preload_content(
428
+ def get_role_role_id_get_without_preload_content(
437
429
  self,
430
+ role_id: StrictStr,
438
431
  _request_timeout: Union[
439
432
  None,
440
433
  Annotated[StrictFloat, Field(gt=0)],
@@ -448,10 +441,12 @@ class RoleApi:
448
441
  _headers: Optional[Dict[StrictStr, Any]] = None,
449
442
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
450
443
  ) -> RESTResponseType:
451
- """Read roles
444
+ """Read a role
452
445
 
453
- Read many roles.
446
+ Read a role by role ID.
454
447
 
448
+ :param role_id: (required)
449
+ :type role_id: str
455
450
  :param _request_timeout: timeout setting for this request. If one
456
451
  number provided, it will be total request
457
452
  timeout. It can also be a pair (tuple) of
@@ -474,7 +469,8 @@ class RoleApi:
474
469
  :return: Returns the result object.
475
470
  """ # noqa: E501
476
471
 
477
- _param = self._get_roles_serialize(
472
+ _param = self._get_role_role_id_get_serialize(
473
+ role_id=role_id,
478
474
  _request_auth=_request_auth,
479
475
  _content_type=_content_type,
480
476
  _headers=_headers,
@@ -482,8 +478,9 @@ class RoleApi:
482
478
  )
483
479
 
484
480
  _response_types_map: Dict[str, Optional[str]] = {
485
- '200': "List[Role]",
481
+ '200': "Role",
486
482
  '404': None,
483
+ '422': "HTTPValidationError",
487
484
  }
488
485
  response_data = self.api_client.call_api(
489
486
  *_param,
@@ -492,8 +489,9 @@ class RoleApi:
492
489
  return response_data.response
493
490
 
494
491
 
495
- def _get_roles_serialize(
492
+ def _get_role_role_id_get_serialize(
496
493
  self,
494
+ role_id,
497
495
  _request_auth,
498
496
  _content_type,
499
497
  _headers,
@@ -515,6 +513,8 @@ class RoleApi:
515
513
  _body_params: Optional[bytes] = None
516
514
 
517
515
  # process the path parameters
516
+ if role_id is not None:
517
+ _path_params['role_id'] = role_id
518
518
  # process the query parameters
519
519
  # process the header parameters
520
520
  # process the form parameters
@@ -536,7 +536,7 @@ class RoleApi:
536
536
 
537
537
  return self.api_client.param_serialize(
538
538
  method='GET',
539
- resource_path='/role/',
539
+ resource_path='/role/{role_id}',
540
540
  path_params=_path_params,
541
541
  query_params=_query_params,
542
542
  header_params=_header_params,