OAPI: regenerate code

This commit is contained in:
Sybren A. Stüvel 2022-05-12 11:02:58 +02:00
parent 52e9db6ef4
commit fd16f7939e
18 changed files with 939 additions and 120 deletions

View File

@ -10,7 +10,7 @@
""" """
__version__ = "c8479294" __version__ = "9dd9d816"
# import ApiClient # import ApiClient
from flamenco.manager.api_client import ApiClient from flamenco.manager.api_client import ApiClient

View File

@ -23,6 +23,7 @@ from flamenco.manager.model_utils import ( # noqa: F401
) )
from flamenco.manager.model.assigned_task import AssignedTask from flamenco.manager.model.assigned_task import AssignedTask
from flamenco.manager.model.error import Error from flamenco.manager.model.error import Error
from flamenco.manager.model.may_keep_running import MayKeepRunning
from flamenco.manager.model.registered_worker import RegisteredWorker from flamenco.manager.model.registered_worker import RegisteredWorker
from flamenco.manager.model.security_error import SecurityError from flamenco.manager.model.security_error import SecurityError
from flamenco.manager.model.task_update import TaskUpdate from flamenco.manager.model.task_update import TaskUpdate
@ -43,6 +44,57 @@ class WorkerApi(object):
if api_client is None: if api_client is None:
api_client = ApiClient() api_client = ApiClient()
self.api_client = api_client self.api_client = api_client
self.may_worker_run_endpoint = _Endpoint(
settings={
'response_type': (MayKeepRunning,),
'auth': [
'worker_auth'
],
'endpoint_path': '/api/worker/task/{task_id}/may-i-run',
'operation_id': 'may_worker_run',
'http_method': 'GET',
'servers': None,
},
params_map={
'all': [
'task_id',
],
'required': [
'task_id',
],
'nullable': [
],
'enum': [
],
'validation': [
]
},
root_map={
'validations': {
},
'allowed_values': {
},
'openapi_types': {
'task_id':
(str,),
},
'attribute_map': {
'task_id': 'task_id',
},
'location_map': {
'task_id': 'path',
},
'collection_format_map': {
}
},
headers_map={
'accept': [
'application/json'
],
'content_type': [],
},
api_client=api_client
)
self.register_worker_endpoint = _Endpoint( self.register_worker_endpoint = _Endpoint(
settings={ settings={
'response_type': (RegisteredWorker,), 'response_type': (RegisteredWorker,),
@ -388,6 +440,83 @@ class WorkerApi(object):
api_client=api_client api_client=api_client
) )
def may_worker_run(
self,
task_id,
**kwargs
):
"""The response indicates whether the worker is allowed to run / keep running the task. Optionally contains a queued 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.may_worker_run(task_id, async_req=True)
>>> result = thread.get()
Args:
task_id (str):
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:
MayKeepRunning
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['task_id'] = \
task_id
return self.may_worker_run_endpoint.call_with_http_info(**kwargs)
def register_worker( def register_worker(
self, self,
worker_registration, worker_registration,

View File

@ -76,7 +76,7 @@ class ApiClient(object):
self.default_headers[header_name] = header_value self.default_headers[header_name] = header_value
self.cookie = cookie self.cookie = cookie
# Set default User-Agent. # Set default User-Agent.
self.user_agent = 'Flamenco/c8479294 (Blender add-on)' self.user_agent = 'Flamenco/9dd9d816 (Blender add-on)'
def __enter__(self): def __enter__(self):
return self return self

View File

@ -404,7 +404,7 @@ conf = flamenco.manager.Configuration(
"OS: {env}\n"\ "OS: {env}\n"\
"Python Version: {pyversion}\n"\ "Python Version: {pyversion}\n"\
"Version of the API: 1.0.0\n"\ "Version of the API: 1.0.0\n"\
"SDK Package Version: c8479294".\ "SDK Package Version: 9dd9d816".\
format(env=sys.platform, pyversion=sys.version) format(env=sys.platform, pyversion=sys.version)
def get_host_settings(self): def get_host_settings(self):

View File

@ -0,0 +1,15 @@
# MayKeepRunning
Indicates whether the worker may keep running the task.
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**may_keep_running** | **bool** | |
**reason** | **str** | |
**status_change_requested** | **bool** | Indicates that a status change requested for the worker. It should use the `workerState` operation to determine which state to go to next. If this is `true`, `mayKeepRunning` MUST be `false`. |
**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)

View File

@ -4,6 +4,7 @@ All URIs are relative to *http://localhost*
Method | HTTP request | Description Method | HTTP request | Description
------------- | ------------- | ------------- ------------- | ------------- | -------------
[**may_worker_run**](WorkerApi.md#may_worker_run) | **GET** /api/worker/task/{task_id}/may-i-run | The response indicates whether the worker is allowed to run / keep running the task. Optionally contains a queued worker status change.
[**register_worker**](WorkerApi.md#register_worker) | **POST** /api/worker/register-worker | Register a new worker [**register_worker**](WorkerApi.md#register_worker) | **POST** /api/worker/register-worker | Register a new worker
[**schedule_task**](WorkerApi.md#schedule_task) | **POST** /api/worker/task | Obtain a new task to execute [**schedule_task**](WorkerApi.md#schedule_task) | **POST** /api/worker/task | Obtain a new task to execute
[**sign_off**](WorkerApi.md#sign_off) | **POST** /api/worker/sign-off | Mark the worker as offline [**sign_off**](WorkerApi.md#sign_off) | **POST** /api/worker/sign-off | Mark the worker as offline
@ -13,6 +14,84 @@ Method | HTTP request | Description
[**worker_state_changed**](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. [**worker_state_changed**](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.
# **may_worker_run**
> MayKeepRunning may_worker_run(task_id)
The response indicates whether the worker is allowed to run / keep running the task. Optionally contains a queued worker status change.
### Example
* Basic Authentication (worker_auth):
```python
import time
import flamenco.manager
from flamenco.manager.api import worker_api
from flamenco.manager.model.error import Error
from flamenco.manager.model.may_keep_running import MayKeepRunning
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"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure HTTP basic authorization: worker_auth
configuration = flamenco.manager.Configuration(
username = 'YOUR_USERNAME',
password = 'YOUR_PASSWORD'
)
# Enter a context with an instance of the API client
with flamenco.manager.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = worker_api.WorkerApi(api_client)
task_id = "task_id_example" # str |
# example passing only required values which don't have defaults set
try:
# The response indicates whether the worker is allowed to run / keep running the task. Optionally contains a queued worker status change.
api_response = api_instance.may_worker_run(task_id)
pprint(api_response)
except flamenco.manager.ApiException as e:
print("Exception when calling WorkerApi->may_worker_run: %s\n" % e)
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**task_id** | **str**| |
### Return type
[**MayKeepRunning**](MayKeepRunning.md)
### Authorization
[worker_auth](../README.md#worker_auth)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** | normal response | - |
**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)
# **register_worker** # **register_worker**
> RegisteredWorker register_worker(worker_registration) > RegisteredWorker register_worker(worker_registration)

View 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
class MayKeepRunning(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
"""
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.
"""
return {
'may_keep_running': (bool,), # noqa: E501
'reason': (str,), # noqa: E501
'status_change_requested': (bool,), # noqa: E501
}
@cached_property
def discriminator():
return None
attribute_map = {
'may_keep_running': 'mayKeepRunning', # noqa: E501
'reason': 'reason', # noqa: E501
'status_change_requested': 'statusChangeRequested', # noqa: E501
}
read_only_vars = {
}
_composed_schemas = {}
@classmethod
@convert_js_args_to_python_args
def _from_openapi_data(cls, may_keep_running, reason, status_change_requested, *args, **kwargs): # noqa: E501
"""MayKeepRunning - a model defined in OpenAPI
Args:
may_keep_running (bool):
reason (str):
status_change_requested (bool): Indicates that a status change requested for the worker. It should use the `workerState` operation to determine which state to go to next. If this is `true`, `mayKeepRunning` MUST be `false`.
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.may_keep_running = may_keep_running
self.reason = reason
self.status_change_requested = status_change_requested
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, may_keep_running, reason, status_change_requested, *args, **kwargs): # noqa: E501
"""MayKeepRunning - a model defined in OpenAPI
Args:
may_keep_running (bool):
reason (str):
status_change_requested (bool): Indicates that a status change requested for the worker. It should use the `workerState` operation to determine which state to go to next. If this is `true`, `mayKeepRunning` MUST be `false`.
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.may_keep_running = may_keep_running
self.reason = reason
self.status_change_requested = status_change_requested
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.")

View File

@ -29,6 +29,7 @@ from flamenco.manager.model.job_update import JobUpdate
from flamenco.manager.model.jobs_query import JobsQuery from flamenco.manager.model.jobs_query import JobsQuery
from flamenco.manager.model.jobs_query_result import JobsQueryResult from flamenco.manager.model.jobs_query_result import JobsQueryResult
from flamenco.manager.model.manager_configuration import ManagerConfiguration from flamenco.manager.model.manager_configuration import ManagerConfiguration
from flamenco.manager.model.may_keep_running import MayKeepRunning
from flamenco.manager.model.registered_worker import RegisteredWorker from flamenco.manager.model.registered_worker import RegisteredWorker
from flamenco.manager.model.security_error import SecurityError from flamenco.manager.model.security_error import SecurityError
from flamenco.manager.model.shaman_checkout import ShamanCheckout from flamenco.manager.model.shaman_checkout import ShamanCheckout

View File

@ -4,7 +4,7 @@ Render Farm manager API
The `flamenco.manager` package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: The `flamenco.manager` package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
- API version: 1.0.0 - API version: 1.0.0
- Package version: c8479294 - Package version: 9dd9d816
- Build package: org.openapitools.codegen.languages.PythonClientCodegen - Build package: org.openapitools.codegen.languages.PythonClientCodegen
For more information, please visit [https://flamenco.io/](https://flamenco.io/) For more information, please visit [https://flamenco.io/](https://flamenco.io/)
@ -86,6 +86,7 @@ Class | Method | HTTP request | Description
*ShamanApi* | [**shaman_checkout_requirements**](flamenco/manager/docs/ShamanApi.md#shaman_checkout_requirements) | **POST** /shaman/checkout/requirements | Checks a Shaman Requirements file, and reports which files are unknown. *ShamanApi* | [**shaman_checkout_requirements**](flamenco/manager/docs/ShamanApi.md#shaman_checkout_requirements) | **POST** /shaman/checkout/requirements | Checks a Shaman Requirements file, and reports which files are unknown.
*ShamanApi* | [**shaman_file_store**](flamenco/manager/docs/ShamanApi.md#shaman_file_store) | **POST** /shaman/files/{checksum}/{filesize} | Store a new file on the Shaman server. Note that the Shaman server can forcibly close the HTTP connection when another client finishes uploading the exact same file, to prevent double uploads. The file's contents should be sent in the request body. *ShamanApi* | [**shaman_file_store**](flamenco/manager/docs/ShamanApi.md#shaman_file_store) | **POST** /shaman/files/{checksum}/{filesize} | Store a new file on the Shaman server. Note that the Shaman server can forcibly close the HTTP connection when another client finishes uploading the exact same file, to prevent double uploads. The file's contents should be sent in the request body.
*ShamanApi* | [**shaman_file_store_check**](flamenco/manager/docs/ShamanApi.md#shaman_file_store_check) | **GET** /shaman/files/{checksum}/{filesize} | Check the status of a file on the Shaman server. *ShamanApi* | [**shaman_file_store_check**](flamenco/manager/docs/ShamanApi.md#shaman_file_store_check) | **GET** /shaman/files/{checksum}/{filesize} | Check the status of a file on the Shaman server.
*WorkerApi* | [**may_worker_run**](flamenco/manager/docs/WorkerApi.md#may_worker_run) | **GET** /api/worker/task/{task_id}/may-i-run | The response indicates whether the worker is allowed to run / keep running the task. Optionally contains a queued worker status change.
*WorkerApi* | [**register_worker**](flamenco/manager/docs/WorkerApi.md#register_worker) | **POST** /api/worker/register-worker | Register a new worker *WorkerApi* | [**register_worker**](flamenco/manager/docs/WorkerApi.md#register_worker) | **POST** /api/worker/register-worker | Register a new worker
*WorkerApi* | [**schedule_task**](flamenco/manager/docs/WorkerApi.md#schedule_task) | **POST** /api/worker/task | Obtain a new task to execute *WorkerApi* | [**schedule_task**](flamenco/manager/docs/WorkerApi.md#schedule_task) | **POST** /api/worker/task | Obtain a new task to execute
*WorkerApi* | [**sign_off**](flamenco/manager/docs/WorkerApi.md#sign_off) | **POST** /api/worker/sign-off | Mark the worker as offline *WorkerApi* | [**sign_off**](flamenco/manager/docs/WorkerApi.md#sign_off) | **POST** /api/worker/sign-off | Mark the worker as offline
@ -117,6 +118,7 @@ Class | Method | HTTP request | Description
- [JobsQuery](flamenco/manager/docs/JobsQuery.md) - [JobsQuery](flamenco/manager/docs/JobsQuery.md)
- [JobsQueryResult](flamenco/manager/docs/JobsQueryResult.md) - [JobsQueryResult](flamenco/manager/docs/JobsQueryResult.md)
- [ManagerConfiguration](flamenco/manager/docs/ManagerConfiguration.md) - [ManagerConfiguration](flamenco/manager/docs/ManagerConfiguration.md)
- [MayKeepRunning](flamenco/manager/docs/MayKeepRunning.md)
- [RegisteredWorker](flamenco/manager/docs/RegisteredWorker.md) - [RegisteredWorker](flamenco/manager/docs/RegisteredWorker.md)
- [SecurityError](flamenco/manager/docs/SecurityError.md) - [SecurityError](flamenco/manager/docs/SecurityError.md)
- [ShamanCheckout](flamenco/manager/docs/ShamanCheckout.md) - [ShamanCheckout](flamenco/manager/docs/ShamanCheckout.md)

View File

@ -176,6 +176,26 @@ func (mr *MockFlamencoClientMockRecorder) GetVersionWithResponse(arg0 interface{
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetVersionWithResponse", reflect.TypeOf((*MockFlamencoClient)(nil).GetVersionWithResponse), varargs...) return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetVersionWithResponse", reflect.TypeOf((*MockFlamencoClient)(nil).GetVersionWithResponse), varargs...)
} }
// MayWorkerRunWithResponse mocks base method.
func (m *MockFlamencoClient) MayWorkerRunWithResponse(arg0 context.Context, arg1 string, arg2 ...api.RequestEditorFn) (*api.MayWorkerRunResponse, error) {
m.ctrl.T.Helper()
varargs := []interface{}{arg0, arg1}
for _, a := range arg2 {
varargs = append(varargs, a)
}
ret := m.ctrl.Call(m, "MayWorkerRunWithResponse", varargs...)
ret0, _ := ret[0].(*api.MayWorkerRunResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// MayWorkerRunWithResponse indicates an expected call of MayWorkerRunWithResponse.
func (mr *MockFlamencoClientMockRecorder) MayWorkerRunWithResponse(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
varargs := append([]interface{}{arg0, arg1}, arg2...)
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MayWorkerRunWithResponse", reflect.TypeOf((*MockFlamencoClient)(nil).MayWorkerRunWithResponse), varargs...)
}
// QueryJobsWithBodyWithResponse mocks base method. // QueryJobsWithBodyWithResponse mocks base method.
func (m *MockFlamencoClient) QueryJobsWithBodyWithResponse(arg0 context.Context, arg1 string, arg2 io.Reader, arg3 ...api.RequestEditorFn) (*api.QueryJobsResponse, error) { func (m *MockFlamencoClient) QueryJobsWithBodyWithResponse(arg0 context.Context, arg1 string, arg2 io.Reader, arg3 ...api.RequestEditorFn) (*api.QueryJobsResponse, error) {
m.ctrl.T.Helper() m.ctrl.T.Helper()

View File

@ -160,6 +160,9 @@ type ClientInterface interface {
TaskUpdate(ctx context.Context, taskId string, body TaskUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) TaskUpdate(ctx context.Context, taskId string, body TaskUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// MayWorkerRun request
MayWorkerRun(ctx context.Context, taskId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// ShamanCheckout request with any body // ShamanCheckout request with any body
ShamanCheckoutWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) ShamanCheckoutWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
@ -489,6 +492,18 @@ func (c *Client) TaskUpdate(ctx context.Context, taskId string, body TaskUpdateJ
return c.Client.Do(req) return c.Client.Do(req)
} }
func (c *Client) MayWorkerRun(ctx context.Context, taskId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewMayWorkerRunRequest(c.Server, taskId)
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) ShamanCheckoutWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { func (c *Client) ShamanCheckoutWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewShamanCheckoutRequestWithBody(c.Server, contentType, body) req, err := NewShamanCheckoutRequestWithBody(c.Server, contentType, body)
if err != nil { if err != nil {
@ -1200,6 +1215,40 @@ func NewTaskUpdateRequestWithBody(server string, taskId string, contentType stri
return req, nil return req, nil
} }
// NewMayWorkerRunRequest generates requests for MayWorkerRun
func NewMayWorkerRunRequest(server string, taskId string) (*http.Request, error) {
var err error
var pathParam0 string
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "task_id", runtime.ParamLocationPath, taskId)
if err != nil {
return nil, err
}
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
operationPath := fmt.Sprintf("/api/worker/task/%s/may-i-run", pathParam0)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
queryURL, err := serverURL.Parse(operationPath)
if err != nil {
return nil, err
}
req, err := http.NewRequest("GET", queryURL.String(), nil)
if err != nil {
return nil, err
}
return req, nil
}
// NewShamanCheckoutRequest calls the generic ShamanCheckout builder with application/json body // NewShamanCheckoutRequest calls the generic ShamanCheckout builder with application/json body
func NewShamanCheckoutRequest(server string, body ShamanCheckoutJSONRequestBody) (*http.Request, error) { func NewShamanCheckoutRequest(server string, body ShamanCheckoutJSONRequestBody) (*http.Request, error) {
var bodyReader io.Reader var bodyReader io.Reader
@ -1499,6 +1548,9 @@ type ClientWithResponsesInterface interface {
TaskUpdateWithResponse(ctx context.Context, taskId string, body TaskUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*TaskUpdateResponse, error) TaskUpdateWithResponse(ctx context.Context, taskId string, body TaskUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*TaskUpdateResponse, error)
// MayWorkerRun request
MayWorkerRunWithResponse(ctx context.Context, taskId string, reqEditors ...RequestEditorFn) (*MayWorkerRunResponse, error)
// ShamanCheckout request with any body // ShamanCheckout request with any body
ShamanCheckoutWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ShamanCheckoutResponse, error) ShamanCheckoutWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ShamanCheckoutResponse, error)
@ -1921,6 +1973,29 @@ func (r TaskUpdateResponse) StatusCode() int {
return 0 return 0
} }
type MayWorkerRunResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *MayKeepRunning
JSONDefault *Error
}
// Status returns HTTPResponse.Status
func (r MayWorkerRunResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
return http.StatusText(0)
}
// StatusCode returns HTTPResponse.StatusCode
func (r MayWorkerRunResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
return 0
}
type ShamanCheckoutResponse struct { type ShamanCheckoutResponse struct {
Body []byte Body []byte
HTTPResponse *http.Response HTTPResponse *http.Response
@ -2240,6 +2315,15 @@ func (c *ClientWithResponses) TaskUpdateWithResponse(ctx context.Context, taskId
return ParseTaskUpdateResponse(rsp) return ParseTaskUpdateResponse(rsp)
} }
// MayWorkerRunWithResponse request returning *MayWorkerRunResponse
func (c *ClientWithResponses) MayWorkerRunWithResponse(ctx context.Context, taskId string, reqEditors ...RequestEditorFn) (*MayWorkerRunResponse, error) {
rsp, err := c.MayWorkerRun(ctx, taskId, reqEditors...)
if err != nil {
return nil, err
}
return ParseMayWorkerRunResponse(rsp)
}
// ShamanCheckoutWithBodyWithResponse request with arbitrary body returning *ShamanCheckoutResponse // ShamanCheckoutWithBodyWithResponse request with arbitrary body returning *ShamanCheckoutResponse
func (c *ClientWithResponses) ShamanCheckoutWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ShamanCheckoutResponse, error) { func (c *ClientWithResponses) ShamanCheckoutWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ShamanCheckoutResponse, error) {
rsp, err := c.ShamanCheckoutWithBody(ctx, contentType, body, reqEditors...) rsp, err := c.ShamanCheckoutWithBody(ctx, contentType, body, reqEditors...)
@ -2823,6 +2907,39 @@ func ParseTaskUpdateResponse(rsp *http.Response) (*TaskUpdateResponse, error) {
return response, nil return response, nil
} }
// ParseMayWorkerRunResponse parses an HTTP response from a MayWorkerRunWithResponse call
func ParseMayWorkerRunResponse(rsp *http.Response) (*MayWorkerRunResponse, error) {
bodyBytes, err := ioutil.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
response := &MayWorkerRunResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest MayKeepRunning
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
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
}
// ParseShamanCheckoutResponse parses an HTTP response from a ShamanCheckoutWithResponse call // ParseShamanCheckoutResponse parses an HTTP response from a ShamanCheckoutWithResponse call
func ParseShamanCheckoutResponse(rsp *http.Response) (*ShamanCheckoutResponse, error) { func ParseShamanCheckoutResponse(rsp *http.Response) (*ShamanCheckoutResponse, error) {
bodyBytes, err := ioutil.ReadAll(rsp.Body) bodyBytes, err := ioutil.ReadAll(rsp.Body)

View File

@ -67,6 +67,9 @@ type ServerInterface interface {
// Update the task, typically to indicate progress, completion, or failure. // Update the task, typically to indicate progress, completion, or failure.
// (POST /api/worker/task/{task_id}) // (POST /api/worker/task/{task_id})
TaskUpdate(ctx echo.Context, taskId string) error TaskUpdate(ctx echo.Context, taskId string) error
// The response indicates whether the worker is allowed to run / keep running the task. Optionally contains a queued worker status change.
// (GET /api/worker/task/{task_id}/may-i-run)
MayWorkerRun(ctx echo.Context, taskId string) error
// Create a directory, and symlink the required files into it. The files must all have been uploaded to Shaman before calling this endpoint. // Create a directory, and symlink the required files into it. The files must all have been uploaded to Shaman before calling this endpoint.
// (POST /shaman/checkout/create) // (POST /shaman/checkout/create)
ShamanCheckout(ctx echo.Context) error ShamanCheckout(ctx echo.Context) error
@ -310,6 +313,24 @@ func (w *ServerInterfaceWrapper) TaskUpdate(ctx echo.Context) error {
return err return err
} }
// MayWorkerRun converts echo context to params.
func (w *ServerInterfaceWrapper) MayWorkerRun(ctx echo.Context) error {
var err error
// ------------- Path parameter "task_id" -------------
var taskId string
err = runtime.BindStyledParameterWithLocation("simple", false, "task_id", runtime.ParamLocationPath, ctx.Param("task_id"), &taskId)
if err != nil {
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter task_id: %s", err))
}
ctx.Set(Worker_authScopes, []string{""})
// Invoke the callback with all the unmarshalled arguments
err = w.Handler.MayWorkerRun(ctx, taskId)
return err
}
// ShamanCheckout converts echo context to params. // ShamanCheckout converts echo context to params.
func (w *ServerInterfaceWrapper) ShamanCheckout(ctx echo.Context) error { func (w *ServerInterfaceWrapper) ShamanCheckout(ctx echo.Context) error {
var err error var err error
@ -457,6 +478,7 @@ func RegisterHandlersWithBaseURL(router EchoRouter, si ServerInterface, baseURL
router.POST(baseURL+"/api/worker/state-changed", wrapper.WorkerStateChanged) router.POST(baseURL+"/api/worker/state-changed", wrapper.WorkerStateChanged)
router.POST(baseURL+"/api/worker/task", wrapper.ScheduleTask) router.POST(baseURL+"/api/worker/task", wrapper.ScheduleTask)
router.POST(baseURL+"/api/worker/task/:task_id", wrapper.TaskUpdate) router.POST(baseURL+"/api/worker/task/:task_id", wrapper.TaskUpdate)
router.GET(baseURL+"/api/worker/task/:task_id/may-i-run", wrapper.MayWorkerRun)
router.POST(baseURL+"/shaman/checkout/create", wrapper.ShamanCheckout) router.POST(baseURL+"/shaman/checkout/create", wrapper.ShamanCheckout)
router.POST(baseURL+"/shaman/checkout/requirements", wrapper.ShamanCheckoutRequirements) router.POST(baseURL+"/shaman/checkout/requirements", wrapper.ShamanCheckoutRequirements)
router.GET(baseURL+"/shaman/files/:checksum/:filesize", wrapper.ShamanFileStoreCheck) router.GET(baseURL+"/shaman/files/:checksum/:filesize", wrapper.ShamanFileStoreCheck)

View File

@ -18,121 +18,124 @@ import (
// Base64 encoded, gzipped, json marshaled Swagger object // Base64 encoded, gzipped, json marshaled Swagger object
var swaggerSpec = []string{ var swaggerSpec = []string{
"H4sIAAAAAAAC/+R9624cN5bwqxA1H+AEX6u7dfFNvz6PHU+UL4m9ljxZIDYkVtWpblpVZIdkSe4YAuYh", "H4sIAAAAAAAC/+R9224cN7borxA1B3CC0+qWJV/1dDx2PFEmiX0seXKA2JBYVau7aVWRHZIluWMImI84",
"9k12B9gfO7/2BTxvtOA5ZF262OqWbTlO1j+MVl3Iw3PnubDeJZmqFkqCtCY5fJeYbA4Vx5+PjBEzCfkJ", "f7L3APthz9P+Ac8fbXAtsorVxVa3bMtxsv1gtOpCLi6uG9et3mWFqhdKgrQmO3iXmWIONcefj4wRMwnl",
"N+fu7xxMpsXCCiWTw95dJgzjzLpf3DBh3d8aMhAXkLN0yewc2E9Kn4MeJ6NkodUCtBWAs2SqqrjM8bew", "MTdn7u8STKHFwgols4PeXSYM48y6X9wwYd3fGgoQ51CyfMnsHNhPSp+BHmejbKHVArQVgLMUqq65LPG3",
"UOGP/6OhSA6TP01a4CYessljeiG5GiV2uYDkMOFa86X7+41K3dv+srFayJm/frrQQ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AA=", "qNCpx+3wJvLnVOlC5NWSFZXyn6bA70gWSkrAD5D5dnXe8+kF71RIYeZgevsFDN7ywjLDa/AmpFXYbMK9",
"UqrGWXf0ghm/kmFXb2GLbeImTws5pHaA5apcrlWlsSsTv9LZHiuGaPFuKfebFCoVMU+yKJY7/PhHr1pk",
"UBYprIFqOu7kGeanDUXvdyoPqQbo8/ylAS3AjKJSydFKgcm4l0JvEoM+en7YL9aMI82qrhvp24U4kT6s",
"9W2H986uhK4n/D16fjjCiZDkus33C0L3ivubvkZGp04Tje/36/L15X8HAAD//1+GM+ILgwAA",
} }
// GetSwagger returns the content of the embedded swagger specification file // GetSwagger returns the content of the embedded swagger specification file

View File

@ -304,6 +304,15 @@ type ManagerConfiguration struct {
StorageLocation string `json:"storageLocation"` StorageLocation string `json:"storageLocation"`
} }
// Indicates whether the worker may keep running the task.
type MayKeepRunning struct {
MayKeepRunning bool `json:"mayKeepRunning"`
Reason string `json:"reason"`
// Indicates that a status change requested for the worker. It should use the `workerState` operation to determine which state to go to next. If this is `true`, `mayKeepRunning` MUST be `false`.
StatusChangeRequested bool `json:"statusChangeRequested"`
}
// RegisteredWorker defines model for RegisteredWorker. // RegisteredWorker defines model for RegisteredWorker.
type RegisteredWorker struct { type RegisteredWorker struct {
Address string `json:"address"` Address string `json:"address"`

View File

@ -55,7 +55,7 @@ class ApiClient {
* @default {} * @default {}
*/ */
this.defaultHeaders = { this.defaultHeaders = {
'User-Agent': 'Flamenco/c8479294 / webbrowser' 'User-Agent': 'Flamenco/9dd9d816 / webbrowser'
}; };
/** /**

View File

@ -31,6 +31,7 @@ import JobUpdate from './model/JobUpdate';
import JobsQuery from './model/JobsQuery'; import JobsQuery from './model/JobsQuery';
import JobsQueryResult from './model/JobsQueryResult'; import JobsQueryResult from './model/JobsQueryResult';
import ManagerConfiguration from './model/ManagerConfiguration'; import ManagerConfiguration from './model/ManagerConfiguration';
import MayKeepRunning from './model/MayKeepRunning';
import RegisteredWorker from './model/RegisteredWorker'; import RegisteredWorker from './model/RegisteredWorker';
import SecurityError from './model/SecurityError'; import SecurityError from './model/SecurityError';
import ShamanCheckout from './model/ShamanCheckout'; import ShamanCheckout from './model/ShamanCheckout';
@ -209,6 +210,12 @@ export {
*/ */
ManagerConfiguration, ManagerConfiguration,
/**
* The MayKeepRunning model constructor.
* @property {module:model/MayKeepRunning}
*/
MayKeepRunning,
/** /**
* The RegisteredWorker model constructor. * The RegisteredWorker model constructor.
* @property {module:model/RegisteredWorker} * @property {module:model/RegisteredWorker}

View File

@ -15,6 +15,7 @@
import ApiClient from "../ApiClient"; import ApiClient from "../ApiClient";
import AssignedTask from '../model/AssignedTask'; import AssignedTask from '../model/AssignedTask';
import Error from '../model/Error'; import Error from '../model/Error';
import MayKeepRunning from '../model/MayKeepRunning';
import RegisteredWorker from '../model/RegisteredWorker'; import RegisteredWorker from '../model/RegisteredWorker';
import SecurityError from '../model/SecurityError'; import SecurityError from '../model/SecurityError';
import TaskUpdate from '../model/TaskUpdate'; import TaskUpdate from '../model/TaskUpdate';
@ -43,6 +44,52 @@ export default class WorkerApi {
/**
* The response indicates whether the worker is allowed to run / keep running the task. Optionally contains a queued worker status change.
* @param {String} taskId
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/MayKeepRunning} and HTTP response
*/
mayWorkerRunWithHttpInfo(taskId) {
let postBody = null;
// verify the required parameter 'taskId' is set
if (taskId === undefined || taskId === null) {
throw new Error("Missing the required parameter 'taskId' when calling mayWorkerRun");
}
let pathParams = {
'task_id': taskId
};
let queryParams = {
};
let headerParams = {
};
let formParams = {
};
let authNames = ['worker_auth'];
let contentTypes = [];
let accepts = ['application/json'];
let returnType = MayKeepRunning;
return this.apiClient.callApi(
'/api/worker/task/{task_id}/may-i-run', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null
);
}
/**
* The response indicates whether the worker is allowed to run / keep running the task. Optionally contains a queued worker status change.
* @param {String} taskId
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/MayKeepRunning}
*/
mayWorkerRun(taskId) {
return this.mayWorkerRunWithHttpInfo(taskId)
.then(function(response_and_data) {
return response_and_data.data;
});
}
/** /**
* Register a new worker * Register a new worker
* @param {module:model/WorkerRegistration} workerRegistration Worker to register * @param {module:model/WorkerRegistration} workerRegistration Worker to register

View File

@ -0,0 +1,95 @@
/**
* 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';
/**
* The MayKeepRunning model module.
* @module model/MayKeepRunning
* @version 0.0.0
*/
class MayKeepRunning {
/**
* Constructs a new <code>MayKeepRunning</code>.
* Indicates whether the worker may keep running the task.
* @alias module:model/MayKeepRunning
* @param mayKeepRunning {Boolean}
* @param reason {String}
* @param statusChangeRequested {Boolean} Indicates that a status change requested for the worker. It should use the `workerState` operation to determine which state to go to next. If this is `true`, `mayKeepRunning` MUST be `false`.
*/
constructor(mayKeepRunning, reason, statusChangeRequested) {
MayKeepRunning.initialize(this, mayKeepRunning, reason, statusChangeRequested);
}
/**
* 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, mayKeepRunning, reason, statusChangeRequested) {
obj['mayKeepRunning'] = mayKeepRunning;
obj['reason'] = reason;
obj['statusChangeRequested'] = statusChangeRequested;
}
/**
* Constructs a <code>MayKeepRunning</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/MayKeepRunning} obj Optional instance to populate.
* @return {module:model/MayKeepRunning} The populated <code>MayKeepRunning</code> instance.
*/
static constructFromObject(data, obj) {
if (data) {
obj = obj || new MayKeepRunning();
if (data.hasOwnProperty('mayKeepRunning')) {
obj['mayKeepRunning'] = ApiClient.convertToType(data['mayKeepRunning'], 'Boolean');
}
if (data.hasOwnProperty('reason')) {
obj['reason'] = ApiClient.convertToType(data['reason'], 'String');
}
if (data.hasOwnProperty('statusChangeRequested')) {
obj['statusChangeRequested'] = ApiClient.convertToType(data['statusChangeRequested'], 'Boolean');
}
}
return obj;
}
}
/**
* @member {Boolean} mayKeepRunning
*/
MayKeepRunning.prototype['mayKeepRunning'] = undefined;
/**
* @member {String} reason
*/
MayKeepRunning.prototype['reason'] = undefined;
/**
* Indicates that a status change requested for the worker. It should use the `workerState` operation to determine which state to go to next. If this is `true`, `mayKeepRunning` MUST be `false`.
* @member {Boolean} statusChangeRequested
*/
MayKeepRunning.prototype['statusChangeRequested'] = undefined;
export default MayKeepRunning;