Skip to content

Commit 45a6ca5

Browse files
committed
Regenerate API client from latest OpenAPI spec
1 parent f070e4f commit 45a6ca5

20 files changed

+367
-918
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,5 +62,5 @@ docs/_build/
6262
# PyBuilder
6363
target/
6464

65-
#Ipython Notebook
65+
# Ipython Notebook
6666
.ipynb_checkpoints

.openapi-generator/FILES

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ docs/CampaignUpdate.md
1111
docs/CampaignsApi.md
1212
docs/CampaignsIn.md
1313
docs/Coordinates.md
14-
docs/ForceUpdateSensorStatisticsResponse.md
1514
docs/GetCampaignResponse.md
1615
docs/GetSensorResponse.md
1716
docs/GetStationResponse.md
@@ -22,6 +21,7 @@ docs/ListMeasurementsResponsePagination.md
2221
docs/ListSensorsResponsePagination.md
2322
docs/ListStationsResponsePagination.md
2423
docs/Location.md
24+
docs/Location1Inner.md
2525
docs/LoginResponse.md
2626
docs/MeasurementCreateResponse.md
2727
docs/MeasurementIn.md
@@ -51,17 +51,16 @@ docs/StationsApi.md
5151
docs/StationsListResponseItem.md
5252
docs/SummaryGetCampaign.md
5353
docs/SummaryListCampaigns.md
54-
docs/UpdateSensorStatisticsResponse.md
5554
docs/UploadfileCsvApi.md
5655
docs/ValidationError.md
57-
docs/ValidationErrorLocInner.md
5856
git_push.sh
5957
pyproject.toml
6058
requirements.txt
6159
setup.cfg
6260
setup.py
6361
test-requirements.txt
6462
test/__init__.py
63+
test/test_location1_inner.py
6564
tox.ini
6665
upstream_api_client/__init__.py
6766
upstream_api_client/api/__init__.py
@@ -84,7 +83,6 @@ upstream_api_client/models/campaign_create_response.py
8483
upstream_api_client/models/campaign_update.py
8584
upstream_api_client/models/campaigns_in.py
8685
upstream_api_client/models/coordinates.py
87-
upstream_api_client/models/force_update_sensor_statistics_response.py
8886
upstream_api_client/models/get_campaign_response.py
8987
upstream_api_client/models/get_sensor_response.py
9088
upstream_api_client/models/get_station_response.py
@@ -95,6 +93,7 @@ upstream_api_client/models/list_measurements_response_pagination.py
9593
upstream_api_client/models/list_sensors_response_pagination.py
9694
upstream_api_client/models/list_stations_response_pagination.py
9795
upstream_api_client/models/location.py
96+
upstream_api_client/models/location1_inner.py
9897
upstream_api_client/models/login_response.py
9998
upstream_api_client/models/measurement_create_response.py
10099
upstream_api_client/models/measurement_in.py
@@ -119,8 +118,6 @@ upstream_api_client/models/station_update.py
119118
upstream_api_client/models/stations_list_response_item.py
120119
upstream_api_client/models/summary_get_campaign.py
121120
upstream_api_client/models/summary_list_campaigns.py
122-
upstream_api_client/models/update_sensor_statistics_response.py
123121
upstream_api_client/models/validation_error.py
124-
upstream_api_client/models/validation_error_loc_inner.py
125122
upstream_api_client/py.typed
126123
upstream_api_client/rest.py

.openapi-generator/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.14.0
1+
7.19.0

README.md

Lines changed: 89 additions & 129 deletions
Large diffs are not rendered by default.

docs/Location1Inner.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Location1Inner
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
9+
## Example
10+
11+
```python
12+
from upstream_api_client.models.location1_inner import Location1Inner
13+
14+
# TODO update the JSON string below
15+
json = "{}"
16+
# create an instance of Location1Inner from a JSON string
17+
location1_inner_instance = Location1Inner.from_json(json)
18+
# print the JSON string representation of the object
19+
print(Location1Inner.to_json())
20+
21+
# convert the object into a dict
22+
location1_inner_dict = location1_inner_instance.to_dict()
23+
# create an instance of Location1Inner from a dict
24+
location1_inner_from_dict = Location1Inner.from_dict(location1_inner_dict)
25+
```
26+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
27+
28+

docs/SensorsApi.md

Lines changed: 0 additions & 161 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ All URIs are relative to *http://localhost*
55
Method | HTTP request | Description
66
------------- | ------------- | -------------
77
[**delete_sensor_api_v1_campaigns_campaign_id_stations_station_id_sensors_delete**](SensorsApi.md#delete_sensor_api_v1_campaigns_campaign_id_stations_station_id_sensors_delete) | **DELETE** /api/v1/campaigns/{campaign_id}/stations/{station_id}/sensors | Delete Sensor
8-
[**force_update_sensor_statistics_api_v1_campaigns_campaign_id_stations_station_id_sensors_statistics_post**](SensorsApi.md#force_update_sensor_statistics_api_v1_campaigns_campaign_id_stations_station_id_sensors_statistics_post) | **POST** /api/v1/campaigns/{campaign_id}/stations/{station_id}/sensors/statistics | Force Update Sensor Statistics
9-
[**force_update_single_sensor_statistics_api_v1_campaigns_campaign_id_stations_station_id_sensors_sensor_id_statistics_post**](SensorsApi.md#force_update_single_sensor_statistics_api_v1_campaigns_campaign_id_stations_station_id_sensors_sensor_id_statistics_post) | **POST** /api/v1/campaigns/{campaign_id}/stations/{station_id}/sensors/{sensor_id}/statistics | Force Update Single Sensor Statistics
108
[**get_sensor_api_v1_campaigns_campaign_id_stations_station_id_sensors_sensor_id_get**](SensorsApi.md#get_sensor_api_v1_campaigns_campaign_id_stations_station_id_sensors_sensor_id_get) | **GET** /api/v1/campaigns/{campaign_id}/stations/{station_id}/sensors/{sensor_id} | Get Sensor
119
[**list_sensors_api_v1_campaigns_campaign_id_stations_station_id_sensors_get**](SensorsApi.md#list_sensors_api_v1_campaigns_campaign_id_stations_station_id_sensors_get) | **GET** /api/v1/campaigns/{campaign_id}/stations/{station_id}/sensors | List Sensors
1210
[**partial_update_sensor_api_v1_campaigns_campaign_id_stations_station_id_sensors_sensor_id_patch**](SensorsApi.md#partial_update_sensor_api_v1_campaigns_campaign_id_stations_station_id_sensors_sensor_id_patch) | **PATCH** /api/v1/campaigns/{campaign_id}/stations/{station_id}/sensors/{sensor_id} | Partial Update Sensor
@@ -86,164 +84,6 @@ void (empty response body)
8684

8785
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
8886

89-
# **force_update_sensor_statistics_api_v1_campaigns_campaign_id_stations_station_id_sensors_statistics_post**
90-
> ForceUpdateSensorStatisticsResponse force_update_sensor_statistics_api_v1_campaigns_campaign_id_stations_station_id_sensors_statistics_post(campaign_id, station_id)
91-
92-
Force Update Sensor Statistics
93-
94-
Force update sensor statistics for all sensors in the station
95-
96-
### Example
97-
98-
* OAuth Authentication (OAuth2PasswordBearer):
99-
100-
```python
101-
import upstream_api_client
102-
from upstream_api_client.models.force_update_sensor_statistics_response import ForceUpdateSensorStatisticsResponse
103-
from upstream_api_client.rest import ApiException
104-
from pprint import pprint
105-
106-
# Defining the host is optional and defaults to http://localhost
107-
# See configuration.py for a list of all supported configuration parameters.
108-
configuration = upstream_api_client.Configuration(
109-
host = "http://localhost"
110-
)
111-
112-
# The client must configure the authentication and authorization parameters
113-
# in accordance with the API server security policy.
114-
# Examples for each auth method are provided below, use the example that
115-
# satisfies your auth use case.
116-
117-
configuration.access_token = os.environ["ACCESS_TOKEN"]
118-
119-
# Enter a context with an instance of the API client
120-
with upstream_api_client.ApiClient(configuration) as api_client:
121-
# Create an instance of the API class
122-
api_instance = upstream_api_client.SensorsApi(api_client)
123-
campaign_id = 56 # int |
124-
station_id = 56 # int |
125-
126-
try:
127-
# Force Update Sensor Statistics
128-
api_response = api_instance.force_update_sensor_statistics_api_v1_campaigns_campaign_id_stations_station_id_sensors_statistics_post(campaign_id, station_id)
129-
print("The response of SensorsApi->force_update_sensor_statistics_api_v1_campaigns_campaign_id_stations_station_id_sensors_statistics_post:\n")
130-
pprint(api_response)
131-
except Exception as e:
132-
print("Exception when calling SensorsApi->force_update_sensor_statistics_api_v1_campaigns_campaign_id_stations_station_id_sensors_statistics_post: %s\n" % e)
133-
```
134-
135-
136-
137-
### Parameters
138-
139-
140-
Name | Type | Description | Notes
141-
------------- | ------------- | ------------- | -------------
142-
**campaign_id** | **int**| |
143-
**station_id** | **int**| |
144-
145-
### Return type
146-
147-
[**ForceUpdateSensorStatisticsResponse**](ForceUpdateSensorStatisticsResponse.md)
148-
149-
### Authorization
150-
151-
[OAuth2PasswordBearer](../README.md#OAuth2PasswordBearer)
152-
153-
### HTTP request headers
154-
155-
- **Content-Type**: Not defined
156-
- **Accept**: application/json
157-
158-
### HTTP response details
159-
160-
| Status code | Description | Response headers |
161-
|-------------|-------------|------------------|
162-
**200** | Successful Response | - |
163-
**422** | Validation Error | - |
164-
165-
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
166-
167-
# **force_update_single_sensor_statistics_api_v1_campaigns_campaign_id_stations_station_id_sensors_sensor_id_statistics_post**
168-
> UpdateSensorStatisticsResponse force_update_single_sensor_statistics_api_v1_campaigns_campaign_id_stations_station_id_sensors_sensor_id_statistics_post(campaign_id, station_id, sensor_id)
169-
170-
Force Update Single Sensor Statistics
171-
172-
Force update sensor statistics for a single sensor
173-
174-
### Example
175-
176-
* OAuth Authentication (OAuth2PasswordBearer):
177-
178-
```python
179-
import upstream_api_client
180-
from upstream_api_client.models.update_sensor_statistics_response import UpdateSensorStatisticsResponse
181-
from upstream_api_client.rest import ApiException
182-
from pprint import pprint
183-
184-
# Defining the host is optional and defaults to http://localhost
185-
# See configuration.py for a list of all supported configuration parameters.
186-
configuration = upstream_api_client.Configuration(
187-
host = "http://localhost"
188-
)
189-
190-
# The client must configure the authentication and authorization parameters
191-
# in accordance with the API server security policy.
192-
# Examples for each auth method are provided below, use the example that
193-
# satisfies your auth use case.
194-
195-
configuration.access_token = os.environ["ACCESS_TOKEN"]
196-
197-
# Enter a context with an instance of the API client
198-
with upstream_api_client.ApiClient(configuration) as api_client:
199-
# Create an instance of the API class
200-
api_instance = upstream_api_client.SensorsApi(api_client)
201-
campaign_id = 56 # int |
202-
station_id = 56 # int |
203-
sensor_id = 56 # int |
204-
205-
try:
206-
# Force Update Single Sensor Statistics
207-
api_response = api_instance.force_update_single_sensor_statistics_api_v1_campaigns_campaign_id_stations_station_id_sensors_sensor_id_statistics_post(campaign_id, station_id, sensor_id)
208-
print("The response of SensorsApi->force_update_single_sensor_statistics_api_v1_campaigns_campaign_id_stations_station_id_sensors_sensor_id_statistics_post:\n")
209-
pprint(api_response)
210-
except Exception as e:
211-
print("Exception when calling SensorsApi->force_update_single_sensor_statistics_api_v1_campaigns_campaign_id_stations_station_id_sensors_sensor_id_statistics_post: %s\n" % e)
212-
```
213-
214-
215-
216-
### Parameters
217-
218-
219-
Name | Type | Description | Notes
220-
------------- | ------------- | ------------- | -------------
221-
**campaign_id** | **int**| |
222-
**station_id** | **int**| |
223-
**sensor_id** | **int**| |
224-
225-
### Return type
226-
227-
[**UpdateSensorStatisticsResponse**](UpdateSensorStatisticsResponse.md)
228-
229-
### Authorization
230-
231-
[OAuth2PasswordBearer](../README.md#OAuth2PasswordBearer)
232-
233-
### HTTP request headers
234-
235-
- **Content-Type**: Not defined
236-
- **Accept**: application/json
237-
238-
### HTTP response details
239-
240-
| Status code | Description | Response headers |
241-
|-------------|-------------|------------------|
242-
**200** | Successful Response | - |
243-
**422** | Validation Error | - |
244-
245-
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
246-
24787
# **get_sensor_api_v1_campaigns_campaign_id_stations_station_id_sensors_sensor_id_get**
24888
> GetSensorResponse get_sensor_api_v1_campaigns_campaign_id_stations_station_id_sensors_sensor_id_get(station_id, sensor_id, campaign_id)
24989
@@ -334,7 +174,6 @@ List Sensors
334174
```python
335175
import upstream_api_client
336176
from upstream_api_client.models.list_sensors_response_pagination import ListSensorsResponsePagination
337-
from upstream_api_client.models.sort_field import SortField
338177
from upstream_api_client.rest import ApiException
339178
from pprint import pprint
340179

docs/ValidationError.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
8-
**loc** | [**List[ValidationErrorLocInner]**](ValidationErrorLocInner.md) | |
8+
**loc** | [**List[Location1Inner]**](Location1Inner.md) | |
99
**msg** | **str** | |
1010
**type** | **str** | |
1111

git_push.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ if [ "$git_host" = "" ]; then
1414
fi
1515

1616
if [ "$git_user_id" = "" ]; then
17-
git_user_id="In-For-Disaster-Analytics"
17+
git_user_id="GIT_USER_ID"
1818
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
1919
fi
2020

2121
if [ "$git_repo_id" = "" ]; then
22-
git_repo_id="upstream-python-api-client"
22+
git_repo_id="GIT_REPO_ID"
2323
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
2424
fi
2525

pyproject.toml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
[project]
22
name = "upstream_api_client"
3-
version = "0.1.9"
3+
version = "1.0.0"
44
description = "Upstream Sensor Storage"
55
authors = [
66
{name = "Will Mobley",email = "wmobley@tacc.utexas.edu"},
77
]
8-
license = "MIT"
98
readme = "README.md"
109
keywords = ["OpenAPI", "OpenAPI-Generator", "Upstream Sensor Storage"]
1110
requires-python = ">=3.9"
@@ -14,11 +13,11 @@ dependencies = [
1413
"urllib3 (>=2.1.0,<3.0.0)",
1514
"python-dateutil (>=2.8.2)",
1615
"pydantic (>=2)",
17-
"typing-extensions (>=4.7.1)"
16+
"typing-extensions (>=4.7.1)",
1817
]
1918

2019
[project.urls]
21-
Repository = "https://github.com/In-For-Disaster-Analytics/upstream-python-api-client"
20+
Repository = "https://github.com/GIT_USER_ID/GIT_REPO_ID"
2221

2322
[tool.poetry]
2423
requires-poetry = ">=2.0"

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
# prerequisite: setuptools
2323
# http://pypi.python.org/pypi/setuptools
2424
NAME = "upstream-api-client"
25-
VERSION = "0.1.9"
25+
VERSION = "1.0.0"
2626
PYTHON_REQUIRES = ">= 3.9"
2727
REQUIRES = [
2828
"urllib3 >= 2.1.0, < 3.0.0",
@@ -37,7 +37,7 @@
3737
description="Upstream Sensor Storage",
3838
author="Will Mobley",
3939
author_email="wmobley@tacc.utexas.edu",
40-
url="https://github.com/In-For-Disaster-Analytics/upstream-python-api-client",
40+
url="",
4141
keywords=["OpenAPI", "OpenAPI-Generator", "Upstream Sensor Storage"],
4242
install_requires=REQUIRES,
4343
packages=find_packages(exclude=["test", "tests"]),

0 commit comments

Comments
 (0)