Skip to content
This repository was archived by the owner on Oct 12, 2025. It is now read-only.

Commit 8e97640

Browse files
author
James Sharpe
committed
Update API
1 parent 18ca198 commit 8e97640

File tree

12 files changed

+422
-153
lines changed

12 files changed

+422
-153
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ Class | Method | HTTP request | Description
143143
- [DesktopNodeApplicationVersionSummary](docs/DesktopNodeApplicationVersionSummary.md)
144144
- [DesktopNodeConnectionType](docs/DesktopNodeConnectionType.md)
145145
- [DesktopNodeLaunchSpec](docs/DesktopNodeLaunchSpec.md)
146+
- [DesktopNodeQuote](docs/DesktopNodeQuote.md)
146147
- [DesktopNodeType](docs/DesktopNodeType.md)
147148
- [Discount](docs/Discount.md)
148149
- [Folder](docs/Folder.md)

docs/ClusterNodeConfig.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
66
**accelerator** | [**AcceleratorConfig**](AcceleratorConfig.md) | |
77
**cpus** | **int** | | [optional]
8+
**cpu_generation** | **str** | | [optional]
89
**cores_per_cpu** | **int** | | [optional]
910
**threads_per_core** | **int** | | [optional] [readonly]
1011
**memory** | **str** | | [optional] [readonly]

docs/DataSpec.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# DataSpec
22

3-
Input Data specification for this job
3+
Input data specification for this desktop
44
## Properties
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------

docs/DesktopApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ configuration = epiccore.Configuration(
205205
with epiccore.ApiClient(configuration) as api_client:
206206
# Create an instance of the API class
207207
api_instance = epiccore.DesktopApi(api_client)
208-
data = epiccore.DesktopNodeLaunchSpec() # DesktopNodeLaunchSpec |
208+
data = epiccore.DesktopNodeQuote() # DesktopNodeQuote |
209209

210210
try:
211211
api_response = api_instance.desktop_quote(data)
@@ -218,7 +218,7 @@ with epiccore.ApiClient(configuration) as api_client:
218218

219219
Name | Type | Description | Notes
220220
------------- | ------------- | ------------- | -------------
221-
**data** | [**DesktopNodeLaunchSpec**](DesktopNodeLaunchSpec.md)| |
221+
**data** | [**DesktopNodeQuote**](DesktopNodeQuote.md)| |
222222

223223
### Return type
224224

docs/DesktopNodeLaunchSpec.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@
33
## Properties
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
6-
**node_type** | **int** | ID of the node_type. Valid values are obtained from the catalog/viznodetype/<application_version>/ endpoint |
7-
**application_version** | **int** | ID of the application_version to launch. Valid values are obtained from the catalog/viz/ endpoint |
8-
**connection** | **int** | |
9-
**folder** | **int** | ID of the root folder to use for the viz node |
10-
**project** | **int** | Project ID to bill this desktop node against | [optional]
6+
**application_version** | **int** | ID of the application_version to launch. Valid values are obtained from the catalog/desktop/ endpoint |
7+
**node_type** | **int** | ID of the node_type. Valid values are obtained from the catalog/desktop/ endpoint |
8+
**connection_type** | **int** | The connection type to use for the Desktop |
119
**runtime** | **int** | Runtime in hours to run this desktop node for. This is the maximum runtime as the viz node can be stopped earlier and you will only be charged for the elapsed time |
12-
**mount_type** | **str** | Valid values are online or offline. Offline takes a copy of the data and will not be automatically synced back to the data store. |
1310
**secure_ip** | **bool** | Should we restrict which IPs can connect to this node? | [optional] [default to False]
1411
**ip_address** | **str** | IPv4 Address to restrict connections to this node from | [optional]
1512
**invoice_reference** | **str** | Invoice reference - this text will appear on the monthly invoice against this nodes charges | [optional]
13+
**data_path** | [**DataSpec**](DataSpec.md) | |
14+
**mount_type** | **str** | How should the data folder be mounted to the desktop. Offline takes a copy of the data and will not be automatically synced back to the data store. |
15+
**project** | **int** | Project ID to bill this desktop node against | [optional]
1616

1717
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1818

docs/DesktopNodeQuote.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# DesktopNodeQuote
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**application_version** | **int** | ID of the application_version to launch. Valid values are obtained from the catalog/desktop/ endpoint |
7+
**node_type** | **int** | ID of the node_type. Valid values are obtained from the catalog/desktop/ endpoint |
8+
**connection_type** | **int** | The connection type to use for the Desktop |
9+
**runtime** | **int** | Runtime in hours to run this desktop node for. This is the maximum runtime as the viz node can be stopped earlier and you will only be charged for the elapsed time |
10+
11+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
12+
13+

epiccore/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
from epiccore.models.desktop_node_application_version_summary import DesktopNodeApplicationVersionSummary
6060
from epiccore.models.desktop_node_connection_type import DesktopNodeConnectionType
6161
from epiccore.models.desktop_node_launch_spec import DesktopNodeLaunchSpec
62+
from epiccore.models.desktop_node_quote import DesktopNodeQuote
6263
from epiccore.models.desktop_node_type import DesktopNodeType
6364
from epiccore.models.discount import Discount
6465
from epiccore.models.folder import Folder

epiccore/api/desktop_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ def desktop_quote(self, data, **kwargs): # noqa: E501
317317
>>> result = thread.get()
318318
319319
:param data: (required)
320-
:type data: DesktopNodeLaunchSpec
320+
:type data: DesktopNodeQuote
321321
:param async_req: Whether to execute the request asynchronously.
322322
:type async_req: bool, optional
323323
:param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -347,7 +347,7 @@ def desktop_quote_with_http_info(self, data, **kwargs): # noqa: E501
347347
>>> result = thread.get()
348348
349349
:param data: (required)
350-
:type data: DesktopNodeLaunchSpec
350+
:type data: DesktopNodeQuote
351351
:param async_req: Whether to execute the request asynchronously.
352352
:type async_req: bool, optional
353353
:param _return_http_data_only: response data without head status code

epiccore/models/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
from epiccore.models.desktop_node_application_version_summary import DesktopNodeApplicationVersionSummary
3535
from epiccore.models.desktop_node_connection_type import DesktopNodeConnectionType
3636
from epiccore.models.desktop_node_launch_spec import DesktopNodeLaunchSpec
37+
from epiccore.models.desktop_node_quote import DesktopNodeQuote
3738
from epiccore.models.desktop_node_type import DesktopNodeType
3839
from epiccore.models.discount import Discount
3940
from epiccore.models.folder import Folder

epiccore/models/cluster_node_config.py

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ class ClusterNodeConfig(object):
3636
openapi_types = {
3737
'accelerator': 'AcceleratorConfig',
3838
'cpus': 'int',
39+
'cpu_generation': 'str',
3940
'cores_per_cpu': 'int',
4041
'threads_per_core': 'int',
4142
'memory': 'str'
@@ -44,19 +45,21 @@ class ClusterNodeConfig(object):
4445
attribute_map = {
4546
'accelerator': 'accelerator',
4647
'cpus': 'cpus',
48+
'cpu_generation': 'cpu_generation',
4749
'cores_per_cpu': 'cores_per_cpu',
4850
'threads_per_core': 'threads_per_core',
4951
'memory': 'memory'
5052
}
5153

52-
def __init__(self, accelerator=None, cpus=None, cores_per_cpu=None, threads_per_core=None, memory=None, local_vars_configuration=None): # noqa: E501
54+
def __init__(self, accelerator=None, cpus=None, cpu_generation=None, cores_per_cpu=None, threads_per_core=None, memory=None, local_vars_configuration=None): # noqa: E501
5355
"""ClusterNodeConfig - a model defined in OpenAPI""" # noqa: E501
5456
if local_vars_configuration is None:
5557
local_vars_configuration = Configuration()
5658
self.local_vars_configuration = local_vars_configuration
5759

5860
self._accelerator = None
5961
self._cpus = None
62+
self._cpu_generation = None
6063
self._cores_per_cpu = None
6164
self._threads_per_core = None
6265
self._memory = None
@@ -65,6 +68,8 @@ def __init__(self, accelerator=None, cpus=None, cores_per_cpu=None, threads_per_
6568
self.accelerator = accelerator
6669
if cpus is not None:
6770
self.cpus = cpus
71+
if cpu_generation is not None:
72+
self.cpu_generation = cpu_generation
6873
if cores_per_cpu is not None:
6974
self.cores_per_cpu = cores_per_cpu
7075
if threads_per_core is not None:
@@ -120,6 +125,33 @@ def cpus(self, cpus):
120125

121126
self._cpus = cpus
122127

128+
@property
129+
def cpu_generation(self):
130+
"""Gets the cpu_generation of this ClusterNodeConfig. # noqa: E501
131+
132+
133+
:return: The cpu_generation of this ClusterNodeConfig. # noqa: E501
134+
:rtype: str
135+
"""
136+
return self._cpu_generation
137+
138+
@cpu_generation.setter
139+
def cpu_generation(self, cpu_generation):
140+
"""Sets the cpu_generation of this ClusterNodeConfig.
141+
142+
143+
:param cpu_generation: The cpu_generation of this ClusterNodeConfig. # noqa: E501
144+
:type cpu_generation: str
145+
"""
146+
if (self.local_vars_configuration.client_side_validation and
147+
cpu_generation is not None and len(cpu_generation) > 255):
148+
raise ValueError("Invalid value for `cpu_generation`, length must be less than or equal to `255`") # noqa: E501
149+
if (self.local_vars_configuration.client_side_validation and
150+
cpu_generation is not None and len(cpu_generation) < 1):
151+
raise ValueError("Invalid value for `cpu_generation`, length must be greater than or equal to `1`") # noqa: E501
152+
153+
self._cpu_generation = cpu_generation
154+
123155
@property
124156
def cores_per_cpu(self):
125157
"""Gets the cores_per_cpu of this ClusterNodeConfig. # noqa: E501

0 commit comments

Comments
 (0)