Skip to content

Commit

Permalink
generate latest python client
Browse files Browse the repository at this point in the history
  • Loading branch information
sblack-usu committed Oct 3, 2024
1 parent bb700b2 commit ca8cd74
Show file tree
Hide file tree
Showing 9 changed files with 102 additions and 827 deletions.
29 changes: 3 additions & 26 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
.github/workflows/python.yml
.gitignore
.gitlab-ci.yml
.openapi-generator-ignore
.travis.yml
README.md
docs/ArgoApi.md
Expand All @@ -18,6 +17,7 @@ docs/HydroShareMetadata.md
docs/HydroshareApi.md
docs/LogsResponseModel.md
docs/MinioApi.md
docs/NWMVersionEnum.md
docs/OAuth2AuthorizeResponse.md
docs/PhaseEnum.md
docs/Submission.md
Expand Down Expand Up @@ -53,6 +53,7 @@ openapi_client/models/geo_json_geometry.py
openapi_client/models/http_validation_error.py
openapi_client/models/hydro_share_metadata.py
openapi_client/models/logs_response_model.py
openapi_client/models/nwm_version_enum.py
openapi_client/models/o_auth2_authorize_response.py
openapi_client/models/phase_enum.py
openapi_client/models/submission.py
Expand All @@ -70,29 +71,5 @@ setup.cfg
setup.py
test-requirements.txt
test/__init__.py
test/test_argo_api.py
test/test_auth_api.py
test/test_dataset_metadata_request_model.py
test/test_detail.py
test/test_error_model.py
test/test_extract_metadata_request_body.py
test/test_geo_json_feature.py
test/test_geo_json_feature_collection.py
test/test_geo_json_geometry.py
test/test_http_validation_error.py
test/test_hydro_share_metadata.py
test/test_hydroshare_api.py
test/test_logs_response_model.py
test/test_minio_api.py
test/test_o_auth2_authorize_response.py
test/test_phase_enum.py
test/test_submission.py
test/test_submission_response_model.py
test/test_user_read.py
test/test_user_submissions_response_model.py
test/test_user_update.py
test/test_users_api.py
test/test_utilities_api.py
test/test_validation_error.py
test/test_validation_error_loc_inner.py
test/test_nwm_version_enum.py
tox.ini
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,6 @@ Class | Method | HTTP request | Description
*ArgoApi* | [**refresh_workflow_refresh_get**](docs/ArgoApi.md#refresh_workflow_refresh_get) | **GET** /refresh | Refresh Workflow
*ArgoApi* | [**refresh_workflow_refresh_workflow_id_get**](docs/ArgoApi.md#refresh_workflow_refresh_workflow_id_get) | **GET** /refresh/{workflow_id} | Refresh Workflow
*ArgoApi* | [**submissions_submissions_get**](docs/ArgoApi.md#submissions_submissions_get) | **GET** /submissions | Submissions
*ArgoApi* | [**submit_nwm1_submit_nwm1_post**](docs/ArgoApi.md#submit_nwm1_submit_nwm1_post) | **POST** /submit/nwm1 | Submit Nwm1
*ArgoApi* | [**submit_nwm2_submit_nwm2_post**](docs/ArgoApi.md#submit_nwm2_submit_nwm2_post) | **POST** /submit/nwm2 | Submit Nwm2
*ArgoApi* | [**submit_nwm_submit_nwm_post**](docs/ArgoApi.md#submit_nwm_submit_nwm_post) | **POST** /submit/nwm | Submit Nwm
*ArgoApi* | [**submit_parflow_submit_parflow_post**](docs/ArgoApi.md#submit_parflow_submit_parflow_post) | **POST** /submit/parflow | Submit Parflow
*AuthApi* | [**oauth_oauth2_jwt_authorize_auth_cuahsi_authorize_get**](docs/AuthApi.md#oauth_oauth2_jwt_authorize_auth_cuahsi_authorize_get) | **GET** /auth/cuahsi/authorize | Oauth:Oauth2.Jwt.Authorize
Expand Down Expand Up @@ -142,6 +140,7 @@ Class | Method | HTTP request | Description
- [HTTPValidationError](docs/HTTPValidationError.md)
- [HydroShareMetadata](docs/HydroShareMetadata.md)
- [LogsResponseModel](docs/LogsResponseModel.md)
- [NWMVersionEnum](docs/NWMVersionEnum.md)
- [OAuth2AuthorizeResponse](docs/OAuth2AuthorizeResponse.md)
- [PhaseEnum](docs/PhaseEnum.md)
- [Submission](docs/Submission.md)
Expand Down
167 changes: 3 additions & 164 deletions docs/ArgoApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ Method | HTTP request | Description
[**refresh_workflow_refresh_get**](ArgoApi.md#refresh_workflow_refresh_get) | **GET** /refresh | Refresh Workflow
[**refresh_workflow_refresh_workflow_id_get**](ArgoApi.md#refresh_workflow_refresh_workflow_id_get) | **GET** /refresh/{workflow_id} | Refresh Workflow
[**submissions_submissions_get**](ArgoApi.md#submissions_submissions_get) | **GET** /submissions | Submissions
[**submit_nwm1_submit_nwm1_post**](ArgoApi.md#submit_nwm1_submit_nwm1_post) | **POST** /submit/nwm1 | Submit Nwm1
[**submit_nwm2_submit_nwm2_post**](ArgoApi.md#submit_nwm2_submit_nwm2_post) | **POST** /submit/nwm2 | Submit Nwm2
[**submit_nwm_submit_nwm_post**](ArgoApi.md#submit_nwm_submit_nwm_post) | **POST** /submit/nwm | Submit Nwm
[**submit_parflow_submit_parflow_post**](ArgoApi.md#submit_parflow_submit_parflow_post) | **POST** /submit/parflow | Submit Parflow

Expand Down Expand Up @@ -449,166 +447,6 @@ This endpoint does not need any parameter.

[[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)

# **submit_nwm1_submit_nwm1_post**
> SubmissionResponseModel submit_nwm1_submit_nwm1_post(y_south, x_west, y_north, x_east)
Submit Nwm1

### Example

* OAuth Authentication (OAuth2PasswordBearer):

```python
import openapi_client
from openapi_client.models.submission_response_model import SubmissionResponseModel
from openapi_client.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://subsetter-api-jbzfw6l52q-uc.a.run.app
# See configuration.py for a list of all supported configuration parameters.
configuration = openapi_client.Configuration(
host = "https://subsetter-api-jbzfw6l52q-uc.a.run.app"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

configuration.access_token = os.environ["ACCESS_TOKEN"]

# Enter a context with an instance of the API client
with openapi_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = openapi_client.ArgoApi(api_client)
y_south = 3.4 # float |
x_west = 3.4 # float |
y_north = 3.4 # float |
x_east = 3.4 # float |

try:
# Submit Nwm1
api_response = api_instance.submit_nwm1_submit_nwm1_post(y_south, x_west, y_north, x_east)
print("The response of ArgoApi->submit_nwm1_submit_nwm1_post:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ArgoApi->submit_nwm1_submit_nwm1_post: %s\n" % e)
```



### Parameters


Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**y_south** | **float**| |
**x_west** | **float**| |
**y_north** | **float**| |
**x_east** | **float**| |

### Return type

[**SubmissionResponseModel**](SubmissionResponseModel.md)

### Authorization

[OAuth2PasswordBearer](../README.md#OAuth2PasswordBearer)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

### HTTP response details

| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** | Successful Response | - |
**422** | Validation Error | - |

[[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)

# **submit_nwm2_submit_nwm2_post**
> SubmissionResponseModel submit_nwm2_submit_nwm2_post(y_south, x_west, y_north, x_east)
Submit Nwm2

### Example

* OAuth Authentication (OAuth2PasswordBearer):

```python
import openapi_client
from openapi_client.models.submission_response_model import SubmissionResponseModel
from openapi_client.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://subsetter-api-jbzfw6l52q-uc.a.run.app
# See configuration.py for a list of all supported configuration parameters.
configuration = openapi_client.Configuration(
host = "https://subsetter-api-jbzfw6l52q-uc.a.run.app"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

configuration.access_token = os.environ["ACCESS_TOKEN"]

# Enter a context with an instance of the API client
with openapi_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = openapi_client.ArgoApi(api_client)
y_south = 3.4 # float |
x_west = 3.4 # float |
y_north = 3.4 # float |
x_east = 3.4 # float |

try:
# Submit Nwm2
api_response = api_instance.submit_nwm2_submit_nwm2_post(y_south, x_west, y_north, x_east)
print("The response of ArgoApi->submit_nwm2_submit_nwm2_post:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling ArgoApi->submit_nwm2_submit_nwm2_post: %s\n" % e)
```



### Parameters


Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**y_south** | **float**| |
**x_west** | **float**| |
**y_north** | **float**| |
**x_east** | **float**| |

### Return type

[**SubmissionResponseModel**](SubmissionResponseModel.md)

### Authorization

[OAuth2PasswordBearer](../README.md#OAuth2PasswordBearer)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

### HTTP response details

| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** | Successful Response | - |
**422** | Validation Error | - |

[[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)

# **submit_nwm_submit_nwm_post**
> SubmissionResponseModel submit_nwm_submit_nwm_post(y_south, x_west, y_north, x_east, model_version)
Expand All @@ -620,6 +458,7 @@ Submit Nwm

```python
import openapi_client
from openapi_client.models.nwm_version_enum import NWMVersionEnum
from openapi_client.models.submission_response_model import SubmissionResponseModel
from openapi_client.rest import ApiException
from pprint import pprint
Expand All @@ -645,7 +484,7 @@ with openapi_client.ApiClient(configuration) as api_client:
x_west = 3.4 # float |
y_north = 3.4 # float |
x_east = 3.4 # float |
model_version = 'model_version_example' # str |
model_version = openapi_client.NWMVersionEnum() # NWMVersionEnum |

try:
# Submit Nwm
Expand All @@ -667,7 +506,7 @@ Name | Type | Description | Notes
**x_west** | **float**| |
**y_north** | **float**| |
**x_east** | **float**| |
**model_version** | **str**| |
**model_version** | [**NWMVersionEnum**](.md)| |

### Return type

Expand Down
14 changes: 14 additions & 0 deletions docs/NWMVersionEnum.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# NWMVersionEnum


## Enum

* `NWM1` (value: `'nwm1'`)

* `NWM2` (value: `'nwm2'`)

* `NWM3` (value: `'nwm3'`)

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


1 change: 1 addition & 0 deletions openapi_client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
from openapi_client.models.http_validation_error import HTTPValidationError
from openapi_client.models.hydro_share_metadata import HydroShareMetadata
from openapi_client.models.logs_response_model import LogsResponseModel
from openapi_client.models.nwm_version_enum import NWMVersionEnum
from openapi_client.models.o_auth2_authorize_response import OAuth2AuthorizeResponse
from openapi_client.models.phase_enum import PhaseEnum
from openapi_client.models.submission import Submission
Expand Down
Loading

0 comments on commit ca8cd74

Please sign in to comment.