across-server-openapi-python 1.2.0__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 (119) hide show
  1. across/sdk/v1/__init__.py +9 -5
  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 +1 -1
  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 +1 -1
  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 +552 -0
  14. across/sdk/v1/api/schedule_api.py +1 -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 +1 -1
  19. across/sdk/v1/api/user_api.py +249 -1
  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 +4 -3
  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 +1 -1
  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_user.py +105 -0
  28. across/sdk/v1/models/across_server_routes_v1_user_schemas_group.py +101 -0
  29. across/sdk/v1/models/across_server_routes_v1_user_schemas_group_invite.py +1 -1
  30. across/sdk/v1/models/across_server_routes_v1_user_schemas_user.py +4 -4
  31. across/sdk/v1/models/across_server_routes_v1_user_service_account_schemas_service_account.py +1 -1
  32. across/sdk/v1/models/bandpass.py +1 -1
  33. across/sdk/v1/models/bandpass_type.py +1 -1
  34. across/sdk/v1/models/constrained_date.py +4 -7
  35. across/sdk/v1/models/constraint_reason.py +1 -1
  36. across/sdk/v1/models/constraint_type.py +1 -1
  37. across/sdk/v1/models/coordinate.py +1 -1
  38. across/sdk/v1/models/date_range.py +1 -1
  39. across/sdk/v1/models/depth_unit.py +1 -1
  40. across/sdk/v1/models/energy_bandpass.py +1 -1
  41. across/sdk/v1/models/energy_unit.py +1 -1
  42. across/sdk/v1/models/ephemeris_type.py +1 -1
  43. across/sdk/v1/models/filter.py +1 -1
  44. across/sdk/v1/models/frequency_bandpass.py +1 -1
  45. across/sdk/v1/models/frequency_unit.py +1 -1
  46. across/sdk/v1/models/grant_type.py +1 -1
  47. across/sdk/v1/models/ground_parameters.py +1 -1
  48. across/sdk/v1/models/group.py +15 -5
  49. across/sdk/v1/models/group_invite.py +1 -1
  50. across/sdk/v1/models/group_invite_create.py +1 -1
  51. across/sdk/v1/models/group_invite_group_details.py +1 -1
  52. across/sdk/v1/models/group_read.py +1 -1
  53. across/sdk/v1/models/group_role.py +1 -1
  54. across/sdk/v1/models/group_role_create.py +1 -1
  55. across/sdk/v1/models/group_role_read.py +1 -1
  56. across/sdk/v1/models/http_validation_error.py +1 -1
  57. across/sdk/v1/models/id_name_schema.py +1 -1
  58. across/sdk/v1/models/instrument.py +1 -1
  59. across/sdk/v1/models/ivoa_obs_category.py +1 -1
  60. across/sdk/v1/models/ivoa_obs_tracking_type.py +1 -1
  61. across/sdk/v1/models/joint_visibility_result.py +1 -1
  62. across/sdk/v1/models/jpl_parameters.py +1 -1
  63. across/sdk/v1/models/location_inner.py +138 -0
  64. across/sdk/v1/models/name_resolver.py +1 -1
  65. across/sdk/v1/models/nullable_date_range.py +1 -1
  66. across/sdk/v1/models/observation.py +1 -1
  67. across/sdk/v1/models/observation_create.py +1 -1
  68. across/sdk/v1/models/observation_footprint.py +1 -1
  69. across/sdk/v1/models/observation_footprint_create.py +1 -1
  70. across/sdk/v1/models/observation_status.py +1 -1
  71. across/sdk/v1/models/observation_strategy.py +1 -1
  72. across/sdk/v1/models/observation_type.py +1 -1
  73. across/sdk/v1/models/observatory.py +1 -1
  74. across/sdk/v1/models/observatory_ephemeris_type.py +1 -1
  75. across/sdk/v1/models/observatory_type.py +1 -1
  76. across/sdk/v1/models/page_observation.py +1 -1
  77. across/sdk/v1/models/page_schedule.py +1 -1
  78. across/sdk/v1/models/parameters.py +1 -1
  79. across/sdk/v1/models/permission.py +1 -1
  80. across/sdk/v1/models/point.py +1 -1
  81. across/sdk/v1/models/role.py +99 -0
  82. across/sdk/v1/models/role_base.py +1 -1
  83. across/sdk/v1/models/schedule.py +1 -1
  84. across/sdk/v1/models/schedule_cadence.py +1 -1
  85. across/sdk/v1/models/schedule_create.py +1 -1
  86. across/sdk/v1/models/schedule_create_many.py +1 -1
  87. across/sdk/v1/models/schedule_fidelity.py +1 -1
  88. across/sdk/v1/models/schedule_status.py +1 -1
  89. across/sdk/v1/models/service_account.py +1 -1
  90. across/sdk/v1/models/service_account_create.py +1 -1
  91. across/sdk/v1/models/service_account_secret.py +1 -1
  92. across/sdk/v1/models/service_account_update.py +1 -1
  93. across/sdk/v1/models/spice_parameters.py +1 -1
  94. across/sdk/v1/models/system_service_account.py +1 -1
  95. across/sdk/v1/models/telescope.py +1 -1
  96. across/sdk/v1/models/telescope_instrument.py +1 -1
  97. across/sdk/v1/models/tle.py +1 -1
  98. across/sdk/v1/models/tle_create.py +1 -1
  99. across/sdk/v1/models/tle_parameters.py +1 -1
  100. across/sdk/v1/models/unit_value.py +1 -1
  101. across/sdk/v1/models/user.py +5 -15
  102. across/sdk/v1/models/user_create.py +1 -1
  103. across/sdk/v1/models/user_info.py +1 -1
  104. across/sdk/v1/models/user_update.py +1 -1
  105. across/sdk/v1/models/validation_error.py +1 -1
  106. across/sdk/v1/models/validation_error_loc_inner.py +1 -1
  107. across/sdk/v1/models/visibility_result.py +1 -1
  108. across/sdk/v1/models/visibility_type.py +1 -1
  109. across/sdk/v1/models/visibility_window.py +1 -1
  110. across/sdk/v1/models/wavelength_bandpass.py +1 -1
  111. across/sdk/v1/models/wavelength_unit.py +1 -1
  112. across/sdk/v1/models/window.py +1 -1
  113. across/sdk/v1/rest.py +1 -1
  114. {across_server_openapi_python-1.2.0.dist-info → across_server_openapi_python-1.3.0.dist-info}/METADATA +15 -18
  115. across_server_openapi_python-1.3.0.dist-info/RECORD +126 -0
  116. across_server_openapi_python-1.2.0.dist-info/RECORD +0 -121
  117. {across_server_openapi_python-1.2.0.dist-info → across_server_openapi_python-1.3.0.dist-info}/WHEEL +0 -0
  118. {across_server_openapi_python-1.2.0.dist-info → across_server_openapi_python-1.3.0.dist-info}/licenses/LICENSE +0 -0
  119. {across_server_openapi_python-1.2.0.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.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.
@@ -309,6 +309,8 @@ class TelescopeApi:
309
309
  def get_telescopes(
310
310
  self,
311
311
  name: Optional[StrictStr] = None,
312
+ observatory_id: Optional[StrictStr] = None,
313
+ observatory_name: Optional[StrictStr] = None,
312
314
  instrument_id: Optional[StrictStr] = None,
313
315
  instrument_name: Optional[StrictStr] = None,
314
316
  created_on: Optional[datetime] = None,
@@ -333,6 +335,10 @@ class TelescopeApi:
333
335
 
334
336
  :param name:
335
337
  :type name: str
338
+ :param observatory_id:
339
+ :type observatory_id: str
340
+ :param observatory_name:
341
+ :type observatory_name: str
336
342
  :param instrument_id:
337
343
  :type instrument_id: str
338
344
  :param instrument_name:
@@ -367,6 +373,8 @@ class TelescopeApi:
367
373
 
368
374
  _param = self._get_telescopes_serialize(
369
375
  name=name,
376
+ observatory_id=observatory_id,
377
+ observatory_name=observatory_name,
370
378
  instrument_id=instrument_id,
371
379
  instrument_name=instrument_name,
372
380
  created_on=created_on,
@@ -398,6 +406,8 @@ class TelescopeApi:
398
406
  def get_telescopes_with_http_info(
399
407
  self,
400
408
  name: Optional[StrictStr] = None,
409
+ observatory_id: Optional[StrictStr] = None,
410
+ observatory_name: Optional[StrictStr] = None,
401
411
  instrument_id: Optional[StrictStr] = None,
402
412
  instrument_name: Optional[StrictStr] = None,
403
413
  created_on: Optional[datetime] = None,
@@ -422,6 +432,10 @@ class TelescopeApi:
422
432
 
423
433
  :param name:
424
434
  :type name: str
435
+ :param observatory_id:
436
+ :type observatory_id: str
437
+ :param observatory_name:
438
+ :type observatory_name: str
425
439
  :param instrument_id:
426
440
  :type instrument_id: str
427
441
  :param instrument_name:
@@ -456,6 +470,8 @@ class TelescopeApi:
456
470
 
457
471
  _param = self._get_telescopes_serialize(
458
472
  name=name,
473
+ observatory_id=observatory_id,
474
+ observatory_name=observatory_name,
459
475
  instrument_id=instrument_id,
460
476
  instrument_name=instrument_name,
461
477
  created_on=created_on,
@@ -487,6 +503,8 @@ class TelescopeApi:
487
503
  def get_telescopes_without_preload_content(
488
504
  self,
489
505
  name: Optional[StrictStr] = None,
506
+ observatory_id: Optional[StrictStr] = None,
507
+ observatory_name: Optional[StrictStr] = None,
490
508
  instrument_id: Optional[StrictStr] = None,
491
509
  instrument_name: Optional[StrictStr] = None,
492
510
  created_on: Optional[datetime] = None,
@@ -511,6 +529,10 @@ class TelescopeApi:
511
529
 
512
530
  :param name:
513
531
  :type name: str
532
+ :param observatory_id:
533
+ :type observatory_id: str
534
+ :param observatory_name:
535
+ :type observatory_name: str
514
536
  :param instrument_id:
515
537
  :type instrument_id: str
516
538
  :param instrument_name:
@@ -545,6 +567,8 @@ class TelescopeApi:
545
567
 
546
568
  _param = self._get_telescopes_serialize(
547
569
  name=name,
570
+ observatory_id=observatory_id,
571
+ observatory_name=observatory_name,
548
572
  instrument_id=instrument_id,
549
573
  instrument_name=instrument_name,
550
574
  created_on=created_on,
@@ -571,6 +595,8 @@ class TelescopeApi:
571
595
  def _get_telescopes_serialize(
572
596
  self,
573
597
  name,
598
+ observatory_id,
599
+ observatory_name,
574
600
  instrument_id,
575
601
  instrument_name,
576
602
  created_on,
@@ -602,6 +628,14 @@ class TelescopeApi:
602
628
 
603
629
  _query_params.append(('name', name))
604
630
 
631
+ if observatory_id is not None:
632
+
633
+ _query_params.append(('observatory_id', observatory_id))
634
+
635
+ if observatory_name is not None:
636
+
637
+ _query_params.append(('observatory_name', observatory_name))
638
+
605
639
  if instrument_id is not None:
606
640
 
607
641
  _query_params.append(('instrument_id', instrument_id))
@@ -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.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.
@@ -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.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.
@@ -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.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.
@@ -1419,6 +1419,254 @@ class UserApi:
1419
1419
 
1420
1420
 
1421
1421
 
1422
+ @validate_call
1423
+ def get_many_user_get(
1424
+ self,
1425
+ _request_timeout: Union[
1426
+ None,
1427
+ Annotated[StrictFloat, Field(gt=0)],
1428
+ Tuple[
1429
+ Annotated[StrictFloat, Field(gt=0)],
1430
+ Annotated[StrictFloat, Field(gt=0)]
1431
+ ]
1432
+ ] = None,
1433
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1434
+ _content_type: Optional[StrictStr] = None,
1435
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1436
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1437
+ ) -> List[AcrossServerRoutesV1UserSchemasUser]:
1438
+ """Read users
1439
+
1440
+ Read many users
1441
+
1442
+ :param _request_timeout: timeout setting for this request. If one
1443
+ number provided, it will be total request
1444
+ timeout. It can also be a pair (tuple) of
1445
+ (connection, read) timeouts.
1446
+ :type _request_timeout: int, tuple(int, int), optional
1447
+ :param _request_auth: set to override the auth_settings for an a single
1448
+ request; this effectively ignores the
1449
+ authentication in the spec for a single request.
1450
+ :type _request_auth: dict, optional
1451
+ :param _content_type: force content-type for the request.
1452
+ :type _content_type: str, Optional
1453
+ :param _headers: set to override the headers for a single
1454
+ request; this effectively ignores the headers
1455
+ in the spec for a single request.
1456
+ :type _headers: dict, optional
1457
+ :param _host_index: set to override the host_index for a single
1458
+ request; this effectively ignores the host_index
1459
+ in the spec for a single request.
1460
+ :type _host_index: int, optional
1461
+ :return: Returns the result object.
1462
+ """ # noqa: E501
1463
+
1464
+ _param = self._get_many_user_get_serialize(
1465
+ _request_auth=_request_auth,
1466
+ _content_type=_content_type,
1467
+ _headers=_headers,
1468
+ _host_index=_host_index
1469
+ )
1470
+
1471
+ _response_types_map: Dict[str, Optional[str]] = {
1472
+ '200': "List[AcrossServerRoutesV1UserSchemasUser]",
1473
+ '404': None,
1474
+ }
1475
+ response_data = self.api_client.call_api(
1476
+ *_param,
1477
+ _request_timeout=_request_timeout
1478
+ )
1479
+ response_data.read()
1480
+ return self.api_client.response_deserialize(
1481
+ response_data=response_data,
1482
+ response_types_map=_response_types_map,
1483
+ ).data
1484
+
1485
+
1486
+ @validate_call
1487
+ def get_many_user_get_with_http_info(
1488
+ self,
1489
+ _request_timeout: Union[
1490
+ None,
1491
+ Annotated[StrictFloat, Field(gt=0)],
1492
+ Tuple[
1493
+ Annotated[StrictFloat, Field(gt=0)],
1494
+ Annotated[StrictFloat, Field(gt=0)]
1495
+ ]
1496
+ ] = None,
1497
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1498
+ _content_type: Optional[StrictStr] = None,
1499
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1500
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1501
+ ) -> ApiResponse[List[AcrossServerRoutesV1UserSchemasUser]]:
1502
+ """Read users
1503
+
1504
+ Read many users
1505
+
1506
+ :param _request_timeout: timeout setting for this request. If one
1507
+ number provided, it will be total request
1508
+ timeout. It can also be a pair (tuple) of
1509
+ (connection, read) timeouts.
1510
+ :type _request_timeout: int, tuple(int, int), optional
1511
+ :param _request_auth: set to override the auth_settings for an a single
1512
+ request; this effectively ignores the
1513
+ authentication in the spec for a single request.
1514
+ :type _request_auth: dict, optional
1515
+ :param _content_type: force content-type for the request.
1516
+ :type _content_type: str, Optional
1517
+ :param _headers: set to override the headers for a single
1518
+ request; this effectively ignores the headers
1519
+ in the spec for a single request.
1520
+ :type _headers: dict, optional
1521
+ :param _host_index: set to override the host_index for a single
1522
+ request; this effectively ignores the host_index
1523
+ in the spec for a single request.
1524
+ :type _host_index: int, optional
1525
+ :return: Returns the result object.
1526
+ """ # noqa: E501
1527
+
1528
+ _param = self._get_many_user_get_serialize(
1529
+ _request_auth=_request_auth,
1530
+ _content_type=_content_type,
1531
+ _headers=_headers,
1532
+ _host_index=_host_index
1533
+ )
1534
+
1535
+ _response_types_map: Dict[str, Optional[str]] = {
1536
+ '200': "List[AcrossServerRoutesV1UserSchemasUser]",
1537
+ '404': None,
1538
+ }
1539
+ response_data = self.api_client.call_api(
1540
+ *_param,
1541
+ _request_timeout=_request_timeout
1542
+ )
1543
+ response_data.read()
1544
+ return self.api_client.response_deserialize(
1545
+ response_data=response_data,
1546
+ response_types_map=_response_types_map,
1547
+ )
1548
+
1549
+
1550
+ @validate_call
1551
+ def get_many_user_get_without_preload_content(
1552
+ self,
1553
+ _request_timeout: Union[
1554
+ None,
1555
+ Annotated[StrictFloat, Field(gt=0)],
1556
+ Tuple[
1557
+ Annotated[StrictFloat, Field(gt=0)],
1558
+ Annotated[StrictFloat, Field(gt=0)]
1559
+ ]
1560
+ ] = None,
1561
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1562
+ _content_type: Optional[StrictStr] = None,
1563
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1564
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1565
+ ) -> RESTResponseType:
1566
+ """Read users
1567
+
1568
+ Read many users
1569
+
1570
+ :param _request_timeout: timeout setting for this request. If one
1571
+ number provided, it will be total request
1572
+ timeout. It can also be a pair (tuple) of
1573
+ (connection, read) timeouts.
1574
+ :type _request_timeout: int, tuple(int, int), optional
1575
+ :param _request_auth: set to override the auth_settings for an a single
1576
+ request; this effectively ignores the
1577
+ authentication in the spec for a single request.
1578
+ :type _request_auth: dict, optional
1579
+ :param _content_type: force content-type for the request.
1580
+ :type _content_type: str, Optional
1581
+ :param _headers: set to override the headers for a single
1582
+ request; this effectively ignores the headers
1583
+ in the spec for a single request.
1584
+ :type _headers: dict, optional
1585
+ :param _host_index: set to override the host_index for a single
1586
+ request; this effectively ignores the host_index
1587
+ in the spec for a single request.
1588
+ :type _host_index: int, optional
1589
+ :return: Returns the result object.
1590
+ """ # noqa: E501
1591
+
1592
+ _param = self._get_many_user_get_serialize(
1593
+ _request_auth=_request_auth,
1594
+ _content_type=_content_type,
1595
+ _headers=_headers,
1596
+ _host_index=_host_index
1597
+ )
1598
+
1599
+ _response_types_map: Dict[str, Optional[str]] = {
1600
+ '200': "List[AcrossServerRoutesV1UserSchemasUser]",
1601
+ '404': None,
1602
+ }
1603
+ response_data = self.api_client.call_api(
1604
+ *_param,
1605
+ _request_timeout=_request_timeout
1606
+ )
1607
+ return response_data.response
1608
+
1609
+
1610
+ def _get_many_user_get_serialize(
1611
+ self,
1612
+ _request_auth,
1613
+ _content_type,
1614
+ _headers,
1615
+ _host_index,
1616
+ ) -> RequestSerialized:
1617
+
1618
+ _host = None
1619
+
1620
+ _collection_formats: Dict[str, str] = {
1621
+ }
1622
+
1623
+ _path_params: Dict[str, str] = {}
1624
+ _query_params: List[Tuple[str, str]] = []
1625
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1626
+ _form_params: List[Tuple[str, str]] = []
1627
+ _files: Dict[
1628
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1629
+ ] = {}
1630
+ _body_params: Optional[bytes] = None
1631
+
1632
+ # process the path parameters
1633
+ # process the query parameters
1634
+ # process the header parameters
1635
+ # process the form parameters
1636
+ # process the body parameter
1637
+
1638
+
1639
+ # set the HTTP header `Accept`
1640
+ if 'Accept' not in _header_params:
1641
+ _header_params['Accept'] = self.api_client.select_header_accept(
1642
+ [
1643
+ 'application/json'
1644
+ ]
1645
+ )
1646
+
1647
+
1648
+ # authentication setting
1649
+ _auth_settings: List[str] = [
1650
+ ]
1651
+
1652
+ return self.api_client.param_serialize(
1653
+ method='GET',
1654
+ resource_path='/user/',
1655
+ path_params=_path_params,
1656
+ query_params=_query_params,
1657
+ header_params=_header_params,
1658
+ body=_body_params,
1659
+ post_params=_form_params,
1660
+ files=_files,
1661
+ auth_settings=_auth_settings,
1662
+ collection_formats=_collection_formats,
1663
+ _host=_host,
1664
+ _request_auth=_request_auth
1665
+ )
1666
+
1667
+
1668
+
1669
+
1422
1670
  @validate_call
1423
1671
  def get_user(
1424
1672
  self,
@@ -5,7 +5,7 @@
5
5
 
6
6
  Server providing tools and utilities for various NASA missions to aid in coordination of large observation efforts.
7
7
 
8
- The version of the OpenAPI document: 1.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.
@@ -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.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.
@@ -533,7 +533,7 @@ conf = across.sdk.v1.Configuration(
533
533
  return "Python SDK Debug Report:\n"\
534
534
  "OS: {env}\n"\
535
535
  "Python Version: {pyversion}\n"\
536
- "Version of the API: 1.3.2\n"\
536
+ "Version of the API: 1.4.0\n"\
537
537
  "SDK Package Version: 1.0.0".\
538
538
  format(env=sys.platform, pyversion=sys.version)
539
539
 
@@ -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.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.
@@ -6,7 +6,7 @@
6
6
 
7
7
  Server providing tools and utilities for various NASA missions to aid in coordination of large observation efforts.
8
8
 
9
- The version of the OpenAPI document: 1.3.2
9
+ The version of the OpenAPI document: 1.4.0
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
12
12
  Do not edit the class manually.
@@ -17,7 +17,8 @@
17
17
  from across.sdk.v1.models.access_token_response import AccessTokenResponse
18
18
  from across.sdk.v1.models.across_server_routes_v1_group_role_schemas_group_role import AcrossServerRoutesV1GroupRoleSchemasGroupRole
19
19
  from across.sdk.v1.models.across_server_routes_v1_group_role_schemas_user import AcrossServerRoutesV1GroupRoleSchemasUser
20
- from across.sdk.v1.models.across_server_routes_v1_group_schemas_group import AcrossServerRoutesV1GroupSchemasGroup
20
+ from across.sdk.v1.models.across_server_routes_v1_group_schemas_user import AcrossServerRoutesV1GroupSchemasUser
21
+ from across.sdk.v1.models.across_server_routes_v1_user_schemas_group import AcrossServerRoutesV1UserSchemasGroup
21
22
  from across.sdk.v1.models.across_server_routes_v1_user_schemas_group_invite import AcrossServerRoutesV1UserSchemasGroupInvite
22
23
  from across.sdk.v1.models.across_server_routes_v1_user_schemas_user import AcrossServerRoutesV1UserSchemasUser
23
24
  from across.sdk.v1.models.across_server_routes_v1_user_service_account_schemas_service_account import AcrossServerRoutesV1UserServiceAccountSchemasServiceAccount
@@ -28,7 +29,6 @@ from across.sdk.v1.models.constraint_reason import ConstraintReason
28
29
  from across.sdk.v1.models.constraint_type import ConstraintType
29
30
  from across.sdk.v1.models.coordinate import Coordinate
30
31
  from across.sdk.v1.models.date_range import DateRange
31
- from across.sdk.v1.models.datetime import Datetime
32
32
  from across.sdk.v1.models.depth_unit import DepthUnit
33
33
  from across.sdk.v1.models.energy_bandpass import EnergyBandpass
34
34
  from across.sdk.v1.models.energy_unit import EnergyUnit
@@ -70,6 +70,7 @@ from across.sdk.v1.models.page_schedule import PageSchedule
70
70
  from across.sdk.v1.models.parameters import Parameters
71
71
  from across.sdk.v1.models.permission import Permission
72
72
  from across.sdk.v1.models.point import Point
73
+ from across.sdk.v1.models.role import Role
73
74
  from across.sdk.v1.models.role_base import RoleBase
74
75
  from across.sdk.v1.models.spice_parameters import SPICEParameters
75
76
  from across.sdk.v1.models.schedule import Schedule
@@ -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.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.
@@ -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.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.
@@ -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.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.
@@ -0,0 +1,105 @@
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.4.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+
15
+ from __future__ import annotations
16
+ import pprint
17
+ import re # noqa: F401
18
+ import json
19
+
20
+ from pydantic import BaseModel, ConfigDict, StrictStr
21
+ from typing import Any, ClassVar, Dict, List
22
+ from across.sdk.v1.models.group_role_read import GroupRoleRead
23
+ from typing import Optional, Set
24
+ from typing_extensions import Self
25
+
26
+ class AcrossServerRoutesV1GroupSchemasUser(BaseModel):
27
+ """
28
+ AcrossServerRoutesV1GroupSchemasUser
29
+ """ # noqa: E501
30
+ id: StrictStr
31
+ username: StrictStr
32
+ first_name: StrictStr
33
+ last_name: StrictStr
34
+ email: StrictStr
35
+ group_roles: List[GroupRoleRead]
36
+ __properties: ClassVar[List[str]] = ["id", "username", "first_name", "last_name", "email", "group_roles"]
37
+
38
+ model_config = ConfigDict(
39
+ populate_by_name=True,
40
+ validate_assignment=True,
41
+ protected_namespaces=(),
42
+ )
43
+
44
+
45
+ def to_str(self) -> str:
46
+ """Returns the string representation of the model using alias"""
47
+ return pprint.pformat(self.model_dump(by_alias=True))
48
+
49
+ def to_json(self) -> str:
50
+ """Returns the JSON representation of the model using alias"""
51
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
52
+ return json.dumps(self.to_dict())
53
+
54
+ @classmethod
55
+ def from_json(cls, json_str: str) -> Optional[Self]:
56
+ """Create an instance of AcrossServerRoutesV1GroupSchemasUser from a JSON string"""
57
+ return cls.from_dict(json.loads(json_str))
58
+
59
+ def to_dict(self) -> Dict[str, Any]:
60
+ """Return the dictionary representation of the model using alias.
61
+
62
+ This has the following differences from calling pydantic's
63
+ `self.model_dump(by_alias=True)`:
64
+
65
+ * `None` is only added to the output dict for nullable fields that
66
+ were set at model initialization. Other fields with value `None`
67
+ are ignored.
68
+ """
69
+ excluded_fields: Set[str] = set([
70
+ ])
71
+
72
+ _dict = self.model_dump(
73
+ by_alias=True,
74
+ exclude=excluded_fields,
75
+ exclude_none=True,
76
+ )
77
+ # override the default output from pydantic by calling `to_dict()` of each item in group_roles (list)
78
+ _items = []
79
+ if self.group_roles:
80
+ for _item_group_roles in self.group_roles:
81
+ if _item_group_roles:
82
+ _items.append(_item_group_roles.to_dict())
83
+ _dict['group_roles'] = _items
84
+ return _dict
85
+
86
+ @classmethod
87
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
88
+ """Create an instance of AcrossServerRoutesV1GroupSchemasUser from a dict"""
89
+ if obj is None:
90
+ return None
91
+
92
+ if not isinstance(obj, dict):
93
+ return cls.model_validate(obj)
94
+
95
+ _obj = cls.model_validate({
96
+ "id": obj.get("id"),
97
+ "username": obj.get("username"),
98
+ "first_name": obj.get("first_name"),
99
+ "last_name": obj.get("last_name"),
100
+ "email": obj.get("email"),
101
+ "group_roles": [GroupRoleRead.from_dict(_item) for _item in obj["group_roles"]] if obj.get("group_roles") is not None else None
102
+ })
103
+ return _obj
104
+
105
+