Update on API changes: support HTTP Basic Auth.
This commit is contained in:
Родитель
7c1162363b
Коммит
da81769109
|
@ -50,6 +50,10 @@ import time
|
|||
import hpc_acm
|
||||
from hpc_acm.rest import ApiException
|
||||
from pprint import pprint
|
||||
|
||||
# Configure HTTP basic authorization: basic_auth
|
||||
hpc_acm.configuration.username = 'YOUR_USERNAME'
|
||||
hpc_acm.configuration.password = 'YOUR_PASSWORD'
|
||||
# create an instance of the API class
|
||||
api_instance = hpc_acm.DefaultApi()
|
||||
id = 56 # int | Job id
|
||||
|
@ -143,7 +147,10 @@ Class | Method | HTTP request | Description
|
|||
|
||||
## Documentation For Authorization
|
||||
|
||||
All endpoints do not require authorization.
|
||||
|
||||
## basic_auth
|
||||
|
||||
- **Type**: HTTP basic authentication
|
||||
|
||||
|
||||
## Author
|
||||
|
|
|
@ -50,8 +50,13 @@ import hpc_acm
|
|||
from hpc_acm.rest import ApiException
|
||||
from pprint import pprint
|
||||
|
||||
# Configure HTTP basic authorization: basic_auth
|
||||
configuration = hpc_acm.Configuration()
|
||||
configuration.username = 'YOUR_USERNAME'
|
||||
configuration.password = 'YOUR_PASSWORD'
|
||||
|
||||
# create an instance of the API class
|
||||
api_instance = hpc_acm.DefaultApi()
|
||||
api_instance = hpc_acm.DefaultApi(hpc_acm.ApiClient(configuration))
|
||||
id = 56 # int | Job id
|
||||
job = hpc_acm.JobUpdate() # JobUpdate | (optional)
|
||||
|
||||
|
@ -75,7 +80,7 @@ void (empty response body)
|
|||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
[basic_auth](../README.md#basic_auth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
|
@ -97,8 +102,13 @@ import hpc_acm
|
|||
from hpc_acm.rest import ApiException
|
||||
from pprint import pprint
|
||||
|
||||
# Configure HTTP basic authorization: basic_auth
|
||||
configuration = hpc_acm.Configuration()
|
||||
configuration.username = 'YOUR_USERNAME'
|
||||
configuration.password = 'YOUR_PASSWORD'
|
||||
|
||||
# create an instance of the API class
|
||||
api_instance = hpc_acm.DefaultApi()
|
||||
api_instance = hpc_acm.DefaultApi(hpc_acm.ApiClient(configuration))
|
||||
id = 56 # int | Job id
|
||||
job = hpc_acm.JobUpdate() # JobUpdate | (optional)
|
||||
|
||||
|
@ -122,7 +132,7 @@ void (empty response body)
|
|||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
[basic_auth](../README.md#basic_auth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
|
@ -144,8 +154,13 @@ import hpc_acm
|
|||
from hpc_acm.rest import ApiException
|
||||
from pprint import pprint
|
||||
|
||||
# Configure HTTP basic authorization: basic_auth
|
||||
configuration = hpc_acm.Configuration()
|
||||
configuration.username = 'YOUR_USERNAME'
|
||||
configuration.password = 'YOUR_PASSWORD'
|
||||
|
||||
# create an instance of the API class
|
||||
api_instance = hpc_acm.DefaultApi()
|
||||
api_instance = hpc_acm.DefaultApi(hpc_acm.ApiClient(configuration))
|
||||
job = hpc_acm.Job() # Job | (optional)
|
||||
|
||||
try:
|
||||
|
@ -168,7 +183,7 @@ Name | Type | Description | Notes
|
|||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
[basic_auth](../README.md#basic_auth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
|
@ -190,8 +205,13 @@ import hpc_acm
|
|||
from hpc_acm.rest import ApiException
|
||||
from pprint import pprint
|
||||
|
||||
# Configure HTTP basic authorization: basic_auth
|
||||
configuration = hpc_acm.Configuration()
|
||||
configuration.username = 'YOUR_USERNAME'
|
||||
configuration.password = 'YOUR_PASSWORD'
|
||||
|
||||
# create an instance of the API class
|
||||
api_instance = hpc_acm.DefaultApi()
|
||||
api_instance = hpc_acm.DefaultApi(hpc_acm.ApiClient(configuration))
|
||||
job = hpc_acm.Job() # Job | (optional)
|
||||
|
||||
try:
|
||||
|
@ -214,7 +234,7 @@ Name | Type | Description | Notes
|
|||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
[basic_auth](../README.md#basic_auth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
|
@ -236,8 +256,13 @@ import hpc_acm
|
|||
from hpc_acm.rest import ApiException
|
||||
from pprint import pprint
|
||||
|
||||
# Configure HTTP basic authorization: basic_auth
|
||||
configuration = hpc_acm.Configuration()
|
||||
configuration.username = 'YOUR_USERNAME'
|
||||
configuration.password = 'YOUR_PASSWORD'
|
||||
|
||||
# create an instance of the API class
|
||||
api_instance = hpc_acm.DefaultApi()
|
||||
api_instance = hpc_acm.DefaultApi(hpc_acm.ApiClient(configuration))
|
||||
|
||||
try:
|
||||
# Get summary of ClusRun jobs
|
||||
|
@ -256,7 +281,7 @@ This endpoint does not need any parameter.
|
|||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
[basic_auth](../README.md#basic_auth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
|
@ -278,8 +303,13 @@ import hpc_acm
|
|||
from hpc_acm.rest import ApiException
|
||||
from pprint import pprint
|
||||
|
||||
# Configure HTTP basic authorization: basic_auth
|
||||
configuration = hpc_acm.Configuration()
|
||||
configuration.username = 'YOUR_USERNAME'
|
||||
configuration.password = 'YOUR_PASSWORD'
|
||||
|
||||
# create an instance of the API class
|
||||
api_instance = hpc_acm.DefaultApi()
|
||||
api_instance = hpc_acm.DefaultApi(hpc_acm.ApiClient(configuration))
|
||||
id = 56 # int | Job id
|
||||
|
||||
try:
|
||||
|
@ -302,7 +332,7 @@ Name | Type | Description | Notes
|
|||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
[basic_auth](../README.md#basic_auth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
|
@ -324,8 +354,13 @@ import hpc_acm
|
|||
from hpc_acm.rest import ApiException
|
||||
from pprint import pprint
|
||||
|
||||
# Configure HTTP basic authorization: basic_auth
|
||||
configuration = hpc_acm.Configuration()
|
||||
configuration.username = 'YOUR_USERNAME'
|
||||
configuration.password = 'YOUR_PASSWORD'
|
||||
|
||||
# create an instance of the API class
|
||||
api_instance = hpc_acm.DefaultApi()
|
||||
api_instance = hpc_acm.DefaultApi(hpc_acm.ApiClient(configuration))
|
||||
id = 56 # int | Job id
|
||||
|
||||
try:
|
||||
|
@ -348,7 +383,7 @@ Name | Type | Description | Notes
|
|||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
[basic_auth](../README.md#basic_auth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
|
@ -370,8 +405,13 @@ import hpc_acm
|
|||
from hpc_acm.rest import ApiException
|
||||
from pprint import pprint
|
||||
|
||||
# Configure HTTP basic authorization: basic_auth
|
||||
configuration = hpc_acm.Configuration()
|
||||
configuration.username = 'YOUR_USERNAME'
|
||||
configuration.password = 'YOUR_PASSWORD'
|
||||
|
||||
# create an instance of the API class
|
||||
api_instance = hpc_acm.DefaultApi()
|
||||
api_instance = hpc_acm.DefaultApi(hpc_acm.ApiClient(configuration))
|
||||
last_id = 56 # int | The object id since which(but not included) the objects are requested (optional)
|
||||
count = 1000 # int | Requested number of objects (optional) (default to 1000)
|
||||
reverse = false # bool | Get the results in reverse order (optional) (default to false)
|
||||
|
@ -398,7 +438,7 @@ Name | Type | Description | Notes
|
|||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
[basic_auth](../README.md#basic_auth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
|
@ -420,8 +460,13 @@ import hpc_acm
|
|||
from hpc_acm.rest import ApiException
|
||||
from pprint import pprint
|
||||
|
||||
# Configure HTTP basic authorization: basic_auth
|
||||
configuration = hpc_acm.Configuration()
|
||||
configuration.username = 'YOUR_USERNAME'
|
||||
configuration.password = 'YOUR_PASSWORD'
|
||||
|
||||
# create an instance of the API class
|
||||
api_instance = hpc_acm.DefaultApi()
|
||||
api_instance = hpc_acm.DefaultApi(hpc_acm.ApiClient(configuration))
|
||||
key = 'key_example' # str | Result key of a task
|
||||
|
||||
try:
|
||||
|
@ -444,7 +489,7 @@ Name | Type | Description | Notes
|
|||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
[basic_auth](../README.md#basic_auth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
|
@ -466,8 +511,13 @@ import hpc_acm
|
|||
from hpc_acm.rest import ApiException
|
||||
from pprint import pprint
|
||||
|
||||
# Configure HTTP basic authorization: basic_auth
|
||||
configuration = hpc_acm.Configuration()
|
||||
configuration.username = 'YOUR_USERNAME'
|
||||
configuration.password = 'YOUR_PASSWORD'
|
||||
|
||||
# create an instance of the API class
|
||||
api_instance = hpc_acm.DefaultApi()
|
||||
api_instance = hpc_acm.DefaultApi(hpc_acm.ApiClient(configuration))
|
||||
key = 'key_example' # str | Result key of a task
|
||||
offset = 56 # int | The distance from the beginning of the output (optional)
|
||||
page_size = 56 # int | The size of requested piece of output (optional)
|
||||
|
@ -494,7 +544,7 @@ Name | Type | Description | Notes
|
|||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
[basic_auth](../README.md#basic_auth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
|
@ -516,8 +566,13 @@ import hpc_acm
|
|||
from hpc_acm.rest import ApiException
|
||||
from pprint import pprint
|
||||
|
||||
# Configure HTTP basic authorization: basic_auth
|
||||
configuration = hpc_acm.Configuration()
|
||||
configuration.username = 'YOUR_USERNAME'
|
||||
configuration.password = 'YOUR_PASSWORD'
|
||||
|
||||
# create an instance of the API class
|
||||
api_instance = hpc_acm.DefaultApi()
|
||||
api_instance = hpc_acm.DefaultApi(hpc_acm.ApiClient(configuration))
|
||||
id = 56 # int | Job id
|
||||
task_id = 56 # int | Task id
|
||||
|
||||
|
@ -542,7 +597,7 @@ Name | Type | Description | Notes
|
|||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
[basic_auth](../README.md#basic_auth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
|
@ -564,8 +619,13 @@ import hpc_acm
|
|||
from hpc_acm.rest import ApiException
|
||||
from pprint import pprint
|
||||
|
||||
# Configure HTTP basic authorization: basic_auth
|
||||
configuration = hpc_acm.Configuration()
|
||||
configuration.username = 'YOUR_USERNAME'
|
||||
configuration.password = 'YOUR_PASSWORD'
|
||||
|
||||
# create an instance of the API class
|
||||
api_instance = hpc_acm.DefaultApi()
|
||||
api_instance = hpc_acm.DefaultApi(hpc_acm.ApiClient(configuration))
|
||||
id = 56 # int | Job id
|
||||
task_id = 56 # int | Task id
|
||||
|
||||
|
@ -590,7 +650,7 @@ Name | Type | Description | Notes
|
|||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
[basic_auth](../README.md#basic_auth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
|
@ -612,8 +672,13 @@ import hpc_acm
|
|||
from hpc_acm.rest import ApiException
|
||||
from pprint import pprint
|
||||
|
||||
# Configure HTTP basic authorization: basic_auth
|
||||
configuration = hpc_acm.Configuration()
|
||||
configuration.username = 'YOUR_USERNAME'
|
||||
configuration.password = 'YOUR_PASSWORD'
|
||||
|
||||
# create an instance of the API class
|
||||
api_instance = hpc_acm.DefaultApi()
|
||||
api_instance = hpc_acm.DefaultApi(hpc_acm.ApiClient(configuration))
|
||||
id = 56 # int | Job id
|
||||
last_id = 56 # int | The object id since which(but not included) the objects are requested (optional)
|
||||
count = 1000 # int | Requested number of objects (optional) (default to 1000)
|
||||
|
@ -642,7 +707,7 @@ Name | Type | Description | Notes
|
|||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
[basic_auth](../README.md#basic_auth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
|
@ -664,8 +729,13 @@ import hpc_acm
|
|||
from hpc_acm.rest import ApiException
|
||||
from pprint import pprint
|
||||
|
||||
# Configure HTTP basic authorization: basic_auth
|
||||
configuration = hpc_acm.Configuration()
|
||||
configuration.username = 'YOUR_USERNAME'
|
||||
configuration.password = 'YOUR_PASSWORD'
|
||||
|
||||
# create an instance of the API class
|
||||
api_instance = hpc_acm.DefaultApi()
|
||||
api_instance = hpc_acm.DefaultApi(hpc_acm.ApiClient(configuration))
|
||||
id = 56 # int | Job id
|
||||
|
||||
try:
|
||||
|
@ -688,7 +758,7 @@ Name | Type | Description | Notes
|
|||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
[basic_auth](../README.md#basic_auth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
|
@ -710,8 +780,13 @@ import hpc_acm
|
|||
from hpc_acm.rest import ApiException
|
||||
from pprint import pprint
|
||||
|
||||
# Configure HTTP basic authorization: basic_auth
|
||||
configuration = hpc_acm.Configuration()
|
||||
configuration.username = 'YOUR_USERNAME'
|
||||
configuration.password = 'YOUR_PASSWORD'
|
||||
|
||||
# create an instance of the API class
|
||||
api_instance = hpc_acm.DefaultApi()
|
||||
api_instance = hpc_acm.DefaultApi(hpc_acm.ApiClient(configuration))
|
||||
id = 56 # int | Job id
|
||||
|
||||
try:
|
||||
|
@ -734,7 +809,7 @@ Name | Type | Description | Notes
|
|||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
[basic_auth](../README.md#basic_auth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
|
@ -756,8 +831,13 @@ import hpc_acm
|
|||
from hpc_acm.rest import ApiException
|
||||
from pprint import pprint
|
||||
|
||||
# Configure HTTP basic authorization: basic_auth
|
||||
configuration = hpc_acm.Configuration()
|
||||
configuration.username = 'YOUR_USERNAME'
|
||||
configuration.password = 'YOUR_PASSWORD'
|
||||
|
||||
# create an instance of the API class
|
||||
api_instance = hpc_acm.DefaultApi()
|
||||
api_instance = hpc_acm.DefaultApi(hpc_acm.ApiClient(configuration))
|
||||
|
||||
try:
|
||||
# Get summary of diagnostic jobs
|
||||
|
@ -776,7 +856,7 @@ This endpoint does not need any parameter.
|
|||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
[basic_auth](../README.md#basic_auth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
|
@ -798,8 +878,13 @@ import hpc_acm
|
|||
from hpc_acm.rest import ApiException
|
||||
from pprint import pprint
|
||||
|
||||
# Configure HTTP basic authorization: basic_auth
|
||||
configuration = hpc_acm.Configuration()
|
||||
configuration.username = 'YOUR_USERNAME'
|
||||
configuration.password = 'YOUR_PASSWORD'
|
||||
|
||||
# create an instance of the API class
|
||||
api_instance = hpc_acm.DefaultApi()
|
||||
api_instance = hpc_acm.DefaultApi(hpc_acm.ApiClient(configuration))
|
||||
last_id = 56 # int | The object id since which(but not included) the objects are requested (optional)
|
||||
count = 1000 # int | Requested number of objects (optional) (default to 1000)
|
||||
reverse = false # bool | Get the results in reverse order (optional) (default to false)
|
||||
|
@ -826,7 +911,7 @@ Name | Type | Description | Notes
|
|||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
[basic_auth](../README.md#basic_auth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
|
@ -848,8 +933,13 @@ import hpc_acm
|
|||
from hpc_acm.rest import ApiException
|
||||
from pprint import pprint
|
||||
|
||||
# Configure HTTP basic authorization: basic_auth
|
||||
configuration = hpc_acm.Configuration()
|
||||
configuration.username = 'YOUR_USERNAME'
|
||||
configuration.password = 'YOUR_PASSWORD'
|
||||
|
||||
# create an instance of the API class
|
||||
api_instance = hpc_acm.DefaultApi()
|
||||
api_instance = hpc_acm.DefaultApi(hpc_acm.ApiClient(configuration))
|
||||
id = 56 # int | Job id
|
||||
task_id = 56 # int | Task id
|
||||
|
||||
|
@ -874,7 +964,7 @@ Name | Type | Description | Notes
|
|||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
[basic_auth](../README.md#basic_auth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
|
@ -896,8 +986,13 @@ import hpc_acm
|
|||
from hpc_acm.rest import ApiException
|
||||
from pprint import pprint
|
||||
|
||||
# Configure HTTP basic authorization: basic_auth
|
||||
configuration = hpc_acm.Configuration()
|
||||
configuration.username = 'YOUR_USERNAME'
|
||||
configuration.password = 'YOUR_PASSWORD'
|
||||
|
||||
# create an instance of the API class
|
||||
api_instance = hpc_acm.DefaultApi()
|
||||
api_instance = hpc_acm.DefaultApi(hpc_acm.ApiClient(configuration))
|
||||
id = 56 # int | Job id
|
||||
task_id = 56 # int | Task id
|
||||
|
||||
|
@ -922,7 +1017,7 @@ Name | Type | Description | Notes
|
|||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
[basic_auth](../README.md#basic_auth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
|
@ -944,8 +1039,13 @@ import hpc_acm
|
|||
from hpc_acm.rest import ApiException
|
||||
from pprint import pprint
|
||||
|
||||
# Configure HTTP basic authorization: basic_auth
|
||||
configuration = hpc_acm.Configuration()
|
||||
configuration.username = 'YOUR_USERNAME'
|
||||
configuration.password = 'YOUR_PASSWORD'
|
||||
|
||||
# create an instance of the API class
|
||||
api_instance = hpc_acm.DefaultApi()
|
||||
api_instance = hpc_acm.DefaultApi(hpc_acm.ApiClient(configuration))
|
||||
id = 56 # int | Job id
|
||||
last_id = 56 # int | The object id since which(but not included) the objects are requested (optional)
|
||||
count = 1000 # int | Requested number of objects (optional) (default to 1000)
|
||||
|
@ -974,7 +1074,7 @@ Name | Type | Description | Notes
|
|||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
[basic_auth](../README.md#basic_auth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
|
@ -996,8 +1096,13 @@ import hpc_acm
|
|||
from hpc_acm.rest import ApiException
|
||||
from pprint import pprint
|
||||
|
||||
# Configure HTTP basic authorization: basic_auth
|
||||
configuration = hpc_acm.Configuration()
|
||||
configuration.username = 'YOUR_USERNAME'
|
||||
configuration.password = 'YOUR_PASSWORD'
|
||||
|
||||
# create an instance of the API class
|
||||
api_instance = hpc_acm.DefaultApi()
|
||||
api_instance = hpc_acm.DefaultApi(hpc_acm.ApiClient(configuration))
|
||||
|
||||
try:
|
||||
# Get available diagnostic tests
|
||||
|
@ -1016,7 +1121,7 @@ This endpoint does not need any parameter.
|
|||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
[basic_auth](../README.md#basic_auth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
|
@ -1038,8 +1143,13 @@ import hpc_acm
|
|||
from hpc_acm.rest import ApiException
|
||||
from pprint import pprint
|
||||
|
||||
# Configure HTTP basic authorization: basic_auth
|
||||
configuration = hpc_acm.Configuration()
|
||||
configuration.username = 'YOUR_USERNAME'
|
||||
configuration.password = 'YOUR_PASSWORD'
|
||||
|
||||
# create an instance of the API class
|
||||
api_instance = hpc_acm.DefaultApi()
|
||||
api_instance = hpc_acm.DefaultApi(hpc_acm.ApiClient(configuration))
|
||||
|
||||
try:
|
||||
# Get node metric categories
|
||||
|
@ -1058,7 +1168,7 @@ This endpoint does not need any parameter.
|
|||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
[basic_auth](../README.md#basic_auth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
|
@ -1080,8 +1190,13 @@ import hpc_acm
|
|||
from hpc_acm.rest import ApiException
|
||||
from pprint import pprint
|
||||
|
||||
# Configure HTTP basic authorization: basic_auth
|
||||
configuration = hpc_acm.Configuration()
|
||||
configuration.username = 'YOUR_USERNAME'
|
||||
configuration.password = 'YOUR_PASSWORD'
|
||||
|
||||
# create an instance of the API class
|
||||
api_instance = hpc_acm.DefaultApi()
|
||||
api_instance = hpc_acm.DefaultApi(hpc_acm.ApiClient(configuration))
|
||||
category = 'category_example' # str |
|
||||
last_node_id = 'last_node_id_example' # str | (optional)
|
||||
count = 1000 # int | Requested number of objects (optional) (default to 1000)
|
||||
|
@ -1108,7 +1223,7 @@ Name | Type | Description | Notes
|
|||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
[basic_auth](../README.md#basic_auth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
|
@ -1130,8 +1245,13 @@ import hpc_acm
|
|||
from hpc_acm.rest import ApiException
|
||||
from pprint import pprint
|
||||
|
||||
# Configure HTTP basic authorization: basic_auth
|
||||
configuration = hpc_acm.Configuration()
|
||||
configuration.username = 'YOUR_USERNAME'
|
||||
configuration.password = 'YOUR_PASSWORD'
|
||||
|
||||
# create an instance of the API class
|
||||
api_instance = hpc_acm.DefaultApi()
|
||||
api_instance = hpc_acm.DefaultApi(hpc_acm.ApiClient(configuration))
|
||||
id = 'id_example' # str | Node id
|
||||
|
||||
try:
|
||||
|
@ -1154,7 +1274,7 @@ Name | Type | Description | Notes
|
|||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
[basic_auth](../README.md#basic_auth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
|
@ -1176,8 +1296,13 @@ import hpc_acm
|
|||
from hpc_acm.rest import ApiException
|
||||
from pprint import pprint
|
||||
|
||||
# Configure HTTP basic authorization: basic_auth
|
||||
configuration = hpc_acm.Configuration()
|
||||
configuration.username = 'YOUR_USERNAME'
|
||||
configuration.password = 'YOUR_PASSWORD'
|
||||
|
||||
# create an instance of the API class
|
||||
api_instance = hpc_acm.DefaultApi()
|
||||
api_instance = hpc_acm.DefaultApi(hpc_acm.ApiClient(configuration))
|
||||
id = 'id_example' # str | Node id
|
||||
|
||||
try:
|
||||
|
@ -1200,7 +1325,7 @@ Name | Type | Description | Notes
|
|||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
[basic_auth](../README.md#basic_auth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
|
@ -1222,8 +1347,13 @@ import hpc_acm
|
|||
from hpc_acm.rest import ApiException
|
||||
from pprint import pprint
|
||||
|
||||
# Configure HTTP basic authorization: basic_auth
|
||||
configuration = hpc_acm.Configuration()
|
||||
configuration.username = 'YOUR_USERNAME'
|
||||
configuration.password = 'YOUR_PASSWORD'
|
||||
|
||||
# create an instance of the API class
|
||||
api_instance = hpc_acm.DefaultApi()
|
||||
api_instance = hpc_acm.DefaultApi(hpc_acm.ApiClient(configuration))
|
||||
id = 'id_example' # str | Node id
|
||||
|
||||
try:
|
||||
|
@ -1246,7 +1376,7 @@ Name | Type | Description | Notes
|
|||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
[basic_auth](../README.md#basic_auth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
|
@ -1268,8 +1398,13 @@ import hpc_acm
|
|||
from hpc_acm.rest import ApiException
|
||||
from pprint import pprint
|
||||
|
||||
# Configure HTTP basic authorization: basic_auth
|
||||
configuration = hpc_acm.Configuration()
|
||||
configuration.username = 'YOUR_USERNAME'
|
||||
configuration.password = 'YOUR_PASSWORD'
|
||||
|
||||
# create an instance of the API class
|
||||
api_instance = hpc_acm.DefaultApi()
|
||||
api_instance = hpc_acm.DefaultApi(hpc_acm.ApiClient(configuration))
|
||||
id = 'id_example' # str | Node id
|
||||
|
||||
try:
|
||||
|
@ -1292,7 +1427,7 @@ Name | Type | Description | Notes
|
|||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
[basic_auth](../README.md#basic_auth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
|
@ -1314,8 +1449,13 @@ import hpc_acm
|
|||
from hpc_acm.rest import ApiException
|
||||
from pprint import pprint
|
||||
|
||||
# Configure HTTP basic authorization: basic_auth
|
||||
configuration = hpc_acm.Configuration()
|
||||
configuration.username = 'YOUR_USERNAME'
|
||||
configuration.password = 'YOUR_PASSWORD'
|
||||
|
||||
# create an instance of the API class
|
||||
api_instance = hpc_acm.DefaultApi()
|
||||
api_instance = hpc_acm.DefaultApi(hpc_acm.ApiClient(configuration))
|
||||
id = 'id_example' # str | Node id
|
||||
|
||||
try:
|
||||
|
@ -1338,7 +1478,7 @@ Name | Type | Description | Notes
|
|||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
[basic_auth](../README.md#basic_auth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
|
@ -1360,8 +1500,13 @@ import hpc_acm
|
|||
from hpc_acm.rest import ApiException
|
||||
from pprint import pprint
|
||||
|
||||
# Configure HTTP basic authorization: basic_auth
|
||||
configuration = hpc_acm.Configuration()
|
||||
configuration.username = 'YOUR_USERNAME'
|
||||
configuration.password = 'YOUR_PASSWORD'
|
||||
|
||||
# create an instance of the API class
|
||||
api_instance = hpc_acm.DefaultApi()
|
||||
api_instance = hpc_acm.DefaultApi(hpc_acm.ApiClient(configuration))
|
||||
id = 'id_example' # str | Node id
|
||||
|
||||
try:
|
||||
|
@ -1384,7 +1529,7 @@ Name | Type | Description | Notes
|
|||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
[basic_auth](../README.md#basic_auth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
|
@ -1406,8 +1551,13 @@ import hpc_acm
|
|||
from hpc_acm.rest import ApiException
|
||||
from pprint import pprint
|
||||
|
||||
# Configure HTTP basic authorization: basic_auth
|
||||
configuration = hpc_acm.Configuration()
|
||||
configuration.username = 'YOUR_USERNAME'
|
||||
configuration.password = 'YOUR_PASSWORD'
|
||||
|
||||
# create an instance of the API class
|
||||
api_instance = hpc_acm.DefaultApi()
|
||||
api_instance = hpc_acm.DefaultApi(hpc_acm.ApiClient(configuration))
|
||||
|
||||
try:
|
||||
# Get summary of nodes
|
||||
|
@ -1426,7 +1576,7 @@ This endpoint does not need any parameter.
|
|||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
[basic_auth](../README.md#basic_auth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
|
@ -1448,8 +1598,13 @@ import hpc_acm
|
|||
from hpc_acm.rest import ApiException
|
||||
from pprint import pprint
|
||||
|
||||
# Configure HTTP basic authorization: basic_auth
|
||||
configuration = hpc_acm.Configuration()
|
||||
configuration.username = 'YOUR_USERNAME'
|
||||
configuration.password = 'YOUR_PASSWORD'
|
||||
|
||||
# create an instance of the API class
|
||||
api_instance = hpc_acm.DefaultApi()
|
||||
api_instance = hpc_acm.DefaultApi(hpc_acm.ApiClient(configuration))
|
||||
last_id = 56 # int | The object id since which(but not included) the objects are requested (optional)
|
||||
count = 1000 # int | Requested number of objects (optional) (default to 1000)
|
||||
|
||||
|
@ -1474,7 +1629,7 @@ Name | Type | Description | Notes
|
|||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
[basic_auth](../README.md#basic_auth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
|
|
|
@ -116,7 +116,7 @@ class DefaultApi(object):
|
|||
['application/json']) # noqa: E501
|
||||
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
auth_settings = ['basic_auth'] # noqa: E501
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/clusrun/{id}', 'PATCH',
|
||||
|
@ -217,7 +217,7 @@ class DefaultApi(object):
|
|||
['application/json']) # noqa: E501
|
||||
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
auth_settings = ['basic_auth'] # noqa: E501
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/diagnostics/{id}', 'PATCH',
|
||||
|
@ -310,7 +310,7 @@ class DefaultApi(object):
|
|||
['application/json']) # noqa: E501
|
||||
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
auth_settings = ['basic_auth'] # noqa: E501
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/clusrun', 'POST',
|
||||
|
@ -403,7 +403,7 @@ class DefaultApi(object):
|
|||
['application/json']) # noqa: E501
|
||||
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
auth_settings = ['basic_auth'] # noqa: E501
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/diagnostics', 'POST',
|
||||
|
@ -492,7 +492,7 @@ class DefaultApi(object):
|
|||
['application/json']) # noqa: E501
|
||||
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
auth_settings = ['basic_auth'] # noqa: E501
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/dashboard/clusrun', 'GET',
|
||||
|
@ -589,7 +589,7 @@ class DefaultApi(object):
|
|||
['application/json']) # noqa: E501
|
||||
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
auth_settings = ['basic_auth'] # noqa: E501
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/clusrun/{id}', 'GET',
|
||||
|
@ -686,7 +686,7 @@ class DefaultApi(object):
|
|||
['application/json']) # noqa: E501
|
||||
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
auth_settings = ['basic_auth'] # noqa: E501
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/clusrun/{id}/aggregationResult', 'GET',
|
||||
|
@ -787,7 +787,7 @@ class DefaultApi(object):
|
|||
['application/json']) # noqa: E501
|
||||
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
auth_settings = ['basic_auth'] # noqa: E501
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/clusrun', 'GET',
|
||||
|
@ -884,7 +884,7 @@ class DefaultApi(object):
|
|||
['application/json']) # noqa: E501
|
||||
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
auth_settings = ['basic_auth'] # noqa: E501
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/output/clusrun/{key}/raw', 'GET',
|
||||
|
@ -989,7 +989,7 @@ class DefaultApi(object):
|
|||
['application/json']) # noqa: E501
|
||||
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
auth_settings = ['basic_auth'] # noqa: E501
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/output/clusrun/{key}/page', 'GET',
|
||||
|
@ -1094,7 +1094,7 @@ class DefaultApi(object):
|
|||
['application/json']) # noqa: E501
|
||||
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
auth_settings = ['basic_auth'] # noqa: E501
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/clusrun/{id}/tasks/{taskId}', 'GET',
|
||||
|
@ -1199,7 +1199,7 @@ class DefaultApi(object):
|
|||
['application/json']) # noqa: E501
|
||||
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
auth_settings = ['basic_auth'] # noqa: E501
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/clusrun/{id}/tasks/{taskId}/result', 'GET',
|
||||
|
@ -1308,7 +1308,7 @@ class DefaultApi(object):
|
|||
['application/json']) # noqa: E501
|
||||
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
auth_settings = ['basic_auth'] # noqa: E501
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/clusrun/{id}/tasks', 'GET',
|
||||
|
@ -1405,7 +1405,7 @@ class DefaultApi(object):
|
|||
['application/json']) # noqa: E501
|
||||
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
auth_settings = ['basic_auth'] # noqa: E501
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/diagnostics/{id}', 'GET',
|
||||
|
@ -1502,7 +1502,7 @@ class DefaultApi(object):
|
|||
['application/json']) # noqa: E501
|
||||
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
auth_settings = ['basic_auth'] # noqa: E501
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/diagnostics/{id}/aggregationResult', 'GET',
|
||||
|
@ -1591,7 +1591,7 @@ class DefaultApi(object):
|
|||
['application/json']) # noqa: E501
|
||||
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
auth_settings = ['basic_auth'] # noqa: E501
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/dashboard/diagnostics', 'GET',
|
||||
|
@ -1692,7 +1692,7 @@ class DefaultApi(object):
|
|||
['application/json']) # noqa: E501
|
||||
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
auth_settings = ['basic_auth'] # noqa: E501
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/diagnostics', 'GET',
|
||||
|
@ -1797,7 +1797,7 @@ class DefaultApi(object):
|
|||
['application/json']) # noqa: E501
|
||||
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
auth_settings = ['basic_auth'] # noqa: E501
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/diagnostics/{id}/tasks/{taskId}', 'GET',
|
||||
|
@ -1902,7 +1902,7 @@ class DefaultApi(object):
|
|||
['application/json']) # noqa: E501
|
||||
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
auth_settings = ['basic_auth'] # noqa: E501
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/diagnostics/{id}/tasks/{taskId}/result', 'GET',
|
||||
|
@ -2011,7 +2011,7 @@ class DefaultApi(object):
|
|||
['application/json']) # noqa: E501
|
||||
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
auth_settings = ['basic_auth'] # noqa: E501
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/diagnostics/{id}/tasks', 'GET',
|
||||
|
@ -2100,7 +2100,7 @@ class DefaultApi(object):
|
|||
['application/json']) # noqa: E501
|
||||
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
auth_settings = ['basic_auth'] # noqa: E501
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/diagnostics/tests', 'GET',
|
||||
|
@ -2189,7 +2189,7 @@ class DefaultApi(object):
|
|||
['application/json']) # noqa: E501
|
||||
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
auth_settings = ['basic_auth'] # noqa: E501
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/metrics/categories', 'GET',
|
||||
|
@ -2294,7 +2294,7 @@ class DefaultApi(object):
|
|||
['application/json']) # noqa: E501
|
||||
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
auth_settings = ['basic_auth'] # noqa: E501
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/metrics/{category}', 'GET',
|
||||
|
@ -2391,7 +2391,7 @@ class DefaultApi(object):
|
|||
['application/json']) # noqa: E501
|
||||
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
auth_settings = ['basic_auth'] # noqa: E501
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/nodes/{id}', 'GET',
|
||||
|
@ -2488,7 +2488,7 @@ class DefaultApi(object):
|
|||
['application/json']) # noqa: E501
|
||||
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
auth_settings = ['basic_auth'] # noqa: E501
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/nodes/{id}/events', 'GET',
|
||||
|
@ -2585,7 +2585,7 @@ class DefaultApi(object):
|
|||
['application/json']) # noqa: E501
|
||||
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
auth_settings = ['basic_auth'] # noqa: E501
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/nodes/{id}/jobs', 'GET',
|
||||
|
@ -2682,7 +2682,7 @@ class DefaultApi(object):
|
|||
['application/json']) # noqa: E501
|
||||
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
auth_settings = ['basic_auth'] # noqa: E501
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/nodes/{id}/metadata', 'GET',
|
||||
|
@ -2779,7 +2779,7 @@ class DefaultApi(object):
|
|||
['application/json']) # noqa: E501
|
||||
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
auth_settings = ['basic_auth'] # noqa: E501
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/nodes/{id}/metricHistory', 'GET',
|
||||
|
@ -2876,7 +2876,7 @@ class DefaultApi(object):
|
|||
['application/json']) # noqa: E501
|
||||
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
auth_settings = ['basic_auth'] # noqa: E501
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/nodes/{id}/scheduledEvents', 'GET',
|
||||
|
@ -2965,7 +2965,7 @@ class DefaultApi(object):
|
|||
['application/json']) # noqa: E501
|
||||
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
auth_settings = ['basic_auth'] # noqa: E501
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/dashboard/nodes', 'GET',
|
||||
|
@ -3062,7 +3062,7 @@ class DefaultApi(object):
|
|||
['application/json']) # noqa: E501
|
||||
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
auth_settings = ['basic_auth'] # noqa: E501
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/nodes', 'GET',
|
||||
|
|
|
@ -224,6 +224,13 @@ class Configuration(six.with_metaclass(TypeWithDefault, object)):
|
|||
:return: The Auth Settings information dict.
|
||||
"""
|
||||
return {
|
||||
'basic_auth':
|
||||
{
|
||||
'type': 'basic',
|
||||
'in': 'header',
|
||||
'key': 'Authorization',
|
||||
'value': self.get_basic_auth_token()
|
||||
},
|
||||
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче