diff --git a/addon/flamenco/manager/api/meta_api.py b/addon/flamenco/manager/api/meta_api.py index d67e0c96..9627d223 100644 --- a/addon/flamenco/manager/api/meta_api.py +++ b/addon/flamenco/manager/api/meta_api.py @@ -24,6 +24,7 @@ from flamenco.manager.model_utils import ( # noqa: F401 from flamenco.manager.model.blender_path_check_result import BlenderPathCheckResult from flamenco.manager.model.blender_path_find_result import BlenderPathFindResult from flamenco.manager.model.error import Error +from flamenco.manager.model.farm_status_report import FarmStatusReport from flamenco.manager.model.flamenco_version import FlamencoVersion from flamenco.manager.model.manager_configuration import ManagerConfiguration from flamenco.manager.model.manager_variable_audience import ManagerVariableAudience @@ -268,6 +269,48 @@ class MetaApi(object): }, api_client=api_client ) + self.get_farm_status_endpoint = _Endpoint( + settings={ + 'response_type': (FarmStatusReport,), + 'auth': [], + 'endpoint_path': '/api/v3/status', + 'operation_id': 'get_farm_status', + 'http_method': 'GET', + 'servers': None, + }, + params_map={ + 'all': [ + ], + 'required': [], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + }, + 'attribute_map': { + }, + 'location_map': { + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [], + }, + api_client=api_client + ) self.get_shared_storage_endpoint = _Endpoint( settings={ 'response_type': (SharedStorageLocation,), @@ -831,6 +874,78 @@ class MetaApi(object): kwargs['_host_index'] = kwargs.get('_host_index') return self.get_configuration_file_endpoint.call_with_http_info(**kwargs) + def get_farm_status( + self, + **kwargs + ): + """Get the status of this Flamenco farm. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_farm_status(async_req=True) + >>> result = thread.get() + + + 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: + FarmStatusReport + 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') + return self.get_farm_status_endpoint.call_with_http_info(**kwargs) + def get_shared_storage( self, audience, diff --git a/addon/flamenco/manager/docs/FarmStatus.md b/addon/flamenco/manager/docs/FarmStatus.md new file mode 100644 index 00000000..20c3bdd6 --- /dev/null +++ b/addon/flamenco/manager/docs/FarmStatus.md @@ -0,0 +1,11 @@ +# FarmStatus + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**value** | **str** | | must be one of ["active", "idle", "waiting", "asleep", "inoperative", "unknown", "starting", ] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/addon/flamenco/manager/docs/FarmStatusReport.md b/addon/flamenco/manager/docs/FarmStatusReport.md new file mode 100644 index 00000000..4b8972cf --- /dev/null +++ b/addon/flamenco/manager/docs/FarmStatusReport.md @@ -0,0 +1,12 @@ +# FarmStatusReport + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | [**FarmStatus**](FarmStatus.md) | | +**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) + + diff --git a/addon/flamenco/manager/docs/MetaApi.md b/addon/flamenco/manager/docs/MetaApi.md index 9b778a3f..b4d7b5bb 100644 --- a/addon/flamenco/manager/docs/MetaApi.md +++ b/addon/flamenco/manager/docs/MetaApi.md @@ -9,6 +9,7 @@ Method | HTTP request | Description [**find_blender_exe_path**](MetaApi.md#find_blender_exe_path) | **GET** /api/v3/configuration/check/blender | Find one or more CLI commands for use as way to start Blender [**get_configuration**](MetaApi.md#get_configuration) | **GET** /api/v3/configuration | Get the configuration of this Manager. [**get_configuration_file**](MetaApi.md#get_configuration_file) | **GET** /api/v3/configuration/file | Retrieve the configuration of Flamenco Manager. +[**get_farm_status**](MetaApi.md#get_farm_status) | **GET** /api/v3/status | Get the status of this Flamenco farm. [**get_shared_storage**](MetaApi.md#get_shared_storage) | **GET** /api/v3/configuration/shared-storage/{audience}/{platform} | Get the shared storage location of this Manager, adjusted for the given audience and platform. [**get_variables**](MetaApi.md#get_variables) | **GET** /api/v3/configuration/variables/{audience}/{platform} | Get the variables of this Manager. Used by the Blender add-on to recognise two-way variables, and for the web interface to do variable replacement based on the browser's platform. [**get_version**](MetaApi.md#get_version) | **GET** /api/v3/version | Get the Flamenco version of this Manager @@ -341,6 +342,67 @@ 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) +# **get_farm_status** +> FarmStatusReport get_farm_status() + +Get the status of this Flamenco farm. + +### Example + + +```python +import time +import flamenco.manager +from flamenco.manager.api import meta_api +from flamenco.manager.model.farm_status_report import FarmStatusReport +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 = meta_api.MetaApi(api_client) + + # example, this endpoint has no required or optional parameters + try: + # Get the status of this Flamenco farm. + api_response = api_instance.get_farm_status() + pprint(api_response) + except flamenco.manager.ApiException as e: + print("Exception when calling MetaApi->get_farm_status: %s\n" % e) +``` + + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**FarmStatusReport**](FarmStatusReport.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | normal response | - | + +[[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) + # **get_shared_storage** > SharedStorageLocation get_shared_storage(audience, platform) diff --git a/addon/flamenco/manager/model/farm_status.py b/addon/flamenco/manager/model/farm_status.py new file mode 100644 index 00000000..7a3211ae --- /dev/null +++ b/addon/flamenco/manager/model/farm_status.py @@ -0,0 +1,287 @@ +""" + 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 FarmStatus(ModelSimple): + """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. + 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 = { + ('value',): { + 'ACTIVE': "active", + 'IDLE': "idle", + 'WAITING': "waiting", + 'ASLEEP': "asleep", + 'INOPERATIVE': "inoperative", + 'UNKNOWN': "unknown", + 'STARTING': "starting", + }, + } + + validations = { + } + + additional_properties_type = None + + _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 { + 'value': (str,), + } + + @cached_property + def discriminator(): + return None + + + attribute_map = {} + + read_only_vars = set() + + _composed_schemas = None + + 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, *args, **kwargs): + """FarmStatus - a model defined in OpenAPI + + Note that value can be passed either in args or in kwargs, but not in both. + + Args: + args[0] (str):, must be one of ["active", "idle", "waiting", "asleep", "inoperative", "unknown", "starting", ] # noqa: E501 + + Keyword Args: + value (str):, must be one of ["active", "idle", "waiting", "asleep", "inoperative", "unknown", "starting", ] # noqa: E501 + _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,) + """ + # required up here when default value is not given + _path_to_item = kwargs.pop('_path_to_item', ()) + + if 'value' in kwargs: + value = kwargs.pop('value') + elif args: + args = list(args) + value = args.pop(0) + else: + raise ApiTypeError( + "value is required, but not passed in args or kwargs and doesn't have default", + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _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.value = value + if kwargs: + raise ApiTypeError( + "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % ( + kwargs, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): + """FarmStatus - a model defined in OpenAPI + + Note that value can be passed either in args or in kwargs, but not in both. + + Args: + args[0] (str):, must be one of ["active", "idle", "waiting", "asleep", "inoperative", "unknown", "starting", ] # noqa: E501 + + Keyword Args: + value (str):, must be one of ["active", "idle", "waiting", "asleep", "inoperative", "unknown", "starting", ] # noqa: E501 + _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,) + """ + # required up here when default value is not given + _path_to_item = kwargs.pop('_path_to_item', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if 'value' in kwargs: + value = kwargs.pop('value') + elif args: + args = list(args) + value = args.pop(0) + else: + raise ApiTypeError( + "value is required, but not passed in args or kwargs and doesn't have default", + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _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.value = value + if kwargs: + raise ApiTypeError( + "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % ( + kwargs, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + return self diff --git a/addon/flamenco/manager/model/farm_status_report.py b/addon/flamenco/manager/model/farm_status_report.py new file mode 100644 index 00000000..e103b4bf --- /dev/null +++ b/addon/flamenco/manager/model/farm_status_report.py @@ -0,0 +1,267 @@ +""" + 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.farm_status import FarmStatus + globals()['FarmStatus'] = FarmStatus + + +class FarmStatusReport(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': (FarmStatus,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'status': 'status', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, status, *args, **kwargs): # noqa: E501 + """FarmStatusReport - a model defined in OpenAPI + + Args: + status (FarmStatus): + + 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 = status + 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, *args, **kwargs): # noqa: E501 + """FarmStatusReport - a model defined in OpenAPI + + Args: + status (FarmStatus): + + 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 = status + 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.") diff --git a/addon/flamenco/manager/models/__init__.py b/addon/flamenco/manager/models/__init__.py index b2675225..42b8fd19 100644 --- a/addon/flamenco/manager/models/__init__.py +++ b/addon/flamenco/manager/models/__init__.py @@ -29,6 +29,8 @@ from flamenco.manager.model.event_task_log_update import EventTaskLogUpdate from flamenco.manager.model.event_task_update import EventTaskUpdate from flamenco.manager.model.event_worker_tag_update import EventWorkerTagUpdate from flamenco.manager.model.event_worker_update import EventWorkerUpdate +from flamenco.manager.model.farm_status import FarmStatus +from flamenco.manager.model.farm_status_report import FarmStatusReport from flamenco.manager.model.flamenco_version import FlamencoVersion from flamenco.manager.model.job import Job from flamenco.manager.model.job_all_of import JobAllOf diff --git a/addon/flamenco/manager_README.md b/addon/flamenco/manager_README.md index 248073c5..b48a7f1f 100644 --- a/addon/flamenco/manager_README.md +++ b/addon/flamenco/manager_README.md @@ -76,148 +76,151 @@ All URIs are relative to *http://localhost* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- -*JobsApi* | [**delete_job**](flamenco/manager/docs/JobsApi.md#delete_job) | **DELETE** /api/v3/jobs/{job_id} | Request deletion this job, including its tasks and any log files. The actual deletion may happen in the background. No job files will be deleted (yet). -*JobsApi* | [**delete_job_mass**](flamenco/manager/docs/JobsApi.md#delete_job_mass) | **DELETE** /api/v3/jobs/mass-delete | Mark jobs for deletion, based on certain criteria. -*JobsApi* | [**delete_job_what_would_it_do**](flamenco/manager/docs/JobsApi.md#delete_job_what_would_it_do) | **GET** /api/v3/jobs/{job_id}/what-would-delete-do | Get info about what would be deleted when deleting this job. The job itself, its logs, and the last-rendered images will always be deleted. The job files are only deleted conditionally, and this operation can be used to figure that out. -*JobsApi* | [**fetch_global_last_rendered_info**](flamenco/manager/docs/JobsApi.md#fetch_global_last_rendered_info) | **GET** /api/v3/jobs/last-rendered | Get the URL that serves the last-rendered images. -*JobsApi* | [**fetch_job**](flamenco/manager/docs/JobsApi.md#fetch_job) | **GET** /api/v3/jobs/{job_id} | Fetch info about the job. -*JobsApi* | [**fetch_job_blocklist**](flamenco/manager/docs/JobsApi.md#fetch_job_blocklist) | **GET** /api/v3/jobs/{job_id}/blocklist | Fetch the list of workers that are blocked from doing certain task types on this job. -*JobsApi* | [**fetch_job_last_rendered_info**](flamenco/manager/docs/JobsApi.md#fetch_job_last_rendered_info) | **GET** /api/v3/jobs/{job_id}/last-rendered | Get the URL that serves the last-rendered images of this job. -*JobsApi* | [**fetch_job_tasks**](flamenco/manager/docs/JobsApi.md#fetch_job_tasks) | **GET** /api/v3/jobs/{job_id}/tasks | Fetch a summary of all tasks of the given job. -*JobsApi* | [**fetch_task**](flamenco/manager/docs/JobsApi.md#fetch_task) | **GET** /api/v3/tasks/{task_id} | Fetch a single task. -*JobsApi* | [**fetch_task_log_info**](flamenco/manager/docs/JobsApi.md#fetch_task_log_info) | **GET** /api/v3/tasks/{task_id}/log | Get the URL of the task log, and some more info. -*JobsApi* | [**fetch_task_log_tail**](flamenco/manager/docs/JobsApi.md#fetch_task_log_tail) | **GET** /api/v3/tasks/{task_id}/logtail | Fetch the last few lines of the task's log. -*JobsApi* | [**get_job_type**](flamenco/manager/docs/JobsApi.md#get_job_type) | **GET** /api/v3/jobs/type/{typeName} | Get single job type and its parameters. -*JobsApi* | [**get_job_types**](flamenco/manager/docs/JobsApi.md#get_job_types) | **GET** /api/v3/jobs/types | Get list of job types and their parameters. -*JobsApi* | [**query_jobs**](flamenco/manager/docs/JobsApi.md#query_jobs) | **POST** /api/v3/jobs/query | Fetch list of jobs. -*JobsApi* | [**remove_job_blocklist**](flamenco/manager/docs/JobsApi.md#remove_job_blocklist) | **DELETE** /api/v3/jobs/{job_id}/blocklist | Remove entries from a job blocklist. -*JobsApi* | [**set_job_priority**](flamenco/manager/docs/JobsApi.md#set_job_priority) | **POST** /api/v3/jobs/{job_id}/setpriority | -*JobsApi* | [**set_job_status**](flamenco/manager/docs/JobsApi.md#set_job_status) | **POST** /api/v3/jobs/{job_id}/setstatus | -*JobsApi* | [**set_task_status**](flamenco/manager/docs/JobsApi.md#set_task_status) | **POST** /api/v3/tasks/{task_id}/setstatus | -*JobsApi* | [**submit_job**](flamenco/manager/docs/JobsApi.md#submit_job) | **POST** /api/v3/jobs | Submit a new job for Flamenco Manager to execute. -*JobsApi* | [**submit_job_check**](flamenco/manager/docs/JobsApi.md#submit_job_check) | **POST** /api/v3/jobs/check | Submit a new job for Flamenco Manager to check. -*MetaApi* | [**check_blender_exe_path**](flamenco/manager/docs/MetaApi.md#check_blender_exe_path) | **POST** /api/v3/configuration/check/blender | Validate a CLI command for use as way to start Blender -*MetaApi* | [**check_shared_storage_path**](flamenco/manager/docs/MetaApi.md#check_shared_storage_path) | **POST** /api/v3/configuration/check/shared-storage | Validate a path for use as shared storage. -*MetaApi* | [**find_blender_exe_path**](flamenco/manager/docs/MetaApi.md#find_blender_exe_path) | **GET** /api/v3/configuration/check/blender | Find one or more CLI commands for use as way to start Blender -*MetaApi* | [**get_configuration**](flamenco/manager/docs/MetaApi.md#get_configuration) | **GET** /api/v3/configuration | Get the configuration of this Manager. -*MetaApi* | [**get_configuration_file**](flamenco/manager/docs/MetaApi.md#get_configuration_file) | **GET** /api/v3/configuration/file | Retrieve the configuration of Flamenco Manager. -*MetaApi* | [**get_shared_storage**](flamenco/manager/docs/MetaApi.md#get_shared_storage) | **GET** /api/v3/configuration/shared-storage/{audience}/{platform} | Get the shared storage location of this Manager, adjusted for the given audience and platform. -*MetaApi* | [**get_variables**](flamenco/manager/docs/MetaApi.md#get_variables) | **GET** /api/v3/configuration/variables/{audience}/{platform} | Get the variables of this Manager. Used by the Blender add-on to recognise two-way variables, and for the web interface to do variable replacement based on the browser's platform. -*MetaApi* | [**get_version**](flamenco/manager/docs/MetaApi.md#get_version) | **GET** /api/v3/version | Get the Flamenco version of this Manager -*MetaApi* | [**save_setup_assistant_config**](flamenco/manager/docs/MetaApi.md#save_setup_assistant_config) | **POST** /api/v3/configuration/setup-assistant | Update the Manager's configuration, and restart it in fully functional mode. -*ShamanApi* | [**shaman_checkout**](flamenco/manager/docs/ShamanApi.md#shaman_checkout) | **POST** /api/v3/shaman/checkout/create | Create a directory, and symlink the required files into it. The files must all have been uploaded to Shaman before calling this endpoint. -*ShamanApi* | [**shaman_checkout_requirements**](flamenco/manager/docs/ShamanApi.md#shaman_checkout_requirements) | **POST** /api/v3/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** /api/v3/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** /api/v3/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/v3/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/v3/worker/register-worker | Register a new worker -*WorkerApi* | [**schedule_task**](flamenco/manager/docs/WorkerApi.md#schedule_task) | **POST** /api/v3/worker/task | Obtain a new task to execute -*WorkerApi* | [**sign_off**](flamenco/manager/docs/WorkerApi.md#sign_off) | **POST** /api/v3/worker/sign-off | Mark the worker as offline -*WorkerApi* | [**sign_on**](flamenco/manager/docs/WorkerApi.md#sign_on) | **POST** /api/v3/worker/sign-on | Authenticate & sign in the worker. -*WorkerApi* | [**task_output_produced**](flamenco/manager/docs/WorkerApi.md#task_output_produced) | **POST** /api/v3/worker/task/{task_id}/output-produced | Store the most recently rendered frame here. Note that it is up to the Worker to ensure this is in a format that's digestable by the Manager. Currently only PNG and JPEG support is planned. -*WorkerApi* | [**task_update**](flamenco/manager/docs/WorkerApi.md#task_update) | **POST** /api/v3/worker/task/{task_id} | Update the task, typically to indicate progress, completion, or failure. -*WorkerApi* | [**worker_state**](flamenco/manager/docs/WorkerApi.md#worker_state) | **GET** /api/v3/worker/state | -*WorkerApi* | [**worker_state_changed**](flamenco/manager/docs/WorkerApi.md#worker_state_changed) | **POST** /api/v3/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* | [**create_worker_tag**](flamenco/manager/docs/WorkerMgtApi.md#create_worker_tag) | **POST** /api/v3/worker-mgt/tags | Create a new worker tag. -*WorkerMgtApi* | [**delete_worker**](flamenco/manager/docs/WorkerMgtApi.md#delete_worker) | **DELETE** /api/v3/worker-mgt/workers/{worker_id} | Remove the given worker. It is recommended to only call this function when the worker is in `offline` state. If the worker is still running, stop it first. Any task still assigned to the worker will be requeued. -*WorkerMgtApi* | [**delete_worker_tag**](flamenco/manager/docs/WorkerMgtApi.md#delete_worker_tag) | **DELETE** /api/v3/worker-mgt/tag/{tag_id} | Remove this worker tag. This unassigns all workers from the tag and removes it. -*WorkerMgtApi* | [**fetch_worker**](flamenco/manager/docs/WorkerMgtApi.md#fetch_worker) | **GET** /api/v3/worker-mgt/workers/{worker_id} | Fetch info about the worker. -*WorkerMgtApi* | [**fetch_worker_sleep_schedule**](flamenco/manager/docs/WorkerMgtApi.md#fetch_worker_sleep_schedule) | **GET** /api/v3/worker-mgt/workers/{worker_id}/sleep-schedule | -*WorkerMgtApi* | [**fetch_worker_tag**](flamenco/manager/docs/WorkerMgtApi.md#fetch_worker_tag) | **GET** /api/v3/worker-mgt/tag/{tag_id} | Get a single worker tag. -*WorkerMgtApi* | [**fetch_worker_tags**](flamenco/manager/docs/WorkerMgtApi.md#fetch_worker_tags) | **GET** /api/v3/worker-mgt/tags | Get list of worker tags. -*WorkerMgtApi* | [**fetch_workers**](flamenco/manager/docs/WorkerMgtApi.md#fetch_workers) | **GET** /api/v3/worker-mgt/workers | Get list of workers. -*WorkerMgtApi* | [**request_worker_status_change**](flamenco/manager/docs/WorkerMgtApi.md#request_worker_status_change) | **POST** /api/v3/worker-mgt/workers/{worker_id}/setstatus | -*WorkerMgtApi* | [**set_worker_sleep_schedule**](flamenco/manager/docs/WorkerMgtApi.md#set_worker_sleep_schedule) | **POST** /api/v3/worker-mgt/workers/{worker_id}/sleep-schedule | -*WorkerMgtApi* | [**set_worker_tags**](flamenco/manager/docs/WorkerMgtApi.md#set_worker_tags) | **POST** /api/v3/worker-mgt/workers/{worker_id}/settags | -*WorkerMgtApi* | [**update_worker_tag**](flamenco/manager/docs/WorkerMgtApi.md#update_worker_tag) | **PUT** /api/v3/worker-mgt/tag/{tag_id} | Update an existing worker tag. +*JobsApi* | [**delete_job**](flamenco\manager\docs/JobsApi.md#delete_job) | **DELETE** /api/v3/jobs/{job_id} | Request deletion this job, including its tasks and any log files. The actual deletion may happen in the background. No job files will be deleted (yet). +*JobsApi* | [**delete_job_mass**](flamenco\manager\docs/JobsApi.md#delete_job_mass) | **DELETE** /api/v3/jobs/mass-delete | Mark jobs for deletion, based on certain criteria. +*JobsApi* | [**delete_job_what_would_it_do**](flamenco\manager\docs/JobsApi.md#delete_job_what_would_it_do) | **GET** /api/v3/jobs/{job_id}/what-would-delete-do | Get info about what would be deleted when deleting this job. The job itself, its logs, and the last-rendered images will always be deleted. The job files are only deleted conditionally, and this operation can be used to figure that out. +*JobsApi* | [**fetch_global_last_rendered_info**](flamenco\manager\docs/JobsApi.md#fetch_global_last_rendered_info) | **GET** /api/v3/jobs/last-rendered | Get the URL that serves the last-rendered images. +*JobsApi* | [**fetch_job**](flamenco\manager\docs/JobsApi.md#fetch_job) | **GET** /api/v3/jobs/{job_id} | Fetch info about the job. +*JobsApi* | [**fetch_job_blocklist**](flamenco\manager\docs/JobsApi.md#fetch_job_blocklist) | **GET** /api/v3/jobs/{job_id}/blocklist | Fetch the list of workers that are blocked from doing certain task types on this job. +*JobsApi* | [**fetch_job_last_rendered_info**](flamenco\manager\docs/JobsApi.md#fetch_job_last_rendered_info) | **GET** /api/v3/jobs/{job_id}/last-rendered | Get the URL that serves the last-rendered images of this job. +*JobsApi* | [**fetch_job_tasks**](flamenco\manager\docs/JobsApi.md#fetch_job_tasks) | **GET** /api/v3/jobs/{job_id}/tasks | Fetch a summary of all tasks of the given job. +*JobsApi* | [**fetch_task**](flamenco\manager\docs/JobsApi.md#fetch_task) | **GET** /api/v3/tasks/{task_id} | Fetch a single task. +*JobsApi* | [**fetch_task_log_info**](flamenco\manager\docs/JobsApi.md#fetch_task_log_info) | **GET** /api/v3/tasks/{task_id}/log | Get the URL of the task log, and some more info. +*JobsApi* | [**fetch_task_log_tail**](flamenco\manager\docs/JobsApi.md#fetch_task_log_tail) | **GET** /api/v3/tasks/{task_id}/logtail | Fetch the last few lines of the task's log. +*JobsApi* | [**get_job_type**](flamenco\manager\docs/JobsApi.md#get_job_type) | **GET** /api/v3/jobs/type/{typeName} | Get single job type and its parameters. +*JobsApi* | [**get_job_types**](flamenco\manager\docs/JobsApi.md#get_job_types) | **GET** /api/v3/jobs/types | Get list of job types and their parameters. +*JobsApi* | [**query_jobs**](flamenco\manager\docs/JobsApi.md#query_jobs) | **POST** /api/v3/jobs/query | Fetch list of jobs. +*JobsApi* | [**remove_job_blocklist**](flamenco\manager\docs/JobsApi.md#remove_job_blocklist) | **DELETE** /api/v3/jobs/{job_id}/blocklist | Remove entries from a job blocklist. +*JobsApi* | [**set_job_priority**](flamenco\manager\docs/JobsApi.md#set_job_priority) | **POST** /api/v3/jobs/{job_id}/setpriority | +*JobsApi* | [**set_job_status**](flamenco\manager\docs/JobsApi.md#set_job_status) | **POST** /api/v3/jobs/{job_id}/setstatus | +*JobsApi* | [**set_task_status**](flamenco\manager\docs/JobsApi.md#set_task_status) | **POST** /api/v3/tasks/{task_id}/setstatus | +*JobsApi* | [**submit_job**](flamenco\manager\docs/JobsApi.md#submit_job) | **POST** /api/v3/jobs | Submit a new job for Flamenco Manager to execute. +*JobsApi* | [**submit_job_check**](flamenco\manager\docs/JobsApi.md#submit_job_check) | **POST** /api/v3/jobs/check | Submit a new job for Flamenco Manager to check. +*MetaApi* | [**check_blender_exe_path**](flamenco\manager\docs/MetaApi.md#check_blender_exe_path) | **POST** /api/v3/configuration/check/blender | Validate a CLI command for use as way to start Blender +*MetaApi* | [**check_shared_storage_path**](flamenco\manager\docs/MetaApi.md#check_shared_storage_path) | **POST** /api/v3/configuration/check/shared-storage | Validate a path for use as shared storage. +*MetaApi* | [**find_blender_exe_path**](flamenco\manager\docs/MetaApi.md#find_blender_exe_path) | **GET** /api/v3/configuration/check/blender | Find one or more CLI commands for use as way to start Blender +*MetaApi* | [**get_configuration**](flamenco\manager\docs/MetaApi.md#get_configuration) | **GET** /api/v3/configuration | Get the configuration of this Manager. +*MetaApi* | [**get_configuration_file**](flamenco\manager\docs/MetaApi.md#get_configuration_file) | **GET** /api/v3/configuration/file | Retrieve the configuration of Flamenco Manager. +*MetaApi* | [**get_farm_status**](flamenco\manager\docs/MetaApi.md#get_farm_status) | **GET** /api/v3/status | Get the status of this Flamenco farm. +*MetaApi* | [**get_shared_storage**](flamenco\manager\docs/MetaApi.md#get_shared_storage) | **GET** /api/v3/configuration/shared-storage/{audience}/{platform} | Get the shared storage location of this Manager, adjusted for the given audience and platform. +*MetaApi* | [**get_variables**](flamenco\manager\docs/MetaApi.md#get_variables) | **GET** /api/v3/configuration/variables/{audience}/{platform} | Get the variables of this Manager. Used by the Blender add-on to recognise two-way variables, and for the web interface to do variable replacement based on the browser's platform. +*MetaApi* | [**get_version**](flamenco\manager\docs/MetaApi.md#get_version) | **GET** /api/v3/version | Get the Flamenco version of this Manager +*MetaApi* | [**save_setup_assistant_config**](flamenco\manager\docs/MetaApi.md#save_setup_assistant_config) | **POST** /api/v3/configuration/setup-assistant | Update the Manager's configuration, and restart it in fully functional mode. +*ShamanApi* | [**shaman_checkout**](flamenco\manager\docs/ShamanApi.md#shaman_checkout) | **POST** /api/v3/shaman/checkout/create | Create a directory, and symlink the required files into it. The files must all have been uploaded to Shaman before calling this endpoint. +*ShamanApi* | [**shaman_checkout_requirements**](flamenco\manager\docs/ShamanApi.md#shaman_checkout_requirements) | **POST** /api/v3/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** /api/v3/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** /api/v3/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/v3/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/v3/worker/register-worker | Register a new worker +*WorkerApi* | [**schedule_task**](flamenco\manager\docs/WorkerApi.md#schedule_task) | **POST** /api/v3/worker/task | Obtain a new task to execute +*WorkerApi* | [**sign_off**](flamenco\manager\docs/WorkerApi.md#sign_off) | **POST** /api/v3/worker/sign-off | Mark the worker as offline +*WorkerApi* | [**sign_on**](flamenco\manager\docs/WorkerApi.md#sign_on) | **POST** /api/v3/worker/sign-on | Authenticate & sign in the worker. +*WorkerApi* | [**task_output_produced**](flamenco\manager\docs/WorkerApi.md#task_output_produced) | **POST** /api/v3/worker/task/{task_id}/output-produced | Store the most recently rendered frame here. Note that it is up to the Worker to ensure this is in a format that's digestable by the Manager. Currently only PNG and JPEG support is planned. +*WorkerApi* | [**task_update**](flamenco\manager\docs/WorkerApi.md#task_update) | **POST** /api/v3/worker/task/{task_id} | Update the task, typically to indicate progress, completion, or failure. +*WorkerApi* | [**worker_state**](flamenco\manager\docs/WorkerApi.md#worker_state) | **GET** /api/v3/worker/state | +*WorkerApi* | [**worker_state_changed**](flamenco\manager\docs/WorkerApi.md#worker_state_changed) | **POST** /api/v3/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* | [**create_worker_tag**](flamenco\manager\docs/WorkerMgtApi.md#create_worker_tag) | **POST** /api/v3/worker-mgt/tags | Create a new worker tag. +*WorkerMgtApi* | [**delete_worker**](flamenco\manager\docs/WorkerMgtApi.md#delete_worker) | **DELETE** /api/v3/worker-mgt/workers/{worker_id} | Remove the given worker. It is recommended to only call this function when the worker is in `offline` state. If the worker is still running, stop it first. Any task still assigned to the worker will be requeued. +*WorkerMgtApi* | [**delete_worker_tag**](flamenco\manager\docs/WorkerMgtApi.md#delete_worker_tag) | **DELETE** /api/v3/worker-mgt/tag/{tag_id} | Remove this worker tag. This unassigns all workers from the tag and removes it. +*WorkerMgtApi* | [**fetch_worker**](flamenco\manager\docs/WorkerMgtApi.md#fetch_worker) | **GET** /api/v3/worker-mgt/workers/{worker_id} | Fetch info about the worker. +*WorkerMgtApi* | [**fetch_worker_sleep_schedule**](flamenco\manager\docs/WorkerMgtApi.md#fetch_worker_sleep_schedule) | **GET** /api/v3/worker-mgt/workers/{worker_id}/sleep-schedule | +*WorkerMgtApi* | [**fetch_worker_tag**](flamenco\manager\docs/WorkerMgtApi.md#fetch_worker_tag) | **GET** /api/v3/worker-mgt/tag/{tag_id} | Get a single worker tag. +*WorkerMgtApi* | [**fetch_worker_tags**](flamenco\manager\docs/WorkerMgtApi.md#fetch_worker_tags) | **GET** /api/v3/worker-mgt/tags | Get list of worker tags. +*WorkerMgtApi* | [**fetch_workers**](flamenco\manager\docs/WorkerMgtApi.md#fetch_workers) | **GET** /api/v3/worker-mgt/workers | Get list of workers. +*WorkerMgtApi* | [**request_worker_status_change**](flamenco\manager\docs/WorkerMgtApi.md#request_worker_status_change) | **POST** /api/v3/worker-mgt/workers/{worker_id}/setstatus | +*WorkerMgtApi* | [**set_worker_sleep_schedule**](flamenco\manager\docs/WorkerMgtApi.md#set_worker_sleep_schedule) | **POST** /api/v3/worker-mgt/workers/{worker_id}/sleep-schedule | +*WorkerMgtApi* | [**set_worker_tags**](flamenco\manager\docs/WorkerMgtApi.md#set_worker_tags) | **POST** /api/v3/worker-mgt/workers/{worker_id}/settags | +*WorkerMgtApi* | [**update_worker_tag**](flamenco\manager\docs/WorkerMgtApi.md#update_worker_tag) | **PUT** /api/v3/worker-mgt/tag/{tag_id} | Update an existing worker tag. ## Documentation For Models - - [AssignedTask](flamenco/manager/docs/AssignedTask.md) - - [AvailableJobSetting](flamenco/manager/docs/AvailableJobSetting.md) - - [AvailableJobSettingEvalInfo](flamenco/manager/docs/AvailableJobSettingEvalInfo.md) - - [AvailableJobSettingSubtype](flamenco/manager/docs/AvailableJobSettingSubtype.md) - - [AvailableJobSettingType](flamenco/manager/docs/AvailableJobSettingType.md) - - [AvailableJobSettingVisibility](flamenco/manager/docs/AvailableJobSettingVisibility.md) - - [AvailableJobType](flamenco/manager/docs/AvailableJobType.md) - - [AvailableJobTypes](flamenco/manager/docs/AvailableJobTypes.md) - - [BlenderPathCheckResult](flamenco/manager/docs/BlenderPathCheckResult.md) - - [BlenderPathFindResult](flamenco/manager/docs/BlenderPathFindResult.md) - - [BlenderPathSource](flamenco/manager/docs/BlenderPathSource.md) - - [Command](flamenco/manager/docs/Command.md) - - [Error](flamenco/manager/docs/Error.md) - - [EventJobUpdate](flamenco/manager/docs/EventJobUpdate.md) - - [EventLastRenderedUpdate](flamenco/manager/docs/EventLastRenderedUpdate.md) - - [EventLifeCycle](flamenco/manager/docs/EventLifeCycle.md) - - [EventTaskLogUpdate](flamenco/manager/docs/EventTaskLogUpdate.md) - - [EventTaskUpdate](flamenco/manager/docs/EventTaskUpdate.md) - - [EventWorkerTagUpdate](flamenco/manager/docs/EventWorkerTagUpdate.md) - - [EventWorkerUpdate](flamenco/manager/docs/EventWorkerUpdate.md) - - [FlamencoVersion](flamenco/manager/docs/FlamencoVersion.md) - - [Job](flamenco/manager/docs/Job.md) - - [JobAllOf](flamenco/manager/docs/JobAllOf.md) - - [JobBlocklist](flamenco/manager/docs/JobBlocklist.md) - - [JobBlocklistEntry](flamenco/manager/docs/JobBlocklistEntry.md) - - [JobDeletionInfo](flamenco/manager/docs/JobDeletionInfo.md) - - [JobLastRenderedImageInfo](flamenco/manager/docs/JobLastRenderedImageInfo.md) - - [JobMassDeletionSelection](flamenco/manager/docs/JobMassDeletionSelection.md) - - [JobMetadata](flamenco/manager/docs/JobMetadata.md) - - [JobPriorityChange](flamenco/manager/docs/JobPriorityChange.md) - - [JobSettings](flamenco/manager/docs/JobSettings.md) - - [JobStatus](flamenco/manager/docs/JobStatus.md) - - [JobStatusChange](flamenco/manager/docs/JobStatusChange.md) - - [JobStorageInfo](flamenco/manager/docs/JobStorageInfo.md) - - [JobTasksSummary](flamenco/manager/docs/JobTasksSummary.md) - - [JobsQuery](flamenco/manager/docs/JobsQuery.md) - - [JobsQueryResult](flamenco/manager/docs/JobsQueryResult.md) - - [LifeCycleEventType](flamenco/manager/docs/LifeCycleEventType.md) - - [ManagerConfiguration](flamenco/manager/docs/ManagerConfiguration.md) - - [ManagerVariable](flamenco/manager/docs/ManagerVariable.md) - - [ManagerVariableAudience](flamenco/manager/docs/ManagerVariableAudience.md) - - [ManagerVariables](flamenco/manager/docs/ManagerVariables.md) - - [MayKeepRunning](flamenco/manager/docs/MayKeepRunning.md) - - [PathCheckInput](flamenco/manager/docs/PathCheckInput.md) - - [PathCheckResult](flamenco/manager/docs/PathCheckResult.md) - - [RegisteredWorker](flamenco/manager/docs/RegisteredWorker.md) - - [SecurityError](flamenco/manager/docs/SecurityError.md) - - [SetupAssistantConfig](flamenco/manager/docs/SetupAssistantConfig.md) - - [ShamanCheckout](flamenco/manager/docs/ShamanCheckout.md) - - [ShamanCheckoutResult](flamenco/manager/docs/ShamanCheckoutResult.md) - - [ShamanFileSpec](flamenco/manager/docs/ShamanFileSpec.md) - - [ShamanFileSpecWithStatus](flamenco/manager/docs/ShamanFileSpecWithStatus.md) - - [ShamanFileStatus](flamenco/manager/docs/ShamanFileStatus.md) - - [ShamanRequirementsRequest](flamenco/manager/docs/ShamanRequirementsRequest.md) - - [ShamanRequirementsResponse](flamenco/manager/docs/ShamanRequirementsResponse.md) - - [ShamanSingleFileStatus](flamenco/manager/docs/ShamanSingleFileStatus.md) - - [SharedStorageLocation](flamenco/manager/docs/SharedStorageLocation.md) - - [SocketIOSubscription](flamenco/manager/docs/SocketIOSubscription.md) - - [SocketIOSubscriptionOperation](flamenco/manager/docs/SocketIOSubscriptionOperation.md) - - [SocketIOSubscriptionType](flamenco/manager/docs/SocketIOSubscriptionType.md) - - [SubmittedJob](flamenco/manager/docs/SubmittedJob.md) - - [Task](flamenco/manager/docs/Task.md) - - [TaskLogInfo](flamenco/manager/docs/TaskLogInfo.md) - - [TaskStatus](flamenco/manager/docs/TaskStatus.md) - - [TaskStatusChange](flamenco/manager/docs/TaskStatusChange.md) - - [TaskSummary](flamenco/manager/docs/TaskSummary.md) - - [TaskUpdate](flamenco/manager/docs/TaskUpdate.md) - - [TaskWorker](flamenco/manager/docs/TaskWorker.md) - - [Worker](flamenco/manager/docs/Worker.md) - - [WorkerAllOf](flamenco/manager/docs/WorkerAllOf.md) - - [WorkerList](flamenco/manager/docs/WorkerList.md) - - [WorkerRegistration](flamenco/manager/docs/WorkerRegistration.md) - - [WorkerSignOn](flamenco/manager/docs/WorkerSignOn.md) - - [WorkerSleepSchedule](flamenco/manager/docs/WorkerSleepSchedule.md) - - [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) - - [WorkerTag](flamenco/manager/docs/WorkerTag.md) - - [WorkerTagChangeRequest](flamenco/manager/docs/WorkerTagChangeRequest.md) - - [WorkerTagList](flamenco/manager/docs/WorkerTagList.md) - - [WorkerTask](flamenco/manager/docs/WorkerTask.md) - - [WorkerTaskAllOf](flamenco/manager/docs/WorkerTaskAllOf.md) + - [AssignedTask](flamenco\manager\docs/AssignedTask.md) + - [AvailableJobSetting](flamenco\manager\docs/AvailableJobSetting.md) + - [AvailableJobSettingEvalInfo](flamenco\manager\docs/AvailableJobSettingEvalInfo.md) + - [AvailableJobSettingSubtype](flamenco\manager\docs/AvailableJobSettingSubtype.md) + - [AvailableJobSettingType](flamenco\manager\docs/AvailableJobSettingType.md) + - [AvailableJobSettingVisibility](flamenco\manager\docs/AvailableJobSettingVisibility.md) + - [AvailableJobType](flamenco\manager\docs/AvailableJobType.md) + - [AvailableJobTypes](flamenco\manager\docs/AvailableJobTypes.md) + - [BlenderPathCheckResult](flamenco\manager\docs/BlenderPathCheckResult.md) + - [BlenderPathFindResult](flamenco\manager\docs/BlenderPathFindResult.md) + - [BlenderPathSource](flamenco\manager\docs/BlenderPathSource.md) + - [Command](flamenco\manager\docs/Command.md) + - [Error](flamenco\manager\docs/Error.md) + - [EventJobUpdate](flamenco\manager\docs/EventJobUpdate.md) + - [EventLastRenderedUpdate](flamenco\manager\docs/EventLastRenderedUpdate.md) + - [EventLifeCycle](flamenco\manager\docs/EventLifeCycle.md) + - [EventTaskLogUpdate](flamenco\manager\docs/EventTaskLogUpdate.md) + - [EventTaskUpdate](flamenco\manager\docs/EventTaskUpdate.md) + - [EventWorkerTagUpdate](flamenco\manager\docs/EventWorkerTagUpdate.md) + - [EventWorkerUpdate](flamenco\manager\docs/EventWorkerUpdate.md) + - [FarmStatus](flamenco\manager\docs/FarmStatus.md) + - [FarmStatusReport](flamenco\manager\docs/FarmStatusReport.md) + - [FlamencoVersion](flamenco\manager\docs/FlamencoVersion.md) + - [Job](flamenco\manager\docs/Job.md) + - [JobAllOf](flamenco\manager\docs/JobAllOf.md) + - [JobBlocklist](flamenco\manager\docs/JobBlocklist.md) + - [JobBlocklistEntry](flamenco\manager\docs/JobBlocklistEntry.md) + - [JobDeletionInfo](flamenco\manager\docs/JobDeletionInfo.md) + - [JobLastRenderedImageInfo](flamenco\manager\docs/JobLastRenderedImageInfo.md) + - [JobMassDeletionSelection](flamenco\manager\docs/JobMassDeletionSelection.md) + - [JobMetadata](flamenco\manager\docs/JobMetadata.md) + - [JobPriorityChange](flamenco\manager\docs/JobPriorityChange.md) + - [JobSettings](flamenco\manager\docs/JobSettings.md) + - [JobStatus](flamenco\manager\docs/JobStatus.md) + - [JobStatusChange](flamenco\manager\docs/JobStatusChange.md) + - [JobStorageInfo](flamenco\manager\docs/JobStorageInfo.md) + - [JobTasksSummary](flamenco\manager\docs/JobTasksSummary.md) + - [JobsQuery](flamenco\manager\docs/JobsQuery.md) + - [JobsQueryResult](flamenco\manager\docs/JobsQueryResult.md) + - [LifeCycleEventType](flamenco\manager\docs/LifeCycleEventType.md) + - [ManagerConfiguration](flamenco\manager\docs/ManagerConfiguration.md) + - [ManagerVariable](flamenco\manager\docs/ManagerVariable.md) + - [ManagerVariableAudience](flamenco\manager\docs/ManagerVariableAudience.md) + - [ManagerVariables](flamenco\manager\docs/ManagerVariables.md) + - [MayKeepRunning](flamenco\manager\docs/MayKeepRunning.md) + - [PathCheckInput](flamenco\manager\docs/PathCheckInput.md) + - [PathCheckResult](flamenco\manager\docs/PathCheckResult.md) + - [RegisteredWorker](flamenco\manager\docs/RegisteredWorker.md) + - [SecurityError](flamenco\manager\docs/SecurityError.md) + - [SetupAssistantConfig](flamenco\manager\docs/SetupAssistantConfig.md) + - [ShamanCheckout](flamenco\manager\docs/ShamanCheckout.md) + - [ShamanCheckoutResult](flamenco\manager\docs/ShamanCheckoutResult.md) + - [ShamanFileSpec](flamenco\manager\docs/ShamanFileSpec.md) + - [ShamanFileSpecWithStatus](flamenco\manager\docs/ShamanFileSpecWithStatus.md) + - [ShamanFileStatus](flamenco\manager\docs/ShamanFileStatus.md) + - [ShamanRequirementsRequest](flamenco\manager\docs/ShamanRequirementsRequest.md) + - [ShamanRequirementsResponse](flamenco\manager\docs/ShamanRequirementsResponse.md) + - [ShamanSingleFileStatus](flamenco\manager\docs/ShamanSingleFileStatus.md) + - [SharedStorageLocation](flamenco\manager\docs/SharedStorageLocation.md) + - [SocketIOSubscription](flamenco\manager\docs/SocketIOSubscription.md) + - [SocketIOSubscriptionOperation](flamenco\manager\docs/SocketIOSubscriptionOperation.md) + - [SocketIOSubscriptionType](flamenco\manager\docs/SocketIOSubscriptionType.md) + - [SubmittedJob](flamenco\manager\docs/SubmittedJob.md) + - [Task](flamenco\manager\docs/Task.md) + - [TaskLogInfo](flamenco\manager\docs/TaskLogInfo.md) + - [TaskStatus](flamenco\manager\docs/TaskStatus.md) + - [TaskStatusChange](flamenco\manager\docs/TaskStatusChange.md) + - [TaskSummary](flamenco\manager\docs/TaskSummary.md) + - [TaskUpdate](flamenco\manager\docs/TaskUpdate.md) + - [TaskWorker](flamenco\manager\docs/TaskWorker.md) + - [Worker](flamenco\manager\docs/Worker.md) + - [WorkerAllOf](flamenco\manager\docs/WorkerAllOf.md) + - [WorkerList](flamenco\manager\docs/WorkerList.md) + - [WorkerRegistration](flamenco\manager\docs/WorkerRegistration.md) + - [WorkerSignOn](flamenco\manager\docs/WorkerSignOn.md) + - [WorkerSleepSchedule](flamenco\manager\docs/WorkerSleepSchedule.md) + - [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) + - [WorkerTag](flamenco\manager\docs/WorkerTag.md) + - [WorkerTagChangeRequest](flamenco\manager\docs/WorkerTagChangeRequest.md) + - [WorkerTagList](flamenco\manager\docs/WorkerTagList.md) + - [WorkerTask](flamenco\manager\docs/WorkerTask.md) + - [WorkerTaskAllOf](flamenco\manager\docs/WorkerTaskAllOf.md) ## Documentation For Authorization diff --git a/internal/worker/mocks/client.gen.go b/internal/worker/mocks/client.gen.go index 22f99f23..679769bb 100644 --- a/internal/worker/mocks/client.gen.go +++ b/internal/worker/mocks/client.gen.go @@ -596,6 +596,26 @@ func (mr *MockFlamencoClientMockRecorder) GetConfigurationWithResponse(arg0 inte return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetConfigurationWithResponse", reflect.TypeOf((*MockFlamencoClient)(nil).GetConfigurationWithResponse), varargs...) } +// GetFarmStatusWithResponse mocks base method. +func (m *MockFlamencoClient) GetFarmStatusWithResponse(arg0 context.Context, arg1 ...api.RequestEditorFn) (*api.GetFarmStatusResponse, error) { + m.ctrl.T.Helper() + varargs := []interface{}{arg0} + for _, a := range arg1 { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetFarmStatusWithResponse", varargs...) + ret0, _ := ret[0].(*api.GetFarmStatusResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetFarmStatusWithResponse indicates an expected call of GetFarmStatusWithResponse. +func (mr *MockFlamencoClientMockRecorder) GetFarmStatusWithResponse(arg0 interface{}, arg1 ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{arg0}, arg1...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetFarmStatusWithResponse", reflect.TypeOf((*MockFlamencoClient)(nil).GetFarmStatusWithResponse), varargs...) +} + // GetJobTypeWithResponse mocks base method. func (m *MockFlamencoClient) GetJobTypeWithResponse(arg0 context.Context, arg1 string, arg2 ...api.RequestEditorFn) (*api.GetJobTypeResponse, error) { m.ctrl.T.Helper() diff --git a/pkg/api/openapi_client.gen.go b/pkg/api/openapi_client.gen.go index 01028496..a586636a 100644 --- a/pkg/api/openapi_client.gen.go +++ b/pkg/api/openapi_client.gen.go @@ -200,6 +200,9 @@ type ClientInterface interface { // ShamanFileStore request with any body ShamanFileStoreWithBody(ctx context.Context, checksum string, filesize int, params *ShamanFileStoreParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + // GetFarmStatus request + GetFarmStatus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) + // FetchTask request FetchTask(ctx context.Context, taskId string, reqEditors ...RequestEditorFn) (*http.Response, error) @@ -779,6 +782,18 @@ func (c *Client) ShamanFileStoreWithBody(ctx context.Context, checksum string, f return c.Client.Do(req) } +func (c *Client) GetFarmStatus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetFarmStatusRequest(c.Server) + 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) FetchTask(ctx context.Context, taskId string, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewFetchTaskRequest(c.Server, taskId) if err != nil { @@ -2273,6 +2288,33 @@ func NewShamanFileStoreRequestWithBody(server string, checksum string, filesize return req, nil } +// NewGetFarmStatusRequest generates requests for GetFarmStatus +func NewGetFarmStatusRequest(server string) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api/v3/status") + 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 +} + // NewFetchTaskRequest generates requests for FetchTask func NewFetchTaskRequest(server string, taskId string) (*http.Request, error) { var err error @@ -3370,6 +3412,9 @@ type ClientWithResponsesInterface interface { // ShamanFileStore request with any body ShamanFileStoreWithBodyWithResponse(ctx context.Context, checksum string, filesize int, params *ShamanFileStoreParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ShamanFileStoreResponse, error) + // GetFarmStatus request + GetFarmStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetFarmStatusResponse, error) + // FetchTask request FetchTaskWithResponse(ctx context.Context, taskId string, reqEditors ...RequestEditorFn) (*FetchTaskResponse, error) @@ -4103,6 +4148,28 @@ func (r ShamanFileStoreResponse) StatusCode() int { return 0 } +type GetFarmStatusResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *FarmStatusReport +} + +// Status returns HTTPResponse.Status +func (r GetFarmStatusResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetFarmStatusResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + type FetchTaskResponse struct { Body []byte HTTPResponse *http.Response @@ -5037,6 +5104,15 @@ func (c *ClientWithResponses) ShamanFileStoreWithBodyWithResponse(ctx context.Co return ParseShamanFileStoreResponse(rsp) } +// GetFarmStatusWithResponse request returning *GetFarmStatusResponse +func (c *ClientWithResponses) GetFarmStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetFarmStatusResponse, error) { + rsp, err := c.GetFarmStatus(ctx, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetFarmStatusResponse(rsp) +} + // FetchTaskWithResponse request returning *FetchTaskResponse func (c *ClientWithResponses) FetchTaskWithResponse(ctx context.Context, taskId string, reqEditors ...RequestEditorFn) (*FetchTaskResponse, error) { rsp, err := c.FetchTask(ctx, taskId, reqEditors...) @@ -6193,6 +6269,32 @@ func ParseShamanFileStoreResponse(rsp *http.Response) (*ShamanFileStoreResponse, return response, nil } +// ParseGetFarmStatusResponse parses an HTTP response from a GetFarmStatusWithResponse call +func ParseGetFarmStatusResponse(rsp *http.Response) (*GetFarmStatusResponse, error) { + bodyBytes, err := ioutil.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetFarmStatusResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest FarmStatusReport + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + // ParseFetchTaskResponse parses an HTTP response from a FetchTaskWithResponse call func ParseFetchTaskResponse(rsp *http.Response) (*FetchTaskResponse, error) { bodyBytes, err := ioutil.ReadAll(rsp.Body) diff --git a/pkg/api/openapi_server.gen.go b/pkg/api/openapi_server.gen.go index 7c883470..5a492e4b 100644 --- a/pkg/api/openapi_server.gen.go +++ b/pkg/api/openapi_server.gen.go @@ -98,6 +98,9 @@ type ServerInterface interface { // The file's contents should be sent in the request body. // (POST /api/v3/shaman/files/{checksum}/{filesize}) ShamanFileStore(ctx echo.Context, checksum string, filesize int, params ShamanFileStoreParams) error + // Get the status of this Flamenco farm. + // (GET /api/v3/status) + GetFarmStatus(ctx echo.Context) error // Fetch a single task. // (GET /api/v3/tasks/{task_id}) FetchTask(ctx echo.Context, taskId string) error @@ -600,6 +603,15 @@ func (w *ServerInterfaceWrapper) ShamanFileStore(ctx echo.Context) error { return err } +// GetFarmStatus converts echo context to params. +func (w *ServerInterfaceWrapper) GetFarmStatus(ctx echo.Context) error { + var err error + + // Invoke the callback with all the unmarshalled arguments + err = w.Handler.GetFarmStatus(ctx) + return err +} + // FetchTask converts echo context to params. func (w *ServerInterfaceWrapper) FetchTask(ctx echo.Context) error { var err error @@ -1018,6 +1030,7 @@ func RegisterHandlersWithBaseURL(router EchoRouter, si ServerInterface, baseURL router.POST(baseURL+"/api/v3/shaman/checkout/requirements", wrapper.ShamanCheckoutRequirements) router.GET(baseURL+"/api/v3/shaman/files/:checksum/:filesize", wrapper.ShamanFileStoreCheck) router.POST(baseURL+"/api/v3/shaman/files/:checksum/:filesize", wrapper.ShamanFileStore) + router.GET(baseURL+"/api/v3/status", wrapper.GetFarmStatus) router.GET(baseURL+"/api/v3/tasks/:task_id", wrapper.FetchTask) router.GET(baseURL+"/api/v3/tasks/:task_id/log", wrapper.FetchTaskLogInfo) router.GET(baseURL+"/api/v3/tasks/:task_id/logtail", wrapper.FetchTaskLogTail) diff --git a/pkg/api/openapi_spec.gen.go b/pkg/api/openapi_spec.gen.go index 47cc6901..67cee5b6 100644 --- a/pkg/api/openapi_spec.gen.go +++ b/pkg/api/openapi_spec.gen.go @@ -68,182 +68,183 @@ var swaggerSpec = []string{ "y7cD3HAX4rCZ72uc9HMZfzPs4Drf3BQ/i7EHT+Gs5hRhF/4ke3ERVboz2ksU8AVyRucbUJFrj4Yx+oZm", "vHWQ9EvZln2DAW9L9r2Z5fYZtwIwbXNp8c2N13aJYF0DsYSKCyM90FKvM85wZacEzY1WWo7sV3H7jIVT", "VHlwMibasZmu1VG7XANtO8D4i0n/uPxtaIa5NxeKsUjwhxEKnDLLVbhe874zYAQWxu3Wvpn0LN3qP5f4", - "IBh2JT/xry4Qr3b5+Bl88RZ1v5sVza9YqWwYxxZkrp+6uXGGjbsSu8NOdvtrPbP155t/zjk4lw7HB6PH", - "j0bzND18kD48/MHNfTT4f2VVOtwZQCxGqf0mBofjwxHNigXdD9YU/ky+64z9vXOB1/cdVrGTN6CxjI9r", - "4dw8QQsGL8l7j0zOqNUuF1VOhZGuVJXDZyhblCxjVDEyrXiWuqhG8ISYK0EVmYSrmqBoLIFU1Z9AmI21", - "puHXkznXE2K/AhtZ1GnSQo/6/Bug8ChjIBrDhp8xIpJm2ZvZ4Ohv6+/IqXPxmK8+DT+ukZXWGv2dNkXc", - "F0QKr0dF5VQMY4gZb80D8Ei5m7j11funtyFdw3ixMyEcf4ZQ5w59gzj36TfE4z9nMrnMuNL9HjdkUNbo", - "REsGllsIX2QpSVgJ6hNoEeiXk0Y8sRaOxCHnVk6PcD0vhC5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Yjz/XXnulyKEa4leydLTTZpbm5Uo+KzmWDQ1QrHV6YIIPWqtquS82t8/eOTt", - "wVY6q5TB/I6hWUs7YGQuFKb8PbAC1D3VdHdEM4cCC+8OllhvGP40HGQBgHa0tdyCq6R16lmtIfutNwwh", - "zTVFscNmh5xW0zW1LU+ZACu+z77DEDkFIdd7Kvh2gkmJtvKYlrbikKOSwZvm4Xs59dl45JkbEwslzZkO", - "n6PqBaZeqi590rD7O5NzhW4twZgtHlFkPOE6W7lppwyjyMGxYh6thn4jRovAvBP3rhlDCox9+E5LWE9j", - "6pnLVH0vp98D7zavm1fuKchjBKO15jkbnwvn4xNSo2lkuoK0RtBKLB+hmhSl1DKRmSvv46GFvhkEpq/f", - "Cxk901JCxo8ZuRmT0bwcsthIZSK48MbZyrct5hYbxJXAcZa//jBqrNGgZfMY9kgl6h8MZRjvnBwpi3U1", - "39ZvPRAT/TIgZqr+Kyoh9oEiQhyoJpdcpDYnYmsY+MiwLPtZTiFIO8t+9U4tW5CAqstMzvFhGBwbvn5G", - "53H3VyMDIVpoq7ZoBRWptKyxsSnBbBPr8vkhgfbB4e//H/mvf//9P37/z9//x+//8V///vv//P0/f///", - "wxx2qKYQxn3ALKD1HA32MHB3T8323supQjPO/YPDMbwEZpRKXF6gXHMY4OTJLz8aFC3U4MiIVVCc00g7", - "90f397H+3gUkaLGl8jUfITYYa/KxD5oJm8kzLqxryKzkQlba19xprA+n8Cvci+/cFg/sjFdKqdeOZytC", - "Yim6i5oTDjIuqg/B9QOv9cgelQ187kbchkiwIVbEB7xuW/Z7Q52M8Kw3xci4V2vb91aRNXU4YQ/UOuEB", - "SGvEnKiV0iyvA77tt63ycBBmmMi54Ip1xSv7ch0zTUkml6wcJVQxb7a0U7hF2RCTczzQ88GQnA+WXKRy", - "qfCPlJZLLvDfsmBiqlLzB9PJmJz6qWReUM19Ke8f5T1FJmUlgA/++ObN6eRPpKwEmYB/VWYk5UpDvB8E", - "NBguS334n6ui6xepxufiqXLyJ82I2dG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Hm4//hJPdXB409dQ4KDyEmU2ppfA+nRKUKW", + "X4clBNw4rkqI961Yv0rbxAU0nCqvFKHPNww/IseCYGER66tXzq9ix8IYJhfaZh6c++2Q4+fnAzQ2OZXb", + "Bwz49B2KqwBdbWLtOCOVVfM9qDYxMtRrDys2jI6fT3pSVC3KbKlN49pf8oydFizZqFjj4MPmMW2+TTX3", + "j9l1zTO00rVOJVZC6RroYd3SbcQAxdmCvvbN6QUV1uvZjBygqjEouGVsajF1dTTqa0zOAuni85Fvi4CS", + "LY/EH3WXwFkVjDqpiyLltbTKLjqgw3FJseXIl/V4aMqoR/Se2GjpHBpZYZPUhmNGxwA687FrbmNNGj3Y", + "6Kgxq7HjDfuF3SaAf+V6UTthtgK1U8IT562Mgn5oxdQhSVlho/SBjjifyDd+NtvKnsFx9Ph3Oqc6XBeH", + "1xkvsATUQYZVkUmaoj6GwUNRswAO9hZXA+VyXBTndQUPEDQasOuVJW5IaLgVAeEW2Fv/4TfPCzN641wN", + "TwvEbErK4DPHUobhUVrbhGxed1ZeGbnjJc9YEAEFiGY4iX3N/OYSQ2q5Psymvi0cqC+mvw83gxbhRP66", + "fWFcCcj352INlolsEo62lxjPf1ee+6UI4VqiV7L0dJPm1mYlCj6rORZNjVBsdbogQo9aqyo5r/b3Dx55", + "e7CVziplML9jaNbSDhiZC4Upfw+sAHVPNd0d0QyqwMK7gyXWG4Y/DQdZAKAdbS234CppnXpWa8h+6w1D", + "SHNNUeywWTKn1XRNjc9TJsCK77MQMUROQcj1ngq+nWBypq3ApqWtvOSoZPCmefheTn1WInnmxsSCUXOm", + "w+eoeoGpl6pLnzzt/s7kXKFbSzBmi2gUGU+4zlZu2inDKHJwrJhHq6HfiNEiMP/GvWvGkAJjH77TEtbT", + "mHrmMnbfy+n3wLvN6+aVewryOcForXnOxufC+fiE1Ggama4gvRO0EstHqCZFKbVMZObKHHlooW8Ggenr", + "GENm07SUkPlkRm7GZDQvhyw2UpkILrxxtvJti9rFBnGlgJzlrz+MGm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6aepof2xBsUJTG5GlRZJzZ", + "mo2YJy/NhxzsVpOUrtSFnF0sGbucQLgfvNP83bzsalNHVggyoSAHD0YLWZXkp5+OXr+us4ixoVCNtuHI", + "g6NBLomuCMRRgJswvQCp+2hw/4ej/X1MWrFKn01pBrxyb+0/idZJaU7SjYmkCRspVtASo3WXcpQxaOHk", + "6uVYqEORZrpCvsjYZQ+YyXfng1yix0FXztnw/Zi8AGtnzqhQ5HzArli5MuO5qjjdpph+/4HoBADtyTxy", + "oPkYL8TuAbV5uDaP9WMPm9BsjBuseM290FSzPp3aJpSXYXrd9mk+UY04GGyrRaV9BRjpkl5euwLjFgvd", + "sLym5cOXlBzadQVlKKF3iDlSpuwrcjYzyggYB9p1L2sE6i/wGcnux0p1SLZqxdMmOdYhwVBU15aTjtgG", + "1EVG/7FaH3bUzJ+0/gnU5sL2ikCuag8LSiu1BmgVXkVmXHC16GuIOfyC5zn0+1tzsn3WmD9TxZM1guf4", + "M0oAL3cpAbyLEf2rVNv9UhmCX6wW7jYVRH0FnpZmVfqc2mvYmbYvcVvrYzHFL1RYyFN0VlLhTUHZysZR", + "rpy0QeeE68BxD1VZwLYx9q5BayYujMAgZ3UJfqN+EsXN31QwML50pYSORtaoz2iGTiX58eQdwcANb+V5", + "8eKvL16M65q0P568G8FvESGh2TJ651Kams7H5Jltxmu9ma0SR9RW20fDvU25oOBmL6lIZU5gQG8iUorP", + "haNUX8h2skG3OKPzLUl/Te09EqiOncDuwCBC80Q1nV/wFHSLB4f3D9JHPyQjRh+lowcPHz0aPZnOHo3Y", + "k9n+kyl78EPCphG1wo8QiPqbO4esE/3diGuh49T8zmJ2VeGjxpBPa6ZGI8l2lqxm/aeP13VIxbukRIwk", + "Z+gG96cdsKlPqGVDWrJRh/LQ7nFBq1iC0DvFSiggYQvmWpZx/HxICqrUUpapL6EMarWtE2L0H2e/rM0a", + "BvUAMMDZDF+td7rQuhh8+gRdE9HhBz1CEh0YQDytPmM0t64q/FId7e3NXLggl3vd4hgYs0he0jK3YbAQ", + "Mj0YDjKeMJvF4YnTq6vDzvjL5XI8F9VYlvM9+43amxfZ6HC8P2ZivNA5FhPkOmusNvelt2tl//54fwwK", + "kiyYoAUHi4z5CfOQ4GT2aMH3rg73knZZoTkaSnwdiuMUeunpZv0hkDEhBQRGO9jfd1BlAr6nRgfFCPC9", + "99aDhni7ZQB8cz44vCbQhcHqzKeiIAo6QcusGKNnmhnqs05bUbzUf4OgPyBA9RgvRFpIbqt+z21b+c6A", + "ncrNBvJR8O5BKM+eM7P0AfslF+mffVL5CWaO3Ri4400tI/B+KStR55iDeuzbiMLLNrDxC60LixtE1nHq", + "2wYujcS/LKWYj1un/5LbiHdZklyWjDx7deyaWKKzBuLeFFlSiJgDGcptJ4YUhVSRk4IE5MhRAe/8s0xX", + "XwwarUIqEbC49p2ytL4+iDzC4iESg8iw9M3N41GjMEN3pb80L+4QF4lhbnCkMy7Y3cOpv9KMg8OVhth0", + "HWRq4an12l7V47tm4vVBbiQqmKY0CgKB16BsI+3qq2Ltya3h5z8FYmJ2Wo2RzeS1Dexuh3F6kRFTE7aU", + "Il5i9vZnHfkOhYs/DRtjrWieNcdqy8WbEKR9EG+hQe4ViwseXTlh7Wk8TRKmlG+cG6mmGBmShKlcuLF7", + "4NN/UzDx9OTYJaplmVza9iIQaS5otmclSXugE1LQ5NIc9rnoP27FdFWMqKvv0092TukVi5YUuhnCE50q", + "yjRDsBraTa8QvVtI+SDS8amFDBCBvmRTWhTOSJIaFWlWZVndx1XbSmNGrrx7pORdHVLUk9qKFYes1Qma", + "3AjY4YrMKpHgTYRC7BvQ2yBEDLN7K0f142CD8+19dNmmn/Y+Oifsp3UkqcEMm93GjQLODexs+QarwgX5", + "rLXibB1Vu6g43Rxfo8VHJgycyf0TtqnXbzfITON527tTTKeltZKss0a+d9iFqZHpbb60JgGX6G2Q02d5", + "o+1/R/1u3XIatcV7k7/7UdUnQe2OpXWFz//G0GtsQH0GctaVAdrmA/JO1QnPTminaTpCZrImCw7Jq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2blWzzTdnL6WrER2XVH1b6mq6sKaUS30RSymu6+gtj", + "xVv0OH9j6hkGflsxps7+DiTmwPUeMKiyEmSPXDJWOFd8HQBO3hSudhQkIlIuFKEEXe2hTOqdMjH/ew8i", + "dyR6UPaClbXWxFUdlb4etWWli0qPilKmVbJO0DfE8g28fOLevRPMAWp+7b0v2HzXbOyh/bYQ86+VyH2w", + "ZSI3SH82Rdm1/Xhw//7NX7RXTMz1whc/+lPYOS7lKfYLN1SWEguCkf0E8/LtSg9vfqUndAX5utC2jpa2", + "39eD+w9vw42gqqKQpTmo1yzllJytCusxAxQjiFFOmJz6dPO6C2wY/fXg4MntdBh09S+QUwLpkBI7TM3M", + "xbaF9qxbWi9KqXXGbDm+P5TkgXnuBtC5VJqULMHsf186EPaL8kCQ7c4BONh3ynxcO0KYUFj7D3MoQHq3", + "p2y+vKdIyudMQfHg9hmTZ776AMSJnfzyI8D555MXPxKLSmbQIqNCxOO01gk8elHlU0F5pvaKkl1xtnRk", + "iZdYMNFRe4LU34lBANHyylHzqswGR4O9QWCEahOr42YQVKctmMMUzw4gSaVbSORnOXVmUpDR/l6xkhv0", + "q9udDlvtKMaNKpoqMujTk+Nmf8jQRCbzvBIobkKBkvbSx20HbmQCiw2v/ZrI05PjYX93ZmxmZbZh7kop", + "M7eizmTgdIyUysHyA34W4BN17QQLQd+z8r2c+opw4Ry23MGn3z79nwAAAP//QSglLJ4QAQA=", } // GetSwagger returns the content of the embedded swagger specification file diff --git a/pkg/api/openapi_types.gen.go b/pkg/api/openapi_types.gen.go index 5590d81b..e7cd6aee 100644 --- a/pkg/api/openapi_types.gen.go +++ b/pkg/api/openapi_types.gen.go @@ -55,6 +55,23 @@ const ( BlenderPathSourcePathEnvvar BlenderPathSource = "path_envvar" ) +// Defines values for FarmStatus. +const ( + FarmStatusActive FarmStatus = "active" + + FarmStatusAsleep FarmStatus = "asleep" + + FarmStatusIdle FarmStatus = "idle" + + FarmStatusInoperative FarmStatus = "inoperative" + + FarmStatusStarting FarmStatus = "starting" + + FarmStatusUnknown FarmStatus = "unknown" + + FarmStatusWaiting FarmStatus = "waiting" +) + // Defines values for JobStatus. const ( JobStatusActive JobStatus = "active" @@ -373,6 +390,14 @@ type EventWorkerUpdate struct { Version string `json:"version"` } +// FarmStatus defines model for FarmStatus. +type FarmStatus string + +// FarmStatusReport defines model for FarmStatusReport. +type FarmStatusReport struct { + Status FarmStatus `json:"status"` +} + // FlamencoVersion defines model for FlamencoVersion. type FlamencoVersion struct { Git string `json:"git"` diff --git a/web/app/src/manager-api/index.js b/web/app/src/manager-api/index.js index 4f78c0db..2ffece32 100644 --- a/web/app/src/manager-api/index.js +++ b/web/app/src/manager-api/index.js @@ -32,6 +32,8 @@ import EventTaskLogUpdate from './model/EventTaskLogUpdate'; import EventTaskUpdate from './model/EventTaskUpdate'; import EventWorkerTagUpdate from './model/EventWorkerTagUpdate'; import EventWorkerUpdate from './model/EventWorkerUpdate'; +import FarmStatus from './model/FarmStatus'; +import FarmStatusReport from './model/FarmStatusReport'; import FlamencoVersion from './model/FlamencoVersion'; import Job from './model/Job'; import JobAllOf from './model/JobAllOf'; @@ -251,6 +253,18 @@ export { */ EventWorkerUpdate, + /** + * The FarmStatus model constructor. + * @property {module:model/FarmStatus} + */ + FarmStatus, + + /** + * The FarmStatusReport model constructor. + * @property {module:model/FarmStatusReport} + */ + FarmStatusReport, + /** * The FlamencoVersion model constructor. * @property {module:model/FlamencoVersion} diff --git a/web/app/src/manager-api/manager/MetaApi.js b/web/app/src/manager-api/manager/MetaApi.js index 97beb6de..26f6e97c 100644 --- a/web/app/src/manager-api/manager/MetaApi.js +++ b/web/app/src/manager-api/manager/MetaApi.js @@ -15,6 +15,7 @@ import ApiClient from "../ApiClient"; import BlenderPathCheckResult from '../model/BlenderPathCheckResult'; import Error from '../model/Error'; +import FarmStatusReport from '../model/FarmStatusReport'; import FlamencoVersion from '../model/FlamencoVersion'; import ManagerConfiguration from '../model/ManagerConfiguration'; import ManagerVariable from '../model/ManagerVariable'; @@ -249,6 +250,45 @@ export default class MetaApi { } + /** + * Get the status of this Flamenco farm. + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/FarmStatusReport} and HTTP response + */ + getFarmStatusWithHttpInfo() { + let postBody = null; + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = []; + let contentTypes = []; + let accepts = ['application/json']; + let returnType = FarmStatusReport; + return this.apiClient.callApi( + '/api/v3/status', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null + ); + } + + /** + * Get the status of this Flamenco farm. + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/FarmStatusReport} + */ + getFarmStatus() { + return this.getFarmStatusWithHttpInfo() + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + /** * Get the shared storage location of this Manager, adjusted for the given audience and platform. * @param {module:model/ManagerVariableAudience} audience diff --git a/web/app/src/manager-api/model/FarmStatus.js b/web/app/src/manager-api/model/FarmStatus.js new file mode 100644 index 00000000..b0bc3ec4 --- /dev/null +++ b/web/app/src/manager-api/model/FarmStatus.js @@ -0,0 +1,81 @@ +/** + * 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'; +/** +* Enum class FarmStatus. +* @enum {} +* @readonly +*/ +export default class FarmStatus { + + /** + * value: "active" + * @const + */ + "active" = "active"; + + + /** + * value: "idle" + * @const + */ + "idle" = "idle"; + + + /** + * value: "waiting" + * @const + */ + "waiting" = "waiting"; + + + /** + * value: "asleep" + * @const + */ + "asleep" = "asleep"; + + + /** + * value: "inoperative" + * @const + */ + "inoperative" = "inoperative"; + + + /** + * value: "unknown" + * @const + */ + "unknown" = "unknown"; + + + /** + * value: "starting" + * @const + */ + "starting" = "starting"; + + + + /** + * Returns a FarmStatus enum value from a Javascript object name. + * @param {Object} data The plain JavaScript object containing the name of the enum value. + * @return {module:model/FarmStatus} The enum FarmStatus value. + */ + static constructFromObject(object) { + return object; + } +} + diff --git a/web/app/src/manager-api/model/FarmStatusReport.js b/web/app/src/manager-api/model/FarmStatusReport.js new file mode 100644 index 00000000..8dd05752 --- /dev/null +++ b/web/app/src/manager-api/model/FarmStatusReport.js @@ -0,0 +1,74 @@ +/** + * 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 FarmStatus from './FarmStatus'; + +/** + * The FarmStatusReport model module. + * @module model/FarmStatusReport + * @version 0.0.0 + */ +class FarmStatusReport { + /** + * Constructs a new FarmStatusReport. + * @alias module:model/FarmStatusReport + * @param status {module:model/FarmStatus} + */ + constructor(status) { + + FarmStatusReport.initialize(this, status); + } + + /** + * 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, status) { + obj['status'] = status; + } + + /** + * Constructs a FarmStatusReport from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/FarmStatusReport} obj Optional instance to populate. + * @return {module:model/FarmStatusReport} The populated FarmStatusReport instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new FarmStatusReport(); + + if (data.hasOwnProperty('status')) { + obj['status'] = FarmStatus.constructFromObject(data['status']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/FarmStatus} status + */ +FarmStatusReport.prototype['status'] = undefined; + + + + + + +export default FarmStatusReport; +