Rename worker clusters to tags #104223
880
addon/flamenco/manager/api/worker_mgt_api.py
generated
880
addon/flamenco/manager/api/worker_mgt_api.py
generated
File diff suppressed because it is too large
Load Diff
2
addon/flamenco/manager/docs/Job.md
generated
2
addon/flamenco/manager/docs/Job.md
generated
@ -17,7 +17,7 @@ Name | Type | Description | Notes
|
|||||||
**settings** | [**JobSettings**](JobSettings.md) | | [optional]
|
**settings** | [**JobSettings**](JobSettings.md) | | [optional]
|
||||||
**metadata** | [**JobMetadata**](JobMetadata.md) | | [optional]
|
**metadata** | [**JobMetadata**](JobMetadata.md) | | [optional]
|
||||||
**storage** | [**JobStorageInfo**](JobStorageInfo.md) | | [optional]
|
**storage** | [**JobStorageInfo**](JobStorageInfo.md) | | [optional]
|
||||||
**worker_cluster** | **str** | Worker Cluster that should execute this job. When a cluster ID is given, only Workers in that cluster will be scheduled to work on it. If empty or ommitted, all workers can work on this job. | [optional]
|
**worker_tag** | **str** | Worker tag that should execute this job. When a tag ID is given, only Workers in that tag will be scheduled to work on it. If empty or ommitted, all workers can work on this job. | [optional]
|
||||||
**delete_requested_at** | **datetime** | If job deletion was requested, this is the timestamp at which that request was stored on Flamenco Manager. | [optional]
|
**delete_requested_at** | **datetime** | If job deletion was requested, this is the timestamp at which that request was stored on Flamenco Manager. | [optional]
|
||||||
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
|
**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]
|
||||||
|
|
||||||
|
4
addon/flamenco/manager/docs/JobsApi.md
generated
4
addon/flamenco/manager/docs/JobsApi.md
generated
@ -1225,7 +1225,7 @@ with flamenco.manager.ApiClient() as api_client:
|
|||||||
storage=JobStorageInfo(
|
storage=JobStorageInfo(
|
||||||
shaman_checkout_id="shaman_checkout_id_example",
|
shaman_checkout_id="shaman_checkout_id_example",
|
||||||
),
|
),
|
||||||
worker_cluster="worker_cluster_example",
|
worker_tag="worker_tag_example",
|
||||||
) # SubmittedJob | Job to submit
|
) # SubmittedJob | Job to submit
|
||||||
|
|
||||||
# example passing only required values which don't have defaults set
|
# example passing only required values which don't have defaults set
|
||||||
@ -1307,7 +1307,7 @@ with flamenco.manager.ApiClient() as api_client:
|
|||||||
storage=JobStorageInfo(
|
storage=JobStorageInfo(
|
||||||
shaman_checkout_id="shaman_checkout_id_example",
|
shaman_checkout_id="shaman_checkout_id_example",
|
||||||
),
|
),
|
||||||
worker_cluster="worker_cluster_example",
|
worker_tag="worker_tag_example",
|
||||||
) # SubmittedJob | Job to check
|
) # SubmittedJob | Job to check
|
||||||
|
|
||||||
# example passing only required values which don't have defaults set
|
# example passing only required values which don't have defaults set
|
||||||
|
2
addon/flamenco/manager/docs/SubmittedJob.md
generated
2
addon/flamenco/manager/docs/SubmittedJob.md
generated
@ -13,7 +13,7 @@ Name | Type | Description | Notes
|
|||||||
**settings** | [**JobSettings**](JobSettings.md) | | [optional]
|
**settings** | [**JobSettings**](JobSettings.md) | | [optional]
|
||||||
**metadata** | [**JobMetadata**](JobMetadata.md) | | [optional]
|
**metadata** | [**JobMetadata**](JobMetadata.md) | | [optional]
|
||||||
**storage** | [**JobStorageInfo**](JobStorageInfo.md) | | [optional]
|
**storage** | [**JobStorageInfo**](JobStorageInfo.md) | | [optional]
|
||||||
**worker_cluster** | **str** | Worker Cluster that should execute this job. When a cluster ID is given, only Workers in that cluster will be scheduled to work on it. If empty or ommitted, all workers can work on this job. | [optional]
|
**worker_tag** | **str** | Worker tag that should execute this job. When a tag ID is given, only Workers in that tag will be scheduled to work on it. If empty or ommitted, all workers can work on this job. | [optional]
|
||||||
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
|
**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)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
2
addon/flamenco/manager/docs/Worker.md
generated
2
addon/flamenco/manager/docs/Worker.md
generated
@ -15,7 +15,7 @@ Name | Type | Description | Notes
|
|||||||
**status_change** | [**WorkerStatusChangeRequest**](WorkerStatusChangeRequest.md) | | [optional]
|
**status_change** | [**WorkerStatusChangeRequest**](WorkerStatusChangeRequest.md) | | [optional]
|
||||||
**last_seen** | **datetime** | Last time this worker was seen by the Manager. | [optional]
|
**last_seen** | **datetime** | Last time this worker was seen by the Manager. | [optional]
|
||||||
**task** | [**WorkerTask**](WorkerTask.md) | | [optional]
|
**task** | [**WorkerTask**](WorkerTask.md) | | [optional]
|
||||||
**clusters** | [**[WorkerCluster]**](WorkerCluster.md) | Clusters of which this Worker is a member. | [optional]
|
**tags** | [**[WorkerTag]**](WorkerTag.md) | Tags of which this Worker is a member. | [optional]
|
||||||
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
|
**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)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
2
addon/flamenco/manager/docs/WorkerAllOf.md
generated
2
addon/flamenco/manager/docs/WorkerAllOf.md
generated
@ -8,7 +8,7 @@ Name | Type | Description | Notes
|
|||||||
**platform** | **str** | Operating system of the Worker |
|
**platform** | **str** | Operating system of the Worker |
|
||||||
**supported_task_types** | **[str]** | |
|
**supported_task_types** | **[str]** | |
|
||||||
**task** | [**WorkerTask**](WorkerTask.md) | | [optional]
|
**task** | [**WorkerTask**](WorkerTask.md) | | [optional]
|
||||||
**clusters** | [**[WorkerCluster]**](WorkerCluster.md) | Clusters of which this Worker is a member. | [optional]
|
**tags** | [**[WorkerTag]**](WorkerTag.md) | Tags of which this Worker is a member. | [optional]
|
||||||
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
|
**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)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
480
addon/flamenco/manager/docs/WorkerMgtApi.md
generated
480
addon/flamenco/manager/docs/WorkerMgtApi.md
generated
@ -4,24 +4,24 @@ All URIs are relative to *http://localhost*
|
|||||||
|
|
||||||
Method | HTTP request | Description
|
Method | HTTP request | Description
|
||||||
------------- | ------------- | -------------
|
------------- | ------------- | -------------
|
||||||
[**create_worker_cluster**](WorkerMgtApi.md#create_worker_cluster) | **POST** /api/v3/worker-mgt/clusters | Create a new worker cluster.
|
[**create_worker_tag**](WorkerMgtApi.md#create_worker_tag) | **POST** /api/v3/worker-mgt/tags | Create a new worker tag.
|
||||||
[**delete_worker**](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.
|
[**delete_worker**](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.
|
||||||
[**delete_worker_cluster**](WorkerMgtApi.md#delete_worker_cluster) | **DELETE** /api/v3/worker-mgt/cluster/{cluster_id} | Remove this worker cluster. This unassigns all workers from the cluster and removes it.
|
[**delete_worker_tag**](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.
|
||||||
[**fetch_worker**](WorkerMgtApi.md#fetch_worker) | **GET** /api/v3/worker-mgt/workers/{worker_id} | Fetch info about the worker.
|
[**fetch_worker**](WorkerMgtApi.md#fetch_worker) | **GET** /api/v3/worker-mgt/workers/{worker_id} | Fetch info about the worker.
|
||||||
[**fetch_worker_cluster**](WorkerMgtApi.md#fetch_worker_cluster) | **GET** /api/v3/worker-mgt/cluster/{cluster_id} | Get a single worker cluster.
|
|
||||||
[**fetch_worker_clusters**](WorkerMgtApi.md#fetch_worker_clusters) | **GET** /api/v3/worker-mgt/clusters | Get list of worker clusters.
|
|
||||||
[**fetch_worker_sleep_schedule**](WorkerMgtApi.md#fetch_worker_sleep_schedule) | **GET** /api/v3/worker-mgt/workers/{worker_id}/sleep-schedule |
|
[**fetch_worker_sleep_schedule**](WorkerMgtApi.md#fetch_worker_sleep_schedule) | **GET** /api/v3/worker-mgt/workers/{worker_id}/sleep-schedule |
|
||||||
|
[**fetch_worker_tag**](WorkerMgtApi.md#fetch_worker_tag) | **GET** /api/v3/worker-mgt/tag/{tag_id} | Get a single worker tag.
|
||||||
|
[**fetch_worker_tags**](WorkerMgtApi.md#fetch_worker_tags) | **GET** /api/v3/worker-mgt/tags | Get list of worker tags.
|
||||||
[**fetch_workers**](WorkerMgtApi.md#fetch_workers) | **GET** /api/v3/worker-mgt/workers | Get list of workers.
|
[**fetch_workers**](WorkerMgtApi.md#fetch_workers) | **GET** /api/v3/worker-mgt/workers | Get list of workers.
|
||||||
[**request_worker_status_change**](WorkerMgtApi.md#request_worker_status_change) | **POST** /api/v3/worker-mgt/workers/{worker_id}/setstatus |
|
[**request_worker_status_change**](WorkerMgtApi.md#request_worker_status_change) | **POST** /api/v3/worker-mgt/workers/{worker_id}/setstatus |
|
||||||
[**set_worker_clusters**](WorkerMgtApi.md#set_worker_clusters) | **POST** /api/v3/worker-mgt/workers/{worker_id}/setclusters |
|
|
||||||
[**set_worker_sleep_schedule**](WorkerMgtApi.md#set_worker_sleep_schedule) | **POST** /api/v3/worker-mgt/workers/{worker_id}/sleep-schedule |
|
[**set_worker_sleep_schedule**](WorkerMgtApi.md#set_worker_sleep_schedule) | **POST** /api/v3/worker-mgt/workers/{worker_id}/sleep-schedule |
|
||||||
[**update_worker_cluster**](WorkerMgtApi.md#update_worker_cluster) | **PUT** /api/v3/worker-mgt/cluster/{cluster_id} | Update an existing worker cluster.
|
[**set_worker_tags**](WorkerMgtApi.md#set_worker_tags) | **POST** /api/v3/worker-mgt/workers/{worker_id}/settags |
|
||||||
|
[**update_worker_tag**](WorkerMgtApi.md#update_worker_tag) | **PUT** /api/v3/worker-mgt/tag/{tag_id} | Update an existing worker tag.
|
||||||
|
|
||||||
|
|
||||||
# **create_worker_cluster**
|
# **create_worker_tag**
|
||||||
> WorkerCluster create_worker_cluster(worker_cluster)
|
> WorkerTag create_worker_tag(worker_tag)
|
||||||
|
|
||||||
Create a new worker cluster.
|
Create a new worker tag.
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
|
||||||
@ -31,7 +31,7 @@ import time
|
|||||||
import flamenco.manager
|
import flamenco.manager
|
||||||
from flamenco.manager.api import worker_mgt_api
|
from flamenco.manager.api import worker_mgt_api
|
||||||
from flamenco.manager.model.error import Error
|
from flamenco.manager.model.error import Error
|
||||||
from flamenco.manager.model.worker_cluster import WorkerCluster
|
from flamenco.manager.model.worker_tag import WorkerTag
|
||||||
from pprint import pprint
|
from pprint import pprint
|
||||||
# Defining the host is optional and defaults to http://localhost
|
# Defining the host is optional and defaults to http://localhost
|
||||||
# See configuration.py for a list of all supported configuration parameters.
|
# See configuration.py for a list of all supported configuration parameters.
|
||||||
@ -44,19 +44,19 @@ configuration = flamenco.manager.Configuration(
|
|||||||
with flamenco.manager.ApiClient() as api_client:
|
with flamenco.manager.ApiClient() as api_client:
|
||||||
# Create an instance of the API class
|
# Create an instance of the API class
|
||||||
api_instance = worker_mgt_api.WorkerMgtApi(api_client)
|
api_instance = worker_mgt_api.WorkerMgtApi(api_client)
|
||||||
worker_cluster = WorkerCluster(
|
worker_tag = WorkerTag(
|
||||||
id="id_example",
|
id="id_example",
|
||||||
name="name_example",
|
name="name_example",
|
||||||
description="description_example",
|
description="description_example",
|
||||||
) # WorkerCluster | The worker cluster.
|
) # WorkerTag | The worker tag.
|
||||||
|
|
||||||
# example passing only required values which don't have defaults set
|
# example passing only required values which don't have defaults set
|
||||||
try:
|
try:
|
||||||
# Create a new worker cluster.
|
# Create a new worker tag.
|
||||||
api_response = api_instance.create_worker_cluster(worker_cluster)
|
api_response = api_instance.create_worker_tag(worker_tag)
|
||||||
pprint(api_response)
|
pprint(api_response)
|
||||||
except flamenco.manager.ApiException as e:
|
except flamenco.manager.ApiException as e:
|
||||||
print("Exception when calling WorkerMgtApi->create_worker_cluster: %s\n" % e)
|
print("Exception when calling WorkerMgtApi->create_worker_tag: %s\n" % e)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
@ -64,11 +64,11 @@ with flamenco.manager.ApiClient() as api_client:
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**worker_cluster** | [**WorkerCluster**](WorkerCluster.md)| The worker cluster. |
|
**worker_tag** | [**WorkerTag**](WorkerTag.md)| The worker tag. |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**WorkerCluster**](WorkerCluster.md)
|
[**WorkerTag**](WorkerTag.md)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
@ -84,7 +84,7 @@ No authorization required
|
|||||||
|
|
||||||
| Status code | Description | Response headers |
|
| Status code | Description | Response headers |
|
||||||
|-------------|-------------|------------------|
|
|-------------|-------------|------------------|
|
||||||
**200** | The cluster was created. The created cluster is returned, so that the caller can know its UUID. | - |
|
**200** | The tag was created. The created tag is returned, so that the caller can know its UUID. | - |
|
||||||
**0** | Error message | - |
|
**0** | Error message | - |
|
||||||
|
|
||||||
[[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)
|
[[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)
|
||||||
@ -154,10 +154,10 @@ 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)
|
[[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)
|
||||||
|
|
||||||
# **delete_worker_cluster**
|
# **delete_worker_tag**
|
||||||
> delete_worker_cluster(cluster_id)
|
> delete_worker_tag(tag_id)
|
||||||
|
|
||||||
Remove this worker cluster. This unassigns all workers from the cluster and removes it.
|
Remove this worker tag. This unassigns all workers from the tag and removes it.
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
|
||||||
@ -179,14 +179,14 @@ configuration = flamenco.manager.Configuration(
|
|||||||
with flamenco.manager.ApiClient() as api_client:
|
with flamenco.manager.ApiClient() as api_client:
|
||||||
# Create an instance of the API class
|
# Create an instance of the API class
|
||||||
api_instance = worker_mgt_api.WorkerMgtApi(api_client)
|
api_instance = worker_mgt_api.WorkerMgtApi(api_client)
|
||||||
cluster_id = "cluster_id_example" # str |
|
tag_id = "tag_id_example" # str |
|
||||||
|
|
||||||
# example passing only required values which don't have defaults set
|
# example passing only required values which don't have defaults set
|
||||||
try:
|
try:
|
||||||
# Remove this worker cluster. This unassigns all workers from the cluster and removes it.
|
# Remove this worker tag. This unassigns all workers from the tag and removes it.
|
||||||
api_instance.delete_worker_cluster(cluster_id)
|
api_instance.delete_worker_tag(tag_id)
|
||||||
except flamenco.manager.ApiException as e:
|
except flamenco.manager.ApiException as e:
|
||||||
print("Exception when calling WorkerMgtApi->delete_worker_cluster: %s\n" % e)
|
print("Exception when calling WorkerMgtApi->delete_worker_tag: %s\n" % e)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
@ -194,7 +194,7 @@ with flamenco.manager.ApiClient() as api_client:
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**cluster_id** | **str**| |
|
**tag_id** | **str**| |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@ -214,7 +214,7 @@ No authorization required
|
|||||||
|
|
||||||
| Status code | Description | Response headers |
|
| Status code | Description | Response headers |
|
||||||
|-------------|-------------|------------------|
|
|-------------|-------------|------------------|
|
||||||
**204** | The cluster has been removed. | - |
|
**204** | The tag has been removed. | - |
|
||||||
**0** | Unexpected error. | - |
|
**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)
|
[[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)
|
||||||
@ -284,132 +284,6 @@ 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)
|
[[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)
|
||||||
|
|
||||||
# **fetch_worker_cluster**
|
|
||||||
> WorkerCluster fetch_worker_cluster(cluster_id)
|
|
||||||
|
|
||||||
Get a single worker cluster.
|
|
||||||
|
|
||||||
### Example
|
|
||||||
|
|
||||||
|
|
||||||
```python
|
|
||||||
import time
|
|
||||||
import flamenco.manager
|
|
||||||
from flamenco.manager.api import worker_mgt_api
|
|
||||||
from flamenco.manager.model.worker_cluster import WorkerCluster
|
|
||||||
from pprint import pprint
|
|
||||||
# Defining the host is optional and defaults to http://localhost
|
|
||||||
# See configuration.py for a list of all supported configuration parameters.
|
|
||||||
configuration = flamenco.manager.Configuration(
|
|
||||||
host = "http://localhost"
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
# Enter a context with an instance of the API client
|
|
||||||
with flamenco.manager.ApiClient() as api_client:
|
|
||||||
# Create an instance of the API class
|
|
||||||
api_instance = worker_mgt_api.WorkerMgtApi(api_client)
|
|
||||||
cluster_id = "cluster_id_example" # str |
|
|
||||||
|
|
||||||
# example passing only required values which don't have defaults set
|
|
||||||
try:
|
|
||||||
# Get a single worker cluster.
|
|
||||||
api_response = api_instance.fetch_worker_cluster(cluster_id)
|
|
||||||
pprint(api_response)
|
|
||||||
except flamenco.manager.ApiException as e:
|
|
||||||
print("Exception when calling WorkerMgtApi->fetch_worker_cluster: %s\n" % e)
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
### Parameters
|
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------- | ------------- | ------------- | -------------
|
|
||||||
**cluster_id** | **str**| |
|
|
||||||
|
|
||||||
### Return type
|
|
||||||
|
|
||||||
[**WorkerCluster**](WorkerCluster.md)
|
|
||||||
|
|
||||||
### Authorization
|
|
||||||
|
|
||||||
No authorization required
|
|
||||||
|
|
||||||
### HTTP request headers
|
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
|
||||||
- **Accept**: application/json
|
|
||||||
|
|
||||||
|
|
||||||
### HTTP response details
|
|
||||||
|
|
||||||
| Status code | Description | Response headers |
|
|
||||||
|-------------|-------------|------------------|
|
|
||||||
**200** | The worker cluster. | - |
|
|
||||||
|
|
||||||
[[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)
|
|
||||||
|
|
||||||
# **fetch_worker_clusters**
|
|
||||||
> WorkerClusterList fetch_worker_clusters()
|
|
||||||
|
|
||||||
Get list of worker clusters.
|
|
||||||
|
|
||||||
### Example
|
|
||||||
|
|
||||||
|
|
||||||
```python
|
|
||||||
import time
|
|
||||||
import flamenco.manager
|
|
||||||
from flamenco.manager.api import worker_mgt_api
|
|
||||||
from flamenco.manager.model.worker_cluster_list import WorkerClusterList
|
|
||||||
from pprint import pprint
|
|
||||||
# Defining the host is optional and defaults to http://localhost
|
|
||||||
# See configuration.py for a list of all supported configuration parameters.
|
|
||||||
configuration = flamenco.manager.Configuration(
|
|
||||||
host = "http://localhost"
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
# Enter a context with an instance of the API client
|
|
||||||
with flamenco.manager.ApiClient() as api_client:
|
|
||||||
# Create an instance of the API class
|
|
||||||
api_instance = worker_mgt_api.WorkerMgtApi(api_client)
|
|
||||||
|
|
||||||
# example, this endpoint has no required or optional parameters
|
|
||||||
try:
|
|
||||||
# Get list of worker clusters.
|
|
||||||
api_response = api_instance.fetch_worker_clusters()
|
|
||||||
pprint(api_response)
|
|
||||||
except flamenco.manager.ApiException as e:
|
|
||||||
print("Exception when calling WorkerMgtApi->fetch_worker_clusters: %s\n" % e)
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
### Parameters
|
|
||||||
This endpoint does not need any parameter.
|
|
||||||
|
|
||||||
### Return type
|
|
||||||
|
|
||||||
[**WorkerClusterList**](WorkerClusterList.md)
|
|
||||||
|
|
||||||
### Authorization
|
|
||||||
|
|
||||||
No authorization required
|
|
||||||
|
|
||||||
### HTTP request headers
|
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
|
||||||
- **Accept**: application/json
|
|
||||||
|
|
||||||
|
|
||||||
### HTTP response details
|
|
||||||
|
|
||||||
| Status code | Description | Response headers |
|
|
||||||
|-------------|-------------|------------------|
|
|
||||||
**200** | Worker clusters. | - |
|
|
||||||
|
|
||||||
[[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)
|
|
||||||
|
|
||||||
# **fetch_worker_sleep_schedule**
|
# **fetch_worker_sleep_schedule**
|
||||||
> WorkerSleepSchedule fetch_worker_sleep_schedule(worker_id)
|
> WorkerSleepSchedule fetch_worker_sleep_schedule(worker_id)
|
||||||
|
|
||||||
@ -477,6 +351,132 @@ 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)
|
[[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)
|
||||||
|
|
||||||
|
# **fetch_worker_tag**
|
||||||
|
> WorkerTag fetch_worker_tag(tag_id)
|
||||||
|
|
||||||
|
Get a single worker tag.
|
||||||
|
|
||||||
|
### Example
|
||||||
|
|
||||||
|
|
||||||
|
```python
|
||||||
|
import time
|
||||||
|
import flamenco.manager
|
||||||
|
from flamenco.manager.api import worker_mgt_api
|
||||||
|
from flamenco.manager.model.worker_tag import WorkerTag
|
||||||
|
from pprint import pprint
|
||||||
|
# Defining the host is optional and defaults to http://localhost
|
||||||
|
# See configuration.py for a list of all supported configuration parameters.
|
||||||
|
configuration = flamenco.manager.Configuration(
|
||||||
|
host = "http://localhost"
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
# Enter a context with an instance of the API client
|
||||||
|
with flamenco.manager.ApiClient() as api_client:
|
||||||
|
# Create an instance of the API class
|
||||||
|
api_instance = worker_mgt_api.WorkerMgtApi(api_client)
|
||||||
|
tag_id = "tag_id_example" # str |
|
||||||
|
|
||||||
|
# example passing only required values which don't have defaults set
|
||||||
|
try:
|
||||||
|
# Get a single worker tag.
|
||||||
|
api_response = api_instance.fetch_worker_tag(tag_id)
|
||||||
|
pprint(api_response)
|
||||||
|
except flamenco.manager.ApiException as e:
|
||||||
|
print("Exception when calling WorkerMgtApi->fetch_worker_tag: %s\n" % e)
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------- | ------------- | ------------- | -------------
|
||||||
|
**tag_id** | **str**| |
|
||||||
|
|
||||||
|
### Return type
|
||||||
|
|
||||||
|
[**WorkerTag**](WorkerTag.md)
|
||||||
|
|
||||||
|
### Authorization
|
||||||
|
|
||||||
|
No authorization required
|
||||||
|
|
||||||
|
### HTTP request headers
|
||||||
|
|
||||||
|
- **Content-Type**: Not defined
|
||||||
|
- **Accept**: application/json
|
||||||
|
|
||||||
|
|
||||||
|
### HTTP response details
|
||||||
|
|
||||||
|
| Status code | Description | Response headers |
|
||||||
|
|-------------|-------------|------------------|
|
||||||
|
**200** | The worker tag. | - |
|
||||||
|
|
||||||
|
[[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)
|
||||||
|
|
||||||
|
# **fetch_worker_tags**
|
||||||
|
> WorkerTagList fetch_worker_tags()
|
||||||
|
|
||||||
|
Get list of worker tags.
|
||||||
|
|
||||||
|
### Example
|
||||||
|
|
||||||
|
|
||||||
|
```python
|
||||||
|
import time
|
||||||
|
import flamenco.manager
|
||||||
|
from flamenco.manager.api import worker_mgt_api
|
||||||
|
from flamenco.manager.model.worker_tag_list import WorkerTagList
|
||||||
|
from pprint import pprint
|
||||||
|
# Defining the host is optional and defaults to http://localhost
|
||||||
|
# See configuration.py for a list of all supported configuration parameters.
|
||||||
|
configuration = flamenco.manager.Configuration(
|
||||||
|
host = "http://localhost"
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
# Enter a context with an instance of the API client
|
||||||
|
with flamenco.manager.ApiClient() as api_client:
|
||||||
|
# Create an instance of the API class
|
||||||
|
api_instance = worker_mgt_api.WorkerMgtApi(api_client)
|
||||||
|
|
||||||
|
# example, this endpoint has no required or optional parameters
|
||||||
|
try:
|
||||||
|
# Get list of worker tags.
|
||||||
|
api_response = api_instance.fetch_worker_tags()
|
||||||
|
pprint(api_response)
|
||||||
|
except flamenco.manager.ApiException as e:
|
||||||
|
print("Exception when calling WorkerMgtApi->fetch_worker_tags: %s\n" % e)
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
This endpoint does not need any parameter.
|
||||||
|
|
||||||
|
### Return type
|
||||||
|
|
||||||
|
[**WorkerTagList**](WorkerTagList.md)
|
||||||
|
|
||||||
|
### Authorization
|
||||||
|
|
||||||
|
No authorization required
|
||||||
|
|
||||||
|
### HTTP request headers
|
||||||
|
|
||||||
|
- **Content-Type**: Not defined
|
||||||
|
- **Accept**: application/json
|
||||||
|
|
||||||
|
|
||||||
|
### HTTP response details
|
||||||
|
|
||||||
|
| Status code | Description | Response headers |
|
||||||
|
|-------------|-------------|------------------|
|
||||||
|
**200** | Worker tags. | - |
|
||||||
|
|
||||||
|
[[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)
|
||||||
|
|
||||||
# **fetch_workers**
|
# **fetch_workers**
|
||||||
> WorkerList fetch_workers()
|
> WorkerList fetch_workers()
|
||||||
|
|
||||||
@ -599,77 +599,6 @@ No authorization required
|
|||||||
- **Accept**: application/json
|
- **Accept**: application/json
|
||||||
|
|
||||||
|
|
||||||
### HTTP response details
|
|
||||||
|
|
||||||
| Status code | Description | Response headers |
|
|
||||||
|-------------|-------------|------------------|
|
|
||||||
**204** | Status change was accepted. | - |
|
|
||||||
**0** | Unexpected error. | - |
|
|
||||||
|
|
||||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
||||||
|
|
||||||
# **set_worker_clusters**
|
|
||||||
> set_worker_clusters(worker_id, worker_cluster_change_request)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Example
|
|
||||||
|
|
||||||
|
|
||||||
```python
|
|
||||||
import time
|
|
||||||
import flamenco.manager
|
|
||||||
from flamenco.manager.api import worker_mgt_api
|
|
||||||
from flamenco.manager.model.error import Error
|
|
||||||
from flamenco.manager.model.worker_cluster_change_request import WorkerClusterChangeRequest
|
|
||||||
from pprint import pprint
|
|
||||||
# Defining the host is optional and defaults to http://localhost
|
|
||||||
# See configuration.py for a list of all supported configuration parameters.
|
|
||||||
configuration = flamenco.manager.Configuration(
|
|
||||||
host = "http://localhost"
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
# Enter a context with an instance of the API client
|
|
||||||
with flamenco.manager.ApiClient() as api_client:
|
|
||||||
# Create an instance of the API class
|
|
||||||
api_instance = worker_mgt_api.WorkerMgtApi(api_client)
|
|
||||||
worker_id = "worker_id_example" # str |
|
|
||||||
worker_cluster_change_request = WorkerClusterChangeRequest(
|
|
||||||
cluster_ids=[
|
|
||||||
"cluster_ids_example",
|
|
||||||
],
|
|
||||||
) # WorkerClusterChangeRequest | The list of cluster IDs this worker should be a member of.
|
|
||||||
|
|
||||||
# example passing only required values which don't have defaults set
|
|
||||||
try:
|
|
||||||
api_instance.set_worker_clusters(worker_id, worker_cluster_change_request)
|
|
||||||
except flamenco.manager.ApiException as e:
|
|
||||||
print("Exception when calling WorkerMgtApi->set_worker_clusters: %s\n" % e)
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
### Parameters
|
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------- | ------------- | ------------- | -------------
|
|
||||||
**worker_id** | **str**| |
|
|
||||||
**worker_cluster_change_request** | [**WorkerClusterChangeRequest**](WorkerClusterChangeRequest.md)| The list of cluster IDs this worker should be a member of. |
|
|
||||||
|
|
||||||
### Return type
|
|
||||||
|
|
||||||
void (empty response body)
|
|
||||||
|
|
||||||
### Authorization
|
|
||||||
|
|
||||||
No authorization required
|
|
||||||
|
|
||||||
### HTTP request headers
|
|
||||||
|
|
||||||
- **Content-Type**: application/json
|
|
||||||
- **Accept**: application/json
|
|
||||||
|
|
||||||
|
|
||||||
### HTTP response details
|
### HTTP response details
|
||||||
|
|
||||||
| Status code | Description | Response headers |
|
| Status code | Description | Response headers |
|
||||||
@ -751,10 +680,10 @@ 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)
|
[[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)
|
||||||
|
|
||||||
# **update_worker_cluster**
|
# **set_worker_tags**
|
||||||
> update_worker_cluster(cluster_id, worker_cluster)
|
> set_worker_tags(worker_id, worker_tag_change_request)
|
||||||
|
|
||||||
|
|
||||||
Update an existing worker cluster.
|
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
|
||||||
@ -764,7 +693,7 @@ import time
|
|||||||
import flamenco.manager
|
import flamenco.manager
|
||||||
from flamenco.manager.api import worker_mgt_api
|
from flamenco.manager.api import worker_mgt_api
|
||||||
from flamenco.manager.model.error import Error
|
from flamenco.manager.model.error import Error
|
||||||
from flamenco.manager.model.worker_cluster import WorkerCluster
|
from flamenco.manager.model.worker_tag_change_request import WorkerTagChangeRequest
|
||||||
from pprint import pprint
|
from pprint import pprint
|
||||||
# Defining the host is optional and defaults to http://localhost
|
# Defining the host is optional and defaults to http://localhost
|
||||||
# See configuration.py for a list of all supported configuration parameters.
|
# See configuration.py for a list of all supported configuration parameters.
|
||||||
@ -777,19 +706,18 @@ configuration = flamenco.manager.Configuration(
|
|||||||
with flamenco.manager.ApiClient() as api_client:
|
with flamenco.manager.ApiClient() as api_client:
|
||||||
# Create an instance of the API class
|
# Create an instance of the API class
|
||||||
api_instance = worker_mgt_api.WorkerMgtApi(api_client)
|
api_instance = worker_mgt_api.WorkerMgtApi(api_client)
|
||||||
cluster_id = "cluster_id_example" # str |
|
worker_id = "worker_id_example" # str |
|
||||||
worker_cluster = WorkerCluster(
|
worker_tag_change_request = WorkerTagChangeRequest(
|
||||||
id="id_example",
|
tag_ids=[
|
||||||
name="name_example",
|
"tag_ids_example",
|
||||||
description="description_example",
|
],
|
||||||
) # WorkerCluster | The updated worker cluster.
|
) # WorkerTagChangeRequest | The list of worker tag IDs this worker should be a member of.
|
||||||
|
|
||||||
# example passing only required values which don't have defaults set
|
# example passing only required values which don't have defaults set
|
||||||
try:
|
try:
|
||||||
# Update an existing worker cluster.
|
api_instance.set_worker_tags(worker_id, worker_tag_change_request)
|
||||||
api_instance.update_worker_cluster(cluster_id, worker_cluster)
|
|
||||||
except flamenco.manager.ApiException as e:
|
except flamenco.manager.ApiException as e:
|
||||||
print("Exception when calling WorkerMgtApi->update_worker_cluster: %s\n" % e)
|
print("Exception when calling WorkerMgtApi->set_worker_tags: %s\n" % e)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
@ -797,8 +725,8 @@ with flamenco.manager.ApiClient() as api_client:
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**cluster_id** | **str**| |
|
**worker_id** | **str**| |
|
||||||
**worker_cluster** | [**WorkerCluster**](WorkerCluster.md)| The updated worker cluster. |
|
**worker_tag_change_request** | [**WorkerTagChangeRequest**](WorkerTagChangeRequest.md)| The list of worker tag IDs this worker should be a member of. |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@ -818,7 +746,79 @@ No authorization required
|
|||||||
|
|
||||||
| Status code | Description | Response headers |
|
| Status code | Description | Response headers |
|
||||||
|-------------|-------------|------------------|
|
|-------------|-------------|------------------|
|
||||||
**204** | The cluster update has been stored. | - |
|
**204** | Status change was accepted. | - |
|
||||||
|
**0** | Unexpected error. | - |
|
||||||
|
|
||||||
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
# **update_worker_tag**
|
||||||
|
> update_worker_tag(tag_id, worker_tag)
|
||||||
|
|
||||||
|
Update an existing worker tag.
|
||||||
|
|
||||||
|
### Example
|
||||||
|
|
||||||
|
|
||||||
|
```python
|
||||||
|
import time
|
||||||
|
import flamenco.manager
|
||||||
|
from flamenco.manager.api import worker_mgt_api
|
||||||
|
from flamenco.manager.model.error import Error
|
||||||
|
from flamenco.manager.model.worker_tag import WorkerTag
|
||||||
|
from pprint import pprint
|
||||||
|
# Defining the host is optional and defaults to http://localhost
|
||||||
|
# See configuration.py for a list of all supported configuration parameters.
|
||||||
|
configuration = flamenco.manager.Configuration(
|
||||||
|
host = "http://localhost"
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
# Enter a context with an instance of the API client
|
||||||
|
with flamenco.manager.ApiClient() as api_client:
|
||||||
|
# Create an instance of the API class
|
||||||
|
api_instance = worker_mgt_api.WorkerMgtApi(api_client)
|
||||||
|
tag_id = "tag_id_example" # str |
|
||||||
|
worker_tag = WorkerTag(
|
||||||
|
id="id_example",
|
||||||
|
name="name_example",
|
||||||
|
description="description_example",
|
||||||
|
) # WorkerTag | The updated worker tag.
|
||||||
|
|
||||||
|
# example passing only required values which don't have defaults set
|
||||||
|
try:
|
||||||
|
# Update an existing worker tag.
|
||||||
|
api_instance.update_worker_tag(tag_id, worker_tag)
|
||||||
|
except flamenco.manager.ApiException as e:
|
||||||
|
print("Exception when calling WorkerMgtApi->update_worker_tag: %s\n" % e)
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------- | ------------- | ------------- | -------------
|
||||||
|
**tag_id** | **str**| |
|
||||||
|
**worker_tag** | [**WorkerTag**](WorkerTag.md)| The updated worker tag. |
|
||||||
|
|
||||||
|
### Return type
|
||||||
|
|
||||||
|
void (empty response body)
|
||||||
|
|
||||||
|
### Authorization
|
||||||
|
|
||||||
|
No authorization required
|
||||||
|
|
||||||
|
### HTTP request headers
|
||||||
|
|
||||||
|
- **Content-Type**: application/json
|
||||||
|
- **Accept**: application/json
|
||||||
|
|
||||||
|
|
||||||
|
### HTTP response details
|
||||||
|
|
||||||
|
| Status code | Description | Response headers |
|
||||||
|
|-------------|-------------|------------------|
|
||||||
|
**204** | The tag update has been stored. | - |
|
||||||
**0** | Error message | - |
|
**0** | Error message | - |
|
||||||
|
|
||||||
[[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)
|
[[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)
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
# WorkerCluster
|
# WorkerTag
|
||||||
|
|
||||||
Cluster of workers. A job can optionally specify which cluster it should be limited to. Workers can be part of multiple clusters simultaneously.
|
Tag of workers. A job can optionally specify which tag it should be limited to. Workers can be part of multiple tags simultaneously.
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**name** | **str** | |
|
**name** | **str** | |
|
||||||
**id** | **str** | UUID of the cluster. Can be ommitted when creating a new cluster, in which case a random UUID will be assigned. | [optional]
|
**id** | **str** | UUID of the tag. Can be ommitted when creating a new tag, in which case a random UUID will be assigned. | [optional]
|
||||||
**description** | **str** | | [optional]
|
**description** | **str** | | [optional]
|
||||||
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
|
**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]
|
||||||
|
|
@ -1,11 +1,11 @@
|
|||||||
# WorkerClusterChangeRequest
|
# WorkerTagChangeRequest
|
||||||
|
|
||||||
Request to change which clusters this Worker is assigned to.
|
Request to change which tags this Worker is assigned to.
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**cluster_ids** | **[str]** | |
|
**tag_ids** | **[str]** | |
|
||||||
**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]
|
**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)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
@ -1,10 +1,10 @@
|
|||||||
# WorkerClusterList
|
# WorkerTagList
|
||||||
|
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**clusters** | [**[WorkerCluster]**](WorkerCluster.md) | | [optional]
|
**tags** | [**[WorkerTag]**](WorkerTag.md) | | [optional]
|
||||||
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
|
**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)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
8
addon/flamenco/manager/model/job.py
generated
8
addon/flamenco/manager/model/job.py
generated
@ -110,7 +110,7 @@ class Job(ModelComposed):
|
|||||||
'settings': (JobSettings,), # noqa: E501
|
'settings': (JobSettings,), # noqa: E501
|
||||||
'metadata': (JobMetadata,), # noqa: E501
|
'metadata': (JobMetadata,), # noqa: E501
|
||||||
'storage': (JobStorageInfo,), # noqa: E501
|
'storage': (JobStorageInfo,), # noqa: E501
|
||||||
'worker_cluster': (str,), # noqa: E501
|
'worker_tag': (str,), # noqa: E501
|
||||||
'delete_requested_at': (datetime,), # noqa: E501
|
'delete_requested_at': (datetime,), # noqa: E501
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -133,7 +133,7 @@ class Job(ModelComposed):
|
|||||||
'settings': 'settings', # noqa: E501
|
'settings': 'settings', # noqa: E501
|
||||||
'metadata': 'metadata', # noqa: E501
|
'metadata': 'metadata', # noqa: E501
|
||||||
'storage': 'storage', # noqa: E501
|
'storage': 'storage', # noqa: E501
|
||||||
'worker_cluster': 'worker_cluster', # noqa: E501
|
'worker_tag': 'worker_tag', # noqa: E501
|
||||||
'delete_requested_at': 'delete_requested_at', # noqa: E501
|
'delete_requested_at': 'delete_requested_at', # noqa: E501
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -189,7 +189,7 @@ class Job(ModelComposed):
|
|||||||
settings (JobSettings): [optional] # noqa: E501
|
settings (JobSettings): [optional] # noqa: E501
|
||||||
metadata (JobMetadata): [optional] # noqa: E501
|
metadata (JobMetadata): [optional] # noqa: E501
|
||||||
storage (JobStorageInfo): [optional] # noqa: E501
|
storage (JobStorageInfo): [optional] # noqa: E501
|
||||||
worker_cluster (str): Worker Cluster that should execute this job. When a cluster ID is given, only Workers in that cluster will be scheduled to work on it. If empty or ommitted, all workers can work on this job. . [optional] # noqa: E501
|
worker_tag (str): Worker tag that should execute this job. When a tag ID is given, only Workers in that tag will be scheduled to work on it. If empty or ommitted, all workers can work on this job. . [optional] # noqa: E501
|
||||||
delete_requested_at (datetime): If job deletion was requested, this is the timestamp at which that request was stored on Flamenco Manager. . [optional] # noqa: E501
|
delete_requested_at (datetime): If job deletion was requested, this is the timestamp at which that request was stored on Flamenco Manager. . [optional] # noqa: E501
|
||||||
"""
|
"""
|
||||||
|
|
||||||
@ -304,7 +304,7 @@ class Job(ModelComposed):
|
|||||||
settings (JobSettings): [optional] # noqa: E501
|
settings (JobSettings): [optional] # noqa: E501
|
||||||
metadata (JobMetadata): [optional] # noqa: E501
|
metadata (JobMetadata): [optional] # noqa: E501
|
||||||
storage (JobStorageInfo): [optional] # noqa: E501
|
storage (JobStorageInfo): [optional] # noqa: E501
|
||||||
worker_cluster (str): Worker Cluster that should execute this job. When a cluster ID is given, only Workers in that cluster will be scheduled to work on it. If empty or ommitted, all workers can work on this job. . [optional] # noqa: E501
|
worker_tag (str): Worker tag that should execute this job. When a tag ID is given, only Workers in that tag will be scheduled to work on it. If empty or ommitted, all workers can work on this job. . [optional] # noqa: E501
|
||||||
delete_requested_at (datetime): If job deletion was requested, this is the timestamp at which that request was stored on Flamenco Manager. . [optional] # noqa: E501
|
delete_requested_at (datetime): If job deletion was requested, this is the timestamp at which that request was stored on Flamenco Manager. . [optional] # noqa: E501
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
8
addon/flamenco/manager/model/submitted_job.py
generated
8
addon/flamenco/manager/model/submitted_job.py
generated
@ -99,7 +99,7 @@ class SubmittedJob(ModelNormal):
|
|||||||
'settings': (JobSettings,), # noqa: E501
|
'settings': (JobSettings,), # noqa: E501
|
||||||
'metadata': (JobMetadata,), # noqa: E501
|
'metadata': (JobMetadata,), # noqa: E501
|
||||||
'storage': (JobStorageInfo,), # noqa: E501
|
'storage': (JobStorageInfo,), # noqa: E501
|
||||||
'worker_cluster': (str,), # noqa: E501
|
'worker_tag': (str,), # noqa: E501
|
||||||
}
|
}
|
||||||
|
|
||||||
@cached_property
|
@cached_property
|
||||||
@ -116,7 +116,7 @@ class SubmittedJob(ModelNormal):
|
|||||||
'settings': 'settings', # noqa: E501
|
'settings': 'settings', # noqa: E501
|
||||||
'metadata': 'metadata', # noqa: E501
|
'metadata': 'metadata', # noqa: E501
|
||||||
'storage': 'storage', # noqa: E501
|
'storage': 'storage', # noqa: E501
|
||||||
'worker_cluster': 'worker_cluster', # noqa: E501
|
'worker_tag': 'worker_tag', # noqa: E501
|
||||||
}
|
}
|
||||||
|
|
||||||
read_only_vars = {
|
read_only_vars = {
|
||||||
@ -170,7 +170,7 @@ class SubmittedJob(ModelNormal):
|
|||||||
settings (JobSettings): [optional] # noqa: E501
|
settings (JobSettings): [optional] # noqa: E501
|
||||||
metadata (JobMetadata): [optional] # noqa: E501
|
metadata (JobMetadata): [optional] # noqa: E501
|
||||||
storage (JobStorageInfo): [optional] # noqa: E501
|
storage (JobStorageInfo): [optional] # noqa: E501
|
||||||
worker_cluster (str): Worker Cluster that should execute this job. When a cluster ID is given, only Workers in that cluster will be scheduled to work on it. If empty or ommitted, all workers can work on this job. . [optional] # noqa: E501
|
worker_tag (str): Worker tag that should execute this job. When a tag ID is given, only Workers in that tag will be scheduled to work on it. If empty or ommitted, all workers can work on this job. . [optional] # noqa: E501
|
||||||
"""
|
"""
|
||||||
|
|
||||||
priority = kwargs.get('priority', 50)
|
priority = kwargs.get('priority', 50)
|
||||||
@ -267,7 +267,7 @@ class SubmittedJob(ModelNormal):
|
|||||||
settings (JobSettings): [optional] # noqa: E501
|
settings (JobSettings): [optional] # noqa: E501
|
||||||
metadata (JobMetadata): [optional] # noqa: E501
|
metadata (JobMetadata): [optional] # noqa: E501
|
||||||
storage (JobStorageInfo): [optional] # noqa: E501
|
storage (JobStorageInfo): [optional] # noqa: E501
|
||||||
worker_cluster (str): Worker Cluster that should execute this job. When a cluster ID is given, only Workers in that cluster will be scheduled to work on it. If empty or ommitted, all workers can work on this job. . [optional] # noqa: E501
|
worker_tag (str): Worker tag that should execute this job. When a tag ID is given, only Workers in that tag will be scheduled to work on it. If empty or ommitted, all workers can work on this job. . [optional] # noqa: E501
|
||||||
"""
|
"""
|
||||||
|
|
||||||
priority = kwargs.get('priority', 50)
|
priority = kwargs.get('priority', 50)
|
||||||
|
12
addon/flamenco/manager/model/worker.py
generated
12
addon/flamenco/manager/model/worker.py
generated
@ -31,16 +31,16 @@ from flamenco.manager.exceptions import ApiAttributeError
|
|||||||
|
|
||||||
def lazy_import():
|
def lazy_import():
|
||||||
from flamenco.manager.model.worker_all_of import WorkerAllOf
|
from flamenco.manager.model.worker_all_of import WorkerAllOf
|
||||||
from flamenco.manager.model.worker_cluster import WorkerCluster
|
|
||||||
from flamenco.manager.model.worker_status import WorkerStatus
|
from flamenco.manager.model.worker_status import WorkerStatus
|
||||||
from flamenco.manager.model.worker_status_change_request import WorkerStatusChangeRequest
|
from flamenco.manager.model.worker_status_change_request import WorkerStatusChangeRequest
|
||||||
from flamenco.manager.model.worker_summary import WorkerSummary
|
from flamenco.manager.model.worker_summary import WorkerSummary
|
||||||
|
from flamenco.manager.model.worker_tag import WorkerTag
|
||||||
from flamenco.manager.model.worker_task import WorkerTask
|
from flamenco.manager.model.worker_task import WorkerTask
|
||||||
globals()['WorkerAllOf'] = WorkerAllOf
|
globals()['WorkerAllOf'] = WorkerAllOf
|
||||||
globals()['WorkerCluster'] = WorkerCluster
|
|
||||||
globals()['WorkerStatus'] = WorkerStatus
|
globals()['WorkerStatus'] = WorkerStatus
|
||||||
globals()['WorkerStatusChangeRequest'] = WorkerStatusChangeRequest
|
globals()['WorkerStatusChangeRequest'] = WorkerStatusChangeRequest
|
||||||
globals()['WorkerSummary'] = WorkerSummary
|
globals()['WorkerSummary'] = WorkerSummary
|
||||||
|
globals()['WorkerTag'] = WorkerTag
|
||||||
globals()['WorkerTask'] = WorkerTask
|
globals()['WorkerTask'] = WorkerTask
|
||||||
|
|
||||||
|
|
||||||
@ -107,7 +107,7 @@ class Worker(ModelComposed):
|
|||||||
'status_change': (WorkerStatusChangeRequest,), # noqa: E501
|
'status_change': (WorkerStatusChangeRequest,), # noqa: E501
|
||||||
'last_seen': (datetime,), # noqa: E501
|
'last_seen': (datetime,), # noqa: E501
|
||||||
'task': (WorkerTask,), # noqa: E501
|
'task': (WorkerTask,), # noqa: E501
|
||||||
'clusters': ([WorkerCluster],), # noqa: E501
|
'tags': ([WorkerTag],), # noqa: E501
|
||||||
}
|
}
|
||||||
|
|
||||||
@cached_property
|
@cached_property
|
||||||
@ -126,7 +126,7 @@ class Worker(ModelComposed):
|
|||||||
'status_change': 'status_change', # noqa: E501
|
'status_change': 'status_change', # noqa: E501
|
||||||
'last_seen': 'last_seen', # noqa: E501
|
'last_seen': 'last_seen', # noqa: E501
|
||||||
'task': 'task', # noqa: E501
|
'task': 'task', # noqa: E501
|
||||||
'clusters': 'clusters', # noqa: E501
|
'tags': 'tags', # noqa: E501
|
||||||
}
|
}
|
||||||
|
|
||||||
read_only_vars = {
|
read_only_vars = {
|
||||||
@ -178,7 +178,7 @@ class Worker(ModelComposed):
|
|||||||
status_change (WorkerStatusChangeRequest): [optional] # noqa: E501
|
status_change (WorkerStatusChangeRequest): [optional] # noqa: E501
|
||||||
last_seen (datetime): Last time this worker was seen by the Manager.. [optional] # noqa: E501
|
last_seen (datetime): Last time this worker was seen by the Manager.. [optional] # noqa: E501
|
||||||
task (WorkerTask): [optional] # noqa: E501
|
task (WorkerTask): [optional] # noqa: E501
|
||||||
clusters ([WorkerCluster]): Clusters of which this Worker is a member.. [optional] # noqa: E501
|
tags ([WorkerTag]): Tags of which this Worker is a member.. [optional] # noqa: E501
|
||||||
"""
|
"""
|
||||||
|
|
||||||
_check_type = kwargs.pop('_check_type', True)
|
_check_type = kwargs.pop('_check_type', True)
|
||||||
@ -288,7 +288,7 @@ class Worker(ModelComposed):
|
|||||||
status_change (WorkerStatusChangeRequest): [optional] # noqa: E501
|
status_change (WorkerStatusChangeRequest): [optional] # noqa: E501
|
||||||
last_seen (datetime): Last time this worker was seen by the Manager.. [optional] # noqa: E501
|
last_seen (datetime): Last time this worker was seen by the Manager.. [optional] # noqa: E501
|
||||||
task (WorkerTask): [optional] # noqa: E501
|
task (WorkerTask): [optional] # noqa: E501
|
||||||
clusters ([WorkerCluster]): Clusters of which this Worker is a member.. [optional] # noqa: E501
|
tags ([WorkerTag]): Tags of which this Worker is a member.. [optional] # noqa: E501
|
||||||
"""
|
"""
|
||||||
|
|
||||||
_check_type = kwargs.pop('_check_type', True)
|
_check_type = kwargs.pop('_check_type', True)
|
||||||
|
12
addon/flamenco/manager/model/worker_all_of.py
generated
12
addon/flamenco/manager/model/worker_all_of.py
generated
@ -30,9 +30,9 @@ from flamenco.manager.exceptions import ApiAttributeError
|
|||||||
|
|
||||||
|
|
||||||
def lazy_import():
|
def lazy_import():
|
||||||
from flamenco.manager.model.worker_cluster import WorkerCluster
|
from flamenco.manager.model.worker_tag import WorkerTag
|
||||||
from flamenco.manager.model.worker_task import WorkerTask
|
from flamenco.manager.model.worker_task import WorkerTask
|
||||||
globals()['WorkerCluster'] = WorkerCluster
|
globals()['WorkerTag'] = WorkerTag
|
||||||
globals()['WorkerTask'] = WorkerTask
|
globals()['WorkerTask'] = WorkerTask
|
||||||
|
|
||||||
|
|
||||||
@ -93,7 +93,7 @@ class WorkerAllOf(ModelNormal):
|
|||||||
'platform': (str,), # noqa: E501
|
'platform': (str,), # noqa: E501
|
||||||
'supported_task_types': ([str],), # noqa: E501
|
'supported_task_types': ([str],), # noqa: E501
|
||||||
'task': (WorkerTask,), # noqa: E501
|
'task': (WorkerTask,), # noqa: E501
|
||||||
'clusters': ([WorkerCluster],), # noqa: E501
|
'tags': ([WorkerTag],), # noqa: E501
|
||||||
}
|
}
|
||||||
|
|
||||||
@cached_property
|
@cached_property
|
||||||
@ -106,7 +106,7 @@ class WorkerAllOf(ModelNormal):
|
|||||||
'platform': 'platform', # noqa: E501
|
'platform': 'platform', # noqa: E501
|
||||||
'supported_task_types': 'supported_task_types', # noqa: E501
|
'supported_task_types': 'supported_task_types', # noqa: E501
|
||||||
'task': 'task', # noqa: E501
|
'task': 'task', # noqa: E501
|
||||||
'clusters': 'clusters', # noqa: E501
|
'tags': 'tags', # noqa: E501
|
||||||
}
|
}
|
||||||
|
|
||||||
read_only_vars = {
|
read_only_vars = {
|
||||||
@ -156,7 +156,7 @@ class WorkerAllOf(ModelNormal):
|
|||||||
through its discriminator because we passed in
|
through its discriminator because we passed in
|
||||||
_visited_composed_classes = (Animal,)
|
_visited_composed_classes = (Animal,)
|
||||||
task (WorkerTask): [optional] # noqa: E501
|
task (WorkerTask): [optional] # noqa: E501
|
||||||
clusters ([WorkerCluster]): Clusters of which this Worker is a member.. [optional] # noqa: E501
|
tags ([WorkerTag]): Tags of which this Worker is a member.. [optional] # noqa: E501
|
||||||
"""
|
"""
|
||||||
|
|
||||||
_check_type = kwargs.pop('_check_type', True)
|
_check_type = kwargs.pop('_check_type', True)
|
||||||
@ -247,7 +247,7 @@ class WorkerAllOf(ModelNormal):
|
|||||||
through its discriminator because we passed in
|
through its discriminator because we passed in
|
||||||
_visited_composed_classes = (Animal,)
|
_visited_composed_classes = (Animal,)
|
||||||
task (WorkerTask): [optional] # noqa: E501
|
task (WorkerTask): [optional] # noqa: E501
|
||||||
clusters ([WorkerCluster]): Clusters of which this Worker is a member.. [optional] # noqa: E501
|
tags ([WorkerTag]): Tags of which this Worker is a member.. [optional] # noqa: E501
|
||||||
"""
|
"""
|
||||||
|
|
||||||
_check_type = kwargs.pop('_check_type', True)
|
_check_type = kwargs.pop('_check_type', True)
|
||||||
|
@ -30,7 +30,7 @@ from flamenco.manager.exceptions import ApiAttributeError
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
class WorkerCluster(ModelNormal):
|
class WorkerTag(ModelNormal):
|
||||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||||
Ref: https://openapi-generator.tech
|
Ref: https://openapi-generator.tech
|
||||||
|
|
||||||
@ -105,7 +105,7 @@ class WorkerCluster(ModelNormal):
|
|||||||
@classmethod
|
@classmethod
|
||||||
@convert_js_args_to_python_args
|
@convert_js_args_to_python_args
|
||||||
def _from_openapi_data(cls, name, *args, **kwargs): # noqa: E501
|
def _from_openapi_data(cls, name, *args, **kwargs): # noqa: E501
|
||||||
"""WorkerCluster - a model defined in OpenAPI
|
"""WorkerTag - a model defined in OpenAPI
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
name (str):
|
name (str):
|
||||||
@ -141,7 +141,7 @@ class WorkerCluster(ModelNormal):
|
|||||||
Animal class but this time we won't travel
|
Animal class but this time we won't travel
|
||||||
through its discriminator because we passed in
|
through its discriminator because we passed in
|
||||||
_visited_composed_classes = (Animal,)
|
_visited_composed_classes = (Animal,)
|
||||||
id (str): UUID of the cluster. Can be ommitted when creating a new cluster, in which case a random UUID will be assigned. . [optional] # noqa: E501
|
id (str): UUID of the tag. Can be ommitted when creating a new tag, in which case a random UUID will be assigned. . [optional] # noqa: E501
|
||||||
description (str): [optional] # noqa: E501
|
description (str): [optional] # noqa: E501
|
||||||
"""
|
"""
|
||||||
|
|
||||||
@ -192,7 +192,7 @@ class WorkerCluster(ModelNormal):
|
|||||||
|
|
||||||
@convert_js_args_to_python_args
|
@convert_js_args_to_python_args
|
||||||
def __init__(self, name, *args, **kwargs): # noqa: E501
|
def __init__(self, name, *args, **kwargs): # noqa: E501
|
||||||
"""WorkerCluster - a model defined in OpenAPI
|
"""WorkerTag - a model defined in OpenAPI
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
name (str):
|
name (str):
|
||||||
@ -228,7 +228,7 @@ class WorkerCluster(ModelNormal):
|
|||||||
Animal class but this time we won't travel
|
Animal class but this time we won't travel
|
||||||
through its discriminator because we passed in
|
through its discriminator because we passed in
|
||||||
_visited_composed_classes = (Animal,)
|
_visited_composed_classes = (Animal,)
|
||||||
id (str): UUID of the cluster. Can be ommitted when creating a new cluster, in which case a random UUID will be assigned. . [optional] # noqa: E501
|
id (str): UUID of the tag. Can be ommitted when creating a new tag, in which case a random UUID will be assigned. . [optional] # noqa: E501
|
||||||
description (str): [optional] # noqa: E501
|
description (str): [optional] # noqa: E501
|
||||||
"""
|
"""
|
||||||
|
|
@ -30,7 +30,7 @@ from flamenco.manager.exceptions import ApiAttributeError
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
class WorkerClusterChangeRequest(ModelNormal):
|
class WorkerTagChangeRequest(ModelNormal):
|
||||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||||
Ref: https://openapi-generator.tech
|
Ref: https://openapi-generator.tech
|
||||||
|
|
||||||
@ -81,7 +81,7 @@ class WorkerClusterChangeRequest(ModelNormal):
|
|||||||
and the value is attribute type.
|
and the value is attribute type.
|
||||||
"""
|
"""
|
||||||
return {
|
return {
|
||||||
'cluster_ids': ([str],), # noqa: E501
|
'tag_ids': ([str],), # noqa: E501
|
||||||
}
|
}
|
||||||
|
|
||||||
@cached_property
|
@cached_property
|
||||||
@ -90,7 +90,7 @@ class WorkerClusterChangeRequest(ModelNormal):
|
|||||||
|
|
||||||
|
|
||||||
attribute_map = {
|
attribute_map = {
|
||||||
'cluster_ids': 'cluster_ids', # noqa: E501
|
'tag_ids': 'tag_ids', # noqa: E501
|
||||||
}
|
}
|
||||||
|
|
||||||
read_only_vars = {
|
read_only_vars = {
|
||||||
@ -100,11 +100,11 @@ class WorkerClusterChangeRequest(ModelNormal):
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
@convert_js_args_to_python_args
|
@convert_js_args_to_python_args
|
||||||
def _from_openapi_data(cls, cluster_ids, *args, **kwargs): # noqa: E501
|
def _from_openapi_data(cls, tag_ids, *args, **kwargs): # noqa: E501
|
||||||
"""WorkerClusterChangeRequest - a model defined in OpenAPI
|
"""WorkerTagChangeRequest - a model defined in OpenAPI
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
cluster_ids ([str]):
|
tag_ids ([str]):
|
||||||
|
|
||||||
Keyword Args:
|
Keyword Args:
|
||||||
_check_type (bool): if True, values for parameters in openapi_types
|
_check_type (bool): if True, values for parameters in openapi_types
|
||||||
@ -164,7 +164,7 @@ class WorkerClusterChangeRequest(ModelNormal):
|
|||||||
self._configuration = _configuration
|
self._configuration = _configuration
|
||||||
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
||||||
|
|
||||||
self.cluster_ids = cluster_ids
|
self.tag_ids = tag_ids
|
||||||
for var_name, var_value in kwargs.items():
|
for var_name, var_value in kwargs.items():
|
||||||
if var_name not in self.attribute_map and \
|
if var_name not in self.attribute_map and \
|
||||||
self._configuration is not None and \
|
self._configuration is not None and \
|
||||||
@ -185,11 +185,11 @@ class WorkerClusterChangeRequest(ModelNormal):
|
|||||||
])
|
])
|
||||||
|
|
||||||
@convert_js_args_to_python_args
|
@convert_js_args_to_python_args
|
||||||
def __init__(self, cluster_ids, *args, **kwargs): # noqa: E501
|
def __init__(self, tag_ids, *args, **kwargs): # noqa: E501
|
||||||
"""WorkerClusterChangeRequest - a model defined in OpenAPI
|
"""WorkerTagChangeRequest - a model defined in OpenAPI
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
cluster_ids ([str]):
|
tag_ids ([str]):
|
||||||
|
|
||||||
Keyword Args:
|
Keyword Args:
|
||||||
_check_type (bool): if True, values for parameters in openapi_types
|
_check_type (bool): if True, values for parameters in openapi_types
|
||||||
@ -247,7 +247,7 @@ class WorkerClusterChangeRequest(ModelNormal):
|
|||||||
self._configuration = _configuration
|
self._configuration = _configuration
|
||||||
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
||||||
|
|
||||||
self.cluster_ids = cluster_ids
|
self.tag_ids = tag_ids
|
||||||
for var_name, var_value in kwargs.items():
|
for var_name, var_value in kwargs.items():
|
||||||
if var_name not in self.attribute_map and \
|
if var_name not in self.attribute_map and \
|
||||||
self._configuration is not None and \
|
self._configuration is not None and \
|
@ -30,11 +30,11 @@ from flamenco.manager.exceptions import ApiAttributeError
|
|||||||
|
|
||||||
|
|
||||||
def lazy_import():
|
def lazy_import():
|
||||||
from flamenco.manager.model.worker_cluster import WorkerCluster
|
from flamenco.manager.model.worker_tag import WorkerTag
|
||||||
globals()['WorkerCluster'] = WorkerCluster
|
globals()['WorkerTag'] = WorkerTag
|
||||||
|
|
||||||
|
|
||||||
class WorkerClusterList(ModelNormal):
|
class WorkerTagList(ModelNormal):
|
||||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||||
Ref: https://openapi-generator.tech
|
Ref: https://openapi-generator.tech
|
||||||
|
|
||||||
@ -87,7 +87,7 @@ class WorkerClusterList(ModelNormal):
|
|||||||
"""
|
"""
|
||||||
lazy_import()
|
lazy_import()
|
||||||
return {
|
return {
|
||||||
'clusters': ([WorkerCluster],), # noqa: E501
|
'tags': ([WorkerTag],), # noqa: E501
|
||||||
}
|
}
|
||||||
|
|
||||||
@cached_property
|
@cached_property
|
||||||
@ -96,7 +96,7 @@ class WorkerClusterList(ModelNormal):
|
|||||||
|
|
||||||
|
|
||||||
attribute_map = {
|
attribute_map = {
|
||||||
'clusters': 'clusters', # noqa: E501
|
'tags': 'tags', # noqa: E501
|
||||||
}
|
}
|
||||||
|
|
||||||
read_only_vars = {
|
read_only_vars = {
|
||||||
@ -107,7 +107,7 @@ class WorkerClusterList(ModelNormal):
|
|||||||
@classmethod
|
@classmethod
|
||||||
@convert_js_args_to_python_args
|
@convert_js_args_to_python_args
|
||||||
def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
|
def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
|
||||||
"""WorkerClusterList - a model defined in OpenAPI
|
"""WorkerTagList - a model defined in OpenAPI
|
||||||
|
|
||||||
Keyword Args:
|
Keyword Args:
|
||||||
_check_type (bool): if True, values for parameters in openapi_types
|
_check_type (bool): if True, values for parameters in openapi_types
|
||||||
@ -140,7 +140,7 @@ class WorkerClusterList(ModelNormal):
|
|||||||
Animal class but this time we won't travel
|
Animal class but this time we won't travel
|
||||||
through its discriminator because we passed in
|
through its discriminator because we passed in
|
||||||
_visited_composed_classes = (Animal,)
|
_visited_composed_classes = (Animal,)
|
||||||
clusters ([WorkerCluster]): [optional] # noqa: E501
|
tags ([WorkerTag]): [optional] # noqa: E501
|
||||||
"""
|
"""
|
||||||
|
|
||||||
_check_type = kwargs.pop('_check_type', True)
|
_check_type = kwargs.pop('_check_type', True)
|
||||||
@ -189,7 +189,7 @@ class WorkerClusterList(ModelNormal):
|
|||||||
|
|
||||||
@convert_js_args_to_python_args
|
@convert_js_args_to_python_args
|
||||||
def __init__(self, *args, **kwargs): # noqa: E501
|
def __init__(self, *args, **kwargs): # noqa: E501
|
||||||
"""WorkerClusterList - a model defined in OpenAPI
|
"""WorkerTagList - a model defined in OpenAPI
|
||||||
|
|
||||||
Keyword Args:
|
Keyword Args:
|
||||||
_check_type (bool): if True, values for parameters in openapi_types
|
_check_type (bool): if True, values for parameters in openapi_types
|
||||||
@ -222,7 +222,7 @@ class WorkerClusterList(ModelNormal):
|
|||||||
Animal class but this time we won't travel
|
Animal class but this time we won't travel
|
||||||
through its discriminator because we passed in
|
through its discriminator because we passed in
|
||||||
_visited_composed_classes = (Animal,)
|
_visited_composed_classes = (Animal,)
|
||||||
clusters ([WorkerCluster]): [optional] # noqa: E501
|
tags ([WorkerTag]): [optional] # noqa: E501
|
||||||
"""
|
"""
|
||||||
|
|
||||||
_check_type = kwargs.pop('_check_type', True)
|
_check_type = kwargs.pop('_check_type', True)
|
6
addon/flamenco/manager/models/__init__.py
generated
6
addon/flamenco/manager/models/__init__.py
generated
@ -74,9 +74,6 @@ from flamenco.manager.model.task_update import TaskUpdate
|
|||||||
from flamenco.manager.model.task_worker import TaskWorker
|
from flamenco.manager.model.task_worker import TaskWorker
|
||||||
from flamenco.manager.model.worker import Worker
|
from flamenco.manager.model.worker import Worker
|
||||||
from flamenco.manager.model.worker_all_of import WorkerAllOf
|
from flamenco.manager.model.worker_all_of import WorkerAllOf
|
||||||
from flamenco.manager.model.worker_cluster import WorkerCluster
|
|
||||||
from flamenco.manager.model.worker_cluster_change_request import WorkerClusterChangeRequest
|
|
||||||
from flamenco.manager.model.worker_cluster_list import WorkerClusterList
|
|
||||||
from flamenco.manager.model.worker_list import WorkerList
|
from flamenco.manager.model.worker_list import WorkerList
|
||||||
from flamenco.manager.model.worker_registration import WorkerRegistration
|
from flamenco.manager.model.worker_registration import WorkerRegistration
|
||||||
from flamenco.manager.model.worker_sign_on import WorkerSignOn
|
from flamenco.manager.model.worker_sign_on import WorkerSignOn
|
||||||
@ -86,5 +83,8 @@ from flamenco.manager.model.worker_state_changed import WorkerStateChanged
|
|||||||
from flamenco.manager.model.worker_status import WorkerStatus
|
from flamenco.manager.model.worker_status import WorkerStatus
|
||||||
from flamenco.manager.model.worker_status_change_request import WorkerStatusChangeRequest
|
from flamenco.manager.model.worker_status_change_request import WorkerStatusChangeRequest
|
||||||
from flamenco.manager.model.worker_summary import WorkerSummary
|
from flamenco.manager.model.worker_summary import WorkerSummary
|
||||||
|
from flamenco.manager.model.worker_tag import WorkerTag
|
||||||
|
from flamenco.manager.model.worker_tag_change_request import WorkerTagChangeRequest
|
||||||
|
from flamenco.manager.model.worker_tag_list import WorkerTagList
|
||||||
from flamenco.manager.model.worker_task import WorkerTask
|
from flamenco.manager.model.worker_task import WorkerTask
|
||||||
from flamenco.manager.model.worker_task_all_of import WorkerTaskAllOf
|
from flamenco.manager.model.worker_task_all_of import WorkerTaskAllOf
|
||||||
|
18
addon/flamenco/manager_README.md
generated
18
addon/flamenco/manager_README.md
generated
@ -116,18 +116,18 @@ Class | Method | HTTP request | Description
|
|||||||
*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* | [**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**](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.
|
*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_cluster**](flamenco/manager/docs/WorkerMgtApi.md#create_worker_cluster) | **POST** /api/v3/worker-mgt/clusters | Create a new worker cluster.
|
*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**](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_cluster**](flamenco/manager/docs/WorkerMgtApi.md#delete_worker_cluster) | **DELETE** /api/v3/worker-mgt/cluster/{cluster_id} | Remove this worker cluster. This unassigns all workers from the cluster and removes it.
|
*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**](flamenco/manager/docs/WorkerMgtApi.md#fetch_worker) | **GET** /api/v3/worker-mgt/workers/{worker_id} | Fetch info about the worker.
|
||||||
*WorkerMgtApi* | [**fetch_worker_cluster**](flamenco/manager/docs/WorkerMgtApi.md#fetch_worker_cluster) | **GET** /api/v3/worker-mgt/cluster/{cluster_id} | Get a single worker cluster.
|
|
||||||
*WorkerMgtApi* | [**fetch_worker_clusters**](flamenco/manager/docs/WorkerMgtApi.md#fetch_worker_clusters) | **GET** /api/v3/worker-mgt/clusters | Get list of worker clusters.
|
|
||||||
*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_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* | [**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* | [**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_clusters**](flamenco/manager/docs/WorkerMgtApi.md#set_worker_clusters) | **POST** /api/v3/worker-mgt/workers/{worker_id}/setclusters |
|
|
||||||
*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_sleep_schedule**](flamenco/manager/docs/WorkerMgtApi.md#set_worker_sleep_schedule) | **POST** /api/v3/worker-mgt/workers/{worker_id}/sleep-schedule |
|
||||||
*WorkerMgtApi* | [**update_worker_cluster**](flamenco/manager/docs/WorkerMgtApi.md#update_worker_cluster) | **PUT** /api/v3/worker-mgt/cluster/{cluster_id} | Update an existing worker cluster.
|
*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
|
## Documentation For Models
|
||||||
@ -197,9 +197,6 @@ Class | Method | HTTP request | Description
|
|||||||
- [TaskWorker](flamenco/manager/docs/TaskWorker.md)
|
- [TaskWorker](flamenco/manager/docs/TaskWorker.md)
|
||||||
- [Worker](flamenco/manager/docs/Worker.md)
|
- [Worker](flamenco/manager/docs/Worker.md)
|
||||||
- [WorkerAllOf](flamenco/manager/docs/WorkerAllOf.md)
|
- [WorkerAllOf](flamenco/manager/docs/WorkerAllOf.md)
|
||||||
- [WorkerCluster](flamenco/manager/docs/WorkerCluster.md)
|
|
||||||
- [WorkerClusterChangeRequest](flamenco/manager/docs/WorkerClusterChangeRequest.md)
|
|
||||||
- [WorkerClusterList](flamenco/manager/docs/WorkerClusterList.md)
|
|
||||||
- [WorkerList](flamenco/manager/docs/WorkerList.md)
|
- [WorkerList](flamenco/manager/docs/WorkerList.md)
|
||||||
- [WorkerRegistration](flamenco/manager/docs/WorkerRegistration.md)
|
- [WorkerRegistration](flamenco/manager/docs/WorkerRegistration.md)
|
||||||
- [WorkerSignOn](flamenco/manager/docs/WorkerSignOn.md)
|
- [WorkerSignOn](flamenco/manager/docs/WorkerSignOn.md)
|
||||||
@ -209,6 +206,9 @@ Class | Method | HTTP request | Description
|
|||||||
- [WorkerStatus](flamenco/manager/docs/WorkerStatus.md)
|
- [WorkerStatus](flamenco/manager/docs/WorkerStatus.md)
|
||||||
- [WorkerStatusChangeRequest](flamenco/manager/docs/WorkerStatusChangeRequest.md)
|
- [WorkerStatusChangeRequest](flamenco/manager/docs/WorkerStatusChangeRequest.md)
|
||||||
- [WorkerSummary](flamenco/manager/docs/WorkerSummary.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)
|
- [WorkerTask](flamenco/manager/docs/WorkerTask.md)
|
||||||
- [WorkerTaskAllOf](flamenco/manager/docs/WorkerTaskAllOf.md)
|
- [WorkerTaskAllOf](flamenco/manager/docs/WorkerTaskAllOf.md)
|
||||||
|
|
||||||
|
92
internal/manager/api_impl/mocks/api_impl_mock.gen.go
generated
92
internal/manager/api_impl/mocks/api_impl_mock.gen.go
generated
@ -141,18 +141,18 @@ func (mr *MockPersistenceServiceMockRecorder) CreateWorker(arg0, arg1 interface{
|
|||||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateWorker", reflect.TypeOf((*MockPersistenceService)(nil).CreateWorker), arg0, arg1)
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateWorker", reflect.TypeOf((*MockPersistenceService)(nil).CreateWorker), arg0, arg1)
|
||||||
}
|
}
|
||||||
|
|
||||||
// CreateWorkerCluster mocks base method.
|
// CreateWorkerTag mocks base method.
|
||||||
func (m *MockPersistenceService) CreateWorkerCluster(arg0 context.Context, arg1 *persistence.WorkerCluster) error {
|
func (m *MockPersistenceService) CreateWorkerTag(arg0 context.Context, arg1 *persistence.WorkerTag) error {
|
||||||
m.ctrl.T.Helper()
|
m.ctrl.T.Helper()
|
||||||
ret := m.ctrl.Call(m, "CreateWorkerCluster", arg0, arg1)
|
ret := m.ctrl.Call(m, "CreateWorkerTag", arg0, arg1)
|
||||||
ret0, _ := ret[0].(error)
|
ret0, _ := ret[0].(error)
|
||||||
return ret0
|
return ret0
|
||||||
}
|
}
|
||||||
|
|
||||||
// CreateWorkerCluster indicates an expected call of CreateWorkerCluster.
|
// CreateWorkerTag indicates an expected call of CreateWorkerTag.
|
||||||
func (mr *MockPersistenceServiceMockRecorder) CreateWorkerCluster(arg0, arg1 interface{}) *gomock.Call {
|
func (mr *MockPersistenceServiceMockRecorder) CreateWorkerTag(arg0, arg1 interface{}) *gomock.Call {
|
||||||
mr.mock.ctrl.T.Helper()
|
mr.mock.ctrl.T.Helper()
|
||||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateWorkerCluster", reflect.TypeOf((*MockPersistenceService)(nil).CreateWorkerCluster), arg0, arg1)
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateWorkerTag", reflect.TypeOf((*MockPersistenceService)(nil).CreateWorkerTag), arg0, arg1)
|
||||||
}
|
}
|
||||||
|
|
||||||
// DeleteWorker mocks base method.
|
// DeleteWorker mocks base method.
|
||||||
@ -169,18 +169,18 @@ func (mr *MockPersistenceServiceMockRecorder) DeleteWorker(arg0, arg1 interface{
|
|||||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteWorker", reflect.TypeOf((*MockPersistenceService)(nil).DeleteWorker), arg0, arg1)
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteWorker", reflect.TypeOf((*MockPersistenceService)(nil).DeleteWorker), arg0, arg1)
|
||||||
}
|
}
|
||||||
|
|
||||||
// DeleteWorkerCluster mocks base method.
|
// DeleteWorkerTag mocks base method.
|
||||||
func (m *MockPersistenceService) DeleteWorkerCluster(arg0 context.Context, arg1 string) error {
|
func (m *MockPersistenceService) DeleteWorkerTag(arg0 context.Context, arg1 string) error {
|
||||||
m.ctrl.T.Helper()
|
m.ctrl.T.Helper()
|
||||||
ret := m.ctrl.Call(m, "DeleteWorkerCluster", arg0, arg1)
|
ret := m.ctrl.Call(m, "DeleteWorkerTag", arg0, arg1)
|
||||||
ret0, _ := ret[0].(error)
|
ret0, _ := ret[0].(error)
|
||||||
return ret0
|
return ret0
|
||||||
}
|
}
|
||||||
|
|
||||||
// DeleteWorkerCluster indicates an expected call of DeleteWorkerCluster.
|
// DeleteWorkerTag indicates an expected call of DeleteWorkerTag.
|
||||||
func (mr *MockPersistenceServiceMockRecorder) DeleteWorkerCluster(arg0, arg1 interface{}) *gomock.Call {
|
func (mr *MockPersistenceServiceMockRecorder) DeleteWorkerTag(arg0, arg1 interface{}) *gomock.Call {
|
||||||
mr.mock.ctrl.T.Helper()
|
mr.mock.ctrl.T.Helper()
|
||||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteWorkerCluster", reflect.TypeOf((*MockPersistenceService)(nil).DeleteWorkerCluster), arg0, arg1)
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteWorkerTag", reflect.TypeOf((*MockPersistenceService)(nil).DeleteWorkerTag), arg0, arg1)
|
||||||
}
|
}
|
||||||
|
|
||||||
// FetchJob mocks base method.
|
// FetchJob mocks base method.
|
||||||
@ -258,34 +258,34 @@ func (mr *MockPersistenceServiceMockRecorder) FetchWorker(arg0, arg1 interface{}
|
|||||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchWorker", reflect.TypeOf((*MockPersistenceService)(nil).FetchWorker), arg0, arg1)
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchWorker", reflect.TypeOf((*MockPersistenceService)(nil).FetchWorker), arg0, arg1)
|
||||||
}
|
}
|
||||||
|
|
||||||
// FetchWorkerCluster mocks base method.
|
// FetchWorkerTag mocks base method.
|
||||||
func (m *MockPersistenceService) FetchWorkerCluster(arg0 context.Context, arg1 string) (*persistence.WorkerCluster, error) {
|
func (m *MockPersistenceService) FetchWorkerTag(arg0 context.Context, arg1 string) (*persistence.WorkerTag, error) {
|
||||||
m.ctrl.T.Helper()
|
m.ctrl.T.Helper()
|
||||||
ret := m.ctrl.Call(m, "FetchWorkerCluster", arg0, arg1)
|
ret := m.ctrl.Call(m, "FetchWorkerTag", arg0, arg1)
|
||||||
ret0, _ := ret[0].(*persistence.WorkerCluster)
|
ret0, _ := ret[0].(*persistence.WorkerTag)
|
||||||
ret1, _ := ret[1].(error)
|
ret1, _ := ret[1].(error)
|
||||||
return ret0, ret1
|
return ret0, ret1
|
||||||
}
|
}
|
||||||
|
|
||||||
// FetchWorkerCluster indicates an expected call of FetchWorkerCluster.
|
// FetchWorkerTag indicates an expected call of FetchWorkerTag.
|
||||||
func (mr *MockPersistenceServiceMockRecorder) FetchWorkerCluster(arg0, arg1 interface{}) *gomock.Call {
|
func (mr *MockPersistenceServiceMockRecorder) FetchWorkerTag(arg0, arg1 interface{}) *gomock.Call {
|
||||||
mr.mock.ctrl.T.Helper()
|
mr.mock.ctrl.T.Helper()
|
||||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchWorkerCluster", reflect.TypeOf((*MockPersistenceService)(nil).FetchWorkerCluster), arg0, arg1)
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchWorkerTag", reflect.TypeOf((*MockPersistenceService)(nil).FetchWorkerTag), arg0, arg1)
|
||||||
}
|
}
|
||||||
|
|
||||||
// FetchWorkerClusters mocks base method.
|
// FetchWorkerTags mocks base method.
|
||||||
func (m *MockPersistenceService) FetchWorkerClusters(arg0 context.Context) ([]*persistence.WorkerCluster, error) {
|
func (m *MockPersistenceService) FetchWorkerTags(arg0 context.Context) ([]*persistence.WorkerTag, error) {
|
||||||
m.ctrl.T.Helper()
|
m.ctrl.T.Helper()
|
||||||
ret := m.ctrl.Call(m, "FetchWorkerClusters", arg0)
|
ret := m.ctrl.Call(m, "FetchWorkerTags", arg0)
|
||||||
ret0, _ := ret[0].([]*persistence.WorkerCluster)
|
ret0, _ := ret[0].([]*persistence.WorkerTag)
|
||||||
ret1, _ := ret[1].(error)
|
ret1, _ := ret[1].(error)
|
||||||
return ret0, ret1
|
return ret0, ret1
|
||||||
}
|
}
|
||||||
|
|
||||||
// FetchWorkerClusters indicates an expected call of FetchWorkerClusters.
|
// FetchWorkerTags indicates an expected call of FetchWorkerTags.
|
||||||
func (mr *MockPersistenceServiceMockRecorder) FetchWorkerClusters(arg0 interface{}) *gomock.Call {
|
func (mr *MockPersistenceServiceMockRecorder) FetchWorkerTags(arg0 interface{}) *gomock.Call {
|
||||||
mr.mock.ctrl.T.Helper()
|
mr.mock.ctrl.T.Helper()
|
||||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchWorkerClusters", reflect.TypeOf((*MockPersistenceService)(nil).FetchWorkerClusters), arg0)
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchWorkerTags", reflect.TypeOf((*MockPersistenceService)(nil).FetchWorkerTags), arg0)
|
||||||
}
|
}
|
||||||
|
|
||||||
// FetchWorkerTask mocks base method.
|
// FetchWorkerTask mocks base method.
|
||||||
@ -433,20 +433,6 @@ func (mr *MockPersistenceServiceMockRecorder) SaveWorker(arg0, arg1 interface{})
|
|||||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SaveWorker", reflect.TypeOf((*MockPersistenceService)(nil).SaveWorker), arg0, arg1)
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SaveWorker", reflect.TypeOf((*MockPersistenceService)(nil).SaveWorker), arg0, arg1)
|
||||||
}
|
}
|
||||||
|
|
||||||
// SaveWorkerCluster mocks base method.
|
|
||||||
func (m *MockPersistenceService) SaveWorkerCluster(arg0 context.Context, arg1 *persistence.WorkerCluster) error {
|
|
||||||
m.ctrl.T.Helper()
|
|
||||||
ret := m.ctrl.Call(m, "SaveWorkerCluster", arg0, arg1)
|
|
||||||
ret0, _ := ret[0].(error)
|
|
||||||
return ret0
|
|
||||||
}
|
|
||||||
|
|
||||||
// SaveWorkerCluster indicates an expected call of SaveWorkerCluster.
|
|
||||||
func (mr *MockPersistenceServiceMockRecorder) SaveWorkerCluster(arg0, arg1 interface{}) *gomock.Call {
|
|
||||||
mr.mock.ctrl.T.Helper()
|
|
||||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SaveWorkerCluster", reflect.TypeOf((*MockPersistenceService)(nil).SaveWorkerCluster), arg0, arg1)
|
|
||||||
}
|
|
||||||
|
|
||||||
// SaveWorkerStatus mocks base method.
|
// SaveWorkerStatus mocks base method.
|
||||||
func (m *MockPersistenceService) SaveWorkerStatus(arg0 context.Context, arg1 *persistence.Worker) error {
|
func (m *MockPersistenceService) SaveWorkerStatus(arg0 context.Context, arg1 *persistence.Worker) error {
|
||||||
m.ctrl.T.Helper()
|
m.ctrl.T.Helper()
|
||||||
@ -461,6 +447,20 @@ func (mr *MockPersistenceServiceMockRecorder) SaveWorkerStatus(arg0, arg1 interf
|
|||||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SaveWorkerStatus", reflect.TypeOf((*MockPersistenceService)(nil).SaveWorkerStatus), arg0, arg1)
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SaveWorkerStatus", reflect.TypeOf((*MockPersistenceService)(nil).SaveWorkerStatus), arg0, arg1)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// SaveWorkerTag mocks base method.
|
||||||
|
func (m *MockPersistenceService) SaveWorkerTag(arg0 context.Context, arg1 *persistence.WorkerTag) error {
|
||||||
|
m.ctrl.T.Helper()
|
||||||
|
ret := m.ctrl.Call(m, "SaveWorkerTag", arg0, arg1)
|
||||||
|
ret0, _ := ret[0].(error)
|
||||||
|
return ret0
|
||||||
|
}
|
||||||
|
|
||||||
|
// SaveWorkerTag indicates an expected call of SaveWorkerTag.
|
||||||
|
func (mr *MockPersistenceServiceMockRecorder) SaveWorkerTag(arg0, arg1 interface{}) *gomock.Call {
|
||||||
|
mr.mock.ctrl.T.Helper()
|
||||||
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SaveWorkerTag", reflect.TypeOf((*MockPersistenceService)(nil).SaveWorkerTag), arg0, arg1)
|
||||||
|
}
|
||||||
|
|
||||||
// ScheduleTask mocks base method.
|
// ScheduleTask mocks base method.
|
||||||
func (m *MockPersistenceService) ScheduleTask(arg0 context.Context, arg1 *persistence.Worker) (*persistence.Task, error) {
|
func (m *MockPersistenceService) ScheduleTask(arg0 context.Context, arg1 *persistence.Worker) (*persistence.Task, error) {
|
||||||
m.ctrl.T.Helper()
|
m.ctrl.T.Helper()
|
||||||
@ -532,18 +532,18 @@ func (mr *MockPersistenceServiceMockRecorder) WorkerSeen(arg0, arg1 interface{})
|
|||||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkerSeen", reflect.TypeOf((*MockPersistenceService)(nil).WorkerSeen), arg0, arg1)
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkerSeen", reflect.TypeOf((*MockPersistenceService)(nil).WorkerSeen), arg0, arg1)
|
||||||
}
|
}
|
||||||
|
|
||||||
// WorkerSetClusters mocks base method.
|
// WorkerSetTags mocks base method.
|
||||||
func (m *MockPersistenceService) WorkerSetClusters(arg0 context.Context, arg1 *persistence.Worker, arg2 []string) error {
|
func (m *MockPersistenceService) WorkerSetTags(arg0 context.Context, arg1 *persistence.Worker, arg2 []string) error {
|
||||||
m.ctrl.T.Helper()
|
m.ctrl.T.Helper()
|
||||||
ret := m.ctrl.Call(m, "WorkerSetClusters", arg0, arg1, arg2)
|
ret := m.ctrl.Call(m, "WorkerSetTags", arg0, arg1, arg2)
|
||||||
ret0, _ := ret[0].(error)
|
ret0, _ := ret[0].(error)
|
||||||
return ret0
|
return ret0
|
||||||
}
|
}
|
||||||
|
|
||||||
// WorkerSetClusters indicates an expected call of WorkerSetClusters.
|
// WorkerSetTags indicates an expected call of WorkerSetTags.
|
||||||
func (mr *MockPersistenceServiceMockRecorder) WorkerSetClusters(arg0, arg1, arg2 interface{}) *gomock.Call {
|
func (mr *MockPersistenceServiceMockRecorder) WorkerSetTags(arg0, arg1, arg2 interface{}) *gomock.Call {
|
||||||
mr.mock.ctrl.T.Helper()
|
mr.mock.ctrl.T.Helper()
|
||||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkerSetClusters", reflect.TypeOf((*MockPersistenceService)(nil).WorkerSetClusters), arg0, arg1, arg2)
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkerSetTags", reflect.TypeOf((*MockPersistenceService)(nil).WorkerSetTags), arg0, arg1, arg2)
|
||||||
}
|
}
|
||||||
|
|
||||||
// WorkersLeftToRun mocks base method.
|
// WorkersLeftToRun mocks base method.
|
||||||
|
230
internal/worker/mocks/client.gen.go
generated
230
internal/worker/mocks/client.gen.go
generated
@ -116,44 +116,44 @@ func (mr *MockFlamencoClientMockRecorder) CheckSharedStoragePathWithResponse(arg
|
|||||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CheckSharedStoragePathWithResponse", reflect.TypeOf((*MockFlamencoClient)(nil).CheckSharedStoragePathWithResponse), varargs...)
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CheckSharedStoragePathWithResponse", reflect.TypeOf((*MockFlamencoClient)(nil).CheckSharedStoragePathWithResponse), varargs...)
|
||||||
}
|
}
|
||||||
|
|
||||||
// CreateWorkerClusterWithBodyWithResponse mocks base method.
|
// CreateWorkerTagWithBodyWithResponse mocks base method.
|
||||||
func (m *MockFlamencoClient) CreateWorkerClusterWithBodyWithResponse(arg0 context.Context, arg1 string, arg2 io.Reader, arg3 ...api.RequestEditorFn) (*api.CreateWorkerClusterResponse, error) {
|
func (m *MockFlamencoClient) CreateWorkerTagWithBodyWithResponse(arg0 context.Context, arg1 string, arg2 io.Reader, arg3 ...api.RequestEditorFn) (*api.CreateWorkerTagResponse, error) {
|
||||||
m.ctrl.T.Helper()
|
m.ctrl.T.Helper()
|
||||||
varargs := []interface{}{arg0, arg1, arg2}
|
varargs := []interface{}{arg0, arg1, arg2}
|
||||||
for _, a := range arg3 {
|
for _, a := range arg3 {
|
||||||
varargs = append(varargs, a)
|
varargs = append(varargs, a)
|
||||||
}
|
}
|
||||||
ret := m.ctrl.Call(m, "CreateWorkerClusterWithBodyWithResponse", varargs...)
|
ret := m.ctrl.Call(m, "CreateWorkerTagWithBodyWithResponse", varargs...)
|
||||||
ret0, _ := ret[0].(*api.CreateWorkerClusterResponse)
|
ret0, _ := ret[0].(*api.CreateWorkerTagResponse)
|
||||||
ret1, _ := ret[1].(error)
|
ret1, _ := ret[1].(error)
|
||||||
return ret0, ret1
|
return ret0, ret1
|
||||||
}
|
}
|
||||||
|
|
||||||
// CreateWorkerClusterWithBodyWithResponse indicates an expected call of CreateWorkerClusterWithBodyWithResponse.
|
// CreateWorkerTagWithBodyWithResponse indicates an expected call of CreateWorkerTagWithBodyWithResponse.
|
||||||
func (mr *MockFlamencoClientMockRecorder) CreateWorkerClusterWithBodyWithResponse(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call {
|
func (mr *MockFlamencoClientMockRecorder) CreateWorkerTagWithBodyWithResponse(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call {
|
||||||
mr.mock.ctrl.T.Helper()
|
mr.mock.ctrl.T.Helper()
|
||||||
varargs := append([]interface{}{arg0, arg1, arg2}, arg3...)
|
varargs := append([]interface{}{arg0, arg1, arg2}, arg3...)
|
||||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateWorkerClusterWithBodyWithResponse", reflect.TypeOf((*MockFlamencoClient)(nil).CreateWorkerClusterWithBodyWithResponse), varargs...)
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateWorkerTagWithBodyWithResponse", reflect.TypeOf((*MockFlamencoClient)(nil).CreateWorkerTagWithBodyWithResponse), varargs...)
|
||||||
}
|
}
|
||||||
|
|
||||||
// CreateWorkerClusterWithResponse mocks base method.
|
// CreateWorkerTagWithResponse mocks base method.
|
||||||
func (m *MockFlamencoClient) CreateWorkerClusterWithResponse(arg0 context.Context, arg1 api.CreateWorkerClusterJSONRequestBody, arg2 ...api.RequestEditorFn) (*api.CreateWorkerClusterResponse, error) {
|
func (m *MockFlamencoClient) CreateWorkerTagWithResponse(arg0 context.Context, arg1 api.CreateWorkerTagJSONRequestBody, arg2 ...api.RequestEditorFn) (*api.CreateWorkerTagResponse, error) {
|
||||||
m.ctrl.T.Helper()
|
m.ctrl.T.Helper()
|
||||||
varargs := []interface{}{arg0, arg1}
|
varargs := []interface{}{arg0, arg1}
|
||||||
for _, a := range arg2 {
|
for _, a := range arg2 {
|
||||||
varargs = append(varargs, a)
|
varargs = append(varargs, a)
|
||||||
}
|
}
|
||||||
ret := m.ctrl.Call(m, "CreateWorkerClusterWithResponse", varargs...)
|
ret := m.ctrl.Call(m, "CreateWorkerTagWithResponse", varargs...)
|
||||||
ret0, _ := ret[0].(*api.CreateWorkerClusterResponse)
|
ret0, _ := ret[0].(*api.CreateWorkerTagResponse)
|
||||||
ret1, _ := ret[1].(error)
|
ret1, _ := ret[1].(error)
|
||||||
return ret0, ret1
|
return ret0, ret1
|
||||||
}
|
}
|
||||||
|
|
||||||
// CreateWorkerClusterWithResponse indicates an expected call of CreateWorkerClusterWithResponse.
|
// CreateWorkerTagWithResponse indicates an expected call of CreateWorkerTagWithResponse.
|
||||||
func (mr *MockFlamencoClientMockRecorder) CreateWorkerClusterWithResponse(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
|
func (mr *MockFlamencoClientMockRecorder) CreateWorkerTagWithResponse(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
|
||||||
mr.mock.ctrl.T.Helper()
|
mr.mock.ctrl.T.Helper()
|
||||||
varargs := append([]interface{}{arg0, arg1}, arg2...)
|
varargs := append([]interface{}{arg0, arg1}, arg2...)
|
||||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateWorkerClusterWithResponse", reflect.TypeOf((*MockFlamencoClient)(nil).CreateWorkerClusterWithResponse), varargs...)
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateWorkerTagWithResponse", reflect.TypeOf((*MockFlamencoClient)(nil).CreateWorkerTagWithResponse), varargs...)
|
||||||
}
|
}
|
||||||
|
|
||||||
// DeleteJobWhatWouldItDoWithResponse mocks base method.
|
// DeleteJobWhatWouldItDoWithResponse mocks base method.
|
||||||
@ -196,24 +196,24 @@ func (mr *MockFlamencoClientMockRecorder) DeleteJobWithResponse(arg0, arg1 inter
|
|||||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteJobWithResponse", reflect.TypeOf((*MockFlamencoClient)(nil).DeleteJobWithResponse), varargs...)
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteJobWithResponse", reflect.TypeOf((*MockFlamencoClient)(nil).DeleteJobWithResponse), varargs...)
|
||||||
}
|
}
|
||||||
|
|
||||||
// DeleteWorkerClusterWithResponse mocks base method.
|
// DeleteWorkerTagWithResponse mocks base method.
|
||||||
func (m *MockFlamencoClient) DeleteWorkerClusterWithResponse(arg0 context.Context, arg1 string, arg2 ...api.RequestEditorFn) (*api.DeleteWorkerClusterResponse, error) {
|
func (m *MockFlamencoClient) DeleteWorkerTagWithResponse(arg0 context.Context, arg1 string, arg2 ...api.RequestEditorFn) (*api.DeleteWorkerTagResponse, error) {
|
||||||
m.ctrl.T.Helper()
|
m.ctrl.T.Helper()
|
||||||
varargs := []interface{}{arg0, arg1}
|
varargs := []interface{}{arg0, arg1}
|
||||||
for _, a := range arg2 {
|
for _, a := range arg2 {
|
||||||
varargs = append(varargs, a)
|
varargs = append(varargs, a)
|
||||||
}
|
}
|
||||||
ret := m.ctrl.Call(m, "DeleteWorkerClusterWithResponse", varargs...)
|
ret := m.ctrl.Call(m, "DeleteWorkerTagWithResponse", varargs...)
|
||||||
ret0, _ := ret[0].(*api.DeleteWorkerClusterResponse)
|
ret0, _ := ret[0].(*api.DeleteWorkerTagResponse)
|
||||||
ret1, _ := ret[1].(error)
|
ret1, _ := ret[1].(error)
|
||||||
return ret0, ret1
|
return ret0, ret1
|
||||||
}
|
}
|
||||||
|
|
||||||
// DeleteWorkerClusterWithResponse indicates an expected call of DeleteWorkerClusterWithResponse.
|
// DeleteWorkerTagWithResponse indicates an expected call of DeleteWorkerTagWithResponse.
|
||||||
func (mr *MockFlamencoClientMockRecorder) DeleteWorkerClusterWithResponse(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
|
func (mr *MockFlamencoClientMockRecorder) DeleteWorkerTagWithResponse(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
|
||||||
mr.mock.ctrl.T.Helper()
|
mr.mock.ctrl.T.Helper()
|
||||||
varargs := append([]interface{}{arg0, arg1}, arg2...)
|
varargs := append([]interface{}{arg0, arg1}, arg2...)
|
||||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteWorkerClusterWithResponse", reflect.TypeOf((*MockFlamencoClient)(nil).DeleteWorkerClusterWithResponse), varargs...)
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteWorkerTagWithResponse", reflect.TypeOf((*MockFlamencoClient)(nil).DeleteWorkerTagWithResponse), varargs...)
|
||||||
}
|
}
|
||||||
|
|
||||||
// DeleteWorkerWithResponse mocks base method.
|
// DeleteWorkerWithResponse mocks base method.
|
||||||
@ -396,46 +396,6 @@ func (mr *MockFlamencoClientMockRecorder) FetchTaskWithResponse(arg0, arg1 inter
|
|||||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchTaskWithResponse", reflect.TypeOf((*MockFlamencoClient)(nil).FetchTaskWithResponse), varargs...)
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchTaskWithResponse", reflect.TypeOf((*MockFlamencoClient)(nil).FetchTaskWithResponse), varargs...)
|
||||||
}
|
}
|
||||||
|
|
||||||
// FetchWorkerClusterWithResponse mocks base method.
|
|
||||||
func (m *MockFlamencoClient) FetchWorkerClusterWithResponse(arg0 context.Context, arg1 string, arg2 ...api.RequestEditorFn) (*api.FetchWorkerClusterResponse, error) {
|
|
||||||
m.ctrl.T.Helper()
|
|
||||||
varargs := []interface{}{arg0, arg1}
|
|
||||||
for _, a := range arg2 {
|
|
||||||
varargs = append(varargs, a)
|
|
||||||
}
|
|
||||||
ret := m.ctrl.Call(m, "FetchWorkerClusterWithResponse", varargs...)
|
|
||||||
ret0, _ := ret[0].(*api.FetchWorkerClusterResponse)
|
|
||||||
ret1, _ := ret[1].(error)
|
|
||||||
return ret0, ret1
|
|
||||||
}
|
|
||||||
|
|
||||||
// FetchWorkerClusterWithResponse indicates an expected call of FetchWorkerClusterWithResponse.
|
|
||||||
func (mr *MockFlamencoClientMockRecorder) FetchWorkerClusterWithResponse(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, "FetchWorkerClusterWithResponse", reflect.TypeOf((*MockFlamencoClient)(nil).FetchWorkerClusterWithResponse), varargs...)
|
|
||||||
}
|
|
||||||
|
|
||||||
// FetchWorkerClustersWithResponse mocks base method.
|
|
||||||
func (m *MockFlamencoClient) FetchWorkerClustersWithResponse(arg0 context.Context, arg1 ...api.RequestEditorFn) (*api.FetchWorkerClustersResponse, error) {
|
|
||||||
m.ctrl.T.Helper()
|
|
||||||
varargs := []interface{}{arg0}
|
|
||||||
for _, a := range arg1 {
|
|
||||||
varargs = append(varargs, a)
|
|
||||||
}
|
|
||||||
ret := m.ctrl.Call(m, "FetchWorkerClustersWithResponse", varargs...)
|
|
||||||
ret0, _ := ret[0].(*api.FetchWorkerClustersResponse)
|
|
||||||
ret1, _ := ret[1].(error)
|
|
||||||
return ret0, ret1
|
|
||||||
}
|
|
||||||
|
|
||||||
// FetchWorkerClustersWithResponse indicates an expected call of FetchWorkerClustersWithResponse.
|
|
||||||
func (mr *MockFlamencoClientMockRecorder) FetchWorkerClustersWithResponse(arg0 interface{}, arg1 ...interface{}) *gomock.Call {
|
|
||||||
mr.mock.ctrl.T.Helper()
|
|
||||||
varargs := append([]interface{}{arg0}, arg1...)
|
|
||||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchWorkerClustersWithResponse", reflect.TypeOf((*MockFlamencoClient)(nil).FetchWorkerClustersWithResponse), varargs...)
|
|
||||||
}
|
|
||||||
|
|
||||||
// FetchWorkerSleepScheduleWithResponse mocks base method.
|
// FetchWorkerSleepScheduleWithResponse mocks base method.
|
||||||
func (m *MockFlamencoClient) FetchWorkerSleepScheduleWithResponse(arg0 context.Context, arg1 string, arg2 ...api.RequestEditorFn) (*api.FetchWorkerSleepScheduleResponse, error) {
|
func (m *MockFlamencoClient) FetchWorkerSleepScheduleWithResponse(arg0 context.Context, arg1 string, arg2 ...api.RequestEditorFn) (*api.FetchWorkerSleepScheduleResponse, error) {
|
||||||
m.ctrl.T.Helper()
|
m.ctrl.T.Helper()
|
||||||
@ -456,6 +416,46 @@ func (mr *MockFlamencoClientMockRecorder) FetchWorkerSleepScheduleWithResponse(a
|
|||||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchWorkerSleepScheduleWithResponse", reflect.TypeOf((*MockFlamencoClient)(nil).FetchWorkerSleepScheduleWithResponse), varargs...)
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchWorkerSleepScheduleWithResponse", reflect.TypeOf((*MockFlamencoClient)(nil).FetchWorkerSleepScheduleWithResponse), varargs...)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// FetchWorkerTagWithResponse mocks base method.
|
||||||
|
func (m *MockFlamencoClient) FetchWorkerTagWithResponse(arg0 context.Context, arg1 string, arg2 ...api.RequestEditorFn) (*api.FetchWorkerTagResponse, error) {
|
||||||
|
m.ctrl.T.Helper()
|
||||||
|
varargs := []interface{}{arg0, arg1}
|
||||||
|
for _, a := range arg2 {
|
||||||
|
varargs = append(varargs, a)
|
||||||
|
}
|
||||||
|
ret := m.ctrl.Call(m, "FetchWorkerTagWithResponse", varargs...)
|
||||||
|
ret0, _ := ret[0].(*api.FetchWorkerTagResponse)
|
||||||
|
ret1, _ := ret[1].(error)
|
||||||
|
return ret0, ret1
|
||||||
|
}
|
||||||
|
|
||||||
|
// FetchWorkerTagWithResponse indicates an expected call of FetchWorkerTagWithResponse.
|
||||||
|
func (mr *MockFlamencoClientMockRecorder) FetchWorkerTagWithResponse(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, "FetchWorkerTagWithResponse", reflect.TypeOf((*MockFlamencoClient)(nil).FetchWorkerTagWithResponse), varargs...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// FetchWorkerTagsWithResponse mocks base method.
|
||||||
|
func (m *MockFlamencoClient) FetchWorkerTagsWithResponse(arg0 context.Context, arg1 ...api.RequestEditorFn) (*api.FetchWorkerTagsResponse, error) {
|
||||||
|
m.ctrl.T.Helper()
|
||||||
|
varargs := []interface{}{arg0}
|
||||||
|
for _, a := range arg1 {
|
||||||
|
varargs = append(varargs, a)
|
||||||
|
}
|
||||||
|
ret := m.ctrl.Call(m, "FetchWorkerTagsWithResponse", varargs...)
|
||||||
|
ret0, _ := ret[0].(*api.FetchWorkerTagsResponse)
|
||||||
|
ret1, _ := ret[1].(error)
|
||||||
|
return ret0, ret1
|
||||||
|
}
|
||||||
|
|
||||||
|
// FetchWorkerTagsWithResponse indicates an expected call of FetchWorkerTagsWithResponse.
|
||||||
|
func (mr *MockFlamencoClientMockRecorder) FetchWorkerTagsWithResponse(arg0 interface{}, arg1 ...interface{}) *gomock.Call {
|
||||||
|
mr.mock.ctrl.T.Helper()
|
||||||
|
varargs := append([]interface{}{arg0}, arg1...)
|
||||||
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchWorkerTagsWithResponse", reflect.TypeOf((*MockFlamencoClient)(nil).FetchWorkerTagsWithResponse), varargs...)
|
||||||
|
}
|
||||||
|
|
||||||
// FetchWorkerWithResponse mocks base method.
|
// FetchWorkerWithResponse mocks base method.
|
||||||
func (m *MockFlamencoClient) FetchWorkerWithResponse(arg0 context.Context, arg1 string, arg2 ...api.RequestEditorFn) (*api.FetchWorkerResponse, error) {
|
func (m *MockFlamencoClient) FetchWorkerWithResponse(arg0 context.Context, arg1 string, arg2 ...api.RequestEditorFn) (*api.FetchWorkerResponse, error) {
|
||||||
m.ctrl.T.Helper()
|
m.ctrl.T.Helper()
|
||||||
@ -1016,46 +1016,6 @@ func (mr *MockFlamencoClientMockRecorder) SetTaskStatusWithResponse(arg0, arg1,
|
|||||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetTaskStatusWithResponse", reflect.TypeOf((*MockFlamencoClient)(nil).SetTaskStatusWithResponse), varargs...)
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetTaskStatusWithResponse", reflect.TypeOf((*MockFlamencoClient)(nil).SetTaskStatusWithResponse), varargs...)
|
||||||
}
|
}
|
||||||
|
|
||||||
// SetWorkerClustersWithBodyWithResponse mocks base method.
|
|
||||||
func (m *MockFlamencoClient) SetWorkerClustersWithBodyWithResponse(arg0 context.Context, arg1, arg2 string, arg3 io.Reader, arg4 ...api.RequestEditorFn) (*api.SetWorkerClustersResponse, error) {
|
|
||||||
m.ctrl.T.Helper()
|
|
||||||
varargs := []interface{}{arg0, arg1, arg2, arg3}
|
|
||||||
for _, a := range arg4 {
|
|
||||||
varargs = append(varargs, a)
|
|
||||||
}
|
|
||||||
ret := m.ctrl.Call(m, "SetWorkerClustersWithBodyWithResponse", varargs...)
|
|
||||||
ret0, _ := ret[0].(*api.SetWorkerClustersResponse)
|
|
||||||
ret1, _ := ret[1].(error)
|
|
||||||
return ret0, ret1
|
|
||||||
}
|
|
||||||
|
|
||||||
// SetWorkerClustersWithBodyWithResponse indicates an expected call of SetWorkerClustersWithBodyWithResponse.
|
|
||||||
func (mr *MockFlamencoClientMockRecorder) SetWorkerClustersWithBodyWithResponse(arg0, arg1, arg2, arg3 interface{}, arg4 ...interface{}) *gomock.Call {
|
|
||||||
mr.mock.ctrl.T.Helper()
|
|
||||||
varargs := append([]interface{}{arg0, arg1, arg2, arg3}, arg4...)
|
|
||||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetWorkerClustersWithBodyWithResponse", reflect.TypeOf((*MockFlamencoClient)(nil).SetWorkerClustersWithBodyWithResponse), varargs...)
|
|
||||||
}
|
|
||||||
|
|
||||||
// SetWorkerClustersWithResponse mocks base method.
|
|
||||||
func (m *MockFlamencoClient) SetWorkerClustersWithResponse(arg0 context.Context, arg1 string, arg2 api.SetWorkerClustersJSONRequestBody, arg3 ...api.RequestEditorFn) (*api.SetWorkerClustersResponse, error) {
|
|
||||||
m.ctrl.T.Helper()
|
|
||||||
varargs := []interface{}{arg0, arg1, arg2}
|
|
||||||
for _, a := range arg3 {
|
|
||||||
varargs = append(varargs, a)
|
|
||||||
}
|
|
||||||
ret := m.ctrl.Call(m, "SetWorkerClustersWithResponse", varargs...)
|
|
||||||
ret0, _ := ret[0].(*api.SetWorkerClustersResponse)
|
|
||||||
ret1, _ := ret[1].(error)
|
|
||||||
return ret0, ret1
|
|
||||||
}
|
|
||||||
|
|
||||||
// SetWorkerClustersWithResponse indicates an expected call of SetWorkerClustersWithResponse.
|
|
||||||
func (mr *MockFlamencoClientMockRecorder) SetWorkerClustersWithResponse(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call {
|
|
||||||
mr.mock.ctrl.T.Helper()
|
|
||||||
varargs := append([]interface{}{arg0, arg1, arg2}, arg3...)
|
|
||||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetWorkerClustersWithResponse", reflect.TypeOf((*MockFlamencoClient)(nil).SetWorkerClustersWithResponse), varargs...)
|
|
||||||
}
|
|
||||||
|
|
||||||
// SetWorkerSleepScheduleWithBodyWithResponse mocks base method.
|
// SetWorkerSleepScheduleWithBodyWithResponse mocks base method.
|
||||||
func (m *MockFlamencoClient) SetWorkerSleepScheduleWithBodyWithResponse(arg0 context.Context, arg1, arg2 string, arg3 io.Reader, arg4 ...api.RequestEditorFn) (*api.SetWorkerSleepScheduleResponse, error) {
|
func (m *MockFlamencoClient) SetWorkerSleepScheduleWithBodyWithResponse(arg0 context.Context, arg1, arg2 string, arg3 io.Reader, arg4 ...api.RequestEditorFn) (*api.SetWorkerSleepScheduleResponse, error) {
|
||||||
m.ctrl.T.Helper()
|
m.ctrl.T.Helper()
|
||||||
@ -1096,6 +1056,46 @@ func (mr *MockFlamencoClientMockRecorder) SetWorkerSleepScheduleWithResponse(arg
|
|||||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetWorkerSleepScheduleWithResponse", reflect.TypeOf((*MockFlamencoClient)(nil).SetWorkerSleepScheduleWithResponse), varargs...)
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetWorkerSleepScheduleWithResponse", reflect.TypeOf((*MockFlamencoClient)(nil).SetWorkerSleepScheduleWithResponse), varargs...)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// SetWorkerTagsWithBodyWithResponse mocks base method.
|
||||||
|
func (m *MockFlamencoClient) SetWorkerTagsWithBodyWithResponse(arg0 context.Context, arg1, arg2 string, arg3 io.Reader, arg4 ...api.RequestEditorFn) (*api.SetWorkerTagsResponse, error) {
|
||||||
|
m.ctrl.T.Helper()
|
||||||
|
varargs := []interface{}{arg0, arg1, arg2, arg3}
|
||||||
|
for _, a := range arg4 {
|
||||||
|
varargs = append(varargs, a)
|
||||||
|
}
|
||||||
|
ret := m.ctrl.Call(m, "SetWorkerTagsWithBodyWithResponse", varargs...)
|
||||||
|
ret0, _ := ret[0].(*api.SetWorkerTagsResponse)
|
||||||
|
ret1, _ := ret[1].(error)
|
||||||
|
return ret0, ret1
|
||||||
|
}
|
||||||
|
|
||||||
|
// SetWorkerTagsWithBodyWithResponse indicates an expected call of SetWorkerTagsWithBodyWithResponse.
|
||||||
|
func (mr *MockFlamencoClientMockRecorder) SetWorkerTagsWithBodyWithResponse(arg0, arg1, arg2, arg3 interface{}, arg4 ...interface{}) *gomock.Call {
|
||||||
|
mr.mock.ctrl.T.Helper()
|
||||||
|
varargs := append([]interface{}{arg0, arg1, arg2, arg3}, arg4...)
|
||||||
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetWorkerTagsWithBodyWithResponse", reflect.TypeOf((*MockFlamencoClient)(nil).SetWorkerTagsWithBodyWithResponse), varargs...)
|
||||||
|
}
|
||||||
|
|
||||||
|
// SetWorkerTagsWithResponse mocks base method.
|
||||||
|
func (m *MockFlamencoClient) SetWorkerTagsWithResponse(arg0 context.Context, arg1 string, arg2 api.SetWorkerTagsJSONRequestBody, arg3 ...api.RequestEditorFn) (*api.SetWorkerTagsResponse, error) {
|
||||||
|
m.ctrl.T.Helper()
|
||||||
|
varargs := []interface{}{arg0, arg1, arg2}
|
||||||
|
for _, a := range arg3 {
|
||||||
|
varargs = append(varargs, a)
|
||||||
|
}
|
||||||
|
ret := m.ctrl.Call(m, "SetWorkerTagsWithResponse", varargs...)
|
||||||
|
ret0, _ := ret[0].(*api.SetWorkerTagsResponse)
|
||||||
|
ret1, _ := ret[1].(error)
|
||||||
|
return ret0, ret1
|
||||||
|
}
|
||||||
|
|
||||||
|
// SetWorkerTagsWithResponse indicates an expected call of SetWorkerTagsWithResponse.
|
||||||
|
func (mr *MockFlamencoClientMockRecorder) SetWorkerTagsWithResponse(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call {
|
||||||
|
mr.mock.ctrl.T.Helper()
|
||||||
|
varargs := append([]interface{}{arg0, arg1, arg2}, arg3...)
|
||||||
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetWorkerTagsWithResponse", reflect.TypeOf((*MockFlamencoClient)(nil).SetWorkerTagsWithResponse), varargs...)
|
||||||
|
}
|
||||||
|
|
||||||
// ShamanCheckoutRequirementsWithBodyWithResponse mocks base method.
|
// ShamanCheckoutRequirementsWithBodyWithResponse mocks base method.
|
||||||
func (m *MockFlamencoClient) ShamanCheckoutRequirementsWithBodyWithResponse(arg0 context.Context, arg1 string, arg2 io.Reader, arg3 ...api.RequestEditorFn) (*api.ShamanCheckoutRequirementsResponse, error) {
|
func (m *MockFlamencoClient) ShamanCheckoutRequirementsWithBodyWithResponse(arg0 context.Context, arg1 string, arg2 io.Reader, arg3 ...api.RequestEditorFn) (*api.ShamanCheckoutRequirementsResponse, error) {
|
||||||
m.ctrl.T.Helper()
|
m.ctrl.T.Helper()
|
||||||
@ -1416,44 +1416,44 @@ func (mr *MockFlamencoClientMockRecorder) TaskUpdateWithResponse(arg0, arg1, arg
|
|||||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TaskUpdateWithResponse", reflect.TypeOf((*MockFlamencoClient)(nil).TaskUpdateWithResponse), varargs...)
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TaskUpdateWithResponse", reflect.TypeOf((*MockFlamencoClient)(nil).TaskUpdateWithResponse), varargs...)
|
||||||
}
|
}
|
||||||
|
|
||||||
// UpdateWorkerClusterWithBodyWithResponse mocks base method.
|
// UpdateWorkerTagWithBodyWithResponse mocks base method.
|
||||||
func (m *MockFlamencoClient) UpdateWorkerClusterWithBodyWithResponse(arg0 context.Context, arg1, arg2 string, arg3 io.Reader, arg4 ...api.RequestEditorFn) (*api.UpdateWorkerClusterResponse, error) {
|
func (m *MockFlamencoClient) UpdateWorkerTagWithBodyWithResponse(arg0 context.Context, arg1, arg2 string, arg3 io.Reader, arg4 ...api.RequestEditorFn) (*api.UpdateWorkerTagResponse, error) {
|
||||||
m.ctrl.T.Helper()
|
m.ctrl.T.Helper()
|
||||||
varargs := []interface{}{arg0, arg1, arg2, arg3}
|
varargs := []interface{}{arg0, arg1, arg2, arg3}
|
||||||
for _, a := range arg4 {
|
for _, a := range arg4 {
|
||||||
varargs = append(varargs, a)
|
varargs = append(varargs, a)
|
||||||
}
|
}
|
||||||
ret := m.ctrl.Call(m, "UpdateWorkerClusterWithBodyWithResponse", varargs...)
|
ret := m.ctrl.Call(m, "UpdateWorkerTagWithBodyWithResponse", varargs...)
|
||||||
ret0, _ := ret[0].(*api.UpdateWorkerClusterResponse)
|
ret0, _ := ret[0].(*api.UpdateWorkerTagResponse)
|
||||||
ret1, _ := ret[1].(error)
|
ret1, _ := ret[1].(error)
|
||||||
return ret0, ret1
|
return ret0, ret1
|
||||||
}
|
}
|
||||||
|
|
||||||
// UpdateWorkerClusterWithBodyWithResponse indicates an expected call of UpdateWorkerClusterWithBodyWithResponse.
|
// UpdateWorkerTagWithBodyWithResponse indicates an expected call of UpdateWorkerTagWithBodyWithResponse.
|
||||||
func (mr *MockFlamencoClientMockRecorder) UpdateWorkerClusterWithBodyWithResponse(arg0, arg1, arg2, arg3 interface{}, arg4 ...interface{}) *gomock.Call {
|
func (mr *MockFlamencoClientMockRecorder) UpdateWorkerTagWithBodyWithResponse(arg0, arg1, arg2, arg3 interface{}, arg4 ...interface{}) *gomock.Call {
|
||||||
mr.mock.ctrl.T.Helper()
|
mr.mock.ctrl.T.Helper()
|
||||||
varargs := append([]interface{}{arg0, arg1, arg2, arg3}, arg4...)
|
varargs := append([]interface{}{arg0, arg1, arg2, arg3}, arg4...)
|
||||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateWorkerClusterWithBodyWithResponse", reflect.TypeOf((*MockFlamencoClient)(nil).UpdateWorkerClusterWithBodyWithResponse), varargs...)
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateWorkerTagWithBodyWithResponse", reflect.TypeOf((*MockFlamencoClient)(nil).UpdateWorkerTagWithBodyWithResponse), varargs...)
|
||||||
}
|
}
|
||||||
|
|
||||||
// UpdateWorkerClusterWithResponse mocks base method.
|
// UpdateWorkerTagWithResponse mocks base method.
|
||||||
func (m *MockFlamencoClient) UpdateWorkerClusterWithResponse(arg0 context.Context, arg1 string, arg2 api.UpdateWorkerClusterJSONRequestBody, arg3 ...api.RequestEditorFn) (*api.UpdateWorkerClusterResponse, error) {
|
func (m *MockFlamencoClient) UpdateWorkerTagWithResponse(arg0 context.Context, arg1 string, arg2 api.UpdateWorkerTagJSONRequestBody, arg3 ...api.RequestEditorFn) (*api.UpdateWorkerTagResponse, error) {
|
||||||
m.ctrl.T.Helper()
|
m.ctrl.T.Helper()
|
||||||
varargs := []interface{}{arg0, arg1, arg2}
|
varargs := []interface{}{arg0, arg1, arg2}
|
||||||
for _, a := range arg3 {
|
for _, a := range arg3 {
|
||||||
varargs = append(varargs, a)
|
varargs = append(varargs, a)
|
||||||
}
|
}
|
||||||
ret := m.ctrl.Call(m, "UpdateWorkerClusterWithResponse", varargs...)
|
ret := m.ctrl.Call(m, "UpdateWorkerTagWithResponse", varargs...)
|
||||||
ret0, _ := ret[0].(*api.UpdateWorkerClusterResponse)
|
ret0, _ := ret[0].(*api.UpdateWorkerTagResponse)
|
||||||
ret1, _ := ret[1].(error)
|
ret1, _ := ret[1].(error)
|
||||||
return ret0, ret1
|
return ret0, ret1
|
||||||
}
|
}
|
||||||
|
|
||||||
// UpdateWorkerClusterWithResponse indicates an expected call of UpdateWorkerClusterWithResponse.
|
// UpdateWorkerTagWithResponse indicates an expected call of UpdateWorkerTagWithResponse.
|
||||||
func (mr *MockFlamencoClientMockRecorder) UpdateWorkerClusterWithResponse(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call {
|
func (mr *MockFlamencoClientMockRecorder) UpdateWorkerTagWithResponse(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call {
|
||||||
mr.mock.ctrl.T.Helper()
|
mr.mock.ctrl.T.Helper()
|
||||||
varargs := append([]interface{}{arg0, arg1, arg2}, arg3...)
|
varargs := append([]interface{}{arg0, arg1, arg2}, arg3...)
|
||||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateWorkerClusterWithResponse", reflect.TypeOf((*MockFlamencoClient)(nil).UpdateWorkerClusterWithResponse), varargs...)
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateWorkerTagWithResponse", reflect.TypeOf((*MockFlamencoClient)(nil).UpdateWorkerTagWithResponse), varargs...)
|
||||||
}
|
}
|
||||||
|
|
||||||
// WorkerStateChangedWithBodyWithResponse mocks base method.
|
// WorkerStateChangedWithBodyWithResponse mocks base method.
|
||||||
|
500
pkg/api/openapi_client.gen.go
generated
500
pkg/api/openapi_client.gen.go
generated
@ -212,24 +212,24 @@ type ClientInterface interface {
|
|||||||
// GetVersion request
|
// GetVersion request
|
||||||
GetVersion(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
|
GetVersion(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
|
||||||
|
|
||||||
// DeleteWorkerCluster request
|
// DeleteWorkerTag request
|
||||||
DeleteWorkerCluster(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
DeleteWorkerTag(ctx context.Context, tagId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
||||||
|
|
||||||
// FetchWorkerCluster request
|
// FetchWorkerTag request
|
||||||
FetchWorkerCluster(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
FetchWorkerTag(ctx context.Context, tagId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
||||||
|
|
||||||
// UpdateWorkerCluster request with any body
|
// UpdateWorkerTag request with any body
|
||||||
UpdateWorkerClusterWithBody(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
UpdateWorkerTagWithBody(ctx context.Context, tagId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
||||||
|
|
||||||
UpdateWorkerCluster(ctx context.Context, clusterId string, body UpdateWorkerClusterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
UpdateWorkerTag(ctx context.Context, tagId string, body UpdateWorkerTagJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
||||||
|
|
||||||
// FetchWorkerClusters request
|
// FetchWorkerTags request
|
||||||
FetchWorkerClusters(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
|
FetchWorkerTags(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
|
||||||
|
|
||||||
// CreateWorkerCluster request with any body
|
// CreateWorkerTag request with any body
|
||||||
CreateWorkerClusterWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
CreateWorkerTagWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
||||||
|
|
||||||
CreateWorkerCluster(ctx context.Context, body CreateWorkerClusterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
CreateWorkerTag(ctx context.Context, body CreateWorkerTagJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
||||||
|
|
||||||
// FetchWorkers request
|
// FetchWorkers request
|
||||||
FetchWorkers(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
|
FetchWorkers(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
|
||||||
@ -240,16 +240,16 @@ type ClientInterface interface {
|
|||||||
// FetchWorker request
|
// FetchWorker request
|
||||||
FetchWorker(ctx context.Context, workerId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
FetchWorker(ctx context.Context, workerId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
||||||
|
|
||||||
// SetWorkerClusters request with any body
|
|
||||||
SetWorkerClustersWithBody(ctx context.Context, workerId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
||||||
|
|
||||||
SetWorkerClusters(ctx context.Context, workerId string, body SetWorkerClustersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
||||||
|
|
||||||
// RequestWorkerStatusChange request with any body
|
// RequestWorkerStatusChange request with any body
|
||||||
RequestWorkerStatusChangeWithBody(ctx context.Context, workerId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
RequestWorkerStatusChangeWithBody(ctx context.Context, workerId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
||||||
|
|
||||||
RequestWorkerStatusChange(ctx context.Context, workerId string, body RequestWorkerStatusChangeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
RequestWorkerStatusChange(ctx context.Context, workerId string, body RequestWorkerStatusChangeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
||||||
|
|
||||||
|
// SetWorkerTags request with any body
|
||||||
|
SetWorkerTagsWithBody(ctx context.Context, workerId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
||||||
|
|
||||||
|
SetWorkerTags(ctx context.Context, workerId string, body SetWorkerTagsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
||||||
|
|
||||||
// FetchWorkerSleepSchedule request
|
// FetchWorkerSleepSchedule request
|
||||||
FetchWorkerSleepSchedule(ctx context.Context, workerId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
FetchWorkerSleepSchedule(ctx context.Context, workerId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
||||||
|
|
||||||
@ -822,8 +822,8 @@ func (c *Client) GetVersion(ctx context.Context, reqEditors ...RequestEditorFn)
|
|||||||
return c.Client.Do(req)
|
return c.Client.Do(req)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *Client) DeleteWorkerCluster(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
func (c *Client) DeleteWorkerTag(ctx context.Context, tagId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
||||||
req, err := NewDeleteWorkerClusterRequest(c.Server, clusterId)
|
req, err := NewDeleteWorkerTagRequest(c.Server, tagId)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
@ -834,8 +834,8 @@ func (c *Client) DeleteWorkerCluster(ctx context.Context, clusterId string, reqE
|
|||||||
return c.Client.Do(req)
|
return c.Client.Do(req)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *Client) FetchWorkerCluster(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
func (c *Client) FetchWorkerTag(ctx context.Context, tagId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
||||||
req, err := NewFetchWorkerClusterRequest(c.Server, clusterId)
|
req, err := NewFetchWorkerTagRequest(c.Server, tagId)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
@ -846,8 +846,8 @@ func (c *Client) FetchWorkerCluster(ctx context.Context, clusterId string, reqEd
|
|||||||
return c.Client.Do(req)
|
return c.Client.Do(req)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *Client) UpdateWorkerClusterWithBody(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
func (c *Client) UpdateWorkerTagWithBody(ctx context.Context, tagId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
||||||
req, err := NewUpdateWorkerClusterRequestWithBody(c.Server, clusterId, contentType, body)
|
req, err := NewUpdateWorkerTagRequestWithBody(c.Server, tagId, contentType, body)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
@ -858,8 +858,8 @@ func (c *Client) UpdateWorkerClusterWithBody(ctx context.Context, clusterId stri
|
|||||||
return c.Client.Do(req)
|
return c.Client.Do(req)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *Client) UpdateWorkerCluster(ctx context.Context, clusterId string, body UpdateWorkerClusterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
func (c *Client) UpdateWorkerTag(ctx context.Context, tagId string, body UpdateWorkerTagJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
||||||
req, err := NewUpdateWorkerClusterRequest(c.Server, clusterId, body)
|
req, err := NewUpdateWorkerTagRequest(c.Server, tagId, body)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
@ -870,8 +870,8 @@ func (c *Client) UpdateWorkerCluster(ctx context.Context, clusterId string, body
|
|||||||
return c.Client.Do(req)
|
return c.Client.Do(req)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *Client) FetchWorkerClusters(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
func (c *Client) FetchWorkerTags(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
||||||
req, err := NewFetchWorkerClustersRequest(c.Server)
|
req, err := NewFetchWorkerTagsRequest(c.Server)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
@ -882,8 +882,8 @@ func (c *Client) FetchWorkerClusters(ctx context.Context, reqEditors ...RequestE
|
|||||||
return c.Client.Do(req)
|
return c.Client.Do(req)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *Client) CreateWorkerClusterWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
func (c *Client) CreateWorkerTagWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
||||||
req, err := NewCreateWorkerClusterRequestWithBody(c.Server, contentType, body)
|
req, err := NewCreateWorkerTagRequestWithBody(c.Server, contentType, body)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
@ -894,8 +894,8 @@ func (c *Client) CreateWorkerClusterWithBody(ctx context.Context, contentType st
|
|||||||
return c.Client.Do(req)
|
return c.Client.Do(req)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *Client) CreateWorkerCluster(ctx context.Context, body CreateWorkerClusterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
func (c *Client) CreateWorkerTag(ctx context.Context, body CreateWorkerTagJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
||||||
req, err := NewCreateWorkerClusterRequest(c.Server, body)
|
req, err := NewCreateWorkerTagRequest(c.Server, body)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
@ -942,30 +942,6 @@ func (c *Client) FetchWorker(ctx context.Context, workerId string, reqEditors ..
|
|||||||
return c.Client.Do(req)
|
return c.Client.Do(req)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *Client) SetWorkerClustersWithBody(ctx context.Context, workerId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
||||||
req, err := NewSetWorkerClustersRequestWithBody(c.Server, workerId, contentType, body)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
req = req.WithContext(ctx)
|
|
||||||
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
return c.Client.Do(req)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (c *Client) SetWorkerClusters(ctx context.Context, workerId string, body SetWorkerClustersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
||||||
req, err := NewSetWorkerClustersRequest(c.Server, workerId, body)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
req = req.WithContext(ctx)
|
|
||||||
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
return c.Client.Do(req)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (c *Client) RequestWorkerStatusChangeWithBody(ctx context.Context, workerId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
func (c *Client) RequestWorkerStatusChangeWithBody(ctx context.Context, workerId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
||||||
req, err := NewRequestWorkerStatusChangeRequestWithBody(c.Server, workerId, contentType, body)
|
req, err := NewRequestWorkerStatusChangeRequestWithBody(c.Server, workerId, contentType, body)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -990,6 +966,30 @@ func (c *Client) RequestWorkerStatusChange(ctx context.Context, workerId string,
|
|||||||
return c.Client.Do(req)
|
return c.Client.Do(req)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (c *Client) SetWorkerTagsWithBody(ctx context.Context, workerId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
||||||
|
req, err := NewSetWorkerTagsRequestWithBody(c.Server, workerId, contentType, body)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
req = req.WithContext(ctx)
|
||||||
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return c.Client.Do(req)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *Client) SetWorkerTags(ctx context.Context, workerId string, body SetWorkerTagsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
||||||
|
req, err := NewSetWorkerTagsRequest(c.Server, workerId, body)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
req = req.WithContext(ctx)
|
||||||
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return c.Client.Do(req)
|
||||||
|
}
|
||||||
|
|
||||||
func (c *Client) FetchWorkerSleepSchedule(ctx context.Context, workerId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
func (c *Client) FetchWorkerSleepSchedule(ctx context.Context, workerId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
||||||
req, err := NewFetchWorkerSleepScheduleRequest(c.Server, workerId)
|
req, err := NewFetchWorkerSleepScheduleRequest(c.Server, workerId)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -2380,13 +2380,13 @@ func NewGetVersionRequest(server string) (*http.Request, error) {
|
|||||||
return req, nil
|
return req, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewDeleteWorkerClusterRequest generates requests for DeleteWorkerCluster
|
// NewDeleteWorkerTagRequest generates requests for DeleteWorkerTag
|
||||||
func NewDeleteWorkerClusterRequest(server string, clusterId string) (*http.Request, error) {
|
func NewDeleteWorkerTagRequest(server string, tagId string) (*http.Request, error) {
|
||||||
var err error
|
var err error
|
||||||
|
|
||||||
var pathParam0 string
|
var pathParam0 string
|
||||||
|
|
||||||
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "cluster_id", runtime.ParamLocationPath, clusterId)
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "tag_id", runtime.ParamLocationPath, tagId)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
@ -2396,7 +2396,7 @@ func NewDeleteWorkerClusterRequest(server string, clusterId string) (*http.Reque
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
operationPath := fmt.Sprintf("/api/v3/worker-mgt/cluster/%s", pathParam0)
|
operationPath := fmt.Sprintf("/api/v3/worker-mgt/tag/%s", pathParam0)
|
||||||
if operationPath[0] == '/' {
|
if operationPath[0] == '/' {
|
||||||
operationPath = "." + operationPath
|
operationPath = "." + operationPath
|
||||||
}
|
}
|
||||||
@ -2414,13 +2414,13 @@ func NewDeleteWorkerClusterRequest(server string, clusterId string) (*http.Reque
|
|||||||
return req, nil
|
return req, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewFetchWorkerClusterRequest generates requests for FetchWorkerCluster
|
// NewFetchWorkerTagRequest generates requests for FetchWorkerTag
|
||||||
func NewFetchWorkerClusterRequest(server string, clusterId string) (*http.Request, error) {
|
func NewFetchWorkerTagRequest(server string, tagId string) (*http.Request, error) {
|
||||||
var err error
|
var err error
|
||||||
|
|
||||||
var pathParam0 string
|
var pathParam0 string
|
||||||
|
|
||||||
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "cluster_id", runtime.ParamLocationPath, clusterId)
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "tag_id", runtime.ParamLocationPath, tagId)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
@ -2430,7 +2430,7 @@ func NewFetchWorkerClusterRequest(server string, clusterId string) (*http.Reques
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
operationPath := fmt.Sprintf("/api/v3/worker-mgt/cluster/%s", pathParam0)
|
operationPath := fmt.Sprintf("/api/v3/worker-mgt/tag/%s", pathParam0)
|
||||||
if operationPath[0] == '/' {
|
if operationPath[0] == '/' {
|
||||||
operationPath = "." + operationPath
|
operationPath = "." + operationPath
|
||||||
}
|
}
|
||||||
@ -2448,24 +2448,24 @@ func NewFetchWorkerClusterRequest(server string, clusterId string) (*http.Reques
|
|||||||
return req, nil
|
return req, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewUpdateWorkerClusterRequest calls the generic UpdateWorkerCluster builder with application/json body
|
// NewUpdateWorkerTagRequest calls the generic UpdateWorkerTag builder with application/json body
|
||||||
func NewUpdateWorkerClusterRequest(server string, clusterId string, body UpdateWorkerClusterJSONRequestBody) (*http.Request, error) {
|
func NewUpdateWorkerTagRequest(server string, tagId string, body UpdateWorkerTagJSONRequestBody) (*http.Request, error) {
|
||||||
var bodyReader io.Reader
|
var bodyReader io.Reader
|
||||||
buf, err := json.Marshal(body)
|
buf, err := json.Marshal(body)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
bodyReader = bytes.NewReader(buf)
|
bodyReader = bytes.NewReader(buf)
|
||||||
return NewUpdateWorkerClusterRequestWithBody(server, clusterId, "application/json", bodyReader)
|
return NewUpdateWorkerTagRequestWithBody(server, tagId, "application/json", bodyReader)
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewUpdateWorkerClusterRequestWithBody generates requests for UpdateWorkerCluster with any type of body
|
// NewUpdateWorkerTagRequestWithBody generates requests for UpdateWorkerTag with any type of body
|
||||||
func NewUpdateWorkerClusterRequestWithBody(server string, clusterId string, contentType string, body io.Reader) (*http.Request, error) {
|
func NewUpdateWorkerTagRequestWithBody(server string, tagId string, contentType string, body io.Reader) (*http.Request, error) {
|
||||||
var err error
|
var err error
|
||||||
|
|
||||||
var pathParam0 string
|
var pathParam0 string
|
||||||
|
|
||||||
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "cluster_id", runtime.ParamLocationPath, clusterId)
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "tag_id", runtime.ParamLocationPath, tagId)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
@ -2475,7 +2475,7 @@ func NewUpdateWorkerClusterRequestWithBody(server string, clusterId string, cont
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
operationPath := fmt.Sprintf("/api/v3/worker-mgt/cluster/%s", pathParam0)
|
operationPath := fmt.Sprintf("/api/v3/worker-mgt/tag/%s", pathParam0)
|
||||||
if operationPath[0] == '/' {
|
if operationPath[0] == '/' {
|
||||||
operationPath = "." + operationPath
|
operationPath = "." + operationPath
|
||||||
}
|
}
|
||||||
@ -2495,8 +2495,8 @@ func NewUpdateWorkerClusterRequestWithBody(server string, clusterId string, cont
|
|||||||
return req, nil
|
return req, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewFetchWorkerClustersRequest generates requests for FetchWorkerClusters
|
// NewFetchWorkerTagsRequest generates requests for FetchWorkerTags
|
||||||
func NewFetchWorkerClustersRequest(server string) (*http.Request, error) {
|
func NewFetchWorkerTagsRequest(server string) (*http.Request, error) {
|
||||||
var err error
|
var err error
|
||||||
|
|
||||||
serverURL, err := url.Parse(server)
|
serverURL, err := url.Parse(server)
|
||||||
@ -2504,7 +2504,7 @@ func NewFetchWorkerClustersRequest(server string) (*http.Request, error) {
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
operationPath := fmt.Sprintf("/api/v3/worker-mgt/clusters")
|
operationPath := fmt.Sprintf("/api/v3/worker-mgt/tags")
|
||||||
if operationPath[0] == '/' {
|
if operationPath[0] == '/' {
|
||||||
operationPath = "." + operationPath
|
operationPath = "." + operationPath
|
||||||
}
|
}
|
||||||
@ -2522,19 +2522,19 @@ func NewFetchWorkerClustersRequest(server string) (*http.Request, error) {
|
|||||||
return req, nil
|
return req, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewCreateWorkerClusterRequest calls the generic CreateWorkerCluster builder with application/json body
|
// NewCreateWorkerTagRequest calls the generic CreateWorkerTag builder with application/json body
|
||||||
func NewCreateWorkerClusterRequest(server string, body CreateWorkerClusterJSONRequestBody) (*http.Request, error) {
|
func NewCreateWorkerTagRequest(server string, body CreateWorkerTagJSONRequestBody) (*http.Request, error) {
|
||||||
var bodyReader io.Reader
|
var bodyReader io.Reader
|
||||||
buf, err := json.Marshal(body)
|
buf, err := json.Marshal(body)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
bodyReader = bytes.NewReader(buf)
|
bodyReader = bytes.NewReader(buf)
|
||||||
return NewCreateWorkerClusterRequestWithBody(server, "application/json", bodyReader)
|
return NewCreateWorkerTagRequestWithBody(server, "application/json", bodyReader)
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewCreateWorkerClusterRequestWithBody generates requests for CreateWorkerCluster with any type of body
|
// NewCreateWorkerTagRequestWithBody generates requests for CreateWorkerTag with any type of body
|
||||||
func NewCreateWorkerClusterRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
|
func NewCreateWorkerTagRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
|
||||||
var err error
|
var err error
|
||||||
|
|
||||||
serverURL, err := url.Parse(server)
|
serverURL, err := url.Parse(server)
|
||||||
@ -2542,7 +2542,7 @@ func NewCreateWorkerClusterRequestWithBody(server string, contentType string, bo
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
operationPath := fmt.Sprintf("/api/v3/worker-mgt/clusters")
|
operationPath := fmt.Sprintf("/api/v3/worker-mgt/tags")
|
||||||
if operationPath[0] == '/' {
|
if operationPath[0] == '/' {
|
||||||
operationPath = "." + operationPath
|
operationPath = "." + operationPath
|
||||||
}
|
}
|
||||||
@ -2657,53 +2657,6 @@ func NewFetchWorkerRequest(server string, workerId string) (*http.Request, error
|
|||||||
return req, nil
|
return req, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewSetWorkerClustersRequest calls the generic SetWorkerClusters builder with application/json body
|
|
||||||
func NewSetWorkerClustersRequest(server string, workerId string, body SetWorkerClustersJSONRequestBody) (*http.Request, error) {
|
|
||||||
var bodyReader io.Reader
|
|
||||||
buf, err := json.Marshal(body)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
bodyReader = bytes.NewReader(buf)
|
|
||||||
return NewSetWorkerClustersRequestWithBody(server, workerId, "application/json", bodyReader)
|
|
||||||
}
|
|
||||||
|
|
||||||
// NewSetWorkerClustersRequestWithBody generates requests for SetWorkerClusters with any type of body
|
|
||||||
func NewSetWorkerClustersRequestWithBody(server string, workerId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
||||||
var err error
|
|
||||||
|
|
||||||
var pathParam0 string
|
|
||||||
|
|
||||||
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "worker_id", runtime.ParamLocationPath, workerId)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
|
|
||||||
serverURL, err := url.Parse(server)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
|
|
||||||
operationPath := fmt.Sprintf("/api/v3/worker-mgt/workers/%s/setclusters", pathParam0)
|
|
||||||
if operationPath[0] == '/' {
|
|
||||||
operationPath = "." + operationPath
|
|
||||||
}
|
|
||||||
|
|
||||||
queryURL, err := serverURL.Parse(operationPath)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
|
|
||||||
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
|
|
||||||
req.Header.Add("Content-Type", contentType)
|
|
||||||
|
|
||||||
return req, nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// NewRequestWorkerStatusChangeRequest calls the generic RequestWorkerStatusChange builder with application/json body
|
// NewRequestWorkerStatusChangeRequest calls the generic RequestWorkerStatusChange builder with application/json body
|
||||||
func NewRequestWorkerStatusChangeRequest(server string, workerId string, body RequestWorkerStatusChangeJSONRequestBody) (*http.Request, error) {
|
func NewRequestWorkerStatusChangeRequest(server string, workerId string, body RequestWorkerStatusChangeJSONRequestBody) (*http.Request, error) {
|
||||||
var bodyReader io.Reader
|
var bodyReader io.Reader
|
||||||
@ -2751,6 +2704,53 @@ func NewRequestWorkerStatusChangeRequestWithBody(server string, workerId string,
|
|||||||
return req, nil
|
return req, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// NewSetWorkerTagsRequest calls the generic SetWorkerTags builder with application/json body
|
||||||
|
func NewSetWorkerTagsRequest(server string, workerId string, body SetWorkerTagsJSONRequestBody) (*http.Request, error) {
|
||||||
|
var bodyReader io.Reader
|
||||||
|
buf, err := json.Marshal(body)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
bodyReader = bytes.NewReader(buf)
|
||||||
|
return NewSetWorkerTagsRequestWithBody(server, workerId, "application/json", bodyReader)
|
||||||
|
}
|
||||||
|
|
||||||
|
// NewSetWorkerTagsRequestWithBody generates requests for SetWorkerTags with any type of body
|
||||||
|
func NewSetWorkerTagsRequestWithBody(server string, workerId string, contentType string, body io.Reader) (*http.Request, error) {
|
||||||
|
var err error
|
||||||
|
|
||||||
|
var pathParam0 string
|
||||||
|
|
||||||
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "worker_id", runtime.ParamLocationPath, workerId)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
|
serverURL, err := url.Parse(server)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
|
operationPath := fmt.Sprintf("/api/v3/worker-mgt/workers/%s/settags", pathParam0)
|
||||||
|
if operationPath[0] == '/' {
|
||||||
|
operationPath = "." + operationPath
|
||||||
|
}
|
||||||
|
|
||||||
|
queryURL, err := serverURL.Parse(operationPath)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
|
req.Header.Add("Content-Type", contentType)
|
||||||
|
|
||||||
|
return req, nil
|
||||||
|
}
|
||||||
|
|
||||||
// NewFetchWorkerSleepScheduleRequest generates requests for FetchWorkerSleepSchedule
|
// NewFetchWorkerSleepScheduleRequest generates requests for FetchWorkerSleepSchedule
|
||||||
func NewFetchWorkerSleepScheduleRequest(server string, workerId string) (*http.Request, error) {
|
func NewFetchWorkerSleepScheduleRequest(server string, workerId string) (*http.Request, error) {
|
||||||
var err error
|
var err error
|
||||||
@ -3313,24 +3313,24 @@ type ClientWithResponsesInterface interface {
|
|||||||
// GetVersion request
|
// GetVersion request
|
||||||
GetVersionWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetVersionResponse, error)
|
GetVersionWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetVersionResponse, error)
|
||||||
|
|
||||||
// DeleteWorkerCluster request
|
// DeleteWorkerTag request
|
||||||
DeleteWorkerClusterWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*DeleteWorkerClusterResponse, error)
|
DeleteWorkerTagWithResponse(ctx context.Context, tagId string, reqEditors ...RequestEditorFn) (*DeleteWorkerTagResponse, error)
|
||||||
|
|
||||||
// FetchWorkerCluster request
|
// FetchWorkerTag request
|
||||||
FetchWorkerClusterWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*FetchWorkerClusterResponse, error)
|
FetchWorkerTagWithResponse(ctx context.Context, tagId string, reqEditors ...RequestEditorFn) (*FetchWorkerTagResponse, error)
|
||||||
|
|
||||||
// UpdateWorkerCluster request with any body
|
// UpdateWorkerTag request with any body
|
||||||
UpdateWorkerClusterWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateWorkerClusterResponse, error)
|
UpdateWorkerTagWithBodyWithResponse(ctx context.Context, tagId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateWorkerTagResponse, error)
|
||||||
|
|
||||||
UpdateWorkerClusterWithResponse(ctx context.Context, clusterId string, body UpdateWorkerClusterJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateWorkerClusterResponse, error)
|
UpdateWorkerTagWithResponse(ctx context.Context, tagId string, body UpdateWorkerTagJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateWorkerTagResponse, error)
|
||||||
|
|
||||||
// FetchWorkerClusters request
|
// FetchWorkerTags request
|
||||||
FetchWorkerClustersWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*FetchWorkerClustersResponse, error)
|
FetchWorkerTagsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*FetchWorkerTagsResponse, error)
|
||||||
|
|
||||||
// CreateWorkerCluster request with any body
|
// CreateWorkerTag request with any body
|
||||||
CreateWorkerClusterWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateWorkerClusterResponse, error)
|
CreateWorkerTagWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateWorkerTagResponse, error)
|
||||||
|
|
||||||
CreateWorkerClusterWithResponse(ctx context.Context, body CreateWorkerClusterJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateWorkerClusterResponse, error)
|
CreateWorkerTagWithResponse(ctx context.Context, body CreateWorkerTagJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateWorkerTagResponse, error)
|
||||||
|
|
||||||
// FetchWorkers request
|
// FetchWorkers request
|
||||||
FetchWorkersWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*FetchWorkersResponse, error)
|
FetchWorkersWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*FetchWorkersResponse, error)
|
||||||
@ -3341,16 +3341,16 @@ type ClientWithResponsesInterface interface {
|
|||||||
// FetchWorker request
|
// FetchWorker request
|
||||||
FetchWorkerWithResponse(ctx context.Context, workerId string, reqEditors ...RequestEditorFn) (*FetchWorkerResponse, error)
|
FetchWorkerWithResponse(ctx context.Context, workerId string, reqEditors ...RequestEditorFn) (*FetchWorkerResponse, error)
|
||||||
|
|
||||||
// SetWorkerClusters request with any body
|
|
||||||
SetWorkerClustersWithBodyWithResponse(ctx context.Context, workerId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetWorkerClustersResponse, error)
|
|
||||||
|
|
||||||
SetWorkerClustersWithResponse(ctx context.Context, workerId string, body SetWorkerClustersJSONRequestBody, reqEditors ...RequestEditorFn) (*SetWorkerClustersResponse, error)
|
|
||||||
|
|
||||||
// RequestWorkerStatusChange request with any body
|
// RequestWorkerStatusChange request with any body
|
||||||
RequestWorkerStatusChangeWithBodyWithResponse(ctx context.Context, workerId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RequestWorkerStatusChangeResponse, error)
|
RequestWorkerStatusChangeWithBodyWithResponse(ctx context.Context, workerId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RequestWorkerStatusChangeResponse, error)
|
||||||
|
|
||||||
RequestWorkerStatusChangeWithResponse(ctx context.Context, workerId string, body RequestWorkerStatusChangeJSONRequestBody, reqEditors ...RequestEditorFn) (*RequestWorkerStatusChangeResponse, error)
|
RequestWorkerStatusChangeWithResponse(ctx context.Context, workerId string, body RequestWorkerStatusChangeJSONRequestBody, reqEditors ...RequestEditorFn) (*RequestWorkerStatusChangeResponse, error)
|
||||||
|
|
||||||
|
// SetWorkerTags request with any body
|
||||||
|
SetWorkerTagsWithBodyWithResponse(ctx context.Context, workerId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetWorkerTagsResponse, error)
|
||||||
|
|
||||||
|
SetWorkerTagsWithResponse(ctx context.Context, workerId string, body SetWorkerTagsJSONRequestBody, reqEditors ...RequestEditorFn) (*SetWorkerTagsResponse, error)
|
||||||
|
|
||||||
// FetchWorkerSleepSchedule request
|
// FetchWorkerSleepSchedule request
|
||||||
FetchWorkerSleepScheduleWithResponse(ctx context.Context, workerId string, reqEditors ...RequestEditorFn) (*FetchWorkerSleepScheduleResponse, error)
|
FetchWorkerSleepScheduleWithResponse(ctx context.Context, workerId string, reqEditors ...RequestEditorFn) (*FetchWorkerSleepScheduleResponse, error)
|
||||||
|
|
||||||
@ -4118,14 +4118,14 @@ func (r GetVersionResponse) StatusCode() int {
|
|||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
type DeleteWorkerClusterResponse struct {
|
type DeleteWorkerTagResponse struct {
|
||||||
Body []byte
|
Body []byte
|
||||||
HTTPResponse *http.Response
|
HTTPResponse *http.Response
|
||||||
JSONDefault *Error
|
JSONDefault *Error
|
||||||
}
|
}
|
||||||
|
|
||||||
// Status returns HTTPResponse.Status
|
// Status returns HTTPResponse.Status
|
||||||
func (r DeleteWorkerClusterResponse) Status() string {
|
func (r DeleteWorkerTagResponse) Status() string {
|
||||||
if r.HTTPResponse != nil {
|
if r.HTTPResponse != nil {
|
||||||
return r.HTTPResponse.Status
|
return r.HTTPResponse.Status
|
||||||
}
|
}
|
||||||
@ -4133,21 +4133,21 @@ func (r DeleteWorkerClusterResponse) Status() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// StatusCode returns HTTPResponse.StatusCode
|
// StatusCode returns HTTPResponse.StatusCode
|
||||||
func (r DeleteWorkerClusterResponse) StatusCode() int {
|
func (r DeleteWorkerTagResponse) StatusCode() int {
|
||||||
if r.HTTPResponse != nil {
|
if r.HTTPResponse != nil {
|
||||||
return r.HTTPResponse.StatusCode
|
return r.HTTPResponse.StatusCode
|
||||||
}
|
}
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
type FetchWorkerClusterResponse struct {
|
type FetchWorkerTagResponse struct {
|
||||||
Body []byte
|
Body []byte
|
||||||
HTTPResponse *http.Response
|
HTTPResponse *http.Response
|
||||||
JSON200 *WorkerCluster
|
JSON200 *WorkerTag
|
||||||
}
|
}
|
||||||
|
|
||||||
// Status returns HTTPResponse.Status
|
// Status returns HTTPResponse.Status
|
||||||
func (r FetchWorkerClusterResponse) Status() string {
|
func (r FetchWorkerTagResponse) Status() string {
|
||||||
if r.HTTPResponse != nil {
|
if r.HTTPResponse != nil {
|
||||||
return r.HTTPResponse.Status
|
return r.HTTPResponse.Status
|
||||||
}
|
}
|
||||||
@ -4155,21 +4155,21 @@ func (r FetchWorkerClusterResponse) Status() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// StatusCode returns HTTPResponse.StatusCode
|
// StatusCode returns HTTPResponse.StatusCode
|
||||||
func (r FetchWorkerClusterResponse) StatusCode() int {
|
func (r FetchWorkerTagResponse) StatusCode() int {
|
||||||
if r.HTTPResponse != nil {
|
if r.HTTPResponse != nil {
|
||||||
return r.HTTPResponse.StatusCode
|
return r.HTTPResponse.StatusCode
|
||||||
}
|
}
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
type UpdateWorkerClusterResponse struct {
|
type UpdateWorkerTagResponse struct {
|
||||||
Body []byte
|
Body []byte
|
||||||
HTTPResponse *http.Response
|
HTTPResponse *http.Response
|
||||||
JSONDefault *Error
|
JSONDefault *Error
|
||||||
}
|
}
|
||||||
|
|
||||||
// Status returns HTTPResponse.Status
|
// Status returns HTTPResponse.Status
|
||||||
func (r UpdateWorkerClusterResponse) Status() string {
|
func (r UpdateWorkerTagResponse) Status() string {
|
||||||
if r.HTTPResponse != nil {
|
if r.HTTPResponse != nil {
|
||||||
return r.HTTPResponse.Status
|
return r.HTTPResponse.Status
|
||||||
}
|
}
|
||||||
@ -4177,21 +4177,21 @@ func (r UpdateWorkerClusterResponse) Status() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// StatusCode returns HTTPResponse.StatusCode
|
// StatusCode returns HTTPResponse.StatusCode
|
||||||
func (r UpdateWorkerClusterResponse) StatusCode() int {
|
func (r UpdateWorkerTagResponse) StatusCode() int {
|
||||||
if r.HTTPResponse != nil {
|
if r.HTTPResponse != nil {
|
||||||
return r.HTTPResponse.StatusCode
|
return r.HTTPResponse.StatusCode
|
||||||
}
|
}
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
type FetchWorkerClustersResponse struct {
|
type FetchWorkerTagsResponse struct {
|
||||||
Body []byte
|
Body []byte
|
||||||
HTTPResponse *http.Response
|
HTTPResponse *http.Response
|
||||||
JSON200 *WorkerClusterList
|
JSON200 *WorkerTagList
|
||||||
}
|
}
|
||||||
|
|
||||||
// Status returns HTTPResponse.Status
|
// Status returns HTTPResponse.Status
|
||||||
func (r FetchWorkerClustersResponse) Status() string {
|
func (r FetchWorkerTagsResponse) Status() string {
|
||||||
if r.HTTPResponse != nil {
|
if r.HTTPResponse != nil {
|
||||||
return r.HTTPResponse.Status
|
return r.HTTPResponse.Status
|
||||||
}
|
}
|
||||||
@ -4199,22 +4199,22 @@ func (r FetchWorkerClustersResponse) Status() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// StatusCode returns HTTPResponse.StatusCode
|
// StatusCode returns HTTPResponse.StatusCode
|
||||||
func (r FetchWorkerClustersResponse) StatusCode() int {
|
func (r FetchWorkerTagsResponse) StatusCode() int {
|
||||||
if r.HTTPResponse != nil {
|
if r.HTTPResponse != nil {
|
||||||
return r.HTTPResponse.StatusCode
|
return r.HTTPResponse.StatusCode
|
||||||
}
|
}
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
type CreateWorkerClusterResponse struct {
|
type CreateWorkerTagResponse struct {
|
||||||
Body []byte
|
Body []byte
|
||||||
HTTPResponse *http.Response
|
HTTPResponse *http.Response
|
||||||
JSON200 *WorkerCluster
|
JSON200 *WorkerTag
|
||||||
JSONDefault *Error
|
JSONDefault *Error
|
||||||
}
|
}
|
||||||
|
|
||||||
// Status returns HTTPResponse.Status
|
// Status returns HTTPResponse.Status
|
||||||
func (r CreateWorkerClusterResponse) Status() string {
|
func (r CreateWorkerTagResponse) Status() string {
|
||||||
if r.HTTPResponse != nil {
|
if r.HTTPResponse != nil {
|
||||||
return r.HTTPResponse.Status
|
return r.HTTPResponse.Status
|
||||||
}
|
}
|
||||||
@ -4222,7 +4222,7 @@ func (r CreateWorkerClusterResponse) Status() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// StatusCode returns HTTPResponse.StatusCode
|
// StatusCode returns HTTPResponse.StatusCode
|
||||||
func (r CreateWorkerClusterResponse) StatusCode() int {
|
func (r CreateWorkerTagResponse) StatusCode() int {
|
||||||
if r.HTTPResponse != nil {
|
if r.HTTPResponse != nil {
|
||||||
return r.HTTPResponse.StatusCode
|
return r.HTTPResponse.StatusCode
|
||||||
}
|
}
|
||||||
@ -4295,28 +4295,6 @@ func (r FetchWorkerResponse) StatusCode() int {
|
|||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
type SetWorkerClustersResponse struct {
|
|
||||||
Body []byte
|
|
||||||
HTTPResponse *http.Response
|
|
||||||
JSONDefault *Error
|
|
||||||
}
|
|
||||||
|
|
||||||
// Status returns HTTPResponse.Status
|
|
||||||
func (r SetWorkerClustersResponse) Status() string {
|
|
||||||
if r.HTTPResponse != nil {
|
|
||||||
return r.HTTPResponse.Status
|
|
||||||
}
|
|
||||||
return http.StatusText(0)
|
|
||||||
}
|
|
||||||
|
|
||||||
// StatusCode returns HTTPResponse.StatusCode
|
|
||||||
func (r SetWorkerClustersResponse) StatusCode() int {
|
|
||||||
if r.HTTPResponse != nil {
|
|
||||||
return r.HTTPResponse.StatusCode
|
|
||||||
}
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
type RequestWorkerStatusChangeResponse struct {
|
type RequestWorkerStatusChangeResponse struct {
|
||||||
Body []byte
|
Body []byte
|
||||||
HTTPResponse *http.Response
|
HTTPResponse *http.Response
|
||||||
@ -4339,6 +4317,28 @@ func (r RequestWorkerStatusChangeResponse) StatusCode() int {
|
|||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type SetWorkerTagsResponse struct {
|
||||||
|
Body []byte
|
||||||
|
HTTPResponse *http.Response
|
||||||
|
JSONDefault *Error
|
||||||
|
}
|
||||||
|
|
||||||
|
// Status returns HTTPResponse.Status
|
||||||
|
func (r SetWorkerTagsResponse) Status() string {
|
||||||
|
if r.HTTPResponse != nil {
|
||||||
|
return r.HTTPResponse.Status
|
||||||
|
}
|
||||||
|
return http.StatusText(0)
|
||||||
|
}
|
||||||
|
|
||||||
|
// StatusCode returns HTTPResponse.StatusCode
|
||||||
|
func (r SetWorkerTagsResponse) StatusCode() int {
|
||||||
|
if r.HTTPResponse != nil {
|
||||||
|
return r.HTTPResponse.StatusCode
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
type FetchWorkerSleepScheduleResponse struct {
|
type FetchWorkerSleepScheduleResponse struct {
|
||||||
Body []byte
|
Body []byte
|
||||||
HTTPResponse *http.Response
|
HTTPResponse *http.Response
|
||||||
@ -4976,65 +4976,65 @@ func (c *ClientWithResponses) GetVersionWithResponse(ctx context.Context, reqEdi
|
|||||||
return ParseGetVersionResponse(rsp)
|
return ParseGetVersionResponse(rsp)
|
||||||
}
|
}
|
||||||
|
|
||||||
// DeleteWorkerClusterWithResponse request returning *DeleteWorkerClusterResponse
|
// DeleteWorkerTagWithResponse request returning *DeleteWorkerTagResponse
|
||||||
func (c *ClientWithResponses) DeleteWorkerClusterWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*DeleteWorkerClusterResponse, error) {
|
func (c *ClientWithResponses) DeleteWorkerTagWithResponse(ctx context.Context, tagId string, reqEditors ...RequestEditorFn) (*DeleteWorkerTagResponse, error) {
|
||||||
rsp, err := c.DeleteWorkerCluster(ctx, clusterId, reqEditors...)
|
rsp, err := c.DeleteWorkerTag(ctx, tagId, reqEditors...)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
return ParseDeleteWorkerClusterResponse(rsp)
|
return ParseDeleteWorkerTagResponse(rsp)
|
||||||
}
|
}
|
||||||
|
|
||||||
// FetchWorkerClusterWithResponse request returning *FetchWorkerClusterResponse
|
// FetchWorkerTagWithResponse request returning *FetchWorkerTagResponse
|
||||||
func (c *ClientWithResponses) FetchWorkerClusterWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*FetchWorkerClusterResponse, error) {
|
func (c *ClientWithResponses) FetchWorkerTagWithResponse(ctx context.Context, tagId string, reqEditors ...RequestEditorFn) (*FetchWorkerTagResponse, error) {
|
||||||
rsp, err := c.FetchWorkerCluster(ctx, clusterId, reqEditors...)
|
rsp, err := c.FetchWorkerTag(ctx, tagId, reqEditors...)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
return ParseFetchWorkerClusterResponse(rsp)
|
return ParseFetchWorkerTagResponse(rsp)
|
||||||
}
|
}
|
||||||
|
|
||||||
// UpdateWorkerClusterWithBodyWithResponse request with arbitrary body returning *UpdateWorkerClusterResponse
|
// UpdateWorkerTagWithBodyWithResponse request with arbitrary body returning *UpdateWorkerTagResponse
|
||||||
func (c *ClientWithResponses) UpdateWorkerClusterWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateWorkerClusterResponse, error) {
|
func (c *ClientWithResponses) UpdateWorkerTagWithBodyWithResponse(ctx context.Context, tagId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateWorkerTagResponse, error) {
|
||||||
rsp, err := c.UpdateWorkerClusterWithBody(ctx, clusterId, contentType, body, reqEditors...)
|
rsp, err := c.UpdateWorkerTagWithBody(ctx, tagId, contentType, body, reqEditors...)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
return ParseUpdateWorkerClusterResponse(rsp)
|
return ParseUpdateWorkerTagResponse(rsp)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *ClientWithResponses) UpdateWorkerClusterWithResponse(ctx context.Context, clusterId string, body UpdateWorkerClusterJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateWorkerClusterResponse, error) {
|
func (c *ClientWithResponses) UpdateWorkerTagWithResponse(ctx context.Context, tagId string, body UpdateWorkerTagJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateWorkerTagResponse, error) {
|
||||||
rsp, err := c.UpdateWorkerCluster(ctx, clusterId, body, reqEditors...)
|
rsp, err := c.UpdateWorkerTag(ctx, tagId, body, reqEditors...)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
return ParseUpdateWorkerClusterResponse(rsp)
|
return ParseUpdateWorkerTagResponse(rsp)
|
||||||
}
|
}
|
||||||
|
|
||||||
// FetchWorkerClustersWithResponse request returning *FetchWorkerClustersResponse
|
// FetchWorkerTagsWithResponse request returning *FetchWorkerTagsResponse
|
||||||
func (c *ClientWithResponses) FetchWorkerClustersWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*FetchWorkerClustersResponse, error) {
|
func (c *ClientWithResponses) FetchWorkerTagsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*FetchWorkerTagsResponse, error) {
|
||||||
rsp, err := c.FetchWorkerClusters(ctx, reqEditors...)
|
rsp, err := c.FetchWorkerTags(ctx, reqEditors...)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
return ParseFetchWorkerClustersResponse(rsp)
|
return ParseFetchWorkerTagsResponse(rsp)
|
||||||
}
|
}
|
||||||
|
|
||||||
// CreateWorkerClusterWithBodyWithResponse request with arbitrary body returning *CreateWorkerClusterResponse
|
// CreateWorkerTagWithBodyWithResponse request with arbitrary body returning *CreateWorkerTagResponse
|
||||||
func (c *ClientWithResponses) CreateWorkerClusterWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateWorkerClusterResponse, error) {
|
func (c *ClientWithResponses) CreateWorkerTagWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateWorkerTagResponse, error) {
|
||||||
rsp, err := c.CreateWorkerClusterWithBody(ctx, contentType, body, reqEditors...)
|
rsp, err := c.CreateWorkerTagWithBody(ctx, contentType, body, reqEditors...)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
return ParseCreateWorkerClusterResponse(rsp)
|
return ParseCreateWorkerTagResponse(rsp)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *ClientWithResponses) CreateWorkerClusterWithResponse(ctx context.Context, body CreateWorkerClusterJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateWorkerClusterResponse, error) {
|
func (c *ClientWithResponses) CreateWorkerTagWithResponse(ctx context.Context, body CreateWorkerTagJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateWorkerTagResponse, error) {
|
||||||
rsp, err := c.CreateWorkerCluster(ctx, body, reqEditors...)
|
rsp, err := c.CreateWorkerTag(ctx, body, reqEditors...)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
return ParseCreateWorkerClusterResponse(rsp)
|
return ParseCreateWorkerTagResponse(rsp)
|
||||||
}
|
}
|
||||||
|
|
||||||
// FetchWorkersWithResponse request returning *FetchWorkersResponse
|
// FetchWorkersWithResponse request returning *FetchWorkersResponse
|
||||||
@ -5064,23 +5064,6 @@ func (c *ClientWithResponses) FetchWorkerWithResponse(ctx context.Context, worke
|
|||||||
return ParseFetchWorkerResponse(rsp)
|
return ParseFetchWorkerResponse(rsp)
|
||||||
}
|
}
|
||||||
|
|
||||||
// SetWorkerClustersWithBodyWithResponse request with arbitrary body returning *SetWorkerClustersResponse
|
|
||||||
func (c *ClientWithResponses) SetWorkerClustersWithBodyWithResponse(ctx context.Context, workerId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetWorkerClustersResponse, error) {
|
|
||||||
rsp, err := c.SetWorkerClustersWithBody(ctx, workerId, contentType, body, reqEditors...)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
return ParseSetWorkerClustersResponse(rsp)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (c *ClientWithResponses) SetWorkerClustersWithResponse(ctx context.Context, workerId string, body SetWorkerClustersJSONRequestBody, reqEditors ...RequestEditorFn) (*SetWorkerClustersResponse, error) {
|
|
||||||
rsp, err := c.SetWorkerClusters(ctx, workerId, body, reqEditors...)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
return ParseSetWorkerClustersResponse(rsp)
|
|
||||||
}
|
|
||||||
|
|
||||||
// RequestWorkerStatusChangeWithBodyWithResponse request with arbitrary body returning *RequestWorkerStatusChangeResponse
|
// RequestWorkerStatusChangeWithBodyWithResponse request with arbitrary body returning *RequestWorkerStatusChangeResponse
|
||||||
func (c *ClientWithResponses) RequestWorkerStatusChangeWithBodyWithResponse(ctx context.Context, workerId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RequestWorkerStatusChangeResponse, error) {
|
func (c *ClientWithResponses) RequestWorkerStatusChangeWithBodyWithResponse(ctx context.Context, workerId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RequestWorkerStatusChangeResponse, error) {
|
||||||
rsp, err := c.RequestWorkerStatusChangeWithBody(ctx, workerId, contentType, body, reqEditors...)
|
rsp, err := c.RequestWorkerStatusChangeWithBody(ctx, workerId, contentType, body, reqEditors...)
|
||||||
@ -5098,6 +5081,23 @@ func (c *ClientWithResponses) RequestWorkerStatusChangeWithResponse(ctx context.
|
|||||||
return ParseRequestWorkerStatusChangeResponse(rsp)
|
return ParseRequestWorkerStatusChangeResponse(rsp)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// SetWorkerTagsWithBodyWithResponse request with arbitrary body returning *SetWorkerTagsResponse
|
||||||
|
func (c *ClientWithResponses) SetWorkerTagsWithBodyWithResponse(ctx context.Context, workerId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetWorkerTagsResponse, error) {
|
||||||
|
rsp, err := c.SetWorkerTagsWithBody(ctx, workerId, contentType, body, reqEditors...)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return ParseSetWorkerTagsResponse(rsp)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *ClientWithResponses) SetWorkerTagsWithResponse(ctx context.Context, workerId string, body SetWorkerTagsJSONRequestBody, reqEditors ...RequestEditorFn) (*SetWorkerTagsResponse, error) {
|
||||||
|
rsp, err := c.SetWorkerTags(ctx, workerId, body, reqEditors...)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return ParseSetWorkerTagsResponse(rsp)
|
||||||
|
}
|
||||||
|
|
||||||
// FetchWorkerSleepScheduleWithResponse request returning *FetchWorkerSleepScheduleResponse
|
// FetchWorkerSleepScheduleWithResponse request returning *FetchWorkerSleepScheduleResponse
|
||||||
func (c *ClientWithResponses) FetchWorkerSleepScheduleWithResponse(ctx context.Context, workerId string, reqEditors ...RequestEditorFn) (*FetchWorkerSleepScheduleResponse, error) {
|
func (c *ClientWithResponses) FetchWorkerSleepScheduleWithResponse(ctx context.Context, workerId string, reqEditors ...RequestEditorFn) (*FetchWorkerSleepScheduleResponse, error) {
|
||||||
rsp, err := c.FetchWorkerSleepSchedule(ctx, workerId, reqEditors...)
|
rsp, err := c.FetchWorkerSleepSchedule(ctx, workerId, reqEditors...)
|
||||||
@ -6190,15 +6190,15 @@ func ParseGetVersionResponse(rsp *http.Response) (*GetVersionResponse, error) {
|
|||||||
return response, nil
|
return response, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// ParseDeleteWorkerClusterResponse parses an HTTP response from a DeleteWorkerClusterWithResponse call
|
// ParseDeleteWorkerTagResponse parses an HTTP response from a DeleteWorkerTagWithResponse call
|
||||||
func ParseDeleteWorkerClusterResponse(rsp *http.Response) (*DeleteWorkerClusterResponse, error) {
|
func ParseDeleteWorkerTagResponse(rsp *http.Response) (*DeleteWorkerTagResponse, error) {
|
||||||
bodyBytes, err := ioutil.ReadAll(rsp.Body)
|
bodyBytes, err := ioutil.ReadAll(rsp.Body)
|
||||||
defer func() { _ = rsp.Body.Close() }()
|
defer func() { _ = rsp.Body.Close() }()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
response := &DeleteWorkerClusterResponse{
|
response := &DeleteWorkerTagResponse{
|
||||||
Body: bodyBytes,
|
Body: bodyBytes,
|
||||||
HTTPResponse: rsp,
|
HTTPResponse: rsp,
|
||||||
}
|
}
|
||||||
@ -6216,22 +6216,22 @@ func ParseDeleteWorkerClusterResponse(rsp *http.Response) (*DeleteWorkerClusterR
|
|||||||
return response, nil
|
return response, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// ParseFetchWorkerClusterResponse parses an HTTP response from a FetchWorkerClusterWithResponse call
|
// ParseFetchWorkerTagResponse parses an HTTP response from a FetchWorkerTagWithResponse call
|
||||||
func ParseFetchWorkerClusterResponse(rsp *http.Response) (*FetchWorkerClusterResponse, error) {
|
func ParseFetchWorkerTagResponse(rsp *http.Response) (*FetchWorkerTagResponse, error) {
|
||||||
bodyBytes, err := ioutil.ReadAll(rsp.Body)
|
bodyBytes, err := ioutil.ReadAll(rsp.Body)
|
||||||
defer func() { _ = rsp.Body.Close() }()
|
defer func() { _ = rsp.Body.Close() }()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
response := &FetchWorkerClusterResponse{
|
response := &FetchWorkerTagResponse{
|
||||||
Body: bodyBytes,
|
Body: bodyBytes,
|
||||||
HTTPResponse: rsp,
|
HTTPResponse: rsp,
|
||||||
}
|
}
|
||||||
|
|
||||||
switch {
|
switch {
|
||||||
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
||||||
var dest WorkerCluster
|
var dest WorkerTag
|
||||||
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
@ -6242,15 +6242,15 @@ func ParseFetchWorkerClusterResponse(rsp *http.Response) (*FetchWorkerClusterRes
|
|||||||
return response, nil
|
return response, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// ParseUpdateWorkerClusterResponse parses an HTTP response from a UpdateWorkerClusterWithResponse call
|
// ParseUpdateWorkerTagResponse parses an HTTP response from a UpdateWorkerTagWithResponse call
|
||||||
func ParseUpdateWorkerClusterResponse(rsp *http.Response) (*UpdateWorkerClusterResponse, error) {
|
func ParseUpdateWorkerTagResponse(rsp *http.Response) (*UpdateWorkerTagResponse, error) {
|
||||||
bodyBytes, err := ioutil.ReadAll(rsp.Body)
|
bodyBytes, err := ioutil.ReadAll(rsp.Body)
|
||||||
defer func() { _ = rsp.Body.Close() }()
|
defer func() { _ = rsp.Body.Close() }()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
response := &UpdateWorkerClusterResponse{
|
response := &UpdateWorkerTagResponse{
|
||||||
Body: bodyBytes,
|
Body: bodyBytes,
|
||||||
HTTPResponse: rsp,
|
HTTPResponse: rsp,
|
||||||
}
|
}
|
||||||
@ -6268,22 +6268,22 @@ func ParseUpdateWorkerClusterResponse(rsp *http.Response) (*UpdateWorkerClusterR
|
|||||||
return response, nil
|
return response, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// ParseFetchWorkerClustersResponse parses an HTTP response from a FetchWorkerClustersWithResponse call
|
// ParseFetchWorkerTagsResponse parses an HTTP response from a FetchWorkerTagsWithResponse call
|
||||||
func ParseFetchWorkerClustersResponse(rsp *http.Response) (*FetchWorkerClustersResponse, error) {
|
func ParseFetchWorkerTagsResponse(rsp *http.Response) (*FetchWorkerTagsResponse, error) {
|
||||||
bodyBytes, err := ioutil.ReadAll(rsp.Body)
|
bodyBytes, err := ioutil.ReadAll(rsp.Body)
|
||||||
defer func() { _ = rsp.Body.Close() }()
|
defer func() { _ = rsp.Body.Close() }()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
response := &FetchWorkerClustersResponse{
|
response := &FetchWorkerTagsResponse{
|
||||||
Body: bodyBytes,
|
Body: bodyBytes,
|
||||||
HTTPResponse: rsp,
|
HTTPResponse: rsp,
|
||||||
}
|
}
|
||||||
|
|
||||||
switch {
|
switch {
|
||||||
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
||||||
var dest WorkerClusterList
|
var dest WorkerTagList
|
||||||
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
@ -6294,22 +6294,22 @@ func ParseFetchWorkerClustersResponse(rsp *http.Response) (*FetchWorkerClustersR
|
|||||||
return response, nil
|
return response, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// ParseCreateWorkerClusterResponse parses an HTTP response from a CreateWorkerClusterWithResponse call
|
// ParseCreateWorkerTagResponse parses an HTTP response from a CreateWorkerTagWithResponse call
|
||||||
func ParseCreateWorkerClusterResponse(rsp *http.Response) (*CreateWorkerClusterResponse, error) {
|
func ParseCreateWorkerTagResponse(rsp *http.Response) (*CreateWorkerTagResponse, error) {
|
||||||
bodyBytes, err := ioutil.ReadAll(rsp.Body)
|
bodyBytes, err := ioutil.ReadAll(rsp.Body)
|
||||||
defer func() { _ = rsp.Body.Close() }()
|
defer func() { _ = rsp.Body.Close() }()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
response := &CreateWorkerClusterResponse{
|
response := &CreateWorkerTagResponse{
|
||||||
Body: bodyBytes,
|
Body: bodyBytes,
|
||||||
HTTPResponse: rsp,
|
HTTPResponse: rsp,
|
||||||
}
|
}
|
||||||
|
|
||||||
switch {
|
switch {
|
||||||
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
||||||
var dest WorkerCluster
|
var dest WorkerTag
|
||||||
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
@ -6405,15 +6405,15 @@ func ParseFetchWorkerResponse(rsp *http.Response) (*FetchWorkerResponse, error)
|
|||||||
return response, nil
|
return response, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// ParseSetWorkerClustersResponse parses an HTTP response from a SetWorkerClustersWithResponse call
|
// ParseRequestWorkerStatusChangeResponse parses an HTTP response from a RequestWorkerStatusChangeWithResponse call
|
||||||
func ParseSetWorkerClustersResponse(rsp *http.Response) (*SetWorkerClustersResponse, error) {
|
func ParseRequestWorkerStatusChangeResponse(rsp *http.Response) (*RequestWorkerStatusChangeResponse, error) {
|
||||||
bodyBytes, err := ioutil.ReadAll(rsp.Body)
|
bodyBytes, err := ioutil.ReadAll(rsp.Body)
|
||||||
defer func() { _ = rsp.Body.Close() }()
|
defer func() { _ = rsp.Body.Close() }()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
response := &SetWorkerClustersResponse{
|
response := &RequestWorkerStatusChangeResponse{
|
||||||
Body: bodyBytes,
|
Body: bodyBytes,
|
||||||
HTTPResponse: rsp,
|
HTTPResponse: rsp,
|
||||||
}
|
}
|
||||||
@ -6431,15 +6431,15 @@ func ParseSetWorkerClustersResponse(rsp *http.Response) (*SetWorkerClustersRespo
|
|||||||
return response, nil
|
return response, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// ParseRequestWorkerStatusChangeResponse parses an HTTP response from a RequestWorkerStatusChangeWithResponse call
|
// ParseSetWorkerTagsResponse parses an HTTP response from a SetWorkerTagsWithResponse call
|
||||||
func ParseRequestWorkerStatusChangeResponse(rsp *http.Response) (*RequestWorkerStatusChangeResponse, error) {
|
func ParseSetWorkerTagsResponse(rsp *http.Response) (*SetWorkerTagsResponse, error) {
|
||||||
bodyBytes, err := ioutil.ReadAll(rsp.Body)
|
bodyBytes, err := ioutil.ReadAll(rsp.Body)
|
||||||
defer func() { _ = rsp.Body.Close() }()
|
defer func() { _ = rsp.Body.Close() }()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
response := &RequestWorkerStatusChangeResponse{
|
response := &SetWorkerTagsResponse{
|
||||||
Body: bodyBytes,
|
Body: bodyBytes,
|
||||||
HTTPResponse: rsp,
|
HTTPResponse: rsp,
|
||||||
}
|
}
|
||||||
|
134
pkg/api/openapi_server.gen.go
generated
134
pkg/api/openapi_server.gen.go
generated
@ -110,21 +110,21 @@ type ServerInterface interface {
|
|||||||
// Get the Flamenco version of this Manager
|
// Get the Flamenco version of this Manager
|
||||||
// (GET /api/v3/version)
|
// (GET /api/v3/version)
|
||||||
GetVersion(ctx echo.Context) error
|
GetVersion(ctx echo.Context) error
|
||||||
// Remove this worker cluster. This unassigns all workers from the cluster and removes it.
|
// Remove this worker tag. This unassigns all workers from the tag and removes it.
|
||||||
// (DELETE /api/v3/worker-mgt/cluster/{cluster_id})
|
// (DELETE /api/v3/worker-mgt/tag/{tag_id})
|
||||||
DeleteWorkerCluster(ctx echo.Context, clusterId string) error
|
DeleteWorkerTag(ctx echo.Context, tagId string) error
|
||||||
// Get a single worker cluster.
|
// Get a single worker tag.
|
||||||
// (GET /api/v3/worker-mgt/cluster/{cluster_id})
|
// (GET /api/v3/worker-mgt/tag/{tag_id})
|
||||||
FetchWorkerCluster(ctx echo.Context, clusterId string) error
|
FetchWorkerTag(ctx echo.Context, tagId string) error
|
||||||
// Update an existing worker cluster.
|
// Update an existing worker tag.
|
||||||
// (PUT /api/v3/worker-mgt/cluster/{cluster_id})
|
// (PUT /api/v3/worker-mgt/tag/{tag_id})
|
||||||
UpdateWorkerCluster(ctx echo.Context, clusterId string) error
|
UpdateWorkerTag(ctx echo.Context, tagId string) error
|
||||||
// Get list of worker clusters.
|
// Get list of worker tags.
|
||||||
// (GET /api/v3/worker-mgt/clusters)
|
// (GET /api/v3/worker-mgt/tags)
|
||||||
FetchWorkerClusters(ctx echo.Context) error
|
FetchWorkerTags(ctx echo.Context) error
|
||||||
// Create a new worker cluster.
|
// Create a new worker tag.
|
||||||
// (POST /api/v3/worker-mgt/clusters)
|
// (POST /api/v3/worker-mgt/tags)
|
||||||
CreateWorkerCluster(ctx echo.Context) error
|
CreateWorkerTag(ctx echo.Context) error
|
||||||
// Get list of workers.
|
// Get list of workers.
|
||||||
// (GET /api/v3/worker-mgt/workers)
|
// (GET /api/v3/worker-mgt/workers)
|
||||||
FetchWorkers(ctx echo.Context) error
|
FetchWorkers(ctx echo.Context) error
|
||||||
@ -135,12 +135,12 @@ type ServerInterface interface {
|
|||||||
// (GET /api/v3/worker-mgt/workers/{worker_id})
|
// (GET /api/v3/worker-mgt/workers/{worker_id})
|
||||||
FetchWorker(ctx echo.Context, workerId string) error
|
FetchWorker(ctx echo.Context, workerId string) error
|
||||||
|
|
||||||
// (POST /api/v3/worker-mgt/workers/{worker_id}/setclusters)
|
|
||||||
SetWorkerClusters(ctx echo.Context, workerId string) error
|
|
||||||
|
|
||||||
// (POST /api/v3/worker-mgt/workers/{worker_id}/setstatus)
|
// (POST /api/v3/worker-mgt/workers/{worker_id}/setstatus)
|
||||||
RequestWorkerStatusChange(ctx echo.Context, workerId string) error
|
RequestWorkerStatusChange(ctx echo.Context, workerId string) error
|
||||||
|
|
||||||
|
// (POST /api/v3/worker-mgt/workers/{worker_id}/settags)
|
||||||
|
SetWorkerTags(ctx echo.Context, workerId string) error
|
||||||
|
|
||||||
// (GET /api/v3/worker-mgt/workers/{worker_id}/sleep-schedule)
|
// (GET /api/v3/worker-mgt/workers/{worker_id}/sleep-schedule)
|
||||||
FetchWorkerSleepSchedule(ctx echo.Context, workerId string) error
|
FetchWorkerSleepSchedule(ctx echo.Context, workerId string) error
|
||||||
|
|
||||||
@ -661,69 +661,69 @@ func (w *ServerInterfaceWrapper) GetVersion(ctx echo.Context) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
// DeleteWorkerCluster converts echo context to params.
|
// DeleteWorkerTag converts echo context to params.
|
||||||
func (w *ServerInterfaceWrapper) DeleteWorkerCluster(ctx echo.Context) error {
|
func (w *ServerInterfaceWrapper) DeleteWorkerTag(ctx echo.Context) error {
|
||||||
var err error
|
var err error
|
||||||
// ------------- Path parameter "cluster_id" -------------
|
// ------------- Path parameter "tag_id" -------------
|
||||||
var clusterId string
|
var tagId string
|
||||||
|
|
||||||
err = runtime.BindStyledParameterWithLocation("simple", false, "cluster_id", runtime.ParamLocationPath, ctx.Param("cluster_id"), &clusterId)
|
err = runtime.BindStyledParameterWithLocation("simple", false, "tag_id", runtime.ParamLocationPath, ctx.Param("tag_id"), &tagId)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter cluster_id: %s", err))
|
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter tag_id: %s", err))
|
||||||
}
|
}
|
||||||
|
|
||||||
// Invoke the callback with all the unmarshalled arguments
|
// Invoke the callback with all the unmarshalled arguments
|
||||||
err = w.Handler.DeleteWorkerCluster(ctx, clusterId)
|
err = w.Handler.DeleteWorkerTag(ctx, tagId)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
// FetchWorkerCluster converts echo context to params.
|
// FetchWorkerTag converts echo context to params.
|
||||||
func (w *ServerInterfaceWrapper) FetchWorkerCluster(ctx echo.Context) error {
|
func (w *ServerInterfaceWrapper) FetchWorkerTag(ctx echo.Context) error {
|
||||||
var err error
|
var err error
|
||||||
// ------------- Path parameter "cluster_id" -------------
|
// ------------- Path parameter "tag_id" -------------
|
||||||
var clusterId string
|
var tagId string
|
||||||
|
|
||||||
err = runtime.BindStyledParameterWithLocation("simple", false, "cluster_id", runtime.ParamLocationPath, ctx.Param("cluster_id"), &clusterId)
|
err = runtime.BindStyledParameterWithLocation("simple", false, "tag_id", runtime.ParamLocationPath, ctx.Param("tag_id"), &tagId)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter cluster_id: %s", err))
|
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter tag_id: %s", err))
|
||||||
}
|
}
|
||||||
|
|
||||||
// Invoke the callback with all the unmarshalled arguments
|
// Invoke the callback with all the unmarshalled arguments
|
||||||
err = w.Handler.FetchWorkerCluster(ctx, clusterId)
|
err = w.Handler.FetchWorkerTag(ctx, tagId)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
// UpdateWorkerCluster converts echo context to params.
|
// UpdateWorkerTag converts echo context to params.
|
||||||
func (w *ServerInterfaceWrapper) UpdateWorkerCluster(ctx echo.Context) error {
|
func (w *ServerInterfaceWrapper) UpdateWorkerTag(ctx echo.Context) error {
|
||||||
var err error
|
var err error
|
||||||
// ------------- Path parameter "cluster_id" -------------
|
// ------------- Path parameter "tag_id" -------------
|
||||||
var clusterId string
|
var tagId string
|
||||||
|
|
||||||
err = runtime.BindStyledParameterWithLocation("simple", false, "cluster_id", runtime.ParamLocationPath, ctx.Param("cluster_id"), &clusterId)
|
err = runtime.BindStyledParameterWithLocation("simple", false, "tag_id", runtime.ParamLocationPath, ctx.Param("tag_id"), &tagId)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter cluster_id: %s", err))
|
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter tag_id: %s", err))
|
||||||
}
|
}
|
||||||
|
|
||||||
// Invoke the callback with all the unmarshalled arguments
|
// Invoke the callback with all the unmarshalled arguments
|
||||||
err = w.Handler.UpdateWorkerCluster(ctx, clusterId)
|
err = w.Handler.UpdateWorkerTag(ctx, tagId)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
// FetchWorkerClusters converts echo context to params.
|
// FetchWorkerTags converts echo context to params.
|
||||||
func (w *ServerInterfaceWrapper) FetchWorkerClusters(ctx echo.Context) error {
|
func (w *ServerInterfaceWrapper) FetchWorkerTags(ctx echo.Context) error {
|
||||||
var err error
|
var err error
|
||||||
|
|
||||||
// Invoke the callback with all the unmarshalled arguments
|
// Invoke the callback with all the unmarshalled arguments
|
||||||
err = w.Handler.FetchWorkerClusters(ctx)
|
err = w.Handler.FetchWorkerTags(ctx)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
// CreateWorkerCluster converts echo context to params.
|
// CreateWorkerTag converts echo context to params.
|
||||||
func (w *ServerInterfaceWrapper) CreateWorkerCluster(ctx echo.Context) error {
|
func (w *ServerInterfaceWrapper) CreateWorkerTag(ctx echo.Context) error {
|
||||||
var err error
|
var err error
|
||||||
|
|
||||||
// Invoke the callback with all the unmarshalled arguments
|
// Invoke the callback with all the unmarshalled arguments
|
||||||
err = w.Handler.CreateWorkerCluster(ctx)
|
err = w.Handler.CreateWorkerTag(ctx)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -768,22 +768,6 @@ func (w *ServerInterfaceWrapper) FetchWorker(ctx echo.Context) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
// SetWorkerClusters converts echo context to params.
|
|
||||||
func (w *ServerInterfaceWrapper) SetWorkerClusters(ctx echo.Context) error {
|
|
||||||
var err error
|
|
||||||
// ------------- Path parameter "worker_id" -------------
|
|
||||||
var workerId string
|
|
||||||
|
|
||||||
err = runtime.BindStyledParameterWithLocation("simple", false, "worker_id", runtime.ParamLocationPath, ctx.Param("worker_id"), &workerId)
|
|
||||||
if err != nil {
|
|
||||||
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter worker_id: %s", err))
|
|
||||||
}
|
|
||||||
|
|
||||||
// Invoke the callback with all the unmarshalled arguments
|
|
||||||
err = w.Handler.SetWorkerClusters(ctx, workerId)
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
|
|
||||||
// RequestWorkerStatusChange converts echo context to params.
|
// RequestWorkerStatusChange converts echo context to params.
|
||||||
func (w *ServerInterfaceWrapper) RequestWorkerStatusChange(ctx echo.Context) error {
|
func (w *ServerInterfaceWrapper) RequestWorkerStatusChange(ctx echo.Context) error {
|
||||||
var err error
|
var err error
|
||||||
@ -800,6 +784,22 @@ func (w *ServerInterfaceWrapper) RequestWorkerStatusChange(ctx echo.Context) err
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// SetWorkerTags converts echo context to params.
|
||||||
|
func (w *ServerInterfaceWrapper) SetWorkerTags(ctx echo.Context) error {
|
||||||
|
var err error
|
||||||
|
// ------------- Path parameter "worker_id" -------------
|
||||||
|
var workerId string
|
||||||
|
|
||||||
|
err = runtime.BindStyledParameterWithLocation("simple", false, "worker_id", runtime.ParamLocationPath, ctx.Param("worker_id"), &workerId)
|
||||||
|
if err != nil {
|
||||||
|
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("Invalid format for parameter worker_id: %s", err))
|
||||||
|
}
|
||||||
|
|
||||||
|
// Invoke the callback with all the unmarshalled arguments
|
||||||
|
err = w.Handler.SetWorkerTags(ctx, workerId)
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
// FetchWorkerSleepSchedule converts echo context to params.
|
// FetchWorkerSleepSchedule converts echo context to params.
|
||||||
func (w *ServerInterfaceWrapper) FetchWorkerSleepSchedule(ctx echo.Context) error {
|
func (w *ServerInterfaceWrapper) FetchWorkerSleepSchedule(ctx echo.Context) error {
|
||||||
var err error
|
var err error
|
||||||
@ -1010,16 +1010,16 @@ func RegisterHandlersWithBaseURL(router EchoRouter, si ServerInterface, baseURL
|
|||||||
router.GET(baseURL+"/api/v3/tasks/:task_id/logtail", wrapper.FetchTaskLogTail)
|
router.GET(baseURL+"/api/v3/tasks/:task_id/logtail", wrapper.FetchTaskLogTail)
|
||||||
router.POST(baseURL+"/api/v3/tasks/:task_id/setstatus", wrapper.SetTaskStatus)
|
router.POST(baseURL+"/api/v3/tasks/:task_id/setstatus", wrapper.SetTaskStatus)
|
||||||
router.GET(baseURL+"/api/v3/version", wrapper.GetVersion)
|
router.GET(baseURL+"/api/v3/version", wrapper.GetVersion)
|
||||||
router.DELETE(baseURL+"/api/v3/worker-mgt/cluster/:cluster_id", wrapper.DeleteWorkerCluster)
|
router.DELETE(baseURL+"/api/v3/worker-mgt/tag/:tag_id", wrapper.DeleteWorkerTag)
|
||||||
router.GET(baseURL+"/api/v3/worker-mgt/cluster/:cluster_id", wrapper.FetchWorkerCluster)
|
router.GET(baseURL+"/api/v3/worker-mgt/tag/:tag_id", wrapper.FetchWorkerTag)
|
||||||
router.PUT(baseURL+"/api/v3/worker-mgt/cluster/:cluster_id", wrapper.UpdateWorkerCluster)
|
router.PUT(baseURL+"/api/v3/worker-mgt/tag/:tag_id", wrapper.UpdateWorkerTag)
|
||||||
router.GET(baseURL+"/api/v3/worker-mgt/clusters", wrapper.FetchWorkerClusters)
|
router.GET(baseURL+"/api/v3/worker-mgt/tags", wrapper.FetchWorkerTags)
|
||||||
router.POST(baseURL+"/api/v3/worker-mgt/clusters", wrapper.CreateWorkerCluster)
|
router.POST(baseURL+"/api/v3/worker-mgt/tags", wrapper.CreateWorkerTag)
|
||||||
router.GET(baseURL+"/api/v3/worker-mgt/workers", wrapper.FetchWorkers)
|
router.GET(baseURL+"/api/v3/worker-mgt/workers", wrapper.FetchWorkers)
|
||||||
router.DELETE(baseURL+"/api/v3/worker-mgt/workers/:worker_id", wrapper.DeleteWorker)
|
router.DELETE(baseURL+"/api/v3/worker-mgt/workers/:worker_id", wrapper.DeleteWorker)
|
||||||
router.GET(baseURL+"/api/v3/worker-mgt/workers/:worker_id", wrapper.FetchWorker)
|
router.GET(baseURL+"/api/v3/worker-mgt/workers/:worker_id", wrapper.FetchWorker)
|
||||||
router.POST(baseURL+"/api/v3/worker-mgt/workers/:worker_id/setclusters", wrapper.SetWorkerClusters)
|
|
||||||
router.POST(baseURL+"/api/v3/worker-mgt/workers/:worker_id/setstatus", wrapper.RequestWorkerStatusChange)
|
router.POST(baseURL+"/api/v3/worker-mgt/workers/:worker_id/setstatus", wrapper.RequestWorkerStatusChange)
|
||||||
|
router.POST(baseURL+"/api/v3/worker-mgt/workers/:worker_id/settags", wrapper.SetWorkerTags)
|
||||||
router.GET(baseURL+"/api/v3/worker-mgt/workers/:worker_id/sleep-schedule", wrapper.FetchWorkerSleepSchedule)
|
router.GET(baseURL+"/api/v3/worker-mgt/workers/:worker_id/sleep-schedule", wrapper.FetchWorkerSleepSchedule)
|
||||||
router.POST(baseURL+"/api/v3/worker-mgt/workers/:worker_id/sleep-schedule", wrapper.SetWorkerSleepSchedule)
|
router.POST(baseURL+"/api/v3/worker-mgt/workers/:worker_id/sleep-schedule", wrapper.SetWorkerSleepSchedule)
|
||||||
router.POST(baseURL+"/api/v3/worker/register-worker", wrapper.RegisterWorker)
|
router.POST(baseURL+"/api/v3/worker/register-worker", wrapper.RegisterWorker)
|
||||||
|
76
pkg/api/openapi_types.gen.go
generated
76
pkg/api/openapi_types.gen.go
generated
@ -636,8 +636,8 @@ type SubmittedJob struct {
|
|||||||
// If this field is ommitted, the check is bypassed.
|
// If this field is ommitted, the check is bypassed.
|
||||||
TypeEtag *string `json:"type_etag,omitempty"`
|
TypeEtag *string `json:"type_etag,omitempty"`
|
||||||
|
|
||||||
// Worker Cluster that should execute this job. When a cluster ID is given, only Workers in that cluster will be scheduled to work on it. If empty or ommitted, all workers can work on this job.
|
// Worker tag that should execute this job. When a tag ID is given, only Workers in that tag will be scheduled to work on it. If empty or ommitted, all workers can work on this job.
|
||||||
WorkerCluster *string `json:"worker_cluster,omitempty"`
|
WorkerTag *string `json:"worker_tag,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// The task as it exists in the Manager database, i.e. before variable replacement.
|
// The task as it exists in the Manager database, i.e. before variable replacement.
|
||||||
@ -719,9 +719,6 @@ type Worker struct {
|
|||||||
// Embedded struct due to allOf(#/components/schemas/WorkerSummary)
|
// Embedded struct due to allOf(#/components/schemas/WorkerSummary)
|
||||||
WorkerSummary `yaml:",inline"`
|
WorkerSummary `yaml:",inline"`
|
||||||
// Embedded fields due to inline allOf schema
|
// Embedded fields due to inline allOf schema
|
||||||
// Clusters of which this Worker is a member.
|
|
||||||
Clusters *[]WorkerCluster `json:"clusters,omitempty"`
|
|
||||||
|
|
||||||
// IP address of the Worker
|
// IP address of the Worker
|
||||||
IpAddress string `json:"ip_address"`
|
IpAddress string `json:"ip_address"`
|
||||||
|
|
||||||
@ -729,29 +726,13 @@ type Worker struct {
|
|||||||
Platform string `json:"platform"`
|
Platform string `json:"platform"`
|
||||||
SupportedTaskTypes []string `json:"supported_task_types"`
|
SupportedTaskTypes []string `json:"supported_task_types"`
|
||||||
|
|
||||||
|
// Tags of which this Worker is a member.
|
||||||
|
Tags *[]WorkerTag `json:"tags,omitempty"`
|
||||||
|
|
||||||
// Task assigned to a Worker.
|
// Task assigned to a Worker.
|
||||||
Task *WorkerTask `json:"task,omitempty"`
|
Task *WorkerTask `json:"task,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Cluster of workers. A job can optionally specify which cluster it should be limited to. Workers can be part of multiple clusters simultaneously.
|
|
||||||
type WorkerCluster struct {
|
|
||||||
Description *string `json:"description,omitempty"`
|
|
||||||
|
|
||||||
// UUID of the cluster. Can be ommitted when creating a new cluster, in which case a random UUID will be assigned.
|
|
||||||
Id *string `json:"id,omitempty"`
|
|
||||||
Name string `json:"name"`
|
|
||||||
}
|
|
||||||
|
|
||||||
// Request to change which clusters this Worker is assigned to.
|
|
||||||
type WorkerClusterChangeRequest struct {
|
|
||||||
ClusterIds []string `json:"cluster_ids"`
|
|
||||||
}
|
|
||||||
|
|
||||||
// WorkerClusterList defines model for WorkerClusterList.
|
|
||||||
type WorkerClusterList struct {
|
|
||||||
Clusters *[]WorkerCluster `json:"clusters,omitempty"`
|
|
||||||
}
|
|
||||||
|
|
||||||
// List of workers.
|
// List of workers.
|
||||||
type WorkerList struct {
|
type WorkerList struct {
|
||||||
Workers []WorkerSummary `json:"workers"`
|
Workers []WorkerSummary `json:"workers"`
|
||||||
@ -818,6 +799,25 @@ type WorkerSummary struct {
|
|||||||
Version string `json:"version"`
|
Version string `json:"version"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Tag of workers. A job can optionally specify which tag it should be limited to. Workers can be part of multiple tags simultaneously.
|
||||||
|
type WorkerTag struct {
|
||||||
|
Description *string `json:"description,omitempty"`
|
||||||
|
|
||||||
|
// UUID of the tag. Can be ommitted when creating a new tag, in which case a random UUID will be assigned.
|
||||||
|
Id *string `json:"id,omitempty"`
|
||||||
|
Name string `json:"name"`
|
||||||
|
}
|
||||||
|
|
||||||
|
// Request to change which tags this Worker is assigned to.
|
||||||
|
type WorkerTagChangeRequest struct {
|
||||||
|
TagIds []string `json:"tag_ids"`
|
||||||
|
}
|
||||||
|
|
||||||
|
// WorkerTagList defines model for WorkerTagList.
|
||||||
|
type WorkerTagList struct {
|
||||||
|
Tags *[]WorkerTag `json:"tags,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
// WorkerTask defines model for WorkerTask.
|
// WorkerTask defines model for WorkerTask.
|
||||||
type WorkerTask struct {
|
type WorkerTask struct {
|
||||||
// Embedded struct due to allOf(#/components/schemas/TaskSummary)
|
// Embedded struct due to allOf(#/components/schemas/TaskSummary)
|
||||||
@ -871,18 +871,18 @@ type ShamanFileStoreParams struct {
|
|||||||
// SetTaskStatusJSONBody defines parameters for SetTaskStatus.
|
// SetTaskStatusJSONBody defines parameters for SetTaskStatus.
|
||||||
type SetTaskStatusJSONBody TaskStatusChange
|
type SetTaskStatusJSONBody TaskStatusChange
|
||||||
|
|
||||||
// UpdateWorkerClusterJSONBody defines parameters for UpdateWorkerCluster.
|
// UpdateWorkerTagJSONBody defines parameters for UpdateWorkerTag.
|
||||||
type UpdateWorkerClusterJSONBody WorkerCluster
|
type UpdateWorkerTagJSONBody WorkerTag
|
||||||
|
|
||||||
// CreateWorkerClusterJSONBody defines parameters for CreateWorkerCluster.
|
// CreateWorkerTagJSONBody defines parameters for CreateWorkerTag.
|
||||||
type CreateWorkerClusterJSONBody WorkerCluster
|
type CreateWorkerTagJSONBody WorkerTag
|
||||||
|
|
||||||
// SetWorkerClustersJSONBody defines parameters for SetWorkerClusters.
|
|
||||||
type SetWorkerClustersJSONBody WorkerClusterChangeRequest
|
|
||||||
|
|
||||||
// RequestWorkerStatusChangeJSONBody defines parameters for RequestWorkerStatusChange.
|
// RequestWorkerStatusChangeJSONBody defines parameters for RequestWorkerStatusChange.
|
||||||
type RequestWorkerStatusChangeJSONBody WorkerStatusChangeRequest
|
type RequestWorkerStatusChangeJSONBody WorkerStatusChangeRequest
|
||||||
|
|
||||||
|
// SetWorkerTagsJSONBody defines parameters for SetWorkerTags.
|
||||||
|
type SetWorkerTagsJSONBody WorkerTagChangeRequest
|
||||||
|
|
||||||
// SetWorkerSleepScheduleJSONBody defines parameters for SetWorkerSleepSchedule.
|
// SetWorkerSleepScheduleJSONBody defines parameters for SetWorkerSleepSchedule.
|
||||||
type SetWorkerSleepScheduleJSONBody WorkerSleepSchedule
|
type SetWorkerSleepScheduleJSONBody WorkerSleepSchedule
|
||||||
|
|
||||||
@ -934,18 +934,18 @@ type ShamanCheckoutRequirementsJSONRequestBody ShamanCheckoutRequirementsJSONBod
|
|||||||
// SetTaskStatusJSONRequestBody defines body for SetTaskStatus for application/json ContentType.
|
// SetTaskStatusJSONRequestBody defines body for SetTaskStatus for application/json ContentType.
|
||||||
type SetTaskStatusJSONRequestBody SetTaskStatusJSONBody
|
type SetTaskStatusJSONRequestBody SetTaskStatusJSONBody
|
||||||
|
|
||||||
// UpdateWorkerClusterJSONRequestBody defines body for UpdateWorkerCluster for application/json ContentType.
|
// UpdateWorkerTagJSONRequestBody defines body for UpdateWorkerTag for application/json ContentType.
|
||||||
type UpdateWorkerClusterJSONRequestBody UpdateWorkerClusterJSONBody
|
type UpdateWorkerTagJSONRequestBody UpdateWorkerTagJSONBody
|
||||||
|
|
||||||
// CreateWorkerClusterJSONRequestBody defines body for CreateWorkerCluster for application/json ContentType.
|
// CreateWorkerTagJSONRequestBody defines body for CreateWorkerTag for application/json ContentType.
|
||||||
type CreateWorkerClusterJSONRequestBody CreateWorkerClusterJSONBody
|
type CreateWorkerTagJSONRequestBody CreateWorkerTagJSONBody
|
||||||
|
|
||||||
// SetWorkerClustersJSONRequestBody defines body for SetWorkerClusters for application/json ContentType.
|
|
||||||
type SetWorkerClustersJSONRequestBody SetWorkerClustersJSONBody
|
|
||||||
|
|
||||||
// RequestWorkerStatusChangeJSONRequestBody defines body for RequestWorkerStatusChange for application/json ContentType.
|
// RequestWorkerStatusChangeJSONRequestBody defines body for RequestWorkerStatusChange for application/json ContentType.
|
||||||
type RequestWorkerStatusChangeJSONRequestBody RequestWorkerStatusChangeJSONBody
|
type RequestWorkerStatusChangeJSONRequestBody RequestWorkerStatusChangeJSONBody
|
||||||
|
|
||||||
|
// SetWorkerTagsJSONRequestBody defines body for SetWorkerTags for application/json ContentType.
|
||||||
|
type SetWorkerTagsJSONRequestBody SetWorkerTagsJSONBody
|
||||||
|
|
||||||
// SetWorkerSleepScheduleJSONRequestBody defines body for SetWorkerSleepSchedule for application/json ContentType.
|
// SetWorkerSleepScheduleJSONRequestBody defines body for SetWorkerSleepSchedule for application/json ContentType.
|
||||||
type SetWorkerSleepScheduleJSONRequestBody SetWorkerSleepScheduleJSONBody
|
type SetWorkerSleepScheduleJSONRequestBody SetWorkerSleepScheduleJSONBody
|
||||||
|
|
||||||
|
42
web/app/src/manager-api/index.js
generated
42
web/app/src/manager-api/index.js
generated
@ -73,9 +73,6 @@ import TaskUpdate from './model/TaskUpdate';
|
|||||||
import TaskWorker from './model/TaskWorker';
|
import TaskWorker from './model/TaskWorker';
|
||||||
import Worker from './model/Worker';
|
import Worker from './model/Worker';
|
||||||
import WorkerAllOf from './model/WorkerAllOf';
|
import WorkerAllOf from './model/WorkerAllOf';
|
||||||
import WorkerCluster from './model/WorkerCluster';
|
|
||||||
import WorkerClusterChangeRequest from './model/WorkerClusterChangeRequest';
|
|
||||||
import WorkerClusterList from './model/WorkerClusterList';
|
|
||||||
import WorkerList from './model/WorkerList';
|
import WorkerList from './model/WorkerList';
|
||||||
import WorkerRegistration from './model/WorkerRegistration';
|
import WorkerRegistration from './model/WorkerRegistration';
|
||||||
import WorkerSignOn from './model/WorkerSignOn';
|
import WorkerSignOn from './model/WorkerSignOn';
|
||||||
@ -85,6 +82,9 @@ import WorkerStateChanged from './model/WorkerStateChanged';
|
|||||||
import WorkerStatus from './model/WorkerStatus';
|
import WorkerStatus from './model/WorkerStatus';
|
||||||
import WorkerStatusChangeRequest from './model/WorkerStatusChangeRequest';
|
import WorkerStatusChangeRequest from './model/WorkerStatusChangeRequest';
|
||||||
import WorkerSummary from './model/WorkerSummary';
|
import WorkerSummary from './model/WorkerSummary';
|
||||||
|
import WorkerTag from './model/WorkerTag';
|
||||||
|
import WorkerTagChangeRequest from './model/WorkerTagChangeRequest';
|
||||||
|
import WorkerTagList from './model/WorkerTagList';
|
||||||
import WorkerTask from './model/WorkerTask';
|
import WorkerTask from './model/WorkerTask';
|
||||||
import WorkerTaskAllOf from './model/WorkerTaskAllOf';
|
import WorkerTaskAllOf from './model/WorkerTaskAllOf';
|
||||||
import JobsApi from './manager/JobsApi';
|
import JobsApi from './manager/JobsApi';
|
||||||
@ -492,24 +492,6 @@ export {
|
|||||||
*/
|
*/
|
||||||
WorkerAllOf,
|
WorkerAllOf,
|
||||||
|
|
||||||
/**
|
|
||||||
* The WorkerCluster model constructor.
|
|
||||||
* @property {module:model/WorkerCluster}
|
|
||||||
*/
|
|
||||||
WorkerCluster,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The WorkerClusterChangeRequest model constructor.
|
|
||||||
* @property {module:model/WorkerClusterChangeRequest}
|
|
||||||
*/
|
|
||||||
WorkerClusterChangeRequest,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The WorkerClusterList model constructor.
|
|
||||||
* @property {module:model/WorkerClusterList}
|
|
||||||
*/
|
|
||||||
WorkerClusterList,
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The WorkerList model constructor.
|
* The WorkerList model constructor.
|
||||||
* @property {module:model/WorkerList}
|
* @property {module:model/WorkerList}
|
||||||
@ -564,6 +546,24 @@ export {
|
|||||||
*/
|
*/
|
||||||
WorkerSummary,
|
WorkerSummary,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The WorkerTag model constructor.
|
||||||
|
* @property {module:model/WorkerTag}
|
||||||
|
*/
|
||||||
|
WorkerTag,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The WorkerTagChangeRequest model constructor.
|
||||||
|
* @property {module:model/WorkerTagChangeRequest}
|
||||||
|
*/
|
||||||
|
WorkerTagChangeRequest,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The WorkerTagList model constructor.
|
||||||
|
* @property {module:model/WorkerTagList}
|
||||||
|
*/
|
||||||
|
WorkerTagList,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The WorkerTask model constructor.
|
* The WorkerTask model constructor.
|
||||||
* @property {module:model/WorkerTask}
|
* @property {module:model/WorkerTask}
|
||||||
|
366
web/app/src/manager-api/manager/WorkerMgtApi.js
generated
366
web/app/src/manager-api/manager/WorkerMgtApi.js
generated
@ -15,12 +15,12 @@
|
|||||||
import ApiClient from "../ApiClient";
|
import ApiClient from "../ApiClient";
|
||||||
import Error from '../model/Error';
|
import Error from '../model/Error';
|
||||||
import Worker from '../model/Worker';
|
import Worker from '../model/Worker';
|
||||||
import WorkerCluster from '../model/WorkerCluster';
|
|
||||||
import WorkerClusterChangeRequest from '../model/WorkerClusterChangeRequest';
|
|
||||||
import WorkerClusterList from '../model/WorkerClusterList';
|
|
||||||
import WorkerList from '../model/WorkerList';
|
import WorkerList from '../model/WorkerList';
|
||||||
import WorkerSleepSchedule from '../model/WorkerSleepSchedule';
|
import WorkerSleepSchedule from '../model/WorkerSleepSchedule';
|
||||||
import WorkerStatusChangeRequest from '../model/WorkerStatusChangeRequest';
|
import WorkerStatusChangeRequest from '../model/WorkerStatusChangeRequest';
|
||||||
|
import WorkerTag from '../model/WorkerTag';
|
||||||
|
import WorkerTagChangeRequest from '../model/WorkerTagChangeRequest';
|
||||||
|
import WorkerTagList from '../model/WorkerTagList';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* WorkerMgt service.
|
* WorkerMgt service.
|
||||||
@ -43,15 +43,15 @@ export default class WorkerMgtApi {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a new worker cluster.
|
* Create a new worker tag.
|
||||||
* @param {module:model/WorkerCluster} workerCluster The worker cluster.
|
* @param {module:model/WorkerTag} workerTag The worker tag.
|
||||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/WorkerCluster} and HTTP response
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/WorkerTag} and HTTP response
|
||||||
*/
|
*/
|
||||||
createWorkerClusterWithHttpInfo(workerCluster) {
|
createWorkerTagWithHttpInfo(workerTag) {
|
||||||
let postBody = workerCluster;
|
let postBody = workerTag;
|
||||||
// verify the required parameter 'workerCluster' is set
|
// verify the required parameter 'workerTag' is set
|
||||||
if (workerCluster === undefined || workerCluster === null) {
|
if (workerTag === undefined || workerTag === null) {
|
||||||
throw new Error("Missing the required parameter 'workerCluster' when calling createWorkerCluster");
|
throw new Error("Missing the required parameter 'workerTag' when calling createWorkerTag");
|
||||||
}
|
}
|
||||||
|
|
||||||
let pathParams = {
|
let pathParams = {
|
||||||
@ -66,21 +66,21 @@ export default class WorkerMgtApi {
|
|||||||
let authNames = [];
|
let authNames = [];
|
||||||
let contentTypes = ['application/json'];
|
let contentTypes = ['application/json'];
|
||||||
let accepts = ['application/json'];
|
let accepts = ['application/json'];
|
||||||
let returnType = WorkerCluster;
|
let returnType = WorkerTag;
|
||||||
return this.apiClient.callApi(
|
return this.apiClient.callApi(
|
||||||
'/api/v3/worker-mgt/clusters', 'POST',
|
'/api/v3/worker-mgt/tags', 'POST',
|
||||||
pathParams, queryParams, headerParams, formParams, postBody,
|
pathParams, queryParams, headerParams, formParams, postBody,
|
||||||
authNames, contentTypes, accepts, returnType, null
|
authNames, contentTypes, accepts, returnType, null
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a new worker cluster.
|
* Create a new worker tag.
|
||||||
* @param {module:model/WorkerCluster} workerCluster The worker cluster.
|
* @param {module:model/WorkerTag} workerTag The worker tag.
|
||||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/WorkerCluster}
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/WorkerTag}
|
||||||
*/
|
*/
|
||||||
createWorkerCluster(workerCluster) {
|
createWorkerTag(workerTag) {
|
||||||
return this.createWorkerClusterWithHttpInfo(workerCluster)
|
return this.createWorkerTagWithHttpInfo(workerTag)
|
||||||
.then(function(response_and_data) {
|
.then(function(response_and_data) {
|
||||||
return response_and_data.data;
|
return response_and_data.data;
|
||||||
});
|
});
|
||||||
@ -134,19 +134,19 @@ export default class WorkerMgtApi {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Remove this worker cluster. This unassigns all workers from the cluster and removes it.
|
* Remove this worker tag. This unassigns all workers from the tag and removes it.
|
||||||
* @param {String} clusterId
|
* @param {String} tagId
|
||||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
||||||
*/
|
*/
|
||||||
deleteWorkerClusterWithHttpInfo(clusterId) {
|
deleteWorkerTagWithHttpInfo(tagId) {
|
||||||
let postBody = null;
|
let postBody = null;
|
||||||
// verify the required parameter 'clusterId' is set
|
// verify the required parameter 'tagId' is set
|
||||||
if (clusterId === undefined || clusterId === null) {
|
if (tagId === undefined || tagId === null) {
|
||||||
throw new Error("Missing the required parameter 'clusterId' when calling deleteWorkerCluster");
|
throw new Error("Missing the required parameter 'tagId' when calling deleteWorkerTag");
|
||||||
}
|
}
|
||||||
|
|
||||||
let pathParams = {
|
let pathParams = {
|
||||||
'cluster_id': clusterId
|
'tag_id': tagId
|
||||||
};
|
};
|
||||||
let queryParams = {
|
let queryParams = {
|
||||||
};
|
};
|
||||||
@ -160,19 +160,19 @@ export default class WorkerMgtApi {
|
|||||||
let accepts = ['application/json'];
|
let accepts = ['application/json'];
|
||||||
let returnType = null;
|
let returnType = null;
|
||||||
return this.apiClient.callApi(
|
return this.apiClient.callApi(
|
||||||
'/api/v3/worker-mgt/cluster/{cluster_id}', 'DELETE',
|
'/api/v3/worker-mgt/tag/{tag_id}', 'DELETE',
|
||||||
pathParams, queryParams, headerParams, formParams, postBody,
|
pathParams, queryParams, headerParams, formParams, postBody,
|
||||||
authNames, contentTypes, accepts, returnType, null
|
authNames, contentTypes, accepts, returnType, null
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Remove this worker cluster. This unassigns all workers from the cluster and removes it.
|
* Remove this worker tag. This unassigns all workers from the tag and removes it.
|
||||||
* @param {String} clusterId
|
* @param {String} tagId
|
||||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
||||||
*/
|
*/
|
||||||
deleteWorkerCluster(clusterId) {
|
deleteWorkerTag(tagId) {
|
||||||
return this.deleteWorkerClusterWithHttpInfo(clusterId)
|
return this.deleteWorkerTagWithHttpInfo(tagId)
|
||||||
.then(function(response_and_data) {
|
.then(function(response_and_data) {
|
||||||
return response_and_data.data;
|
return response_and_data.data;
|
||||||
});
|
});
|
||||||
@ -225,91 +225,6 @@ export default class WorkerMgtApi {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get a single worker cluster.
|
|
||||||
* @param {String} clusterId
|
|
||||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/WorkerCluster} and HTTP response
|
|
||||||
*/
|
|
||||||
fetchWorkerClusterWithHttpInfo(clusterId) {
|
|
||||||
let postBody = null;
|
|
||||||
// verify the required parameter 'clusterId' is set
|
|
||||||
if (clusterId === undefined || clusterId === null) {
|
|
||||||
throw new Error("Missing the required parameter 'clusterId' when calling fetchWorkerCluster");
|
|
||||||
}
|
|
||||||
|
|
||||||
let pathParams = {
|
|
||||||
'cluster_id': clusterId
|
|
||||||
};
|
|
||||||
let queryParams = {
|
|
||||||
};
|
|
||||||
let headerParams = {
|
|
||||||
};
|
|
||||||
let formParams = {
|
|
||||||
};
|
|
||||||
|
|
||||||
let authNames = [];
|
|
||||||
let contentTypes = [];
|
|
||||||
let accepts = ['application/json'];
|
|
||||||
let returnType = WorkerCluster;
|
|
||||||
return this.apiClient.callApi(
|
|
||||||
'/api/v3/worker-mgt/cluster/{cluster_id}', 'GET',
|
|
||||||
pathParams, queryParams, headerParams, formParams, postBody,
|
|
||||||
authNames, contentTypes, accepts, returnType, null
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get a single worker cluster.
|
|
||||||
* @param {String} clusterId
|
|
||||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/WorkerCluster}
|
|
||||||
*/
|
|
||||||
fetchWorkerCluster(clusterId) {
|
|
||||||
return this.fetchWorkerClusterWithHttpInfo(clusterId)
|
|
||||||
.then(function(response_and_data) {
|
|
||||||
return response_and_data.data;
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get list of worker clusters.
|
|
||||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/WorkerClusterList} and HTTP response
|
|
||||||
*/
|
|
||||||
fetchWorkerClustersWithHttpInfo() {
|
|
||||||
let postBody = null;
|
|
||||||
|
|
||||||
let pathParams = {
|
|
||||||
};
|
|
||||||
let queryParams = {
|
|
||||||
};
|
|
||||||
let headerParams = {
|
|
||||||
};
|
|
||||||
let formParams = {
|
|
||||||
};
|
|
||||||
|
|
||||||
let authNames = [];
|
|
||||||
let contentTypes = [];
|
|
||||||
let accepts = ['application/json'];
|
|
||||||
let returnType = WorkerClusterList;
|
|
||||||
return this.apiClient.callApi(
|
|
||||||
'/api/v3/worker-mgt/clusters', 'GET',
|
|
||||||
pathParams, queryParams, headerParams, formParams, postBody,
|
|
||||||
authNames, contentTypes, accepts, returnType, null
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get list of worker clusters.
|
|
||||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/WorkerClusterList}
|
|
||||||
*/
|
|
||||||
fetchWorkerClusters() {
|
|
||||||
return this.fetchWorkerClustersWithHttpInfo()
|
|
||||||
.then(function(response_and_data) {
|
|
||||||
return response_and_data.data;
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {String} workerId
|
* @param {String} workerId
|
||||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/WorkerSleepSchedule} and HTTP response
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/WorkerSleepSchedule} and HTTP response
|
||||||
@ -354,6 +269,91 @@ export default class WorkerMgtApi {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get a single worker tag.
|
||||||
|
* @param {String} tagId
|
||||||
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/WorkerTag} and HTTP response
|
||||||
|
*/
|
||||||
|
fetchWorkerTagWithHttpInfo(tagId) {
|
||||||
|
let postBody = null;
|
||||||
|
// verify the required parameter 'tagId' is set
|
||||||
|
if (tagId === undefined || tagId === null) {
|
||||||
|
throw new Error("Missing the required parameter 'tagId' when calling fetchWorkerTag");
|
||||||
|
}
|
||||||
|
|
||||||
|
let pathParams = {
|
||||||
|
'tag_id': tagId
|
||||||
|
};
|
||||||
|
let queryParams = {
|
||||||
|
};
|
||||||
|
let headerParams = {
|
||||||
|
};
|
||||||
|
let formParams = {
|
||||||
|
};
|
||||||
|
|
||||||
|
let authNames = [];
|
||||||
|
let contentTypes = [];
|
||||||
|
let accepts = ['application/json'];
|
||||||
|
let returnType = WorkerTag;
|
||||||
|
return this.apiClient.callApi(
|
||||||
|
'/api/v3/worker-mgt/tag/{tag_id}', 'GET',
|
||||||
|
pathParams, queryParams, headerParams, formParams, postBody,
|
||||||
|
authNames, contentTypes, accepts, returnType, null
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get a single worker tag.
|
||||||
|
* @param {String} tagId
|
||||||
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/WorkerTag}
|
||||||
|
*/
|
||||||
|
fetchWorkerTag(tagId) {
|
||||||
|
return this.fetchWorkerTagWithHttpInfo(tagId)
|
||||||
|
.then(function(response_and_data) {
|
||||||
|
return response_and_data.data;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get list of worker tags.
|
||||||
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/WorkerTagList} and HTTP response
|
||||||
|
*/
|
||||||
|
fetchWorkerTagsWithHttpInfo() {
|
||||||
|
let postBody = null;
|
||||||
|
|
||||||
|
let pathParams = {
|
||||||
|
};
|
||||||
|
let queryParams = {
|
||||||
|
};
|
||||||
|
let headerParams = {
|
||||||
|
};
|
||||||
|
let formParams = {
|
||||||
|
};
|
||||||
|
|
||||||
|
let authNames = [];
|
||||||
|
let contentTypes = [];
|
||||||
|
let accepts = ['application/json'];
|
||||||
|
let returnType = WorkerTagList;
|
||||||
|
return this.apiClient.callApi(
|
||||||
|
'/api/v3/worker-mgt/tags', 'GET',
|
||||||
|
pathParams, queryParams, headerParams, formParams, postBody,
|
||||||
|
authNames, contentTypes, accepts, returnType, null
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get list of worker tags.
|
||||||
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/WorkerTagList}
|
||||||
|
*/
|
||||||
|
fetchWorkerTags() {
|
||||||
|
return this.fetchWorkerTagsWithHttpInfo()
|
||||||
|
.then(function(response_and_data) {
|
||||||
|
return response_and_data.data;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get list of workers.
|
* Get list of workers.
|
||||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/WorkerList} and HTTP response
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/WorkerList} and HTTP response
|
||||||
@ -443,56 +443,6 @@ export default class WorkerMgtApi {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param {String} workerId
|
|
||||||
* @param {module:model/WorkerClusterChangeRequest} workerClusterChangeRequest The list of cluster IDs this worker should be a member of.
|
|
||||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
||||||
*/
|
|
||||||
setWorkerClustersWithHttpInfo(workerId, workerClusterChangeRequest) {
|
|
||||||
let postBody = workerClusterChangeRequest;
|
|
||||||
// verify the required parameter 'workerId' is set
|
|
||||||
if (workerId === undefined || workerId === null) {
|
|
||||||
throw new Error("Missing the required parameter 'workerId' when calling setWorkerClusters");
|
|
||||||
}
|
|
||||||
// verify the required parameter 'workerClusterChangeRequest' is set
|
|
||||||
if (workerClusterChangeRequest === undefined || workerClusterChangeRequest === null) {
|
|
||||||
throw new Error("Missing the required parameter 'workerClusterChangeRequest' when calling setWorkerClusters");
|
|
||||||
}
|
|
||||||
|
|
||||||
let pathParams = {
|
|
||||||
'worker_id': workerId
|
|
||||||
};
|
|
||||||
let queryParams = {
|
|
||||||
};
|
|
||||||
let headerParams = {
|
|
||||||
};
|
|
||||||
let formParams = {
|
|
||||||
};
|
|
||||||
|
|
||||||
let authNames = [];
|
|
||||||
let contentTypes = ['application/json'];
|
|
||||||
let accepts = ['application/json'];
|
|
||||||
let returnType = null;
|
|
||||||
return this.apiClient.callApi(
|
|
||||||
'/api/v3/worker-mgt/workers/{worker_id}/setclusters', 'POST',
|
|
||||||
pathParams, queryParams, headerParams, formParams, postBody,
|
|
||||||
authNames, contentTypes, accepts, returnType, null
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param {String} workerId
|
|
||||||
* @param {module:model/WorkerClusterChangeRequest} workerClusterChangeRequest The list of cluster IDs this worker should be a member of.
|
|
||||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
||||||
*/
|
|
||||||
setWorkerClusters(workerId, workerClusterChangeRequest) {
|
|
||||||
return this.setWorkerClustersWithHttpInfo(workerId, workerClusterChangeRequest)
|
|
||||||
.then(function(response_and_data) {
|
|
||||||
return response_and_data.data;
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {String} workerId
|
* @param {String} workerId
|
||||||
* @param {module:model/WorkerSleepSchedule} workerSleepSchedule The new sleep schedule.
|
* @param {module:model/WorkerSleepSchedule} workerSleepSchedule The new sleep schedule.
|
||||||
@ -544,24 +494,23 @@ export default class WorkerMgtApi {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Update an existing worker cluster.
|
* @param {String} workerId
|
||||||
* @param {String} clusterId
|
* @param {module:model/WorkerTagChangeRequest} workerTagChangeRequest The list of worker tag IDs this worker should be a member of.
|
||||||
* @param {module:model/WorkerCluster} workerCluster The updated worker cluster.
|
|
||||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
||||||
*/
|
*/
|
||||||
updateWorkerClusterWithHttpInfo(clusterId, workerCluster) {
|
setWorkerTagsWithHttpInfo(workerId, workerTagChangeRequest) {
|
||||||
let postBody = workerCluster;
|
let postBody = workerTagChangeRequest;
|
||||||
// verify the required parameter 'clusterId' is set
|
// verify the required parameter 'workerId' is set
|
||||||
if (clusterId === undefined || clusterId === null) {
|
if (workerId === undefined || workerId === null) {
|
||||||
throw new Error("Missing the required parameter 'clusterId' when calling updateWorkerCluster");
|
throw new Error("Missing the required parameter 'workerId' when calling setWorkerTags");
|
||||||
}
|
}
|
||||||
// verify the required parameter 'workerCluster' is set
|
// verify the required parameter 'workerTagChangeRequest' is set
|
||||||
if (workerCluster === undefined || workerCluster === null) {
|
if (workerTagChangeRequest === undefined || workerTagChangeRequest === null) {
|
||||||
throw new Error("Missing the required parameter 'workerCluster' when calling updateWorkerCluster");
|
throw new Error("Missing the required parameter 'workerTagChangeRequest' when calling setWorkerTags");
|
||||||
}
|
}
|
||||||
|
|
||||||
let pathParams = {
|
let pathParams = {
|
||||||
'cluster_id': clusterId
|
'worker_id': workerId
|
||||||
};
|
};
|
||||||
let queryParams = {
|
let queryParams = {
|
||||||
};
|
};
|
||||||
@ -575,20 +524,71 @@ export default class WorkerMgtApi {
|
|||||||
let accepts = ['application/json'];
|
let accepts = ['application/json'];
|
||||||
let returnType = null;
|
let returnType = null;
|
||||||
return this.apiClient.callApi(
|
return this.apiClient.callApi(
|
||||||
'/api/v3/worker-mgt/cluster/{cluster_id}', 'PUT',
|
'/api/v3/worker-mgt/workers/{worker_id}/settags', 'POST',
|
||||||
pathParams, queryParams, headerParams, formParams, postBody,
|
pathParams, queryParams, headerParams, formParams, postBody,
|
||||||
authNames, contentTypes, accepts, returnType, null
|
authNames, contentTypes, accepts, returnType, null
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Update an existing worker cluster.
|
* @param {String} workerId
|
||||||
* @param {String} clusterId
|
* @param {module:model/WorkerTagChangeRequest} workerTagChangeRequest The list of worker tag IDs this worker should be a member of.
|
||||||
* @param {module:model/WorkerCluster} workerCluster The updated worker cluster.
|
|
||||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
||||||
*/
|
*/
|
||||||
updateWorkerCluster(clusterId, workerCluster) {
|
setWorkerTags(workerId, workerTagChangeRequest) {
|
||||||
return this.updateWorkerClusterWithHttpInfo(clusterId, workerCluster)
|
return this.setWorkerTagsWithHttpInfo(workerId, workerTagChangeRequest)
|
||||||
|
.then(function(response_and_data) {
|
||||||
|
return response_and_data.data;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Update an existing worker tag.
|
||||||
|
* @param {String} tagId
|
||||||
|
* @param {module:model/WorkerTag} workerTag The updated worker tag.
|
||||||
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
||||||
|
*/
|
||||||
|
updateWorkerTagWithHttpInfo(tagId, workerTag) {
|
||||||
|
let postBody = workerTag;
|
||||||
|
// verify the required parameter 'tagId' is set
|
||||||
|
if (tagId === undefined || tagId === null) {
|
||||||
|
throw new Error("Missing the required parameter 'tagId' when calling updateWorkerTag");
|
||||||
|
}
|
||||||
|
// verify the required parameter 'workerTag' is set
|
||||||
|
if (workerTag === undefined || workerTag === null) {
|
||||||
|
throw new Error("Missing the required parameter 'workerTag' when calling updateWorkerTag");
|
||||||
|
}
|
||||||
|
|
||||||
|
let pathParams = {
|
||||||
|
'tag_id': tagId
|
||||||
|
};
|
||||||
|
let queryParams = {
|
||||||
|
};
|
||||||
|
let headerParams = {
|
||||||
|
};
|
||||||
|
let formParams = {
|
||||||
|
};
|
||||||
|
|
||||||
|
let authNames = [];
|
||||||
|
let contentTypes = ['application/json'];
|
||||||
|
let accepts = ['application/json'];
|
||||||
|
let returnType = null;
|
||||||
|
return this.apiClient.callApi(
|
||||||
|
'/api/v3/worker-mgt/tag/{tag_id}', 'PUT',
|
||||||
|
pathParams, queryParams, headerParams, formParams, postBody,
|
||||||
|
authNames, contentTypes, accepts, returnType, null
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Update an existing worker tag.
|
||||||
|
* @param {String} tagId
|
||||||
|
* @param {module:model/WorkerTag} workerTag The updated worker tag.
|
||||||
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
||||||
|
*/
|
||||||
|
updateWorkerTag(tagId, workerTag) {
|
||||||
|
return this.updateWorkerTagWithHttpInfo(tagId, workerTag)
|
||||||
.then(function(response_and_data) {
|
.then(function(response_and_data) {
|
||||||
return response_and_data.data;
|
return response_and_data.data;
|
||||||
});
|
});
|
||||||
|
16
web/app/src/manager-api/model/Job.js
generated
16
web/app/src/manager-api/model/Job.js
generated
@ -97,8 +97,8 @@ class Job {
|
|||||||
if (data.hasOwnProperty('storage')) {
|
if (data.hasOwnProperty('storage')) {
|
||||||
obj['storage'] = JobStorageInfo.constructFromObject(data['storage']);
|
obj['storage'] = JobStorageInfo.constructFromObject(data['storage']);
|
||||||
}
|
}
|
||||||
if (data.hasOwnProperty('worker_cluster')) {
|
if (data.hasOwnProperty('worker_tag')) {
|
||||||
obj['worker_cluster'] = ApiClient.convertToType(data['worker_cluster'], 'String');
|
obj['worker_tag'] = ApiClient.convertToType(data['worker_tag'], 'String');
|
||||||
}
|
}
|
||||||
if (data.hasOwnProperty('id')) {
|
if (data.hasOwnProperty('id')) {
|
||||||
obj['id'] = ApiClient.convertToType(data['id'], 'String');
|
obj['id'] = ApiClient.convertToType(data['id'], 'String');
|
||||||
@ -170,10 +170,10 @@ Job.prototype['submitter_platform'] = undefined;
|
|||||||
Job.prototype['storage'] = undefined;
|
Job.prototype['storage'] = undefined;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Worker Cluster that should execute this job. When a cluster ID is given, only Workers in that cluster will be scheduled to work on it. If empty or ommitted, all workers can work on this job.
|
* Worker tag that should execute this job. When a tag ID is given, only Workers in that tag will be scheduled to work on it. If empty or ommitted, all workers can work on this job.
|
||||||
* @member {String} worker_cluster
|
* @member {String} worker_tag
|
||||||
*/
|
*/
|
||||||
Job.prototype['worker_cluster'] = undefined;
|
Job.prototype['worker_tag'] = undefined;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* UUID of the Job
|
* UUID of the Job
|
||||||
@ -249,10 +249,10 @@ SubmittedJob.prototype['submitter_platform'] = undefined;
|
|||||||
*/
|
*/
|
||||||
SubmittedJob.prototype['storage'] = undefined;
|
SubmittedJob.prototype['storage'] = undefined;
|
||||||
/**
|
/**
|
||||||
* Worker Cluster that should execute this job. When a cluster ID is given, only Workers in that cluster will be scheduled to work on it. If empty or ommitted, all workers can work on this job.
|
* Worker tag that should execute this job. When a tag ID is given, only Workers in that tag will be scheduled to work on it. If empty or ommitted, all workers can work on this job.
|
||||||
* @member {String} worker_cluster
|
* @member {String} worker_tag
|
||||||
*/
|
*/
|
||||||
SubmittedJob.prototype['worker_cluster'] = undefined;
|
SubmittedJob.prototype['worker_tag'] = undefined;
|
||||||
// Implement JobAllOf interface:
|
// Implement JobAllOf interface:
|
||||||
/**
|
/**
|
||||||
* UUID of the Job
|
* UUID of the Job
|
||||||
|
10
web/app/src/manager-api/model/SubmittedJob.js
generated
10
web/app/src/manager-api/model/SubmittedJob.js
generated
@ -81,8 +81,8 @@ class SubmittedJob {
|
|||||||
if (data.hasOwnProperty('storage')) {
|
if (data.hasOwnProperty('storage')) {
|
||||||
obj['storage'] = JobStorageInfo.constructFromObject(data['storage']);
|
obj['storage'] = JobStorageInfo.constructFromObject(data['storage']);
|
||||||
}
|
}
|
||||||
if (data.hasOwnProperty('worker_cluster')) {
|
if (data.hasOwnProperty('worker_tag')) {
|
||||||
obj['worker_cluster'] = ApiClient.convertToType(data['worker_cluster'], 'String');
|
obj['worker_tag'] = ApiClient.convertToType(data['worker_tag'], 'String');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return obj;
|
return obj;
|
||||||
@ -136,10 +136,10 @@ SubmittedJob.prototype['submitter_platform'] = undefined;
|
|||||||
SubmittedJob.prototype['storage'] = undefined;
|
SubmittedJob.prototype['storage'] = undefined;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Worker Cluster that should execute this job. When a cluster ID is given, only Workers in that cluster will be scheduled to work on it. If empty or ommitted, all workers can work on this job.
|
* Worker tag that should execute this job. When a tag ID is given, only Workers in that tag will be scheduled to work on it. If empty or ommitted, all workers can work on this job.
|
||||||
* @member {String} worker_cluster
|
* @member {String} worker_tag
|
||||||
*/
|
*/
|
||||||
SubmittedJob.prototype['worker_cluster'] = undefined;
|
SubmittedJob.prototype['worker_tag'] = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
18
web/app/src/manager-api/model/Worker.js
generated
18
web/app/src/manager-api/model/Worker.js
generated
@ -13,10 +13,10 @@
|
|||||||
|
|
||||||
import ApiClient from '../ApiClient';
|
import ApiClient from '../ApiClient';
|
||||||
import WorkerAllOf from './WorkerAllOf';
|
import WorkerAllOf from './WorkerAllOf';
|
||||||
import WorkerCluster from './WorkerCluster';
|
|
||||||
import WorkerStatus from './WorkerStatus';
|
import WorkerStatus from './WorkerStatus';
|
||||||
import WorkerStatusChangeRequest from './WorkerStatusChangeRequest';
|
import WorkerStatusChangeRequest from './WorkerStatusChangeRequest';
|
||||||
import WorkerSummary from './WorkerSummary';
|
import WorkerSummary from './WorkerSummary';
|
||||||
|
import WorkerTag from './WorkerTag';
|
||||||
import WorkerTask from './WorkerTask';
|
import WorkerTask from './WorkerTask';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -102,8 +102,8 @@ class Worker {
|
|||||||
if (data.hasOwnProperty('task')) {
|
if (data.hasOwnProperty('task')) {
|
||||||
obj['task'] = WorkerTask.constructFromObject(data['task']);
|
obj['task'] = WorkerTask.constructFromObject(data['task']);
|
||||||
}
|
}
|
||||||
if (data.hasOwnProperty('clusters')) {
|
if (data.hasOwnProperty('tags')) {
|
||||||
obj['clusters'] = ApiClient.convertToType(data['clusters'], [WorkerCluster]);
|
obj['tags'] = ApiClient.convertToType(data['tags'], [WorkerTag]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return obj;
|
return obj;
|
||||||
@ -167,10 +167,10 @@ Worker.prototype['supported_task_types'] = undefined;
|
|||||||
Worker.prototype['task'] = undefined;
|
Worker.prototype['task'] = undefined;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Clusters of which this Worker is a member.
|
* Tags of which this Worker is a member.
|
||||||
* @member {Array.<module:model/WorkerCluster>} clusters
|
* @member {Array.<module:model/WorkerTag>} tags
|
||||||
*/
|
*/
|
||||||
Worker.prototype['clusters'] = undefined;
|
Worker.prototype['tags'] = undefined;
|
||||||
|
|
||||||
|
|
||||||
// Implement WorkerSummary interface:
|
// Implement WorkerSummary interface:
|
||||||
@ -220,10 +220,10 @@ WorkerAllOf.prototype['supported_task_types'] = undefined;
|
|||||||
*/
|
*/
|
||||||
WorkerAllOf.prototype['task'] = undefined;
|
WorkerAllOf.prototype['task'] = undefined;
|
||||||
/**
|
/**
|
||||||
* Clusters of which this Worker is a member.
|
* Tags of which this Worker is a member.
|
||||||
* @member {Array.<module:model/WorkerCluster>} clusters
|
* @member {Array.<module:model/WorkerTag>} tags
|
||||||
*/
|
*/
|
||||||
WorkerAllOf.prototype['clusters'] = undefined;
|
WorkerAllOf.prototype['tags'] = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
12
web/app/src/manager-api/model/WorkerAllOf.js
generated
12
web/app/src/manager-api/model/WorkerAllOf.js
generated
@ -12,7 +12,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import ApiClient from '../ApiClient';
|
import ApiClient from '../ApiClient';
|
||||||
import WorkerCluster from './WorkerCluster';
|
import WorkerTag from './WorkerTag';
|
||||||
import WorkerTask from './WorkerTask';
|
import WorkerTask from './WorkerTask';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -67,8 +67,8 @@ class WorkerAllOf {
|
|||||||
if (data.hasOwnProperty('task')) {
|
if (data.hasOwnProperty('task')) {
|
||||||
obj['task'] = WorkerTask.constructFromObject(data['task']);
|
obj['task'] = WorkerTask.constructFromObject(data['task']);
|
||||||
}
|
}
|
||||||
if (data.hasOwnProperty('clusters')) {
|
if (data.hasOwnProperty('tags')) {
|
||||||
obj['clusters'] = ApiClient.convertToType(data['clusters'], [WorkerCluster]);
|
obj['tags'] = ApiClient.convertToType(data['tags'], [WorkerTag]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return obj;
|
return obj;
|
||||||
@ -100,10 +100,10 @@ WorkerAllOf.prototype['supported_task_types'] = undefined;
|
|||||||
WorkerAllOf.prototype['task'] = undefined;
|
WorkerAllOf.prototype['task'] = undefined;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Clusters of which this Worker is a member.
|
* Tags of which this Worker is a member.
|
||||||
* @member {Array.<module:model/WorkerCluster>} clusters
|
* @member {Array.<module:model/WorkerTag>} tags
|
||||||
*/
|
*/
|
||||||
WorkerAllOf.prototype['clusters'] = undefined;
|
WorkerAllOf.prototype['tags'] = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,74 +0,0 @@
|
|||||||
/**
|
|
||||||
* 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 WorkerClusterChangeRequest model module.
|
|
||||||
* @module model/WorkerClusterChangeRequest
|
|
||||||
* @version 0.0.0
|
|
||||||
*/
|
|
||||||
class WorkerClusterChangeRequest {
|
|
||||||
/**
|
|
||||||
* Constructs a new <code>WorkerClusterChangeRequest</code>.
|
|
||||||
* Request to change which clusters this Worker is assigned to.
|
|
||||||
* @alias module:model/WorkerClusterChangeRequest
|
|
||||||
* @param clusterIds {Array.<String>}
|
|
||||||
*/
|
|
||||||
constructor(clusterIds) {
|
|
||||||
|
|
||||||
WorkerClusterChangeRequest.initialize(this, clusterIds);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 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, clusterIds) {
|
|
||||||
obj['cluster_ids'] = clusterIds;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Constructs a <code>WorkerClusterChangeRequest</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/WorkerClusterChangeRequest} obj Optional instance to populate.
|
|
||||||
* @return {module:model/WorkerClusterChangeRequest} The populated <code>WorkerClusterChangeRequest</code> instance.
|
|
||||||
*/
|
|
||||||
static constructFromObject(data, obj) {
|
|
||||||
if (data) {
|
|
||||||
obj = obj || new WorkerClusterChangeRequest();
|
|
||||||
|
|
||||||
if (data.hasOwnProperty('cluster_ids')) {
|
|
||||||
obj['cluster_ids'] = ApiClient.convertToType(data['cluster_ids'], ['String']);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return obj;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @member {Array.<String>} cluster_ids
|
|
||||||
*/
|
|
||||||
WorkerClusterChangeRequest.prototype['cluster_ids'] = undefined;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
export default WorkerClusterChangeRequest;
|
|
||||||
|
|
@ -14,20 +14,20 @@
|
|||||||
import ApiClient from '../ApiClient';
|
import ApiClient from '../ApiClient';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The WorkerCluster model module.
|
* The WorkerTag model module.
|
||||||
* @module model/WorkerCluster
|
* @module model/WorkerTag
|
||||||
* @version 0.0.0
|
* @version 0.0.0
|
||||||
*/
|
*/
|
||||||
class WorkerCluster {
|
class WorkerTag {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>WorkerCluster</code>.
|
* Constructs a new <code>WorkerTag</code>.
|
||||||
* Cluster of workers. A job can optionally specify which cluster it should be limited to. Workers can be part of multiple clusters simultaneously.
|
* Tag of workers. A job can optionally specify which tag it should be limited to. Workers can be part of multiple tags simultaneously.
|
||||||
* @alias module:model/WorkerCluster
|
* @alias module:model/WorkerTag
|
||||||
* @param name {String}
|
* @param name {String}
|
||||||
*/
|
*/
|
||||||
constructor(name) {
|
constructor(name) {
|
||||||
|
|
||||||
WorkerCluster.initialize(this, name);
|
WorkerTag.initialize(this, name);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -40,15 +40,15 @@ class WorkerCluster {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>WorkerCluster</code> from a plain JavaScript object, optionally creating a new instance.
|
* Constructs a <code>WorkerTag</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.
|
* 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 {Object} data The plain JavaScript object bearing properties of interest.
|
||||||
* @param {module:model/WorkerCluster} obj Optional instance to populate.
|
* @param {module:model/WorkerTag} obj Optional instance to populate.
|
||||||
* @return {module:model/WorkerCluster} The populated <code>WorkerCluster</code> instance.
|
* @return {module:model/WorkerTag} The populated <code>WorkerTag</code> instance.
|
||||||
*/
|
*/
|
||||||
static constructFromObject(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new WorkerCluster();
|
obj = obj || new WorkerTag();
|
||||||
|
|
||||||
if (data.hasOwnProperty('id')) {
|
if (data.hasOwnProperty('id')) {
|
||||||
obj['id'] = ApiClient.convertToType(data['id'], 'String');
|
obj['id'] = ApiClient.convertToType(data['id'], 'String');
|
||||||
@ -67,25 +67,25 @@ class WorkerCluster {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* UUID of the cluster. Can be ommitted when creating a new cluster, in which case a random UUID will be assigned.
|
* UUID of the tag. Can be ommitted when creating a new tag, in which case a random UUID will be assigned.
|
||||||
* @member {String} id
|
* @member {String} id
|
||||||
*/
|
*/
|
||||||
WorkerCluster.prototype['id'] = undefined;
|
WorkerTag.prototype['id'] = undefined;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @member {String} name
|
* @member {String} name
|
||||||
*/
|
*/
|
||||||
WorkerCluster.prototype['name'] = undefined;
|
WorkerTag.prototype['name'] = undefined;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @member {String} description
|
* @member {String} description
|
||||||
*/
|
*/
|
||||||
WorkerCluster.prototype['description'] = undefined;
|
WorkerTag.prototype['description'] = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
export default WorkerCluster;
|
export default WorkerTag;
|
||||||
|
|
74
web/app/src/manager-api/model/WorkerTagChangeRequest.js
generated
Normal file
74
web/app/src/manager-api/model/WorkerTagChangeRequest.js
generated
Normal file
@ -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';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The WorkerTagChangeRequest model module.
|
||||||
|
* @module model/WorkerTagChangeRequest
|
||||||
|
* @version 0.0.0
|
||||||
|
*/
|
||||||
|
class WorkerTagChangeRequest {
|
||||||
|
/**
|
||||||
|
* Constructs a new <code>WorkerTagChangeRequest</code>.
|
||||||
|
* Request to change which tags this Worker is assigned to.
|
||||||
|
* @alias module:model/WorkerTagChangeRequest
|
||||||
|
* @param tagIds {Array.<String>}
|
||||||
|
*/
|
||||||
|
constructor(tagIds) {
|
||||||
|
|
||||||
|
WorkerTagChangeRequest.initialize(this, tagIds);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 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, tagIds) {
|
||||||
|
obj['tag_ids'] = tagIds;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructs a <code>WorkerTagChangeRequest</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/WorkerTagChangeRequest} obj Optional instance to populate.
|
||||||
|
* @return {module:model/WorkerTagChangeRequest} The populated <code>WorkerTagChangeRequest</code> instance.
|
||||||
|
*/
|
||||||
|
static constructFromObject(data, obj) {
|
||||||
|
if (data) {
|
||||||
|
obj = obj || new WorkerTagChangeRequest();
|
||||||
|
|
||||||
|
if (data.hasOwnProperty('tag_ids')) {
|
||||||
|
obj['tag_ids'] = ApiClient.convertToType(data['tag_ids'], ['String']);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return obj;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @member {Array.<String>} tag_ids
|
||||||
|
*/
|
||||||
|
WorkerTagChangeRequest.prototype['tag_ids'] = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
export default WorkerTagChangeRequest;
|
||||||
|
|
@ -12,21 +12,21 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import ApiClient from '../ApiClient';
|
import ApiClient from '../ApiClient';
|
||||||
import WorkerCluster from './WorkerCluster';
|
import WorkerTag from './WorkerTag';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The WorkerClusterList model module.
|
* The WorkerTagList model module.
|
||||||
* @module model/WorkerClusterList
|
* @module model/WorkerTagList
|
||||||
* @version 0.0.0
|
* @version 0.0.0
|
||||||
*/
|
*/
|
||||||
class WorkerClusterList {
|
class WorkerTagList {
|
||||||
/**
|
/**
|
||||||
* Constructs a new <code>WorkerClusterList</code>.
|
* Constructs a new <code>WorkerTagList</code>.
|
||||||
* @alias module:model/WorkerClusterList
|
* @alias module:model/WorkerTagList
|
||||||
*/
|
*/
|
||||||
constructor() {
|
constructor() {
|
||||||
|
|
||||||
WorkerClusterList.initialize(this);
|
WorkerTagList.initialize(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -38,18 +38,18 @@ class WorkerClusterList {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a <code>WorkerClusterList</code> from a plain JavaScript object, optionally creating a new instance.
|
* Constructs a <code>WorkerTagList</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.
|
* 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 {Object} data The plain JavaScript object bearing properties of interest.
|
||||||
* @param {module:model/WorkerClusterList} obj Optional instance to populate.
|
* @param {module:model/WorkerTagList} obj Optional instance to populate.
|
||||||
* @return {module:model/WorkerClusterList} The populated <code>WorkerClusterList</code> instance.
|
* @return {module:model/WorkerTagList} The populated <code>WorkerTagList</code> instance.
|
||||||
*/
|
*/
|
||||||
static constructFromObject(data, obj) {
|
static constructFromObject(data, obj) {
|
||||||
if (data) {
|
if (data) {
|
||||||
obj = obj || new WorkerClusterList();
|
obj = obj || new WorkerTagList();
|
||||||
|
|
||||||
if (data.hasOwnProperty('clusters')) {
|
if (data.hasOwnProperty('tags')) {
|
||||||
obj['clusters'] = ApiClient.convertToType(data['clusters'], [WorkerCluster]);
|
obj['tags'] = ApiClient.convertToType(data['tags'], [WorkerTag]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return obj;
|
return obj;
|
||||||
@ -59,14 +59,14 @@ class WorkerClusterList {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @member {Array.<module:model/WorkerCluster>} clusters
|
* @member {Array.<module:model/WorkerTag>} tags
|
||||||
*/
|
*/
|
||||||
WorkerClusterList.prototype['clusters'] = undefined;
|
WorkerTagList.prototype['tags'] = undefined;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
export default WorkerClusterList;
|
export default WorkerTagList;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user