across-server-openapi-python 0.0.1__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/__init__.py +0 -0
  2. across/sdk/__init__.py +0 -0
  3. across/sdk/v1/__init__.py +251 -0
  4. across/sdk/v1/abstract_credential_storage.py +16 -0
  5. across/sdk/v1/api/__init__.py +20 -0
  6. across/sdk/v1/api/auth_api.py +1097 -0
  7. across/sdk/v1/api/filter_api.py +623 -0
  8. across/sdk/v1/api/group_api.py +586 -0
  9. across/sdk/v1/api/group_invite_api.py +1165 -0
  10. across/sdk/v1/api/group_role_api.py +2070 -0
  11. across/sdk/v1/api/instrument_api.py +633 -0
  12. across/sdk/v1/api/internal_api.py +571 -0
  13. across/sdk/v1/api/observation_api.py +940 -0
  14. across/sdk/v1/api/observatory_api.py +670 -0
  15. across/sdk/v1/api/permission_api.py +285 -0
  16. across/sdk/v1/api/role_api.py +552 -0
  17. across/sdk/v1/api/schedule_api.py +1914 -0
  18. across/sdk/v1/api/service_account_api.py +2353 -0
  19. across/sdk/v1/api/telescope_api.py +667 -0
  20. across/sdk/v1/api/tle_api.py +317 -0
  21. across/sdk/v1/api/tools_api.py +812 -0
  22. across/sdk/v1/api/user_api.py +2263 -0
  23. across/sdk/v1/api_client.py +801 -0
  24. across/sdk/v1/api_client_wrapper.py +239 -0
  25. across/sdk/v1/api_response.py +21 -0
  26. across/sdk/v1/configuration.py +605 -0
  27. across/sdk/v1/exceptions.py +216 -0
  28. across/sdk/v1/models/__init__.py +103 -0
  29. across/sdk/v1/models/access_token_response.py +89 -0
  30. across/sdk/v1/models/across_server_routes_v1_group_invite_schemas_group_invite.py +104 -0
  31. across/sdk/v1/models/across_server_routes_v1_group_role_schemas_group_role.py +124 -0
  32. across/sdk/v1/models/across_server_routes_v1_group_role_schemas_service_account.py +106 -0
  33. across/sdk/v1/models/across_server_routes_v1_group_role_schemas_user.py +95 -0
  34. across/sdk/v1/models/across_server_routes_v1_group_schemas_group.py +111 -0
  35. across/sdk/v1/models/across_server_routes_v1_group_schemas_user.py +105 -0
  36. across/sdk/v1/models/across_server_routes_v1_role_schemas_user.py +96 -0
  37. across/sdk/v1/models/across_server_routes_v1_system_service_account_schemas_service_account.py +90 -0
  38. across/sdk/v1/models/across_server_routes_v1_system_service_account_schemas_service_account_secret.py +92 -0
  39. across/sdk/v1/models/across_server_routes_v1_user_schemas_group.py +101 -0
  40. across/sdk/v1/models/across_server_routes_v1_user_schemas_group_invite.py +99 -0
  41. across/sdk/v1/models/across_server_routes_v1_user_schemas_group_role.py +99 -0
  42. across/sdk/v1/models/across_server_routes_v1_user_schemas_user.py +135 -0
  43. across/sdk/v1/models/across_server_routes_v1_user_service_account_schemas_service_account.py +111 -0
  44. across/sdk/v1/models/across_server_routes_v1_user_service_account_schemas_service_account_secret.py +118 -0
  45. across/sdk/v1/models/alt_az_constraint.py +130 -0
  46. across/sdk/v1/models/bandpass.py +149 -0
  47. across/sdk/v1/models/bandpass_type.py +155 -0
  48. across/sdk/v1/models/constrained_date.py +93 -0
  49. across/sdk/v1/models/constraint_reason.py +89 -0
  50. across/sdk/v1/models/constraint_type.py +43 -0
  51. across/sdk/v1/models/coordinate.py +100 -0
  52. across/sdk/v1/models/date_range.py +90 -0
  53. across/sdk/v1/models/depth_unit.py +39 -0
  54. across/sdk/v1/models/earth_limb_constraint.py +124 -0
  55. across/sdk/v1/models/energy_bandpass.py +121 -0
  56. across/sdk/v1/models/energy_unit.py +40 -0
  57. across/sdk/v1/models/ephemeris_type.py +39 -0
  58. across/sdk/v1/models/filter.py +135 -0
  59. across/sdk/v1/models/frequency_bandpass.py +121 -0
  60. across/sdk/v1/models/frequency_unit.py +40 -0
  61. across/sdk/v1/models/grant_type.py +37 -0
  62. across/sdk/v1/models/ground_parameters.py +91 -0
  63. across/sdk/v1/models/group_invite_create.py +87 -0
  64. across/sdk/v1/models/group_invite_group_details.py +94 -0
  65. across/sdk/v1/models/group_read.py +91 -0
  66. across/sdk/v1/models/group_role_create.py +89 -0
  67. across/sdk/v1/models/group_role_read.py +99 -0
  68. across/sdk/v1/models/http_validation_error.py +95 -0
  69. across/sdk/v1/models/id_name_schema.py +96 -0
  70. across/sdk/v1/models/instrument.py +163 -0
  71. across/sdk/v1/models/instrument_constraints_inner.py +237 -0
  72. across/sdk/v1/models/ivoa_obs_category.py +39 -0
  73. across/sdk/v1/models/ivoa_obs_tracking_type.py +38 -0
  74. across/sdk/v1/models/jpl_parameters.py +87 -0
  75. across/sdk/v1/models/moon_angle_constraint.py +124 -0
  76. across/sdk/v1/models/nullable_date_range.py +100 -0
  77. across/sdk/v1/models/observation.py +248 -0
  78. across/sdk/v1/models/observation_create.py +249 -0
  79. across/sdk/v1/models/observation_status.py +40 -0
  80. across/sdk/v1/models/observation_type.py +39 -0
  81. across/sdk/v1/models/observatory.py +145 -0
  82. across/sdk/v1/models/observatory_ephemeris_type.py +96 -0
  83. across/sdk/v1/models/observatory_type.py +37 -0
  84. across/sdk/v1/models/page_observation.py +116 -0
  85. across/sdk/v1/models/page_schedule.py +116 -0
  86. across/sdk/v1/models/parameters.py +164 -0
  87. across/sdk/v1/models/permission.py +89 -0
  88. across/sdk/v1/models/point.py +89 -0
  89. across/sdk/v1/models/role.py +100 -0
  90. across/sdk/v1/models/role_base.py +89 -0
  91. across/sdk/v1/models/saa_polygon_constraint.py +101 -0
  92. across/sdk/v1/models/schedule.py +144 -0
  93. across/sdk/v1/models/schedule_cadence.py +99 -0
  94. across/sdk/v1/models/schedule_create.py +123 -0
  95. across/sdk/v1/models/schedule_create_many.py +97 -0
  96. across/sdk/v1/models/schedule_fidelity.py +37 -0
  97. across/sdk/v1/models/schedule_status.py +38 -0
  98. across/sdk/v1/models/service_account_create.py +101 -0
  99. across/sdk/v1/models/service_account_secret.py +103 -0
  100. across/sdk/v1/models/service_account_update.py +106 -0
  101. across/sdk/v1/models/spice_parameters.py +89 -0
  102. across/sdk/v1/models/sun_angle_constraint.py +124 -0
  103. across/sdk/v1/models/system_service_account.py +121 -0
  104. across/sdk/v1/models/system_service_account_secret.py +123 -0
  105. across/sdk/v1/models/telescope.py +135 -0
  106. across/sdk/v1/models/telescope_instrument.py +163 -0
  107. across/sdk/v1/models/tle.py +99 -0
  108. across/sdk/v1/models/tle_create.py +94 -0
  109. across/sdk/v1/models/tle_parameters.py +89 -0
  110. across/sdk/v1/models/unit_value.py +94 -0
  111. across/sdk/v1/models/user_create.py +93 -0
  112. across/sdk/v1/models/user_info.py +95 -0
  113. across/sdk/v1/models/user_update.py +106 -0
  114. across/sdk/v1/models/validation_error.py +99 -0
  115. across/sdk/v1/models/validation_error_loc_inner.py +138 -0
  116. across/sdk/v1/models/visibility_result.py +97 -0
  117. across/sdk/v1/models/visibility_type.py +38 -0
  118. across/sdk/v1/models/visibility_window.py +99 -0
  119. across/sdk/v1/models/wavelength_bandpass.py +142 -0
  120. across/sdk/v1/models/wavelength_unit.py +39 -0
  121. across/sdk/v1/models/window.py +96 -0
  122. across/sdk/v1/py.typed +0 -0
  123. across/sdk/v1/rest.py +258 -0
  124. across_server_openapi_python-0.0.1.dist-info/METADATA +326 -0
  125. across_server_openapi_python-0.0.1.dist-info/RECORD +128 -0
  126. across_server_openapi_python-0.0.1.dist-info/WHEEL +5 -0
  127. across_server_openapi_python-0.0.1.dist-info/licenses/LICENSE +42 -0
  128. across_server_openapi_python-0.0.1.dist-info/top_level.txt +1 -0
across/sdk/v1/rest.py ADDED
@@ -0,0 +1,258 @@
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: 0.3.2
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+
15
+ import io
16
+ import json
17
+ import re
18
+ import ssl
19
+
20
+ import urllib3
21
+
22
+ from across.sdk.v1.exceptions import ApiException, ApiValueError
23
+
24
+ SUPPORTED_SOCKS_PROXIES = {"socks5", "socks5h", "socks4", "socks4a"}
25
+ RESTResponseType = urllib3.HTTPResponse
26
+
27
+
28
+ def is_socks_proxy_url(url):
29
+ if url is None:
30
+ return False
31
+ split_section = url.split("://")
32
+ if len(split_section) < 2:
33
+ return False
34
+ else:
35
+ return split_section[0].lower() in SUPPORTED_SOCKS_PROXIES
36
+
37
+
38
+ class RESTResponse(io.IOBase):
39
+
40
+ def __init__(self, resp) -> None:
41
+ self.response = resp
42
+ self.status = resp.status
43
+ self.reason = resp.reason
44
+ self.data = None
45
+
46
+ def read(self):
47
+ if self.data is None:
48
+ self.data = self.response.data
49
+ return self.data
50
+
51
+ def getheaders(self):
52
+ """Returns a dictionary of the response headers."""
53
+ return self.response.headers
54
+
55
+ def getheader(self, name, default=None):
56
+ """Returns a given response header."""
57
+ return self.response.headers.get(name, default)
58
+
59
+
60
+ class RESTClientObject:
61
+
62
+ def __init__(self, configuration) -> None:
63
+ # urllib3.PoolManager will pass all kw parameters to connectionpool
64
+ # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/poolmanager.py#L75 # noqa: E501
65
+ # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/connectionpool.py#L680 # noqa: E501
66
+ # Custom SSL certificates and client certificates: http://urllib3.readthedocs.io/en/latest/advanced-usage.html # noqa: E501
67
+
68
+ # cert_reqs
69
+ if configuration.verify_ssl:
70
+ cert_reqs = ssl.CERT_REQUIRED
71
+ else:
72
+ cert_reqs = ssl.CERT_NONE
73
+
74
+ pool_args = {
75
+ "cert_reqs": cert_reqs,
76
+ "ca_certs": configuration.ssl_ca_cert,
77
+ "cert_file": configuration.cert_file,
78
+ "key_file": configuration.key_file,
79
+ "ca_cert_data": configuration.ca_cert_data,
80
+ }
81
+ if configuration.assert_hostname is not None:
82
+ pool_args['assert_hostname'] = (
83
+ configuration.assert_hostname
84
+ )
85
+
86
+ if configuration.retries is not None:
87
+ pool_args['retries'] = configuration.retries
88
+
89
+ if configuration.tls_server_name:
90
+ pool_args['server_hostname'] = configuration.tls_server_name
91
+
92
+
93
+ if configuration.socket_options is not None:
94
+ pool_args['socket_options'] = configuration.socket_options
95
+
96
+ if configuration.connection_pool_maxsize is not None:
97
+ pool_args['maxsize'] = configuration.connection_pool_maxsize
98
+
99
+ # https pool manager
100
+ self.pool_manager: urllib3.PoolManager
101
+
102
+ if configuration.proxy:
103
+ if is_socks_proxy_url(configuration.proxy):
104
+ from urllib3.contrib.socks import SOCKSProxyManager
105
+ pool_args["proxy_url"] = configuration.proxy
106
+ pool_args["headers"] = configuration.proxy_headers
107
+ self.pool_manager = SOCKSProxyManager(**pool_args)
108
+ else:
109
+ pool_args["proxy_url"] = configuration.proxy
110
+ pool_args["proxy_headers"] = configuration.proxy_headers
111
+ self.pool_manager = urllib3.ProxyManager(**pool_args)
112
+ else:
113
+ self.pool_manager = urllib3.PoolManager(**pool_args)
114
+
115
+ def request(
116
+ self,
117
+ method,
118
+ url,
119
+ headers=None,
120
+ body=None,
121
+ post_params=None,
122
+ _request_timeout=None
123
+ ):
124
+ """Perform requests.
125
+
126
+ :param method: http request method
127
+ :param url: http request url
128
+ :param headers: http request headers
129
+ :param body: request json body, for `application/json`
130
+ :param post_params: request post parameters,
131
+ `application/x-www-form-urlencoded`
132
+ and `multipart/form-data`
133
+ :param _request_timeout: timeout setting for this request. If one
134
+ number provided, it will be total request
135
+ timeout. It can also be a pair (tuple) of
136
+ (connection, read) timeouts.
137
+ """
138
+ method = method.upper()
139
+ assert method in [
140
+ 'GET',
141
+ 'HEAD',
142
+ 'DELETE',
143
+ 'POST',
144
+ 'PUT',
145
+ 'PATCH',
146
+ 'OPTIONS'
147
+ ]
148
+
149
+ if post_params and body:
150
+ raise ApiValueError(
151
+ "body parameter cannot be used with post_params parameter."
152
+ )
153
+
154
+ post_params = post_params or {}
155
+ headers = headers or {}
156
+
157
+ timeout = None
158
+ if _request_timeout:
159
+ if isinstance(_request_timeout, (int, float)):
160
+ timeout = urllib3.Timeout(total=_request_timeout)
161
+ elif (
162
+ isinstance(_request_timeout, tuple)
163
+ and len(_request_timeout) == 2
164
+ ):
165
+ timeout = urllib3.Timeout(
166
+ connect=_request_timeout[0],
167
+ read=_request_timeout[1]
168
+ )
169
+
170
+ try:
171
+ # For `POST`, `PUT`, `PATCH`, `OPTIONS`, `DELETE`
172
+ if method in ['POST', 'PUT', 'PATCH', 'OPTIONS', 'DELETE']:
173
+
174
+ # no content type provided or payload is json
175
+ content_type = headers.get('Content-Type')
176
+ if (
177
+ not content_type
178
+ or re.search('json', content_type, re.IGNORECASE)
179
+ ):
180
+ request_body = None
181
+ if body is not None:
182
+ request_body = json.dumps(body)
183
+ r = self.pool_manager.request(
184
+ method,
185
+ url,
186
+ body=request_body,
187
+ timeout=timeout,
188
+ headers=headers,
189
+ preload_content=False
190
+ )
191
+ elif content_type == 'application/x-www-form-urlencoded':
192
+ r = self.pool_manager.request(
193
+ method,
194
+ url,
195
+ fields=post_params,
196
+ encode_multipart=False,
197
+ timeout=timeout,
198
+ headers=headers,
199
+ preload_content=False
200
+ )
201
+ elif content_type == 'multipart/form-data':
202
+ # must del headers['Content-Type'], or the correct
203
+ # Content-Type which generated by urllib3 will be
204
+ # overwritten.
205
+ del headers['Content-Type']
206
+ # Ensures that dict objects are serialized
207
+ post_params = [(a, json.dumps(b)) if isinstance(b, dict) else (a,b) for a, b in post_params]
208
+ r = self.pool_manager.request(
209
+ method,
210
+ url,
211
+ fields=post_params,
212
+ encode_multipart=True,
213
+ timeout=timeout,
214
+ headers=headers,
215
+ preload_content=False
216
+ )
217
+ # Pass a `string` parameter directly in the body to support
218
+ # other content types than JSON when `body` argument is
219
+ # provided in serialized form.
220
+ elif isinstance(body, str) or isinstance(body, bytes):
221
+ r = self.pool_manager.request(
222
+ method,
223
+ url,
224
+ body=body,
225
+ timeout=timeout,
226
+ headers=headers,
227
+ preload_content=False
228
+ )
229
+ elif headers['Content-Type'].startswith('text/') and isinstance(body, bool):
230
+ request_body = "true" if body else "false"
231
+ r = self.pool_manager.request(
232
+ method,
233
+ url,
234
+ body=request_body,
235
+ preload_content=False,
236
+ timeout=timeout,
237
+ headers=headers)
238
+ else:
239
+ # Cannot generate the request from given parameters
240
+ msg = """Cannot prepare a request message for provided
241
+ arguments. Please check that your arguments match
242
+ declared content type."""
243
+ raise ApiException(status=0, reason=msg)
244
+ # For `GET`, `HEAD`
245
+ else:
246
+ r = self.pool_manager.request(
247
+ method,
248
+ url,
249
+ fields={},
250
+ timeout=timeout,
251
+ headers=headers,
252
+ preload_content=False
253
+ )
254
+ except urllib3.exceptions.SSLError as e:
255
+ msg = "\n".join([type(e).__name__, str(e)])
256
+ raise ApiException(status=0, reason=msg)
257
+
258
+ return RESTResponse(r)
@@ -0,0 +1,326 @@
1
+ Metadata-Version: 2.4
2
+ Name: across-server-openapi-python
3
+ Version: 0.0.1
4
+ Summary: FastAPI
5
+ Home-page:
6
+ Author: OpenAPI Generator community
7
+ Author-email: OpenAPI Generator Community <team@openapitools.org>
8
+ License: MIT License
9
+
10
+ Copyright (c) 2024 ACROSS Team
11
+
12
+ Permission is hereby granted, free of charge, to any person obtaining a copy
13
+ of this software and associated documentation files (the "Software"), to deal
14
+ in the Software without restriction, including without limitation the rights
15
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
16
+ copies of the Software, and to permit persons to whom the Software is
17
+ furnished to do so, subject to the following conditions:
18
+
19
+ The above copyright notice and this permission notice shall be included in all
20
+ copies or substantial portions of the Software.
21
+
22
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
23
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
24
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
25
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
26
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
27
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
28
+ SOFTWARE.
29
+ MIT License
30
+
31
+ Copyright (c) 2024 ACROSS-Team
32
+
33
+ Permission is hereby granted, free of charge, to any person obtaining a copy
34
+ of this software and associated documentation files (the "Software"), to deal
35
+ in the Software without restriction, including without limitation the rights
36
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
37
+ copies of the Software, and to permit persons to whom the Software is
38
+ furnished to do so, subject to the following conditions:
39
+
40
+ The above copyright notice and this permission notice shall be included in all
41
+ copies or substantial portions of the Software.
42
+
43
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
44
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
45
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
46
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
47
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
48
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
49
+ SOFTWARE.
50
+
51
+ Project-URL: Repository, https://github.com/GIT_USER_ID/GIT_REPO_ID
52
+ Keywords: OpenAPI,OpenAPI-Generator,FastAPI
53
+ Requires-Python: >3.9
54
+ Description-Content-Type: text/markdown
55
+ License-File: LICENSE
56
+ Requires-Dist: urllib3<3.0.0,>=2.1.0
57
+ Requires-Dist: python-dateutil>=2.8.2
58
+ Requires-Dist: pydantic>=2
59
+ Requires-Dist: typing-extensions>=4.7.1
60
+ Dynamic: author
61
+ Dynamic: license-file
62
+
63
+ # across.sdk.v1
64
+ Server providing tools and utilities for various NASA missions to aid in coordination of large observation efforts.
65
+
66
+ This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
67
+
68
+ - API version: 0.3.2
69
+ - Package version: 1.0.0
70
+ - Generator version: 7.14.0-SNAPSHOT
71
+ - Build package: org.openapitools.codegen.languages.PythonClientCodegen
72
+
73
+ ## Requirements.
74
+
75
+ Python 3.9+
76
+
77
+ ## Installation & Usage
78
+ ### pip install
79
+
80
+ If the python package is hosted on a repository, you can install directly using:
81
+
82
+ ```sh
83
+ pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
84
+ ```
85
+ (you may need to run `pip` with root permission: `sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git`)
86
+
87
+ Then import the package:
88
+ ```python
89
+ import across.sdk.v1
90
+ ```
91
+
92
+ ### Setuptools
93
+
94
+ Install via [Setuptools](http://pypi.python.org/pypi/setuptools).
95
+
96
+ ```sh
97
+ python setup.py install --user
98
+ ```
99
+ (or `sudo python setup.py install` to install the package for all users)
100
+
101
+ Then import the package:
102
+ ```python
103
+ import across.sdk.v1
104
+ ```
105
+
106
+ ### Tests
107
+
108
+ Execute `pytest` to run the tests.
109
+
110
+ ## Getting Started
111
+
112
+ Please follow the [installation procedure](#installation--usage) and then run the following:
113
+
114
+ ```python
115
+
116
+ import across.sdk.v1
117
+ from across.sdk.v1.rest import ApiException
118
+ from pprint import pprint
119
+
120
+ # Defining the host is optional and defaults to /api/v1
121
+ # See configuration.py for a list of all supported configuration parameters.
122
+ configuration = across.sdk.v1.Configuration(
123
+ host = "/api/v1"
124
+ )
125
+
126
+ # The client must configure the authentication and authorization parameters
127
+ # in accordance with the API server security policy.
128
+ # Examples for each auth method are provided below, use the example that
129
+ # satisfies your auth use case.
130
+
131
+ # Configure Bearer authorization: Authorization
132
+ configuration = across.sdk.v1.Configuration(
133
+ access_token = os.environ["BEARER_TOKEN"]
134
+ )
135
+
136
+
137
+ # Enter a context with an instance of the API client
138
+ with across.sdk.v1.ApiClient(configuration) as api_client:
139
+ # Create an instance of the API class
140
+ api_instance = across.sdk.v1.AuthApi(api_client)
141
+ email = 'email_example' # str |
142
+
143
+ try:
144
+ # Login
145
+ api_response = api_instance.login(email)
146
+ print("The response of AuthApi->login:\n")
147
+ pprint(api_response)
148
+ except ApiException as e:
149
+ print("Exception when calling AuthApi->login: %s\n" % e)
150
+
151
+ ```
152
+
153
+ ## Documentation for API Endpoints
154
+
155
+ All URIs are relative to */api/v1*
156
+
157
+ Class | Method | HTTP request | Description
158
+ ------------ | ------------- | ------------- | -------------
159
+ *AuthApi* | [**login**](docs/AuthApi.md#login) | **POST** /auth/login | Login
160
+ *AuthApi* | [**refresh**](docs/AuthApi.md#refresh) | **POST** /auth/refresh | Refresh Token
161
+ *AuthApi* | [**token**](docs/AuthApi.md#token) | **POST** /auth/token | Token
162
+ *AuthApi* | [**verify**](docs/AuthApi.md#verify) | **GET** /auth/verify | Verify
163
+ *FilterApi* | [**get_filter_filter_id_get**](docs/FilterApi.md#get_filter_filter_id_get) | **GET** /filter/{filter_id} | Read a filter
164
+ *FilterApi* | [**get_many_filter_get**](docs/FilterApi.md#get_many_filter_get) | **GET** /filter/ | Read filters(s)
165
+ *GroupApi* | [**get_group**](docs/GroupApi.md#get_group) | **GET** /group/{group_id} | Read a group
166
+ *GroupApi* | [**remove_user**](docs/GroupApi.md#remove_user) | **DELETE** /group/{group_id}/user/{user_id} | Remove a user from a group
167
+ *GroupInviteApi* | [**delete_invite**](docs/GroupInviteApi.md#delete_invite) | **DELETE** /group/{group_id}/invite/{invite_id} | Delete a group invite
168
+ *GroupInviteApi* | [**get_invite**](docs/GroupInviteApi.md#get_invite) | **GET** /group/{group_id}/invite/{invite_id} | Read a group invite
169
+ *GroupInviteApi* | [**get_invites**](docs/GroupInviteApi.md#get_invites) | **GET** /group/{group_id}/invite | Read group invites
170
+ *GroupInviteApi* | [**send_invite**](docs/GroupInviteApi.md#send_invite) | **POST** /group/{group_id}/invite | Create and send a group invite
171
+ *GroupRoleApi* | [**assign_to_user**](docs/GroupRoleApi.md#assign_to_user) | **PUT** /group/{group_id}/user/{user_id}/role/{group_role_id} | Assign a group role to a user
172
+ *GroupRoleApi* | [**create_group_role**](docs/GroupRoleApi.md#create_group_role) | **POST** /group/{group_id}/role | Create a group role
173
+ *GroupRoleApi* | [**delete_group_role**](docs/GroupRoleApi.md#delete_group_role) | **DELETE** /group/{group_id}/role/{group_role_id} | Delete a group role
174
+ *GroupRoleApi* | [**get_group_role**](docs/GroupRoleApi.md#get_group_role) | **GET** /group/{group_id}/role/{group_role_id} | Read a group role
175
+ *GroupRoleApi* | [**get_group_roles**](docs/GroupRoleApi.md#get_group_roles) | **GET** /group/{group_id}/role | Read group roles
176
+ *GroupRoleApi* | [**remove_from_user**](docs/GroupRoleApi.md#remove_from_user) | **DELETE** /group/{group_id}/user/{user_id}/role/{group_role_id} | Remove a group role from a user
177
+ *GroupRoleApi* | [**update_group_role**](docs/GroupRoleApi.md#update_group_role) | **PUT** /group/{group_id}/role/{group_role_id} | Update a group role
178
+ *InstrumentApi* | [**get_instrument**](docs/InstrumentApi.md#get_instrument) | **GET** /instrument/{instrument_id} | Read an instrument
179
+ *InstrumentApi* | [**get_instruments**](docs/InstrumentApi.md#get_instruments) | **GET** /instrument/ | Read instruments(s)
180
+ *InternalApi* | [**get_service_account**](docs/InternalApi.md#get_service_account) | **GET** /service-account/{service_account_id} | Get a system service account
181
+ *InternalApi* | [**service_account_rotate_key**](docs/InternalApi.md#service_account_rotate_key) | **PATCH** /service-account/{service_account_id}/rotate_key | Rotate a service account key
182
+ *ObservationApi* | [**get_observation**](docs/ObservationApi.md#get_observation) | **GET** /observation/{observation_id} | Read an observation
183
+ *ObservationApi* | [**get_observations**](docs/ObservationApi.md#get_observations) | **GET** /observation/ | Read observations(s)
184
+ *ObservatoryApi* | [**get_observatories**](docs/ObservatoryApi.md#get_observatories) | **GET** /observatory/ | Read observatory(s)
185
+ *ObservatoryApi* | [**get_observatory**](docs/ObservatoryApi.md#get_observatory) | **GET** /observatory/{observatory_id} | Read an observatory
186
+ *PermissionApi* | [**get_permissions**](docs/PermissionApi.md#get_permissions) | **GET** /permission/ | Read permissions
187
+ *ScheduleApi* | [**create_many_schedules**](docs/ScheduleApi.md#create_many_schedules) | **POST** /schedule/bulk | Create many Schedules
188
+ *ScheduleApi* | [**create_schedule**](docs/ScheduleApi.md#create_schedule) | **POST** /schedule/ | Create a Schedule
189
+ *ScheduleApi* | [**get_schedule**](docs/ScheduleApi.md#get_schedule) | **GET** /schedule/{schedule_id} | Read a schedule
190
+ *ScheduleApi* | [**get_schedules**](docs/ScheduleApi.md#get_schedules) | **GET** /schedule/ | Read schedule(s)
191
+ *ScheduleApi* | [**get_schedules_history**](docs/ScheduleApi.md#get_schedules_history) | **GET** /schedule/history | Read schedule(s)
192
+ *ServiceAccountApi* | [**assign_to_service_account**](docs/ServiceAccountApi.md#assign_to_service_account) | **POST** /user/{user_id}/service-account/{service_account_id}/group-role/{group_role_id} | Assign group role
193
+ *ServiceAccountApi* | [**create_user_service_account**](docs/ServiceAccountApi.md#create_user_service_account) | **POST** /user/{user_id}/service_account/ | Create a service account
194
+ *ServiceAccountApi* | [**delete_user_service_account**](docs/ServiceAccountApi.md#delete_user_service_account) | **DELETE** /user/{user_id}/service_account/{service_account_id} | Delete a service_account
195
+ *ServiceAccountApi* | [**get_service_accounts**](docs/ServiceAccountApi.md#get_service_accounts) | **GET** /user/{user_id}/service_account/ | Read service accounts
196
+ *ServiceAccountApi* | [**get_user_service_account**](docs/ServiceAccountApi.md#get_user_service_account) | **GET** /user/{user_id}/service_account/{service_account_id} | Read a service account
197
+ *ServiceAccountApi* | [**remove_from_service_account**](docs/ServiceAccountApi.md#remove_from_service_account) | **DELETE** /user/{user_id}/service-account/{service_account_id}/group-role/{group_role_id} | Remove group role
198
+ *ServiceAccountApi* | [**update_user_service_account**](docs/ServiceAccountApi.md#update_user_service_account) | **PATCH** /user/{user_id}/service_account/{service_account_id} | Update a service account
199
+ *ServiceAccountApi* | [**user_service_account_rotate_key**](docs/ServiceAccountApi.md#user_service_account_rotate_key) | **PATCH** /user/{user_id}/service_account/{service_account_id}/rotate_key | Rotate a service account key
200
+ *TLEApi* | [**create_tle**](docs/TLEApi.md#create_tle) | **POST** /tle/ | Create a TLE
201
+ *TelescopeApi* | [**get_telescope**](docs/TelescopeApi.md#get_telescope) | **GET** /telescope/{telescope_id} | Read an telescope
202
+ *TelescopeApi* | [**get_telescopes**](docs/TelescopeApi.md#get_telescopes) | **GET** /telescope/ | Read telescopes(s)
203
+ *ToolsApi* | [**calculate_windows_tools_visibility_calculator_windows_instrument_id_get**](docs/ToolsApi.md#calculate_windows_tools_visibility_calculator_windows_instrument_id_get) | **GET** /tools/visibility-calculator/windows/{instrument_id} | Calculated Visibility Windows
204
+ *ToolsApi* | [**calculate_windows_tools_visibility_calculator_windows_instrument_id_get_0**](docs/ToolsApi.md#calculate_windows_tools_visibility_calculator_windows_instrument_id_get_0) | **GET** /tools/visibility-calculator/windows/{instrument_id} | Calculated Visibility Windows
205
+ *UserApi* | [**accept_invite**](docs/UserApi.md#accept_invite) | **PATCH** /user/{user_id}/invite/{invite_id} | Accept a group invitation
206
+ *UserApi* | [**create_user**](docs/UserApi.md#create_user) | **POST** /user/ | Create a user
207
+ *UserApi* | [**decline_invite**](docs/UserApi.md#decline_invite) | **DELETE** /user/{user_id}/invite/{invite_id} | Decline a group invitation
208
+ *UserApi* | [**delete_user**](docs/UserApi.md#delete_user) | **DELETE** /user/{user_id} | Delete a user
209
+ *UserApi* | [**get_group_invites**](docs/UserApi.md#get_group_invites) | **GET** /user/{user_id}/invite | Read a user&#39;s group invites
210
+ *UserApi* | [**get_user**](docs/UserApi.md#get_user) | **GET** /user/{user_id} | Read a user
211
+ *UserApi* | [**leave_group**](docs/UserApi.md#leave_group) | **DELETE** /user/{user_id}/group/{group_id} | Leave a group
212
+ *UserApi* | [**update_user**](docs/UserApi.md#update_user) | **PATCH** /user/{user_id} | Update a user
213
+
214
+
215
+ ## Documentation For Models
216
+
217
+ - [AccessTokenResponse](docs/AccessTokenResponse.md)
218
+ - [AcrossServerRoutesV1GroupInviteSchemasGroupInvite](docs/AcrossServerRoutesV1GroupInviteSchemasGroupInvite.md)
219
+ - [AcrossServerRoutesV1GroupRoleSchemasGroupRole](docs/AcrossServerRoutesV1GroupRoleSchemasGroupRole.md)
220
+ - [AcrossServerRoutesV1GroupRoleSchemasServiceAccount](docs/AcrossServerRoutesV1GroupRoleSchemasServiceAccount.md)
221
+ - [AcrossServerRoutesV1GroupRoleSchemasUser](docs/AcrossServerRoutesV1GroupRoleSchemasUser.md)
222
+ - [AcrossServerRoutesV1GroupSchemasGroup](docs/AcrossServerRoutesV1GroupSchemasGroup.md)
223
+ - [AcrossServerRoutesV1GroupSchemasUser](docs/AcrossServerRoutesV1GroupSchemasUser.md)
224
+ - [AcrossServerRoutesV1UserSchemasGroup](docs/AcrossServerRoutesV1UserSchemasGroup.md)
225
+ - [AcrossServerRoutesV1UserSchemasGroupInvite](docs/AcrossServerRoutesV1UserSchemasGroupInvite.md)
226
+ - [AcrossServerRoutesV1UserSchemasGroupRole](docs/AcrossServerRoutesV1UserSchemasGroupRole.md)
227
+ - [AcrossServerRoutesV1UserSchemasUser](docs/AcrossServerRoutesV1UserSchemasUser.md)
228
+ - [AcrossServerRoutesV1UserServiceAccountSchemasServiceAccount](docs/AcrossServerRoutesV1UserServiceAccountSchemasServiceAccount.md)
229
+ - [AltAzConstraint](docs/AltAzConstraint.md)
230
+ - [Bandpass](docs/Bandpass.md)
231
+ - [BandpassType](docs/BandpassType.md)
232
+ - [ConstrainedDate](docs/ConstrainedDate.md)
233
+ - [ConstraintReason](docs/ConstraintReason.md)
234
+ - [ConstraintType](docs/ConstraintType.md)
235
+ - [Coordinate](docs/Coordinate.md)
236
+ - [DateRange](docs/DateRange.md)
237
+ - [DepthUnit](docs/DepthUnit.md)
238
+ - [EarthLimbConstraint](docs/EarthLimbConstraint.md)
239
+ - [EnergyBandpass](docs/EnergyBandpass.md)
240
+ - [EnergyUnit](docs/EnergyUnit.md)
241
+ - [EphemerisType](docs/EphemerisType.md)
242
+ - [Filter](docs/Filter.md)
243
+ - [FrequencyBandpass](docs/FrequencyBandpass.md)
244
+ - [FrequencyUnit](docs/FrequencyUnit.md)
245
+ - [GrantType](docs/GrantType.md)
246
+ - [GroundParameters](docs/GroundParameters.md)
247
+ - [GroupInviteCreate](docs/GroupInviteCreate.md)
248
+ - [GroupInviteGroupDetails](docs/GroupInviteGroupDetails.md)
249
+ - [GroupRead](docs/GroupRead.md)
250
+ - [GroupRoleCreate](docs/GroupRoleCreate.md)
251
+ - [GroupRoleRead](docs/GroupRoleRead.md)
252
+ - [HTTPValidationError](docs/HTTPValidationError.md)
253
+ - [IDNameSchema](docs/IDNameSchema.md)
254
+ - [IVOAObsCategory](docs/IVOAObsCategory.md)
255
+ - [IVOAObsTrackingType](docs/IVOAObsTrackingType.md)
256
+ - [Instrument](docs/Instrument.md)
257
+ - [InstrumentConstraintsInner](docs/InstrumentConstraintsInner.md)
258
+ - [JPLParameters](docs/JPLParameters.md)
259
+ - [MoonAngleConstraint](docs/MoonAngleConstraint.md)
260
+ - [NullableDateRange](docs/NullableDateRange.md)
261
+ - [Observation](docs/Observation.md)
262
+ - [ObservationCreate](docs/ObservationCreate.md)
263
+ - [ObservationStatus](docs/ObservationStatus.md)
264
+ - [ObservationType](docs/ObservationType.md)
265
+ - [Observatory](docs/Observatory.md)
266
+ - [ObservatoryEphemerisType](docs/ObservatoryEphemerisType.md)
267
+ - [ObservatoryType](docs/ObservatoryType.md)
268
+ - [PageObservation](docs/PageObservation.md)
269
+ - [PageSchedule](docs/PageSchedule.md)
270
+ - [Parameters](docs/Parameters.md)
271
+ - [Permission](docs/Permission.md)
272
+ - [Point](docs/Point.md)
273
+ - [RoleBase](docs/RoleBase.md)
274
+ - [SAAPolygonConstraint](docs/SAAPolygonConstraint.md)
275
+ - [SPICEParameters](docs/SPICEParameters.md)
276
+ - [Schedule](docs/Schedule.md)
277
+ - [ScheduleCadence](docs/ScheduleCadence.md)
278
+ - [ScheduleCreate](docs/ScheduleCreate.md)
279
+ - [ScheduleCreateMany](docs/ScheduleCreateMany.md)
280
+ - [ScheduleFidelity](docs/ScheduleFidelity.md)
281
+ - [ScheduleStatus](docs/ScheduleStatus.md)
282
+ - [ServiceAccountCreate](docs/ServiceAccountCreate.md)
283
+ - [ServiceAccountSecret](docs/ServiceAccountSecret.md)
284
+ - [ServiceAccountUpdate](docs/ServiceAccountUpdate.md)
285
+ - [SunAngleConstraint](docs/SunAngleConstraint.md)
286
+ - [SystemServiceAccount](docs/SystemServiceAccount.md)
287
+ - [TLE](docs/TLE.md)
288
+ - [TLECreate](docs/TLECreate.md)
289
+ - [TLEParameters](docs/TLEParameters.md)
290
+ - [Telescope](docs/Telescope.md)
291
+ - [TelescopeInstrument](docs/TelescopeInstrument.md)
292
+ - [UnitValue](docs/UnitValue.md)
293
+ - [UserCreate](docs/UserCreate.md)
294
+ - [UserInfo](docs/UserInfo.md)
295
+ - [UserUpdate](docs/UserUpdate.md)
296
+ - [ValidationError](docs/ValidationError.md)
297
+ - [ValidationErrorLocInner](docs/ValidationErrorLocInner.md)
298
+ - [VisibilityResult](docs/VisibilityResult.md)
299
+ - [VisibilityType](docs/VisibilityType.md)
300
+ - [VisibilityWindow](docs/VisibilityWindow.md)
301
+ - [WavelengthBandpass](docs/WavelengthBandpass.md)
302
+ - [WavelengthUnit](docs/WavelengthUnit.md)
303
+ - [Window](docs/Window.md)
304
+
305
+
306
+ <a id="documentation-for-authorization"></a>
307
+ ## Documentation For Authorization
308
+
309
+
310
+ Authentication schemes defined for the API:
311
+ <a id="Authorization"></a>
312
+ ### Authorization
313
+
314
+ - **Type**: Bearer authentication
315
+
316
+ <a id="ServiceAccountAuthorization"></a>
317
+ ### ServiceAccountAuthorization
318
+
319
+ - **Type**: HTTP basic authentication
320
+
321
+
322
+ ## Author
323
+
324
+
325
+
326
+