-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1241 from virtualcell/vcell-usage-page
admin page for usage
- Loading branch information
Showing
49 changed files
with
1,680 additions
and
180 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
# vcell_client.AdminResourceApi | ||
|
||
All URIs are relative to *https://vcellapi-test.cam.uchc.edu* | ||
|
||
Method | HTTP request | Description | ||
------------- | ------------- | ------------- | ||
[**get_usage**](AdminResourceApi.md#get_usage) | **GET** /api/v1/admin/usage | Get usage summary | ||
|
||
|
||
# **get_usage** | ||
> bytearray get_usage() | ||
Get usage summary | ||
|
||
### Example | ||
|
||
```python | ||
import time | ||
import os | ||
import vcell_client | ||
from vcell_client.rest import ApiException | ||
from pprint import pprint | ||
|
||
# Defining the host is optional and defaults to https://vcellapi-test.cam.uchc.edu | ||
# See configuration.py for a list of all supported configuration parameters. | ||
configuration = vcell_client.Configuration( | ||
host = "https://vcellapi-test.cam.uchc.edu" | ||
) | ||
|
||
# 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. | ||
|
||
# Enter a context with an instance of the API client | ||
with vcell_client.ApiClient(configuration) as api_client: | ||
# Create an instance of the API class | ||
api_instance = vcell_client.AdminResourceApi(api_client) | ||
|
||
try: | ||
# Get usage summary | ||
api_response = api_instance.get_usage() | ||
print("The response of AdminResourceApi->get_usage:\n") | ||
pprint(api_response) | ||
except Exception as e: | ||
print("Exception when calling AdminResourceApi->get_usage: %s\n" % e) | ||
``` | ||
|
||
|
||
|
||
### Parameters | ||
This endpoint does not need any parameter. | ||
|
||
### Return type | ||
|
||
**bytearray** | ||
|
||
### Authorization | ||
|
||
[openId](../README.md#openId) | ||
|
||
### HTTP request headers | ||
|
||
- **Content-Type**: Not defined | ||
- **Accept**: application/pdf | ||
|
||
### HTTP response details | ||
| Status code | Description | Response headers | | ||
|-------------|-------------|------------------| | ||
**200** | The PDF report | - | | ||
**401** | Not Authorized | - | | ||
**403** | Not Allowed | - | | ||
|
||
[[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) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# coding: utf-8 | ||
|
||
""" | ||
VCell API | ||
VCell API | ||
The version of the OpenAPI document: 1.0.1 | ||
Contact: vcell_support@uchc.com | ||
Generated by OpenAPI Generator (https://openapi-generator.tech) | ||
Do not edit the class manually. | ||
""" # noqa: E501 | ||
|
||
|
||
import unittest | ||
|
||
from vcell_client.api.admin_resource_api import AdminResourceApi | ||
|
||
|
||
class TestAdminResourceApi(unittest.TestCase): | ||
"""AdminResourceApi unit test stubs""" | ||
|
||
def setUp(self) -> None: | ||
self.api = AdminResourceApi() | ||
|
||
def tearDown(self) -> None: | ||
pass | ||
|
||
def test_get_usage(self) -> None: | ||
"""Test case for get_usage | ||
Get usage summary | ||
""" | ||
pass | ||
|
||
|
||
if __name__ == '__main__': | ||
unittest.main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.