OAPI: regenerate code
This commit is contained in:
parent
cfb17b178d
commit
fdb0b82664
@ -10,7 +10,7 @@
|
||||
"""
|
||||
|
||||
|
||||
__version__ = "d8233363"
|
||||
__version__ = "cfb17b17"
|
||||
|
||||
# import ApiClient
|
||||
from flamenco.manager.api_client import ApiClient
|
||||
|
@ -21,8 +21,10 @@ from flamenco.manager.model_utils import ( # noqa: F401
|
||||
none_type,
|
||||
validate_and_convert_types
|
||||
)
|
||||
from flamenco.manager.model.error import Error
|
||||
from flamenco.manager.model.worker import Worker
|
||||
from flamenco.manager.model.worker_list import WorkerList
|
||||
from flamenco.manager.model.worker_status_change_request import WorkerStatusChangeRequest
|
||||
|
||||
|
||||
class WorkerMgtApi(object):
|
||||
@ -127,6 +129,62 @@ class WorkerMgtApi(object):
|
||||
},
|
||||
api_client=api_client
|
||||
)
|
||||
self.request_worker_status_change_endpoint = _Endpoint(
|
||||
settings={
|
||||
'response_type': None,
|
||||
'auth': [],
|
||||
'endpoint_path': '/api/worker-mgt/workers/{worker_id}/setstatus',
|
||||
'operation_id': 'request_worker_status_change',
|
||||
'http_method': 'POST',
|
||||
'servers': None,
|
||||
},
|
||||
params_map={
|
||||
'all': [
|
||||
'worker_id',
|
||||
'worker_status_change_request',
|
||||
],
|
||||
'required': [
|
||||
'worker_id',
|
||||
'worker_status_change_request',
|
||||
],
|
||||
'nullable': [
|
||||
],
|
||||
'enum': [
|
||||
],
|
||||
'validation': [
|
||||
]
|
||||
},
|
||||
root_map={
|
||||
'validations': {
|
||||
},
|
||||
'allowed_values': {
|
||||
},
|
||||
'openapi_types': {
|
||||
'worker_id':
|
||||
(str,),
|
||||
'worker_status_change_request':
|
||||
(WorkerStatusChangeRequest,),
|
||||
},
|
||||
'attribute_map': {
|
||||
'worker_id': 'worker_id',
|
||||
},
|
||||
'location_map': {
|
||||
'worker_id': 'path',
|
||||
'worker_status_change_request': 'body',
|
||||
},
|
||||
'collection_format_map': {
|
||||
}
|
||||
},
|
||||
headers_map={
|
||||
'accept': [
|
||||
'application/json'
|
||||
],
|
||||
'content_type': [
|
||||
'application/json'
|
||||
]
|
||||
},
|
||||
api_client=api_client
|
||||
)
|
||||
|
||||
def fetch_worker(
|
||||
self,
|
||||
@ -277,3 +335,84 @@ class WorkerMgtApi(object):
|
||||
kwargs['_host_index'] = kwargs.get('_host_index')
|
||||
return self.fetch_workers_endpoint.call_with_http_info(**kwargs)
|
||||
|
||||
def request_worker_status_change(
|
||||
self,
|
||||
worker_id,
|
||||
worker_status_change_request,
|
||||
**kwargs
|
||||
):
|
||||
"""request_worker_status_change # noqa: E501
|
||||
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
|
||||
>>> thread = api.request_worker_status_change(worker_id, worker_status_change_request, async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
Args:
|
||||
worker_id (str):
|
||||
worker_status_change_request (WorkerStatusChangeRequest): The status change to request.
|
||||
|
||||
Keyword Args:
|
||||
_return_http_data_only (bool): response data without head status
|
||||
code and headers. Default is True.
|
||||
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
||||
will be returned without reading/decoding response data.
|
||||
Default is True.
|
||||
_request_timeout (int/float/tuple): timeout setting for this request. If
|
||||
one number provided, it will be total request timeout. It can also
|
||||
be a pair (tuple) of (connection, read) timeouts.
|
||||
Default is None.
|
||||
_check_input_type (bool): specifies if type checking
|
||||
should be done one the data sent to the server.
|
||||
Default is True.
|
||||
_check_return_type (bool): specifies if type checking
|
||||
should be done one the data received from the server.
|
||||
Default is True.
|
||||
_spec_property_naming (bool): True if the variable names in the input data
|
||||
are serialized names, as specified in the OpenAPI document.
|
||||
False if the variable names in the input data
|
||||
are pythonic names, e.g. snake case (default)
|
||||
_content_type (str/None): force body content-type.
|
||||
Default is None and content-type will be predicted by allowed
|
||||
content-types and body.
|
||||
_host_index (int/None): specifies the index of the server
|
||||
that we want to use.
|
||||
Default is read from the configuration.
|
||||
async_req (bool): execute request asynchronously
|
||||
|
||||
Returns:
|
||||
None
|
||||
If the method is called asynchronously, returns the request
|
||||
thread.
|
||||
"""
|
||||
kwargs['async_req'] = kwargs.get(
|
||||
'async_req', False
|
||||
)
|
||||
kwargs['_return_http_data_only'] = kwargs.get(
|
||||
'_return_http_data_only', True
|
||||
)
|
||||
kwargs['_preload_content'] = kwargs.get(
|
||||
'_preload_content', True
|
||||
)
|
||||
kwargs['_request_timeout'] = kwargs.get(
|
||||
'_request_timeout', None
|
||||
)
|
||||
kwargs['_check_input_type'] = kwargs.get(
|
||||
'_check_input_type', True
|
||||
)
|
||||
kwargs['_check_return_type'] = kwargs.get(
|
||||
'_check_return_type', True
|
||||
)
|
||||
kwargs['_spec_property_naming'] = kwargs.get(
|
||||
'_spec_property_naming', False
|
||||
)
|
||||
kwargs['_content_type'] = kwargs.get(
|
||||
'_content_type')
|
||||
kwargs['_host_index'] = kwargs.get('_host_index')
|
||||
kwargs['worker_id'] = \
|
||||
worker_id
|
||||
kwargs['worker_status_change_request'] = \
|
||||
worker_status_change_request
|
||||
return self.request_worker_status_change_endpoint.call_with_http_info(**kwargs)
|
||||
|
||||
|
@ -76,7 +76,7 @@ class ApiClient(object):
|
||||
self.default_headers[header_name] = header_value
|
||||
self.cookie = cookie
|
||||
# Set default User-Agent.
|
||||
self.user_agent = 'Flamenco/d8233363 (Blender add-on)'
|
||||
self.user_agent = 'Flamenco/cfb17b17 (Blender add-on)'
|
||||
|
||||
def __enter__(self):
|
||||
return self
|
||||
|
@ -404,7 +404,7 @@ conf = flamenco.manager.Configuration(
|
||||
"OS: {env}\n"\
|
||||
"Python Version: {pyversion}\n"\
|
||||
"Version of the API: 1.0.0\n"\
|
||||
"SDK Package Version: d8233363".\
|
||||
"SDK Package Version: cfb17b17".\
|
||||
format(env=sys.platform, pyversion=sys.version)
|
||||
|
||||
def get_host_settings(self):
|
||||
|
@ -1,6 +1,6 @@
|
||||
# SocketIOWorkerUpdate
|
||||
|
||||
Subset of a Worker, sent over SocketIO when a worker changes. For new workers, `previous_status` will be excluded.
|
||||
Subset of a Worker, sent over SocketIO when a worker changes.
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
@ -12,6 +12,7 @@ Name | Type | Description | Notes
|
||||
**version** | **str** | |
|
||||
**previous_status** | [**WorkerStatus**](WorkerStatus.md) | | [optional]
|
||||
**status_requested** | [**WorkerStatus**](WorkerStatus.md) | | [optional]
|
||||
**lazy_status_request** | **bool** | Whether the worker is allowed to finish its current task before the status change is enforced. Mandatory when `status_requested` is set. | [optional]
|
||||
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
@ -13,6 +13,7 @@ Name | Type | Description | Notes
|
||||
**platform** | **str** | Operating system of the Worker |
|
||||
**supported_task_types** | **[str]** | |
|
||||
**status_requested** | [**WorkerStatus**](WorkerStatus.md) | | [optional]
|
||||
**lazy_status_request** | **bool** | | [optional]
|
||||
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
@ -6,6 +6,7 @@ Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
[**fetch_worker**](WorkerMgtApi.md#fetch_worker) | **GET** /api/worker-mgt/workers/{worker_id} | Fetch info about the worker.
|
||||
[**fetch_workers**](WorkerMgtApi.md#fetch_workers) | **GET** /api/worker-mgt/workers | Get list of workers.
|
||||
[**request_worker_status_change**](WorkerMgtApi.md#request_worker_status_change) | **POST** /api/worker-mgt/workers/{worker_id}/setstatus |
|
||||
|
||||
|
||||
# **fetch_worker**
|
||||
@ -134,3 +135,73 @@ No authorization required
|
||||
|
||||
[[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)
|
||||
|
||||
# **request_worker_status_change**
|
||||
> request_worker_status_change(worker_id, worker_status_change_request)
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
|
||||
```python
|
||||
import time
|
||||
import flamenco.manager
|
||||
from flamenco.manager.api import worker_mgt_api
|
||||
from flamenco.manager.model.error import Error
|
||||
from flamenco.manager.model.worker_status_change_request import WorkerStatusChangeRequest
|
||||
from pprint import pprint
|
||||
# Defining the host is optional and defaults to http://localhost
|
||||
# See configuration.py for a list of all supported configuration parameters.
|
||||
configuration = flamenco.manager.Configuration(
|
||||
host = "http://localhost"
|
||||
)
|
||||
|
||||
|
||||
# Enter a context with an instance of the API client
|
||||
with flamenco.manager.ApiClient() as api_client:
|
||||
# Create an instance of the API class
|
||||
api_instance = worker_mgt_api.WorkerMgtApi(api_client)
|
||||
worker_id = "worker_id_example" # str |
|
||||
worker_status_change_request = WorkerStatusChangeRequest(
|
||||
status_requested=WorkerStatus("starting"),
|
||||
is_lazy=True,
|
||||
) # WorkerStatusChangeRequest | The status change to request.
|
||||
|
||||
# example passing only required values which don't have defaults set
|
||||
try:
|
||||
api_instance.request_worker_status_change(worker_id, worker_status_change_request)
|
||||
except flamenco.manager.ApiException as e:
|
||||
print("Exception when calling WorkerMgtApi->request_worker_status_change: %s\n" % e)
|
||||
```
|
||||
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**worker_id** | **str**| |
|
||||
**worker_status_change_request** | [**WorkerStatusChangeRequest**](WorkerStatusChangeRequest.md)| The status change to request. |
|
||||
|
||||
### Return type
|
||||
|
||||
void (empty response body)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: application/json
|
||||
|
||||
|
||||
### HTTP response details
|
||||
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
**204** | Status change was accepted. | - |
|
||||
**0** | Unexpected 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)
|
||||
|
||||
|
14
addon/flamenco/manager/docs/WorkerStatusChangeRequest.md
Normal file
14
addon/flamenco/manager/docs/WorkerStatusChangeRequest.md
Normal file
@ -0,0 +1,14 @@
|
||||
# WorkerStatusChangeRequest
|
||||
|
||||
Request for a Worker to change its status.
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**status_requested** | [**WorkerStatus**](WorkerStatus.md) | |
|
||||
**is_lazy** | **bool** | Whether the status change should happen immediately, or after the worker's current task is finished. |
|
||||
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
@ -10,6 +10,7 @@ Name | Type | Description | Notes
|
||||
**status** | [**WorkerStatus**](WorkerStatus.md) | |
|
||||
**version** | **str** | Version of Flamenco this Worker is running |
|
||||
**status_requested** | [**WorkerStatus**](WorkerStatus.md) | | [optional]
|
||||
**lazy_status_request** | **bool** | | [optional]
|
||||
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
@ -94,6 +94,7 @@ class SocketIOWorkerUpdate(ModelNormal):
|
||||
'version': (str,), # noqa: E501
|
||||
'previous_status': (WorkerStatus,), # noqa: E501
|
||||
'status_requested': (WorkerStatus,), # noqa: E501
|
||||
'lazy_status_request': (bool,), # noqa: E501
|
||||
}
|
||||
|
||||
@cached_property
|
||||
@ -109,6 +110,7 @@ class SocketIOWorkerUpdate(ModelNormal):
|
||||
'version': 'version', # noqa: E501
|
||||
'previous_status': 'previous_status', # noqa: E501
|
||||
'status_requested': 'status_requested', # noqa: E501
|
||||
'lazy_status_request': 'lazy_status_request', # noqa: E501
|
||||
}
|
||||
|
||||
read_only_vars = {
|
||||
@ -161,6 +163,7 @@ class SocketIOWorkerUpdate(ModelNormal):
|
||||
_visited_composed_classes = (Animal,)
|
||||
previous_status (WorkerStatus): [optional] # noqa: E501
|
||||
status_requested (WorkerStatus): [optional] # noqa: E501
|
||||
lazy_status_request (bool): Whether the worker is allowed to finish its current task before the status change is enforced. Mandatory when `status_requested` is set. . [optional] # noqa: E501
|
||||
"""
|
||||
|
||||
_check_type = kwargs.pop('_check_type', True)
|
||||
@ -256,6 +259,7 @@ class SocketIOWorkerUpdate(ModelNormal):
|
||||
_visited_composed_classes = (Animal,)
|
||||
previous_status (WorkerStatus): [optional] # noqa: E501
|
||||
status_requested (WorkerStatus): [optional] # noqa: E501
|
||||
lazy_status_request (bool): Whether the worker is allowed to finish its current task before the status change is enforced. Mandatory when `status_requested` is set. . [optional] # noqa: E501
|
||||
"""
|
||||
|
||||
_check_type = kwargs.pop('_check_type', True)
|
||||
|
@ -99,6 +99,7 @@ class Worker(ModelComposed):
|
||||
'platform': (str,), # noqa: E501
|
||||
'supported_task_types': ([str],), # noqa: E501
|
||||
'status_requested': (WorkerStatus,), # noqa: E501
|
||||
'lazy_status_request': (bool,), # noqa: E501
|
||||
}
|
||||
|
||||
@cached_property
|
||||
@ -115,6 +116,7 @@ class Worker(ModelComposed):
|
||||
'platform': 'platform', # noqa: E501
|
||||
'supported_task_types': 'supported_task_types', # noqa: E501
|
||||
'status_requested': 'status_requested', # noqa: E501
|
||||
'lazy_status_request': 'lazy_status_request', # noqa: E501
|
||||
}
|
||||
|
||||
read_only_vars = {
|
||||
@ -164,6 +166,7 @@ class Worker(ModelComposed):
|
||||
through its discriminator because we passed in
|
||||
_visited_composed_classes = (Animal,)
|
||||
status_requested (WorkerStatus): [optional] # noqa: E501
|
||||
lazy_status_request (bool): [optional] # noqa: E501
|
||||
"""
|
||||
|
||||
_check_type = kwargs.pop('_check_type', True)
|
||||
@ -271,6 +274,7 @@ class Worker(ModelComposed):
|
||||
through its discriminator because we passed in
|
||||
_visited_composed_classes = (Animal,)
|
||||
status_requested (WorkerStatus): [optional] # noqa: E501
|
||||
lazy_status_request (bool): [optional] # noqa: E501
|
||||
"""
|
||||
|
||||
_check_type = kwargs.pop('_check_type', True)
|
||||
|
273
addon/flamenco/manager/model/worker_status_change_request.py
Normal file
273
addon/flamenco/manager/model/worker_status_change_request.py
Normal file
@ -0,0 +1,273 @@
|
||||
"""
|
||||
Flamenco manager
|
||||
|
||||
Render Farm manager API # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import re # noqa: F401
|
||||
import sys # noqa: F401
|
||||
|
||||
from flamenco.manager.model_utils import ( # noqa: F401
|
||||
ApiTypeError,
|
||||
ModelComposed,
|
||||
ModelNormal,
|
||||
ModelSimple,
|
||||
cached_property,
|
||||
change_keys_js_to_python,
|
||||
convert_js_args_to_python_args,
|
||||
date,
|
||||
datetime,
|
||||
file_type,
|
||||
none_type,
|
||||
validate_get_composed_info,
|
||||
OpenApiModel
|
||||
)
|
||||
from flamenco.manager.exceptions import ApiAttributeError
|
||||
|
||||
|
||||
def lazy_import():
|
||||
from flamenco.manager.model.worker_status import WorkerStatus
|
||||
globals()['WorkerStatus'] = WorkerStatus
|
||||
|
||||
|
||||
class WorkerStatusChangeRequest(ModelNormal):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
|
||||
Attributes:
|
||||
allowed_values (dict): The key is the tuple path to the attribute
|
||||
and the for var_name this is (var_name,). The value is a dict
|
||||
with a capitalized key describing the allowed value and an allowed
|
||||
value. These dicts store the allowed enum values.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
discriminator_value_class_map (dict): A dict to go from the discriminator
|
||||
variable value to the discriminator class name.
|
||||
validations (dict): The key is the tuple path to the attribute
|
||||
and the for var_name this is (var_name,). The value is a dict
|
||||
that stores validations for max_length, min_length, max_items,
|
||||
min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
|
||||
inclusive_minimum, and regex.
|
||||
additional_properties_type (tuple): A tuple of classes accepted
|
||||
as additional properties values.
|
||||
"""
|
||||
|
||||
allowed_values = {
|
||||
}
|
||||
|
||||
validations = {
|
||||
}
|
||||
|
||||
@cached_property
|
||||
def additional_properties_type():
|
||||
"""
|
||||
This must be a method because a model may have properties that are
|
||||
of type self, this must run after the class is loaded
|
||||
"""
|
||||
lazy_import()
|
||||
return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
|
||||
|
||||
_nullable = False
|
||||
|
||||
@cached_property
|
||||
def openapi_types():
|
||||
"""
|
||||
This must be a method because a model may have properties that are
|
||||
of type self, this must run after the class is loaded
|
||||
|
||||
Returns
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
"""
|
||||
lazy_import()
|
||||
return {
|
||||
'status_requested': (WorkerStatus,), # noqa: E501
|
||||
'is_lazy': (bool,), # noqa: E501
|
||||
}
|
||||
|
||||
@cached_property
|
||||
def discriminator():
|
||||
return None
|
||||
|
||||
|
||||
attribute_map = {
|
||||
'status_requested': 'status_requested', # noqa: E501
|
||||
'is_lazy': 'is_lazy', # noqa: E501
|
||||
}
|
||||
|
||||
read_only_vars = {
|
||||
}
|
||||
|
||||
_composed_schemas = {}
|
||||
|
||||
@classmethod
|
||||
@convert_js_args_to_python_args
|
||||
def _from_openapi_data(cls, status_requested, is_lazy, *args, **kwargs): # noqa: E501
|
||||
"""WorkerStatusChangeRequest - a model defined in OpenAPI
|
||||
|
||||
Args:
|
||||
status_requested (WorkerStatus):
|
||||
is_lazy (bool): Whether the status change should happen immediately, or after the worker's current task is finished.
|
||||
|
||||
Keyword Args:
|
||||
_check_type (bool): if True, values for parameters in openapi_types
|
||||
will be type checked and a TypeError will be
|
||||
raised if the wrong type is input.
|
||||
Defaults to True
|
||||
_path_to_item (tuple/list): This is a list of keys or values to
|
||||
drill down to the model in received_data
|
||||
when deserializing a response
|
||||
_spec_property_naming (bool): True if the variable names in the input data
|
||||
are serialized names, as specified in the OpenAPI document.
|
||||
False if the variable names in the input data
|
||||
are pythonic names, e.g. snake case (default)
|
||||
_configuration (Configuration): the instance to use when
|
||||
deserializing a file_type parameter.
|
||||
If passed, type conversion is attempted
|
||||
If omitted no type conversion is done.
|
||||
_visited_composed_classes (tuple): This stores a tuple of
|
||||
classes that we have traveled through so that
|
||||
if we see that class again we will not use its
|
||||
discriminator again.
|
||||
When traveling through a discriminator, the
|
||||
composed schema that is
|
||||
is traveled through is added to this set.
|
||||
For example if Animal has a discriminator
|
||||
petType and we pass in "Dog", and the class Dog
|
||||
allOf includes Animal, we move through Animal
|
||||
once using the discriminator, and pick Dog.
|
||||
Then in Dog, we will make an instance of the
|
||||
Animal class but this time we won't travel
|
||||
through its discriminator because we passed in
|
||||
_visited_composed_classes = (Animal,)
|
||||
"""
|
||||
|
||||
_check_type = kwargs.pop('_check_type', True)
|
||||
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
|
||||
_path_to_item = kwargs.pop('_path_to_item', ())
|
||||
_configuration = kwargs.pop('_configuration', None)
|
||||
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
|
||||
|
||||
self = super(OpenApiModel, cls).__new__(cls)
|
||||
|
||||
if args:
|
||||
raise ApiTypeError(
|
||||
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
|
||||
args,
|
||||
self.__class__.__name__,
|
||||
),
|
||||
path_to_item=_path_to_item,
|
||||
valid_classes=(self.__class__,),
|
||||
)
|
||||
|
||||
self._data_store = {}
|
||||
self._check_type = _check_type
|
||||
self._spec_property_naming = _spec_property_naming
|
||||
self._path_to_item = _path_to_item
|
||||
self._configuration = _configuration
|
||||
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
||||
|
||||
self.status_requested = status_requested
|
||||
self.is_lazy = is_lazy
|
||||
for var_name, var_value in kwargs.items():
|
||||
if var_name not in self.attribute_map and \
|
||||
self._configuration is not None and \
|
||||
self._configuration.discard_unknown_keys and \
|
||||
self.additional_properties_type is None:
|
||||
# discard variable.
|
||||
continue
|
||||
setattr(self, var_name, var_value)
|
||||
return self
|
||||
|
||||
required_properties = set([
|
||||
'_data_store',
|
||||
'_check_type',
|
||||
'_spec_property_naming',
|
||||
'_path_to_item',
|
||||
'_configuration',
|
||||
'_visited_composed_classes',
|
||||
])
|
||||
|
||||
@convert_js_args_to_python_args
|
||||
def __init__(self, status_requested, is_lazy, *args, **kwargs): # noqa: E501
|
||||
"""WorkerStatusChangeRequest - a model defined in OpenAPI
|
||||
|
||||
Args:
|
||||
status_requested (WorkerStatus):
|
||||
is_lazy (bool): Whether the status change should happen immediately, or after the worker's current task is finished.
|
||||
|
||||
Keyword Args:
|
||||
_check_type (bool): if True, values for parameters in openapi_types
|
||||
will be type checked and a TypeError will be
|
||||
raised if the wrong type is input.
|
||||
Defaults to True
|
||||
_path_to_item (tuple/list): This is a list of keys or values to
|
||||
drill down to the model in received_data
|
||||
when deserializing a response
|
||||
_spec_property_naming (bool): True if the variable names in the input data
|
||||
are serialized names, as specified in the OpenAPI document.
|
||||
False if the variable names in the input data
|
||||
are pythonic names, e.g. snake case (default)
|
||||
_configuration (Configuration): the instance to use when
|
||||
deserializing a file_type parameter.
|
||||
If passed, type conversion is attempted
|
||||
If omitted no type conversion is done.
|
||||
_visited_composed_classes (tuple): This stores a tuple of
|
||||
classes that we have traveled through so that
|
||||
if we see that class again we will not use its
|
||||
discriminator again.
|
||||
When traveling through a discriminator, the
|
||||
composed schema that is
|
||||
is traveled through is added to this set.
|
||||
For example if Animal has a discriminator
|
||||
petType and we pass in "Dog", and the class Dog
|
||||
allOf includes Animal, we move through Animal
|
||||
once using the discriminator, and pick Dog.
|
||||
Then in Dog, we will make an instance of the
|
||||
Animal class but this time we won't travel
|
||||
through its discriminator because we passed in
|
||||
_visited_composed_classes = (Animal,)
|
||||
"""
|
||||
|
||||
_check_type = kwargs.pop('_check_type', True)
|
||||
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
|
||||
_path_to_item = kwargs.pop('_path_to_item', ())
|
||||
_configuration = kwargs.pop('_configuration', None)
|
||||
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
|
||||
|
||||
if args:
|
||||
raise ApiTypeError(
|
||||
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
|
||||
args,
|
||||
self.__class__.__name__,
|
||||
),
|
||||
path_to_item=_path_to_item,
|
||||
valid_classes=(self.__class__,),
|
||||
)
|
||||
|
||||
self._data_store = {}
|
||||
self._check_type = _check_type
|
||||
self._spec_property_naming = _spec_property_naming
|
||||
self._path_to_item = _path_to_item
|
||||
self._configuration = _configuration
|
||||
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
||||
|
||||
self.status_requested = status_requested
|
||||
self.is_lazy = is_lazy
|
||||
for var_name, var_value in kwargs.items():
|
||||
if var_name not in self.attribute_map and \
|
||||
self._configuration is not None and \
|
||||
self._configuration.discard_unknown_keys and \
|
||||
self.additional_properties_type is None:
|
||||
# discard variable.
|
||||
continue
|
||||
setattr(self, var_name, var_value)
|
||||
if var_name in self.read_only_vars:
|
||||
raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
|
||||
f"class with read only attributes.")
|
@ -92,6 +92,7 @@ class WorkerSummary(ModelNormal):
|
||||
'status': (WorkerStatus,), # noqa: E501
|
||||
'version': (str,), # noqa: E501
|
||||
'status_requested': (WorkerStatus,), # noqa: E501
|
||||
'lazy_status_request': (bool,), # noqa: E501
|
||||
}
|
||||
|
||||
@cached_property
|
||||
@ -105,6 +106,7 @@ class WorkerSummary(ModelNormal):
|
||||
'status': 'status', # noqa: E501
|
||||
'version': 'version', # noqa: E501
|
||||
'status_requested': 'status_requested', # noqa: E501
|
||||
'lazy_status_request': 'lazy_status_request', # noqa: E501
|
||||
}
|
||||
|
||||
read_only_vars = {
|
||||
@ -155,6 +157,7 @@ class WorkerSummary(ModelNormal):
|
||||
through its discriminator because we passed in
|
||||
_visited_composed_classes = (Animal,)
|
||||
status_requested (WorkerStatus): [optional] # noqa: E501
|
||||
lazy_status_request (bool): [optional] # noqa: E501
|
||||
"""
|
||||
|
||||
_check_type = kwargs.pop('_check_type', True)
|
||||
@ -247,6 +250,7 @@ class WorkerSummary(ModelNormal):
|
||||
through its discriminator because we passed in
|
||||
_visited_composed_classes = (Animal,)
|
||||
status_requested (WorkerStatus): [optional] # noqa: E501
|
||||
lazy_status_request (bool): [optional] # noqa: E501
|
||||
"""
|
||||
|
||||
_check_type = kwargs.pop('_check_type', True)
|
||||
|
@ -62,4 +62,5 @@ from flamenco.manager.model.worker_sign_on import WorkerSignOn
|
||||
from flamenco.manager.model.worker_state_change import WorkerStateChange
|
||||
from flamenco.manager.model.worker_state_changed import WorkerStateChanged
|
||||
from flamenco.manager.model.worker_status import WorkerStatus
|
||||
from flamenco.manager.model.worker_status_change_request import WorkerStatusChangeRequest
|
||||
from flamenco.manager.model.worker_summary import WorkerSummary
|
||||
|
@ -4,7 +4,7 @@ Render Farm manager API
|
||||
The `flamenco.manager` package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
||||
|
||||
- API version: 1.0.0
|
||||
- Package version: d8233363
|
||||
- Package version: cfb17b17
|
||||
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
|
||||
For more information, please visit [https://flamenco.io/](https://flamenco.io/)
|
||||
|
||||
@ -97,6 +97,7 @@ Class | Method | HTTP request | Description
|
||||
*WorkerApi* | [**worker_state_changed**](flamenco/manager/docs/WorkerApi.md#worker_state_changed) | **POST** /api/worker/state-changed | Worker changed state. This could be as acknowledgement of a Manager-requested state change, or in response to worker-local signals.
|
||||
*WorkerMgtApi* | [**fetch_worker**](flamenco/manager/docs/WorkerMgtApi.md#fetch_worker) | **GET** /api/worker-mgt/workers/{worker_id} | Fetch info about the worker.
|
||||
*WorkerMgtApi* | [**fetch_workers**](flamenco/manager/docs/WorkerMgtApi.md#fetch_workers) | **GET** /api/worker-mgt/workers | Get list of workers.
|
||||
*WorkerMgtApi* | [**request_worker_status_change**](flamenco/manager/docs/WorkerMgtApi.md#request_worker_status_change) | **POST** /api/worker-mgt/workers/{worker_id}/setstatus |
|
||||
|
||||
|
||||
## Documentation For Models
|
||||
@ -154,6 +155,7 @@ Class | Method | HTTP request | Description
|
||||
- [WorkerStateChange](flamenco/manager/docs/WorkerStateChange.md)
|
||||
- [WorkerStateChanged](flamenco/manager/docs/WorkerStateChanged.md)
|
||||
- [WorkerStatus](flamenco/manager/docs/WorkerStatus.md)
|
||||
- [WorkerStatusChangeRequest](flamenco/manager/docs/WorkerStatusChangeRequest.md)
|
||||
- [WorkerSummary](flamenco/manager/docs/WorkerSummary.md)
|
||||
|
||||
|
||||
|
@ -336,6 +336,46 @@ func (mr *MockFlamencoClientMockRecorder) RegisterWorkerWithResponse(arg0, arg1
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RegisterWorkerWithResponse", reflect.TypeOf((*MockFlamencoClient)(nil).RegisterWorkerWithResponse), varargs...)
|
||||
}
|
||||
|
||||
// RequestWorkerStatusChangeWithBodyWithResponse mocks base method.
|
||||
func (m *MockFlamencoClient) RequestWorkerStatusChangeWithBodyWithResponse(arg0 context.Context, arg1, arg2 string, arg3 io.Reader, arg4 ...api.RequestEditorFn) (*api.RequestWorkerStatusChangeResponse, error) {
|
||||
m.ctrl.T.Helper()
|
||||
varargs := []interface{}{arg0, arg1, arg2, arg3}
|
||||
for _, a := range arg4 {
|
||||
varargs = append(varargs, a)
|
||||
}
|
||||
ret := m.ctrl.Call(m, "RequestWorkerStatusChangeWithBodyWithResponse", varargs...)
|
||||
ret0, _ := ret[0].(*api.RequestWorkerStatusChangeResponse)
|
||||
ret1, _ := ret[1].(error)
|
||||
return ret0, ret1
|
||||
}
|
||||
|
||||
// RequestWorkerStatusChangeWithBodyWithResponse indicates an expected call of RequestWorkerStatusChangeWithBodyWithResponse.
|
||||
func (mr *MockFlamencoClientMockRecorder) RequestWorkerStatusChangeWithBodyWithResponse(arg0, arg1, arg2, arg3 interface{}, arg4 ...interface{}) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
varargs := append([]interface{}{arg0, arg1, arg2, arg3}, arg4...)
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RequestWorkerStatusChangeWithBodyWithResponse", reflect.TypeOf((*MockFlamencoClient)(nil).RequestWorkerStatusChangeWithBodyWithResponse), varargs...)
|
||||
}
|
||||
|
||||
// RequestWorkerStatusChangeWithResponse mocks base method.
|
||||
func (m *MockFlamencoClient) RequestWorkerStatusChangeWithResponse(arg0 context.Context, arg1 string, arg2 api.RequestWorkerStatusChangeJSONRequestBody, arg3 ...api.RequestEditorFn) (*api.RequestWorkerStatusChangeResponse, error) {
|
||||
m.ctrl.T.Helper()
|
||||
varargs := []interface{}{arg0, arg1, arg2}
|
||||
for _, a := range arg3 {
|
||||
varargs = append(varargs, a)
|
||||
}
|
||||
ret := m.ctrl.Call(m, "RequestWorkerStatusChangeWithResponse", varargs...)
|
||||
ret0, _ := ret[0].(*api.RequestWorkerStatusChangeResponse)
|
||||
ret1, _ := ret[1].(error)
|
||||
return ret0, ret1
|
||||
}
|
||||
|
||||
// RequestWorkerStatusChangeWithResponse indicates an expected call of RequestWorkerStatusChangeWithResponse.
|
||||
func (mr *MockFlamencoClientMockRecorder) RequestWorkerStatusChangeWithResponse(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
varargs := append([]interface{}{arg0, arg1, arg2}, arg3...)
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RequestWorkerStatusChangeWithResponse", reflect.TypeOf((*MockFlamencoClient)(nil).RequestWorkerStatusChangeWithResponse), varargs...)
|
||||
}
|
||||
|
||||
// ScheduleTaskWithResponse mocks base method.
|
||||
func (m *MockFlamencoClient) ScheduleTaskWithResponse(arg0 context.Context, arg1 ...api.RequestEditorFn) (*api.ScheduleTaskResponse, error) {
|
||||
m.ctrl.T.Helper()
|
||||
|
@ -140,6 +140,11 @@ type ClientInterface interface {
|
||||
// FetchWorker request
|
||||
FetchWorker(ctx context.Context, workerId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
||||
|
||||
// RequestWorkerStatusChange request with any body
|
||||
RequestWorkerStatusChangeWithBody(ctx context.Context, workerId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
||||
|
||||
RequestWorkerStatusChange(ctx context.Context, workerId string, body RequestWorkerStatusChangeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
||||
|
||||
// RegisterWorker request with any body
|
||||
RegisterWorkerWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
||||
|
||||
@ -405,6 +410,30 @@ func (c *Client) FetchWorker(ctx context.Context, workerId string, reqEditors ..
|
||||
return c.Client.Do(req)
|
||||
}
|
||||
|
||||
func (c *Client) RequestWorkerStatusChangeWithBody(ctx context.Context, workerId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
||||
req, err := NewRequestWorkerStatusChangeRequestWithBody(c.Server, workerId, contentType, body)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
req = req.WithContext(ctx)
|
||||
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return c.Client.Do(req)
|
||||
}
|
||||
|
||||
func (c *Client) RequestWorkerStatusChange(ctx context.Context, workerId string, body RequestWorkerStatusChangeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
||||
req, err := NewRequestWorkerStatusChangeRequest(c.Server, workerId, body)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
req = req.WithContext(ctx)
|
||||
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return c.Client.Do(req)
|
||||
}
|
||||
|
||||
func (c *Client) RegisterWorkerWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
||||
req, err := NewRegisterWorkerRequestWithBody(c.Server, contentType, body)
|
||||
if err != nil {
|
||||
@ -1107,6 +1136,53 @@ func NewFetchWorkerRequest(server string, workerId string) (*http.Request, error
|
||||
return req, nil
|
||||
}
|
||||
|
||||
// NewRequestWorkerStatusChangeRequest calls the generic RequestWorkerStatusChange builder with application/json body
|
||||
func NewRequestWorkerStatusChangeRequest(server string, workerId string, body RequestWorkerStatusChangeJSONRequestBody) (*http.Request, error) {
|
||||
var bodyReader io.Reader
|
||||
buf, err := json.Marshal(body)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
bodyReader = bytes.NewReader(buf)
|
||||
return NewRequestWorkerStatusChangeRequestWithBody(server, workerId, "application/json", bodyReader)
|
||||
}
|
||||
|
||||
// NewRequestWorkerStatusChangeRequestWithBody generates requests for RequestWorkerStatusChange with any type of body
|
||||
func NewRequestWorkerStatusChangeRequestWithBody(server string, workerId string, contentType string, body io.Reader) (*http.Request, error) {
|
||||
var err error
|
||||
|
||||
var pathParam0 string
|
||||
|
||||
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "worker_id", runtime.ParamLocationPath, workerId)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
serverURL, err := url.Parse(server)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
operationPath := fmt.Sprintf("/api/worker-mgt/workers/%s/setstatus", pathParam0)
|
||||
if operationPath[0] == '/' {
|
||||
operationPath = "." + operationPath
|
||||
}
|
||||
|
||||
queryURL, err := serverURL.Parse(operationPath)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
req, err := http.NewRequest("POST", queryURL.String(), body)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
req.Header.Add("Content-Type", contentType)
|
||||
|
||||
return req, nil
|
||||
}
|
||||
|
||||
// NewRegisterWorkerRequest calls the generic RegisterWorker builder with application/json body
|
||||
func NewRegisterWorkerRequest(server string, body RegisterWorkerJSONRequestBody) (*http.Request, error) {
|
||||
var bodyReader io.Reader
|
||||
@ -1668,6 +1744,11 @@ type ClientWithResponsesInterface interface {
|
||||
// FetchWorker request
|
||||
FetchWorkerWithResponse(ctx context.Context, workerId string, reqEditors ...RequestEditorFn) (*FetchWorkerResponse, error)
|
||||
|
||||
// RequestWorkerStatusChange request with any body
|
||||
RequestWorkerStatusChangeWithBodyWithResponse(ctx context.Context, workerId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RequestWorkerStatusChangeResponse, error)
|
||||
|
||||
RequestWorkerStatusChangeWithResponse(ctx context.Context, workerId string, body RequestWorkerStatusChangeJSONRequestBody, reqEditors ...RequestEditorFn) (*RequestWorkerStatusChangeResponse, error)
|
||||
|
||||
// RegisterWorker request with any body
|
||||
RegisterWorkerWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RegisterWorkerResponse, error)
|
||||
|
||||
@ -2029,6 +2110,28 @@ func (r FetchWorkerResponse) StatusCode() int {
|
||||
return 0
|
||||
}
|
||||
|
||||
type RequestWorkerStatusChangeResponse struct {
|
||||
Body []byte
|
||||
HTTPResponse *http.Response
|
||||
JSONDefault *Error
|
||||
}
|
||||
|
||||
// Status returns HTTPResponse.Status
|
||||
func (r RequestWorkerStatusChangeResponse) Status() string {
|
||||
if r.HTTPResponse != nil {
|
||||
return r.HTTPResponse.Status
|
||||
}
|
||||
return http.StatusText(0)
|
||||
}
|
||||
|
||||
// StatusCode returns HTTPResponse.StatusCode
|
||||
func (r RequestWorkerStatusChangeResponse) StatusCode() int {
|
||||
if r.HTTPResponse != nil {
|
||||
return r.HTTPResponse.StatusCode
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type RegisterWorkerResponse struct {
|
||||
Body []byte
|
||||
HTTPResponse *http.Response
|
||||
@ -2462,6 +2565,23 @@ func (c *ClientWithResponses) FetchWorkerWithResponse(ctx context.Context, worke
|
||||
return ParseFetchWorkerResponse(rsp)
|
||||
}
|
||||
|
||||
// RequestWorkerStatusChangeWithBodyWithResponse request with arbitrary body returning *RequestWorkerStatusChangeResponse
|
||||
func (c *ClientWithResponses) RequestWorkerStatusChangeWithBodyWithResponse(ctx context.Context, workerId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RequestWorkerStatusChangeResponse, error) {
|
||||
rsp, err := c.RequestWorkerStatusChangeWithBody(ctx, workerId, contentType, body, reqEditors...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ParseRequestWorkerStatusChangeResponse(rsp)
|
||||
}
|
||||
|
||||
func (c *ClientWithResponses) RequestWorkerStatusChangeWithResponse(ctx context.Context, workerId string, body RequestWorkerStatusChangeJSONRequestBody, reqEditors ...RequestEditorFn) (*RequestWorkerStatusChangeResponse, error) {
|
||||
rsp, err := c.RequestWorkerStatusChange(ctx, workerId, body, reqEditors...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ParseRequestWorkerStatusChangeResponse(rsp)
|
||||
}
|
||||
|
||||
// RegisterWorkerWithBodyWithResponse request with arbitrary body returning *RegisterWorkerResponse
|
||||
func (c *ClientWithResponses) RegisterWorkerWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RegisterWorkerResponse, error) {
|
||||
rsp, err := c.RegisterWorkerWithBody(ctx, contentType, body, reqEditors...)
|
||||
@ -3010,6 +3130,32 @@ func ParseFetchWorkerResponse(rsp *http.Response) (*FetchWorkerResponse, error)
|
||||
return response, nil
|
||||
}
|
||||
|
||||
// ParseRequestWorkerStatusChangeResponse parses an HTTP response from a RequestWorkerStatusChangeWithResponse call
|
||||
func ParseRequestWorkerStatusChangeResponse(rsp *http.Response) (*RequestWorkerStatusChangeResponse, error) {
|
||||
bodyBytes, err := ioutil.ReadAll(rsp.Body)
|
||||
defer func() { _ = rsp.Body.Close() }()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
response := &RequestWorkerStatusChangeResponse{
|
||||
Body: bodyBytes,
|
||||
HTTPResponse: rsp,
|
||||
}
|
||||
|
||||
switch {
|
||||
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && true:
|
||||
var dest Error
|
||||
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
response.JSONDefault = &dest
|
||||
|
||||
}
|
||||
|
||||
return response, nil
|
||||
}
|
||||
|
||||
// ParseRegisterWorkerResponse parses an HTTP response from a RegisterWorkerWithResponse call
|
||||
func ParseRegisterWorkerResponse(rsp *http.Response) (*RegisterWorkerResponse, error) {
|
||||
bodyBytes, err := ioutil.ReadAll(rsp.Body)
|
||||
|
@ -55,6 +55,9 @@ type ServerInterface interface {
|
||||
// Fetch info about the worker.
|
||||
// (GET /api/worker-mgt/workers/{worker_id})
|
||||
FetchWorker(ctx echo.Context, workerId string) error
|
||||
|
||||
// (POST /api/worker-mgt/workers/{worker_id}/setstatus)
|
||||
RequestWorkerStatusChange(ctx echo.Context, workerId string) error
|
||||
// Register a new worker
|
||||
// (POST /api/worker/register-worker)
|
||||
RegisterWorker(ctx echo.Context) error
|
||||
@ -281,6 +284,22 @@ func (w *ServerInterfaceWrapper) FetchWorker(ctx echo.Context) error {
|
||||
return err
|
||||
}
|
||||
|
||||
// RequestWorkerStatusChange converts echo context to params.
|
||||
func (w *ServerInterfaceWrapper) RequestWorkerStatusChange(ctx echo.Context) error {
|
||||
var err error
|
||||
// ------------- Path parameter "worker_id" -------------
|
||||
var workerId string
|
||||
|
||||
err = runtime.BindStyledParameterWithLocation("simple", false, "worker_id", runtime.ParamLocationPath, ctx.Param("worker_id"), &workerId)
|
||||
if err != nil {
|
||||
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter worker_id: %s", err))
|
||||
}
|
||||
|
||||
// Invoke the callback with all the unmarshalled arguments
|
||||
err = w.Handler.RequestWorkerStatusChange(ctx, workerId)
|
||||
return err
|
||||
}
|
||||
|
||||
// RegisterWorker converts echo context to params.
|
||||
func (w *ServerInterfaceWrapper) RegisterWorker(ctx echo.Context) error {
|
||||
var err error
|
||||
@ -524,6 +543,7 @@ func RegisterHandlersWithBaseURL(router EchoRouter, si ServerInterface, baseURL
|
||||
router.GET(baseURL+"/api/version", wrapper.GetVersion)
|
||||
router.GET(baseURL+"/api/worker-mgt/workers", wrapper.FetchWorkers)
|
||||
router.GET(baseURL+"/api/worker-mgt/workers/:worker_id", wrapper.FetchWorker)
|
||||
router.POST(baseURL+"/api/worker-mgt/workers/:worker_id/setstatus", wrapper.RequestWorkerStatusChange)
|
||||
router.POST(baseURL+"/api/worker/register-worker", wrapper.RegisterWorker)
|
||||
router.POST(baseURL+"/api/worker/sign-off", wrapper.SignOff)
|
||||
router.POST(baseURL+"/api/worker/sign-on", wrapper.SignOn)
|
||||
|
@ -18,137 +18,139 @@ import (
|
||||
// Base64 encoded, gzipped, json marshaled Swagger object
|
||||
var swaggerSpec = []string{
|
||||
|
||||
"H4sIAAAAAAAC/+R97XIUubLgqyjqbsTMxLa7jW1g8P2zHBjOmAMDi82ZjTgQtroqu1u4WuqRVG76EI64",
|
||||
"D7Fvsnsj9sfeX/sCnDfaUKZUpepSdbcBM5y5/CBsV5WUykzllzJTH7JczRdKgrQmO/6QmXwGc44/PjRG",
|
||||
"TCUUZ9xcut8LMLkWCyuUzI5bT5kwjDPrfuKGCet+15CDuIKCjVfMzoD9qvQl6GE2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vjd+flLlisp",
|
||||
"Icd8Fmq/7iOfXvD6VjqmRS9g8Jbnlhm+AG9CWoXN/dwnhaqcdUcfmOFrGah6B29xpN3keWECKQqwiSrW",
|
||||
"vao0DmW6KRq3oosWH5ZyP5NCpRYkoyw6y+3eGNTKf+w0NRDWQDkdNvIMU4G7ovd7NQmpBhjz/K0CLcAM",
|
||||
"okYHg43y0GGrAM4kBn388rTdaiE+aVaLRSV9e0Yn0rudOjYSIRMT+POWH2qY2OOXp4PmZuw4f9xNSt0D",
|
||||
"3DIcbbUqA0SdyTBlL2FcEMHqWZDHG27zGMR4jvudrskiNzeewzPI+zfv/38AAAD//4MAez5ZmAAA",
|
||||
}
|
||||
|
||||
// GetSwagger returns the content of the embedded swagger specification file
|
||||
|
@ -451,11 +451,14 @@ type SocketIOTaskUpdate struct {
|
||||
Updated time.Time `json:"updated"`
|
||||
}
|
||||
|
||||
// Subset of a Worker, sent over SocketIO when a worker changes. For new workers, `previous_status` will be excluded.
|
||||
// Subset of a Worker, sent over SocketIO when a worker changes.
|
||||
type SocketIOWorkerUpdate struct {
|
||||
// UUID of the Worker
|
||||
Id string `json:"id"`
|
||||
|
||||
// Whether the worker is allowed to finish its current task before the status change is enforced. Mandatory when `status_requested` is set.
|
||||
LazyStatusRequest *bool `json:"lazy_status_request,omitempty"`
|
||||
|
||||
// Name of the worker
|
||||
Nickname string `json:"nickname"`
|
||||
PreviousStatus *WorkerStatus `json:"previous_status,omitempty"`
|
||||
@ -579,9 +582,17 @@ type WorkerStateChanged struct {
|
||||
// WorkerStatus defines model for WorkerStatus.
|
||||
type WorkerStatus string
|
||||
|
||||
// Request for a Worker to change its status.
|
||||
type WorkerStatusChangeRequest struct {
|
||||
// Whether the status change should happen immediately, or after the worker's current task is finished.
|
||||
IsLazy bool `json:"is_lazy"`
|
||||
StatusRequested WorkerStatus `json:"status_requested"`
|
||||
}
|
||||
|
||||
// Basic information about a Worker.
|
||||
type WorkerSummary struct {
|
||||
Id string `json:"id"`
|
||||
LazyStatusRequest *bool `json:"lazy_status_request,omitempty"`
|
||||
Nickname string `json:"nickname"`
|
||||
Status WorkerStatus `json:"status"`
|
||||
StatusRequested *WorkerStatus `json:"status_requested,omitempty"`
|
||||
@ -602,6 +613,9 @@ type SetJobStatusJSONBody JobStatusChange
|
||||
// SetTaskStatusJSONBody defines parameters for SetTaskStatus.
|
||||
type SetTaskStatusJSONBody TaskStatusChange
|
||||
|
||||
// RequestWorkerStatusChangeJSONBody defines parameters for RequestWorkerStatusChange.
|
||||
type RequestWorkerStatusChangeJSONBody WorkerStatusChangeRequest
|
||||
|
||||
// RegisterWorkerJSONBody defines parameters for RegisterWorker.
|
||||
type RegisterWorkerJSONBody WorkerRegistration
|
||||
|
||||
@ -641,6 +655,9 @@ type SetJobStatusJSONRequestBody SetJobStatusJSONBody
|
||||
// SetTaskStatusJSONRequestBody defines body for SetTaskStatus for application/json ContentType.
|
||||
type SetTaskStatusJSONRequestBody SetTaskStatusJSONBody
|
||||
|
||||
// RequestWorkerStatusChangeJSONRequestBody defines body for RequestWorkerStatusChange for application/json ContentType.
|
||||
type RequestWorkerStatusChangeJSONRequestBody RequestWorkerStatusChangeJSONBody
|
||||
|
||||
// RegisterWorkerJSONRequestBody defines body for RegisterWorker for application/json ContentType.
|
||||
type RegisterWorkerJSONRequestBody RegisterWorkerJSONBody
|
||||
|
||||
|
@ -55,7 +55,7 @@ class ApiClient {
|
||||
* @default {}
|
||||
*/
|
||||
this.defaultHeaders = {
|
||||
'User-Agent': 'Flamenco/d8233363 / webbrowser'
|
||||
'User-Agent': 'Flamenco/cfb17b17 / webbrowser'
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -64,6 +64,7 @@ import WorkerSignOn from './model/WorkerSignOn';
|
||||
import WorkerStateChange from './model/WorkerStateChange';
|
||||
import WorkerStateChanged from './model/WorkerStateChanged';
|
||||
import WorkerStatus from './model/WorkerStatus';
|
||||
import WorkerStatusChangeRequest from './model/WorkerStatusChangeRequest';
|
||||
import WorkerSummary from './model/WorkerSummary';
|
||||
import JobsApi from './manager/JobsApi';
|
||||
import MetaApi from './manager/MetaApi';
|
||||
@ -416,6 +417,12 @@ export {
|
||||
*/
|
||||
WorkerStatus,
|
||||
|
||||
/**
|
||||
* The WorkerStatusChangeRequest model constructor.
|
||||
* @property {module:model/WorkerStatusChangeRequest}
|
||||
*/
|
||||
WorkerStatusChangeRequest,
|
||||
|
||||
/**
|
||||
* The WorkerSummary model constructor.
|
||||
* @property {module:model/WorkerSummary}
|
||||
|
@ -13,8 +13,10 @@
|
||||
|
||||
|
||||
import ApiClient from "../ApiClient";
|
||||
import Error from '../model/Error';
|
||||
import Worker from '../model/Worker';
|
||||
import WorkerList from '../model/WorkerList';
|
||||
import WorkerStatusChangeRequest from '../model/WorkerStatusChangeRequest';
|
||||
|
||||
/**
|
||||
* WorkerMgt service.
|
||||
@ -121,4 +123,54 @@ export default class WorkerMgtApi {
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param {String} workerId
|
||||
* @param {module:model/WorkerStatusChangeRequest} workerStatusChangeRequest The status change to request.
|
||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
||||
*/
|
||||
requestWorkerStatusChangeWithHttpInfo(workerId, workerStatusChangeRequest) {
|
||||
let postBody = workerStatusChangeRequest;
|
||||
// verify the required parameter 'workerId' is set
|
||||
if (workerId === undefined || workerId === null) {
|
||||
throw new Error("Missing the required parameter 'workerId' when calling requestWorkerStatusChange");
|
||||
}
|
||||
// verify the required parameter 'workerStatusChangeRequest' is set
|
||||
if (workerStatusChangeRequest === undefined || workerStatusChangeRequest === null) {
|
||||
throw new Error("Missing the required parameter 'workerStatusChangeRequest' when calling requestWorkerStatusChange");
|
||||
}
|
||||
|
||||
let pathParams = {
|
||||
'worker_id': workerId
|
||||
};
|
||||
let queryParams = {
|
||||
};
|
||||
let headerParams = {
|
||||
};
|
||||
let formParams = {
|
||||
};
|
||||
|
||||
let authNames = [];
|
||||
let contentTypes = ['application/json'];
|
||||
let accepts = ['application/json'];
|
||||
let returnType = null;
|
||||
return this.apiClient.callApi(
|
||||
'/api/worker-mgt/workers/{worker_id}/setstatus', 'POST',
|
||||
pathParams, queryParams, headerParams, formParams, postBody,
|
||||
authNames, contentTypes, accepts, returnType, null
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {String} workerId
|
||||
* @param {module:model/WorkerStatusChangeRequest} workerStatusChangeRequest The status change to request.
|
||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
||||
*/
|
||||
requestWorkerStatusChange(workerId, workerStatusChangeRequest) {
|
||||
return this.requestWorkerStatusChangeWithHttpInfo(workerId, workerStatusChangeRequest)
|
||||
.then(function(response_and_data) {
|
||||
return response_and_data.data;
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@ -22,7 +22,7 @@ import WorkerStatus from './WorkerStatus';
|
||||
class SocketIOWorkerUpdate {
|
||||
/**
|
||||
* Constructs a new <code>SocketIOWorkerUpdate</code>.
|
||||
* Subset of a Worker, sent over SocketIO when a worker changes. For new workers, `previous_status` will be excluded.
|
||||
* Subset of a Worker, sent over SocketIO when a worker changes.
|
||||
* @alias module:model/SocketIOWorkerUpdate
|
||||
* @param id {String} UUID of the Worker
|
||||
* @param nickname {String} Name of the worker
|
||||
@ -77,6 +77,9 @@ class SocketIOWorkerUpdate {
|
||||
if (data.hasOwnProperty('status_requested')) {
|
||||
obj['status_requested'] = WorkerStatus.constructFromObject(data['status_requested']);
|
||||
}
|
||||
if (data.hasOwnProperty('lazy_status_request')) {
|
||||
obj['lazy_status_request'] = ApiClient.convertToType(data['lazy_status_request'], 'Boolean');
|
||||
}
|
||||
if (data.hasOwnProperty('version')) {
|
||||
obj['version'] = ApiClient.convertToType(data['version'], 'String');
|
||||
}
|
||||
@ -120,6 +123,12 @@ SocketIOWorkerUpdate.prototype['previous_status'] = undefined;
|
||||
*/
|
||||
SocketIOWorkerUpdate.prototype['status_requested'] = undefined;
|
||||
|
||||
/**
|
||||
* Whether the worker is allowed to finish its current task before the status change is enforced. Mandatory when `status_requested` is set.
|
||||
* @member {Boolean} lazy_status_request
|
||||
*/
|
||||
SocketIOWorkerUpdate.prototype['lazy_status_request'] = undefined;
|
||||
|
||||
/**
|
||||
* @member {String} version
|
||||
*/
|
||||
|
@ -81,6 +81,9 @@ class Worker {
|
||||
if (data.hasOwnProperty('status_requested')) {
|
||||
obj['status_requested'] = WorkerStatus.constructFromObject(data['status_requested']);
|
||||
}
|
||||
if (data.hasOwnProperty('lazy_status_request')) {
|
||||
obj['lazy_status_request'] = ApiClient.convertToType(data['lazy_status_request'], 'Boolean');
|
||||
}
|
||||
if (data.hasOwnProperty('version')) {
|
||||
obj['version'] = ApiClient.convertToType(data['version'], 'String');
|
||||
}
|
||||
@ -120,6 +123,11 @@ Worker.prototype['status'] = undefined;
|
||||
*/
|
||||
Worker.prototype['status_requested'] = undefined;
|
||||
|
||||
/**
|
||||
* @member {Boolean} lazy_status_request
|
||||
*/
|
||||
Worker.prototype['lazy_status_request'] = undefined;
|
||||
|
||||
/**
|
||||
* Version of Flamenco this Worker is running
|
||||
* @member {String} version
|
||||
@ -161,6 +169,10 @@ WorkerSummary.prototype['status'] = undefined;
|
||||
* @member {module:model/WorkerStatus} status_requested
|
||||
*/
|
||||
WorkerSummary.prototype['status_requested'] = undefined;
|
||||
/**
|
||||
* @member {Boolean} lazy_status_request
|
||||
*/
|
||||
WorkerSummary.prototype['lazy_status_request'] = undefined;
|
||||
/**
|
||||
* Version of Flamenco this Worker is running
|
||||
* @member {String} version
|
||||
|
86
web/app/src/manager-api/model/WorkerStatusChangeRequest.js
Normal file
86
web/app/src/manager-api/model/WorkerStatusChangeRequest.js
Normal file
@ -0,0 +1,86 @@
|
||||
/**
|
||||
* Flamenco manager
|
||||
* Render Farm manager API
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*
|
||||
*/
|
||||
|
||||
import ApiClient from '../ApiClient';
|
||||
import WorkerStatus from './WorkerStatus';
|
||||
|
||||
/**
|
||||
* The WorkerStatusChangeRequest model module.
|
||||
* @module model/WorkerStatusChangeRequest
|
||||
* @version 0.0.0
|
||||
*/
|
||||
class WorkerStatusChangeRequest {
|
||||
/**
|
||||
* Constructs a new <code>WorkerStatusChangeRequest</code>.
|
||||
* Request for a Worker to change its status.
|
||||
* @alias module:model/WorkerStatusChangeRequest
|
||||
* @param statusRequested {module:model/WorkerStatus}
|
||||
* @param isLazy {Boolean} Whether the status change should happen immediately, or after the worker's current task is finished.
|
||||
*/
|
||||
constructor(statusRequested, isLazy) {
|
||||
|
||||
WorkerStatusChangeRequest.initialize(this, statusRequested, isLazy);
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes the fields of this object.
|
||||
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
||||
* Only for internal use.
|
||||
*/
|
||||
static initialize(obj, statusRequested, isLazy) {
|
||||
obj['status_requested'] = statusRequested;
|
||||
obj['is_lazy'] = isLazy;
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs a <code>WorkerStatusChangeRequest</code> from a plain JavaScript object, optionally creating a new instance.
|
||||
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
||||
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
||||
* @param {module:model/WorkerStatusChangeRequest} obj Optional instance to populate.
|
||||
* @return {module:model/WorkerStatusChangeRequest} The populated <code>WorkerStatusChangeRequest</code> instance.
|
||||
*/
|
||||
static constructFromObject(data, obj) {
|
||||
if (data) {
|
||||
obj = obj || new WorkerStatusChangeRequest();
|
||||
|
||||
if (data.hasOwnProperty('status_requested')) {
|
||||
obj['status_requested'] = WorkerStatus.constructFromObject(data['status_requested']);
|
||||
}
|
||||
if (data.hasOwnProperty('is_lazy')) {
|
||||
obj['is_lazy'] = ApiClient.convertToType(data['is_lazy'], 'Boolean');
|
||||
}
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @member {module:model/WorkerStatus} status_requested
|
||||
*/
|
||||
WorkerStatusChangeRequest.prototype['status_requested'] = undefined;
|
||||
|
||||
/**
|
||||
* Whether the status change should happen immediately, or after the worker's current task is finished.
|
||||
* @member {Boolean} is_lazy
|
||||
*/
|
||||
WorkerStatusChangeRequest.prototype['is_lazy'] = undefined;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
export default WorkerStatusChangeRequest;
|
||||
|
@ -69,6 +69,9 @@ class WorkerSummary {
|
||||
if (data.hasOwnProperty('status_requested')) {
|
||||
obj['status_requested'] = WorkerStatus.constructFromObject(data['status_requested']);
|
||||
}
|
||||
if (data.hasOwnProperty('lazy_status_request')) {
|
||||
obj['lazy_status_request'] = ApiClient.convertToType(data['lazy_status_request'], 'Boolean');
|
||||
}
|
||||
if (data.hasOwnProperty('version')) {
|
||||
obj['version'] = ApiClient.convertToType(data['version'], 'String');
|
||||
}
|
||||
@ -99,6 +102,11 @@ WorkerSummary.prototype['status'] = undefined;
|
||||
*/
|
||||
WorkerSummary.prototype['status_requested'] = undefined;
|
||||
|
||||
/**
|
||||
* @member {Boolean} lazy_status_request
|
||||
*/
|
||||
WorkerSummary.prototype['lazy_status_request'] = undefined;
|
||||
|
||||
/**
|
||||
* Version of Flamenco this Worker is running
|
||||
* @member {String} version
|
||||
|
Loading…
x
Reference in New Issue
Block a user